diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1867cf3..f050c24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,6 +52,16 @@ jobs: docker compose -f docker-compose.prod.yml config -q docker compose -f docker-compose.local-deploy.yml config -q + agent-docs: + name: Agent Docs + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v5 + + - name: Validate AGENTS documentation exists + run: test -f AGENTS.md + dashboard: name: Dashboard runs-on: ubuntu-latest diff --git a/docker-compose.yml b/docker-compose.yml index 3f6ff02..1aff629 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -110,13 +110,14 @@ services: depends_on: - api command: > - sh -c "rm -rf .next-dashboard && - npm install --legacy-peer-deps --no-audit --no-fund --package-lock=false && - npx prisma generate && + sh -lc "set -e; + rm -rf .next-dashboard; + npm install --legacy-peer-deps --no-audit --no-fund --package-lock=false; + npx prisma generate; node -e \"const net=require('net'); const close=(a,b)=>()=>{a.destroy(); b.destroy();}; net.createServer((client)=>{ const upstream=net.connect(8000,'backend'); client.pipe(upstream); upstream.pipe(client); client.on('error', close(client, upstream)); upstream.on('error', close(upstream, client)); }).listen(8000,'127.0.0.1');\" & npm run dev -- --hostname 0.0.0.0 --port 3000" environment: - NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-http://localhost:3002} + NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-} RESOLVEKIT_SERVER_AGENT_BASE_URL: ${RESOLVEKIT_SERVER_AGENT_BASE_URL:-http://localhost:8000} DATABASE_URL: postgresql://${POSTGRES_USER:-agent}:${POSTGRES_PASSWORD:-postgres}@db:5432/${POSTGRES_DB:-agent} IAA_JWT_SECRET: ${IAA_JWT_SECRET:-change-me-generate-with-openssl-rand-hex-32} @@ -146,13 +147,14 @@ services: depends_on: - backend command: > - sh -c "rm -rf .next-api && - npm install --legacy-peer-deps --no-audit --no-fund --package-lock=false && - npx prisma generate && + sh -lc "set -e; + rm -rf .next-api; + npm install --legacy-peer-deps --no-audit --no-fund --package-lock=false; + npx prisma generate; node -e \"const net=require('net'); const close=(a,b)=>()=>{a.destroy(); b.destroy();}; net.createServer((client)=>{ const upstream=net.connect(8000,'backend'); client.pipe(upstream); upstream.pipe(client); client.on('error', close(client, upstream)); upstream.on('error', close(upstream, client)); }).listen(8000,'127.0.0.1');\" & npm run dev -- --hostname 0.0.0.0 --port 3002" environment: - NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-http://localhost:3002} + NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-} RESOLVEKIT_SERVER_AGENT_BASE_URL: ${RESOLVEKIT_SERVER_AGENT_BASE_URL:-http://localhost:8000} DATABASE_URL: postgresql://${POSTGRES_USER:-agent}:${POSTGRES_PASSWORD:-postgres}@db:5432/${POSTGRES_DB:-agent} IAA_JWT_SECRET: ${IAA_JWT_SECRET:-change-me-generate-with-openssl-rand-hex-32}