deepseek-harness/scripts
Huanqi Cao d42b118fe3 Spawn tsc by its JS entry so doc-typecheck runs on Windows
execFileSync('node_modules/.bin/tsc') spawns an extensionless shim
that is not executable on Windows (the CVE-2024-27980 class the
sibling scripts hit); the catch treated the spawn failure as a compile
failure with empty diagnostics. The .cmd shim would need shell:true,
which concatenates args unescaped - a hazard for the temp project
path - so invoke typescript/bin/tsc through the current node instead;
identical behavior on every platform.

Note this gate had never actually run on this Windows checkout: with
the pre-eol=lf CRLF working copy the fence regex matched no ts blocks
('.' does not match \\r), so it reported 'no ts code blocks to check'
and exited green. The LF working tree surfaced the spawn bug; with
this fix the gate compiles all 21 blocks on Windows.

(cherry picked from commit b49993c28e068c2beb411eae1f0c8ac4985aa3ae)
2026-07-15 16:09:12 +08:00
..
snapshots/python-sdk-single-exe/advanced fix: complete code runtime surface pruning 2026-07-14 03:18:16 +08:00
build-exe-for-python-sdk.ts docs: align prose with runtime contracts 2026-07-14 16:21:41 +08:00
build-python-release.py python: derive release version from repository 2026-07-13 17:49:01 +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 Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:40:36 +08:00
demo-code-mode.mjs Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 12:34:14 +08:00
doc-budgets.manifest.json fix(snapshot): register filesystem tools through explicit overlay 2026-07-14 21:25:58 +08:00
doc-typecheck.ts Spawn tsc by its JS entry so doc-typecheck runs on Windows 2026-07-15 16:09:12 +08:00
gen-config-catalog.ts Merge remote-tracking branch 'origin/master' into feat/mcp-client 2026-07-14 23:16:43 +08:00
gen-cordis-api.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
gen-cordis-catalog.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
gen-doc-graphs.ts fix: scan one-shot event listeners 2026-07-15 00:49:56 +08:00
gen-module-graph.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 12:34:14 +08:00
gen-persistence-catalog.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
gen-rfc-index.ts docs(rfc): define and enforce a uniform RFC format; adopt it across the corpus 2026-07-05 22:58:25 +08:00
gen-scoped-events.ts fix: lint 2026-07-14 23:44:48 +08:00
gen-tool-catalog.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
install-lefthook.mjs fix(scripts): launch lefthook bin shim via shell on Windows 2026-07-15 16:09:12 +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
package-graph.ts chore: tighten TypeScript duplication lint 2026-07-14 00:24:04 +08:00
publint-all.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
repo-files.ts chore: tighten TypeScript duplication lint 2026-07-14 00:24:04 +08:00
rfc-index.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
run-gates.ts refactor: derive event graphs and scope invariants from TypeScript 2026-07-14 23:37:56 +08:00
smoke-python-runtime.py test(pkg): snapshot advanced Python SDK executable flow 2026-07-13 23:31:26 +08:00
translation-pairing.manifest.json docs(i18n): cookbook batch — six bilingual pairs via the committed pipeline 2026-07-14 07:23:53 -07:00
ts-project.ts fix: lint 2026-07-14 23:44:48 +08:00
type-equiv.manifest.json Merge remote-tracking branch 'origin/master' into codex/simp-prune-code-runtime-surface 2026-07-15 13:58:44 +08:00
verify-cordis-config.ts fix(snapshot): register filesystem tools through explicit overlay 2026-07-14 21:25:58 +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 Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
verify-export-jsdoc.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
verify-md-links.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
verify-md-wrap.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
verify-mermaid.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
verify-node-next-types.ts docs: update rewriteRelativeImportExtensions to current rfc 2026-06-22 09:03:28 +08:00
verify-package-paths.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 00:47:30 +08:00
verify-package-readme-limitations.ts Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 14:37:16 +08:00
verify-package-readme-model-experience.ts Merge remote-tracking branch 'origin/master' into codex/simp-share-loader-smoke-harness 2026-07-14 18:30:10 +08:00
verify-rfc-classification.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00
verify-rfc-format.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +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 Merge remote-tracking branch 'origin/master' into codex/trim-ai-prose 2026-07-14 12:34:14 +08:00
verify-type-equiv.ts docs: rebalance prose cleanup and add trimming skill 2026-07-13 23:27:00 +08:00