@memoryrouter/cli 0.1.1 → 0.1.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MemoryRouter
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,42 +1,85 @@
1
1
  # MemoryRouter CLI
2
2
 
3
- Standalone CLI for managing MemoryRouter vaults.
3
+ Bring useful context from ChatGPT into MemoryRouter, then manage the persistent AI memory vault you use across supported AI tools.
4
+
5
+ ## Install
4
6
 
5
7
  ```bash
6
- memoryrouter auth <mk_key> # authenticate
7
- memoryrouter upload <path> # upload files/directories
8
- memoryrouter status # vault stats
9
- memoryrouter delete # clear vault
8
+ npm install --global @memoryrouter/cli
9
+ memoryrouter --help
10
10
  ```
11
11
 
12
- ## ChatGPT archive import
12
+ You can also run a command without a global install:
13
+
14
+ ```bash
15
+ npx @memoryrouter/cli --help
16
+ ```
13
17
 
14
- Deterministic, previewed, resumable, idempotent import of your official ChatGPT
15
- data export. Re-running never duplicates memories or charges; every write is
16
- gated behind an explicit approval of an exact preview digest.
18
+ Create or choose a Memory Key in the [MemoryRouter app](https://app.memoryrouter.ai), then authenticate:
19
+
20
+ ```bash
21
+ memoryrouter auth <mk_key>
22
+ ```
23
+
24
+ The CLI stores the key locally in `~/.memoryrouter/config.json`. Do not commit that file or share your key.
25
+
26
+ ## Manage a vault
27
+
28
+ ```bash
29
+ memoryrouter upload <path> # upload a file or directory
30
+ memoryrouter upload <path> --session work
31
+ memoryrouter status # show vault statistics
32
+ memoryrouter whoami # show masked authentication details
33
+ memoryrouter delete # clear the core vault (asks first)
34
+ memoryrouter delete --session work # clear one session vault
35
+ ```
36
+
37
+ Supported uploads include plain text, Markdown, JSON, PDF, and DOCX files. Use a dedicated Memory Key when you want an isolated vault.
38
+
39
+ ## Import ChatGPT history
40
+
41
+ The advanced importer reads your official ChatGPT data export locally, shows an exact preview, and requires explicit approval before it writes. Imports are deterministic, resumable, and idempotent, so a committed batch is not duplicated or charged again when you resume.
17
42
 
18
43
  ```bash
19
44
  memoryrouter chatgpt-import inspect ./chatgpt-export.zip
20
45
  memoryrouter chatgpt-import prepare ./chatgpt-export.zip --out ./mr-import
21
46
  memoryrouter chatgpt-import approve ./mr-import
22
- memoryrouter chatgpt-import run ./mr-import # resume with `resume`
47
+ memoryrouter chatgpt-import run ./mr-import
23
48
  memoryrouter chatgpt-import status ./mr-import
24
49
  memoryrouter chatgpt-import receipt ./mr-import
25
- memoryrouter chatgpt-import cancel ./mr-import
26
50
  ```
27
51
 
28
- The importer never automates ChatGPT login/export/email/MFA — you download the
29
- official export yourself and point the CLI at the `.zip` or extracted folder.
30
- The workspace never stores your Memory Key or message plaintext.
52
+ Resume an interrupted import with:
53
+
54
+ ```bash
55
+ memoryrouter chatgpt-import resume ./mr-import
56
+ ```
57
+
58
+ The importer does not automate ChatGPT login, export, email, or MFA. Download the official export yourself and point the CLI at the `.zip` or extracted folder. The local import workspace does not store your Memory Key or message plaintext.
31
59
 
32
- Full guide, guarantees, and server/deployment details:
33
- [`docs/chatgpt-import.md`](../docs/chatgpt-import.md).
60
+ Read the [advanced ChatGPT import guide](https://memoryrouter.ai/blog/import-chatgpt-history-to-memoryrouter) for the complete workflow and guarantees.
61
+
62
+ ## Use the same memory in AI tools
63
+
64
+ After importing or uploading context, connect supported tools to the same vault through the [MemoryRouter MCP memory server](https://memoryrouter.ai/mcp). See the [CLI documentation](https://docs.memoryrouter.ai/cli) for command details and the [MemoryRouter CLI page](https://memoryrouter.ai/cli) for current setup guidance.
34
65
 
35
66
  ## Development
36
67
 
37
68
  ```bash
38
69
  npm install
39
- npm run build # tsup → dist/index.js
40
- npm run typecheck # tsc --noEmit
41
- npm test # vitest (parser, ZIP defenses, discovery, manifest, e2e)
70
+ npm run build
71
+ npm run typecheck
72
+ npm test
73
+ npm pack --dry-run
42
74
  ```
75
+
76
+ ## Links
77
+
78
+ - [MemoryRouter](https://memoryrouter.ai)
79
+ - [CLI documentation](https://docs.memoryrouter.ai/cli)
80
+ - [MCP memory server](https://memoryrouter.ai/mcp)
81
+ - [Public SDK and issue tracker](https://github.com/John-Rood/memoryrouter-sdk)
82
+
83
+ ## License
84
+
85
+ MIT
package/dist/index.js CHANGED
@@ -1880,7 +1880,7 @@ function describeError(body) {
1880
1880
 
1881
1881
  // src/index.ts
1882
1882
  var program = new Command();
1883
- program.name("memoryrouter").description("MemoryRouter CLI \u2014 add persistent memory to any LLM").version("0.1.0");
1883
+ program.name("memoryrouter").description("Persistent AI memory and safe ChatGPT history import").version("0.1.2");
1884
1884
  program.command("auth <key>").description("Authenticate with your MemoryRouter memory key").option("--endpoint <url>", "Custom API endpoint").action(async (key, opts) => {
1885
1885
  if (!/^mk[_-]/.test(key)) {
1886
1886
  console.error("\u274C Memory key must start with mk_ or mk-");
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@memoryrouter/cli",
3
- "version": "0.1.1",
4
- "description": "MemoryRouter CLI: upload, search, and manage private AI memory vaults",
3
+ "version": "0.1.2",
4
+ "description": "CLI for persistent AI memory: manage MemoryRouter vaults and safely import ChatGPT history",
5
5
  "type": "module",
6
6
  "bin": {
7
- "memoryrouter": "./dist/index.js"
7
+ "memoryrouter": "dist/index.js"
8
8
  },
9
9
  "scripts": {
10
10
  "build": "tsup src/index.ts --format esm --dts --clean",
@@ -17,20 +17,31 @@
17
17
  ],
18
18
  "keywords": [
19
19
  "memoryrouter",
20
- "memory",
21
- "llm",
22
- "ai",
20
+ "ai-memory",
21
+ "persistent-memory",
22
+ "chatgpt-memory",
23
+ "chatgpt-import",
24
+ "mcp",
23
25
  "cli",
24
- "vector",
25
- "rag"
26
+ "rag",
27
+ "vector-search"
26
28
  ],
27
29
  "author": "MemoryRouter <hello@memoryrouter.ai>",
28
30
  "license": "MIT",
29
- "homepage": "https://memoryrouter.ai",
31
+ "homepage": "https://memoryrouter.ai/cli",
30
32
  "repository": {
31
33
  "type": "git",
32
34
  "url": "git+https://github.com/John-Rood/memoryrouter-sdk.git"
33
35
  },
36
+ "bugs": {
37
+ "url": "https://github.com/John-Rood/memoryrouter-sdk/issues"
38
+ },
39
+ "engines": {
40
+ "node": ">=20.16.0 <21 || >=22.3.0"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
34
45
  "dependencies": {
35
46
  "commander": "^12.0.0",
36
47
  "mammoth": "^1.11.0",