Implements the RFC 010 MVP: a new `@deepseek-ai/dsh-acp` package bridges the harness agent to the Agent Client Protocol (JSON-RPC 2.0 over newline-delimited stdio), so Zed and other ACP editors can drive the coding agent — streaming render, tool-call display, and resumable sessions via `session/load`. - packages/acp: AgentSideConnection wiring; initialize/newSession/loadSession/ prompt/cancel; a total TurnEndReason→StopReason codec; settle-once with a fallback chain (agent/turn-end → logged turn/end → idle); single-session guard; cwd-must-equal-launch-dir validation; load replays from the persisted event log (assistant/chunk→agent_message_chunk, tool/call/result→tool_call*). - agent: add Agent.whenIdle() quiescence signal to the interface; LoopAgent implements it (resolves on the first running→idle/disposed transition). The bridge awaits it on disposal so teardown reaches quiescence, not just abort. - examples: extract the shared provider/tool core into examples/base.yml; coding-agent nest-includes it; new examples/acp-agent serves the agent over ACP with JSONL persistence and no stdout logger (stdout is the protocol). - Permission gate deferred (TODO(rfc010-permission-gate)): tools run with the executor's full authority; only the Agent→sessionId ownership seam is laid down. Cancel is best-effort for a not-yet-started queued turn (TODO(rfc010-cancel-prestep)). RFC 010 stays `proposed`. - Docs: package README + Zed snippet; client-driver cookbook section; root and packages layout/commands; RFC 010 implementation-status note. 48 bridge tests + whenIdle coverage; 100% per-file coverage; e2e boots the example as a subprocess and verifies a written file on disk (key-gated, with a no-key stdout-purity check).
56 lines
2.5 KiB
JSON
56 lines
2.5 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"]
|
|
}
|
|
}
|
|
}
|