memax-cli 0.1.1-alpha.1954 → 0.1.1-alpha.1956

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 MemaxLabs, Inc.
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,98 @@
1
+ <p align="center">
2
+ <a href="https://memax.app">
3
+ <img src="https://memax.app/images/memax-wordmark.svg" alt="Memax" width="200" />
4
+ </a>
5
+ </p>
6
+
7
+ <p align="center">
8
+ <strong>Persistent memory and context for AI agents — from the terminal.</strong>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/memax-cli"><img src="https://img.shields.io/npm/v/memax-cli.svg" alt="npm version" /></a>
13
+ <a href="https://www.npmjs.com/package/memax-cli"><img src="https://img.shields.io/npm/dm/memax-cli.svg" alt="npm downloads" /></a>
14
+ <a href="https://memax.app"><img src="https://img.shields.io/badge/memax-app-7c3aed" alt="memax.app" /></a>
15
+ <a href="https://docs.memax.app"><img src="https://img.shields.io/badge/docs-memax.app-7c3aed" alt="docs.memax.app" /></a>
16
+ </p>
17
+
18
+ ---
19
+
20
+ Memax is the shared memory layer for you and your AI agents. Push knowledge once — notes, files, URLs, chat transcripts — and recall it from any agent, any session, any device. Ask grounded questions and get answers with citations from your own memory base.
21
+
22
+ `memax-cli` is the command-line entry point. It ships the `memax` binary for terminal workflows and a local MCP server so Claude Code, Cursor, Codex, and any other MCP-aware agent can read and write your memory directly.
23
+
24
+ ## Install
25
+
26
+ ```bash
27
+ npm install -g memax-cli
28
+ ```
29
+
30
+ Or run once without installing:
31
+
32
+ ```bash
33
+ npx memax-cli recall "jwt session rotation policy"
34
+ ```
35
+
36
+ ## Quick start
37
+
38
+ ```bash
39
+ # One-time: log in via browser
40
+ memax login
41
+
42
+ # Remember something
43
+ memax push "Never block on a live migration — always do online + backfill."
44
+
45
+ # Recall with natural language
46
+ memax recall "migration guidelines"
47
+
48
+ # Ask a grounded question — answer includes citations
49
+ memax ask "How do we handle breaking schema changes?"
50
+
51
+ # Wire up your IDE agent (writes an MCP entry to the right config file)
52
+ memax setup
53
+ ```
54
+
55
+ ## What it does
56
+
57
+ - **`memax push`** — save a thought, file, URL, or piped stdin
58
+ - **`memax recall`** — natural-language search across personal + team knowledge
59
+ - **`memax ask`** — AI-synthesized answer grounded in your memory, with citations
60
+ - **`memax list` / `show` / `delete`** — browse and manage entries
61
+ - **`memax hub`** — create, invite, and switch between team hubs
62
+ - **`memax topic`** — inspect auto-generated topic clusters
63
+ - **`memax dreams`** — view the ingestion/organization pipeline status
64
+ - **`memax agents sync`** — device-aware sync of agent configs and session artifacts
65
+ - **`memax import <dir>`** — one-way ingest of a directory into memory
66
+ - **`memax mcp serve`** — start a local MCP server for agent integration
67
+ - **`memax setup`** — detect installed agents and wire up MCP + hooks
68
+ - **`memax hook`** — Claude Code hook for automatic context injection
69
+
70
+ Run `memax --help` or `memax <command> --help` for the full surface.
71
+
72
+ ## Agent integration
73
+
74
+ Memax is built agent-first. Three integration paths:
75
+
76
+ 1. **MCP (recommended for IDE agents)** — `memax setup` writes the right MCP server entry for Claude Code, Cursor, Codex, or Windsurf. The agent can then call `memax_recall`, `memax_push`, `memax_ask`, and friends directly.
77
+ 2. **Claude Code hooks** — automatic context injection before each prompt (`memax hook`). Latency budget is under 500ms; context is injected as `<memax-context>` blocks.
78
+ 3. **Direct CLI piping** — works with any agent and in CI. `memax recall … | your-agent`.
79
+
80
+ ## Configuration
81
+
82
+ The CLI reads from `~/.memax/config.json` after first login. For CI and non-interactive use:
83
+
84
+ ```bash
85
+ export MEMAX_API_KEY="mk_live_..." # from memax.app → Settings → API Keys
86
+ export MEMAX_API_URL="https://api.memax.app" # default; override for self-hosted
87
+ ```
88
+
89
+ ## Links
90
+
91
+ - **Product** — [memax.app](https://memax.app)
92
+ - **Docs** — [docs.memax.app](https://docs.memax.app)
93
+ - **SDK** — [`memax-sdk`](https://www.npmjs.com/package/memax-sdk)
94
+ - **Source** — we're preparing the monorepo for open source; the repository at `github.com/MemaxLabs/memax` is currently private. Follow [@memaxlabs](https://x.com/memaxlabs) on X or email [support@memax.app](mailto:support@memax.app) if you'd like early notice.
95
+
96
+ ## License
97
+
98
+ MIT — see [LICENSE](./LICENSE).
Binary file
package/package.json CHANGED
@@ -1,7 +1,19 @@
1
1
  {
2
2
  "name": "memax-cli",
3
- "version": "0.1.1-alpha.1954",
3
+ "publishConfig": {
4
+ "access": "public"
5
+ },
6
+ "version": "0.1.1-alpha.1956",
4
7
  "description": "CLI for Memax — universal context & memory hub for AI agents",
8
+ "homepage": "https://memax.app",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/MemaxLabs/memax.git",
12
+ "directory": "packages/cli"
13
+ },
14
+ "bugs": {
15
+ "email": "support@memax.app"
16
+ },
5
17
  "type": "module",
6
18
  "bin": {
7
19
  "memax": "./dist/index.js"
@@ -16,7 +28,7 @@
16
28
  "@modelcontextprotocol/sdk": "^1.12.1",
17
29
  "chalk": "^5.4.0",
18
30
  "commander": "^13.0.0",
19
- "memax-sdk": "^0.4.0-alpha.1954"
31
+ "memax-sdk": "^0.4.0-alpha.1956"
20
32
  },
21
33
  "devDependencies": {
22
34
  "@types/node": "^25.5.0",
@@ -36,7 +48,7 @@
36
48
  "dist",
37
49
  "assets"
38
50
  ],
39
- "license": "UNLICENSED",
51
+ "license": "MIT",
40
52
  "scripts": {
41
53
  "build": "tsc",
42
54
  "dev": "tsc --watch",