mnueron 0.5.0 → 0.6.1

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 (52) hide show
  1. package/INSTALL.md +125 -0
  2. package/LICENSE +28 -21
  3. package/NOTICE +164 -0
  4. package/README.md +443 -422
  5. package/dist/cli.js +114 -26
  6. package/dist/cli.js.map +1 -1
  7. package/dist/config.js +4 -1
  8. package/dist/config.js.map +1 -1
  9. package/dist/detectors/codex.js +138 -0
  10. package/dist/detectors/codex.js.map +1 -0
  11. package/dist/detectors/index.js +2 -0
  12. package/dist/detectors/index.js.map +1 -1
  13. package/dist/detectors/json_detector.js +1 -1
  14. package/dist/lib/context-engine/confidence.js +153 -0
  15. package/dist/lib/context-engine/confidence.js.map +1 -0
  16. package/dist/lib/context-engine/entities.js +179 -0
  17. package/dist/lib/context-engine/entities.js.map +1 -0
  18. package/dist/lib/context-engine/index.js +74 -0
  19. package/dist/lib/context-engine/index.js.map +1 -0
  20. package/dist/lib/context-engine/intent.js +139 -0
  21. package/dist/lib/context-engine/intent.js.map +1 -0
  22. package/dist/lib/context-engine/runbook-detector.js +206 -0
  23. package/dist/lib/context-engine/runbook-detector.js.map +1 -0
  24. package/dist/lib/date-anchors.js +351 -0
  25. package/dist/lib/date-anchors.js.map +1 -0
  26. package/dist/lib/temporal-intent.js +98 -0
  27. package/dist/lib/temporal-intent.js.map +1 -0
  28. package/dist/runbook/auto-extract.js +415 -0
  29. package/dist/runbook/auto-extract.js.map +1 -0
  30. package/dist/runbook/capture.js +214 -0
  31. package/dist/runbook/capture.js.map +1 -0
  32. package/dist/runbook/explain.js +154 -0
  33. package/dist/runbook/explain.js.map +1 -0
  34. package/dist/runbook/fingerprint.js +128 -0
  35. package/dist/runbook/fingerprint.js.map +1 -0
  36. package/dist/runbook/search.js +76 -0
  37. package/dist/runbook/search.js.map +1 -0
  38. package/dist/runbook/types.js +15 -0
  39. package/dist/runbook/types.js.map +1 -0
  40. package/dist/setup.js +32 -4
  41. package/dist/setup.js.map +1 -1
  42. package/dist/store/entity-extractor.js +69 -2
  43. package/dist/store/entity-extractor.js.map +1 -1
  44. package/dist/store/local-db.js +33 -0
  45. package/dist/store/local-db.js.map +1 -0
  46. package/dist/store/local.js +230 -229
  47. package/dist/store/local.js.map +1 -1
  48. package/dist/store/procedural.js +185 -0
  49. package/dist/store/procedural.js.map +1 -1
  50. package/dist/tools.js +222 -0
  51. package/dist/tools.js.map +1 -1
  52. package/package.json +63 -55
package/INSTALL.md CHANGED
@@ -66,6 +66,82 @@ Not detected:
66
66
  ✨ Done. Restart any running AI tool to load the memory plugin.
