wontopos 2.1.1 → 2.2.0

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.
@@ -82,6 +82,8 @@ export declare class Client {
82
82
  search(query: string, userId: string, limit?: number, opts?: Record<string, unknown>): Promise<Memory[]>;
83
83
  /** One-call LLM context: short-term turns + long-term matches + surrounding context. */
84
84
  recall(query: string, userId: string): Promise<RecallResult>;
85
+ /** Run a built-in engram ("deep_recall" | "timeline" | "gather"). Returns the merged result. */
86
+ engram(name: string, query: string, userId: string): Promise<unknown>;
85
87
  /** Recent conversation turns (short-term memory). */
86
88
  history(userId: string): Promise<unknown[]>;
87
89
  /** Memory counts for a user: { total_memories, short_term_turns }. */
package/dist/wontopos.js CHANGED
@@ -81,6 +81,10 @@ export class Client {
81
81
  recall(query, userId) {
82
82
  return this.post("/api/v1/memory/recall", { user_id: userId, query });
83
83
  }
84
+ /** Run a built-in engram ("deep_recall" | "timeline" | "gather"). Returns the merged result. */
85
+ engram(name, query, userId) {
86
+ return this.post("/api/v1/engram/run", { name, user_id: userId, query });
87
+ }
84
88
  /** Recent conversation turns (short-term memory). */
85
89
  async history(userId) {
86
90
  const r = await this.post("/api/v1/memory/history", { user_id: userId });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wontopos",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Wontopos — long-term memory for AI agents. Pure semantic retrieval, identical recall in every language, ~100× lower LLM bill.",
5
5
  "keywords": [
6
6
  "memory",