import { type z } from "zod"; import { mcpOutputBodySchemas } from "../contracts/output-schema-mcp.js"; export type DaemonStatusPayload = z.output; export type DaemonSessionsPayload = z.output; export type DaemonReposPayload = z.output; export type DaemonMonitorsPayload = z.output; export type WorkspaceStatusPayload = z.output; export type WorkspaceAuthorizationsPayload = z.output; export interface DaemonStatusReadSnapshot { readonly status: DaemonStatusPayload; readonly sessions?: DaemonSessionsPayload | undefined; readonly currentRepo?: DaemonReposPayload | undefined; readonly monitors?: DaemonMonitorsPayload | undefined; readonly workspaceStatus?: WorkspaceStatusPayload | undefined; readonly authorizations?: WorkspaceAuthorizationsPayload | undefined; } export type UnknownCount = number | "unknown"; export type DaemonHealth = "ok" | "degraded"; export type DaemonCurrentAuthorization = "authorized" | "not_authorized" | "unknown"; export type DaemonCurrentBindState = "bound" | "unbound" | "unknown"; export type DaemonSchedulerPressure = "idle" | "running" | "queued" | "saturated"; export type DaemonWorkerPressure = "idle" | "busy" | "saturated" | "unknown"; export interface DaemonStatusModel { readonly command: "daemon_status"; readonly cwd: string; readonly daemon: { readonly health: DaemonHealth; readonly transport: DaemonStatusPayload["transport"]; readonly socketPath: string; readonly mcpPath: string; readonly healthPath: string; readonly startedAt: string; readonly sameUserOnly: true; readonly activeWarpRepos: number; }; readonly sessions: { readonly total: number; readonly bound: number; readonly unbound: number; readonly listed: UnknownCount; }; readonly workspaces: { readonly authorized: number; readonly authorizedRepos: number; readonly bound: UnknownCount; readonly current: { readonly cwd: string; readonly authorization: DaemonCurrentAuthorization; readonly bindState: DaemonCurrentBindState; readonly repoId: string | null; readonly worktreeRoot: string | null; readonly activeSessions: number | null; }; }; readonly monitors: { readonly total: number; readonly running: number; readonly paused: number; readonly stopped: number; readonly failing: number; readonly backlog: number; readonly listed: UnknownCount; }; readonly scheduler: { readonly maxConcurrentJobs: number; readonly activeJobs: number; readonly queuedJobs: number; readonly interactiveQueuedJobs: number; readonly backgroundQueuedJobs: number; readonly longestQueuedWaitMs: number; readonly pressure: DaemonSchedulerPressure; }; readonly workers: { readonly mode: DaemonStatusPayload["workers"]["mode"]; readonly totalWorkers: number; readonly busyWorkers: number; readonly idleWorkers: number; readonly queuedTasks: number; readonly pressure: DaemonWorkerPressure; }; readonly degraded: readonly string[]; } export declare function buildDaemonStatusModel(input: { readonly cwd: string; readonly snapshot: DaemonStatusReadSnapshot; }): DaemonStatusModel; //# sourceMappingURL=daemon-status-model.d.ts.map