dsh-cmtoken-oauth 1.0.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.
@@ -0,0 +1,5 @@
1
+ /** cmtoken 一键认证 — client 插件类型声明 */
2
+ import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client';
3
+
4
+ export declare const inject: string[];
5
+ export declare function apply(ctx: ClientContext): void;
@@ -0,0 +1,7 @@
1
+ /** cmtoken 一键认证 — host 插件类型声明 */
2
+ import type { Context } from '@deepseek-ai/cordis';
3
+
4
+ export declare const name: 'cmtoken-oauth';
5
+ export declare const inject: string[];
6
+ export declare const Config: import('@deepseek-ai/schemastery').default<{}>;
7
+ export declare function apply(ctx: Context, config: {}): void;
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "dsh-cmtoken-oauth",
3
+ "version": "1.0.0",
4
+ "description": "cmtoken 一键认证 — 通过 OAuth 2.0 Device Grant (RFC 8628) + PKCE 一键认证广东移动 MaaS(cmtoken),自动发现模型并写入 DSH 的 llm-pi-ai provider 配置。零第三方运行时依赖。",
5
+ "type": "module",
6
+ "main": "./lib/index.js",
7
+ "types": "./lib/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/types/index.d.ts",
11
+ "default": "./lib/index.js"
12
+ },
13
+ "./client": {
14
+ "types": "./lib/types/client/index.d.ts",
15
+ "default": "./lib/client.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
19
+ "files": [
20
+ "lib",
21
+ "cordis.patch.yml",
22
+ "README.md",
23
+ "LICENSE"
24
+ ],
25
+ "license": "MIT",
26
+ "dsh": {
27
+ "bundle": {
28
+ "patch": "./cordis.patch.yml"
29
+ },
30
+ "client": {
31
+ "platform": "web",
32
+ "inject": [
33
+ "@deepseek-ai/dsh-client-connection",
34
+ "@deepseek-ai/dsh-client-runtime",
35
+ "@deepseek-ai/dsh-client-locale",
36
+ "@deepseek-ai/dsh-client-ui-settings"
37
+ ]
38
+ }
39
+ },
40
+ "peerDependencies": {
41
+ "react": "^18.2.0"
42
+ },
43
+ "peerDependenciesMeta": {
44
+ "react": {
45
+ "optional": true
46
+ }
47
+ },
48
+ "keywords": [
49
+ "deepseek-harness",
50
+ "dsh",
51
+ "cmtoken",
52
+ "oauth",
53
+ "device-grant",
54
+ "pkce",
55
+ "maas",
56
+ "plugin",
57
+ "cordis"
58
+ ]
59
+ }