import type { FabricActorInfo, FabricActorMessage, GlobalActorDefinition } from "../actors/types.js"; import type { FabricActivityRun } from "../activity/types.js"; import type { MeshEvent } from "../mesh/store.js"; import type { FabricMainAgentInfo } from "../main-agent.js"; import type { FabricPeerInfo } from "../peer-session.js"; import type { SubagentUsage } from "../subagents/types.js"; export type FabricUiMain = FabricMainAgentInfo; export type FabricUiPeer = FabricPeerInfo; export interface FabricUiAgent { id: string; name: string; status: string; runner?: "pi" | "claude"; transport: string; cwd: string; task?: string; model?: string; thinking?: string; currentTool?: string; startedAt?: number; updatedAt?: number; finishedAt?: number; turns?: number; toolCalls?: number; usage?: SubagentUsage; text?: string; value?: unknown; error?: string; logFile?: string; attachCommand?: string; branch?: string; worktree?: string; actorId?: string; actorName?: string; runId?: string; phaseId?: string; parentId?: string; } export interface FabricUiActor extends FabricActorInfo { /** The actor's default instruction (persona text); shown and edited in the dashboard. */ instructions: string; recentMessages: FabricActorMessage[]; worker?: FabricUiAgent; } export interface FabricUiStateEntry { key: string; label: string; status: string; owner?: string; detail?: string; value: unknown; version: number; updatedAt: number; } export interface FabricDashboardSnapshot { now: number; widgetDismissedAt?: number; runs: FabricActivityRun[]; main: FabricUiMain; peers: FabricUiPeer[]; agents: FabricUiAgent[]; actors: FabricUiActor[]; /** Project-independent actor templates from the global registry. */ globalActors: GlobalActorDefinition[]; state: FabricUiStateEntry[]; events: MeshEvent[]; } export declare const activeStatuses: Set; export declare const isActiveStatus: (status: string) => boolean; export declare const orderAgentsByCreation: (agents: FabricUiAgent[]) => FabricUiAgent[]; //# sourceMappingURL=types.d.ts.map