enigma-memory 0.1.4 → 0.1.6

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 CHANGED
@@ -1,48 +1,41 @@
1
1
  # Enigma
2
2
 
3
- Enigma is a provider-agnostic AI memory custody and proof layer. It gives a user or enterprise a local canonical memory vault, emits offline-verifiable receipts for Enigma-controlled lifecycle events, and connects that vault to assistants through CLI, MCP, browser, desktop, relay, gateway, and enterprise policy surfaces.
3
+ Enigma Memory is a local-first AI Memory Passport. It gives you one canonical local memory vault, receipt-backed proof for Enigma-controlled events, and MCP connections into assistants such as Claude Desktop, Cursor, Kimi Code, and generic MCP clients.
4
4
 
5
- Current status:
5
+ Start with the package path below. You do not need to understand relay, gateway, mesh, browser, desktop, or hosted infrastructure before trying Enigma locally.
6
6
 
7
- - Local production foundation: CLI, verifier, vault, passport, boundary, MCP server, connector, importer, relay, gateway, enterprise, mesh, browser-extension, and desktop scaffold code exist in this repository.
8
- - Published npm package: package bins and module entry points are available as `enigma-memory`; use the npm install path below for the simplest onboarding flow.
9
- - Source-only artifacts: `docs/`, `Dockerfile`, and `docker-compose.yml` live in the source checkout. The package README and CLI help are the package-included install guides; the full runbooks require the repository or hosted docs.
10
- - Hosted cloud is not included by default. Hosted relay/gateway/cloud operation requires deployment credentials, a domain, TLS, production durable storage, KMS/secrets, monitoring, backups, operator policy, and a completed operator acceptance packet. Local relay/gateway `--state-file` demo state does not satisfy those hosted/BYOC requirements.
11
- - Cloudflare API/domain/hosting automation is documented but safe-by-default: [`docs/cloudflare-token-and-domain-runbook.md`](docs/cloudflare-token-and-domain-runbook.md) gives the token recipe, Registrar prerequisites, local token storage rule, search/check flow, explicit domain+price purchase gate, Pages deploy gate, custom-domain steps, and post-setup token rotation.
12
- - Overnight execution plan: [`docs/overnight-build-master-plan.md`](docs/overnight-build-master-plan.md) defines the GPT-5.5/Kimi overnight build cadence, acceptance gates, exact non-claims, and hosted/BYOC blockers.
13
- - Security and production review artifacts: [`SECURITY.md`](SECURITY.md) defines reporting, safe harbor, disclosure, incident, secret-handling, plaintext-minimization, and proof-boundary policy; [`docs/security-threat-model.md`](docs/security-threat-model.md) maps assets, trust boundaries, controls, residual risks, and verification evidence; [`docs/operator-acceptance-packet.md`](docs/operator-acceptance-packet.md) is required before hosted/BYOC can be called live.
14
- - Public API reference: [`docs/public-api-reference.md`](docs/public-api-reference.md) lists package exports, CLI bins, MCP tools/resources/prompts, relay/gateway endpoints, importer/capsule APIs, connector profiles, verifier outputs, schemas, and local-vs-hosted boundaries.
15
- - Local release provenance/SBOM: [`docs/release-provenance-and-sbom.md`](docs/release-provenance-and-sbom.md) documents `npm run provenance:local -- --out ./.enigma/release-provenance.json` as unsigned local package-surface inventory and SHA-256 evidence only, not signed attestation, registry provenance, source-control proof, SLSA/compliance, Docker image, or hosted/cloud deployment evidence.
16
- - Reviewer packet: [`docs/reviewer-packet.md`](docs/reviewer-packet.md) documents `npm run review:packet -- --out ./.enigma-review-packet --public-site <path-to-_public_site>` as a local hand-review bundle for package, release-audit, provenance, and optional generated public-site evidence; it is not npm publication, live Cloudflare deployment, Docker runtime proof, hosted/BYOC readiness, legal approval, signed provenance, or compliance evidence.
7
+ The package path needs no database, provider credential, cloud credential, npm publishing token, or external account. Hosted cloud and BYOC operation are separate advanced modes that require real deployment credentials, domains, TLS, durable storage, KMS/secrets, monitoring, backups, and operator acceptance.
17
8
 
