agent-afk 5.276.11 → 5.276.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -177,6 +177,7 @@ export interface ProviderQuery extends AsyncIterable<ProviderEvent> {
177
177
  setBeforeNextRound?(cb: (() => string | undefined) | undefined): void;
178
178
  reauth?(): Promise<{
179
179
  accountId: string;
180
+ oldAccountId: string;
180
181
  swapped: boolean;
181
182
  } | null>;
182
183
  close(): void | Promise<void>;
@@ -12,6 +12,7 @@ export interface RetryTierContext {
12
12
  rotateHeaders(runInput: Pick<RunTurnInput, 'effort' | 'fastMode'>): Record<string, string>;
13
13
  forceClientRefresh(): Promise<{
14
14
  accountId: string;
15
+ oldAccountId: string;
15
16
  swapped: boolean;
16
17
  } | null>;
17
18
  getUsageLimitWait(): Promise<UsageLimitWaitResult> | null;
@@ -14,6 +14,7 @@ export interface RetryLayerOptions {
14
14
  }
15
15
  export declare class RetryLayer {
16
16
  private _client;
17
+ private _clientToken;
17
18
  private readonly _authMode;
18
19
  private readonly initSessionId;
19
20
  private readonly baseUrl?;
@@ -30,6 +31,7 @@ export declare class RetryLayer {
30
31
  private tierContext;
31
32
  forceClientRefresh(): Promise<{
32
33
  accountId: string;
34
+ oldAccountId: string;
33
35
  swapped: boolean;
34
36
  } | null>;
35
37
  turnWithRetries(runInput: RunTurnInput, isClosed: () => boolean): AsyncGenerator<ProviderEvent, void, void>;
@@ -47,6 +47,7 @@ export declare class AnthropicDirectQuery implements ProviderQuery {
47
47
  accountInfo(): Promise<ProviderAccountInfo>;
48
48
  reauth(): Promise<{
49
49
  accountId: string;
50
+ oldAccountId: string;
50
51
  swapped: boolean;
51
52
  } | null>;
52
53
  rewindFiles(_userMessageId: string, _options?: {
@@ -42,6 +42,7 @@ export declare class ProviderRouter implements ProviderQuery {
42
42
  setSystemPrompt(basePrompt: string | undefined): boolean;
43
43
  reauth(): Promise<{
44
44
  accountId: string;
45
+ oldAccountId: string;
45
46
  swapped: boolean;
46
47
  } | null>;
47
48
  supportedCommands(): Promise<ProviderCommandInfo[]>;
@@ -54,6 +54,7 @@ export declare class AgentSession implements IAgentSession {
54
54
  setCwd(cwd: string): void;
55
55
  reauth(): Promise<{
56
56
  accountId: string;
57
+ oldAccountId: string;
57
58
  swapped: boolean;
58
59
  } | null>;
59
60
  getPrePlanMode(): PermissionMode | undefined;
@@ -19,6 +19,7 @@ export declare function setSystemPrompt(basePrompt: string | undefined, deps: Co
19
19
  export declare function setCwd(cwd: string, deps: ConfigDeps): void;
20
20
  export declare function reauth(deps: ConfigDeps): Promise<{
21
21
  accountId: string;
22
+ oldAccountId: string;
22
23
  swapped: boolean;
23
24
  } | null>;
24
25
  export declare function takePendingPlanExitSeed(deps: ConfigDeps): Promise<{
@@ -1 +1,3 @@
1
1
  export declare function describeCredentialSource(): string;
2
+ export type CredentialSourceId = 'ANTHROPIC_API_KEY' | 'CLAUDE_CODE_OAUTH_TOKEN' | 'claude-code-keychain' | 'claude-code-session-refresh';
3
+ export declare function credentialSourceId(): CredentialSourceId | null;