gnosys 5.7.0 → 5.8.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 (67) hide show
  1. package/README.md +29 -2
  2. package/dist/cli.js +249 -117
  3. package/dist/cli.js.map +1 -1
  4. package/dist/index.js +167 -25
  5. package/dist/index.js.map +1 -1
  6. package/dist/lib/ask.d.ts.map +1 -1
  7. package/dist/lib/ask.js +20 -4
  8. package/dist/lib/ask.js.map +1 -1
  9. package/dist/lib/chat/SlashPalette.d.ts +34 -0
  10. package/dist/lib/chat/SlashPalette.d.ts.map +1 -0
  11. package/dist/lib/chat/SlashPalette.js +49 -0
  12. package/dist/lib/chat/SlashPalette.js.map +1 -0
  13. package/dist/lib/chat/index.d.ts.map +1 -1
  14. package/dist/lib/chat/index.js +6 -4
  15. package/dist/lib/chat/index.js.map +1 -1
  16. package/dist/lib/chat/llmTurn.d.ts.map +1 -1
  17. package/dist/lib/chat/llmTurn.js +4 -1
  18. package/dist/lib/chat/llmTurn.js.map +1 -1
  19. package/dist/lib/chat/render.d.ts.map +1 -1
  20. package/dist/lib/chat/render.js +91 -10
  21. package/dist/lib/chat/render.js.map +1 -1
  22. package/dist/lib/config.d.ts +25 -1
  23. package/dist/lib/config.d.ts.map +1 -1
  24. package/dist/lib/config.js +30 -0
  25. package/dist/lib/config.js.map +1 -1
  26. package/dist/lib/db.d.ts +21 -0
  27. package/dist/lib/db.d.ts.map +1 -1
  28. package/dist/lib/db.js +44 -17
  29. package/dist/lib/db.js.map +1 -1
  30. package/dist/lib/heartbeat.d.ts +31 -0
  31. package/dist/lib/heartbeat.d.ts.map +1 -0
  32. package/dist/lib/heartbeat.js +91 -0
  33. package/dist/lib/heartbeat.js.map +1 -0
  34. package/dist/lib/idFormat.d.ts +41 -0
  35. package/dist/lib/idFormat.d.ts.map +1 -0
  36. package/dist/lib/idFormat.js +66 -0
  37. package/dist/lib/idFormat.js.map +1 -0
  38. package/dist/lib/import.d.ts.map +1 -1
  39. package/dist/lib/import.js +2 -1
  40. package/dist/lib/import.js.map +1 -1
  41. package/dist/lib/ingest.d.ts +7 -1
  42. package/dist/lib/ingest.d.ts.map +1 -1
  43. package/dist/lib/ingest.js +23 -4
  44. package/dist/lib/ingest.js.map +1 -1
  45. package/dist/lib/llm.d.ts +1 -1
  46. package/dist/lib/llm.d.ts.map +1 -1
  47. package/dist/lib/llm.js.map +1 -1
  48. package/dist/lib/progress.d.ts +54 -0
  49. package/dist/lib/progress.d.ts.map +1 -0
  50. package/dist/lib/progress.js +92 -0
  51. package/dist/lib/progress.js.map +1 -0
  52. package/dist/lib/remote.d.ts +14 -1
  53. package/dist/lib/remote.d.ts.map +1 -1
  54. package/dist/lib/remote.js +75 -28
  55. package/dist/lib/remote.js.map +1 -1
  56. package/dist/lib/setup/sections/routing.d.ts.map +1 -1
  57. package/dist/lib/setup/sections/routing.js +4 -2
  58. package/dist/lib/setup/sections/routing.js.map +1 -1
  59. package/dist/lib/setup.d.ts +5 -0
  60. package/dist/lib/setup.d.ts.map +1 -1
  61. package/dist/lib/setup.js +127 -0
  62. package/dist/lib/setup.js.map +1 -1
  63. package/dist/lib/upgrade.d.ts +38 -0
  64. package/dist/lib/upgrade.d.ts.map +1 -0
  65. package/dist/lib/upgrade.js +61 -0
  66. package/dist/lib/upgrade.js.map +1 -0
  67. package/package.json +1 -1
package/README.md CHANGED
@@ -80,7 +80,7 @@ gnosys recall "database selection"
80
80
 
81
81
  > **Postinstall hook:** After `npm install -g gnosys`, a postinstall script automatically runs `gnosys setup` if no configuration is detected, so first-time users are guided through provider and IDE setup immediately.
82
82
 
83
- > **Multi-machine?** Set `GNOSYS_GLOBAL` to a cloud-synced folder (iCloud Drive, Dropbox, OneDrive) and both machines share the same brain. After updating, run `gnosys upgrade` — it re-syncs all projects, regenerates agent rules, and warns other machines to upgrade too. See the [User Guide — Installation & Setup](https://gnosys.ai/guide.html#guide-installation) for the full walkthrough, memory scopes, and multi-machine setup.
83
+ > **Multi-machine?** Set `GNOSYS_GLOBAL` to a cloud-synced folder (iCloud Drive, Dropbox, OneDrive) and both machines share the same brain. To update: run `gnosys upgrade` — it installs the latest gnosys, signals any running MCP servers to restart cleanly, and prompts to run `gnosys setup sync-projects` afterwards (re-syncs all projects, regenerates agent rules, warns other machines to upgrade). See the [User Guide — Installation & Setup](https://gnosys.ai/guide.html#guide-installation) for the full walkthrough, memory scopes, and multi-machine setup.
84
84
 
85
85
  ### Agent / Helper Library
86
86
 
@@ -109,6 +109,8 @@ gnosys chat --search <query> # full-text search across session logs
109
109
 
110
110
  **Free-text or slash commands.** "remember that flag default is OFF" works the same as `/remember flag default is OFF`. The TUI also recognizes "what did we decide about ULIDs?" → `/recall`, "thanks, that's all" → `/quit`. Destructive intents always confirm; non-destructive ones auto-accept after 5 confirmations of the same pattern.
111
111
 
112
+ **Slash-command palette (v5.8.0).** Type `/` at column 0 → filterable popup of every chat command appears. Arrow keys navigate, Tab autocompletes the highlighted command into the input, Esc dismisses. Paste detection: when input has newlines or exceeds 200 chars, a compact "[paste: N lines, M chars]" preview surfaces above the input so the buffer stays readable.
113
+
112
114
  **24 slash commands** across reading, recall, writing, focus, and polish — type `/help` inside the TUI for the full list. Highlights:
113
115
 
114
116
  - `/pin <id>`, `/scope`, `/threshold`, `/recall <q>` — tune what shows up in context
@@ -322,6 +324,8 @@ gnosys setup # full wizard (provider, models, IDE, remote sync, dream)
322
324
  gnosys setup models # LLM provider + model only
323
325
  gnosys setup remote # multi-machine sync (NAS/shared drive)
324
326
  gnosys setup dream # Dream Mode designation, schedule, sub-tasks
327
+ gnosys setup chat # chat TUI: provider/model, recall, tools, system prompt (v5.8.0)
328
+ gnosys setup routing # per-task LLM routing (structuring/synthesis/chat/vision/transcription)
325
329
  ```
326
330
 
327
331
  ### Dream Mode setup (v5.4.2+)
@@ -331,7 +335,7 @@ Dream Mode is the idle-time consolidation engine — confidence decay, summary g
331
335
  - Run `gnosys setup dream` on the machine you want to host dream cycles.
332
336
  - The wizard validates your provider/model with a live API probe before saving.
333
337
  - Other machines stay quiet — they see the designation in the central DB and skip the scheduler.
334
- - `gnosys dream log` shows recent runs; `gnosys dashboard` has a `DREAM HEALTH` section with last-run timestamp, designated machine, and consecutive-failure counter.
338
+ - `gnosys dream log` shows recent runs; `gnosys status --system` has a `DREAM HEALTH` section with last-run timestamp, designated machine, and consecutive-failure counter.
335
339
  - If the designated machine's LLM provider becomes unreachable, you'll see warnings at three layers: in audit log entries (`dream_provider_unreachable`), as stderr at MCP startup, and as a desktop notification after 3 consecutive failures.
336
340
 
337
341
  ### Removed in v5.4.2
@@ -345,6 +349,29 @@ The following commands were removed in favor of the canonical `gnosys setup <thi
345
349
 
346
350
  `gnosys remote push|pull|sync|status` remain unchanged — only `configure` moved.
347
351
 
352
+ ### Removed / renamed in v5.7.1
353
+
354
+ | Removed / renamed | Use instead |
355
+ |---|---|
356
+ | `gnosys dashboard` | `gnosys status --system` |
357
+ | `gnosys portfolio` | `gnosys status --projects` (or `--web` for HTML) |
358
+ | `gnosys upgrade` (old behaviour) | `gnosys setup sync-projects` |
359
+ | `gnosys status --global` | `gnosys status --projects` (alias kept) |
360
+
361
+ `gnosys upgrade` is now `npm install -g gnosys@latest` + a marker that
362
+ tells running MCP servers to exit-and-respawn against the new global
363
+ binary. Run it on each machine.
364
+
365
+ ### Behaviour changes in v5.8.0
366
+
367
+ | What | Then | Now |
368
+ |---|---|---|
369
+ | `gnosys_sync` MCP tool | Always wrote a `GNOSYS:START/END` block into `CLAUDE.md` (a tracked file) | Inert by default — returns the block as text only. Pass `commit_to_disk: true` to actually write. |
370
+ | `gnosys_preference_set/delete` MCP success messages | Suggested "Run `gnosys_sync` to update agent rules" | No suggestion — SessionStart hook (`gnosys recall`) injects updated context next session. |
371
+ | `gnosys_add` / `gnosys_commit_context` when project's `gnosys.json` has no `llm` block | Failed with "set ANTHROPIC_API_KEY", ignoring the global xAI/OpenAI/etc. config | Resolves the LLM against the merged project+global config — falls back to the user's global provider. |
372
+ | Chat TUI input | Cleared before user turn appeared (visible glitch) | Both happen in the same render frame. |
373
+ | `gnosys --help`, `gnosys list`, etc. | Loaded `@huggingface/transformers` (80MB) every invocation | Heavy modules lazy-load on actual use (reindex, recall, chat, bootstrap, import). |
374
+
348
375
  ---
349
376
 
350
377
  ### Manual config (if you prefer)