Skip to content

feat: add update self-update command#11

Merged
kreneskyp merged 1 commit into
mainfrom
feat/update-command
Jun 20, 2026
Merged

feat: add update self-update command#11
kreneskyp merged 1 commit into
mainfrom
feat/update-command

Conversation

@kreneskyp

Copy link
Copy Markdown
Contributor

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`).

  • `quoin update [--check] [--registry ]`
  • `--check` reports availability without installing; `--registry` forces a registry (defaults to the ambient npm config — however quoin was installed).
  • Wires `UPDATE_USAGE` help, the dispatch branch, the top-level usage line, and the System Overview.

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

  • New FR-022 (Self-Update section in `spec/spec.md`) + In-Scope surface, System Overview, and FR-003 (help list) edits.
  • FR-022 added to `spec/matrix.md` with traceability to `tests/update.test.ts`.

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

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>
@kreneskyp kreneskyp requested a review from a team as a code owner June 20, 2026 20:57
@kreneskyp kreneskyp merged commit 38e6772 into main Jun 20, 2026
6 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