/** * Container detection (no pi imports, so tests run standalone). * Moved from ~/.pi/agent/extensions/container-status.ts. */ type Env = Record; export interface ContainerInfo { /** docker | podman | devcontainer | codespace | kubernetes | container */ kind: string; /** Best available human name: devcontainer/codespace/pod name, else the hostname. */ name: string; /** name came from an explicit label (DEVCONTAINER_NAME): show it without a kind prefix. */ named?: boolean; } export interface Probe { env: Env; exists: (path: string) => boolean; read: (path: string) => string | undefined; hostname: () => string; } export declare function detectContainer(p?: Probe): ContainerInfo | undefined; /** Label for a container: the kind is prefixed unless the name already says it. */ export declare function containerLabel(c: ContainerInfo): string; export {};