dsh-codex-subscription 1.1.0-beta.0 → 1.1.1

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/AGENTS.md CHANGED
@@ -6,7 +6,7 @@ Use this guide when a user asks an Agent to install, update, verify, or remove
6
6
  ## Safety
7
7
 
8
8
  - Confirm the target DSH installation and profile. Use `web` only when it is the user's target.
9
- - Use the exact `1.0.6` package below; do not install a moving branch.
9
+ - Use the exact `1.1.1` package below; do not install a moving branch.
10
10
  - Never print OAuth credentials, account IDs, authorization callbacks, or credential-store contents.
11
11
  - Preserve the DSH profile, unrelated plugins, sessions, and saved sign-in.
12
12
  - Do not start, stop, or restart DSH without explicit permission.
@@ -18,38 +18,45 @@ On Windows, check the command and common Portable entry points without recursive
18
18
 
19
19
  ```powershell
20
20
  Get-Command dsh -ErrorAction SilentlyContinue
21
+ Get-Command npx -ErrorAction SilentlyContinue
21
22
  Test-Path -LiteralPath '.\dsh.exe' -PathType Leaf
22
23
  Test-Path -LiteralPath "$env:USERPROFILE\Downloads\DSH-Portable\dsh.exe" -PathType Leaf
24
+ Get-CimInstance Win32_Process -Filter "Name = 'node.exe'" |
25
+ Where-Object { $_.CommandLine -match '@deepseek-ai[\\/]dsh[\\/]lib[\\/]bin\.js' } |
26
+ Select-Object ExecutablePath, CommandLine
23
27
  ```
24
28
 
25
29
  A current DSH-Portable includes `dsh.exe`. Missing system Node.js or pnpm is normal; do not install
26
30
  either globally for this plugin. If the Portable copy does not contain `dsh.exe`, update DSH-Portable
27
- instead of recreating its package-manager environment in this installer.
31
+ instead of recreating its package-manager environment in this installer. For a matching running process,
32
+ the Portable root is the parent of `runtime`; use its `dsh.exe`. If several targets remain possible, stop
33
+ and ask the user which one to change.
28
34
 
29
35
  ## Install or update
30
36
 
31
- With an existing `dsh` command:
37
+ For an official DSH installation run through npm, keep the complete `npx` prefix because the official
38
+ run command does not create a global `dsh` command:
32
39
 
33
40
  ```sh
34
- dsh plugin --profile web add dsh-codex-subscription@1.0.6
41
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web add dsh-codex-subscription@1.1.1
42
+ ```
43
+
44
+ With an existing global `dsh` command:
45
+
46
+ ```sh
47
+ dsh plugin --profile web add dsh-codex-subscription@1.1.1
35
48
  ```
36
49
 
37
50
  From a DSH-Portable folder:
38
51
 
39
52
  ```powershell
40
- .\dsh.exe plugin --profile web add dsh-codex-subscription@1.0.6
53
+ .\dsh.exe plugin --profile web add dsh-codex-subscription@1.1.1
41
54
  ```
42
55
 
43
56
  Use the same `add` command to update or repair. This is the complete package-changing operation.
44
57
  Do not download pnpm, create a second package store, save profile snapshots, add a resident manager,
45
58
  or restart DSH automatically. The DSH CLI owns package resolution, locking, and profile composition.
46
59
 
47
- For a legacy installation, first add and verify the current package. Only then remove the old package:
48
-
49
- ```sh
50
- dsh plugin --profile web remove @wsl043/dsh-codex-subscription
51
- ```
52
-
53
60
  ## Verify
54
61
 
55
62
  Use the same executable selected above:
@@ -61,10 +68,11 @@ dsh --profile web --dump-config
61
68
 
62
69
  For DSH-Portable, replace `dsh` with `.\dsh.exe`. Static acceptance requires:
63
70
 
64
- 1. `dsh-codex-subscription` version `1.0.6` appears exactly once.
71
+ For the official npm route, run the same checks with `npx -y @deepseek-ai/dsh@0.1.0-rc.8` in place of `dsh`.
72
+
73
+ 1. `dsh-codex-subscription` version `1.1.1` appears exactly once.
65
74
  2. `codex-subscription` appears exactly once in the composed config.
66
- 3. The legacy package is absent after a migration.
67
- 4. No unrelated plugin or profile was changed and DSH was not restarted.
75
+ 3. No unrelated plugin or profile was changed and DSH was not restarted.
68
76
 
69
77
  With permission to restart DSH, open **Settings -> Codex** and verify the settings page loads. Confirm
