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

@@ -1184,6 +1184,17 @@ export class QueryEngine {
this.abortController.abort()
}
/** Reset the abort controller so the next submitMessage() call can start
* with a fresh, non-aborted signal. Must be called after interrupt(). */
resetAbortController(): void {
this.abortController = createAbortController()
}
/** Expose the current abort signal for external consumers (e.g. ACP bridge). */
getAbortSignal(): AbortSignal {
return this.abortController.signal
}
getMessages(): readonly Message[] {
return this.mutableMessages
}