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.
- package/dist/client/monitor.js +3 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/client/monitor.js
CHANGED
|
@@ -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
|
|
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(
|
|
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
|
}
|
package/openclaw.plugin.json
CHANGED