nexus-agents 2.63.5 → 2.63.6
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-LQPW7LIC.js → chunk-CUGQAPGY.js} +113 -37
- package/dist/{chunk-LQPW7LIC.js.map → chunk-CUGQAPGY.js.map} +1 -1
- package/dist/{chunk-3K6O2OL5.js → chunk-HRTGSG4L.js} +3 -3
- package/dist/{chunk-LDLLFUM4.js → chunk-OKU3VXWC.js} +2 -2
- package/dist/cli.js +17 -13
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{setup-command-F3NRMEDS.js → setup-command-J6QG2G5V.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-3K6O2OL5.js.map → chunk-HRTGSG4L.js.map} +0 -0
- /package/dist/{chunk-LDLLFUM4.js.map → chunk-OKU3VXWC.js.map} +0 -0
- /package/dist/{setup-command-F3NRMEDS.js.map → setup-command-J6QG2G5V.js.map} +0 -0
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-FDNWRZNJ.js";
|
|
39
39
|
|
|
40
40
|
// src/version.ts
|
|
41
|
-
var VERSION = true ? "2.63.
|
|
41
|
+
var VERSION = true ? "2.63.6" : "dev";
|
|
42
42
|
|
|
43
43
|
// src/config/schemas-core.ts
|
|
44
44
|
import { z } from "zod";
|
|
@@ -2024,7 +2024,7 @@ async function runDoctorFix(result) {
|
|
|
2024
2024
|
writeLine2("\u2500".repeat(40));
|
|
2025
2025
|
let fixCount = 0;
|
|
2026
2026
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2027
|
-
const { runSetup } = await import("./setup-command-
|
|
2027
|
+
const { runSetup } = await import("./setup-command-J6QG2G5V.js");
|
|
2028
2028
|
const setupResult = runSetup({
|
|
2029
2029
|
skipMcp: true,
|
|
2030
2030
|
skipRules: true,
|
|
@@ -2134,4 +2134,4 @@ export {
|
|
|
2134
2134
|
startStdioServer,
|
|
2135
2135
|
closeServer
|
|
2136
2136
|
};
|
|
2137
|
-
//# sourceMappingURL=chunk-
|
|
2137
|
+
//# sourceMappingURL=chunk-HRTGSG4L.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
checkSqlite,
|
|
9
9
|
defaultConfig,
|
|
10
10
|
initDataDirectories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HRTGSG4L.js";
|
|
12
12
|
import {
|
|
13
13
|
BUILT_IN_EXPERTS
|
|
14
14
|
} from "./chunk-O3CBMPGT.js";
|
|
@@ -1933,4 +1933,4 @@ export {
|
|
|
1933
1933
|
setupCommand,
|
|
1934
1934
|
setupCommandAsync
|
|
1935
1935
|
};
|
|
1936
|
-
//# sourceMappingURL=chunk-
|
|
1936
|
+
//# sourceMappingURL=chunk-OKU3VXWC.js.map
|
package/dist/cli.js
CHANGED
|
@@ -16,7 +16,7 @@ import "./chunk-UFHFX2GX.js";
|
|
|
16
16
|
import {
|
|
17
17
|
setupCommandAsync,
|
|
18
18
|
verifyCommand
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OKU3VXWC.js";
|
|
20
20
|
import "./chunk-5CYDU2VX.js";
|
|
21
21
|
import {
|
|
22
22
|
AuthHandler,
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
validateCommand,
|
|
143
143
|
validateWorkflow,
|
|
144
144
|
wrapInMarkdownFence
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-CUGQAPGY.js";
|
|
146
146
|
import "./chunk-ED6VQWNG.js";
|
|
147
147
|
import {
|
|
148
148
|
resolveToken
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
loadConfig,
|
|
203
203
|
runDoctor,
|
|
204
204
|
validateNexusEnv
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-HRTGSG4L.js";
|
|
206
206
|
import {
|
|
207
207
|
DEFAULTS
|
|
208
208
|
} from "./chunk-6MRF2PE2.js";
|
|
@@ -17736,7 +17736,7 @@ function isValidCommand(value) {
|
|
|
17736
17736
|
}
|
|
17737
17737
|
|
|
17738
17738
|
// src/cli-commands-handlers.ts
|
|
17739
|
-
import { existsSync as
|
|
17739
|
+
import { existsSync as existsSync21 } from "fs";
|
|
17740
17740
|
|
|
17741
17741
|
// src/cli/init-portable.ts
|
|
17742
17742
|
import {
|
|
@@ -18309,7 +18309,7 @@ var DevPipelineInputSchema = z9.object({
|
|
|
18309
18309
|
"'autonomous': full pipeline. 'harness': stops after decompose, returns tasks for caller to implement."
|
|
18310
18310
|
)
|
|
18311
18311
|
});
|
|
18312
|
-
function resolveTaskInput(input) {
|
|
18312
|
+
async function resolveTaskInput(input) {
|
|
18313
18313
|
if (input.task !== void 0 && input.task.trim() !== "") {
|
|
18314
18314
|
return input.task;
|
|
18315
18315
|
}
|
|
@@ -18319,10 +18319,14 @@ function resolveTaskInput(input) {
|
|
|
18319
18319
|
if (!resolved.startsWith(cwdRoot)) {
|
|
18320
18320
|
throw new Error(`Path traversal denied: planFile must be within ${cwdRoot}`);
|
|
18321
18321
|
}
|
|
18322
|
-
|
|
18323
|
-
|
|
18322
|
+
try {
|
|
18323
|
+
return await fs17.promises.readFile(resolved, "utf-8");
|
|
18324
|
+
} catch (err2) {
|
|
18325
|
+
if (err2.code === "ENOENT") {
|
|
18326
|
+
throw new Error(`Plan file not found: ${resolved}`);
|
|
18327
|
+
}
|
|
18328
|
+
throw err2;
|
|
18324
18329
|
}
|
|
18325
|
-
return fs17.readFileSync(resolved, "utf-8");
|
|
18326
18330
|
}
|
|
18327
18331
|
throw new Error("Either task or planFile must be provided");
|
|
18328
18332
|
}
|
|
@@ -18367,7 +18371,7 @@ function registerDevPipelineTool(server, _deps) {
|
|
|
18367
18371
|
warnIfSimulatedOutsideTests("run_dev_pipeline", createLogger({ tool: "run_dev_pipeline" }));
|
|
18368
18372
|
}
|
|
18369
18373
|
try {
|
|
18370
|
-
const taskText = resolveTaskInput(input);
|
|
18374
|
+
const taskText = await resolveTaskInput(input);
|
|
18371
18375
|
const stages = await createStages(input);
|
|
18372
18376
|
const pipelineOptions = {
|
|
18373
18377
|
...input.sessionId !== void 0 ? { sessionId: input.sessionId } : {},
|
|
@@ -18762,8 +18766,8 @@ var UpstreamClientManager = class {
|
|
|
18762
18766
|
}
|
|
18763
18767
|
/** Shut down all upstream connections. */
|
|
18764
18768
|
async shutdownAll() {
|
|
18765
|
-
const
|
|
18766
|
-
await Promise.allSettled(
|
|
18769
|
+
const promises2 = [...this.clients.values()].map((c) => c.shutdown());
|
|
18770
|
+
await Promise.allSettled(promises2);
|
|
18767
18771
|
this.clients.clear();
|
|
18768
18772
|
this.log.info("All upstream servers shut down");
|
|
18769
18773
|
}
|
|
@@ -21081,8 +21085,8 @@ function printFirstRunHint() {
|
|
|
21081
21085
|
const isTTY = process.stderr.isTTY;
|
|
21082
21086
|
if (!isTTY) return;
|
|
21083
21087
|
const dataDir = getNexusDataDir();
|
|
21084
|
-
const hasConfig =
|
|
21085
|
-
if (
|
|
21088
|
+
const hasConfig = existsSync21("./nexus-agents.yaml") || existsSync21("./nexus-agents.yml");
|
|
21089
|
+
if (existsSync21(dataDir) || hasConfig) return;
|
|
21086
21090
|
process.stderr.write(
|
|
21087
21091
|
"\n\x1B[36mnexus-agents\x1B[0m: First time? Run \x1B[1mnexus-agents setup\x1B[0m to configure.\n\n"
|
|
21088
21092
|
);
|