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 +43 -35
- package/apps/cli/bin/enigma.mjs +662 -67
- package/docs/benchmark-reproducibility.md +122 -26
- package/docs/developer-ecosystem.md +85 -8
- package/docs/memory-benchmarks.md +41 -9
- package/docs/sdk-api.md +1 -1
- package/examples/ci/github-actions.yml +27 -1
- package/package.json +5 -1
- package/packages/mcp-server/src/index.js +1 -1
- package/scripts/build-installer-assets.mjs +1 -1
- package/scripts/download-standard-benchmarks.mjs +399 -0
- package/scripts/run-standard-memory-benchmarks.mjs +1070 -0
package/README.md
CHANGED
|
@@ -1,48 +1,41 @@
|
|
|
1
1
|
# Enigma
|
|
2
2
|
|
|
3
|
-
Enigma is a
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
35
|
-
enigma
|
|
36
|
-
enigma
|
|
37
|
-
enigma
|
|
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
|
|
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
|
|
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:
|
|
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 --
|
|
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 --
|
|
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
|
-
|
|
154
|
-
|
|
155
|
-
CLI connector commands:
|
|
146
|
+
After `enigma setup --overwrite`, preview a client connection before writing anything:
|
|
156
147
|
|
|
157
148
|
```sh
|
|
158
|
-
enigma
|
|
159
|
-
enigma
|
|
160
|
-
enigma connect
|
|
161
|
-
enigma connect
|
|
162
|
-
|
|
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 --
|
|
302
|
+
enigma verify --export ./.enigma/export.json
|
|
295
303
|
enigma boundary run --scenario committed_crossing
|
|
296
304
|
```
|
|
297
305
|
|