nexus-agents 4.0.0 → 4.1.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.
@@ -22,7 +22,7 @@ import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  DEFAULT_TOOL_RATE_LIMITS,
24
24
  clampTaskTtl
25
- } from "./chunk-THTBIBCW.js";
25
+ } from "./chunk-6Q2RAJYX.js";
26
26
  import {
27
27
  executeExpert
28
28
  } from "./chunk-4Z2Z52C7.js";
@@ -44483,7 +44483,11 @@ function buildDryRunResult(planResult) {
44483
44483
  tasks: [],
44484
44484
  voteIterations: planResult.iterations,
44485
44485
  qaIterations: 0,
44486
- securityPassed: false
44486
+ // #4772: a dry run stops before security by design. `false` alone read as
44487
+ // "the security gate rejected this"; `securityRan: false` says it never ran.
44488
+ securityPassed: false,
44489
+ securityRan: false,
44490
+ ...planResult.plan.trim() === "" ? { planStatus: "empty" } : {}
44487
44491
  };
44488
44492
  }
44489
44493
  async function resolveResearch(prior, task, stages, options) {
@@ -44641,6 +44645,10 @@ async function planVoteLoop(task, research, stages, sessionId) {
44641
44645
  { name: `plan (i=${String(i)})`, kind: "pipeline.stage", attrs: { iteration: i } },
44642
44646
  () => stages.plan(task, research, feedback)
44643
44647
  );
44648
+ if (plan.trim() === "") {
44649
+ logger42.warn("Planner returned no plan \u2014 stopping before vote", { iteration: i, sessionId });
44650
+ return { plan: "", iterations: i, conditional: false, conditions: [], caveats: [] };
44651
+ }
44644
44652
  const vote = await withStep(
44645
44653
  { name: `vote (i=${String(i)})`, kind: "consensus.vote", attrs: { iteration: i } },
44646
44654
  async (ctx) => {
@@ -45907,7 +45915,7 @@ ${contextBlock}`;
45907
45915
  durationMs: r.durationMs
45908
45916
  });
45909
45917
  await postProgress(config, "Plan", `Done (${r.text.length} chars, ${r.durationMs}ms)`);
45910
- return r.text || prompt;
45918
+ return r.text;
45911
45919
  },
45912
45920
  vote: async (plan, research) => {
45913
45921
  startStage("vote");
@@ -54406,4 +54414,4 @@ export {
54406
54414
  shutdownFeedbackSubscriber,
54407
54415
  createEventBusBridge
54408
54416
  };
54409
- //# sourceMappingURL=chunk-7LCLCIGM.js.map
54417
+ //# sourceMappingURL=chunk-4XRV4MIQ.js.map