Complete zinit → hero_proc migration + fix hero_proc_ui dashboard (#65) #65
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
hero_proc_ui loads but shows empty data — "Actions 0, Services 0, Runs 0, Jobs 0", no memory/CPU/network graphs, no process list. It should show full system stats, all running services (39+), jobs, logs, and an embedded terminal.
Expected (working state)
Current (broken)
Also: Admin toolbar says "Zinit" instead of "Proc"
Root cause
hero_proc_ui needs to connect to hero_proc_server.sock to get service/process/job data. The socket exists and hero_proc_server is running (39 services visible via
hero_proc list), but hero_proc_ui is not finding it.Fix approach
Repos
Signed-off-by: mik-tf
Fix hero_proc_ui dashboard and rename Zinit→Proc in admin toolbarto Complete zinit → hero_proc migration + fix hero_proc_ui dashboard (#65)Complete zinit → hero_proc Migration Plan
geomind_code/zinitis archived.lhumina_code/hero_procis the full replacement. Every remainingzinitreference across all repos must becomehero_proc(orprocfor display names). This supersedes #58.Root Cause of Empty Dashboard
hero_proc_uiis launched withoutHERO_PROC_UI_BASE_PATH=/hero_proc_ui. The reverse proxy strips the/hero_proc_uiprefix, but JavaScript sends requests to/rpc(the root) instead of/hero_proc_ui/rpc. One env var fix.Phase 1 — Build Pipeline Repos (fixes #65 visible bugs)
These 3 repos produce the Docker image. Changes verified by
make dist+make smoke.hero_archipelagos (~66 changes)
archipelagos/embed/zinit/→archipelagos/embed/proc/hero_archipelagos_zinit→hero_archipelagos_procZinitApp→ProcApp, CSS classes, iframe IDs, URLssrc/lib.rs: custom elementzinit-island→proc-islandsystem/service/andsystem/services/: descriptions,zinit_service.rsmoduleserver/src/main.rsiframe ID listhero_os (~85 changes)
island-zinit→island-proc(Cargo.toml, all#[cfg]attributes)hero_archipelagos_zinit→hero_archipelagos_proc"zinit"→"proc"in types.rs, config.toml, generated_profile.rs, registry.rs"Zinit"→"Proc"in types.rsZinitApp→ProcAppin island_content.rs"zinit"→"proc", URL →/hero_proc_ui/hero_services (~106 changes)
entrypoint.sh: addHERO_PROC_UI_BASE_PATH=/hero_proc_ui, removezinit_uisymlinkcargo-local-patches.toml: update crate name + pathservices/hero_os.toml: featureisland-zinit→island-procbuild-services.sh: remove zinit symlink logiczinit_ui→hero_proc_uiservice_data.rs: 10x"Zinit not connected"→"hero_proc not connected"job_build_manager.rs,job_test_manager.rs: commentsprofiles/tester.toml: section renamegit clone zinitsteps (no longer needed)preflight.sh: comment updatePhase 2 — Service Repos (compiled by
make dist)These repos are built by
build-services.sh. Changes compile-verified.hero_embedder (~127 changes)
zinit_client.rs→proc_client.rsZinitClient→ProcClientlib.rshero_osis (~8 changes)
hero_embedder::zinit_client::ZinitClient→hero_embedder::proc_client::ProcClienthero_inspector (~37 changes)
routes.rs: renamezinit_namesvariables, update error messages and JSON keysservice.htmltemplate: rename JS variables, update UI labels, fixZINIT_UI_BASEURLscanner.rs: update type mappingzinitcommands →hero_proccommands (~25 lines)hero_books (~86 changes)
hero_foundry (~84 changes)
server_functions.rs: renameregister_zinit_functions→register_hero_proc_functionsforgeserver_zinit_enable→forgeserver_hero_proc_enablehero_redis (~27 changes)
hero_voice (~14 changes)
hero_aibroker (~29 changes)
hero_biz (~6 changes)
hero_indexer / hero_indexer_ui (~13 changes)
Phase 3 — Non-build Repos
Not compiled by
make dist. Changes are mechanical renames.hero_rpc (~25 changes)
hero_compute (~163 changes)
ZINIT_SOCKET→HERO_PROC_SOCKEThero_lib (~172 changes)
validate_zinit()checksmos/launcher/steps.rs:/sbin/zinit→/sbin/hero_proc_pid1hero_skills (~524 changes)
Execution Plan
development_mikbranch in all affected reposmake dist(full WASM rebuild)make pack+make smoketo verifydevelopmentdevelopment_mikbranches~900+ total changes across 18 repos.
Signed-off-by: mik-tf
Done
Complete zinit → hero_proc migration landed on
developmentacross 16 repos:hero_archipelagos, hero_os, hero_services, hero_embedder, hero_osis, hero_inspector, hero_books, hero_foundry, hero_redis, hero_voice, hero_aibroker, hero_biz, hero_indexer, hero_indexer_ui, hero_proxy, hero_rpc
What was fixed
HERO_PROC_UI_BASE_PATH=/hero_proc_uinow set in entrypoint.sh. JavaScript sends RPC calls to correct URL.hero_archipelagos_zinit→hero_archipelagos_proc, full WASM rebuild).hero_proc_sdk::lifecyclemodule didn't exist. Inlined the start/stop pattern (matching hero_embedder). Follow-up: #66.[patch]and missing path entries that blocked compilation.Build verification
make dist: 19/19 services compiled (including full WASM rebuild)make smoke: 51/57 passed (5 failures are pre-existing aibroker/shrimp issues → #67)Remaining (Phase 3 — separate session)
make dist, need separate promptFollow-up issues
hero_proc_sdk::lifecycleshared helpersSigned-off-by: mik-tf