@memoryrelay/plugin-memoryrelay-ai 0.16.0 → 0.16.1
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/index.ts +29 -3
- package/openclaw.plugin.json +2 -2
- package/package.json +1 -1
- package/src/client/memoryrelay-client.ts +1 -1
package/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OpenClaw Memory Plugin - MemoryRelay
|
|
3
|
-
* Version: 0.16.
|
|
3
|
+
* Version: 0.16.1
|
|
4
4
|
*
|
|
5
5
|
* Long-term memory with vector search using MemoryRelay API.
|
|
6
6
|
* Provides auto-recall and auto-capture via lifecycle hooks.
|
|
@@ -404,7 +404,7 @@ export default async function plugin(api: OpenClawPluginApi): Promise<void> {
|
|
|
404
404
|
// ========================================================================
|
|
405
405
|
|
|
406
406
|
api.logger.info?.(
|
|
407
|
-
`memory-memoryrelay: plugin v0.16.
|
|
407
|
+
`memory-memoryrelay: plugin v0.16.1 loaded (${Object.values(TOOL_GROUPS).flat().length} tools, autoRecall: ${pluginConfig.autoRecall}, autoCapture: ${autoCaptureConfig.enabled ? autoCaptureConfig.tier : "off"}, debug: ${debugEnabled})`,
|
|
408
408
|
);
|
|
409
409
|
|
|
410
410
|
// ========================================================================
|
|
@@ -439,9 +439,35 @@ export default async function plugin(api: OpenClawPluginApi): Promise<void> {
|
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
// ========================================================================
|
|
442
|
-
// Gateway Methods (memory.status, memoryrelay.*)
|
|
442
|
+
// Gateway Methods (memory.probe, memory.status, memoryrelay.*)
|
|
443
443
|
// ========================================================================
|
|
444
444
|
|
|
445
|
+
// memory.probe — lightweight probe so `openclaw status` shows "available"
|
|
446
|
+
// instead of "unavailable". OpenClaw checks this to determine if the memory
|
|
447
|
+
// slot has a functioning provider.
|
|
448
|
+
api.registerGatewayMethod?.("memory.probe", async ({ respond }) => {
|
|
449
|
+
try {
|
|
450
|
+
const health = await client.health();
|
|
451
|
+
const healthStatus = String(health.status).toLowerCase();
|
|
452
|
+
const isConnected = VALID_HEALTH_STATUSES.includes(healthStatus);
|
|
453
|
+
|
|
454
|
+
respond(true, {
|
|
455
|
+
available: isConnected,
|
|
456
|
+
provider: "memoryrelay",
|
|
457
|
+
endpoint: apiUrl,
|
|
458
|
+
vector: { available: true, enabled: true },
|
|
459
|
+
});
|
|
460
|
+
} catch (_err) {
|
|
461
|
+
respond(true, {
|
|
462
|
+
available: false,
|
|
463
|
+
provider: "memoryrelay",
|
|
464
|
+
endpoint: apiUrl,
|
|
465
|
+
error: String(_err),
|
|
466
|
+
vector: { available: false, enabled: true },
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
|
|
445
471
|
api.registerGatewayMethod?.("memory.status", async ({ respond }) => {
|
|
446
472
|
try {
|
|
447
473
|
const startTime = Date.now();
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"id": "plugin-memoryrelay-ai",
|
|
3
3
|
"kind": "memory",
|
|
4
4
|
"name": "MemoryRelay AI",
|
|
5
|
-
"description": "MemoryRelay v0.16.
|
|
6
|
-
"version": "0.16.
|
|
5
|
+
"description": "MemoryRelay v0.16.1 - Long-term memory with pipeline architecture, 42 tools, 17 commands, V2 async, sessions, decisions, patterns & projects (api.memoryrelay.net)",
|
|
6
|
+
"version": "0.16.1",
|
|
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.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "OpenClaw memory plugin for MemoryRelay API - 42 tools, 17 commands, V2 async, sessions, decisions, patterns, projects & semantic search",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -153,7 +153,7 @@ export class MemoryRelayClient implements IMemoryRelayClient {
|
|
|
153
153
|
headers: {
|
|
154
154
|
"Content-Type": "application/json",
|
|
155
155
|
Authorization: `Bearer ${this.apiKey}`,
|
|
156
|
-
"User-Agent": "openclaw-memory-memoryrelay/0.16.
|
|
156
|
+
"User-Agent": "openclaw-memory-memoryrelay/0.16.1",
|
|
157
157
|
},
|
|
158
158
|
body: body ? JSON.stringify(body) : undefined,
|
|
159
159
|
},
|