jinzd-ai-cli 0.4.285 → 0.4.286

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 (41) hide show
  1. package/dist/{batch-R563COWE.js → batch-GY3I53DE.js} +13 -10
  2. package/dist/{chat-index-TDU3S2MG.js → chat-index-DGUOUUQW.js} +2 -2
  3. package/dist/{chunk-UW33KJW5.js → chunk-2YDLBM3Z.js} +1 -1
  4. package/dist/{chunk-3LFB4YZA.js → chunk-3ZQZO5F7.js} +3 -3
  5. package/dist/chunk-53V3RQY5.js +5684 -0
  6. package/dist/{chunk-XGRZA5V6.js → chunk-6SCELZG6.js} +3 -3
  7. package/dist/{chunk-DV5D7RXZ.js → chunk-7G7RZHJI.js} +1 -1
  8. package/dist/{chunk-KLBMKONV.js → chunk-BRLLV3FX.js} +4 -4
  9. package/dist/chunk-CGLYJRFA.js +95 -0
  10. package/dist/{chunk-WBF4AOHJ.js → chunk-D7HYLMCC.js} +18 -110
  11. package/dist/{chunk-5CC5HQFW.js → chunk-EYUCJBGS.js} +30 -30
  12. package/dist/{chunk-LF6SPK7I.js → chunk-GIJL4EFA.js} +10 -2
  13. package/dist/{chunk-VLM4SKKX.js → chunk-L4FDTQ42.js} +1 -1
  14. package/dist/{chunk-DPTEC6AQ.js → chunk-LWPWBRAC.js} +12 -10
  15. package/dist/chunk-RS7SKYTS.js +45 -0
  16. package/dist/{chunk-6G7Y2VG4.js → chunk-S7ABWTDV.js} +1 -1
  17. package/dist/{chunk-PHK7QQH3.js → chunk-THUXZNJL.js} +1 -1
  18. package/dist/{chunk-AOF4K5N7.js → chunk-UKITSNSH.js} +1 -1
  19. package/dist/{ci-E4CYVEOW.js → ci-JBUIVM7P.js} +4 -4
  20. package/dist/{ci-format-7XTLOAB5.js → ci-format-B4AHV5SI.js} +2 -2
  21. package/dist/{constants-L7D3IXWV.js → constants-5FYUQLKN.js} +1 -1
  22. package/dist/constants-P75MLFV7.js +80 -0
  23. package/dist/{doctor-cli-JLROIGLO.js → doctor-cli-VLFE46PX.js} +5 -4
  24. package/dist/electron-server.js +3549 -253
  25. package/dist/git-context-VNCA2GU7.js +10 -0
  26. package/dist/{hub-7UDPLWBI.js → hub-CNORVRYW.js} +1 -1
  27. package/dist/index.js +315 -3655
  28. package/dist/{persistent-memory-CNJOZ7U2.js → persistent-memory-3KL4N27E.js} +3 -2
  29. package/dist/{persistent-memory-DRXWYBJS.js → persistent-memory-LVX2OT4L.js} +2 -2
  30. package/dist/{pr-3W5547IS.js → pr-2YUV4KII.js} +4 -4
  31. package/dist/{run-tests-LP2CI4MT.js → run-tests-ERD6X534.js} +2 -2
  32. package/dist/{run-tests-7B7N4YAE.js → run-tests-KZ2IUZHK.js} +2 -2
  33. package/dist/{semantic-FF6DDJI6.js → semantic-VPNKXKKK.js} +2 -2
  34. package/dist/{server-NIPB62XP.js → server-7VSLW446.js} +6 -5
  35. package/dist/{server-YBMWBJVG.js → server-A3OX52UC.js} +21 -15
  36. package/dist/{task-orchestrator-RYG4ZTDO.js → task-orchestrator-XAMKOFUE.js} +6 -5
  37. package/dist/{usage-YDVLCZDU.js → usage-ZXNYCAZB.js} +4 -3
  38. package/package.json +1 -1
  39. package/dist/chunk-HBAYEVVJ.js +0 -2362
  40. package/dist/{chunk-AEAYUKSY.js → chunk-7XU4BATV.js} +3 -3
  41. package/dist/{chunk-YOVHMQEJ.js → chunk-I4GQRMFV.js} +3 -3
@@ -1,12 +1,15 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ loadJsonState
4
+ } from "./chunk-RS7SKYTS.js";
2
5
  import {
3
6
  ConfigManager
4
- } from "./chunk-DV5D7RXZ.js";
7
+ } from "./chunk-7G7RZHJI.js";
5
8
  import "./chunk-TU3L3PW7.js";
6
9
  import {
7
10
  atomicWriteFileSync
8
11
  } from "./chunk-IW3Q7AE5.js";
9
- import "./chunk-PHK7QQH3.js";
12
+ import "./chunk-THUXZNJL.js";
10
13
 
11
14
  // src/cli/batch.ts
12
15
  import Anthropic from "@anthropic-ai/sdk";
@@ -64,14 +67,14 @@ function getBatchesPath(config) {
64
67
  return join(config.getConfigDir(), "batches.json");
65
68
  }
66
69
  function loadTrackedBatches(config) {
67
- const p = getBatchesPath(config);
68
- if (!existsSync(p)) return [];
69
- try {
70
- const data = JSON.parse(readFileSync(p, "utf-8"));
71
- return Array.isArray(data.batches) ? data.batches : [];
72
- } catch {
73
- return [];
74
- }
70
+ return loadJsonState(getBatchesPath(config), {
71
+ label: "batch tracking",
72
+ fallback: () => [],
73
+ parse: (raw) => {
74
+ const data = raw;
75
+ return Array.isArray(data?.batches) ? data.batches : null;
76
+ }
77
+ }).value;
75
78
  }
76
79
  function saveTrackedBatches(config, batches) {
77
80
  mkdirSync(config.getConfigDir(), { recursive: true });
@@ -5,9 +5,9 @@ import {
5
5
  getChatIndexStatus,
6
6
  loadChatIndex,
7
7
  searchChatMemory
8
- } from "./chunk-YOVHMQEJ.js";
9
- import "./chunk-FSC6KEWU.js";
8
+ } from "./chunk-I4GQRMFV.js";
10
9
  import "./chunk-JV5N65KN.js";
10
+ import "./chunk-FSC6KEWU.js";
11
11
  import "./chunk-6BUTA5VW.js";
12
12
  export {
13
13
  buildChatIndex,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  VERSION
4
- } from "./chunk-PHK7QQH3.js";
4
+ } from "./chunk-THUXZNJL.js";
5
5
 
6
6
  // src/cli/ci-format.ts
7
7
  var DEFAULT_CI_THRESHOLDS = {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  evaluateCiGate,
4
4
  normalizeCiThresholds
5
- } from "./chunk-UW33KJW5.js";
5
+ } from "./chunk-2YDLBM3Z.js";
6
6
  import {
7
7
  buildReviewPrompt,
8
8
  buildSecurityReviewPrompt,
@@ -16,10 +16,10 @@ import {
16
16
  } from "./chunk-UGY5SVNX.js";
17
17
  import {
18
18
  ConfigManager
19
- } from "./chunk-DV5D7RXZ.js";
19
+ } from "./chunk-7G7RZHJI.js";
20
20
  import {
21
21
  VERSION
22
- } from "./chunk-PHK7QQH3.js";
22
+ } from "./chunk-THUXZNJL.js";
23
23
 
24
24
  // src/cli/ci.ts
25
25
  import { execFileSync } from "child_process";