@anhlp/alp-daemon 0.0.1-beta.3 → 0.0.1-beta.4

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 (51) hide show
  1. package/README.md +4 -0
  2. package/dist/alpd.js +10350 -3346
  3. package/dist/attachments.d.ts +211 -0
  4. package/dist/attachments.js +819 -0
  5. package/dist/build-manifest.json +21 -1
  6. package/dist/conversation.d.ts +119 -0
  7. package/dist/conversation.js +672 -0
  8. package/dist/files.d.ts +13 -0
  9. package/dist/files.js +15 -0
  10. package/dist/git.d.ts +87 -0
  11. package/dist/git.js +1093 -0
  12. package/dist/gitignore.d.ts +5 -0
  13. package/dist/gitignore.js +7 -1
  14. package/dist/history.d.ts +24 -0
  15. package/dist/history.js +149 -0
  16. package/dist/index.d.ts +6 -0
  17. package/dist/index.js +18 -1
  18. package/dist/lifecycle.d.ts +101 -0
  19. package/dist/lifecycle.js +239 -0
  20. package/dist/main.js +9 -3
  21. package/dist/registry.d.ts +89 -0
  22. package/dist/registry.js +343 -0
  23. package/dist/scheduler.d.ts +96 -0
  24. package/dist/scheduler.js +290 -0
  25. package/dist/schedules.d.ts +69 -0
  26. package/dist/schedules.js +244 -0
  27. package/dist/server.d.ts +11 -1
  28. package/dist/server.js +698 -76
  29. package/dist/store.d.ts +69 -1
  30. package/dist/store.js +109 -3
  31. package/dist/terminals.d.ts +157 -0
  32. package/dist/terminals.js +487 -0
  33. package/dist/worktrees.d.ts +41 -0
  34. package/dist/worktrees.js +246 -0
  35. package/package.json +64 -5
  36. package/src/attachments.ts +870 -0
  37. package/src/conversation.ts +837 -0
  38. package/src/files.ts +23 -2
  39. package/src/git.ts +1045 -0
  40. package/src/gitignore.ts +10 -0
  41. package/src/history.ts +118 -0
  42. package/src/index.ts +6 -0
  43. package/src/lifecycle.ts +283 -0
  44. package/src/main.ts +9 -3
  45. package/src/registry.ts +238 -0
  46. package/src/scheduler.ts +422 -0
  47. package/src/schedules.ts +294 -0
  48. package/src/server.ts +810 -86
  49. package/src/store.ts +115 -3
  50. package/src/terminals.ts +591 -0
  51. package/src/worktrees.ts +287 -0
package/README.md CHANGED
@@ -6,6 +6,10 @@ The daemon hosts *neutral* IPC extensions: a connection registers a method with
6
6
 
7
7
  What survives a crash of the alpd process, when `session.prompt` is acknowledged, how long a `clientMessageId` is honoured, and what is not covered (power loss, disk failure): [ALPD §66](../../plans/reference/ALPD.md). `tests/crash-recovery.test.js` kills a real alpd at each point with a fake provider.
8
8
 
9
+ Fork recovery keeps an exact journal-attempt completion witness on the source after the target timeline, record, placement and attachment pins finish. Retention keeps an applied fork's source until its journal becomes terminal, and keeps its target until that witness is durable. A lost final journal marker can therefore be repaired without recreating a target that retention removed. The witness follows the existing journal-aware cleanup rules; an applied entry can retain its source until a retry or restart repairs the marker.
10
+
11
+ Pre-upgrade applied forks have no recovery version. A present target with matching stable fork provenance can finish recovery; an absent target cannot distinguish an interrupted creation from prior retention deletion. That ambiguous legacy case stays applied and returns `persistence_failed` instead of recreating history. Newly prepared forks still recover automatically when interrupted before their target record exists. These writes cover process crashes, with the existing no-fsync/power-loss limitation.
12
+
9
13
  Build: `npm run build --workspace=@anhlp/alp-daemon`. Test: `npm run test --workspace=@anhlp/alp-daemon`.
10
14
 
11
15
  Public imports use the package root and its explicitly exported subpaths. See [architecture, provider extension, compatibility and release instructions](../../docs/modular-monorepo.md).