import type { HistoryPluginRegistry } from './delivery-plugins.js'; import type { CatalogSession, EventCursor, EvidenceCursorInput, HistoryEntry, SessionEvent, SessionFileEdit, SessionToolCall } from './contracts.js'; import { type CatalogSource } from './sdk-common.js'; import { hydrateSession } from './operations.js'; export declare const HANDOFF_CONTRACT_VERSION = 1; export declare const MAX_HANDOFF_INTENT_CHARS = 4000; /** The exact pointer carried in a Relaycast delivery whose metadata kind is `handoff`. */ export interface HandoffPointer { source: CatalogSource; session_id: string; intent: string; origin_agent: string; origin_user: string; } export interface CreateHandoffOptions { dbPath?: string; /** Primarily for embedded hosts and deterministic tests. */ env?: NodeJS.ProcessEnv; } export interface HandoffPromptCursor { timestampMs: number; id: number; } export interface ResumeHandoffCursor { prompt?: HandoffPromptCursor; events?: EventCursor; toolCalls?: EvidenceCursorInput; fileEdits?: EvidenceCursorInput; } export interface ResumeHandoffOptions { dbPath?: string; plugins?: HistoryPluginRegistry; acquisitionTimeoutMs?: number; /** Per-evidence-kind page size. Default 200, maximum 1000. */ limit?: number; cursor?: ResumeHandoffCursor; } export interface ResumeHandoffResult { contract_version: typeof HANDOFF_CONTRACT_VERSION; source: CatalogSource; session_id: string; session: CatalogSession | null; hydration: Awaited>; prompts: HistoryEntry[]; events: SessionEvent[]; tool_calls: SessionToolCall[]; file_edits: SessionFileEdit[]; next_cursor: ResumeHandoffCursor | null; } interface SessionCandidate { source: CatalogSource; sessionId: string; } /** Harness-owned session IDs inherited by an MCP subprocess. Values are never guessed. */ export declare function currentSessionCandidates(env?: NodeJS.ProcessEnv): SessionCandidate[]; /** Build a pointer for the invoking harness's own indexed session. */ export declare function createHandoff(intent: string, options?: CreateHandoffOptions): Promise; /** * Hydrate a same-workspace session, then compose one bounded continuation page * containing every evidence class needed by a coding agent. */ export declare function resumeHandoff(source: CatalogSource, sessionId: string, options?: ResumeHandoffOptions): Promise; export {}; //# sourceMappingURL=handoff.d.ts.map