openclaw-rcs 0.0.1 → 0.0.2

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.
Files changed (3) hide show
  1. package/README.md +81 -0
  2. package/package.json +37 -12
  3. package/index.js +0 -1
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # OpenClaw RCS
2
+
3
+ RCS (5G messaging) channel configuration wizard (RCS 5G消息通道配置向导).
4
+
5
+ ## Installation (安装)
6
+
7
+ ```bash
8
+ # Global install (全局安装)
9
+ npm install -g openclaw-rcs
10
+
11
+ # Or use npx (或使用 npx)
12
+ npx openclaw-rcs [command]
13
+ ```
14
+
15
+ ## Commands (命令)
16
+
17
+ ### Install Plugin (安装插件)
18
+
19
+ ```bash
20
+ openclaw-rcs install
21
+ # or (或)
22
+ npx openclaw-rcs install
23
+ ```
24
+
25
+ This command checks if the plugin is installed. If not, it will install the plugin and start the configuration wizard.
26
+
27
+ (此命令会检查插件是否已安装,如果未安装则安装插件并启动配置向导。)
28
+
29
+ ### Update Plugin (更新插件)
30
+
31
+ ```bash
32
+ openclaw-rcs update
33
+ # or (或)
34
+ npx openclaw-rcs update
35
+ ```
36
+
37
+ This command uninstalls the old version and installs the new version, then asks if you want to reconfigure.
38
+
39
+ (此命令会卸载旧版本插件并安装新版本,然后询问是否需要重新配置。)
40
+
41
+ ### Configure Plugin (配置插件)
42
+
43
+ ```bash
44
+ openclaw-rcs configure
45
+ # or (或)
46
+ npx openclaw-rcs configure
47
+ ```
48
+
49
+ This command starts the configuration wizard, allowing users to add, modify, or use existing configurations.
50
+
51
+ (此命令会启动配置向导,允许用户添加、修改或使用现有配置。)
52
+
53
+ ## Configuration (配置说明)
54
+
55
+ Config file is located at `~/.openclaw/openclaw.json`, with the following structure:
56
+
57
+ (配置文件位于 `~/.openclaw/openclaw.json`,包含以下结构:)
58
+
59
+ ```json
60
+ {
61
+ "channels": {
62
+ "openclaw-rcs": {
63
+ "accounts": {
64
+ "default": {
65
+ "host": "example.com",
66
+ "appId": "your-app-id",
67
+ "appKey": "your-app-key",
68
+ "botName": "RCS Bot",
69
+ "enabled": true
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ ```
76
+
77
+ ## Notes (注意事项)
78
+
79
+ - Make sure OpenClaw is installed before using (使用前请确保已安装 OpenClaw)
80
+ - Restart OpenClaw service after configuration: `openclaw gateway restart` (配置完成后需要重启 OpenClaw 服务以应用配置)
81
+ - Ensure network connectivity to access RCS channel platform (确保网络连接正常,能够访问 RCS 通道平台)
package/package.json CHANGED
@@ -1,12 +1,37 @@
1
- {
2
- "name": "openclaw-rcs",
3
- "version": "0.0.1",
4
- "description": "openclaw-rcs",
5
- "license": "ISC",
6
- "author": "fontdo",
7
- "type": "commonjs",
8
- "main": "index.js",
9
- "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
11
- }
12
- }
1
+ {
2
+ "name": "openclaw-rcs",
3
+ "version": "0.0.2",
4
+ "description": "RCS (5G messaging) channel configuration wizard. Support the message interaction capability between OpenClaw and RCS. Provided by Fontdo Technology Co., Ltd",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "author": "Fontdo",
8
+ "license": "MIT",
9
+ "bin": {
10
+ "openclaw-rcs": "./dist/index.js"
11
+ },
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "scripts": {
16
+ "clean": "shx rm -rf dist",
17
+ "build": "npm run clean && tsc",
18
+ "release": "node scripts/publish.js",
19
+ "test": "echo \"Error: no test specified\" && exit 1"
20
+ },
21
+ "dependencies": {
22
+ "chalk": "^4.1.2",
23
+ "commander": "^14.0.3",
24
+ "fs-extra": "^11.3.3",
25
+ "inquirer": "^8.2.7",
26
+ "ws": "^8.16.0"
27
+ },
28
+ "devDependencies": {
29
+ "@types/fs-extra": "^11.0.4",
30
+ "@types/inquirer": "^8.2.7",
31
+ "@types/node": "^20.19.37",
32
+ "@types/ws": "^8.5.10",
33
+ "shx": "^0.4.0",
34
+ "typescript": "^5.3.0",
35
+ "vitest": "^4.1.0"
36
+ }
37
+ }
package/index.js DELETED
@@ -1 +0,0 @@
1
- console.log('Hello World from openclaw-rcs!');