mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Enables building hapi as standalone Bun-compiled executables for macOS, Linux, and Windows (x64/arm64). Adds build script, bootstrap entry point, runtime asset management, and automatic deployment of bundled tools (ripgrep, difftastic). Includes MCP stdio bridge support and proper environment handling for compiled binaries. Updates documentation with build and installation instructions for single executable distribution.
20 lines
441 B
Markdown
20 lines
441 B
Markdown
# hapi
|
|
|
|
Monorepo with three Bun workspace packages:
|
|
|
|
- `cli/` (`hapi`): CLI (single executable) 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:
|
|
|
|
```bash
|
|
bun install
|
|
bun run typecheck
|
|
bun run build
|
|
bun run build:cli:exe
|
|
bun run build:cli:exe -- --target bun-darwin-x64
|
|
```
|