@mclean-capital/neura 1.10.2 → 2.1.0

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 (74) hide show
  1. package/README.md +75 -6
  2. package/core/server.bundled.mjs +71487 -0
  3. package/core/server.bundled.mjs.map +7 -0
  4. package/core/version.txt +1 -0
  5. package/dist/commands/install.d.ts +13 -1
  6. package/dist/commands/install.d.ts.map +1 -1
  7. package/dist/commands/install.js +80 -52
  8. package/dist/commands/install.js.map +1 -1
  9. package/dist/commands/update.d.ts +6 -0
  10. package/dist/commands/update.d.ts.map +1 -1
  11. package/dist/commands/update.js +125 -16
  12. package/dist/commands/update.js.map +1 -1
  13. package/dist/download.d.ts +28 -22
  14. package/dist/download.d.ts.map +1 -1
  15. package/dist/download.js +40 -113
  16. package/dist/download.js.map +1 -1
  17. package/dist/index.js +2 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/service/detect.js +1 -1
  20. package/dist/service/detect.js.map +1 -1
  21. package/dist/service/windows.d.ts +116 -0
  22. package/dist/service/windows.d.ts.map +1 -1
  23. package/dist/service/windows.js +303 -60
  24. package/dist/service/windows.js.map +1 -1
  25. package/dist/update-check.d.ts +6 -3
  26. package/dist/update-check.d.ts.map +1 -1
  27. package/dist/update-check.js +48 -16
  28. package/dist/update-check.js.map +1 -1
  29. package/package.json +6 -2
  30. package/stores/backup-queries.d.ts +8 -0
  31. package/stores/backup-queries.d.ts.map +1 -0
  32. package/stores/backup-queries.js +262 -0
  33. package/stores/backup-queries.js.map +1 -0
  34. package/stores/entity-queries.d.ts +14 -0
  35. package/stores/entity-queries.d.ts.map +1 -0
  36. package/stores/entity-queries.js +156 -0
  37. package/stores/entity-queries.js.map +1 -0
  38. package/stores/index.d.ts +2 -0
  39. package/stores/index.d.ts.map +1 -0
  40. package/stores/index.js +5901 -0
  41. package/stores/index.js.map +7 -0
  42. package/stores/mappers.d.ts +59 -0
  43. package/stores/mappers.d.ts.map +1 -0
  44. package/stores/mappers.js +70 -0
  45. package/stores/mappers.js.map +1 -0
  46. package/stores/memory-queries.d.ts +31 -0
  47. package/stores/memory-queries.d.ts.map +1 -0
  48. package/stores/memory-queries.js +275 -0
  49. package/stores/memory-queries.js.map +1 -0
  50. package/stores/migrations.d.ts +4 -0
  51. package/stores/migrations.d.ts.map +1 -0
  52. package/stores/migrations.js +231 -0
  53. package/stores/migrations.js.map +1 -0
  54. package/stores/package.json +3 -0
  55. package/stores/pglite-store.d.ts +83 -0
  56. package/stores/pglite-store.d.ts.map +1 -0
  57. package/stores/pglite-store.js +183 -0
  58. package/stores/pglite-store.js.map +1 -0
  59. package/stores/pglite-store.test.d.ts +2 -0
  60. package/stores/pglite-store.test.d.ts.map +1 -0
  61. package/stores/pglite-store.test.js +725 -0
  62. package/stores/pglite-store.test.js.map +1 -0
  63. package/stores/search-queries.d.ts +11 -0
  64. package/stores/search-queries.d.ts.map +1 -0
  65. package/stores/search-queries.js +116 -0
  66. package/stores/search-queries.js.map +1 -0
  67. package/stores/session-queries.d.ts +8 -0
  68. package/stores/session-queries.d.ts.map +1 -0
  69. package/stores/session-queries.js +48 -0
  70. package/stores/session-queries.js.map +1 -0
  71. package/stores/work-item-queries.d.ts +17 -0
  72. package/stores/work-item-queries.d.ts.map +1 -0
  73. package/stores/work-item-queries.js +85 -0
  74. package/stores/work-item-queries.js.map +1 -0
package/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # @mclean-capital/neura
2
2
 
3
- > Neura CLI install, manage, and talk to the Neura AI assistant from your terminal.
3
+ > **A voice-first, proactive AI operating system.** Say the wake word and talk to Neura from any device no click-to-start, no tap-to-speak.
4
4
 
5
- Neura is a proactive, autonomous AI operating system. It combines real-time voice conversation, continuous visual understanding, and autonomous worker agents. This CLI installs and manages the Neura core service, and also acts as a full client via `neura chat` and `neura listen`.
5
+ Neura is a self-hosted AI assistant that runs as a persistent background service on your machine. It's always listening for the wake word via on-device ONNX inference (zero cloud cost while passive), streams voice conversations via Grok's Eve voice when active, and continuously watches your camera or screen through a Gemini Live vision watcher. It remembers what you've talked about across sessions, manages your tasks, and proactively reminds you about deadlines.
6
+
7
+ This package is the full Neura distribution: **the CLI, the core service, and all runtime dependencies** ship together as one npm install. No separate downloads, no matching platform tarballs — one command installs everything.
6
8
 
7
9
  ## Install
8
10
 
@@ -10,17 +12,84 @@ Neura is a proactive, autonomous AI operating system. It combines real-time voic
10
12
  npm install -g @mclean-capital/neura
