openclaw-extension-typex 1.0.6 → 1.0.8
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 +4 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -14
package/dist/client/monitor.js
CHANGED
|
@@ -52,7 +52,10 @@ async function monitorTypeXProvider(opts) {
|
|
|
52
52
|
// Initialize Client
|
|
53
53
|
const client = (0, client_js_1.getTypeXClient)(undefined, { token, skipConfigCheck: true });
|
|
54
54
|
logger?.info(`[${accountObj.accountId}] Starting TypeX monitor for ${email || accountObj.accountId}...`);
|
|
55
|
-
const dataDir = runtime.dirs?.data || "
|
|
55
|
+
const dataDir = runtime.dirs?.state || runtime.dirs?.data || "/tmp/typex";
|
|
56
|
+
if (dataDir === "/tmp/typex") {
|
|
57
|
+
await fs.mkdir(dataDir, { recursive: true }).catch(() => { });
|
|
58
|
+
}
|
|
56
59
|
const safeId = (email || accountObj.accountId || "default").replace(/[^a-z0-9]/gi, "_");
|
|
57
60
|
const stateFile = path.join(dataDir, `.typex_pos_${safeId}.json`);
|
|
58
61
|
let currentPos = 0;
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-extension-typex",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "TypeX channel integration for OpenClaw",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,18 +38,6 @@
|
|
|
38
38
|
"openclaw": {
|
|
39
39
|
"extensions": [
|
|
40
40
|
"./dist/index.js"
|
|
41
|
-
]
|
|
42
|
-
"channel": {
|
|
43
|
-
"id": "typex",
|
|
44
|
-
"label": "TypeX",
|
|
45
|
-
"selectionLabel": "TypeX (QR Code Login)",
|
|
46
|
-
"detailLabel": "TypeX Bot",
|
|
47
|
-
"blurb": "TypeX bot via QR Code login.",
|
|
48
|
-
"aliases": [
|
|
49
|
-
"typex"
|
|
50
|
-
],
|
|
51
|
-
"order": 100,
|
|
52
|
-
"quickstartAllowFrom": true
|
|
53
|
-
}
|
|
41
|
+
]
|
|
54
42
|
}
|
|
55
43
|
}
|