openclaw-extension-typex 1.0.20 → 1.0.21

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.
@@ -41,12 +41,13 @@ const client_js_1 = require("./client.js");
41
41
  const message_js_1 = require("./message.js");
42
42
  const runtime_js_1 = require("./runtime.js");
43
43
  const POS_STORE_VERSION = 1;
44
- const OPENCLAW_CONFIG_PATH = process.env.OPENCLAW_CONFIG_PATH || path.join(os.homedir(), ".openclaw", "openclaw.json");
44
+ const OPENCLAW_HOME_DIR = path.join(os.homedir(), ".openclaw");
45
+ const OPENCLAW_CONFIG_PATH = path.join(OPENCLAW_HOME_DIR, "openclaw.json");
45
46
  function normalizeAccountIdForFile(accountId) {
46
47
  return (accountId || "default").replace(/[^a-z0-9._-]+/gi, "_");
47
48
  }
48
49
  function resolveTypeXPosStatePath(accountId) {
49
- const stateDir = (0, runtime_js_1.getTypeXRuntime)().state.resolveStateDir(process.env, os.homedir);
50
+ const stateDir = (0, runtime_js_1.getTypeXRuntime)().state.resolveStateDir({}, os.homedir);
50
51
  const normalized = normalizeAccountIdForFile(accountId);
51
52
  return path.join(stateDir, "typex", `update-pos-${normalized}.json`);
52
53
  }
@@ -2,7 +2,7 @@
2
2
  "id": "openclaw-extension-typex",
3
3
  "kind": "channel",
4
4
  "name": "TypeX",
5
- "version": "1.0.20",
5
+ "version": "1.0.21",
6
6
  "description": "TypeX channel integration for OpenClaw",
7
7
  "channels": [
8
8
  "openclaw-extension-typex"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-extension-typex",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "TypeX channel integration for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",