jinzd-ai-cli 0.4.75 → 0.4.76
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/README.md +6 -1
- package/dist/{chunk-5P4QTZBI.js → chunk-2Q77FT3F.js} +12 -3
- package/dist/{chunk-E6RP5DBU.js → chunk-34NJTPWZ.js} +12 -3
- package/dist/chunk-6VRJGH25.js +115 -0
- package/dist/chunk-BJAT4GNC.js +113 -0
- package/dist/{chunk-ASNDBI5R.js → chunk-H4DQNZZ6.js} +1 -1
- package/dist/{chunk-3BHGEPIT.js → chunk-K3JJX2Z5.js} +1 -1
- package/dist/{chunk-MPIUYP6Q.js → chunk-KR4FTJWB.js} +234 -4
- package/dist/chunk-NHNWUBXB.js +431 -0
- package/dist/chunk-RFQVUMDB.js +430 -0
- package/dist/{chunk-C4MGON2N.js → chunk-XTH7S3AM.js} +2 -2
- package/dist/{hub-W3BF22UV.js → hub-YPNEYO3Z.js} +1 -1
- package/dist/index.js +93 -14
- package/dist/{run-tests-LEYTZHPU.js → run-tests-2I5S24IH.js} +1 -1
- package/dist/{run-tests-V2JJADIU.js → run-tests-MKKCDUUV.js} +2 -2
- package/dist/{server-2XO72FRP.js → server-6MPBAH4K.js} +52 -11
- package/dist/{task-orchestrator-277NWVSE.js → task-orchestrator-I5HPXTJY.js} +5 -3
- package/dist/wasm/tree-sitter-javascript.wasm +0 -0
- package/dist/wasm/tree-sitter-python.wasm +0 -0
- package/dist/wasm/tree-sitter-tsx.wasm +0 -0
- package/dist/wasm/tree-sitter-typescript.wasm +0 -0
- package/dist/wasm/web-tree-sitter.wasm +0 -0
- package/package.json +9 -2
|
@@ -20,13 +20,7 @@ import {
|
|
|
20
20
|
persistToolRound,
|
|
21
21
|
rebuildExtraMessages,
|
|
22
22
|
setupProxy
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
AuthManager
|
|
26
|
-
} from "./chunk-BYNY5JPB.js";
|
|
27
|
-
import {
|
|
28
|
-
ConfigManager
|
|
29
|
-
} from "./chunk-ASNDBI5R.js";
|
|
23
|
+
} from "./chunk-XTH7S3AM.js";
|
|
30
24
|
import {
|
|
31
25
|
ToolExecutor,
|
|
32
26
|
ToolRegistry,
|
|
@@ -44,9 +38,17 @@ import {
|
|
|
44
38
|
spawnAgentContext,
|
|
45
39
|
truncateOutput,
|
|
46
40
|
undoStack
|
|
47
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-KR4FTJWB.js";
|
|
48
42
|
import "./chunk-4BKXL7SM.js";
|
|
49
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-NHNWUBXB.js";
|
|
44
|
+
import "./chunk-6VRJGH25.js";
|
|
45
|
+
import "./chunk-K3JJX2Z5.js";
|
|
46
|
+
import {
|
|
47
|
+
AuthManager
|
|
48
|
+
} from "./chunk-BYNY5JPB.js";
|
|
49
|
+
import {
|
|
50
|
+
ConfigManager
|
|
51
|
+
} from "./chunk-H4DQNZZ6.js";
|
|
50
52
|
import "./chunk-2ZD3YTVM.js";
|
|
51
53
|
import {
|
|
52
54
|
AGENTIC_BEHAVIOR_GUIDELINE,
|
|
@@ -66,7 +68,7 @@ import {
|
|
|
66
68
|
SKILLS_DIR_NAME,
|
|
67
69
|
VERSION,
|
|
68
70
|
buildUserIdentityPrompt
|
|
69
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-2Q77FT3F.js";
|
|
70
72
|
|
|
71
73
|
// src/web/server.ts
|
|
72
74
|
import express from "express";
|
|
@@ -1478,6 +1480,8 @@ Tokens: in=${this.sessionTokenUsage.inputTokens} out=${this.sessionTokenUsage.ou
|
|
|
1478
1480
|
" /diff [--stats] \u2014 Show file modifications in this session",
|
|
1479
1481
|
" /checkpoint [save|restore|delete] <name> \u2014 Session checkpoints",
|
|
1480
1482
|
" /fork [checkpoint] \u2014 Fork session from checkpoint or current",
|
|
1483
|
+
" /branch [list|new|switch|delete|rename] \u2014 Manage conversation branches",
|
|
1484
|
+
" /index [status|rebuild|clear] \u2014 Symbol index for find_symbol / get_outline / find_references",
|
|
1481
1485
|
" /review [--staged] \u2014 AI code review from git diff",
|
|
1482
1486
|
" /security-review \u2014 Security vulnerability scan on git diff",
|
|
1483
1487
|
" /rewind [list|<n>] \u2014 Rewind conversation & restore files to checkpoint",
|
|
@@ -1897,6 +1901,43 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
|
|
|
1897
1901
|
this.send({ type: "error", message: `Unknown subcommand: ${sub}. Use list/new/switch/delete/rename.` });
|
|
1898
1902
|
break;
|
|
1899
1903
|
}
|
|
1904
|
+
// ── /index ──────────────────────────────────────────────────────
|
|
1905
|
+
case "index": {
|
|
1906
|
+
const sub = (args[0] ?? "status").toLowerCase();
|
|
1907
|
+
const root = process.cwd();
|
|
1908
|
+
const { loadIndex, clearIndex } = await import("./store-S24SPPDZ.js");
|
|
1909
|
+
const { indexProject } = await import("./indexer-C7QYYHSZ.js");
|
|
1910
|
+
if (sub === "status") {
|
|
1911
|
+
const idx = loadIndex(root);
|
|
1912
|
+
if (!idx) {
|
|
1913
|
+
this.send({ type: "info", message: `No symbol index for ${root}. Run /index rebuild.` });
|
|
1914
|
+
} else {
|
|
1915
|
+
this.send({
|
|
1916
|
+
type: "info",
|
|
1917
|
+
message: [
|
|
1918
|
+
"\u{1F50E} Symbol index:",
|
|
1919
|
+
` Root: ${idx.root}`,
|
|
1920
|
+
` Generated: ${idx.generated}`,
|
|
1921
|
+
` Files: ${idx.fileCount}`,
|
|
1922
|
+
` Symbols: ${idx.symbolCount}`
|
|
1923
|
+
].join("\n")
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
} else if (sub === "rebuild") {
|
|
1927
|
+
this.send({ type: "info", message: `Indexing ${root}\u2026` });
|
|
1928
|
+
const { stats } = await indexProject(root, { force: true });
|
|
1929
|
+
this.send({
|
|
1930
|
+
type: "info",
|
|
1931
|
+
message: `\u2713 Indexed ${stats.filesParsed} files (${stats.symbols} symbols) in ${stats.durationMs}ms`
|
|
1932
|
+
});
|
|
1933
|
+
} else if (sub === "clear") {
|
|
1934
|
+
clearIndex(root);
|
|
1935
|
+
this.send({ type: "info", message: `\u2713 Cleared symbol index for ${root}` });
|
|
1936
|
+
} else {
|
|
1937
|
+
this.send({ type: "error", message: `Unknown subcommand: ${sub}. Use status/rebuild/clear.` });
|
|
1938
|
+
}
|
|
1939
|
+
break;
|
|
1940
|
+
}
|
|
1900
1941
|
// ── /fork ───────────────────────────────────────────────────────
|
|
1901
1942
|
case "fork": {
|
|
1902
1943
|
const session = this.sessions.current;
|
|
@@ -2062,7 +2103,7 @@ ${undoResults.map((r) => ` \u2022 ${r}`).join("\n")}` });
|
|
|
2062
2103
|
case "test": {
|
|
2063
2104
|
this.send({ type: "info", message: "\u{1F9EA} Running tests..." });
|
|
2064
2105
|
try {
|
|
2065
|
-
const { executeTests } = await import("./run-tests-
|
|
2106
|
+
const { executeTests } = await import("./run-tests-MKKCDUUV.js");
|
|
2066
2107
|
const argStr = args.join(" ").trim();
|
|
2067
2108
|
let testArgs = {};
|
|
2068
2109
|
if (argStr) {
|
|
@@ -4,13 +4,15 @@ import {
|
|
|
4
4
|
getDangerLevel,
|
|
5
5
|
googleSearchContext,
|
|
6
6
|
truncateOutput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KR4FTJWB.js";
|
|
8
8
|
import "./chunk-4BKXL7SM.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-NHNWUBXB.js";
|
|
10
|
+
import "./chunk-6VRJGH25.js";
|
|
11
|
+
import "./chunk-K3JJX2Z5.js";
|
|
10
12
|
import "./chunk-2ZD3YTVM.js";
|
|
11
13
|
import {
|
|
12
14
|
SUBAGENT_ALLOWED_TOOLS
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2Q77FT3F.js";
|
|
14
16
|
|
|
15
17
|
// src/hub/task-orchestrator.ts
|
|
16
18
|
import { createInterface } from "readline";
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jinzd-ai-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.76",
|
|
4
4
|
"description": "Cross-platform REPL-style AI CLI with multi-provider support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"pkg": {
|
|
40
40
|
"scripts": "dist-cjs/index.cjs",
|
|
41
|
-
"assets": [
|
|
41
|
+
"assets": [
|
|
42
|
+
"dist/wasm/**/*"
|
|
43
|
+
],
|
|
42
44
|
"targets": [
|
|
43
45
|
"node22-win-x64",
|
|
44
46
|
"node22-macos-arm64",
|
|
@@ -61,6 +63,7 @@
|
|
|
61
63
|
"dist/agent-client-*.js",
|
|
62
64
|
"dist/task-orchestrator-*.js",
|
|
63
65
|
"dist/web/",
|
|
66
|
+
"dist/wasm/",
|
|
64
67
|
"README.md"
|
|
65
68
|
],
|
|
66
69
|
"keywords": [
|
|
@@ -90,8 +93,12 @@
|
|
|
90
93
|
"commander": "^13.0.0",
|
|
91
94
|
"express": "^5.2.1",
|
|
92
95
|
"openai": "^4.77.0",
|
|
96
|
+
"tree-sitter-javascript": "^0.25.0",
|
|
97
|
+
"tree-sitter-python": "^0.25.0",
|
|
98
|
+
"tree-sitter-typescript": "^0.23.2",
|
|
93
99
|
"undici": "^7.22.0",
|
|
94
100
|
"uuid": "^11.0.5",
|
|
101
|
+
"web-tree-sitter": "^0.26.8",
|
|
95
102
|
"ws": "^8.19.0",
|
|
96
103
|
"zod": "^3.24.1"
|
|
97
104
|
},
|