UNPKG

@capgo/cli

Version:
15 lines (14 loc) 822 B
/** Must match CAPGO_API_DEFAULT_VERSION until a newer version is intentionally adopted. */ export declare const CAPGO_CLI_API_VERSION = "2025-10-01"; export declare function setCurrentCliCommand(command: string): void; export declare function getCurrentCliCommand(): string; /** * Validate a single outgoing HTTP header value before fetch/undici builds Headers. * Throws CliUserError with a user-facing message — never includes the secret value. */ export declare function validateCliRequestHeaderValue(headerName: string, value: unknown): string; /** * Build Capgo API request headers that identify this CLI invocation. * Does not invent an API key — callers merge Authorization/capgkey when available. */ export declare function buildCliRequestHeaders(extra?: Record<string, string>): Record<string, string>;