molecule-core/platform/internal/provisioner
Hongming Wang 1ea615df4c feat(platform): auto-detect SaaS tenant → control plane provisioner
No env vars to configure. The platform auto-detects the backend:

  MOLECULE_ORG_ID set → SaaS tenant → control plane provisioner
  MOLECULE_ORG_ID empty → self-hosted → Docker provisioner

The control plane URL defaults to https://api.moleculesai.app (override
with CP_PROVISION_URL for testing). No FLY_API_TOKEN on the tenant.

Removed: direct Fly provisioner (FlyProvisioner) — all SaaS workspace
provisioning goes through the control plane which holds the Fly token
and manages billing, quotas, and cleanup.

Two backends: CPProvisioner (SaaS) and Docker Provisioner (self-hosted).

Closes #494

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 11:50:52 -07:00
..
cp_provisioner.go feat(platform): auto-detect SaaS tenant → control plane provisioner 2026-04-16 11:50:52 -07:00
fly_provisioner.go feat(platform): Fly Machines provisioner for SaaS workspace deployment 2026-04-16 10:51:15 -07:00
isrunning_test.go fix(provisioner): IsRunning conservative on daemon errors to stop restart cascade 2026-04-16 02:21:25 -07:00
provisioner_test.go fix(platform): unblock org-template imports against modular workspace templates 2026-04-16 07:49:45 -07:00
provisioner.go fix(platform): unblock org-template imports against modular workspace templates 2026-04-16 07:49:45 -07:00