import { type ArtifactsMetrics } from "@ai-kod/common"; import { z } from "zod"; import type { ActionDescriptor } from "../types.js"; export declare const SystemStatusInputSchema: z.ZodObject<{ sections: z.ZodOptional, "many">>; tasksLimit: z.ZodOptional; completedLimit: z.ZodOptional; stepsLimit: z.ZodOptional, z.ZodNumber]>>; refresh: z.ZodOptional; verbosity: z.ZodOptional>; }, "strip", z.ZodTypeAny, { verbosity?: "debug" | "summary" | undefined; sections?: ("workers" | "queues" | "tasks")[] | undefined; tasksLimit?: number | undefined; completedLimit?: number | undefined; stepsLimit?: number | "all" | undefined; refresh?: number | undefined; }, { verbosity?: "debug" | "summary" | undefined; sections?: ("workers" | "queues" | "tasks")[] | undefined; tasksLimit?: number | undefined; completedLimit?: number | undefined; stepsLimit?: number | "all" | undefined; refresh?: number | undefined; }>; export type SystemStatusInput = z.infer; export interface SystemStatusSection { status: "ok" | "degraded" | "error"; data?: T; error?: string; } export interface SystemStatusOutput { generatedAt: string; versions?: SystemVersionsSnapshot; sections: { workers?: SystemStatusSection; queues?: SystemStatusSection; tasks?: SystemStatusSection; }; } export interface SystemVersionsSnapshot { serverVersion?: string; workerVersion?: string; } export interface WorkersSection { items: unknown[]; capabilities?: unknown; meta?: Record; } export interface QueuesSection { stats?: unknown; } export interface TasksSection { tasks: Array; completed?: Array; meta?: { activeTotal?: number; completedTotal?: number; }; } export interface TaskSnapshot { taskId?: string; status?: string; workflowId?: string; currentStage?: string | null; totalSteps?: number; stepByStatus?: Record; approxWorkflowProgress?: { percentage?: number; stageFQN?: string; updatedAt?: string; }; lastCrash?: { kind?: string; reportId?: string; createdAt?: string; taskId?: string; workflowId?: string; stepId?: string; stageFQN?: string; message?: string; code?: string; type?: string; retryable?: boolean; decision?: string; recoverable?: boolean; }; createdAt?: string; startedAt?: string; updatedAt?: string; completedAt?: string; waitingContext?: unknown; pauseContext?: unknown; steps?: Array; stepsTotal?: number; stepsTruncated?: boolean; } export interface StepSnapshot { stepId?: string; stageFQN?: string; status?: string; iteration?: number; workerId?: string; startedAt?: string; completedAt?: string; error?: unknown; waitingContext?: unknown; artifactsMetrics?: ArtifactsMetrics; agentActivityCount?: number; agentActivityAt?: string; } export declare const systemStatusAction: ActionDescriptor;