agent-afk 5.15.9 → 5.15.11
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/subagent.d.ts +2 -0
- package/dist/agent/tools/child-credential.d.ts +2 -0
- package/dist/agent/tools/dispatcher.d.ts +3 -0
- package/dist/cli.mjs +305 -305
- package/dist/index.mjs +122 -122
- package/dist/telegram.mjs +161 -161
- package/package.json +1 -1
package/dist/agent/subagent.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface SubagentManagerOptions {
|
|
|
32
32
|
progressSink?: SubagentProgressSink;
|
|
33
33
|
apiKey?: string;
|
|
34
34
|
baseUrl?: string;
|
|
35
|
+
parentModel?: string;
|
|
35
36
|
cwd?: string;
|
|
36
37
|
traceWriter?: TraceWriter;
|
|
37
38
|
surface?: Surface;
|
|
@@ -44,6 +45,7 @@ export declare class SubagentManager {
|
|
|
44
45
|
private readonly progressSink;
|
|
45
46
|
private readonly parentApiKey;
|
|
46
47
|
private readonly parentBaseUrl;
|
|
48
|
+
private readonly parentProvider;
|
|
47
49
|
private parentCwd;
|
|
48
50
|
private readonly parentTraceWriter;
|
|
49
51
|
private readonly parentSurface;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BundledProviderName } from '../providers/index.js';
|
|
1
2
|
export declare function isAnthropicCredential(key: string | undefined): key is string;
|
|
2
3
|
export declare function applyParentCredentialFallback(args: {
|
|
3
4
|
childModel: string;
|
|
@@ -8,4 +9,5 @@ export declare function applyManagerApiKeyFallback(args: {
|
|
|
8
9
|
childModel: string | undefined;
|
|
9
10
|
configApiKey: string | undefined;
|
|
10
11
|
parentApiKey: string | undefined;
|
|
12
|
+
parentProvider?: BundledProviderName | undefined;
|
|
11
13
|
}): string | undefined;
|
|
@@ -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;
|