@memoryrelay/plugin-memoryrelay-ai 0.2.2 → 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 +17 -0
- package/index.ts +22 -6
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -396,6 +396,23 @@ 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
|
+
|
|
407
|
+
### v0.2.3 (2026-02-13)
|
|
408
|
+
|
|
409
|
+
**Critical Fix:**
|
|
410
|
+
- Fixed API endpoint paths - removed duplicate `/memories` segment
|
|
411
|
+
- Changed `/v1/memories/memories` → `/v1/memories`
|
|
412
|
+
- Changed `/v1/memories/memories/{id}` → `/v1/memories/{id}`
|
|
413
|
+
- Fixed 405 Method Not Allowed errors
|
|
414
|
+
- All CRUD operations now work correctly
|
|
415
|
+
|
|
399
416
|
### v0.2.2 (2026-02-13)
|
|
400
417
|
|
|
401
418
|
**Critical Fix:**
|
package/index.ts
CHANGED
|
@@ -80,7 +80,7 @@ class MemoryRelayClient {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
async store(content: string, metadata?: Record<string, string>): Promise<Memory> {
|
|
83
|
-
return this.request<Memory>("POST", "/v1/memories
|
|
83
|
+
return this.request<Memory>("POST", "/v1/memories", {
|
|
84
84
|
content,
|
|
85
85
|
metadata,
|
|
86
86
|
agent_id: this.agentId,
|
|
@@ -94,7 +94,7 @@ class MemoryRelayClient {
|
|
|
94
94
|
): Promise<SearchResult[]> {
|
|
95
95
|
const response = await this.request<{ data: SearchResult[] }>(
|
|
96
96
|
"POST",
|
|
97
|
-
"/v1/memories/
|
|
97
|
+
"/v1/memories/search",
|
|
98
98
|
{
|
|
99
99
|
query,
|
|
100
100
|
limit,
|
|
@@ -114,11 +114,11 @@ class MemoryRelayClient {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
async get(id: string): Promise<Memory> {
|
|
117
|
-
return this.request<Memory>("GET", `/v1/memories
|
|
117
|
+
return this.request<Memory>("GET", `/v1/memories/${id}`);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
async delete(id: string): Promise<void> {
|
|
121
|
-
await this.request<void>("DELETE", `/v1/memories
|
|
121
|
+
await this.request<void>("DELETE", `/v1/memories/${id}`);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
async health(): Promise<{ status: string }> {
|
|
@@ -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
|
-
|
|
157
|
-
|
|
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
|
|
package/openclaw.plugin.json
CHANGED