refactor(acp): reduce bridge to automation protocol

This commit is contained in:
Tianyi Cui
2026-07-24 01:40:25 +08:00
parent b06bcfd21c
commit e819a586b0
406 changed files with 3880 additions and 21325 deletions

View File

@@ -65,8 +65,8 @@ describe.skipIf(!process.env.DEEPSEEK_API_KEY)('acp-agent e2e: a PreToolUse hook
// Verify that the denied hook left no filesystem effect.
await expect(access(join(workdir, 'proof.txt'))).rejects.toThrow()
// A blocked call is still streamed with the hook's reason as an error.
const toolCalls = updates.filter(u => u.sessionUpdate === 'tool_call' || u.sessionUpdate === 'tool_call_update')
expect(toolCalls.length).toBeGreaterThan(0)
// ACP publishes only the committed answer; hook/tool trace stays in the session log.
expect(updates.length).toBeGreaterThan(0)
expect(updates.every(update => update.sessionUpdate === 'agent_message_chunk')).toBe(true)
}, 180_000)
})