siteplane 0.1.43 → 0.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5397,6 +5397,8 @@ async function setupDeployCommand(input, deps = defaults) {
5397
5397
  if (admin && admin.comment !== `Siteplane admin generation ${generation}`)
5398
5398
  fail2("admin_secret_generation_conflict", "The provider admin secret does not match the recorded setup generation. No secret was replaced.");
5399
5399
  const publicBindings = {
5400
+ SITEPLANE_SITE_KEY: config.publicSiteKey,
5401
+ RUNTIME_API_BASE_URL: config.apiBaseUrl,
5400
5402
  SITEPLANE_SITE_ORIGIN: origin,
5401
5403
  SITEPLANE_SETUP_RUN_ID: config.runId,
5402
5404
  SITEPLANE_PORTAL_PATH: task.site.portalPath,
@@ -5502,8 +5504,8 @@ async function setupDeployCommand(input, deps = defaults) {
5502
5504
  if (record.phase === "planned") {
5503
5505
  if (deps.now() >= Date.parse(record.deadline))
5504
5506
  fail2("provider_deadline_exceeded", "The setup provider deadline expired before configuration. Inspect its existing record before a new attempt.");
5505
- if (pending.length)
5506
- await api(`/v10/projects/${provider.projectId}/env?${scope}&upsert=true`, pending);
5507
+ for (const binding of pending)
5508
+ await api(`/v10/projects/${provider.projectId}/env?${scope}&upsert=true`, binding);
5507
5509
  env = await listEnv();
5508
5510
  for (const [key, value] of Object.entries(values)) {
5509
5511
  const item = owned(key);
@@ -5627,7 +5629,7 @@ async function setupDeployCommand(input, deps = defaults) {
5627
5629
  }
5628
5630
  }
5629
5631
  let poll = 0;
5630
- while (!deployment || !["READY", "ERROR", "CANCELED"].includes(deployment.readyState)) {
5632
+ while (!deployment || !["READY", "ERROR", "CANCELED", "BLOCKED"].includes(deployment.readyState)) {
5631
5633
  progress();
5632
5634
  const remaining2 = Date.parse(record.deadline) - deps.now();
5633
5635
  if (remaining2 <= 0)
@@ -5639,6 +5641,8 @@ async function setupDeployCommand(input, deps = defaults) {
5639
5641
  }
5640
5642
  if (deployment.readyState !== "READY") {
5641
5643
  await save({ ...record, phase: "failed", deploymentId: deployment.id });
5644
+ if (deployment.readyState === "BLOCKED")
5645
+ fail2("provider_deployment_blocked", "Vercel blocked the existing deployment. Check the commit author's project/team access and the provider's blocking reason, then resume. No additional deployment was started.");
5642
5646
  fail2("provider_build_failed", "The existing provider build failed or was canceled. Fix its diagnosed package/build configuration before requesting another deployment.");
5643
5647
  }
5644
5648
  if (record.phase !== "verified")
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "siteplane",
3
3
  "private": false,
4
- "version": "0.1.43",
4
+ "version": "0.1.45",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "publishConfig": {