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

Function pushItem

desktop/src/features/agents/ui/agentSessionTranscript.ts:117–121  ·  view source on GitHub ↗
(d: TranscriptDraft, item: TranscriptItem)

Source from the content-addressed store, hash-verified

115}
116
117function pushItem(d: TranscriptDraft, item: TranscriptItem) {
118 ensureMutable(d);
119 d.items.push(item);
120 d.itemsById.set(item.id, item);
121}
122
123function sealOpenMessages(d: TranscriptDraft) {
124 let copied = false;

Callers 7

upsertMessageFunction · 0.85
upsertTextItemFunction · 0.85
upsertLifecycleItemFunction · 0.85
replaceLifecycleItemFunction · 0.85
upsertPlanFunction · 0.85
upsertMetadataFunction · 0.85
upsertToolFunction · 0.85

Calls 3

ensureMutableFunction · 0.85
pushMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected