@memoryrouter/cli 0.1.0 → 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 ADDED
@@ -0,0 +1,85 @@
1
+ # MemoryRouter CLI
2
+
3
+ Bring useful context from ChatGPT into MemoryRouter, then manage the persistent AI memory vault you use across supported AI tools.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install --global @memoryrouter/cli
9
+ memoryrouter --help
10
+ ```
11
+
12
+ You can also run a command without a global install:
13
+
14
+ ```bash
15
+ npx @memoryrouter/cli --help
16
+ ```
17
+
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.
42
+
43
+ ```bash
44
+ memoryrouter chatgpt-import inspect ./chatgpt-export.zip
45
+ memoryrouter chatgpt-import prepare ./chatgpt-export.zip --out ./mr-import
46
+ memoryrouter chatgpt-import approve ./mr-import
47
+ memoryrouter chatgpt-import run ./mr-import
48
+ memoryrouter chatgpt-import status ./mr-import
49
+ memoryrouter chatgpt-import receipt ./mr-import
50
+ ```
51
+
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.
59
+
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.
65
+
66
+ ## Development
67
+
68
+ ```bash
69
+ npm install
70
+ npm run build
71
+ npm run typecheck
72
+ npm test
73
+ npm pack --dry-run
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
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node