nexus-agents 2.102.5 → 2.102.6

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.
@@ -8,7 +8,7 @@ import {
8
8
  checkSqlite,
9
9
  defaultConfig,
10
10
  initDataDirectories
11
- } from "./chunk-AQBPOBAT.js";
11
+ } from "./chunk-W7JCGUTA.js";
12
12
  import {
13
13
  probeAllClis
14
14
  } from "./chunk-3GF52QPA.js";
@@ -1987,4 +1987,4 @@ export {
1987
1987
  setupCommand,
1988
1988
  setupCommandAsync
1989
1989
  };
1990
- //# sourceMappingURL=chunk-XY72JFG2.js.map
1990
+ //# sourceMappingURL=chunk-QM3WIUXB.js.map
@@ -40,7 +40,7 @@ import {
40
40
  } from "./chunk-CH7QIDHQ.js";
41
41
 
42
42
  // src/version.ts
43
- var VERSION = true ? "2.102.5" : "dev";
43
+ var VERSION = true ? "2.102.6" : "dev";
44
44
 
45
45
  // src/config/schemas-core.ts
46
46
  import { z } from "zod";
@@ -2096,7 +2096,7 @@ async function runDoctorFix(result) {
2096
2096
  writeLine2("\u2500".repeat(40));
2097
2097
  let fixCount = 0;
2098
2098
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2099
- const { runSetup } = await import("./setup-command-QOEYR6YI.js");
2099
+ const { runSetup } = await import("./setup-command-E2WOYCXO.js");
2100
2100
  const setupResult = runSetup({
2101
2101
  skipMcp: true,
2102
2102
  skipRules: true,
@@ -2208,4 +2208,4 @@ export {
2208
2208
  startStdioServer,
2209
2209
  closeServer
2210
2210
  };
2211
- //# sourceMappingURL=chunk-AQBPOBAT.js.map
2211
+ //# sourceMappingURL=chunk-W7JCGUTA.js.map
package/dist/cli.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  import {
25
25
  setupCommandAsync,
26
26
  verifyCommand
27
- } from "./chunk-XY72JFG2.js";
27
+ } from "./chunk-QM3WIUXB.js";
28
28
  import "./chunk-4L7FH53H.js";
29
29
  import {
30
30
  AuthHandler,
@@ -165,7 +165,7 @@ import {
165
165
  validateCommand,
166
166
  validateWorkflow,
167
167
  wrapInMarkdownFence
168
- } from "./chunk-3LC5NHC4.js";
168
+ } from "./chunk-5VMCBHRX.js";
169
169
  import "./chunk-3ACDP4E6.js";
170
170
  import {
171
171
  resolveToken
@@ -250,7 +250,7 @@ import {
250
250
  loadConfig,
251
251
  runDoctor,
252
252
  validateNexusEnv
253
- } from "./chunk-AQBPOBAT.js";
253
+ } from "./chunk-W7JCGUTA.js";
254
254
  import "./chunk-FLUC27DF.js";
255
255
  import "./chunk-L2NPJRZZ.js";
256
256
  import {
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-5VMCBHRX.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-W7JCGUTA.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-QM3WIUXB.js";
12
12
  import "./chunk-4L7FH53H.js";
13
- import "./chunk-AQBPOBAT.js";
13
+ import "./chunk-W7JCGUTA.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-E2WOYCXO.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.6",
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",