HERO Books Refactor #74
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_books#74
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?
Meeting Minutes
Project: HERO Services / Books Refactor
Date: [Insert Date]
Participants:
1. ZInit & Service Management
1.1 Development Branch Setup
All services must be started via ZInit.
No more
screen,tmux, or manual background processes.Everything runs on Unix domain sockets only (no TCP ports), except:
hero_inspectorinititself1.2 Embedder Shutdown Issue
Problem:
Embedder frequently fails with:
Root cause: unclean shutdown, leaving DB locked.
Action Required:
Ensure
init stopperforms:Prevent corrupted databases.
2. OpenRPC Architecture Standardization
2.1 Core Principle
All services must follow this structure:
2.2 Layer Responsibilities
1️⃣ Lib (Core Logic)
Pure functionality only
No networking
Examples:
2️⃣ Server
Uses Lib
Exposes manual OpenRPC over HTTP on Unix socket
Single source of truth
Must NOT:
3️⃣ SDK
4️⃣ UI / Viewer
5️⃣ CLI
3. OpenRPC Proxy Macro
3.1 Objective
Avoid manual proxy implementations.
3.2 Requirement
Use OpenRPC client macro
Auto-generate proxy code
Inspector must:
3.3 Current Status
4. Removal of Old Schema-Generated Framework
Decision:
oschema-generatedand old auto-generation approach5. Hero Books Refactor (Major Focus)
5.1 Current State
5.2 Required Target Structure
5.3 Functional Requirements
Book Management
Server must expose OpenRPC methods for:
Collection Management
List collections
Add collection
Remove collection
Add/remove pages
Generate/export collection
Scan from:
Context Model
Library
Inspired by earlier structure (Library of Alexandria concept)
5.4 Viewer Restoration
Problem:
Decision:
Restore original viewer functionality.
Rebuild using:
Admin UI = OpenRPC control panel
Viewer UI = End-user interface
6. Inspector Improvements
7. Cleanup Actions Required
Remove broken / obsolete crates
Move functionality properly into
libRemove generated artifacts
Ensure:
8. Immediate Action Plan
Mahmoud
Kristof
Final Architecture Goal
Quick update on the hero_books refactor — made solid progress today:
All 7 workspace crates compile cleanly. Work is pushed to development.
Still in progress, though — there may be some rough edges and potential bugs, especially around the new RPC handlers. Will continue tomorrow.
Let me know if anything looks off on your end!
Previous UI
Top navbar
Tools
Libraries
The books list had extensive options:
Hints
Done: The work has been merged into development. Please reopen if you still have concerns