agent-afk 5.223.4 → 5.223.6
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/auth/credential-resolver.d.ts +0 -1
- package/dist/agent/providers/shared/tool-result.d.ts +1 -0
- package/dist/agent/tools/dispatcher.batch-process.d.ts +1 -0
- package/dist/agent/tools/dispatcher.execute-batch.d.ts +20 -0
- package/dist/agent/tools/dispatcher.pre-dispatch-gates.d.ts +5 -1
- package/dist/agent/tools/handlers/playwright-hints.d.ts +0 -1
- package/dist/cli.mjs +288 -288
- package/dist/config/env.d.ts +0 -8
- package/dist/index.mjs +112 -112
- package/dist/telegram.mjs +142 -142
- package/dist/utils/git.d.ts +12 -0
- package/package.json +1 -1
|
@@ -4,5 +4,4 @@ export declare function preloadClaudeKeychainOAuth(provider: string): Promise<st
|
|
|
4
4
|
export declare function _resetRefreshedClaudeCodeOauthToken(): void;
|
|
5
5
|
export declare function loadOpenAICredential(): string | undefined;
|
|
6
6
|
export declare function loadXaiApiKey(): string | undefined;
|
|
7
|
-
export declare function loadXaiCredential(): string | undefined;
|
|
8
7
|
export declare function resolveCredentialForModel(model: string | undefined, hints?: ProviderRouteHints): string | undefined;
|
|
@@ -22,3 +22,4 @@ export declare function reconcileOutcomes(settled: PromiseSettledResult<{
|
|
|
22
22
|
export declare function stampBatchMetadata(batch: Batch, executableCalls: readonly IndexedCall[], results: ToolResult[]): void;
|
|
23
23
|
export declare function runConcurrentBatch(batch: Batch, executableCalls: IndexedCall[], results: ToolResult[], deps: BatchExecDeps): Promise<void>;
|
|
24
24
|
export declare function runSequentialBatch(batch: Batch, executableCalls: IndexedCall[], results: ToolResult[], deps: BatchExecDeps): Promise<void>;
|
|
25
|
+
export declare function runParallelGates(indices: readonly number[], calls: readonly ToolCall[], results: ToolResult[], blocked: Set<number>, runGates: (call: ToolCall) => Promise<ToolResult | null>): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RunPreDispatchGatesOpts, PreDispatchGateDeps } from './dispatcher.pre-dispatch-gates.js';
|
|
2
|
+
import type { ToolCall, ToolResult } from '../providers/anthropic-direct/types.js';
|
|
3
|
+
import type { ToolActivityReporter } from '../providers/shared/tool-activity.js';
|
|
4
|
+
import type { RepeatFailureGuard } from './repeat-failure-guard.js';
|
|
5
|
+
import type { SubagentExecutor } from './subagent-executor.js';
|
|
6
|
+
import type { ConcurrencyClassifier } from './types.js';
|
|
7
|
+
export interface ExecuteBatchDeps {
|
|
8
|
+
execute: (call: ToolCall) => Promise<ToolResult>;
|
|
9
|
+
classifier: ConcurrencyClassifier;
|
|
10
|
+
runPreDispatchGates: (call: ToolCall, opts?: RunPreDispatchGatesOpts) => Promise<ToolResult | null>;
|
|
11
|
+
resetDenialBreaker: () => void;
|
|
12
|
+
repeatFailureGuard: RepeatFailureGuard;
|
|
13
|
+
repeatBreakerExemptTools: ReadonlySet<string>;
|
|
14
|
+
executeCore: (call: ToolCall) => Promise<ToolResult>;
|
|
15
|
+
subagentExecutor: SubagentExecutor | undefined;
|
|
16
|
+
sessionId: string | undefined;
|
|
17
|
+
maxConcurrentSafeCalls: number;
|
|
18
|
+
gateDeps: () => PreDispatchGateDeps;
|
|
19
|
+
}
|
|
20
|
+
export declare function executeBatchImpl(calls: ToolCall[], deps: ExecuteBatchDeps, onActivity?: ToolActivityReporter): Promise<ToolResult[]>;
|
|
@@ -35,4 +35,8 @@ export interface PreDispatchGateDeps {
|
|
|
35
35
|
}
|
|
36
36
|
export declare function emitPreToolUseBlock(blockedTool: string, reason: string, deps: PreDispatchGateDeps): Promise<void>;
|
|
37
37
|
export declare function resetDenialBreaker(state: PreDispatchGateMutableState): void;
|
|
38
|
-
export declare function
|
|
38
|
+
export declare function accountDenialBreakerPostGate(call: ToolCall, blockReason: string | undefined, blockResult: ToolResult, deps: PreDispatchGateDeps): ToolResult;
|
|
39
|
+
export interface RunPreDispatchGatesOpts {
|
|
40
|
+
parallelSafe?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare function runPreDispatchGates(call: ToolCall, deps: PreDispatchGateDeps, repeatBreakerExemptTools: ReadonlySet<string>, repeatCircuitBreakerThreshold: number, opts?: RunPreDispatchGatesOpts): Promise<ToolResult | null>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { ToolFailureClass } from '../../trace/types.js';
|
|
2
2
|
export { PLAYWRIGHT_MISSING_HINTS, isPlaywrightMissing, playwrightInstallCommand, playwrightMissingHint, decoratePlaywrightLaunchError, hasPlaywrightInstallHint, resetPlaywrightInstallCommandCache, } from '../../../browser/playwright-missing.js';
|
|
3
|
-
export type { PlaywrightHintOptions } from '../../../browser/playwright-missing.js';
|
|
4
3
|
export declare function browserTimeoutFailureClass(err: unknown): ToolFailureClass | undefined;
|