feat: 添加对 ACP 协议的支持 (#284)

* feat: 适配 zed acp 协议

* docs: 完善 acp 文档
This commit is contained in:
claude-code-best
2026-04-16 20:31:50 +08:00
committed by GitHub
parent cfab161e28
commit 3cb1e50b25
16 changed files with 4339 additions and 2 deletions

View File

@@ -132,6 +132,14 @@ async function main(): Promise<void> {
return
}
// Fast-path for `--acp` — ACP (Agent Client Protocol) agent mode over stdio.
if (feature('ACP') && process.argv[2] === '--acp') {
profileCheckpoint('cli_acp_path')
const { runAcpAgent } = await import('../services/acp/entry.js')
await runAcpAgent()
return
}
// Fast-path for `--daemon-worker=<kind>` (internal — supervisor spawns this).
// Must come before the daemon subcommand check: spawned per-worker, so
// perf-sensitive. No enableConfigs(), no analytics sinks at this layer —