import type { McpServer, ServerContext } from "@modelcontextprotocol/server"; import type { WorkflowRunEventsResourceDocument } from "./workflow-resources.js"; import type { WorkflowNotificationRequest } from "./workflow-notifications.js"; export declare const RUN_MONITOR_RESOURCE_URI = "ui://agentprism-workflow/run-monitor.html"; export declare const WORKFLOW_EVENTS_TOOL_NAME = "workflow-events"; export declare const WORKFLOW_RUNS_TOOL_NAME = "workflow-runs"; export declare const WORKFLOW_MONITOR_TOOL_NAME = "workflow_monitor"; export declare const WORKFLOW_NOTIFICATIONS_TOOL_NAME = "workflow-notifications"; export interface WorkflowRunListItem { runId: string; workflowName: string; status: "pending" | "running" | "paused" | "completed" | "failed" | "aborted"; startedAt: string; updatedAt: string; currentPhase?: string; } /** The dependencies the server shell binds when registering the panel surface. */ export interface WorkflowAppUiDeps { openMonitor(runId: string): { runId: string; status: WorkflowRunListItem["status"]; scriptUri: string; eventsUri?: string; }; notification(request: WorkflowNotificationRequest & { scopeId?: string; }, ctx: ServerContext): { send: boolean; token?: string; } | { ok: true; }; /** Cursor-paged, redacted run events (shared with the events resource). */ readEventsPage(request: { runId: string; after?: number; limit?: number; streamId?: string; }): WorkflowRunEventsResourceDocument; /** One bounded active/recent query in the anchor run's authoritative project store. */ listRecentRuns(request: { anchorRunId: string; limit: number; }): WorkflowRunListItem[]; /** * Route reads of a fixed URI through the server's custom resources/read dispatch * (WorkflowScriptResources replaces the SDK default, so ui:// must be registered there too). */ registerResourceReader(uri: string, read: () => { contents: Array<{ uri: string; mimeType: string; text: string; }>; }): void; } /** Register the run-monitor panel resource and its app-only events tool. */ export declare function registerWorkflowAppUi(mcp: McpServer, deps: WorkflowAppUiDeps): void; //# sourceMappingURL=app-ui.d.ts.map