dsh-cmtoken-oauth 1.0.0 → 1.0.1

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/cordis.patch.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # cmtoken 一键认证 — 插件注册(DSH profile 层)
2
+ # id/name 必须与 npm 包名一致(DSH 加载器按包名 import)
2
3
  - insert:
3
- - id: cmtoken-oauth
4
- name: 'cmtoken-oauth'
4
+ - id: dsh-cmtoken-oauth
5
+ name: 'dsh-cmtoken-oauth'
5
6
  config: {}
package/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  window.__ModuleLoader__.load({
2
- id: "cmtoken-oauth",
2
+ id: "dsh-cmtoken-oauth",
3
3
  factory: (require) => {
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
package/lib/index.js CHANGED
@@ -14,7 +14,7 @@ import { credentialRef } from '@deepseek-ai/dsh-credentials';
14
14
  const require2 = createRequire(import.meta.url);
15
15
  const { qrSvg } = require2('./qr-core.cjs');
16
16
 
17
- export const name = 'cmtoken-oauth';
17
+ export const name = 'dsh-cmtoken-oauth';
18
18
  export const inject = ['connection', 'settings', 'credentials'];
19
19
 
20
20
  export const Config = z.object({});
@@ -1,7 +1,7 @@
1
1
  /** cmtoken 一键认证 — host 插件类型声明 */
2
2
  import type { Context } from '@deepseek-ai/cordis';
3
3
 
4
- export declare const name: 'cmtoken-oauth';
4
+ export declare const name: 'dsh-cmtoken-oauth';
5
5
  export declare const inject: string[];
6
6
  export declare const Config: import('@deepseek-ai/schemastery').default<{}>;
7
7
  export declare function apply(ctx: Context, config: {}): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-cmtoken-oauth",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "cmtoken 一键认证 — 通过 OAuth 2.0 Device Grant (RFC 8628) + PKCE 一键认证广东移动 MaaS(cmtoken),自动发现模型并写入 DSH 的 llm-pi-ai provider 配置。零第三方运行时依赖。",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",