@alfe.ai/openclaw-chat 0.0.29 → 0.0.30
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 +4 -2
- package/dist/plugin2.js +4 -5
- package/openclaw.plugin.json +0 -1
- package/package.json +1 -1
package/dist/plugin2.cjs
CHANGED
|
@@ -517,6 +517,8 @@ function validateAttachmentUrl(input, opts = {}) {
|
|
|
517
517
|
* ← onAgentEvent streaming ← (real-time deltas)
|
|
518
518
|
* ← deliver() callback ← (final response)
|
|
519
519
|
*/
|
|
520
|
+
const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
521
|
+
const pkg = require$1("../package.json");
|
|
520
522
|
let dispatchInbound = null;
|
|
521
523
|
/**
|
|
522
524
|
* Resolve OpenClaw SDK functions from the running process.
|
|
@@ -527,7 +529,7 @@ let dispatchInbound = null;
|
|
|
527
529
|
* the global modules path from process.execPath.
|
|
528
530
|
*/
|
|
529
531
|
function resolveOpenClawSdk(log) {
|
|
530
|
-
const anchors = [require.main?.filename, process.argv[1]].filter(Boolean);
|
|
532
|
+
const anchors = [require$1.main?.filename, process.argv[1]].filter(Boolean);
|
|
531
533
|
for (const anchor of anchors) try {
|
|
532
534
|
const channelInbound = (0, node_module.createRequire)(anchor)("openclaw/plugin-sdk/channel-inbound");
|
|
533
535
|
if (channelInbound.dispatchInboundDirectDmWithRuntime) {
|
|
@@ -807,7 +809,7 @@ const plugin = {
|
|
|
807
809
|
id: "@alfe.ai/openclaw-chat",
|
|
808
810
|
name: "Alfe Chat Plugin",
|
|
809
811
|
description: "Chat conversation channel — web widget and mobile app share unified chat sessions",
|
|
810
|
-
version:
|
|
812
|
+
version: pkg.version,
|
|
811
813
|
activate(api) {
|
|
812
814
|
const log = api.logger;
|
|
813
815
|
const alreadyActivated = globalThis.__alfeChatPluginActivated === true;
|
package/dist/plugin2.js
CHANGED
|
@@ -6,9 +6,6 @@ import { ChatServiceClient, resolveAlfeChat } from "@alfe.ai/chat";
|
|
|
6
6
|
import { resolveConfig } from "@alfe.ai/config";
|
|
7
7
|
import { AgentApiClient } from "@alfe.ai/agent-api-client";
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
|
-
//#region \0rolldown/runtime.js
|
|
10
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
11
|
-
//#endregion
|
|
12
9
|
//#region src/alfe-channel.ts
|
|
13
10
|
const CHANNEL_ID = "alfe";
|
|
14
11
|
const DEFAULT_ACCOUNT_ID = "default";
|
|
@@ -520,6 +517,8 @@ function validateAttachmentUrl(input, opts = {}) {
|
|
|
520
517
|
* ← onAgentEvent streaming ← (real-time deltas)
|
|
521
518
|
* ← deliver() callback ← (final response)
|
|
522
519
|
*/
|
|
520
|
+
const require = createRequire(import.meta.url);
|
|
521
|
+
const pkg = require("../package.json");
|
|
523
522
|
let dispatchInbound = null;
|
|
524
523
|
/**
|
|
525
524
|
* Resolve OpenClaw SDK functions from the running process.
|
|
@@ -530,7 +529,7 @@ let dispatchInbound = null;
|
|
|
530
529
|
* the global modules path from process.execPath.
|
|
531
530
|
*/
|
|
532
531
|
function resolveOpenClawSdk(log) {
|
|
533
|
-
const anchors = [
|
|
532
|
+
const anchors = [require.main?.filename, process.argv[1]].filter(Boolean);
|
|
534
533
|
for (const anchor of anchors) try {
|
|
535
534
|
const channelInbound = createRequire(anchor)("openclaw/plugin-sdk/channel-inbound");
|
|
536
535
|
if (channelInbound.dispatchInboundDirectDmWithRuntime) {
|
|
@@ -810,7 +809,7 @@ const plugin = {
|
|
|
810
809
|
id: "@alfe.ai/openclaw-chat",
|
|
811
810
|
name: "Alfe Chat Plugin",
|
|
812
811
|
description: "Chat conversation channel — web widget and mobile app share unified chat sessions",
|
|
813
|
-
version:
|
|
812
|
+
version: pkg.version,
|
|
814
813
|
activate(api) {
|
|
815
814
|
const log = api.logger;
|
|
816
815
|
const alreadyActivated = globalThis.__alfeChatPluginActivated === true;
|
package/openclaw.plugin.json
CHANGED