dsh-coding-subscription-oauth 0.5.2 → 0.5.3

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 CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  All notable changes to `dsh-coding-subscription-oauth` are documented here, following the release loop in `docs/00-project-rules.md`. Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). Versioning follows [SemVer](https://semver.org/).
4
4
 
5
- ## Unreleased
5
+ ## v0.5.3 - 2026-08-19
6
+
7
+ ### Changed
8
+
9
+ - Raise the default OAuth route retry policy to 5 stacked exponential delays (5 s → 10 s → 20 s → 40 s → 80 s, ~155 s total, 10% jitter).
10
+ - Remap xAI “at capacity / high demand / priority processing / overloaded” finish messages to `RATE_LIMIT` so harness retries run instead of failing as `PI_AI_ERROR` when upstream `error.code` is null.
6
11
 
7
12
  ## v0.5.2 - 2026-08-18
8
13
 
package/INSTALL.md CHANGED
@@ -3,20 +3,18 @@
3
3
  本仓库原名 **`dsh-grok-build`**。普通用户请使用已发布的 npm 版本:
4
4
 
5
5
  ```bash
6
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
6
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
7
7
  ```
8
8
 
9
9
  CLI 新命令是 `dsh-coding-oauth`(旧命令 `dsh-grok-build` 仍可用)。为兼容已有 profile,Cordis id 仍是 `llm-grok-build-oauth`,设置页 HTTP 路径仍是 `/plugins/dsh-grok-build/*`,凭据文件名不变。
10
10
 
11
- 第一次公开发布是 **`0.4.1`**。当前推荐 **`0.5.2`**:
11
+ 第一次公开发布是 **`0.4.1`**。当前推荐 **`0.5.3`**:
12
12
 
13
13
  ```bash
14
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
14
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
15
15
  dsh plugin --profile web update dsh-coding-subscription-oauth
16
16
  ```
17
17
 
18
- 旧 GitHub 地址会解析到同一条 `main`。
19
-
20
18
  ## 前置条件
21
19
 
22
20
  - DeepSeek Harness 0.1.0-rc.6+
@@ -28,7 +26,7 @@ dsh plugin --profile web update dsh-coding-subscription-oauth
28
26
 
29
27
  ```bash
30
28
  # 普通用户:当前 npm 发布版
31
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
29
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
32
30
 
33
31
  # 开发 / 备用:从 GitHub
34
32
  dsh plugin --profile web add github:lninghaha/dsh-coding-subscription-oauth
@@ -51,7 +49,7 @@ gateway:
51
49
  port: 18080
52
50
  ```
53
51
 
54
- 或在 Settings → Coding OAuth → Local API gateway 打开。Bearer key 存在 `$DSH_HOME/.coding-oauth-gateway.json`。不要绑定 `0.0.0.0`。
52
+ 或在 Settings → Coding OAuth → Gateway 标签页打开。Bearer key 存在 `$DSH_HOME/.coding-oauth-gateway.json`。不要绑定 `0.0.0.0`。
55
53
 
56
54
  ## Antigravity 安全配置
57
55
 
@@ -98,7 +96,7 @@ Kimi Code 中国流量默认直连;只有 `proxyKimi: true` 才代理。
98
96
 
99
97
  ## 弹性重试
100
98
 
101
- OAuth access token 会在本地记录过期时间前 5 分钟主动刷新。服务端若仍以 401/403 拒绝一个本地尚未过期的令牌,插件会把凭据 `expires` 回写到过去,重试的 step 先刷新再发请求。瞬时故障(429/5xx/超时/网络)和 AUTH 默认最多重试 2 次(500 ms → 10 s10% jitter)。配额耗尽和 refresh token 失效不重试。
99
+ OAuth access token 会在本地记录过期时间前 5 分钟主动刷新。服务端若仍以 401/403 拒绝一个本地尚未过期的令牌,插件会把凭据 `expires` 回写到过去,重试的 step 先刷新再发请求。瞬时故障(429/5xx/超时/网络)和 AUTH 默认最多重试 5 次(5 s → 10 s → 20 s → 40 s → 80 s,约 155 s 叠加时常,10% jitter)。xAI「at capacity」等文案会重映射为 `RATE_LIMIT` 后再退避。配额耗尽和 refresh token 失效不重试。
102
100
 
103
101
  部署级覆盖(可选):
104
102
 
@@ -107,9 +105,9 @@ OAuth access token 会在本地记录过期时间前 5 分钟主动刷新。服
107
105
  config:
108
106
  retryPolicy:
109
107
  mode: normal
110
- maxRetries: 2
108
+ maxRetries: 5
111
109
  retryableCodes: [EMPTY_RESPONSE, RATE_LIMIT, SERVER, TIMEOUT, TRANSPORT, AUTH]
112
- backoff: { initialDelayMs: 500, maxDelayMs: 10000, jitterRatio: 0.1 }
110
+ backoff: { initialDelayMs: 5000, maxDelayMs: 80000, jitterRatio: 0.1 }
113
111
  ```
114
112
 
115
113
  ## 登录
@@ -194,6 +192,8 @@ rm -f ~/.dsh/.grok-build-models.json ~/.dsh/.codex-oauth-models.json \
194
192
 
195
193
  ## 部署验收
196
194
 
195
+ 以下命令面向维护者,需要在源码 checkout 中运行;通过 npm 安装的用户无需执行。
196
+
197
197
  ```bash
198
198
  pnpm run verify:deployed
199
199
 
@@ -209,7 +209,7 @@ pnpm run smoke:deployed
209
209
 
210
210
  | 现象 | 处理 |
211
211
  |---|---|
212
- | 还在搜 / 装着 `dsh-grok-build` | 仓库已更名为 `dsh-coding-subscription-oauth`;旧 GitHub 地址仍跟踪同一条 `main`。新安装请用新名 |
212
+ | 还在搜 / 装着 `dsh-grok-build` | 仓库已更名为 `dsh-coding-subscription-oauth`;旧 GitHub 仓库已删除。请改用 npm 包或 `github:lninghaha/dsh-coding-subscription-oauth` |
213
213
  | Codex localhost callback 打不开 | 改用设备码,或把完整 redirect URL 粘贴回设置页 |
214
214
  | Claude localhost callback 在远端浏览器 | 把完整 redirect URL 粘贴回设置页 |
215
215
  | Kimi 401/403 | 重新登录并确认 Kimi Code 会员有效;不要改成 moonshot.cn OAuth |
package/README.de.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # 🔐 dsh-coding-subscription-oauth
6
6
 
7
- **v0.5.2 · früher `dsh-grok-build`
7
+ **v0.5.3 · früher `dsh-grok-build`
8
8
 
9
9
  **OAuth-Plugin für Coding-Abonnements für [DeepSeek Harness](https://github.com/deepseek-ai/dsh).** Melden Sie sich einmal mit den Abonnements an, die Sie bereits bezahlen, und nutzen Sie die Modelle aus den Einstellungen oder der CLI von dsh. **Keine Tokens in den Chat einfügen.**
10
10
 
@@ -24,7 +24,7 @@ Zuerst **`dsh-grok-build`** (nur Grok Build). Jetzt SuperGrok / Codex / Kimi / C
24
24
  | | Das verwenden | Funktioniert weiter |
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` (derselbe `main`) |
27
- | npm | `dsh-coding-subscription-oauth@0.5.2` (aktuelle Version) | Es gab kein altes npm-Paket |
27
+ | npm | `dsh-coding-subscription-oauth@0.5.3` (aktuelle Version) | Es gab kein altes npm-Paket |
28
28
  | CLI | `dsh-coding-oauth` | `dsh-grok-build` |
29
29
  | Cordis-Plugin-id | `llm-grok-build-oauth` | unverändert |
30
30
  | Settings-HTTP-API | `/plugins/dsh-grok-build/*` | unverändert |
@@ -36,8 +36,11 @@ Zuerst **`dsh-grok-build`** (nur Grok Build). Jetzt SuperGrok / Codex / Kimi / C
36
36
  - 🔑 **Lokales OAuth, ohne Key einzufügen** — in den Einstellungen oder der CLI autorisieren; Tokens gelangen nie in den Chat.
37
37
  - 🧩 **Ein Plugin, fünf Anbieter** — Grok Build, Codex, Kimi, Claude und Google Antigravity.
38
38
  - 🛡️ **Sicherheit by Design** — Zugangsdateien nur-eigentümer `0600`, atomares Schreiben, dateiübergreifende Prozesssperre.
39
- - ⚙️ **Dynamischer Katalog** — der Modellwähler listet genau die Anbieter, die Sie authentifiziert haben.
39
+ - ⚙️ **Dynamischer Katalog** — der Wähler listet nur authentifizierte Routen, gekennzeichnet mit `(OAuth)`, einschließlich `xhigh` von grok-4.6.
40
40
  - 🌐 **Proxy-bewusst** — nur geprüfte, vertrauenswürdige Abonnement-Domänen werden über den Proxy geleitet.
41
+ - 📥 **Manueller CLI-Pull** — die Einstellungen entdecken erlaubte offizielle Grok-/Codex-/Kimi-/Claude-CLI-OAuth-Dateien schreibgeschützt; nach Vorschau und Überschreibbestätigung ziehen Sie eine Einweg-Kopie.
42
+ - 🗂️ **Einstellungen mit Tabs** — Accounts, Gateway, Capabilities und About ersetzen das lange Scrollen; Karten angemeldeter Anbieter bleiben eingeklappt, bis sie erweitert werden.
43
+ - 🎛️ **Optionale Funktionen, standardmäßig aus** — Codex-Suche, Nutzung/Kontingent, Bild erzeugen/bearbeiten, Fast und Grok Imagine wirken live beim Einschalten.
41
44
  - 🔌 **Opt-in lokales API-Gateway** — standardmäßig ausgeschalteter Loopback-Server, OpenAI-/Anthropic-kompatibel; für Ihre eigenen Werkzeuge, niemals ein öffentliches Relay.
42
45
 
43
46
  ## Integrationsprobleme, die dieses Plugin löst
@@ -71,7 +74,7 @@ Diese Suchbegriffe und DSH-Fehler führen meist hierher.
71
74
 
72
75
  ```bash
73
76
  # 1. Plugin in das Web-Profil installieren (aktuelle npm-Version)
74
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
77
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
75
78
 
76
79
  # 2. optional — Google Antigravity (gepinnte, geprüfte Version)
77
80
  dsh plugin --profile web add dsh-agy@0.1.2
@@ -85,9 +88,13 @@ Danach **Settings → Coding OAuth** öffnen und bei einem beliebigen Anbieter a
85
88
  ## 📚 Inhaltsverzeichnis
86
89
 
87
90
  - [Namensänderung](#namensänderung)
91
+ - [Funktionen](#-funktionen)
88
92
  - [Integrationsprobleme, die dieses Plugin löst](#integrationsprobleme-die-dieses-plugin-löst)
93
+ - [Unterstützte Anbieter](#unterstützte-anbieter)
94
+ - [Schnellstart](#-schnellstart)
89
95
  - [Installation](#installation)
90
96
  - [Einstellungsseite](#einstellungsseite)
97
+ - [Optionale Funktionen](#optionale-funktionen)
91
98
  - [Lokales API-Gateway](#lokales-api-gateway)
92
99
  - [CLI](#cli)
93
100
  - [Kimi in China](#kimi-in-china)
@@ -98,6 +105,7 @@ Danach **Settings → Coding OAuth** öffnen und bei einem beliebigen Anbieter a
98
105
  - [Technische Hinweise](#technische-hinweise)
99
106
  - [Compliance](#compliance)
100
107
  - [Dokumentation](#dokumentation)
108
+ - [Verwandt](#verwandt)
101
109
  - [Mitwirken](#mitwirken)
102
110
  - [Lizenz](#lizenz)
103
111
 
@@ -107,7 +115,7 @@ Erfordert DeepSeek Harness `0.1.0-rc.6+` und Node.js 22.19+. Vollständige Detai
107
115
 
108
116
  ```bash
109
117
  # aktuelle npm-Version (empfohlen)
110
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
118
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
111
119
 
112
120
  # Entwicklung/Alternativ: von GitHub
113
121
  dsh plugin --profile web add github:lninghaha/dsh-coding-subscription-oauth
@@ -201,16 +209,16 @@ Nur geprüfte Abonnement-Domänen werden proxied (xAI/Grok, OpenAI Codex, Claude
201
209
 
202
210
  OAuth-Zugriffstoken werden **fünf Minuten** vor dem gespeicherten Ablauf erneuert (pi-ai 0.84+). Lehnt der Upstream ein lokal noch gültiges Token mit 401/403 ab, setzt das Plugin das gespeicherte `expires` in die Vergangenheit; der wiederholte Step refresht zuerst und sendet dann erneut.
203
211
 
204
- Wiederholungen folgen der Harness-Retry-Policy: transiente Fehler (`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`) **und `AUTH`** werden mit exponentiellem Backoff wiederholt (2 Versuche, 500 ms → 10 s, 10 % Jitter). Quota-Erschöpfung und ein totes Refresh-Token werden **nicht** wiederholt. Überschreiben pro Deployment:
212
+ Wiederholungen folgen der Harness-Retry-Policy: transiente Fehler (`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`) **und `AUTH`** werden mit exponentiellem Backoff wiederholt (5 Versuche, 5 s → 10 s → 20 s → 40 s → 80 s (~155 s gestapelt), 10 % Jitter). Quota-Erschöpfung und ein totes Refresh-Token werden **nicht** wiederholt. Überschreiben pro Deployment:
205
213
 
206
214
  ```yaml
207
215
  - id: llm-grok-build-oauth
208
216
  config:
209
217
  retryPolicy:
210
218
  mode: normal
211
- maxRetries: 2
219
+ maxRetries: 5
212
220
  retryableCodes: [EMPTY_RESPONSE, RATE_LIMIT, SERVER, TIMEOUT, TRANSPORT, AUTH]
213
- backoff: { initialDelayMs: 500, maxDelayMs: 10000, jitterRatio: 0.1 }
221
+ backoff: { initialDelayMs: 5000, maxDelayMs: 80000, jitterRatio: 0.1 }
214
222
  ```
215
223
 
216
224
  ## Zugangsdaten
package/README.es.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # 🔐 dsh-coding-subscription-oauth
6
6
 
7
- **v0.5.2 · antes `dsh-grok-build`
7
+ **v0.5.3 · antes `dsh-grok-build`
8
8
 
9
9
  **Plugin OAuth de suscripciones de codificación para [DeepSeek Harness](https://github.com/deepseek-ai/dsh).** Inicia sesión una vez con las suscripciones que ya pagas y luego usa sus modelos desde la página de configuración o la CLI de dsh. **Sin pegar tokens en el chat.**
10
10
 
@@ -24,7 +24,7 @@ Empezó como **`dsh-grok-build`** (solo Grok Build). Ahora cubre SuperGrok / Cod
24
24
  | | Usa esto | Sigue funcionando |
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` (el mismo `main`) |
27
- | npm | `dsh-coding-subscription-oauth@0.5.2` (versión actual) | No se publicó un paquete npm legado |
27
+ | npm | `dsh-coding-subscription-oauth@0.5.3` (versión actual) | No se publicó un paquete npm legado |
28
28
  | CLI | `dsh-coding-oauth` | `dsh-grok-build` |
29
29
  | Cordis plugin id | `llm-grok-build-oauth` | sin cambios |
30
30
  | API HTTP de ajustes | `/plugins/dsh-grok-build/*` | sin cambios |
@@ -36,8 +36,11 @@ Empezó como **`dsh-grok-build`** (solo Grok Build). Ahora cubre SuperGrok / Cod
36
36
  - 🔑 **OAuth local, sin pegar claves** — autoriza en la página de configuración o la CLI; los tokens nunca entran en el chat.
37
37
  - 🧩 **Un plugin, cinco proveedores** — Grok Build, Codex, Kimi, Claude y Google Antigravity.
38
38
  - 🛡️ **Seguro por diseño** — archivos de credenciales solo-propietario `0600`, escritura atómica, bloqueo de archivo entre procesos.
39
- - ⚙️ **Catálogo dinámico** — el selector de modelos lista exactamente los proveedores que autenticaste.
39
+ - ⚙️ **Catálogo dinámico** — el selector lista solo rutas autenticadas, etiquetadas con `(OAuth)`, incluido el `xhigh` de grok-4.6.
40
40
  - 🌐 **Consciente de proxy** — solo hace proxy de dominios de suscripción revisados y confiables.
41
+ - 📥 **CLI Pull manual** — la configuración descubre los archivos OAuth oficiales de los CLI Grok/Codex/Kimi/Claude permitidos, en modo solo lectura; extraes una copia unidireccional tras previsualizar y confirmar la sobrescritura.
42
+ - 🗂️ **Configuración en pestañas** — Accounts, Gateway, Capabilities y About sustituyen el desplazamiento largo; las tarjetas de proveedores autenticados permanecen contraídas hasta expandirlas.
43
+ - 🎛️ **Capacidades opcionales, desactivadas por defecto** — búsqueda de Codex, uso/cuota, generación/edición de imágenes, Fast y Grok Imagine se aplican en vivo al activarlas.
41
44
  - 🔌 **Gateway de API local opt-in** — servidor loopback compatible con OpenAI/Anthropic, desactivado por defecto; para tus propias herramientas, nunca un relé público.
42
45
 
43
46
  ## Problemas de integración que resuelve este plugin
@@ -71,7 +74,7 @@ Estas búsquedas y errores de DSH suelen traer a la gente hasta aquí.
71
74
 
72
75
  ```bash
73
76
  # 1. instala el plugin en el perfil web (versión actual de npm)
74
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
77
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
75
78
 
76
79
  # 2. opcional — Google Antigravity (versión fija revisada)
77
80
  dsh plugin --profile web add dsh-agy@0.1.2
@@ -85,9 +88,13 @@ Luego abre **Settings → Coding OAuth** e inicia sesión en cualquier proveedor
85
88
  ## 📚 Índice
86
89
 
87
90
  - [Cambio de nombre](#cambio-de-nombre)
91
+ - [Funciones](#-funciones)
88
92
  - [Problemas de integración que resuelve este plugin](#problemas-de-integración-que-resuelve-este-plugin)
93
+ - [Proveedores soportados](#proveedores-soportados)
94
+ - [Inicio rápido](#-inicio-rápido)
89
95
  - [Instalación](#instalación)
90
96
  - [Página de configuración](#página-de-configuración)
97
+ - [Capacidades opcionales](#capacidades-opcionales)
91
98
  - [Gateway de API local](#gateway-de-api-local)
92
99
  - [CLI](#cli)
93
100
  - [Kimi en China](#kimi-en-china)
@@ -98,6 +105,7 @@ Luego abre **Settings → Coding OAuth** e inicia sesión en cualquier proveedor
98
105
  - [Notas técnicas](#notas-técnicas)
99
106
  - [Cumplimiento](#cumplimiento)
100
107
  - [Documentación](#documentación)
108
+ - [Relacionados](#relacionados)
101
109
  - [Contribución](#contribución)
102
110
  - [Licencia](#licencia)
103
111
 
@@ -107,7 +115,7 @@ Requiere DeepSeek Harness `0.1.0-rc.6+` y Node.js 22.19+. Detalles completos en
107
115
 
108
116
  ```bash
109
117
  # versión actual de npm (recomendado)
110
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
118
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
111
119
 
112
120
  # desarrollo/alternativo: desde GitHub
113
121
  dsh plugin --profile web add github:lninghaha/dsh-coding-subscription-oauth
@@ -201,16 +209,16 @@ Solo se usan vía proxy los dominios de suscripción revisados (xAI/Grok, OpenAI
201
209
 
202
210
  Los tokens de acceso OAuth se renuevan **cinco minutos** antes del vencimiento almacenado (pi-ai 0.84+). Si el origen aún rechaza un token localmente válido con 401/403, el plugin retrocede el `expires` guardado y el step reintentado renueva el token antes de reenviar.
203
211
 
204
- Los reintentos siguen la política del harness: fallos transitorios (`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`) **y `AUTH`** se reintentan con backoff exponencial (2 reintentos, 500 ms → 10 s, 10% de jitter). El agotamiento de cuota y un refresh token muerto **no** se reintentan. Anulación por despliegue:
212
+ Los reintentos siguen la política del harness: fallos transitorios (`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`) **y `AUTH`** se reintentan con backoff exponencial (5 reintentos, 5 s → 10 s → 20 s → 40 s → 80 s (~155 s acumulados), 10% de jitter). El agotamiento de cuota y un refresh token muerto **no** se reintentan. Anulación por despliegue:
205
213
 
206
214
  ```yaml
207
215
  - id: llm-grok-build-oauth
208
216
  config:
209
217
  retryPolicy:
210
218
  mode: normal
211
- maxRetries: 2
219
+ maxRetries: 5
212
220
  retryableCodes: [EMPTY_RESPONSE, RATE_LIMIT, SERVER, TIMEOUT, TRANSPORT, AUTH]
213
- backoff: { initialDelayMs: 500, maxDelayMs: 10000, jitterRatio: 0.1 }
221
+ backoff: { initialDelayMs: 5000, maxDelayMs: 80000, jitterRatio: 0.1 }
214
222
  ```
215
223
 
216
224
  ## Credenciales
package/README.fr.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # 🔐 dsh-coding-subscription-oauth
6
6
 
7
- **v0.5.2 · anciennement `dsh-grok-build`
7
+ **v0.5.3 · anciennement `dsh-grok-build`
8
8
 
9
9
  **Plugin OAuth pour abonnements de codage de [DeepSeek Harness](https://github.com/deepseek-ai/dsh).** Connectez-vous une fois avec les abonnements que vous payez déjà, puis utilisez leurs modèles depuis la page de configuration ou la CLI dsh. **Aucun token collé dans le chat.**
10
10
 
@@ -24,7 +24,7 @@ Le projet s'appelait **`dsh-grok-build`** (Grok Build uniquement). Il couvre mai
24
24
  | | Utiliser | Toujours valable |
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` (même `main`) |
27
- | npm | `dsh-coding-subscription-oauth@0.5.2` (version actuelle) | Aucun ancien paquet npm n'a été publié |
27
+ | npm | `dsh-coding-subscription-oauth@0.5.3` (version actuelle) | Aucun ancien paquet npm n'a été publié |
28
28
  | CLI | `dsh-coding-oauth` | `dsh-grok-build` |
29
29
  | Cordis plugin id | `llm-grok-build-oauth` | inchangé |
30
30
  | API HTTP des réglages | `/plugins/dsh-grok-build/*` | inchangé |
@@ -36,8 +36,11 @@ Le projet s'appelait **`dsh-grok-build`** (Grok Build uniquement). Il couvre mai
36
36
  - 🔑 **OAuth local, sans coller de clé** — autorisez dans la page de configuration ou la CLI ; les tokens n'entrent jamais dans le chat.
37
37
  - 🧩 **Un plugin, cinq fournisseurs** — Grok Build, Codex, Kimi, Claude et Google Antigravity.
38
38
  - 🛡️ **Sécurisé par conception** — fichiers d'identification propriétaire-seul `0600`, écriture atomique, verrou de fichier inter-processus.
39
- - ⚙️ **Catalogue dynamique** — le sélecteur de modèles liste exactement les fournisseurs que vous avez authentifiés.
39
+ - ⚙️ **Catalogue dynamique** — le sélecteur n'affiche que les routes authentifiées, étiquetées `(OAuth)`, y compris le `xhigh` de grok-4.6.
40
40
  - 🌐 **Conscient du proxy** — ne proxifie que les domaines d'abonnement examinés et de confiance.
41
+ - 📥 **CLI Pull manuel** — les paramètres découvrent en lecture seule les fichiers OAuth officiels des CLI Grok/Codex/Kimi/Claude autorisés ; vous récupérez une copie à sens unique après prévisualisation et confirmation d'écrasement.
42
+ - 🗂️ **Paramètres en onglets** — Accounts, Gateway, Capabilities et About remplacent le long défilement ; les cartes des fournisseurs connectés restent repliées jusqu'à leur expansion.
43
+ - 🎛️ **Capacités optionnelles, désactivées par défaut** — recherche Codex, usage/quota, génération/édition d'images, Fast et Grok Imagine s'appliquent en direct dès leur activation.
41
44
  - 🔌 **Passerelle API locale opt-in** — serveur loopback compatible OpenAI/Anthropic, désactivé par défaut ; pour vos propres outils, jamais un relais public.
42
45
 
43
46
  ## Problèmes d'intégration que ce plugin résout
@@ -71,7 +74,7 @@ Ce sont les recherches et erreurs DSH qui mènent le plus souvent ici.
71
74
 
72
75
  ```bash
73
76
  # 1. installez le plugin dans le profil web (version actuelle npm)
74
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
77
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
75
78
 
76
79
  # 2. optionnel — Google Antigravity (version épinglée examinée)
77
80
  dsh plugin --profile web add dsh-agy@0.1.2
@@ -85,9 +88,13 @@ Ensuite ouvrez **Settings → Coding OAuth** et connectez-vous à n'importe quel
85
88
  ## 📚 Sommaire
86
89
 
87
90
  - [Changement de nom](#changement-de-nom)
91
+ - [Fonctionnalités](#-fonctionnalités)
88
92
  - [Problèmes d'intégration que ce plugin résout](#problèmes-dintégration-que-ce-plugin-résout)
93
+ - [Fournisseurs pris en charge](#fournisseurs-pris-en-charge)
94
+ - [Démarrage rapide](#-démarrage-rapide)
89
95
  - [Installation](#installation)
90
96
  - [Page de configuration](#page-de-configuration)
97
+ - [Capacités optionnelles](#capacités-optionnelles)
91
98
  - [Passerelle API locale](#passerelle-api-locale)
92
99
  - [CLI](#cli)
93
100
  - [Kimi en Chine](#kimi-en-chine)
@@ -98,6 +105,7 @@ Ensuite ouvrez **Settings → Coding OAuth** et connectez-vous à n'importe quel
98
105
  - [Notes techniques](#notes-techniques)
99
106
  - [Conformité](#conformité)
100
107
  - [Documentation](#documentation)
108
+ - [Lié](#lié)
101
109
  - [Contribution](#contribution)
102
110
  - [Licence](#licence)
103
111
 
@@ -107,7 +115,7 @@ Nécessite DeepSeek Harness `0.1.0-rc.6+` et Node.js 22.19+. Détails complets d
107
115
 
108
116
  ```bash
109
117
  # version actuelle npm (recommandé)
110
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
118
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
111
119
 
112
120
  # développement/alternatif : depuis GitHub
113
121
  dsh plugin --profile web add github:lninghaha/dsh-coding-subscription-oauth
@@ -201,16 +209,16 @@ Seuls les domaines d'abonnement examinés sont proxifiés (xAI/Grok, OpenAI Code
201
209
 
202
210
  Les jetons d'accès OAuth sont renouvelés **cinq minutes** avant l'expiration enregistrée (pi-ai 0.84+). Si l'amont refuse encore un jeton localement valide avec 401/403, le plugin recule le `expires` stocké et l'étape relancée rafraîchit le jeton avant de renvoyer.
203
211
 
204
- Les nouvelles tentatives suivent la politique du harness : les pannes transitoires (`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`) **et `AUTH`** sont relancées avec un backoff exponentiel (2 essais, 500 ms → 10 s, jitter 10 %). L'épuisement de quota et un refresh token mort **ne** sont **pas** relancés. Surcharge par déploiement :
212
+ Les nouvelles tentatives suivent la politique du harness : les pannes transitoires (`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`) **et `AUTH`** sont relancées avec un backoff exponentiel (5 essais, 5 s → 10 s → 20 s → 40 s → 80 s (~155 s cumulés), jitter 10 %). L'épuisement de quota et un refresh token mort **ne** sont **pas** relancés. Surcharge par déploiement :
205
213
 
206
214
  ```yaml
207
215
  - id: llm-grok-build-oauth
208
216
  config:
209
217
  retryPolicy:
210
218
  mode: normal
211
- maxRetries: 2
219
+ maxRetries: 5
212
220
  retryableCodes: [EMPTY_RESPONSE, RATE_LIMIT, SERVER, TIMEOUT, TRANSPORT, AUTH]
213
- backoff: { initialDelayMs: 500, maxDelayMs: 10000, jitterRatio: 0.1 }
221
+ backoff: { initialDelayMs: 5000, maxDelayMs: 80000, jitterRatio: 0.1 }
214
222
  ```
215
223
 
216
224
  ## Identifiants
package/README.ja.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # 🔐 dsh-coding-subscription-oauth
6
6
 
7
- **v0.5.2 · 旧名 `dsh-grok-build`
7
+ **v0.5.3 · 旧名 `dsh-grok-build`
8
8
 
9
9
  **DeepSeek Harness(dsh)のためのコーディングサブスクリプション OAuth プラグイン。** 支払い済みのサブスクリプションで一度きりのサインイン——その後は dsh の設定ページまたは CLI からそのモデルを使えます。**チャットにトークンを貼り付ける必要はありません。**
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.2`(現在のリリース) | 旧 npm パッケージは公開されていない |
27
+ | npm | `dsh-coding-subscription-oauth@0.5.3`(現在のリリース) | 旧 npm パッケージは公開されていない |
28
28
  | CLI | `dsh-coding-oauth` | `dsh-grok-build` |
29
29
  | Cordis プラグイン id | `llm-grok-build-oauth` | 変更なし |
30
30
  | 設定ページ HTTP API | `/plugins/dsh-grok-build/*` | 変更なし |
@@ -36,8 +36,11 @@
36
36
  - 🔑 **ローカル OAuth、キーの貼り付け不要** — 設定ページまたは CLI で認証します。トークンがチャットに入ることはありません。
37
37
  - 🧩 **1 つのプラグインで 5 つのプロバイダー** — Grok Build、Codex、Kimi、Claude、Google Antigravity。
38
38
  - 🛡️ **セキュリティ設計** — 認証情報ファイルはオーナー専用 `0600`、アトミック書き込み、クロスプロセスファイルロック。
39
- - ⚙️ **動的カタログ** — モデルセレクターには認証済みプロバイダーのみが表示されます。
39
+ - ⚙️ **動的カタログ** — セレクターには認証を完了したルートのみが `(OAuth)` ラベル付きで表示され、grok-4.6 の `xhigh` も含まれます。
40
40
  - 🌐 **プロキシ対応** — レビュー済みの信頼できるサブスクリプションドメインのみをプロキシします。
41
+ - 📥 **手動 CLI Pull** — 設定ページが許可リストにある公式 Grok/Codex/Kimi/Claude CLI の OAuth ファイルを読み取り専用で検出。プレビューと上書き確認の後、ワンウェイコピーを取り込みます。
42
+ - 🗂️ **タブ分けされた設定** — Accounts・Gateway・Capabilities・About の 4 タブが長い縦スクロールを置き換え、サインイン済みプロバイダーのカードは展開するまで折りたたまれます。
43
+ - 🎛️ **オプション機能(既定オフ)** — Codex の検索・使用量/クォータ・画像生成/編集・Fast、Grok Imagine はスイッチをオンにすると即時適用されます。
41
44
  - 🔌 **オプトインのローカル API ゲートウェイ** — 既定オフのループバック OpenAI/Anthropic 互換サーバー。自分のツール専用で、公開リレーではありません。
42
45
 
43
46
  ## このプラグインが解く接続の問題
@@ -71,7 +74,7 @@ DSH にコーディングサブスクを載せるとき、よく次の検索語
71
74
 
72
75
  ```bash
73
76
  # 1. web プロファイルにプラグインをインストール(現在の npm リリース)
74
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
77
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
75
78
 
76
79
  # 2. 任意 — Google Antigravity(レビュー済みの固定バージョン)
77
80
  dsh plugin --profile web add dsh-agy@0.1.2
@@ -85,9 +88,13 @@ systemctl --user restart dsh-web.service
85
88
  ## 📚 目次
86
89
 
87
90
  - [名称変更](#名称変更)
91
+ - [特徴](#-特徴)
88
92
  - [このプラグインが解く接続の問題](#このプラグインが解く接続の問題)
93
+ - [対応プロバイダー](#対応プロバイダー)
94
+ - [クイックスタート](#-クイックスタート)
89
95
  - [インストール](#インストール)
90
96
  - [設定ページ](#設定ページ)
97
+ - [オプション機能](#オプション機能)
91
98
  - [ローカル API ゲートウェイ](#ローカル-api-ゲートウェイ)
92
99
  - [CLI](#cli)
93
100
  - [中国での Kimi](#中国での-kimi)
@@ -98,6 +105,7 @@ systemctl --user restart dsh-web.service
98
105
  - [技術的な補足](#技術的な補足)
99
106
  - [コンプライアンス](#コンプライアンス)
100
107
  - [ドキュメント](#ドキュメント)
108
+ - [関連プロジェクト](#関連プロジェクト)
101
109
  - [コントリビュート](#コントリビュート)
102
110
  - [ライセンス](#ライセンス)
103
111
 
@@ -107,7 +115,7 @@ DeepSeek Harness `0.1.0-rc.6+` と Node.js 22.19+ が前提です。詳細は[
107
115
 
108
116
  ```bash
109
117
  # 現在の npm リリース(推奨)
110
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
118
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
111
119
 
112
120
  # 開発/代替:GitHub から
113
121
  dsh plugin --profile web add github:lninghaha/dsh-coding-subscription-oauth
@@ -201,16 +209,16 @@ Kimi Code サブスクリプション OAuth は `https://auth.kimi.com` を、
201
209
 
202
210
  OAuth アクセストークンは記録された有効期限の **5 分前**に先行リフレッシュされます(pi-ai 0.84+)。上流がまだローカルでは有効なトークンを 401/403 で拒否した場合、プラグインは保存済み `expires` を過去に戻し、再試行ステップが先にリフレッシュしてから再送します。
203
211
 
204
- リクエスト再試行は harness の retry ポリシーです。一時障害(`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`)**および `AUTH`** は指数バックオフで再試行します(既定 2 回、500 ms → 10 s10% jitter)。クォータ枯渇と無効な refresh token は再試行しません。上書き例:
212
+ リクエスト再試行は harness の retry ポリシーです。一時障害(`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`)**および `AUTH`** は指数バックオフで再試行します(既定 5 回、5 s → 10 s → 20 s → 40 s → 80 s(約 155 s 累積)、10% jitter)。クォータ枯渇と無効な refresh token は再試行しません。上書き例:
205
213
 
206
214
  ```yaml
207
215
  - id: llm-grok-build-oauth
208
216
  config:
209
217
  retryPolicy:
210
218
  mode: normal
211
- maxRetries: 2
219
+ maxRetries: 5
212
220
  retryableCodes: [EMPTY_RESPONSE, RATE_LIMIT, SERVER, TIMEOUT, TRANSPORT, AUTH]
213
- backoff: { initialDelayMs: 500, maxDelayMs: 10000, jitterRatio: 0.1 }
221
+ backoff: { initialDelayMs: 5000, maxDelayMs: 80000, jitterRatio: 0.1 }
214
222
  ```
215
223
 
216
224
  ## 認証情報
package/README.ko.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # 🔐 dsh-coding-subscription-oauth
6
6
 
7
- **v0.5.2 · 이전 이름 `dsh-grok-build`
7
+ **v0.5.3 · 이전 이름 `dsh-grok-build`
8
8
 
9
9
  **[DeepSeek Harness](https://github.com/deepseek-ai/dsh)용 코딩 구독 OAuth 플러그인.** 이미 결제한 구독으로 한 번에 로그인하고, dsh 설정 페이지나 CLI에서 그 모델을 사용하세요. **채팅에 토큰을 붙여넣을 필요가 없습니다.**
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.2`(현재 릴리스) | 레거시 npm 패키지는 게시된 적 없음 |
27
+ | npm | `dsh-coding-subscription-oauth@0.5.3`(현재 릴리스) | 레거시 npm 패키지는 게시된 적 없음 |
28
28
  | CLI | `dsh-coding-oauth` | `dsh-grok-build` |
29
29
  | Cordis 플러그인 id | `llm-grok-build-oauth` | 그대로 |
30
30
  | 설정 페이지 HTTP API | `/plugins/dsh-grok-build/*` | 그대로 |
@@ -36,8 +36,11 @@
36
36
  - 🔑 **로컬 OAuth, 키 붙여넣기 불필요** — 설정 페이지나 CLI에서 인증하며, 토큰이 채팅에 들어가지 않습니다.
37
37
  - 🧩 **하나의 플러그인, 다섯 프로바이더** — Grok Build, Codex, Kimi, Claude, Google Antigravity.
38
38
  - 🛡️ **안전한 설계** — 인증 파일은 소유자 전용 `0600`, 원자적 쓰기, 크로스 프로세스 파일 잠금.
39
- - ⚙️ **동적 카탈로그** — 모델 선택기에 인증을 완료한 프로바이더만 표시됩니다.
39
+ - ⚙️ **동적 카탈로그** — 선택기에는 인증을 완료한 라우트만 `(OAuth)` 라벨과 함께 표시되며, grok-4.6의 `xhigh`도 포함됩니다.
40
40
  - 🌐 **프록시 인지형** — 검증된 신뢰 가능한 구독 도메인만 프록시합니다.
41
+ - 📥 **수동 CLI Pull** — 설정 페이지가 허용 목록에 있는 공식 Grok/Codex/Kimi/Claude CLI OAuth 파일을 읽기 전용으로 검색합니다. 미리보기와 덮어쓰기 확인 후 단방향 복사본을 가져옵니다.
42
+ - 🗂️ **탭으로 나뉜 설정** — Accounts, Gateway, Capabilities, About 네 탭이 긴 폭포형 스크롤을 대체하며, 로그인된 프로바이더 카드는 펼칠 때까지 접혀 있습니다.
43
+ - 🎛️ **선택적 기능 (기본 꺼짐)** — Codex 검색, 사용량/쿼터, 이미지 생성/편집, Fast, Grok Imagine은 스위치를 켜면 즉시 적용됩니다.
41
44
  - 🔌 **옵트인 로컬 API 게이트웨이** — 기본 꺼짐의 루프백 OpenAI/Anthropic 호환 서버. 내 도구 전용이며 공개 릴레이가 아닙니다.
42
45
 
43
46
  ## 이 플러그인이 푸는 연동 문제
@@ -71,7 +74,7 @@
71
74
 
72
75
  ```bash
73
76
  # 1. web 프로필에 플러그인 설치 (현재 npm 릴리스)
74
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
77
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
75
78
 
76
79
  # 2. 선택 사항 — Google Antigravity (검증된 고정 버전)
77
80
  dsh plugin --profile web add dsh-agy@0.1.2
@@ -85,9 +88,13 @@ systemctl --user restart dsh-web.service
85
88
  ## 📚 목차
86
89
 
87
90
  - [이름 변경](#이름-변경)
91
+ - [기능](#-기능)
88
92
  - [이 플러그인이 푸는 연동 문제](#이-플러그인이-푸는-연동-문제)
93
+ - [지원 프로바이더](#지원-프로바이더)
94
+ - [빠른 시작](#-빠른-시작)
89
95
  - [설치](#설치)
90
96
  - [설정 페이지](#설정-페이지)
97
+ - [선택적 기능](#선택적-기능)
91
98
  - [로컬 API 게이트웨이](#로컬-api-게이트웨이)
92
99
  - [CLI](#cli)
93
100
  - [중국에서의 Kimi](#중국에서의-kimi)
@@ -98,6 +105,7 @@ systemctl --user restart dsh-web.service
98
105
  - [기술 메모](#기술-메모)
99
106
  - [준수](#준수)
100
107
  - [문서](#문서)
108
+ - [관련 프로젝트](#관련-프로젝트)
101
109
  - [기여](#기여)
102
110
  - [라이선스](#라이선스)
103
111
 
@@ -107,7 +115,7 @@ DeepSeek Harness `0.1.0-rc.6+` 및 Node.js 22.19+가 필요합니다. 자세한
107
115
 
108
116
  ```bash
109
117
  # 현재 npm 릴리스 (권장)
110
- dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.2
118
+ dsh plugin --profile web add dsh-coding-subscription-oauth@0.5.3
111
119
 
112
120
  # 개발/대안: GitHub에서
113
121
  dsh plugin --profile web add github:lninghaha/dsh-coding-subscription-oauth
@@ -201,16 +209,16 @@ Kimi Code 구독 OAuth는 `https://auth.kimi.com`, 추론은 `https://api.kimi.c
201
209
 
202
210
  OAuth 액세스 토큰은 저장된 만료 시각 **5분 전**에 선제적으로 갱신됩니다(pi-ai 0.84+). 업스트림이 로컬에서는 아직 유효한 토큰을 401/403으로 거절하면, 플러그인이 저장된 `expires`를 과거로 되돌리고 재시도 단계에서 먼저 갱신한 뒤 다시 요청합니다.
203
211
 
204
- 요청 재시도는 harness retry 정책을 따릅니다. 일시 오류(`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`)와 **`AUTH`**는 지수 백오프로 재시도합니다(기본 2회, 500 ms → 10 s, 10% jitter). 쿼터 소진과 죽은 refresh token은 재시도하지 않습니다. 배포별 재정의:
212
+ 요청 재시도는 harness retry 정책을 따릅니다. 일시 오류(`RATE_LIMIT`/`SERVER`/`TIMEOUT`/`TRANSPORT`/`EMPTY_RESPONSE`)와 **`AUTH`**는 지수 백오프로 재시도합니다(기본 5회, 5 s → 10 s → 20 s → 40 s → 80 s (~155 s 누적), 10% jitter). 쿼터 소진과 죽은 refresh token은 재시도하지 않습니다. 배포별 재정의:
205
213
 
206
214
  ```yaml
207
215
  - id: llm-grok-build-oauth
208
216
  config:
209
217
  retryPolicy:
210
218
  mode: normal
211
- maxRetries: 2
219
+ maxRetries: 5
212
220
  retryableCodes: [EMPTY_RESPONSE, RATE_LIMIT, SERVER, TIMEOUT, TRANSPORT, AUTH]
213
- backoff: { initialDelayMs: 500, maxDelayMs: 10000, jitterRatio: 0.1 }
221
+ backoff: { initialDelayMs: 5000, maxDelayMs: 80000, jitterRatio: 0.1 }
214
222
  ```
215
223
 
216
224
  ## 자격 증명