nexus-agents 8.46.2 → 8.46.3
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-X5S2JXR3.js → chunk-7XXDAAA6.js} +3 -3
- package/dist/{chunk-Y6J2KOQ6.js → chunk-B63LOGX2.js} +3 -3
- package/dist/{chunk-T2ONDETH.js → chunk-JCGULBW7.js} +2 -2
- package/dist/{chunk-RHLWNHKX.js → chunk-N7MCDA3B.js} +43 -13
- package/dist/{chunk-RHLWNHKX.js.map → chunk-N7MCDA3B.js.map} +1 -1
- package/dist/{chunk-Y4DMSLJM.js → chunk-W4TCYGVJ.js} +2 -2
- package/dist/{chunk-VL2IFI47.js → chunk-XT7EOVBN.js} +2 -2
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-2TBA6XSI.js → consensus-vote-XURPZTSQ.js} +4 -4
- package/dist/{improvement-review-PGMJETQS.js → improvement-review-6F66U24D.js} +4 -4
- package/dist/index.d.ts +7 -1
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-U7HU54SU.js → setup-data-dir-IEDRNZQG.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-X5S2JXR3.js.map → chunk-7XXDAAA6.js.map} +0 -0
- /package/dist/{chunk-Y6J2KOQ6.js.map → chunk-B63LOGX2.js.map} +0 -0
- /package/dist/{chunk-T2ONDETH.js.map → chunk-JCGULBW7.js.map} +0 -0
- /package/dist/{chunk-Y4DMSLJM.js.map → chunk-W4TCYGVJ.js.map} +0 -0
- /package/dist/{chunk-VL2IFI47.js.map → chunk-XT7EOVBN.js.map} +0 -0
- /package/dist/{consensus-vote-2TBA6XSI.js.map → consensus-vote-XURPZTSQ.js.map} +0 -0
- /package/dist/{improvement-review-PGMJETQS.js.map → improvement-review-6F66U24D.js.map} +0 -0
- /package/dist/{setup-data-dir-U7HU54SU.js.map → setup-data-dir-IEDRNZQG.js.map} +0 -0
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
NODE_ENGINE_RANGE,
|
|
9
9
|
VERSION,
|
|
10
10
|
isNodeVersionSupported
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XT7EOVBN.js";
|
|
12
12
|
import {
|
|
13
13
|
capitalize
|
|
14
14
|
} from "./chunk-7LP6VJRP.js";
|
|
@@ -1227,7 +1227,7 @@ async function runDoctorFix(result) {
|
|
|
1227
1227
|
writeLine2("\u2500".repeat(40));
|
|
1228
1228
|
let fixCount = 0;
|
|
1229
1229
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1230
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1230
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-IEDRNZQG.js");
|
|
1231
1231
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1232
1232
|
writeLine2(outcome.line);
|
|
1233
1233
|
if (outcome.counted) fixCount++;
|
|
@@ -1329,4 +1329,4 @@ export {
|
|
|
1329
1329
|
startStdioServer,
|
|
1330
1330
|
closeServer
|
|
1331
1331
|
};
|
|
1332
|
-
//# sourceMappingURL=chunk-
|
|
1332
|
+
//# sourceMappingURL=chunk-7XXDAAA6.js.map
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-W4TCYGVJ.js";
|
|
27
27
|
import {
|
|
28
28
|
VERSION
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XT7EOVBN.js";
|
|
30
30
|
import {
|
|
31
31
|
assessPanelIndependence,
|
|
32
32
|
countDistinctModels,
|
|
@@ -7850,4 +7850,4 @@ export {
|
|
|
7850
7850
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
7851
7851
|
registerConsensusVoteTool
|
|
7852
7852
|
};
|
|
7853
|
-
//# sourceMappingURL=chunk-
|
|
7853
|
+
//# sourceMappingURL=chunk-B63LOGX2.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W4TCYGVJ.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -2173,4 +2173,4 @@ export {
|
|
|
2173
2173
|
runImprovementReview,
|
|
2174
2174
|
registerImprovementReviewTool
|
|
2175
2175
|
};
|
|
2176
|
-
//# sourceMappingURL=chunk-
|
|
2176
|
+
//# sourceMappingURL=chunk-JCGULBW7.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7XXDAAA6.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
27
|
} from "./chunk-A5MQ5FF4.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
toJobSummary,
|
|
56
56
|
updateStage,
|
|
57
57
|
writeJobCancelled
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-B63LOGX2.js";
|
|
59
59
|
import {
|
|
60
60
|
allOf,
|
|
61
61
|
anyOf
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
} from "./chunk-M4Y2KBKB.js";
|
|
76
76
|
import {
|
|
77
77
|
withPrerequisite
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-JCGULBW7.js";
|
|
79
79
|
import {
|
|
80
80
|
NOOP_NOTIFIER,
|
|
81
81
|
RateLimiter,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
withAuditTrail,
|
|
101
101
|
withProgressHeartbeat,
|
|
102
102
|
wrapToolWithTimeout
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-W4TCYGVJ.js";
|
|
104
104
|
import {
|
|
105
105
|
createAuditTrail,
|
|
106
106
|
createGraphAuditBridge,
|
|
@@ -32597,6 +32597,14 @@ function buildDecision(input) {
|
|
|
32597
32597
|
const base = {
|
|
32598
32598
|
pattern: input.result.pattern,
|
|
32599
32599
|
reasoning: input.result.reasoning,
|
|
32600
|
+
// NOT a measurement (#5957, same call as #5119): every rule in this file
|
|
32601
|
+
// returns an authored literal, and this copies it through untouched. No
|
|
32602
|
+
// field of `input.analysis` reaches it, so two tasks claimed by the same
|
|
32603
|
+
// rule always report the same number. It is a source prior on the RULE.
|
|
32604
|
+
// It leaves this module — meta-orchestrator-routing.ts forwards it to
|
|
32605
|
+
// MetaDecision, and run-tool.ts returns it to MCP callers as
|
|
32606
|
+
// RunResponse.confidence — so deriving it from an observation means
|
|
32607
|
+
// updating those declarations too. `workflow-router.test.ts` pins this.
|
|
32600
32608
|
confidence: input.result.confidence,
|
|
32601
32609
|
matchedRules: input.matchedRules,
|
|
32602
32610
|
alternatives: input.alternatives,
|
|
@@ -34378,6 +34386,7 @@ async function maybeRetryAfterTriage(opts) {
|
|
|
34378
34386
|
// src/orchestration/aorchestra/cross-wave-context.ts
|
|
34379
34387
|
var logger28 = createLogger({ component: "cross-wave-context" });
|
|
34380
34388
|
var MAX_CHARS_PER_WORKER = 1500;
|
|
34389
|
+
var MAX_NAMED_OMITTED_ROLES = 8;
|
|
34381
34390
|
var MAX_PRIOR_CONTEXT_CHARS = 6e3;
|
|
34382
34391
|
var INJECTION_PATTERNS2 = [
|
|
34383
34392
|
/<\/?(?:system|human|assistant|instructions)(?:\s[^>]*)?>[\s\S]*?(?:<\/(?:system|human|assistant|instructions)>|$)/gi,
|
|
@@ -34439,35 +34448,56 @@ function buildPriorWaveContextBlock(results) {
|
|
|
34439
34448
|
const header = "## Prior Wave Context\n\nThe following results were produced by prior wave workers. Use this context to inform your work.\n";
|
|
34440
34449
|
let totalChars = header.length;
|
|
34441
34450
|
const entries = [];
|
|
34451
|
+
const omittedRoles = [];
|
|
34442
34452
|
for (const result of successResults) {
|
|
34443
34453
|
const sanitized = sanitizeWorkerOutput(result.output);
|
|
34444
34454
|
const truncated = sanitized.length > MAX_CHARS_PER_WORKER ? sanitized.slice(0, MAX_CHARS_PER_WORKER) + " [truncated]" : sanitized;
|
|
34445
34455
|
const entry = `### ${result.role} (${result.status})
|
|
34446
34456
|
${truncated}`;
|
|
34447
34457
|
if (totalChars + entry.length > MAX_PRIOR_CONTEXT_CHARS) {
|
|
34448
|
-
|
|
34458
|
+
omittedRoles.push(result.role);
|
|
34459
|
+
continue;
|
|
34449
34460
|
}
|
|
34450
34461
|
entries.push(entry);
|
|
34451
34462
|
totalChars += entry.length;
|
|
34452
34463
|
}
|
|
34453
34464
|
if (entries.length === 0) return "";
|
|
34454
|
-
const
|
|
34455
|
-
|
|
34465
|
+
const failures = buildFailureSummary(results, MAX_PRIOR_CONTEXT_CHARS - totalChars);
|
|
34466
|
+
const omitted = [...omittedRoles, ...failures.omittedRoles];
|
|
34467
|
+
return header + "\n" + entries.join("\n\n") + failures.text + buildOmissionNotice(omitted);
|
|
34456
34468
|
}
|
|
34457
34469
|
var MAX_ERROR_SNIPPET_CHARS = 100;
|
|
34470
|
+
function buildOmissionNotice(omittedRoles) {
|
|
34471
|
+
if (omittedRoles.length === 0) return "";
|
|
34472
|
+
const shown = omittedRoles.slice(0, MAX_NAMED_OMITTED_ROLES);
|
|
34473
|
+
const rest = omittedRoles.length - shown.length;
|
|
34474
|
+
const names = shown.join(", ") + (rest > 0 ? `, and ${String(rest)} more` : "");
|
|
34475
|
+
logger28.warn("Prior-wave context truncated \u2014 worker results omitted", {
|
|
34476
|
+
omittedCount: omittedRoles.length,
|
|
34477
|
+
omittedRoles
|
|
34478
|
+
});
|
|
34479
|
+
return `
|
|
34480
|
+
|
|
34481
|
+
_[Context budget reached: ${String(omittedRoles.length)} prior-wave result(s) omitted \u2014 ${names}. This block is PARTIAL.]_`;
|
|
34482
|
+
}
|
|
34458
34483
|
function buildFailureSummary(results, budget) {
|
|
34459
34484
|
const failures = results.filter((r) => r.status === "error");
|
|
34460
|
-
if (failures.length === 0
|
|
34485
|
+
if (failures.length === 0) return { text: "", omittedRoles: [] };
|
|
34486
|
+
if (budget < 50) return { text: "", omittedRoles: failures.map((f) => f.role) };
|
|
34461
34487
|
const lines = ["\n\n### Failed Workers"];
|
|
34462
34488
|
let used = lines[0]?.length ?? 0;
|
|
34489
|
+
const omittedRoles = [];
|
|
34463
34490
|
for (const f of failures) {
|
|
34464
34491
|
const snippet = (f.error ?? "unknown error").slice(0, MAX_ERROR_SNIPPET_CHARS);
|
|
34465
34492
|
const line = `- **${f.role}**: ${snippet}`;
|
|
34466
|
-
if (used + line.length > budget)
|
|
34493
|
+
if (used + line.length > budget) {
|
|
34494
|
+
omittedRoles.push(f.role);
|
|
34495
|
+
continue;
|
|
34496
|
+
}
|
|
34467
34497
|
lines.push(line);
|
|
34468
34498
|
used += line.length;
|
|
34469
34499
|
}
|
|
34470
|
-
return lines.length > 1 ? lines.join("\n") : "";
|
|
34500
|
+
return { text: lines.length > 1 ? lines.join("\n") : "", omittedRoles };
|
|
34471
34501
|
}
|
|
34472
34502
|
|
|
34473
34503
|
// src/orchestration/aorchestra/role-capabilities.ts
|
|
@@ -45998,7 +46028,7 @@ function buildVotingInput(plan, config) {
|
|
|
45998
46028
|
}
|
|
45999
46029
|
async function executeSingleVote(plan, config, log) {
|
|
46000
46030
|
try {
|
|
46001
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
46031
|
+
const { executeVoting } = await import("./consensus-vote-XURPZTSQ.js");
|
|
46002
46032
|
const input = buildVotingInput(plan, config);
|
|
46003
46033
|
const result = await executeVoting(input, log);
|
|
46004
46034
|
return parseVotingResult(result);
|
|
@@ -47793,7 +47823,7 @@ ${contextBlock}`;
|
|
|
47793
47823
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47794
47824
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47795
47825
|
try {
|
|
47796
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47826
|
+
const { executeVoting } = await import("./consensus-vote-XURPZTSQ.js");
|
|
47797
47827
|
const votingResult = await executeVoting(
|
|
47798
47828
|
{
|
|
47799
47829
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -56519,4 +56549,4 @@ export {
|
|
|
56519
56549
|
startPipelineEventBridge,
|
|
56520
56550
|
shutdownPipelineEventBridge
|
|
56521
56551
|
};
|
|
56522
|
-
//# sourceMappingURL=chunk-
|
|
56552
|
+
//# sourceMappingURL=chunk-N7MCDA3B.js.map
|