feat(fleet-launcher): introduce kitty spawn + heartbeat crate#158
Merged
Conversation
Ports the kitty-spawn path from ~/Documents/hcom (terminal.rs) into a small standalone API for codex-fleet supervisors and tooling. - lib.rs: CLI spawn surface (codex / claude / gemini / claw) - heartbeat.rs: presence/heartbeat file + sysinfo-based liveness checks - bin/spawn.rs: fleet-spawn CLI Workspace registers it automatically via the existing `fleet-*` glob. This lands the previously-staged crate so the dependent CliConvention refactor (agent/refactor-cli-convention-trait) can be rebased onto main and merged as a follow-up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports the kitty-spawn path from
~/Documents/hcom(terminal.rs) into a small standalone API for codex-fleet supervisors and tooling.lib.rs— CLI spawn surface (codex / claude / gemini / claw)heartbeat.rs— presence/heartbeat file +sysinfo-based liveness checksbin/spawn.rs—fleet-spawnCLIWorkspace registers it automatically via the existing
fleet-*glob inrust/Cargo.toml— no workspace manifest edit needed.Why now
This crate has been staged-but-uncommitted on the primary checkout for a while. Landing it unblocks a follow-up refactor PR (
agent/refactor-cli-convention-trait) that introduces aCliConventiontrait to replace the per-CLI match inbuild_command_line(). That refactor is held locally until this lands.Deps added
libc 0.2,sysinfo 0.32(default-features disabled,systemfeature only),jiff 0.2— plus their transitives inCargo.lock(+204 lines).Test plan
cargo check -p fleet-launcher— cleancargo test -p fleet-launcher— 12/12 pass (lib + heartbeat unit tests)fleet-spawnbinary end-to-end (kitty window spawn) — not run in CI, requires interactive kitty