@alfe.ai/openclaw-chat 0.8.0 → 0.8.1
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 +2 -1
- package/dist/plugin2.js +2 -1
- package/package.json +2 -2
package/dist/plugin2.cjs
CHANGED
|
@@ -3,8 +3,8 @@ let node_fs_promises = require("node:fs/promises");
|
|
|
3
3
|
let node_path = require("node:path");
|
|
4
4
|
let node_os = require("node:os");
|
|
5
5
|
let _alfe_ai_chat = require("@alfe.ai/chat");
|
|
6
|
-
let node_crypto = require("node:crypto");
|
|
7
6
|
let _alfe_ai_agent_api_client = require("@alfe.ai/agent-api-client");
|
|
7
|
+
let node_crypto = require("node:crypto");
|
|
8
8
|
let _alfe_ai_config = require("@alfe.ai/config");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
10
10
|
//#region src/outbound-media.ts
|
|
@@ -2652,6 +2652,7 @@ const plugin = {
|
|
|
2652
2652
|
api.registerChannel(alfeChannel);
|
|
2653
2653
|
log.info(`Registered channel: ${alfeChannel.id}`);
|
|
2654
2654
|
if (typeof api.registerTool === "function") {
|
|
2655
|
+
(0, _alfe_ai_agent_api_client.installToolErrorCapture)(api, { plugin: "openclaw-chat" });
|
|
2655
2656
|
const present = async (args) => {
|
|
2656
2657
|
const clean = sanitizeComponents(args.components);
|
|
2657
2658
|
if (clean.length === 0) throw new Error("No valid components: link_button requires a `label` and an https `url` on an Alfe-owned host");
|
package/dist/plugin2.js
CHANGED
|
@@ -3,8 +3,8 @@ import { mkdir, open, readFile, readdir, stat, unlink, writeFile } from "node:fs
|
|
|
3
3
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { ChatServiceClient, resolveAlfeChat } from "@alfe.ai/chat";
|
|
6
|
+
import { AgentApiClient, installToolErrorCapture } from "@alfe.ai/agent-api-client";
|
|
6
7
|
import { randomUUID } from "node:crypto";
|
|
7
|
-
import { AgentApiClient } from "@alfe.ai/agent-api-client";
|
|
8
8
|
import { resolveConfig } from "@alfe.ai/config";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
//#region src/outbound-media.ts
|
|
@@ -2652,6 +2652,7 @@ const plugin = {
|
|
|
2652
2652
|
api.registerChannel(alfeChannel);
|
|
2653
2653
|
log.info(`Registered channel: ${alfeChannel.id}`);
|
|
2654
2654
|
if (typeof api.registerTool === "function") {
|
|
2655
|
+
installToolErrorCapture(api, { plugin: "openclaw-chat" });
|
|
2655
2656
|
const present = async (args) => {
|
|
2656
2657
|
const clean = sanitizeComponents(args.components);
|
|
2657
2658
|
if (clean.length === 0) throw new Error("No valid components: link_button requires a `label` and an https `url` on an Alfe-owned host");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/openclaw-chat",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
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,7 +27,7 @@
|
|
|
27
27
|
"openclaw.plugin.json"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@alfe.ai/agent-api-client": "^0.
|
|
30
|
+
"@alfe.ai/agent-api-client": "^0.8.0",
|
|
31
31
|
"@alfe.ai/chat": "^0.0.14",
|
|
32
32
|
"@alfe.ai/config": "^0.3.0"
|
|
33
33
|
},
|