agent-afk 5.323.0 → 5.324.1

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.
@@ -1,10 +1,15 @@
1
1
  export declare const DEFAULT_MAX_CONCURRENT_SAFE_TOOL_CALLS = 8;
2
2
  export declare const DEFAULT_MAX_CONCURRENT_SUBAGENT_CALLS = 8;
3
3
  export declare const DEFAULT_MAX_CONCURRENT_BACKGROUND_JOBS = 10;
4
+ export declare const PROVIDER_SUBAGENT_CONCURRENCY_KEYS: {
5
+ readonly 'anthropic-direct': "AFK_MAX_CONCURRENT_SUBAGENT_CALLS_ANTHROPIC";
6
+ readonly 'openai-compatible': "AFK_MAX_CONCURRENT_SUBAGENT_CALLS_OPENAI";
7
+ };
8
+ export type ProviderConcurrencyEnvKey = 'AFK_MAX_CONCURRENT_SUBAGENT_CALLS_ANTHROPIC' | 'AFK_MAX_CONCURRENT_SUBAGENT_CALLS_OPENAI';
4
9
  export declare const MAX_CONCURRENT_SAFE_TOOL_CALLS_CEILING = 32;
5
10
  export declare const MAX_CONCURRENT_SUBAGENT_CALLS_CEILING = 32;
6
11
  export declare const MAX_CONCURRENT_BACKGROUND_JOBS_CEILING = 64;
