@ai-zen/cli 1.0.0-alpha.24 → 1.0.0-alpha.25
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/CHANGELOG.md +43 -0
- package/LICENSE +21 -0
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
## [1.0.0-alpha.25] - 2026-10-29
|
|
2
|
+
|
|
3
|
+
> 升级到 SDK `1.0.0-alpha.23`(面向模型与用户的文案全面英文化),
|
|
4
|
+
> 并补上缺失的 `LICENSE` 文件。
|
|
5
|
+
|
|
6
|
+
### 🔧 依赖
|
|
7
|
+
|
|
8
|
+
- `@ai-zen/agents-sdk` `1.0.0-alpha.22` → `1.0.0-alpha.23`。
|
|
9
|
+
|
|
10
|
+
### 💬 行为变化(来自 SDK)
|
|
11
|
+
|
|
12
|
+
- **SDK 内置文案全部改为英文** —— 工具 schema 描述、出厂系统提示词、注入语、
|
|
13
|
+
工具返回值、错误信息、出厂 Skill 与 catalog 数据一律固定英文,SDK 内不再有
|
|
14
|
+
任何中文文案,也**不引入 i18n**(理由:`tokenThresholds` / `maxToolOutput`
|
|
15
|
+
都是绝对量,工具 schema 换语言就是另一组 token 数,性能基准会失去单一变量)。
|
|
16
|
+
- **回复语言改为「跟随用户」** —— 出厂系统提示词里「请用中文回复」被替换为
|
|
17
|
+
`Always reply in the same language the user writes in.`,按每条消息自适应。
|
|
18
|
+
- **对 CLI 无破坏性影响** —— CLI 自带 `i18n` 字典(`src/i18n`),界面文案与
|
|
19
|
+
通知全部由 CLI 自己渲染,不解析 SDK 的文案字符串;对 SDK 的用法仅限于类型导入
|
|
20
|
+
与 `AgentRepository` / `ConfigManager` / `setLogger` / `HandoffService` 等结构性
|
|
21
|
+
API。49 文件 / 649 例测试在升级前后逐项一致。
|
|
22
|
+
|
|
23
|
+
### 📄 许可证
|
|
24
|
+
|
|
25
|
+
- **新增 `LICENSE`** —— 此前 `package.json` 声明了 `"license": "MIT"`,但仓库里
|
|
26
|
+
没有许可证正文,npm 包内自然也没有。现补上 MIT 全文(与 `agents` 仓库根
|
|
27
|
+
`LICENSE` 一致,`Copyright (c) 2024 LZQCN`)。
|
|
28
|
+
`files` 字段未改动:npm 对 `LICENSE` 强制包含,`npm pack` 已确认 tarball 内含该文件。
|
|
29
|
+
|
|
30
|
+
### 📖 文档
|
|
31
|
+
|
|
32
|
+
- `docs/{zh,en}/getting-started.md` —— 运行时依赖清单的 SDK 版本从 `1.0.0-alpha.18`
|
|
33
|
+
订正为 `1.0.0-alpha.23`,`@ai-zen/agents-core` 从 `^4.5.2` 订正为 `^4.5.3`
|
|
34
|
+
(与实际 `package.json` 对齐)。
|
|
35
|
+
- `docs/{zh,en}/index.md` —— 许可证一节改为指向仓库根的 `LICENSE` 文件,并说明全文
|
|
36
|
+
随包一同发布。
|
|
37
|
+
- `README.md` / `README.zh.md` —— 启动界面示例中的版本号同步为 `1.0.0-alpha.25`。
|
|
38
|
+
|
|
39
|
+
### ✅ 测试
|
|
40
|
+
|
|
41
|
+
- 全量 **49 文件 / 649 例通过**,`tsc --noEmit` 0 错误,与 alpha.24 基线一致
|
|
42
|
+
(本次仅升依赖,无源码改动)。
|
|
43
|
+
|
|
1
44
|
## [1.0.0-alpha.24] - 2026-10-28
|
|
2
45
|
|
|
3
46
|
> 三件事:**看不见的上下文**现在看得见了(不进上下文的消息划删除线),
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 LZQCN
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ When run with no arguments on an interactive terminal, the CLI opens a full-scre
|
|
|
66
66
|
╚═╝ ╚═╝╚═╝ ╚══════╝╚══════╝╚═╝ ╚═══╝
|
|
67
67
|
|
|
68
68
|
AI workbench in your terminal
|
|
69
|
-
v1.0.0-alpha.
|
|
69
|
+
v1.0.0-alpha.25 · sdk x · core y
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
After the splash, you land **directly in the chat screen** (resuming the last session if there is one, otherwise starting a new conversation). The chat screen is **bottom-pinned**: a divider, the input line, and a **status bar** (three priority-ordered blocks: model · agent · reasoning effort | this-round / cumulative tokens · generation rate | key hints; a block that does not fit moves to the next line whole, so nothing is truncated and no block gets split) always sit at the bottom of the terminal, while the conversation scrolls above them. While generating, the spinner replaces the input line and its label shows **which phase** the round is in: connecting → queued → thinking → calling a tool → waiting for the tool to return → streaming; the two tool phases include the tool name. The generation rate shows a live value while streaming (2-second sliding window, estimated from output deltas) and switches to this round's average once it finishes (preferring the real `completion_tokens` from the API).
|
package/README.zh.md
CHANGED
|
@@ -66,7 +66,7 @@ ai --version
|
|
|
66
66
|
╚═╝ ╚═╝╚═╝ ╚══════╝╚══════╝╚═╝ ╚═══╝
|
|
67
67
|
|
|
68
68
|
终端里的 AI 协作台
|
|
69
|
-
v1.0.0-alpha.
|
|
69
|
+
v1.0.0-alpha.25 · sdk x · core y
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
启动界面结束后**直接进入对话界面**(若存在「上一轮会话」则自动续接,否则新建对话)。对话界面采用**底部固定**布局:分隔线、输入行与**状态栏**(按优先级分三块:模型 · Agent · 思考强度 | 本轮 / 累计 token 用量 · 生成速率 | 快捷键提示;窄屏时放不下的块整块顺延到下一行,既不截断内容也不劈开单块)始终贴在终端底部,对话内容在其上方滚动;生成中时输入行位置显示**分阶段进度**(连接中 → 排队中 → 思考中 → 调用工具 → 等待工具返回 → 输出中,工具阶段带上工具名)。生成速率在生成中显示实时值(最近 2 秒滑动窗口,按输出增量估算),一轮结束后换成这一轮的平均值(优先用 API 返回的真实 `completion_tokens`)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-zen/cli",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.25",
|
|
4
4
|
"description": "AI-ZEN CLI - dual-mode AI terminal: pure stdio pipelines and an interactive TUI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@ai-zen/agents-core": "^4.5.3",
|
|
25
|
-
"@ai-zen/agents-sdk": "1.0.0-alpha.
|
|
25
|
+
"@ai-zen/agents-sdk": "1.0.0-alpha.23",
|
|
26
26
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
27
27
|
"dayjs": "^1.11.21",
|
|
28
28
|
"highlight.js": "^11.12.0",
|