/** * Orchestration persistence models — Agent Mesh hard orchestration v1. */ export type OrchestrationAgentRole = 'main' | 'subtask' | 'worker' | 'researcher' | 'executor' | 'reviewer' | 'planner' | 'validator'; export type OrchestrationTaskPhase = 'plan' | 'spec' | 'develop' | 'validate' | 'negotiate' | 'done' | ''; export type OrchestrationRunStatus = 'active' | 'completed' | 'cancelled' | 'failed'; export type OrchestrationTaskStatus = 'pending' | 'running' | 'completed' | 'failed' | 'skipped'; export type OrchestrationExecutorKind = 'local' | 'remote'; export declare const ORCHESTRATION_RUN_MODEL: { id: { type: "text"; nullable: boolean; }; session_key: { type: "text"; nullable: boolean; }; status: { type: "text"; default: string; }; title: { type: "text"; default: string; }; template: { type: "text"; default: string; }; mission_state_json: { type: "text"; default: string; }; state_version: { type: "integer"; default: number; }; created_at: { type: "integer"; default: number; }; updated_at: { type: "integer"; default: number; }; }; export declare const ORCHESTRATION_TASK_MODEL: { id: { type: "text"; nullable: boolean; }; run_id: { type: "text"; nullable: boolean; }; name: { type: "text"; nullable: boolean; }; description: { type: "text"; default: string; }; role: { type: "text"; default: string; }; goal: { type: "text"; default: string; }; status: { type: "text"; default: string; }; depends_on: { type: "text"; default: string; }; executor_kind: { type: "text"; default: string; }; remote_agent_id: { type: "text"; default: string; }; remote_task_id: { type: "text"; default: string; }; priority: { type: "text"; default: string; }; context_json: { type: "text"; default: string; }; is_writer: { type: "integer"; default: number; }; phase: { type: "text"; default: string; }; result_summary: { type: "text"; default: string; }; error: { type: "text"; default: string; }; created_at: { type: "integer"; default: number; }; updated_at: { type: "integer"; default: number; }; started_at: { type: "integer"; nullable: boolean; }; finished_at: { type: "integer"; nullable: boolean; }; }; export interface OrchestrationRunRecord { id: string; session_key: string; status: OrchestrationRunStatus; title: string; template: string; mission_state_json: string; state_version: number; created_at: number; updated_at: number; } export interface OrchestrationTaskRecord { id: string; run_id: string; name: string; description: string; role: OrchestrationAgentRole; goal: string; status: OrchestrationTaskStatus; depends_on: string; executor_kind: OrchestrationExecutorKind; remote_agent_id: string; remote_task_id: string; priority: string; context_json: string; is_writer: number; phase: OrchestrationTaskPhase; result_summary: string; error: string; created_at: number; updated_at: number; started_at: number | null; finished_at: number | null; } export interface CreateOrchestrationRunInput { session_key: string; title?: string; template?: string; } export interface CreateOrchestrationTaskInput { run_id: string; name: string; description?: string; role?: OrchestrationAgentRole; goal?: string; depends_on?: string[]; executor_kind?: OrchestrationExecutorKind; remote_agent_id?: string; priority?: 'low' | 'medium' | 'high' | 'critical'; context?: Record; is_writer?: boolean; phase?: OrchestrationTaskPhase; } export declare function parseDependsOn(json: string): string[]; export declare function serializeDependsOn(ids: string[]): string; //# sourceMappingURL=orchestration-db-models.d.ts.map