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

Function createThinkingBlock

cli/src/utils/__tests__/collapse-helpers.test.ts:66–76  ·  view source on GitHub ↗
(
  thinkingId: string,
  thinkingCollapseState?: ThinkingCollapseState,
  userOpened?: boolean,
)

Source from the content-addressed store, hash-verified

64
65// Helper to create thinking/text blocks with thinkingId
66const createThinkingBlock = (
67 thinkingId: string,
68 thinkingCollapseState?: ThinkingCollapseState,
69 userOpened?: boolean,
70): ContentBlock => ({
71 type: 'text',
72 content: 'thinking content',
73 thinkingId,
74 ...(thinkingCollapseState !== undefined && { thinkingCollapseState }),
75 userOpened,
76})
77
78// Helper to create agent-list blocks
79const createAgentListBlock = (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected