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

Function isPlanDraftBlock

src/services/ai/planBlocks.ts:45–47  ·  view source on GitHub ↗
(block: BlockWithType | undefined)

Source from the content-addressed store, hash-verified

43}
44
45function isPlanDraftBlock(block: BlockWithType | undefined): block is PlanDraftContentBlock {
46 return block?.type === 'plan_draft' && typeof (block as { text?: unknown }).text === 'string'
47}
48
49export function appendPlanDraftDelta<T extends BlockWithType>(
50 blocks: readonly T[],

Callers 2

appendPlanDraftDeltaFunction · 0.85
replacePlanDraftWithPlanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected