/** * Agent MCP Tools for CLI * * Tool definitions for agent lifecycle management with file persistence. * Includes model routing integration for intelligent model selection. */ import { type MCPTool } from './types.js'; /** * #3215 — agent_spawn's `model` accepts an alias or an exact provider model id * (`claude-opus-5-5`, `gpt-6-astra`, `openrouter/anthropic/claude-sonnet-5.5`, * `qwen3.6:27b`). One pattern is shared by the input schema and the handler so * the two cannot drift. It is anchored, starts with an alphanumeric (so a value * cannot read as a CLI flag), and allows only `._:/@+-` besides alphanumerics: * no whitespace and no shell metacharacters. The character class has no * escapes, so it compiles the same under ajv's `u` flag and under the plain * `new RegExp(pattern)` that @claude-flow/mcp's schema validator uses. */ export declare const MODEL_ID_PATTERN = "^[A-Za-z0-9][A-Za-z0-9._:/@+-]*$"; export declare const MODEL_ID_MAX_LENGTH = 256; /** Returns an error message for an invalid model value, or null when it is valid. */ export declare function modelIdError(value: unknown, label?: string): string | null; /** Live canonical registry members, excluding stale or duplicate swarm IDs. */ export declare function getLiveAgentIds(agentIds: string[]): string[]; export declare const AGENT_STATUSES: readonly ["idle", "busy", "terminated"]; type AgentLifecycleStatus = (typeof AGENT_STATUSES)[number]; /** Canonical lifecycle status (trimmed, any case, known aliases), or null. */ export declare function agentStatusOf(value: unknown): AgentLifecycleStatus | null; /** * Statuses `agent_list` should keep. `null` means no status filter: * omitted, empty, whitespace, or `all` (any case, including inside a comma list). * The caller still hides terminated agents unless includeTerminated is set. */ export declare function agentListStatusFilter(status: unknown): string[] | null; export declare const agentTools: MCPTool[]; export {}; //# sourceMappingURL=agent-tools.d.ts.map