dsh-codex-subscription 3.2.24 → 3.2.26
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.de.md +6 -4
- package/README.en.md +6 -4
- package/README.es.md +6 -4
- package/README.fr.md +6 -4
- package/README.ja.md +6 -4
- package/README.md +6 -4
- package/README.pt.md +6 -4
- package/README.ru.md +6 -4
- package/README.zh-CN.md +6 -4
- package/lib/client.js +14 -8
- package/lib/index.js +96 -9
- package/package.json +2 -2
package/README.de.md
CHANGED
|
@@ -20,6 +20,8 @@ Melde dich mit ChatGPT Plus / Pro an, um GPT-6 und andere Codex-Modelle, Konting
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
+
<p align="center"><img src="docs/assets/hero-en.webp" width="1100" alt="Dein Abo, jetzt in DSH: das Wal-Mädchen-Maskottchen und die Kontingentoberfläche des Codex-Abos"></p>
|
|
24
|
+
|
|
23
25
|
<a id="highlights"></a>
|
|
24
26
|
|
|
25
27
|
## Highlights
|
|
@@ -63,7 +65,7 @@ Die Node.js-Anforderungen für CLI und Web findest du in der [offiziellen DSH-An
|
|
|
63
65
|
2. Füge diesen Paketnamen einschließlich Version in das Feld **Paketname oder Adresse** ein:
|
|
64
66
|
|
|
65
67
|
```text
|
|
66
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.26
|
|
67
69
|
```
|
|
68
70
|
|
|
69
71
|
3. Klicke auf **Installieren** und warte, bis der Vorgang abgeschlossen ist. Folge den Anweisungen auf der Seite; speichere deine Arbeit, bevor du neu startest, falls du dazu aufgefordert wirst.
|
|
@@ -80,7 +82,7 @@ Warum die Version angegeben ist: Auf der Plugin-Seite von DSH werden nur Version
|
|
|
80
82
|
<summary>Installation über das Terminal (mit einem vorhandenen dsh-Befehl)</summary>
|
|
81
83
|
|
|
82
84
|
```sh
|
|
83
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.26
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
Folge den Anweisungen zum Neustart und melde dich anschließend unter **Einstellungen → Codex** an. Sowohl die Plugins-Seite als auch das Terminal verwenden die Installationsverwaltung von DSH.
|
|
@@ -93,7 +95,7 @@ Folge den Anweisungen zum Neustart und melde dich anschließend unter **Einstell
|
|
|
93
95
|
Melde dich an und wähle in Web ein Codex-Modell aus. Installiere anschließend dasselbe Plugin im Headless-Profil:
|
|
94
96
|
|
|
95
97
|
```sh
|
|
96
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.26
|
|
97
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
98
100
|
```
|
|
99
101
|
|
|
@@ -326,7 +328,7 @@ Suche dieses Plugin auf der DSH-Seite **Plugins** und verwende dort die Aktion z
|
|
|
326
328
|
<summary>Terminalbefehle</summary>
|
|
327
329
|
|
|
328
330
|
```sh
|
|
329
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.26
|
|
330
332
|
```
|
|
331
333
|
|
|
332
334
|
Nur ausführen, wenn du deinstallieren möchtest:
|
package/README.en.md
CHANGED
|
@@ -20,6 +20,8 @@ Sign in with ChatGPT Plus / Pro to use GPT-6 and other Codex models, quota, web
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
+
<p align="center"><img src="docs/assets/hero-en.webp" width="1100" alt="Your subscription, now in DSH: the whale-girl mascot and the Codex subscription account quota interface"></p>
|
|
24
|
+
|
|
23
25
|
<a id="highlights"></a>
|
|
24
26
|
|
|
25
27
|
## Highlights
|
|
@@ -63,7 +65,7 @@ See the [official DSH run guide](https://github.com/deepseek-ai/deepseek-harness
|
|
|
63
65
|
2. Paste this package name, with its version, into the **Package name or address** field:
|
|
64
66
|
|
|
65
67
|
```text
|
|
66
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.26
|
|
67
69
|
```
|
|
68
70
|
|
|
69
71
|
3. Click **Install** and wait for completion. Follow the page instructions; save your work before restarting if requested.
|
|
@@ -80,7 +82,7 @@ Why the version is included: DSH's plugin page only installs versions that are a
|
|
|
80
82
|
<summary>Terminal installation (with an existing dsh command)</summary>
|
|
81
83
|
|
|
82
84
|
```sh
|
|
83
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.26
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
Follow the restart instructions, then sign in under **Settings → Codex**. Both the Plugins page and the terminal use DSH's installation management.
|
|
@@ -93,7 +95,7 @@ Follow the restart instructions, then sign in under **Settings → Codex**. Both
|
|
|
93
95
|
After signing in and selecting a Codex model in Web, install the same plugin in the Headless profile:
|
|
94
96
|
|
|
95
97
|
```sh
|
|
96
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.26
|
|
97
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
98
100
|
```
|
|
99
101
|
|
|
@@ -326,7 +328,7 @@ Find this plugin on the DSH **Plugins** page and use its update or uninstall act
|
|
|
326
328
|
<summary>Terminal commands</summary>
|
|
327
329
|
|
|
328
330
|
```sh
|
|
329
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.26
|
|
330
332
|
```
|
|
331
333
|
|
|
332
334
|
Run only when you want to uninstall:
|
package/README.es.md
CHANGED
|
@@ -20,6 +20,8 @@ Inicia sesión con ChatGPT Plus / Pro para usar GPT-6 y otros modelos de Codex,
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
+
<p align="center"><img src="docs/assets/hero-en.webp" width="1100" alt="Tu suscripción, ahora en DSH: la mascota chica ballena y la interfaz de cuota de la cuenta de suscripción Codex"></p>
|
|
24
|
+
|
|
23
25
|
<a id="highlights"></a>
|
|
24
26
|
|
|
25
27
|
## Aspectos destacados
|
|
@@ -63,7 +65,7 @@ Consulta la [guía oficial de DSH](https://github.com/deepseek-ai/deepseek-harne
|
|
|
63
65
|
2. Pega el nombre de este paquete, incluida su versión, en el campo **Nombre o dirección del paquete**:
|
|
64
66
|
|
|
65
67
|
```text
|
|
66
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.26
|
|
67
69
|
```
|
|
68
70
|
|
|
69
71
|
3. Haz clic en **Instalar** y espera a que termine. Sigue las instrucciones de la página; guarda tu trabajo antes de reiniciar si se te solicita.
|
|
@@ -80,7 +82,7 @@ Por qué se incluye la versión: la página de complementos de DSH solo instala
|
|
|
80
82
|
<summary>Instalación desde la terminal (con un comando dsh existente)</summary>
|
|
81
83
|
|
|
82
84
|
```sh
|
|
83
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.26
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
Sigue las instrucciones para reiniciar y luego inicia sesión en **Configuración → Codex**. Tanto la página Complementos como la terminal usan la administración de instalaciones de DSH.
|
|
@@ -93,7 +95,7 @@ Sigue las instrucciones para reiniciar y luego inicia sesión en **Configuració
|
|
|
93
95
|
Después de iniciar sesión y seleccionar un modelo de Codex en Web, instala el mismo complemento en el perfil Headless:
|
|
94
96
|
|
|
95
97
|
```sh
|
|
96
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.26
|
|
97
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
98
100
|
```
|
|
99
101
|
|
|
@@ -326,7 +328,7 @@ Busca este plugin en la página **Complementos** de DSH y usa la opción de actu
|
|
|
326
328
|
<summary>Comandos de terminal</summary>
|
|
327
329
|
|
|
328
330
|
```sh
|
|
329
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.26
|
|
330
332
|
```
|
|
331
333
|
|
|
332
334
|
Ejecuta solo si quieres desinstalarlo:
|
package/README.fr.md
CHANGED
|
@@ -20,6 +20,8 @@ Connectez-vous avec ChatGPT Plus / Pro pour utiliser GPT-6 et d’autres modèle
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
+
<p align="center"><img src="docs/assets/hero-en.webp" width="1100" alt="Votre abonnement, désormais dans DSH : la mascotte fille-baleine et l’interface du quota du compte d’abonnement Codex"></p>
|
|
24
|
+
|
|
23
25
|
<a id="highlights"></a>
|
|
24
26
|
|
|
25
27
|
## Points forts
|
|
@@ -63,7 +65,7 @@ Consultez le [guide officiel de DSH](https://github.com/deepseek-ai/deepseek-har
|
|
|
63
65
|
2. Collez ce nom de package, avec sa version, dans le champ **Nom ou adresse du package** :
|
|
64
66
|
|
|
65
67
|
```text
|
|
66
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.26
|
|
67
69
|
```
|
|
68
70
|
|
|
69
71
|
3. Cliquez sur **Installer** et attendez la fin de l’installation. Suivez les instructions de la page ; enregistrez votre travail avant de redémarrer si cela vous est demandé.
|
|
@@ -80,7 +82,7 @@ Pourquoi inclure la version : la page des plugins de DSH n’installe que des ve
|
|
|
80
82
|
<summary>Installation dans le terminal (avec une commande dsh déjà installée)</summary>
|
|
81
83
|
|
|
82
84
|
```sh
|
|
83
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.26
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
Suivez les instructions de redémarrage, puis connectez-vous dans **Paramètres → Codex**. La page Plugins et le terminal utilisent tous deux le système de gestion des installations de DSH.
|
|
@@ -93,7 +95,7 @@ Suivez les instructions de redémarrage, puis connectez-vous dans **Paramètres
|
|
|
93
95
|
Après vous être connecté et avoir sélectionné un modèle Codex dans Web, installez le même plugin dans le profil Headless :
|
|
94
96
|
|
|
95
97
|
```sh
|
|
96
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.26
|
|
97
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
98
100
|
```
|
|
99
101
|
|
|
@@ -326,7 +328,7 @@ Trouvez ce plugin sur la page **Plugins** de DSH et utilisez l’action de mise
|
|
|
326
328
|
<summary>Commandes de terminal</summary>
|
|
327
329
|
|
|
328
330
|
```sh
|
|
329
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.26
|
|
330
332
|
```
|
|
331
333
|
|
|
332
334
|
À exécuter uniquement si vous souhaitez désinstaller :
|
package/README.ja.md
CHANGED
|
@@ -20,6 +20,8 @@ ChatGPT Plus / Pro でサインインすると、DSH 内で GPT-6 などの Code
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
+
<p align="center"><img src="docs/assets/hero-en.webp" width="1100" alt="サブスクリプションを DSH で利用:クジラの少女のマスコットと Codex サブスクリプションアカウントの利用枠画面"></p>
|
|
24
|
+
|
|
23
25
|
<a id="highlights"></a>
|
|
24
26
|
|
|
25
27
|
## 主な機能
|
|
@@ -63,7 +65,7 @@ CLI と Web の Node.js 要件は [DSH の公式手順](https://github.com/deeps
|
|
|
63
65
|
2. バージョンを含めた以下のパッケージ名を、**パッケージ名またはアドレス**欄に貼り付けます。
|
|
64
66
|
|
|
65
67
|
```text
|
|
66
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.26
|
|
67
69
|
```
|
|
68
70
|
|
|
69
71
|
3. **インストール**をクリックし、完了するまで待ちます。ページの指示に従ってください。再起動を求められた場合は、その前に作業内容を保存してください。
|
|
@@ -80,7 +82,7 @@ CLI と Web の Node.js 要件は [DSH の公式手順](https://github.com/deeps
|
|
|
80
82
|
<summary>ターミナルからインストール(dsh コマンドがすでにある場合)</summary>
|
|
81
83
|
|
|
82
84
|
```sh
|
|
83
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.26
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
再起動の指示に従い、その後 **設定 → Codex** でサインインしてください。プラグインページとターミナルのどちらからインストールしても、DSH のインストール管理機能が使用されます。
|
|
@@ -93,7 +95,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.24
|
|
|
93
95
|
Web でサインインし、Codex モデルを選択した後、Headless プロファイルにも同じプラグインをインストールします。
|
|
94
96
|
|
|
95
97
|
```sh
|
|
96
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.26
|
|
97
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
98
100
|
```
|
|
99
101
|
|
|
@@ -326,7 +328,7 @@ DSH の **プラグイン** ページでこのプラグインを見つけ、更
|
|
|
326
328
|
<summary>ターミナルコマンド</summary>
|
|
327
329
|
|
|
328
330
|
```sh
|
|
329
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.26
|
|
330
332
|
```
|
|
331
333
|
|
|
332
334
|
アンインストールする場合にのみ実行してください:
|
package/README.md
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
+
<p align="center"><img src="docs/assets/hero-zh.webp" width="1100" alt="已有的订阅,在 DSH 接着用:鲸鱼少女吉祥物与 Codex 订阅账号额度界面"></p>
|
|
24
|
+
|
|
23
25
|
## 核心功能
|
|
24
26
|
|
|
25
27
|
| 你想做什么 | 插件提供什么 |
|
|
@@ -55,7 +57,7 @@ CLI 和 Web 的 Node.js 要求见 [DSH 官方运行说明](https://github.com/de
|
|
|
55
57
|
2. 在 **包名或地址** 输入框中粘贴下面的包名(已带版本号):
|
|
56
58
|
|
|
57
59
|
```text
|
|
58
|
-
dsh-codex-subscription@3.2.
|
|
60
|
+
dsh-codex-subscription@3.2.26
|
|
59
61
|
```
|
|
60
62
|
|
|
61
63
|
3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
|
|
@@ -72,7 +74,7 @@ CLI 和 Web 的 Node.js 要求见 [DSH 官方运行说明](https://github.com/de
|
|
|
72
74
|
<summary>终端安装(已能运行 dsh 命令)</summary>
|
|
73
75
|
|
|
74
76
|
```sh
|
|
75
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
77
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.26
|
|
76
78
|
```
|
|
77
79
|
|
|
78
80
|
安装完成后按提示重启 DSH,再到 **设置 → Codex 订阅** 登录。插件页面和终端均由 DSH 管理安装。
|
|
@@ -85,7 +87,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.24
|
|
|
85
87
|
先在 Web 中完成登录并选择一次 Codex 模型,再把同一个插件安装到 Headless profile:
|
|
86
88
|
|
|
87
89
|
```sh
|
|
88
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
90
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.26
|
|
89
91
|
dsh --profile headless "只回复:ok"
|
|
90
92
|
```
|
|
91
93
|
|
|
@@ -302,7 +304,7 @@ dsh --profile headless "只回复:ok"
|
|
|
302
304
|
<summary>终端方式</summary>
|
|
303
305
|
|
|
304
306
|
```sh
|
|
305
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
307
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.26
|
|
306
308
|
```
|
|
307
309
|
|
|
308
310
|
仅在需要卸载时运行:
|
package/README.pt.md
CHANGED
|
@@ -20,6 +20,8 @@ Entre com o ChatGPT Plus / Pro para usar GPT-6 e outros modelos Codex, a cota, a
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
+
<p align="center"><img src="docs/assets/hero-en.webp" width="1100" alt="Sua assinatura, agora no DSH: a mascote garota-baleia e a interface de cota da conta de assinatura Codex"></p>
|
|
24
|
+
|
|
23
25
|
<a id="highlights"></a>
|
|
24
26
|
|
|
25
27
|
## Destaques
|
|
@@ -63,7 +65,7 @@ Consulte o [guia oficial do DSH](https://github.com/deepseek-ai/deepseek-harness
|
|
|
63
65
|
2. Cole o nome deste pacote, com a versão, no campo **Nome ou endereço do pacote**:
|
|
64
66
|
|
|
65
67
|
```text
|
|
66
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.26
|
|
67
69
|
```
|
|
68
70
|
|
|
69
71
|
3. Clique em **Instalar** e aguarde a conclusão. Siga as instruções da página; salve seu trabalho antes de reiniciar, se solicitado.
|
|
@@ -80,7 +82,7 @@ Por que a versão está incluída: a página de plugins do DSH só instala vers
|
|
|
80
82
|
<summary>Instalação pelo terminal (com um comando dsh existente)</summary>
|
|
81
83
|
|
|
82
84
|
```sh
|
|
83
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.26
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
Siga as instruções para reiniciar e entre em **Configurações → Codex**. Tanto a página Plugins quanto o terminal usam o gerenciamento de instalações do DSH.
|
|
@@ -93,7 +95,7 @@ Siga as instruções para reiniciar e entre em **Configurações → Codex**. Ta
|
|
|
93
95
|
Depois de entrar e selecionar um modelo Codex na versão Web, instale o mesmo plugin no perfil Headless:
|
|
94
96
|
|
|
95
97
|
```sh
|
|
96
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.26
|
|
97
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
98
100
|
```
|
|
99
101
|
|
|
@@ -326,7 +328,7 @@ Encontre este plugin na página **Plugins** do DSH e use a opção de atualizaç
|
|
|
326
328
|
<summary>Comandos do terminal</summary>
|
|
327
329
|
|
|
328
330
|
```sh
|
|
329
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.26
|
|
330
332
|
```
|
|
331
333
|
|
|
332
334
|
Execute somente quando quiser desinstalar:
|
package/README.ru.md
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
+
<p align="center"><img src="docs/assets/hero-en.webp" width="1100" alt="Ваша подписка теперь в DSH: маскот-девушка-кит и интерфейс квоты аккаунта подписки Codex"></p>
|
|
24
|
+
|
|
23
25
|
<a id="highlights"></a>
|
|
24
26
|
|
|
25
27
|
## Основные возможности
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
2. Вставьте имя этого пакета вместе с его версией в поле **Package name or address**:
|
|
64
66
|
|
|
65
67
|
```text
|
|
66
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.26
|
|
67
69
|
```
|
|
68
70
|
|
|
69
71
|
3. Нажмите **Install** и дождитесь завершения. Следуйте инструкциям на странице; если будет предложено перезапустить приложение, перед этим сохраните свою работу.
|
|
@@ -80,7 +82,7 @@
|
|
|
80
82
|
<summary>Установка через терминал (если команда dsh уже установлена)</summary>
|
|
81
83
|
|
|
82
84
|
```sh
|
|
83
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.26
|
|
84
86
|
```
|
|
85
87
|
|
|
86
88
|
Следуйте инструкциям по перезапуску, затем войдите в систему в разделе **Настройки → Codex**. И страница «Плагины», и терминал используют систему управления установками DSH.
|
|
@@ -93,7 +95,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.24
|
|
|
93
95
|
Войдите в систему и выберите модель Codex в Web, затем установите тот же плагин в профиле Headless:
|
|
94
96
|
|
|
95
97
|
```sh
|
|
96
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.26
|
|
97
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
98
100
|
```
|
|
99
101
|
|
|
@@ -326,7 +328,7 @@ DSH управляет диалогами, подтверждениями инс
|
|
|
326
328
|
<summary>Команды терминала</summary>
|
|
327
329
|
|
|
328
330
|
```sh
|
|
329
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.26
|
|
330
332
|
```
|
|
331
333
|
|
|
332
334
|
Запускайте только в том случае, если хотите удалить плагин:
|
package/README.zh-CN.md
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
+
<p align="center"><img src="docs/assets/hero-zh.webp" width="1100" alt="已有的订阅,在 DSH 接着用:鲸鱼少女吉祥物与 Codex 订阅账号额度界面"></p>
|
|
24
|
+
|
|
23
25
|
## 核心功能
|
|
24
26
|
|
|
25
27
|
| 你想做什么 | 插件提供什么 |
|
|
@@ -55,7 +57,7 @@ CLI 和 Web 的 Node.js 要求见 [DSH 官方运行说明](https://github.com/de
|
|
|
55
57
|
2. 在 **包名或地址** 输入框中粘贴下面的包名(已带版本号):
|
|
56
58
|
|
|
57
59
|
```text
|
|
58
|
-
dsh-codex-subscription@3.2.
|
|
60
|
+
dsh-codex-subscription@3.2.26
|
|
59
61
|
```
|
|
60
62
|
|
|
61
63
|
3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
|
|
@@ -72,7 +74,7 @@ CLI 和 Web 的 Node.js 要求见 [DSH 官方运行说明](https://github.com/de
|
|
|
72
74
|
<summary>终端安装(已能运行 dsh 命令)</summary>
|
|
73
75
|
|
|
74
76
|
```sh
|
|
75
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
77
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.26
|
|
76
78
|
```
|
|
77
79
|
|
|
78
80
|
安装完成后按提示重启 DSH,再到 **设置 → Codex 订阅** 登录。插件页面和终端均由 DSH 管理安装。
|
|
@@ -85,7 +87,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.24
|
|
|
85
87
|
先在 Web 中完成登录并选择一次 Codex 模型,再把同一个插件安装到 Headless profile:
|
|
86
88
|
|
|
87
89
|
```sh
|
|
88
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
90
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.26
|
|
89
91
|
dsh --profile headless "只回复:ok"
|
|
90
92
|
```
|
|
91
93
|
|
|
@@ -302,7 +304,7 @@ dsh --profile headless "只回复:ok"
|
|
|
302
304
|
<summary>终端方式</summary>
|
|
303
305
|
|
|
304
306
|
```sh
|
|
305
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
307
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.26
|
|
306
308
|
```
|
|
307
309
|
|
|
308
310
|
仅在需要卸载时运行:
|
package/lib/client.js
CHANGED
|
@@ -11906,7 +11906,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11906
11906
|
}
|
|
11907
11907
|
//#endregion
|
|
11908
11908
|
//#region src/version.js
|
|
11909
|
-
const PACKAGE_VERSION = "3.2.
|
|
11909
|
+
const PACKAGE_VERSION = "3.2.26";
|
|
11910
11910
|
//#endregion
|
|
11911
11911
|
//#region src/client-recovery.js
|
|
11912
11912
|
async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = endpoint === "usage" || endpoint.startsWith("usage/") ? 3e4 : 1e4) {
|
|
@@ -17868,25 +17868,30 @@ void main(){
|
|
|
17868
17868
|
"codex-subscription-fetch": ["Codex", "fetchCodexCost"]
|
|
17869
17869
|
}
|
|
17870
17870
|
};
|
|
17871
|
-
function ProviderChoice({ kind, title, current, providers, writable, saving, t, change }) {
|
|
17871
|
+
function ProviderChoice({ kind, title, current, providers, writable, saving, hostAutomatic, t, change }) {
|
|
17872
17872
|
const [open, setOpen] = (0, react.useState)(false);
|
|
17873
17873
|
const names = options[kind];
|
|
17874
17874
|
const registered = new Map(providers?.map((provider) => [provider.id, provider]));
|
|
17875
|
-
const ids =
|
|
17875
|
+
const ids = new Set(hostAutomatic ? [""] : []);
|
|
17876
|
+
for (const id of Object.keys(names)) if (registered.has(id)) ids.add(id);
|
|
17877
|
+
for (const id of registered.keys()) ids.add(id);
|
|
17876
17878
|
if (current) ids.add(current);
|
|
17879
|
+
const selectedId = current ?? (hostAutomatic ? "" : void 0);
|
|
17877
17880
|
const describe = (id) => {
|
|
17881
|
+
if (id === "") return { label: t("searchAuto") };
|
|
17878
17882
|
if (!Object.hasOwn(names, id)) return { label: registered.get(id)?.title ?? webProviderTitle(id, t) };
|
|
17879
17883
|
const [name, detail] = names[id];
|
|
17884
|
+
const label = name.startsWith("search") ? t(name) : name;
|
|
17880
17885
|
return {
|
|
17881
|
-
label:
|
|
17886
|
+
label: hostAutomatic && id === "codex-subscription-auto" ? "Codex · " + label : label,
|
|
17882
17887
|
description: t(detail)
|
|
17883
17888
|
};
|
|
17884
17889
|
};
|
|
17885
|
-
const selected = describe(
|
|
17890
|
+
const selected = describe(selectedId);
|
|
17886
17891
|
const hasNativeSearch = kind === "search" && [...registered.keys()].some((id) => !Object.hasOwn(names, id) || id === "deepseek-official" || id === "deepseek-search-api");
|
|
17887
17892
|
const items = [...ids].filter((id) => id !== "codex-subscription-dsh" || id === current || !hasNativeSearch).map((id) => ({
|
|
17888
17893
|
id,
|
|
17889
|
-
disabled: !registered.has(id),
|
|
17894
|
+
disabled: id !== "" && !registered.has(id),
|
|
17890
17895
|
...describe(id)
|
|
17891
17896
|
}));
|
|
17892
17897
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -17900,12 +17905,12 @@ void main(){
|
|
|
17900
17905
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
17901
17906
|
open,
|
|
17902
17907
|
items,
|
|
17903
|
-
selectedId
|
|
17908
|
+
selectedId,
|
|
17904
17909
|
align: "end",
|
|
17905
17910
|
onClose: () => setOpen(false),
|
|
17906
17911
|
onSelect: (id) => {
|
|
17907
17912
|
setOpen(false);
|
|
17908
|
-
if (id !==
|
|
17913
|
+
if (id !== selectedId) change(kind + "Provider", id);
|
|
17909
17914
|
},
|
|
17910
17915
|
anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
17911
17916
|
className: "codexSubscriptionContextTrigger codexSubscriptionWebProviderTrigger",
|
|
@@ -17982,6 +17987,7 @@ void main(){
|
|
|
17982
17987
|
kind,
|
|
17983
17988
|
title: t(kind + "Title"),
|
|
17984
17989
|
current: section.value?.[kind + "Provider"],
|
|
17990
|
+
hostAutomatic: section.status === "ready" && section.base?.[kind + "Provider"] === void 0,
|
|
17985
17991
|
providers: providers?.[kind],
|
|
17986
17992
|
writable,
|
|
17987
17993
|
saving,
|
package/lib/index.js
CHANGED
|
@@ -21,9 +21,8 @@ import { createModels } from "@earendil-works/pi-ai";
|
|
|
21
21
|
import { clientRequestSchema } from "@deepseek-ai/dsh-client-connection";
|
|
22
22
|
import { lstat, mkdir, open, readFile, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
23
23
|
import { PassThrough } from "node:stream";
|
|
24
|
-
import { dshHomePath, resolveDshHome } from "@deepseek-ai/dsh-home-paths";
|
|
25
|
-
import * as dshCredentials from "@deepseek-ai/dsh-credentials";
|
|
26
24
|
import { homedir, hostname } from "node:os";
|
|
25
|
+
import * as dshCredentials from "@deepseek-ai/dsh-credentials";
|
|
27
26
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
28
27
|
import { PiAiAdapter } from "@deepseek-ai/dsh-llm-pi-ai";
|
|
29
28
|
import { WebError } from "@deepseek-ai/dsh-web";
|
|
@@ -1904,6 +1903,29 @@ async function fetchInCodexScope(scope, fetchBeforeScope, input, init) {
|
|
|
1904
1903
|
if (hostModelFetch || dedicatedProxy) scopedOptions.onModelHttpStatus?.(response.status);
|
|
1905
1904
|
return scopedOptions.transformResponse?.(response, target) ?? response;
|
|
1906
1905
|
}
|
|
1906
|
+
function guardCodexConnectingClose(socket) {
|
|
1907
|
+
const close = socket.close;
|
|
1908
|
+
socket.close = function(...args) {
|
|
1909
|
+
const [code, reason] = args;
|
|
1910
|
+
if (this !== socket || socket.readyState !== WebSocket.CONNECTING || code !== 1e3 || reason !== "aborted" && reason !== "connect_timeout") return Reflect.apply(close, this, args);
|
|
1911
|
+
const observeCloseError = (error) => {
|
|
1912
|
+
if (error?.message === "WebSocket was closed before the connection was established") return;
|
|
1913
|
+
if (!socket.listeners("error").some((listener) => listener !== observeCloseError)) throw error;
|
|
1914
|
+
};
|
|
1915
|
+
const cleanup = () => {
|
|
1916
|
+
socket.removeListener("error", observeCloseError);
|
|
1917
|
+
socket.removeListener("close", cleanup);
|
|
1918
|
+
};
|
|
1919
|
+
socket.prependListener("error", observeCloseError);
|
|
1920
|
+
socket.once("close", cleanup);
|
|
1921
|
+
try {
|
|
1922
|
+
return Reflect.apply(close, this, args);
|
|
1923
|
+
} catch (error) {
|
|
1924
|
+
cleanup();
|
|
1925
|
+
throw error;
|
|
1926
|
+
}
|
|
1927
|
+
};
|
|
1928
|
+
}
|
|
1907
1929
|
async function withCodexNetwork(run, options = {}) {
|
|
1908
1930
|
const requestFetch = options.requestFetch;
|
|
1909
1931
|
const fetchBeforeScope = baseFetch ?? globalThis.fetch;
|
|
@@ -1928,12 +1950,15 @@ async function withCodexNetwork(run, options = {}) {
|
|
|
1928
1950
|
});
|
|
1929
1951
|
socket.once?.("open", () => scope.options.onModelWebSocketConnect?.());
|
|
1930
1952
|
let maxMessageBytes;
|
|
1931
|
-
if (url.pathname === CODEX_MODEL_SSE_PATH)
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1953
|
+
if (url.pathname === CODEX_MODEL_SSE_PATH) {
|
|
1954
|
+
if (socket instanceof WebSocket) guardCodexConnectingClose(socket);
|
|
1955
|
+
socket.once?.("upgrade", (response) => {
|
|
1956
|
+
const header = response.headers?.[CODEX_WEBSOCKET_LIMIT_HEADER];
|
|
1957
|
+
if (typeof header !== "string" || !/^\d+$/u.test(header)) return;
|
|
1958
|
+
const limit = Number(header);
|
|
1959
|
+
if (Number.isSafeInteger(limit)) maxMessageBytes = limit;
|
|
1960
|
+
});
|
|
1961
|
+
}
|
|
1937
1962
|
const send = socket.send;
|
|
1938
1963
|
socket.send = function(...values) {
|
|
1939
1964
|
const message = values[0];
|
|
@@ -5059,9 +5084,71 @@ function inheritedOriginalImageRef(session, assetId) {
|
|
|
5059
5084
|
}
|
|
5060
5085
|
//#endregion
|
|
5061
5086
|
//#region src/version.js
|
|
5062
|
-
const PACKAGE_VERSION = "3.2.
|
|
5087
|
+
const PACKAGE_VERSION = "3.2.26";
|
|
5063
5088
|
const USER_AGENT = `dsh-codex-subscription/${PACKAGE_VERSION}`;
|
|
5064
5089
|
//#endregion
|
|
5090
|
+
//#region node_modules/@deepseek-ai/dsh-home-paths/lib/index.js
|
|
5091
|
+
/**
|
|
5092
|
+
* Shared filesystem path helpers for DeepSeek Harness user data.
|
|
5093
|
+
*
|
|
5094
|
+
* @module @deepseek-ai/dsh-home-paths
|
|
5095
|
+
*/
|
|
5096
|
+
/** Directory name for the default DeepSeek Harness home under the OS home. */
|
|
5097
|
+
const DSH_HOME_DIR_NAME = ".dsh";
|
|
5098
|
+
/** Environment variable that overrides the default DeepSeek Harness home. */
|
|
5099
|
+
const DSH_HOME_ENV = "DSH_HOME";
|
|
5100
|
+
/**
|
|
5101
|
+
* Resolve the default DeepSeek Harness home using Node's platform path rules.
|
|
5102
|
+
* @returns the absolute default harness home path.
|
|
5103
|
+
*/
|
|
5104
|
+
function defaultDshHome() {
|
|
5105
|
+
return join(homedir(), DSH_HOME_DIR_NAME);
|
|
5106
|
+
}
|
|
5107
|
+
/**
|
|
5108
|
+
* Expand supported tilde prefixes against the operating-system home.
|
|
5109
|
+
* @param path - configured path that may begin with `~`, `~/`, or `~\`.
|
|
5110
|
+
* @returns the expanded path, or the original value when no supported prefix is present.
|
|
5111
|
+
*/
|
|
5112
|
+
function expandHomePath(path) {
|
|
5113
|
+
if (path === "~") return homedir();
|
|
5114
|
+
if (path.startsWith("~/") || path.startsWith("~\\")) return join(homedir(), path.slice(2));
|
|
5115
|
+
return path;
|
|
5116
|
+
}
|
|
5117
|
+
/**
|
|
5118
|
+
* Resolve one user-data root from an explicit path, an environment override, and a default.
|
|
5119
|
+
* @param configured - explicit path, which has highest precedence.
|
|
5120
|
+
* @param env - environment mapping to read.
|
|
5121
|
+
* @param envName - environment variable that overrides the default.
|
|
5122
|
+
* @param fallback - default root, used when neither the explicit path nor the environment provides one.
|
|
5123
|
+
* @returns the normalized absolute root.
|
|
5124
|
+
*/
|
|
5125
|
+
function resolveRoot(configured, env, envName, fallback) {
|
|
5126
|
+
const fromEnv = env[envName];
|
|
5127
|
+
return resolve(expandHomePath(configured ?? (fromEnv !== void 0 && fromEnv.trim().length > 0 ? fromEnv : fallback())));
|
|
5128
|
+
}
|
|
5129
|
+
/**
|
|
5130
|
+
* Resolve the single-root DeepSeek Harness home.
|
|
5131
|
+
*
|
|
5132
|
+
* Precedence, highest first: an explicit configured path, `$DSH_HOME`, then
|
|
5133
|
+
* `~/.dsh`. The harness keeps all user data under one root. An empty or
|
|
5134
|
+
* whitespace-only `$DSH_HOME` is treated as unset, so a blank override never
|
|
5135
|
+
* resolves the home to the current working directory.
|
|
5136
|
+
* @param configured - explicit harness-home override, which has highest precedence.
|
|
5137
|
+
* @param env - environment mapping used to read `DSH_HOME`.
|
|
5138
|
+
* @returns the normalized absolute harness home path.
|
|
5139
|
+
*/
|
|
5140
|
+
function resolveDshHome(configured, env = process.env) {
|
|
5141
|
+
return resolveRoot(configured, env, DSH_HOME_ENV, defaultDshHome);
|
|
5142
|
+
}
|
|
5143
|
+
/**
|
|
5144
|
+
* Join path segments onto the resolved DeepSeek Harness home.
|
|
5145
|
+
* @param segments - path segments appended to the Harness home; an empty list returns the home itself.
|
|
5146
|
+
* @returns the normalized absolute joined path.
|
|
5147
|
+
*/
|
|
5148
|
+
function dshHomePath(...segments) {
|
|
5149
|
+
return join(resolveDshHome(), ...segments);
|
|
5150
|
+
}
|
|
5151
|
+
//#endregion
|
|
5065
5152
|
//#region src/image-original-store.js
|
|
5066
5153
|
const ORIGINAL_IMAGE_DIRECTORY = "dsh-codex-subscription/images/v1";
|
|
5067
5154
|
const METADATA_VERSION = 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-codex-subscription",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.26",
|
|
4
4
|
"description": "Use ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images and Fast mode, and control DSH from the ChatGPT mobile app (Beta)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
|
|
112
112
|
"@deepseek-ai/dsh-client-ui-tool": "0.2.2-rc.1",
|
|
113
113
|
"@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-home-paths": "0.2.2-rc.1",
|
|
114
115
|
"@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
|
|
115
116
|
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
116
117
|
"@deepseek-ai/dsh-llm-pi-ai": "0.2.2-rc.1",
|
|
@@ -130,7 +131,6 @@
|
|
|
130
131
|
"tsdown": "0.22.2"
|
|
131
132
|
},
|
|
132
133
|
"dependencies": {
|
|
133
|
-
"@deepseek-ai/dsh-home-paths": "0.2.2-rc.1",
|
|
134
134
|
"https-proxy-agent": "7.0.6",
|
|
135
135
|
"undici": "7.30.2",
|
|
136
136
|
"ws": "8.21.3"
|