mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
80b8d2e34f8625202b32d982ea974a3ac158ce3f
Remove unreliable conditions from Telegram environment detection in useAuthSource: - window.Telegram !== undefined: Always true due to unconditional SDK loading - window.self !== window.top: Causes false positives in iframe scenarios Only keep URL parameter detection (tgWebApp in search/hash) which is reliable. This prevents 5-second polling delay before login page displays on PC browser.
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%