jinzd-ai-cli 0.3.1 → 0.3.3
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/agent-client-YRCQVYHJ.js +266 -0
- package/dist/chunk-4ZAZF4CF.js +293 -0
- package/dist/{chunk-XHACHVCN.js → chunk-54GQL2O4.js} +1 -1
- package/dist/{chunk-QQXO4PNR.js → chunk-IPGCPV3X.js} +1 -1
- package/dist/{chunk-QVUOF3DK.js → chunk-NLSQEHZU.js} +1 -1
- package/dist/{hub-72MJ7DED.js → hub-ZTEJJ4WD.js} +34 -278
- package/dist/hub-server-P547YWUN.js +299 -0
- package/dist/index.js +34 -7
- package/dist/{run-tests-JBQ7Z26S.js → run-tests-CTA7UEXQ.js} +1 -1
- package/dist/{run-tests-WG27TZRF.js → run-tests-WGSNA7K4.js} +1 -1
- package/dist/{server-RPCRQKGE.js → server-BIZW2NHV.js} +3 -3
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
theme,
|
|
37
37
|
truncateOutput,
|
|
38
38
|
undoStack
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-54GQL2O4.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
42
42
|
AUTHOR,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
REPO_URL,
|
|
57
57
|
SKILLS_DIR_NAME,
|
|
58
58
|
VERSION
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-NLSQEHZU.js";
|
|
60
60
|
|
|
61
61
|
// src/index.ts
|
|
62
62
|
import { program } from "commander";
|
|
@@ -1907,7 +1907,7 @@ ${hint}` : "")
|
|
|
1907
1907
|
description: "Run project tests and show structured report",
|
|
1908
1908
|
usage: "/test [command|filter]",
|
|
1909
1909
|
async execute(args, _ctx) {
|
|
1910
|
-
const { executeTests } = await import("./run-tests-
|
|
1910
|
+
const { executeTests } = await import("./run-tests-WGSNA7K4.js");
|
|
1911
1911
|
const argStr = args.join(" ").trim();
|
|
1912
1912
|
let testArgs = {};
|
|
1913
1913
|
if (argStr) {
|
|
@@ -5517,7 +5517,7 @@ program.command("web").description("Start Web UI server with browser-based chat
|
|
|
5517
5517
|
console.error("Error: Invalid port number. Must be between 1 and 65535.");
|
|
5518
5518
|
process.exit(1);
|
|
5519
5519
|
}
|
|
5520
|
-
const { startWebServer } = await import("./server-
|
|
5520
|
+
const { startWebServer } = await import("./server-BIZW2NHV.js");
|
|
5521
5521
|
await startWebServer({ port, host: options.host });
|
|
5522
5522
|
});
|
|
5523
5523
|
program.command("user [action] [username]").description("Manage Web UI users (list | create <name> | delete <name> | reset-password <name> | migrate <name>)").action(async (action, username) => {
|
|
@@ -5638,7 +5638,7 @@ program.command("sessions").description("List recent conversation sessions").act
|
|
|
5638
5638
|
}
|
|
5639
5639
|
console.log();
|
|
5640
5640
|
});
|
|
5641
|
-
program.command("hub [topic]").description("Start multi-agent hub (discuss / brainstorm with multiple AI roles)").option("--preset <name>", "Use a built-in role preset (default: tech-review)").option("--roles <file>", "Load roles from a JSON file").option("--provider <name>", "Override default AI provider").option("-m, --model <name>", "Override default model").option("--max-rounds <n>", "Max discussion rounds (default: 10)").option("--presets", "List available role presets").action(async (topic, options) => {
|
|
5641
|
+
program.command("hub [topic]").description("Start multi-agent hub (discuss / brainstorm with multiple AI roles)").option("--preset <name>", "Use a built-in role preset (default: tech-review)").option("--roles <file>", "Load roles from a JSON file").option("--provider <name>", "Override default AI provider").option("-m, --model <name>", "Override default model").option("--max-rounds <n>", "Max discussion rounds (default: 10)").option("--presets", "List available role presets").option("--distributed", "Start WebSocket server so remote aicli instances can join as agents").option("--port <n>", "WebSocket port for distributed mode (default: 9527)", "9527").action(async (topic, options) => {
|
|
5642
5642
|
const config = new ConfigManager();
|
|
5643
5643
|
const registry = new ProviderRegistry();
|
|
5644
5644
|
await registry.initialize(
|
|
@@ -5649,7 +5649,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
|
|
|
5649
5649
|
}),
|
|
5650
5650
|
config.get("customProviders")
|
|
5651
5651
|
);
|
|
5652
|
-
const { startHub } = await import("./hub-
|
|
5652
|
+
const { startHub } = await import("./hub-ZTEJJ4WD.js");
|
|
5653
5653
|
await startHub(
|
|
5654
5654
|
{
|
|
5655
5655
|
topic: topic ?? "",
|
|
@@ -5658,7 +5658,34 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
|
|
|
5658
5658
|
provider: options.provider,
|
|
5659
5659
|
model: options.model,
|
|
5660
5660
|
maxRounds: options.maxRounds ? parseInt(options.maxRounds, 10) : void 0,
|
|
5661
|
-
listPresets: options.presets === true
|
|
5661
|
+
listPresets: options.presets === true,
|
|
5662
|
+
distributed: options.distributed === true,
|
|
5663
|
+
port: options.port ? parseInt(options.port, 10) : void 0
|
|
5664
|
+
},
|
|
5665
|
+
config,
|
|
5666
|
+
registry
|
|
5667
|
+
);
|
|
5668
|
+
});
|
|
5669
|
+
program.command("join").description("Join a running hub as a remote AI agent").option("--port <n>", "Hub WebSocket port (default: 9527)", "9527").option("--host <name>", "Hub host (default: localhost)", "localhost").option("--role <id>", "Request a specific role (e.g. architect, developer)").option("--human", "Join as a human participant (type your own responses)").option("--provider <name>", "Override AI provider for this agent").option("-m, --model <name>", "Override model for this agent").action(async (options) => {
|
|
5670
|
+
const config = new ConfigManager();
|
|
5671
|
+
const registry = new ProviderRegistry();
|
|
5672
|
+
await registry.initialize(
|
|
5673
|
+
(id) => config.getApiKey(id),
|
|
5674
|
+
(id) => ({
|
|
5675
|
+
baseUrl: config.get("customBaseUrls")[id],
|
|
5676
|
+
timeout: config.get("timeouts")[id]
|
|
5677
|
+
}),
|
|
5678
|
+
config.get("customProviders")
|
|
5679
|
+
);
|
|
5680
|
+
const { joinHub } = await import("./agent-client-YRCQVYHJ.js");
|
|
5681
|
+
await joinHub(
|
|
5682
|
+
{
|
|
5683
|
+
port: parseInt(options.port ?? "9527", 10),
|
|
5684
|
+
host: options.host,
|
|
5685
|
+
role: options.role,
|
|
5686
|
+
provider: options.provider,
|
|
5687
|
+
model: options.model,
|
|
5688
|
+
human: options.human === true
|
|
5662
5689
|
},
|
|
5663
5690
|
config,
|
|
5664
5691
|
registry
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
spawnAgentContext,
|
|
28
28
|
truncateOutput,
|
|
29
29
|
undoStack
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-54GQL2O4.js";
|
|
31
31
|
import {
|
|
32
32
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
33
33
|
CONTEXT_FILE_CANDIDATES,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
PLAN_MODE_SYSTEM_ADDON,
|
|
40
40
|
SKILLS_DIR_NAME,
|
|
41
41
|
VERSION
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-NLSQEHZU.js";
|
|
43
43
|
import {
|
|
44
44
|
AuthManager
|
|
45
45
|
} from "./chunk-CPLT6CD3.js";
|
|
@@ -1438,7 +1438,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
|
|
|
1438
1438
|
case "test": {
|
|
1439
1439
|
this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
|
|
1440
1440
|
try {
|
|
1441
|
-
const { executeTests } = await import("./run-tests-
|
|
1441
|
+
const { executeTests } = await import("./run-tests-WGSNA7K4.js");
|
|
1442
1442
|
const argStr = args.join(" ").trim();
|
|
1443
1443
|
let testArgs = {};
|
|
1444
1444
|
if (argStr) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jinzd-ai-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Cross-platform REPL-style AI CLI with multi-provider support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -57,6 +57,8 @@
|
|
|
57
57
|
"dist/auth-*.js",
|
|
58
58
|
"dist/run-tests-*.js",
|
|
59
59
|
"dist/hub-*.js",
|
|
60
|
+
"dist/hub-server-*.js",
|
|
61
|
+
"dist/agent-client-*.js",
|
|
60
62
|
"dist/web/",
|
|
61
63
|
"README.md"
|
|
62
64
|
],
|