dsh-codex-subscription 1.1.0-beta.0 → 1.1.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/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.0` 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,6 +18,7 @@ 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
23
24
  ```
@@ -28,28 +29,29 @@ instead of recreating its package-manager environment in this installer.
28
29
 
29
30
  ## Install or update
30
31
 
31
- With an existing `dsh` command:
32
+ For an official DSH installation run through npm, keep the complete `npx` prefix because the official
33
+ run command does not create a global `dsh` command:
32
34
 
33
35
  ```sh
34
- dsh plugin --profile web add dsh-codex-subscription@1.0.6
36
+ npx -y @deepseek-ai/dsh plugin --profile web add dsh-codex-subscription@1.1.0
37
+ ```
38
+
39
+ With an existing global `dsh` command:
40
+
41
+ ```sh
42
+ dsh plugin --profile web add dsh-codex-subscription@1.1.0
35
43
  ```
36
44
 
37
45
  From a DSH-Portable folder:
38
46
 
39
47
  ```powershell
40
- .\dsh.exe plugin --profile web add dsh-codex-subscription@1.0.6
48
+ .\dsh.exe plugin --profile web add dsh-codex-subscription@1.1.0
41
49
  ```
42
50
 
43
51
  Use the same `add` command to update or repair. This is the complete package-changing operation.
44
52
  Do not download pnpm, create a second package store, save profile snapshots, add a resident manager,
45
53
  or restart DSH automatically. The DSH CLI owns package resolution, locking, and profile composition.
46
54
 
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
55
  ## Verify
54
56
 
55
57
  Use the same executable selected above:
@@ -61,10 +63,11 @@ dsh --profile web --dump-config
61
63
 
62
64
  For DSH-Portable, replace `dsh` with `.\dsh.exe`. Static acceptance requires:
63
65
 
64
- 1. `dsh-codex-subscription` version `1.0.6` appears exactly once.
66
+ For the official npm route, run the same checks with `npx -y @deepseek-ai/dsh` in place of `dsh`.
67
+
68
+ 1. `dsh-codex-subscription` version `1.1.0` appears exactly once.
65
69
  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.
70
+ 3. No unrelated plugin or profile was changed and DSH was not restarted.
68
71
 
69
72
  With permission to restart DSH, open **Settings -> Codex** and verify the settings page loads. Confirm
70
73
  that search offers both **DSH default** and **Codex subscription**, the composer quota switch defaults
@@ -83,6 +86,12 @@ For DSH-Portable:
83
86
  .\dsh.exe plugin --profile web remove dsh-codex-subscription
84
87
  ```
85
88
 
89
+ For the official npm route:
90
+
91
+ ```sh
92
+ npx -y @deepseek-ai/dsh plugin --profile web remove dsh-codex-subscription
93
+ ```
94
+
86
95
  Uninstall removes only this plugin. It must preserve the profile, sessions, other plugins, and saved
87
96
  ChatGPT sign-in. Signing out is a separate action and requires explicit permission.
88
97
 
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:
@@ -86,7 +80,20 @@ operation once. It does not recursively scan disks, install pnpm, create a resid
86
80
  profile, or download the plugin twice. It needs no administrator access and never restarts DSH.
87
81
 
88
82
  <details>
89
- <summary>macOS, Linux, or an existing <code>dsh</code> command (universal install)</summary>
83
+ <summary>Official npm route (Node.js installed)</summary>
84
+
85
+ The official `npx @deepseek-ai/dsh web` command does not create a global `dsh` command. Keep the full `npx` prefix when installing the plugin:
86
+
87
+ ```sh
88
+ npx -y @deepseek-ai/dsh plugin --profile web add dsh-codex-subscription
89
+ npx -y @deepseek-ai/dsh plugin --profile web list dsh-codex-subscription --depth 0
90
+ npx -y @deepseek-ai/dsh --profile web --dump-config
91
+ ```
92
+
93
+ </details>
94
+
95
+ <details>
96
+ <summary>An existing <code>dsh</code> command or a DSH-Portable folder</summary>
90
97
 
91
98
  ```sh
92
99
  dsh plugin --profile web add dsh-codex-subscription
@@ -94,8 +101,8 @@ dsh plugin --profile web list dsh-codex-subscription --depth 0
94
101
  dsh --profile web --dump-config
95
102
  ```
96
103
 
97
- The plugin list should contain one `dsh-codex-subscription`, and the config should contain one
98
- `codex-subscription` entry.
104
+ For DSH-Portable, replace `dsh` with `./dsh` (`.\dsh.exe` in PowerShell). The plugin list should contain
105
+ one `dsh-codex-subscription`, and the config should contain one `codex-subscription` entry.
99
106
 
100
107
  </details>
101
108
 
@@ -135,8 +142,16 @@ see the [OpenAI Codex Speed documentation](https://learn.chatgpt.com/docs/agent-
135
142
 
136
143
  ## Update and uninstall
137
144
 
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.
145
+ On Windows, rerun the one-line setup above to update. For the official npm route, use:
146
+
147
+ ```sh
148
+ npx -y @deepseek-ai/dsh plugin --profile web update dsh-codex-subscription
149
+ npx -y @deepseek-ai/dsh plugin --profile web list dsh-codex-subscription --depth 0
150
+ npx -y @deepseek-ai/dsh --profile web --dump-config
151
+ npx -y @deepseek-ai/dsh plugin --profile web remove dsh-codex-subscription
152
+ ```
153
+
154
+ These operations preserve the DSH profile, other plugins, and saved sign-in.
140
155
 
141
156
  <details>
142
157
  <summary>Update or uninstall with an existing <code>dsh</code> command</summary>
@@ -148,18 +163,14 @@ dsh --profile web --dump-config
148
163
  dsh plugin --profile web remove dsh-codex-subscription
149
164
  ```
