enigma-memory 0.1.13 → 0.1.15

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 (32) hide show
  1. package/README.md +36 -17
  2. package/apps/cli/bin/enigma.mjs +3126 -2848
  3. package/deploy/docker-compose.local-production-simulation.yml +12 -10
  4. package/docs/benchmark-attestation-network.md +487 -487
  5. package/docs/benchmark-reproducibility.md +228 -227
  6. package/docs/demo-proof-network.md +275 -275
  7. package/docs/developer-ecosystem.md +223 -223
  8. package/docs/developer-proof-quickstart.md +325 -325
  9. package/docs/enigma-memory-ready-conformance.md +376 -376
  10. package/docs/hosted-cloud-product.md +10 -0
  11. package/docs/install-anywhere.md +34 -17
  12. package/docs/installers-and-desktop.md +9 -7
  13. package/docs/proof-network-build-notes.md +240 -240
  14. package/docs/proof-network.md +257 -257
  15. package/docs/sdk-api.md +324 -324
  16. package/docs/solana-devnet-acceptance.md +48 -0
  17. package/docs/solana-proof-rail.md +453 -453
  18. package/examples/ci/github-actions.yml +6 -8
  19. package/package.json +272 -265
  20. package/packages/mcp-server/src/index.js +1185 -1185
  21. package/packages/passport/src/index.js +9 -5
  22. package/scripts/build-benchmark-proof-release.mjs +391 -0
  23. package/scripts/build-goal-completion-audit.mjs +11 -5
  24. package/scripts/build-hosted-api-key-lifecycle.mjs +274 -274
  25. package/scripts/build-hosted-customer-lifecycle.mjs +456 -456
  26. package/scripts/build-installer-assets.mjs +389 -273
  27. package/scripts/build-production-handoff-packet.mjs +7 -6
  28. package/scripts/build-production-unblocker.mjs +409 -0
  29. package/scripts/build-proof-network-packet.mjs +213 -213
  30. package/scripts/release-audit.mjs +71 -2
  31. package/scripts/run-standard-memory-benchmarks.mjs +1070 -1070
  32. package/scripts/wait-for-backend-ready.mjs +4 -2
package/README.md CHANGED
@@ -2,18 +2,34 @@
2
2
 
3
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
- Start with the public test drive below. You do not need to understand relay, gateway, mesh, browser, desktop, or hosted infrastructure before trying Enigma locally.
5
+ Start with `enigma init --dry-run` below. You do not need to understand relay, gateway, mesh, browser, desktop, or hosted infrastructure before trying Enigma locally.
6
6
 
7
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.
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
 
11
- ## Public test drive: prove the local package path first
11
+ ## First run: install and inspect the safe local plan
12
12
 
13
- The fastest public test is the published npm package plus the local-only test drive:
13
+ The top public path is the published npm package plus the first-run planner:
14
14
 
15
15
  ```sh
16
16
  npm install -g enigma-memory
17
+ enigma init --dry-run
18
+ ```
19
+
20
+ `enigma init --dry-run` prints a public-safe JSON plan with exact next commands. It does not write local artifacts or third-party client configs, does not require provider credentials, hosted Enigma SaaS, Solana, or a browser extension, and states `provider_credentials_required:false`, `hosted_saas_live:false`, and `raw_memory_printed:false`.
21
+
22
+ When the plan looks right, create the local Memory Passport artifacts:
23
+
24
+ ```sh
25
+ enigma init --overwrite
26
+ ```
27
+
28
+ The execute path writes only local Enigma artifacts under the workspace `.enigma` path by default. It still does not write Claude, Cursor, Kimi, or other third-party app configs unless you explicitly add `--connect`.
29
+
30
+ Public demo path, preserved for reviewers who want the isolated proof/demo bundle:
31
+
32
+ ```sh
17
33
  enigma test-drive --overwrite
18
34
  ```
19
35
 
@@ -26,10 +42,10 @@ The test-drive output is a single public-safe JSON summary. It points to the loc
26
42
  When you are ready to connect real local clients that are already installed or already configured:
27
43
 
28
44
  ```sh
29
- enigma setup --connect-installed --overwrite
45
+ enigma init --connect --overwrite
30
46
  ```
31
47
 
32
- `--connect-installed` is the explicit client-config write path. It skips missing client configs instead of creating every default client config.
48
+ `--connect` is the explicit first-run client-config write path. With default client selection it skips missing client configs instead of creating every default client config.
33
49
 
34
50
  ## Enigma Proof Network
35
51
 
@@ -47,32 +63,33 @@ Prerequisites:
47
63
  - No database, package registry account, provider credential, or cloud credential for the local test-drive or setup paths
48
64
  - Git only when you choose the advanced source-checkout path
49
65
 
50
- 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.
66
+ Use Enigma as a one-time AI Memory Passport setup: install the package, inspect the local plan, create the local Enigma workspace once, then use the same memory/search/context/verify/connect loop from any supported client.
51
67
 
52
68
  ```sh
53
69
  npm install -g enigma-memory
54
- enigma setup --overwrite
70
+ enigma init --dry-run
71
+ enigma init --overwrite
55
72
  ```
