@t0ken.ai/memoryx-openclaw-plugin 1.1.18 → 1.1.19

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/README.md CHANGED
@@ -48,6 +48,20 @@ openclaw plugins install @t0ken.ai/memoryx-openclaw-plugin
48
48
  openclaw gateway restart
49
49
  ```
50
50
 
51
+ ## Update
52
+
53
+ ```bash
54
+ openclaw plugins update @t0ken.ai/memoryx-openclaw-plugin
55
+ openclaw gateway restart
56
+ ```
57
+
58
+ Or update all plugins:
59
+
60
+ ```bash
61
+ openclaw plugins update --all
62
+ openclaw gateway restart
63
+ ```
64
+
51
65
  ## Configuration
52
66
 
53
67
  Edit `~/.openclaw/openclaw.json`:
package/dist/index.d.ts CHANGED
@@ -98,6 +98,13 @@ declare class MemoryXPlugin {
98
98
  rounds: number;
99
99
  };
100
100
  }>;
101
+ getAccountInfo(): Promise<{
102
+ apiKey: string | null;
103
+ projectId: string;
104
+ userId: string | null;
105
+ apiBaseUrl: string;
106
+ initialized: boolean;
107
+ }>;
101
108
  }
102
109
  declare const _default: {
103
110
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAqDH,UAAU,YAAY;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAiBD,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,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACjB,CAAC,CAA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E,OAAO,CAAC;KACxB,CAAC;CAUL;;;;;;kBAUiB,GAAG,iBAAiB,YAAY,GAAG,IAAI;;AANzD,wBA+XE;AAEF,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -311,7 +311,7 @@ class MemoryXPlugin {
311
311
  body: JSON.stringify({
312
312
  machine_fingerprint: fingerprint,
313
313
  agent_type: "openclaw",
314
- agent_name: "openclaw-agent",
314
+ agent_name: os.hostname(),
315
315
  platform: os.platform(),
316
316
  platform_version: os.release()
317
317
  })
@@ -592,12 +592,22 @@ class MemoryXPlugin {
592
592
  conversationStatus: status
593
593
  };
594
594
  }
595
+ async getAccountInfo() {
596
+ this.init();
597
+ return {
598
+ apiKey: this.config.apiKey,
599
+ projectId: this.config.projectId,
600
+ userId: this.config.userId,
601
+ apiBaseUrl: this.config.apiBaseUrl,
602
+ initialized: this.config.initialized
603
+ };
604
+ }
595
605
  }
596
606
  let plugin;
597
607
  export default {
598
608
  id: "memoryx-openclaw-plugin",
599
609
  name: "MemoryX Realtime Plugin",
600
- version: "1.1.18",
610
+ version: "1.1.19",
601
611
  description: "Real-time memory capture and recall for OpenClaw",
602
612
  register(api, pluginConfig) {
603
613
  api.logger.info("[MemoryX] Plugin registering...");
@@ -827,6 +837,55 @@ export default {
827
837
  }
828
838
  }
829
839
  }, { name: "memoryx_list" });
840
+ api.registerTool({
841
+ name: "memoryx_account_info",
842
+ label: "MemoryX Account Info",
843
+ description: "Get MemoryX account information including API Key, Project ID, User ID, and API Base URL. Use when user asks about their MemoryX account, API key, project settings, or account status. Returns all stored account configuration from local database.",
844
+ parameters: {
845
+ type: "object",
846
+ properties: {}
847
+ },
848
+ async execute(_toolCallId, params) {
849
+ if (!plugin) {
850
+ return {
851
+ content: [{ type: "text", text: "MemoryX plugin not initialized." }],
852
+ details: { error: "not_initialized" }
853
+ };
854
+ }
855
+ try {
856
+ const accountInfo = await plugin.getAccountInfo();
857
+ if (!accountInfo) {
858
+ return {
859
+ content: [{ type: "text", text: "No account information found. The plugin may not be registered yet." }],
860
+ details: { error: "no_account" }
861
+ };
862
+ }
863
+ const lines = [
864
+ "MemoryX Account Information:",
865
+ `API Key: ${accountInfo.apiKey || 'Not set'}`,
866
+ `Project ID: ${accountInfo.projectId || 'default'}`,
867
+ `User ID: ${accountInfo.userId || 'Not set'}`,
868
+ `API Base URL: ${accountInfo.apiBaseUrl || DEFAULT_API_BASE}`,
869
+ `Initialized: ${accountInfo.initialized ? 'Yes' : 'No'}`
870
+ ];
871
+ return {
872
+ content: [{ type: "text", text: lines.join("\n") }],
873
+ details: {
874
+ apiKey: accountInfo.apiKey,
875
+ projectId: accountInfo.projectId,
876
+ userId: accountInfo.userId,
877
+ apiBaseUrl: accountInfo.apiBaseUrl
878
+ }
879
+ };
880
+ }
881
+ catch (error) {
882
+ return {
883
+ content: [{ type: "text", text: `Failed to get account info: ${error.message}` }],
884
+ details: { error: error.message }
885
+ };
886
+ }
887
+ }
888
+ }, { name: "memoryx_account_info" });
830
889
  api.on("message_received", async (event, ctx) => {
831
890
  const { content } = event;
832
891
  if (content && plugin) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t0ken.ai/memoryx-openclaw-plugin",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "MemoryX real-time memory capture and recall plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "author": "MemoryX Team",