/** * Detect which coding-agent harness is running this process so we can show a * useful identity in the tunnel "Who's here" list (instead of generic * "Vendor Agent" / "Customer Agent"). * * Detection is env-only — harnesses set these vars on spawned shells / MCP. */ export type AgentHarnessId = "cursor-cloud" | "cursor" | "claude-code" | "codex" | "opencode" | "gemini-cli" | "amp" | "copilot-cloud" | "windsurf" | "aider" | "unknown"; export interface DetectedAgentHarness { id: AgentHarnessId; /** Primary label shown as member display_name. */ label: string; } type EnvMap = Record; /** * Detect the agent harness from an environment map (defaults to process.env). * More specific cloud checks run before local/interactive variants. */ export declare function detectAgentHarness(env?: EnvMap): DetectedAgentHarness; /** Default display name for an agent seat — harness first, role as fallback. */ export declare function defaultAgentName(role: "vendor" | "customer", env?: EnvMap): string; export {};