/** * Pure transcript parser for Skill tool_use invocations. * * Accepts raw JSONL transcript content (no fs calls) so this function is * side-effect-free and testable without touching the filesystem. * * Replicates the pairing logic from scripts/backfill-skill-invocations.ts so * the daemon, CLI, and backfill script can share one canonical parser. */ export interface ParsedSkillInvocation { readonly skillName: string; readonly sessionId: string; readonly toolUseId: string; readonly cwd: string; readonly args: string; readonly success: boolean; readonly latencyMs: number; readonly createdAtMs: number; } /** * Parse a full JSONL transcript string and extract Skill tool_use invocations. * * Each Skill `tool_use` block in an `assistant` message is paired with its * matching `tool_result` (by `tool_use_id`) in a later `user` message. * Invocations with no matching result are counted in `skipped`; no record is * emitted for them (avoids fabricating success=true / latency=0). * * Malformed or unparseable lines are silently skipped — they never throw. */ export declare function parseTranscriptSkills(content: string): { records: ParsedSkillInvocation[]; skipped: number; }; //# sourceMappingURL=skill-transcript.d.ts.map