jinzd-ai-cli 0.4.220 → 0.4.221
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/{batch-QBSKTLTO.js → batch-LSWWSINO.js} +2 -2
- package/dist/{chunk-IZW5LMI6.js → chunk-4AX2MEJA.js} +3 -3
- package/dist/{chunk-Y25MSSUP.js → chunk-4MOBTDS6.js} +1 -1
- package/dist/{chunk-P4PTXCHY.js → chunk-5BY4XICU.js} +3 -3
- package/dist/{chunk-MC34ISJU.js → chunk-5GTWZ4QF.js} +30 -6
- package/dist/{chunk-P3LKFA54.js → chunk-6SKMGONY.js} +3 -3
- package/dist/{chunk-VHX7KZDY.js → chunk-BYQEWWA4.js} +2 -2
- package/dist/{chunk-P4DYAGUI.js → chunk-OULVIHCT.js} +1 -1
- package/dist/{chunk-5WBNXYDJ.js → chunk-PMTEZTXP.js} +1 -1
- package/dist/{chunk-QZYNRCPX.js → chunk-QDN5G7JN.js} +1 -1
- package/dist/{chunk-ALQN7VUJ.js → chunk-QKJ3MAP7.js} +1 -1
- package/dist/{chunk-A4GUGWEY.js → chunk-QT5FA2ZY.js} +1 -1
- package/dist/{chunk-CAUHLHDR.js → chunk-S5EEKS4P.js} +1 -1
- package/dist/{ci-5SNXGM3M.js → ci-OIFTAJKR.js} +4 -4
- package/dist/{ci-format-57QQTHQE.js → ci-format-H6BLMWQ5.js} +2 -2
- package/dist/{constants-ML5KFEOH.js → constants-EJRLT7DM.js} +1 -1
- package/dist/{doctor-cli-ZRH3XZ3R.js → doctor-cli-EXC7YU5D.js} +4 -4
- package/dist/electron-server.js +73 -44
- package/dist/{hub-IPLMJ6TJ.js → hub-HQDRQBNM.js} +2 -2
- package/dist/index.js +322 -32
- package/dist/{persist-L54DPLI7.js → persist-GTBEKVFL.js} +2 -2
- package/dist/{pr-GJYDAPK4.js → pr-VSZNVKBS.js} +4 -4
- package/dist/{run-tests-GK5AIAV2.js → run-tests-55JGEZYL.js} +1 -1
- package/dist/{run-tests-KLQAI5CX.js → run-tests-OYXK27XH.js} +2 -2
- package/dist/{server-RU36PRSH.js → server-JKNIZ5CB.js} +19 -14
- package/dist/{server-5FZDALHH.js → server-XX6UM4ZQ.js} +4 -4
- package/dist/{task-orchestrator-JMHPVNUO.js → task-orchestrator-F3DUIACA.js} +4 -4
- package/dist/{usage-IRMRCCKN.js → usage-4KFX3HTK.js} +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ConfigManager
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PMTEZTXP.js";
|
|
5
5
|
import "./chunk-5ULLIOVC.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-QDN5G7JN.js";
|
|
7
7
|
import {
|
|
8
8
|
atomicWriteFileSync
|
|
9
9
|
} from "./chunk-IW3Q7AE5.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-T2NL5ZIA.js";
|
|
9
9
|
import {
|
|
10
10
|
runTestsTool
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4MOBTDS6.js";
|
|
12
12
|
import {
|
|
13
13
|
fileCheckpoints
|
|
14
14
|
} from "./chunk-4BKXL7SM.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
runHook,
|
|
26
26
|
runLifecycleHooks,
|
|
27
27
|
runTool
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QKJ3MAP7.js";
|
|
29
29
|
import {
|
|
30
30
|
getDangerLevel,
|
|
31
31
|
isFileWriteTool,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
SUBAGENT_ALLOWED_TOOLS,
|
|
46
46
|
SUBAGENT_DEFAULT_MAX_ROUNDS,
|
|
47
47
|
SUBAGENT_MAX_ROUNDS_LIMIT
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-QDN5G7JN.js";
|
|
49
49
|
import {
|
|
50
50
|
getGitRoot
|
|
51
51
|
} from "./chunk-HOSJZMQS.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
evaluateCiGate,
|
|
4
4
|
normalizeCiThresholds
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OULVIHCT.js";
|
|
6
6
|
import {
|
|
7
7
|
buildReviewPrompt,
|
|
8
8
|
buildSecurityReviewPrompt,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-PUBCJF7E.js";
|
|
14
14
|
import {
|
|
15
15
|
ConfigManager
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PMTEZTXP.js";
|
|
17
17
|
import {
|
|
18
18
|
VERSION
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QDN5G7JN.js";
|
|
20
20
|
|
|
21
21
|
// src/cli/ci.ts
|
|
22
22
|
import { execFileSync } from "child_process";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-IW3Q7AE5.js";
|
|
8
8
|
|
|
9
9
|
// src/session/session-manager.ts
|
|
10
|
-
import { readFileSync, existsSync, mkdirSync, readdirSync, unlinkSync, openSync, readSync, closeSync } from "fs";
|
|
10
|
+
import { readFileSync, existsSync, mkdirSync, readdirSync, unlinkSync, openSync, readSync, closeSync, statSync } from "fs";
|
|
11
11
|
import { join } from "path";
|
|
12
12
|
import { v4 as uuidv4 } from "uuid";
|
|
13
13
|
|
|
@@ -610,14 +610,22 @@ var SessionManager = class {
|
|
|
610
610
|
this._current = session;
|
|
611
611
|
return session;
|
|
612
612
|
}
|
|
613
|
-
listSessions() {
|
|
613
|
+
listSessions(opts) {
|
|
614
614
|
if (!existsSync(this.historyDir)) return [];
|
|
615
615
|
const files = readdirSync(this.historyDir).filter((f) => f.endsWith(".json"));
|
|
616
616
|
const metas = [];
|
|
617
617
|
for (const file of files) {
|
|
618
618
|
try {
|
|
619
|
-
const
|
|
620
|
-
|
|
619
|
+
const filePath = join(this.historyDir, file);
|
|
620
|
+
const meta = this.readSessionMeta(filePath);
|
|
621
|
+
if (!meta) continue;
|
|
622
|
+
if (opts?.includeFileSize) {
|
|
623
|
+
try {
|
|
624
|
+
meta.fileSize = statSync(filePath).size;
|
|
625
|
+
} catch {
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
metas.push(meta);
|
|
621
629
|
} catch (err) {
|
|
622
630
|
process.stderr.write(
|
|
623
631
|
`[Warning] Skipping corrupted session file "${file}": ${err instanceof Error ? err.message : String(err)}
|
|
@@ -662,6 +670,18 @@ var SessionManager = class {
|
|
|
662
670
|
} catch {
|
|
663
671
|
}
|
|
664
672
|
}
|
|
673
|
+
let branchCount;
|
|
674
|
+
let activeBranch;
|
|
675
|
+
try {
|
|
676
|
+
const brMatch = header.match(/"branches"\s*:\s*\[/);
|
|
677
|
+
if (brMatch) {
|
|
678
|
+
const brIds = header.match(/"id"\s*:\s*"[^"]*"/g);
|
|
679
|
+
const parentMatches = header.match(/"parentBranchId"/g);
|
|
680
|
+
branchCount = parentMatches ? parentMatches.length + 1 : 1;
|
|
681
|
+
}
|
|
682
|
+
activeBranch = extractJsonField(header, "activeBranchId");
|
|
683
|
+
} catch {
|
|
684
|
+
}
|
|
665
685
|
return {
|
|
666
686
|
id,
|
|
667
687
|
provider,
|
|
@@ -669,7 +689,9 @@ var SessionManager = class {
|
|
|
669
689
|
messageCount,
|
|
670
690
|
created: safeDate(created),
|
|
671
691
|
updated: safeDate(updated),
|
|
672
|
-
title: title || void 0
|
|
692
|
+
title: title || void 0,
|
|
693
|
+
branchCount,
|
|
694
|
+
activeBranch
|
|
673
695
|
};
|
|
674
696
|
}
|
|
675
697
|
const data = JSON.parse(readFileSync(filePath, "utf-8"));
|
|
@@ -680,7 +702,9 @@ var SessionManager = class {
|
|
|
680
702
|
messageCount: data.messages?.length ?? 0,
|
|
681
703
|
created: safeDate(data.created),
|
|
682
704
|
updated: safeDate(data.updated),
|
|
683
|
-
title: data.title
|
|
705
|
+
title: data.title,
|
|
706
|
+
branchCount: data.branches?.length ?? 1,
|
|
707
|
+
activeBranch: data.activeBranchId
|
|
684
708
|
};
|
|
685
709
|
}
|
|
686
710
|
deleteSession(id) {
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
listHooks,
|
|
12
12
|
listInstalledPlugins,
|
|
13
13
|
resetStats
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QKJ3MAP7.js";
|
|
15
15
|
import {
|
|
16
16
|
ConfigManager
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PMTEZTXP.js";
|
|
18
18
|
import {
|
|
19
19
|
CONFIG_DIR_NAME,
|
|
20
20
|
CONTEXT_FILE_CANDIDATES,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
MCP_PROJECT_CONFIG_NAME,
|
|
24
24
|
MEMORY_FILE_NAME,
|
|
25
25
|
VERSION
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QDN5G7JN.js";
|
|
27
27
|
import {
|
|
28
28
|
getGitRoot
|
|
29
29
|
} from "./chunk-HOSJZMQS.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
truncateForPersist
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4AX2MEJA.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-
|
|
14
|
+
} from "./chunk-QDN5G7JN.js";
|
|
15
15
|
import {
|
|
16
16
|
atomicWriteFileSync
|
|
17
17
|
} from "./chunk-IW3Q7AE5.js";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
CI_COMMENT_MARKER,
|
|
4
4
|
countSeverity,
|
|
5
5
|
runCi
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-5BY4XICU.js";
|
|
7
|
+
import "./chunk-OULVIHCT.js";
|
|
8
8
|
import "./chunk-HLWUDRBO.js";
|
|
9
9
|
import "./chunk-PUBCJF7E.js";
|
|
10
10
|
import "./chunk-XPBEJB27.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-PMTEZTXP.js";
|
|
12
12
|
import "./chunk-5ULLIOVC.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-QDN5G7JN.js";
|
|
14
14
|
import "./chunk-IW3Q7AE5.js";
|
|
15
15
|
export {
|
|
16
16
|
CI_COMMENT_MARKER,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
formatDoctorReport,
|
|
4
4
|
runDoctorCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6SKMGONY.js";
|
|
6
6
|
import "./chunk-PUBCJF7E.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-QKJ3MAP7.js";
|
|
8
8
|
import "./chunk-XPBEJB27.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-PMTEZTXP.js";
|
|
10
10
|
import "./chunk-5ULLIOVC.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-QDN5G7JN.js";
|
|
12
12
|
import "./chunk-HOSJZMQS.js";
|
|
13
13
|
import "./chunk-IW3Q7AE5.js";
|
|
14
14
|
export {
|