dsh-codex-subscription 3.2.25 → 3.2.27
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 +4 -4
- package/README.en.md +4 -4
- package/README.es.md +4 -4
- package/README.fr.md +4 -4
- package/README.ja.md +4 -4
- package/README.md +4 -4
- package/README.pt.md +4 -4
- package/README.ru.md +4 -4
- package/README.zh-CN.md +4 -4
- package/lib/client.js +74 -1
- package/lib/index.js +93 -13
- package/package.json +3 -3
package/README.de.md
CHANGED
|
@@ -65,7 +65,7 @@ Die Node.js-Anforderungen für CLI und Web findest du in der [offiziellen DSH-An
|
|
|
65
65
|
2. Füge diesen Paketnamen einschließlich Version in das Feld **Paketname oder Adresse** ein:
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.27
|
|
69
69
|
```
|
|
70
70
|
|
|
71
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.
|
|
@@ -82,7 +82,7 @@ Warum die Version angegeben ist: Auf der Plugin-Seite von DSH werden nur Version
|
|
|
82
82
|
<summary>Installation über das Terminal (mit einem vorhandenen dsh-Befehl)</summary>
|
|
83
83
|
|
|
84
84
|
```sh
|
|
85
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.27
|
|
86
86
|
```
|
|
87
87
|
|
|
88
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.
|
|
@@ -95,7 +95,7 @@ Folge den Anweisungen zum Neustart und melde dich anschließend unter **Einstell
|
|
|
95
95
|
Melde dich an und wähle in Web ein Codex-Modell aus. Installiere anschließend dasselbe Plugin im Headless-Profil:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.27
|
|
99
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
100
100
|
```
|
|
101
101
|
|
|
@@ -328,7 +328,7 @@ Suche dieses Plugin auf der DSH-Seite **Plugins** und verwende dort die Aktion z
|
|
|
328
328
|
<summary>Terminalbefehle</summary>
|
|
329
329
|
|
|
330
330
|
```sh
|
|
331
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.27
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
Nur ausführen, wenn du deinstallieren möchtest:
|
package/README.en.md
CHANGED
|
@@ -65,7 +65,7 @@ See the [official DSH run guide](https://github.com/deepseek-ai/deepseek-harness
|
|
|
65
65
|
2. Paste this package name, with its version, into the **Package name or address** field:
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.27
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
3. Click **Install** and wait for completion. Follow the page instructions; save your work before restarting if requested.
|
|
@@ -82,7 +82,7 @@ Why the version is included: DSH's plugin page only installs versions that are a
|
|
|
82
82
|
<summary>Terminal installation (with an existing dsh command)</summary>
|
|
83
83
|
|
|
84
84
|
```sh
|
|
85
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.27
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
Follow the restart instructions, then sign in under **Settings → Codex**. Both the Plugins page and the terminal use DSH's installation management.
|
|
@@ -95,7 +95,7 @@ Follow the restart instructions, then sign in under **Settings → Codex**. Both
|
|
|
95
95
|
After signing in and selecting a Codex model in Web, install the same plugin in the Headless profile:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.27
|
|
99
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
100
100
|
```
|
|
101
101
|
|
|
@@ -328,7 +328,7 @@ Find this plugin on the DSH **Plugins** page and use its update or uninstall act
|
|
|
328
328
|
<summary>Terminal commands</summary>
|
|
329
329
|
|
|
330
330
|
```sh
|
|
331
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.27
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
Run only when you want to uninstall:
|
package/README.es.md
CHANGED
|
@@ -65,7 +65,7 @@ Consulta la [guía oficial de DSH](https://github.com/deepseek-ai/deepseek-harne
|
|
|
65
65
|
2. Pega el nombre de este paquete, incluida su versión, en el campo **Nombre o dirección del paquete**:
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.27
|
|
69
69
|
```
|
|
70
70
|
|
|
71
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.
|
|
@@ -82,7 +82,7 @@ Por qué se incluye la versión: la página de complementos de DSH solo instala
|
|
|
82
82
|
<summary>Instalación desde la terminal (con un comando dsh existente)</summary>
|
|
83
83
|
|
|
84
84
|
```sh
|
|
85
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.27
|
|
86
86
|
```
|
|
87
87
|
|
|
88
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.
|
|
@@ -95,7 +95,7 @@ Sigue las instrucciones para reiniciar y luego inicia sesión en **Configuració
|
|
|
95
95
|
Después de iniciar sesión y seleccionar un modelo de Codex en Web, instala el mismo complemento en el perfil Headless:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.27
|
|
99
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
100
100
|
```
|
|
101
101
|
|
|
@@ -328,7 +328,7 @@ Busca este plugin en la página **Complementos** de DSH y usa la opción de actu
|
|
|
328
328
|
<summary>Comandos de terminal</summary>
|
|
329
329
|
|
|
330
330
|
```sh
|
|
331
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.27
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
Ejecuta solo si quieres desinstalarlo:
|
package/README.fr.md
CHANGED
|
@@ -65,7 +65,7 @@ Consultez le [guide officiel de DSH](https://github.com/deepseek-ai/deepseek-har
|
|
|
65
65
|
2. Collez ce nom de package, avec sa version, dans le champ **Nom ou adresse du package** :
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.27
|
|
69
69
|
```
|
|
70
70
|
|
|
71
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é.
|
|
@@ -82,7 +82,7 @@ Pourquoi inclure la version : la page des plugins de DSH n’installe que des ve
|
|
|
82
82
|
<summary>Installation dans le terminal (avec une commande dsh déjà installée)</summary>
|
|
83
83
|
|
|
84
84
|
```sh
|
|
85
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.27
|
|
86
86
|
```
|
|
87
87
|
|
|
88
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.
|
|
@@ -95,7 +95,7 @@ Suivez les instructions de redémarrage, puis connectez-vous dans **Paramètres
|
|
|
95
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 :
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.27
|
|
99
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
100
100
|
```
|
|
101
101
|
|
|
@@ -328,7 +328,7 @@ Trouvez ce plugin sur la page **Plugins** de DSH et utilisez l’action de mise
|
|
|
328
328
|
<summary>Commandes de terminal</summary>
|
|
329
329
|
|
|
330
330
|
```sh
|
|
331
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.27
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
À exécuter uniquement si vous souhaitez désinstaller :
|
package/README.ja.md
CHANGED
|
@@ -65,7 +65,7 @@ CLI と Web の Node.js 要件は [DSH の公式手順](https://github.com/deeps
|
|
|
65
65
|
2. バージョンを含めた以下のパッケージ名を、**パッケージ名またはアドレス**欄に貼り付けます。
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.27
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
3. **インストール**をクリックし、完了するまで待ちます。ページの指示に従ってください。再起動を求められた場合は、その前に作業内容を保存してください。
|
|
@@ -82,7 +82,7 @@ CLI と Web の Node.js 要件は [DSH の公式手順](https://github.com/deeps
|
|
|
82
82
|
<summary>ターミナルからインストール(dsh コマンドがすでにある場合)</summary>
|
|
83
83
|
|
|
84
84
|
```sh
|
|
85
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.27
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
再起動の指示に従い、その後 **設定 → Codex** でサインインしてください。プラグインページとターミナルのどちらからインストールしても、DSH のインストール管理機能が使用されます。
|
|
@@ -95,7 +95,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.25
|
|
|
95
95
|
Web でサインインし、Codex モデルを選択した後、Headless プロファイルにも同じプラグインをインストールします。
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.27
|
|
99
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
100
100
|
```
|
|
101
101
|
|
|
@@ -328,7 +328,7 @@ DSH の **プラグイン** ページでこのプラグインを見つけ、更
|
|
|
328
328
|
<summary>ターミナルコマンド</summary>
|
|
329
329
|
|
|
330
330
|
```sh
|
|
331
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.27
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
アンインストールする場合にのみ実行してください:
|
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ CLI 和 Web 的 Node.js 要求见 [DSH 官方运行说明](https://github.com/de
|
|
|
57
57
|
2. 在 **包名或地址** 输入框中粘贴下面的包名(已带版本号):
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
dsh-codex-subscription@3.2.
|
|
60
|
+
dsh-codex-subscription@3.2.27
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
|
|
@@ -74,7 +74,7 @@ CLI 和 Web 的 Node.js 要求见 [DSH 官方运行说明](https://github.com/de
|
|
|
74
74
|
<summary>终端安装(已能运行 dsh 命令)</summary>
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
77
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.27
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
安装完成后按提示重启 DSH,再到 **设置 → Codex 订阅** 登录。插件页面和终端均由 DSH 管理安装。
|
|
@@ -87,7 +87,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.25
|
|
|
87
87
|
先在 Web 中完成登录并选择一次 Codex 模型,再把同一个插件安装到 Headless profile:
|
|
88
88
|
|
|
89
89
|
```sh
|
|
90
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
90
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.27
|
|
91
91
|
dsh --profile headless "只回复:ok"
|
|
92
92
|
```
|
|
93
93
|
|
|
@@ -304,7 +304,7 @@ dsh --profile headless "只回复:ok"
|
|
|
304
304
|
<summary>终端方式</summary>
|
|
305
305
|
|
|
306
306
|
```sh
|
|
307
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
307
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.27
|
|
308
308
|
```
|
|
309
309
|
|
|
310
310
|
仅在需要卸载时运行:
|
package/README.pt.md
CHANGED
|
@@ -65,7 +65,7 @@ Consulte o [guia oficial do DSH](https://github.com/deepseek-ai/deepseek-harness
|
|
|
65
65
|
2. Cole o nome deste pacote, com a versão, no campo **Nome ou endereço do pacote**:
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.27
|
|
69
69
|
```
|
|
70
70
|
|
|
71
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.
|
|
@@ -82,7 +82,7 @@ Por que a versão está incluída: a página de plugins do DSH só instala vers
|
|
|
82
82
|
<summary>Instalação pelo terminal (com um comando dsh existente)</summary>
|
|
83
83
|
|
|
84
84
|
```sh
|
|
85
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.27
|
|
86
86
|
```
|
|
87
87
|
|
|
88
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.
|
|
@@ -95,7 +95,7 @@ Siga as instruções para reiniciar e entre em **Configurações → Codex**. Ta
|
|
|
95
95
|
Depois de entrar e selecionar um modelo Codex na versão Web, instale o mesmo plugin no perfil Headless:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.27
|
|
99
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
100
100
|
```
|
|
101
101
|
|
|
@@ -328,7 +328,7 @@ Encontre este plugin na página **Plugins** do DSH e use a opção de atualizaç
|
|
|
328
328
|
<summary>Comandos do terminal</summary>
|
|
329
329
|
|
|
330
330
|
```sh
|
|
331
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.27
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
Execute somente quando quiser desinstalar:
|
package/README.ru.md
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
2. Вставьте имя этого пакета вместе с его версией в поле **Package name or address**:
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
|
-
dsh-codex-subscription@3.2.
|
|
68
|
+
dsh-codex-subscription@3.2.27
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
3. Нажмите **Install** и дождитесь завершения. Следуйте инструкциям на странице; если будет предложено перезапустить приложение, перед этим сохраните свою работу.
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
<summary>Установка через терминал (если команда dsh уже установлена)</summary>
|
|
83
83
|
|
|
84
84
|
```sh
|
|
85
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
85
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.27
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
Следуйте инструкциям по перезапуску, затем войдите в систему в разделе **Настройки → Codex**. И страница «Плагины», и терминал используют систему управления установками DSH.
|
|
@@ -95,7 +95,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.25
|
|
|
95
95
|
Войдите в систему и выберите модель Codex в Web, затем установите тот же плагин в профиле Headless:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
98
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.27
|
|
99
99
|
dsh --profile headless "Reply with only the word: ok"
|
|
100
100
|
```
|
|
101
101
|
|
|
@@ -328,7 +328,7 @@ DSH управляет диалогами, подтверждениями инс
|
|
|
328
328
|
<summary>Команды терминала</summary>
|
|
329
329
|
|
|
330
330
|
```sh
|
|
331
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
331
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.27
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
Запускайте только в том случае, если хотите удалить плагин:
|
package/README.zh-CN.md
CHANGED
|
@@ -57,7 +57,7 @@ CLI 和 Web 的 Node.js 要求见 [DSH 官方运行说明](https://github.com/de
|
|
|
57
57
|
2. 在 **包名或地址** 输入框中粘贴下面的包名(已带版本号):
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
dsh-codex-subscription@3.2.
|
|
60
|
+
dsh-codex-subscription@3.2.27
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
|
|
@@ -74,7 +74,7 @@ CLI 和 Web 的 Node.js 要求见 [DSH 官方运行说明](https://github.com/de
|
|
|
74
74
|
<summary>终端安装(已能运行 dsh 命令)</summary>
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
77
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.27
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
安装完成后按提示重启 DSH,再到 **设置 → Codex 订阅** 登录。插件页面和终端均由 DSH 管理安装。
|
|
@@ -87,7 +87,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.25
|
|
|
87
87
|
先在 Web 中完成登录并选择一次 Codex 模型,再把同一个插件安装到 Headless profile:
|
|
88
88
|
|
|
89
89
|
```sh
|
|
90
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
90
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.27
|
|
91
91
|
dsh --profile headless "只回复:ok"
|
|
92
92
|
```
|
|
93
93
|
|
|
@@ -304,7 +304,7 @@ dsh --profile headless "只回复:ok"
|
|
|
304
304
|
<summary>终端方式</summary>
|
|
305
305
|
|
|
306
306
|
```sh
|
|
307
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
307
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.27
|
|
308
308
|
```
|
|
309
309
|
|
|
310
310
|
仅在需要卸载时运行:
|
package/lib/client.js
CHANGED
|
@@ -2943,6 +2943,9 @@ window.__ModuleLoader__.load({
|
|
|
2943
2943
|
imageAdvancedTitle: "高级:图片型号与质量",
|
|
2944
2944
|
quotaSettingsTitle: "额度显示与提醒",
|
|
2945
2945
|
quotaAlertsNeedDisplay: "先选一种显示方式,才能在输入框里看到提醒。",
|
|
2946
|
+
"customInstructionsTitle": "自定义指令",
|
|
2947
|
+
"customInstructionsHint": "为此 DSH 配置中的 Codex 订阅对话设置回复偏好,例如语言或格式。清空后保存即可移除。",
|
|
2948
|
+
"customInstructionsSave": "保存",
|
|
2946
2949
|
answerStyleTitle: "回答风格",
|
|
2947
2950
|
verbosityPageHint: "选「简洁」回答更短,选「详细」会多解释。",
|
|
2948
2951
|
advancedTitle: "高级",
|
|
@@ -3903,6 +3906,9 @@ window.__ModuleLoader__.load({
|
|
|
3903
3906
|
imageAdvancedTitle: "Advanced: image model and quality",
|
|
3904
3907
|
quotaSettingsTitle: "Quota display and alerts",
|
|
3905
3908
|
quotaAlertsNeedDisplay: "Choose a way to show quota first; the alert is shown in the composer.",
|
|
3909
|
+
"customInstructionsTitle": "Custom instructions",
|
|
3910
|
+
"customInstructionsHint": "Set reply preferences such as language or format for Codex subscription chats in this DSH profile. Clear the field and save to remove them.",
|
|
3911
|
+
"customInstructionsSave": "Save",
|
|
3906
3912
|
answerStyleTitle: "Answer style",
|
|
3907
3913
|
verbosityPageHint: "Pick Concise for shorter answers, Detailed for more explanation.",
|
|
3908
3914
|
advancedTitle: "Advanced",
|
|
@@ -4860,6 +4866,9 @@ window.__ModuleLoader__.load({
|
|
|
4860
4866
|
"quotaSettingsTitle": "利用枠の表示と通知",
|
|
4861
4867
|
"quotaAlertsNeedDisplay": "まず利用枠の表示方法を選んでください。通知は入力欄に表示されます。",
|
|
4862
4868
|
"answerStyleTitle": "回答スタイル",
|
|
4869
|
+
"customInstructionsTitle": "カスタム指示",
|
|
4870
|
+
"customInstructionsHint": "この DSH プロファイルの Codex 購読チャットで使う言語や回答形式などを指定します。削除するには空欄で保存します。",
|
|
4871
|
+
"customInstructionsSave": "保存",
|
|
4863
4872
|
"verbosityPageHint": "「簡潔」は短い回答、「詳細」はより詳しい説明になります。",
|
|
4864
4873
|
"advancedTitle": "詳細設定",
|
|
4865
4874
|
"advancedSummary": "通常は変更不要です。初期設定は多くのユーザーに適しています。",
|
|
@@ -5825,6 +5834,9 @@ window.__ModuleLoader__.load({
|
|
|
5825
5834
|
"quotaSettingsTitle": "Visualización y alertas de cuota",
|
|
5826
5835
|
"quotaAlertsNeedDisplay": "Elige primero cómo mostrar la cuota; la alerta aparece en el cuadro de entrada.",
|
|
5827
5836
|
"answerStyleTitle": "Estilo de respuesta",
|
|
5837
|
+
"customInstructionsTitle": "Instrucciones personalizadas",
|
|
5838
|
+
"customInstructionsHint": "Define el idioma, el formato u otras preferencias de respuesta para los chats de la suscripción a Codex en este perfil de DSH. Para quitarlas, borra el texto y guarda.",
|
|
5839
|
+
"customInstructionsSave": "Guardar",
|
|
5828
5840
|
"verbosityPageHint": "Elige Conciso para respuestas más breves o Detallado para obtener más explicaciones.",
|
|
5829
5841
|
"advancedTitle": "Avanzado",
|
|
5830
5842
|
"advancedSummary": "Rara vez hace falta; los valores predeterminados sirven para la mayoría",
|
|
@@ -6785,6 +6797,9 @@ window.__ModuleLoader__.load({
|
|
|
6785
6797
|
"quotaSettingsTitle": "Affichage et alertes de quota",
|
|
6786
6798
|
"quotaAlertsNeedDisplay": "Choisissez d’abord un mode d’affichage du quota ; l’alerte apparaîtra dans la zone de saisie.",
|
|
6787
6799
|
"answerStyleTitle": "Style de réponse",
|
|
6800
|
+
"customInstructionsTitle": "Instructions personnalisées",
|
|
6801
|
+
"customInstructionsHint": "Définissez la langue, le format ou d’autres préférences de réponse pour les chats avec l’abonnement Codex dans ce profil DSH. Pour les supprimer, videz le champ et enregistrez.",
|
|
6802
|
+
"customInstructionsSave": "Enregistrer",
|
|
6788
6803
|
"verbosityPageHint": "Choisissez « Concis » pour des réponses plus courtes ou « Détaillé » pour plus d’explications.",
|
|
6789
6804
|
"advancedTitle": "Avancé",
|
|
6790
6805
|
"advancedSummary": "Rarement nécessaire ; les paramètres par défaut conviennent à la plupart des personnes",
|
|
@@ -7745,6 +7760,9 @@ window.__ModuleLoader__.load({
|
|
|
7745
7760
|
"quotaSettingsTitle": "Anzeige und Benachrichtigungen zum Nutzungskontingent",
|
|
7746
7761
|
"quotaAlertsNeedDisplay": "Wähle zuerst eine Anzeige für das Nutzungskontingent. Die Benachrichtigung erscheint im Eingabefeld.",
|
|
7747
7762
|
"answerStyleTitle": "Antwortstil",
|
|
7763
|
+
"customInstructionsTitle": "Benutzerdefinierte Anweisungen",
|
|
7764
|
+
"customInstructionsHint": "Lege Antwortpräferenzen wie Sprache oder Format für Codex-Abonnement-Chats in diesem DSH-Profil fest. Zum Entfernen das Feld leeren und speichern.",
|
|
7765
|
+
"customInstructionsSave": "Speichern",
|
|
7748
7766
|
"verbosityPageHint": "Wähle „Prägnant“ für kürzere Antworten oder „Ausführlich“ für mehr Erklärungen.",
|
|
7749
7767
|
"advancedTitle": "Erweitert",
|
|
7750
7768
|
"advancedSummary": "Selten erforderlich; die Standardeinstellungen passen für die meisten",
|
|
@@ -8705,6 +8723,9 @@ window.__ModuleLoader__.load({
|
|
|
8705
8723
|
"quotaSettingsTitle": "Отображение лимита и оповещения",
|
|
8706
8724
|
"quotaAlertsNeedDisplay": "Сначала выберите способ отображения лимита; оповещение появится в поле ввода.",
|
|
8707
8725
|
"answerStyleTitle": "Стиль ответов",
|
|
8726
|
+
"customInstructionsTitle": "Пользовательские инструкции",
|
|
8727
|
+
"customInstructionsHint": "Задайте язык, формат и другие предпочтения ответов для чатов с подпиской Codex в этом профиле DSH. Чтобы удалить инструкции, очистите поле и сохраните изменения.",
|
|
8728
|
+
"customInstructionsSave": "Сохранить",
|
|
8708
8729
|
"verbosityPageHint": "Выберите «Кратко» для лаконичных ответов, «Подробно» — для более развёрнутых.",
|
|
8709
8730
|
"advancedTitle": "Дополнительно",
|
|
8710
8731
|
"advancedSummary": "Нужно редко; настройки по умолчанию подходят большинству",
|
|
@@ -9665,6 +9686,9 @@ window.__ModuleLoader__.load({
|
|
|
9665
9686
|
"quotaSettingsTitle": "Exibição e alertas de cota",
|
|
9666
9687
|
"quotaAlertsNeedDisplay": "Escolha primeiro como exibir a cota; o alerta aparece no campo de mensagem.",
|
|
9667
9688
|
"answerStyleTitle": "Estilo de resposta",
|
|
9689
|
+
"customInstructionsTitle": "Instruções personalizadas",
|
|
9690
|
+
"customInstructionsHint": "Defina o idioma, o formato ou outras preferências de resposta para os chats da assinatura do Codex neste perfil do DSH. Para removê-las, limpe o campo e salve.",
|
|
9691
|
+
"customInstructionsSave": "Salvar",
|
|
9668
9692
|
"verbosityPageHint": "Escolha Conciso para respostas mais curtas ou Detalhado para mais explicações.",
|
|
9669
9693
|
"advancedTitle": "Avançado",
|
|
9670
9694
|
"advancedSummary": "Raramente necessário; os padrões atendem à maioria das pessoas",
|
|
@@ -9884,6 +9908,10 @@ window.__ModuleLoader__.load({
|
|
|
9884
9908
|
.codexSubscriptionCard{border:1px solid var(--dsw-alias-border-l2);border-radius:12px;background:var(--dsw-alias-bg-layer-1);padding:14px 16px;display:flex;flex-direction:column;gap:12px}
|
|
9885
9909
|
.codexSubscriptionUsageCard{padding:12px 14px;gap:9px}
|
|
9886
9910
|
.codexSubscriptionPreferencesCard{padding:12px 14px;gap:10px}
|
|
9911
|
+
.codexCustomInstructions{display:grid;gap:6px;font-size:13px}
|
|
9912
|
+
.codexCustomInstructions textarea{box-sizing:border-box;width:100%;min-height:64px;resize:vertical;border:1px solid var(--dsw-alias-border-l3);border-radius:var(--dsw-radius-sm,8px);background:transparent;color:inherit;font:inherit;padding:6px 8px}
|
|
9913
|
+
.codexCustomInstructions textarea:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-alias-state-business-primary);outline-offset:2px}
|
|
9914
|
+
.codexCustomInstructions>.dcsButton{justify-self:end}
|
|
9887
9915
|
.codexSubscriptionPreference{min-height:32px;box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px}
|
|
9888
9916
|
.codexSubscriptionPreferenceCopy{display:flex;min-width:0;flex-direction:column;gap:2px}
|
|
9889
9917
|
.codexSubscriptionPreferenceLabel{display:flex;align-items:center;gap:6px}
|
|
@@ -10740,6 +10768,8 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10740
10768
|
const SPEED_MODE_ULTRAFAST = "ultrafast";
|
|
10741
10769
|
const DEFAULT_SPEED_MODE = SPEED_MODE_STANDARD;
|
|
10742
10770
|
const OUTPUT_VERBOSITY_FIELD = "outputVerbosity";
|
|
10771
|
+
const CUSTOM_INSTRUCTIONS_FIELD = "customInstructions";
|
|
10772
|
+
const CUSTOM_INSTRUCTIONS_LIMIT = 1500;
|
|
10743
10773
|
const OUTPUT_VERBOSITY_DEFAULT = "default";
|
|
10744
10774
|
const OUTPUT_VERBOSITY_MEDIUM = "medium";
|
|
10745
10775
|
const OUTPUT_VERBOSITY_HIGH = "high";
|
|
@@ -11156,6 +11186,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11156
11186
|
fetchRoutingAvailable,
|
|
11157
11187
|
speedMode: normalizeSpeedMode(value?.[SPEED_MODE_FIELD]),
|
|
11158
11188
|
[SPEED_SHORTCUT_FIELD]: normalizeSpeedShortcut(value?.[SPEED_SHORTCUT_FIELD]),
|
|
11189
|
+
[CUSTOM_INSTRUCTIONS_FIELD]: value?.["customInstructions"] ?? "",
|
|
11159
11190
|
outputVerbosity: normalizeOutputVerbosity(value?.[OUTPUT_VERBOSITY_FIELD]),
|
|
11160
11191
|
inputImageDetail: normalizeInputImageDetail(value?.[INPUT_IMAGE_DETAIL_FIELD]),
|
|
11161
11192
|
reasoningSummary: normalizeReasoningSummary(value?.[REASONING_SUMMARY_FIELD]),
|
|
@@ -11240,6 +11271,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11240
11271
|
webFetchFallbackProvider: value?.webFetchFallbackProvider,
|
|
11241
11272
|
[FETCH_PROVIDER_FIELD]: normalizeFetchProvider(value?.[FETCH_PROVIDER_FIELD]),
|
|
11242
11273
|
[SPEED_MODE_FIELD]: normalizeSpeedMode(value?.[SPEED_MODE_FIELD]),
|
|
11274
|
+
[CUSTOM_INSTRUCTIONS_FIELD]: typeof value?.["customInstructions"] === "string" ? value[CUSTOM_INSTRUCTIONS_FIELD] : "",
|
|
11243
11275
|
[OUTPUT_VERBOSITY_FIELD]: normalizeOutputVerbosity(value?.[OUTPUT_VERBOSITY_FIELD]),
|
|
11244
11276
|
[INPUT_IMAGE_DETAIL_FIELD]: normalizeInputImageDetail(value?.[INPUT_IMAGE_DETAIL_FIELD]),
|
|
11245
11277
|
[REASONING_SUMMARY_FIELD]: normalizeReasoningSummary(value?.[REASONING_SUMMARY_FIELD]),
|
|
@@ -11336,6 +11368,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11336
11368
|
acceptFallback(value);
|
|
11337
11369
|
if (patch.subagentBackend === "codex" && Array.isArray(value?.subagentModels)) subagentModels = value.subagentModels;
|
|
11338
11370
|
pendingPatch = void 0;
|
|
11371
|
+
return true;
|
|
11339
11372
|
} catch {
|
|
11340
11373
|
if (current === generation) {
|
|
11341
11374
|
pendingPatch = void 0;
|
|
@@ -11906,7 +11939,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11906
11939
|
}
|
|
11907
11940
|
//#endregion
|
|
11908
11941
|
//#region src/version.js
|
|
11909
|
-
const PACKAGE_VERSION = "3.2.
|
|
11942
|
+
const PACKAGE_VERSION = "3.2.27";
|
|
11910
11943
|
//#endregion
|
|
11911
11944
|
//#region src/client-recovery.js
|
|
11912
11945
|
async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = endpoint === "usage" || endpoint.startsWith("usage/") ? 3e4 : 1e4) {
|
|
@@ -18908,6 +18941,40 @@ void main(){
|
|
|
18908
18941
|
})]
|
|
18909
18942
|
});
|
|
18910
18943
|
}
|
|
18944
|
+
function CustomInstructionsPreference({ preference, snapshot, t }) {
|
|
18945
|
+
const id = (0, react.useId)();
|
|
18946
|
+
const [draft, setDraft] = (0, react.useState)(null);
|
|
18947
|
+
const saved = snapshot[CUSTOM_INSTRUCTIONS_FIELD];
|
|
18948
|
+
const value = draft ?? saved;
|
|
18949
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18950
|
+
className: "codexCustomInstructions",
|
|
18951
|
+
children: [
|
|
18952
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
18953
|
+
as: "label",
|
|
18954
|
+
htmlFor: id,
|
|
18955
|
+
children: t("customInstructionsTitle")
|
|
18956
|
+
}),
|
|
18957
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t("customInstructionsHint") }),
|
|
18958
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("textarea", {
|
|
18959
|
+
id,
|
|
18960
|
+
value,
|
|
18961
|
+
rows: 3,
|
|
18962
|
+
maxLength: CUSTOM_INSTRUCTIONS_LIMIT,
|
|
18963
|
+
disabled: snapshot.status !== "ready" || snapshot.hostReadOnly || snapshot.saving,
|
|
18964
|
+
onChange: (event) => setDraft(event.target.value)
|
|
18965
|
+
}),
|
|
18966
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
18967
|
+
variant: "outline",
|
|
18968
|
+
size: "sm",
|
|
18969
|
+
disabled: !ready(snapshot) || value === saved,
|
|
18970
|
+
onClick: async () => {
|
|
18971
|
+
if (await preference.set({ ["customInstructions"]: value })) setDraft(null);
|
|
18972
|
+
},
|
|
18973
|
+
children: t("customInstructionsSave")
|
|
18974
|
+
})
|
|
18975
|
+
]
|
|
18976
|
+
});
|
|
18977
|
+
}
|
|
18911
18978
|
function ModelsPage({ preference, t, defaultModel, rpc, active, accountKey }) {
|
|
18912
18979
|
const snapshot = usePreferenceSnapshot(preference);
|
|
18913
18980
|
const loaded = snapshot.status === "ready";
|
|
@@ -19022,6 +19089,12 @@ void main(){
|
|
|
19022
19089
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(InputImageDetailPreference, {
|
|
19023
19090
|
preference,
|
|
19024
19091
|
t
|
|
19092
|
+
}),
|
|
19093
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "codexSubscriptionDivider" }),
|
|
19094
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CustomInstructionsPreference, {
|
|
19095
|
+
preference,
|
|
19096
|
+
snapshot,
|
|
19097
|
+
t
|
|
19025
19098
|
})
|
|
19026
19099
|
]
|
|
19027
19100
|
}),
|
package/lib/index.js
CHANGED
|
@@ -16,14 +16,12 @@ import * as dshLlm from "@deepseek-ai/dsh-llm";
|
|
|
16
16
|
import { LlmError, createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
17
17
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
18
18
|
import { openaiCodexProvider as createOpenAICodexProvider } from "@earendil-works/pi-ai/providers/openai-codex";
|
|
19
|
-
import { isContextOverflow } from "@earendil-works/pi-ai
|
|
20
|
-
import { createModels } from "@earendil-works/pi-ai";
|
|
19
|
+
import { createModels, isContextOverflow } from "@earendil-works/pi-ai";
|
|
21
20
|
import { clientRequestSchema } from "@deepseek-ai/dsh-client-connection";
|
|
22
21
|
import { lstat, mkdir, open, readFile, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
23
22
|
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
23
|
import { homedir, hostname } from "node:os";
|
|
24
|
+
import * as dshCredentials from "@deepseek-ai/dsh-credentials";
|
|
27
25
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
28
26
|
import { PiAiAdapter } from "@deepseek-ai/dsh-llm-pi-ai";
|
|
29
27
|
import { WebError } from "@deepseek-ai/dsh-web";
|
|
@@ -459,6 +457,8 @@ const SPEED_MODE_FAST = "fast";
|
|
|
459
457
|
const SPEED_MODE_ULTRAFAST = "ultrafast";
|
|
460
458
|
const DEFAULT_SPEED_MODE = SPEED_MODE_STANDARD;
|
|
461
459
|
const OUTPUT_VERBOSITY_FIELD = "outputVerbosity";
|
|
460
|
+
const CUSTOM_INSTRUCTIONS_FIELD = "customInstructions";
|
|
461
|
+
const CUSTOM_INSTRUCTIONS_LIMIT = 1500;
|
|
462
462
|
const OUTPUT_VERBOSITY_DEFAULT = "default";
|
|
463
463
|
const OUTPUT_VERBOSITY_MEDIUM = "medium";
|
|
464
464
|
const OUTPUT_VERBOSITY_HIGH = "high";
|
|
@@ -2801,10 +2801,14 @@ function createModelRetryBridge() {
|
|
|
2801
2801
|
const scope = new AsyncLocalStorage();
|
|
2802
2802
|
const wrapStream = (factory, options) => (async function* () {
|
|
2803
2803
|
const hint = createModelRetryHint();
|
|
2804
|
-
const
|
|
2804
|
+
const request = {
|
|
2805
|
+
hint,
|
|
2806
|
+
purpose: options.purpose
|
|
2807
|
+
};
|
|
2808
|
+
const iterator = scope.run(request, () => factory(options)[Symbol.asyncIterator]());
|
|
2805
2809
|
try {
|
|
2806
2810
|
while (true) {
|
|
2807
|
-
const result = await scope.run(
|
|
2811
|
+
const result = await scope.run(request, () => iterator.next());
|
|
2808
2812
|
if (result.done) return;
|
|
2809
2813
|
const event = result.value;
|
|
2810
2814
|
if (event.type === "finish" && event.reason?.kind === "error") yield {
|
|
@@ -2817,11 +2821,12 @@ function createModelRetryBridge() {
|
|
|
2817
2821
|
else yield event;
|
|
2818
2822
|
}
|
|
2819
2823
|
} finally {
|
|
2820
|
-
await scope.run(
|
|
2824
|
+
await scope.run(request, () => iterator.return?.());
|
|
2821
2825
|
}
|
|
2822
2826
|
})();
|
|
2823
2827
|
return {
|
|
2824
|
-
current: () => scope.getStore(),
|
|
2828
|
+
current: () => scope.getStore()?.hint,
|
|
2829
|
+
currentPurpose: () => scope.getStore()?.purpose,
|
|
2825
2830
|
wrapAdapter(adapter) {
|
|
2826
2831
|
return new Proxy(adapter, { get(target, property) {
|
|
2827
2832
|
if (property === "stream") return (options) => wrapStream((o) => target.stream(o), options);
|
|
@@ -3036,7 +3041,7 @@ function isDshAutoReview(context) {
|
|
|
3036
3041
|
* persistence, headers, transport, and model behavior remain owned by the
|
|
3037
3042
|
* original provider.
|
|
3038
3043
|
*/
|
|
3039
|
-
function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, resolveOutputVerbosity = () => OUTPUT_VERBOSITY_DEFAULT, resolveInputImageDetail = () => void 0, resolveReasoningSummary = () => void 0, resolveContextMode = () => void 0, resolveCustomContextWindow = () => void 0, resolveReviewModel = () => REVIEW_MODEL_SESSION, catalog, connection, compaction, reasoning, ultra, runNetwork = (_area, operation) => operation(), runOAuthRefresh = (operation) => operation(), beginModelAttempt = createModelAttempt, providerFactory = createOpenAICodexProvider } = {}) {
|
|
3044
|
+
function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, resolveCustomInstructions = () => "", resolveOutputVerbosity = () => OUTPUT_VERBOSITY_DEFAULT, resolveInputImageDetail = () => void 0, resolveReasoningSummary = () => void 0, resolveContextMode = () => void 0, resolveCustomContextWindow = () => void 0, resolveReviewModel = () => REVIEW_MODEL_SESSION, catalog, connection, compaction, reasoning, ultra, runNetwork = (_area, operation) => operation(), runOAuthRefresh = (operation) => operation(), beginModelAttempt = createModelAttempt, providerFactory = createOpenAICodexProvider } = {}) {
|
|
3040
3045
|
const provider = providerFactory();
|
|
3041
3046
|
const streamHealth = createModelStreamHealth({ log: (level, message) => diagnosticLog.log(level, "model-stream", message) });
|
|
3042
3047
|
const retryBridge = createModelRetryBridge();
|
|
@@ -3053,7 +3058,7 @@ function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, reso
|
|
|
3053
3058
|
});
|
|
3054
3059
|
const modelMetadata = (model) => catalog?.metadata?.(model?.id);
|
|
3055
3060
|
const supportsVerbosity = (model) => modelMetadata(model)?.supportVerbosity ?? model?.id !== "gpt-5.3-codex-spark";
|
|
3056
|
-
const withPreferences = (model, options = {}) => {
|
|
3061
|
+
const withPreferences = (model, options = {}, instructions = "") => {
|
|
3057
3062
|
const metadata = modelMetadata(model);
|
|
3058
3063
|
const requestedVerbosity = resolveOutputVerbosity();
|
|
3059
3064
|
const textVerbosity = supportsVerbosity(model) ? requestedVerbosity === "default" ? metadata?.defaultVerbosity ?? "medium" : requestedVerbosity : void 0;
|
|
@@ -3070,6 +3075,7 @@ function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, reso
|
|
|
3070
3075
|
async onPayload(payload, requestModel) {
|
|
3071
3076
|
const preferred = {
|
|
3072
3077
|
...payload,
|
|
3078
|
+
...instructions ? { instructions: [payload.instructions, "User response preferences (apply as defaults when compatible with the current request, workspace instructions, and host policies):\n" + instructions].filter(Boolean).join("\n\n") } : {},
|
|
3073
3079
|
...textVerbosity === void 0 ? {} : { text: {
|
|
3074
3080
|
...payload.text ?? {},
|
|
3075
3081
|
verbosity: textVerbosity
|
|
@@ -3404,15 +3410,18 @@ function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, reso
|
|
|
3404
3410
|
};
|
|
3405
3411
|
const routed = (method, model, transcript, options) => {
|
|
3406
3412
|
const context = understandsSystemMessages(runtimeVersions().piAi) ? transcript : hoistLeadingSystem(transcript);
|
|
3413
|
+
const reviewRequest = isDshAutoReview(context);
|
|
3407
3414
|
const route = reviewRoute(model, context);
|
|
3415
|
+
const purpose = options?.purpose ?? retryBridge.currentPurpose();
|
|
3416
|
+
const instructions = !reviewRequest && purpose === void 0 ? resolveCustomInstructions()?.trim() : "";
|
|
3408
3417
|
const source = {
|
|
3409
3418
|
method,
|
|
3410
3419
|
model,
|
|
3411
3420
|
context,
|
|
3412
3421
|
options
|
|
3413
3422
|
};
|
|
3414
|
-
const create = () => route === void 0 ? networkIterable((prepared) => provider[method](model, context, prepared), withPreferences(model, options
|
|
3415
|
-
return
|
|
3423
|
+
const create = () => route === void 0 ? networkIterable((prepared) => provider[method](model, context, prepared), withPreferences(model, options, instructions), reviewRequest, source) : networkIterable((prepared) => provider[method](model, context, prepared), withReview(route, options), true, source);
|
|
3424
|
+
return reviewRequest ? reviewIterable(create) : create();
|
|
3416
3425
|
};
|
|
3417
3426
|
return Object.freeze({
|
|
3418
3427
|
...provider,
|
|
@@ -3435,6 +3444,7 @@ function openaiCodexSubscriptionProvider({ resolveSpeedMode = () => void 0, reso
|
|
|
3435
3444
|
});
|
|
3436
3445
|
}
|
|
3437
3446
|
Object.freeze([
|
|
3447
|
+
"0.82.1",
|
|
3438
3448
|
"0.85.1",
|
|
3439
3449
|
"0.87.1",
|
|
3440
3450
|
"1.1.0",
|
|
@@ -5085,9 +5095,71 @@ function inheritedOriginalImageRef(session, assetId) {
|
|
|
5085
5095
|
}
|
|
5086
5096
|
//#endregion
|
|
5087
5097
|
//#region src/version.js
|
|
5088
|
-
const PACKAGE_VERSION = "3.2.
|
|
5098
|
+
const PACKAGE_VERSION = "3.2.27";
|
|
5089
5099
|
const USER_AGENT = `dsh-codex-subscription/${PACKAGE_VERSION}`;
|
|
5090
5100
|
//#endregion
|
|
5101
|
+
//#region node_modules/@deepseek-ai/dsh-home-paths/lib/index.js
|
|
5102
|
+
/**
|
|
5103
|
+
* Shared filesystem path helpers for DeepSeek Harness user data.
|
|
5104
|
+
*
|
|
5105
|
+
* @module @deepseek-ai/dsh-home-paths
|
|
5106
|
+
*/
|
|
5107
|
+
/** Directory name for the default DeepSeek Harness home under the OS home. */
|
|
5108
|
+
const DSH_HOME_DIR_NAME = ".dsh";
|
|
5109
|
+
/** Environment variable that overrides the default DeepSeek Harness home. */
|
|
5110
|
+
const DSH_HOME_ENV = "DSH_HOME";
|
|
5111
|
+
/**
|
|
5112
|
+
* Resolve the default DeepSeek Harness home using Node's platform path rules.
|
|
5113
|
+
* @returns the absolute default harness home path.
|
|
5114
|
+
*/
|
|
5115
|
+
function defaultDshHome() {
|
|
5116
|
+
return join(homedir(), DSH_HOME_DIR_NAME);
|
|
5117
|
+
}
|
|
5118
|
+
/**
|
|
5119
|
+
* Expand supported tilde prefixes against the operating-system home.
|
|
5120
|
+
* @param path - configured path that may begin with `~`, `~/`, or `~\`.
|
|
5121
|
+
* @returns the expanded path, or the original value when no supported prefix is present.
|
|
5122
|
+
*/
|
|
5123
|
+
function expandHomePath(path) {
|
|
5124
|
+
if (path === "~") return homedir();
|
|
5125
|
+
if (path.startsWith("~/") || path.startsWith("~\\")) return join(homedir(), path.slice(2));
|
|
5126
|
+
return path;
|
|
5127
|
+
}
|
|
5128
|
+
/**
|
|
5129
|
+
* Resolve one user-data root from an explicit path, an environment override, and a default.
|
|
5130
|
+
* @param configured - explicit path, which has highest precedence.
|
|
5131
|
+
* @param env - environment mapping to read.
|
|
5132
|
+
* @param envName - environment variable that overrides the default.
|
|
5133
|
+
* @param fallback - default root, used when neither the explicit path nor the environment provides one.
|
|
5134
|
+
* @returns the normalized absolute root.
|
|
5135
|
+
*/
|
|
5136
|
+
function resolveRoot(configured, env, envName, fallback) {
|
|
5137
|
+
const fromEnv = env[envName];
|
|
5138
|
+
return resolve(expandHomePath(configured ?? (fromEnv !== void 0 && fromEnv.trim().length > 0 ? fromEnv : fallback())));
|
|
5139
|
+
}
|
|
5140
|
+
/**
|
|
5141
|
+
* Resolve the single-root DeepSeek Harness home.
|
|
5142
|
+
*
|
|
5143
|
+
* Precedence, highest first: an explicit configured path, `$DSH_HOME`, then
|
|
5144
|
+
* `~/.dsh`. The harness keeps all user data under one root. An empty or
|
|
5145
|
+
* whitespace-only `$DSH_HOME` is treated as unset, so a blank override never
|
|
5146
|
+
* resolves the home to the current working directory.
|
|
5147
|
+
* @param configured - explicit harness-home override, which has highest precedence.
|
|
5148
|
+
* @param env - environment mapping used to read `DSH_HOME`.
|
|
5149
|
+
* @returns the normalized absolute harness home path.
|
|
5150
|
+
*/
|
|
5151
|
+
function resolveDshHome(configured, env = process.env) {
|
|
5152
|
+
return resolveRoot(configured, env, DSH_HOME_ENV, defaultDshHome);
|
|
5153
|
+
}
|
|
5154
|
+
/**
|
|
5155
|
+
* Join path segments onto the resolved DeepSeek Harness home.
|
|
5156
|
+
* @param segments - path segments appended to the Harness home; an empty list returns the home itself.
|
|
5157
|
+
* @returns the normalized absolute joined path.
|
|
5158
|
+
*/
|
|
5159
|
+
function dshHomePath(...segments) {
|
|
5160
|
+
return join(resolveDshHome(), ...segments);
|
|
5161
|
+
}
|
|
5162
|
+
//#endregion
|
|
5091
5163
|
//#region src/image-original-store.js
|
|
5092
5164
|
const ORIGINAL_IMAGE_DIRECTORY = "dsh-codex-subscription/images/v1";
|
|
5093
5165
|
const METADATA_VERSION = 1;
|
|
@@ -17637,6 +17709,11 @@ function createSubscriptionRpcHandler({ authHandler, usageReader, accountUsageRe
|
|
|
17637
17709
|
let liveSynced = true;
|
|
17638
17710
|
if (endpoint === "preferences/update") {
|
|
17639
17711
|
patch = capabilityPatch(payload);
|
|
17712
|
+
if (Object.hasOwn(payload ?? {}, "customInstructions")) {
|
|
17713
|
+
const instructions = payload[CUSTOM_INSTRUCTIONS_FIELD];
|
|
17714
|
+
if (typeof instructions !== "string" || instructions.length > 1500) return publicError("internal", "Invalid custom instructions preference");
|
|
17715
|
+
patch[CUSTOM_INSTRUCTIONS_FIELD] = instructions;
|
|
17716
|
+
}
|
|
17640
17717
|
if (Object.hasOwn(payload ?? {}, "disabledModels")) {
|
|
17641
17718
|
const disabled = payload[DISABLED_MODELS_FIELD];
|
|
17642
17719
|
if (!Array.isArray(disabled) || disabled.length > 100 || disabled.length !== normalizeDisabledModels(disabled).length) return publicError("internal", "Invalid disabled models preference");
|
|
@@ -18938,6 +19015,7 @@ const settingsFields = {
|
|
|
18938
19015
|
webFetchFallbackProvider: z.string(),
|
|
18939
19016
|
[DISABLED_MODELS_FIELD]: z.transform(z.array(z.string()).max(100), normalizeDisabledModels).default([]),
|
|
18940
19017
|
[AUTO_QUOTA_RETRY_FIELD]: z.boolean().default(false),
|
|
19018
|
+
[CUSTOM_INSTRUCTIONS_FIELD]: z.string().max(CUSTOM_INSTRUCTIONS_LIMIT).default(""),
|
|
18941
19019
|
subagentDefaultModel: z.transform(z.string().max(80), normalizeSubagentModel).default(""),
|
|
18942
19020
|
...Object.fromEntries(Object.entries(PREFERENCE_FIELDS).map(([field, rule]) => [field, rule.default === void 0 ? z.union(rule.choices) : z.union(rule.choices).default(rule.default)])),
|
|
18943
19021
|
imageModel: z.union(Object.keys(IMAGE_MODELS)).default(DEFAULT_IMAGE_MODEL),
|
|
@@ -19073,6 +19151,7 @@ function apply(ctx, config = {}) {
|
|
|
19073
19151
|
compaction,
|
|
19074
19152
|
reasoning,
|
|
19075
19153
|
resolveSpeedMode: () => settings.get()[SPEED_MODE_FIELD],
|
|
19154
|
+
resolveCustomInstructions: () => settings.get()[CUSTOM_INSTRUCTIONS_FIELD],
|
|
19076
19155
|
resolveOutputVerbosity: () => normalizeOutputVerbosity(settings.get()[OUTPUT_VERBOSITY_FIELD]),
|
|
19077
19156
|
resolveInputImageDetail: () => settings.get()[INPUT_IMAGE_DETAIL_FIELD],
|
|
19078
19157
|
resolveReasoningSummary: () => settings.get()[REASONING_SUMMARY_FIELD],
|
|
@@ -19124,6 +19203,7 @@ function apply(ctx, config = {}) {
|
|
|
19124
19203
|
fetchRoutingAvailable: fetchRouted,
|
|
19125
19204
|
[SPEED_MODE_FIELD]: settings.get()[SPEED_MODE_FIELD],
|
|
19126
19205
|
[SPEED_SHORTCUT_FIELD]: normalizeSpeedShortcut(settings.get()[SPEED_SHORTCUT_FIELD]),
|
|
19206
|
+
[CUSTOM_INSTRUCTIONS_FIELD]: settings.get()["customInstructions"] ?? "",
|
|
19127
19207
|
[OUTPUT_VERBOSITY_FIELD]: normalizeOutputVerbosity(settings.get()[OUTPUT_VERBOSITY_FIELD]),
|
|
19128
19208
|
[INPUT_IMAGE_DETAIL_FIELD]: normalizeInputImageDetail(settings.get()[INPUT_IMAGE_DETAIL_FIELD]),
|
|
19129
19209
|
[REASONING_SUMMARY_FIELD]: normalizeReasoningSummary(settings.get()[REASONING_SUMMARY_FIELD]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-codex-subscription",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.27",
|
|
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",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@deepseek-ai/dsh-tools": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || >=0.2.2-rc.1 <0.2.3-0",
|
|
96
96
|
"@deepseek-ai/dsh-web": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.1 || 0.2.1-alpha.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-alpha.2 || 0.2.2-alpha.3 || >=0.2.2-rc.1 <0.2.3-0",
|
|
97
97
|
"@deepseek-ai/schemastery": "3.18.1 || ^3.18.2 || 3.18.6-alpha.1",
|
|
98
|
-
"@earendil-works/pi-ai": "0.85.1 || 0.87.1 || 1.1.0 || 1.2.0 || 1.3.0 || 1.4.0 || 1.5.0 || 1.5.1 || 1.5.2",
|
|
98
|
+
"@earendil-works/pi-ai": "0.82.1 || 0.85.1 || 0.87.1 || 1.1.0 || 1.2.0 || 1.3.0 || 1.4.0 || 1.5.0 || 1.5.1 || 1.5.2",
|
|
99
99
|
"react": "^18.2.0",
|
|
100
100
|
"react-dom": "^18.2.0"
|
|
101
101
|
},
|
|
@@ -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"
|