openclaw-sync-assistant 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.
package/README.md CHANGED
@@ -28,7 +28,7 @@
28
28
  由于 OpenClaw 目前仅支持通过本地路径或 NPM 仓库安装插件,你可以选择以下两种方式之一进行安装:
29
29
 
30
30
  **方式一:从 NPM 官方仓库安装(推荐)**
31
- 如果你已经将插件发布到 NPM
31
+ 本项目已发布至 NPM,你可以直接使用以下命令一键安装:
32
32
 
33
33
  ```bash
34
34
  openclaw plugins install openclaw-sync-assistant
package/index.js CHANGED
@@ -19,13 +19,9 @@ module.exports = {
19
19
  console.log("✅ openclaw-sync-assistant 插件已激活!");
20
20
  }
21
21
 
22
- // 如果 context 提供了注册命令的方法,我们注册 `sync setup` 命令
23
- if (
24
- context.api &&
25
- context.api.commands &&
26
- context.api.commands.registerCommand
27
- ) {
28
- context.api.commands.registerCommand("sync.setup", async () => {
22
+ // OpenClaw 插件 API 中注册 CLI 命令
23
+ if (context.registerCommand) {
24
+ context.registerCommand("sync.setup", async () => {
29
25
  console.log("\n");
30
26
  intro(pc.bgCyan(pc.black(" OpenClaw Sync Assistant Setup ")));
31
27
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "openclaw-sync-assistant",
3
3
  "name": "openclaw-sync-assistant",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "OpenClaw Sync Assistant Plugin",
6
6
  "configSchema": {
7
7
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-sync-assistant",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "An OpenClaw plugin for P2P file and data synchronization using Hyperswarm and Hyperdrive ecosystem.",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",