UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

27 lines • 1.24 kB
export declare const MAX_ENV_SLOT_INDEX = 16; export type EnvCredentialSlot = { name: string; envVarName: string; key: string; source: "env"; }; /** * Anthropic maps to bearer/OAuth token vars ahead of its API-key var; numbered * slots must extend the API-key lane, so prefer the `*_API_KEY` entry when the * canonical mapping lists several variables. */ export declare function primaryEnvVar(providerId: string): string | undefined; /** * Every name `discoverEnvSlots` can read, for every provider that has env slots: the primary * variable and `<VAR>_2` .. `<VAR>_16`. Names only, never values. */ export declare function envSlotVarNames(): readonly string[]; /** * Discovers numbered env credential slots: the primary var yields slot `env`, * and `<VAR>_2` .. `<VAR>_16` yield `env-2` .. `env-16`. Discovery is * gap-tolerant - a configured `<VAR>_3` with no `<VAR>_2` is still found and no * slot is invented for the gap. Stored credentials keep outranking every env * slot because resolution consults env only when nothing is stored. */ export declare function discoverEnvSlots(providerId: string, env: (name: string) => string | undefined): EnvCredentialSlot[]; //# sourceMappingURL=env-slots.d.ts.map