agent-afk 5.276.11 → 5.276.13
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.
- package/dist/agent/provider.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query/retry-context.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query/retry-layer.d.ts +2 -0
- package/dist/agent/providers/anthropic-direct/query-runtime.d.ts +1 -0
- package/dist/agent/providers/router/provider-router.d.ts +1 -0
- package/dist/agent/session/agent-session.d.ts +1 -0
- package/dist/agent/session/session-config.d.ts +1 -0
- package/dist/cli/auth-wizard.describe-source.d.ts +2 -0
- package/dist/cli/commands/whatif.mde-handler.d.ts +9 -0
- package/dist/cli.mjs +310 -311
- package/dist/index.mjs +125 -125
- package/dist/telegram.mjs +145 -145
- package/dist/whatif/run.d.ts +2 -0
- package/package.json +1 -1
package/dist/agent/provider.d.ts
CHANGED
|
@@ -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[]>;
|
|
@@ -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<{
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WhatifMdeError as WhatifMdeErrorType } from '../../whatif/run.js';
|
|
2
|
+
export type MdeAction = {
|
|
3
|
+
kind: 'refuse';
|
|
4
|
+
message: string;
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'prompt';
|
|
7
|
+
detail: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function decideMdeAction(err: WhatifMdeErrorType, yes: boolean, isInteractive: boolean): MdeAction;
|