MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / addBlock

Function addBlock

cli/src/utils/message-updater.ts:50–55  ·  view source on GitHub ↗
(block: ContentBlock)

Source from the content-addressed store, hash-verified

48 }
49
50 const addBlock = (block: ContentBlock) => {
51 updateAiMessage((msg) => ({
52 ...msg,
53 blocks: [...(msg.blocks ?? []), block],
54 }))
55 }
56
57 const markComplete = (metadata?: Partial<ChatMessage>) => {
58 updateAiMessage((msg) => {

Callers

nothing calls this directly

Calls 1

updateAiMessageFunction · 0.85

Tested by

no test coverage detected