@mafdet/cli 0.4.12 → 1.4.18
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 +8 -0
- package/README.md +16 -3
- package/README.zh-CN.md +14 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@ The version is the contract for the JSON output shapes and the exit codes.
|
|
|
6
6
|
Being 0.x, semver still permits a break in a minor bump; the intent is not to
|
|
7
7
|
use that latitude, and the promise becomes binding at 1.0.0.
|
|
8
8
|
|
|
9
|
+
## 0.4.13 - 2026-08-17
|
|
10
|
+
|
|
11
|
+
- Documentation only; no code change. Both READMEs now open by saying what
|
|
12
|
+
Mafdet AI is — an OpenAI-compatible gateway, its base URL, its endpoints and
|
|
13
|
+
its providers — because the npm page was addressed to readers who already
|
|
14
|
+
knew, and most do not. The model count is dated and points at
|
|
15
|
+
`models.json` rather than standing alone, so it cannot quietly go stale.
|
|
16
|
+
|
|
9
17
|
## 0.4.12 - 2026-08-12
|
|
10
18
|
|
|
11
19
|
- Validate usage-event pages, model identities, non-stream Chat responses and
|
package/README.md
CHANGED
|
@@ -3,12 +3,25 @@
|
|
|
3
3
|
The official Mafdet AI command line: model calls, account queries, and a
|
|
4
4
|
permissioned local agent.
|
|
5
5
|
|
|
6
|
-
> **0.4.
|
|
6
|
+
> **0.4.13.** 中文版见 [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
|
> macOS and Windows are not yet verified. On Windows the command timeout uses `taskkill /T`, which is written but has never been run on a real Windows machine - so whether every grandchild process is reached there is unverified rather than fixed.
|
|
11
11
|
|
|
12
|
+
## What Mafdet AI is
|
|
13
|
+
|
|
14
|
+
Mafdet AI is an OpenAI-compatible AI gateway: one API key and one base URL reach
|
|
15
|
+
models from several providers, billed by usage. Any tool or SDK that speaks the
|
|
16
|
+
OpenAI API works by pointing its base URL and key at Mafdet AI.
|
|
17
|
+
|
|
18
|
+
- Base URL: `https://api.mafdet.ai/v1`
|
|
19
|
+
- Endpoints: `/chat/completions`, `/embeddings`, `/audio/speech`
|
|
20
|
+
- Providers: Google (Gemini), Kimi (Moonshot), Qwen, DeepSeek
|
|
21
|
+
- 30 models as of August 2026. The catalogue changes, so the authoritative list
|
|
22
|
+
with current prices is [`models.json`](https://docs.mafdet.ai/models.json)
|
|
23
|
+
- Docs: <https://docs.mafdet.ai>
|
|
24
|
+
|
|
12
25
|
## Requirements
|
|
13
26
|
|
|
14
27
|
Node.js 20 or newer, and a Mafdet API key.
|
|
@@ -23,8 +36,8 @@ Or build it from this repository:
|
|
|
23
36
|
|
|
24
37
|
```bash
|
|
25
38
|
pnpm --filter @mafdet/cli build
|
|
26
|
-
cd packages/cli && npm pack # -> mafdet-cli-0.4.
|
|
27
|
-
npm install -g ./mafdet-cli-0.4.
|
|
39
|
+
cd packages/cli && npm pack # -> mafdet-cli-0.4.13.tgz
|
|
40
|
+
npm install -g ./mafdet-cli-0.4.13.tgz
|
|
28
41
|
```
|
|
29
42
|
|
|
30
43
|
## The interactive session
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Mafdet AI 官方命令行:模型调用、账户查询,以及一个受权限约束的本地 Agent。
|
|
4
4
|
|
|
5
|
-
> **0.4.
|
|
5
|
+
> **0.4.13。** 英文版见 [README.md](./README.md)。
|
|
6
|
+
|
|
7
|
+
## Mafdet AI 是什么
|
|
8
|
+
|
|
9
|
+
Mafdet AI 是一个 OpenAI 兼容的 AI 网关:一把 API Key、一个 base URL,即可调用多家
|
|
10
|
+
提供方的模型,按量计费。任何支持 OpenAI API 格式的工具或 SDK,只要把 base URL 和
|
|
11
|
+
Key 换成 Mafdet AI 的就能用。
|
|
12
|
+
|
|
13
|
+
- Base URL:`https://api.mafdet.ai/v1`
|
|
14
|
+
- 端点:`/chat/completions`、`/embeddings`、`/audio/speech`
|
|
15
|
+
- 提供方:Google(Gemini)、Kimi(月之暗面)、Qwen、DeepSeek
|
|
16
|
+
- 截至 2026 年 8 月共 30 个模型。目录会变动,**以带实时价格的
|
|
17
|
+
[`models.json`](https://docs.mafdet.ai/models.json) 为准**
|
|
18
|
+
- 文档:<https://docs.mafdet.ai>
|
|
6
19
|
|
|
7
20
|
## 环境要求
|
|
8
21
|
|