jinzd-ai-cli 0.3.5 → 0.3.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.
@@ -8,7 +8,7 @@ import { platform } from "os";
8
8
  import chalk from "chalk";
9
9
 
10
10
  // src/core/constants.ts
11
- var VERSION = "0.3.5";
11
+ var VERSION = "0.3.6";
12
12
  var APP_NAME = "ai-cli";
13
13
  var CONFIG_DIR_NAME = ".aicli";
14
14
  var CONFIG_FILE_NAME = "config.json";
@@ -16,7 +16,7 @@ import {
16
16
  SUBAGENT_MAX_ROUNDS_LIMIT,
17
17
  VERSION,
18
18
  runTestsTool
19
- } from "./chunk-GU5NVLYL.js";
19
+ } from "./chunk-OQK3WSFD.js";
20
20
 
21
21
  // src/config/config-manager.ts
22
22
  import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
@@ -6,7 +6,7 @@ import { platform } from "os";
6
6
  import chalk from "chalk";
7
7
 
8
8
  // src/core/constants.ts
9
- var VERSION = "0.3.5";
9
+ var VERSION = "0.3.6";
10
10
  var APP_NAME = "ai-cli";
11
11
  var CONFIG_DIR_NAME = ".aicli";
12
12
  var CONFIG_FILE_NAME = "config.json";
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  theme,
37
37
  truncateOutput,
38
38
  undoStack
39
- } from "./chunk-GTQRHY5Q.js";
39
+ } from "./chunk-RS5ALOXF.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-GU5NVLYL.js";
59
+ } from "./chunk-OQK3WSFD.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-XCNLK66A.js");
1910
+ const { executeTests } = await import("./run-tests-PGGAA5PE.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-I7FDITW7.js");
5520
+ const { startWebServer } = await import("./server-2MJUVLUU.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) => {
@@ -5686,7 +5686,7 @@ program.command("help").description("Show a comprehensive guide to all aicli fea
5686
5686
  `${B}${C} \u25A0 MULTI-AGENT HUB${R}`,
5687
5687
  ` ${Y}--preset <name>${R} Role preset (tech-review/brainstorm/code-review/debate)`,
5688
5688
  ` ${Y}--roles <file>${R} Custom roles JSON file`,
5689
- ` ${Y}--context <files...>${R} Inject documents as context for all agents`,
5689
+ ` ${Y}-c, --context <file>${R} Inject context doc (repeatable: -c a.md -c b.md)`,
5690
5690
  ` ${Y}--distributed${R} Distributed mode (WebSocket, multi-process)`,
5691
5691
  ` ${Y}--max-rounds <n>${R} Max discussion rounds (default: 10)`,
5692
5692
  ` ${Y}aicli join --human${R} Join as a human participant`,
@@ -5729,7 +5729,7 @@ program.command("help").description("Show a comprehensive guide to all aicli fea
5729
5729
  ` ${G}aicli -p "explain this" < main.py${R} ${D}# headless + file${R}`,
5730
5730
  ` ${G}aicli web --host 0.0.0.0${R} ${D}# Web UI on LAN${R}`,
5731
5731
  ` ${G}aicli hub --preset brainstorm "idea"${R} ${D}# multi-agent brainstorm${R}`,
5732
- ` ${G}aicli hub --context spec.md "build it"${R} ${D}# hub + docs context${R}`,
5732
+ ` ${G}aicli hub -c spec.md -c api.md "build it"${R} ${D}# hub + docs context${R}`,
5733
5733
  "",
5734
5734
  `${D} Docs: https://github.com/jinzhengdong/ai-cli${R}`,
5735
5735
  `${D} Issues: https://github.com/jinzhengdong/ai-cli/issues${R}`,
@@ -5737,7 +5737,7 @@ program.command("help").description("Show a comprehensive guide to all aicli fea
5737
5737
  ];
5738
5738
  console.log(lines.join("\n"));
5739
5739
  });
5740
- 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("--context <files...>", "Inject external document(s) as context for all agents (e.g. README.md spec.md)").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) => {
5740
+ 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("-c, --context <file>", "Inject context document (repeatable: -c a.md -c b.md)", (val, prev) => prev.concat(val), []).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) => {
5741
5741
  const config = new ConfigManager();
5742
5742
  const registry = new ProviderRegistry();
5743
5743
  await registry.initialize(
@@ -5758,7 +5758,7 @@ program.command("hub [topic]").description("Start multi-agent hub (discuss / bra
5758
5758
  model: options.model,
5759
5759
  maxRounds: options.maxRounds ? parseInt(options.maxRounds, 10) : void 0,
5760
5760
  listPresets: options.presets === true,
5761
- contextFiles: options.context,
5761
+ contextFiles: options.context?.length ? options.context : void 0,
5762
5762
  distributed: options.distributed === true,
5763
5763
  port: options.port ? parseInt(options.port, 10) : void 0
5764
5764
  },
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeTests,
3
3
  runTestsTool
4
- } from "./chunk-SGYQBV2O.js";
4
+ } from "./chunk-U7YCERTR.js";
5
5
  export {
6
6
  executeTests,
7
7
  runTestsTool
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  executeTests,
4
4
  runTestsTool
5
- } from "./chunk-GU5NVLYL.js";
5
+ } from "./chunk-OQK3WSFD.js";
6
6
  export {
7
7
  executeTests,
8
8
  runTestsTool
@@ -27,7 +27,7 @@ import {
27
27
  spawnAgentContext,
28
28
  truncateOutput,
29
29
  undoStack
30
- } from "./chunk-GTQRHY5Q.js";
30
+ } from "./chunk-RS5ALOXF.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-GU5NVLYL.js";
42
+ } from "./chunk-OQK3WSFD.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-XCNLK66A.js");
1441
+ const { executeTests } = await import("./run-tests-PGGAA5PE.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.5",
3
+ "version": "0.3.6",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",