chat-recall 0.7.39 → 0.7.40

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 (55) hide show
  1. package/README.md +22 -14
  2. package/dist/cli.js +698 -410
  3. package/dist/cli.js.map +1 -1
  4. package/dist/install-hooks.d.ts +11 -3
  5. package/dist/install-hooks.d.ts.map +1 -1
  6. package/dist/install-hooks.js +10 -5
  7. package/dist/install-hooks.js.map +1 -1
  8. package/dist/kit-store.d.ts +1 -1
  9. package/dist/kit-store.d.ts.map +1 -1
  10. package/dist/kit-store.js +2 -2
  11. package/dist/kit-store.js.map +1 -1
  12. package/dist/mcp-host.d.ts +50 -0
  13. package/dist/mcp-host.d.ts.map +1 -0
  14. package/dist/mcp-host.js +111 -0
  15. package/dist/mcp-host.js.map +1 -0
  16. package/dist/mcp.js +1023 -981
  17. package/dist/mcp.js.map +1 -1
  18. package/dist/memory-guard.d.ts +41 -0
  19. package/dist/memory-guard.d.ts.map +1 -0
  20. package/dist/memory-guard.js +56 -0
  21. package/dist/memory-guard.js.map +1 -0
  22. package/dist/message-hook.js +1 -1
  23. package/dist/service-installer.js +2 -2
  24. package/dist/service-installer.js.map +1 -1
  25. package/dist/session-exit.d.ts +50 -0
  26. package/dist/session-exit.d.ts.map +1 -0
  27. package/dist/session-exit.js +70 -0
  28. package/dist/session-exit.js.map +1 -0
  29. package/dist/star-nudge.js +1 -1
  30. package/dist/sync-client.d.ts.map +1 -1
  31. package/dist/sync-client.js +5 -6
  32. package/dist/sync-client.js.map +1 -1
  33. package/dist/vendor/mcp-kit/VERSION +1 -0
  34. package/dist/vendor/mcp-kit/host-main.d.ts +2 -0
  35. package/dist/vendor/mcp-kit/host-main.js +3 -0
  36. package/dist/vendor/mcp-kit/host-plain.d.ts +56 -0
  37. package/dist/vendor/mcp-kit/host-plain.js +502 -0
  38. package/dist/vendor/mcp-kit/host.d.ts +32 -0
  39. package/dist/vendor/mcp-kit/host.js +43 -0
  40. package/dist/vendor/mcp-kit/registry.d.ts +79 -0
  41. package/dist/vendor/mcp-kit/registry.js +194 -0
  42. package/dist/watch.js +45 -14
  43. package/package.json +2 -2
  44. package/dist/mcp-relay.d.ts +0 -3
  45. package/dist/mcp-relay.d.ts.map +0 -1
  46. package/dist/mcp-relay.js +0 -472
  47. package/dist/mcp-relay.js.map +0 -1
  48. package/dist/mcp-socket.d.ts +0 -98
  49. package/dist/mcp-socket.d.ts.map +0 -1
  50. package/dist/mcp-socket.js +0 -249
  51. package/dist/mcp-socket.js.map +0 -1
  52. package/dist/relay-lifecycle.d.ts +0 -92
  53. package/dist/relay-lifecycle.d.ts.map +0 -1
  54. package/dist/relay-lifecycle.js +0 -290
  55. package/dist/relay-lifecycle.js.map +0 -1
package/README.md CHANGED
@@ -196,28 +196,36 @@ any of it. Secrets are masked client-side before anything leaves the machine.
196
196
  {
197
197
  "mcpServers": {
198
198
  "chat-recall": {
199
- "command": "chat-recall-mcp"
199
+ "url": "http://127.0.0.1:7717/chat-recall"
200
200
  }
201
201
  }
202
202
  }
203
203
  ```
204
204
 
205
- `chat-recall-mcp` is a relay, not the server. It finds the background daemon for
206
- your tool profile, starts one if there is none, and passes bytes to it. Every
207
- session on a machine therefore shares one loaded engine instead of carrying its
208
- own: a session costs about 50 MB rather than 87 MB, against a single shared
209
- daemon, and background sync runs in one process instead of racing a lock in all
210
- of them. The daemon exits 15 minutes after the last session closes.
205
+ The entry is a URL, and the client starts no process. The host of the machine
206
+ serves chat-recall on that URL. One process serves every session of the machine,
207
+ so the engine loads once: background sync runs in one process, and no session
208
+ races another for the index lock. The host starts at login and the client
209
+ reconnects to it.
211
210
 
212
- Two knobs, both optional:
211
+ The host is `mcp-kit-host`, from `@munhq/mcp-kit`. It serves every local MCP
212
+ server of the machine, not only chat-recall. `chat-recall init` installs it
213
+ through the kit and adds chat-recall to its list of servers. chat-recall adds no
214
+ unit, timer or job of its own, and it adds no second copy of the kit: the
215
+ published package holds the host code that it needs.
213
216
 
214
- ```bash
215
- CHAT_RECALL_NO_DAEMON=1 # load the whole server in each session instead
216
- CHAT_RECALL_DAEMON_IDLE_SECS=0 # keep the daemon resident (default 900)
217
- ```
217
+ If the machine has no host, `init` writes the stdio entry, which runs the server
218
+ in each session:
218
219
 
219
- If the daemon cannot be reached for any reason, the session loads the server
220
- itself and works exactly as it did before — slower, never broken.
220
+ ```json
221
+ {
222
+ "mcpServers": {
223
+ "chat-recall": {
224
+ "command": "chat-recall-mcp"
225
+ }
226
+ }
227
+ }
228
+ ```
221
229
 
222
230
  `chat-recall init` installs the Claude Code hooks in every profile's
223
231
  `settings.json`. If you added only the MCP server, from a marketplace button or