git-subtree-dir: aiui git-subtree-mainline:0c4826f8ccgit-subtree-split:e30ac1d106
967 B
967 B
name, description, allowed-tools
| name | description | allowed-tools |
|---|---|---|
| deploy | Build and prepare AIUI for deployment to Archy node | Bash(*), Read, Edit, Glob, Grep |
Build AIUI for production deployment. Steps:
-
Pre-flight checks:
pnpm typecheck— must passpnpm lint— must passpnpm --filter @aiui/app test -- --run— report failures but continue
-
Build:
pnpm build- Verify
packages/app/dist/exists and containsindex.html
-
Bundle analysis:
- Report total dist size and gzip estimate
- List the 5 largest chunks
- Check against 250KB gzipped budget (warn if over)
-
Verify nginx config:
- Read
packages/app/server/nginx-archy.conf - Verify SPA routing (
try_files $uri $uri/ /aiui/index.html) - Verify proxy paths for Claude API
- Read
-
Container build (if Dockerfile exists):
podman build -t aiui:latest packages/app/- Report image size
-
Report: Build status, bundle size, any warnings.