export type HandoffStatus = "created" | "dry_run"; export type HandoffTarget = "codewith" | string; export type CodewithLaunchMode = "interactive" | "exec"; export interface HandoffAuthRef { agent: string; name: string; } export interface HandoffTurnV1 { role: string; timestamp: string | null; text: string; source_line: number; } export interface ExternalHandoffBundleV1 { schema: "ExternalHandoffBundleV1"; version: 1; id: string; idempotency_key: string; created_at: string; status: HandoffStatus; source: { agent: string; session_id: string | null; transcript_path: string | null; transcript_detected_by: string; cwd: string; machine: string; user: string; }; target: { agent: string; }; cwd: { path: string; exists: boolean; }; repo: { root: string | null; name: string | null; }; git: { is_repo: boolean; branch: string | null; sha: string | null; origin_url: string | null; status_short: string; dirty: boolean; }; context: { redacted: true; summary: string; recent_turns: HandoffTurnV1[]; transcript_sha256: string | null; }; auth_refs: HandoffAuthRef[]; verification: { status: "not_run" | "provided"; notes: string[]; }; blockers: { status: "none" | "present"; items: string[]; }; source_exit: { automatic: false; reason: string; }; warnings: string[]; bundle_hash: string; } export interface HandoffLaunchPlan { target: string; mode: CodewithLaunchMode; command: string[]; shell_command: string; prompt: string; source_exit_automatic: false; alternates: Array<{ name: string; mode: CodewithLaunchMode; command: string[]; shell_command: string; }>; } export interface CreateExternalHandoffBundleOptions { target: HandoffTarget; sourceAgent?: string; sourceSession?: string; sourceTranscript?: string; cwd?: string; idempotencyKey?: string; contextSummary?: string; authRefs?: string[]; verification?: string[]; blockers?: string[]; dryRun?: boolean; maxTurns?: number; maxTurnChars?: number; codewithAuthProfile?: string; codewithMode?: CodewithLaunchMode; now?: Date | string; env?: NodeJS.ProcessEnv; } export interface ExternalHandoffResultV1 { bundle: ExternalHandoffBundleV1; bundle_path: string; handoffs_dir: string; written: boolean; launch: HandoffLaunchPlan | null; } export declare function redactHandoffText(input: string): string; export declare function createExternalHandoffBundleV1(options: CreateExternalHandoffBundleOptions): ExternalHandoffResultV1; export declare function renderHandoffSkillWrapper(agent: string): string; //# sourceMappingURL=handoff.d.ts.map