/** * synap agent run / schedule / tick * * The CLI is a thin trigger. The IS handles all reasoning and tool execution * server-side via MCP. The CLI's responsibilities are: * 1. Resolve which agent (and its pod/workspace) to use * 2. Send the goal to IS /v1/chat/completions * 3. Store the final output as a `research` entity on the pod * 4. Display the result * * Schedules are stored as `task` entities on the pod (not local files) so they * are visible in pod-admin and shareable across machines. * `synap agent tick` reads due schedules from the pod and fires them. * Wire it to the pod server's crontab for autonomous execution. */ type Persona = "researcher" | "assistant" | "developer"; export interface RunOpts { goal: string; persona?: Persona; model?: string; workspace?: string; maxTokens?: number; dryRun?: boolean; podUrl?: string; apiKey?: string; } export interface ScheduleOpts { goal?: string; name?: string; persona?: Persona; model?: string; workspace?: string; every?: "hourly" | "daily" | "weekly"; list?: boolean; remove?: string; runNow?: boolean; podUrl?: string; apiKey?: string; } export declare function agentRun(opts: RunOpts): Promise; export declare function agentSchedule(opts: ScheduleOpts): Promise; export declare function agentTick(opts: { dryRun?: boolean; podUrl?: string; apiKey?: string; }): Promise; export {};