jinzd-ai-cli 0.4.206 → 0.4.208

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 (27) hide show
  1. package/dist/{batch-6PORMJWT.js → batch-3T44NFLG.js} +2 -2
  2. package/dist/{chunk-QQYSZMET.js → chunk-2OVMMSGQ.js} +3 -3
  3. package/dist/{chunk-2WV6AGHM.js → chunk-J22B3OSQ.js} +1 -1
  4. package/dist/{chunk-QNUVZO5X.js → chunk-KV4GYNEA.js} +1 -1
  5. package/dist/{chunk-KJHMRAJU.js → chunk-P7JY3SWA.js} +1 -1
  6. package/dist/{chunk-BQIV4ZQT.js → chunk-QDY72ABW.js} +1 -1
  7. package/dist/{chunk-KOU4KX7J.js → chunk-TD7JEHCR.js} +2 -2
  8. package/dist/{chunk-TW47X5AO.js → chunk-TM4MS63K.js} +1 -1
  9. package/dist/{chunk-SFCNFX42.js → chunk-VWYUB22Y.js} +1 -1
  10. package/dist/{ci-AYMV66P3.js → ci-6QWBVRJX.js} +2 -2
  11. package/dist/{constants-NHGTSHKT.js → constants-SZTQNN7K.js} +1 -1
  12. package/dist/{doctor-cli-WKH7T4AW.js → doctor-cli-I2Y2YR4V.js} +4 -4
  13. package/dist/electron-server.js +5 -8
  14. package/dist/{hub-6R3M3NTC.js → hub-XVPFBODB.js} +1 -1
  15. package/dist/index.js +90 -88
  16. package/dist/{run-tests-5F2OBWIK.js → run-tests-D5SNUBYX.js} +2 -2
  17. package/dist/{run-tests-NBCA4KEG.js → run-tests-HZ2CRCTZ.js} +1 -1
  18. package/dist/{server-LDPQ3DLK.js → server-4EFTRFTN.js} +10 -13
  19. package/dist/{server-37EXC4EB.js → server-PVKLPRUP.js} +4 -4
  20. package/dist/{task-orchestrator-2DTDVCMR.js → task-orchestrator-2A5VCFLS.js} +4 -4
  21. package/dist/{usage-SZWZFX3T.js → usage-Q24E5636.js} +2 -2
  22. package/dist/web/client/actions.js +84 -0
  23. package/dist/web/client/app.js +20 -202
  24. package/dist/web/client/index.html +26 -41
  25. package/dist/web/client/sw.js +1 -1
  26. package/dist/web/client/templates.js +188 -0
  27. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ConfigManager
4
- } from "./chunk-TW47X5AO.js";
4
+ } from "./chunk-TM4MS63K.js";
5
5
  import "./chunk-TZQHYZKT.js";
6
- import "./chunk-QNUVZO5X.js";
6
+ import "./chunk-KV4GYNEA.js";
7
7
  import {
8
8
  atomicWriteFileSync
9
9
  } from "./chunk-IW3Q7AE5.js";
@@ -5,10 +5,10 @@ import {
5
5
  } from "./chunk-T2NL5ZIA.js";
6
6
  import {
7
7
  runTestsTool
8
- } from "./chunk-SFCNFX42.js";
8
+ } from "./chunk-VWYUB22Y.js";
9
9
  import {
10
10
  runTool
11
- } from "./chunk-2WV6AGHM.js";
11
+ } from "./chunk-J22B3OSQ.js";
12
12
  import {
13
13
  getDangerLevel,
14
14
  isFileWriteTool,
@@ -26,7 +26,7 @@ import {
26
26
  SUBAGENT_ALLOWED_TOOLS,
27
27
  SUBAGENT_DEFAULT_MAX_ROUNDS,
28
28
  SUBAGENT_MAX_ROUNDS_LIMIT
29
- } from "./chunk-QNUVZO5X.js";
29
+ } from "./chunk-KV4GYNEA.js";
30
30
  import {
31
31
  fileCheckpoints
32
32
  } from "./chunk-4BKXL7SM.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CONFIG_DIR_NAME
4
- } from "./chunk-QNUVZO5X.js";
4
+ } from "./chunk-KV4GYNEA.js";
5
5
  import {
6
6
  atomicWriteFileSync
7
7
  } from "./chunk-IW3Q7AE5.js";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/core/constants.ts
4
- var VERSION = "0.4.206";
4
+ var VERSION = "0.4.208";
5
5
  var APP_NAME = "ai-cli";
6
6
  var CONFIG_DIR_NAME = ".aicli";
7
7
  var CONFIG_FILE_NAME = "config.json";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  CONFIG_DIR_NAME,
4
4
  VERSION
5
- } from "./chunk-QNUVZO5X.js";
5
+ } from "./chunk-KV4GYNEA.js";
6
6
 
7
7
  // src/diagnostics/crash-log.ts
8
8
  import {
@@ -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.4.206";
9
+ var VERSION = "0.4.208";
10
10
  var APP_NAME = "ai-cli";
11
11
  var CONFIG_DIR_NAME = ".aicli";
12
12
  var CONFIG_FILE_NAME = "config.json";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  truncateForPersist
4
- } from "./chunk-QQYSZMET.js";
4
+ } from "./chunk-2OVMMSGQ.js";
5
5
  import {
6
6
  APP_NAME,
7
7
  CONFIG_DIR_NAME,
@@ -11,7 +11,7 @@ import {
11
11
  MCP_PROTOCOL_VERSION,
12
12
  MCP_TOOL_PREFIX,
13
13
  VERSION
14
- } from "./chunk-QNUVZO5X.js";
14
+ } from "./chunk-KV4GYNEA.js";
15
15
 
