/** * Zod schema for session_close tool parameters */ import { z } from "zod"; /** * Closing reflection schema */ export declare const ClosingReflectionSchema: z.ZodObject<{ what_broke: z.ZodString; what_took_longer: z.ZodString; do_differently: z.ZodString; what_worked: z.ZodString; wrong_assumption: z.ZodString; scars_applied: z.ZodUnion<[z.ZodString, z.ZodArray]>; /** Q7: What from this session should be captured as institutional memory? */ institutional_memory_items: z.ZodOptional, string, string[]>]>>; /** Q8: How did the human prefer to work this session? */ collaborative_dynamic: z.ZodOptional, string, string[]>]>>; /** Q9: What collaborative dynamic worked or didn't work? */ rapport_notes: z.ZodOptional, string, string[]>]>>; }, "strip", z.ZodTypeAny, { what_broke: string; what_worked: string; wrong_assumption: string; do_differently: string; what_took_longer: string; scars_applied: string | string[]; institutional_memory_items?: string | undefined; collaborative_dynamic?: string | undefined; rapport_notes?: string | undefined; }, { what_broke: string; what_worked: string; wrong_assumption: string; do_differently: string; what_took_longer: string; scars_applied: string | string[]; institutional_memory_items?: string | string[] | undefined; collaborative_dynamic?: string | string[] | undefined; rapport_notes?: string | string[] | undefined; }>; export type ClosingReflection = z.infer; /** * Task completion proof schema */ export declare const TaskCompletionSchema: z.ZodObject<{ questions_displayed_at: z.ZodEffects; reflection_completed_at: z.ZodEffects; human_asked_at: z.ZodEffects; human_response: z.ZodString; human_response_at: z.ZodEffects; }, "strip", z.ZodTypeAny, { questions_displayed_at: string; reflection_completed_at: string; human_asked_at: string; human_response_at: string; human_response: string; }, { questions_displayed_at: string; reflection_completed_at: string; human_asked_at: string; human_response_at: string; human_response: string; }>; export type TaskCompletion = z.infer; /** * Session decision schema */ export declare const SessionDecisionSchema: z.ZodObject<{ title: z.ZodString; decision: z.ZodString; rationale: z.ZodString; alternatives_considered: z.ZodOptional>; }, "strip", z.ZodTypeAny, { title: string; decision: string; rationale: string; alternatives_considered?: string[] | undefined; }, { title: string; decision: string; rationale: string; alternatives_considered?: string[] | undefined; }>; export type SessionDecision = z.infer; /** * Scar usage entry schema */ export declare const ScarUsageEntrySchema: z.ZodObject<{ scar_identifier: z.ZodString; issue_id: z.ZodOptional; issue_identifier: z.ZodOptional; session_id: z.ZodOptional; agent: z.ZodOptional; surfaced_at: z.ZodEffects; acknowledged_at: z.ZodOptional>; reference_type: z.ZodEnum<["explicit", "implicit", "acknowledged", "refuted", "none"]>; reference_context: z.ZodString; execution_successful: z.ZodOptional; variant_id: z.ZodOptional; }, "strip", z.ZodTypeAny, { surfaced_at: string; reference_type: "explicit" | "implicit" | "acknowledged" | "refuted" | "none"; reference_context: string; scar_identifier: string; agent?: string | undefined; session_id?: string | undefined; issue_id?: string | undefined; issue_identifier?: string | undefined; acknowledged_at?: string | undefined; execution_successful?: boolean | undefined; variant_id?: string | undefined; }, { surfaced_at: string; reference_type: "explicit" | "implicit" | "acknowledged" | "refuted" | "none"; reference_context: string; scar_identifier: string; agent?: string | undefined; session_id?: string | undefined; issue_id?: string | undefined; issue_identifier?: string | undefined; acknowledged_at?: string | undefined; execution_successful?: boolean | undefined; variant_id?: string | undefined; }>; export type ScarUsageEntry = z.infer; export declare const SessionCloseParamsSchema: z.ZodObject<{ session_id: z.ZodEffects; close_type: z.ZodEnum<["standard", "quick", "autonomous", "retroactive"]>; task_completion: z.ZodOptional; reflection_completed_at: z.ZodEffects; human_asked_at: z.ZodEffects; human_response: z.ZodString; human_response_at: z.ZodEffects; }, "strip", z.ZodTypeAny, { questions_displayed_at: string; reflection_completed_at: string; human_asked_at: string; human_response_at: string; human_response: string; }, { questions_displayed_at: string; reflection_completed_at: string; human_asked_at: string; human_response_at: string; human_response: string; }>>; closing_reflection: z.ZodOptional]>; /** Q7: What from this session should be captured as institutional memory? */ institutional_memory_items: z.ZodOptional, string, string[]>]>>; /** Q8: How did the human prefer to work this session? */ collaborative_dynamic: z.ZodOptional, string, string[]>]>>; /** Q9: What collaborative dynamic worked or didn't work? */ rapport_notes: z.ZodOptional, string, string[]>]>>; }, "strip", z.ZodTypeAny, { what_broke: string; what_worked: string; wrong_assumption: string; do_differently: string; what_took_longer: string; scars_applied: string | string[]; institutional_memory_items?: string | undefined; collaborative_dynamic?: string | undefined; rapport_notes?: string | undefined; }, { what_broke: string; what_worked: string; wrong_assumption: string; do_differently: string; what_took_longer: string; scars_applied: string | string[]; institutional_memory_items?: string | string[] | undefined; collaborative_dynamic?: string | string[] | undefined; rapport_notes?: string | string[] | undefined; }>>; human_corrections: z.ZodOptional; decisions: z.ZodOptional>; }, "strip", z.ZodTypeAny, { title: string; decision: string; rationale: string; alternatives_considered?: string[] | undefined; }, { title: string; decision: string; rationale: string; alternatives_considered?: string[] | undefined; }>, "many">>; open_threads: z.ZodOptional; created_at: z.ZodString; resolved_at: z.ZodOptional; source_session: z.ZodOptional; resolved_by_session: z.ZodOptional; resolution_note: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; created_at: string; status: "open" | "resolved"; text: string; resolved_at?: string | undefined; resolution_note?: string | undefined; source_session?: string | undefined; resolved_by_session?: string | undefined; }, { id: string; created_at: string; status: "open" | "resolved"; text: string; resolved_at?: string | undefined; resolution_note?: string | undefined; source_session?: string | undefined; resolved_by_session?: string | undefined; }>]>, "many">>; project_state: z.ZodOptional; learnings_created: z.ZodOptional]>, "many">>; linear_issue: z.ZodOptional; ceremony_duration_ms: z.ZodOptional; scars_to_record: z.ZodOptional; issue_identifier: z.ZodOptional; session_id: z.ZodOptional; agent: z.ZodOptional; surfaced_at: z.ZodEffects; acknowledged_at: z.ZodOptional>; reference_type: z.ZodEnum<["explicit", "implicit", "acknowledged", "refuted", "none"]>; reference_context: z.ZodString; execution_successful: z.ZodOptional; variant_id: z.ZodOptional; }, "strip", z.ZodTypeAny, { surfaced_at: string; reference_type: "explicit" | "implicit" | "acknowledged" | "refuted" | "none"; reference_context: string; scar_identifier: string; agent?: string | undefined; session_id?: string | undefined; issue_id?: string | undefined; issue_identifier?: string | undefined; acknowledged_at?: string | undefined; execution_successful?: boolean | undefined; variant_id?: string | undefined; }, { surfaced_at: string; reference_type: "explicit" | "implicit" | "acknowledged" | "refuted" | "none"; reference_context: string; scar_identifier: string; agent?: string | undefined; session_id?: string | undefined; issue_id?: string | undefined; issue_identifier?: string | undefined; acknowledged_at?: string | undefined; execution_successful?: boolean | undefined; variant_id?: string | undefined; }>, "many">>; capture_transcript: z.ZodOptional; transcript_path: z.ZodOptional>; }, "strip", z.ZodTypeAny, { session_id: string; close_type: "autonomous" | "standard" | "quick" | "retroactive"; decisions?: { title: string; decision: string; rationale: string; alternatives_considered?: string[] | undefined; }[] | undefined; transcript_path?: string | undefined; linear_issue?: string | undefined; closing_reflection?: { what_broke: string; what_worked: string; wrong_assumption: string; do_differently: string; what_took_longer: string; scars_applied: string | string[]; institutional_memory_items?: string | undefined; collaborative_dynamic?: string | undefined; rapport_notes?: string | undefined; } | undefined; human_corrections?: string | undefined; scars_to_record?: { surfaced_at: string; reference_type: "explicit" | "implicit" | "acknowledged" | "refuted" | "none"; reference_context: string; scar_identifier: string; agent?: string | undefined; session_id?: string | undefined; issue_id?: string | undefined; issue_identifier?: string | undefined; acknowledged_at?: string | undefined; execution_successful?: boolean | undefined; variant_id?: string | undefined; }[] | undefined; learnings_created?: (string | Record)[] | undefined; open_threads?: (string | { id: string; created_at: string; status: "open" | "resolved"; text: string; resolved_at?: string | undefined; resolution_note?: string | undefined; source_session?: string | undefined; resolved_by_session?: string | undefined; })[] | undefined; project_state?: string | undefined; task_completion?: { questions_displayed_at: string; reflection_completed_at: string; human_asked_at: string; human_response_at: string; human_response: string; } | undefined; ceremony_duration_ms?: number | undefined; capture_transcript?: boolean | undefined; }, { session_id: string; close_type: "autonomous" | "standard" | "quick" | "retroactive"; decisions?: { title: string; decision: string; rationale: string; alternatives_considered?: string[] | undefined; }[] | undefined; transcript_path?: string | undefined; linear_issue?: string | undefined; closing_reflection?: { what_broke: string; what_worked: string; wrong_assumption: string; do_differently: string; what_took_longer: string; scars_applied: string | string[]; institutional_memory_items?: string | string[] | undefined; collaborative_dynamic?: string | string[] | undefined; rapport_notes?: string | string[] | undefined; } | undefined; human_corrections?: string | undefined; scars_to_record?: { surfaced_at: string; reference_type: "explicit" | "implicit" | "acknowledged" | "refuted" | "none"; reference_context: string; scar_identifier: string; agent?: string | undefined; session_id?: string | undefined; issue_id?: string | undefined; issue_identifier?: string | undefined; acknowledged_at?: string | undefined; execution_successful?: boolean | undefined; variant_id?: string | undefined; }[] | undefined; learnings_created?: (string | Record)[] | undefined; open_threads?: (string | { id: string; created_at: string; status: "open" | "resolved"; text: string; resolved_at?: string | undefined; resolution_note?: string | undefined; source_session?: string | undefined; resolved_by_session?: string | undefined; })[] | undefined; project_state?: string | undefined; task_completion?: { questions_displayed_at: string; reflection_completed_at: string; human_asked_at: string; human_response_at: string; human_response: string; } | undefined; ceremony_duration_ms?: number | undefined; capture_transcript?: boolean | undefined; }>; export type SessionCloseParams = z.infer; /** * Validate session_close params with close type specific rules */ export declare function validateSessionCloseParams(params: unknown): { success: boolean; data?: SessionCloseParams; error?: string; warnings?: string[]; }; //# sourceMappingURL=session-close.d.ts.map