18
9
  Enigma does not claim that a closed provider deleted internal data, that model weights forgot, or that provider-native memory disappeared. It proves facts about Enigma-controlled vault state, receipts, checkpoints, and declared boundary operations.
19
10
 
20
- ## Install and run locally
11
+ ## Install once, use everywhere
21
12
 
22
13
  Prerequisites:
23
14
 
24
15
  - Node.js `>=24`
25
- - No database, package registry account, provider credential, or cloud credential for the local package quickstart
16
+ - No database, package registry account, provider credential, or cloud credential for the local setup path
26
17
  - Git only when you choose the advanced source-checkout path
27
18
 
28
- ## Quickstart from npm
29
-
30
- Use the published package first:
19
+ Use Enigma as a one-time AI Memory Passport setup: install the package, create the local Enigma workspace once, then use the same memory/search/context/verify/connect loop from any supported client.
31
20
 
32
21
  ```sh
33
22
  npm install -g enigma-memory
34
- enigma quickstart --bundle ./.enigma/bundle.json --overwrite
35
- enigma doctor
36
- enigma-relay demo
37
- enigma-gateway demo
23
+ enigma setup --overwrite
24
+ enigma remember --text-file ./memory.txt
25
+ enigma search --query "..."
26
+ enigma context --query "..." --optimize
27
+ enigma verify --export ./.enigma/export.json
28
+ enigma connect claude-desktop --dry-run
38
29
  ```
39
30
 
40
- `enigma quickstart` creates a local Enigma workspace for proof review: a local vault bundle, a context pack, an export proof bundle, and a verify report. These artifacts prove Enigma-controlled local vault state, receipts, checkpoints, and verification results only; they do not prove provider deletion, provider model forgetting, provider-native memory removal, hosted availability, or compliance certification.
31
+ `enigma setup --overwrite` writes local Enigma artifacts under the workspace `.enigma` path and emits deterministic, public-safe JSON. It does not write Claude, Cursor, Kimi, or other third-party app configs. Client config writes happen only when you explicitly run `enigma connect <client>` without `--dry-run`; keep `--dry-run` while reviewing the planned MCP entry.
32
+
33
+ The local Enigma vault remains canonical. Provider-native memory should be treated as a convenience cache only. Enigma receipts prove Enigma-controlled vault state, receipts, checkpoints, and declared boundary operations; they do not prove provider deletion, provider model forgetting, provider-native memory removal, hosted availability, ROI/savings, or compliance certification.
41
34
 
42
35
  One-off execution without a global install:
43
36
 
44
37
  ```sh
45
- npx --yes --package enigma-memory enigma quickstart --bundle ./.enigma/bundle.json --overwrite
38
+ npx --yes --package enigma-memory enigma setup --overwrite
46
39
  ```
47
40
 
48
41
  ## Advanced/source-only path
@@ -60,7 +53,7 @@ enigma-gateway demo
60
53
 
61
54
  `install:local` is dry-run unless `--execute` is present. The command above installs the checked-out package globally and creates a local vault bundle. It does not require Cloudflare, OpenAI, Anthropic, npm publish credentials, a database, or hosted infrastructure.
62
55
 
63
- Manual alternative: create a no-network local vault, write one local memory from a file, compile a context pack, export a proof bundle, and verify it. Use a tenant-approved smoke file; do not expand private memory into shell argv.
56
+ Manual alternative: inspect the lower-level local vault steps that `enigma setup` prepares for you. Use a tenant-approved smoke file; do not expand private memory into shell argv.
64
57
 
65
58
  POSIX shell:
66
59
 
@@ -72,7 +65,7 @@ enigma init --bundle ./.enigma/bundle.json --subject local-user --display-name "
72
65
  enigma remember --bundle ./.enigma/bundle.json --text-file "$ENIGMA_DEMO_MEMORY_FILE" --purpose user_memory --tags local
