cargo-hauler 0.7.1 → 0.7.3

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 (44) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +45 -5
  3. package/dist/.claude-plugin/marketplace.json +1 -1
  4. package/dist/.claude-plugin/plugin.json +1 -1
  5. package/dist/.codex-plugin/plugin.json +1 -1
  6. package/dist/.cursor-plugin/plugin.json +1 -1
  7. package/dist/AGENTS.md +2 -0
  8. package/dist/INSTALL.md +10 -11
  9. package/dist/README.md +45 -5
  10. package/dist/agent-bundle.compile-evidence.json +1 -1
  11. package/dist/agent-bundle.manifest.json +1 -1
  12. package/dist/agent-bundle.package-compile-evidence.json +1 -1
  13. package/dist/bin/cargo-hauler-flight.mjs +450 -57
  14. package/dist/bin/cargo-hauler-install.js +399 -72
  15. package/dist/bin/cargo-hauler.mjs +733 -149
  16. package/dist/bin/hauler.js +601 -103
  17. package/dist/hooks/event-route-session-start.claude.mjs +183 -5
  18. package/dist/hooks/event-route-session-start.codex.mjs +183 -5
  19. package/dist/hooks/event-route-session-start.cursor.mjs +183 -5
  20. package/dist/hooks/event-route-stop.claude.mjs +183 -5
  21. package/dist/hooks/event-route-stop.codex.mjs +183 -5
  22. package/dist/hooks/event-route-stop.cursor.mjs +183 -5
  23. package/dist/hooks/event-route-tool-after.claude.execute.mjs +183 -5
  24. package/dist/hooks/event-route-tool-after.claude.mjs +439 -42
  25. package/dist/hooks/event-route-tool-after.codex.execute.mjs +183 -5
  26. package/dist/hooks/event-route-tool-after.codex.mjs +439 -42
  27. package/dist/hooks/event-route-tool-after.cursor.execute.mjs +183 -5
  28. package/dist/hooks/event-route-tool-after.cursor.mjs +439 -42
  29. package/dist/hooks/event-route-tool-before.claude.execute.mjs +183 -5
  30. package/dist/hooks/event-route-tool-before.claude.mjs +201 -23
  31. package/dist/hooks/event-route-tool-before.codex.execute.mjs +183 -5
  32. package/dist/hooks/event-route-tool-before.codex.mjs +201 -23
  33. package/dist/hooks/event-route-tool-before.cursor.execute.mjs +183 -5
  34. package/dist/hooks/event-route-tool-before.cursor.mjs +201 -23
  35. package/dist/hooks/hooks-flight.mjs +393 -65
  36. package/dist/install.mjs +2 -2
  37. package/dist/mcp/mcp-hauler-2b8242f9-flight.mjs +468 -71
  38. package/dist/mcp/mcp-hauler-2b8242f9.mjs +608 -62
  39. package/dist/mcp-apps/dashboard.html +2 -2
  40. package/dist/package.json +3 -3
  41. package/dist/plugin.json +1 -1
  42. package/dist/scripts/hauler.mjs +601 -103
  43. package/dist/skills/hauler-dashboard/SKILL.md +1 -1
  44. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 5d14c4f: Initialize the dashboard in Codex Desktop when MCP Apps use a
8
+ `codex-sandbox://` origin (#206).
9
+ - 4ac68a9: Make `hauler daemon stop` and `cargo-hauler daemon stop` preserve typed shutdown outcomes and fail when the daemon refuses, times out, returns a protocol error, disconnects before acknowledgement, or remains alive (#200).
10
+ - bc2ed53: Make daemon state and relocated control sockets owner-private on Linux and
11
+ macOS. The state directory, `tickets/`, and the socket's runtime directory
12
+ are created `0700` and sensitive files — complete ticket output, the ledger
13
+ and its WAL sidecars, the daemon log, the passthrough spool, `hook-state.json`,
14
+ `hook-events.jsonl`, the pid lock, and the jobserver FIFO — `0600`,
15
+ independent of the invoking shell's umask, instead of inheriting `0755`/`0644`.
16
+ An existing state directory the running user owns is tightened in place; a
17
+ parent named by `CARGO_HAULER_STATE_DIR` is never chmod'ed, and a state path
18
+ that is a symlink, the wrong kind of entry, or owned by another user is
19
+ refused by name rather than followed, chmod'ed, or deleted. A state directory
20
+ too deep for `sun_path` now puts its socket in a `cargo-hauler-<uid>`
21
+ directory under `XDG_RUNTIME_DIR`/`TMPDIR`/the system temporary directory
22
+ instead of directly in a possibly shared temporary root, and the socket
23
+ digest no longer lowercases Unix paths, so case-distinct state directories no
24
+ longer share one control endpoint. A daemon left listening at the previous
25
+ relocated path is retired by the next client under the existing one-version
26
+ rule and stopped by `hauler daemon stop`, so the moved endpoint needs no
27
+ manual cleanup on upgrade. Windows keeps its named pipe and gains no POSIX
28
+ modes or uids. (#203)
29
+
30
+ ## 0.7.2
31
+
32
+ ### Patch Changes
33
+
34
+ - 0ca43dd: Compare prerelease versions by SemVer identifiers when deciding whether a client may replace a daemon. Numeric counters such as `rc.10` now sort after `rc.9`, preventing an older prerelease client from being mistaken for a newer install.
35
+ - bb0901a: Install PATH shims without following existing symlinks or overwriting other hard links to Cargo executables. Refuse dangling destination links unless `--force` is supplied, publish complete executable files atomically, and prevent an existing destination symlink from being embedded as the shim's own real Cargo path.
36
+
3
37
  ## 0.7.1
4
38
 
5
39
  ### Patch Changes
package/README.md CHANGED
@@ -85,7 +85,7 @@ The CLI is `hauler` on PATH from `npm i -g cargo-hauler`. Never run
85
85
  | `hauler result <ticket> [--full]` | A stored ticket in full: the settled 16 KiB output tail, or the whole live in-memory tail while it runs (not the status preview). The document names the full on-disk output log (`Full output: <path> (size)`) and `--json` carries it as `request.outputPath`; `--full` prints that whole log instead of the tail (the last ~768 KiB when it does not fit, with the path for the rest). |
86
86
  | `hauler kill <ticket>` | Stop a ticket: drop it from the queue or SIGTERM (then SIGKILL) its cargo process group, freeing the lane. Riders return to their lane or fail with it. |
87
87
  | `hauler request [--session ID] [--host HOST] [--cwd DIR] [--after TICKET …] -- <cargo …>` | Submit a background request and return its ticket, with where it landed in its lane (`queued behind cc-3281 (~13m)`, `waiting for cc-3281`, or `attached to cc-3281`). `--cwd` overrides the current CLI workspace; `--after` works as for `exec`. |
88
- | `hauler daemon <run\|start\|stop\|status\|restart>` | Manage the daemon lifecycle. `restart` is the manual replacement: it sends the graceful stop, waits up to 5 s for the old pid to exit, then starts a daemon from this install and prints both (`restarted: pid 741314 (0.6.0) → pid 742001 (0.6.1)`); a daemon that has not exited by then is reported, not killed, and nothing is started (exit `1`). Tickets in flight are not handed over: the old daemon settles them itself as it shuts down — `killed`, error `daemon shutdown` — and callers resubmit (only rows a daemon that died without shutting down never marked are stamped `orphaned by daemon restart` by the next daemon's first ledger pass). After upgrading the package, every client entry — reads (`status`, `daemon status`, `log`, `last`, `await`, `result`, the dashboard and MCP tools), writes, and hooks — checks the daemon version before requesting a versioned payload and replaces a daemon from the previous install automatically. When the old daemon has not exited within the grace, the command fails with `` cargo-hauler daemon pid N (X.Y.Z) is still running 5s after the shutdown request; not restarted — retry once it has exited, or stop it with `hauler daemon stop` `` instead of parsing its payload or starting a second daemon. |
88
+ | `hauler daemon <run\|start\|stop\|status\|restart>` | Manage the daemon lifecycle. `stop` records its typed `shutdown` outcome in JSON and exits `0` only after a `shutting-down` acknowledgement followed by the original pid's exit, or when the daemon was already absent. Refusal, timeout, protocol error, disconnect before acknowledgement, and an acknowledged daemon still alive after 5 s exit `1`; `running` remains `true` when the original pid is alive and `null` when liveness could not be established. `restart` is the manual replacement: it sends the graceful stop, waits up to 5 s for the old pid to exit, then starts a daemon from this install and prints both (`restarted: pid 741314 (0.6.0) → pid 742001 (0.6.1)`); a daemon that has not exited by then is reported, not killed, and nothing is started (exit `1`). Tickets in flight are not handed over: the old daemon settles them itself as it shuts down — `killed`, error `daemon shutdown` — and callers resubmit (only rows a daemon that died without shutting down never marked are stamped `orphaned by daemon restart` by the next daemon's first ledger pass). After upgrading the package, every client entry — reads (`status`, `daemon status`, `log`, `last`, `await`, `result`, the dashboard and MCP tools), writes, and hooks — checks the daemon version before requesting a versioned payload and replaces a daemon from the previous install automatically. When the old daemon has not exited within the grace, the command fails with `` cargo-hauler daemon pid N (X.Y.Z) is still running 5s after the shutdown request; not restarted — retry once it has exited, or stop it with `hauler daemon stop` `` instead of parsing its payload or starting a second daemon. |
89
89
  | `hauler install-shim [--dir DIR] [--real-cargo PATH] [--force]` | Install the optional PATH shim. |
90
90
  | `hauler web [--port N] [--no-open]` | Open the dashboard from the checkout, npm package, or installed plugin. Agent Bundle's generated web command serves the built App against the plugin's own `hauler` server, opens it populated by `hauler_status`, and stays in the foreground until Ctrl-C. In an MCP host, call `hauler_status` instead. |
91
91
 
@@ -635,7 +635,7 @@ Per-host notes and hook timeouts are in [docs/install.md](docs/install.md).
635
635
 
636
636
  | Variable | Default | Meaning |
637
637
  | --- | --- | --- |
638
- | `CARGO_HAULER_STATE_DIR` | Per-user cache directory | Unix socket or Windows named pipe source, SQLite ledger, daemon log, pid lock, `hook-state.json`, `hook-events.jsonl`, and the per-ticket output logs under `tickets/`. |
638
+ | `CARGO_HAULER_STATE_DIR` | Per-user cache directory | Unix socket or Windows named pipe source, SQLite ledger, daemon log, pid lock, `hook-state.json`, `hook-events.jsonl`, and the per-ticket output logs under `tickets/`. Owner-private on Linux and macOS: the directory is `0700` and its sensitive files `0600`, and an unsafe or unowned path is refused rather than reused. |
639
639
  | `CARGO_HAULER_CARGO_BIN` | `$CARGO_HOME/bin/cargo` | Cargo binary for daemon-started work; bare `cargo` is the last fallback. Never resolved through `PATH`. Read from the daemon's own environment (export it where the daemon starts, or before `hauler daemon start`); clients do not forward it. |
640
640
  | `CARGO_HAULER_MAX_CONCURRENT` | cores ÷ 8, clamped to 5–16 | Global admission permits for Cargo processes across all lanes; an integer >= 1. |
641
641
  | `CARGO_HAULER_OVERLAP_EXECUTION` | `1` | Hand a lane to its next request once a `test`/`nextest`/`bench`/`run` leader reports its build finished, overlapping the next compile with the leader's execution phase. `0` keeps a lane strictly one process at a time. |
@@ -672,11 +672,50 @@ as a warning (daemon log, or stderr for hand-run commands) and the default
672
672
  applies; only `0` or `off` disables an arm that documents that contract.
673
673
  The state directory defaults to `$XDG_CACHE_HOME/cargo-hauler`, otherwise
674
674
  `~/.cache/cargo-hauler` on Linux, `~/Library/Caches/cargo-hauler` on macOS, and
675
- `%LOCALAPPDATA%\cargo-hauler` on Windows. When `CARGO_HAULER_KACHE_INDEX` is
675
+ `%LOCALAPPDATA%\cargo-hauler` on Windows. Its contents are owner-private, and
676
+ the daemon is a single user's, not a shared service — see
677
+ [State directory ownership](#state-directory-ownership). When
678
+ `CARGO_HAULER_KACHE_INDEX` is
676
679
  unset, the daemon reads kache's configured local store from
677
680
  `$XDG_CONFIG_HOME/kache/config.toml` or `~/.config/kache/config.toml` and opens
678
681
  `<local_store>/index.db` read-only.
679
682
 
683
+ ### State directory ownership
684
+
685
+ The daemon is local control for the user who owns its state directory, not a
686
+ shared multi-user service. Everything under the state directory — complete
687
+ command output in `tickets/`, the ledger, the daemon log, the passthrough
688
+ spool, the hook records, the jobserver FIFO, the control socket — is that
689
+ one account's, and there is no mechanism for a second user to submit work to
690
+ another user's daemon.
691
+
692
+ On Linux and macOS the daemon enforces that boundary rather than inheriting
693
+ it from the umask:
694
+
695
+ - Directories cargo-hauler creates are `0700`, and sensitive files `0600`,
696
+ whatever umask the invoking shell had. An existing state directory that
697
+ the running user already owns is tightened in place on the next start;
698
+ its contents are preserved.
699
+ - Only the state directory and the entries cargo-hauler owns are changed. A
700
+ parent you configured through `CARGO_HAULER_STATE_DIR` — a shared volume,
701
+ a RAM disk — is never chmod'ed.
702
+ - A state path that is a symbolic link, is the wrong kind of entry, or is
703
+ owned by another user is refused by name instead of being followed,
704
+ chmod'ed, or deleted. Fix or remove the path and start again; cargo-hauler
705
+ will not act on another account's file on your behalf.
706
+ - When the state directory is too deep for the kernel's socket path limit,
707
+ the control socket moves to a `cargo-hauler-<uid>` directory (mode `0700`)
708
+ under `XDG_RUNTIME_DIR`, `TMPDIR`, or the system temporary directory —
709
+ never directly into a shared temporary root. Two accounts sharing one
710
+ temporary root get separate directories. A daemon from an earlier install
711
+ still listening at the previous relocated path is retired by the next
712
+ client under the usual one-version rule, and `hauler daemon stop` asks it
713
+ too before reporting nothing running, so upgrading needs no manual cleanup.
714
+
715
+ Windows has neither POSIX modes nor uids, and its control endpoint is a
716
+ named pipe rather than a filesystem entry, so none of the above applies
717
+ there; state files keep the permissions the filesystem gives them.
718
+
680
719
  ## Runtime behavior and caveats
681
720
 
682
721
  - Hook and client transport failures fail open: a hook passes the original
@@ -946,8 +985,9 @@ Workbench's MCP page preview the same App with live rebuilds. The repository
946
985
  ships no preview harness of its own.
947
986
 
948
987
  agent-bundle does not yet have an npm release; this repository pins the
949
- [pkg.pr.new](https://pkg.pr.new) preview of Agent Bundle PR #733 commit
950
- [`5064133`](https://github.com/ScriptedAlchemy/agent-bundle/commit/506413326359bff154ce4476eb0f47b0dabf4efe)
988
+ [pkg.pr.new](https://pkg.pr.new) preview of Agent Bundle main commit
989
+ [`b807ca0`](https://github.com/ScriptedAlchemy/agent-bundle/commit/b807ca0eea5c0d5744350e1fa8829e3d59c3c0b8),
990
+ merged by [Agent Bundle PR #772](https://github.com/ScriptedAlchemy/agent-bundle/pull/772),
951
991
  for both `agent-bundle` and `@agent-bundle/runtime`. `inspect` reports the
952
992
  `agent` component kind as unavailable on every host (agent-bundle G5
953
993
  deferral); this plugin defines no agents.
@@ -1 +1 @@
1
- {"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","name":"cargo-hauler-marketplace","owner":{"name":"cargo-hauler"},"plugins":[{"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","name":"cargo-hauler","source":"./","version":"0.7.1"}]}
1
+ {"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","name":"cargo-hauler-marketplace","owner":{"name":"cargo-hauler"},"plugins":[{"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","keywords":["cargo","rust","agent","mcp","claude-code","codex","cursor","build-orchestration"],"license":"MIT","name":"cargo-hauler","repository":"https://github.com/ScriptedAlchemy/cargo-hauler","source":"./","version":"0.7.3"}]}
@@ -1 +1 @@
1
- {"author":{"name":"cargo-hauler"},"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","name":"cargo-hauler","version":"0.7.1"}
1
+ {"author":{"name":"cargo-hauler"},"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","name":"cargo-hauler","version":"0.7.3"}
@@ -1 +1 @@
1
- {"author":{"name":"cargo-hauler"},"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","hooks":"./.codex-plugin/hooks.json","interface":{"capabilities":["mcp","hooks","skills"],"category":"Productivity","defaultPrompt":["Help me use cargo-hauler."],"developerName":"cargo-hauler","displayName":"cargo-hauler","longDescription":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","shortDescription":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks."},"mcpServers":"./.codex-plugin/mcp.json","name":"cargo-hauler","skills":"./skills/","version":"0.7.1"}
1
+ {"author":{"name":"cargo-hauler"},"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","hooks":"./.codex-plugin/hooks.json","interface":{"capabilities":["mcp","hooks","skills"],"category":"Productivity","defaultPrompt":["Help me use cargo-hauler."],"developerName":"cargo-hauler","displayName":"cargo-hauler","longDescription":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","shortDescription":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks."},"keywords":["cargo","rust","agent","mcp","claude-code","codex","cursor","build-orchestration"],"license":"MIT","mcpServers":"./.codex-plugin/mcp.json","name":"cargo-hauler","repository":"https://github.com/ScriptedAlchemy/cargo-hauler","skills":"./skills/","version":"0.7.3"}
@@ -1 +1 @@
1
- {"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","displayName":"cargo-hauler","hooks":"./.cursor-plugin/hooks.json","mcpServers":"./.cursor-plugin/mcp.json","name":"cargo-hauler","skills":"./skills/","version":"0.7.1"}
1
+ {"description":"Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.","displayName":"cargo-hauler","hooks":"./.cursor-plugin/hooks.json","keywords":["cargo","rust","agent","mcp","claude-code","codex","cursor","build-orchestration"],"license":"MIT","mcpServers":"./.cursor-plugin/mcp.json","name":"cargo-hauler","repository":"https://github.com/ScriptedAlchemy/cargo-hauler","skills":"./skills/","version":"0.7.3"}
package/dist/AGENTS.md CHANGED
@@ -23,6 +23,8 @@
23
23
  component and a view-model.
24
24
  - Documents must stay honest: a daemon the probe could not reach renders as
25
25
  `stopped`/`unresponsive` with its typed reason, never as an empty success.
26
+ - Daemon stop results carry their typed shutdown outcome. Only confirmed exit
27
+ or confirmed prior absence is success; acknowledgement alone is not stopped.
26
28
  - Names are `hauler` / `cargo-hauler` / `CARGO_HAULER_*`. No other prefix is
27
29
  read; never add an alias.
28
30
 
package/dist/INSTALL.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Coalesce, schedule, and stream cargo so concurrent agent sessions share compiles instead of fighting locks.
4
4
 
5
- Version: `0.7.1`
5
+ Version: `0.7.3`
6
6
 
7
7
  Run these commands from this bundle directory. The bundle is self-contained: every command below is
8
8
  a host command or the bundled installer, and nothing requires the `agent-bundle` CLI. Where that CLI is
@@ -206,22 +206,21 @@ is configured but not runnable there.
206
206
  - Partial `skills`: 2026-09-06: the emitted package root is not a Cascade discovery root; each skill directory is copied into .windsurf/skills/, ~/.codeium/windsurf/skills/, or .agents/skills/ before Cascade sees it, and the copy is what loads.
207
207
  - **Cline** (@cline/cli 0.0.13 exercised 2026-09-06; docs.cline.bot retrieved 2026-09-06 (@cline/sdk 0.0.82)) loads the components it recognizes without reading the manifest. Reads: `skills`. Install: `cp -R skills/<skill> ~/.cline/skills/<skill>`. Not loaded: manifest, mcp, placeholders, hooks.
208
208
  - Partial `skills`: 2026-09-06: the skill tree must be copied into one of Cline's own roots; the emitted package is not a Cline install unit, and no CLI verb in @cline/cli 0.0.13 performs the copy.
209
- - **CodeWhale** (Hmbown/CodeWhale main 19d34a5fb6c07b34e0b7234beb74a1cf1969efb4, docs retrieved 2026-09-06 (native Agent Plugins v1.0.0 support since v0.9.4)) installs this bundle as one plugin. Reads: `mcp.json`, `plugin.json`, `skills`. Install: `/plugin install ./<plugin directory>`. Not loaded: placeholders, hooks.
210
- - Partial `mcp`: 2026-09-06: CodeWhale narrows the standard's env rule — "Local stdio environment entries must use exact ${SOURCE_ENV} references" — so an emitted env value that is anything other than one whole variable reference is not accepted there.
211
- - **GitHub Copilot CLI** (@github/copilot 1.0.83, installed and exercised 2026-09-06) installs this bundle as one plugin. Reads: `mcp.json`, `plugin.json`, `skills`. Install: `copilot plugin install <plugin directory>`. Not loaded: hooks.
212
- - Partial `placeholders`: 2026-09-06: the probe proved the configuration Copilot records, not a spawned server: `copilot mcp get` prints static configuration, and spawning the server requires a GitHub Copilot login that was not performed.
213
- - **Devin CLI** (Agent Plugins 1.0.0; docs retrieved 2026-09-06, plugins documented as closed beta) installs this bundle as one plugin, but this build also writes `.claude-plugin/plugin.json`, which it reads as the plugin instead.
209
+ - **CodeWhale** (Hmbown/CodeWhale main 19d34a5fb6c07b34e0b7234beb74a1cf1969efb4, docs retrieved 2026-09-06 (native Agent Plugins v1.0.0 support since v0.9.4)) loads this bundle as one plugin. Reads: `mcp.json`, `plugin.json`, `skills`. Install: `/plugin install ./<plugin directory>`. Not loaded: placeholders, hooks.
210
+ - Partial `mcp`: 2026-09-06: CodeWhale narrows the standard at the plugin boundary. Its env rule — "Local stdio environment entries must use exact ${SOURCE_ENV} references" — rejects an emitted env value that is anything other than one whole variable reference. A remote server emitted into mcp.json is narrower still: the URL must be HTTPS (or explicit loopback HTTP) with no user information, query, or fragment, a literal header is rejected in favor of CodeWhale's own env_headers or bearer_token_env_var keys, redirects must stay on the reviewed origin, and the bundle must declare exactly the normalized endpoint host set in capabilities.network_hosts. That declaration rides in extensions["net.codewhale"], which this projection writes only when the author authors portable.extensions; a remote server emitted without it is a validation error, and "an active bundle must be … free of validation errors", so the whole bundle stays inactive there until the author declares the matching host set.
211
+ - **GitHub Copilot CLI** (@github/copilot 1.0.83, installed and exercised 2026-09-06) loads this bundle as one plugin. Reads: `plugin.json`, `skills`. Install: `copilot plugin install <plugin directory>`. Not loaded: hooks. This build also writes `.mcp.json`, which it uses for mcp instead. A root that also carries `.plugin/plugin.json` uses it for manifest and still reads the rest.
212
+ - **Devin CLI** (Agent Plugins 1.0.0; docs retrieved 2026-09-06, plugins documented as closed beta) loads this bundle as one plugin, but this build also writes `.claude-plugin/plugin.json`, which it reads as the plugin instead.
214
213
  - **Gemini CLI** (@google/gemini-cli 0.58.0, installed and exercised 2026-09-06) loads the components it recognizes without reading the manifest. Reads: `skills`. Install: `gemini skills install <plugin directory>/skills/<skill>`. Not loaded: manifest, mcp, placeholders, hooks.
215
- - **Grok Build** (xai-org/grok-build main 72a61251fcffb464bcc687aeb5a998e5a98ec0c9, docs retrieved 2026-09-06) loads the components it recognizes without reading the manifest. Reads: `skills`. Install (no local-directory install is verified for this artifact): `grok plugin install <marketplace plugin name> --trust`. Not loaded: manifest, mcp, placeholders, hooks.
216
- - **Hermes Agent** (hermes-agent.nousresearch.com developer guide retrieved 2026-09-06; no version is printed on the page) installs this bundle as one plugin. Reads: `mcp.json`, `plugin.json`, `skills`. Install (no local-directory install is verified for this artifact): `hermes plugins install <owner>/<repository> --no-enable`. Not loaded: hooks.
214
+ - **Grok Build** (xai-org/grok-build main 72a61251fcffb464bcc687aeb5a998e5a98ec0c9, docs retrieved 2026-09-06) loads the components it recognizes without reading the manifest. Reads: `skills`. Install from a marketplace (no local-directory install is verified for this artifact): `grok plugin install <marketplace plugin name> --trust`. Not loaded: manifest, mcp, placeholders, hooks.
215
+ - **Hermes Agent** (hermes-agent.nousresearch.com developer guide retrieved 2026-09-06; no version is printed on the page) loads this bundle as one plugin. Reads: `mcp.json`, `plugin.json`, `skills`. Install from a Git repository (no local-directory install is verified for this artifact): `hermes plugins install <owner>/<repository> --no-enable`. Not loaded: hooks.
217
216
  - Partial `manifest`: 2026-09-06: the validation rule set is not published: the page never states that the manifest root is treated as closed or what happens to an unknown root key.
218
217
  - Partial `placeholders`: 2026-09-06: the expansion sites are unpublished — the page does not say whether ${PLUGIN_ROOT} and ${PLUGIN_DATA} are expanded in args, env values, and cwd as §9.1 requires, only that the variables are provided.
219
218
  - **JetBrains Junie** (junie.jetbrains.com/docs retrieved 2026-09-06, agent-skills page dated 01 September 2026; no CLI version is published on the page) loads the components it recognizes without reading the manifest. Reads: `skills`. Register: `junie --skill-location <plugin directory>/skills`. Not loaded: manifest, mcp, placeholders, hooks.
220
219
  - Partial `skills`: 2026-09-06: the emitted skills/ root is not a default location, so it loads only once registered with --skill-location or the skill-locations config field, and "if a project-level and a user-level skills have the same name, the user-level skill will be skipped".
221
- - **Kiro (Powers)** (kiro.dev/docs/powers pages updated September 2, 2026 and August 4, 2026, retrieved 2026-09-06) installs this bundle as one plugin. Reads: `mcp.json`, `plugin.json`, `skills`. Install: `Powers panel -> Add Custom Power -> Import power from a folder -> select <plugin directory> -> Install`. Not loaded: placeholders, hooks.
220
+ - **Kiro (Powers)** (kiro.dev/docs/powers pages updated September 2, 2026 and August 4, 2026, retrieved 2026-09-06) loads this bundle as one plugin. Reads: `mcp.json`, `plugin.json`, `skills`. Install: `Powers panel -> Add Custom Power -> Import power from a folder -> select <plugin directory> -> Install`. Not loaded: placeholders, hooks.
222
221
  - Partial `manifest`: 2026-09-06: Kiro's "Required fields" table additionally requires version, description, author, and keywords, where the canonical schema requires only $schema and name — so a bundle that declares no portable author or keywords metadata does not meet Kiro's tightened manifest, and Kiro publishes no validation-error behavior to say what happens then.
223
222
  - Partial `mcp`: 2026-09-06: only stdio is documented for a power's mcp.json; no Kiro page states that a streamable-http server in that file is read, so an emitted remote server is unproven there.
224
- - **OpenClaw** (Agent Plugins 1.0.0; docs retrieved 2026-09-06) installs this bundle as one plugin, but this build also writes `.claude-plugin/plugin.json`, which it reads as the plugin instead.
223
+ - **OpenClaw** (Agent Plugins 1.0.0; docs retrieved 2026-09-06) loads this bundle as one plugin, but this build also writes `.claude-plugin/plugin.json`, which it reads as the plugin instead.
225
224
  - **OpenCode** (opencode-ai 1.18.29 exercised 2026-09-06; opencode.ai/docs retrieved 2026-09-06) loads the components it recognizes without reading the manifest. Reads: `skills`. Install: `cp -R skills/<skill> .agents/skills/<skill>`. Not loaded: manifest, mcp, placeholders, hooks.
226
225
  - Partial `skills`: 2026-09-06: the skill tree must be copied into one of OpenCode's own roots; the emitted package as a whole is not an OpenCode install unit, and skill names must be unique across all roots ("Ensure skill names are unique across all locations").
227
226
  - **Pi** (@mariozechner/pi-coding-agent 0.73.1 installed from npm 2026-09-07; packaged docs/skills.md and docs/packages.md read from that release) loads the components it recognizes without reading the manifest. Reads: `skills`. Register: `pi --skill <plugin directory>/skills`. Not loaded: manifest, mcp, placeholders, hooks.
@@ -229,7 +228,7 @@ is configured but not runnable there.
229
228
  - **Qoder CLI** (docs retrieved 2026-09-06; no CLI version is published on any page) loads the components it recognizes without reading the manifest. Reads: `skills`. Install: `qoder plugins install <plugin directory> --scope user`. Not loaded: manifest, placeholders, hooks. This build also writes `.mcp.json`, which it uses for mcp instead.
230
229
  - **Swival** (docs retrieved 2026-09-06; no product version is published on the documentation pages) loads the components it recognizes without reading the manifest. Reads: `skills`. Register: `swival --skills-dir <plugin directory>/skills "<task>"`. Not loaded: manifest, mcp, placeholders, hooks.
231
230
  - Partial `skills`: 2026-09-06: the emitted skills/ root is not a default location, so it loads only once registered with --skills-dir or the swival.toml skills_dir field, and it loses by name to the default roots: "If the same skill name exists in multiple locations, the first one in the precedence order wins", with .swival/skills/ and .agents/skills/ ahead of --skills-dir paths. A registered tree outside the project resolves as external, which Swival adds "as read-only roots".
232
- - **VS Code (Copilot agent plugins)** (code.visualstudio.com/docs/agent-customization/agent-plugins, page footer 9/2/2026, retrieved 2026-09-06) installs this bundle as one plugin. Reads: `mcp.json`, `plugin.json`, `skills`. Install: `"chat.pluginLocations": { "<plugin directory>": true }`. Not loaded: placeholders, hooks.
231
+ - **VS Code (Copilot agent plugins)** (code.visualstudio.com/docs/agent-customization/agent-plugins, page footer 9/2/2026, retrieved 2026-09-06) loads this bundle as one plugin. Reads: `mcp.json`, `plugin.json`, `skills`. Register: `"chat.pluginLocations": { "<plugin directory>": true }`. Not loaded: placeholders, hooks.
233
232
  - **Zed Agent** (zed.dev/docs retrieved 2026-09-06; no page publishes a version or last-updated date) loads the components it recognizes without reading the manifest. Reads: `skills`. Install: `cp -R skills/<skill> ~/.agents/skills/<skill>`. Not loaded: manifest, mcp, placeholders, hooks.
234
233
  - Partial `skills`: 2026-09-06: only the skill folders load, one copy at a time, and the catalog is capped — "50KB catalog budget… Skills that don't fit are dropped from the catalog with a warning in the UI" — so a large emitted skill set is not guaranteed to be wholly visible.
235
234
 
package/dist/README.md CHANGED
@@ -85,7 +85,7 @@ The CLI is `hauler` on PATH from `npm i -g cargo-hauler`. Never run
85
85
  | `hauler result <ticket> [--full]` | A stored ticket in full: the settled 16 KiB output tail, or the whole live in-memory tail while it runs (not the status preview). The document names the full on-disk output log (`Full output: <path> (size)`) and `--json` carries it as `request.outputPath`; `--full` prints that whole log instead of the tail (the last ~768 KiB when it does not fit, with the path for the rest). |
86
86
  | `hauler kill <ticket>` | Stop a ticket: drop it from the queue or SIGTERM (then SIGKILL) its cargo process group, freeing the lane. Riders return to their lane or fail with it. |
87
87
  | `hauler request [--session ID] [--host HOST] [--cwd DIR] [--after TICKET …] -- <cargo …>` | Submit a background request and return its ticket, with where it landed in its lane (`queued behind cc-3281 (~13m)`, `waiting for cc-3281`, or `attached to cc-3281`). `--cwd` overrides the current CLI workspace; `--after` works as for `exec`. |
88
- | `hauler daemon <run\|start\|stop\|status\|restart>` | Manage the daemon lifecycle. `restart` is the manual replacement: it sends the graceful stop, waits up to 5 s for the old pid to exit, then starts a daemon from this install and prints both (`restarted: pid 741314 (0.6.0) → pid 742001 (0.6.1)`); a daemon that has not exited by then is reported, not killed, and nothing is started (exit `1`). Tickets in flight are not handed over: the old daemon settles them itself as it shuts down — `killed`, error `daemon shutdown` — and callers resubmit (only rows a daemon that died without shutting down never marked are stamped `orphaned by daemon restart` by the next daemon's first ledger pass). After upgrading the package, every client entry — reads (`status`, `daemon status`, `log`, `last`, `await`, `result`, the dashboard and MCP tools), writes, and hooks — checks the daemon version before requesting a versioned payload and replaces a daemon from the previous install automatically. When the old daemon has not exited within the grace, the command fails with `` cargo-hauler daemon pid N (X.Y.Z) is still running 5s after the shutdown request; not restarted — retry once it has exited, or stop it with `hauler daemon stop` `` instead of parsing its payload or starting a second daemon. |
88
+ | `hauler daemon <run\|start\|stop\|status\|restart>` | Manage the daemon lifecycle. `stop` records its typed `shutdown` outcome in JSON and exits `0` only after a `shutting-down` acknowledgement followed by the original pid's exit, or when the daemon was already absent. Refusal, timeout, protocol error, disconnect before acknowledgement, and an acknowledged daemon still alive after 5 s exit `1`; `running` remains `true` when the original pid is alive and `null` when liveness could not be established. `restart` is the manual replacement: it sends the graceful stop, waits up to 5 s for the old pid to exit, then starts a daemon from this install and prints both (`restarted: pid 741314 (0.6.0) → pid 742001 (0.6.1)`); a daemon that has not exited by then is reported, not killed, and nothing is started (exit `1`). Tickets in flight are not handed over: the old daemon settles them itself as it shuts down — `killed`, error `daemon shutdown` — and callers resubmit (only rows a daemon that died without shutting down never marked are stamped `orphaned by daemon restart` by the next daemon's first ledger pass). After upgrading the package, every client entry — reads (`status`, `daemon status`, `log`, `last`, `await`, `result`, the dashboard and MCP tools), writes, and hooks — checks the daemon version before requesting a versioned payload and replaces a daemon from the previous install automatically. When the old daemon has not exited within the grace, the command fails with `` cargo-hauler daemon pid N (X.Y.Z) is still running 5s after the shutdown request; not restarted — retry once it has exited, or stop it with `hauler daemon stop` `` instead of parsing its payload or starting a second daemon. |
89
89
  | `hauler install-shim [--dir DIR] [--real-cargo PATH] [--force]` | Install the optional PATH shim. |
90
90
  | `hauler web [--port N] [--no-open]` | Open the dashboard from the checkout, npm package, or installed plugin. Agent Bundle's generated web command serves the built App against the plugin's own `hauler` server, opens it populated by `hauler_status`, and stays in the foreground until Ctrl-C. In an MCP host, call `hauler_status` instead. |
91
91
 
@@ -635,7 +635,7 @@ Per-host notes and hook timeouts are in [docs/install.md](docs/install.md).
635
635
 
636
636
  | Variable | Default | Meaning |
637
637
  | --- | --- | --- |
638
- | `CARGO_HAULER_STATE_DIR` | Per-user cache directory | Unix socket or Windows named pipe source, SQLite ledger, daemon log, pid lock, `hook-state.json`, `hook-events.jsonl`, and the per-ticket output logs under `tickets/`. |
638
+ | `CARGO_HAULER_STATE_DIR` | Per-user cache directory | Unix socket or Windows named pipe source, SQLite ledger, daemon log, pid lock, `hook-state.json`, `hook-events.jsonl`, and the per-ticket output logs under `tickets/`. Owner-private on Linux and macOS: the directory is `0700` and its sensitive files `0600`, and an unsafe or unowned path is refused rather than reused. |
639
639
  | `CARGO_HAULER_CARGO_BIN` | `$CARGO_HOME/bin/cargo` | Cargo binary for daemon-started work; bare `cargo` is the last fallback. Never resolved through `PATH`. Read from the daemon's own environment (export it where the daemon starts, or before `hauler daemon start`); clients do not forward it. |
640
640
  | `CARGO_HAULER_MAX_CONCURRENT` | cores ÷ 8, clamped to 5–16 | Global admission permits for Cargo processes across all lanes; an integer >= 1. |
641
641
  | `CARGO_HAULER_OVERLAP_EXECUTION` | `1` | Hand a lane to its next request once a `test`/`nextest`/`bench`/`run` leader reports its build finished, overlapping the next compile with the leader's execution phase. `0` keeps a lane strictly one process at a time. |
@@ -672,11 +672,50 @@ as a warning (daemon log, or stderr for hand-run commands) and the default
672
672
  applies; only `0` or `off` disables an arm that documents that contract.
673
673
  The state directory defaults to `$XDG_CACHE_HOME/cargo-hauler`, otherwise
674
674
  `~/.cache/cargo-hauler` on Linux, `~/Library/Caches/cargo-hauler` on macOS, and
675
- `%LOCALAPPDATA%\cargo-hauler` on Windows. When `CARGO_HAULER_KACHE_INDEX` is
675
+ `%LOCALAPPDATA%\cargo-hauler` on Windows. Its contents are owner-private, and
676
+ the daemon is a single user's, not a shared service — see
677
+ [State directory ownership](#state-directory-ownership). When
678
+ `CARGO_HAULER_KACHE_INDEX` is
676
679
  unset, the daemon reads kache's configured local store from
677
680
  `$XDG_CONFIG_HOME/kache/config.toml` or `~/.config/kache/config.toml` and opens
678
681
  `<local_store>/index.db` read-only.
679
682
 
683
+ ### State directory ownership
684
+
685
+ The daemon is local control for the user who owns its state directory, not a
686
+ shared multi-user service. Everything under the state directory — complete
687
+ command output in `tickets/`, the ledger, the daemon log, the passthrough
688
+ spool, the hook records, the jobserver FIFO, the control socket — is that
689
+ one account's, and there is no mechanism for a second user to submit work to
690
+ another user's daemon.
691
+
692
+ On Linux and macOS the daemon enforces that boundary rather than inheriting
693
+ it from the umask:
694
+
695
+ - Directories cargo-hauler creates are `0700`, and sensitive files `0600`,
696
+ whatever umask the invoking shell had. An existing state directory that
697
+ the running user already owns is tightened in place on the next start;
698
+ its contents are preserved.
699
+ - Only the state directory and the entries cargo-hauler owns are changed. A
700
+ parent you configured through `CARGO_HAULER_STATE_DIR` — a shared volume,
701
+ a RAM disk — is never chmod'ed.
702
+ - A state path that is a symbolic link, is the wrong kind of entry, or is
703
+ owned by another user is refused by name instead of being followed,
704
+ chmod'ed, or deleted. Fix or remove the path and start again; cargo-hauler
705
+ will not act on another account's file on your behalf.
706
+ - When the state directory is too deep for the kernel's socket path limit,
707
+ the control socket moves to a `cargo-hauler-<uid>` directory (mode `0700`)
708
+ under `XDG_RUNTIME_DIR`, `TMPDIR`, or the system temporary directory —
709
+ never directly into a shared temporary root. Two accounts sharing one
710
+ temporary root get separate directories. A daemon from an earlier install
711
+ still listening at the previous relocated path is retired by the next
712
+ client under the usual one-version rule, and `hauler daemon stop` asks it
713
+ too before reporting nothing running, so upgrading needs no manual cleanup.
714
+
715
+ Windows has neither POSIX modes nor uids, and its control endpoint is a
716
+ named pipe rather than a filesystem entry, so none of the above applies
717
+ there; state files keep the permissions the filesystem gives them.
718
+
680
719
  ## Runtime behavior and caveats
681
720
 
682
721
  - Hook and client transport failures fail open: a hook passes the original
@@ -946,8 +985,9 @@ Workbench's MCP page preview the same App with live rebuilds. The repository
946
985
  ships no preview harness of its own.
947
986
 
948
987
  agent-bundle does not yet have an npm release; this repository pins the
949
- [pkg.pr.new](https://pkg.pr.new) preview of Agent Bundle PR #733 commit
950
- [`5064133`](https://github.com/ScriptedAlchemy/agent-bundle/commit/506413326359bff154ce4476eb0f47b0dabf4efe)
988
+ [pkg.pr.new](https://pkg.pr.new) preview of Agent Bundle main commit
989
+ [`b807ca0`](https://github.com/ScriptedAlchemy/agent-bundle/commit/b807ca0eea5c0d5744350e1fa8829e3d59c3c0b8),
990
+ merged by [Agent Bundle PR #772](https://github.com/ScriptedAlchemy/agent-bundle/pull/772),
951
991
  for both `agent-bundle` and `@agent-bundle/runtime`. `inspect` reports the
952
992
  `agent` component kind as unavailable on every host (agent-bundle G5
953
993
  deferral); this plugin defines no agents.