nexus-agents 4.0.0 → 4.1.1

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.
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-OQLFRJCW.js";
53
53
 
54
54
  // src/version.ts
55
- var VERSION = true ? "4.0.0" : "dev";
55
+ var VERSION = true ? "4.1.1" : "dev";
56
56
 
57
57
  // src/config/schemas-core.ts
58
58
  import { z } from "zod";
@@ -2339,7 +2339,7 @@ async function runDoctorFix(result) {
2339
2339
  writeLine2("\u2500".repeat(40));
2340
2340
  let fixCount = 0;
2341
2341
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2342
- const { runSetup } = await import("./setup-command-MKCEHLU7.js");
2342
+ const { runSetup } = await import("./setup-command-S2VR7PE7.js");
2343
2343
  const setupResult = runSetup({
2344
2344
  skipMcp: true,
2345
2345
  skipRules: true,
@@ -2452,4 +2452,4 @@ export {
2452
2452
  startStdioServer,
2453
2453
  closeServer
2454
2454
  };
2455
- //# sourceMappingURL=chunk-THTBIBCW.js.map
2455
+ //# sourceMappingURL=chunk-RCSHGEIL.js.map
@@ -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-RCSHGEIL.js";
26
26
  import {
27
27
  executeExpert
28
28
  } from "./chunk-4Z2Z52C7.js";
@@ -43073,8 +43073,10 @@ function verifyEvent(event, index, priorHash) {
43073
43073
  return null;
43074
43074
  }
43075
43075
  function verifyChain(events) {
43076
- if (events.length === 0) return { ok: true, eventCount: 0 };
43077
- if (events[0]?.hash === void 0) return { ok: true, eventCount: events.length };
43076
+ if (events.length === 0) return { ok: true, eventCount: 0, notVerified: "empty" };
43077
+ if (events[0]?.hash === void 0) {
43078
+ return { ok: true, eventCount: events.length, notVerified: "unchained" };
43079
+ }
43078
43080
  let priorHash = void 0;
43079
43081
  for (let i = 0; i < events.length; i++) {
43080
43082
  const event = events[i];
@@ -44483,7 +44485,11 @@ function buildDryRunResult(planResult) {
44483
44485
  tasks: [],
44484
44486
  voteIterations: planResult.iterations,
44485
44487
  qaIterations: 0,
44486
- securityPassed: false
44488
+ // #4772: a dry run stops before security by design. `false` alone read as
44489
+ // "the security gate rejected this"; `securityRan: false` says it never ran.
44490
+ securityPassed: false,
44491
+ securityRan: false,
44492
+ ...planResult.plan.trim() === "" ? { planStatus: "empty" } : {}
44487
44493
  };
44488
44494
  }
44489
44495
  async function resolveResearch(prior, task, stages, options) {
@@ -44641,6 +44647,10 @@ async function planVoteLoop(task, research, stages, sessionId) {
44641
44647
  { name: `plan (i=${String(i)})`, kind: "pipeline.stage", attrs: { iteration: i } },
44642
44648
  () => stages.plan(task, research, feedback)
44643
44649
  );
44650
+ if (plan.trim() === "") {
44651
+ logger42.warn("Planner returned no plan \u2014 stopping before vote", { iteration: i, sessionId });
44652
+ return { plan: "", iterations: i, conditional: false, conditions: [], caveats: [] };
44653
+ }
44644
44654
  const vote = await withStep(
44645
44655
  { name: `vote (i=${String(i)})`, kind: "consensus.vote", attrs: { iteration: i } },
44646
44656
  async (ctx) => {
@@ -45907,7 +45917,7 @@ ${contextBlock}`;
45907
45917
  durationMs: r.durationMs
45908
45918
  });
45909
45919
  await postProgress(config, "Plan", `Done (${r.text.length} chars, ${r.durationMs}ms)`);
45910
- return r.text || prompt;
45920
+ return r.text;
45911
45921
  },
45912
45922
  vote: async (plan, research) => {
45913
45923
  startStage("vote");
@@ -54406,4 +54416,4 @@ export {
54406
54416
  shutdownFeedbackSubscriber,
54407
54417
  createEventBusBridge
54408
54418
  };
54409
- //# sourceMappingURL=chunk-7LCLCIGM.js.map
54419
+ //# sourceMappingURL=chunk-UFWTULMJ.js.map