jinzd-ai-cli 0.4.284 → 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.
- package/README.md +3 -3
- package/README.zh-CN.md +3 -3
- package/dist/{batch-DA7VA35X.js → batch-GY3I53DE.js} +13 -10
- package/dist/{chat-index-TDU3S2MG.js → chat-index-DGUOUUQW.js} +2 -2
- package/dist/{chunk-VFVN5CWA.js → chunk-2YDLBM3Z.js} +1 -1
- package/dist/{chunk-OZKTHQWA.js → chunk-3ZQZO5F7.js} +3 -3
- package/dist/chunk-53V3RQY5.js +5684 -0
- package/dist/{chunk-C4CIIIDT.js → chunk-6SCELZG6.js} +3 -3
- package/dist/{chunk-XSBGCZOP.js → chunk-7G7RZHJI.js} +1 -1
- package/dist/{chunk-I4FJGILK.js → chunk-BRLLV3FX.js} +10 -10
- package/dist/chunk-CGLYJRFA.js +95 -0
- package/dist/{chunk-FZ4THGUP.js → chunk-D7HYLMCC.js} +18 -110
- package/dist/{chunk-BXG44VIQ.js → chunk-EYUCJBGS.js} +30 -30
- package/dist/{chunk-3DRSBZQ7.js → chunk-GIJL4EFA.js} +10 -2
- package/dist/{chunk-QKGKWCXE.js → chunk-L4FDTQ42.js} +1 -1
- package/dist/{chunk-DPTEC6AQ.js → chunk-LWPWBRAC.js} +12 -10
- package/dist/chunk-RS7SKYTS.js +45 -0
- package/dist/{chunk-PWLQU43X.js → chunk-S7ABWTDV.js} +1 -1
- package/dist/{chunk-RV2YOTEQ.js → chunk-THUXZNJL.js} +1 -1
- package/dist/{chunk-PPPSK4MA.js → chunk-UKITSNSH.js} +1 -1
- package/dist/{ci-HG2TPYVY.js → ci-JBUIVM7P.js} +4 -4
- package/dist/{ci-format-UB7K63UZ.js → ci-format-B4AHV5SI.js} +2 -2
- package/dist/{constants-3DDHA3LT.js → constants-5FYUQLKN.js} +1 -1
- package/dist/constants-P75MLFV7.js +80 -0
- package/dist/{doctor-cli-ISFDY7LZ.js → doctor-cli-VLFE46PX.js} +5 -4
- package/dist/electron-server.js +3654 -310
- package/dist/git-context-VNCA2GU7.js +10 -0
- package/dist/{hub-MP2CNDMZ.js → hub-CNORVRYW.js} +1 -1
- package/dist/index.js +304 -3589
- package/dist/{persistent-memory-AMDRRB5E.js → persistent-memory-3KL4N27E.js} +3 -2
- package/dist/{persistent-memory-J2OVPLWI.js → persistent-memory-LVX2OT4L.js} +2 -2
- package/dist/{pr-BREZ3DJX.js → pr-2YUV4KII.js} +4 -4
- package/dist/{run-tests-XHLV74GU.js → run-tests-ERD6X534.js} +2 -2
- package/dist/{run-tests-DPO23PKA.js → run-tests-KZ2IUZHK.js} +2 -2
- package/dist/{semantic-FF6DDJI6.js → semantic-VPNKXKKK.js} +2 -2
- package/dist/{server-KK7DIV3J.js → server-7VSLW446.js} +6 -5
- package/dist/{server-W2VIUKTQ.js → server-A3OX52UC.js} +78 -76
- package/dist/{task-orchestrator-YM5IMIKL.js → task-orchestrator-XAMKOFUE.js} +6 -5
- package/dist/{usage-TXPZY7EB.js → usage-ZXNYCAZB.js} +4 -3
- package/package.json +1 -1
- package/dist/chunk-Z23JYUOL.js +0 -2296
- package/dist/{chunk-AEAYUKSY.js → chunk-7XU4BATV.js} +3 -3
- package/dist/{chunk-YOVHMQEJ.js → chunk-I4GQRMFV.js} +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- AICLI:DOCS_DEFAULT_WEB_PORT=3000 -->
|
|
6
6
|
<!-- AICLI:DOCS_BUILTIN_TOOL_COUNT=30 -->
|
|
7
|
-
<!-- AICLI:DOCS_REPL_COMMAND_COUNT=
|
|
7
|
+
<!-- AICLI:DOCS_REPL_COMMAND_COUNT=49 -->
|
|
8
8
|
<!-- AICLI:DOCS_BUILTIN_PROVIDER_COUNT=10 -->
|
|
9
9
|
<!-- AICLI:DOCS_MEMORY_SOURCE=memory.jsonl -->
|
|
10
10
|
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
- **PWA Support** — Install Web UI as a desktop/mobile app, accessible over LAN
|
|
53
53
|
- **Hierarchical Context** — 3-layer context files (global / project / subdirectory) auto-injected; supports native AICLI.md, Claude-compatible CLAUDE.md, and Codex-compatible AGENTS.md with override files
|
|
54
54
|
- **Headless Mode** — `ai-cli -p "prompt"` for CI/CD pipelines and scripting
|
|
55
|
-
- **
|
|
55
|
+
- **49 REPL Commands** — Session management, checkpointing, code review, security review/scan, rewind, scaffolding, cross-session history search, chat-memory recall, smart model routing (`/route`), and more
|
|
56
56
|
- **GitHub Actions CI/CD** — Automated testing on Node 20/22 + npm publish on release tags
|
|
57
57
|
- **PR Review CLI** *(v0.4.216+)* — `aicli pr review|security-review|summarize` reviews `main...HEAD`, custom `--base/--head`, or GitHub PR URLs; optional `--agents security,bugs,tests,maintainability`; never posts comments unless `--post` is explicit
|
|
58
58
|
- **CI Review Artifacts** *(v0.4.216+)* — `aicli ci` emits Markdown, JSON, or SARIF and gates on security-high, test-failure, and lint-failure findings in read-only review mode
|
|
@@ -233,7 +233,7 @@ AI autonomously invokes these 30 tools during conversations:
|
|
|
233
233
|
|
|
234
234
|
**Multi-line input**: Use `\` at end of line for continuation, or paste multi-line content directly (auto-detected and merged).
|
|
235
235
|
|
|
236
|
-
Type `/help` in the REPL to see all
|
|
236
|
+
Type `/help` in the REPL to see all 49 commands.
|
|
237
237
|
|
|
238
238
|
## CLI Parameters
|
|
239
239
|
|
package/README.zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- AICLI:DOCS_DEFAULT_WEB_PORT=3000 -->
|
|
6
6
|
<!-- AICLI:DOCS_BUILTIN_TOOL_COUNT=30 -->
|
|
7
|
-
<!-- AICLI:DOCS_REPL_COMMAND_COUNT=
|
|
7
|
+
<!-- AICLI:DOCS_REPL_COMMAND_COUNT=49 -->
|
|
8
8
|
<!-- AICLI:DOCS_BUILTIN_PROVIDER_COUNT=10 -->
|
|
9
9
|
<!-- AICLI:DOCS_MEMORY_SOURCE=memory.jsonl -->
|
|
10
10
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
- **PWA 支持** — Web UI 可安装为桌面/移动应用,支持局域网访问
|
|
43
43
|
- **三层级上下文** — 全局 / 项目 / 子目录上下文文件自动注入;支持原生 `AICLI.md`、Claude 兼容 `CLAUDE.md`、Codex 兼容 `AGENTS.md` 及 override 文件
|
|
44
44
|
- **无头模式** — `aicli -p "提示词"` 用于 CI/CD 管道和脚本
|
|
45
|
-
- **
|
|
45
|
+
- **49 个 REPL 命令** — 会话管理、检查点、代码审查、安全审查/扫描、对话回退、脚手架、聊天记忆召回、智能模型路由(`/route`)等
|
|
46
46
|
- **GitHub Actions CI/CD** — Node 20/22 自动测试 + Release tag 自动发布 npm
|
|
47
47
|
- **跨平台** — Windows、macOS、Linux
|
|
48
48
|
|
|
@@ -228,7 +228,7 @@ AI 在对话中可自主调用 30 个工具:
|
|
|
228
228
|
|
|
229
229
|
**多行输入**:行末加 `\` 续行,或直接粘贴多行内容(自动检测合并)。
|
|
230
230
|
|
|
231
|
-
在 REPL 中输入 `/help` 查看全部
|
|
231
|
+
在 REPL 中输入 `/help` 查看全部 49 个命令。
|
|
232
232
|
|
|
233
233
|
## CLI 参数
|
|
234
234
|
|
|
@@ -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-
|
|
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-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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-
|
|
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,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
evaluateCiGate,
|
|
4
4
|
normalizeCiThresholds
|
|
5
|
-
} from "./chunk-
|
|
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-
|
|
19
|
+
} from "./chunk-7G7RZHJI.js";
|
|
20
20
|
import {
|
|
21
21
|
VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-THUXZNJL.js";
|
|
23
23
|
|
|
24
24
|
// src/cli/ci.ts
|
|
25
25
|
import { execFileSync } from "child_process";
|