2nd dokployH
Find a file
Tianyi Cui cb6bee3d03 Add ESLint: typescript-eslint strict-type-checked + stylistic formatting
Flat config with two layers. Correctness (type-checked): the headline
rules for this codebase are no-floating-promises / no-misused-promises
(a lost promise in the agent loop is our primary bug class),
switch-exhaustiveness-check (we switch over merge-extensible unions
everywhere), no-unnecessary-condition, require-await, and
no-explicit-any. Style (@stylistic): 2-space, no semicolons, single
quotes, trailing commas, max-len 140 — the existing house style, now
enforced instead of drifting between agents. vendor/ is excluded
(vendored source keeps upstream style); tests relax the rules that
fight test ergonomics (non-null assertions after expects, async mock
signatures, non-Error throws).

Code adjusted to pass: registry disposers wrap ctx.effect's
promise-returning disposer behind a sync () => void (our public API),
BlockAssembler gains an invariant-checking mustGet instead of non-null
assertions, lastTurnNumber uses findLast, waterfall tails return
Promise.resolve instead of async-without-await arrows, and the two
deliberate suppressions (non-exhaustive derivation switch, unbound
execute pass-through) carry justification comments.

yarn lint / yarn lint:fix added.
2026-06-11 14:17:58 +08:00
docs Sync docs with the defineTool DSL and actual demo code 2026-06-11 13:48:22 +08:00
examples Add ESLint: typescript-eslint strict-type-checked + stylistic formatting 2026-06-11 14:17:58 +08:00
packages Add ESLint: typescript-eslint strict-type-checked + stylistic formatting 2026-06-11 14:17:58 +08:00
scripts Set up monorepo infra: Yarn 4 workspaces, tsc -b + dumble build, vitest 2026-06-11 10:52:45 +08:00
vendor Enable maximum-strict TypeScript across our packages 2026-06-11 14:02:47 +08:00
.gitignore Fix architecture-review findings in the loop and service packages 2026-06-11 12:19:16 +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 Document the codebase thoroughly and tighten type safety 2026-06-11 13:01:00 +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
LICENSE Initialize repo with README, AGENTS.md, and CLAUDE.md symlink 2026-06-10 22:58:56 +08:00
package.json Add ESLint: typescript-eslint strict-type-checked + stylistic formatting 2026-06-11 14:17:58 +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 Set up monorepo infra: Yarn 4 workspaces, tsc -b + dumble build, vitest 2026-06-11 10:52:45 +08:00
yarn.lock Add ESLint: typescript-eslint strict-type-checked + stylistic formatting 2026-06-11 14:17:58 +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/.