@memstack/cli 0.4.0 → 0.5.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.
- package/README.md +2 -0
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -23,6 +23,8 @@ All via environment variables. Same scheme as @memstack/mcp.
|
|
|
23
23
|
| `REDIS_URL` | Redis connection | `redis://localhost:6379` |
|
|
24
24
|
| `OPENAI_API_KEY` | OpenAI LLM + embeddings | — |
|
|
25
25
|
| `ANTHROPIC_API_KEY` | Anthropic LLM (summarization) | — |
|
|
26
|
+
| `MEMSTACK_OPENAI_BASE_URL` | Custom API endpoint (DeepSeek, etc.) | `https://api.openai.com/v1` |
|
|
27
|
+
| `MEMSTACK_LLM_MODEL` | Model override | `gpt-4o-mini` |
|
|
26
28
|
|
|
27
29
|
## Commands
|
|
28
30
|
|
package/dist/cli.js
CHANGED
|
@@ -11762,7 +11762,10 @@ async function main() {
|
|
|
11762
11762
|
if (!values.actor) fail("--actor is required");
|
|
11763
11763
|
if (!values.file) fail("--file is required");
|
|
11764
11764
|
const raw = await readFile(String(values.file), "utf-8");
|
|
11765
|
-
|
|
11765
|
+
let snapshot = JSON.parse(raw);
|
|
11766
|
+
if (Array.isArray(snapshot)) {
|
|
11767
|
+
snapshot = { version: 1, memories: snapshot, exportedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
11768
|
+
}
|
|
11766
11769
|
await ms.import(snapshot);
|
|
11767
11770
|
result = { imported: snapshot.memories?.length ?? 0 };
|
|
11768
11771
|
break;
|