rename all to hero_proc #4

Closed
opened 2026-03-18 05:38:04 +00:00 by despiegk · 4 comments
Owner

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 !!!!

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 !!!!
Author
Owner

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

  • ~246 files contain "zinit" references
  • ~3,098 total occurrences
  • 7 crate directories to rename under crates/
  • 4 binary targets: zinithero_proc, zinit_serverhero_proc_server, zinit_uihero_proc_ui, zinit_pid1hero_proc_pid1

Naming Convention

Old New
zinit (crate/binary) hero_proc
zinit_server hero_proc_server
zinit_sdk hero_proc_sdk
zinit_lib hero_proc_lib
zinit_ui hero_proc_ui
zinit_pid1 hero_proc_pid1
ZinitDb HeroProcDb
ZinitRPCAPIClient HeroProcRPCAPIClient
ZINIT_* env vars HERO_PROC_*
zinit.sock / zinit.db hero_proc.sock / hero_proc.db
Zinit (display) HeroProc

Implementation 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 --workspace compiles successfully
  • cargo test --workspace passes all tests
  • No remaining "zinit" in source (excluding Cargo.lock, generated files)
  • All 4 binaries produced with new names
  • Environment variables use HERO_PROC_ prefix
  • Socket/DB paths default to hero_proc_server.sock / hero_proc.db
## 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 - **~246 files** contain "zinit" references - **~3,098 total occurrences** - **7 crate directories** to rename under `crates/` - **4 binary targets**: `zinit` → `hero_proc`, `zinit_server` → `hero_proc_server`, `zinit_ui` → `hero_proc_ui`, `zinit_pid1` → `hero_proc_pid1` ### Naming Convention | Old | New | |---|---| | `zinit` (crate/binary) | `hero_proc` | | `zinit_server` | `hero_proc_server` | | `zinit_sdk` | `hero_proc_sdk` | | `zinit_lib` | `hero_proc_lib` | | `zinit_ui` | `hero_proc_ui` | | `zinit_pid1` | `hero_proc_pid1` | | `ZinitDb` | `HeroProcDb` | | `ZinitRPCAPIClient` | `HeroProcRPCAPIClient` | | `ZINIT_*` env vars | `HERO_PROC_*` | | `zinit.sock` / `zinit.db` | `hero_proc.sock` / `hero_proc.db` | | `Zinit` (display) | `HeroProc` | ### Implementation 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 --workspace` compiles successfully - [ ] `cargo test --workspace` passes all tests - [ ] No remaining "zinit" in source (excluding Cargo.lock, generated files) - [ ] All 4 binaries produced with new names - [ ] Environment variables use `HERO_PROC_` prefix - [ ] Socket/DB paths default to `hero_proc_server.sock` / `hero_proc.db`
Author
Owner

Implementation Complete

Changes Made

  • Renamed 7 crate directories: zinit*hero_proc* under crates/
  • Renamed 4 non-crate directories: etc/zinit, examples/rhai/zinit, docs/zinit_openrpc, docs/zinitdb_oschema
  • Updated all Cargo.toml files (workspace + 8 crates) with new package/binary/dependency names
  • Updated openrpc.json title: "Zinit RPC API" → "HeroProc RPC API"
  • Global find/replace across ~246 files:
    • Crate/binary names: zinit_*hero_proc_*
    • Struct names: ZinitDbHeroProcDb, ZinitRPCAPIClientHeroProcRPCAPIClient, etc.
    • Environment variables: ZINIT_*HERO_PROC_*
    • File paths: zinit.sockhero_proc.sock, zinit.dbhero_proc.db, etc.
    • Display names: ZinitHeroProc
    • Config paths: cfg/zinitcfg/hero_proc, /etc/zinit//etc/hero_proc/

Build Results

cargo build --workspaceSUCCESS (1 minor pre-existing warning)

Test Results

  • Total: 76 (73 passed, 3 failed)
  • 3 failures are PRE-EXISTING — tests for config import, config diff, and reload CLI subcommands that don't exist in the codebase
  • 0 new failures from the rename

Verification

  • No remaining zinit references in source files (excluding Cargo.lock, generated files, and Docker root password)
  • All 4 binaries produced: hero_proc, hero_proc_server, hero_proc_ui, hero_proc_pid1
