@yamo/memory-mesh 3.0.2 → 3.0.3

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
@@ -27,10 +27,10 @@ npm install @yamo/memory-mesh
27
27
 
28
28
  ```bash
29
29
  # Store a memory (automatically scrubbed & embedded)
30
- memory-mesh store "My important memory" '{"tag":"test"}'
30
+ memory-mesh store --content "My important memory" --type "insight" --rationale "Documentation upgrade"
31
31
 
32
32
  # Search memories
33
- memory-mesh search "query" 5
33
+ memory-mesh search "query" --limit 5
34
34
  ```
35
35
 
36
36
  ### Node.js API
@@ -105,6 +105,18 @@ export declare class MemoryMesh {
105
105
  metadata: {};
106
106
  created_at: string;
107
107
  }>;
108
+ /**
109
+ * Semantic alias for add().
110
+ * @param content - The text content to store
111
+ * @param metadata - Optional metadata
112
+ * @returns Promise with memory record
113
+ */
114
+ ingest(content: any, metadata?: {}): Promise<{
115
+ id: any;
116
+ content: string;
117
+ metadata: {};
118
+ created_at: string;
119
+ }>;
108
120
  /**
109
121
  * Reflect on recent memories
110
122
  */
@@ -437,6 +437,15 @@ export class MemoryMesh {
437
437
  throw error instanceof Error ? error : new Error(String(error));
438
438
  }
439
439
  }
440
+ /**
441
+ * Semantic alias for add().
442
+ * @param content - The text content to store
443
+ * @param metadata - Optional metadata
444
+ * @returns Promise with memory record
445
+ */
446
+ async ingest(content, metadata = {}) {
447
+ return this.add(content, metadata);
448
+ }
440
449
  /**
441
450
  * Reflect on recent memories
442
451
  */
@@ -437,6 +437,15 @@ export class MemoryMesh {
437
437
  throw error instanceof Error ? error : new Error(String(error));
438
438
  }
439
439
  }
440
+ /**
441
+ * Semantic alias for add().
442
+ * @param content - The text content to store
443
+ * @param metadata - Optional metadata
444
+ * @returns Promise with memory record
445
+ */
446
+ async ingest(content, metadata = {}) {
447
+ return this.add(content, metadata);
448
+ }
440
449
  /**
441
450
  * Reflect on recent memories
442
451
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamo/memory-mesh",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Portable semantic memory system with Layer 0 Scrubber for YAMO agents (v3 Singularity Edition)",
5
5
  "type": "module",
6
6
  "main": "lib/memory/index.js",