Klient-distribution: självständiga binärer + curl|sh-installer
All checks were successful
build-and-push / build (push) Successful in 26s
release-client / build-release (push) Successful in 1m3s

- daemon: byt node-pty -> @homebridge/node-pty-prebuilt-multiarch (N-API-
  prebuilds för x64+arm64, ingen kompilering); esbuild-bundle av daemonen
- .gitea/workflows/release.yaml: på tag v* bygger pkg båda arkitekturerna på
  Pi-runnern (utan QEMU — prebuilds för båda finns) och publicerar som
  Gitea-release-assets via API
- install.sh: 'curl -fsSL .../install.sh | sh' — detekterar arch, hämtar rätt
  binär från senaste releasen, lägger agent-helm i PATH, skapar config.env +
  valfri systemd-user-service (Arch/Ubuntu)
- deploy/client-build/package.json: pkg-config (assets för prebuilds)
- DEPLOY.md: klient-installationssektion

Verifierat lokalt: pkg-binär (x64, 83 MB) startar, node-pty spawnar pty,
ansluter och input/output funkar end-to-end.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-28 17:24:21 +02:00
parent c3972d76df
commit a6e304fb53
8 changed files with 1483 additions and 12 deletions

View File

@@ -3,21 +3,31 @@
"version": "0.0.0",
"private": true,
"type": "module",
"bin": "dist/daemon.cjs",
"scripts": {
"dev": "tsx --env-file-if-exists=../../.env watch src/index.ts",
"start": "tsx --env-file-if-exists=../../.env src/index.ts",
"build": "tsc --noEmit -p tsconfig.json",
"bundle": "esbuild src/index.ts --bundle --platform=node --target=node22 --external:@homebridge/node-pty-prebuilt-multiarch --outfile=dist/daemon.cjs",
"typecheck": "tsc --noEmit -p tsconfig.json"
},
"dependencies": {
"@agent-helm/shared": "workspace:*",
"node-pty": "^1.0.0",
"@homebridge/node-pty-prebuilt-multiarch": "^0.13.1",
"ws": "^8.18.0"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/ws": "^8.5.12",
"@yao-pkg/pkg": "^6.20.0",
"esbuild": "^0.25.0",
"tsx": "^4.19.0",
"typescript": "^5.7.0"
},
"pkg": {
"assets": [
"../../node_modules/.pnpm/**/@homebridge/node-pty-prebuilt-multiarch/prebuilds/**/*",
"../../node_modules/.pnpm/**/@homebridge/node-pty-prebuilt-multiarch/lib/**/*"
]
}
}