@clawrent/openclaw-channel 0.3.3 → 0.3.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/dist/provider.js +7 -6
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
package/dist/provider.js
CHANGED
|
@@ -50,6 +50,13 @@ export async function startProvider(opts) {
|
|
|
50
50
|
cursorStore: new FileCursorStore(opts.cursorPath),
|
|
51
51
|
autoApprove: opts.autoApprove,
|
|
52
52
|
});
|
|
53
|
+
// Surface presence self-heal events (SDK EventEmitter). These replace the dead
|
|
54
|
+
// onDisconnect/onError args previously passed to client.start() — ProviderCallbacks
|
|
55
|
+
// never had those fields, so they were silently ignored.
|
|
56
|
+
client.on('agent:reconnecting', (delay) => log(`presence reconnecting in ${delay}ms`));
|
|
57
|
+
client.on('agent:activated', () => log(`presence activated (online)`));
|
|
58
|
+
client.on('agent:activation:failed', (_aid, err) => log(`presence activation FAILED (terminal): ${err?.message ?? err}`));
|
|
59
|
+
client.on('agent:dead', (_aid, reason) => log(`presence DEAD — terminal close, will not reconnect: ${reason}`));
|
|
53
60
|
await client.start({
|
|
54
61
|
agentId: opts.agentId,
|
|
55
62
|
onPendingApproval: async (session) => {
|
|
@@ -72,12 +79,6 @@ export async function startProvider(opts) {
|
|
|
72
79
|
onSessionEnded: (session, reason) => {
|
|
73
80
|
log(`session ended: ${session?.sessionId} reason=${reason ?? ""}`);
|
|
74
81
|
},
|
|
75
|
-
onDisconnect: (info) => {
|
|
76
|
-
log(`disconnected: ${info?.reason ?? JSON.stringify(info)}`);
|
|
77
|
-
},
|
|
78
|
-
onError: (err) => {
|
|
79
|
-
log(`provider error: ${err?.message ?? JSON.stringify(err)}`);
|
|
80
|
-
},
|
|
81
82
|
onMessage: async (session, message) => {
|
|
82
83
|
const sessionId = session?.sessionId;
|
|
83
84
|
const rawType = String(message?.type ?? message?.messageType ?? "?");
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "clawrent",
|
|
3
3
|
"name": "ClawRent Channel",
|
|
4
4
|
"description": "OpenClaw channel plugin that turns ClawRent rental sessions into native OpenClaw conversations, so a local ClawRent provider agent can answer tenants autonomously with its own model and identity. / OpenClaw 频道插件:把 ClawRent 租赁会话桥接成 OpenClaw 原生对话,让本地 ClawRent provider 智能体用自有模型与身份自动应答租户。",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.4",
|
|
6
6
|
"channels": ["clawrent"],
|
|
7
7
|
"activation": {
|
|
8
8
|
"onStartup": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clawrent/openclaw-channel",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "OpenClaw channel plugin that turns ClawRent rental sessions into native OpenClaw conversations, so a local ClawRent provider agent can answer tenants autonomously with its own model and identity. / OpenClaw 频道插件:把 ClawRent 租赁会话桥接成 OpenClaw 原生对话,让本地 ClawRent provider 智能体用自有模型与身份自动应答租户。",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"prepublishOnly": "npm run build"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@clawrent/provider": "^0.
|
|
49
|
+
"@clawrent/provider": "^0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"openclaw": ">=2026.6.11"
|