// tools/schemas/session.ts — Zod schemas for session tools (SPEC-081, SPEC-563)
import { z } from 'zod';
export const SessionFormatEnum = z
    .enum(['markdown', 'json'])
    .describe('Export format: markdown | json');
export const SessionHandoffSchema = {
    projectPath: z.string().min(1).max(4096).describe('Absolute path to the project root'),
    projectId: z
        .string()
        .max(500)
        .optional()
        .describe('Project ID hash. Derived from projectPath if omitted.'),
};
export const RestoreSessionSchema = {
    projectPath: z.string().min(1).max(4096).describe('Absolute path to the project root'),
    sessionId: z
        .string()
        .max(500)
        .optional()
        .describe('Session ID to restore. If omitted, restores the most recent session'),
};
export const ListSessionsSchema = {
    projectPath: z.string().min(1).max(4096).describe('Absolute path to the project root'),
    limit: z.number().optional().describe('Max sessions to return (default 10)'),
};
export const ExportSessionSchema = {
    projectPath: z.string().min(1).max(4096).describe('Absolute path to the project root'),
    sessionId: z
        .string()
        .max(500)
        .optional()
        .describe('Session ID to export. If omitted, exports the most recent session'),
    format: SessionFormatEnum.optional().describe('Export format: markdown | json (default markdown)'),
};
// SPEC-563 — Auto session checkpoint schemas
export const AutoCheckpointSchema = {
    projectPath: z.string().min(1).max(4096).describe('Absolute path to the project root'),
};
export const ConfigureCheckpointPolicySchema = {
    projectPath: z.string().min(1).max(4096).describe('Absolute path to the project root'),
    threshold: z
        .number()
        .int()
        .min(1)
        .optional()
        .describe('Number of tool calls between automatic checkpoints (default 10, min 1)'),
    enabled: z
        .boolean()
        .optional()
        .describe('Whether automatic checkpointing is active (default true)'),
};
//# sourceMappingURL=session.js.map