@t0ken.ai/memoryx-openclaw-plugin 2.2.5 → 2.2.6
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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* // async registration is ignored
|
|
10
10
|
* }
|
|
11
11
|
*
|
|
12
|
-
* Any sync I/O (fs.existsSync, fs.mkdirSync, fs.readFileSync,
|
|
12
|
+
* Any sync I/O (fs.existsSync, fs.mkdirSync, fs.readFileSync, etc.)
|
|
13
13
|
* will BLOCK the Node.js event loop and cause gateway restart to hang.
|
|
14
14
|
*
|
|
15
15
|
* SOLUTION:
|
|
16
16
|
* 1. register() must return immediately without any I/O
|
|
17
17
|
* 2. All initialization (DB, config loading, etc.) must be lazy-loaded
|
|
18
|
-
* 3. SDK uses
|
|
18
|
+
* 3. SDK uses sql.js (async) internally - no blocking issues
|
|
19
19
|
* 4. Use setImmediate() for deferred operations
|
|
20
20
|
*
|
|
21
21
|
* This version uses @t0ken.ai/memoryx-sdk with conversation preset:
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AA4CH,UAAU,YAAY;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,YAAY;IAClB,QAAQ,EAAE,KAAK,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,eAAe,EAAE,KAAK,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE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,cAAc,IAAI,OAAO,CAAC;QACnC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,OAAO,CAAC;QACrB,KAAK,CAAC,EAAE,GAAG,CAAC;KACf,CAAC;CAwBL;;;;;;kBAUiB,GAAG,iBAAiB,YAAY,GAAG,IAAI;;AANzD,wBA6YE;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* // async registration is ignored
|
|
10
10
|
* }
|
|
11
11
|
*
|
|
12
|
-
* Any sync I/O (fs.existsSync, fs.mkdirSync, fs.readFileSync,
|
|
12
|
+
* Any sync I/O (fs.existsSync, fs.mkdirSync, fs.readFileSync, etc.)
|
|
13
13
|
* will BLOCK the Node.js event loop and cause gateway restart to hang.
|
|
14
14
|
*
|
|
15
15
|
* SOLUTION:
|
|
16
16
|
* 1. register() must return immediately without any I/O
|
|
17
17
|
* 2. All initialization (DB, config loading, etc.) must be lazy-loaded
|
|
18
|
-
* 3. SDK uses
|
|
18
|
+
* 3. SDK uses sql.js (async) internally - no blocking issues
|
|
19
19
|
* 4. Use setImmediate() for deferred operations
|
|
20
20
|
*
|
|
21
21
|
* This version uses @t0ken.ai/memoryx-sdk with conversation preset:
|
|
@@ -490,13 +490,18 @@ export default {
|
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
const lines = [
|
|
493
|
-
"MemoryX Account Information:",
|
|
493
|
+
"📊 MemoryX Account Information:",
|
|
494
494
|
`API Key: ${accountInfo.apiKey || 'Not set'}`,
|
|
495
495
|
`Project ID: ${accountInfo.projectId || 'default'}`,
|
|
496
496
|
`User ID: ${accountInfo.userId || 'Not set'}`,
|
|
497
497
|
`API Base URL: ${accountInfo.apiBaseUrl || DEFAULT_API_BASE}`,
|
|
498
498
|
`Initialized: ${accountInfo.initialized ? 'Yes' : 'No'}`
|
|
499
499
|
];
|
|
500
|
+
if (accountInfo.apiKey) {
|
|
501
|
+
lines.push("");
|
|
502
|
+
lines.push("💡 Visit the portal to claim your agent and manage memories:");
|
|
503
|
+
lines.push(` https://t0ken.ai/portal?api_key=${accountInfo.apiKey}`);
|
|
504
|
+
}
|
|
500
505
|
return {
|
|
501
506
|
content: [{ type: "text", text: lines.join("\n") }],
|
|
502
507
|
details: {
|
|
@@ -565,7 +570,20 @@ export default {
|
|
|
565
570
|
await plugin.endConversation();
|
|
566
571
|
}
|
|
567
572
|
});
|
|
568
|
-
api.logger.info(`[MemoryX] Plugin
|
|
573
|
+
api.logger.info(`[MemoryX] ✅ Plugin v${VERSION} ready! Your conversations will be remembered automatically.`);
|
|
574
|
+
// Async check and show portal link after SDK initializes
|
|
575
|
+
setImmediate(async () => {
|
|
576
|
+
try {
|
|
577
|
+
await plugin.init();
|
|
578
|
+
const info = await plugin.getAccountInfo();
|
|
579
|
+
if (info.apiKey) {
|
|
580
|
+
api.logger.info(`[MemoryX] 💡 Manage your memories: https://t0ken.ai/portal?api_key=${info.apiKey}`);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
catch (e) {
|
|
584
|
+
// ignore
|
|
585
|
+
}
|
|
586
|
+
});
|
|
569
587
|
}
|
|
570
588
|
};
|
|
571
589
|
export { MemoryXPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t0ken.ai/memoryx-openclaw-plugin",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "MemoryX real-time memory capture and recall plugin for OpenClaw (powered by @t0ken.ai/memoryx-sdk)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "MemoryX Team",
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"typescript": "^5.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@t0ken.ai/memoryx-sdk": "^1.
|
|
38
|
+
"@t0ken.ai/memoryx-sdk": "^1.3.0"
|
|
39
39
|
}
|
|
40
40
|
}
|