import type { FabricOwnedModelGuidance } from "../components/model-guidance.js"; import type { FabricAgentConfig, FabricMeshConfig, FabricRetentionConfig } from "../config.js"; import type { AgentHandleInfo, AgentRunRequest } from "../agents/types.js"; import type { MeshIdentity } from "../mesh/store.js"; export declare const RESIDENT_HOST_FORMAT: 1; export declare const residentHostId: (rootId: string) => string; export declare const residentRoot: (meshRoot: string, rootId: string) => string; export declare const residentDeliveryPrefix: (rootId: string) => string; export interface ResidentHostConfig { format: typeof RESIDENT_HOST_FORMAT; rootId: string; sessionId: string; cwd: string; projectRoot: string; meshRoot: string; actorRoot: string; residencyRoot: string; fullCodeMode: boolean; agents: FabricAgentConfig; mesh: FabricMeshConfig; retention: FabricRetentionConfig; workerPath: string; fabricExtensionPath: string; piBinary: string; claudeBinary: string; vedaBinary: string; modelGuidance?: FabricOwnedModelGuidance[]; } export interface ResidentHostOwner { format: typeof RESIDENT_HOST_FORMAT; hostId: string; pid: number; token: string; startedAt: number; readyAt: number; } interface ResidentSpawnCommand { format: typeof RESIDENT_HOST_FORMAT; operation: "spawn"; requestId: string; rootId: string; request: AgentRunRequest; createdAt: number; } interface ResidentCleanupCommand { format: typeof RESIDENT_HOST_FORMAT; operation: "cleanup"; requestId: string; rootId: string; id: string; deleteBranch: boolean; createdAt: number; } interface ResidentForegroundCommand { format: typeof RESIDENT_HOST_FORMAT; operation: "foreground"; requestId: string; rootId: string; id: string; createdAt: number; } interface ResidentRemoveActorCommand { format: typeof RESIDENT_HOST_FORMAT; operation: "removeActor"; requestId: string; rootId: string; id: string; createdAt: number; } export type ResidentCommand = ResidentSpawnCommand | ResidentCleanupCommand | ResidentForegroundCommand | ResidentRemoveActorCommand; export interface ResidentCommandResponse { format: typeof RESIDENT_HOST_FORMAT; requestId: string; ok: boolean; handle?: AgentHandleInfo; error?: string; completedAt: number; } export interface ResidentAgentMetadata { format: typeof RESIDENT_HOST_FORMAT; rootId: string; id: string; runDirectory: string; handle: AgentHandleInfo; worktreeGitRoot?: string; createdAt: number; updatedAt: number; } export interface ResidentDeliveryRecord { format: typeof RESIDENT_HOST_FORMAT; id: string; rootId: string; from: MeshIdentity; delivery: "steer" | "followUp"; triggerTurn: boolean; message: string; data?: unknown; createdAt: number; } export {}; //# sourceMappingURL=protocol.d.ts.map