import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { z } from 'zod'; import type { IAgentOrchestratorClient } from '../orchestrator-client/orchestrator-client.js'; export declare const ActionSessionSchema: z.ZodObject<{ session_id: z.ZodOptional>; action: z.ZodEnum<["follow_up", "pause", "restart", "archive", "unarchive", "change_mcp_servers", "change_model", "set_heartbeat", "fork", "refresh", "refresh_all", "update_notes", "update_title", "toggle_favorite", "bulk_archive"]>; prompt: z.ZodOptional; force_immediate: z.ZodOptional; mcp_servers: z.ZodOptional>; model: z.ZodOptional; enabled: z.ZodOptional; interval_seconds: z.ZodOptional; message_index: z.ZodOptional; session_notes: z.ZodOptional; session_ids: z.ZodOptional>; title: z.ZodOptional; }, "strip", z.ZodTypeAny, { action: "follow_up" | "pause" | "restart" | "archive" | "unarchive" | "change_mcp_servers" | "change_model" | "set_heartbeat" | "fork" | "refresh" | "refresh_all" | "update_notes" | "update_title" | "toggle_favorite" | "bulk_archive"; enabled?: boolean | undefined; prompt?: string | undefined; title?: string | undefined; mcp_servers?: string[] | undefined; session_id?: string | number | undefined; force_immediate?: boolean | undefined; model?: string | undefined; interval_seconds?: number | undefined; message_index?: number | undefined; session_notes?: string | undefined; session_ids?: number[] | undefined; }, { action: "follow_up" | "pause" | "restart" | "archive" | "unarchive" | "change_mcp_servers" | "change_model" | "set_heartbeat" | "fork" | "refresh" | "refresh_all" | "update_notes" | "update_title" | "toggle_favorite" | "bulk_archive"; enabled?: boolean | undefined; prompt?: string | undefined; title?: string | undefined; mcp_servers?: string[] | undefined; session_id?: string | number | undefined; force_immediate?: boolean | undefined; model?: string | undefined; interval_seconds?: number | undefined; message_index?: number | undefined; session_notes?: string | undefined; session_ids?: number[] | undefined; }>; export declare function actionSessionTool(_server: Server, clientFactory: () => IAgentOrchestratorClient): { name: string; description: string; inputSchema: { type: "object"; properties: { session_id: { oneOf: { type: string; }[]; description: "Session ID (numeric) or slug (string). Required for most actions. Not required for \"refresh_all\" and \"bulk_archive\"."; }; action: { type: string; enum: readonly ["follow_up", "pause", "restart", "archive", "unarchive", "change_mcp_servers", "change_model", "set_heartbeat", "fork", "refresh", "refresh_all", "update_notes", "update_title", "toggle_favorite", "bulk_archive"]; description: "Action to perform: \"follow_up\", \"pause\", \"restart\", \"archive\", \"unarchive\", \"change_mcp_servers\", \"change_model\", \"set_heartbeat\", \"fork\", \"refresh\", \"refresh_all\", \"update_notes\", \"update_title\", \"toggle_favorite\", \"bulk_archive\""; }; prompt: { type: string; description: "Required for \"follow_up\" action. The prompt to send to the agent. Not used for other actions."; }; force_immediate: { type: string; description: "Optional for \"follow_up\" action. When true, interrupts a running session to deliver the prompt immediately instead of queuing it. Not used for other actions."; }; mcp_servers: { type: string; items: { type: string; }; description: "Required for \"change_mcp_servers\" action. Array of MCP server names to set for the session."; }; model: { type: string; description: "Required for \"change_model\" action. The model identifier to use (e.g., \"opus\", \"sonnet\")."; }; enabled: { type: string; description: "Optional for \"set_heartbeat\" action. When true, enables the session heartbeat; when false, disables it. Omit to leave the enabled state unchanged (at least one of \"enabled\" or \"interval_seconds\" must be provided)."; }; interval_seconds: { type: string; description: "Optional for \"set_heartbeat\" action. Heartbeat cadence in seconds (30–86400). Omit to leave the interval unchanged (at least one of \"enabled\" or \"interval_seconds\" must be provided)."; }; message_index: { type: string; description: "Required for \"fork\" action. The transcript message index to fork from."; }; session_notes: { type: string; description: "Required for \"update_notes\" action. The notes text to set on the session."; }; session_ids: { type: string; items: { type: string; }; description: "Required for \"bulk_archive\" action. Array of session IDs to archive."; }; title: { type: string; description: "Required for \"update_title\" action. The new title for the session."; }; }; required: string[]; }; handler: (args: unknown) => Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; }; export declare const SelfSessionActionSessionSchema: z.ZodObject<{ session_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; action: z.ZodEnum<["update_notes", "update_title", "set_heartbeat", "archive"]>; session_notes: z.ZodOptional; title: z.ZodOptional; enabled: z.ZodOptional; interval_seconds: z.ZodOptional; }, "strip", z.ZodTypeAny, { session_id: string | number; action: "archive" | "set_heartbeat" | "update_notes" | "update_title"; enabled?: boolean | undefined; title?: string | undefined; interval_seconds?: number | undefined; session_notes?: string | undefined; }, { session_id: string | number; action: "archive" | "set_heartbeat" | "update_notes" | "update_title"; enabled?: boolean | undefined; title?: string | undefined; interval_seconds?: number | undefined; session_notes?: string | undefined; }>; export declare function selfSessionActionSessionTool(_server: Server, clientFactory: () => IAgentOrchestratorClient): { name: string; description: string; inputSchema: { type: "object"; properties: { session_id: { oneOf: { type: string; }[]; description: "Session ID (numeric) or slug (string). Required for most actions. Not required for \"refresh_all\" and \"bulk_archive\"."; }; action: { type: string; enum: readonly ["update_notes", "update_title", "set_heartbeat", "archive"]; description: string; }; session_notes: { type: string; description: "Required for \"update_notes\" action. The notes text to set on the session."; }; title: { type: string; description: "Required for \"update_title\" action. The new title for the session."; }; enabled: { type: string; description: "Optional for \"set_heartbeat\" action. When true, enables the session heartbeat; when false, disables it. Omit to leave the enabled state unchanged (at least one of \"enabled\" or \"interval_seconds\" must be provided)."; }; interval_seconds: { type: string; description: "Optional for \"set_heartbeat\" action. Heartbeat cadence in seconds (30–86400). Omit to leave the interval unchanged (at least one of \"enabled\" or \"interval_seconds\" must be provided)."; }; }; required: string[]; }; handler: (args: unknown) => Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; }; //# sourceMappingURL=action-session.d.ts.map