67
67
  ```
68
68
 
69
+ For the published package, the same flow is:
70
+
71
+ ```bash
72
+ npm install -g mnueron
73
+ mnueron setup
74
+ ```
75
+
76
+ Local mode is the default. No account, token, or cloud service is required, and
77
+ your memories stay on your machine. Hosted/cloud mode is an explicit opt-in for
78
+ users who want cross-machine sync or the hosted dashboard. When the user passes
79
+ a hosted token, the setup wizard writes the hosted environment variables into
80
+ each detected MCP config so Claude Desktop, Claude Code, Cursor, Windsurf, and
81
+ Cline all talk to the same cloud memory store:
82
+
83
+ ```bash
84
+ mnueron setup --hosted https://www.mnueron.com --token mnu_xxxxxxxxxxxx
85
+ ```
86
+
87
+ Use `--namespace mnueron` or set `MNUERON_NAMESPACE=mnueron` when you want a
88
+ general cross-project default namespace. Use project-specific namespaces such
89
+ as `elevizio` only when you intentionally want that separation.
90
+
91
+ ### Manual MCP config fallback
92
+
93
+ `mnueron setup` should be the normal path. Manual config is only needed when
94
+ an IDE has not created its config folder yet, its MCP format changed, or you
95
+ want to verify exactly what was written.
96
+
97
+ Use this MCP server block, replacing the token with your own raw token:
98
+
99
+ ```json
100
+ {
101
+ "mcpServers": {
102
+ "mnueron": {
103
+ "command": "node",
104
+ "args": [
105
+ "C:\\Mnueron\\Mnueron\\mnueron-v0.1.0\\mnueron\\dist\\index.js"
106
+ ],
107
+ "env": {
108
+ "MNUERON_API_URL": "https://www.mnueron.com",
109
+ "MNUERON_API_TOKEN": "mnu_xxxxxxxxxxxx",
110
+ "MNUERON_NAMESPACE": "mnueron"
111
+ }
112
+ }
113
+ }
114
+ }
115
+ ```
116
+
117
+ Common config locations:
118
+
119
+ | Tool | Config file |
120
+ | --- | --- |
121
+ | Claude Desktop, Windows regular install | `%APPDATA%\Claude\claude_desktop_config.json` |
122
+ | Claude Desktop, Windows Store install | `%LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude\claude_desktop_config.json` |
123
+ | Claude Desktop, macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
124
+ | Claude Code | `~/.claude/settings.json` |
125
+ | Codex | `~/.codex/config.toml` |
126
+ | Cursor | `~/.cursor/mcp.json` |
127
+ | Windsurf | `~/.codeium/windsurf/mcp_config.json` |
128
+ | Cline (VS Code) | `%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json` |
129
+ | Continue.dev | `~/.continue/config.json` or `~/.continue/config.yaml` |
130
+
131
+ For Claude Code, prefer the official CLI when available:
132
+
133
+ ```bash
134
+ claude mcp add --scope user \
135
+ -e MNUERON_API_URL="https://www.mnueron.com" \
136
+ -e MNUERON_API_TOKEN="mnu_xxxxxxxxxxxx" \
137
+ -e MNUERON_NAMESPACE="mnueron" \
138
+ mnueron -- node /absolute/path/to/mnueron/dist/index.js
139
+ ```
140
+
141
+ After any manual edit, fully restart the IDE. For Claude Code, exit the
142
+ current session with `/exit` and start a fresh one so it reloads the MCP tool
143
+ list.
144
+
69
145
  ### Step 3 — Verify it works
70
146
 
71
147
  Restart Claude Desktop (or any AI tool that was configured). In a new chat,
@@ -227,6 +303,55 @@ Removes mnueron from every tool's MCP config. Your local memories at
227
303
  - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
228
304
  - Look for a `mcpServers.mnueron` entry. If missing, re-run `setup`.
229
305
 
306
+ **Codex doesn't see the memory tools after setup.**
307
+
308
+ Codex reads `~/.codex/config.toml` **once at startup**, and on Windows it's an
309
+ Electron multi-process app — closing the window does not kill the main process.
310
+ That means a config edit (from `mnueron setup --only codex` or by hand) won't
311
+ be picked up until every Codex process is killed and Codex is launched fresh.
312
+
313
+ Quick check + force-restart on Windows (PowerShell):
314
+
315
+ ```powershell
316
+ # 1. Confirm mnueron is registered in the config.
317
+ Get-Content $HOME\.codex\config.toml | Select-String -Pattern "mnueron" -Context 0,6
318
+
319
+ # 2. Kill every Codex process — GUI shell AND CLI helper.
320
+ Get-Process | Where-Object { $_.ProcessName -ieq "codex" } | Stop-Process -Force
321
+
322
+ # 3. Verify nothing is left.
323
+ Get-Process | Where-Object { $_.ProcessName -ieq "codex" }
324
+
325
+ # 4. Relaunch Codex normally. In a new chat, ask: "what MCP tools are loaded?"
326
+ # The mnueron tools (memory_save, memory_recall, memory_namespaces, …)
327
+ # should appear.
328
+ ```
329
+
330
+ If the config block from step 1 looks right (`command = "…node.exe"`,
331
+ `args = ["…\\dist\\index.js"]`) but Codex still shows no mnueron tools after a
332
+ clean restart, check Codex's MCP log for spawn errors:
333
+
334
+ ```powershell
335
+ Get-ChildItem $HOME\.codex\log -Recurse -ErrorAction SilentlyContinue |
336
+ Sort-Object LastWriteTime -Descending | Select-Object -First 1 |
337
+ Get-Content -Tail 60
338
+ ```
339
+
340
+ You should see a line like `[mnueron] mode=local ns=default db=…` — that's the
341
+ mnueron MCP server starting cleanly on stderr. If you see a stack trace
342
+ instead, that's the real failure (usually a Node version older than 20, a
343
+ broken `better-sqlite3` native binding, or a typo in the `args` path).
344
+
345
+ To verify the mnueron MCP server itself is healthy independent of Codex, send
346
+ it an `initialize` JSON-RPC frame on stdin:
347
+
348
+ ```powershell
349
+ $req = '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"probe","version":"0"}}}'
350
+ $req | node "C:\Path\To\mnueron\dist\index.js" 2>$env:TEMP\mnueron.err
351
+ ```
352
+
353
+ A healthy server prints a JSON object with `"serverInfo":{"name":"mnueron","version":"…"}` and writes only the banner to `$env:TEMP\mnueron.err`.
354
+
230
355
  **`mnueron setup` says "tool not detected" but the tool is installed.**
231
356
  - Run the tool once before setup so it creates its config directory.
232
357
  - For Cursor, the detector looks for `~/.cursor/` — open Cursor once if it's a fresh install.
package/LICENSE CHANGED
@@ -1,21 +1,28 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 MNUERON contributors
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mnueron
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, EXCEPT for the contents of the
14
+ `server/` and `dashboard-web/` directories, which are governed by
15
+ [`server/LICENSE`](server/LICENSE) (FSL-1.1-Apache-2.0) and take precedence
16
+ within those directories.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+
26
+ ----------------------------------------------------------------------
27
+ This repository uses a split license model. See LICENSE-OVERVIEW.md for the
28
+ plain-English version and NOTICE for trademark and hosted-platform carve-outs.
package/NOTICE ADDED
@@ -0,0 +1,164 @@
1
+ Mnueron
2
+ Copyright 2026 Mnueron
3
+
4
+ This repository uses a split license model.
5
+
6
+ Default (everything not under server/ or dashboard-web/):
7
+ MIT License — see LICENSE
8
+
9
+ Hosted backend (server/ and future dashboard-web/):
10
+ Functional Source License 1.1, Apache 2.0 Future License (FSL-1.1-Apache-2.0)
11
+ See server/LICENSE
12
+ Each version auto-converts to Apache 2.0 two years after release.
13
+
14
+ ----------------------------------------------------------------------
15
+ Mnueron Additional Notices
16
+ ----------------------------------------------------------------------
17
+
18
+ Mnueron is an open-source memory infrastructure platform designed to
19
+ provide persistent memory, context synchronization, semantic retrieval,
20
+ and workflow intelligence for AI systems, agents, IDEs, and applications.
21
+
22
+ The following are NOT granted under either license in this repository:
23
+
24
+ - The Mnueron name
25
+ - The Mnueron logo
26
+ - Mnueron branding assets
27
+ - Marketing materials
28
+ - Website design/assets
29
+ - Hosted Mnueron cloud services
30
+ - Proprietary SaaS infrastructure
31
+ - Commercial hosted synchronization platform
32
+
33
+ "Mnueron", the Mnueron logo, and related branding are trademarks
34
+ or registered trademarks of Mnueron.
35
+
36
+ You may not use the Mnueron name, logo, or branding in a manner
37
+ that implies endorsement, affiliation, or official association
38
+ without prior written permission.
39
+
40
+ ----------------------------------------------------------------------
41
+ Hosted-Features Carve-Out
42
+ ----------------------------------------------------------------------
43
+
44
+ Some features that are conceptually part of the hosted Mnueron product
45
+ surface may, for engineering reasons, touch files outside server/.
46
+ For clarity, contributions that extend or modify the following
47
+ hosted-product features are accepted under FSL-1.1-Apache-2.0 terms
48
+ even when they live in client directories:
49
+
50
+ - Multi-tenant plumbing (org scoping, tenant isolation helpers)
51
+ - Row-Level Security (RLS) aware client patches
52
+ - Billing hooks and Stripe integration glue
53
+ - Audit log emitters that target the hosted backend
54
+ - SSO / SAML / SCIM integration code that depends on the hosted
55
+ identity service
56
+ - Telemetry on the hosted edge (rate limiting, quota enforcement,
57
+ hosted-tier metrics)
58
+ - Hosted-only dashboard surfaces (when dashboard-web/ is built)
59
+
60
+ This carve-out is narrow. If you are touching files under src/, sdks/,
61
+ extension/, dashboard/, examples/, or scripts/ for any reason that is
62
+ not directly implementing or supporting one of the items above, your
63
+ contribution is under MIT.
64
+
65
+ Contributors retain copyright to their respective contributions.
66
+
67
+ By submitting a contribution to this repository, you agree that:
68
+
69
+ 1. Your contribution is licensed under MIT if it lives in client
70
+ directories, OR FSL-1.1-Apache-2.0 if it lives in server/ /
71
+ dashboard-web/ or extends a hosted-features carve-out item above.
72
+ 2. You have the legal right to submit the contribution.
73
+ 3. You grant Mnueron and its users the rights described under the
74
+ applicable license.
75
+
76
+ See CLA.md for the formal Contributor License Agreement text.
77
+
78
+ ----------------------------------------------------------------------
79
+ Privacy & Data Usage Notice
80
+ ----------------------------------------------------------------------
81
+
82
+ Mnueron supports both local-only and hosted cloud modes.
83
+
84
+ Local Mode:
85
+ - Can operate entirely on the user's machine
86
+ - May store memories locally using local databases
87
+ - Does not require cloud synchronization
88
+
89
+ Hosted Mode:
90
+ - May synchronize memories across devices
91
+ - May process encrypted or user-authorized data
92
+ - May use third-party infrastructure providers
93
+
94
+ Mnueron does NOT claim ownership of user memories,
95
+ documents, prompts, or synchronized content.
96
+
97
+ Users are responsible for ensuring they have the rights
98
+ to process, store, or synchronize any content used
99
+ with Mnueron.
100
+
101
+ ----------------------------------------------------------------------
102
+ Third-Party Providers
103
+ ----------------------------------------------------------------------
104
+
105
+ Mnueron may integrate with third-party AI providers,
106
+ storage systems, databases, authentication providers,
107
+ or APIs including but not limited to:
108
+
109
+ - OpenAI
110
+ - Anthropic
111
+ - Google
112
+ - Microsoft
113
+ - AWS
114
+ - Supabase
115
+ - PostgreSQL
116
+ - Vector database providers
117
+ - IDE integrations
118
+ - Browser integrations
119
+
120
+ Use of those services is subject to their respective
121
+ terms and privacy policies.
122
+
123
+ ----------------------------------------------------------------------
124
+ Disclaimer
125
+ ----------------------------------------------------------------------
126
+
127
+ Mnueron is provided "AS IS", without warranty of any kind.
128
+
129
+ The authors and contributors shall not be liable for:
130
+
131
+ - Data loss
132
+ - AI-generated inaccuracies
133
+ - Context corruption
134
+ - Security incidents
135
+ - Misuse of synchronized memories
136
+ - Workflow interruptions
137
+ - Financial or business damages
138
+ - Third-party service failures
139
+
140
+ Users are responsible for validating outputs generated
141
+ through AI systems connected to Mnueron.
142
+
143
+ ----------------------------------------------------------------------
144
+ Website & Hosted Platform
145
+ ----------------------------------------------------------------------
146
+
147
+ Neither the MIT license (root LICENSE) nor the FSL (server/LICENSE)
148
+ applies to the running hosted Mnueron platform, cloud synchronization
149
+ service, website infrastructure, billing systems, analytics systems,
150
+ or proprietary backend services. Those operate under separate
151
+ commercial terms.
152
+
153
+ ----------------------------------------------------------------------
154
+ Official Project
155
+ ----------------------------------------------------------------------
156
+
157
+ Official Website:
158
+ https://www.mnueron.com
159
+
160
+ Official Repository:
161
+ https://github.com/randi2160/mnueron
162
+
163
+ Tagline:
164
+ "Memory for every AI."