feat: decouple extension version from CLI version#985
Merged
Conversation
Extension and CLI had tightly coupled version numbers (both 1.7.2), requiring manual sync across 3 files on every release. This decouples them so each can release independently. Changes: - Extension version reset to 1.0.0 with independent versioning - Extension sends compatRange (e.g. ">=1.7.0") in hello message so doctor can check CLI/extension compatibility - Daemon stores and exposes extensionCompatRange via /status - Doctor uses compatRange for compatibility checks (falls back to major-version check for older extensions without compatRange) - Doctor shows extension update availability from cached GitHub Releases data - release.yml always builds and attaches extension zip to every CLI release, so users always find both in the same release page - build-extension.yml triggers on ext-v* tags (not v*) to avoid duplicate builds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extension and CLI had tightly coupled version numbers (both bumped to the same value on every release), causing semantic confusion and unnecessary Chrome Web Store submissions. This decouples them so each can release independently.
1.0.0with independent versioningcompatRange(e.g.>=1.7.0) in its WebSocket hello message; daemon stores it and exposes via/statusopencli doctorenhanced:compatRangefor CLI/extension compatibility checks (falls back to major-version check for older extensions)release.ymlnow always builds and attachesopencli-extension.zipto every CLI release — users always find both CLI and extension in the same release pagebuild-extension.ymltriggers onext-v*tags instead ofv*to avoid duplicate buildsFiles changed
extension/manifest.json1.0.0extension/package.json1.0.0, addedopencli.compatRangeextension/vite.config.ts__OPENCLI_COMPAT_RANGE__at build timeextension/src/background.tscompatRangesrc/daemon.tsextensionCompatRange, exposes via/statussrc/browser/daemon-client.tsDaemonStatustype includesextensionCompatRangesrc/doctor.tssrc/update-check.ts.github/workflows/release.yml.github/workflows/build-extension.ymlext-v*instead ofv*Test plan
npx tsc --noEmit— passes (no new TS errors)npm test— 196 files, 1487 passed, 2 skipped