jinzd-ai-cli 0.1.91 → 0.1.92
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-CXWWAWE7.js → chunk-OZ2VVEBE.js} +1 -1
- package/dist/{chunk-KYHUMNQO.js → chunk-W7ZOYZFR.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/{run-tests-TLJ53CV5.js → run-tests-XWNY6FYC.js} +1 -1
- package/dist/{server-QG62ZDQI.js → server-Y67I66FG.js} +24 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
theme,
|
|
36
36
|
truncateOutput,
|
|
37
37
|
undoStack
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OZ2VVEBE.js";
|
|
39
39
|
import {
|
|
40
40
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
41
41
|
AUTHOR,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
REPO_URL,
|
|
56
56
|
SKILLS_DIR_NAME,
|
|
57
57
|
VERSION
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-W7ZOYZFR.js";
|
|
59
59
|
|
|
60
60
|
// src/index.ts
|
|
61
61
|
import { program } from "commander";
|
|
@@ -1904,7 +1904,7 @@ ${hint}` : "")
|
|
|
1904
1904
|
description: "Run project tests and show structured report",
|
|
1905
1905
|
usage: "/test [command|filter]",
|
|
1906
1906
|
async execute(args, _ctx) {
|
|
1907
|
-
const { executeTests } = await import("./run-tests-
|
|
1907
|
+
const { executeTests } = await import("./run-tests-XWNY6FYC.js");
|
|
1908
1908
|
const argStr = args.join(" ").trim();
|
|
1909
1909
|
let testArgs = {};
|
|
1910
1910
|
if (argStr) {
|
|
@@ -5292,7 +5292,7 @@ program.command("web").description("Start Web UI server with browser-based chat
|
|
|
5292
5292
|
console.error("Error: Invalid port number. Must be between 1 and 65535.");
|
|
5293
5293
|
process.exit(1);
|
|
5294
5294
|
}
|
|
5295
|
-
const { startWebServer } = await import("./server-
|
|
5295
|
+
const { startWebServer } = await import("./server-Y67I66FG.js");
|
|
5296
5296
|
await startWebServer({ port, host: options.host });
|
|
5297
5297
|
});
|
|
5298
5298
|
program.command("sessions").description("List recent conversation sessions").action(async () => {
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
setupProxy,
|
|
24
24
|
spawnAgentContext,
|
|
25
25
|
truncateOutput
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OZ2VVEBE.js";
|
|
27
27
|
import {
|
|
28
28
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
29
29
|
CONTEXT_FILE_CANDIDATES,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
PLAN_MODE_SYSTEM_ADDON,
|
|
36
36
|
SKILLS_DIR_NAME,
|
|
37
37
|
VERSION
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-W7ZOYZFR.js";
|
|
39
39
|
|
|
40
40
|
// src/web/server.ts
|
|
41
41
|
import express from "express";
|
|
@@ -1477,14 +1477,30 @@ async function startWebServer(options = {}) {
|
|
|
1477
1477
|
console.error(` WebSocket error: ${err.message}`);
|
|
1478
1478
|
});
|
|
1479
1479
|
});
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1480
|
+
const MAX_PORT_ATTEMPTS = 10;
|
|
1481
|
+
let actualPort = port;
|
|
1482
|
+
const tryListen = (attempt) => {
|
|
1483
|
+
server.listen(actualPort, host, () => {
|
|
1484
|
+
const url = `http://${host}:${actualPort}`;
|
|
1485
|
+
console.log(`
|
|
1483
1486
|
\u{1F310} Web UI ready: ${url}`);
|
|
1484
|
-
|
|
1487
|
+
if (actualPort !== port) console.log(` (port ${port} was in use, using ${actualPort})`);
|
|
1488
|
+
console.log(` Press Ctrl+C to stop
|
|
1485
1489
|
`);
|
|
1486
|
-
|
|
1487
|
-
|
|
1490
|
+
openBrowser(url);
|
|
1491
|
+
});
|
|
1492
|
+
server.once("error", (err) => {
|
|
1493
|
+
if (err.code === "EADDRINUSE" && attempt < MAX_PORT_ATTEMPTS) {
|
|
1494
|
+
actualPort++;
|
|
1495
|
+
console.log(` \u26A0 Port ${actualPort - 1} in use, trying ${actualPort}...`);
|
|
1496
|
+
tryListen(attempt + 1);
|
|
1497
|
+
} else {
|
|
1498
|
+
console.error(` \u274C Failed to start server: ${err.message}`);
|
|
1499
|
+
process.exit(1);
|
|
1500
|
+
}
|
|
1501
|
+
});
|
|
1502
|
+
};
|
|
1503
|
+
tryListen(1);
|
|
1488
1504
|
process.on("SIGINT", () => {
|
|
1489
1505
|
console.log("\n Shutting down...");
|
|
1490
1506
|
for (const handler of handlers.values()) handler.onDisconnect();
|