jinzd-ai-cli 0.4.270 → 0.4.272

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.
Files changed (42) hide show
  1. package/dist/{batch-IMLMUXJL.js → batch-3KHEEICT.js} +2 -2
  2. package/dist/{chat-index-7MMTGQNA.js → chat-index-2D5GK2DB.js} +2 -2
  3. package/dist/{chat-index-Q6BKWWAM.js → chat-index-TDU3S2MG.js} +2 -2
  4. package/dist/{chunk-BOMB6XCF.js → chunk-257ZLWOP.js} +2 -2
  5. package/dist/{chunk-B5TYJO7V.js → chunk-3FEZSLGI.js} +51 -6
  6. package/dist/{chunk-F26YTEMB.js → chunk-5NZVRFLP.js} +4 -4
  7. package/dist/{chunk-UDUE4DAE.js → chunk-A5ICBOQ6.js} +1 -1
  8. package/dist/{chunk-JJVVCWO4.js → chunk-AHNTBH7G.js} +1 -1
  9. package/dist/{chunk-OBULDJSU.js → chunk-CGDYO52A.js} +1 -1
  10. package/dist/{chunk-TG4PF7FZ.js → chunk-EZ6VXKJV.js} +1 -1
  11. package/dist/{chunk-FXCDD7JS.js → chunk-FBYFNBUD.js} +3 -3
  12. package/dist/{chunk-YVTASHS5.js → chunk-FSC6KEWU.js} +51 -6
  13. package/dist/{chunk-6RPGQ5CG.js → chunk-GHWZVPUV.js} +1 -1
  14. package/dist/{chunk-DIJIYWQE.js → chunk-JMU5DELU.js} +11 -11
  15. package/dist/{chunk-X3JPBJ6C.js → chunk-MFUAK7OM.js} +6 -6
  16. package/dist/{chunk-JQXXPTWL.js → chunk-MX75TNE5.js} +1 -1
  17. package/dist/{chunk-YHLTSZVH.js → chunk-PXWOJEFG.js} +8 -8
  18. package/dist/{chunk-75SPJKDY.js → chunk-WMVG5E56.js} +1 -1
  19. package/dist/{chunk-M3GDYEUH.js → chunk-XBOP6NLW.js} +4 -4
  20. package/dist/chunk-XNFIYS7G.js +82 -0
  21. package/dist/{chunk-PLFXDRNX.js → chunk-XUNQSAUM.js} +1 -1
  22. package/dist/{chunk-ZWEZNKDW.js → chunk-YOVHMQEJ.js} +1 -1
  23. package/dist/{chunk-HOT76ATM.js → chunk-Z75H56SJ.js} +8 -8
  24. package/dist/{ci-HQVXWJ53.js → ci-6CTWCDH3.js} +4 -4
  25. package/dist/{ci-format-762IL4OM.js → ci-format-MC5HZBCE.js} +2 -2
  26. package/dist/config-command-E5DHADEV.js +11 -0
  27. package/dist/{constants-4TPE3JSV.js → constants-SGKY75QU.js} +1 -1
  28. package/dist/{doctor-cli-3ES6NFVL.js → doctor-cli-7CW4BIGM.js} +4 -4
  29. package/dist/electron-server.js +96 -28
  30. package/dist/{hub-QXRWPBJP.js → hub-ORAAJOPT.js} +2 -2
  31. package/dist/index.js +83 -99
  32. package/dist/{persist-A2QSXYFY.js → persist-PQM4BRI4.js} +3 -3
  33. package/dist/{persistent-memory-F4JPWYZJ.js → persistent-memory-6NQQ2H2B.js} +3 -3
  34. package/dist/{persistent-memory-URIJJJ3N.js → persistent-memory-6SB5ZUOI.js} +3 -3
  35. package/dist/{pr-HVVHZOJ2.js → pr-FNKV6IWI.js} +5 -5
  36. package/dist/{run-tests-WM7TMO2N.js → run-tests-34HXDZXM.js} +2 -2
  37. package/dist/{run-tests-UZG6SVJ5.js → run-tests-PS37BVOI.js} +2 -2
  38. package/dist/{server-HPRLFLOI.js → server-IEOQIQPC.js} +53 -56
  39. package/dist/{server-E5OBXT33.js → server-OZTSIFXL.js} +10 -10
  40. package/dist/{task-orchestrator-HJUUL55Y.js → task-orchestrator-77MEVKT6.js} +12 -12
  41. package/dist/{usage-L3DUPHD6.js → usage-RI6YOAOP.js} +2 -2
  42. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  executeTests,
