feat(services): add service_os.nu #78
No reviewers
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_skills!78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_service_os"
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?
Summary
Adds
tools/modules/services/service_os.nu, a lifecycle module for thehero_osservice (server + UI binaries) withinstall | start | stop | statussubcommands. Mirrors the existing two-binary pattern fromservice_browser.nu.Related
Changes
tools/modules/services/service_os.nu— new module (~335 lines). Registershero_os_serverandhero_os_uias hero_proc actions plus thehero_osservice. Surfaces both Unix sockets and thehttp+unix://…/ui.sock/URL in the start summary. Warns (does not fail) when the WASM asset bundle at~/hero/share/hero_os/public/is missing, with the exact remediation commands.tools/modules/services/mod.nu— addexport use service_os.nu.--rootis optional on every command; user-level is the default.Test Results
End-to-end smoke test on the Hetzner box from a clean state (no hero_proc, no hero_os pre-built):
service_proc install --roothero_procworkspace built, 3/3 binaries copiedservice_proc start --rootservice_os install --roothero_osworkspace built, 3/3 binaries copiedservice_os start --reset --rootstate: running, summary block printed with rpc sock, ui sock, UI URLservice_os status --rootname: hero_os,state: running,pid,restarts,current_run_idservice_os stop --rootservice_os status --root(post-stop)service 'hero_os' not foundRPC errorFull per-step output is on issue #77.
One bug was caught and fixed during the smoke test: an interpolated
$"…"string contained literal parentheses that nu parsed as a subexpression. Replaced with a plain double-quoted string.