@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 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: "0.0.8",
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 = [__require.main?.filename, process.argv[1]].filter(Boolean);
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: "0.0.8",
812
+ version: pkg.version,
814
813
  activate(api) {
815
814
  const log = api.logger;
816
815
  const alreadyActivated = globalThis.__alfeChatPluginActivated === true;
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "id": "@alfe.ai/openclaw-chat",
3
3
  "name": "Alfe Chat Plugin",
4
- "version": "0.0.21",
5
4
  "description": "Chat conversation channel — web widget and mobile app share unified chat sessions",
6
5
  "entry": "./dist/plugin.js",
7
6
  "configSchema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-chat",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "OpenClaw chat plugin for Alfe — web widget and mobile app channels",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",