fix #13
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_foundry#13
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?
first check /code_manage_development_branch
then make sure that we have $servicename_ui and $servicename
the last one is the cli which uses the $servicename_sdk
check all carrefully and fix what needs to be fixed
check /hero_proc_service_selfstart
and that we cleanly start in makefile
can always learn from e.g. ../hero_redis
Implementation Spec for Issue #13
Objective
Align hero_foundry's crate naming, binary naming, CLI structure, self-start lifecycle pattern, and Makefile targets with the conventions established in hero_redis.
Gap Analysis
hero_redis_serverwithHeroLifecycle+LifecycleCommandhero_foundry_serverusesHeroServer::run_raw()hero_redis_uihero_foundry_admin(wrong name)hero_foundry_uihero_redis(core lib)hero_foundry_lib(doesn't use SDK)hero_foundry, add SDK depImplementation Plan
Step 1: Rename
hero_foundry_admin→hero_foundry_uiStep 2: Rename
hero_foundry_lib→hero_foundryhero_foundry_sdkdependencyStep 3: Convert
hero_foundry_serverto lifecycle CLI patternHeroServer::run_raw()with explicitHeroLifecycle+LifecycleCommand+ServesubcommandStep 4: Update
buildenv.sh"hero_foundry_server hero_foundry_ui"Step 5: Update
Makefileto hero_proc self-start patternStep 6: Verify compilation and fix remaining references
cargo check --workspacecargo test --workspaceAcceptance Criteria
hero_foundry_adminrenamed tohero_foundry_uihero_foundry_librenamed tohero_foundryhero_foundryCLI depends onhero_foundry_sdkhero_foundry_serveruses HeroLifecycle + LifecycleCommand patternbuildenv.shlists correct binariescargo check --workspacesucceedsTest Results
cargo check --workspace✅cargo test --workspace✅Changes Made
Step 1: Renamed
hero_foundry_admin→hero_foundry_uicrates/hero_foundry_admin→crates/hero_foundry_uihero_foundry_ui.sock)Cargo.tomlStep 2: Renamed
hero_foundry_lib→hero_foundrycrates/hero_foundry_lib→crates/hero_foundryhero_foundry_sdkdependencyStep 3: Converted
hero_foundry_serverto lifecycle CLI patternHeroServer::run_raw()with explicitHeroLifecycle+LifecycleCommand+Servesubcommandrun,start,stop,status,logs,serveStep 4: Updated
buildenv.sh"hero_foundry hero_foundry_server hero_foundry_ui"Step 5: Updated
Makefileto hero_proc self-start patternrun,start,stop,restart,logs,logs-ui,status,rundev,installdevinstallto useinstall_binariesfrombuild_lib.shNotes
hero_foundry_admin,hero_foundry_lib)Implementation committed:
27d0007— main changes (crate renames, lifecycle CLI, Makefile)366e527— fix ALL_FEATURES in buildenv.sh for build_lib.sh compatibilityBrowse:
27d0007Browse:
366e527