enigma-memory 0.1.17 → 0.1.18

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.
Files changed (34) hide show
  1. package/README.md +18 -12
  2. package/apps/cli/bin/enigma.mjs +3341 -3263
  3. package/deploy/SIMULATION.md +14 -9
  4. package/deploy/docker-compose.local-production-simulation.yml +18 -12
  5. package/docs/benchmark-attestation-network.md +487 -487
  6. package/docs/benchmark-reproducibility.md +289 -289
  7. package/docs/blockchain-only-mechanisms.md +400 -400
  8. package/docs/client-connectors.md +1 -1
  9. package/docs/demo-proof-network.md +275 -275
  10. package/docs/developer-proof-quickstart.md +325 -325
  11. package/docs/enigma-memory-ready-conformance.md +376 -376
  12. package/docs/install-anywhere.md +3 -2
  13. package/docs/memory-benchmarks.md +1 -1
  14. package/docs/memory-drive-health-model.md +690 -690
  15. package/docs/proof-network-build-notes.md +240 -240
  16. package/docs/proof-network.md +339 -339
  17. package/docs/sdk-api.md +324 -324
  18. package/docs/solana-proof-rail.md +453 -453
  19. package/package.json +279 -278
  20. package/packages/core/src/index.js +1 -1
  21. package/packages/mcp-server/src/index.js +1185 -1185
  22. package/packages/passport/src/index.js +10 -6
  23. package/packages/vault/src/index.js +187 -25
  24. package/scripts/build-hosted-api-key-lifecycle.mjs +274 -274
  25. package/scripts/build-hosted-customer-lifecycle.mjs +476 -476
  26. package/scripts/build-installer-assets.mjs +389 -389
  27. package/scripts/build-production-unblocker.mjs +1 -1
  28. package/scripts/build-proof-network-packet.mjs +213 -213
  29. package/scripts/check.mjs +8 -1
  30. package/scripts/release-audit.mjs +9 -6
  31. package/scripts/release-provenance.mjs +6 -2
  32. package/scripts/run-standard-memory-benchmarks.mjs +1354 -1352
  33. package/scripts/scan-secrets.mjs +177 -0
  34. package/scripts/simulate-production-env.mjs +64 -8
package/README.md CHANGED
@@ -4,7 +4,7 @@ Enigma Memory is a local-first AI Memory Passport. It gives you one canonical lo
4
4
 
5
5
  Start with the Memory Drive loop below — one install, one connect, then health and status verification. You do not need to understand relay, gateway, mesh, browser, desktop, hosted infrastructure, or the proof network before trying Enigma locally.
6
6
 
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.
7
+ Hosted cloud and BYOC operation are waitlist/operator-deploy only; they require real deployment credentials, domains, TLS, durable storage, KMS/secrets, monitoring, backups, and operator acceptance. The relay and gateway binaries included in the package are local bootstrap probes, not a live hosted service.
8
8
 
9
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.
10
10
 
@@ -20,21 +20,27 @@ Use Enigma as your private Memory Drive for AI: install once, connect the AI cli
20
20
 
21
21
  ```sh
22
22
  npm install -g enigma-memory
23
- enigma init
24
- enigma setup --client auto --connect-installed --overwrite
25
- enigma drive health
26
- enigma status
27
- enigma remember --text-file ./memory.txt
28
- enigma search --query "project context"
29
- enigma context --query "project context" --optimize
30
- enigma verify --export ./.enigma/export.json
23
+ enigma setup --bundle "$HOME/.enigma/bundle.json" --client auto --connect-installed --overwrite
24
+ echo "Keep all Q3 planning notes in the project-context tag." > memory.txt
25
+ enigma remember --bundle "$HOME/.enigma/bundle.json" --text-file memory.txt
26
+ enigma search --bundle "$HOME/.enigma/bundle.json" --query "Q3 planning"
27
+ enigma context --bundle "$HOME/.enigma/bundle.json" --query "Q3 planning" --out "$HOME/.enigma/context-pack.json"
28
+ enigma verify --export "$HOME/.enigma/export.json"
31
29
  ```
32
30
 
33
- `enigma init` is the credential-free first run: it creates the local `.enigma` workspace, bundle, and proof artifacts and emits public-safe JSON without provider or cloud credentials. `enigma setup --client auto --connect-installed --overwrite` then configures the drive and merges the `mcpServers.enigma` entry into every installed/config-present client it detects (Claude Desktop, Cursor, Kimi Code, VS Code/Cline, Roo, OpenCode, generic MCP). It skips clients that are not installed and never creates configs from scratch; preview with `--dry-run` first if you want to see which clients will be written. The same commands run on Windows PowerShell because the npm global install adds an `enigma.cmd` shim. Neither command prints raw memory plaintext.
31
+ Windows CMD:
34
32
 
35
- `enigma drive health` reports a SMART-style memory-drive health packet — freshness, duplicate rate, tombstone backlog, stale derived artifacts, receipt coverage, and connector health — computed from local metadata only, with no network calls or private payloads. It is part of the Memory Drive surface in this release; in any build where it is unavailable, `enigma status` and `enigma doctor` cover the same local passport counts, roots, and connector readiness.
33
+ ```cmd
34
+ npm install -g enigma-memory
35
+ enigma setup --bundle "%USERPROFILE%\.enigma\bundle.json" --client auto --connect-installed --overwrite
36
+ echo Keep all Q3 planning notes in the project-context tag.> memory.txt
37
+ enigma remember --bundle "%USERPROFILE%\.enigma\bundle.json" --text-file memory.txt
38
+ enigma search --bundle "%USERPROFILE%\.enigma\bundle.json" --query "Q3 planning"
39
+ enigma context --bundle "%USERPROFILE%\.enigma\bundle.json" --query "Q3 planning" --out "%USERPROFILE%\.enigma\context-pack.json"
40
+ enigma verify --export "%USERPROFILE%\.enigma\export.json"
41
+ ```
36
42
 
37
- `enigma status` shows passport counts, roots, owner display fields, and connector readiness. The local Enigma vault remains canonical. Provider-native memory is non-canonical and 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.
43
+ `enigma setup` is the credential-free first run: it creates the local `.enigma` workspace, bundle, proof artifacts, and a demo memory, then connects every installed/config-present client it detects (Claude Desktop, Cursor, Kimi Code, VS Code/Cline, Roo, OpenCode, generic MCP). It skips clients that are not installed and never creates configs from scratch; preview with `--dry-run` first if you want to see which clients will be written. If no clients are installed, setup still succeeds and the local CLI path works; use the copy-paste MCP snippets below to connect a client later, or run `enigma connect generic-mcp --dry-run` to preview a standalone snippet. The same commands run on Windows PowerShell via the `enigma.cmd` shim the npm global install adds. Neither command prints raw memory plaintext.
38
44
 
39
45
  ## Enigma Proof Network
40
46