nexus-agents 11.5.8 → 11.5.9

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.
@@ -5,7 +5,7 @@ import {
5
5
  getCurrentRequestContext,
6
6
  runWithRequestContext,
7
7
  serverCallerInfo
8
- } from "./chunk-GZTZ3YNJ.js";
8
+ } from "./chunk-XK7JQ5IE.js";
9
9
  import {
10
10
  DEFAULT_EXECUTION_MODE
11
11
  } from "./chunk-TYLE7Z2S.js";
@@ -2345,4 +2345,4 @@ export {
2345
2345
  DEFAULT_CONSENSUS_CONFIG,
2346
2346
  ConsensusMetricsSchema
2347
2347
  };
2348
- //# sourceMappingURL=chunk-3ADJ62JR.js.map
2348
+ //# sourceMappingURL=chunk-6HR64CLY.js.map
@@ -7,7 +7,7 @@ import {
7
7
  VERSION,
8
8
  isNodeVersionSupported,
9
9
  recordServerTransport
10
- } from "./chunk-GZTZ3YNJ.js";
10
+ } from "./chunk-XK7JQ5IE.js";
11
11
  import {
12
12
  checkGatewayHealth,
13
13
  cliFailsVerdict,
@@ -2264,7 +2264,7 @@ async function runDoctorFix(result) {
2264
2264
  writeLine2("\u2500".repeat(40));
2265
2265
  let fixCount = 0;
2266
2266
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2267
- const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-F37R7F23.js");
2267
+ const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-6GRTO3W4.js");
2268
2268
  const outcome = describeDataDirFix2(initDataDirectories2());
2269
2269
  writeLine2(outcome.line);
2270
2270
  if (outcome.counted) fixCount++;
@@ -2384,4 +2384,4 @@ export {
2384
2384
  startStdioServer,
2385
2385
  closeServer
2386
2386
  };
2387
- //# sourceMappingURL=chunk-MAH6W4JY.js.map
2387
+ //# sourceMappingURL=chunk-JLHNOWES.js.map
@@ -21,7 +21,7 @@ import {
21
21
  toolSuccess,
22
22
  withProgressHeartbeat,
23
23
  wrapToolWithTimeout
24
- } from "./chunk-3ADJ62JR.js";
24
+ } from "./chunk-6HR64CLY.js";
25
25
  import {
26
26
  getToolMemory
27
27
  } from "./chunk-SPM2Z5ND.js";
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-EZNIYU5T.js";
31
31
  import {
32
32
  VERSION
33
- } from "./chunk-GZTZ3YNJ.js";
33
+ } from "./chunk-XK7JQ5IE.js";
34
34
  import {
35
35
  ModelBoundAdapter,
36
36
  UNVERIFIABLE_STDERR_RE,
@@ -9915,4 +9915,4 @@ export {
9915
9915
  CONSENSUS_VOTE_TOOL_SCHEMA,
9916
9916
  registerConsensusVoteTool
9917
9917
  };
9918
- //# sourceMappingURL=chunk-QC437V2W.js.map
9918
+ //# sourceMappingURL=chunk-OZYSGELA.js.map
@@ -58,7 +58,7 @@ import {
58
58
  updateStage,
59
59
  withFileLock,
60
60
  writeJobCancelled
61
- } from "./chunk-QC437V2W.js";
61
+ } from "./chunk-OZYSGELA.js";
62
62
  import {
63
63
  normalizeTopicToCanonical,
64
64
  synthesizeResearch
@@ -77,7 +77,7 @@ import {
77
77
  } from "./chunk-U44OI6Z5.js";
78
78
  import {
79
79
  withPrerequisite
80
- } from "./chunk-LACIHWOE.js";
80
+ } from "./chunk-YBF3K74C.js";
81
81
  import {
82
82
  NOOP_NOTIFIER,
83
83
  RateLimiter,
@@ -105,7 +105,7 @@ import {
105
105
  toolSuccess,
106
106
  withProgressHeartbeat,
107
107
  wrapToolWithTimeout
108
- } from "./chunk-3ADJ62JR.js";
108
+ } from "./chunk-6HR64CLY.js";
109
109
  import {
110
110
  generateSecurityPlan
111
111
  } from "./chunk-PX7KZWZT.js";
