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

Function removePlanDraftBlocks

src/services/ai/planBlocks.ts:83–85  ·  view source on GitHub ↗
(blocks: readonly T[])

Source from the content-addressed store, hash-verified

81}
82
83export function removePlanDraftBlocks<T extends BlockWithType>(blocks: readonly T[]): T[] {
84 return blocks.filter((block) => block.type !== 'plan_draft').map(cloneBlock)
85}
86
87export function updateLastPlanBlockStatus(
88 blocks: readonly PlanContentBlock[],

Callers 2

planBlocks.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected