Rename _openrpc → _server, _http → _ui, _client → _sdk crates #22
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_aibroker#22
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
The crate naming doesn't follow the Hero service naming convention (
/hero_crates_best_practices_check).Current state
hero_aibroker_openrpchero_aibroker_serverhero_aibroker_httphero_aibroker_uihero_aibroker_clienthero_aibroker_sdkhero_aibroker_rhaihero_aibroker_examplesWhat to do
crates/hero_aibroker_openrpc/→crates/hero_aibroker_server/Cargo.tomlpackage name,[[bin]]name, all internal referenceshero_aibroker_openrpc.sock→hero_aibroker_server.sockcrates/hero_aibroker_http/→crates/hero_aibroker_ui/crates/hero_aibroker_client/→crates/hero_aibroker_sdk/crates/hero_aibroker_rhai/from workspacecrates/hero_aibroker_examples/with health + basic_usage examplesCargo.tomlmembers listReference
/hero_crates_best_practices_checkThe zinit lifecycle and serve rename convention have been applied to the current
hero_aibroker_openrpccrate in commits0c273a0and415ac19ondevelopment_timur(PR #21).This issue tracks the next step: renaming the crates themselves to match the naming convention.
Once PR #21 is merged, the rename can be done on top of it.
Implementation Spec for Issue #22 — Cleanup of Stale References
Finding: The structural rename (directories, Cargo.toml, Makefile, buildenv.sh) is already complete on the
developmentbranch. What remains is cleanup of stalellmbrokerstring references in documentation and a few source files.Objective
Complete the crate rename by updating all remaining stale references to
llmbrokerand old crate names throughout documentation and source code.Files to Modify
README.mddocs/deployment.mdllmbrokerbinary references withhero_aibroker_serverdocs/component-design.mdcrates/llmbroker/paths withcrates/hero_aibroker/docs/architecture.mddocs/api.mdx_llmbrokerfield referencesdocs/data-flow.mdx_llmbrokerfield referencesdocs/multi-key-support.mdcrates/llmbroker/pathscrates/hero_aibroker_ui/src/api/chat.rsx_llmbrokerfield tox_aibrokercrates/hero_aibroker_ui/src/api/models.rsowned_by: "llmbroker"to"aibroker"crates/hero_aibroker_ui/src/api/mod.rsllmbroker=tohero_aibroker=crates/hero_aibroker/src/registry/loader.rs"llmbroker"to"aibroker"Implementation Plan
llmbrokerbinary referencescrates/llmbroker/pathsx_llmbroker→x_aibrokerfieldcrates/llmbroker/pathschat.rs,models.rsmod.rs,loader.rscargo check,cargo testAcceptance Criteria
llmbrokeranywhere in the codebasehero_aibroker_rhaianywherehero_aibroker_openrpc,hero_aibroker_http,hero_aibroker_client)cargo checkpassescrates/directory layoutNotes
x_llmbroker→x_aibrokerin the JSON API response is a breaking change for downstream consumers~/.config/llmbroker/→~/.config/aibroker/changes config file lookup pathVerification Results
Stale Reference Check
llmbroker— 0 occurrences (was 30+)hero_aibroker_rhai— 0 occurrenceshero_aibroker_openrpc/hero_aibroker_http/hero_aibroker_client— 0 occurrencesCompilation
cargo checkhas pre-existing errors unrelated to this rename:open_zinit_uideprecated →open_ui(hero_rpc_server API change)McpAggregatortype inference issuesdevelopmentbranch before this changeFiles Changed (11)
README.md— updated project structure, build commands, dependency graphdocs/deployment.md— 17 llmbroker → hero_aibroker_server replacementsdocs/component-design.md— 8 path replacementsdocs/architecture.md— project structure tree updateddocs/api.md— x_llmbroker → x_aibroker, owned_by updateddocs/data-flow.md— x_llmbroker → x_aibrokerdocs/multi-key-support.md— 3 path replacementscrates/hero_aibroker_ui/src/api/chat.rs— x_llmbroker → x_aibroker field renamecrates/hero_aibroker_ui/src/api/models.rs— owned_by "llmbroker" → "aibroker"crates/hero_aibroker_ui/src/api/mod.rs— tracing filter updatedcrates/hero_aibroker/src/registry/loader.rs— config dir llmbroker → aibrokerImplementation Summary
All stale
llmbrokerreferences have been cleaned up across documentation and source code. The structural crate rename (directories, Cargo.toml, Makefile, buildenv.sh) was already completed in prior work.Changes Made
Documentation (7 files):
README.md— Project structure tree, dependency graph, and build commands updated to reflect current crate layoutdocs/deployment.md— Allllmbrokerbinary references replaced withhero_aibroker_serverdocs/component-design.md— Path references updated fromcrates/llmbroker/tocrates/hero_aibroker/docs/architecture.md— Project structure tree updated to current crate namesdocs/api.md—x_llmbroker→x_aibrokerfield,owned_byupdateddocs/data-flow.md—x_llmbroker→x_aibrokerfielddocs/multi-key-support.md— Path references updatedSource code (4 files):
crates/hero_aibroker_ui/src/api/chat.rs—x_llmbrokerfield →x_aibroker,LlmBrokerExtension→AiBrokerExtensioncrates/hero_aibroker_ui/src/api/models.rs—owned_by: "llmbroker"→"aibroker"crates/hero_aibroker_ui/src/api/mod.rs— Tracing filterllmbroker=→hero_aibroker=crates/hero_aibroker/src/registry/loader.rs— Config dir.join("llmbroker")→.join("aibroker")Verification
llmbrokerreferences remain in the entire codebasehero_aibroker_rhai/hero_aibroker_openrpc/hero_aibroker_http/hero_aibroker_clientreferences remaindevelopmentbranchBreaking Changes
x_llmbroker→x_aibroker~/.config/llmbroker/→~/.config/aibroker/Implementation committed:
f1b1e6fBrowse:
f1b1e6fIt looks done. closing.