feat(editor): R-00362 M6-C extract, submit, and auto commit/export - #12
Merged
Conversation
added 2 commits
September 2, 2026 17:02
Wire buildPatch from four-state tokens, Host POST /api/patch/validate|/apply, Git/SVN/None VcsAdapter.commit, and DiffPreview submit flow. Empty ops skip commit/export so fingerprints and HEAD stay unchanged. autoCommit writes only the whitelist paths; EXPORT_FAILED and VCS_COMMIT_FAILED keep already-applied TXT.
Lock apply/reload against the 2s revision watcher, delete the table draft after a successful apply even when commit/export fails, map ref tokens to target names, and commit only whitelist paths. Empty-ops validate is available from ReadyClean.
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.
Summary
R-00362 M6-C:
buildPatchfrom four-state tokens, HostPOST /api/patch/validate//api/patch/apply,submit()apply then optional Git/SVN commit and export, DiffPreview 预检/提交补丁.Base:
origin/mainae51a4d(PR #11). Does not merge itself. Out of scope: ConflictPanel/rebase, patch.py semantics, push/PR from Host.Acceptance
patch applybyte-for-byte (including tombstones). Create has no expect; other ops expect baseline tokens. New row M3 id replacesdraft:. Ref columns emit target names, not ids.autoCommit=true:git log -1first lineconfig(<table>): <摘要>, whitelist three paths (git commit -- <paths>).autoCommit=false: dirty tree + 未提交 hint. SVN stub add then commit.allowDirtyWorkingTree=trueskips commit.autoExport=truewritesbuild/export.EXPORT_FAILED/VCS_COMMIT_FAILEDkeep TXT; draft is still deleted after successful apply.Closeout (worktree
LumioConfig-wt-R-00362, HEADc5b908a)python -m unittest discover -s tests -v: 110 tests, 1 skipped, OKpython tools/lumio_config.py validate: OKpython tools/lumio_config.py format --check: OKpython tools/lumio_config.py export --out build/export: OK (3 tables)git diff --check: OKnode spec-lint.mjs .: OKpnpm lint/pnpm test: 33 Vitest passedpnpm build+pnpm e2e: 22 Playwright passed (host-drafts + host-submit included)Reviewer
Branch review vs origin/main found 4 bugs (watcher race, autosave vs ReadyToSubmit, leftover draft after VCS/EXPORT failure, ref ids). Follow-up commit
c5b908aaddresses them plus delete/tombstone coverage and commit pathspec.Do not merge until evaluator independently verifies the four GET'd items.