gnosys 5.5.0 → 5.7.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 (99) hide show
  1. package/README.md +44 -0
  2. package/dist/cli.js +959 -438
  3. package/dist/cli.js.map +1 -1
  4. package/dist/lib/audit.d.ts +13 -0
  5. package/dist/lib/audit.d.ts.map +1 -1
  6. package/dist/lib/audit.js +42 -0
  7. package/dist/lib/audit.js.map +1 -1
  8. package/dist/lib/chat/choose.d.ts +75 -0
  9. package/dist/lib/chat/choose.d.ts.map +1 -0
  10. package/dist/lib/chat/choose.js +146 -0
  11. package/dist/lib/chat/choose.js.map +1 -0
  12. package/dist/lib/chat/commands.d.ts +96 -0
  13. package/dist/lib/chat/commands.d.ts.map +1 -0
  14. package/dist/lib/chat/commands.js +367 -0
  15. package/dist/lib/chat/commands.js.map +1 -0
  16. package/dist/lib/chat/focus.d.ts +70 -0
  17. package/dist/lib/chat/focus.d.ts.map +1 -0
  18. package/dist/lib/chat/focus.js +120 -0
  19. package/dist/lib/chat/focus.js.map +1 -0
  20. package/dist/lib/chat/index.d.ts +32 -0
  21. package/dist/lib/chat/index.d.ts.map +1 -0
  22. package/dist/lib/chat/index.js +151 -0
  23. package/dist/lib/chat/index.js.map +1 -0
  24. package/dist/lib/chat/intent.d.ts +100 -0
  25. package/dist/lib/chat/intent.d.ts.map +1 -0
  26. package/dist/lib/chat/intent.js +192 -0
  27. package/dist/lib/chat/intent.js.map +1 -0
  28. package/dist/lib/chat/llmTurn.d.ts +55 -0
  29. package/dist/lib/chat/llmTurn.d.ts.map +1 -0
  30. package/dist/lib/chat/llmTurn.js +103 -0
  31. package/dist/lib/chat/llmTurn.js.map +1 -0
  32. package/dist/lib/chat/recall.d.ts +58 -0
  33. package/dist/lib/chat/recall.d.ts.map +1 -0
  34. package/dist/lib/chat/recall.js +109 -0
  35. package/dist/lib/chat/recall.js.map +1 -0
  36. package/dist/lib/chat/render.d.ts +30 -0
  37. package/dist/lib/chat/render.d.ts.map +1 -0
  38. package/dist/lib/chat/render.js +755 -0
  39. package/dist/lib/chat/render.js.map +1 -0
  40. package/dist/lib/chat/session.d.ts +121 -0
  41. package/dist/lib/chat/session.d.ts.map +1 -0
  42. package/dist/lib/chat/session.js +148 -0
  43. package/dist/lib/chat/session.js.map +1 -0
  44. package/dist/lib/chat/toolFence.d.ts +54 -0
  45. package/dist/lib/chat/toolFence.d.ts.map +1 -0
  46. package/dist/lib/chat/toolFence.js +90 -0
  47. package/dist/lib/chat/toolFence.js.map +1 -0
  48. package/dist/lib/chat/tools.d.ts +48 -0
  49. package/dist/lib/chat/tools.d.ts.map +1 -0
  50. package/dist/lib/chat/tools.js +338 -0
  51. package/dist/lib/chat/tools.js.map +1 -0
  52. package/dist/lib/chat/types.d.ts +42 -0
  53. package/dist/lib/chat/types.d.ts.map +1 -0
  54. package/dist/lib/chat/types.js +6 -0
  55. package/dist/lib/chat/types.js.map +1 -0
  56. package/dist/lib/chat/write.d.ts +66 -0
  57. package/dist/lib/chat/write.d.ts.map +1 -0
  58. package/dist/lib/chat/write.js +203 -0
  59. package/dist/lib/chat/write.js.map +1 -0
  60. package/dist/lib/db.d.ts +41 -1
  61. package/dist/lib/db.d.ts.map +1 -1
  62. package/dist/lib/db.js +136 -28
  63. package/dist/lib/db.js.map +1 -1
  64. package/dist/lib/exportProject.d.ts +51 -0
  65. package/dist/lib/exportProject.d.ts.map +1 -0
  66. package/dist/lib/exportProject.js +72 -0
  67. package/dist/lib/exportProject.js.map +1 -0
  68. package/dist/lib/importProject.d.ts +35 -0
  69. package/dist/lib/importProject.d.ts.map +1 -0
  70. package/dist/lib/importProject.js +135 -0
  71. package/dist/lib/importProject.js.map +1 -0
  72. package/dist/lib/remote.d.ts +23 -0
  73. package/dist/lib/remote.d.ts.map +1 -1
  74. package/dist/lib/remote.js +88 -0
  75. package/dist/lib/remote.js.map +1 -1
  76. package/dist/lib/remoteWizard.d.ts.map +1 -1
  77. package/dist/lib/remoteWizard.js +13 -17
  78. package/dist/lib/remoteWizard.js.map +1 -1
  79. package/dist/lib/setup/sections/ides.d.ts +20 -0
  80. package/dist/lib/setup/sections/ides.d.ts.map +1 -0
  81. package/dist/lib/setup/sections/ides.js +124 -0
  82. package/dist/lib/setup/sections/ides.js.map +1 -0
  83. package/dist/lib/setup/sections/preferences.d.ts +30 -0
  84. package/dist/lib/setup/sections/preferences.d.ts.map +1 -0
  85. package/dist/lib/setup/sections/preferences.js +128 -0
  86. package/dist/lib/setup/sections/preferences.js.map +1 -0
  87. package/dist/lib/setup/sections/routing.d.ts +21 -0
  88. package/dist/lib/setup/sections/routing.d.ts.map +1 -0
  89. package/dist/lib/setup/sections/routing.js +160 -0
  90. package/dist/lib/setup/sections/routing.js.map +1 -0
  91. package/dist/lib/setup/summary.d.ts +42 -0
  92. package/dist/lib/setup/summary.d.ts.map +1 -0
  93. package/dist/lib/setup/summary.js +206 -0
  94. package/dist/lib/setup/summary.js.map +1 -0
  95. package/dist/lib/timeline.d.ts +7 -0
  96. package/dist/lib/timeline.d.ts.map +1 -1
  97. package/dist/lib/timeline.js +19 -5
  98. package/dist/lib/timeline.js.map +1 -1
  99. package/package.json +7 -1
package/README.md CHANGED
@@ -96,6 +96,50 @@ The helper auto-starts the sandbox if it's not running. No MCP required.
96
96
 
97
97
  ---
98
98
 
99
+ ## Interactive Chat (TUI)
100
+
101
+ `gnosys chat` opens a memory-aware terminal chat. Every prompt triggers federated recall against the central brain; the LLM sees relevant memories in context and cites them in its answers.
102
+
103
+ ```bash
104
+ gnosys chat # new session
105
+ gnosys chat --resume <id> # continue an earlier session
106
+ gnosys chat --list # see all sessions
107
+ gnosys chat --search <query> # full-text search across session logs
108
+ ```
109
+
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
+
112
+ **24 slash commands** across reading, recall, writing, focus, and polish — type `/help` inside the TUI for the full list. Highlights:
113
+
114
+ - `/pin <id>`, `/scope`, `/threshold`, `/recall <q>` — tune what shows up in context
115
+ - `/remember <text>`, `/save-turn`, `/attach <file>` — promote chat content to gnosys memory (PDFs, images, audio all auto-pin to the session)
116
+ - `/focus <topic>`, `/branch`, `/resume-focus` — replace the "new chat" model with cheap focus boundaries; one continuous session log, instant pivot
117
+ - `/export <file.md>`, `/search-chats <q>`, `/dream-here` — round-trip the session, find old chats, or trigger a focused dream cycle
118
+
119
+ **Multiple choice.** When the model needs you to pick from a small set, it emits a fenced `gnosys-choose` block. The TUI parses it and shows an arrow-key selectable list — provider-agnostic, no tool-use API required.
120
+
121
+ Sessions live as append-only JSONL at `~/.gnosys/chat-sessions/`; promoted memories carry `session:<id>`, `from-chat:true`, and `source:remember|save-turn|auto|attach` provenance tags so you can find them later via federated search.
122
+
123
+ ---
124
+
125
+ ## Per-Project Bundles
126
+
127
+ Move a single project's memories between machines without dragging the whole central DB.
128
+
129
+ ```bash
130
+ gnosys export project --to ./gnosys-public.json.gz # auto-detects current project
131
+ gnosys export project <projectId> --to <bundle> # explicit
132
+ gnosys import project <bundle> --strategy merge # default — skip existing
133
+ gnosys import project <bundle> --strategy replace # wipe target project first
134
+ gnosys import project <bundle> --strategy new-id # remap to a fresh project ID
135
+ ```
136
+
137
+ Bundles are gzipped JSON containing the project row, memories (with embeddings inline), relationships, and audit log. Lossless round-trip with the same DB schema; partially compatible across versions via the bundle manifest.
138
+
139
+ For an Obsidian-compatible markdown vault, use `gnosys export vault --to <dir>` (the v5.5.x form `gnosys export --to <dir>` keeps working).
140
+
141
+ ---
142
+
99
143
  ## Web Knowledge Base
100
144
 
101
145
  Turn any website into a searchable knowledge base for AI chatbots. No database required. Works on Vercel, Netlify, Cloudflare Pages, or any platform that can serve files.