150
165
 
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
166
  </details>
158
167
 
159
168
  From a DSH-Portable folder, replace `dsh` above with `.\dsh.exe`.
160
169
 
161
170
  ## Troubleshooting
162
171
 
172
+ - **`dsh` is not recognized:** the official npm route does not create a global `dsh` command; use the complete `npx -y @deepseek-ai/dsh ...` command above;
173
+ - **`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
174
  - **DSH-Portable is not found:** enter its folder and rerun setup, or run `.\dsh.exe plugin --profile web add dsh-codex-subscription` directly;
164
175
  - **More than one DSH exists:** enter the intended DSH-Portable folder before running setup;
165
176
  - **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:
@@ -87,7 +81,20 @@ irm 'https://github.com/WSL043/dsh-codex-subscription/releases/latest/download/d
87
81
  无需管理员权限,也不会擅自重启 DSH。
88
82
 
89
83
  <details>
90
- <summary>macOS、Linux,或已有 <code>dsh</code> 命令(通用安装)</summary>
84
+ <summary>官方 npm 方式(已安装 Node.js)</summary>
85
+
86
+ 官方的 `npx @deepseek-ai/dsh web` 不会创建全局 `dsh` 命令,因此安装插件时也要保留完整的 `npx` 前缀:
87
+
88
+ ```sh
89
+ npx -y @deepseek-ai/dsh plugin --profile web add dsh-codex-subscription
90
+ npx -y @deepseek-ai/dsh plugin --profile web list dsh-codex-subscription --depth 0
91
+ npx -y @deepseek-ai/dsh --profile web --dump-config
92
+ ```
93
+
94
+ </details>
95
+
96
+ <details>
97
+ <summary>已经能运行 <code>dsh</code>,或位于 DSH-Portable 目录</summary>
91
98
 
92
99
  ```sh
93
100
  dsh plugin --profile web add dsh-codex-subscription
@@ -95,8 +102,8 @@ dsh plugin --profile web list dsh-codex-subscription --depth 0
95
102
  dsh --profile web --dump-config
96
103
  ```
97
104
 
98
- 安装列表中应只有一个 `dsh-codex-subscription`,配置中应只有一个
99
- `codex-subscription` 条目。
105
+ DSH-Portable 请把 `dsh` 换成 `./dsh`(PowerShell 使用 `.\dsh.exe`)。安装列表中应只有一个
106
+ `dsh-codex-subscription`,配置中应只有一个 `codex-subscription` 条目。
100
107
 
101
108
  </details>
102
109
 
@@ -135,8 +142,16 @@ Spark 不显示这个入口。高速模式会提高速度,也会消耗更多 C
135
142
 
136
143
  ## 更新与卸载
137
144
 
138
- Windows 用户重新运行上面的单行助手即可更新。卸载使用 DSH 官方命令;两种操作都保留
139
- DSH profile、其他插件和登录信息。
145
+ Windows 用户重新运行上面的单行助手即可更新。官方 npm 用户使用:
146
+
147
+ ```sh
148
+ npx -y @deepseek-ai/dsh plugin --profile web update dsh-codex-subscription
149
+ npx -y @deepseek-ai/dsh plugin --profile web list dsh-codex-subscription --depth 0
150
+ npx -y @deepseek-ai/dsh --profile web --dump-config
151
+ npx -y @deepseek-ai/dsh plugin --profile web remove dsh-codex-subscription
152
+ ```
153
+
154
+ 这些操作会保留 DSH profile、其他插件和登录信息。
140
155
 
141
156
  <details>
142
157
  <summary>使用现有 <code>dsh</code> 命令更新或卸载</summary>
@@ -148,18 +163,14 @@ dsh --profile web --dump-config
148
163
  dsh plugin --profile web remove dsh-codex-subscription
149
164
  ```
150
165
 
151
- 从 v0.2.1 手动迁移时,确认新包安装成功后再移除旧包名:
152
-
153
- ```sh
154
- dsh plugin --profile web remove @wsl043/dsh-codex-subscription
155
- ```
156
-
157
166
  </details>
158
167
 
159
168
  DSH-Portable 在其目录中把上述 `dsh` 换成 `.\dsh.exe`。
160
169
 
161
170
  ## 常见问题
162
171
 
172
+ - **`dsh` 无法识别**:官方 npm 方式本来就不会创建全局 `dsh` 命令,请使用上面的完整 `npx -y @deepseek-ai/dsh ...` 命令;
173
+ - **`dsh.exe` 无法识别**:当前目录没有该文件。请先进入 DSH-Portable 目录,或使用 Windows 单行助手;
163
174
  - **找不到 DSH-Portable**:进入它的目录后重新执行安装命令,或直接运行 `.\dsh.exe plugin --profile web add dsh-codex-subscription`;
164
175
  - **电脑上有多个 DSH**:进入要使用的那个 DSH-Portable 目录再运行助手;
165
176
  - **安装仍然失败**:把上面的 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.0`;
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.0",
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",