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.
@@ -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;
@@ -17,7 +17,7 @@
17
17
  "additionalProperties": true
18
18
  },
19
19
  "channel": {
20
- "id": "typex",
20
+ "id": "openclaw-extension-typex",
21
21
  "label": "TypeX",
22
22
  "selectionLabel": "TypeX (QR Code Login)",
23
23
  "detailLabel": "TypeX Bot",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-extension-typex",
3
- "version": "1.0.6",
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
  }