@53ai/53ai-openclaw 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
 
7
+ ## [1.0.4] - 2026-03-19
8
+
9
+ ### Fixed
10
+ - 修复了 TypeScript 语法错误(重命名了以数字开头的接口名)。
11
+ - 修复了项目构建依赖问题。
12
+
13
+ ### Changed
14
+ - 将内部接口重命名为 `Hub53AI` 前缀,以符合 TypeScript 标识符规范。
15
+
16
+ ## [1.0.1] - 2026-03-18
17
+
18
+ ### Changed
19
+ - 更新插件名称和 ID 为 `53ai-openclaw`。
20
+ - 文档更新和规范化定义。
21
+
7
22
  ## [1.0.0] - 2025-03-17
8
23
 
9
24
  ### Added
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # 53AI OpenClaw 插件
1
+ # 53AI-OpenClaw
2
2
 
3
- 53AIHub (AgentHub) 智能机器人接入 OpenClaw 的通道插件。
3
+ 53AI-OpenClaw OpenClaw 接入53AI Hub 的通道插件。
4
4
 
5
5
  ## 功能
6
6
 
7
- - 将 53AIHub/AgentHub 智能体接入 OpenClaw
7
+ - 将 OpenClaw 接入53AIHub
8
8
  - 支持直接消息 (DM) 模式
9
9
  - 支持 WebSocket 实时通信
10
10
  - **支持多模态消息**(图片、文件)
@@ -95,9 +95,9 @@ openclaw config set channels.53aihub.enabled true
95
95
 
96
96
  | 参数 | 必填 | 默认值 | 说明 |
97
97
  |------|------|--------|------|
98
- | `botId` | 是 | - | AgentHub 智能体 ID (HashID) |
99
- | `secret` | 是 | - | AgentHub App Secret / Token |
100
- | `websocketUrl` | 是 | - | AgentHub WebSocket 连接地址 |
98
+ | `botId` | 是 | - | 53AIHub 智能体 ID (HashID) |
99
+ | `secret` | 是 | - | 53AIHub App Secret / Token |
100
+ | `websocketUrl` | 是 | - | 53AIHub WebSocket 连接地址 |
101
101
  | `token` | 否 | - | secret 的别名,与 secret 二选一 |
102
102
  | `enabled` | 否 | false | 是否启用通道 |
103
103
  | `accessPolicy` | 否 | `open` | 访问策略: `open`=开放所有用户, `allowlist`=仅白名单用户, `pairing`=首次使用需审批, `disabled`=禁用 |
@@ -154,17 +154,17 @@ openclaw gateway logs | grep -i 53aihub
154
154
 
155
155
  当用户发送包含图片或文件的消息时,插件会自动解析并处理:
156
156
 
157
- **用户发送图片** → 插件接收 `AgentHubIncomingMessage`:
157
+ **用户发送图片** → 插件接收 `53AIHubIncomingMessage`:
158
158
  ```typescript
159
159
  {
160
160
  type: "message",
161
161
  msgId: "msg-xxx",
162
162
  chatId: "user-123",
163
163
  text: "这张图片是什么?",
164
- imageUrls: ["https://example.com/image.png"],
164
+ imageUrls: ["https://hub.53ai.com/image.png"],
165
165
  contentItems: [
166
166
  { type: "text", text: "这张图片是什么?" },
167
- { type: "image", image: { url: "https://example.com/image.png" } }
167
+ { type: "image", image: { url: "https://hub.53ai.com/image.png" } }
168
168
  ]
169
169
  }
170
170
  ```
@@ -175,10 +175,10 @@ openclaw gateway logs | grep -i 53aihub
175
175
  type: "message",
176
176
  msgId: "msg-xxx",
177
177
  text: "请分析这个文档",
178
- fileUrls: ["https://example.com/document.pdf"],
178
+ fileUrls: ["https://hub.53ai.com/document.pdf"],
179
179
  contentItems: [
180
180
  { type: "text", text: "请分析这个文档" },
181
- { type: "file", file: { url: "https://example.com/document.pdf", filename: "document.pdf" } }
181
+ { type: "file", file: { url: "https://hub.53ai.com/document.pdf", filename: "document.pdf" } }
182
182
  ]
183
183
  }
184
184
  ```
@@ -193,7 +193,7 @@ import { sendMediaMessage } from "./message-sender.js";
193
193
 
194
194
  await sendMediaMessage(wsClient, "user-123", {
195
195
  type: "image",
196
- url: "https://example.com/generated-image.png",
196
+ url: "https://hub.53ai.com/generated-image.png",
197
197
  mimeType: "image/png"
198
198
  }, "这是生成的图片");
199
199
  ```
@@ -202,7 +202,7 @@ await sendMediaMessage(wsClient, "user-123", {
202
202
  ```typescript
203
203
  await sendMediaMessage(wsClient, "user-123", {
204
204
  type: "file",
205
- url: "https://example.com/report.pdf",
205
+ url: "https://hub.53ai.com/report.pdf",
206
206
  filename: "report.pdf",
207
207
  mimeType: "application/pdf"
208
208
  }, "分析报告已生成");
@@ -230,7 +230,7 @@ await sendMediaMessage(wsClient, "user-123", {
230
230
  "text": "这是图片描述",
231
231
  "media": {
232
232
  "type": "image",
233
- "url": "https://example.com/image.png",
233
+ "url": "https://hub.53ai.com/image.png",
234
234
  "mimeType": "image/png"
235
235
  }
236
236
  }
package/dist/index.cjs.js CHANGED
@@ -1361,7 +1361,7 @@ const aiHubOnboardingAdapter = {
1361
1361
  const meta = {
1362
1362
  id: CHANNEL_ID,
1363
1363
  label: "53AIHub",
1364
- selectionLabel: "53AIHub (AgentHub)",
1364
+ selectionLabel: "53AIHub (53AIHub)",
1365
1365
  detailLabel: "53AIHub 智能机器人",
1366
1366
  docsPath: `/channels/${CHANNEL_ID}`,
1367
1367
  docsLabel: CHANNEL_ID,
@@ -1595,7 +1595,7 @@ const aiHubPlugin = {
1595
1595
  const plugin = {
1596
1596
  id: "53ai-openclaw",
1597
1597
  name: "53AI OpenClaw",
1598
- description: "53AIHub (AgentHub) OpenClaw 插件",
1598
+ description: "53AIHub (53AIHub) OpenClaw 插件",
1599
1599
  configSchema: pluginSdk.emptyPluginConfigSchema(),
1600
1600
  register(api) {
1601
1601
  setRuntime(api.runtime);