16
16
  // src/mcp/client.ts
17
17
  import { spawn } from "child_process";
@@ -8,7 +8,7 @@ import {
8
8
  CONFIG_FILE_NAME,
9
9
  HISTORY_DIR_NAME,
10
10
  PLUGINS_DIR_NAME
11
- } from "./chunk-QNUVZO5X.js";
11
+ } from "./chunk-KV4GYNEA.js";
12
12
 
13
13
  // src/config/config-manager.ts
14
14
  import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  TEST_TIMEOUT
4
- } from "./chunk-QNUVZO5X.js";
4
+ } from "./chunk-KV4GYNEA.js";
5
5
 
6
6
  // src/tools/builtin/run-tests.ts
7
7
  import { execSync, spawnSync } from "child_process";
@@ -10,11 +10,11 @@ import {
10
10
  import "./chunk-XPBEJB27.js";
11
11
  import {
12
12
  ConfigManager
13
- } from "./chunk-TW47X5AO.js";
13
+ } from "./chunk-TM4MS63K.js";
14
14
  import "./chunk-TZQHYZKT.js";
15
15
  import {
16
16
  VERSION
17
- } from "./chunk-QNUVZO5X.js";
17
+ } from "./chunk-KV4GYNEA.js";
18
18
 
19
19
  // src/cli/ci.ts
20
20
  import { execFileSync } from "child_process";
@@ -36,7 +36,7 @@ import {
36
36
  TEST_TIMEOUT,
37
37
  VERSION,
38
38
  buildUserIdentityPrompt
39
- } from "./chunk-QNUVZO5X.js";
39
+ } from "./chunk-KV4GYNEA.js";
40
40
  export {
41
41
  AGENTIC_BEHAVIOR_GUIDELINE,
42
42
  APP_NAME,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getConfigDirUsage,
4
4
  listRecentCrashes
5
- } from "./chunk-KJHMRAJU.js";
5
+ } from "./chunk-P7JY3SWA.js";
6
6
  import {
7
7
  ProviderRegistry
8
8
  } from "./chunk-QMXC327F.js";
@@ -11,17 +11,17 @@ import {
11
11
  getTopFailingTools,
12
12
  getTopUsedTools,
13
13
  resetStats
14
- } from "./chunk-2WV6AGHM.js";
14
+ } from "./chunk-J22B3OSQ.js";
15
15
  import "./chunk-XPBEJB27.js";
16
16
  import {
17
17
  ConfigManager
18
- } from "./chunk-TW47X5AO.js";
18
+ } from "./chunk-TM4MS63K.js";
19
19
  import "./chunk-TZQHYZKT.js";
20
20
  import {
21
21
  DEV_STATE_FILE_NAME,
22
22
  MEMORY_FILE_NAME,
23
23
  VERSION
24
- } from "./chunk-QNUVZO5X.js";
24
+ } from "./chunk-KV4GYNEA.js";
25
25
  import "./chunk-IW3Q7AE5.js";
26
26
 
27
27
  // src/diagnostics/doctor-cli.ts
@@ -36,7 +36,7 @@ import {
36
36
  VERSION,
37
37
  buildUserIdentityPrompt,
38
38
  runTestsTool
39
- } from "./chunk-BQIV4ZQT.js";
39
+ } from "./chunk-QDY72ABW.js";
40
40
  import {
41
41
  hasSemanticIndex,
42
42
  semanticSearch
@@ -14373,7 +14373,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
14373
14373
  case "test": {
14374
14374
  this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
14375
14375
  try {
14376
- const { executeTests } = await import("./run-tests-NBCA4KEG.js");
14376
+ const { executeTests } = await import("./run-tests-HZ2CRCTZ.js");
14377
14377
  const argStr = args.join(" ").trim();
14378
14378
  let testArgs = {};
14379
14379
  if (argStr) {
@@ -15731,12 +15731,9 @@ async function startWebServer(options = {}) {
15731
15731
  "Content-Security-Policy",
15732
15732
  [
15733
15733
  "default-src 'self'",
15734
- // v0.4.162: the client UI is driven by inline onclick= handlers and
15735
- // inline <script> blocks (SW registration, theme init). 'self' alone
15736
- // silently blocked EVERY button (click → nothing, no JS error, just a
15737
- // CSP violation in the console). localhost dev/admin tool — the
15738
- // unsafe-inline XSS surface is acceptable under that threat model.
15739
- "script-src 'self' 'unsafe-inline'",
15734
+ // Inline event handlers and startup scripts live in app.js, so script
15735
+ // execution stays locked to same-origin files only.
15736
+ "script-src 'self'",
15740
15737
  "style-src 'self' 'unsafe-inline'",
15741
15738
  "img-src 'self' data: blob:",
15742
15739
  "font-src 'self' data:",
@@ -154,7 +154,7 @@ ${content}`);
154
154
  }
155
155
  }
156
156
  async function runTaskMode(config, providers, configManager, topic) {
157
- const { TaskOrchestrator } = await import("./task-orchestrator-2DTDVCMR.js");
157
+ const { TaskOrchestrator } = await import("./task-orchestrator-2A5VCFLS.js");
158
158
  const orchestrator = new TaskOrchestrator(config, providers, configManager);
159
159
  let interrupted = false;
160
160
  const onSigint = () => {