mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Implement support for bundling web assets into CLI single executable binaries. When built with --with-web-assets, the executable includes the compiled web application and serves it directly without file system access. A stub generator creates empty manifests for normal builds to maintain compatibility. Key changes: - Add --with-web-assets flag to build-executable.ts with manifest validation - Generate embeddedAssets.ts manifest from web/dist during build - Serve embedded assets in web server with fallback to file system - Add hapi server subcommand to start API + web server - Include server sources in CLI tsconfig for compilation scope - Add workspace-level build:single-exe scripts for production builds
30 lines
879 B
JSON
30 lines
879 B
JSON
{
|
|
"name": "hapi-server",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"description": "Telegram Bot client for Happy - control Claude Code sessions",
|
|
"author": "Kirill Dubovitskiy",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "bun run src/index.ts",
|
|
"dev": "bun --watch run src/index.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"build": "bun build src/index.ts --outdir dist --target bun",
|
|
"generate:embedded-web-assets": "bun run scripts/generate-embedded-web-assets.ts"
|
|
},
|
|
"dependencies": {
|
|
"@socket.io/bun-engine": "^0.1.0",
|
|
"grammy": "^1.31.3",
|
|
"hono": "^4.8.0",
|
|
"jose": "^5.10.0",
|
|
"socket.io": "^4.8.1",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": ">=20",
|
|
"bun-types": "^1.2.21",
|
|
"typescript": "^5"
|
|
}
|
|
}
|