/** * Pickup: everything a fresh session needs to continue, in one read. * * `specweave pickup` prints the full form (the next task with its acceptance * criteria, claims held by others, branch and upstream state, the last * handoff, recent notes and the memory index). The SessionStart hook prints * the compact form, which skips Git so the hook stays fast. * * Read-only: nothing here writes the ledger or any file. A session is recorded * when it claims a task, not when it looks. * * @module core/session/pickup */ import { acJson } from '../tasks/accepted-skip.js'; export declare const MEMORY_INDEX_PATH = ".specweave/memory/MEMORY.md"; export interface PickupOptions { /** Increment to focus on; default: the single active (or planned) one. */ incrementId?: string; /** Compact form for the SessionStart hook: no Git, no per-task detail. */ compact?: boolean; /** Override the agent id (tests). */ agent?: string; /** Explicit increment ids in priority order (the hook's active-increment state). */ activeIds?: string[]; /** Home directory holding `.specweave/checkpoints` (tests). */ checkpointHome?: string; /** Checkout whose branch state is shown (a thread's worktree); default: `projectRoot`. */ gitRoot?: string; } export interface PickupResult { text: string; /** Increment the full form focused on, if any. */ incrementId?: string; /** The focused increment's ACs with `acceptance` and accepted-skip `waivers` (full form only). */ criteria?: Array>; } /** Build the pickup text. Returns empty text when there is nothing to say. */ export declare function buildPickup(projectRoot: string, opts?: PickupOptions): PickupResult; /** Title: metadata.title → spec.md frontmatter `title:` → first `# ` heading. */ export declare function readTitle(incDir: string): string; export declare function ageMs(ms: number): string; //# sourceMappingURL=pickup.d.ts.map