@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
35 lines • 2.47 kB
TypeScript
import type { BlockedAccountState, PinSource, UnavailableAccount } from "./affinity.ts";
import type { SdkErrorKind } from "./errors.ts";
import type { ClaudeCodeRun } from "./executable.ts";
export declare function noAccountGuidance(hasAnthropicCredential: boolean): string;
/**
* The pool context of a failure that left no other account (senpi#4671): the failure stays the error, and this
* names the soonest retry (which goal mode reads) and every account's state. No refusal note: the pool did not
* refuse the request, the account failed it.
*/
export declare function exhaustedPoolGuidance(soonestUnblockAt: number | undefined, accounts: readonly BlockedAccountState[]): string;
export declare function allAccountsBlockedGuidance(soonestUnblockAt: number | undefined, blockReason?: "auth_error", accounts?: readonly BlockedAccountState[]): string;
/**
* How to move off a pinned account. `/claude-account pin` only writes the stored pin, which a CLI or a
* settings pin outranks (`resolveClaudeAccountPin`), so for those it would change nothing (senpi#3672).
*/
export declare function switchAccountLine(pinnedBy: PinSource | undefined): string;
/**
* With account fallback off, only one account may serve (senpi#3465), so the pool-wide advice is wrong:
* other accounts may be healthy, and adding one does not help because it is never used. Name the account
* and the remedies that do work. Every variant carries the refusal note, so the outer credential pool
* fails the request instead of blocking the outer slot it ran on (senpi#2081, senpi#3672).
*/
export declare function singleAccountUnavailableGuidance(account: UnavailableAccount, soonestUnblockAt: number | undefined, blockReason?: "auth_error"): string;
export declare function claudeCodeVersionFloorGuidance(text: string, ran?: ClaudeCodeRun): string | undefined;
export declare function sdkErrorGuidance(kind: SdkErrorKind): string | undefined;
export declare function missingBinaryGuidance(platform: string, arch: string): string;
export type SystemPromptMode = "full" | "override" | "preset-append";
export declare function overrideSystemPromptGuidance(path: string | undefined, reason: string): string;
export declare function resetPresetAppendDeprecation(sessionId?: string): void;
export declare function presetAppendDeprecationGuidance(options: {
mode: SystemPromptMode;
conflict?: boolean;
sessionId: string;
}): string | undefined;
//# sourceMappingURL=guidance.d.ts.map