cleo-dev 0.1.0 → 0.1.2

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
@@ -55718,7 +55718,7 @@ var {
55718
55718
  } = import_index.default;
55719
55719
 
55720
55720
  // package.json
55721
- var version = "0.1.0";
55721
+ var version = "0.1.2";
55722
55722
 
55723
55723
  // src/commands/init.ts
55724
55724
  init_cjs_shims();
@@ -131616,6 +131616,7 @@ async function startDevServer(options) {
131616
131616
  isDemoMode
131617
131617
  );
131618
131618
  res.type("application/javascript");
131619
+ res.set("Cache-Control", "no-cache, no-store, must-revalidate");
131619
131620
  res.send(clientScript);
131620
131621
  } catch (error85) {
131621
131622
  logger3.error("Server", "Error serving client script:", error85);
@@ -132189,7 +132190,10 @@ async function generateClientScript(port, convexUrl, baseUrl, apiUrl, demoMode)
132189
132190
  window.__CLEO_CONVEX_URL__ = "${convexUrl || ""}";
132190
132191
  window.__CLEO_SERVER_URL__ = "${serverUrl}";
132191
132192
  window.__CLEO_API_URL__ = "${billingApiUrl}";
132192
- window.__CLEO_DEMO_MODE__ = ${demoMode ? "true" : "false"};
132193
+ // Only set demo mode if not already set by the host page
132194
+ if (typeof window.__CLEO_DEMO_MODE__ === 'undefined') {
132195
+ window.__CLEO_DEMO_MODE__ = ${demoMode ? "true" : "false"};
132196
+ }
132193
132197
 
132194
132198
  const link = document.createElement('link');
132195
132199
  link.rel = 'stylesheet';
@@ -132216,7 +132220,7 @@ var PRODUCTION_API_URL = "https://api.cleo.build";
132216
132220
  var BUNDLED_CF_ACCOUNT_ID = "a6efe4d545a9ce167f2a6be44cb3a316";
132217
132221
  var BUNDLED_CF_GATEWAY_NAME = "cleo-gateway";
132218
132222
  var BUNDLED_CF_API_KEY = "BBBLe4UXD4UkBywIDlrxSCpUGabiVENmkfkCsmZU";
132219
- var BUNDLED_AUTUMN_KEY = "am_sk_test_Bo05FsVBWWrSY3gejeBMfGnvueC15Y4DLOfj3DRXR7";
132223
+ var BUNDLED_AUTUMN_KEY = "am_sk_live_Q1UHqTaRHW83nLppZVCQK8MDzXAYCTpklpsoKttaoB";
132220
132224
  process.env.CONVEX_URL = PRODUCTION_CONVEX_URL;
132221
132225
  process.env.CLEO_API_URL = PRODUCTION_API_URL;
132222
132226
  if (BUNDLED_CF_ACCOUNT_ID) {
package/dist/index.js CHANGED
@@ -123223,6 +123223,7 @@ async function startDevServer(options) {
123223
123223
  isDemoMode
123224
123224
  );
123225
123225
  res.type("application/javascript");
123226
+ res.set("Cache-Control", "no-cache, no-store, must-revalidate");
123226
123227
  res.send(clientScript);
123227
123228
  } catch (error85) {
123228
123229
  logger3.error("Server", "Error serving client script:", error85);
@@ -123796,7 +123797,10 @@ async function generateClientScript(port, convexUrl, baseUrl, apiUrl, demoMode)
123796
123797
  window.__CLEO_CONVEX_URL__ = "${convexUrl || ""}";
123797
123798
  window.__CLEO_SERVER_URL__ = "${serverUrl}";
123798
123799
  window.__CLEO_API_URL__ = "${billingApiUrl}";
123799
- window.__CLEO_DEMO_MODE__ = ${demoMode ? "true" : "false"};
123800
+ // Only set demo mode if not already set by the host page
123801
+ if (typeof window.__CLEO_DEMO_MODE__ === 'undefined') {
123802
+ window.__CLEO_DEMO_MODE__ = ${demoMode ? "true" : "false"};
123803
+ }
123800
123804
 
123801
123805
  const link = document.createElement('link');
123802
123806
  link.rel = 'stylesheet';