56
73
 
57
- `enigma setup --overwrite` is the safe default for creating a regular local workspace after the test drive. It writes local Enigma artifacts under the workspace `.enigma` path and emits deterministic, public-safe JSON without printing raw memory plaintext. It does not write Claude, Cursor, Kimi, or other third-party app configs.
74
+ `enigma init --overwrite` is the safe default for creating a regular local workspace after reviewing the plan. It writes local Enigma artifacts under the workspace `.enigma` path and emits deterministic, public-safe JSON without printing raw memory plaintext. It does not write Claude, Cursor, Kimi, or other third-party app configs.
58
75
 
59
- To let setup detect installed or already-configured clients and show the connector plan without mutating client configs:
76
+ To let first-run setup detect installed or already-configured clients and show the connector plan without mutating client configs:
60
77
 
61
78
  ```sh
62
- enigma setup --client auto --overwrite
79
+ enigma init --client auto --dry-run
63
80
  ```
64
81
 
65
- `--client auto` selects clients found by connector detection and falls back to the default setup client list when none are present. The setup output lists which clients were selected, which were skipped, and why.
82
+ `--client auto` selects clients found by connector detection and falls back to the default setup client list when none are present. The init output lists which clients were selected, which were skipped, and why.
66
83
 
67
84
  Only when you are ready to explicitly write connector entries for installed/config-present clients:
68
85
 
69
86
  ```sh
70
- enigma setup --connect-installed --overwrite
87
+ enigma init --connect --overwrite
71
88
  ```
72
89
 
73
- `--connect-installed` implies auto client selection and is an explicit client-config write flag. It skips missing client configs instead of creating every default client config. Only explicit write flags mutate client configs. Existing explicit connector writes remain available through `enigma connect <client>` without `--dry-run`, and existing `enigma setup --write-connectors` behavior for explicit/default setup clients is unchanged; keep `--dry-run` while reviewing a single planned MCP entry.
90
+ `--connect` implies installed/config-present client selection when no explicit `--client` is supplied and is an explicit client-config write flag. It skips missing client configs instead of creating every default client config. Existing setup commands remain available: `enigma setup --overwrite`, `enigma setup --client auto --overwrite`, and `enigma setup --connect-installed --overwrite`. Existing explicit connector writes remain available through `enigma connect <client>` without `--dry-run`; keep `--dry-run` while reviewing a single planned MCP entry.
74
91
 
75
- After setup, use the same local vault from the CLI or connected clients:
92
+ After init or setup, use the same local vault from the CLI or connected clients:
76
93
 
77
94
  ```sh
78
95
  enigma remember --text-file ./memory.txt
@@ -82,6 +99,8 @@ enigma verify --export ./.enigma/export.json
82
99
  enigma connect claude-desktop --dry-run
83
100
  ```
84
101
 
102
+ `enigma context --query ...` automatically applies local relevance scoring; `--optimize` is still accepted when you want explicit optimizer evidence or token/cost bounds.
103
+
85
104
  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.
86
105
 
87
106
  One-off public test drive without a global install:
@@ -195,7 +214,7 @@ Supported connector profiles are:
195
214
  - `opencode`
196
215
  - `generic-mcp`
197
216
 
198
- After `enigma test-drive --overwrite` proves the local package path and `enigma setup --overwrite` creates a regular local workspace, preview a client connection before writing anything:
217
+ After `enigma init --dry-run` previews the local package path and `enigma init --overwrite` creates a regular local workspace, preview a client connection before writing anything:
199
218
 
200
219
  ```sh
201
220
  enigma connect claude-desktop --dry-run
@@ -204,9 +223,9 @@ enigma connect kimi-code --dry-run
204
223
  enigma connect generic-mcp --dry-run
205
224
  ```
206
225
 
207
- For the one-time setup flow, `enigma setup --client auto --overwrite` reports the installed/config-present clients that connector detection selected and the clients it skipped with reasons. It remains read-only for client configs. `enigma setup --connect-installed --overwrite` is the explicit setup-time write path for installed/config-present clients only; missing configs are skipped rather than created.
226
+ For the one-time setup flow, `enigma init --client auto --dry-run` reports the installed/config-present clients that connector detection selected and the clients it skipped with reasons. It remains read-only for client configs. `enigma init --connect --overwrite` is the explicit init-time write path for installed/config-present clients by default; missing configs are skipped rather than created. The older `enigma setup --client auto --overwrite` and `enigma setup --connect-installed --overwrite` commands remain available.
208
227
 
209
- Remove `--dry-run` from `enigma connect <client>` only after you are ready for Enigma to merge the `mcpServers.enigma` entry into that specific client config. The safe default setup command never writes third-party app configs.
228
+ Remove `--dry-run` from `enigma connect <client>` only after you are ready for Enigma to merge the `mcpServers.enigma` entry into that specific client config. The safe default init/setup command never writes third-party app configs.
210
229
 
211
230
  Manual MCP entry for Claude Desktop, Cursor, Kimi Code, or any generic MCP client:
212
231