import { z } from 'zod'; import { type GatewayScope } from '@xopcai/gateway-contract'; import type { CapabilityDispatcher } from '../capabilities/runtime/dispatcher.js'; import { type McpDelegationDeps } from './delegation.js'; declare const productTools: { 'xopc.projects.list': { scope: "workspace.read"; input: z.ZodObject<{ status: z.ZodOptional>; search: z.ZodOptional; sortBy: z.ZodOptional>; sortOrder: z.ZodOptional>; offset: z.ZodDefault; limit: z.ZodDefault; }, z.core.$strict>; output: z.ZodObject<{ ok: z.ZodLiteral; items: z.ZodArray; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>>; total: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$strip>; }; 'xopc.projects.get': { scope: "workspace.read"; output: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; brief: z.ZodOptional; successCriteria: z.ZodArray; nonGoals: z.ZodArray; pinned: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; description: string; }; 'xopc.projects.list_milestones': { scope: "workspace.read"; output: z.ZodObject<{ ok: z.ZodLiteral; projectId: z.ZodString; items: z.ZodArray; sortOrder: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; description: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.projects.list_updates': { scope: "workspace.read"; input: z.ZodObject<{ id: z.ZodString; limit: z.ZodDefault; }, z.core.$strict>; output: z.ZodObject<{ ok: z.ZodLiteral; projectId: z.ZodString; items: z.ZodArray; createdAt: z.ZodNumber; progress: z.ZodArray; risks: z.ZodArray; nextSteps: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.projects.list_context': { scope: "workspace.read"; input: z.ZodObject<{ id: z.ZodString; limit: z.ZodDefault; }, z.core.$strict>; output: z.ZodObject<{ ok: z.ZodLiteral; projectId: z.ZodString; items: z.ZodArray; category: z.ZodEnum<{ code: "code"; decision: "decision"; other: "other"; doc: "doc"; design: "design"; discussion: "discussion"; pr: "pr"; pr_review: "pr_review"; issue: "issue"; repo: "repo"; alert: "alert"; env: "env"; }>; title: z.ZodString; summary: z.ZodOptional; subtitle: z.ZodOptional; target: z.ZodString; url: z.ZodOptional; provider: z.ZodOptional>; pinned: z.ZodBoolean; origin: z.ZodEnum<{ agent: "agent"; pinned: "pinned"; }>; conversationId: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; description: string; }; 'xopc.projects.save_context': { scope: "workspace.write"; output: z.ZodRecord; description: string; }; 'xopc.projects.remove_context': { scope: "workspace.write"; output: z.ZodRecord; description: string; }; 'xopc.projects.create': { scope: "workspace.write"; input: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional; outcome: z.ZodOptional; successCriteria: z.ZodOptional>; nonGoals: z.ZodOptional>; health: z.ZodOptional>; targetAt: z.ZodOptional; }, z.core.$strict>; output: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; description: string; }; 'xopc.projects.update': { scope: "workspace.write"; input: z.ZodObject<{ id: z.ZodString; expectedVersion: z.ZodNumber; patch: z.ZodObject<{ status: z.ZodOptional>; name: z.ZodOptional; description: z.ZodOptional; outcome: z.ZodOptional; successCriteria: z.ZodOptional>; nonGoals: z.ZodOptional>; health: z.ZodOptional>; targetAt: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>; output: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; description: string; }; 'xopc.projects.set_pinned': { scope: "workspace.write"; output: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.projects.create_milestone': { scope: "workspace.write"; output: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; milestone: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; title: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; completed: "completed"; planned: "planned"; }>; sortOrder: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; description: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.projects.update_milestone': { scope: "workspace.write"; output: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; milestone: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; title: z.ZodString; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; completed: "completed"; planned: "planned"; }>; sortOrder: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; description: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.projects.create_update': { scope: "workspace.write"; output: z.ZodObject<{ ok: z.ZodLiteral; project: z.ZodObject<{ name: z.ZodString; version: z.ZodNumber; id: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ cancelled: "cancelled"; active: "active"; paused: "paused"; completed: "completed"; archived: "archived"; planned: "planned"; }>; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; description: z.ZodOptional; outcome: z.ZodOptional; targetAt: z.ZodOptional; }, z.core.$strip>; update: z.ZodObject<{ id: z.ZodString; projectId: z.ZodString; summary: z.ZodString; health: z.ZodEnum<{ unknown: "unknown"; on_track: "on_track"; at_risk: "at_risk"; off_track: "off_track"; }>; createdAt: z.ZodNumber; progress: z.ZodArray; risks: z.ZodArray; nextSteps: z.ZodArray; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.notes.list': { scope: "workspace.read"; input: z.ZodObject<{ status: z.ZodOptional>; kind: z.ZodOptional>; tag: z.ZodOptional; projectId: z.ZodOptional; unassigned: z.ZodOptional; agentEdited: z.ZodOptional; search: z.ZodOptional; pinned: z.ZodOptional; offset: z.ZodDefault; sortBy: z.ZodOptional>; sortOrder: z.ZodOptional>; limit: z.ZodDefault; }, z.core.$strict>; output: z.ZodObject<{ items: z.ZodArray; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; pinned: z.ZodOptional; localVersion: z.ZodOptional; tags: z.ZodOptional>; remoteVersion: z.ZodOptional; snippet: z.ZodOptional; }, z.core.$strip>>; total: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$strip>; }; 'xopc.notes.get': { scope: "workspace.read"; output: z.ZodObject<{ note: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; markdown: z.ZodString; localVersion: z.ZodOptional; remoteVersion: z.ZodOptional; tags: z.ZodOptional>; pinned: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.notes.history': { scope: "workspace.read"; output: z.ZodObject<{ entries: z.ZodArray; snippet: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.notes.snapshot': { scope: "workspace.read"; output: z.ZodObject<{ snapshot: z.ZodObject<{ noteId: z.ZodString; timestamp: z.ZodNumber; trigger: z.ZodEnum<{ edit: "edit"; ai_edit: "ai_edit"; sync: "sync"; restore: "restore"; }>; title: z.ZodOptional; markdown: z.ZodString; tags: z.ZodOptional>; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.notes.project_summaries': { scope: "workspace.read"; output: z.ZodObject<{ items: z.ZodArray; noteCount: z.ZodNumber; updatedAt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.notes.create': { scope: "workspace.write"; input: z.ZodObject<{ projectId: z.ZodOptional; kind: z.ZodOptional>; title: z.ZodOptional; pinned: z.ZodDefault; markdown: z.ZodDefault; tags: z.ZodOptional>; }, z.core.$strict>; output: z.ZodObject<{ note: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; markdown: z.ZodString; localVersion: z.ZodOptional; remoteVersion: z.ZodOptional; tags: z.ZodOptional>; pinned: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.notes.capture': { scope: "workspace.write"; input: z.ZodObject<{ text: z.ZodString; }, z.core.$strict>; output: z.ZodObject<{ note: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; markdown: z.ZodString; localVersion: z.ZodOptional; remoteVersion: z.ZodOptional; tags: z.ZodOptional>; pinned: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.notes.append': { scope: "workspace.write"; output: z.ZodObject<{ note: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; markdown: z.ZodString; localVersion: z.ZodOptional; remoteVersion: z.ZodOptional; tags: z.ZodOptional>; pinned: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.notes.update': { scope: "workspace.write"; input: z.ZodObject<{ id: z.ZodString; expectedRevision: z.ZodNumber; patch: z.ZodObject<{ kind: z.ZodOptional>; title: z.ZodOptional; status: z.ZodOptional>; pinned: z.ZodOptional; markdown: z.ZodOptional; tags: z.ZodOptional>; }, z.core.$strict>; }, z.core.$strict>; output: z.ZodObject<{ note: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; markdown: z.ZodString; localVersion: z.ZodOptional; remoteVersion: z.ZodOptional; tags: z.ZodOptional>; pinned: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.notes.restore': { scope: "workspace.write"; output: z.ZodObject<{ note: z.ZodObject<{ id: z.ZodString; kind: z.ZodEnum<{ task: "task"; todo: "todo"; voice: "voice"; thought: "thought"; media: "media"; bookmark: "bookmark"; mixed: "mixed"; }>; title: z.ZodOptional; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; status: z.ZodEnum<{ archived: "archived"; inbox: "inbox"; processed: "processed"; trashed: "trashed"; }>; markdown: z.ZodString; localVersion: z.ZodOptional; remoteVersion: z.ZodOptional; tags: z.ZodOptional>; pinned: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.tasks.list': { scope: "tasks.read"; input: z.ZodObject<{ phase: z.ZodOptional>; priority: z.ZodOptional>; projectId: z.ZodOptional; search: z.ZodOptional; offset: z.ZodDefault; limit: z.ZodDefault; }, z.core.$strict>; output: z.ZodObject<{ ok: z.ZodLiteral; total: z.ZodNumber; items: z.ZodArray; task: z.ZodObject<{ projectId: z.ZodOptional; version: z.ZodNumber; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; id: z.ZodString; title: z.ZodString; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; resolution: z.ZodOptional>; dueAt: z.ZodOptional; milestoneId: z.ZodOptional; parentTaskId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.tasks.get': { scope: "tasks.read"; output: z.ZodObject<{ operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; ok: z.ZodLiteral; task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; projectId: z.ZodOptional; parentTaskId: z.ZodOptional; milestoneId: z.ZodOptional; }, z.core.$strip>; dependencies: z.ZodArray; resolution: z.ZodOptional>; allocation: z.ZodOptional; selectedAgentId: z.ZodOptional; selectionReason: z.ZodOptional; reasonCode: z.ZodOptional; attempts: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>>; dependents: z.ZodArray; resolution: z.ZodOptional>; allocation: z.ZodOptional; selectedAgentId: z.ZodOptional; selectionReason: z.ZodOptional; reasonCode: z.ZodOptional; attempts: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>>; }, z.core.$strip>; description: string; }; 'xopc.tasks.create': { scope: "tasks.write"; input: z.ZodPipe; priority: z.ZodDefault>; title: z.ZodString; body: z.ZodOptional; locale: z.ZodOptional>; dueAt: z.ZodOptional; milestoneId: z.ZodOptional; parentTaskId: z.ZodOptional; dependencies: z.ZodDefault>; contract: z.ZodObject<{ objective: z.ZodString; expectedOutputs: z.ZodDefault>; acceptanceCriteria: z.ZodDefault>; constraints: z.ZodDefault>; acceptancePolicy: z.ZodDefault>; }, z.core.$strict>; activation: z.ZodDefault; phase: z.ZodDefault>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodTransform<{ contract: { approvalRequired: never[]; assumptions: never[]; risks: never[]; outputDestinations: never[]; objective: string; expectedOutputs: string[]; acceptanceCriteria: string[]; constraints: string[]; acceptancePolicy: "verified_auto" | "verified_then_review" | "manual"; }; priority: "low" | "normal" | "high" | "critical"; title: string; dependencies: string[]; activation: { mode: "capture"; phase: "ready" | "backlog"; }; projectId?: string | undefined; body?: string | undefined; locale?: "en" | "zh" | undefined; dueAt?: number | undefined; milestoneId?: string | undefined; parentTaskId?: string | undefined; }, { priority: "low" | "normal" | "high" | "critical"; title: string; dependencies: string[]; contract: { objective: string; expectedOutputs: string[]; acceptanceCriteria: string[]; constraints: string[]; acceptancePolicy: "verified_auto" | "verified_then_review" | "manual"; }; activation: { mode: "capture"; phase: "ready" | "backlog"; }; projectId?: string | undefined; body?: string | undefined; locale?: "en" | "zh" | undefined; dueAt?: number | undefined; milestoneId?: string | undefined; parentTaskId?: string | undefined; }>>; output: z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; model: z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; projectId: z.ZodOptional; parentTaskId: z.ZodOptional; milestoneId: z.ZodOptional; }, z.core.$strip>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; reason: z.ZodEnum<{ not_found: "not_found"; blocked: "blocked"; conflict: "conflict"; invalid_transition: "invalid_transition"; }>; model: z.ZodOptional; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; projectId: z.ZodOptional; parentTaskId: z.ZodOptional; milestoneId: z.ZodOptional; }, z.core.$strip>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>>; }, z.core.$strip>], "ok">; description: string; }; 'xopc.tasks.update': { scope: "tasks.write"; input: z.ZodObject<{ projectId: z.ZodOptional>; priority: z.ZodOptional>; expectedVersion: z.ZodNumber; title: z.ZodOptional; body: z.ZodOptional>; dueAt: z.ZodOptional>; milestoneId: z.ZodOptional>; parentTaskId: z.ZodOptional>; taskId: z.ZodString; }, z.core.$strict>; output: z.ZodObject<{ ok: z.ZodLiteral; task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; projectId: z.ZodOptional; parentTaskId: z.ZodOptional; milestoneId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.tasks.reorder': { scope: "tasks.write"; output: z.ZodObject<{ ok: z.ZodLiteral; task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; projectId: z.ZodOptional; parentTaskId: z.ZodOptional; milestoneId: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.tasks.update_dependencies': { scope: "tasks.write"; output: z.ZodObject<{ ok: z.ZodLiteral; task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; body: z.ZodOptional; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; version: z.ZodNumber; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; projectId: z.ZodOptional; parentTaskId: z.ZodOptional; milestoneId: z.ZodOptional; }, z.core.$strip>; dependencies: z.ZodArray; resolution: z.ZodOptional>; allocation: z.ZodOptional; selectedAgentId: z.ZodOptional; selectionReason: z.ZodOptional; reasonCode: z.ZodOptional; attempts: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>>; dependents: z.ZodArray; resolution: z.ZodOptional>; allocation: z.ZodOptional; selectedAgentId: z.ZodOptional; selectionReason: z.ZodOptional; reasonCode: z.ZodOptional; attempts: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.tasks.add_context': { scope: "tasks.write"; output: z.ZodRecord; }; 'xopc.tasks.remove_context': { scope: "tasks.write"; output: z.ZodRecord; }; 'xopc.task_runs.list': { scope: "tasks.read"; input: z.ZodObject<{ taskId: z.ZodString; limit: z.ZodDefault; }, z.core.$strict>; output: z.ZodObject<{ ok: z.ZodLiteral; taskId: z.ZodString; items: z.ZodArray; executorKind: z.ZodEnum<{ agent: "agent"; human: "human"; external: "external"; }>; attempt: z.ZodNumber; queuedAt: z.ZodNumber; startedAt: z.ZodOptional; completedAt: z.ZodOptional; terminalCode: z.ZodOptional; version: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; description: string; }; 'xopc.task_runs.get': { scope: "tasks.read"; output: z.ZodObject<{ ok: z.ZodLiteral; run: z.ZodObject<{ id: z.ZodString; taskId: z.ZodString; status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; waiting: "waiting"; verifying: "verifying"; }>; executorKind: z.ZodEnum<{ agent: "agent"; human: "human"; external: "external"; }>; attempt: z.ZodNumber; queuedAt: z.ZodNumber; startedAt: z.ZodOptional; completedAt: z.ZodOptional; terminalCode: z.ZodOptional; version: z.ZodNumber; }, z.core.$strip>; receipt: z.ZodOptional; summary: z.ZodString; needsUser: z.ZodBoolean; completionVerdict: z.ZodOptional>; finalizedAt: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; description: string; }; 'xopc.task_runs.feedback': { scope: "tasks.write"; output: z.ZodRecord; description: string; }; 'xopc.workspace.search': { scope: "workspace.read"; output: z.ZodObject<{ query: z.ZodString; hits: z.ZodArray; id: z.ZodString; title: z.ZodOptional; snippet: z.ZodOptional; spaceId: z.ZodOptional; relativePath: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.automations.list': { scope: "automations.read"; output: z.ZodObject<{ ok: z.ZodLiteral; items: z.ZodArray; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.automations.get': { scope: "automations.read"; output: z.ZodObject<{ ok: z.ZodLiteral; automation: z.ZodObject<{ name: z.ZodString; enabled: z.ZodBoolean; id: z.ZodString; description: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; }; 'xopc.automations.get_run': { scope: "automations.read"; input: z.ZodObject<{ id: z.ZodString; }, z.core.$strict>; output: z.ZodObject<{ ok: z.ZodLiteral; run: z.ZodObject<{ id: z.ZodString; automationId: z.ZodString; status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; cancelling: "cancelling"; timeout: "timeout"; }>; createdAtMs: z.ZodNumber; durationMs: z.ZodOptional; startedAtMs: z.ZodOptional; endedAtMs: z.ZodOptional; currentPhase: z.ZodOptional>; cancelRequestedAtMs: z.ZodOptional; cancelConfirmedAtMs: z.ZodOptional; summary: z.ZodOptional; failureCode: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; description: string; }; 'xopc.automations.history': { scope: "automations.read"; output: z.ZodObject<{ ok: z.ZodLiteral; items: z.ZodArray; createdAtMs: z.ZodNumber; durationMs: z.ZodOptional; startedAtMs: z.ZodOptional; endedAtMs: z.ZodOptional; currentPhase: z.ZodOptional>; cancelRequestedAtMs: z.ZodOptional; cancelConfirmedAtMs: z.ZodOptional; summary: z.ZodOptional; failureCode: z.ZodOptional>; }, z.core.$strip>>; hasMore: z.ZodBoolean; nextCursor: z.ZodOptional; }, z.core.$strip>; }; 'xopc.automations.simulate': { scope: "automations.read"; output: z.ZodRecord; description: string; }; 'xopc.automations.draft': { scope: "automations.write"; output: z.ZodRecord; description: string; }; 'xopc.user_context.profile': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ profile: z.ZodObject<{ callName: z.ZodOptional; role: z.ZodOptional; pronouns: z.ZodOptional; timezone: z.ZodOptional; locale: z.ZodOptional; }, z.core.$strip>; activeGoals: z.ZodArray; id: z.ZodOptional; }, z.core.$strip>; targetAt: z.ZodOptional; }, z.core.$strip>>; priorityWindows: z.ZodArray; urgency: z.ZodNumber; validTo: z.ZodNumber; }, z.core.$strip>>; collaborationRules: z.ZodArray; id: z.ZodOptional; }, z.core.$strip>; statement: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.knowledge.list': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ items: z.ZodArray; id: z.ZodOptional; }, z.core.$strip>; content: z.ZodString; snippet: z.ZodOptional; confidence: z.ZodNumber; importance: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.knowledge.search': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ query: z.ZodString; items: z.ZodArray; id: z.ZodOptional; }, z.core.$strip>; content: z.ZodString; snippet: z.ZodOptional; confidence: z.ZodNumber; importance: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.sessions.list': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ items: z.ZodArray; agentId: z.ZodString; projectId: z.ZodOptional; channel: z.ZodOptional; messageCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; snippet: z.ZodOptional; }, z.core.$strip>>; total: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$strip>; }; 'xopc.sessions.search': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ query: z.ZodString; items: z.ZodArray; agentId: z.ZodString; projectId: z.ZodOptional; channel: z.ZodOptional; messageCount: z.ZodNumber; createdAt: z.ZodString; updatedAt: z.ZodString; snippet: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.sessions.read': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ conversationId: z.ZodString; name: z.ZodOptional; agentId: z.ZodString; projectId: z.ZodOptional; totalMessages: z.ZodNumber; hasMore: z.ZodBoolean; messages: z.ZodArray; text: z.ZodString; entryId: z.ZodOptional; toolName: z.ZodOptional; timestamp: z.ZodOptional; }, z.core.$strip>>; entry: z.ZodOptional; text: z.ZodString; totalChars: z.ZodNumber; textOffset: z.ZodNumber; nextTextOffset: z.ZodNullable; toolName: z.ZodOptional; timestamp: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.files.spaces': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ spaces: z.ZodArray; bindings: z.ZodArray; id: z.ZodString; }, z.core.$strip>>; writable: z.ZodBoolean; lastActivityAt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.files.list': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ spaceId: z.ZodString; path: z.ZodString; items: z.ZodArray; size: z.ZodOptional; mimeType: z.ZodOptional; modifiedAt: z.ZodOptional; revision: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.files.search': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ query: z.ZodString; hits: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.files.get': { readonly scope: "workspace.read"; readonly output: z.ZodObject<{ id: z.ZodString; spaceId: z.ZodString; name: z.ZodString; relativePath: z.ZodString; mimeType: z.ZodOptional; encoding: z.ZodEnum<{ utf8: "utf8"; base64: "base64"; }>; data: z.ZodString; size: z.ZodNumber; offset: z.ZodNumber; nextOffset: z.ZodNullable; revision: z.ZodString; }, z.core.$strip>; }; 'xopc.agent_runs.agents': { readonly scope: "agents.read"; readonly output: z.ZodObject<{ defaultAgentId: z.ZodString; agents: z.ZodArray; description: z.ZodOptional; purpose: z.ZodOptional>; specialties: z.ZodOptional>; skills: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; }; 'xopc.agent_runs.list': { readonly scope: "tasks.read"; readonly output: z.ZodObject<{ items: z.ZodArray; agentId: z.ZodString; status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; waiting: "waiting"; verifying: "verifying"; }>; version: z.ZodNumber; queuedAt: z.ZodNumber; startedAt: z.ZodOptional; completedAt: z.ZodOptional; hasActiveClarification: z.ZodBoolean; }, z.core.$strip>>; hasMore: z.ZodBoolean; }, z.core.$strip>; }; 'xopc.agent_runs.start': { readonly scope: "tasks.write"; readonly output: z.ZodObject<{ runId: z.ZodUUID; taskId: z.ZodUUID; agentId: z.ZodString; status: z.ZodLiteral<"queued">; }, z.core.$strict>; }; 'xopc.agent_runs.get': { readonly scope: "tasks.read"; readonly output: z.ZodObject<{ runId: z.ZodUUID; taskId: z.ZodUUID; agentId: z.ZodString; status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; waiting: "waiting"; verifying: "verifying"; }>; version: z.ZodNumber; queuedAt: z.ZodNumber; startedAt: z.ZodOptional; completedAt: z.ZodOptional; result: z.ZodOptional; summary: z.ZodString; nextAction: z.ZodOptional; needsUser: z.ZodBoolean; completionVerdict: z.ZodOptional>; finalizedAt: z.ZodNumber; verification: z.ZodObject<{ status: z.ZodEnum<{ failed: "failed"; passed: "passed"; unverified: "unverified"; }>; }, z.core.$strip>; failure: z.ZodOptional>; }, z.core.$strip>>; steer: z.ZodOptional; }, z.core.$strip>>; clarification: z.ZodOptional; schemaVersion: z.ZodOptional, z.ZodLiteral<2>]>>; questions: z.ZodOptional; id: z.ZodString; header: z.ZodString; question: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"single_choice">; choices: z.ZodArray; }, z.core.$strict>>; recommendedChoiceId: z.ZodOptional; id: z.ZodString; header: z.ZodString; question: z.ZodString; }, z.core.$strict>], "type">>>; interactionMode: z.ZodOptional>; choiceDetails: z.ZodOptional; }, z.core.$strict>>>; id: z.ZodUUID; version: z.ZodNumber; question: z.ZodString; status: z.ZodEnum<{ open: "open"; queued: "queued"; }>; }, z.core.$strip>>; }, z.core.$strict>; }; 'xopc.agent_runs.result': { readonly scope: "tasks.read"; readonly output: z.ZodObject<{ runId: z.ZodUUID; status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; waiting: "waiting"; verifying: "verifying"; }>; receipt: z.ZodOptional; summary: z.ZodString; nextAction: z.ZodOptional; needsUser: z.ZodBoolean; completionVerdict: z.ZodOptional>; finalizedAt: z.ZodNumber; verification: z.ZodObject<{ status: z.ZodEnum<{ failed: "failed"; passed: "passed"; unverified: "unverified"; }>; }, z.core.$strip>; failure: z.ZodOptional>; }, z.core.$strip>>; text: z.ZodOptional; textSource: z.ZodOptional>; nextTextOffset: z.ZodNullable; artifacts: z.ZodArray; kind: z.ZodString; mimeType: z.ZodOptional; sizeBytes: z.ZodOptional; sha256: z.ZodOptional; canRead: z.ZodBoolean; workspaceFileId: z.ZodOptional; shareUrl: z.ZodOptional; }, z.core.$strip>>; nextArtifactOffset: z.ZodNullable; }, z.core.$strip>; }; 'xopc.agent_runs.artifact_read': { readonly scope: "tasks.read"; readonly output: z.ZodObject<{ runId: z.ZodUUID; artifactId: z.ZodString; encoding: z.ZodLiteral<"base64">; data: z.ZodString; nextOffset: z.ZodNullable; size: z.ZodNumber; revision: z.ZodString; }, z.core.$strip>; }; 'xopc.agent_runs.events': { readonly scope: "tasks.read"; readonly output: z.ZodObject<{ runId: z.ZodUUID; status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; succeeded: "succeeded"; waiting: "waiting"; verifying: "verifying"; }>; nextSequence: z.ZodNumber; hasMore: z.ZodBoolean; events: z.ZodArray>; }, z.core.$strip>; }; 'xopc.agent_runs.respond': { readonly scope: "tasks.write"; readonly output: z.ZodObject<{ runId: z.ZodUUID; clarificationId: z.ZodUUID; status: z.ZodLiteral<"queued">; }, z.core.$strip>; }; 'xopc.agent_runs.steer': { readonly scope: "tasks.write"; readonly output: z.ZodObject<{ runId: z.ZodUUID; inputId: z.ZodUUID; status: z.ZodLiteral<"accepted">; }, z.core.$strip>; }; 'xopc.agent_runs.cancel': { readonly scope: "tasks.write"; readonly output: z.ZodObject<{ runId: z.ZodUUID; taskId: z.ZodUUID; agentId: z.ZodString; version: z.ZodNumber; queuedAt: z.ZodNumber; startedAt: z.ZodOptional; completedAt: z.ZodOptional; result: z.ZodOptional; summary: z.ZodString; nextAction: z.ZodOptional; needsUser: z.ZodBoolean; completionVerdict: z.ZodOptional>; finalizedAt: z.ZodNumber; verification: z.ZodObject<{ status: z.ZodEnum<{ failed: "failed"; passed: "passed"; unverified: "unverified"; }>; }, z.core.$strip>; failure: z.ZodOptional>; }, z.core.$strip>>; steer: z.ZodOptional; }, z.core.$strip>>; clarification: z.ZodOptional; schemaVersion: z.ZodOptional, z.ZodLiteral<2>]>>; questions: z.ZodOptional; id: z.ZodString; header: z.ZodString; question: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"single_choice">; choices: z.ZodArray; }, z.core.$strict>>; recommendedChoiceId: z.ZodOptional; id: z.ZodString; header: z.ZodString; question: z.ZodString; }, z.core.$strict>], "type">>>; interactionMode: z.ZodOptional>; choiceDetails: z.ZodOptional; }, z.core.$strict>>>; id: z.ZodUUID; version: z.ZodNumber; question: z.ZodString; status: z.ZodEnum<{ open: "open"; queued: "queued"; }>; }, z.core.$strip>>; status: z.ZodLiteral<"cancelled">; executionStopConfirmed: z.ZodLiteral; }, z.core.$strict>; }; 'xopc.chat_schedule.get': { readonly scope: "sessions.read"; readonly output: z.ZodObject<{ ok: z.ZodLiteral; state: z.ZodObject<{ conversationId: z.ZodString; schedule: z.ZodNullable>; status: z.ZodEnum<{ expired: "expired"; cancelled: "cancelled"; draft: "draft"; active: "active"; paused: "paused"; completed: "completed"; failed: "failed"; }>; prompt: z.ZodString; watchPrompt: z.ZodOptional; watcherState: z.ZodOptional; watcherAgentId: z.ZodOptional; watcherModel: z.ZodOptional; schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"interval">; everyMs: z.ZodNumber; anchorMs: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"cron">; expr: z.ZodString; tz: z.ZodOptional; }, z.core.$strip>], "kind">; stopCondition: z.ZodOptional; busyPolicy: z.ZodLiteral<"skip">; maxRuns: z.ZodOptional>; runCount: z.ZodNumber; skipCount: z.ZodNumber; consecutiveFailures: z.ZodNumber; maxConsecutiveFailures: z.ZodNumber; expiresAtMs: z.ZodOptional>; nextRunAtMs: z.ZodOptional>; lastRunAtMs: z.ZodOptional>; lastRunStatus: z.ZodOptional>>; stoppedReason: z.ZodOptional; stoppedEvidence: z.ZodOptional; stoppedBy: z.ZodOptional>; stoppedAtMs: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>>; draft: z.ZodNullable>; status: z.ZodEnum<{ expired: "expired"; cancelled: "cancelled"; draft: "draft"; active: "active"; paused: "paused"; completed: "completed"; failed: "failed"; }>; prompt: z.ZodString; watchPrompt: z.ZodOptional; watcherState: z.ZodOptional; watcherAgentId: z.ZodOptional; watcherModel: z.ZodOptional; schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"interval">; everyMs: z.ZodNumber; anchorMs: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"cron">; expr: z.ZodString; tz: z.ZodOptional; }, z.core.$strip>], "kind">; stopCondition: z.ZodOptional; busyPolicy: z.ZodLiteral<"skip">; maxRuns: z.ZodOptional>; runCount: z.ZodNumber; skipCount: z.ZodNumber; consecutiveFailures: z.ZodNumber; maxConsecutiveFailures: z.ZodNumber; expiresAtMs: z.ZodOptional>; nextRunAtMs: z.ZodOptional>; lastRunAtMs: z.ZodOptional>; lastRunStatus: z.ZodOptional>>; stoppedReason: z.ZodOptional; stoppedEvidence: z.ZodOptional; stoppedBy: z.ZodOptional>; stoppedAtMs: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>>; runs: z.ZodArray; decision: z.ZodOptional>; skipReason: z.ZodOptional>; sessionInputId: z.ZodOptional; agentRunId: z.ZodOptional; stoppedSchedule: z.ZodBoolean; stopReason: z.ZodOptional; stopEvidence: z.ZodOptional; watcherSummary: z.ZodOptional; summary: z.ZodOptional; error: z.ZodOptional; triggeredAtMs: z.ZodNumber; finishedAtMs: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; readonly description: "Inspect the current conversation’s active watch/schedule, pending draft, and recent check runs."; }; 'xopc.chat_schedule.propose': { readonly scope: "sessions.write"; readonly output: z.ZodObject<{ ok: z.ZodLiteral; summary: z.ZodString; schedule: z.ZodObject<{ id: z.ZodString; conversationId: z.ZodString; transcriptId: z.ZodString; mode: z.ZodDefault>; status: z.ZodEnum<{ expired: "expired"; cancelled: "cancelled"; draft: "draft"; active: "active"; paused: "paused"; completed: "completed"; failed: "failed"; }>; prompt: z.ZodString; watchPrompt: z.ZodOptional; watcherState: z.ZodOptional; watcherAgentId: z.ZodOptional; watcherModel: z.ZodOptional; schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"interval">; everyMs: z.ZodNumber; anchorMs: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"cron">; expr: z.ZodString; tz: z.ZodOptional; }, z.core.$strip>], "kind">; stopCondition: z.ZodOptional; busyPolicy: z.ZodLiteral<"skip">; maxRuns: z.ZodOptional>; runCount: z.ZodNumber; skipCount: z.ZodNumber; consecutiveFailures: z.ZodNumber; maxConsecutiveFailures: z.ZodNumber; expiresAtMs: z.ZodOptional>; nextRunAtMs: z.ZodOptional>; lastRunAtMs: z.ZodOptional>; lastRunStatus: z.ZodOptional>>; stoppedReason: z.ZodOptional; stoppedEvidence: z.ZodOptional; stoppedBy: z.ZodOptional>; stoppedAtMs: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>; delivery: z.ZodObject<{ version: z.ZodLiteral<2>; operation: z.ZodEnum<{ completed: "completed"; failed: "failed"; created: "created"; updated: "updated"; opened: "opened"; started: "started"; }>; primary: z.ZodOptional; id: z.ZodString; title: z.ZodString; summary: z.ZodOptional; status: z.ZodOptional; revision: z.ZodOptional; projectId: z.ZodOptional; projectTitle: z.ZodOptional; runId: z.ZodOptional; capabilities: z.ZodDefault>>; }, z.core.$strip>>; related: z.ZodOptional; id: z.ZodString; title: z.ZodString; summary: z.ZodOptional; status: z.ZodOptional; revision: z.ZodOptional; projectId: z.ZodOptional; projectTitle: z.ZodOptional; runId: z.ZodOptional; capabilities: z.ZodDefault>>; }, z.core.$strip>>>; presentation: z.ZodOptional; items: z.ZodArray; id: z.ZodString; title: z.ZodString; summary: z.ZodOptional; status: z.ZodOptional; revision: z.ZodOptional; projectId: z.ZodOptional; projectTitle: z.ZodOptional; runId: z.ZodOptional; capabilities: z.ZodDefault>>; }, z.core.$strip>>; truncated: z.ZodBoolean; query: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"diff">; title: z.ZodString; truncated: z.ZodBoolean; edits: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"inline_app">; reference: z.ZodObject<{ kind: z.ZodEnum<{ automation: "automation"; project: "project"; note: "note"; session: "session"; task: "task"; agent: "agent"; file: "file"; calendar_event: "calendar_event"; follow_up: "follow_up"; local_app: "local_app"; chat_preview: "chat_preview"; settings: "settings"; }>; id: z.ZodString; title: z.ZodString; summary: z.ZodOptional; status: z.ZodOptional; revision: z.ZodOptional; projectId: z.ZodOptional; projectTitle: z.ZodOptional; runId: z.ZodOptional; capabilities: z.ZodDefault>>; }, z.core.$strip>; snapshot: z.ZodObject<{ sourceHash: z.ZodString; }, z.core.$strict>; preferredHeight: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"inline_preview">; reference: z.ZodObject<{ kind: z.ZodEnum<{ automation: "automation"; project: "project"; note: "note"; session: "session"; task: "task"; agent: "agent"; file: "file"; calendar_event: "calendar_event"; follow_up: "follow_up"; local_app: "local_app"; chat_preview: "chat_preview"; settings: "settings"; }>; id: z.ZodString; title: z.ZodString; summary: z.ZodOptional; status: z.ZodOptional; revision: z.ZodOptional; projectId: z.ZodOptional; projectTitle: z.ZodOptional; runId: z.ZodOptional; capabilities: z.ZodDefault>>; }, z.core.$strip>; sourceHash: z.ZodString; preferredHeight: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"config_change">; changeId: z.ZodString; tier: z.ZodUnion, z.ZodLiteral<2>]>; target: z.ZodString; title: z.ZodString; canRollback: z.ZodBoolean; changes: z.ZodArray; after: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"chat_schedule_proposal">; scheduleId: z.ZodString; conversationId: z.ZodString; mode: z.ZodDefault>; prompt: z.ZodString; watchPrompt: z.ZodOptional; watcherAgentId: z.ZodOptional; watcherModel: z.ZodOptional; schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"interval">; everyMs: z.ZodNumber; anchorMs: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"cron">; expr: z.ZodString; tz: z.ZodOptional; }, z.core.$strip>], "kind">; stopCondition: z.ZodOptional; maxRuns: z.ZodOptional>; expiresInHours: z.ZodOptional>; missingDetails: z.ZodOptional>; hasBaseline: z.ZodOptional; }, z.core.$strip>], "kind">>; }, z.core.$strip>; }, z.core.$strip>; readonly description: "Propose a sidecar watch (default) or recurring follow-up draft for the CURRENT conversation and render an inline confirmation card so the user can enable with one click or edit in the form. Probe workspace context read-only first, clarify ambiguous high-risk gates (like auto-merge), and pass initialWatcherState JSON baseline when available."; }; 'xopc.chat_schedule.stop': { readonly scope: "sessions.write"; readonly output: z.ZodObject<{ ok: z.ZodLiteral; summary: z.ZodString; schedule: z.ZodObject<{ id: z.ZodString; conversationId: z.ZodString; transcriptId: z.ZodString; mode: z.ZodDefault>; status: z.ZodEnum<{ expired: "expired"; cancelled: "cancelled"; draft: "draft"; active: "active"; paused: "paused"; completed: "completed"; failed: "failed"; }>; prompt: z.ZodString; watchPrompt: z.ZodOptional; watcherState: z.ZodOptional; watcherAgentId: z.ZodOptional; watcherModel: z.ZodOptional; schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"interval">; everyMs: z.ZodNumber; anchorMs: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"cron">; expr: z.ZodString; tz: z.ZodOptional; }, z.core.$strip>], "kind">; stopCondition: z.ZodOptional; busyPolicy: z.ZodLiteral<"skip">; maxRuns: z.ZodOptional>; runCount: z.ZodNumber; skipCount: z.ZodNumber; consecutiveFailures: z.ZodNumber; maxConsecutiveFailures: z.ZodNumber; expiresAtMs: z.ZodOptional>; nextRunAtMs: z.ZodOptional>; lastRunAtMs: z.ZodOptional>; lastRunStatus: z.ZodOptional>>; stoppedReason: z.ZodOptional; stoppedEvidence: z.ZodOptional; stoppedBy: z.ZodOptional>; stoppedAtMs: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; readonly description: "Stop the current conversation’s active watch/schedule when objective facts/tool outputs confirm the stop condition is satisfied or the user asks to stop."; }; 'xopc.chat_schedule.pause': { readonly scope: "sessions.write"; readonly output: z.ZodObject<{ ok: z.ZodLiteral; summary: z.ZodString; schedule: z.ZodObject<{ id: z.ZodString; conversationId: z.ZodString; transcriptId: z.ZodString; mode: z.ZodDefault>; status: z.ZodEnum<{ expired: "expired"; cancelled: "cancelled"; draft: "draft"; active: "active"; paused: "paused"; completed: "completed"; failed: "failed"; }>; prompt: z.ZodString; watchPrompt: z.ZodOptional; watcherState: z.ZodOptional; watcherAgentId: z.ZodOptional; watcherModel: z.ZodOptional; schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"interval">; everyMs: z.ZodNumber; anchorMs: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"cron">; expr: z.ZodString; tz: z.ZodOptional; }, z.core.$strip>], "kind">; stopCondition: z.ZodOptional; busyPolicy: z.ZodLiteral<"skip">; maxRuns: z.ZodOptional>; runCount: z.ZodNumber; skipCount: z.ZodNumber; consecutiveFailures: z.ZodNumber; maxConsecutiveFailures: z.ZodNumber; expiresAtMs: z.ZodOptional>; nextRunAtMs: z.ZodOptional>; lastRunAtMs: z.ZodOptional>; lastRunStatus: z.ZodOptional>>; stoppedReason: z.ZodOptional; stoppedEvidence: z.ZodOptional; stoppedBy: z.ZodOptional>; stoppedAtMs: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; readonly description: "Pause the current conversation’s active watch/schedule."; }; 'xopc.chat_schedule.resume': { readonly scope: "sessions.write"; readonly output: z.ZodObject<{ ok: z.ZodLiteral; summary: z.ZodString; schedule: z.ZodObject<{ id: z.ZodString; conversationId: z.ZodString; transcriptId: z.ZodString; mode: z.ZodDefault>; status: z.ZodEnum<{ expired: "expired"; cancelled: "cancelled"; draft: "draft"; active: "active"; paused: "paused"; completed: "completed"; failed: "failed"; }>; prompt: z.ZodString; watchPrompt: z.ZodOptional; watcherState: z.ZodOptional; watcherAgentId: z.ZodOptional; watcherModel: z.ZodOptional; schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"interval">; everyMs: z.ZodNumber; anchorMs: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"cron">; expr: z.ZodString; tz: z.ZodOptional; }, z.core.$strip>], "kind">; stopCondition: z.ZodOptional; busyPolicy: z.ZodLiteral<"skip">; maxRuns: z.ZodOptional>; runCount: z.ZodNumber; skipCount: z.ZodNumber; consecutiveFailures: z.ZodNumber; maxConsecutiveFailures: z.ZodNumber; expiresAtMs: z.ZodOptional>; nextRunAtMs: z.ZodOptional>; lastRunAtMs: z.ZodOptional>; lastRunStatus: z.ZodOptional>>; stoppedReason: z.ZodOptional; stoppedEvidence: z.ZodOptional; stoppedBy: z.ZodOptional>; stoppedAtMs: z.ZodOptional; createdAtMs: z.ZodNumber; updatedAtMs: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; readonly description: "Resume the current conversation’s paused or stopped watch/schedule."; }; }; export type McpProductToolId = keyof typeof productTools; export interface McpToolsetDefinition { id: string; label: string; description: string; includesWrite: boolean; capabilityIds: readonly McpProductToolId[]; } export declare const MCP_TOOLSETS: readonly McpToolsetDefinition[]; export declare function resolveMcpToolsetCapabilities(toolsetId: string, includeWrites?: boolean): string[] | undefined; export declare function registerMcpProductTools(dispatcher: CapabilityDispatcher, delegation: McpDelegationDeps): void; export declare function isMcpProductTool(id: string): boolean; export declare function listMcpProductTools(includeWrites: boolean): string[]; export declare function mcpProductScopes(ids: readonly string[]): GatewayScope[]; export {};