7cef104f933639c4bad5c99db95370eb695023a5
App.tsx held three copy-pasted handlers (load / unload / refresh) and three parallel processXxxPid state slots that were mutually exclusive but unenforced by the type system. The unload-failed alert was a separate path, and OverviewPage needed 11 props to drive the table. Extract useHookProcessOps: one inflight Set for dedup, one Map<pid, OpKind> for view state, one run() that branches on kind via a message table, and ownership of the unload-failed alert. OverviewPage takes a single HookProcessOps prop and queries statusOf(pid). App.tsx 270 → 216 LOC; OverviewPage props 11 → 7.
❄️ SnowLuma
Next Remote Protocol Framework.
关于项目
项目处于开发初期,仅支持部分功能,高速迭代中,随时可能出现破坏性更新。
鸣谢
LagrangeV2 - Proto
NapCatQQ - Scaner/Packet
辅助编程
推荐 Opus4.6 + Gemini3.1pro 对本项目辅助开发
本项目大量使用Ai技术。
加入我们
Languages
TypeScript
98.9%
CSS
0.5%
JavaScript
0.5%