UNPKG

@code-yeongyu/senpi

Version:

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

26 lines • 1.66 kB
import type { AuthOperationOptions, Credential, CredentialInfo, CredentialStore, OAuthAuth } from "@earendil-works/pi-ai"; /** Async credential store overlay for non-persistent runtime API keys. */ export declare class RuntimeCredentials implements CredentialStore { readonly withRefreshLock?: CredentialStore["withRefreshLock"]; private readonly store; private readonly overrides; constructor(store: CredentialStore); /** The store extension OAuth providers register into; a session's ModelRegistry reads it (senpi#3434). */ get backingStore(): CredentialStore; registerOAuthProvider(providerId: string, oauth: OAuthAuth): void; unregisterOAuthProvider(providerId: string): void; setRuntimeApiKey(providerId: string, apiKey: string): void; removeRuntimeApiKey(providerId: string): void; hasRuntimeApiKey(providerId: string): boolean; /** * Reads that found the backing store locked and answered from its cached snapshot. * Stores that never report contention count as 0. */ busyReadCount(): number; read(providerId: string, options?: AuthOperationOptions): Promise<Credential | undefined>; readSlot(providerId: string, slotName: string, options?: AuthOperationOptions): Promise<Credential | undefined>; list(options?: AuthOperationOptions): Promise<readonly CredentialInfo[]>; modify(providerId: string, fn: (current: Credential | undefined) => Promise<Credential | undefined>, options?: AuthOperationOptions): Promise<Credential | undefined>; delete(providerId: string, options?: AuthOperationOptions): Promise<void>; } //# sourceMappingURL=runtime-credentials.d.ts.map