agent-afk 5.28.2 → 5.29.0
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/usage-limit.d.ts +1 -0
- 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 +428 -428
- package/dist/index.mjs +150 -150
- package/dist/telegram.mjs +203 -203
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export type UsageLimitClassification = {
|
|
|
10
10
|
kind: 'credit-exhausted';
|
|
11
11
|
};
|
|
12
12
|
export declare const RATE_LIMIT_TRANSIENT_MAX_RETRY_AFTER_MS: number;
|
|
13
|
+
export declare function getHeader(error: unknown, name: string): string | undefined;
|
|
13
14
|
export declare function parseRetryAfterMs(error: unknown): number | undefined;
|
|
14
15
|
export declare function classifyUsageLimitError(error: Error): UsageLimitClassification | null;
|
|
15
16
|
export interface WaitForResetOpts {
|
|
@@ -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 {
|