forked from geomind_code/zinit_archive2
Fresh start: merge TTY, polish, squash to single initial commit #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
hero_init was forked from geomind_code/zinit. Per Kristof: zinit splits into my_init (simplified, for zos) and hero_init (advanced, for Hero OS). The fork carries zinit history — we want a clean start.
Plan
Step 1: Merge TTY feature
development_tty2intodevelopment_home27(which has the zinit→hero_init rename)Step 2: Polish
cargo testandcargo clippycleanStep 3: Verify integration
hero_servicein hero_rpc works with polished hero_init_sdkStep 4: Squash history
developmentandmainhero_init keeps advanced features (vs my_init which strips them)
Crates
Detailed Implementation Plan
Prerequisites
forge.ourworld.tf/lhumina_code/hero_init(forked from zinit)development_home27: has full zinit→hero_init rename (224 files, compiles clean)development_tty2: has TTY/PTY feature (from zinit)Step 1: Merge TTY into renamed codebase
Key TTY files to merge:
crates/hero_init_server/src/supervisor/executor.rs— PTY spawning pathcrates/hero_init_server/src/rpc/— new PTY registry, attach endpointcrates/hero_init_server/src/web.rs— WebSocket endpointcrates/hero_init_ui/— xterm.js terminal componentcrates/hero_init/src/cli/—attachsubcommandcrates/hero_init_lib/—tty: boolfield on ActionSpecStep 2: Polish
README.md — rewrite for hero_init identity:
ARCHITECTURE.md — clean overview:
~/hero/var/sockets/hero_init_server.sock)Cargo.toml — update:
Binary names — verify:
hero_init(CLI)hero_init_server(server)hero_init_ui(web UI)hero_init_pid1(container init)Tests — fix and verify:
cargo test --workspacecargo clippy --workspaceStep 3: Verify hero_service integration
Step 4: Squash to initial commit
Verification Checklist
cargo check --workspace)grep -r zinit --include="*.rs" --include="*.toml")