fix repo #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?
check & fix where needed this repo based on
skills
/hero_crates_best_practices_check
/hero_sockets
/hero_proc_service_selfstart
Implementation Spec — Issue #13: Fix Repo
Objective
Audit and fix the
hero_embedderworkspace to conform to three skill standards:/health,/.well-known/heroservice.json,/rpc,/openrpc.jsonendpointsstart/stop/servesubcommands viaHeroLifecycleGaps Found
Category 1: Crate Structure
buildenv.shBINARIES missinghero_embedder_proxycrates/hero_embedder_proxy/has no MakefileCategory 2: Sockets
hero_embedder_uisocket missing/.well-known/heroservice.jsonendpointhero_embedder_uisocket missing/openrpc.jsonendpointCategory 3: hero_proc_service_selfstart
hero_embedder_proxyhas nostart/stop/servesubcommands (bare binary, no HeroLifecycle)hero_embedder_proxy/Cargo.tomlmissinghero_rpc_serverdependencyCategory 4: Compile Issues
hero_embedder_server/src/main.rsmissinguse std::path::Path;import (barePath::newat line ~294)Files to Modify / Create
crates/hero_embedder_server/src/main.rsPathto importcrates/hero_embedder_ui/src/main.rs/.well-known/heroservice.jsonand/openrpc.jsonroutescrates/hero_embedder_ui/heroservice.jsoncrates/hero_embedder_ui/openrpc.jsoncrates/hero_embedder_proxy/Cargo.tomlhero_rpc_serverdependencycrates/hero_embedder_proxy/src/main.rsHeroLifecycle+LifecycleCommand+Servesubcommandcrates/hero_embedder_proxy/Makefilebuildenv.shhero_embedder_proxytoBINARIESImplementation Plan
Step 1 — Fix compile error:
Pathimport in serverFiles:
crates/hero_embedder_server/src/main.rsuse std::path::PathBuf;→use std::path::{Path, PathBuf};Step 2 — Add heroservice.json + openrpc.json to UI socket
Files:
crates/hero_embedder_ui/heroservice.json(create),crates/hero_embedder_ui/openrpc.json(create),crates/hero_embedder_ui/src/main.rs(modify)HEROSERVICE_JSONandOPENRPC_JSONstatic string includesheroservice_handler()andopenrpc_handler()functions/.well-known/heroservice.jsonand/openrpc.jsonroutesStep 3 — Add lifecycle management to hero_embedder_proxy
Files:
crates/hero_embedder_proxy/Cargo.toml,crates/hero_embedder_proxy/src/main.rshero_rpc_servergit dependencyArgsstruct withClihavingLifecycle(LifecycleCommand)andServesubcommandsrun_proxy()async functionHeroLifecycle::new("hero_embedder_proxy", ...)+ dispatch inmain()Step 4 — Create Makefile for hero_embedder_proxy
Files:
crates/hero_embedder_proxy/Makefile(create)build,check,test,clippy,fmttargetsStep 5 — Add hero_embedder_proxy to buildenv.sh BINARIES
Files:
buildenv.shhero_embedder_proxytoBINARIESexportAcceptance Criteria
cargo check --workspacepasses with zero errorshero_embedder_serverexposes all 4 mandatory endpointshero_embedder_uiexposes all 4 mandatory endpoints (including new heroservice + openrpc)hero_embedder_proxy start/stopwork viahero_prochero_embedder_proxyis installed bymake installcrates/hero_embedder_proxy/Makefileexists with standard targetsPost this as a comment using:
Implementation Spec (Revised) — Issue #13: Fix Repo
Objective
Audit and fix the
hero_embedderworkspace to conform to three skill standards:/health,/.well-known/heroservice.json,/rpc,/openrpc.jsonendpointsstart/stop/servesubcommands viaHeroLifecycleGaps Found
Category 1: Crate Structure
buildenv.shBINARIES missinghero_embedder_proxyCategory 2: Sockets
hero_embedder_uisocket missing/.well-known/heroservice.jsonendpointhero_embedder_uisocket missing/openrpc.jsonendpointCategory 3: hero_proc_service_selfstart
hero_embedder_proxyhas nostart/stop/servesubcommands (bare binary, no HeroLifecycle)hero_embedder_proxy/Cargo.tomlmissinghero_rpc_serverdependencyCategory 4: Compile Issues
hero_embedder_server/src/main.rsmissinguse std::path::Path;importFiles to Modify / Create
crates/hero_embedder_server/src/main.rsPathto importcrates/hero_embedder_ui/src/main.rs/.well-known/heroservice.jsonand/openrpc.jsonroutescrates/hero_embedder_ui/heroservice.jsoncrates/hero_embedder_ui/openrpc.jsoncrates/hero_embedder_proxy/Cargo.tomlhero_rpc_serverdependencycrates/hero_embedder_proxy/src/main.rsHeroLifecycle+LifecycleCommand+Servesubcommandbuildenv.shhero_embedder_proxytoBINARIESImplementation Plan (4 steps)
Step 1 — Fix compile error:
Pathimport in serverFiles:
crates/hero_embedder_server/src/main.rsuse std::path::PathBuf;→use std::path::{Path, PathBuf};Step 2 — Add heroservice.json + openrpc.json to UI socket
Files:
crates/hero_embedder_ui/heroservice.json(create),crates/hero_embedder_ui/openrpc.json(create),crates/hero_embedder_ui/src/main.rs(modify)/.well-known/heroservice.jsonand/openrpc.jsonroutesStep 3 — Add lifecycle management to hero_embedder_proxy
Files:
crates/hero_embedder_proxy/Cargo.toml,crates/hero_embedder_proxy/src/main.rshero_rpc_servergit dependencyArgswithClihavingLifecycle(LifecycleCommand)andServesubcommandsrun_proxy()async fnStep 4 — Add hero_embedder_proxy to buildenv.sh BINARIES
Files:
buildenv.shhero_embedder_proxytoBINARIESexportAcceptance Criteria
cargo check --workspacepasses with zero errorshero_embedder_uiexposes/.well-known/heroservice.jsonand/openrpc.jsonhero_embedder_proxy start/stopwork viahero_prochero_embedder_proxyis installed bymake install(in BINARIES)Cargo Check Results
Status: PASS
Output:
Implementation committed:
2564163Browse:
2564163