@ailuntz/minilink 0.9.2 → 0.9.3

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 CHANGED
@@ -2,9 +2,24 @@
2
2
 
3
3
  在 ChatGPT / Codex Desktop 的原生模型菜单中使用自定义模型。
4
4
 
5
+ ## 定位与支持周期
6
+
7
+ 官方 [Profiles](https://learn.chatgpt.com/docs/config-file/config-advanced?site_locale=en#profiles) 已支持独立配置文件:`codex --profile deep-review` 会在 `~/.codex/config.toml` 上叠加 `~/.codex/deep-review.config.toml`。配置使用顶层字段,无需嵌套在 `[profiles.deep-review]` 中。
8
+
9
+ **截至 2026-09-24,仅添加 Profile 不会将额外供应商的模型加入 Desktop 菜单。MiniLink 读取这些配置,补充桌面端的模型选择能力。**
10
+
11
+ MiniLink 定位为过渡方案:在官方提供等效的原生菜单支持前维护这一能力;官方支持完善后,优先迁移至原生方案,结束对应兼容功能的维护。兼容性以已验证的 Desktop 版本为准。
12
+
5
13
  ## 安装
6
14
 
7
- 支持 macOS,需 Node.js ≥22.16。
15
+ 需 Node.js ≥22.16,并已安装 Desktop。
16
+
17
+ | 平台 | 接入状态 |
18
+ | --- | --- |
19
+ | macOS | 支持 npm 自动安装 |
20
+ | Windows / Linux | 已完成手动接入验证,npm 自动安装尚未支持 |
21
+
22
+ macOS:
8
23
 
9
24
  ```sh
10
25
  npm install -g @ailuntz/minilink
@@ -22,16 +37,20 @@ minilink on
22
37
  | `minilink off` | 关闭 |
23
38
  | `minilink doctor` | 检查配置与运行状态 |
24
39
 
40
+ 通过 `minilink link` 保存选择后,完全退出并重开 Desktop。
41
+
25
42
  ## 配置
26
43
 
27
44
  读取 `~/.codex/*.config.toml`。通过 `model_catalog_json` 指定模型目录;未指定时继承原生目录。密钥使用提供商配置的环境变量,也可保存在 `~/.codex/.env`。
28
45
 
29
46
  支持 Responses API。符合条件的连接提供 `-Chat` 选项,用于纯文字聊天。
30
47
 
31
- 供应商示例:[DeepSeek / 豆包](examples/providers/)。
48
+ 供应商示例:[DeepSeek / 豆包 / Sub2API](examples/providers/)。修改配置后重启 Desktop。
32
49
 
33
50
  ## 卸载
34
51
 
52
+ macOS:
53
+
35
54
  ```sh
36
55
  npm uninstall -g @ailuntz/minilink
37
56
  ```
@@ -1,2 +1,3 @@
1
1
  DEEPSEEK_API_KEY=
2
2
  ARK_API_KEY=
3
+ SUB2API_API_KEY=
@@ -1,11 +1,12 @@
1
1
  # 供应商配置
2
2
 
3
- 将所需的 `.config.toml` 和 `-models.json` 文件放入 `~/.codex/`,按 `.env.example` 将密钥补充到 `~/.codex/.env`,然后重启 Desktop。
3
+ 将所需配置放入 `~/.codex/`,按 `.env.example` 将密钥补充到 `~/.codex/.env`,然后重启 Desktop。DeepSeek 和豆包使用独立模型目录;Sub2API 继承 Desktop 的原生模型目录,只需一个配置文件。
4
4
 
5
5
  | 供应商 | 模型 |
6
6
  | --- | --- |
7
7
  | DeepSeek | V4.1 Flash、V4 Pro |
8
8
  | 豆包 | Seed 2.1 Pro、Seed 2.1 Lite(260915) |
9
+ | Sub2API | 继承原生模型目录 |
9
10
 
10
11
  MiniLink 的 Chat 模式仅支持文字。
11
12
 
@@ -0,0 +1,8 @@
1
+ model_provider = "sub2api"
2
+
3
+ [model_providers.sub2api]
4
+ name = "Sub2API"
5
+ base_url = "https://www.966gravity.com"
6
+ env_key = "SUB2API_API_KEY"
7
+ wire_api = "responses"
8
+ requires_openai_auth = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailuntz/minilink",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Use your Codex profiles in the Desktop model menu.",
5
5
  "type": "module",
6
6
  "license": "MIT AND Apache-2.0",