mr-memory 2.11.6 → 2.11.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/upload.ts +11 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mr-memory",
3
- "version": "2.11.6",
3
+ "version": "2.11.8",
4
4
  "description": "MemoryRouter persistent memory plugin for OpenClaw — your AI remembers every conversation",
5
5
  "type": "module",
6
6
  "files": [
package/upload.ts CHANGED
@@ -341,8 +341,10 @@ export async function runUpload(params: {
341
341
  );
342
342
 
343
343
  const result = (await response.json()) as {
344
- stats?: { stored?: number; failed?: number; inputItems?: number };
344
+ stats?: { stored?: number; failed?: number; inputItems?: number; path?: string; diagnostic?: string };
345
345
  errors?: string[];
346
+ path?: string;
347
+ diagnostic?: string;
346
348
  };
347
349
 
348
350
  const batchStored = result.stats?.stored ?? result.stats?.inputItems ?? batch.length;
@@ -351,8 +353,15 @@ export async function runUpload(params: {
351
353
  totalFailed += batchFailed;
352
354
 
353
355
  if (batchFailed > 0) {
354
- const errHint = result.errors?.[0] ? ` (${result.errors[0].slice(0, 80)})` : "";
356
+ const errHint = result.errors?.[0] ? ` (${result.errors[0].slice(0, 120)})` : "";
355
357
  console.log(`⚠ ${batchStored} stored, ${batchFailed} skipped${errHint}`);
358
+ // Show detailed error diagnostics (up to 5 per batch)
359
+ if (result.errors && result.errors.length > 1) {
360
+ for (const err of result.errors.slice(0, 5)) {
361
+ console.log(` → ${err.slice(0, 200)}`);
362
+ }
363
+ if (result.errors.length > 5) console.log(` → ... and ${result.errors.length - 5} more`);
364
+ }
356
365
  } else {
357
366
  console.log(`✓ ${batchStored} stored`);
358
367
  }