Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
One-time setup that gathers your project's design context and saves it to CLAUDE.md for future sessions.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/live/completion.mjs
1export function completionTypeForAcceptResult(eventType, acceptResult) {2if (eventType === 'discard') return acceptResult?.handled === true ? 'discarded' : 'error';3if (acceptResult?.handled === true && acceptResult?.carbonize === true) return 'agent_done';4if (acceptResult?.handled === true) return 'complete';5if (acceptResult?.mode === 'error') return 'error';6if (eventType === 'accept' && acceptResult?.previewMode === 'svelte-component') return 'error';7return 'agent_done';8}910export function completionAckForAcceptResult(eventId, completionType, acceptResult) {11const ack = { ok: true, type: completionType };12if (acceptResult?.handled === true && acceptResult?.carbonize === true) {13ack.final = false;14ack.requiresComplete = true;15ack.nextCommand = `live-complete.mjs --id ${eventId}`;16ack.message = 'Carbonize cleanup must be verified, then the session must be completed explicitly before polling again.';17}18return ack;19}20