jinzd-ai-cli 0.2.6 → 0.2.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-3E6X7EOS.js → chunk-2BG44VOT.js} +1 -1
- package/dist/{chunk-6JLWYCWR.js → chunk-DE3WM5PH.js} +1 -1
- package/dist/index.js +32 -22
- package/dist/{run-tests-GTUISJ4G.js → run-tests-QZXMPFFF.js} +1 -1
- package/dist/{server-F2YMKUJ7.js → server-NYO2HSST.js} +2 -2
- 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-2BG44VOT.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-DE3WM5PH.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-QZXMPFFF.js");
|
|
1908
1908
|
const argStr = args.join(" ").trim();
|
|
1909
1909
|
let testArgs = {};
|
|
1910
1910
|
if (argStr) {
|
|
@@ -4128,26 +4128,12 @@ Session '${this.resumeSessionId}' not found.
|
|
|
4128
4128
|
this.handleExit();
|
|
4129
4129
|
});
|
|
4130
4130
|
this.showPrompt();
|
|
4131
|
+
process.stdin.setMaxListeners(20);
|
|
4131
4132
|
await new Promise((resolve3) => {
|
|
4132
4133
|
let processing = false;
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
if (askUserContext.prompting) return;
|
|
4137
|
-
const rawTrimmed = line.trimEnd();
|
|
4138
|
-
if (rawTrimmed.endsWith("\\")) {
|
|
4139
|
-
this._multilineBuf.push(rawTrimmed.slice(0, -1));
|
|
4140
|
-
process.stdout.write(theme.dim("... > "));
|
|
4141
|
-
return;
|
|
4142
|
-
}
|
|
4143
|
-
let input2;
|
|
4144
|
-
if (this._multilineBuf.length > 0) {
|
|
4145
|
-
this._multilineBuf.push(line);
|
|
4146
|
-
input2 = this._multilineBuf.join("\n").trim();
|
|
4147
|
-
this._multilineBuf = [];
|
|
4148
|
-
} else {
|
|
4149
|
-
input2 = line.trim();
|
|
4150
|
-
}
|
|
4134
|
+
let pasteTimer = null;
|
|
4135
|
+
const PASTE_DEBOUNCE_MS = 50;
|
|
4136
|
+
const processInput = async (input2) => {
|
|
4151
4137
|
if (!input2) {
|
|
4152
4138
|
this.showPrompt();
|
|
4153
4139
|
return;
|
|
@@ -4179,6 +4165,30 @@ Session '${this.resumeSessionId}' not found.
|
|
|
4179
4165
|
resolve3();
|
|
4180
4166
|
}
|
|
4181
4167
|
}
|
|
4168
|
+
};
|
|
4169
|
+
this.rl.on("line", async (line) => {
|
|
4170
|
+
if (this.toolExecutor.confirming) return;
|
|
4171
|
+
if (this.selecting) return;
|
|
4172
|
+
if (askUserContext.prompting) return;
|
|
4173
|
+
if (processing) return;
|
|
4174
|
+
const rawTrimmed = line.trimEnd();
|
|
4175
|
+
if (rawTrimmed.endsWith("\\")) {
|
|
4176
|
+
this._multilineBuf.push(rawTrimmed.slice(0, -1));
|
|
4177
|
+
if (pasteTimer) {
|
|
4178
|
+
clearTimeout(pasteTimer);
|
|
4179
|
+
pasteTimer = null;
|
|
4180
|
+
}
|
|
4181
|
+
process.stdout.write(theme.dim("... > "));
|
|
4182
|
+
return;
|
|
4183
|
+
}
|
|
4184
|
+
this._multilineBuf.push(line);
|
|
4185
|
+
if (pasteTimer) clearTimeout(pasteTimer);
|
|
4186
|
+
pasteTimer = setTimeout(() => {
|
|
4187
|
+
pasteTimer = null;
|
|
4188
|
+
const combined = this._multilineBuf.join("\n").trim();
|
|
4189
|
+
this._multilineBuf = [];
|
|
4190
|
+
processInput(combined);
|
|
4191
|
+
}, PASTE_DEBOUNCE_MS);
|
|
4182
4192
|
});
|
|
4183
4193
|
this.rl.on("close", () => {
|
|
4184
4194
|
if (!processing) {
|
|
@@ -5348,7 +5358,7 @@ program.command("web").description("Start Web UI server with browser-based chat
|
|
|
5348
5358
|
console.error("Error: Invalid port number. Must be between 1 and 65535.");
|
|
5349
5359
|
process.exit(1);
|
|
5350
5360
|
}
|
|
5351
|
-
const { startWebServer } = await import("./server-
|
|
5361
|
+
const { startWebServer } = await import("./server-NYO2HSST.js");
|
|
5352
5362
|
await startWebServer({ port, host: options.host });
|
|
5353
5363
|
});
|
|
5354
5364
|
program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | migrate <name>)").action(async (action, username) => {
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
setupProxy,
|
|
24
24
|
spawnAgentContext,
|
|
25
25
|
truncateOutput
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2BG44VOT.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-DE3WM5PH.js";
|
|
39
39
|
import {
|
|
40
40
|
AuthManager
|
|
41
41
|
} from "./chunk-CPLT6CD3.js";
|