nexus-agents 2.102.5 → 2.102.7

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/index.d.ts CHANGED
@@ -32411,6 +32411,14 @@ interface ExpertBridgeResult {
32411
32411
  }
32412
32412
  declare function executeExpert(expertType: BuiltInExpertType, prompt: string): Promise<ExpertBridgeResult>;
32413
32413
 
32414
+ /** Opt-in per-run budget configuration (absent → enforcement off). */
32415
+ interface AgentBudgetConfig {
32416
+ /** Hard token ceiling for the whole run. */
32417
+ readonly maxTokens: number;
32418
+ /** Fraction of `maxTokens` at which the circuit opens (default 0.95). */
32419
+ readonly criticalThreshold?: number;
32420
+ }
32421
+
32414
32422
  /**
32415
32423
  * Agent Executor — Connects pipeline stages to nexus-agents infrastructure (#1684)
32416
32424
  *
@@ -32433,6 +32441,13 @@ interface AgentExecutorConfig {
32433
32441
  readonly tracker?: ITaskTracker | undefined;
32434
32442
  readonly issueNumber?: number | undefined;
32435
32443
  readonly repo?: string | undefined;
32444
+ /**
32445
+ * Opt-in per-run token budget (#3395). When set, expert calls are metered
32446
+ * through a {@link BudgetGuard}: once cumulative usage crosses the ceiling,
32447
+ * further expert calls short-circuit to a failure result (stopping spend)
32448
+ * rather than aborting mid-pipeline. Absent → no enforcement (default).
32449
+ */
32450
+ readonly budget?: AgentBudgetConfig | undefined;
32436
32451
  }
32437
32452
  /** Flush pipeline memory session. */
32438
32453
  declare function flushPipelineMemory(): void;
package/dist/index.js CHANGED
@@ -517,7 +517,7 @@ import {
517
517
  validateWorkflow,
518
518
  validateWorkflowDependencies,
519
519
  withLogging
520
- } from "./chunk-3LC5NHC4.js";
520
+ } from "./chunk-FRAMV5DJ.js";
521
521
  import "./chunk-3ACDP4E6.js";
522
522
  import {
523
523
  getTokenEnvVars,
@@ -759,7 +759,7 @@ import {
759
759
  getKnownNexusVarNames,
760
760
  startStdioServer,
761
761
  validateNexusEnv
762
- } from "./chunk-AQBPOBAT.js";
762
+ } from "./chunk-6CIEBFDV.js";
763
763
  import {
764
764
  AvailabilityCache,
765
765
  filterAvailableModels,
@@ -8,9 +8,9 @@ import {
8
8
  runWizard,
9
9
  setupCommand,
10
10
  setupCommandAsync
11
- } from "./chunk-XY72JFG2.js";
11
+ } from "./chunk-ECZLYZCI.js";
12
12
  import "./chunk-4L7FH53H.js";
13
- import "./chunk-AQBPOBAT.js";
13
+ import "./chunk-6CIEBFDV.js";
14
14
  import "./chunk-FLUC27DF.js";
15
15
  import "./chunk-L2NPJRZZ.js";
16
16
  import "./chunk-LVGYWJDX.js";
@@ -34,4 +34,4 @@ export {
34
34
  setupCommand,
35
35
  setupCommandAsync
36
36
  };
37
- //# sourceMappingURL=setup-command-QOEYR6YI.js.map
37
+ //# sourceMappingURL=setup-command-G3Q3UKI5.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-agents",
3
- "version": "2.102.5",
3
+ "version": "2.102.7",
4
4
  "description": "Governance substrate for AI coding agents — adversarial PR review, drift-detected rules, immutable audit, and closed-loop outcome routing for Claude, Codex, Gemini, and OpenCode",
5
5
  "mcpName": "io.github.nexus-substrate/nexus-agents",
6
6
  "license": "MIT",