2nd dokployH
Find a file
Tianyi Cui 370b5d3aab Add assertNever with closed-vs-extensible exhaustiveness guidance
assertNever (dsh-llm) marks unreachable defaults on CLOSED unions:
adding a StreamChunk variant now breaks compilation at
BlockAssembler.push, and a value escaping its type at runtime throws
with diagnostics. The module doc and a new AGENTS.md convention spell
out the dividing line: merge-extensible unions (SessionEventMap,
ContentBlockMap, …) must NOT use assertNever — plugin-added variants
are valid unknown values there; handle known cases and fall through
with a comment.
2026-06-11 15:21:25 +08:00
.github/workflows Add CI workflow: full gate matrix on node 24 and 26 2026-06-11 15:08:53 +08:00
docs Sync docs with the defineTool DSL and actual demo code 2026-06-11 13:48:22 +08:00
examples Add branded ID types: CallId, SessionId, AgentId 2026-06-11 15:17:56 +08:00
packages Add assertNever with closed-vs-extensible exhaustiveness guidance 2026-06-11 15:21:25 +08:00
scripts Add lefthook git hooks with a vendor-manifest guard 2026-06-11 15:07:55 +08:00
vendor Enable maximum-strict TypeScript across our packages 2026-06-11 14:02:47 +08:00
.gitignore Enforce 100% per-file test coverage on packages/*/src 2026-06-11 14:58:36 +08:00
.yarnrc.yml Set up monorepo infra: Yarn 4 workspaces, tsc -b + dumble build, vitest 2026-06-11 10:52:45 +08:00
AGENTS.md Add assertNever with closed-vs-extensible exhaustiveness guidance 2026-06-11 15:21:25 +08:00
CLAUDE.md Initialize repo with README, AGENTS.md, and CLAUDE.md symlink 2026-06-10 22:58:56 +08:00
eslint.config.mjs Add ESLint: typescript-eslint strict-type-checked + stylistic formatting 2026-06-11 14:17:58 +08:00
knip.json Add repo hygiene gates: knip, publint, yarn constraints 2026-06-11 15:04:50 +08:00
lefthook.yml Add lefthook git hooks with a vendor-manifest guard 2026-06-11 15:07:55 +08:00
LICENSE Initialize repo with README, AGENTS.md, and CLAUDE.md symlink 2026-06-10 22:58:56 +08:00
package.json Add lefthook git hooks with a vendor-manifest guard 2026-06-11 15:07:55 +08:00
README.md Document the codebase thoroughly and tighten type safety 2026-06-11 13:01:00 +08:00
tsconfig.base.json Enable maximum-strict TypeScript across our packages 2026-06-11 14:02:47 +08:00
tsconfig.build.json Set up monorepo infra: Yarn 4 workspaces, tsc -b + dumble build, vitest 2026-06-11 10:52:45 +08:00
tsconfig.json Set up monorepo infra: Yarn 4 workspaces, tsc -b + dumble build, vitest 2026-06-11 10:52:45 +08:00
tsconfig.test.json Set up monorepo infra: Yarn 4 workspaces, tsc -b + dumble build, vitest 2026-06-11 10:52:45 +08:00
tsconfig.typecheck.json Fix schema-DSL findings from the second Codex review 2026-06-11 13:46:01 +08:00
vitest.config.ts Enforce 100% per-file test coverage on packages/*/src 2026-06-11 14:58:36 +08:00
yarn.config.cjs Add repo hygiene gates: knip, publint, yarn constraints 2026-06-11 15:04:50 +08:00
yarn.lock Add lefthook git hooks with a vendor-manifest guard 2026-06-11 15:07:55 +08:00

DeepSeek Harness

Monorepo for the DeepSeek Harness group.

Projects

  • DeepSeek Code — DeepSeek's coding agent product.

Development

This monorepo is built on the Cordis framework (vendored as source under vendor/), microkernel-style: everything is a plugin.

yarn install
yarn test        # vitest
yarn demo        # runnable echo-agent example

For agent instructions see AGENTS.md. For the architecture design see docs/architecture.md. Each subdirectory has its own README.md with local context: packages/, vendor/.