nexus-agents 4.18.4 → 4.19.0

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
@@ -153,7 +153,7 @@ import {
153
153
  validateNexusEnv,
154
154
  validateWorkflow,
155
155
  wrapInMarkdownFence
156
- } from "./chunk-NBWEGQNU.js";
156
+ } from "./chunk-SVZIKI2Z.js";
157
157
  import "./chunk-2D3KX7MD.js";
158
158
  import "./chunk-HFOQKCD2.js";
159
159
  import "./chunk-RSMG2DPB.js";
@@ -173,7 +173,7 @@ import {
173
173
  doctorCommand,
174
174
  initDataDirectories,
175
175
  runDoctor
176
- } from "./chunk-5NKKABGU.js";
176
+ } from "./chunk-GTTWH33G.js";
177
177
  import {
178
178
  buildOpenAICompatAdapters,
179
179
  readOpenAICompatEnv
@@ -191,7 +191,7 @@ import {
191
191
  mapOutcomeToDecision,
192
192
  recordAuthenticVote,
193
193
  registerConsensusVoteTool
194
- } from "./chunk-MYYPOVLV.js";
194
+ } from "./chunk-XGBGZ26Y.js";
195
195
  import {
196
196
  loadUsageEvents,
197
197
  rollupByModel
@@ -22195,7 +22195,13 @@ var VOTE_HELP = {
22195
22195
  },
22196
22196
  { flag: "--quick", description: "Use 3 agents instead of the full 7 for faster votes" },
22197
22197
  { flag: "--dry-run", description: "Simulate votes without agent execution" },
22198
- { flag: "--timeout=<seconds>", description: "Timeout per vote in seconds", defaultValue: "90" },
22198
+ {
22199
+ flag: "--timeout=<seconds>",
22200
+ description: "Timeout per vote in seconds",
22201
+ // VOTE_TIMEOUTS.defaultMs, raised to 300s by #1640 after architecture and
22202
+ // security voters were observed averaging 315s. The help said 90 (#4965).
22203
+ defaultValue: "300"
22204
+ },
22199
22205
  {
22200
22206
  flag: "--error-policy <p>",
22201
22207
  description: "How to count errored/timed-out voters: reduce_denominator | count_as_abstain | fail_closed | absolute_quorum (#4132 \u2014 an errored voter degrades the verdict to no_quorum) (default: fail_closed for unanimous, reduce_denominator otherwise)"
@@ -22740,29 +22746,30 @@ function handleSystemReviewCommand(args) {
22740
22746
  });
22741
22747
  return cliExitFromStatus(exitCode);
22742
22748
  }
22743
- async function handleVoteCommand(args) {
22744
- const proposal = args.options.proposal;
22745
- if (proposal === void 0) {
22746
- printVoteUsage();
22747
- return cliExit(EXIT_CODES.INVALID_ARGS);
22748
- }
22749
- const threshold = args.options.threshold;
22750
- const validThreshold = threshold !== void 0 && isValidThreshold(threshold) ? threshold : void 0;
22751
- const errorPolicy = args.options.errorPolicy;
22752
- const validErrorPolicy = errorPolicy !== void 0 && isValidErrorPolicy(errorPolicy) ? errorPolicy : void 0;
22753
- const exitCode = await voteCommand({
22754
- proposal,
22755
- // #4963: this handler rebuilds VoteCommandOptions field by field, so a new
22756
- // field is dropped unless it is named here. `--option` parsed, reached
22757
- // `args.options.options`, and died at this line.
22749
+ function validated(value, guard) {
22750
+ return value !== void 0 && guard(value) ? value : void 0;
22751
+ }
22752
+ function buildVoteCommandOptions(args) {
22753
+ const validThreshold = validated(args.options.threshold, isValidThreshold);
22754
+ const validErrorPolicy = validated(args.options.errorPolicy, isValidErrorPolicy);
22755
+ return {
22756
+ proposal: args.options.proposal ?? "",
22758
22757
  ...args.options.options !== void 0 && { options: args.options.options },
22759
22758
  ...validThreshold !== void 0 && { threshold: validThreshold },
22760
22759
  ...validErrorPolicy !== void 0 && { errorPolicy: validErrorPolicy },
22761
22760
  ...args.options.onNoQuorum !== void 0 && { onNoQuorum: args.options.onNoQuorum },
22761
+ ...args.options.timeoutMs !== void 0 && { timeoutMs: args.options.timeoutMs },
22762
22762
  dryRun: args.options.dryRun,
22763
22763
  quick: args.options.quick,
22764
22764
  verbose: args.options.verbose
22765
- });
22765
+ };
22766
+ }
22767
+ async function handleVoteCommand(args) {
22768
+ if (args.options.proposal === void 0) {
22769
+ printVoteUsage();
22770
+ return cliExit(EXIT_CODES.INVALID_ARGS);
22771
+ }
22772
+ const exitCode = await voteCommand(buildVoteCommandOptions(args));
22766
22773
  return cliExit(exitCode);
22767
22774
  }
22768
22775
  async function handleIndexCommand2(args) {
@@ -25262,17 +25269,17 @@ function parseOptions4(args) {
25262
25269
  const fileIssues = !dryRun && fileIssuesFlag;
25263
25270
  const formatRaw = typeof opts["format"] === "string" ? opts["format"] : "text";
25264
25271
  const format = formatRaw === "json" ? "json" : "text";
25265
- const validated = ImprovementReviewInputSchema.parse({
25272
+ const validated2 = ImprovementReviewInputSchema.parse({
25266
25273
  lookbackDays: lookbackParsed,
25267
25274
  fileIssues,
25268
25275
  minSampleSize: minSamplesParsed,
25269
25276
  fitnessFloor: fitnessParsed
25270
25277
  });
25271
25278
  return {
25272
- lookbackDays: validated.lookbackDays,
25273
- fileIssues: validated.fileIssues,
25274
- minSampleSize: validated.minSampleSize,
25275
- fitnessFloor: validated.fitnessFloor,
25279
+ lookbackDays: validated2.lookbackDays,
25280
+ fileIssues: validated2.fileIssues,
25281
+ minSampleSize: validated2.minSampleSize,
25282
+ fitnessFloor: validated2.fitnessFloor,
25276
25283
  format
25277
25284
  };
25278
25285
  }