mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
db888d90f82503a33e312e0e58cefb4a85261e21
Slim down SessionSummary responses to reduce payload size: - Replace full todos array with computed todoProgress summary - Replace metadata object with only necessary fields (name, path, summary.text) - Remove unused fields (thinking, createdAt, permissionMode, modelMode) - Refactor sorting to work on full Session objects before mapping This significantly reduces /api/sessions response size, especially for sessions with many todos or tools.
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%