service_editor.nu — hero_editor lifecycle module #156
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#156
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?
Add
service_editor.nuper the tracker in #75. Module exposesinstall | start [--reset] | stop | statusfor thehero_editorstack.Scope
tools/modules/services/service_editor.nunu_serviceandnu_service_useskills.service_browser.nu(user-level) — but note hero_editor has no manager binary, so register the server + UI as two separate hero_proc actions.hero_editor.Service-specific notes
~/hero/bin/(perbuildenv.sh::BINARIES):hero_editor_server,hero_editor_ui. There is nohero_editormanager binary, so theservice_editor.numodule must register both binaries directly with hero_proc (no selfstart umbrella).buildenv.sh::PORTS=""— no privileged ports. No--root.scripts/minify.js). Reuse the existinginstallers.nu::install_bunhelper (already used byservice_books.nu); call it from the module'sinstallstep the same way.2769in standalone dev. For hero_proc deployment, confirm whether the binaries can bind a Unix socket under~/hero/var/sockets/hero_editor/— if not, a small repo-level change is needed (a sibling task, not blocking this issue).hero_editor_server,hero_editor_sdk,hero_editor_ui,hero_editor_examples(the canonical four-crate hero_skills layout).make installthenmake runis the dev path; the nu module'sinstallshould runcargo build --releaseplus thebunbundle/minify step (or themake installthat wraps both).Acceptance criteria
use services/mod.nu *makesservice_editoravailable.service_editor installclones the repo, ensures bun is present (viainstall_bun), runs the bundle/minify + cargo build, and copieshero_editor_server+hero_editor_uito~/hero/bin/.service_editor start [--reset]registers both binaries as separate hero_proc actions and becomes healthy.service_editor statusreports state for both.service_editor stopcleanly unregisters both.startoutput prints sockets / UI URL / a short test plan, per thenu_service_useskill.References
nu_service,nu_service_useinstallers.nu::install_bun(precedent in #137 /service_books.nu)Updated scope after research on the actual repo. Hero_editor is hybrid Rust + JS — two Rust binaries (
hero_editor_server+hero_editor_ui, no manager), with a JavaScript web component (CodeMirror + marked + highlight.js) minified at build time via bun. The bun dependency is build-time only and matches theinstall_bunprecedent fromservice_books.nu(#137). User-level service confirmed (PORTS="").