clawfire 0.6.12 → 0.6.13

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.
package/dist/cli.js CHANGED
@@ -269,7 +269,7 @@ async function runDevServer() {
269
269
  const port = portArg ? parseInt(portArg.split("=")[1], 10) : 3e3;
270
270
  const apiPort = apiPortArg ? parseInt(apiPortArg.split("=")[1], 10) : 3456;
271
271
  const noHotReload = args.includes("--no-hot-reload");
272
- const { startDevServer } = await import("./dev-server-BX2DLQQB.js");
272
+ const { startDevServer } = await import("./dev-server-O6MKAB6R.js");
273
273
  await startDevServer({
274
274
  projectDir,
275
275
  port,
@@ -4604,9 +4604,18 @@ ${liveReloadScript}
4604
4604
  steps.push("Functions build failed \u2014 hosting only");
4605
4605
  }
4606
4606
  }
4607
- const targets = deployFunctions ? "hosting,functions" : "hosting";
4607
+ let targets = deployFunctions ? "hosting,functions" : "hosting";
4608
4608
  console.log(` Deploying ${targets}...`);
4609
- const result = await this.firebaseSetup.deployHosting(targets);
4609
+ let result = await this.firebaseSetup.deployHosting(targets);
4610
+ if (!result.success && deployFunctions) {
4611
+ const msg = result.message.toLowerCase();
4612
+ if (msg.includes("blaze") || msg.includes("pay-as-you-go") || msg.includes("upgrade") || msg.includes("billing") || msg.includes("artifactregistry")) {
4613
+ console.log(" \x1B[33m\u26A0\x1B[0m Functions require Blaze plan. Deploying hosting only...");
4614
+ steps.push("Functions skipped (requires Blaze plan)");
4615
+ targets = "hosting";
4616
+ result = await this.firebaseSetup.deployHosting(targets);
4617
+ }
4618
+ }
4610
4619
  clearFirebaseStatusCache();
4611
4620
  sendJson({
4612
4621
  ...result,
package/dist/dev.cjs CHANGED
@@ -5016,9 +5016,18 @@ ${liveReloadScript}
5016
5016
  steps.push("Functions build failed \u2014 hosting only");
5017
5017
  }
5018
5018
  }
5019
- const targets = deployFunctions ? "hosting,functions" : "hosting";
5019
+ let targets = deployFunctions ? "hosting,functions" : "hosting";
5020
5020
  console.log(` Deploying ${targets}...`);
5021
- const result = await this.firebaseSetup.deployHosting(targets);
5021
+ let result = await this.firebaseSetup.deployHosting(targets);
5022
+ if (!result.success && deployFunctions) {
5023
+ const msg = result.message.toLowerCase();
5024
+ if (msg.includes("blaze") || msg.includes("pay-as-you-go") || msg.includes("upgrade") || msg.includes("billing") || msg.includes("artifactregistry")) {
5025
+ console.log(" \x1B[33m\u26A0\x1B[0m Functions require Blaze plan. Deploying hosting only...");
5026
+ steps.push("Functions skipped (requires Blaze plan)");
5027
+ targets = "hosting";
5028
+ result = await this.firebaseSetup.deployHosting(targets);
5029
+ }
5030
+ }
5022
5031
  clearFirebaseStatusCache();
5023
5032
  sendJson({
5024
5033
  ...result,