7
- export type ConcurrencyEnvKey = 'AFK_MAX_CONCURRENT_SAFE_TOOL_CALLS' | 'AFK_MAX_CONCURRENT_SUBAGENT_CALLS' | 'AFK_MAX_CONCURRENT_BACKGROUND_JOBS';
12
+ export type ConcurrencyEnvKey = 'AFK_MAX_CONCURRENT_SAFE_TOOL_CALLS' | 'AFK_MAX_CONCURRENT_SUBAGENT_CALLS' | 'AFK_MAX_CONCURRENT_BACKGROUND_JOBS' | ProviderConcurrencyEnvKey;
8
13
  interface ConcurrencyDefinition {
9
14
  key: ConcurrencyEnvKey;
10
15
  defaultValue: number;
@@ -21,4 +26,5 @@ export declare function getConcurrencyStatuses(warn?: boolean): ConcurrencyStatu
21
26
  export declare function resolveMaxConcurrentSafeToolCalls(warn?: boolean): number;
22
27
  export declare function resolveMaxConcurrentSubagentCalls(warn?: boolean): number;
23
28
  export declare function resolveMaxConcurrentBackgroundJobs(warn?: boolean): number;
29
+ export declare function resolveMaxConcurrentSubagentCallsForProvider(provider: string | undefined, warn?: boolean): number;
24
30
  export {};
@@ -140,6 +140,20 @@ export declare const ENV_REGISTRY: readonly [{
140
140
  readonly default: "8";
141
141
  readonly example: "2";
142
142
  readonly category: "process";
143
+ }, {
144
+ readonly name: "AFK_MAX_CONCURRENT_SUBAGENT_CALLS_ANTHROPIC";
145
+ readonly description: "Per-provider override for AFK_MAX_CONCURRENT_SUBAGENT_CALLS applied to fan-out waves whose tasks run on the Anthropic provider (anthropic-direct). When set, takes precedence over the global AFK_MAX_CONCURRENT_SUBAGENT_CALLS for those waves. Unset = use the global value. Accepted range 1-32; out-of-range or unparseable input falls back to the global. Part of #3886.";
146
+ readonly type: "number";
147
+ readonly required: false;
148
+ readonly example: "3";
149
+ readonly category: "process";
150
+ }, {
151
+ readonly name: "AFK_MAX_CONCURRENT_SUBAGENT_CALLS_OPENAI";
152
+ readonly description: "Per-provider override for AFK_MAX_CONCURRENT_SUBAGENT_CALLS applied to fan-out waves whose tasks run on the OpenAI-compatible provider (openai-compatible). When set, takes precedence over the global AFK_MAX_CONCURRENT_SUBAGENT_CALLS for those waves. Unset = use the global value. Accepted range 1-32; out-of-range or unparseable input falls back to the global. Part of #3886.";
153
+ readonly type: "number";
154
+ readonly required: false;
155
+ readonly example: "5";
156
+ readonly category: "process";
143
157
  }, {
144
158
  readonly name: "AFK_MAX_CONCURRENT_BACKGROUND_JOBS";
145
159
  readonly description: "Maximum background subagent jobs running simultaneously in one registry. Default 10; accepted range 1-64; out-of-range or unparseable input falls back to the default.";
@@ -1647,6 +1661,22 @@ export declare const ENV_REGISTRY: readonly [{
1647
1661
  readonly default: "1";
1648
1662
  readonly example: "0";
1649
1663
  readonly category: "misc";
1664
+ }, {
1665
+ readonly name: "AFK_LSP_DIAGNOSTICS";
1666
+ readonly description: string;
1667
+ readonly type: "boolean";
1668
+ readonly required: false;
1669
+ readonly default: "0";
1670
+ readonly example: "1";
1671
+ readonly category: "misc";
1672
+ }, {
1673
+ readonly name: "AFK_LSP_DIAGNOSTICS_TIMEOUT_MS";
1674
+ readonly description: string;
1675
+ readonly type: "number";
1676
+ readonly required: false;
1677
+ readonly default: "1500";
1678
+ readonly example: "3000";
1679
+ readonly category: "misc";
1650
1680
  }];
1651
1681
  export type EnvObject = {
1652
1682
  readonly [K in (typeof ENV_REGISTRY)[number]['name']]: string | undefined;
@@ -127,6 +127,20 @@ export declare const MODEL_ENV_REGISTRY: readonly [{
127
127
  readonly default: "8";
128
128
  readonly example: "2";
129
129
  readonly category: "process";
130
+ }, {
131
+ readonly name: "AFK_MAX_CONCURRENT_SUBAGENT_CALLS_ANTHROPIC";
132
+ readonly description: "Per-provider override for AFK_MAX_CONCURRENT_SUBAGENT_CALLS applied to fan-out waves whose tasks run on the Anthropic provider (anthropic-direct). When set, takes precedence over the global AFK_MAX_CONCURRENT_SUBAGENT_CALLS for those waves. Unset = use the global value. Accepted range 1-32; out-of-range or unparseable input falls back to the global. Part of #3886.";
133
+ readonly type: "number";
134
+ readonly required: false;
135
+ readonly example: "3";
136
+ readonly category: "process";
137
+ }, {
138
+ readonly name: "AFK_MAX_CONCURRENT_SUBAGENT_CALLS_OPENAI";
139
+ readonly description: "Per-provider override for AFK_MAX_CONCURRENT_SUBAGENT_CALLS applied to fan-out waves whose tasks run on the OpenAI-compatible provider (openai-compatible). When set, takes precedence over the global AFK_MAX_CONCURRENT_SUBAGENT_CALLS for those waves. Unset = use the global value. Accepted range 1-32; out-of-range or unparseable input falls back to the global. Part of #3886.";
140
+ readonly type: "number";
141
+ readonly required: false;
142
+ readonly example: "5";
143
+ readonly category: "process";
130
144
  }, {
131
145
  readonly name: "AFK_MAX_CONCURRENT_BACKGROUND_JOBS";
132
146
  readonly description: "Maximum background subagent jobs running simultaneously in one registry. Default 10; accepted range 1-64; out-of-range or unparseable input falls back to the default.";
@@ -0,0 +1,17 @@
1
+ export declare const TOOLS_ENV_REGISTRY: readonly [{
2
+ readonly name: "AFK_LSP_DIAGNOSTICS";
3
+ readonly description: string;
4
+ readonly type: "boolean";
5
+ readonly required: false;
6
+ readonly default: "0";
7
+ readonly example: "1";
8
+ readonly category: "misc";
9
+ }, {
10
+ readonly name: "AFK_LSP_DIAGNOSTICS_TIMEOUT_MS";
11
+ readonly description: string;
12
+ readonly type: "number";
13
+ readonly required: false;
14
+ readonly default: "1500";
15
+ readonly example: "3000";
16
+ readonly category: "misc";
17
+ }];