@alook/daemon 0.1.75 → 0.1.77

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 (4) hide show
  1. package/README.md +6 -0
  2. package/dist/cli/index.js +9224 -8380
  3. package/dist/index.js +3841 -3023
  4. package/package.json +3 -3
package/README.md CHANGED
@@ -450,3 +450,9 @@ Write POSTs are sent once. If the connection fails, a creation, invitation or me
450
450
  `use server --list` includes each server's participating top-level `channels`, with `name`, `type` (`text` or `forum`) and canonical `ref`. It uses `server.read`: public channels follow server membership; private channels require the code owner's creator or access membership. Threads and messages are not returned. Servers with no visible top-level channels keep an empty `channels` array.
451
451
 
452
452
  For local development only, pass `use --server-url http://localhost:<port> …` or set `ALOOK_SERVER_URL`. Remote origins require HTTPS. `use` does not follow HTTP redirects with the access code.
453
+
454
+ ## Local work recovery
455
+
456
+ Graceful daemon shutdown saves bots with interrupted active turns in the machine's private daemon directory. After reconnect, bot warmup and unread-wake resync, fresh records resume once with a `[System Recovery]` prompt to check marked work. Records expire after 15 minutes; removed bots and bots already woken are skipped. This snapshot covers graceful shutdown, refresh and self-update, rather than abrupt daemon process loss. Recovery attempts do not create another recovery attempt. Established active sessions killed for stalling or closed unexpectedly also receive one recovery attempt, preserving the existing stalled-session fence. Owner stops, idle stops and daemon shutdown do not trigger active-exit recovery.
457
+
458
+ Local `--remind-after` reminders are written atomically with private file permissions. Daemon shutdown preserves their deadlines. Reconnect restores the remaining delay, or delivers an overdue reminder once after unread-wake resync. A newer observed message or explicit bot stop/removal cancels its reminder persistently. While the daemon is offline, reminders wait for it to reconnect; use Schedule for work bound to a specific future time.