@mafdet/cli 1.6.0 → 1.7.0
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 +4 -0
- package/README.md +9 -9
- package/README.zh-CN.md +5 -8
- package/dist/index.js +0 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.0 - 2026-11-01
|
|
4
|
+
|
|
5
|
+
- Document actual Linux/native Windows package acceptance and Unicode input; distinguish controlled cancellation from physical Windows Ctrl+C and pending macOS checks.
|
|
6
|
+
|
|
3
7
|
## 1.6.0 — 2026-11-01
|
|
4
8
|
|
|
5
9
|
- Align both READMEs, install tarball names and model-catalog guidance with the current release.
|
package/README.md
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
The official Mafdet AI command line: model calls, account queries, and a
|
|
4
4
|
permissioned local agent.
|
|
5
5
|
|
|
6
|
-
> **1.
|
|
6
|
+
> **1.7.0.** 中文版见 [README.zh-CN.md](./README.zh-CN.md). The CLI never
|
|
7
7
|
> advertises a command it cannot serve, so `mafdet help` always lists exactly
|
|
8
8
|
> what works.
|
|
9
9
|
>
|
|
10
|
-
>
|
|
10
|
+
> Linux and native Windows package/TTY approval checks are recorded below. macOS, physical Windows Ctrl+C and Windows command descendant termination remain pending.
|
|
11
11
|
|
|
12
12
|
## What Mafdet AI is
|
|
13
13
|
|
|
@@ -24,7 +24,7 @@ OpenAI API works by pointing its base URL and key at Mafdet AI.
|
|
|
24
24
|
|
|
25
25
|
## Requirements
|
|
26
26
|
|
|
27
|
-
Package engine: Node.js 20 or newer, and a Mafdet API key. This release is
|
|
27
|
+
Package engine: Node.js 20 or newer, and a Mafdet API key. This release is exercised on Linux Node.js 22.23.4 and native Windows Node.js 24.19.0; see the precise acceptance scope below.
|
|
28
28
|
|
|
29
29
|
## Install
|
|
30
30
|
|
|
@@ -36,8 +36,8 @@ Or build it from this repository:
|
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
pnpm --filter @mafdet/cli build
|
|
39
|
-
cd packages/cli && npm pack # -> mafdet-cli-1.
|
|
40
|
-
npm install -g ./mafdet-cli-1.
|
|
39
|
+
cd packages/cli && npm pack # -> mafdet-cli-1.7.0.tgz
|
|
40
|
+
npm install -g ./mafdet-cli-1.7.0.tgz
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## The interactive session
|
|
@@ -81,10 +81,10 @@ mafdet doctor
|
|
|
81
81
|
mafdet chat "Explain TypeScript decorators"
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
Model replies, prompts and paths retain Unicode. Use UTF-8 input files and pass prompts as arguments or with `--input <file>`.
|
|
85
|
+
|
|
86
|
+
Actual npm packages were exercised on Linux Node 22.23.4 and native Windows Node 24.19.0: Unicode-path installation, streamed/nonstreamed chat, sessions/cost estimates, non-TTY read-only behavior and TTY file approvals. Inference uses controlled loopback responses, not a provider availability check.
|
|
87
|
+
Linux Ctrl+C was exercised. Windows controlled SIGINT closes the stream without saving partial history; physical Ctrl+C and `taskkill /T` descendant cleanup still need manual acceptance. macOS remains pending because no runner is available.
|
|
88
88
|
|
|
89
89
|
## Commands
|
|
90
90
|
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Mafdet AI 官方命令行:模型调用、账户查询,以及一个受权限约束的本地 Agent。
|
|
4
4
|
|
|
5
|
-
> **1.
|
|
5
|
+
> **1.7.0。** 英文版见 [README.md](./README.md)。
|
|
6
6
|
|
|
7
7
|
## Mafdet AI 是什么
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ Key 换成 Mafdet AI 的就能用。
|
|
|
19
19
|
|
|
20
20
|
## 环境要求
|
|
21
21
|
|
|
22
|
-
包声明要求 Node.js 20 或更高,以及一把 Mafdet API Key。本次验证环境为 Linux
|
|
22
|
+
包声明要求 Node.js 20 或更高,以及一把 Mafdet API Key。本次验证环境为 Linux Node.js 22.23.4 与原生 Windows Node.js 24.19.0,具体验收范围和保留项见下文。
|
|
23
23
|
|
|
24
24
|
## 安装
|
|
25
25
|
|
|
@@ -64,13 +64,10 @@ $env:MAFDET_MODEL = "deepseek-v4-flash"
|
|
|
64
64
|
mafdet doctor
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
的默认状态,中文系统为 cp936)也不会变成乱码。管道传入 prompt 也可以,但 PowerShell
|
|
69
|
-
默认按 UTF-16 走管道——建议直接把 prompt 作为参数,或用 `--input <文件>`。
|
|
67
|
+
模型回复、提示词和文件路径保留 Unicode;中文文件请使用 UTF-8,并优先通过参数或 `--input <文件>` 输入。
|
|
70
68
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
不是「已修复」。
|
|
69
|
+
实际 npm 包已在 Linux Node 22.23.4、原生 Windows Node 24.19.0 验证:中文路径安装、非流式/流式回答、会话与费用估算、非 TTY 只读及 TTY 文件修改审批。推理使用受控本地响应,不代表供应商可用性验收。
|
|
70
|
+
Linux Ctrl+C 已实测;Windows 已验证受控 SIGINT 后断流且不保存半截会话,物理 Ctrl+C 与 `taskkill /T` 后代进程树仍待人工验收。macOS 因无 runner 保留待验收。
|
|
74
71
|
|
|
75
72
|
## 命令
|
|
76
73
|
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mafdet/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Mafdet AI command line — model calls, account queries, and a permissioned local agent.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,12 +32,6 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "tsc -p tsconfig.json",
|
|
37
|
-
"lint": "prettier --check \"src/**/*.ts\" \"test/**/*.mjs\" package.json tsconfig.json",
|
|
38
|
-
"test": "pnpm run build && node --test \"test/**/*.test.mjs\"",
|
|
39
|
-
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
40
|
-
},
|
|
41
35
|
"dependencies": {
|
|
42
36
|
"zod": "^4.6.7"
|
|
43
37
|
},
|
|
@@ -47,5 +41,11 @@
|
|
|
47
41
|
},
|
|
48
42
|
"engines": {
|
|
49
43
|
"node": ">=20"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc -p tsconfig.json",
|
|
47
|
+
"lint": "prettier --check \"src/**/*.ts\" \"test/**/*.mjs\" package.json tsconfig.json",
|
|
48
|
+
"test": "pnpm run build && node --test \"test/**/*.test.mjs\"",
|
|
49
|
+
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|