@@ -187,7 +187,7 @@ import {
187
187
  import {
188
188
  DEFAULT_TASK_TTL_MS,
189
189
  clampTaskTtl
190
- } from "./chunk-MAH6W4JY.js";
190
+ } from "./chunk-JLHNOWES.js";
191
191
  import {
192
192
  allOf,
193
193
  anyOf
@@ -196,7 +196,7 @@ import {
196
196
  VERSION,
197
197
  createRequestContext,
198
198
  measuredTrustTier
199
- } from "./chunk-GZTZ3YNJ.js";
199
+ } from "./chunk-XK7JQ5IE.js";
200
200
  import {
201
201
  BWRAP_READ_ONLY_ARGS,
202
202
  CliDetectionCache,
@@ -352,6 +352,7 @@ import {
352
352
  throwIfAborted,
353
353
  toError,
354
354
  toExpertTaskAnalysisResult,
355
+ truncateText,
355
356
  truncateWithInfo,
356
357
  withStep
357
358
  } from "./chunk-YIIQBHT3.js";
@@ -46682,7 +46683,7 @@ function buildVotingInput(plan, config) {
46682
46683
  }
46683
46684
  async function executeSingleVote(plan, config, log) {
46684
46685
  try {
46685
- const { executeVoting } = await import("./consensus-vote-MFU4GC7U.js");
46686
+ const { executeVoting } = await import("./consensus-vote-EC47B6HM.js");
46686
46687
  const input = buildVotingInput(plan, config);
46687
46688
  const result = await executeVoting(input, log);
46688
46689
  return parseVotingResult(result);
@@ -48583,7 +48584,7 @@ function createVoteStage({ config, startStage }) {
48583
48584
  const strategy = config.votingStrategy ?? "higher_order";
48584
48585
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
48585
48586
  try {
48586
- const { executeVoting } = await import("./consensus-vote-MFU4GC7U.js");
48587
+ const { executeVoting } = await import("./consensus-vote-EC47B6HM.js");
48587
48588
  const proposal = buildVoteProposal(plan, research);
48588
48589
  const votingResult = await executeVoting(
48589
48590
  {
@@ -55230,8 +55231,10 @@ var DevPipelineInputSchema = z109.object({
55230
55231
  votingStrategy: VotingStrategySchema.optional().describe(
55231
55232
  "Voting strategy for plan approval (default: higher_order)"
55232
55233
  ),
55233
- /** Use 3 agents instead of 6 for faster voting. */
55234
- quickMode: z109.boolean().default(false).describe("Use 3 agents instead of 6 for faster consensus voting"),
55234
+ /** Start with the canonical quick panel; approvals may trigger a full-panel re-vote. */
55235
+ quickMode: z109.boolean().default(false).describe(
55236
+ "Start with 3 voters (architect, security, scope_steward) instead of 7. An approved quick vote may escalate to the full 7-role panel when the Bayesian posterior is borderline or a separate contrarian check rejects with high confidence, matching CLI --quick"
55237
+ ),
55235
55238
  /**
55236
55239
  * Deadline for EACH stage call in milliseconds (min 30s, max 600s), not a
55237
55240
  * budget for the whole run (#6736). Replaces every stage's default, the
@@ -55344,11 +55347,12 @@ async function executeDevPipelineBody(taskText, stages, pipelineOptions, simulat
55344
55347
  flushPipelineMemory();
55345
55348
  const output2 = buildStructuredOutput(result, simulated);
55346
55349
  if (!result.completed && result.dryRun !== true && result.harnessMode !== true) {
55347
- return toolStructuredError({
55350
+ const error = toolStructuredError({
55348
55351
  errorCategory: "business",
55349
55352
  message: describeIncompleteRun(result),
55350
55353
  detail: output2
55351
55354
  });
55355
+ return { ...error, content: [{ type: "text", text: describeFailureText(result) }] };
55352
55356
  }
55353
55357
  return structuredToolSuccess(z109.record(z109.string(), z109.unknown()), output2);
55354
55358
  }
@@ -55367,6 +55371,29 @@ function describeIncompleteRun(result) {
55367
55371
  }
55368
55372
  return "Pipeline did not complete";
55369
55373
  }
55374
+ function describeFailureText(result) {
55375
+ const details = [];
55376
+ if (result.planStatus !== void 0) {
55377
+ const reason = result.planVoteReason ?? result.planVoteFeedback;
55378
+ if (reason !== void 0) details.push(`planning: ${reason}`);
55379
+ }
55380
+ if (!result.securityPassed && result.securityNote !== void 0) {
55381
+ details.push(`security: ${result.securityNote}`);
55382
+ }
55383
+ details.push(...unfinishedTaskFeedback(result.tasks));
55384
+ for (const warning of result.warnings ?? []) details.push(`warning: ${warning}`);
55385
+ const text = [describeIncompleteRun(result), ...details].join("\n");
55386
+ return truncateText(text, 2e3, "\u2026");
55387
+ }
55388
+ function unfinishedTaskFeedback(tasks) {
55389
+ const details = [];
55390
+ for (const task of tasks) {
55391
+ if (task.status !== "done" && task.feedback !== void 0) {
55392
+ details.push(`tasks (${task.id}): ${task.feedback}`);
55393
+ }
55394
+ }
55395
+ return details;
55396
+ }
55370
55397
  function parseHandlerInput(args) {
55371
55398
  const parsed = DevPipelineInputSchema.safeParse(args);
55372
55399
  if (!parsed.success) {
@@ -59505,4 +59532,4 @@ export {
59505
59532
  initializeSandbox,
59506
59533
  getSandboxMode
59507
59534
  };
59508
- //# sourceMappingURL=chunk-75E5P5VI.js.map
59535
+ //# sourceMappingURL=chunk-TPPUV3CU.js.map