3
3
  runTestsTool
4
- } from "./chunk-UDUE4DAE.js";
5
- import "./chunk-JJVVCWO4.js";
4
+ } from "./chunk-A5ICBOQ6.js";
5
+ import "./chunk-AHNTBH7G.js";
6
6
  export {
7
7
  executeTests,
8
8
  runTestsTool
@@ -5,13 +5,13 @@ import {
5
5
  resolveRoleProviders
6
6
  } from "./chunk-23SJVOQD.js";
7
7
  import "./chunk-VOIOUJXI.js";
8
- import {
9
- persistDiscussion
10
- } from "./chunk-JQXXPTWL.js";
11
8
  import {
12
9
  AuthManager,
13
10
  TOKEN_EXPIRY_MS
14
11
  } from "./chunk-RYQBBEMM.js";
12
+ import {
13
+ persistDiscussion
14
+ } from "./chunk-MX75TNE5.js";
15
15
  import {
16
16
  AUTO_COMPACT_INSTRUCTION,
17
17
  McpManager,
@@ -34,7 +34,7 @@ import {
34
34
  scanProject,
35
35
  setupProxy,
36
36
  stripRoutingTags
37
- } from "./chunk-X3JPBJ6C.js";
37
+ } from "./chunk-MFUAK7OM.js";
38
38
  import {
39
39
  CNY_PER_USD,
40
40
  CostTracker,
@@ -44,13 +44,6 @@ import {
44
44
  getPricing,
45
45
  setCostCurrency
46
46
  } from "./chunk-JT6UN5C6.js";
47
- import {
48
- buildReviewPrompt,
49
- buildSecurityReviewPrompt
50
- } from "./chunk-HLWUDRBO.js";
51
- import {
52
- thinkingParamsFor
53
- } from "./chunk-6YZEZFX5.js";
54
47
  import {
55
48
  ToolExecutor,
56
49
  ToolRegistry,
@@ -82,7 +75,15 @@ import {
82
75
  spawnAgentContext,
83
76
  truncateOutput,
84
77
  undoStack
85
- } from "./chunk-DIJIYWQE.js";
78
+ } from "./chunk-JMU5DELU.js";
79
+ import {
80
+ buildReviewPrompt,
81
+ buildSecurityReviewPrompt
82
+ } from "./chunk-HLWUDRBO.js";
83
+ import {
84
+ thinkingParamsFor
85
+ } from "./chunk-6YZEZFX5.js";
86
+ import "./chunk-GHWZVPUV.js";
86
87
  import {
87
88
  addMemoryEntry,
88
89
  clearMemoryEntries,
@@ -97,27 +98,26 @@ import {
97
98
  parseWritableScope,
98
99
  updateMemoryApproval,
99
100
  updateMemoryEntry
100
- } from "./chunk-YHLTSZVH.js";
101
+ } from "./chunk-PXWOJEFG.js";
101
102
  import "./chunk-GLSR2NR3.js";
102
103
  import "./chunk-UUSRWSSX.js";
103
104
  import "./chunk-CKH4KQ4E.js";
104
105
  import "./chunk-BXP6YZ2P.js";
106
+ import "./chunk-KHYD3WXE.js";
105
107
  import "./chunk-5C76XDDF.js";
106
108
  import {
107
109
  SessionManager,
108
110
  getContentText
109
- } from "./chunk-OBULDJSU.js";
111
+ } from "./chunk-CGDYO52A.js";
112
+ import "./chunk-NYNSYLFY.js";
113
+ import {
114
+ scanString
115
+ } from "./chunk-3FEZSLGI.js";
110
116
  import {
111
117
  buildDoctorReport,
112
118
  formatDoctorReport,
113
119
  loadContextFiles
114
- } from "./chunk-HOT76ATM.js";
115
- import {
116
- ProviderRegistry
117
- } from "./chunk-AUEX6RNY.js";
118
- import {
119
- ConfigManager
120
- } from "./chunk-F26YTEMB.js";
120
+ } from "./chunk-Z75H56SJ.js";
121
121
  import {
122
122
  describePlugin,
123
123
  getActivePluginAssets,
@@ -132,7 +132,13 @@ import {
132
132
  runTool,
133
133
  setPluginEnabled,
134
134
  trustPlugin
135
- } from "./chunk-M3GDYEUH.js";
135
+ } from "./chunk-XBOP6NLW.js";
136
+ import {
137
+ ProviderRegistry
138
+ } from "./chunk-AUEX6RNY.js";
139
+ import {
140
+ ConfigManager
141
+ } from "./chunk-5NZVRFLP.js";
136
142
  import {
137
143
  CONTENT_ONLY_STREAM_REMINDER,
138
144
  TEE_FINAL_USER_NUDGE,
@@ -156,8 +162,15 @@ import {
156
162
  getGitContext,
157
163
  getGitRoot
158
164
  } from "./chunk-HOSJZMQS.js";
165
+ import {
166
+ atomicWriteFileSync
167
+ } from "./chunk-IW3Q7AE5.js";
168
+ import {
169
+ applyConfigCommand,
170
+ maskConfigSecrets
171
+ } from "./chunk-XNFIYS7G.js";
159
172
  import "./chunk-4BKXL7SM.js";
160
- import "./chunk-TG4PF7FZ.js";
173
+ import "./chunk-EZ6VXKJV.js";
161
174
  import {
162
175
  AGENTIC_BEHAVIOR_GUIDELINE,
163
176
  AUTHOR,
@@ -173,16 +186,7 @@ import {
173
186
  SKILLS_DIR_NAME,
174
187
  VERSION,
175
188
  buildUserIdentityPrompt
176
- } from "./chunk-75SPJKDY.js";
177
- import "./chunk-6RPGQ5CG.js";
178
- import "./chunk-KHYD3WXE.js";
179
- import "./chunk-NYNSYLFY.js";
180
- import {
181
- scanString
182
- } from "./chunk-B5TYJO7V.js";
183
- import {
184
- atomicWriteFileSync
185
- } from "./chunk-IW3Q7AE5.js";
189
+ } from "./chunk-WMVG5E56.js";
186
190
 
187
191
  // src/web/server.ts
188
192
  import express from "express";
@@ -853,7 +857,7 @@ Cache: write=${cacheCreate} read=${cacheRead}` : "";
853
857
  Cost: ${formatCost(cost)}` : "";
854
858
  let memoryLine = "";
855
859
  try {
856
- const { countPendingMemories } = await import("./persistent-memory-F4JPWYZJ.js");
860
+ const { countPendingMemories } = await import("./persistent-memory-6NQQ2H2B.js");
857
861
  const pending = countPendingMemories(ctx.config.getConfigDir());
858
862
  if (pending > 0) memoryLine = `
859
863
  Memory: \u26A0 ${pending} pending approval \u2014 see the Memory panel or /memory`;
@@ -1666,7 +1670,7 @@ async function handleTest(args, ctx) {
1666
1670
  const isCommand = argStr.includes(" ") || /^(mvn|gradle|npm|pytest|cargo|go)\b/.test(argStr);
1667
1671
  testArgs = isCommand ? { command: argStr } : { filter: argStr };
1668
1672
  }
1669
- const runTests = ctx.runTests ?? (await import("./run-tests-WM7TMO2N.js")).executeTests;
1673
+ const runTests = ctx.runTests ?? (await import("./run-tests-34HXDZXM.js")).executeTests;
1670
1674
  const report = await runTests(testArgs);
1671
1675
  ctx.send({ type: "info", message: report });
1672
1676
  } catch (err) {
@@ -1924,7 +1928,7 @@ async function handleMemory(args, ctx) {
1924
1928
  ctx.handleMemoryManage(sub, args[1], sub === "expire" ? args[2] : void 0);
1925
1929
  } else if (sub === "export") {
1926
1930
  if (args[1] === "md") {
1927
- const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-F4JPWYZJ.js");
1931
+ const { exportMemoryEntries: exportMemoryEntries2 } = await import("./persistent-memory-6NQQ2H2B.js");
1928
1932
  ctx.send({
1929
1933
  type: "export_data",
1930
1934
  format: "md",
@@ -1978,26 +1982,19 @@ It will be included in AI context for subsequent messages.` });
1978
1982
 
1979
1983
  // src/web/commands/security-commands.ts
1980
1984
  async function handleConfig(args, ctx) {
1981
- const sub = args[0];
1982
- if (sub === "show" || !sub) {
1983
- ctx.send({ type: "info", message: `\u2699\uFE0F Configuration:
1985
+ const outcome = applyConfigCommand(args, ctx.config);
1986
+ if (outcome.action === "show" || outcome.action === "wizard") {
1987
+ const json = outcome.json ?? JSON.stringify(maskConfigSecrets(ctx.config.toJSON()), null, 2);
1988
+ ctx.send({ type: "info", message: `\u2699\uFE0F Configuration (secrets masked):
1984
1989
  \`\`\`json
1985
- ${ctx.config.toFormattedJSON()}
1990
+ ${json}
1986
1991
  \`\`\`` });
1987
- } else if (sub === "get" && args[1]) {
1988
- const val = ctx.config.getByPath(args[1]);
1989
- const display = typeof val === "object" ? JSON.stringify(val, null, 2) : String(val ?? "undefined");
1990
- ctx.send({ type: "info", message: `${args[1]} = ${display}` });
1991
- } else if (sub === "set" && args[1] && args[2] !== void 0) {
1992
- try {
1993
- ctx.config.setByPath(args[1], args.slice(2).join(" "));
1994
- ctx.send({ type: "info", message: `\u2713 ${args[1]} = ${args.slice(2).join(" ")}` });
1995
- } catch (err) {
1996
- ctx.send({ type: "error", message: `Config error: ${err.message}` });
1997
- }
1998
- } else {
1999
- ctx.send({ type: "info", message: "Usage: /config [show] | /config get <key> | /config set <key> <value>" });
1992
+ return;
2000
1993
  }
1994
+ ctx.send({
1995
+ type: outcome.isError ? "error" : "info",
1996
+ message: (outcome.changed ? "\u2713 " : "") + (outcome.summary ?? "")
1997
+ });
2001
1998
  }
2002
1999
  async function handleDoctor(_args, ctx) {
2003
2000
  const report = buildDoctorReport({
@@ -3733,7 +3730,7 @@ Backup saved: ${result.backupPath}` : "";
3733
3730
  return;
3734
3731
  }
3735
3732
  try {
3736
- const { searchChatMemory, loadChatIndex } = await import("./chat-index-7MMTGQNA.js");
3733
+ const { searchChatMemory, loadChatIndex } = await import("./chat-index-2D5GK2DB.js");
3737
3734
  const loaded = loadChatIndex();
3738
3735
  if (!loaded || loaded.idx.chunks.length === 0) {
3739
3736
  this.send({ type: "memory_hits", query: q, hits: [], indexMissing: true });
@@ -3769,7 +3766,7 @@ Backup saved: ${result.backupPath}` : "";
3769
3766
  }
3770
3767
  async handleMemoryStatus() {
3771
3768
  try {
3772
- const { getChatIndexStatus } = await import("./chat-index-7MMTGQNA.js");
3769
+ const { getChatIndexStatus } = await import("./chat-index-2D5GK2DB.js");
3773
3770
  const s = getChatIndexStatus();
3774
3771
  this.send({
3775
3772
  type: "memory_status",
@@ -3794,7 +3791,7 @@ Backup saved: ${result.backupPath}` : "";
3794
3791
  type: "info",
3795
3792
  message: full ? "\u{1F9E0} Rebuilding chat memory index (this may take a while on first run \u2014 ~117 MB embedder)." : "\u{1F9E0} Refreshing chat memory index (incremental)\u2026"
3796
3793
  });
3797
- const { buildChatIndex } = await import("./chat-index-7MMTGQNA.js");
3794
+ const { buildChatIndex } = await import("./chat-index-2D5GK2DB.js");
3798
3795
  const stats = await buildChatIndex({
3799
3796
  full,
3800
3797
  onProgress: (p) => {
@@ -1,32 +1,32 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ToolRegistry
4
- } from "./chunk-DIJIYWQE.js";
5
- import "./chunk-YHLTSZVH.js";
4
+ } from "./chunk-JMU5DELU.js";
5
+ import "./chunk-GHWZVPUV.js";
6
+ import "./chunk-PXWOJEFG.js";
6
7
  import "./chunk-GLSR2NR3.js";
7
8
  import "./chunk-UUSRWSSX.js";
8
9
  import "./chunk-CKH4KQ4E.js";
9
10
  import "./chunk-BXP6YZ2P.js";
11
+ import "./chunk-KHYD3WXE.js";
10
12
  import "./chunk-5C76XDDF.js";
13
+ import "./chunk-NYNSYLFY.js";
14
+ import "./chunk-3FEZSLGI.js";
11
15
  import {
12
16
  runTool
13
- } from "./chunk-M3GDYEUH.js";
17
+ } from "./chunk-XBOP6NLW.js";
14
18
  import {
15
19
  getDangerLevel,
16
20
  schemaToJsonSchema
17
21
  } from "./chunk-3OBY7WSS.js";
18
22
  import "./chunk-TU3L3PW7.js";
19
23
  import "./chunk-HOSJZMQS.js";
24
+ import "./chunk-IW3Q7AE5.js";
20
25
  import "./chunk-4BKXL7SM.js";
21
- import "./chunk-TG4PF7FZ.js";
26
+ import "./chunk-EZ6VXKJV.js";
22
27
  import {
23
28
  VERSION
24
- } from "./chunk-75SPJKDY.js";
25
- import "./chunk-6RPGQ5CG.js";
26
- import "./chunk-KHYD3WXE.js";
27
- import "./chunk-NYNSYLFY.js";
28
- import "./chunk-B5TYJO7V.js";
29
- import "./chunk-IW3Q7AE5.js";
29
+ } from "./chunk-WMVG5E56.js";
30
30
 
31
31
  // src/mcp/server.ts
32
32
  import { createInterface } from "readline";
@@ -3,34 +3,34 @@ import {
3
3
  ToolRegistry,
4
4
  googleSearchContext,
5
5
  truncateOutput
6
- } from "./chunk-DIJIYWQE.js";
7
- import "./chunk-YHLTSZVH.js";
6
+ } from "./chunk-JMU5DELU.js";
7
+ import "./chunk-GHWZVPUV.js";
8
+ import "./chunk-PXWOJEFG.js";
8
9
  import "./chunk-GLSR2NR3.js";
9
10
  import "./chunk-UUSRWSSX.js";
10
11
  import "./chunk-CKH4KQ4E.js";
11
12
  import "./chunk-BXP6YZ2P.js";
13
+ import "./chunk-KHYD3WXE.js";
12
14
  import "./chunk-5C76XDDF.js";
15
+ import "./chunk-NYNSYLFY.js";
16
+ import "./chunk-3FEZSLGI.js";
13
17
  import {
14
18
  runTool
15
- } from "./chunk-M3GDYEUH.js";
19
+ } from "./chunk-XBOP6NLW.js";
16
20
  import {
17
21
  getDangerLevel,
18
22
  runLeanAgentLoop
19
23
  } from "./chunk-3OBY7WSS.js";
20
24
  import "./chunk-TU3L3PW7.js";
21
25
  import "./chunk-HOSJZMQS.js";
22
- import "./chunk-4BKXL7SM.js";
23
- import "./chunk-TG4PF7FZ.js";
24
- import {
25
- SUBAGENT_ALLOWED_TOOLS
26
- } from "./chunk-75SPJKDY.js";
27
- import "./chunk-6RPGQ5CG.js";
28
- import "./chunk-KHYD3WXE.js";
29
- import "./chunk-NYNSYLFY.js";
30
- import "./chunk-B5TYJO7V.js";
31
26
  import {
32
27
  atomicWriteFileSync
33
28
  } from "./chunk-IW3Q7AE5.js";
29
+ import "./chunk-4BKXL7SM.js";
30
+ import "./chunk-EZ6VXKJV.js";
31
+ import {
32
+ SUBAGENT_ALLOWED_TOOLS
33
+ } from "./chunk-WMVG5E56.js";
34
34
 
35
35
  // src/hub/task-orchestrator.ts
36
36
  import { createInterface } from "readline";
@@ -8,10 +8,10 @@ import {
8
8
  } from "./chunk-JT6UN5C6.js";
9
9
  import {
10
10
  ConfigManager
11
- } from "./chunk-F26YTEMB.js";
11
+ } from "./chunk-5NZVRFLP.js";
12
12
  import "./chunk-TU3L3PW7.js";
13
- import "./chunk-75SPJKDY.js";
14
13
  import "./chunk-IW3Q7AE5.js";
14
+ import "./chunk-WMVG5E56.js";
15
15
 
16
16
  // src/cli/usage.ts
17
17
  function classifyRowCost(row) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jinzd-ai-cli",
3
- "version": "0.4.270",
3
+ "version": "0.4.272",
4
4
  "description": "Cross-platform REPL-style AI CLI with multi-provider support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",