/** * `/sandboxes/`: what the sandboxes service mounts read-only. `cluster.json` * records the cluster `nylorun local sandbox enable` installed into; `token` is the * ServiceAccount token (0600). Only the sandboxes container reads them: the runtime * container sees an empty mount there. */ export interface ClusterFile { context: string; /** The API server URL in the kubeconfig. */ server: string; /** host:port the sandboxes container dials. */ dial: string; /** The name the API server's certificate is verified against. */ tlsServerName: string; /** The cluster CA, base64 PEM. */ caData: string; namespace: string; controllerVersion: string; hostAddress: string; bindAddress: string; ports: { harness: number; gates: number; egress: number; }; networkPolicy: { enforced: boolean; probedAt: string; }; enabledAt: string; /** agent-sandbox when absent; substrate for Agent Substrate (ADR-138, preview). */ backend?: "agent-sandbox" | "substrate"; /** Agent Substrate: where the Tenant's actors live and the edge actors reach the Runtime by. */ substrate?: { atespace: string; systemNamespace: string; apiService: string; serviceAccount: string; endpoint?: string; version?: string; /** keysPort: where the keys provider reaches the egress service's decide route (ADR-142). */ edge: { host: string; harnessPort: number; gatesPort: number; keysPort?: number; }; workerSelector?: Record; /** The keys provider's name, once it is deployed and registered with Substrate's egress. */ keysProvider?: string; }; } export declare function sandboxesDir(root: string): string; export declare function clusterFilePath(root: string): string; /** Sandboxes are enabled for the Tenant under `root`. */ export declare function sandboxesEnabled(root: string): boolean; export declare function readClusterFile(root: string): Promise; export declare function writeClusterFiles(root: string, cluster: ClusterFile, token: string): Promise; export declare function removeClusterFiles(root: string): Promise; /** * How the sandboxes container reaches the API server. One on this machine's loopback * (Docker Desktop's `https://127.0.0.1:`) is dialled at `host.docker.internal:` * while the certificate is still verified against the kubeconfig's host (Experiment 2, Q3). */ export declare function apiRoute(server: string): { dial: string; tlsServerName: string; };