deepseek-harness/scripts
Tianyi Cui 53283003e9 feat(i18n): unit-mapped briefings with mechanical --apply, adopting the #684 planner mechanics
The briefing now maps each update at the narrowest safely aligned
granularity, widening deterministically on mapping failure: a change
confined to the pair's byte-identical code fences is computed outright
(--apply splices it into the counterpart and validates the result
against the pairing gate's structural signature before writing);
otherwise changed Markdown units — headings, paragraphs, table rows,
list items, fences, block quotes, HTML blocks, thematic breaks, link
definitions, matched by container-scoped kind sequences — each carry
their last-confirmed source, current source, and current counterpart
text; units that do not align fall back to depth-matched heading
sections (depth only, so translated heading text still maps); and when
sections do not align either, or both sides drifted, the briefing says
so and withholds the mapping. Terminology rows now match the changed
spans only, English terms on word boundaries with plural inflections,
and Chinese-target briefings track each relevant term's document-wide
first occurrence — a moved occurrence pulls the vacated and receiving
spans into the briefing with an explanatory note.

The unit mapping, mechanical code splice, and first-occurrence tracking
adopt the planner design from the incremental prompt-pipeline PR (#684),
whose provider-backed bake-off independently validated the same scope
ladder; this PR carries those mechanics into the agent-facing briefing
path so both consumers of the consistency records behave alike. The
prior line-hunk section mapping and its heading-text alignment (which
could not map cross-language sections) are replaced wholesale.

Docs: SKILL.md update path, i18n README pair, development.md pair, and
the briefed-updates Agent Note pair brought along; the development.md
fence edit was applied with --apply itself, and the prose updates were
made through the new unit/section briefings.
2026-07-27 02:31:07 +08:00
..
fixtures/translation-prompt fix(i18n): harden prompt response handling 2026-07-23 23:12:56 +08:00
snapshots docs: make bilingual pairing universal 2026-07-26 15:06:51 +08:00
agent-note-tree.ts Remove generated Agent Note index 2026-07-19 23:15:23 +08:00
AGENTS.md docs(windows): clarify portability rules 2026-07-18 13:03:44 +08:00
build-exe-for-python-sdk.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
build-python-release.py python: derive release version from repository 2026-07-13 17:49:01 +08:00
check-expected-filenames.sh ci: reject golden filenames on matching PRs 2026-07-19 21:24:42 +08:00
check-vendor-manifest.sh
check-workspace-constraints.ts fix: ci docs/lint 2026-07-22 17:03:10 +08:00
clean.spec.ts fix(build): contain clean targets within repository 2026-07-26 02:51:58 +08:00
clean.ts fix(build): contain clean targets within repository 2026-07-26 02:51:58 +08:00
client-bundle-purity.spec.ts refactor(gui): one plugin-package shape — dshClient manifests, clientBundle preset, purity gate over all nine 2026-07-24 02:09:42 +08:00
cordis-config-files.spec.ts Stabilize master CI across platforms 2026-07-25 00:10:37 +08:00
cordis-config-files.ts fix(ci): ignore translation records in Cordis config scan 2026-07-23 00:39:55 +08:00
cordis-core-api.spec.ts docs: restore generated Cordis core API 2026-07-20 16:33:44 +08:00
cordis-core-api.ts docs: restore generated Cordis core API 2026-07-20 16:33:44 +08:00
cordis-walk.ts refactor(core): fold initiator scope into agents 2026-07-19 13:30:45 +08:00
demo-code-mode.mjs refactor(cli): unify the arg grammar — one program, --config flag, real web subcommand 2026-07-25 15:47:55 +08:00
dev-web.ts feat(gui): dsh-client-hmr reload driver and the dshClient-discovered watch-build script 2026-07-24 02:09:42 +08:00
doc-budgets.manifest.json docs: translate remaining READMEs 2026-07-26 05:06:39 +08:00
doc-typecheck-paths.spec.ts fix(docs): map exact source aliases in built checks 2026-07-19 19:26:38 +08:00
doc-typecheck-paths.ts feat(gui): step1 skeleton — dsc web serves built web UI over booted harness host 2026-07-22 16:24:44 +08:00
doc-typecheck.ts docs: deduplicate paired code-block checks 2026-07-26 02:52:48 +08:00
gen-config-catalog.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
gen-cordis-api.ts refactor(agent): align delivery method names 2026-07-24 15:08:36 +08:00
gen-cordis-catalog.ts Merge remote-tracking branch 'origin/master' into session-query-tool 2026-07-25 18:27:39 +08:00
gen-doc-graphs.ts Merge remote-tracking branch 'origin/master' into session-query-tool 2026-07-25 18:27:39 +08:00
gen-module-graph.ts refactor(acp): reduce bridge to automation protocol 2026-07-24 01:40:25 +08:00
gen-persistence-catalog.ts fix(session-title): harden async provider lifecycle 2026-07-21 12:08:00 +08:00
gen-scoped-events.ts refactor(tsconfig): single root solution graph over host/client aggregates 2026-07-23 03:59:05 +08:00
gen-tool-catalog.ts fix: address review — staged scheduler, start-time reclassification, catalogs 2026-07-26 10:33:48 +08:00
gen-translation-brief.ts feat(i18n): unit-mapped briefings with mechanical --apply, adopting the #684 planner mechanics 2026-07-27 02:31:07 +08:00
install-lefthook.mjs fix(scripts): launch lefthook bin shim via shell on Windows 2026-07-15 16:09:12 +08:00
install.sh chore(install): flag TypeScript extraction 2026-07-22 17:31:10 +08:00
jsdoc.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
markdown.ts docs: harden package README gates 2026-07-14 14:01:35 +08:00
md-fences.ts Merge remote-tracking branch 'origin/master' into worktree/docs-website 2026-07-18 21:35:06 +08:00
package-graph.ts fix: normalize glob paths with split(sep).join('/') on Windows 2026-07-15 19:11:20 +08:00
package-invariants.spec.ts fix(invariants): harden runtime contracts and gates 2026-07-21 00:25:38 +08:00
package-invariants.ts fix(invariants): harden runtime contracts and gates 2026-07-21 00:25:38 +08:00
paired-markdown-derivatives.spec.ts docs: deduplicate paired code-block checks 2026-07-26 02:52:48 +08:00
paired-markdown-derivatives.ts docs: deduplicate paired code-block checks 2026-07-26 02:52:48 +08:00
prepare-ci-bubblewrap.sh docs: record final larger-runner evidence 2026-07-22 16:55:39 +08:00
project-doc-site.spec.ts docs(site): publish translated core data pages 2026-07-24 18:07:56 +08:00
project-doc-site.ts fix duplicate documentation homepage content 2026-07-20 15:25:47 +08:00
publint-all.spec.ts ci: enforce bounded build lanes 2026-07-21 20:15:09 +08:00
publint-all.ts ci: enforce bounded build lanes 2026-07-21 20:15:09 +08:00
repo-files.ts fix: normalize remaining Windows gate paths 2026-07-15 19:59:00 +08:00
run-gates.ts fix(i18n): complete prompt v4 pipeline path 2026-07-23 22:41:53 +08:00
smoke-python-runtime.py fix: address review — python smoke caller, contract prose, fixture header hygiene 2026-07-26 10:18:53 +08:00
test-invariants.spec.ts Merge origin/master into codex/invariant-service-seam 2026-07-21 00:44:39 +08:00
test-invariants.ts Merge origin/master into codex/invariant-service-seam 2026-07-21 01:13:28 +08:00
translation-brief.spec.ts feat(i18n): unit-mapped briefings with mechanical --apply, adopting the #684 planner mechanics 2026-07-27 02:31:07 +08:00
translation-brief.ts feat(i18n): unit-mapped briefings with mechanical --apply, adopting the #684 planner mechanics 2026-07-27 02:31:07 +08:00
translation-pairing.manifest.json docs: make bilingual pairing universal 2026-07-26 15:06:51 +08:00
translation-pairing.spec.ts feat(i18n): briefing generator and pair-scoped pairing gate 2026-07-27 00:44:21 +08:00
translation-pairing.ts feat(i18n): briefing generator and pair-scoped pairing gate 2026-07-27 00:44:21 +08:00
translation-prompt.snapshot.ts fix(i18n): complete prompt v4 pipeline path 2026-07-23 22:41:53 +08:00
translation-prompt.spec.ts fix(i18n): harden prompt response handling 2026-07-23 23:12:56 +08:00
translation-prompt.ts fix(i18n): harden prompt response handling 2026-07-23 23:12:56 +08:00
ts-project.ts fix(build): reuse TypeScript config host 2026-07-26 00:30:20 +08:00
type-equiv.manifest.json docs: deduplicate paired code-block checks 2026-07-26 02:52:48 +08:00
verify-agent-note-classification.ts Remove generated Agent Note index 2026-07-19 23:15:23 +08:00
verify-agent-note-format.ts Remove generated Agent Note index 2026-07-19 23:15:23 +08:00
verify-built-package-invariants.mjs ci: add coverage lane headroom 2026-07-21 20:32:57 +08:00
verify-built-package-invariants.spec.ts ci: enforce bounded build lanes 2026-07-21 20:15:09 +08:00
verify-client-domain-graph.ts feat(gui): step1 skeleton — dsc web serves built web UI over booted harness host 2026-07-22 16:24:44 +08:00
verify-cordis-config.ts Merge remote-tracking branch 'origin/master' into worktree/pr343-retarget-latest-master 2026-07-23 13:40:29 +08:00
verify-doc-budgets.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
verify-doc-refs.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
verify-export-jsdoc.ts feat(sdk): add developer project tooling 2026-07-15 23:17:29 +08:00
verify-md-links.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
verify-md-wrap.ts Merge remote-tracking branch 'origin/master' into worktree/docs-website 2026-07-20 10:21:36 +08:00
verify-mermaid.ts Merge remote-tracking branch 'origin/master' into feat/plan-mode 2026-07-22 19:42:14 +08:00
verify-node-next-types.ts fix(scripts): run publint/tsc via node JS entry, not a shell .cmd shim 2026-07-15 16:38:22 +08:00
verify-package-invariants.ts feat(invariants): implement package runtime checks 2026-07-20 00:38:37 +08:00
verify-package-paths.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
verify-package-readme-limitations.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
verify-package-readme-model-experience.ts Merge origin/master into worktree-websettings 2026-07-26 13:15:57 +08:00
verify-runtime-closure.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:40:36 +08:00
verify-translation-pairing.ts feat(i18n): briefing generator and pair-scoped pairing gate 2026-07-27 00:44:21 +08:00
verify-translation-prompt.ts fix(i18n): harden prompt response handling 2026-07-23 23:12:56 +08:00
verify-type-equiv.ts docs: deduplicate paired code-block checks 2026-07-26 02:52:48 +08:00