nexus-agents 2.30.0 → 2.30.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-4IEUUQ4G.js → chunk-5SBKLQW6.js} +2 -2
- package/dist/{chunk-Q25KKHNQ.js → chunk-7RE6BBXJ.js} +2 -2
- package/dist/{chunk-FXX5UQCK.js → chunk-DEESTIZL.js} +7 -7
- package/dist/{chunk-CW2Z773T.js → chunk-UOXT5CZ7.js} +39 -3
- package/dist/chunk-UOXT5CZ7.js.map +1 -0
- package/dist/{chunk-6CHMHPT4.js → chunk-UXUA234N.js} +3 -3
- package/dist/{chunk-CD64JT3I.js → chunk-ZOTDJ4UR.js} +4 -4
- package/dist/cli.js +6 -6
- package/dist/{consensus-vote-5PFFDRLR.js → consensus-vote-Q7QKGUEP.js} +3 -3
- package/dist/{expert-bridge-5KVWX44T.js → expert-bridge-NF65ZTZZ.js} +2 -2
- package/dist/{factory-NHORX63J.js → factory-ZFHE6GXT.js} +2 -2
- package/dist/index.d.ts +7 -0
- package/dist/index.js +6 -6
- package/dist/{setup-command-QIHX7ZVJ.js → setup-command-JXHUUFT3.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-CW2Z773T.js.map +0 -1
- /package/dist/{chunk-4IEUUQ4G.js.map → chunk-5SBKLQW6.js.map} +0 -0
- /package/dist/{chunk-Q25KKHNQ.js.map → chunk-7RE6BBXJ.js.map} +0 -0
- /package/dist/{chunk-FXX5UQCK.js.map → chunk-DEESTIZL.js.map} +0 -0
- /package/dist/{chunk-6CHMHPT4.js.map → chunk-UXUA234N.js.map} +0 -0
- /package/dist/{chunk-CD64JT3I.js.map → chunk-ZOTDJ4UR.js.map} +0 -0
- /package/dist/{consensus-vote-5PFFDRLR.js.map → consensus-vote-Q7QKGUEP.js.map} +0 -0
- /package/dist/{expert-bridge-5KVWX44T.js.map → expert-bridge-NF65ZTZZ.js.map} +0 -0
- /package/dist/{factory-NHORX63J.js.map → factory-ZFHE6GXT.js.map} +0 -0
- /package/dist/{setup-command-QIHX7ZVJ.js.map → setup-command-JXHUUFT3.js.map} +0 -0
|
@@ -23,7 +23,7 @@ async function getMcpConfigPath() {
|
|
|
23
23
|
var cachedCircuitBreaker = null;
|
|
24
24
|
async function getRouter() {
|
|
25
25
|
if (cachedRouter !== null) return cachedRouter;
|
|
26
|
-
const { createAllAdapters } = await import("./factory-
|
|
26
|
+
const { createAllAdapters } = await import("./factory-ZFHE6GXT.js");
|
|
27
27
|
const { createCompositeRouter } = await import("./composite-router-JD7URTC2.js");
|
|
28
28
|
const adapters = createAllAdapters();
|
|
29
29
|
if (adapters.size === 0) return null;
|
|
@@ -119,4 +119,4 @@ ${prompt}`;
|
|
|
119
119
|
export {
|
|
120
120
|
executeExpert
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=chunk-
|
|
122
|
+
//# sourceMappingURL=chunk-5SBKLQW6.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
VERSION,
|
|
6
6
|
initDataDirectories
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZOTDJ4UR.js";
|
|
8
8
|
import {
|
|
9
9
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
10
10
|
createLogger,
|
|
@@ -1523,4 +1523,4 @@ export {
|
|
|
1523
1523
|
setupCommand,
|
|
1524
1524
|
setupCommandAsync
|
|
1525
1525
|
};
|
|
1526
|
-
//# sourceMappingURL=chunk-
|
|
1526
|
+
//# sourceMappingURL=chunk-7RE6BBXJ.js.map
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
toolSuccessStructured,
|
|
26
26
|
withProgressHeartbeat,
|
|
27
27
|
wrapToolWithTimeout
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UXUA234N.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-ZOTDJ4UR.js";
|
|
69
69
|
import {
|
|
70
70
|
createSessionMemory
|
|
71
71
|
} from "./chunk-KQIDTE52.js";
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
} from "./chunk-66NNHMVB.js";
|
|
88
88
|
import {
|
|
89
89
|
executeExpert
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-5SBKLQW6.js";
|
|
91
91
|
import {
|
|
92
92
|
ClaudeCliAdapter,
|
|
93
93
|
CliDetectionCache,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
getAvailableClis,
|
|
97
97
|
sleep,
|
|
98
98
|
withTimeout
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-UOXT5CZ7.js";
|
|
100
100
|
import {
|
|
101
101
|
AGENT_ROUTER_TIMEOUTS,
|
|
102
102
|
API_TIMEOUTS,
|
|
@@ -40882,7 +40882,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
40882
40882
|
]);
|
|
40883
40883
|
async function classifyWithLLM(task) {
|
|
40884
40884
|
try {
|
|
40885
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
40885
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-NF65ZTZZ.js");
|
|
40886
40886
|
const prompt = [
|
|
40887
40887
|
"Classify this task into exactly one pipeline template.",
|
|
40888
40888
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -41870,7 +41870,7 @@ ${contextBlock}`;
|
|
|
41870
41870
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
41871
41871
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
41872
41872
|
try {
|
|
41873
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
41873
|
+
const { executeVoting } = await import("./consensus-vote-Q7QKGUEP.js");
|
|
41874
41874
|
const votingResult = await executeVoting(
|
|
41875
41875
|
{
|
|
41876
41876
|
proposal: plan.slice(0, 4e3),
|
|
@@ -53032,4 +53032,4 @@ export {
|
|
|
53032
53032
|
detectBackend,
|
|
53033
53033
|
createTaskTracker
|
|
53034
53034
|
};
|
|
53035
|
-
//# sourceMappingURL=chunk-
|
|
53035
|
+
//# sourceMappingURL=chunk-DEESTIZL.js.map
|
|
@@ -746,7 +746,25 @@ var SubprocessCliAdapter = class extends BaseCliAdapter {
|
|
|
746
746
|
spawnSubprocess(task, options) {
|
|
747
747
|
const cmdConfig = this.getCommand(task);
|
|
748
748
|
const startTime = getTimeProvider().now();
|
|
749
|
-
|
|
749
|
+
const cleanup = cmdConfig.cleanup;
|
|
750
|
+
const runCleanup = () => {
|
|
751
|
+
if (cleanup === void 0) return;
|
|
752
|
+
try {
|
|
753
|
+
const r = cleanup();
|
|
754
|
+
if (r instanceof Promise) {
|
|
755
|
+
r.catch((e) => {
|
|
756
|
+
this.logger.warn("Subprocess cleanup failed", { error: String(e) });
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
} catch (e) {
|
|
760
|
+
this.logger.warn("Subprocess cleanup threw", { error: String(e) });
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
return new Promise((resolveOuter) => {
|
|
764
|
+
const resolve = (result) => {
|
|
765
|
+
runCleanup();
|
|
766
|
+
resolveOuter(result);
|
|
767
|
+
};
|
|
750
768
|
const childEnv = { ...process.env };
|
|
751
769
|
delete childEnv["CLAUDECODE"];
|
|
752
770
|
const child = spawn(cmdConfig.command, cmdConfig.args, {
|
|
@@ -1562,6 +1580,11 @@ var GeminiCliAdapter = class extends SubprocessCliAdapter {
|
|
|
1562
1580
|
}
|
|
1563
1581
|
};
|
|
1564
1582
|
|
|
1583
|
+
// src/cli-adapters/adapters/codex-adapter.ts
|
|
1584
|
+
import { writeFileSync, unlinkSync, mkdtempSync } from "fs";
|
|
1585
|
+
import { tmpdir } from "os";
|
|
1586
|
+
import { join } from "path";
|
|
1587
|
+
|
|
1565
1588
|
// src/cli-adapters/parsers/codex-parser.ts
|
|
1566
1589
|
var logger2 = createLogger({ component: "codex-parser" });
|
|
1567
1590
|
var CodexResponseParser = class {
|
|
@@ -1771,8 +1794,21 @@ var CodexCliAdapter = class extends SubprocessCliAdapter {
|
|
|
1771
1794
|
}
|
|
1772
1795
|
args.push("-s", "read-only");
|
|
1773
1796
|
args.push("--skip-git-repo-check");
|
|
1797
|
+
let cleanup;
|
|
1798
|
+
if (task.systemPrompt !== void 0 && task.systemPrompt !== "") {
|
|
1799
|
+
const dir = mkdtempSync(join(tmpdir(), "nexus-codex-sysprompt-"));
|
|
1800
|
+
const file = join(dir, "instructions.md");
|
|
1801
|
+
writeFileSync(file, task.systemPrompt, { encoding: "utf8", mode: 384 });
|
|
1802
|
+
args.push("-c", `model_instructions_file=${file}`);
|
|
1803
|
+
cleanup = () => {
|
|
1804
|
+
try {
|
|
1805
|
+
unlinkSync(file);
|
|
1806
|
+
} catch {
|
|
1807
|
+
}
|
|
1808
|
+
};
|
|
1809
|
+
}
|
|
1774
1810
|
args.push(task.content);
|
|
1775
|
-
return { command: "codex", args };
|
|
1811
|
+
return cleanup === void 0 ? { command: "codex", args } : { command: "codex", args, cleanup };
|
|
1776
1812
|
}
|
|
1777
1813
|
};
|
|
1778
1814
|
|
|
@@ -2675,4 +2711,4 @@ export {
|
|
|
2675
2711
|
isCliAvailable,
|
|
2676
2712
|
getAvailableClis
|
|
2677
2713
|
};
|
|
2678
|
-
//# sourceMappingURL=chunk-
|
|
2714
|
+
//# sourceMappingURL=chunk-UOXT5CZ7.js.map
|