@memoryrelay/plugin-memoryrelay-ai 0.2.3 → 0.2.4

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
@@ -396,6 +396,14 @@ MIT © 2026 MemoryRelay
396
396
 
397
397
  ## Changelog
398
398
 
399
+ ### v0.2.4 (2026-02-13)
400
+
401
+ **Debug Logging:**
402
+ - Added detailed logging to diagnose config loading issues
403
+ - Logs pluginConfig type, keys, and specific missing fields
404
+ - Helps identify why apiKey/agentId aren't being read
405
+ - Better error messages for troubleshooting
406
+
399
407
  ### v0.2.3 (2026-02-13)
400
408
 
401
409
  **Critical Fix:**
package/index.ts CHANGED
@@ -152,9 +152,25 @@ function shouldCapture(text: string): boolean {
152
152
  // ============================================================================
153
153
 
154
154
  export default async function plugin(api: OpenClawPluginApi): Promise<void> {
155
+ // Debug: log what config we're receiving
156
+ api.logger.info(`memory-memoryrelay: plugin loaded, checking config...`);
157
+ api.logger.info(`memory-memoryrelay: pluginConfig type: ${typeof api.pluginConfig}`);
158
+ api.logger.info(`memory-memoryrelay: pluginConfig keys: ${api.pluginConfig ? Object.keys(api.pluginConfig).join(', ') : 'null'}`);
159
+
155
160
  const cfg = api.pluginConfig as MemoryRelayConfig | undefined;
156
- if (!cfg?.apiKey || !cfg?.agentId) {
157
- api.logger.warn("memory-memoryrelay: missing apiKey or agentId, plugin disabled");
161
+
162
+ if (!cfg) {
163
+ api.logger.error("memory-memoryrelay: pluginConfig is null or undefined");
164
+ return;
165
+ }
166
+
167
+ if (!cfg.apiKey) {
168
+ api.logger.error(`memory-memoryrelay: missing apiKey in config. Config keys: ${Object.keys(cfg).join(', ')}`);
169
+ return;
170
+ }
171
+
172
+ if (!cfg.agentId) {
173
+ api.logger.error(`memory-memoryrelay: missing agentId in config. Config keys: ${Object.keys(cfg).join(', ')}`);
158
174
  return;
159
175
  }
160
176
 
@@ -3,7 +3,7 @@
3
3
  "kind": "memory",
4
4
  "name": "MemoryRelay AI",
5
5
  "description": "AI memory service using MemoryRelay API (api.memoryrelay.net)",
6
- "version": "0.2.3",
6
+ "version": "0.2.4",
7
7
  "uiHints": {
8
8
  "apiKey": {
9
9
  "label": "MemoryRelay API Key",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memoryrelay/plugin-memoryrelay-ai",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "OpenClaw memory plugin for MemoryRelay API - long-term memory with semantic search",
5
5
  "type": "module",
6
6
  "main": "index.ts",