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/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-ECZLYZCI.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-FRAMV5DJ.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-6CIEBFDV.js";
254
254
  import "./chunk-FLUC27DF.js";
255
255
  import "./chunk-L2NPJRZZ.js";
256
256
  import {
@@ -17206,6 +17206,10 @@ var DevPipelineInputSchema = z8.object({
17206
17206
  /** Local pre-ship quality gate (typecheck/lint/tests) mode (#3356). */
17207
17207
  qualityGate: z8.enum(["off", "advisory", "blocking"]).default("off").describe(
17208
17208
  "Pre-ship local quality gate. 'off' (default): skip. 'advisory': run + record feedback, never fail. 'blocking': a red gate fails the pipeline."
17209
+ ),
17210
+ /** Opt-in per-run token budget — a safety cap for unattended runs (#3395). */
17211
+ maxBudgetTokens: z8.number().int().positive().optional().describe(
17212
+ "Per-run token ceiling (#3395). When set, expert calls stop (returning failures) once cumulative usage crosses it \u2014 a hard-stop safety cap for unattended/multi-day runs. Omit to disable (default)."
17209
17213
  )
17210
17214
  });
17211
17215
  async function resolveTaskInput(input) {
@@ -17240,7 +17244,11 @@ async function createStages(input) {
17240
17244
  quickMode: input.quickMode,
17241
17245
  issueNumber: input.issueNumber,
17242
17246
  repo: input.repo,
17243
- tracker
17247
+ tracker,
17248
+ // #3395: thread the opt-in per-run token ceiling through to the budget guard.
17249
+ ...input.maxBudgetTokens !== void 0 && {
17250
+ budget: { maxTokens: input.maxBudgetTokens }
17251
+ }
17244
17252
  });
17245
17253
  }
17246
17254
  function buildStructuredOutput(result) {