palz-connector 1.5.0 → 1.5.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "palz-connector",
3
3
  "name": "Palz Connector Channel",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "description": "Palz IM 接入 OpenClaw",
6
6
  "channels": [
7
7
  "palz-connector"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palz-connector",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "description": "Palz IM 接入 OpenClaw — 模块化架构,基于 OpenClaw Runtime 消息管道",
package/src/config.js CHANGED
@@ -9,6 +9,9 @@
9
9
  */
10
10
  import fs from "fs";
11
11
  import path from "path";
12
+ import { fileURLToPath } from "url";
13
+ const __filename = fileURLToPath(import.meta.url);
14
+ const __dirname = path.dirname(__filename);
12
15
  const DEFAULT_ACCOUNT_ID = "__default__";
13
16
  const DEFAULT_SESSION_TIMEOUT = 30 * 60 * 1000;
14
17
  const DEFAULT_CONFIG_FILENAME = "palz-connector.config.json";