UNPKG

@code-yeongyu/senpi

Version:

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

29 lines • 1.5 kB
import type { ClaudeCliAccountCheck } from "./accounts.ts"; import type { AnthropicSubscriptionProviderSettings } from "./settings.ts"; export type DefaultModelSelection = { readonly provider?: string; readonly model?: string; }; /** auth.json keeps the redacted provider message for the UI; a proxy's HTML error page must not bloat it. */ export declare const STORED_CHECK_MESSAGE_MAX_CHARS = 2000; /** * The model the sign-in connection test runs on: the default model when the default provider is this one, else the * provider's own default (`defaultModelPerProvider`), so the test exercises the model the user's turns will use. */ export declare function connectionTestModel(defaults: DefaultModelSelection | undefined): string; export type ClaudeCliConnectionTestInput = { readonly name: string; readonly model: string; readonly executable: string; readonly cwd: string; readonly providerSettings: AnthropicSubscriptionProviderSettings; readonly signal?: AbortSignal; readonly timeoutMs?: number; readonly now?: () => number; }; /** * One "Reply with OK" turn on the named account, pinned with account fallback off, no tools, no setting sources and * no persisted session. The outcome uses the turn classifiers and retains the provider status and redacted message. */ export declare function runClaudeCliConnectionTest(input: ClaudeCliConnectionTestInput): Promise<ClaudeCliAccountCheck>; //# sourceMappingURL=claude-cli-connection-test.d.ts.map