@lotargo/memory_plugin 1.6.8 → 1.6.10

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/mcp-server/cli.js CHANGED
@@ -24,7 +24,7 @@ export async function runCli() {
24
24
 
25
25
  Usage:
26
26
  memory-cli Launch the interactive TUI
27
- memory-cli login [--from-env|--api-token|--db-url <URL>]
27
+ memory-cli login [--from-env|--api-token|--api-key|--db-url <URL>]
28
28
  memory-cli logout [--api-key]
29
29
  memory-cli auth-status
30
30
  memory-cli link|unlink|relink|identity [--dir <path>] [--remote <url>]
@@ -45,11 +45,11 @@ function printUsage() {
45
45
 
46
46
  Usage:
47
47
  memory_plugin Start the MCP server on stdio (default)
48
- memory_plugin setup [--opencode|--claude|--codex|--gemini|--antigravity] [--mode <MODE>]
48
+ memory_plugin setup [--opencode|--claude|--codex|--gemini|--antigravity] [--api-key <TOKEN>] [--mode <MODE>]
49
49
  memory_plugin setup --uninstall [--purge] [--purge-cache] [--dry-run] [--yes]
50
50
  memory_plugin uninstall [--purge] [--purge-cache] [--dry-run] [--yes] [--opencode|--claude|--codex|--gemini|--antigravity]
51
51
  memory_plugin cli Interactive terminal UI
52
- memory_plugin login [--from-env|--api-token|--db-url <URL>]
52
+ memory_plugin login [--from-env|--api-token|--api-key|--db-url <URL>]
53
53
  memory_plugin logout [--api-key]
54
54
  memory_plugin auth-status
55
55
  memory_plugin link|unlink|relink|identity [--dir <path>] [--remote <url>]
@@ -55,9 +55,9 @@ export async function runSetup() {
55
55
  const doGemini = !hasSpecificFlag || lowerArgs.includes("--gemini");
56
56
  const doCodex = !hasSpecificFlag || lowerArgs.includes("--codex");
57
57
 
58
- // Headless cloud setup: --api-key <TURSO_API_TOKEN> and/or --mode <only-local|only-cloud|hybrid-sync>
58
+ // Headless cloud setup: --api-key (aliases: --api-token, --token) <TURSO_API_TOKEN> and/or --mode <only-local|only-cloud|hybrid-sync>
59
59
  const VALID_MODES = ["only-local", "only-cloud", "hybrid-sync"];
60
- const apiKeyArg = flagValue(args, "--api-key");
60
+ const apiKeyArg = flagValue(args, "--api-key") || flagValue(args, "--api-token") || flagValue(args, "--token");
61
61
  const modeArg = flagValue(args, "--mode");
62
62
  if (modeArg && !VALID_MODES.includes(modeArg)) {
63
63
  console.log(` [WARN] Unknown --mode "${modeArg}". Allowed: ${VALID_MODES.join(", ")}`);
@@ -78,7 +78,7 @@ export async function runSetup() {
78
78
  promptLabel: "Turso API token",
79
79
  interactive: false,
80
80
  });
81
- if (!apiKey) throw new Error("Missing API token. Set TURSO_API_TOKEN or pass --api-key <TOKEN>.");
81
+ if (!apiKey) throw new Error("Missing API token. Set TURSO_API_TOKEN or pass --api-key <TOKEN> (--api-token, --token also work).");
82
82
  const { loginWithApiToken } = await import("./admin/auth.js");
83
83
  const secrets = await loginWithApiToken({ token: apiKey });
84
84
  if (modeArg && VALID_MODES.includes(modeArg)) {
@@ -102,7 +102,7 @@ Usage:
102
102
  memory_plugin uninstall [options]
103
103
  memory_plugin setup --uninstall [options]
104
104
  memory-cli uninstall [options]
105
- npx @lotargo/memory_plugin uninstall [options]
105
+ npx -y @lotargo/memory_plugin uninstall [options]
106
106
 
107
107
  Options:
108
108
  --opencode Only remove OpenCode plugin entry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotargo/memory_plugin",
3
- "version": "1.6.8",
3
+ "version": "1.6.10",
4
4
  "description": "Local-first memory, hybrid RAG, and agent personalization for AI coding agents (OpenCode, Claude Code, Codex, Gemini CLI, Antigravity). MCP server + CLI with persistent context, document ingestion, vector + SQLite FTS5 retrieval, sync, setup, and safe uninstall.",
5
5
  "type": "module",
6
6
  "main": "opencode-plugin/main.js",