dsh-codex-subscription 0.3.7 → 1.0.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 +4 -4
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/dsh-codex.ps1 +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
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 profile; use `web` only when it is the user's target.
|
|
9
|
-
- Use the pinned `
|
|
9
|
+
- Use the pinned `v1.0.0` release assets for a first install, never a moving branch.
|
|
10
10
|
- Never print OAuth credentials, account IDs, authorization callbacks, or the
|
|
11
11
|
credential store.
|
|
12
12
|
- Do not start, stop, or restart DSH without explicit permission.
|
|
@@ -51,7 +51,7 @@ the user which installation is the target.
|
|
|
51
51
|
Download the fixed release asset to a visible file, then invoke the requested action:
|
|
52
52
|
|
|
53
53
|
```powershell
|
|
54
|
-
curl.exe -fL https://github.com/WSL043/dsh-codex-subscription/releases/download/
|
|
54
|
+
curl.exe -fL https://github.com/WSL043/dsh-codex-subscription/releases/download/v1.0.0/dsh-codex.ps1 -o "$env:TEMP\dsh-codex.ps1"
|
|
55
55
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\dsh-codex.ps1" Install
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -59,7 +59,7 @@ If `curl.exe` is unavailable, download the same pinned asset without executing
|
|
|
59
59
|
remote text in memory:
|
|
60
60
|
|
|
61
61
|
```powershell
|
|
62
|
-
Invoke-WebRequest -UseBasicParsing -Uri 'https://github.com/WSL043/dsh-codex-subscription/releases/download/
|
|
62
|
+
Invoke-WebRequest -UseBasicParsing -Uri 'https://github.com/WSL043/dsh-codex-subscription/releases/download/v1.0.0/dsh-codex.ps1' -OutFile "$env:TEMP\dsh-codex.ps1"
|
|
63
63
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\dsh-codex.ps1" Install
|
|
64
64
|
```
|
|
65
65
|
|
|
@@ -93,7 +93,7 @@ When `dsh`, Node.js, and pnpm are already available, install the pinned npm
|
|
|
93
93
|
package directly:
|
|
94
94
|
|
|
95
95
|
```sh
|
|
96
|
-
dsh plugin --profile web add dsh-codex-subscription@0.
|
|
96
|
+
dsh plugin --profile web add dsh-codex-subscription@1.0.0
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
Update with `dsh plugin --profile web update dsh-codex-subscription`. When
|
package/README.en.md
CHANGED
|
@@ -13,7 +13,7 @@ tools, permissions, image generation, search choice, and quota stay in one place
|
|
|
13
13
|
|
|
14
14
|
[Agent install](#let-an-agent-install-it-recommended) · [Windows install](#manual-windows-install) · [Update or uninstall](#update-and-uninstall)
|
|
15
15
|
|
|
16
|
-

|
|
17
17
|
|
|
18
18
|
Settings shows sign-in, search source, and the separate standard Codex and Spark
|
|
19
19
|
quota returned by the service.
|
|
@@ -108,7 +108,7 @@ subscription search when wanted.
|
|
|
108
108
|
|
|
109
109
|
## How quota is shown
|
|
110
110
|
|
|
111
|
-

|
|
112
112
|
|
|
113
113
|
- Settings always shows the detailed quota returned by the backend. The compact percentage is Beta and off by default;
|
|
114
114
|
- When enabled, it appears inside the composer before the model name and only while a Codex model is selected;
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[交给 Agent 安装](#交给-agent推荐) · [Windows 手动安装](#windows-手动安装) · [更新与卸载](#更新与卸载) · [English](#english)
|
|
12
12
|
|
|
13
|
-

|
|
14
14
|
|
|
15
15
|
设置页会显示登录状态、搜索来源,以及服务端实际返回的普通 Codex 与 Spark 独立额度。
|
|
16
16
|
|
|
@@ -95,7 +95,7 @@ Codex 订阅搜索复用同一份 ChatGPT 登录,不需要 OpenAI API Key。
|
|
|
95
95
|
|
|
96
96
|
## 额度如何显示
|
|
97
97
|
|
|
98
|
-

|
|
99
99
|
|
|
100
100
|
- 设置页始终展示服务端返回的详细额度;快捷百分比是 Beta 功能,默认关闭;
|
|
101
101
|
- 开启后,百分比会显示在输入框内、模型名称左侧,只在选择 Codex 模型时出现;
|
package/dsh-codex.ps1
CHANGED
|
@@ -32,8 +32,8 @@ if ($Managed -and -not $PSBoundParameters.ContainsKey('Action')) {
|
|
|
32
32
|
|
|
33
33
|
$PackageName = 'dsh-codex-subscription'
|
|
34
34
|
$LegacyPackageName = '@wsl043/dsh-codex-subscription'
|
|
35
|
-
$PackageVersion = '0.
|
|
36
|
-
$PackageSpec = 'https://github.com/WSL043/dsh-codex-subscription/releases/download/
|
|
35
|
+
$PackageVersion = '1.0.0'
|
|
36
|
+
$PackageSpec = 'https://github.com/WSL043/dsh-codex-subscription/releases/download/v1.0.0/dsh-codex-subscription.tgz'
|
|
37
37
|
$PnpmVersion = '11.19.0'
|
|
38
38
|
$PnpmUrl = 'https://registry.npmjs.org/pnpm/-/pnpm-11.19.0.tgz'
|
|
39
39
|
$PnpmSha512 = '7881F3ED590D472C4A955E2B88B2121791116066DCC88CBCA3849EC9B60F1BBAA6D2CCB221FA91DA4E1C65BEF2BCBE379365AEA7AC539C7BF86DEDC3A1B22DCE'
|
package/lib/index.js
CHANGED
|
@@ -540,7 +540,7 @@ function createCodexSearchProvider(options) {
|
|
|
540
540
|
accept: "application/json",
|
|
541
541
|
"content-type": "application/json",
|
|
542
542
|
originator: "pi",
|
|
543
|
-
"user-agent": "dsh-codex-subscription/0.
|
|
543
|
+
"user-agent": "dsh-codex-subscription/1.0.0"
|
|
544
544
|
},
|
|
545
545
|
body: JSON.stringify({
|
|
546
546
|
id,
|
|
@@ -929,7 +929,7 @@ function createCodexUsageReader(options) {
|
|
|
929
929
|
"chatgpt-account-id": accountId,
|
|
930
930
|
accept: "application/json",
|
|
931
931
|
"cache-control": "no-store",
|
|
932
|
-
"user-agent": "dsh-codex-subscription/0.
|
|
932
|
+
"user-agent": "dsh-codex-subscription/1.0.0"
|
|
933
933
|
},
|
|
934
934
|
signal: requestSignal(signal, timeoutMs)
|
|
935
935
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-codex-subscription",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.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",
|