deepseek-harness/scripts
Tianyi Cui 3672cd25b4 feat(subprocess): migrate lsp-local, subagent-acp, and the env scrubs onto the seam
Review direction (tianyicui, PR #660): in a stacked PR, change all other
process-running places to use the new service.

- lsp-local: LspConnection spawns through ctx.subprocess (piped protocol
  streams + a no-spill collected stderr tail); its private process-tree
  helpers (POSIX group signalling, Windows taskkill, liveness polling) are
  deleted in favor of the seam's handle verbs, and its buildChildEnv now
  rides scrubbedParentEnv (LSP children also stop inheriting stale DSH_*).
  The plugin injects 'subprocess'; compositions/tests mount
  dsh-subprocess-local.
- subagent-acp: the ACP child spawns through the seam (piped ndjson streams,
  inherited stderr); spawn failure surfaces through done-rejection into the
  same startup race; disposal is handle.dispose with the plugin's configured
  graces. dsh-subagent-subprocess is DELETED — its dispose ladder and scrub
  are the seam's, and the isolated-config-dir helper had no consumer.
- mcp-client, pty-local, sdk-helper: adopt scrubbedParentEnv as the one
  scrub definition (their spawns stay put by ownership: the MCP SDK and
  node-pty own those calls; the SDK wizard runs outside any composition).
- Coverage: per-file 100% over every touched src file, with each v8 ignore
  carrying a platform or contract reason; new suites cover stdio
  dispositions, the dispose ladder tiers, injected-win32 tree semantics,
  waitForExit, settled-kill/terminate no-ops, and spawn-failure disposal.
- Docs: consumer-migration Agent Note (en; zh follows in this PR), seam note
  updated in place, subprocess.md rewritten for the reshaped vocabulary
  (type-equiv re-registered), READMEs and SERVICE_ROLES updated, taskkill
  added to knip ignoreBinaries.
2026-07-26 15:27:59 +08:00
..
fixtures/translation-prompt fix(i18n): harden prompt response handling 2026-07-23 23:12:56 +08:00
snapshots Merge remote-tracking branch 'origin/master' into worktree/acp-automation-protocol 2026-07-24 23:43:10 +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 Add lefthook git hooks with a vendor-manifest guard 2026-06-11 15:07:55 +08:00
check-workspace-constraints.ts fix: ci docs/lint 2026-07-22 17:03:10 +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 refactor(process): split the process manager out of the bash executor 2026-07-26 06:59:01 +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 refactor(tsconfig): single root solution graph over host/client aggregates 2026-07-23 03:59:05 +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 refactor(subprocess): rename the process seam to subprocess and address review 2026-07-26 12:43:59 +08:00
gen-doc-graphs.ts feat(subprocess): migrate lsp-local, subagent-acp, and the env scrubs onto the seam 2026-07-26 15:27:59 +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 refactor(subprocess): rename the process seam to subprocess and address review 2026-07-26 12:43:59 +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
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 feat(persistence): compress JSONL logs with Zstandard 2026-07-20 00:06:21 +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-pairing.manifest.json docs(tasks): bilingual pair for the task-registry seam Agent Note 2026-07-26 05:35:04 +08:00
translation-pairing.spec.ts Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
translation-pairing.ts fix(i18n): make translation contracts executable 2026-07-14 23:09:01 +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 refactor(tsconfig): single root solution graph over host/client aggregates 2026-07-23 03:59:05 +08:00
type-equiv.manifest.json feat(subprocess): migrate lsp-local, subagent-acp, and the env scrubs onto the seam 2026-07-26 15:27:59 +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 feat(subprocess): migrate lsp-local, subagent-acp, and the env scrubs onto the seam 2026-07-26 15:27:59 +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 Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
verify-translation-prompt.ts fix(i18n): harden prompt response handling 2026-07-23 23:12:56 +08:00
verify-type-equiv.ts Merge remote-tracking branch 'origin/master' into worktree/docs-website 2026-07-20 10:21:36 +08:00