MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / toPlanContentBlock

Function toPlanContentBlock

src/services/ai/planBlocks.ts:37–39  ·  view source on GitHub ↗
(block: PlanContentBlock)

Source from the content-addressed store, hash-verified

35type BlockWithType = { type: string }
36
37export function toPlanContentBlock(block: PlanContentBlock): PlanContentBlock {
38 return JSON.parse(JSON.stringify(block)) as PlanContentBlock
39}
40
41function cloneBlock<T>(block: T): T {
42 return JSON.parse(JSON.stringify(block)) as T

Callers 2

planBlocks.test.tsFile · 0.90
replacePlanDraftWithPlanFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected