dsh-codex-subscription 1.1.0 → 1.1.2

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.1.0` package below; do not install a moving branch.
9
+ - Use the exact `1.1.2` 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.
@@ -21,11 +21,16 @@ Get-Command dsh -ErrorAction SilentlyContinue
21
21
  Get-Command npx -ErrorAction SilentlyContinue
22
22
  Test-Path -LiteralPath '.\dsh.exe' -PathType Leaf
23
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
24
27
  ```
25
28
 
26
29
  A current DSH-Portable includes `dsh.exe`. Missing system Node.js or pnpm is normal; do not install
27
30
  either globally for this plugin. If the Portable copy does not contain `dsh.exe`, update DSH-Portable
28
- 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.
29
34
 
30
35
  ## Install or update
31
36
 
@@ -33,19 +38,19 @@ For an official DSH installation run through npm, keep the complete `npx` prefix
33
38
  run command does not create a global `dsh` command:
34
39
 
35
40
  ```sh
36
- npx -y @deepseek-ai/dsh plugin --profile web add dsh-codex-subscription@1.1.0
41
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web add dsh-codex-subscription@1.1.2
37
42
  ```
38
43
 
39
44
  With an existing global `dsh` command:
40
45
 
41
46
  ```sh
42
- dsh plugin --profile web add dsh-codex-subscription@1.1.0
47
+ dsh plugin --profile web add dsh-codex-subscription@1.1.2
43
48
  ```
44
49
 
45
50
  From a DSH-Portable folder:
46
51
 
47
52
  ```powershell
48
- .\dsh.exe plugin --profile web add dsh-codex-subscription@1.1.0
53
+ .\dsh.exe plugin --profile web add dsh-codex-subscription@1.1.2
49
54
  ```
50
55
 
51
56
  Use the same `add` command to update or repair. This is the complete package-changing operation.
@@ -63,9 +68,9 @@ dsh --profile web --dump-config
63
68
 
64
69
  For DSH-Portable, replace `dsh` with `.\dsh.exe`. Static acceptance requires:
65
70
 
66
- For the official npm route, run the same checks with `npx -y @deepseek-ai/dsh` in place of `dsh`.
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`.
67
72
 
68
- 1. `dsh-codex-subscription` version `1.1.0` appears exactly once.
73
+ 1. `dsh-codex-subscription` version `1.1.2` appears exactly once.
69
74
  2. `codex-subscription` appears exactly once in the composed config.
70
75
  3. No unrelated plugin or profile was changed and DSH was not restarted.
71
76
 
@@ -89,7 +94,7 @@ For DSH-Portable:
89
94
  For the official npm route:
90
95
 
91
96
  ```sh
92
- npx -y @deepseek-ai/dsh plugin --profile web remove dsh-codex-subscription
97
+ npx -y @deepseek-ai/dsh@0.1.0-rc.8 plugin --profile web remove dsh-codex-subscription
93
98
  ```
94
99
 
95
100
  Uninstall removes only this plugin. It must preserve the profile, sessions, other plugins, and saved
package/README.en.md CHANGED
@@ -74,10 +74,12 @@ Open PowerShell and paste this one line:
74
74
  irm 'https://github.com/WSL043/dsh-codex-subscription/releases/latest/download/dsh-codex-setup.ps1' | iex
75
75
  ```
76
76
 
