agent-afk 5.337.0 → 5.338.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.
- package/dist/agent/background-registry.mark-terminal.d.ts +1 -1
- package/dist/agent/background-registry.types.d.ts +1 -1
- package/dist/agent/providers/anthropic-direct/query-options.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query-runtime.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query-turn-driver.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/request-types.d.ts +1 -0
- package/dist/agent/providers/openai-compatible/query/turn-driver.d.ts +1 -0
- package/dist/agent/session/model-slots.d.ts +2 -0
- package/dist/agent/session/session-meta.d.ts +13 -0
- package/dist/agent/session/slot-credentials.d.ts +1 -0
- package/dist/agent/trace/receipt.d.ts +5 -1
- package/dist/agent/trace/receipt.journal.d.ts +10 -0
- package/dist/agent/trace/types.session-phase.d.ts +1 -1
- package/dist/agent/types/config-types.d.ts +1 -0
- package/dist/cli/commands/interactive/mascot-bar.d.ts +1 -0
- package/dist/cli/session-store.d.ts +1 -0
- package/dist/cli.mjs +478 -476
- package/dist/config/endpoint-semaphore.d.ts +9 -0
- package/dist/config/env.d.ts +35 -0
- package/dist/config/env.debug.d.ts +7 -0
- package/dist/config/env.model-slot-concurrency.d.ts +29 -0
- package/dist/improve/propose/template-engine.templates-density.d.ts +2 -0
- package/dist/index.mjs +392 -388
- package/dist/paths.journal.d.ts +1 -0
- package/dist/telegram.mjs +404 -404
- package/package.json +2 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface EndpointSemaphore {
|
|
2
|
+
acquire(signal?: AbortSignal): Promise<void>;
|
|
3
|
+
release(): void;
|
|
4
|
+
readonly activeCount: number;
|
|
5
|
+
readonly limit: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function getEndpointSemaphore(baseUrl: string | undefined, limit: number | undefined): EndpointSemaphore | null;
|
|
8
|
+
export declare function withEndpointSemaphore<T>(sem: EndpointSemaphore | null, fn: () => Promise<T>, signal?: AbortSignal): Promise<T>;
|
|
9
|
+
export declare function _resetEndpointSemaphores(): void;
|
package/dist/config/env.d.ts
CHANGED
|
@@ -474,6 +474,34 @@ export declare const ENV_REGISTRY: readonly [{
|
|
|
474
474
|
readonly required: false;
|
|
475
475
|
readonly example: "sonnet";
|
|
476
476
|
readonly category: "model";
|
|
477
|
+
}, {
|
|
478
|
+
readonly name: "AFK_MODEL_LOCAL_MAX_CONCURRENCY";
|
|
479
|
+
readonly description: string;
|
|
480
|
+
readonly type: "number";
|
|
481
|
+
readonly required: false;
|
|
482
|
+
readonly example: "1";
|
|
483
|
+
readonly category: "model";
|
|
484
|
+
}, {
|
|
485
|
+
readonly name: "AFK_MODEL_LARGE_MAX_CONCURRENCY";
|
|
486
|
+
readonly description: string;
|
|
487
|
+
readonly type: "number";
|
|
488
|
+
readonly required: false;
|
|
489
|
+
readonly example: "1";
|
|
490
|
+
readonly category: "model";
|
|
491
|
+
}, {
|
|
492
|
+
readonly name: "AFK_MODEL_MEDIUM_MAX_CONCURRENCY";
|
|
493
|
+
readonly description: string;
|
|
494
|
+
readonly type: "number";
|
|
495
|
+
readonly required: false;
|
|
496
|
+
readonly example: "1";
|
|
497
|
+
readonly category: "model";
|
|
498
|
+
}, {
|
|
499
|
+
readonly name: "AFK_MODEL_SMALL_MAX_CONCURRENCY";
|
|
500
|
+
readonly description: string;
|
|
501
|
+
readonly type: "number";
|
|
502
|
+
readonly required: false;
|
|
503
|
+
readonly example: "1";
|
|
504
|
+
readonly category: "model";
|
|
477
505
|
}, {
|
|
478
506
|
readonly name: "AFK_SUGGEST_ENABLED";
|
|
479
507
|
readonly description: "Enable the LLM-backed ghost-text suggestion tier in the interactive REPL. On by default. Set to 0/false/no/off to disable.";
|
|
@@ -1356,6 +1384,13 @@ export declare const ENV_REGISTRY: readonly [{
|
|
|
1356
1384
|
readonly required: false;
|
|
1357
1385
|
readonly example: "1";
|
|
1358
1386
|
readonly category: "debug";
|
|
1387
|
+
}, {
|
|
1388
|
+
readonly name: "AFK_RUN_RECEIPT_TEXT_DISABLED";
|
|
1389
|
+
readonly description: string;
|
|
1390
|
+
readonly type: "boolean";
|
|
1391
|
+
readonly required: false;
|
|
1392
|
+
readonly example: "1";
|
|
1393
|
+
readonly category: "debug";
|
|
1359
1394
|
}, {
|
|
1360
1395
|
readonly name: "AFK_SUBAGENT_RESULT_CAP_BYTES";
|
|
1361
1396
|
readonly description: string;
|
|
@@ -97,6 +97,13 @@ export declare const DEBUG_ENV_REGISTRY: readonly [{
|
|
|
97
97
|
readonly required: false;
|
|
98
98
|
readonly example: "1";
|
|
99
99
|
readonly category: "debug";
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "AFK_RUN_RECEIPT_TEXT_DISABLED";
|
|
102
|
+
readonly description: string;
|
|
103
|
+
readonly type: "boolean";
|
|
104
|
+
readonly required: false;
|
|
105
|
+
readonly example: "1";
|
|
106
|
+
readonly category: "debug";
|
|
100
107
|
}, {
|
|
101
108
|
readonly name: "AFK_SUBAGENT_RESULT_CAP_BYTES";
|
|
102
109
|
readonly description: string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const MODEL_SLOT_CONCURRENCY_ENV_REGISTRY: readonly [{
|
|
2
|
+
readonly name: "AFK_MODEL_LOCAL_MAX_CONCURRENCY";
|
|
3
|
+
readonly description: string;
|
|
4
|
+
readonly type: "number";
|
|
5
|
+
readonly required: false;
|
|
6
|
+
readonly example: "1";
|
|
7
|
+
readonly category: "model";
|
|
8
|
+
}, {
|
|
9
|
+
readonly name: "AFK_MODEL_LARGE_MAX_CONCURRENCY";
|
|
10
|
+
readonly description: string;
|
|
11
|
+
readonly type: "number";
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly example: "1";
|
|
14
|
+
readonly category: "model";
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "AFK_MODEL_MEDIUM_MAX_CONCURRENCY";
|
|
17
|
+
readonly description: string;
|
|
18
|
+
readonly type: "number";
|
|
19
|
+
readonly required: false;
|
|
20
|
+
readonly example: "1";
|
|
21
|
+
readonly category: "model";
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "AFK_MODEL_SMALL_MAX_CONCURRENCY";
|
|
24
|
+
readonly description: string;
|
|
25
|
+
readonly type: "number";
|
|
26
|
+
readonly required: false;
|
|
27
|
+
readonly example: "1";
|
|
28
|
+
readonly category: "model";
|
|
29
|
+
}];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { FailureCard, LikelyFile, ValidationPlan } from '../schemas.js';
|
|
2
2
|
import type { RootCauseClass, Severity } from '../schemas.js';
|
|
3
|
+
export declare function rootCauseFromClusterKey(key: string): RootCauseClass;
|
|
4
|
+
export declare function likelyFilesForTool(toolName: string): readonly LikelyFile[];
|
|
3
5
|
interface PatternTemplate {
|
|
4
6
|
rootCauseClass: RootCauseClass;
|
|
5
7
|
hypothesis(card: FailureCard): string;
|