73
66
  enigma context --bundle ./.enigma/bundle.json --query "local context" --purpose local_answer --out ./.enigma/context-pack.json
74
67
  enigma export --bundle ./.enigma/bundle.json --out ./.enigma/export.json
75
- enigma verify --bundle ./.enigma/export.json
68
+ enigma verify --export ./.enigma/export.json
76
69
  ```
77
70
 
78
71
  Windows PowerShell:
@@ -85,7 +78,7 @@ enigma init --bundle .\.enigma\bundle.json --subject local-user --display-name "
85
78
  enigma remember --bundle .\.enigma\bundle.json --text-file $env:ENIGMA_DEMO_MEMORY_FILE --purpose user_memory --tags local
86
79
  enigma context --bundle .\.enigma\bundle.json --query "local context" --purpose local_answer --out .\.enigma\context-pack.json
87
80
  enigma export --bundle .\.enigma\bundle.json --out .\.enigma\export.json
88
- enigma verify --bundle .\.enigma\export.json
81
+ enigma verify --export .\.enigma\export.json
89
82
  ```
90
83
 
91
84
  The bundle is local. Exported proof artifacts contain encrypted/committed vault state and receipt metadata; do not paste raw memory plaintext into relay records, witness checkpoints, SIEM events, public proof artifacts, or shell command lines.
@@ -150,16 +143,31 @@ Supported connector profiles are:
150
143
  - `opencode`
151
144
  - `generic-mcp`
152
145
 
153
- Use the config in `docs/client-connectors.md` from a source checkout for Claude Desktop, Cursor, Kimi Code, VS Code/Cline, Roo Code, OpenCode, or any MCP-compatible client. The generated entry defaults to command `enigma-mcp` and sets `ENIGMA_BUNDLE` to the local vault bundle.
154
-
155
- CLI connector commands:
146
+ After `enigma setup --overwrite`, preview a client connection before writing anything:
156
147
 
157
148
  ```sh
158
- enigma doctor
159
- enigma install --bundle "$HOME/.enigma/bundle.json"
160
- enigma connect claude-desktop --bundle "$HOME/.enigma/bundle.json"
161
- enigma connect kimi-code --bundle "$HOME/.enigma/bundle.json" --mcp-command "/absolute/path/to/enigma-mcp"
162
- enigma disconnect claude-desktop
149
+ enigma connect claude-desktop --dry-run
150
+ enigma connect cursor --dry-run
151
+ enigma connect kimi-code --dry-run
152
+ enigma connect generic-mcp --dry-run
153
+ ```
154
+
155
+ Remove `--dry-run` only after you are ready for Enigma to merge the `mcpServers.enigma` entry into that client config. The setup command itself never writes third-party app configs.
156
+
157
+ Manual MCP entry for Claude Desktop, Cursor, Kimi Code, or any generic MCP client:
158
+
159
+ ```json
160
+ {
161
+ "mcpServers": {
162
+ "enigma": {
163
+ "command": "enigma-mcp",
164
+ "args": [],
165
+ "env": {
166
+ "ENIGMA_BUNDLE": "/absolute/path/to/.enigma/bundle.json"
167
+ }
168
+ }
169
+ }
170
+ }
163
171
  ```
164
172
 
165
173
  Use `--mcp-command` (alias `--command`) when a GUI app cannot find shell-installed binaries or needs a `.cmd` path on Windows.
@@ -291,7 +299,7 @@ test -f "$ENIGMA_DEMO_MEMORY_FILE"
291
299
  enigma init --bundle ./.enigma/bundle.json
292
300
  enigma remember --bundle ./.enigma/bundle.json --text-file "$ENIGMA_DEMO_MEMORY_FILE" --purpose local_test
293
301
  enigma export --bundle ./.enigma/bundle.json --out ./.enigma/export.json
294
- enigma verify --bundle ./.enigma/export.json
302
+ enigma verify --export ./.enigma/export.json
295
303
  enigma boundary run --scenario committed_crossing
296
304
  ```
297
305