mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
05c2cbb724fc885275fdf8b42afbbbd190f0505f
- web/src/components/AssistantChat/messages/UserMessage.tsx now subscribes only to role, text, status, and localId instead of the entire message object to avoid re-renders caused by unrelated message state changes (hover/isLast/etc.). - web/src/components/AssistantChat/messages/SystemMessage.tsx now subscribes only to role, text, and icon for the same reason. - This reduces unnecessary renders observed in React DevTools without changing message UI or behavior.
hapi
Monorepo with three Bun workspace packages:
cli/(hapi): CLI (npm package) exposinghapi/hapi-mcpserver/(hapi-server): backend API + Telegram bot server, servesweb/dist/web/(hapi-web): web frontend (Vite) building toweb/dist/
Commands
Run from the repo root:
bun install
bun run typecheck
bun run build
Languages
TypeScript
99.5%
CSS
0.2%
JavaScript
0.2%
HTML
0.1%