Trim apps/api/src/config.ts, apps/api/.env.example, and docker-compose.yaml to
the 89 environment variables used by the open-source API and workers. Remove
unused deployment mode helpers (USE_DB_AUTHENTICATION, isSelfHosted,
lib/withAuth.ts, lib/deployment.ts, and lib/agent-interop.ts), move
bypassBilling onto Authorization, derive image OCR availability from registered
image engines, read optional caller.agentInterop and caller.hostedMcp from the
auth module result, and use IS_KUBERNETES for the queue-worker liveness check.
Downstream-Sync: required
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>