@hasna/mementos 0.4.30 → 0.4.32

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
@@ -140,6 +140,10 @@ bun add @hasna/mementos-sdk
140
140
  ```typescript
141
141
  import { MementosClient } from "@hasna/mementos-sdk";
142
142
 
143
+ // Auto-configure from MEMENTOS_URL env var
144
+ const client = MementosClient.fromEnv();
145
+
146
+ // Or explicit:
143
147
  const client = new MementosClient({ baseUrl: "http://localhost:19428" });
144
148
 
145
149
  // Save memory
@@ -205,6 +209,7 @@ POST /api/memories/extract
205
209
  | `MEMENTOS_DB_SCOPE` | `project` = git root `.mementos/mementos.db` | global |
206
210
  | `MEMENTOS_HOST` | Server bind address | `127.0.0.1` |
207
211
  | `PORT` | Server port | `19428` |
212
+ | `MEMENTOS_URL` | SDK client base URL (`MementosClient.fromEnv()`) | `http://localhost:19428` |
208
213
 
209
214
  ## Library
210
215
 
package/dist/mcp/index.js CHANGED
@@ -6375,6 +6375,7 @@ server.tool("memory_search", "Search memories by keyword across key, value, summ
6375
6375
  tags: exports_external.array(exports_external.string()).optional(),
6376
6376
  agent_id: exports_external.string().optional(),
6377
6377
  project_id: exports_external.string().optional(),
6378
+ session_id: exports_external.string().optional(),
6378
6379
  limit: exports_external.coerce.number().optional()
6379
6380
  }, async (args) => {
6380
6381
  try {
@@ -6384,6 +6385,7 @@ server.tool("memory_search", "Search memories by keyword across key, value, summ
6384
6385
  tags: args.tags,
6385
6386
  agent_id: args.agent_id,
6386
6387
  project_id: args.project_id,
6388
+ session_id: args.session_id,
6387
6389
  search: args.query,
6388
6390
  limit: args.limit || 20
6389
6391
  };
@@ -7359,6 +7361,7 @@ var FULL_SCHEMAS = {
7359
7361
  tags: { type: "array", description: "Tag filter", items: { type: "string" } },
7360
7362
  agent_id: { type: "string", description: "Agent UUID filter" },
7361
7363
  project_id: { type: "string", description: "Project UUID filter" },
7364
+ session_id: { type: "string", description: "Session ID filter" },
7362
7365
  limit: { type: "number", description: "Max results (default 20)" }
7363
7366
  },
7364
7367
  example: '{"query":"typescript","scope":"global","limit":10}'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/mementos",
3
- "version": "0.4.30",
3
+ "version": "0.4.32",
4
4
  "description": "Universal memory system for AI agents - CLI + MCP server + library API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",