@hasna/mementos 0.4.30 → 0.4.31

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/README.md +5 -0
  2. package/package.json +1 -1
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/mementos",
3
- "version": "0.4.30",
3
+ "version": "0.4.31",
4
4
  "description": "Universal memory system for AI agents - CLI + MCP server + library API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",