e01e93f846dc4eb9d1da0ff0746bec3e939a1a98
Establishes type-safe communication between React frontend and Rust backend. Types mirror the Rust structs to ensure consistency across the Tauri boundary. Type definitions (src/lib/types.ts): - LoreStatus, LoreSummaryStatus: Lore CLI response shapes - BridgeStatus, SyncResult: Bridge operation results - McError, McErrorCode: Structured error handling with type guard - FocusItem, FocusItemType: THE ONE THING work items - FocusAction, DecisionEntry: User action tracking - Staleness computation: fresh/normal/amber/urgent based on age IPC wrapper (src/lib/tauri.ts): - Typed invoke() calls for each Rust command - getLoreStatus, getBridgeStatus, syncNow, reconcile, quickCapture Data transformation (src/lib/transform.ts): - transformLoreData: Converts lore response to FocusItem[] - Priority ordering: reviews first (blocking others), issues, authored MRs - Generates stable IDs matching bridge mapping keys Formatting utilities (src/lib/format.ts): - formatIid: Prefix with ! for MRs, # for issues Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
66%
Rust
33.5%
JavaScript
0.3%
Shell
0.1%