agent-afk 5.15.9 → 5.15.10
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/tools/dispatcher.d.ts +3 -0
- package/dist/cli.mjs +270 -270
- package/dist/index.mjs +94 -94
- package/dist/telegram.mjs +115 -115
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ import type { CanUseTool } from '../types/sdk-types.js';
|
|
|
11
11
|
import type { TraceWriter } from '../trace/index.js';
|
|
12
12
|
export declare function defaultConcurrencyClassifier(toolName: string): boolean;
|
|
13
13
|
export declare const REPEAT_CIRCUIT_BREAKER_THRESHOLD = 8;
|
|
14
|
+
export declare const DEFAULT_MAX_CONCURRENT_SAFE_TOOL_CALLS = 8;
|
|
14
15
|
export interface SessionToolDispatcherOptions {
|
|
15
16
|
handlers: Map<string, ToolHandler>;
|
|
16
17
|
schemas: AnthropicToolDef[];
|
|
@@ -21,6 +22,7 @@ export interface SessionToolDispatcherOptions {
|
|
|
21
22
|
skillExecutor?: SkillExecutor;
|
|
22
23
|
composeExecutor?: ComposeExecutor;
|
|
23
24
|
concurrencyClassifier?: ConcurrencyClassifier;
|
|
25
|
+
maxConcurrentSafeCalls?: number;
|
|
24
26
|
cwd?: string;
|
|
25
27
|
readRoots?: string[];
|
|
26
28
|
writeRoots?: string[];
|
|
@@ -41,6 +43,7 @@ export declare class SessionToolDispatcher implements ToolDispatcher {
|
|
|
41
43
|
private readonly skillExecutor;
|
|
42
44
|
private readonly composeExecutor;
|
|
43
45
|
private readonly classifier;
|
|
46
|
+
private readonly maxConcurrentSafeCalls;
|
|
44
47
|
private resolveBase;
|
|
45
48
|
private readonly _readRoots;
|
|
46
49
|
private readonly _writeRoots;
|