You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): nudge to refresh agent-context when it predates the installed CLI
Closes the version-drift gap in the scaffolded-skills model (ADR-0024 review
follow-up): the .claude/skills agent-context ships with the package, so an
upgrade can leave the copied-in copy stale with nothing telling the adopter.
- sdk: the agent-context manifest now records `generatedBy` (the MetaObjects
version that scaffolded it; optional-on-read for back-compat, required-on-write).
New pure `agentContextStaleness({manifest, currentVersion})` → a one-line nudge
when the manifest predates (or lacks) the installed version, else null.
- cli: `meta init` stamps `generatedBy`; `meta gen` + `meta verify` print the
advisory nudge near the top (after --list/arg-parse exits). Never throws, never
blocks — a missing/corrupt manifest is silent. Extracted `cliVersion()` to a
shared lib (was inline in index.ts).
TS pilot. The manifest schema (`version: 1` + optional `generatedBy`) is the
cross-port contract: Java/Python/C# agent-docs scaffolds stamp it + mirror the
pure staleness check in their gen/verify next. sdk+cli 420/0, typecheck clean,
end-to-end smoked (stale→nudge, in-sync→silent).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments