dsh-coding-subscription-oauth 0.5.3 → 0.5.5
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/CHANGELOG.md +21 -0
- package/INSTALL.md +4 -4
- package/README.de.md +23 -6
- package/README.es.md +24 -6
- package/README.fr.md +24 -6
- package/README.ja.md +24 -6
- package/README.ko.md +24 -6
- package/README.md +23 -6
- package/README.pt-BR.md +24 -6
- package/README.ru.md +24 -6
- package/README.zh-CN.md +23 -6
- package/docs/02-architecture.md +1 -1
- package/docs/02-architecture.zh-CN.md +1 -1
- package/lib/client.js +34 -1
- package/lib/client.js.map +4 -4
- package/media/settings_accounts.png +0 -0
- package/media/settings_capabilities.png +0 -0
- package/media/settings_gateway.png +0 -0
- package/media/settings_overview.png +0 -0
- package/package.json +2 -1
- package/src/client/GrokBuildSettings.tsx +270 -1773
- package/src/client/api.ts +88 -0
- package/src/client/components/AboutTab.tsx +20 -0
- package/src/client/components/AccountsTab.tsx +224 -0
- package/src/client/components/Badge.tsx +33 -0
- package/src/client/components/CapabilitiesTab.tsx +227 -0
- package/src/client/components/CliPullPreview.tsx +107 -0
- package/src/client/components/CopyButton.tsx +57 -0
- package/src/client/components/GatewayTab.tsx +364 -0
- package/src/client/components/NoticeBanner.tsx +46 -0
- package/src/client/components/ProgressBar.tsx +52 -0
- package/src/client/components/ProviderCard.tsx +502 -0
- package/src/client/components/SettingsTabs.tsx +75 -0
- package/src/client/components/ToggleSwitch.tsx +60 -0
- package/src/client/constants.ts +206 -0
- package/src/client/display.ts +61 -0
- package/src/client/gatewaySnippets.ts +36 -0
- package/src/client/locales.ts +81 -15
- package/src/client/microStyles.ts +33 -0
- package/src/client/parsers.ts +386 -0
- package/src/client/styles.ts +306 -0
- package/src/client/types.ts +185 -0
package/README.ru.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# 🔐 dsh-coding-subscription-oauth
|
|
6
6
|
|
|
7
|
-
**v0.5.
|
|
7
|
+
**v0.5.5 · ранее `dsh-grok-build`
|
|
8
8
|
|
|
9
9
|
**Плагин OAuth для подписок на кодинг для [DeepSeek Harness](https://github.com/deepseek-ai/dsh).** Войдите один раз по уже оплаченным подпискам — и используйте их модели из страницы настроек или CLI dsh. **Никаких вставленных токенов в чат.**
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
| | Используйте | По-прежнему работает |
|
|
25
25
|
|---|---|---|
|
|
26
26
|
| GitHub / `dsh plugin add` | [`dsh-coding-subscription-oauth`](https://github.com/lninghaha/dsh-coding-subscription-oauth) | `github:lninghaha/dsh-grok-build` (тот же `main`) |
|
|
27
|
-
| npm | `dsh-coding-subscription-oauth@0.5.
|
|
27
|
+
| npm | `dsh-coding-subscription-oauth@0.5.5` (текущая версия) | Старого npm-пакета не было |
|
|
28
28
|
| CLI | `dsh-coding-oauth` | `dsh-grok-build` |
|
|
29
29
|
| Cordis plugin id | `llm-grok-build-oauth` | без изменений |
|
|
30
30
|
| HTTP API страницы настроек | `/plugins/dsh-grok-build/*` | без изменений |
|
|
@@ -39,14 +39,13 @@
|
|
|
39
39
|
- ⚙️ **Динамический каталог** — селектор показывает только авторизованные маршруты с пометкой `(OAuth)`, включая `xhigh` для grok-4.6.
|
|
40
40
|
- 🌐 **С учётом прокси** — проксируется только проверенные доверенные домены подписок.
|
|
41
41
|
- 📥 **Ручной CLI Pull** — настройки обнаруживают разрешённые официальные OAuth-файлы CLI Grok/Codex/Kimi/Claude только для чтения; вы забираете одностороннюю копию после предпросмотра и подтверждения перезаписи.
|
|
42
|
-
- 🗂️ **Настройки во вкладках** — Accounts, Gateway, Capabilities и About
|
|
42
|
+
- 🗂️ **Настройки во вкладках** — Accounts, Gateway, Capabilities и About; на удалённых хостах предпочтителен device code и меньше шума CLI missing; вошедшие карточки свёрнуты, пока их не развернёшь.
|
|
43
43
|
- 🎛️ **Опциональные возможности, по умолчанию выключены** — поиск Codex, использование/квота, генерация/редактирование изображений, Fast и Grok Imagine применяются сразу при включении.
|
|
44
44
|
- 🔌 **Локальный API-шлюз по opt-in** — по умолчанию выключенный loopback-сервер, совместимый с OpenAI/Anthropic; для ваших собственных инструментов, а не публичный relay.
|
|
45
45
|
|
|
46
46
|
## Какие проблемы подключения закрывает этот плагин
|
|
47
47
|
|
|
48
48
|
Обычно сюда приходят по этим поисковым запросам и ошибкам DSH.
|
|
49
|
-
|
|
50
49
|
| Искали / увидели | Что на самом деле сломано | Что делает плагин |
|
|
51
50
|
|---|---|---|
|
|
52
51
|
| SuperGrok / X Premium в DSH, Grok Build vs `api.x.ai` | Встроенный маршрут `xai` — это pay-as-you-go API. Подписка ходит на `cli-chat-proxy.grok.com` | Маршрут `grok-build` + отпечаток CLI (`X-XAI-Token-Auth` и др.), чтобы не ловить тихий 403 |
|
|
@@ -74,7 +73,7 @@
|
|
|
74
73
|
|
|
75
74
|
```bash
|
|
76
75
|
# 1. установите текущую npm-версию в web-профиль
|
|
77
|
-
dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.
|
|
76
|
+
dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.5
|
|
78
77
|
|
|
79
78
|
# 2. опционально — Google Antigravity (зафиксированная проверенная версия)
|
|
80
79
|
dsh plugin --profile web add dsh-agy@0.1.2
|
|
@@ -115,7 +114,7 @@ systemctl --user restart dsh-web.service
|
|
|
115
114
|
|
|
116
115
|
```bash
|
|
117
116
|
# текущая npm-версия (рекомендуется)
|
|
118
|
-
dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.
|
|
117
|
+
dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.5
|
|
119
118
|
|
|
120
119
|
# разработка/альтернатива: из GitHub
|
|
121
120
|
dsh plugin --profile web add github:lninghaha/dsh-coding-subscription-oauth
|
|
@@ -142,6 +141,25 @@ pnpm run smoke:deployed # реальные вызовы Codex/Kimi +
|
|
|
142
141
|
|
|
143
142
|
Откройте **Settings → Coding OAuth**:
|
|
144
143
|
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
<table>
|
|
147
|
+
<tr>
|
|
148
|
+
<td align="center" valign="top" width="33%">
|
|
149
|
+
<a href="media/settings_accounts.png"><img src="media/settings_accounts.png" alt="Coding OAuth Accounts tab" width="280" /></a><br />
|
|
150
|
+
<sub>Accounts</sub>
|
|
151
|
+
</td>
|
|
152
|
+
<td align="center" valign="top" width="33%">
|
|
153
|
+
<a href="media/settings_gateway.png"><img src="media/settings_gateway.png" alt="Coding OAuth Gateway tab" width="280" /></a><br />
|
|
154
|
+
<sub>Gateway</sub>
|
|
155
|
+
</td>
|
|
156
|
+
<td align="center" valign="top" width="33%">
|
|
157
|
+
<a href="media/settings_capabilities.png"><img src="media/settings_capabilities.png" alt="Coding OAuth Capabilities tab" width="280" /></a><br />
|
|
158
|
+
<sub>Capabilities</sub>
|
|
159
|
+
</td>
|
|
160
|
+
</tr>
|
|
161
|
+
</table>
|
|
162
|
+
|
|
145
163
|
| Провайдер | Методы |
|
|
146
164
|
|---|---|
|
|
147
165
|
| Grok | код авторизации · код устройства · импорт CLI Grok · выбор моделей |
|
package/README.zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# 🔐 dsh-coding-subscription-oauth
|
|
6
6
|
|
|
7
|
-
**v0.5.
|
|
7
|
+
**v0.5.5** · 原名 `dsh-grok-build`
|
|
8
8
|
|
|
9
9
|
**面向 [DeepSeek Harness](https://github.com/deepseek-ai/dsh) 的编码订阅 OAuth 插件。** 把 SuperGrok / X Premium(Grok Build)、ChatGPT Plus/Pro(Codex)、Kimi Code、Claude Pro/Max 和 Google Antigravity 接到 DSH——不必再开一份按量 API-key,**也不要把 token 粘贴进聊天。**
|
|
10
10
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
| | 请用这个 | 仍然可用 |
|
|
25
25
|
|---|---|---|
|
|
26
|
-
| npm(推荐) | 当前版本是 `0.5.
|
|
26
|
+
| npm(推荐) | 当前版本是 `0.5.5`:`dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.5` | 没有发布过旧 npm 包 |
|
|
27
27
|
| GitHub / 开发安装 | [`dsh-coding-subscription-oauth`](https://github.com/lninghaha/dsh-coding-subscription-oauth) | 旧仓库 `dsh-grok-build` 已删除 |
|
|
28
28
|
| CLI | `dsh-coding-oauth` | `dsh-grok-build` |
|
|
29
29
|
| Cordis 插件 id | `llm-grok-build-oauth` | 不变 |
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
- ⚙️ **动态目录** —— 选择器只列出已登录路由并标注 `(OAuth)`,含 grok-4.6 的 `xhigh`。
|
|
40
40
|
- 🌐 **代理感知** —— 只代理审核过的订阅域名;Kimi 中国流量默认直连。
|
|
41
41
|
- 📥 **手动 CLI 拉取** —— 设置页只读发现白名单内的官方 Grok/Codex/Kimi/Claude CLI OAuth 文件;预览并确认覆盖后,单向拉取一份副本。
|
|
42
|
-
- 🗂️ **分栏设置页** —— Accounts、Gateway、Capabilities、About
|
|
42
|
+
- 🗂️ **分栏设置页** —— Accounts、Gateway、Capabilities、About;远程主机优先设备码登录并弱化 CLI 缺失提示;已登录供应商卡片默认收起,展开后再编辑。
|
|
43
43
|
- 🎛️ **可选能力默认关闭** —— Codex 搜索、用量/配额、图像生成/编辑、Fast、Grok Imagine 打开后立即生效。
|
|
44
44
|
- 🔌 **可选本地 API 网关** —— 默认关闭的 loopback OpenAI/Anthropic 兼容服务,支持复制 base URL 和 Bearer key,只给你自己的工具用,不是公网中继。
|
|
45
45
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
# 1. 安装当前 npm 发布版到 web profile
|
|
78
|
-
dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.
|
|
78
|
+
dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.5
|
|
79
79
|
|
|
80
80
|
# 2. 可选 —— Google Antigravity(固定审核过的版本)
|
|
81
81
|
dsh plugin --profile web add dsh-agy@0.1.2
|
|
@@ -116,7 +116,7 @@ systemctl --user restart dsh-web.service
|
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
118
|
# 当前 npm 版本
|
|
119
|
-
dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.
|
|
119
|
+
dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.5
|
|
120
120
|
|
|
121
121
|
# 开发 / 备用:从 GitHub 安装
|
|
122
122
|
dsh plugin --profile web add github:lninghaha/dsh-coding-subscription-oauth
|
|
@@ -141,7 +141,24 @@ pnpm run smoke:deployed # 真实 Codex/Kimi tool-call + 第二个用
|
|
|
141
141
|
|
|
142
142
|
## 设置页
|
|
143
143
|
|
|
144
|
-
打开 **设置 → 编码 OAuth**。页面拆成四个顶部标签:**Accounts**、**Gateway**、**Capabilities**、**About
|
|
144
|
+
打开 **设置 → 编码 OAuth**。页面拆成四个顶部标签:**Accounts**、**Gateway**、**Capabilities**、**About**,不再需要长距离滚动。远程(非 loopback)主机上,Accounts 会优先设备码登录,并把嘈杂的 CLI 缺失提示收成一条;已登录供应商卡片默认折叠,展开后可编辑模型或使用卡片内的 CLI 拉取;CLI 预览占满内容宽度,Capabilities 标签还会显示实时可选开关和 Imagine 状态。
|
|
145
|
+
|
|
146
|
+
<table>
|
|
147
|
+
<tr>
|
|
148
|
+
<td align="center" valign="top" width="33%">
|
|
149
|
+
<a href="media/settings_accounts.png"><img src="media/settings_accounts.png" alt="编码 OAuth · Accounts 标签" width="280" /></a><br />
|
|
150
|
+
<sub>Accounts</sub>
|
|
151
|
+
</td>
|
|
152
|
+
<td align="center" valign="top" width="33%">
|
|
153
|
+
<a href="media/settings_gateway.png"><img src="media/settings_gateway.png" alt="编码 OAuth · Gateway 标签" width="280" /></a><br />
|
|
154
|
+
<sub>Gateway</sub>
|
|
155
|
+
</td>
|
|
156
|
+
<td align="center" valign="top" width="33%">
|
|
157
|
+
<a href="media/settings_capabilities.png"><img src="media/settings_capabilities.png" alt="编码 OAuth · Capabilities 标签" width="280" /></a><br />
|
|
158
|
+
<sub>Capabilities</sub>
|
|
159
|
+
</td>
|
|
160
|
+
</tr>
|
|
161
|
+
</table>
|
|
145
162
|
|
|
146
163
|
| 供应商 | 方式 |
|
|
147
164
|
|---|---|
|
package/docs/02-architecture.md
CHANGED
|
@@ -119,7 +119,7 @@ This project does not replicate the private Google Antigravity protocol. The pro
|
|
|
119
119
|
|
|
120
120
|
## 6. Compatibility
|
|
121
121
|
|
|
122
|
-
The canonical package and repository name is **`dsh-coding-subscription-oauth`**. The previous GitHub URL still resolves to the same `main`, so old `dsh plugin add github:lninghaha/dsh-grok-build` commands continue to install the renamed package. The first public npm/GitHub Release was **`0.4.1`**. The current release is **`0.5.
|
|
122
|
+
The canonical package and repository name is **`dsh-coding-subscription-oauth`**. The previous GitHub URL still resolves to the same `main`, so old `dsh plugin add github:lninghaha/dsh-grok-build` commands continue to install the renamed package. The first public npm/GitHub Release was **`0.4.1`**. The current release is **`0.5.5`** (`dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.5`). GitHub and local tarball installs remain valid.
|
|
123
123
|
|
|
124
124
|
Stable on-disk / in-process identifiers (do not rename without a migration):
|
|
125
125
|
|
|
@@ -119,7 +119,7 @@ POST /plugins/dsh-grok-build/gateway/rotate
|
|
|
119
119
|
|
|
120
120
|
## 6. 兼容性
|
|
121
121
|
|
|
122
|
-
正式包名与仓库名是 **`dsh-coding-subscription-oauth`**。旧 GitHub 地址仍指向同一条 `main`,因此旧的 `dsh plugin add github:lninghaha/dsh-grok-build` 仍会安装更名后的包。第一次公开 npm / GitHub Release 是 **`0.4.1`**。当前版本是 **`0.5.
|
|
122
|
+
正式包名与仓库名是 **`dsh-coding-subscription-oauth`**。旧 GitHub 地址仍指向同一条 `main`,因此旧的 `dsh plugin add github:lninghaha/dsh-grok-build` 仍会安装更名后的包。第一次公开 npm / GitHub Release 是 **`0.4.1`**。当前版本是 **`0.5.5`**(`dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.5`)。GitHub 与本地 tarball 安装仍然有效。
|
|
123
123
|
|
|
124
124
|
以下标识保持稳定(无迁移方案前不要改名):
|
|
125
125
|
|