@alfe.ai/openclaw-chat 0.2.2 → 0.2.3
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.cjs +3 -1
- package/dist/plugin2.js +3 -1
- package/package.json +4 -4
package/dist/plugin2.cjs
CHANGED
|
@@ -1140,7 +1140,8 @@ const plugin = {
|
|
|
1140
1140
|
dispatchInbound = null;
|
|
1141
1141
|
log.info("Chat plugin deactivated");
|
|
1142
1142
|
};
|
|
1143
|
-
|
|
1143
|
+
const gw = globalThis;
|
|
1144
|
+
if (gw.__alfeChatGatewayMethodsRegistered !== true && typeof api.registerGatewayMethod === "function") {
|
|
1144
1145
|
api.registerGatewayMethod("sessions.list", async (...args) => {
|
|
1145
1146
|
const params = args[0];
|
|
1146
1147
|
return { sessions: await listSessions({
|
|
@@ -1173,6 +1174,7 @@ const plugin = {
|
|
|
1173
1174
|
}))
|
|
1174
1175
|
};
|
|
1175
1176
|
});
|
|
1177
|
+
gw.__alfeChatGatewayMethodsRegistered = true;
|
|
1176
1178
|
log.info("Registered gateway RPC methods: sessions.list, sessions.get");
|
|
1177
1179
|
}
|
|
1178
1180
|
api.on("session_start", async (...eventArgs) => {
|
package/dist/plugin2.js
CHANGED
|
@@ -1140,7 +1140,8 @@ const plugin = {
|
|
|
1140
1140
|
dispatchInbound = null;
|
|
1141
1141
|
log.info("Chat plugin deactivated");
|
|
1142
1142
|
};
|
|
1143
|
-
|
|
1143
|
+
const gw = globalThis;
|
|
1144
|
+
if (gw.__alfeChatGatewayMethodsRegistered !== true && typeof api.registerGatewayMethod === "function") {
|
|
1144
1145
|
api.registerGatewayMethod("sessions.list", async (...args) => {
|
|
1145
1146
|
const params = args[0];
|
|
1146
1147
|
return { sessions: await listSessions({
|
|
@@ -1173,6 +1174,7 @@ const plugin = {
|
|
|
1173
1174
|
}))
|
|
1174
1175
|
};
|
|
1175
1176
|
});
|
|
1177
|
+
gw.__alfeChatGatewayMethodsRegistered = true;
|
|
1176
1178
|
log.info("Registered gateway RPC methods: sessions.list, sessions.get");
|
|
1177
1179
|
}
|
|
1178
1180
|
api.on("session_start", async (...eventArgs) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/openclaw-chat",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "OpenClaw chat plugin for Alfe — web widget and mobile app channels",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/plugin.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"openclaw.plugin.json"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@alfe.ai/agent-api-client": "^0.2.
|
|
31
|
-
"@alfe.ai/
|
|
32
|
-
"@alfe.ai/
|
|
30
|
+
"@alfe.ai/agent-api-client": "^0.2.3",
|
|
31
|
+
"@alfe.ai/chat": "^0.0.11",
|
|
32
|
+
"@alfe.ai/config": "^0.0.9"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"openclaw": ">=2026.3.0"
|