You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(agent-worker): defer heavy SDKs to lazy import to clear CF startup CPU limit
The agent-worker bundle eagerly evaluated ElevenLabs (6.5MB), Polar (2.2MB),
Composio (1.2MB), FAL and Exa SDKs at isolate startup via the static tool
registry import chain, exceeding Cloudflare's script-startup CPU limit (10021)
so the worker could never deploy. Convert each to `import type` + an async
factory using dynamic `import()`, so esbuild wraps them in lazy init wrappers
and their module-init runs only on first tool use, not at startup.
Also fix the production deploy ordering: gateway must deploy before agent
because agent cross-script binds gateway's QuotaTracker DO (the defining script
must exist first). Service bindings resolve lazily so there is no cycle.
Remove dead Blaxel secret bindings (BL_API_KEY/REGION/WORKSPACE) from the
webhooks-worker — unused since the Daytona migration and blocking its deploy.
0 commit comments