Add zinit lifecycle to UI binary (hero_aibroker_ui) #23
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_aibroker#23
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?
Problem
The server binary (
hero_aibroker_openrpc, soonhero_aibroker_server) already has zinit lifecycle CLI subcommands (run,start,stop,serve,status,logs), but the UI/HTTP binary does not.Per the hero_os reference implementation, both
_serverand_uibinaries must support the same zinit lifecycle subcommands.What to do
run— start via zinit + stream logs + stop on Ctrl-Cstart— register with zinit, start in backgroundstop— stop the zinit-managed serviceserve— actually run the HTTP server (internal, zinit calls this)status/logs— query zinitlifecycle.rs(or reuse from server) withZinitLifecyclecargo run -p hero_aibroker_ui -- runfor UI startupReference
crates/hero_os_ui/src/main.rsondevelopment_timurbranchThe server binary already has zinit lifecycle (commits
0c273a0+415ac19ondevelopment_timur, PR #21).The
lifecycle.rsmodule and CLI pattern can be reused directly for the UI binary. The reference implementation ishero_os_ui(crates/hero_os_ui/src/main.rsondevelopment_timurbranch of hero_os).