70
78
  that search offers both **DSH default** and **Codex subscription**, the composer quota switch defaults
@@ -83,6 +91,12 @@ For DSH-Portable:
83
91
  .\dsh.exe plugin --profile web remove dsh-codex-subscription
84
92
  ```
85
93
 
94
+ For the official npm route:
95
+
96
+ ```sh
97
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web remove dsh-codex-subscription
98
+ ```
99
+
86
100
  Uninstall removes only this plugin. It must preserve the profile, sessions, other plugins, and saved
87
101
  ChatGPT sign-in. Signing out is a separate action and requires explicit permission.
88
102
 
package/README.en.md CHANGED
@@ -47,19 +47,13 @@ These capabilities reuse the same local ChatGPT sign-in. Subscription routing fa
47
47
 
48
48
  ## Prepare DSH
49
49
 
50
- This plugin supports DeepSeek Harness `0.1.0-rc.6`, `0.1.0-rc.7`, and `0.1.0-rc.8`, and requires a ChatGPT account that currently has Codex access.
50
+ This plugin is currently compatible through DeepSeek Harness `0.1.0-rc.8` and requires a ChatGPT account that currently has Codex access.
51
51
 
52
52
  - Do not want to configure Node.js? Use the [community DSH-Portable package](https://github.com/WSL043/DSH-Portable).
53
53
  - Prefer the official route? Follow the [DeepSeek Harness run guide](https://github.com/deepseek-ai/deepseek-harness#run).
54
54
 
55
55
  ## Install
56
56
 
57
- To preview the composer Fast mode without replacing npm `latest`, install the Beta explicitly:
58
-
59
- ```sh
60
- dsh plugin --profile web add dsh-codex-subscription@1.1.0-beta.0
61
- ```
62
-
63
57
  ### Let an Agent install it (recommended)
64
58
 
65
59
  Send this link directly to your Agent:
@@ -80,13 +74,28 @@ Open PowerShell and paste this one line:
80
74
  irm 'https://github.com/WSL043/dsh-codex-subscription/releases/latest/download/dsh-codex-setup.ps1' | iex
81
75
  ```
82
76
 
