Skip to content

feat(cmdcode): auto-fetch CLI version from npm registry - #8

Merged
evangit2 merged 1 commit into
mainfrom
develop
Jul 31, 2026
Merged

feat(cmdcode): auto-fetch CLI version from npm registry#8
evangit2 merged 1 commit into
mainfrom
develop

Conversation

@evangit2

Copy link
Copy Markdown
Owner

Replace hardcoded CMDCODE_CLI_VERSION with _get_cli_version() that fetches the latest version from the npm registry with a 6-hour TTL. Falls back to last known good version if npm is unreachable. Ensures Guanaco always sends the current CLI version without manual updates.

Replace hardcoded CMDCODE_CLI_VERSION with _get_cli_version() that fetches
the latest version from the npm registry (registry.npmjs.org/command-code/latest)
with a 6-hour TTL. Falls back to last known good version or hardcoded fallback
if npm is unreachable. Ensures Guanaco always sends the current CLI version
in x-command-code-version headers without manual updates.
@evangit2
evangit2 merged commit cc4da7a into main Jul 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant