/** * Entire.io Session Parser for the ingestion engine. * * Parses Entire checkpoint data stored on the `entire/checkpoints/v1` * shadow branch WITHOUT checking it out. Extracts: * - Session transcripts (full prompt→response conversations) * - Files touched per session * - Checkpoint metadata (timestamps, commit links, strategy) * - Agent info (Claude Code, Gemini CLI, etc.) * * Entire stores checkpoints in a sharded path structure on the branch: * // * ├── metadata.json (CheckpointSummary: aggregated stats, sessions list) * ├── 1/ (session subdirectory) * │ ├── metadata.json (CommittedMetadata: session-specific details) * │ ├── full.jsonl (transcript in JSONL format) * │ ├── prompt.txt (user prompts) * │ └── context.md (generated context) * └── 2/ ... * * The JSONL transcript format has lines like: * {"uuid":"...","type":"user","message":{"content":"..."},"timestamp":"..."} * {"uuid":"...","type":"assistant","message":{"content":[{"type":"text","text":"..."}]},"timestamp":"..."} */ import type { ParsedDocument } from "./types"; /** * Check if a repository has Entire.io checkpoint data. * * @param repoPath - Path to the git repository root * @returns true if the `entire/checkpoints/v1` branch exists */ export declare function hasEntireBranch(repoPath: string): boolean; /** * Parse Entire.io sessions from a git repository. * * Reads the `entire/checkpoints/v1` branch without checking it out * and extracts all session transcripts, metadata, and file change info. * * @param repoPath - Path to the repository root (must have .git/) * @param options - Optional configuration * @returns ParsedDocument with sections per session */ export declare function parseEntireRepo(repoPath: string, options?: { /** Maximum number of sessions to parse (default: all) */ readonly maxSessions?: number; /** Only include sessions after this date */ readonly since?: string; /** Include raw transcript text in sections (default: true) */ readonly includeTranscripts?: boolean; }): ParsedDocument; //# sourceMappingURL=entire-parser.d.ts.map