forked from geomind_code/zinit_archive2
rename all to hero_proc #4
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?
now its all called zinit
needs to become hero_proc
also change in all docs
give clear specs what to do and then make the rename and test properly
On branch development_kristof_ttyd !!!!
Implementation Spec: Rename "zinit" to "hero_proc"
Objective
Rename all internal references from "zinit" to "hero_proc" throughout the entire codebase — crate names, binary names, directory names, struct names, environment variables, file paths, socket paths, database paths, documentation, scripts, and configuration files.
Scope
crates/zinit→hero_proc,zinit_server→hero_proc_server,zinit_ui→hero_proc_ui,zinit_pid1→hero_proc_pid1Naming Convention
zinit(crate/binary)hero_proczinit_serverhero_proc_serverzinit_sdkhero_proc_sdkzinit_libhero_proc_libzinit_uihero_proc_uizinit_pid1hero_proc_pid1ZinitDbHeroProcDbZinitRPCAPIClientHeroProcRPCAPIClientZINIT_*env varsHERO_PROC_*zinit.sock/zinit.dbhero_proc.sock/hero_proc.dbZinit(display)HeroProcImplementation Plan
Step 1: Rename crate directories (git mv)
Step 2: Update all Cargo.toml files (workspace + crates)
Step 3: Update openrpc.json title
Step 4: Global find/replace in all .rs files
Step 5: Global find/replace in non-Rust files (.md, .sh, .rhai, .html, .js, .css, .json, Makefile, Dockerfile)
Step 6: Update openrpc_client macro path reference
Step 7: Build and fix any compilation errors
Step 8: Run tests
Step 9: Verify no remaining "zinit" references
Acceptance Criteria
cargo build --workspacecompiles successfullycargo test --workspacepasses all testsHERO_PROC_prefixhero_proc_server.sock/hero_proc.dbImplementation Complete
Changes Made
zinit*→hero_proc*undercrates/etc/zinit,examples/rhai/zinit,docs/zinit_openrpc,docs/zinitdb_oschemazinit_*→hero_proc_*ZinitDb→HeroProcDb,ZinitRPCAPIClient→HeroProcRPCAPIClient, etc.ZINIT_*→HERO_PROC_*zinit.sock→hero_proc.sock,zinit.db→hero_proc.db, etc.Zinit→HeroProccfg/zinit→cfg/hero_proc,/etc/zinit/→/etc/hero_proc/Build Results
✅
cargo build --workspace— SUCCESS (1 minor pre-existing warning)Test Results
config import,config diff, andreloadCLI subcommands that don't exist in the codebaseVerification
zinitreferences in source files (excluding Cargo.lock, generated files, and Docker root password)hero_proc,hero_proc_server,hero_proc_ui,hero_proc_pid1Implementation committed:
191b91cBrowse:
lhumina_code/hero_proc@191b91cIntegration Test Results — 27/27 PASSED
Second commit
3327b2a: fixed--hero-proc-socket→--hero-socketand added comprehensive rename verification tests.1. Binary naming (6/6)
hero_proc 0.4.0hero_proc_server 0.4.02. CLI flag naming (4/4)
--hero-socket--hero-proc-socket--socket--socket3. Server start / health / stop lifecycle (6/6)
4. Makefile target naming (4/4)
make helpmentions HeroProcmake helpcontains no zinit referencesmake statusworks and shows hero_proc pathsmake statuscontains no zinit references5. Source code: no zinit references (5/5)
6. Directory naming (2/2)