nexus-agents 4.18.4 → 4.18.5

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.
@@ -170,7 +170,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
170
170
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
171
171
 
172
172
  // src/version.ts
173
- var VERSION = true ? "4.18.4" : "dev";
173
+ var VERSION = true ? "4.18.5" : "dev";
174
174
 
175
175
  // src/mcp/task-store.ts
176
176
  import { InMemoryTaskStore } from "@modelcontextprotocol/sdk/experimental/tasks";
@@ -1201,7 +1201,7 @@ async function runDoctorFix(result) {
1201
1201
  writeLine2("\u2500".repeat(40));
1202
1202
  let fixCount = 0;
1203
1203
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
1204
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-AD4A5YON.js");
1204
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-CSFQI6L3.js");
1205
1205
  const outcome = describeDataDirFix2(initDataDirectories2());
1206
1206
  writeLine2(outcome.line);
1207
1207
  if (outcome.counted) fixCount++;
@@ -1304,4 +1304,4 @@ export {
1304
1304
  startStdioServer,
1305
1305
  closeServer
1306
1306
  };
1307
- //# sourceMappingURL=chunk-5NKKABGU.js.map
1307
+ //# sourceMappingURL=chunk-GNAIXLF2.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-5NKKABGU.js";
24
+ } from "./chunk-GNAIXLF2.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-3VJ2MSUU.js";
@@ -55862,4 +55862,4 @@ export {
55862
55862
  shutdownFeedbackSubscriber,
55863
55863
  createEventBusBridge
55864
55864
  };
55865
- //# sourceMappingURL=chunk-NBWEGQNU.js.map
55865
+ //# sourceMappingURL=chunk-HGWD4CJU.js.map
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-HGWD4CJU.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-GNAIXLF2.js";
177
177
  import {
178
178
  buildOpenAICompatAdapters,
179
179
  readOpenAICompatEnv
@@ -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
  }