@alfe.ai/openclaw-chat 0.0.12 → 0.0.13
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/plugin2.js +8 -8
- package/package.json +2 -2
package/dist/plugin2.js
CHANGED
|
@@ -460,17 +460,17 @@ async function handleSessionsGet(request, log) {
|
|
|
460
460
|
}
|
|
461
461
|
const plugin = {
|
|
462
462
|
id: "@alfe.ai/openclaw-chat",
|
|
463
|
-
name: "
|
|
464
|
-
description: "
|
|
463
|
+
name: "Chat Plugin",
|
|
464
|
+
description: "Chat conversation channel — web widget and mobile app share unified chat sessions",
|
|
465
465
|
version: "0.0.8",
|
|
466
466
|
activate(api) {
|
|
467
467
|
if (globalThis.__alfeChatPluginActivated) {
|
|
468
|
-
api.logger.debug("
|
|
468
|
+
api.logger.debug("Chat plugin already activated, skipping re-init");
|
|
469
469
|
return;
|
|
470
470
|
}
|
|
471
471
|
globalThis.__alfeChatPluginActivated = true;
|
|
472
472
|
const log = api.logger;
|
|
473
|
-
log.info("
|
|
473
|
+
log.info("Chat plugin registering...");
|
|
474
474
|
resolveOpenClawSdk(log);
|
|
475
475
|
pluginRuntime = api.runtime ?? null;
|
|
476
476
|
const alfeChannel = createAlfeChannelPlugin();
|
|
@@ -551,14 +551,14 @@ const plugin = {
|
|
|
551
551
|
api.on("session_end", (...eventArgs) => {
|
|
552
552
|
const key = eventArgs[0].sessionKey;
|
|
553
553
|
if (!key || !isAlfeSessionKey(key)) return;
|
|
554
|
-
log.info(`
|
|
554
|
+
log.info(`Chat session ending: ${key}`);
|
|
555
555
|
});
|
|
556
|
-
log.info("
|
|
556
|
+
log.info("Chat plugin registered");
|
|
557
557
|
},
|
|
558
558
|
async deactivate(api) {
|
|
559
559
|
globalThis.__alfeChatPluginActivated = false;
|
|
560
560
|
const log = api.logger;
|
|
561
|
-
log.info("
|
|
561
|
+
log.info("Chat plugin deactivating...");
|
|
562
562
|
if (connectingPromise) {
|
|
563
563
|
await connectingPromise.catch((err) => {
|
|
564
564
|
api.logger.debug(`Connection attempt failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -572,7 +572,7 @@ const plugin = {
|
|
|
572
572
|
}
|
|
573
573
|
pluginRuntime = null;
|
|
574
574
|
dispatchInbound = null;
|
|
575
|
-
log.info("
|
|
575
|
+
log.info("Chat plugin deactivated");
|
|
576
576
|
}
|
|
577
577
|
};
|
|
578
578
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/openclaw-chat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "OpenClaw chat plugin for Alfe — web widget and mobile app channels",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/plugin.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"openclaw.plugin.json"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@alfe.ai/chat": "^0.0.
|
|
28
|
+
"@alfe.ai/chat": "^0.0.4"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"openclaw": ">=2026.3.0"
|