Skip to content

feat: add cached update notices - #40

Merged
abruption merged 1 commit into
mainfrom
feat/20-update-notice
Sep 23, 2026
Merged

abruption merged 1 commit into
mainfrom
feat/20-update-notice

Conversation

@abruption

Copy link
Copy Markdown
Owner

Summary

  • add cache-only advisory update notices with opt-out, CI, TTY, and JSON policies
  • add an explicit bounded check-update flow and conservative npm/npx/source guidance
  • preserve unlock safety isolation by scheduling detached refresh only after the primary command is complete
  • extend JSON Schema v1 with optional clientUpdate metadata and document the contract

Safety boundary

  • list, inspect, and unlock perform no synchronous registry request
  • update state cannot change classification, safeToUnlock, signaling, refusal reasons, or exit status
  • JSON stdout remains one valid value and update failures stay outside the primary result path

Validation

  • npm ci
  • npm run check
  • npm run lint
  • npm test (84 tests)
  • npm run smoke:package

Closes #20

@abruption
abruption merged commit 98d6258 into main Sep 23, 2026
20 checks passed
@abruption
abruption deleted the feat/20-update-notice branch September 27, 2026 06:08
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.

feat: show a cached advisory notice when codex-unlock is outdated

1 participant