dsh-codex-subscription 3.2.12 → 3.2.14
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 +262 -83
- package/lib/index.js +37 -6
- package/package.json +2 -1
package/README.de.md
CHANGED
|
@@ -82,7 +82,7 @@ Dieses Plugin unterstützt die neueste DeepSeek-Harness-Version, die in seinen P
|
|
|
82
82
|
2. Füge diesen Paketnamen einschließlich Version in das Feld **Paketname oder Adresse** ein:
|
|
83
83
|
|
|
84
84
|
```text
|
|
85
|
-
dsh-codex-subscription@3.2.
|
|
85
|
+
dsh-codex-subscription@3.2.14
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
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.
|
|
@@ -99,7 +99,7 @@ Warum die Version angegeben ist: Auf der Plugin-Seite von DSH werden nur Version
|
|
|
99
99
|
<summary>Installation über das Terminal (mit einem vorhandenen dsh-Befehl)</summary>
|
|
100
100
|
|
|
101
101
|
```sh
|
|
102
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
102
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.14
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
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.
|
|
@@ -112,7 +112,7 @@ Folge den Anweisungen zum Neustart und melde dich anschließend unter **Einstell
|
|
|
112
112
|
Melde dich an und wähle in Web ein Codex-Modell aus. Installiere anschließend dasselbe Plugin im Headless-Profil:
|
|
113
113
|
|
|
114
114
|
```sh
|
|
115
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
115
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.14
|
|
116
116
|
dsh --profile headless "Reply with only the word: ok"
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -392,7 +392,7 @@ Suche dieses Plugin auf der DSH-Seite **Plugins** und verwende dort die Aktion z
|
|
|
392
392
|
<summary>Terminalbefehle</summary>
|
|
393
393
|
|
|
394
394
|
```sh
|
|
395
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
395
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.14
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
Nur ausführen, wenn du deinstallieren möchtest:
|
package/README.en.md
CHANGED
|
@@ -82,7 +82,7 @@ This plugin supports the latest DeepSeek Harness release recorded in its package
|
|
|
82
82
|
2. Paste this package name, with its version, into the **Package name or address** field:
|
|
83
83
|
|
|
84
84
|
```text
|
|
85
|
-
dsh-codex-subscription@3.2.
|
|
85
|
+
dsh-codex-subscription@3.2.14
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
3. Click **Install** and wait for completion. Follow the page instructions; save your work before restarting if requested.
|
|
@@ -99,7 +99,7 @@ Why the version is included: DSH's plugin page only installs versions that are a
|
|
|
99
99
|
<summary>Terminal installation (with an existing dsh command)</summary>
|
|
100
100
|
|
|
101
101
|
```sh
|
|
102
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
102
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.14
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
Follow the restart instructions, then sign in under **Settings → Codex**. Both the Plugins page and the terminal use DSH's installation management.
|
|
@@ -112,7 +112,7 @@ Follow the restart instructions, then sign in under **Settings → Codex**. Both
|
|
|
112
112
|
After signing in and selecting a Codex model in Web, install the same plugin in the Headless profile:
|
|
113
113
|
|
|
114
114
|
```sh
|
|
115
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
115
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.14
|
|
116
116
|
dsh --profile headless "Reply with only the word: ok"
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -392,7 +392,7 @@ Find this plugin on the DSH **Plugins** page and use its update or uninstall act
|
|
|
392
392
|
<summary>Terminal commands</summary>
|
|
393
393
|
|
|
394
394
|
```sh
|
|
395
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
395
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.14
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
Run only when you want to uninstall:
|
package/README.es.md
CHANGED
|
@@ -82,7 +82,7 @@ Este complemento es compatible con la versión más reciente de DeepSeek Harness
|
|
|
82
82
|
2. Pega el nombre de este paquete, incluida su versión, en el campo **Nombre o dirección del paquete**:
|
|
83
83
|
|
|
84
84
|
```text
|
|
85
|
-
dsh-codex-subscription@3.2.
|
|
85
|
+
dsh-codex-subscription@3.2.14
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
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.
|
|
@@ -99,7 +99,7 @@ Por qué se incluye la versión: la página de complementos de DSH solo instala
|
|
|
99
99
|
<summary>Instalación desde la terminal (con un comando dsh existente)</summary>
|
|
100
100
|
|
|
101
101
|
```sh
|
|
102
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
102
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.14
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
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.
|
|
@@ -112,7 +112,7 @@ Sigue las instrucciones para reiniciar y luego inicia sesión en **Configuració
|
|
|
112
112
|
Después de iniciar sesión y seleccionar un modelo de Codex en Web, instala el mismo complemento en el perfil Headless:
|
|
113
113
|
|
|
114
114
|
```sh
|
|
115
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
115
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.14
|
|
116
116
|
dsh --profile headless "Reply with only the word: ok"
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -392,7 +392,7 @@ Busca este plugin en la página **Complementos** de DSH y usa la opción de actu
|
|
|
392
392
|
<summary>Comandos de terminal</summary>
|
|
393
393
|
|
|
394
394
|
```sh
|
|
395
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
395
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.14
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
Ejecuta solo si quieres desinstalarlo:
|
package/README.fr.md
CHANGED
|
@@ -82,7 +82,7 @@ Ce plugin prend en charge la dernière version de DeepSeek Harness indiquée dan
|
|
|
82
82
|
2. Collez ce nom de package, avec sa version, dans le champ **Nom ou adresse du package** :
|
|
83
83
|
|
|
84
84
|
```text
|
|
85
|
-
dsh-codex-subscription@3.2.
|
|
85
|
+
dsh-codex-subscription@3.2.14
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
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é.
|
|
@@ -99,7 +99,7 @@ Pourquoi inclure la version : la page des plugins de DSH n’installe que des ve
|
|
|
99
99
|
<summary>Installation dans le terminal (avec une commande dsh déjà installée)</summary>
|
|
100
100
|
|
|
101
101
|
```sh
|
|
102
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
102
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.14
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
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.
|
|
@@ -112,7 +112,7 @@ Suivez les instructions de redémarrage, puis connectez-vous dans **Paramètres
|
|
|
112
112
|
Après vous être connecté et avoir sélectionné un modèle Codex dans Web, installez le même plugin dans le profil Headless :
|
|
113
113
|
|
|
114
114
|
```sh
|
|
115
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
115
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.14
|
|
116
116
|
dsh --profile headless "Reply with only the word: ok"
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -392,7 +392,7 @@ Trouvez ce plugin sur la page **Plugins** de DSH et utilisez l’action de mise
|
|
|
392
392
|
<summary>Commandes de terminal</summary>
|
|
393
393
|
|
|
394
394
|
```sh
|
|
395
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
395
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.14
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
À exécuter uniquement si vous souhaitez désinstaller :
|
package/README.ja.md
CHANGED
|
@@ -82,7 +82,7 @@ DSH `0.2.2-rc.1` CLI/Web には Node.js **24.9 以降**が必要です。公式
|
|
|
82
82
|
2. バージョンを含めた以下のパッケージ名を、**パッケージ名またはアドレス**欄に貼り付けます。
|
|
83
83
|
|
|
84
84
|
```text
|
|
85
|
-
dsh-codex-subscription@3.2.
|
|
85
|
+
dsh-codex-subscription@3.2.14
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
3. **インストール**をクリックし、完了するまで待ちます。ページの指示に従ってください。再起動を求められた場合は、その前に作業内容を保存してください。
|
|
@@ -99,7 +99,7 @@ DSH `0.2.2-rc.1` CLI/Web には Node.js **24.9 以降**が必要です。公式
|
|
|
99
99
|
<summary>ターミナルからインストール(dsh コマンドがすでにある場合)</summary>
|
|
100
100
|
|
|
101
101
|
```sh
|
|
102
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
102
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.14
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
再起動の指示に従い、その後 **設定 → Codex** でサインインしてください。プラグインページとターミナルのどちらからインストールしても、DSH のインストール管理機能が使用されます。
|
|
@@ -112,7 +112,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.12
|
|
|
112
112
|
Web でサインインし、Codex モデルを選択した後、Headless プロファイルにも同じプラグインをインストールします。
|
|
113
113
|
|
|
114
114
|
```sh
|
|
115
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
115
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.14
|
|
116
116
|
dsh --profile headless "Reply with only the word: ok"
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -392,7 +392,7 @@ DSH の **プラグイン** ページでこのプラグインを見つけ、更
|
|
|
392
392
|
<summary>ターミナルコマンド</summary>
|
|
393
393
|
|
|
394
394
|
```sh
|
|
395
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
395
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.14
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
アンインストールする場合にのみ実行してください:
|
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ DSH `0.2.2-rc.1` 的 CLI/Web 模式需要 Node.js **24.9 或更高版本**;官
|
|
|
74
74
|
2. 在 **包名或地址** 输入框中粘贴下面的包名(已带版本号):
|
|
75
75
|
|
|
76
76
|
```text
|
|
77
|
-
dsh-codex-subscription@3.2.
|
|
77
|
+
dsh-codex-subscription@3.2.14
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
|
|
@@ -91,7 +91,7 @@ DSH `0.2.2-rc.1` 的 CLI/Web 模式需要 Node.js **24.9 或更高版本**;官
|
|
|
91
91
|
<summary>终端安装(已能运行 dsh 命令)</summary>
|
|
92
92
|
|
|
93
93
|
```sh
|
|
94
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
94
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.14
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
安装完成后按提示重启 DSH,再到 **设置 → Codex 订阅** 登录。插件页面和终端均由 DSH 管理安装。
|
|
@@ -104,7 +104,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.12
|
|
|
104
104
|
先在 Web 中完成登录并选择一次 Codex 模型,再把同一个插件安装到 Headless profile:
|
|
105
105
|
|
|
106
106
|
```sh
|
|
107
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
107
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.14
|
|
108
108
|
dsh --profile headless "只回复:ok"
|
|
109
109
|
```
|
|
110
110
|
|
|
@@ -368,7 +368,7 @@ Agent 先在画板绘制可编辑草图,再以该草图为参考调用订阅
|
|
|
368
368
|
<summary>终端方式</summary>
|
|
369
369
|
|
|
370
370
|
```sh
|
|
371
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
371
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.14
|
|
372
372
|
```
|
|
373
373
|
|
|
374
374
|
仅在需要卸载时运行:
|
package/README.pt.md
CHANGED
|
@@ -82,7 +82,7 @@ Este plugin é compatível com a versão mais recente do DeepSeek Harness regist
|
|
|
82
82
|
2. Cole o nome deste pacote, com a versão, no campo **Nome ou endereço do pacote**:
|
|
83
83
|
|
|
84
84
|
```text
|
|
85
|
-
dsh-codex-subscription@3.2.
|
|
85
|
+
dsh-codex-subscription@3.2.14
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
3. Clique em **Instalar** e aguarde a conclusão. Siga as instruções da página; salve seu trabalho antes de reiniciar, se solicitado.
|
|
@@ -99,7 +99,7 @@ Por que a versão está incluída: a página de plugins do DSH só instala vers
|
|
|
99
99
|
<summary>Instalação pelo terminal (com um comando dsh existente)</summary>
|
|
100
100
|
|
|
101
101
|
```sh
|
|
102
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
102
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.14
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
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.
|
|
@@ -112,7 +112,7 @@ Siga as instruções para reiniciar e entre em **Configurações → Codex**. Ta
|
|
|
112
112
|
Depois de entrar e selecionar um modelo Codex na versão Web, instale o mesmo plugin no perfil Headless:
|
|
113
113
|
|
|
114
114
|
```sh
|
|
115
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
115
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.14
|
|
116
116
|
dsh --profile headless "Reply with only the word: ok"
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -392,7 +392,7 @@ Encontre este plugin na página **Plugins** do DSH e use a opção de atualizaç
|
|
|
392
392
|
<summary>Comandos do terminal</summary>
|
|
393
393
|
|
|
394
394
|
```sh
|
|
395
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
395
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.14
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
Execute somente quando quiser desinstalar:
|
package/README.ru.md
CHANGED
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
2. Вставьте имя этого пакета вместе с его версией в поле **Package name or address**:
|
|
83
83
|
|
|
84
84
|
```text
|
|
85
|
-
dsh-codex-subscription@3.2.
|
|
85
|
+
dsh-codex-subscription@3.2.14
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
3. Нажмите **Install** и дождитесь завершения. Следуйте инструкциям на странице; если будет предложено перезапустить приложение, перед этим сохраните свою работу.
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
<summary>Установка через терминал (если команда dsh уже установлена)</summary>
|
|
100
100
|
|
|
101
101
|
```sh
|
|
102
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
102
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.14
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
Следуйте инструкциям по перезапуску, затем войдите в систему в разделе **Настройки → Codex**. И страница «Плагины», и терминал используют систему управления установками DSH.
|
|
@@ -112,7 +112,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.12
|
|
|
112
112
|
Войдите в систему и выберите модель Codex в Web, затем установите тот же плагин в профиле Headless:
|
|
113
113
|
|
|
114
114
|
```sh
|
|
115
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
115
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.14
|
|
116
116
|
dsh --profile headless "Reply with only the word: ok"
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -392,7 +392,7 @@ DSH управляет диалогами, подтверждениями инс
|
|
|
392
392
|
<summary>Команды терминала</summary>
|
|
393
393
|
|
|
394
394
|
```sh
|
|
395
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
395
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.14
|
|
396
396
|
```
|
|
397
397
|
|
|
398
398
|
Запускайте только в том случае, если хотите удалить плагин:
|
package/README.zh-CN.md
CHANGED
|
@@ -74,7 +74,7 @@ DSH `0.2.2-rc.1` 的 CLI/Web 模式需要 Node.js **24.9 或更高版本**;官
|
|
|
74
74
|
2. 在 **包名或地址** 输入框中粘贴下面的包名(已带版本号):
|
|
75
75
|
|
|
76
76
|
```text
|
|
77
|
-
dsh-codex-subscription@3.2.
|
|
77
|
+
dsh-codex-subscription@3.2.14
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
3. 点击 **安装**,等待安装完成;按页面提示操作,需要重启时先保存工作。
|
|
@@ -91,7 +91,7 @@ DSH `0.2.2-rc.1` 的 CLI/Web 模式需要 Node.js **24.9 或更高版本**;官
|
|
|
91
91
|
<summary>终端安装(已能运行 dsh 命令)</summary>
|
|
92
92
|
|
|
93
93
|
```sh
|
|
94
|
-
dsh plugin --profile web add dsh-codex-subscription@3.2.
|
|
94
|
+
dsh plugin --profile web add dsh-codex-subscription@3.2.14
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
安装完成后按提示重启 DSH,再到 **设置 → Codex 订阅** 登录。插件页面和终端均由 DSH 管理安装。
|
|
@@ -104,7 +104,7 @@ dsh plugin --profile web add dsh-codex-subscription@3.2.12
|
|
|
104
104
|
先在 Web 中完成登录并选择一次 Codex 模型,再把同一个插件安装到 Headless profile:
|
|
105
105
|
|
|
106
106
|
```sh
|
|
107
|
-
dsh plugin --profile headless add dsh-codex-subscription@3.2.
|
|
107
|
+
dsh plugin --profile headless add dsh-codex-subscription@3.2.14
|
|
108
108
|
dsh --profile headless "只回复:ok"
|
|
109
109
|
```
|
|
110
110
|
|
|
@@ -368,7 +368,7 @@ Agent 先在画板绘制可编辑草图,再以该草图为参考调用订阅
|
|
|
368
368
|
<summary>终端方式</summary>
|
|
369
369
|
|
|
370
370
|
```sh
|
|
371
|
-
dsh plugin --profile web update dsh-codex-subscription@3.2.
|
|
371
|
+
dsh plugin --profile web update dsh-codex-subscription@3.2.14
|
|
372
372
|
```
|
|
373
373
|
|
|
374
374
|
仅在需要卸载时运行:
|
package/lib/client.js
CHANGED
|
@@ -867,12 +867,20 @@ window.__ModuleLoader__.load({
|
|
|
867
867
|
function useDismissOnOutsidePointer(anchor, open, dismiss, panel) {
|
|
868
868
|
(0, react.useEffect)(() => {
|
|
869
869
|
if (!open) return;
|
|
870
|
-
const doc = anchor.current?.ownerDocument;
|
|
870
|
+
const doc = anchor.current?.ownerDocument ?? panel.current?.ownerDocument;
|
|
871
871
|
const outside = (event) => {
|
|
872
872
|
if (!anchor.current?.contains(event.target) && !panel.current?.contains(event.target)) dismiss();
|
|
873
873
|
};
|
|
874
|
-
doc?.addEventListener("pointerdown", outside);
|
|
875
|
-
|
|
874
|
+
doc?.addEventListener("pointerdown", outside, true);
|
|
875
|
+
doc?.addEventListener("focusin", outside, true);
|
|
876
|
+
doc?.defaultView?.addEventListener("blur", dismiss);
|
|
877
|
+
doc?.defaultView?.addEventListener("resize", dismiss);
|
|
878
|
+
return () => {
|
|
879
|
+
doc?.removeEventListener("pointerdown", outside, true);
|
|
880
|
+
doc?.removeEventListener("focusin", outside, true);
|
|
881
|
+
doc?.defaultView?.removeEventListener("blur", dismiss);
|
|
882
|
+
doc?.defaultView?.removeEventListener("resize", dismiss);
|
|
883
|
+
};
|
|
876
884
|
}, [
|
|
877
885
|
anchor,
|
|
878
886
|
open,
|
|
@@ -2906,13 +2914,13 @@ window.__ModuleLoader__.load({
|
|
|
2906
2914
|
runwayMinutes: "{minutes} 分钟",
|
|
2907
2915
|
"composerSettingsTitle": "输入框",
|
|
2908
2916
|
"defaultSpeedTitle": "默认速度",
|
|
2909
|
-
"composerMenuCustom": "
|
|
2917
|
+
"composerMenuCustom": "已启用模型菜单扩展",
|
|
2910
2918
|
"composerMenuHost": "由 DSH 或其他插件提供模型菜单",
|
|
2911
2919
|
"legacyModelPicker": "输入框模型菜单",
|
|
2912
2920
|
"composerMenuAuto": "自动",
|
|
2913
2921
|
"composerMenuDsh": "DSH 标准",
|
|
2914
2922
|
"composerMenuSubscription": "订阅菜单",
|
|
2915
|
-
"legacyModelPickerHint": "
|
|
2923
|
+
"legacyModelPickerHint": "通过 DSH 的扩展位置添加速度和回答详略,不替换其他插件的菜单。第三方菜单未显示这些选项时,仍可在此设置。",
|
|
2916
2924
|
speedTitle: "速度",
|
|
2917
2925
|
speedStandard: "标准",
|
|
2918
2926
|
speedStandardHint: "标准速度",
|
|
@@ -3851,13 +3859,13 @@ window.__ModuleLoader__.load({
|
|
|
3851
3859
|
runwayMinutes: "{minutes}m",
|
|
3852
3860
|
"composerSettingsTitle": "Composer",
|
|
3853
3861
|
"defaultSpeedTitle": "Default speed",
|
|
3854
|
-
"composerMenuCustom": "
|
|
3862
|
+
"composerMenuCustom": "Model menu extensions enabled",
|
|
3855
3863
|
"composerMenuHost": "Model menu provided by DSH or another plugin",
|
|
3856
3864
|
"legacyModelPicker": "Composer model menu",
|
|
3857
3865
|
"composerMenuAuto": "Auto",
|
|
3858
3866
|
"composerMenuDsh": "DSH standard",
|
|
3859
3867
|
"composerMenuSubscription": "Subscription",
|
|
3860
|
-
"legacyModelPickerHint": "
|
|
3868
|
+
"legacyModelPickerHint": "Adds speed and output detail through DSH extension slots without replacing another plugin's menu. These settings remain available here if that menu does not show them.",
|
|
3861
3869
|
speedTitle: "Speed",
|
|
3862
3870
|
speedStandard: "Standard",
|
|
3863
3871
|
speedStandardHint: "Standard speed",
|
|
@@ -4796,13 +4804,13 @@ window.__ModuleLoader__.load({
|
|
|
4796
4804
|
"runwayMinutes": "{minutes}分",
|
|
4797
4805
|
"composerSettingsTitle": "入力欄",
|
|
4798
4806
|
"defaultSpeedTitle": "既定の速度",
|
|
4799
|
-
"composerMenuCustom": "
|
|
4807
|
+
"composerMenuCustom": "モデルメニューの拡張が有効",
|
|
4800
4808
|
"composerMenuHost": "DSH または他のプラグインのメニューを使用",
|
|
4801
4809
|
"legacyModelPicker": "入力欄のモデルメニュー",
|
|
4802
4810
|
"composerMenuAuto": "自動",
|
|
4803
4811
|
"composerMenuDsh": "DSH 標準",
|
|
4804
4812
|
"composerMenuSubscription": "購読メニュー",
|
|
4805
|
-
"legacyModelPickerHint": "
|
|
4813
|
+
"legacyModelPickerHint": "DSH の拡張枠に速度と回答の詳しさを追加し、他のプラグインのメニューは置き換えません。対応しないメニューでも、ここから設定できます。",
|
|
4806
4814
|
"speedTitle": "速度",
|
|
4807
4815
|
"speedStandard": "標準",
|
|
4808
4816
|
"speedStandardHint": "標準速度",
|
|
@@ -5741,13 +5749,13 @@ window.__ModuleLoader__.load({
|
|
|
5741
5749
|
"runwayMinutes": "{minutes} min",
|
|
5742
5750
|
"composerSettingsTitle": "Cuadro de mensaje",
|
|
5743
5751
|
"defaultSpeedTitle": "Velocidad predeterminada",
|
|
5744
|
-
"composerMenuCustom": "
|
|
5752
|
+
"composerMenuCustom": "Extensiones del menú de modelos activadas",
|
|
5745
5753
|
"composerMenuHost": "Menú de DSH u otro complemento",
|
|
5746
5754
|
"legacyModelPicker": "Menú de modelos del cuadro de entrada",
|
|
5747
5755
|
"composerMenuAuto": "Auto",
|
|
5748
5756
|
"composerMenuDsh": "Estándar de DSH",
|
|
5749
5757
|
"composerMenuSubscription": "Suscripción",
|
|
5750
|
-
"legacyModelPickerHint": "
|
|
5758
|
+
"legacyModelPickerHint": "Añade velocidad y detalle mediante los puntos de extensión de DSH sin sustituir el menú de otro complemento. Si ese menú no muestra las opciones, siguen disponibles aquí.",
|
|
5751
5759
|
"speedTitle": "Velocidad",
|
|
5752
5760
|
"speedStandard": "Estándar",
|
|
5753
5761
|
"speedStandardHint": "Velocidad estándar",
|
|
@@ -6686,13 +6694,13 @@ window.__ModuleLoader__.load({
|
|
|
6686
6694
|
"runwayMinutes": "{minutes} min",
|
|
6687
6695
|
"composerSettingsTitle": "Zone de saisie",
|
|
6688
6696
|
"defaultSpeedTitle": "Vitesse par défaut",
|
|
6689
|
-
"composerMenuCustom": "
|
|
6697
|
+
"composerMenuCustom": "Extensions du menu des modèles activées",
|
|
6690
6698
|
"composerMenuHost": "Menu fourni par DSH ou une autre extension",
|
|
6691
6699
|
"legacyModelPicker": "Menu des modèles de la zone de saisie",
|
|
6692
6700
|
"composerMenuAuto": "Auto",
|
|
6693
6701
|
"composerMenuDsh": "Standard DSH",
|
|
6694
6702
|
"composerMenuSubscription": "Abonnement",
|
|
6695
|
-
"legacyModelPickerHint": "
|
|
6703
|
+
"legacyModelPickerHint": "Ajoute la vitesse et le niveau de détail via les points d’extension de DSH sans remplacer le menu d’une autre extension. Si ce menu ne les affiche pas, ces réglages restent disponibles ici.",
|
|
6696
6704
|
"speedTitle": "Vitesse",
|
|
6697
6705
|
"speedStandard": "Standard",
|
|
6698
6706
|
"speedStandardHint": "Vitesse standard",
|
|
@@ -7631,13 +7639,13 @@ window.__ModuleLoader__.load({
|
|
|
7631
7639
|
"runwayMinutes": "{minutes} Min.",
|
|
7632
7640
|
"composerSettingsTitle": "Eingabefeld",
|
|
7633
7641
|
"defaultSpeedTitle": "Standardtempo",
|
|
7634
|
-
"composerMenuCustom": "
|
|
7642
|
+
"composerMenuCustom": "Modellmenü-Erweiterungen aktiviert",
|
|
7635
7643
|
"composerMenuHost": "Modellmenü von DSH oder einem anderen Plugin",
|
|
7636
7644
|
"legacyModelPicker": "Modellmenü im Eingabefeld",
|
|
7637
7645
|
"composerMenuAuto": "Automatisch",
|
|
7638
7646
|
"composerMenuDsh": "DSH-Standard",
|
|
7639
7647
|
"composerMenuSubscription": "Abonnement",
|
|
7640
|
-
"legacyModelPickerHint": "
|
|
7648
|
+
"legacyModelPickerHint": "Ergänzt Tempo und Antwortdetails über DSH-Erweiterungspunkte, ohne Menüs anderer Plugins zu ersetzen. Zeigt ein Menü diese Optionen nicht an, bleiben sie hier einstellbar.",
|
|
7641
7649
|
"speedTitle": "Geschwindigkeit",
|
|
7642
7650
|
"speedStandard": "Standard",
|
|
7643
7651
|
"speedStandardHint": "Standardgeschwindigkeit",
|
|
@@ -8576,13 +8584,13 @@ window.__ModuleLoader__.load({
|
|
|
8576
8584
|
"runwayMinutes": "{minutes} мин",
|
|
8577
8585
|
"composerSettingsTitle": "Поле ввода",
|
|
8578
8586
|
"defaultSpeedTitle": "Скорость по умолчанию",
|
|
8579
|
-
"composerMenuCustom": "
|
|
8587
|
+
"composerMenuCustom": "Расширения меню моделей включены",
|
|
8580
8588
|
"composerMenuHost": "Меню DSH или другого плагина",
|
|
8581
8589
|
"legacyModelPicker": "Меню моделей в поле ввода",
|
|
8582
8590
|
"composerMenuAuto": "Авто",
|
|
8583
8591
|
"composerMenuDsh": "Стандарт DSH",
|
|
8584
8592
|
"composerMenuSubscription": "Подписка",
|
|
8585
|
-
"legacyModelPickerHint": "
|
|
8593
|
+
"legacyModelPickerHint": "Добавляет скорость и подробность через точки расширения DSH, не заменяя меню других плагинов. Если меню не показывает эти параметры, они остаются доступны здесь.",
|
|
8586
8594
|
"speedTitle": "Скорость",
|
|
8587
8595
|
"speedStandard": "Стандартная",
|
|
8588
8596
|
"speedStandardHint": "Стандартная скорость",
|
|
@@ -9521,13 +9529,13 @@ window.__ModuleLoader__.load({
|
|
|
9521
9529
|
"runwayMinutes": "{minutes}min",
|
|
9522
9530
|
"composerSettingsTitle": "Caixa de mensagem",
|
|
9523
9531
|
"defaultSpeedTitle": "Velocidade padrão",
|
|
9524
|
-
"composerMenuCustom": "
|
|
9532
|
+
"composerMenuCustom": "Extensões do menu de modelos ativadas",
|
|
9525
9533
|
"composerMenuHost": "Menu do DSH ou de outro plugin",
|
|
9526
9534
|
"legacyModelPicker": "Menu de modelos do campo de entrada",
|
|
9527
9535
|
"composerMenuAuto": "Automático",
|
|
9528
9536
|
"composerMenuDsh": "Padrão do DSH",
|
|
9529
9537
|
"composerMenuSubscription": "Assinatura",
|
|
9530
|
-
"legacyModelPickerHint": "
|
|
9538
|
+
"legacyModelPickerHint": "Adiciona velocidade e nível de detalhe pelos pontos de extensão do DSH sem substituir o menu de outro plugin. Se esse menu não mostrar as opções, elas continuam disponíveis aqui.",
|
|
9531
9539
|
"speedTitle": "Velocidade",
|
|
9532
9540
|
"speedStandard": "Padrão",
|
|
9533
9541
|
"speedStandardHint": "Velocidade padrão",
|
|
@@ -9593,22 +9601,23 @@ window.__ModuleLoader__.load({
|
|
|
9593
9601
|
//#endregion
|
|
9594
9602
|
//#region src/client-styles.js
|
|
9595
9603
|
const STYLE = `
|
|
9596
|
-
.codexNativeModelOption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px;min-height:32px;color:var(--dsw-alias-label-primary);font-size:13px}
|
|
9597
|
-
.codexNativeModelOption>span{display:flex;align-items:center;gap:4px}
|
|
9598
|
-
.codexNativeModelOption select{max-width:55%;min-height:24px;padding:0 4px;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-bg-layer-2);color:inherit;font:inherit}
|
|
9599
9604
|
.codexModelSelect{position:relative;min-width:0}
|
|
9600
9605
|
.codexModelSelectTrigger{display:flex;align-items:center;gap:4px;min-width:0;max-width:min(360px,45cqw);height:28px;padding:0 4px 0 8px;border:0;border-radius:var(--dsw-radius-sm);outline:0;background:transparent;color:var(--dsw-alias-label-secondary);font-size:13px;font-weight:500;line-height:20px;cursor:pointer}
|
|
9601
9606
|
.codexModelSelectTrigger:hover:not(:disabled),.codexModelSelectTrigger[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover)}
|
|
9602
9607
|
.codexModelSelectTrigger:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3)}
|
|
9603
9608
|
.codexModelSelectTrigger:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}
|
|
9604
9609
|
.codexModelSelectBolt{display:block;flex:none;width:14px;height:14px;color:var(--dsw-alias-label-primary)}
|
|
9610
|
+
.codexModelInlineLabel{display:inline-flex;align-items:center;gap:4px;max-width:100%;vertical-align:middle}
|
|
9611
|
+
.codexModelCatalogBadge{font-size:11px;line-height:16px;padding:0 3px;border-radius:4px;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary)}
|
|
9605
9612
|
.codexModelSelectLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
9606
9613
|
.codexModelSelectEffort{flex:none;color:var(--dsw-alias-label-caption)}
|
|
9607
9614
|
.codexModelSelectChevron{flex:none;color:var(--dsw-alias-label-caption);transition:transform 120ms}
|
|
9608
9615
|
.codexModelSelectTrigger[aria-expanded=true] .codexModelSelectChevron{transform:rotate(180deg)}
|
|
9609
9616
|
.codexModelSelectMenu{inset:auto;margin:0;--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);box-sizing:border-box;position:fixed;display:flex;flex-direction:column;width:max-content;min-width:min(240px,calc(100vw - 32px));max-width:min(420px,calc(100vw - 32px));max-height:min(360px,calc(100vh - 32px));padding:4px;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-layer-1));box-shadow:var(--dsw-elevation-prominent);color:var(--dsw-alias-label-primary);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);overflow:hidden}
|
|
9617
|
+
.codexModelOptionsMenu{border:0;overflow:auto}
|
|
9610
9618
|
.codexModelSelectCell{box-sizing:border-box;display:flex;align-items:center;gap:6px;width:auto;min-width:100%;height:34px;padding:0 8px;border:none;border-radius:var(--dsw-radius-md);outline:none;background:transparent;color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px;text-align:left;cursor:pointer}
|
|
9611
|
-
.codexModelSelectCell:hover,.codexModelSelectCell:focus-visible{background:var(--dsw-alias-interactive-bg-hover)}
|
|
9619
|
+
.codexModelSelectCell:hover:not(:disabled),.codexModelSelectCell:focus-visible{background:var(--dsw-alias-interactive-bg-hover)}
|
|
9620
|
+
.codexModelSelectCell:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}
|
|
9612
9621
|
.codexModelSelectCellLabel{flex:none;white-space:nowrap}
|
|
9613
9622
|
.codexModelSelectCellValue{flex:auto;min-width:0;overflow:hidden;color:var(--dsw-alias-label-tertiary);text-align:right;text-overflow:ellipsis;white-space:nowrap}
|
|
9614
9623
|
.codexModelSelectCellChevron{flex:none;width:12px;height:12px;color:var(--dsw-alias-menu-icon)}
|
|
@@ -11674,7 +11683,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11674
11683
|
}
|
|
11675
11684
|
//#endregion
|
|
11676
11685
|
//#region src/version.js
|
|
11677
|
-
const PACKAGE_VERSION = "3.2.
|
|
11686
|
+
const PACKAGE_VERSION = "3.2.14";
|
|
11678
11687
|
//#endregion
|
|
11679
11688
|
//#region src/client-recovery.js
|
|
11680
11689
|
async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = endpoint === "usage" || endpoint.startsWith("usage/") ? 3e4 : 1e4) {
|
|
@@ -12059,7 +12068,46 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12059
12068
|
const ForwardRef = /*#__PURE__*/ react.forwardRef(BoltIcon);
|
|
12060
12069
|
//#endregion
|
|
12061
12070
|
//#region src/client-model-select.jsx
|
|
12062
|
-
function
|
|
12071
|
+
function createModelOptionsMenu() {
|
|
12072
|
+
const changes = new EventTarget();
|
|
12073
|
+
let request;
|
|
12074
|
+
return {
|
|
12075
|
+
getSnapshot: () => request,
|
|
12076
|
+
subscribe(listener) {
|
|
12077
|
+
changes.addEventListener("change", listener);
|
|
12078
|
+
return () => changes.removeEventListener("change", listener);
|
|
12079
|
+
},
|
|
12080
|
+
set(value) {
|
|
12081
|
+
request = value;
|
|
12082
|
+
changes.dispatchEvent(new Event("change"));
|
|
12083
|
+
}
|
|
12084
|
+
};
|
|
12085
|
+
}
|
|
12086
|
+
function CodexModelLabel({ provider, model, placement, selected, preference, resolveText, t }) {
|
|
12087
|
+
const snapshot = usePreferenceSnapshot(preference);
|
|
12088
|
+
const speed = provider.id === "openai-codex" ? effectiveCodexSpeedMode(snapshot.speedMode, model.id, {
|
|
12089
|
+
supportsFast: snapshot.fastModels?.includes(model.id) ?? supportsCodexFastMode(model.id),
|
|
12090
|
+
supportsUltrafast: snapshot.ultrafastModels?.includes(model.id) ?? false
|
|
12091
|
+
}) : SPEED_MODE_STANDARD;
|
|
12092
|
+
const badge = model.badge && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
12093
|
+
className: "codexModelCatalogBadge",
|
|
12094
|
+
"data-tone": model.badge.tone,
|
|
12095
|
+
children: resolveText(model.badge.text)
|
|
12096
|
+
});
|
|
12097
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
12098
|
+
className: "codexModelInlineLabel",
|
|
12099
|
+
children: [
|
|
12100
|
+
placement === "trigger" && selected && speed !== "standard" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardRef, {
|
|
12101
|
+
className: "codexModelSelectBolt",
|
|
12102
|
+
"aria-label": t(speed === "ultrafast" ? "speedUltrafast" : "speedFast")
|
|
12103
|
+
}),
|
|
12104
|
+
placement === "trigger" && badge,
|
|
12105
|
+
model.name,
|
|
12106
|
+
placement !== "trigger" && badge
|
|
12107
|
+
]
|
|
12108
|
+
});
|
|
12109
|
+
}
|
|
12110
|
+
function CodexNativeModelOptions({ locked, directory, preference, t, dismiss, reportFailure, optionsMenu }) {
|
|
12063
12111
|
const { current } = (0, react.useSyncExternalStore)(directory.subscribe, directory.getSnapshot);
|
|
12064
12112
|
const snapshot = usePreferenceSnapshot(preference);
|
|
12065
12113
|
if (current?.provider !== "openai-codex") return null;
|
|
@@ -12072,63 +12120,165 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12072
12120
|
});
|
|
12073
12121
|
const disabled = locked || snapshot.status !== "ready" || !snapshot.writable || snapshot.saving;
|
|
12074
12122
|
const change = async (field, value) => {
|
|
12123
|
+
const model = directory.getSnapshot().current;
|
|
12124
|
+
if (model?.provider !== current.provider || model.model !== current.model) return;
|
|
12075
12125
|
await preference.set({ [field]: value });
|
|
12076
12126
|
if (preference.getSnapshot().error) reportFailure(t("preferenceFailed"));
|
|
12077
12127
|
};
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12128
|
+
const option = (id, label) => ({
|
|
12129
|
+
id,
|
|
12130
|
+
label: t(label)
|
|
12131
|
+
});
|
|
12132
|
+
const speedItems = [option(SPEED_MODE_STANDARD, "speedStandard")];
|
|
12133
|
+
if (fast) speedItems.push(option(SPEED_MODE_FAST, "speedFast"));
|
|
12134
|
+
if (ultrafast) speedItems.push(option(SPEED_MODE_ULTRAFAST, "speedUltrafast"));
|
|
12135
|
+
const verbosityItems = [
|
|
12136
|
+
option(OUTPUT_VERBOSITY_DEFAULT, "verbosityDefault"),
|
|
12137
|
+
option("low", "verbosityLow"),
|
|
12138
|
+
option(OUTPUT_VERBOSITY_MEDIUM, "verbosityMedium"),
|
|
12139
|
+
option(OUTPUT_VERBOSITY_HIGH, "verbosityHigh")
|
|
12140
|
+
];
|
|
12141
|
+
const row = (field, label, items, value) => {
|
|
12142
|
+
const open = (event) => {
|
|
12143
|
+
const menu = event.currentTarget.closest("[role=\"menu\"]");
|
|
12144
|
+
if (!menu?.id) return;
|
|
12145
|
+
const trigger = [...menu.ownerDocument.querySelectorAll("button[aria-controls]")].find((button) => button.getAttribute("aria-controls") === menu.id);
|
|
12146
|
+
if (!trigger) return;
|
|
12147
|
+
const { width, right, bottom } = menu.getBoundingClientRect();
|
|
12148
|
+
const { innerWidth, innerHeight } = menu.ownerDocument.defaultView;
|
|
12149
|
+
optionsMenu.set({
|
|
12150
|
+
field,
|
|
12151
|
+
label,
|
|
12152
|
+
items,
|
|
12153
|
+
value,
|
|
12154
|
+
trigger,
|
|
12155
|
+
width,
|
|
12156
|
+
right: innerWidth - right,
|
|
12157
|
+
bottom: innerHeight - bottom,
|
|
12158
|
+
select: (next) => {
|
|
12159
|
+
if (next !== value) change(field, next);
|
|
12160
|
+
}
|
|
12161
|
+
});
|
|
12162
|
+
dismiss();
|
|
12163
|
+
};
|
|
12164
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
12165
|
+
type: "button",
|
|
12166
|
+
role: "menuitem",
|
|
12167
|
+
className: "codexModelSelectCell",
|
|
12168
|
+
"aria-haspopup": "menu",
|
|
12169
|
+
"data-codex-model-option": field,
|
|
12085
12170
|
disabled,
|
|
12086
|
-
|
|
12087
|
-
|
|
12171
|
+
onClick: open,
|
|
12172
|
+
onKeyDown: (event) => {
|
|
12173
|
+
if (event.key !== "ArrowRight") return;
|
|
12174
|
+
event.preventDefault();
|
|
12175
|
+
event.stopPropagation();
|
|
12176
|
+
open(event);
|
|
12088
12177
|
},
|
|
12089
12178
|
children: [
|
|
12090
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
12091
|
-
|
|
12092
|
-
children:
|
|
12179
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
12180
|
+
className: "codexModelSelectCellLabel",
|
|
12181
|
+
children: label
|
|
12093
12182
|
}),
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
children:
|
|
12183
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
12184
|
+
className: "codexModelSelectCellValue",
|
|
12185
|
+
children: items.find((item) => item.id === value)?.label ?? items[0].label
|
|
12097
12186
|
}),
|
|
12098
|
-
|
|
12099
|
-
value: "ultrafast",
|
|
12100
|
-
children: t("speedUltrafast")
|
|
12101
|
-
})
|
|
12187
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronRightOutline14, { className: "codexModelSelectCellChevron" })
|
|
12102
12188
|
]
|
|
12103
|
-
})
|
|
12104
|
-
}
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12189
|
+
});
|
|
12190
|
+
};
|
|
12191
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(fast || ultrafast) && row("speedMode", t("speedTitle"), speedItems, speed), verbosity && row("outputVerbosity", t("verbosityTitle"), verbosityItems, snapshot.outputVerbosity)] });
|
|
12192
|
+
}
|
|
12193
|
+
function CodexModelOptionsOverlay({ optionsMenu }) {
|
|
12194
|
+
const request = (0, react.useSyncExternalStore)(optionsMenu.subscribe, optionsMenu.getSnapshot);
|
|
12195
|
+
return request ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModelOptionChoices, {
|
|
12196
|
+
request,
|
|
12197
|
+
close: () => optionsMenu.set(void 0)
|
|
12198
|
+
}, request.field) : null;
|
|
12199
|
+
}
|
|
12200
|
+
function ModelOptionChoices({ request, close }) {
|
|
12201
|
+
const panel = (0, react.useRef)(null);
|
|
12202
|
+
const outside = (0, react.useRef)(null);
|
|
12203
|
+
usePopover(panel, true);
|
|
12204
|
+
useDismissOnOutsidePointer(outside, true, close, panel);
|
|
12205
|
+
(0, react.useLayoutEffect)(() => {
|
|
12206
|
+
const menu = panel.current;
|
|
12207
|
+
(menu.querySelector("[aria-checked=\"true\"]") ?? menu.firstElementChild)?.focus();
|
|
12208
|
+
}, []);
|
|
12209
|
+
const returnToMenu = () => {
|
|
12210
|
+
close();
|
|
12211
|
+
if (!request.trigger.isConnected) return;
|
|
12212
|
+
request.trigger.click();
|
|
12213
|
+
requestAnimationFrame(() => {
|
|
12214
|
+
request.trigger.ownerDocument.getElementById(request.trigger.getAttribute("aria-controls"))?.querySelector(`[data-codex-model-option="${request.field}"]`)?.focus();
|
|
12215
|
+
});
|
|
12216
|
+
};
|
|
12217
|
+
const select = (value) => {
|
|
12218
|
+
close();
|
|
12219
|
+
if (request.trigger.isConnected) {
|
|
12220
|
+
request.trigger.focus();
|
|
12221
|
+
request.select(value);
|
|
12222
|
+
}
|
|
12223
|
+
};
|
|
12224
|
+
const onKeyDown = (event) => {
|
|
12225
|
+
const { key } = event;
|
|
12226
|
+
if (![
|
|
12227
|
+
"Escape",
|
|
12228
|
+
"ArrowLeft",
|
|
12229
|
+
"ArrowUp",
|
|
12230
|
+
"ArrowDown",
|
|
12231
|
+
"Home",
|
|
12232
|
+
"End",
|
|
12233
|
+
"Tab"
|
|
12234
|
+
].includes(key)) return;
|
|
12235
|
+
if (key === "Tab" && !event.shiftKey) {
|
|
12236
|
+
close();
|
|
12237
|
+
if (request.trigger.isConnected) request.trigger.focus();
|
|
12238
|
+
return;
|
|
12239
|
+
}
|
|
12240
|
+
event.preventDefault();
|
|
12241
|
+
event.stopPropagation();
|
|
12242
|
+
if (key === "Escape" || key === "ArrowLeft" || key === "Tab" && event.shiftKey) {
|
|
12243
|
+
returnToMenu();
|
|
12244
|
+
return;
|
|
12245
|
+
}
|
|
12246
|
+
const choices = [...panel.current.children];
|
|
12247
|
+
const index = choices.indexOf(event.target);
|
|
12248
|
+
choices[key === "Home" ? 0 : key === "End" ? choices.length - 1 : (index + (key === "ArrowDown" ? 1 : choices.length - 1)) % choices.length]?.focus();
|
|
12249
|
+
};
|
|
12250
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
12251
|
+
ref: panel,
|
|
12252
|
+
popover: "manual",
|
|
12253
|
+
className: "codexModelSelectMenu codexModelOptionsMenu",
|
|
12254
|
+
role: "menu",
|
|
12255
|
+
"aria-label": request.label,
|
|
12256
|
+
style: {
|
|
12257
|
+
right: `min(${request.right}px, max(12px, calc(100vw - ${request.width + 12}px)))`,
|
|
12258
|
+
bottom: `min(${request.bottom}px, max(12px, calc(100dvh - 240px)))`,
|
|
12259
|
+
maxHeight: `min(360px, calc(100dvh - ${request.bottom + 12}px))`,
|
|
12260
|
+
minWidth: 0,
|
|
12261
|
+
width: request.width
|
|
12262
|
+
},
|
|
12263
|
+
onKeyDown,
|
|
12264
|
+
children: request.items.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
12265
|
+
type: "button",
|
|
12266
|
+
role: "menuitemradio",
|
|
12267
|
+
className: "codexModelSelectOption",
|
|
12268
|
+
"aria-checked": item.id === request.value,
|
|
12269
|
+
onClick: () => select(item.id),
|
|
12270
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
12271
|
+
className: "codexModelSelectOptionCopy",
|
|
12272
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
12273
|
+
className: "codexModelSelectOptionName",
|
|
12274
|
+
children: item.label
|
|
12128
12275
|
})
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12276
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
12277
|
+
className: "codexModelSelectCheck",
|
|
12278
|
+
children: item.id === request.value && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCheckOutline16, {})
|
|
12279
|
+
})]
|
|
12280
|
+
}, item.id))
|
|
12281
|
+
});
|
|
12132
12282
|
}
|
|
12133
12283
|
function CodexModelSelect({ locked, available, directory, load, select, preference, t }) {
|
|
12134
12284
|
const state = (0, react.useSyncExternalStore)(directory.subscribe, directory.getSnapshot);
|
|
@@ -12532,22 +12682,29 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12532
12682
|
update(false);
|
|
12533
12683
|
};
|
|
12534
12684
|
}
|
|
12535
|
-
function registerLegacyModelPicker(slots, preference, props, component, optionsComponent) {
|
|
12685
|
+
function registerLegacyModelPicker(slots, preference, props, component, optionsComponent, labelComponent, watchLegacyConflict) {
|
|
12536
12686
|
return slots.inject(slot, () => {
|
|
12537
12687
|
let dispose;
|
|
12538
12688
|
let disposeOptions;
|
|
12689
|
+
let disposeLabel;
|
|
12690
|
+
let unwatchConflict;
|
|
12539
12691
|
let disposed = false;
|
|
12540
12692
|
let syncing = false;
|
|
12541
12693
|
const sync = () => {
|
|
12542
12694
|
if (disposed || syncing) return;
|
|
12543
12695
|
syncing = true;
|
|
12544
12696
|
try {
|
|
12545
|
-
const state = preference.getSnapshot();
|
|
12546
12697
|
const others = slots.entries(slot).filter((entry) => entry.component !== component);
|
|
12547
|
-
const
|
|
12548
|
-
const supportsOptions =
|
|
12549
|
-
|
|
12550
|
-
|
|
12698
|
+
const owner = others[0];
|
|
12699
|
+
const supportsOptions = owner?.children?.[nativeOptions]?.kind === "list";
|
|
12700
|
+
if (!supportsOptions && others.every(native)) unwatchConflict ??= watchLegacyConflict?.();
|
|
12701
|
+
else {
|
|
12702
|
+
unwatchConflict?.();
|
|
12703
|
+
unwatchConflict = void 0;
|
|
12704
|
+
}
|
|
12705
|
+
const state = preference.getSnapshot();
|
|
12706
|
+
const custom = others.every(native) && (state.composerModelPicker === "legacy" || state.composerModelPicker === "auto" && !state.composerModelPickerConflict);
|
|
12707
|
+
if (state.status === "ready" && custom && !supportsOptions && !others.some((entry) => priorityOf(entry) === priority)) dispose ??= slots.register({
|
|
12551
12708
|
name: slot,
|
|
12552
12709
|
priority,
|
|
12553
12710
|
inject: props
|
|
@@ -12556,16 +12713,27 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12556
12713
|
dispose?.();
|
|
12557
12714
|
dispose = void 0;
|
|
12558
12715
|
}
|
|
12559
|
-
if (
|
|
12716
|
+
if (state.status === "ready" && state.composerModelPicker !== "dsh" && supportsOptions && optionsComponent) disposeOptions ??= slots.register({
|
|
12560
12717
|
name: nativeOptions,
|
|
12561
12718
|
id: "codex-subscription",
|
|
12719
|
+
priority: -1,
|
|
12562
12720
|
inject: props
|
|
12563
12721
|
}, optionsComponent);
|
|
12564
12722
|
else {
|
|
12565
12723
|
disposeOptions?.();
|
|
12566
12724
|
disposeOptions = void 0;
|
|
12567
12725
|
}
|
|
12568
|
-
|
|
12726
|
+
const otherLabels = slots.entries(nativeLabel).filter((entry) => entry.component !== labelComponent);
|
|
12727
|
+
if (disposeOptions && labelComponent && state.speedMode !== "standard" && owner.children?.[nativeLabel]?.kind === "single" && otherLabels.length === 0) disposeLabel ??= slots.register({
|
|
12728
|
+
name: nativeLabel,
|
|
12729
|
+
priority: 100,
|
|
12730
|
+
inject: props
|
|
12731
|
+
}, labelComponent);
|
|
12732
|
+
else {
|
|
12733
|
+
disposeLabel?.();
|
|
12734
|
+
disposeLabel = void 0;
|
|
12735
|
+
}
|
|
12736
|
+
preference.setComposerModelPickerActive(Boolean(disposeOptions || dispose));
|
|
12569
12737
|
} catch (error) {
|
|
12570
12738
|
if (error?.code !== "INACTIVE_EFFECT") throw error;
|
|
12571
12739
|
} finally {
|
|
@@ -12574,13 +12742,17 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12574
12742
|
};
|
|
12575
12743
|
const unwatch = preference.subscribe(sync);
|
|
12576
12744
|
const unwatchSlot = slots.subscribe(slot, sync);
|
|
12745
|
+
const unwatchLabel = slots.subscribe(nativeLabel, sync);
|
|
12577
12746
|
sync();
|
|
12578
12747
|
return () => {
|
|
12579
12748
|
disposed = true;
|
|
12580
12749
|
unwatch();
|
|
12581
12750
|
unwatchSlot();
|
|
12751
|
+
unwatchLabel();
|
|
12752
|
+
unwatchConflict?.();
|
|
12582
12753
|
dispose?.();
|
|
12583
12754
|
disposeOptions?.();
|
|
12755
|
+
disposeLabel?.();
|
|
12584
12756
|
preference.setComposerModelPickerActive(false);
|
|
12585
12757
|
};
|
|
12586
12758
|
});
|
|
@@ -18465,7 +18637,7 @@ void main(){
|
|
|
18465
18637
|
text: (value) => t(menuLabels[value]),
|
|
18466
18638
|
disabled: !loaded || snapshot.saving
|
|
18467
18639
|
})]
|
|
18468
|
-
}), loaded
|
|
18640
|
+
}), loaded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SpeedPreference, {
|
|
18469
18641
|
snapshot,
|
|
18470
18642
|
preference,
|
|
18471
18643
|
t
|
|
@@ -21452,7 +21624,6 @@ void main(){
|
|
|
21452
21624
|
}, "codex-subscription: style");
|
|
21453
21625
|
const rpc = createSubscriptionRpcClient(ctx.get("connection").rpc);
|
|
21454
21626
|
const preference = createPreferenceController(rpc);
|
|
21455
|
-
ctx.inject(["remote.pluginManager"], (scope) => scope.effect(() => watchComposerModelPickerConflict(scope.get("remote.pluginManager"), scope.get("remote"), preference.setComposerModelPickerConflict, (refresh) => scope.on("connection/reset", refresh)), "codex-subscription: composer model menu compatibility"));
|
|
21456
21627
|
const quotaUsage = quotaUsageController(rpc);
|
|
21457
21628
|
ctx.effect(() => {
|
|
21458
21629
|
let mode = preference.getSnapshot().quickQuotaMode;
|
|
@@ -21491,6 +21662,12 @@ void main(){
|
|
|
21491
21662
|
};
|
|
21492
21663
|
}, "codex-subscription: preferences and account status");
|
|
21493
21664
|
const t = ctx.locale.bind(NS);
|
|
21665
|
+
const optionsMenu = createModelOptionsMenu();
|
|
21666
|
+
ctx.slots.inject("shell.overlay", () => ctx.slots.register({
|
|
21667
|
+
name: "shell.overlay",
|
|
21668
|
+
id: "codex-subscription-model-options",
|
|
21669
|
+
inject: () => ({ optionsMenu })
|
|
21670
|
+
}, CodexModelOptionsOverlay));
|
|
21494
21671
|
ctx.slots.inject("shell.overlay", () => ctx.slots.register({
|
|
21495
21672
|
name: "shell.overlay",
|
|
21496
21673
|
id: "codex-subscription-image-viewer",
|
|
@@ -21553,6 +21730,8 @@ void main(){
|
|
|
21553
21730
|
directory: directory.store,
|
|
21554
21731
|
preference,
|
|
21555
21732
|
t,
|
|
21733
|
+
optionsMenu,
|
|
21734
|
+
resolveText: (text) => ctx.locale.resolveText(text),
|
|
21556
21735
|
load: () => {
|
|
21557
21736
|
if (available) directory.load().catch(() => {});
|
|
21558
21737
|
},
|
|
@@ -21565,7 +21744,7 @@ void main(){
|
|
|
21565
21744
|
}
|
|
21566
21745
|
}
|
|
21567
21746
|
};
|
|
21568
|
-
}, CodexModelSelect, CodexNativeModelOptions);
|
|
21747
|
+
}, CodexModelSelect, CodexNativeModelOptions, CodexModelLabel, () => watchComposerModelPickerConflict(scope.get("remote.pluginManager"), scope.get("remote"), preference.setComposerModelPickerConflict, (refresh) => scope.on("connection/reset", refresh)));
|
|
21569
21748
|
};
|
|
21570
21749
|
if (ctx.get("remote.session") === void 0) installDirectorySlots(ctx);
|
|
21571
21750
|
else ctx.inject(["remote.session"], installDirectorySlots);
|
package/lib/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
11
|
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
12
12
|
import WebSocket from "ws";
|
|
13
|
+
import { ProxyAgent, getGlobalDispatcher } from "undici";
|
|
13
14
|
import * as dshLlm from "@deepseek-ai/dsh-llm";
|
|
14
15
|
import { LlmError, createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
15
16
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -1162,6 +1163,7 @@ const choices = /* @__PURE__ */ new Set([
|
|
|
1162
1163
|
"unknown"
|
|
1163
1164
|
]);
|
|
1164
1165
|
const routes$1 = /* @__PURE__ */ new Set([
|
|
1166
|
+
"host",
|
|
1165
1167
|
"direct",
|
|
1166
1168
|
"environment",
|
|
1167
1169
|
"system",
|
|
@@ -1285,6 +1287,7 @@ const codes$1 = /* @__PURE__ */ new Set([
|
|
|
1285
1287
|
"http-error"
|
|
1286
1288
|
]);
|
|
1287
1289
|
const routes = /* @__PURE__ */ new Set([
|
|
1290
|
+
"host",
|
|
1288
1291
|
"direct",
|
|
1289
1292
|
"environment",
|
|
1290
1293
|
"system",
|
|
@@ -1643,7 +1646,7 @@ function transportResponseBody(response, signal) {
|
|
|
1643
1646
|
}
|
|
1644
1647
|
});
|
|
1645
1648
|
}
|
|
1646
|
-
function fetchThroughProxy(input, init, proxyUrl) {
|
|
1649
|
+
function fetchThroughProxy(input, init, proxyUrl, tls = {}) {
|
|
1647
1650
|
const target = new URL(typeof input === "string" || input instanceof URL ? input : input.url);
|
|
1648
1651
|
const body = bodyBytes(init?.body);
|
|
1649
1652
|
const headers = new Headers(init?.headers);
|
|
@@ -1653,7 +1656,8 @@ function fetchThroughProxy(input, init, proxyUrl) {
|
|
|
1653
1656
|
method: init?.method ?? "GET",
|
|
1654
1657
|
headers: Object.fromEntries(headers.entries()),
|
|
1655
1658
|
agent: proxyUrl ? new HttpsProxyAgent(proxyUrl, { signal: init?.signal }) : void 0,
|
|
1656
|
-
signal: init?.signal
|
|
1659
|
+
signal: init?.signal,
|
|
1660
|
+
...tls.ca ? { ca: tls.ca } : {}
|
|
1657
1661
|
}, (response) => {
|
|
1658
1662
|
const responseHeaders = new Headers();
|
|
1659
1663
|
for (const [name, value] of Object.entries(response.headers)) if (Array.isArray(value)) value.forEach((item) => responseHeaders.append(name, item));
|
|
@@ -1699,14 +1703,40 @@ async function fetchInCodexScope(scope, fetchBeforeScope, input, init) {
|
|
|
1699
1703
|
}
|
|
1700
1704
|
route = await proxy;
|
|
1701
1705
|
}
|
|
1702
|
-
scopedOptions.
|
|
1706
|
+
const hostModelFetch = scopedOptions.requestFetch && target.origin === `https://${CODEX_SUBSCRIPTION_HOST}` && target.pathname === CODEX_MODEL_SSE_PATH && !dedicatedProxy;
|
|
1707
|
+
scopedOptions.onRoute?.(hostModelFetch ? "host" : route.source);
|
|
1703
1708
|
try {
|
|
1704
1709
|
scopedOptions.onTransport?.("sse");
|
|
1705
1710
|
} catch {}
|
|
1706
1711
|
let response;
|
|
1707
1712
|
try {
|
|
1708
1713
|
if (dedicatedProxy && !route.url) throw new TypeError("Invalid DSH_CODEX_SSE_PROXY. Use an HTTP or HTTPS CONNECT proxy.");
|
|
1709
|
-
|
|
1714
|
+
if (hostModelFetch) if (!route.url || init?.dispatcher) response = await fetchBeforeScope(input, init);
|
|
1715
|
+
else {
|
|
1716
|
+
const proxy = new ProxyAgent(route.url);
|
|
1717
|
+
const signal = init?.signal ?? input?.signal;
|
|
1718
|
+
const abort = () => {
|
|
1719
|
+
proxy.destroy(signal.reason).catch(() => {});
|
|
1720
|
+
};
|
|
1721
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
1722
|
+
if (signal?.aborted) abort();
|
|
1723
|
+
const fallback = getGlobalDispatcher();
|
|
1724
|
+
const dispatcher = { dispatch(options, handler) {
|
|
1725
|
+
if (String(options.origin) !== target.origin) return fallback.dispatch(options, handler);
|
|
1726
|
+
scopedOptions.onRoute?.(route.source);
|
|
1727
|
+
return proxy.dispatch(options, handler);
|
|
1728
|
+
} };
|
|
1729
|
+
try {
|
|
1730
|
+
response = await fetchBeforeScope(input, {
|
|
1731
|
+
...init,
|
|
1732
|
+
dispatcher
|
|
1733
|
+
});
|
|
1734
|
+
} finally {
|
|
1735
|
+
signal?.removeEventListener("abort", abort);
|
|
1736
|
+
proxy.close().catch(() => {});
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
else response = await (route.url === void 0 && !scopedOptions.standardHttps ? fetchBeforeScope(input, init) : proxyFetch(input, init, route.url, dedicatedProxy ? { ca: scopedOptions.modelSseCa } : {}));
|
|
1710
1740
|
} catch (error) {
|
|
1711
1741
|
try {
|
|
1712
1742
|
scopedOptions.onFetchFailure?.(error);
|
|
@@ -1809,9 +1839,10 @@ function createCodexNetworkTransport(options = {}) {
|
|
|
1809
1839
|
...options,
|
|
1810
1840
|
...connection
|
|
1811
1841
|
};
|
|
1842
|
+
const explicitProxy = area === "model" && connection.requestFetch === true ? (scoped.env ?? process.env)[MODEL_SSE_PROXY_ENV]?.trim() : void 0;
|
|
1812
1843
|
const value = await withCodexNetwork(operation, {
|
|
1813
1844
|
...scoped,
|
|
1814
|
-
modelSseProxy:
|
|
1845
|
+
modelSseProxy: explicitProxy,
|
|
1815
1846
|
onRoute: (source) => {
|
|
1816
1847
|
route = source;
|
|
1817
1848
|
routed = true;
|
|
@@ -4798,7 +4829,7 @@ function inheritedOriginalImageRef(session, assetId) {
|
|
|
4798
4829
|
}
|
|
4799
4830
|
//#endregion
|
|
4800
4831
|
//#region src/version.js
|
|
4801
|
-
const PACKAGE_VERSION = "3.2.
|
|
4832
|
+
const PACKAGE_VERSION = "3.2.14";
|
|
4802
4833
|
const USER_AGENT = `dsh-codex-subscription/${PACKAGE_VERSION}`;
|
|
4803
4834
|
//#endregion
|
|
4804
4835
|
//#region src/codex-images.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-codex-subscription",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.14",
|
|
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",
|
|
@@ -132,6 +132,7 @@
|
|
|
132
132
|
"dependencies": {
|
|
133
133
|
"@deepseek-ai/dsh-home-paths": "0.2.2-rc.1",
|
|
134
134
|
"https-proxy-agent": "7.0.6",
|
|
135
|
+
"undici": "7.30.2",
|
|
135
136
|
"ws": "8.21.3"
|
|
136
137
|
},
|
|
137
138
|
"peerDependenciesMeta": {
|