@pinclaw/pinclaw-plugin 0.1.24
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 +27 -0
- package/index.mjs +1945 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/ws/lib/receiver.js +706 -0
- package/node_modules/ws/lib/sender.js +602 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +554 -0
- package/node_modules/ws/lib/websocket.js +1393 -0
- package/node_modules/ws/package.json +70 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/openclaw.plugin.json +15 -0
- package/package.json +43 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @pinclaw/pinclaw-plugin
|
|
2
|
+
|
|
3
|
+
PinClaw 的 OpenClaw relay channel 插件包,负责在 OpenClaw 中注册 `channels.pinclaw`,并维护活动桌宠会话筛选。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
如果该版本已经发布到 npm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
openclaw plugins install @pinclaw/pinclaw-plugin
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
如果从本地归档安装:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
openclaw plugins install ./pinclaw-pinclaw-plugin-<version>.tgz
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 当前行为
|
|
20
|
+
|
|
21
|
+
1. 注册 `channels.pinclaw` 渠道账户,并由 `gateway.startAccount` 生命周期托管主机隧道。
|
|
22
|
+
2. 提供活动桌宠路由器,只接受平台裁定的当前桌宠会话请求。
|
|
23
|
+
3. 提供主机隧道最小运行时,默认每 `10` 秒发送一次 `host.heartbeat` 帧,并把活动桌宠请求转发到 OpenClaw 进程内受信运行时。
|
|
24
|
+
4. 主机凭据文件 `~/.openclaw/pinclaw-relay-host.json` 在运行中被重写后,插件会自动侦测主机标识、凭据或隧道地址变化,并按最新主机凭据重新建立平台隧道。
|
|
25
|
+
5. 插件与 OpenClaw 之间不再建立第二条本地 Gateway WebSocket,而是通过官方 `openclaw/plugin-sdk/*` 子路径读取会话、历史与事件。
|
|
26
|
+
|
|
27
|
+
插件在 OpenClaw 配置中的标识为 `pinclaw`。如果本机启用了 `plugins.allow` 白名单,应当填写 `pinclaw`;渠道账户标识固定为 `channels.pinclaw`。
|