@edge-sky/dsh-oauth-adapter 0.1.2-rc.0 → 0.1.3-rc.0
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.i18n.yaml +2 -2
- package/README.md +7 -4
- package/README.zh.md +5 -4
- package/lib/client.js +581 -8
- package/lib/index.d.ts +7 -3
- package/lib/index.js +82 -78
- package/lib/model-auth.d.ts +8 -0
- package/lib/model-auth.js +48 -0
- package/lib/model-catalog.d.ts +27 -0
- package/lib/model-catalog.js +145 -0
- package/lib/model-discovery.d.ts +22 -0
- package/lib/model-discovery.js +147 -0
- package/lib/model-service.d.ts +64 -0
- package/lib/model-service.js +376 -0
- package/lib/model-types.d.ts +94 -0
- package/lib/model-types.js +25 -0
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.js +27 -0
- package/lib/types/client/OAuthModelsSection.d.ts +11 -0
- package/lib/types/client/index.d.ts +2 -2
- package/lib/types/client/locales.d.ts +35 -0
- package/lib/types/client/store.d.ts +17 -0
- package/lib/types/client/styles.d.ts +1 -1
- package/lib/types/model-types.d.ts +94 -0
- package/lib/types/protocol.d.ts +3 -2
- package/package.json +62 -35
package/README.i18n.yaml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# Bilingual-pair consistency record: the git blob hash of each side as of the
|
|
2
2
|
# last confirmed-consistent state. Both languages carry equal authority.
|
|
3
|
-
README.md:
|
|
4
|
-
README.zh.md:
|
|
3
|
+
README.md: 745b055c42ba308b7e9f33819f6c084bad98dda4
|
|
4
|
+
README.zh.md: 6bcdf2437386378d19e0045d8c6397ba65637374
|
package/README.md
CHANGED
|
@@ -13,9 +13,7 @@ An OAuth account page for the DSH Web profile. It supports:
|
|
|
13
13
|
| OpenRouter | Browser PKCE callback |
|
|
14
14
|
| xAI | Device code |
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
The adapter has only been tested with DSH `0.1.1-rc.2`; compatibility with future versions is not guaranteed.
|
|
16
|
+
The adapter has only been tested with DSH `0.1.1-rc.2`; compatibility with future versions is need to test.
|
|
19
17
|
|
|
20
18
|
## Install
|
|
21
19
|
|
|
@@ -35,7 +33,9 @@ Start DSH:
|
|
|
35
33
|
npx @deepseek-ai/dsh web
|
|
36
34
|
```
|
|
37
35
|
|
|
38
|
-
<img width="
|
|
36
|
+
<img width="2940" height="1766" alt="image" src="https://github.com/user-attachments/assets/cbd98703-ee7a-491b-aa2f-02e42b99f6b9" />
|
|
37
|
+
|
|
38
|
+
|
|
39
39
|
|
|
40
40
|
<img width="2270" height="1524" alt="image" src="https://github.com/user-attachments/assets/e0cc6591-73a4-4e87-9ef6-68950126b290" />
|
|
41
41
|
|
|
@@ -47,3 +47,6 @@ DSH integrates pi-ai through the `@deepseek-ai/dsh-llm-pi-ai` adapter, but does
|
|
|
47
47
|
Because DSH does not currently mount the `ctx.authorization` service, this plugin also mounts it manually.
|
|
48
48
|
|
|
49
49
|
The plugin itself does not manage OAuth credentials or maintain login state. Maybe DSH support this sign-in method in the future; but for now, this plugin lets you enjoy it.
|
|
50
|
+
|
|
51
|
+
If this plugins is has helped you, please give a star for me, or create issues if you have any suggestion~
|
|
52
|
+
|
package/README.zh.md
CHANGED
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
| OpenRouter | 浏览器 PKCE 回调 |
|
|
14
14
|
| xAI | 设备码 |
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
当前仅对 DSH`0.1.1-rc.2`进行了测试,不保证未来版本的兼容性
|
|
16
|
+
当前仅对 DSH`0.1.1-rc.2`进行了测试,其他版本的兼容性需要自行测试
|
|
19
17
|
|
|
20
18
|
## 安装
|
|
21
19
|
|
|
@@ -35,7 +33,8 @@ npx @deepseek-ai/dsh plugin --profile web add @edge-sky/dsh-oauth-adapter
|
|
|
35
33
|
npx @deepseek-ai/dsh web
|
|
36
34
|
```
|
|
37
35
|
|
|
38
|
-
<img width="
|
|
36
|
+
<img width="2940" height="1766" alt="image" src="https://github.com/user-attachments/assets/7f1dc846-9cea-468c-8a1e-27f4fa34a4fe" />
|
|
37
|
+
|
|
39
38
|
|
|
40
39
|
<img width="2270" height="1524" alt="image" src="https://github.com/user-attachments/assets/8007002a-a036-4cf4-b015-d4e50eff25d9" />
|
|
41
40
|
|
|
@@ -47,3 +46,5 @@ DSH 通过 `@deepseek-ai/dsh-llm-pi-ai` 适配器接入 pi-ai,但并没有提
|
|
|
47
46
|
由于 DSH 目前并没有挂载`ctx.authorization`服务,因此该插件同时手动对其进行了挂载
|
|
48
47
|
|
|
49
48
|
插件本身并不承担 OAuth 凭证管理与维持登录态的职责,或许将来 DSH 会官方支持这一登录方式,但至少现在你可以通过这个插件体验它
|
|
49
|
+
|
|
50
|
+
如果这个插件帮到了你,还请留下你的小星星,如果有任何建议,欢迎 issues~
|