@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
17 lines • 975 B
TypeScript
export declare const CREDENTIAL_PLACEHOLDER = "senpi-credential-proxy-placeholder";
/** `env` with every declared credential, and any other variable carrying one of their values, set to the placeholder. */
export declare function withCredentialProxy(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
export interface ActivateCredentialProxyOptions {
readonly holder: object;
/** The raw `credentialProxy` value from the user's global settings. */
readonly settings: unknown;
readonly env?: NodeJS.ProcessEnv;
readonly warn: (message: string) => void;
}
/**
* Withholds every declared credential at once, then starts the proxy. Resolves after the proxy listens; rejects when it
* cannot, leaving the credentials withheld and unrouted.
*/
export declare function activateCredentialProxy(options: ActivateCredentialProxyOptions): Promise<void>;
export declare function releaseCredentialProxy(holder: object): Promise<void>;
//# sourceMappingURL=runtime.d.ts.map