## Implementation Complete ### Changes Made - Renamed 7 crate directories: `zinit*` → `hero_proc*` under `crates/` - Renamed 4 non-crate directories: `etc/zinit`, `examples/rhai/zinit`, `docs/zinit_openrpc`, `docs/zinitdb_oschema` - Updated all Cargo.toml files (workspace + 8 crates) with new package/binary/dependency names - Updated openrpc.json title: "Zinit RPC API" → "HeroProc RPC API" - Global find/replace across ~246 files: - Crate/binary names: `zinit_*` → `hero_proc_*` - Struct names: `ZinitDb` → `HeroProcDb`, `ZinitRPCAPIClient` → `HeroProcRPCAPIClient`, etc. - Environment variables: `ZINIT_*` → `HERO_PROC_*` - File paths: `zinit.sock` → `hero_proc.sock`, `zinit.db` → `hero_proc.db`, etc. - Display names: `Zinit` → `HeroProc` - Config paths: `cfg/zinit` → `cfg/hero_proc`, `/etc/zinit/` → `/etc/hero_proc/` ### Build Results ✅ `cargo build --workspace` — **SUCCESS** (1 minor pre-existing warning) ### Test Results - **Total: 76** (73 passed, 3 failed) - **3 failures are PRE-EXISTING** — tests for `config import`, `config diff`, and `reload` CLI subcommands that don't exist in the codebase - **0 new failures** from the rename ### Verification - No remaining `zinit` references in source files (excluding Cargo.lock, generated files, and Docker root password) - All 4 binaries produced: `hero_proc`, `hero_proc_server`, `hero_proc_ui`, `hero_proc_pid1`
Author
Owner

Implementation committed: 191b91c

Browse: lhumina_code/hero_proc@191b91c

Implementation committed: `191b91c` Browse: https://forge.ourworld.tf/lhumina_code/hero_proc/commit/191b91c
Author
Owner

Integration Test Results — 27/27 PASSED

Second commit 3327b2a: fixed --hero-proc-socket--hero-socket and added comprehensive rename verification tests.

1. Binary naming (6/6)

  • hero_proc binary exists
  • hero_proc_server binary exists
  • hero_proc_ui binary exists
  • hero_proc_pid1 binary exists
  • hero_proc --version → hero_proc 0.4.0
  • hero_proc_server --version → hero_proc_server 0.4.0

2. CLI flag naming (4/4)

  • hero_proc_ui uses --hero-socket
  • hero_proc_ui does NOT have --hero-proc-socket
  • hero_proc_server uses --socket
  • hero_proc uses --socket

3. Server start / health / stop lifecycle (6/6)

  • server starts and socket created
  • health check returns healthy
  • list shows no services (empty state)
  • add service succeeds
  • status shows service
  • server stopped after shutdown

4. Makefile target naming (4/4)

  • make help mentions HeroProc
  • make help contains no zinit references
  • make status works and shows hero_proc paths
  • make status contains no zinit references

5. Source code: no zinit references (5/5)

  • 0 zinit references in .rs files
  • 0 zinit references in .toml files
  • 0 zinit references in docs/scripts
  • 0 zinit references in Makefile
  • 0 ZINIT_ env var references

6. Directory naming (2/2)

  • no old zinit crate directories remain
  • all hero_proc crate directories exist
## Integration Test Results — 27/27 PASSED Second commit `3327b2a`: fixed `--hero-proc-socket` → `--hero-socket` and added comprehensive rename verification tests. ### 1. Binary naming (6/6) - ✅ hero_proc binary exists - ✅ hero_proc_server binary exists - ✅ hero_proc_ui binary exists - ✅ hero_proc_pid1 binary exists - ✅ hero_proc --version → `hero_proc 0.4.0` - ✅ hero_proc_server --version → `hero_proc_server 0.4.0` ### 2. CLI flag naming (4/4) - ✅ hero_proc_ui uses `--hero-socket` - ✅ hero_proc_ui does NOT have `--hero-proc-socket` - ✅ hero_proc_server uses `--socket` - ✅ hero_proc uses `--socket` ### 3. Server start / health / stop lifecycle (6/6) - ✅ server starts and socket created - ✅ health check returns healthy - ✅ list shows no services (empty state) - ✅ add service succeeds - ✅ status shows service - ✅ server stopped after shutdown ### 4. Makefile target naming (4/4) - ✅ `make help` mentions HeroProc - ✅ `make help` contains no zinit references - ✅ `make status` works and shows hero_proc paths - ✅ `make status` contains no zinit references ### 5. Source code: no zinit references (5/5) - ✅ 0 zinit references in .rs files - ✅ 0 zinit references in .toml files - ✅ 0 zinit references in docs/scripts - ✅ 0 zinit references in Makefile - ✅ 0 ZINIT_ env var references ### 6. Directory naming (2/2) - ✅ no old zinit crate directories remain - ✅ all hero_proc crate directories exist
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_proc_archive#4
No description provided.