nexus-agents 2.30.6 → 2.30.8
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-23G7NV6B.js → chunk-4PRT4F7I.js} +2 -2
- package/dist/{chunk-T7SJVP5R.js → chunk-ILGF6JIL.js} +56 -13
- package/dist/{chunk-T7SJVP5R.js.map → chunk-ILGF6JIL.js.map} +1 -1
- package/dist/{chunk-Q52QFWDQ.js → chunk-KFHU4P75.js} +2 -2
- package/dist/{chunk-MD2ABS6R.js → chunk-MDFQ3G3Y.js} +3 -3
- package/dist/{chunk-ZVUNIQLB.js → chunk-US7Z5ITC.js} +17 -2
- package/dist/chunk-US7Z5ITC.js.map +1 -0
- package/dist/cli.js +16 -16
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-MFGKPIAO.js → consensus-vote-6U4LANAT.js} +2 -2
- package/dist/{expert-bridge-IKR23WRI.js → expert-bridge-DXSKS5OG.js} +2 -2
- package/dist/index.js +5 -5
- package/dist/{setup-command-JVFJWD7A.js → setup-command-KUZZLEZ4.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-ZVUNIQLB.js.map +0 -1
- /package/dist/{chunk-23G7NV6B.js.map → chunk-4PRT4F7I.js.map} +0 -0
- /package/dist/{chunk-Q52QFWDQ.js.map → chunk-KFHU4P75.js.map} +0 -0
- /package/dist/{chunk-MD2ABS6R.js.map → chunk-MDFQ3G3Y.js.map} +0 -0
- /package/dist/{consensus-vote-MFGKPIAO.js.map → consensus-vote-6U4LANAT.js.map} +0 -0
- /package/dist/{expert-bridge-IKR23WRI.js.map → expert-bridge-DXSKS5OG.js.map} +0 -0
- /package/dist/{setup-command-JVFJWD7A.js.map → setup-command-KUZZLEZ4.js.map} +0 -0
|
@@ -12347,7 +12347,7 @@ async function processVotesWithCascade(votes, opts) {
|
|
|
12347
12347
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
12348
12348
|
async function runContrarianCheck(proposal, log) {
|
|
12349
12349
|
try {
|
|
12350
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
12350
|
+
const { executeExpert } = await import("./expert-bridge-DXSKS5OG.js");
|
|
12351
12351
|
const prompt = [
|
|
12352
12352
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
12353
12353
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -12717,4 +12717,4 @@ export {
|
|
|
12717
12717
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
12718
12718
|
registerConsensusVoteTool
|
|
12719
12719
|
};
|
|
12720
|
-
//# sourceMappingURL=chunk-
|
|
12720
|
+
//# sourceMappingURL=chunk-4PRT4F7I.js.map
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
toolSuccessStructured,
|
|
26
26
|
withProgressHeartbeat,
|
|
27
27
|
wrapToolWithTimeout
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4PRT4F7I.js";
|
|
29
29
|
import {
|
|
30
30
|
REGISTRY_PATH,
|
|
31
31
|
getProjectRoot,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
DEFAULT_TASK_TTL_MS,
|
|
67
67
|
clampTaskTtl
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-MDFQ3G3Y.js";
|
|
69
69
|
import {
|
|
70
70
|
createSessionMemory
|
|
71
71
|
} from "./chunk-ZXIFNJ7Q.js";
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
} from "./chunk-2L6A7RUZ.js";
|
|
88
88
|
import {
|
|
89
89
|
executeExpert
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-US7Z5ITC.js";
|
|
91
91
|
import {
|
|
92
92
|
ClaudeCliAdapter,
|
|
93
93
|
CliDetectionCache,
|
|
@@ -20756,6 +20756,10 @@ function cleanupExecution(state) {
|
|
|
20756
20756
|
clearTimeout(state.timeoutId);
|
|
20757
20757
|
}
|
|
20758
20758
|
state.queue.cancel();
|
|
20759
|
+
if (state.abortCleanup !== void 0) {
|
|
20760
|
+
state.abortCleanup.signal.removeEventListener("abort", state.abortCleanup.handler);
|
|
20761
|
+
delete state.abortCleanup;
|
|
20762
|
+
}
|
|
20759
20763
|
}
|
|
20760
20764
|
function sortResultsByStepOrder(results, steps) {
|
|
20761
20765
|
const stepOrder = new Map(steps.map((s, i) => [s.id, i]));
|
|
@@ -20779,6 +20783,7 @@ async function executeParallel(steps, context, stepExecutor, options) {
|
|
|
20779
20783
|
};
|
|
20780
20784
|
if (context.signal !== void 0) {
|
|
20781
20785
|
context.signal.addEventListener("abort", abortHandler);
|
|
20786
|
+
state.abortCleanup = { signal: context.signal, handler: abortHandler };
|
|
20782
20787
|
}
|
|
20783
20788
|
try {
|
|
20784
20789
|
setupOverallTimeout(state, opts);
|
|
@@ -35789,7 +35794,13 @@ var ExecuteExpertInputSchema = z67.object({
|
|
|
35789
35794
|
)
|
|
35790
35795
|
});
|
|
35791
35796
|
function sanitizeExpertSummary(summary) {
|
|
35792
|
-
|
|
35797
|
+
let cleaned = summary;
|
|
35798
|
+
for (let i = 0; i < 10; i++) {
|
|
35799
|
+
const next = cleaned.replace(/<[^>]*>/g, "");
|
|
35800
|
+
if (next === cleaned) break;
|
|
35801
|
+
cleaned = next;
|
|
35802
|
+
}
|
|
35803
|
+
return cleaned.replace(/\b(ignore|forget|disregard)\s+(previous|above|all)\b/gi, "[REDACTED]").slice(0, 2e3);
|
|
35793
35804
|
}
|
|
35794
35805
|
function buildTask(input) {
|
|
35795
35806
|
const autoTimeout = getExpertTaskTimeout(input.task);
|
|
@@ -40988,7 +40999,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
40988
40999
|
]);
|
|
40989
41000
|
async function classifyWithLLM(task) {
|
|
40990
41001
|
try {
|
|
40991
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
41002
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-DXSKS5OG.js");
|
|
40992
41003
|
const prompt = [
|
|
40993
41004
|
"Classify this task into exactly one pipeline template.",
|
|
40994
41005
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -41991,7 +42002,7 @@ ${contextBlock}`;
|
|
|
41991
42002
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
41992
42003
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
41993
42004
|
try {
|
|
41994
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
42005
|
+
const { executeVoting } = await import("./consensus-vote-6U4LANAT.js");
|
|
41995
42006
|
const votingResult = await executeVoting(
|
|
41996
42007
|
{
|
|
41997
42008
|
proposal: plan.slice(0, 4e3),
|
|
@@ -47988,12 +47999,39 @@ var PATCH_PATTERNS = [
|
|
|
47988
47999
|
// Alternative fences: ```patch, ```text, ``` with diff --git
|
|
47989
48000
|
/```(?:patch|text|)\n(diff --git[\s\S]*?)```/i,
|
|
47990
48001
|
// Unified diff in fenced block: --- a/file
|
|
47991
|
-
/```(?:diff|patch|text|)\n(---\s+a\/[\s\S]*?)```/i
|
|
47992
|
-
// Raw diff --git without fences
|
|
47993
|
-
/(diff --git[\s\S]*?)(?:\n\n[^d]|$)/,
|
|
47994
|
-
// Raw unified diff without fences
|
|
47995
|
-
/\n(--- a\/[\s\S]*?\n\+\+\+ b\/[\s\S]*?)(?:\n\n[^-+@ ]|$)/
|
|
48002
|
+
/```(?:diff|patch|text|)\n(---\s+a\/[\s\S]*?)```/i
|
|
47996
48003
|
];
|
|
48004
|
+
var MAX_RAW_EXTRACT_LEN = 256 * 1024;
|
|
48005
|
+
function extractRawDiffGit(response) {
|
|
48006
|
+
const start = response.indexOf("diff --git");
|
|
48007
|
+
if (start === -1) return null;
|
|
48008
|
+
let i = start;
|
|
48009
|
+
while (i < response.length) {
|
|
48010
|
+
const nl = response.indexOf("\n\n", i);
|
|
48011
|
+
if (nl === -1) return response.slice(start);
|
|
48012
|
+
const after = response.charAt(nl + 2);
|
|
48013
|
+
if (after !== "d" && after !== "") return response.slice(start, nl);
|
|
48014
|
+
i = nl + 2;
|
|
48015
|
+
}
|
|
48016
|
+
return response.slice(start);
|
|
48017
|
+
}
|
|
48018
|
+
function extractRawUnifiedDiff(response) {
|
|
48019
|
+
const start = response.indexOf("\n--- a/");
|
|
48020
|
+
if (start === -1) return null;
|
|
48021
|
+
const plusIdx = response.indexOf("\n+++ b/", start);
|
|
48022
|
+
if (plusIdx === -1) return null;
|
|
48023
|
+
let i = plusIdx;
|
|
48024
|
+
while (i < response.length) {
|
|
48025
|
+
const nl = response.indexOf("\n\n", i);
|
|
48026
|
+
if (nl === -1) return response.slice(start + 1);
|
|
48027
|
+
const after = response.charAt(nl + 2);
|
|
48028
|
+
if (after !== "-" && after !== "+" && after !== "@" && after !== " " && after !== "") {
|
|
48029
|
+
return response.slice(start + 1, nl);
|
|
48030
|
+
}
|
|
48031
|
+
i = nl + 2;
|
|
48032
|
+
}
|
|
48033
|
+
return response.slice(start + 1);
|
|
48034
|
+
}
|
|
47997
48035
|
function extractPatch(response) {
|
|
47998
48036
|
for (const pattern of PATCH_PATTERNS) {
|
|
47999
48037
|
const match = pattern.exec(response);
|
|
@@ -48001,6 +48039,11 @@ function extractPatch(response) {
|
|
|
48001
48039
|
return normalizePatch(match[1]);
|
|
48002
48040
|
}
|
|
48003
48041
|
}
|
|
48042
|
+
const bounded = response.length > MAX_RAW_EXTRACT_LEN ? response.slice(0, MAX_RAW_EXTRACT_LEN) : response;
|
|
48043
|
+
const raw1 = extractRawDiffGit(bounded);
|
|
48044
|
+
if (raw1 !== null) return normalizePatch(raw1);
|
|
48045
|
+
const raw2 = extractRawUnifiedDiff(bounded);
|
|
48046
|
+
if (raw2 !== null) return normalizePatch(raw2);
|
|
48004
48047
|
return null;
|
|
48005
48048
|
}
|
|
48006
48049
|
function normalizePatch(raw) {
|
|
@@ -48141,7 +48184,7 @@ function extractErrorHint(response, maxLen = 200) {
|
|
|
48141
48184
|
response
|
|
48142
48185
|
);
|
|
48143
48186
|
if (errorMatch !== null) return errorMatch[0].slice(0, maxLen);
|
|
48144
|
-
const failMatch = /(?:still fails|test
|
|
48187
|
+
const failMatch = /(?:still fails|test.{0,200}?fail|doesn't work|incorrect)[^\n]{0,100}/i.exec(response);
|
|
48145
48188
|
if (failMatch !== null) return failMatch[0].slice(0, maxLen);
|
|
48146
48189
|
return "";
|
|
48147
48190
|
}
|
|
@@ -53163,4 +53206,4 @@ export {
|
|
|
53163
53206
|
detectBackend,
|
|
53164
53207
|
createTaskTracker
|
|
53165
53208
|
};
|
|
53166
|
-
//# sourceMappingURL=chunk-
|
|
53209
|
+
//# sourceMappingURL=chunk-ILGF6JIL.js.map
|