agent-afk 5.96.0 → 5.97.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/concurrency-pool.d.ts +2 -1
- package/dist/agent/mcp/index.d.ts +1 -1
- package/dist/agent/mcp/transport.d.ts +0 -4
- package/dist/agent/plugins/tool-injector.d.ts +0 -4
- package/dist/agent/providers/anthropic-direct/types.d.ts +2 -21
- package/dist/agent/providers/shared/tool-result.d.ts +26 -0
- package/dist/agent/shadow-verify-nudge.d.ts +0 -1
- package/dist/agent/tools/dispatcher.d.ts +2 -1
- package/dist/agent/tools/subagent/foreground-promotion.d.ts +4 -1
- package/dist/agent/tools/subagent/queued-note.d.ts +6 -0
- package/dist/agent/tools/subagent-executor.d.ts +3 -2
- package/dist/agent/tools/system-prompt.d.ts +2 -1
- package/dist/agent/tools/types.d.ts +3 -2
- package/dist/agent/trace/emit.d.ts +2 -1
- package/dist/agent/trace/events.d.ts +21 -0
- package/dist/agent/trace/index.d.ts +2 -2
- package/dist/agent/trace/types.d.ts +14 -1
- package/dist/cli/commands/doctor-checks.d.ts +1 -0
- package/dist/cli/commands/interactive/queued-flush.d.ts +31 -0
- package/dist/cli/commands/interactive/shared.d.ts +1 -0
- package/dist/cli/commands/interactive/transcript.d.ts +1 -0
- package/dist/cli/palette.d.ts +0 -1
- package/dist/cli/terminal-compositor.d.ts +6 -0
- package/dist/cli/terminal-compositor.input-mode.d.ts +1 -0
- package/dist/cli/terminal-compositor.queued-access.d.ts +19 -0
- package/dist/cli/terminal-compositor.reset.d.ts +1 -0
- package/dist/cli.mjs +568 -558
- package/dist/config/concurrency.d.ts +25 -0
- package/dist/config/env.d.ts +3 -0
- package/dist/index.mjs +177 -174
- package/dist/telegram.mjs +246 -242
- package/package.json +1 -1
- package/dist/agent/providers/anthropic-direct/query/date-rollover.d.ts +0 -1
- package/dist/cli/commands/skill-router.d.ts +0 -8
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const DEFAULT_MAX_CONCURRENT_SAFE_TOOL_CALLS = 8;
|
|
2
|
+
export declare const DEFAULT_MAX_CONCURRENT_SUBAGENT_CALLS = 8;
|
|
3
|
+
export declare const DEFAULT_MAX_CONCURRENT_BACKGROUND_JOBS = 10;
|
|
4
|
+
export declare const MAX_CONCURRENT_SAFE_TOOL_CALLS_CEILING = 32;
|
|
5
|
+
export declare const MAX_CONCURRENT_SUBAGENT_CALLS_CEILING = 32;
|
|
6
|
+
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';
|
|
8
|
+
interface ConcurrencyDefinition {
|
|
9
|
+
key: ConcurrencyEnvKey;
|
|
10
|
+
defaultValue: number;
|
|
11
|
+
maxValue: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ConcurrencyStatus extends ConcurrencyDefinition {
|
|
14
|
+
rawValue: string | undefined;
|
|
15
|
+
effectiveValue: number;
|
|
16
|
+
source: 'default' | 'environment' | 'fallback';
|
|
17
|
+
valid: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function resetConcurrencyWarnings(): void;
|
|
20
|
+
export declare function getConcurrencyStatus(definition: ConcurrencyDefinition, warn?: boolean): ConcurrencyStatus;
|
|
21
|
+
export declare function getConcurrencyStatuses(warn?: boolean): ConcurrencyStatus[];
|
|
22
|
+
export declare function resolveMaxConcurrentSafeToolCalls(): number;
|
|
23
|
+
export declare function resolveMaxConcurrentSubagentCalls(): number;
|
|
24
|
+
export declare function resolveMaxConcurrentBackgroundJobs(): number;
|
|
25
|
+
export {};
|
package/dist/config/env.d.ts
CHANGED
|
@@ -25,6 +25,9 @@ export declare const env: {
|
|
|
25
25
|
readonly AFK_EFFORT: string | undefined;
|
|
26
26
|
readonly AFK_FORCE_BASH_INTERPRETER_GUARD: string | undefined;
|
|
27
27
|
readonly AFK_MAX_BUDGET_USD: string | undefined;
|
|
28
|
+
readonly AFK_MAX_CONCURRENT_BACKGROUND_JOBS: string | undefined;
|
|
29
|
+
readonly AFK_MAX_CONCURRENT_SAFE_TOOL_CALLS: string | undefined;
|
|
30
|
+
readonly AFK_MAX_CONCURRENT_SUBAGENT_CALLS: string | undefined;
|
|
28
31
|
readonly AFK_MAX_NESTING_DEPTH: string | undefined;
|
|
29
32
|
readonly AFK_MAX_OUTPUT_TOKENS: string | undefined;
|
|
30
33
|
readonly AFK_MAX_TOKENS: string | undefined;
|