77
- The lightweight setup checks only the current folder, the system command, and common
78
- [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`
79
79
  operation once. It does not recursively scan disks, install pnpm, create a resident command, snapshot a
80
- 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.
81
83
 
82
84
  <details>
83
85
  <summary>Official npm route (Node.js installed)</summary>
@@ -85,9 +87,9 @@ profile, or download the plugin twice. It needs no administrator access and neve
85
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:
86
88
 
87
89
  ```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
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
91
93
  ```
92
94
 
93
95
  </details>
@@ -145,10 +147,10 @@ see the [OpenAI Codex Speed documentation](https://learn.chatgpt.com/docs/agent-
145
147
  On Windows, rerun the one-line setup above to update. For the official npm route, use:
146
148
 
147
149
  ```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
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
152
154
  ```
153
155
 
154
156
  These operations preserve the DSH profile, other plugins, and saved sign-in.
@@ -169,10 +171,10 @@ From a DSH-Portable folder, replace `dsh` above with `.\dsh.exe`.
169
171
 
170
172
  ## Troubleshooting
171
173
 
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;
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;
173
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;
174
176
  - **DSH-Portable is not found:** enter its folder and rerun setup, or run `.\dsh.exe plugin --profile web add dsh-codex-subscription` directly;
175
- - **More than one DSH exists:** enter the intended DSH-Portable folder before running setup;
177
+ - **More than one DSH exists:** the one-line setup lists running Portable copies; enter its number. For an Agent, use the intended folder or pass `-DshPath` explicitly;
176
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.
177
179
 
178
180
  The ChatGPT Codex backend and DSH can change independently. This community project is not affiliated with or endorsed by DeepSeek or OpenAI.
package/README.md CHANGED
@@ -75,10 +75,11 @@ Agent 文档包含安装、更新、卸载和验收步骤,并要求保留 DSH
75
75
  irm 'https://github.com/WSL043/dsh-codex-subscription/releases/latest/download/dsh-codex-setup.ps1' | iex
76
76
  ```
77
77
 
78
- 这个轻量助手只在当前目录、系统命令和常见的
79
- [DSH-Portable](https://github.com/WSL043/DSH-Portable) 位置查找 DSH,然后调用一次官方
78
+ 这个轻量助手会检查当前目录、系统命令、常见位置以及正在运行的
79
+ [DSH-Portable](https://github.com/WSL043/DSH-Portable),然后调用一次官方
80
80
  `plugin add`。它不会递归扫盘、安装 pnpm、创建常驻命令、保存 profile 快照或重复下载插件。
81
- 无需管理员权限,也不会擅自重启 DSH
81
+ 无需管理员权限,也不会擅自重启 DSH。找不到现有 DSH 时才会使用固定为 `0.1.0-rc.8`
82
+ 的官方 npm 运行方式;首次解析依赖可能较慢,安装器会先明确提示。
82
83
 
83
84
  <details>
84
85
  <summary>官方 npm 方式(已安装 Node.js)</summary>
@@ -86,9 +87,9 @@ irm 'https://github.com/WSL043/dsh-codex-subscription/releases/latest/download/d
86
87
  官方的 `npx @deepseek-ai/dsh web` 不会创建全局 `dsh` 命令,因此安装插件时也要保留完整的 `npx` 前缀:
87
88
 
88
89
  ```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
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
92
93
  ```
93
94
 
94
95
  </details>
@@ -145,10 +146,10 @@ Spark 不显示这个入口。高速模式会提高速度,也会消耗更多 C
145
146
  Windows 用户重新运行上面的单行助手即可更新。官方 npm 用户使用:
146
147
 
147
148
  ```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
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
152
153
  ```
153
154
 
154
155
  这些操作会保留 DSH profile、其他插件和登录信息。
@@ -169,10 +170,10 @@ DSH-Portable 在其目录中把上述 `dsh` 换成 `.\dsh.exe`。
169
170
 
170
171
  ## 常见问题
171
172
 
172
- - **`dsh` 无法识别**:官方 npm 方式本来就不会创建全局 `dsh` 命令,请使用上面的完整 `npx -y @deepseek-ai/dsh ...` 命令;
173
+ - **`dsh` 无法识别**:官方 npm 方式本来就不会创建全局 `dsh` 命令,请使用上面的完整 `npx -y @deepseek-ai/dsh@0.1.0-rc.8 ...` 命令;
173
174
  - **`dsh.exe` 无法识别**:当前目录没有该文件。请先进入 DSH-Portable 目录,或使用 Windows 单行助手;
174
175
  - **找不到 DSH-Portable**:进入它的目录后重新执行安装命令,或直接运行 `.\dsh.exe plugin --profile web add dsh-codex-subscription`;
175
- - **电脑上有多个 DSH**:进入要使用的那个 DSH-Portable 目录再运行助手;
176
+ - **电脑上有多个 DSH**:单行助手会列出正在运行的 Portable,输入对应编号即可;交给 Agent 时让它进入目标目录,或明确传入 `-DshPath`;
176
177
  - **安装仍然失败**:把上面的 Agent 文档链接发给 Agent,不要删除 profile 或随意修改系统 PATH。
177
178
 
178
179
  ## 边界与支持
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`;
497
+ const USER_AGENT = `dsh-codex-subscription/1.1.2`;
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",
3
+ "version": "1.1.2",
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",