agent-afk 5.28.2 → 5.28.3
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/dispatch-batching.d.ts +8 -0
- package/dist/agent/tools/dispatcher.d.ts +1 -1
- package/dist/agent/tools/repeat-circuit-breaker.d.ts +2 -0
- package/dist/cli.mjs +383 -383
- package/dist/index.mjs +123 -123
- package/dist/telegram.mjs +180 -180
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ToolCall } from '../providers/anthropic-direct/types.js';
|
|
2
|
+
import type { ConcurrencyClassifier } from './types.js';
|
|
3
|
+
export declare function defaultConcurrencyClassifier(toolName: string): boolean;
|
|
4
|
+
export interface Batch {
|
|
5
|
+
isConcurrencySafe: boolean;
|
|
6
|
+
indices: number[];
|
|
7
|
+
}
|
|
8
|
+
export declare function partitionIntoBatches(calls: ToolCall[], classifier: ConcurrencyClassifier): Batch[];
|
|
@@ -10,7 +10,7 @@ import { type ToolPermissionConfig } from './permissions.js';
|
|
|
10
10
|
import type { CanUseTool } from '../types/sdk-types.js';
|
|
11
11
|
import { type GrantSnapshot } from './grant-manager.js';
|
|
12
12
|
import type { TraceWriter } from '../trace/index.js';
|
|
13
|
-
export
|
|
13
|
+
export { defaultConcurrencyClassifier } from './dispatch-batching.js';
|
|
14
14
|
export declare const REPEAT_CIRCUIT_BREAKER_THRESHOLD = 8;
|
|
15
15
|
export declare const DEFAULT_MAX_CONCURRENT_SAFE_TOOL_CALLS = 8;
|
|
16
16
|
export interface SessionToolDispatcherOptions {
|