83
- The lightweight setup checks only the current folder, the system command, and common
84
- [DSH-Portable](https://github.com/WSL043/DSH-Portable) locations, then invokes the official `plugin add`
77
+ The lightweight setup checks the current folder, the system command, common locations, and any running
78
+ [DSH-Portable](https://github.com/WSL043/DSH-Portable), then invokes the official `plugin add`
85
79
  operation once. It does not recursively scan disks, install pnpm, create a resident command, snapshot a
86
- profile, or download the plugin twice. It needs no administrator access and never restarts DSH.
80
+ profile, or download the plugin twice. It needs no administrator access and never restarts DSH. Only
81
+ when no existing DSH is found does it use the official npm route pinned to `0.1.0-rc.8`; the setup warns
82
+ that first-time dependency resolution can take a while.
83
+
84
+ <details>
85
+ <summary>Official npm route (Node.js installed)</summary>
86
+
87
+ The official `npx @deepseek-ai/dsh web` command does not create a global `dsh` command. Keep the full `npx` prefix when installing the plugin:
88
+
89
+ ```sh
90
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web add dsh-codex-subscription
91
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web list dsh-codex-subscription --depth 0
92
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 --profile web --dump-config
93
+ ```
94
+
95
+ </details>
87
96
 
88
97
  <details>
89
- <summary>macOS, Linux, or an existing <code>dsh</code> command (universal install)</summary>
98
+ <summary>An existing <code>dsh</code> command or a DSH-Portable folder</summary>
90
99
 
91
100
  ```sh
92
101
  dsh plugin --profile web add dsh-codex-subscription
@@ -94,8 +103,8 @@ dsh plugin --profile web list dsh-codex-subscription --depth 0
94
103
  dsh --profile web --dump-config
95
104
  ```
96
105
 
97
- The plugin list should contain one `dsh-codex-subscription`, and the config should contain one
98
- `codex-subscription` entry.
106
+ For DSH-Portable, replace `dsh` with `./dsh` (`.\dsh.exe` in PowerShell). The plugin list should contain
107
+ one `dsh-codex-subscription`, and the config should contain one `codex-subscription` entry.
99
108
 
100
109
  </details>
101
110
 
@@ -135,8 +144,16 @@ see the [OpenAI Codex Speed documentation](https://learn.chatgpt.com/docs/agent-
135
144
 
136
145
  ## Update and uninstall
137
146
 
138
- On Windows, rerun the one-line setup above to update. Use the official DSH command to uninstall. Both
139
- operations preserve the DSH profile, other plugins, and saved sign-in.
147
+ On Windows, rerun the one-line setup above to update. For the official npm route, use:
148
+
149
+ ```sh
150
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web update dsh-codex-subscription
151
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web list dsh-codex-subscription --depth 0
152
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 --profile web --dump-config
153
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web remove dsh-codex-subscription
154
+ ```
155
+
156
+ These operations preserve the DSH profile, other plugins, and saved sign-in.
140
157
 
141
158
  <details>
142
159
  <summary>Update or uninstall with an existing <code>dsh</code> command</summary>
@@ -148,18 +165,14 @@ dsh --profile web --dump-config
148
165
  dsh plugin --profile web remove dsh-codex-subscription
149
166
  ```
150
167
 
151
- When migrating manually from v0.2.1, remove the old package only after the new one installs successfully:
152
-
153
- ```sh
154
- dsh plugin --profile web remove @wsl043/dsh-codex-subscription
155
- ```
156
-
157
168
  </details>
158
169
 
159
170
  From a DSH-Portable folder, replace `dsh` above with `.\dsh.exe`.
160
171
 
161
172
  ## Troubleshooting
162
173
 
174
+ - **`dsh` is not recognized:** the official npm route does not create a global `dsh` command; use the complete `npx -y @deepseek-ai/dsh@0.1.0-rc.8 ...` command above;
175
+ - **`dsh.exe` is not recognized:** that file is not in the current folder; enter the DSH-Portable folder first or use the one-line Windows setup;
163
176
  - **DSH-Portable is not found:** enter its folder and rerun setup, or run `.\dsh.exe plugin --profile web add dsh-codex-subscription` directly;
164
177
  - **More than one DSH exists:** enter the intended DSH-Portable folder before running setup;
165
178
  - **Setup still fails:** send the Agent guide above to an Agent. Do not delete the profile or change the system PATH to force an install.
package/README.md CHANGED
@@ -48,19 +48,13 @@
48
48
 
49
49
  ## 准备 DSH
50
50
 
51
- 本插件适配 DeepSeek Harness `0.1.0-rc.6`、`0.1.0-rc.7` 与 `0.1.0-rc.8`,并需要一个当前具有 Codex 使用资格的 ChatGPT 账户。
51
+ 本插件当前适配到 DeepSeek Harness `0.1.0-rc.8`,并需要一个当前具有 Codex 使用资格的 ChatGPT 账户。
52
52
 
53
53
  - 不想配置 Node.js:使用 [DSH-Portable(社区便携包)](https://github.com/WSL043/DSH-Portable);
54
54
  - 想按官方方式运行:查看 [DeepSeek Harness 官方说明](https://github.com/deepseek-ai/deepseek-harness#run)。
55
55
 
56
56
  ## 安装
57
57
 
58
- 想先体验输入框高速模式,可安装 Beta;它不会替换 npm 的稳定版:
59
-
60
- ```sh
61
- dsh plugin --profile web add dsh-codex-subscription@1.1.0-beta.0
62
- ```
63
-
64
58
  ### 交给 Agent(推荐)
65
59
 
66
60
  把这个链接直接发给 Agent:
@@ -81,13 +75,27 @@ Agent 文档包含安装、更新、卸载和验收步骤,并要求保留 DSH
81
75
  irm 'https://github.com/WSL043/dsh-codex-subscription/releases/latest/download/dsh-codex-setup.ps1' | iex
82
76
  ```
83
77
 
84
- 这个轻量助手只在当前目录、系统命令和常见的
85
- [DSH-Portable](https://github.com/WSL043/DSH-Portable) 位置查找 DSH,然后调用一次官方
78
+ 这个轻量助手会检查当前目录、系统命令、常见位置以及正在运行的
79
+ [DSH-Portable](https://github.com/WSL043/DSH-Portable),然后调用一次官方
86
80
  `plugin add`。它不会递归扫盘、安装 pnpm、创建常驻命令、保存 profile 快照或重复下载插件。
87
- 无需管理员权限,也不会擅自重启 DSH
81
+ 无需管理员权限,也不会擅自重启 DSH。找不到现有 DSH 时才会使用固定为 `0.1.0-rc.8`
82
+ 的官方 npm 运行方式;首次解析依赖可能较慢,安装器会先明确提示。
83
+
84
+ <details>
85
+ <summary>官方 npm 方式(已安装 Node.js)</summary>
86
+
87
+ 官方的 `npx @deepseek-ai/dsh web` 不会创建全局 `dsh` 命令,因此安装插件时也要保留完整的 `npx` 前缀:
88
+
89
+ ```sh
90
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web add dsh-codex-subscription
91
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web list dsh-codex-subscription --depth 0
92
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 --profile web --dump-config
93
+ ```
94
+
95
+ </details>
88
96
 
89
97
  <details>
90
- <summary>macOS、Linux,或已有 <code>dsh</code> 命令(通用安装)</summary>
98
+ <summary>已经能运行 <code>dsh</code>,或位于 DSH-Portable 目录</summary>
91
99
 
92
100
  ```sh
93
101
  dsh plugin --profile web add dsh-codex-subscription
@@ -95,8 +103,8 @@ dsh plugin --profile web list dsh-codex-subscription --depth 0
95
103
  dsh --profile web --dump-config
96
104
  ```
97
105
 
98
- 安装列表中应只有一个 `dsh-codex-subscription`,配置中应只有一个
99
- `codex-subscription` 条目。
106
+ DSH-Portable 请把 `dsh` 换成 `./dsh`(PowerShell 使用 `.\dsh.exe`)。安装列表中应只有一个
107
+ `dsh-codex-subscription`,配置中应只有一个 `codex-subscription` 条目。
100
108
 
101
109
  </details>
102
110
 
@@ -135,8 +143,16 @@ Spark 不显示这个入口。高速模式会提高速度,也会消耗更多 C
135
143
 
136
144
  ## 更新与卸载
137
145
 
138
- Windows 用户重新运行上面的单行助手即可更新。卸载使用 DSH 官方命令;两种操作都保留
139
- DSH profile、其他插件和登录信息。
146
+ Windows 用户重新运行上面的单行助手即可更新。官方 npm 用户使用:
147
+
148
+ ```sh
149
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web update dsh-codex-subscription
150
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web list dsh-codex-subscription --depth 0
151
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 --profile web --dump-config
152
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web remove dsh-codex-subscription
153
+ ```
154
+
155
+ 这些操作会保留 DSH profile、其他插件和登录信息。
140
156
 
141
157
  <details>
142
158
  <summary>使用现有 <code>dsh</code> 命令更新或卸载</summary>
@@ -148,18 +164,14 @@ dsh --profile web --dump-config
148
164
  dsh plugin --profile web remove dsh-codex-subscription
149
165
  ```
150
166
 
151
- 从 v0.2.1 手动迁移时,确认新包安装成功后再移除旧包名:
152
-
153
- ```sh
154
- dsh plugin --profile web remove @wsl043/dsh-codex-subscription
155
- ```
156
-
157
167
  </details>
158
168
 
159
169
  DSH-Portable 在其目录中把上述 `dsh` 换成 `.\dsh.exe`。
160
170
 
161
171
  ## 常见问题
162
172
 
173
+ - **`dsh` 无法识别**:官方 npm 方式本来就不会创建全局 `dsh` 命令,请使用上面的完整 `npx -y @deepseek-ai/dsh@0.1.0-rc.8 ...` 命令;
174
+ - **`dsh.exe` 无法识别**:当前目录没有该文件。请先进入 DSH-Portable 目录,或使用 Windows 单行助手;
163
175
  - **找不到 DSH-Portable**:进入它的目录后重新执行安装命令,或直接运行 `.\dsh.exe plugin --profile web add dsh-codex-subscription`;
164
176
  - **电脑上有多个 DSH**:进入要使用的那个 DSH-Portable 目录再运行助手;
165
177
  - **安装仍然失败**:把上面的 Agent 文档链接发给 Agent,不要删除 profile 或随意修改系统 PATH。
package/lib/index.js CHANGED
@@ -494,7 +494,7 @@ function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0 } = {
494
494
  streamSimple: (model, context, options) => provider.streamSimple(model, context, withSpeed(model, options))
495
495
  });
496
496
  }
497
- const USER_AGENT = `dsh-codex-subscription/1.1.0-beta.0`;
497
+ const USER_AGENT = `dsh-codex-subscription/1.1.1`;
498
498
  //#endregion
499
499
  //#region src/codex-search.js
500
500
  const CODEX_SEARCH_PROVIDER_ID = "codex-subscription";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-codex-subscription",
3
- "version": "1.1.0-beta.0",
3
+ "version": "1.1.1",
4
4
  "packageManager": "pnpm@11.19.0",
5
5
  "description": "ChatGPT and Codex subscriptions for DeepSeek Harness with OAuth login, image generation, quota, and subscription web search",
6
6
  "type": "module",