weishu 80b8d2e34f fix: remove unreliable Telegram environment detection to fix loading delay
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.
2025-12-18 16:28:24 +08:00
2025-12-16 15:03:50 +08:00
2025-12-16 15:03:50 +08:00
2025-12-16 15:03:50 +08:00

hapi

Monorepo with three Bun workspace packages:

  • cli/ (hapi): CLI (npm package) exposing hapi / hapi-mcp
  • server/ (hapi-server): backend API + Telegram bot server, serves web/dist/
  • web/ (hapi-web): web frontend (Vite) building to web/dist/

Commands

Run from the repo root:

bun install
bun run typecheck
bun run build
S
Description
GitHub 镜像: wu736139669/hapi(每日自动同步)
Readme AGPL-3.0
103 MiB
Languages
TypeScript 99.5%
CSS 0.2%
JavaScript 0.2%
HTML 0.1%