jinzd-ai-cli 0.1.72 → 0.1.74
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-Q35734NC.js → chunk-37AZXVX2.js} +1 -1
- package/dist/{chunk-NDNEM5KI.js → chunk-WRFXLV34.js} +1 -1
- package/dist/index.js +4 -4
- package/dist/{run-tests-BXOOJF4E.js → run-tests-IJDQJJ3N.js} +1 -1
- package/dist/{server-H4R2CXBP.js → server-4LKAYB5Y.js} +16 -4
- package/dist/web/client/app.js +184 -165
- package/dist/web/client/index.html +68 -26
- package/dist/web/client/style.css +154 -432
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
theme,
|
|
35
35
|
truncateOutput,
|
|
36
36
|
undoStack
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-37AZXVX2.js";
|
|
38
38
|
import {
|
|
39
39
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
40
40
|
AUTHOR,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
REPO_URL,
|
|
55
55
|
SKILLS_DIR_NAME,
|
|
56
56
|
VERSION
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-WRFXLV34.js";
|
|
58
58
|
|
|
59
59
|
// src/index.ts
|
|
60
60
|
import { program } from "commander";
|
|
@@ -1903,7 +1903,7 @@ ${hint}` : "")
|
|
|
1903
1903
|
description: "Run project tests and show structured report",
|
|
1904
1904
|
usage: "/test [command|filter]",
|
|
1905
1905
|
async execute(args, _ctx) {
|
|
1906
|
-
const { executeTests } = await import("./run-tests-
|
|
1906
|
+
const { executeTests } = await import("./run-tests-IJDQJJ3N.js");
|
|
1907
1907
|
const argStr = args.join(" ").trim();
|
|
1908
1908
|
let testArgs = {};
|
|
1909
1909
|
if (argStr) {
|
|
@@ -5290,7 +5290,7 @@ program.command("web").description("Start Web UI server with browser-based chat
|
|
|
5290
5290
|
console.error("Error: Invalid port number. Must be between 1 and 65535.");
|
|
5291
5291
|
process.exit(1);
|
|
5292
5292
|
}
|
|
5293
|
-
const { startWebServer } = await import("./server-
|
|
5293
|
+
const { startWebServer } = await import("./server-4LKAYB5Y.js");
|
|
5294
5294
|
await startWebServer({ port, host: options.host });
|
|
5295
5295
|
});
|
|
5296
5296
|
program.command("sessions").description("List recent conversation sessions").action(async () => {
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
runHook,
|
|
22
22
|
spawnAgentContext,
|
|
23
23
|
truncateOutput
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-37AZXVX2.js";
|
|
25
25
|
import {
|
|
26
26
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
27
27
|
DEFAULT_MAX_TOKENS,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
PLAN_MODE_SYSTEM_ADDON,
|
|
33
33
|
SKILLS_DIR_NAME,
|
|
34
34
|
VERSION
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WRFXLV34.js";
|
|
36
36
|
|
|
37
37
|
// src/web/server.ts
|
|
38
38
|
import express from "express";
|
|
@@ -422,8 +422,20 @@ var SessionHandler = class {
|
|
|
422
422
|
this.skillManager = shared.skillManager;
|
|
423
423
|
this.toolExecutor = new ToolExecutorWeb(shared.toolRegistry, ws);
|
|
424
424
|
this.currentProvider = this.config.get("defaultProvider");
|
|
425
|
-
const
|
|
426
|
-
|
|
425
|
+
const allDefaultModels = this.config.get("defaultModels");
|
|
426
|
+
try {
|
|
427
|
+
const provider = this.providers.get(this.currentProvider);
|
|
428
|
+
this.currentModel = allDefaultModels[this.currentProvider] ?? provider?.info.defaultModel ?? "";
|
|
429
|
+
} catch {
|
|
430
|
+
const available = this.providers.listAvailable();
|
|
431
|
+
if (available.length > 0) {
|
|
432
|
+
this.currentProvider = available[0].info.id;
|
|
433
|
+
this.currentModel = allDefaultModels[this.currentProvider] ?? available[0].info.defaultModel;
|
|
434
|
+
} else {
|
|
435
|
+
this.currentProvider = "";
|
|
436
|
+
this.currentModel = "";
|
|
437
|
+
}
|
|
438
|
+
}
|
|
427
439
|
this.sessions.createSession(this.currentProvider, this.currentModel);
|
|
428
440
|
this.activeSystemPrompt = this.loadContextFiles();
|
|
429
441
|
const hooks = this.config.get("hooks");
|