feat: add --dev flag to extension update command#2006
Open
Testimonial wants to merge 1 commit intogithub:mainfrom
Open
feat: add --dev flag to extension update command#2006Testimonial wants to merge 1 commit intogithub:mainfrom
Testimonial wants to merge 1 commit intogithub:mainfrom
Conversation
Adds `--dev` support to the update command, enabling local directory updates without remove + add cycle: specify extension update --dev /tmp/cognitive-squad Behavior: - Reads extension.yml from the source directory to get the extension ID - If extension is not installed: installs fresh (same as add --dev) - If extension is installed: backs up config files, removes old version, installs from local directory, restores config files and registry metadata (installed_at, priority, enabled state) - Sets source to "local" in registry This eliminates the common dev workflow pain point: rm -rf /tmp/ext && git clone ... && specify extension remove ext && specify extension add --dev /tmp/ext Now just: cd /tmp/ext && git pull && specify extension update --dev /tmp/ext Config files (*-config.yml, *-config.local.yml, local-config.yml) are preserved across updates. The catalog code path is unchanged when --dev is not specified. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
--devflag tospecify extension updatefor local directory updatesrm -rf && git clone && remove && add --devgit pull && specify extension update --dev /pathProblem
Dev-installed extensions (
specify extension add --dev /path) cannot be updated without a full remove + add cycle. Theupdatecommand only checks the catalog, so locally-installed extensions get "Not found in catalog (skipping)".Common workaround:
This destroys any local config files and resets registry metadata (installed_at, priority).
Solution
When
--devis specified:extension.ymlfrom source directory to identify the extensionadd --dev)installed_at,priority,enabledstate,*-config.yml,*-config.local.yml,local-config.ymlsource: "local"in registryNo changes to the catalog update code path when
--devis not used.Test plan
specify extension update --dev /path/to/extupdates an installed dev extensionspecify extension update --dev /path/to/new-extinstalls if not yet installedspecify extension update --dev(no path) prints usage errorspecify extension update --dev /nonexistentprints directory not found errorspecify extension update ext-name(no --dev) still uses catalog (unchanged)🤖 Generated with Claude Code