@fontdo/5g-message 1.0.11 → 1.0.12

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.md CHANGED
@@ -10,17 +10,19 @@ OpenClaw 通道插件,用于连接 Fontdo 5G 消息平台。
10
10
 
11
11
  ## 安装
12
12
 
13
- ### 方法 1: 一键安装(推荐)
13
+ ### 方法 1: 使用工具安装(推荐)
14
+
15
+ 使用专门的工具进行安装和配置:
14
16
 
15
17
  ```bash
16
18
  # 一键安装并配置
17
- npx -y @fontdo/5g-message install
19
+ npx -y @fontdo/5g-message-tools install
18
20
 
19
21
  # 仅更新插件
20
- npx @fontdo/5g-message update
22
+ npx @fontdo/5g-message-tools update
21
23
 
22
24
  # 仅配置插件
23
- npx @fontdo/5g-message
25
+ npx @fontdo/5g-message-tools configure
24
26
  ```
25
27
 
26
28
  ### 方法 2: 本地安装
@@ -39,7 +41,7 @@ openclaw plugins install -l /path/to/5g-message
39
41
  openclaw plugins install @fontdo/5g-message
40
42
 
41
43
  # 安装后配置
42
- npx @fontdo/5g-message
44
+ npx @fontdo/5g-message-tools configure
43
45
  ```
44
46
 
45
47
  <br />
@@ -105,3 +107,8 @@ npx @fontdo/5g-message
105
107
  }
106
108
  ```
107
109
 
110
+ ## 注意事项
111
+
112
+ - 配置完成后需要重启 OpenClaw 服务以应用配置:`openclaw gateway restart`
113
+ - 确保网络连接正常,能够访问 Fontdo 5G 消息平台
114
+ - 如需使用 CLI 工具进行安装和配置,请使用 `@fontdo/5g-message-tools` 包
package/dist/index.d.ts CHANGED
@@ -1,27 +1 @@
1
- /**
2
- * OpenClaw Channel Plugin for Fontdo 5G Message Platform
3
- *
4
- * This plugin connects OpenClaw to your Fontdo 5G message platform via WebSocket
5
- * using JSON-RPC 2.0 protocol.
6
- */
7
- type OpenClawPluginApi = any;
8
- type ChannelPlugin<T> = any;
9
- interface CustomIMAccount {
10
- accountId: string;
11
- host: string;
12
- appId: string;
13
- appKey: string;
14
- botName: string;
15
- enabled: boolean;
16
- configured: boolean;
17
- }
18
- export declare const fontdo5GMessagePlugin: ChannelPlugin<CustomIMAccount>;
19
- declare const plugin: {
20
- id: string;
21
- name: string;
22
- description: string;
23
- configSchema: {};
24
- register(api: OpenClawPluginApi): void;
25
- };
26
- export default plugin;
27
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,KAAK,iBAAiB,GAAG,GAAG,CAAC;AAC7B,KAAK,aAAa,CAAC,CAAC,IAAI,GAAG,CAAC;AAwD5B,UAAU,eAAe;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;CACrB;AA4gBD,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,eAAe,CA+QhE,CAAC;AAMF,QAAA,MAAM,MAAM;;;;;kBAMI,iBAAiB;CAKhC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":""}