agent-afk 5.276.2 → 5.276.4
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/providers/anthropic-direct/query-options.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query-runtime.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query-turn-driver.d.ts +1 -0
- package/dist/agent/whatif-episode-gate.d.ts +1 -0
- package/dist/cli.mjs +308 -308
- package/dist/index.mjs +125 -125
- package/dist/telegram.mjs +150 -150
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export interface AnthropicDirectQueryOptions {
|
|
|
10
10
|
promptStream: AsyncIterable<ProviderUserTurn>;
|
|
11
11
|
toolDispatcher: ToolDispatcher;
|
|
12
12
|
sessionId?: string;
|
|
13
|
+
cwd?: string;
|
|
13
14
|
initialMessages?: MessageParam[];
|
|
14
15
|
messageJournal?: import('../../journal/index.js').MessageJournal;
|
|
15
16
|
initialUsageInputTokens?: number;
|
|
@@ -16,6 +16,7 @@ export declare class AnthropicDirectQuery implements ProviderQuery {
|
|
|
16
16
|
private readonly softDeadlineMs?;
|
|
17
17
|
private readonly traceWriter?;
|
|
18
18
|
private readonly subagentId?;
|
|
19
|
+
private readonly _cwd;
|
|
19
20
|
private readonly state;
|
|
20
21
|
private readonly abort;
|
|
21
22
|
private readonly retry;
|
|
@@ -26,6 +26,7 @@ export interface TurnDriverContext {
|
|
|
26
26
|
readonly throttleQueue: import('./throttle-queue.js').ThrottleQueue | undefined;
|
|
27
27
|
readonly fastModeController: import('../../fast-mode.js').FastModeController | undefined;
|
|
28
28
|
readonly beforeNextRound: (() => string | undefined) | undefined;
|
|
29
|
+
readonly cwd: string;
|
|
29
30
|
composeSystem(): ContentBlockParam[] | null;
|
|
30
31
|
makeInterruptedTurnEvent(): ProviderEvent;
|
|
31
32
|
compact(): Promise<ProviderCompactResult>;
|
|
@@ -3,4 +3,5 @@ export declare function resetWhatifEpisodeGateForTests(): void;
|
|
|
3
3
|
export declare function isWhatifEpisode(): boolean;
|
|
4
4
|
export declare function keepContextHooksInEpisode(): boolean;
|
|
5
5
|
export declare const EPISODE_BLOCK_REASON: string;
|
|
6
|
+
export declare const EPISODE_ASK_BLOCK_REASON: string;
|
|
6
7
|
export declare function createWhatifEpisodeGate(): (context: HookContext) => HookDecision;
|