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.
@@ -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;
@@ -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;