@memoryrelay/plugin-memoryrelay-ai 0.2.0 → 0.2.2

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,23 @@ MIT © 2026 MemoryRelay
396
396
 
397
397
  ## Changelog
398
398
 
399
+ ### v0.2.2 (2026-02-13)
400
+
401
+ **Critical Fix:**
402
+ - Fixed tool registration API - changed `inputSchema` to `parameters`
403
+ - Fixed handler signature - changed `handler` to `execute` with `_id` parameter
404
+ - Tools now register correctly with OpenClaw
405
+ - Memory storage/recall/forget now functional
406
+ - Plugin shows as "available" instead of "unavailable"
407
+
408
+ ### v0.2.1 (2026-02-13)
409
+
410
+ **Bug Fix:**
411
+ - Made `apiKey` and `agentId` optional in config schema
412
+ - Allows installation without pre-configuring credentials
413
+ - Plugin auto-detects agentId and supports MEMORYRELAY_API_KEY env var
414
+ - Fixes "must have required property" errors during installation
415
+
399
416
  ### v0.2.0 (2026-02-13) - BREAKING CHANGE
400
417
 
401
418
  **Package Renamed to Fix Warnings:**
package/index.ts CHANGED
@@ -183,7 +183,7 @@ export default async function plugin(api: OpenClawPluginApi): Promise<void> {
183
183
  name: "memory_store",
184
184
  description:
185
185
  "Store a new memory in MemoryRelay. Use this to save important information, facts, preferences, or context that should be remembered for future conversations.",
186
- inputSchema: {
186
+ parameters: {
187
187
  type: "object",
188
188
  properties: {
189
189
  content: {
@@ -198,7 +198,7 @@ export default async function plugin(api: OpenClawPluginApi): Promise<void> {
198
198
  },
199
199
  required: ["content"],
200
200
  },
201
- handler: async ({ content, metadata }: { content: string; metadata?: Record<string, string> }) => {
201
+ execute: async (_id, { content, metadata }: { content: string; metadata?: Record<string, string> }) => {
202
202
  try {
203
203
  const memory = await client.store(content, metadata);
204
204
  return {
@@ -227,7 +227,7 @@ export default async function plugin(api: OpenClawPluginApi): Promise<void> {
227
227
  name: "memory_recall",
228
228
  description:
229
229
  "Search memories using natural language. Returns the most relevant memories based on semantic similarity.",
230
- inputSchema: {
230
+ parameters: {
231
231
  type: "object",
232
232
  properties: {
233
233
  query: {
@@ -244,7 +244,7 @@ export default async function plugin(api: OpenClawPluginApi): Promise<void> {
244
244
  },
245
245
  required: ["query"],
246
246
  },
247
- handler: async ({ query, limit = 5 }: { query: string; limit?: number }) => {
247
+ execute: async (_id, { query, limit = 5 }: { query: string; limit?: number }) => {
248
248
  try {
249
249
  const results = await client.search(query, limit, cfg.recallThreshold || 0.3);
250
250
 
@@ -296,7 +296,7 @@ export default async function plugin(api: OpenClawPluginApi): Promise<void> {
296
296
  {
297
297
  name: "memory_forget",
298
298
  description: "Delete a memory by ID or search for memories to forget.",
299
- inputSchema: {
299
+ parameters: {
300
300
  type: "object",
301
301
  properties: {
302
302
  memoryId: {
@@ -309,7 +309,7 @@ export default async function plugin(api: OpenClawPluginApi): Promise<void> {
309
309
  },
310
310
  },
311
311
  },
312
- handler: async ({ memoryId, query }: { memoryId?: string; query?: string }) => {
312
+ execute: async (_id, { memoryId, query }: { memoryId?: string; query?: string }) => {
313
313
  if (memoryId) {
314
314
  try {
315
315
  await client.delete(memoryId);
@@ -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.1.0",
6
+ "version": "0.2.2",
7
7
  "uiHints": {
8
8
  "apiKey": {
9
9
  "label": "MemoryRelay API Key",
@@ -62,6 +62,6 @@
62
62
  "default": 0.3
63
63
  }
64
64
  },
65
- "required": ["apiKey", "agentId"]
65
+ "required": []
66
66
  }
67
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memoryrelay/plugin-memoryrelay-ai",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "OpenClaw memory plugin for MemoryRelay API - long-term memory with semantic search",
5
5
  "type": "module",
6
6
  "main": "index.ts",