/** * v0.3.0 — parse stage/workflow markers PM embeds in its Task tool prompts. * * Convention (documented in agents/main/chief/SKILL.md): when PM * delegates work to a specialist, it prefixes the Task prompt with: * * [stage:stage-N-name wf:wf-YYYY-MM-DD-slug] * * Either field may be present alone. Lines starting with the marker are * stripped from the prompt before the specialist sees it, but the values * are recorded on the spawn.start event so the WorkflowReconciler can * precisely correlate spawns with stages on bot restart. * * Replaces the v0.3.0 agent-name substring heuristic. */ export interface SpawnMarkers { stageId?: string; workflowId?: string; } /** Extract markers from a Task tool prompt. Defensive — always returns an object. */ export declare function parseSpawnMarkers(prompt: string): SpawnMarkers;