MCPcopy Create free account
hub / github.com/block/buzz / acpToolUpdate

Function acpToolUpdate

desktop/src/features/agents/ui/agentSessionTranscript.test.mjs:22–35  ·  view source on GitHub ↗
(seq, update)

Source from the content-addressed store, hash-verified

20const PROMPT_EVENT_ID = "c".repeat(64);
21
22function acpToolUpdate(seq, update) {
23 return {
24 ...baseEvent,
25 seq,
26 kind: "acp_read",
27 payload: {
28 method: "session/update",
29 params: {
30 sessionId: baseEvent.sessionId,
31 update,
32 },
33 },
34 };
35}
36
37function toolItems(events) {
38 return buildTranscript(events).filter((item) => item.type === "tool");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected