feat(cli): add Bun single executable binary support

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.
This commit is contained in:
weishu
2025-12-20 21:41:11 +08:00
parent bf18224d05
commit 17eeba10d6
28 changed files with 605 additions and 238 deletions
+2
View File
@@ -6,6 +6,8 @@
"dev": "concurrently \"bun run dev:server\" \"bun run dev:web\" --kill-others-on-exit",
"build": "bun run build:cli && bun run build:server && bun run build:web",
"build:cli": "cd cli && bun run build",
"build:cli:exe": "cd cli && bun run build:exe",
"build:cli:exe:all": "cd cli && bun run build:exe:all",
"build:server": "cd server && bun run build",
"build:web": "cd web && bun run build",
"dev:server": "cd server && bun run dev",