cargo-hauler 0.6.6 → 0.6.7

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 (61) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +6 -2
  3. package/artifact/agent-bundle.manifest.json +1 -1
  4. package/artifact/claude/.claude-plugin/marketplace.json +1 -1
  5. package/artifact/claude/.claude-plugin/plugin.json +1 -1
  6. package/artifact/claude/INSTALL.md +1 -1
  7. package/artifact/claude/bin/cargo-hauler-flight.mjs +115 -12
  8. package/artifact/claude/bin/cargo-hauler.mjs +156 -20
  9. package/artifact/claude/hooks/after-tool-shell-after-264de610.mjs +3 -3
  10. package/artifact/claude/hooks/before-tool-shell-before-9212219e.mjs +3 -3
  11. package/artifact/claude/hooks/event-route-session-start.mjs +2 -2
  12. package/artifact/claude/hooks/event-route-stop.mjs +2 -2
  13. package/artifact/claude/hooks/hooks-flight.mjs +115 -13
  14. package/artifact/claude/mcp/mcp-hauler-2b8242f9-flight.mjs +117 -14
  15. package/artifact/claude/mcp/mcp-hauler-2b8242f9.mjs +113 -15
  16. package/artifact/claude/mcp-apps/dashboard.html +1 -1
  17. package/artifact/claude/scripts/hauler.mjs +152 -18
  18. package/artifact/claude/skills/hauler-dashboard/SKILL.md +1 -1
  19. package/artifact/codex/.codex-plugin/plugin.json +1 -1
  20. package/artifact/codex/INSTALL.md +1 -1
  21. package/artifact/codex/bin/cargo-hauler-flight.mjs +115 -12
  22. package/artifact/codex/bin/cargo-hauler.mjs +156 -20
  23. package/artifact/codex/hooks/after-tool-shell-after-264de610.mjs +3 -3
  24. package/artifact/codex/hooks/before-tool-shell-before-9212219e.mjs +3 -3
  25. package/artifact/codex/hooks/event-route-session-start.mjs +2 -2
  26. package/artifact/codex/hooks/event-route-stop.mjs +2 -2
  27. package/artifact/codex/hooks/hooks-flight.mjs +115 -13
  28. package/artifact/codex/mcp/mcp-hauler-2b8242f9-flight.mjs +117 -14
  29. package/artifact/codex/mcp/mcp-hauler-2b8242f9.mjs +113 -15
  30. package/artifact/codex/mcp-apps/dashboard.html +1 -1
  31. package/artifact/codex/scripts/hauler.mjs +152 -18
  32. package/artifact/codex/skills/hauler-dashboard/SKILL.md +1 -1
  33. package/artifact/cursor/.cursor-plugin/plugin.json +1 -1
  34. package/artifact/cursor/INSTALL.md +1 -1
  35. package/artifact/cursor/bin/cargo-hauler-flight.mjs +115 -12
  36. package/artifact/cursor/bin/cargo-hauler.mjs +156 -20
  37. package/artifact/cursor/hooks/after-tool-shell-after-264de610.mjs +3 -3
  38. package/artifact/cursor/hooks/before-tool-shell-before-9212219e.mjs +3 -3
  39. package/artifact/cursor/hooks/event-route-session-start.mjs +2 -2
  40. package/artifact/cursor/hooks/event-route-stop.mjs +2 -2
  41. package/artifact/cursor/hooks/hooks-flight.mjs +115 -13
  42. package/artifact/cursor/install.mjs +1 -1
  43. package/artifact/cursor/mcp/mcp-hauler-2b8242f9-flight.mjs +117 -14
  44. package/artifact/cursor/mcp/mcp-hauler-2b8242f9.mjs +113 -15
  45. package/artifact/cursor/mcp-apps/dashboard.html +1 -1
  46. package/artifact/cursor/scripts/hauler.mjs +152 -18
  47. package/artifact/cursor/skills/hauler-dashboard/SKILL.md +1 -1
  48. package/artifact/portable/INSTALL.md +1 -1
  49. package/artifact/portable/bin/cargo-hauler-flight.mjs +115 -12
  50. package/artifact/portable/bin/cargo-hauler.mjs +156 -20
  51. package/artifact/portable/install.mjs +1 -1
  52. package/artifact/portable/mcp/mcp-hauler-2b8242f9-flight.mjs +116 -13
  53. package/artifact/portable/mcp/mcp-hauler-2b8242f9.mjs +112 -14
  54. package/artifact/portable/mcp-apps/dashboard.html +1 -1
  55. package/artifact/portable/plugin.json +1 -1
  56. package/artifact/portable/scripts/hauler.mjs +152 -18
  57. package/artifact/portable/skills/hauler-dashboard/SKILL.md +1 -1
  58. package/dist/bin/cargo-hauler-flight.mjs +115 -12
  59. package/dist/bin/cargo-hauler.js +156 -20
  60. package/dist/bin/hauler.js +152 -18
  61. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 592863f: Make daemon replacement directional. Upgrading with long-lived sessions still on a previous plugin produced a war: the old clients shut down the new daemon on every hook call (and failed to start their own), the new clients started it again, and no daemon lived longer than two seconds. Now only a newer install replaces a daemon. The `shutdown` request carries the client's version; the daemon refuses a shutdown from a client older than itself or from one that sends no version (`shutdown-refused`), and a client that finds a newer daemon fails as `DaemonNewer` without touching it: `hauler exec` runs cargo directly with that reason, hooks continue, and `hauler status` / `hauler daemon status` name the newer daemon. `hauler daemon stop` from an older install is refused the same way.
8
+
3
9
  ## 0.6.6
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -634,8 +634,12 @@ unset, the daemon reads kache's configured local store from
634
634
  `hauler_last` read the ledger with the daemon marked `stopped` or
635
635
  `unresponsive`. Before any live daemon reply is parsed, these reads apply
636
636
  the one-version rule and replace a daemon left running by a previous
637
- install. If replacement fails, they report that failure instead of reading
638
- the stale payload.
637
+ install. Replacement is directional: only a newer install replaces a
638
+ daemon. A client older than the daemon it finds — a session still on a
639
+ previous plugin — never shuts it down (the daemon refuses a shutdown from
640
+ an older or unversioned client), reports the daemon as newer, and runs
641
+ cargo directly. If replacement fails, the reads report that failure
642
+ instead of reading the stale payload.
639
643
  - The state directory is not migrated between installs. Every rendered
640
644
  document names the one in use (`state dir …` in the header; `stateRoot` in
641
645
  `--json`), so a `CARGO_HAULER_STATE_DIR` change is visible on the next