11
13
  ```
12
14
 
13
- Requires Node.js >= 22.
15
+ This fetches the CLI **plus** the bundled core service and its native dependencies (`onnxruntime-node` for wake-word detection, `@electric-sql/pglite` for local storage). If `onnxruntime-node` fails to install, the whole install fails loudly — voice is a required feature, not an optional one.
16
+
17
+ Requires **Node.js >= 22**.
18
+
19
+ ### Supported platforms
20
+
21
+ | Platform | Supported |
22
+ | ----------------------------------- | :-------: |
23
+ | macOS — Apple Silicon (M1/M2/M3/M4) | Yes |
24
+ | macOS — Intel (x64) | **No** |
25
+ | Windows — x64 / arm64 | Yes |
26
+ | Linux — x64 / arm64 | Yes |
27
+
28
+ **Intel Macs are not supported.** Neura's wake-word detector runs on
29
+ `onnxruntime-node`, and upstream dropped Intel Mac (`darwin/x64`) binaries
30
+ starting with version 1.24. Because voice is a required feature — not an
31
+ optional one — `npm install -g @mclean-capital/neura` will appear to
32
+ succeed but core will crash at startup with
33
+ `Cannot find module '../bin/napi-v6/darwin/x64/onnxruntime_binding.node'`.
34
+
35
+ If you're on an Apple Silicon Mac but see the `darwin/x64` error, you've
36
+ installed the Intel build of Node under Rosetta. Reinstall Node as arm64:
37
+
38
+ ```bash
39
+ nvm uninstall <version>
40
+ arch -arm64 nvm install <version>
41
+ ```
42
+
43
+ For true Intel Macs, there's no workaround short of self-building against
44
+ an older onnxruntime-node — we recommend running Neura on a supported
45
+ machine instead.
14
46
 
15
47
  ## Quick start
16
48
 
17
49
  ```bash
18
50
  neura install # interactive setup: API keys, auto-port, service registration
19
- neura start # start the core service
20
- neura chat # text chat with Neura from your terminal
21
- neura listen # voice chat (mic + speaker)
51
+ # (auto-starts the core service)
52
+ neura listen # voice chat (mic + speaker, wake-word ready)
53
+ # OR:
54
+ neura chat # text chat from your terminal
55
+ ```
56
+
57
+ After `neura install` completes, core runs as a background OS service — launchd on macOS, systemd on Linux, a Scheduled Task (or Startup folder shim as fallback) on Windows. Say your wake word — by default **"jarvis"** — and Neura activates a voice session. Stop talking for 5 minutes and it drops back to passive listening.
58
+
59
+ ### Windows notes
60
+
61
+ Windows doesn't have a clean "run as background service" path for a voice-first assistant. A proper Windows Service (via `sc.exe`, nssm, or WinSW) runs in **Session 0**, which is isolated from every interactive user session and cannot access the user's microphone or audio devices — a hard blocker for wake-word detection. So on Windows we use a per-user **Scheduled Task** instead, registered by `schtasks.exe` with `/SC ONLOGON /RL LIMITED`. No UAC prompt, no admin rights, no bundled binaries.
62
+
63
+ If `schtasks /Create` refuses (some corporate / GPO-locked Windows configurations require elevation even for user-level tasks), `neura install` transparently falls back to a `neura-core.cmd` launcher in `%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\`. The core still starts on next logon — `neura install` will tell you which path was taken so you know what to expect.
64
+
65
+ Trade-offs you should know about on Windows:
66
+
67
+ - **The core only runs while you're logged in.** When you log out, it stops; when you log back in, Windows starts it again. There's no pre-login boot. If you need 24/7 availability, use macOS or Linux.
68
+ - **Status telemetry is thinner** than a real service. `neura status` reports up/down by pid, but there's no Windows event-log integration or automatic crash-restart policy beyond "start fresh on next logon".
69
+ - **The Task Scheduler path is manageable from the GUI.** Open Task Scheduler and look for `neura-core` under the top-level Task Scheduler Library. If you took the Startup folder fallback, the shim is at the path above — delete the file to disable.
70
+
71
+ `neura config set` works normally on Windows. The launcher shim only exports `NEURA_HOME`, so the core re-reads `config.json` on every restart — same behavior as macOS and Linux. Changes take effect on the next `neura restart` without needing `neura install`.
72
+
73
+ ## Update
74
+
75
+ ```bash
76
+ neura update
77
+ # equivalent to: npm install -g @mclean-capital/neura@latest && neura restart
22
78
  ```
23
79
 
80
+ The `neura update` command runs `npm install -g @mclean-capital/neura@latest` and restarts the core service so the new version takes effect.
81
+
82
+ ### Upgrading from v1.10.x or earlier
83
+
84
+ v1.11.0 moved the core service bundle from a separate GitHub release tarball into the CLI's npm package itself. Older CLIs expect the tarball layout and **cannot self-update to v1.11.0**. If you're on v1.10.x and `neura update` prints a 404 or "Download failed" error, bootstrap manually:
85
+
86
+ ```bash
87
+ npm install -g @mclean-capital/neura@latest
88
+ neura install # rewrites service file to point at the new bundled core path
89
+ ```
90
+
91
+ After this one-time step, `neura update` works normally for all future upgrades.
92
+
24
93
  ## Commands
25
94
 
26
95
  ### Setup & service lifecycle