feat: add update self-update command#11
Merged
Merged
Conversation
quoin update delegates to ix-cli-core's runSelfUpdate to upgrade quoin to the latest published @agent-ix/quoin (npm view -> compare -> npm install -g), supporting --check (report only) and --registry (force a registry; defaults to the ambient npm config). Adds UPDATE_USAGE help, dispatch, and System Overview. Requires @agent-ix/ix-cli-core >=0.10.5 (the runSelfUpdate export); relocked. Adds FR-022 + matrix traceability. Co-Authored-By: Claude Opus 4.8 <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.
What
Adds a `quoin update` command that upgrades quoin to the latest published `@agent-ix/quoin`, by delegating to `@agent-ix/ix-cli-core`'s `runSelfUpdate` (npm view → compare to running version → `npm install -g`).
Dependency
Requires `@agent-ix/ix-cli-core >=0.10.5` (the release that exports `runSelfUpdate`, published from agent-ix/ix-cli-core#2). The lockfile is relocked to 0.10.5 (resolved from public npm; 0 npm.ix refs). Verified at runtime: `quoin update --check` loads the real helper and reports correctly.
Spec
Tests
`tests/update.test.ts` (vitest) asserts the delegation contract: correct package coordinates, `--check` pass-through, `--registry` pass-through. Mocks only the `@agent-ix/ix-cli-core` import edge (via `vi.hoisted`). `make build` / `make lint` / `make test` (102 tests) green.
🤖 Generated with Claude Code