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.
- package/dist/{chunk-THTBIBCW.js → chunk-RCSHGEIL.js} +3 -3
- package/dist/{chunk-7LCLCIGM.js → chunk-UFWTULMJ.js} +16 -6
- package/dist/{chunk-7LCLCIGM.js.map → chunk-UFWTULMJ.js.map} +1 -1
- package/dist/{chunk-6XQYOWU3.js → chunk-ZBLX5SPO.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +24 -0
- package/dist/index.js +2 -2
- package/dist/{setup-command-MKCEHLU7.js → setup-command-S2VR7PE7.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-THTBIBCW.js.map → chunk-RCSHGEIL.js.map} +0 -0
- /package/dist/{chunk-6XQYOWU3.js.map → chunk-ZBLX5SPO.js.map} +0 -0
- /package/dist/{setup-command-MKCEHLU7.js.map → setup-command-S2VR7PE7.js.map} +0 -0
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
} from "./chunk-OQLFRJCW.js";
|
|
53
53
|
|
|
54
54
|
// src/version.ts
|
|
55
|
-
var VERSION = true ? "4.
|
|
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-
|
|
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-
|
|
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-
|
|
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)
|
|
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
|
-
|
|
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
|
|
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-
|
|
54419
|
+
//# sourceMappingURL=chunk-UFWTULMJ.js.map
|