mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
62627d7625deee296b564598c3463634c71b4623
spec.onError is a caller-supplied callback boundary, but the flattening catch invoked it unguarded: a throwing sink rejected the whole async result, breaking the seam's "result never rejects on a child-level failure" contract (and docs/defensive-patterns.md's contain-callback-exceptions rule). The sink's own throw is now swallowed — named as such — while the original child failure still settles as stopReason 'error'. Regression test drives a spawn failure through a throwing sink and asserts result resolves. Same defect as the codex backend's, fixed there on PR #240; this is the symmetric fix for the already-merged ACP backend.
DeepSeek Harness
English | 中文
The DeepSeek Harness SDK is a plugin-based SDK for building agent harnesses.
Development
This monorepo is built on the Cordis framework (vendored as source under vendor/), microkernel-style: everything is a plugin.
pnpm install
pnpm run test # vitest
pnpm run demo:repl # REPL agent demo (needs DEEPSEEK_API_KEY)
pnpm run demo:acp # ACP server agent demo (needs DEEPSEEK_API_KEY)
For humans, start with the development guide for local setup, hooks, environment variables, and quality gates, then read the architecture design and documentation graph index before package work. Local context lives in packages/ and vendor/.
For agents, follow AGENTS.md.
Languages
TypeScript
97%
CSS
1.6%
Python
0.7%
JavaScript
0.6%