mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
Logic that lived under examples/ was outside the per-file 100% coverage
gate (examples/ are not workspaces) and, in the stdio-UI case, duplicated
across two examples. Move it into packages/ so it is gated and de-duped.
- packages/ui-stdio (new): unify the two diverged stdio-chat.ts copies into
one @deepseek-ai/dsh-ui-stdio plugin (welcome/agent Config). A test-only
I/O seam (createStdioChat(ctx, config, runtime)) keeps process streams out
of the serializable config and makes every render/EOF/disposal branch
unit-testable. Per-file 100%. echo/coding cordis.yml now load the package;
both src/stdio-chat.ts deleted.
- packages/llm-replay (new): move examples/acp-agent/src/llm-replay.ts (+ its
spec) here so its derive/parse/replay branches fall under the coverage gate.
cordis.snapshot.yml + README rewired to the package name; added apply/env
/assertNever/abort tests to reach per-file 100%.
- examples/{echo,coding}-agent: keyless Loader-path e2e smokes that boot the
real cordis.yml (no key) — the guard a hand-mounted unit test cannot be for
the unwrapExports/export-shape class (postmortem 0001). examples/AGENTS.md
codifies the keyless+with-key smoke convention (keyless-by-nature exception
for echo-agent).
- AGENTS.md: a scoped, removal-triggered pre-release stance (foundation over
blast radius). packages/README.md: new rows + a FIXME to later regroup ALL
packages into a hierarchy. Wiring: tsconfig paths/refs, publint, knip,
module-graph.
Verified: typecheck, lint, test:coverage (887 tests, 100%), build, hygiene,
doc-sync, test:snapshot (10), test:e2e (6 keyless pass, with-key self-skip).
58 lines
2.7 KiB
JSON
58 lines
2.7 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2024",
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"declaration": true,
|
|
"emitDeclarationOnly": true,
|
|
"composite": true,
|
|
"incremental": true,
|
|
"skipLibCheck": true,
|
|
"esModuleInterop": true,
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": false,
|
|
"strict": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"exactOptionalPropertyTypes": true,
|
|
"noImplicitOverride": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"types": ["node"],
|
|
// Source-level resolution for the build graph: without this, a fresh
|
|
// checkout's first `tsc -b` resolves sibling vendor plugins through their
|
|
// package.json types (vendor/*/lib/*.d.ts) which don't exist yet — TS2307
|
|
// until a second run. Derived configs that want lib resolution
|
|
// (tsconfig.typecheck.json) override this map wholesale.
|
|
"paths": {
|
|
"cordis": ["./vendor/cordis/src"],
|
|
"cosmokit": ["./vendor/cosmokit/src"],
|
|
"schemastery": ["./vendor/schemastery/src"],
|
|
"@cordisjs/plugin-loader": ["./vendor/loader/src"],
|
|
"@cordisjs/plugin-include": ["./vendor/include/src"],
|
|
"@cordisjs/plugin-group": ["./vendor/group/src"],
|
|
"@cordisjs/plugin-timer": ["./vendor/timer/src"],
|
|
"@cordisjs/plugin-hmr": ["./vendor/hmr/src"],
|
|
"@cordisjs/plugin-logger-console": ["./vendor/logger-console/src"],
|
|
"@deepseek-ai/dsh-llm": ["./packages/llm/src"],
|
|
"@deepseek-ai/dsh-session": ["./packages/session/src"],
|
|
"@deepseek-ai/dsh-session-persistence": ["./packages/session-persistence/src"],
|
|
"@deepseek-ai/dsh-session-persistence-jsonl": ["./packages/session-persistence-jsonl/src"],
|
|
"@deepseek-ai/dsh-session-persistence-sqlite": ["./packages/session-persistence-sqlite/src"],
|
|
"@deepseek-ai/dsh-system-prompt": ["./packages/system-prompt/src"],
|
|
"@deepseek-ai/dsh-tools": ["./packages/tools/src"],
|
|
"@deepseek-ai/dsh-agent": ["./packages/agent/src"],
|
|
"@deepseek-ai/dsh-agent-loop": ["./packages/agent-loop/src"],
|
|
"@deepseek-ai/dsh-bash": ["./packages/bash/src"],
|
|
"@deepseek-ai/dsh-llm-deepseek": ["./packages/llm-deepseek/src"],
|
|
"@deepseek-ai/dsh-llm-pi-ai": ["./packages/llm-pi-ai/src"],
|
|
"@deepseek-ai/dsh-bash-local": ["./packages/bash-local/src"],
|
|
"@deepseek-ai/dsh-tool-bash": ["./packages/tool-bash/src"],
|
|
"@deepseek-ai/dsh-invariants": ["./packages/invariants/src"],
|
|
"@deepseek-ai/dsh-acp": ["./packages/acp/src"],
|
|
"@deepseek-ai/dsh-ui-stdio": ["./packages/ui-stdio/src"],
|
|
"@deepseek-ai/dsh-llm-replay": ["./packages/llm-replay/src"]
|
|
}
|
|
}
|
|
}
|