MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / removePlanDraftBlocks

Function removePlanDraftBlocks

apps/cli/src/ai/chat-command.ts:226–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 }
225
226 const removePlanDraftBlocks = () => {
227 for (let index = contentBlocks.length - 1; index >= 0; index--) {
228 if (contentBlocks[index]?.type === 'plan_draft') {
229 contentBlocks.splice(index, 1)
230 }
231 }
232 }
233
234 const appendFinalPlanBlock = (plan: PlanContentBlock) => {
235 const planBlock = JSON.parse(JSON.stringify(plan)) as PlanContentBlock

Callers 1

runChatTurnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected