@mafdet/cli 1.5.1 → 1.6.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 +5 -0
- package/README.md +5 -5
- package/README.zh-CN.md +3 -3
- package/dist/index.js +0 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.6.0 — 2026-11-01
|
|
4
|
+
|
|
5
|
+
- Align both READMEs, install tarball names and model-catalog guidance with the current release.
|
|
6
|
+
- State the verified runtime and retain the existing platform verification limits.
|
|
7
|
+
|
|
3
8
|
## 1.5.1 — 2026-10-29
|
|
4
9
|
|
|
5
10
|
- Reject HTTP redirects so model request bodies cannot be replayed elsewhere.
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The official Mafdet AI command line: model calls, account queries, and a
|
|
4
4
|
permissioned local agent.
|
|
5
5
|
|
|
6
|
-
> **
|
|
6
|
+
> **1.6.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
|
>
|
|
@@ -18,13 +18,13 @@ OpenAI API works by pointing its base URL and key at Mafdet AI.
|
|
|
18
18
|
- Base URL: `https://api.mafdet.ai/v1`
|
|
19
19
|
- Endpoints: `/chat/completions`, `/embeddings`, `/audio/speech`
|
|
20
20
|
- Providers: Google (Gemini), Kimi (Moonshot), Qwen, DeepSeek
|
|
21
|
-
-
|
|
21
|
+
- The catalogue changes; the authoritative model list
|
|
22
22
|
with current prices is [`models.json`](https://docs.mafdet.ai/models.json)
|
|
23
23
|
- Docs: <https://docs.mafdet.ai>
|
|
24
24
|
|
|
25
25
|
## Requirements
|
|
26
26
|
|
|
27
|
-
Node.js 20 or newer, and a Mafdet API key.
|
|
27
|
+
Package engine: Node.js 20 or newer, and a Mafdet API key. This release is validated on Linux with Node.js 22.23.4; macOS/Windows execution remains unverified.
|
|
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-
|
|
40
|
-
npm install -g ./mafdet-cli-
|
|
39
|
+
cd packages/cli && npm pack # -> mafdet-cli-1.6.0.tgz
|
|
40
|
+
npm install -g ./mafdet-cli-1.6.0.tgz
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## The interactive session
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Mafdet AI 官方命令行:模型调用、账户查询,以及一个受权限约束的本地 Agent。
|
|
4
4
|
|
|
5
|
-
> **
|
|
5
|
+
> **1.6.0。** 英文版见 [README.md](./README.md)。
|
|
6
6
|
|
|
7
7
|
## Mafdet AI 是什么
|
|
8
8
|
|
|
@@ -13,13 +13,13 @@ Key 换成 Mafdet AI 的就能用。
|
|
|
13
13
|
- Base URL:`https://api.mafdet.ai/v1`
|
|
14
14
|
- 端点:`/chat/completions`、`/embeddings`、`/audio/speech`
|
|
15
15
|
- 提供方:Google(Gemini)、Kimi(月之暗面)、Qwen、DeepSeek
|
|
16
|
-
-
|
|
16
|
+
- 模型目录会变动,**以带实时价格和全部计费维度的
|
|
17
17
|
[`models.json`](https://docs.mafdet.ai/models.json) 为准**
|
|
18
18
|
- 文档:<https://docs.mafdet.ai>
|
|
19
19
|
|
|
20
20
|
## 环境要求
|
|
21
21
|
|
|
22
|
-
Node.js 20 或更高,以及一把 Mafdet API Key
|
|
22
|
+
包声明要求 Node.js 20 或更高,以及一把 Mafdet API Key。本次验证环境为 Linux / Node.js 22.23.4;macOS/Windows 实机运行尚未验收。
|
|
23
23
|
|
|
24
24
|
## 安装
|
|
25
25
|
|
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.6.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,6 +32,12 @@
|
|
|
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
|
+
},
|
|
35
41
|
"dependencies": {
|
|
36
42
|
"zod": "^4.6.7"
|
|
37
43
|
},
|
|
@@ -41,11 +47,5 @@
|
|
|
41
47
|
},
|
|
42
48
|
"engines": {
|
|
43
49
|
"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
|
+
}
|