fix(cli): commit preflight, adopt command, status relevant-behind — release 3.4.0 - #47
Merged
Merged
Conversation
…d, status relevant-behind - commit: preflight fingerprint preconditions before creating any commit; fail closed with pristine worktree (#44) - adopt: losslessly register existing .mdx into meta.json (validatedRevision: null, idempotent); validate hints the fix command (#45) - status: add relevantCommitsBehindHead and mark metadata-only behind as knowledge clean (#46)
… to 3.4.0 - skills: adopt registration path (llmdoc/update/init/upgrade), commit preflight fail-closed, metadata-only status semantics - version surfaces: cli/package.json, root package.json, both plugin manifests, marketplace entry, lockfiles
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.
Resolves #44, resolves #45, resolves #46.
CLI changes
llmdoc commitnow runs all fingerprint preconditions (git advanceable, no dirty mapped source) before creating any commit. On failure it exits 70 with the worktree untouched — no more half-finished docs-commit-without-meta state. Extracted asassertRevisionAdvancePreconditions()incli/src/lib/state.ts, shared withfingerprint.llmdoc adopt <path...>([Enhancement] 提供无损登记已有 .mdx 到 meta.json 的 adopt/register 命令 #45): losslessly registers existing valid.mdxfiles intometa.json(validatedRevision: null), multi-path, idempotent no-op for already-registered docs; bodies are never rewritten. Targets must pass structural validation except themeta.entry.missingthis command fixes.validatenow hints the fix command onmeta.entry.missing.status --jsonaddsrelevantCommitsBehindHead(commits inbaseline..HEADtouching at least one implementation-surface path, honoring.llmdocignoreand llmdoc-internal exclusions). Text output marks a purelyllmdoc/**trail asN commits behind HEAD, metadata-only; knowledge clean, and showsM relevant source commitsotherwise. Baseline semantics unchanged — no hash-chasing.Surface sync & release
llmdoc,update,init,upgrade) within prompt budgets.docs/v3-design/03-cli.md,agents/recorder.md, output JSON schema, and llmdoc dogfood docs synced; a new release-lesson section records the command-surface sync invariant.Verification
check:prompts,check-codex-surface, dogfoodvalidateall pass.