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

Function updateAiMessageBlocks

cli/src/utils/message-updater.ts:41–48  ·  view source on GitHub ↗
(
    blockUpdater: (blocks: ContentBlock[]) => ContentBlock[],
  )

Source from the content-addressed store, hash-verified

39 }
40
41 const updateAiMessageBlocks = (
42 blockUpdater: (blocks: ContentBlock[]) => ContentBlock[],
43 ) => {
44 updateAiMessage((msg) => ({
45 ...msg,
46 blocks: blockUpdater(msg.blocks ?? []),
47 }))
48 }
49
50 const addBlock = (block: ContentBlock) => {
51 updateAiMessage((msg) => ({

Callers

nothing calls this directly

Calls 1

updateAiMessageFunction · 0.85

Tested by

no test coverage detected