{
  "id": "openclaw-sync-assistant",
  "name": "openclaw-sync-assistant",
  "version": "0.1.5",
  "description": "OpenClaw Sync Assistant Plugin",
  "commands": [
    {
      "id": "sync.setup",
      "title": "OpenClaw Sync: Setup",
      "description": "Initialize OpenClaw Sync Assistant configuration"
    },
    {
      "id": "sync.status",
      "title": "OpenClaw Sync: Status",
      "description": "Show the current sync service status"
    },
    {
      "id": "sync.sync-now",
      "title": "OpenClaw Sync: Sync Now",
      "description": "Trigger one immediate sync run"
    },
    {
      "id": "sync.conflicts",
      "title": "OpenClaw Sync: Conflicts",
      "description": "List current sync conflict files"
    },
    {
      "id": "sync.resolve-conflicts",
      "title": "OpenClaw Sync: Resolve Conflicts",
      "description": "Resolve current sync conflict files"
    },
    {
      "id": "sync.verify-migration",
      "title": "OpenClaw Sync: Verify Migration",
      "description": "Verify whether current sync coverage is enough for migration"
    }
  ],
  "configSchema": {
    "type": "object",
    "properties": {
      "syncMethod": {
        "type": "string",
        "enum": ["p2p", "github"],
        "description": "同步方式: 点对点(P2P) 或 GitHub"
      },
      "syncMode": {
        "type": "string",
        "enum": ["centralized", "decentralized"],
        "description": "同步模式: 中心模式(Centralized) 或 去中心模式(Decentralized)"
      },
      "syncSecret": {
        "type": "string",
        "description": "用于生成 P2P 发现 Topic 和加密数据的同步密钥"
      },
      "githubRepo": {
        "type": "string",
        "description": "用于同步的 GitHub 仓库地址"
      },
      "syncItems": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "要同步的内容 (如 Config, Auth, Sessions, ChannelState, WorkspaceFiles)"
      }
    }
  }
}
