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

Function sessionUpdate

desktop/src/features/agents/ui/agentSessionTranscript.test.mjs:237–251  ·  view source on GitHub ↗
(seq, update, overrides = {})

Source from the content-addressed store, hash-verified

235});
236
237function sessionUpdate(seq, update, overrides = {}) {
238 return {
239 ...baseEvent,
240 ...overrides,
241 seq,
242 kind: "acp_read",
243 payload: {
244 method: "session/update",
245 params: {
246 sessionId: overrides.sessionId ?? baseEvent.sessionId,
247 update,
248 },
249 },
250 };
251}
252
253function assistantChunk(seq, messageId, text, overrides = {}) {
254 return sessionUpdate(

Callers 2

assistantChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected