cargo-hauler 0.4.1 → 0.4.2
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.
- package/CHANGELOG.md +8 -0
- package/README.md +10 -4
- package/artifact/agent-bundle.manifest.json +1 -1
- package/artifact/claude/.claude-plugin/marketplace.json +1 -1
- package/artifact/claude/.claude-plugin/plugin.json +1 -1
- package/artifact/claude/INSTALL.md +1 -1
- package/artifact/claude/bin/cargo-hauler-flight.mjs +128 -10
- package/artifact/claude/bin/cargo-hauler.mjs +147 -12
- package/artifact/claude/hooks/event-route-session-start.mjs +2 -2
- package/artifact/claude/hooks/event-route-stop.mjs +2 -2
- package/artifact/claude/hooks/event-route-tool-after.mjs +2 -2
- package/artifact/claude/hooks/event-route-tool-before.mjs +2 -2
- package/artifact/claude/hooks/hooks-flight.mjs +2 -2
- package/artifact/claude/mcp/mcp-hauler-2b8242f9-flight.mjs +138 -11
- package/artifact/claude/mcp/mcp-hauler-2b8242f9.mjs +131 -8
- package/artifact/claude/mcp-apps/dashboard.html +1 -1
- package/artifact/claude/scripts/hauler.mjs +29 -9
- package/artifact/claude/skills/cargo-hauler/SKILL.md +4 -1
- package/artifact/claude/skills/hauler-dashboard/SKILL.md +1 -8
- package/artifact/codex/.codex-plugin/plugin.json +1 -1
- package/artifact/codex/INSTALL.md +1 -1
- package/artifact/codex/bin/cargo-hauler-flight.mjs +128 -10
- package/artifact/codex/bin/cargo-hauler.mjs +147 -12
- package/artifact/codex/hooks/event-route-session-start.mjs +2 -2
- package/artifact/codex/hooks/event-route-stop.mjs +2 -2
- package/artifact/codex/hooks/event-route-tool-after.mjs +2 -2
- package/artifact/codex/hooks/event-route-tool-before.mjs +2 -2
- package/artifact/codex/hooks/hooks-flight.mjs +2 -2
- package/artifact/codex/mcp/mcp-hauler-2b8242f9-flight.mjs +138 -11
- package/artifact/codex/mcp/mcp-hauler-2b8242f9.mjs +131 -8
- package/artifact/codex/mcp-apps/dashboard.html +1 -1
- package/artifact/codex/scripts/hauler.mjs +29 -9
- package/artifact/codex/skills/cargo-hauler/SKILL.md +4 -1
- package/artifact/codex/skills/hauler-dashboard/SKILL.md +1 -8
- package/artifact/cursor/.cursor-plugin/plugin.json +1 -1
- package/artifact/cursor/INSTALL.md +1 -1
- package/artifact/cursor/bin/cargo-hauler-flight.mjs +128 -10
- package/artifact/cursor/bin/cargo-hauler.mjs +147 -12
- package/artifact/cursor/hooks/event-route-session-start.mjs +2 -2
- package/artifact/cursor/hooks/event-route-stop.mjs +2 -2
- package/artifact/cursor/hooks/event-route-tool-after.mjs +2 -2
- package/artifact/cursor/hooks/event-route-tool-before.mjs +2 -2
- package/artifact/cursor/hooks/hooks-flight.mjs +2 -2
- package/artifact/cursor/install.mjs +1 -1
- package/artifact/cursor/mcp/mcp-hauler-2b8242f9-flight.mjs +138 -11
- package/artifact/cursor/mcp/mcp-hauler-2b8242f9.mjs +131 -8
- package/artifact/cursor/mcp-apps/dashboard.html +1 -1
- package/artifact/cursor/scripts/hauler.mjs +29 -9
- package/artifact/cursor/skills/cargo-hauler/SKILL.md +4 -1
- package/artifact/cursor/skills/hauler-dashboard/SKILL.md +1 -8
- package/artifact/portable/INSTALL.md +1 -1
- package/artifact/portable/bin/cargo-hauler-flight.mjs +128 -10
- package/artifact/portable/bin/cargo-hauler.mjs +147 -12
- package/artifact/portable/install.mjs +1 -1
- package/artifact/portable/mcp/mcp-hauler-2b8242f9-flight.mjs +137 -10
- package/artifact/portable/mcp/mcp-hauler-2b8242f9.mjs +130 -7
- package/artifact/portable/mcp-apps/dashboard.html +1 -1
- package/artifact/portable/plugin.json +1 -1
- package/artifact/portable/scripts/hauler.mjs +29 -9
- package/artifact/portable/skills/cargo-hauler/SKILL.md +4 -1
- package/artifact/portable/skills/hauler-dashboard/SKILL.md +1 -8
- package/dist/bin/cargo-hauler-flight.mjs +128 -10
- package/dist/bin/cargo-hauler.js +147 -12
- package/dist/bin/hauler.js +29 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 747f311: Remove `scripts/preview-dashboard.mjs`; preview the dashboard App through `agent-bundle dev` (the Workbench MCP page previews `ui://cargo-hauler/dashboard.html` over its bound session), and point the `hauler-dashboard` skill and README at it (#49)
|
|
8
|
+
- c5bfc4b: Add `hauler kill <ticket>` and the `hauler_kill` tool: a queued ticket is dropped, a running one has its cargo process group terminated (SIGTERM, then SIGKILL after `CARGO_HAULER_KILL_GRACE_MS`) and its lane freed, with riders settled by the daemon. The skill and session context now say to use it instead of killing cargo PIDs (#46). The `maxWaitMs` ceiling on `await` is reported in plain words rather than a raw validator payload (#47).
|
|
9
|
+
- 5f89f16: Merged-output runs (`cargo run 2>&1`, a shared terminal) strip cargo's captured color when the shared descriptor is not a color-capable TTY, matching direct cargo's `auto`, and the merge is honoured in passthrough runs too. `hauler await` / `hauler_await` subtract the time already spent fetching the ticket snapshot from the daemon wait, so the worst case stays under the render session. A failed run times its own intent for retries but no longer feeds the per-crate priors shared with other intents.
|
|
10
|
+
|
|
3
11
|
## 0.4.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -136,6 +136,7 @@ the same filter as its `session` field). Results carry
|
|
|
136
136
|
| `tool:hauler/hauler_last` · `cli:last` | most recent request | `LastDocument` |
|
|
137
137
|
| `tool:hauler/hauler_await` · `cli:await` | long-poll a ticket (≤ 2 h) | `AwaitStream` → `AwaitDocument` |
|
|
138
138
|
| `tool:hauler/hauler_result` · `cli:result` | one ticket, live tail while running | `ResultDocument` |
|
|
139
|
+
| `tool:hauler/hauler_kill` · `cli:kill` | stop a queued or running ticket | `KillDocument` |
|
|
139
140
|
| `tool:hauler/hauler_request` · `cli:request` | submit a background request | `RequestDocument` |
|
|
140
141
|
| `cli:daemon` | `run` / `start` / `stop` / `status` | plain JSON, exit code from the result |
|
|
141
142
|
| `event:session/start` | new session | daemon state and the no-kill rule as context |
|
|
@@ -221,13 +222,14 @@ executable beside it (`dist/bin/cargo-hauler.js` in the package,
|
|
|
221
222
|
| `hauler last` | The most recent request. |
|
|
222
223
|
| `hauler await <ticket> [--max-wait-ms N]` | Long-poll until the ticket finishes or the wait expires (default 30 s, ceiling 55 s per call — the rendered-route budget; call again to keep waiting). |
|
|
223
224
|
| `hauler result <ticket>` | A stored ticket; running tickets include a live output tail. |
|
|
225
|
+
| `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. |
|
|
224
226
|
| `hauler request [--session ID] [--host HOST] [--cwd DIR] -- <cargo …>` | Submit a background request and return its ticket. |
|
|
225
227
|
| `hauler daemon <run\|start\|stop\|status>` | Manage the daemon lifecycle. |
|
|
226
228
|
| `hauler install-shim [--dir DIR] [--real-cargo PATH] [--force]` | Install the optional PATH shim. |
|
|
227
229
|
|
|
228
230
|
The `hauler` MCP server projects the same operations as `hauler_status`,
|
|
229
|
-
`hauler_log`, `hauler_last`, `hauler_await`, `hauler_result`,
|
|
230
|
-
`hauler_request`, with the same filters as the CLI.
|
|
231
|
+
`hauler_log`, `hauler_last`, `hauler_await`, `hauler_result`, `hauler_kill`,
|
|
232
|
+
and `hauler_request`, with the same filters as the CLI.
|
|
231
233
|
|
|
232
234
|
## Testing
|
|
233
235
|
|
|
@@ -467,12 +469,16 @@ pnpm run build # artifact/{claude,codex,cursor,portable} and dist/bin
|
|
|
467
469
|
pnpm run inspect # per-host component accounting
|
|
468
470
|
pnpm run doctor # installed copies versus the artifact
|
|
469
471
|
pnpm run check # the gate
|
|
470
|
-
node scripts/preview-dashboard.mjs --port 4941 # dashboard outside an MCP host
|
|
471
472
|
```
|
|
472
473
|
|
|
474
|
+
To see the dashboard outside an MCP host, run `pnpm run dev` and open the
|
|
475
|
+
Workbench's MCP page: it binds a session to the generated `hauler` server and
|
|
476
|
+
previews the `ui://cargo-hauler/dashboard.html` App over that session, so the
|
|
477
|
+
data is the daemon's own. The repository ships no preview harness of its own.
|
|
478
|
+
|
|
473
479
|
agent-bundle does not yet have an npm release; this repository pins the
|
|
474
480
|
[pkg.pr.new](https://pkg.pr.new) preview of main commit
|
|
475
|
-
[`
|
|
481
|
+
[`886b1921f`](https://github.com/ScriptedAlchemy/agent-bundle/commit/886b1921f64f7b857528acda32d94c4d0df9bba7)
|
|
476
482
|
for both `agent-bundle` and `@agent-bundle/runtime`. `inspect` reports the
|
|
477
483
|
`agent` component kind as unavailable on every host (agent-bundle G5
|
|
478
484
|
deferral); this plugin defines no agents. Two framework limitations observed
|