feat(services): add service_shrimp.nu lifecycle module #170
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_service_shrimp_lifecycle"
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
service_shrimp.nu, the Hero shell lifecycle module for thehero_shrimpstack. The module exposesinstall | start [--reset] [--update] [--release] | stop | status, registers two hero_proc actions (hero_shrimp_server,hero_shrimp_ui) plus thehero_shrimpservice, and follows the canonical Rust-multi-binary selfstart pattern documented innu_service/nu_service_use/hero_proc_service_selfstart.Single-instance, user-level — no
--root, no--instance, noresetsubcommand. LLM provider keys (OPENROUTER_API_KEYS,OPENAI_API_KEYS,ANTHROPIC_API_KEYS,GROQ_API_KEYS,SAMBANOVA_API_KEYS) plusSHRIMP_HOMEandSHRIMP_DATA_DIRare forwarded from the invoking shell into the server action env when set. A non-fatal preflight prints a warning if no provider keys are present.Related Issue
Closes #155
Changes
tools/modules/services/service_shrimp.nu(282 lines)SVX_SERVICE_NAME,SVX_FORGE_LOC,SVX_BINARIES(4 bins),SVX_ACTIONS(2 actions),SVX_DESCRIPTION,SVX_PROVIDER_KEYS.hero_shrimp_server(rpc + admin sockets inkill_other, rpc.sock health-checked) andhero_shrimp_ui(ui.sock).startsummary block prints sockets, hero_router UI URL, data dir, and a short test plan.tools/modules/services/mod.nu—export use service_shrimp.nu.Test results
Parse-and-export smoke check, 5/5 passed:
use services/mod.nu *parsesservice_shrimp installhelpservice_shrimp starthelpservice_shrimp stophelpservice_shrimp statushelpstartexposes--reset(-r),--update(-u),--release. No--rootor--instanceon any subcommand. End-to-end install/start/stop on a host requires hero_proc running andlhumina_code/hero_shrimpreachable; left for operator validation.