@superwall/cli 2.3.1 → 2.5.0

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.
Files changed (117) hide show
  1. package/README.md +10 -0
  2. package/dist/{apple-z2qjOzIZ.js → apple-Dyr7OFBx.js} +17 -16
  3. package/dist/approve-Czs1-JO9.js +186 -0
  4. package/dist/{assets-DXXegdDt.js → assets-BrB9jQPQ.js} +3 -3
  5. package/dist/auth.d.ts +1 -1
  6. package/dist/auth.js +3 -3
  7. package/dist/{billing-B8tOjsnY.js → billing-D5qqIlVb.js} +3 -3
  8. package/dist/{bind-Bx9K6LwP.js → bind-B3eEcRyp.js} +4 -4
  9. package/dist/browser-Bp3yRKlU.js +36 -0
  10. package/dist/{build-Bu2kkzRe.js → build-DD9pSwHX.js} +10 -8
  11. package/dist/{client-DOgk9gAS.js → client-AI9H4GGB.js} +3 -3
  12. package/dist/{config-BO1Y87kV.js → config-CGcG7GOt.js} +9 -1
  13. package/dist/{create-B03MAuPe.js → create-B4m-IKlr.js} +8 -8
  14. package/dist/create-CJljlkJK.js +20 -0
  15. package/dist/{create-DzC_89gq.js → create-ChfgWpiM.js} +41 -69
  16. package/dist/{doctor-BGZSKY_B.js → doctor-XtXW6tKE.js} +6 -6
  17. package/dist/download-2Zu2I_Og.js +58 -0
  18. package/dist/{drivers-DqLgQxkC.js → drivers-CMEL13gp.js} +4 -4
  19. package/dist/entry.js +69 -33
  20. package/dist/{environment-i8BhiBDB.js → environment-BWT2S4qC.js} +9 -2
  21. package/dist/{existing-BPOG5zLO.js → existing-b0GxFcnc.js} +2 -2
  22. package/dist/{session-BDLQUJyV.js → git-D7AVdugb.js} +97 -335
  23. package/dist/held-CX7Zf8u-.js +17 -0
  24. package/dist/{held-C56PYMRH.js → held-D3PUNky2.js} +7 -7
  25. package/dist/install-CVUXsx8c.js +103 -0
  26. package/dist/{integrate-DZ4Qvoch.js → integrate-qvKd9pVW.js} +29 -27
  27. package/dist/{log-NVhVe_oe.js → log-C0MDCfA2.js} +1 -1
  28. package/dist/{login-p9GVEKzD.js → login-COmGHrU5.js} +2 -1
  29. package/dist/login-ClnJi1Ea.js +17 -0
  30. package/dist/{login-ONZdK8vN.js → login-PMoXUGqq.js} +9 -42
  31. package/dist/{lookup-flTi0at0.js → lookup-gjcKIZvh.js} +4 -3
  32. package/dist/{migrate-DnXpbhL1.js → migrate-SkkLLdmr.js} +33 -28
  33. package/dist/{migration-DJ1uNKhk.js → migration-DS44-3Zr.js} +10 -10
  34. package/dist/{notification-url-CCDeS5S-.js → notification-url-BjQPLf4-.js} +4 -4
  35. package/dist/{open-QdsZ_N47.js → open-DQpm2yVs.js} +2 -2
  36. package/dist/{org-BiFPjoHD.js → org-C04eAO-j.js} +3 -2
  37. package/dist/organization-BOECL3vZ.js +39 -0
  38. package/dist/orgs-D6Kk96mG.js +81 -0
  39. package/dist/{paths-yRgm5Jpa.js → paths-REb-GrbX.js} +2 -2
  40. package/dist/{playbook-B-pRKNa4.js → playbook-Du4Oydbf.js} +11 -11
  41. package/dist/{products-DH_fK9tY.js → products-Cqq59DBQ.js} +1 -1
  42. package/dist/project-CP6hiHra.js +47 -0
  43. package/dist/{promote-Djzk4C81.js → promote-Dm2_b1WK.js} +24 -19
  44. package/dist/pull-DsdOoG-D.js +36 -0
  45. package/dist/{pull-BLA9XwHj.js → pull-F6pvO4To.js} +9 -28
  46. package/dist/pull-zYAbqo9n.js +106 -0
  47. package/dist/{push-gSBxGDik.js → push-BIFLhAiO.js} +9 -7
  48. package/dist/push-CJVfvFZq.js +29 -0
  49. package/dist/push-D_l9KJZN.js +290 -0
  50. package/dist/push-SVzv7fzE.js +22 -0
  51. package/dist/{registry-D3xmWk9p.js → registry-DIJB0mJa.js} +890 -158
  52. package/dist/resolve--GsHj0Q1.js +171 -0
  53. package/dist/{resources-BTnczJCA.js → resources-BaP3p_LY.js} +3 -80
  54. package/dist/{run-C1SoizcJ.js → run-C5OPwhvS.js} +2 -2
  55. package/dist/run-CgLmD2vR.js +1345 -0
  56. package/dist/{scan-Dwk_lT5q.js → scan-Bj5y0zTZ.js} +1 -1
  57. package/dist/scan-v_WTE722.js +4 -0
  58. package/dist/{scope-Db7blD-l.js → scope-Bp_zwJOo.js} +6 -5
  59. package/dist/scope-CCb_7UvN.js +89 -0
  60. package/dist/sdk-TvT0p_nO.js +71 -0
  61. package/dist/selection-BltBpyp5.js +179 -0
  62. package/dist/series-TAixFBWW.js +685 -0
  63. package/dist/{server-Cb2N75JL.js → server-CdVIboQn.js} +10 -8
  64. package/dist/server-CvJVusw3.js +29 -0
  65. package/dist/session-B8JNXkwN.js +6 -0
  66. package/dist/session-D3fgXQBt.js +219 -0
  67. package/dist/{session-CnDJp_HO.js → session-Ywim-P8M.js} +1 -1
  68. package/dist/{setup-BLahHpgy.js → setup-zzjtTy8k.js} +9 -8
  69. package/dist/skills/index.json +5 -0
  70. package/dist/skills/superwall/SKILL.md +48 -30
  71. package/dist/skills/superwall/references/api.md +3 -2
  72. package/dist/skills/superwall-editor/SKILL.md +7 -5
  73. package/dist/skills/superwall-framework/SKILL.md +11 -8
  74. package/dist/skills/superwall-framework/references/onboarding-state.md +21 -14
  75. package/dist/skills/superwall-workspaces/SKILL.md +313 -0
  76. package/dist/skills/superwall-workspaces/references/cli.md +174 -0
  77. package/dist/skills/superwall-workspaces/references/slots.md +103 -0
  78. package/dist/{skills-zebMTZyr.js → skills-2qYaUXGE.js} +15 -9
  79. package/dist/skills-8um2fBPS.js +14 -0
  80. package/dist/{source-push-DxuJuwEf.js → source-push-kAep4gPe.js} +6 -5
  81. package/dist/{spinner-BN3U1CVB.js → spinner-BANVLncC.js} +17 -5
  82. package/dist/starter-CiLrp1cN.js +190 -0
  83. package/dist/status-CoYMK7QL.js +139 -0
  84. package/dist/{storage-VagEaaJC.js → storage-DzP22xKn.js} +1 -1
  85. package/dist/storekit-D5eopLM0.js +17 -0
  86. package/dist/{storekit-CoOf4Rvh.js → storekit-n1x0bWkQ.js} +4 -4
  87. package/dist/{telemetry-CM0BDwCK.js → telemetry-CXN6f-ZX.js} +2 -2
  88. package/dist/{token-lUUOkTJA.js → token-FmeHywYt.js} +1 -1
  89. package/dist/tools-skills/superwall/SKILL.md +49 -31
  90. package/dist/tools-skills/superwall/references/api.md +3 -2
  91. package/dist/tools-skills/superwall-editor/SKILL.md +7 -5
  92. package/dist/tools.d.ts +1 -1
  93. package/dist/tools.js +575 -75
  94. package/dist/try-BWbzgelb.js +120 -0
  95. package/dist/{selection-u2KiKu_d.js → types-JdxmnCko.js} +1 -178
  96. package/dist/upgrade-Bk5boOgW.js +206 -0
  97. package/dist/upgrade-CoWCEnoi.js +7 -0
  98. package/package.json +5 -3
  99. package/prompts/commandments.xml +2 -0
  100. package/dist/create-BdZS_T68.js +0 -19
  101. package/dist/held-DSNUY-NZ.js +0 -16
  102. package/dist/login-Blrkm6oi.js +0 -16
  103. package/dist/push-BkMgOT6X.js +0 -24
  104. package/dist/scan-Kp-MAutK.js +0 -4
  105. package/dist/server-psYghr9K.js +0 -24
  106. package/dist/session-CehHJWZk.js +0 -6
  107. package/dist/skills-DDV4zcLR.js +0 -14
  108. package/dist/storekit-BcBb2jXB.js +0 -16
  109. package/dist/upgrade-CpTJv_M7.js +0 -7
  110. package/dist/upgrade-DZbKb67W.js +0 -117
  111. /package/dist/{client-BZ1UbpXz.js → client-BJQXl62Q.js} +0 -0
  112. /package/dist/{devtools-pBl_vt03.js → devtools-ByZ6XYnn.js} +0 -0
  113. /package/dist/{input-vi0bou04.js → input-MDd67UIp.js} +0 -0
  114. /package/dist/{reports-CwwKLUh0.js → reports-CuhB1_ub.js} +0 -0
  115. /package/dist/{screenshot-file-tVBfUEIi.js → screenshot-file-XAS0Xy0e.js} +0 -0
  116. /package/dist/{storage-gRyQetN9.d.ts → storage-BjQCiTuz.d.ts} +0 -0
  117. /package/dist/{timing-BVxPrYq3.js → timing-Ca0TXY-A.js} +0 -0
@@ -0,0 +1,58 @@
1
+ import { execFile } from "node:child_process";
2
+ import * as fs from "node:fs";
3
+ import * as os$1 from "node:os";
4
+ import * as path from "node:path";
5
+ import { promisify } from "node:util";
6
+ import { gunzipSync } from "node:zlib";
7
+
8
+ //#region src/core/repo/download.ts
9
+ const run = promisify(execFile);
10
+ const PUBLIC_REPO = process.env.SUPERWALL_EXAMPLES_REPO ?? "superwall/superwall";
11
+ const PUBLIC_REF = process.env.SUPERWALL_EXAMPLES_REF ?? "main";
12
+ var RepoDownloadError = class extends Error {};
13
+ const DOWNLOAD_TIMEOUT_MS = 12e4;
14
+ async function downloadRepoDir(dir, target, notFound, fetchImpl = fetch) {
15
+ const signal = AbortSignal.timeout(DOWNLOAD_TIMEOUT_MS);
16
+ let response;
17
+ let bytes;
18
+ try {
19
+ response = await fetchImpl(`https://codeload.github.com/${PUBLIC_REPO}/tar.gz/refs/heads/${PUBLIC_REF}`, { signal });
20
+ if (!response.ok) throw new RepoDownloadError(`Could not download github.com/${PUBLIC_REPO} (HTTP ${response.status}). Check your network, then try again.`);
21
+ bytes = await response.arrayBuffer();
22
+ } catch (error) {
23
+ if (error instanceof RepoDownloadError) throw error;
24
+ throw new RepoDownloadError(`Could not reach github.com/${PUBLIC_REPO}. Check your network, then try again.`);
25
+ }
26
+ let archive;
27
+ try {
28
+ archive = gunzipSync(Buffer.from(bytes));
29
+ } catch {
30
+ throw new RepoDownloadError(`The download of github.com/${PUBLIC_REPO} was damaged. Try again.`);
31
+ }
32
+ const stage = fs.mkdtempSync(path.join(os$1.tmpdir(), "superwall-download-"));
33
+ const tarball = path.join(stage, "repo.tar");
34
+ fs.writeFileSync(tarball, archive);
35
+ const prefix = `${PUBLIC_REPO.split("/")[1]}-${PUBLIC_REF.replace(/\//g, "-")}`;
36
+ fs.mkdirSync(target, { recursive: true });
37
+ try {
38
+ await run("tar", [
39
+ "-xf",
40
+ tarball,
41
+ "-C",
42
+ target,
43
+ "--strip-components",
44
+ String(dir.split("/").length + 1),
45
+ `${prefix}/${dir}`
46
+ ]);
47
+ } catch {
48
+ throw new RepoDownloadError(notFound);
49
+ } finally {
50
+ fs.rmSync(stage, {
51
+ recursive: true,
52
+ force: true
53
+ });
54
+ }
55
+ }
56
+
57
+ //#endregion
58
+ export { downloadRepoDir as i, PUBLIC_REPO as n, RepoDownloadError as r, PUBLIC_REF as t };
@@ -1,9 +1,9 @@
1
- import { t as getOAuthAccessToken } from "./token-lUUOkTJA.js";
2
- import { t as API_HOST, v as VERSION } from "./environment-i8BhiBDB.js";
3
- import { n as readSession } from "./storage-VagEaaJC.js";
1
+ import { t as getOAuthAccessToken } from "./token-FmeHywYt.js";
2
+ import { t as API_HOST, x as VERSION } from "./environment-BWT2S4qC.js";
3
+ import { n as readSession } from "./storage-DzP22xKn.js";
4
4
  import { n as readVersion, r as spawnStream, t as onPath } from "./spawn-DmmmHIP-.js";
5
- import { basename, join } from "node:path";
6
5
  import { tmpdir } from "node:os";
6
+ import { basename, join } from "node:path";
7
7
  import { readFile, rm } from "node:fs/promises";
8
8
  import { query } from "@anthropic-ai/claude-agent-sdk";
9
9
 
package/dist/entry.js CHANGED
@@ -1,36 +1,38 @@
1
1
  import { n as __require, r as __toESM, t as __commonJS } from "./chunk-DQxbwPpZ.js";
2
- import "./token-lUUOkTJA.js";
2
+ import "./token-FmeHywYt.js";
3
3
  import { a as stripAnsi, d as useStores, i as writeJson } from "./output-Ggzq5_-t.js";
4
- import { S as isNonInteractive, a as CHANNEL, v as VERSION } from "./environment-i8BhiBDB.js";
5
- import "./storage-VagEaaJC.js";
6
- import { i as superwallApi } from "./client-DOgk9gAS.js";
7
- import { O as useAscRefresh } from "./held-C56PYMRH.js";
8
- import "./config-BO1Y87kV.js";
9
- import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-CM0BDwCK.js";
4
+ import { T as isNonInteractive, s as CHANNEL, x as VERSION } from "./environment-BWT2S4qC.js";
5
+ import "./storage-DzP22xKn.js";
6
+ import { i as superwallApi } from "./client-AI9H4GGB.js";
7
+ import { O as useAscRefresh } from "./held-D3PUNky2.js";
8
+ import "./config-CGcG7GOt.js";
9
+ import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-CXN6f-ZX.js";
10
10
  import "./spawn-DmmmHIP-.js";
11
- import { i as refreshUpdateCheck, r as maybeNotifyUpdate, t as flushUpdateCheck } from "./upgrade-DZbKb67W.js";
12
- import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-BN3U1CVB.js";
11
+ import { a as printAutoUpdate, i as maybeNotifyUpdate, l as selectAutoUpdate, n as isGlobalInstall, o as recordAutoUpdate, s as refreshUpdateCheck, t as flushUpdateCheck } from "./upgrade-Bk5boOgW.js";
12
+ import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-BANVLncC.js";
13
13
  import { r as useRenderer, t as silentRenderer } from "./ui-D_qf3Gvw.js";
14
14
  import { t as THEME } from "./theme-DUsCh-Vd.js";
15
- import { n as styleMarkdown, r as wrapReportLine } from "./log-NVhVe_oe.js";
16
- import { t as scanProject } from "./scan-Dwk_lT5q.js";
17
- import { t as detectExisting } from "./existing-BPOG5zLO.js";
18
- import { n as SUPERWALL_HOME, r as expandHome } from "./paths-yRgm5Jpa.js";
19
- import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-D3xmWk9p.js";
20
- import "./session-CnDJp_HO.js";
21
- import "./resources-BTnczJCA.js";
22
- import "./org-BiFPjoHD.js";
23
- import "./lookup-flTi0at0.js";
24
- import "./scope-Db7blD-l.js";
25
- import "./client-BZ1UbpXz.js";
26
- import "./products-DH_fK9tY.js";
27
- import "./input-vi0bou04.js";
28
- import "./timing-BVxPrYq3.js";
29
- import "./notification-url-CCDeS5S-.js";
30
- import "./bind-Bx9K6LwP.js";
15
+ import { n as styleMarkdown, r as wrapReportLine } from "./log-C0MDCfA2.js";
16
+ import { t as scanProject } from "./scan-Bj5y0zTZ.js";
17
+ import { t as detectExisting } from "./existing-b0GxFcnc.js";
18
+ import { n as SUPERWALL_HOME, r as expandHome } from "./paths-REb-GrbX.js";
19
+ import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-DIJB0mJa.js";
20
+ import "./session-Ywim-P8M.js";
21
+ import "./orgs-D6Kk96mG.js";
22
+ import "./resources-BaP3p_LY.js";
23
+ import "./org-C04eAO-j.js";
24
+ import "./lookup-gjcKIZvh.js";
25
+ import "./scope-Bp_zwJOo.js";
26
+ import "./client-BJQXl62Q.js";
27
+ import "./products-Cqq59DBQ.js";
28
+ import "./input-MDd67UIp.js";
29
+ import "./timing-Ca0TXY-A.js";
30
+ import "./notification-url-BjQPLf4-.js";
31
+ import "./bind-B3eEcRyp.js";
31
32
  import { spawn } from "node:child_process";
32
33
  import * as fs from "node:fs";
33
34
  import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
35
+ import os, { tmpdir } from "node:os";
34
36
  import * as path from "node:path";
35
37
  import { join, resolve } from "node:path";
36
38
  import pc from "picocolors";
@@ -38,7 +40,6 @@ import { PassThrough, Stream } from "node:stream";
38
40
  import process$1, { cwd, env } from "node:process";
39
41
  import ansiEscapes from "ansi-escapes";
40
42
  import wrapAnsi from "wrap-ansi";
41
- import os from "node:os";
42
43
  import tty from "node:tty";
43
44
  import { EventEmitter } from "node:events";
44
45
  import { Buffer } from "node:buffer";
@@ -22096,7 +22097,7 @@ var styles_default = styles$2;
22096
22097
  //#endregion
22097
22098
  //#region ../../node_modules/.bun/ink@5.2.1+95f74e15225f916f/node_modules/ink/build/reconciler.js
22098
22099
  if (process$1.env["DEV"] === "true") try {
22099
- await import("./devtools-pBl_vt03.js");
22100
+ await import("./devtools-ByZ6XYnn.js");
22100
22101
  } catch (error) {
22101
22102
  if (error.code === "ERR_MODULE_NOT_FOUND") console.warn(`
22102
22103
  The environment variable DEV is set to true, so Ink tried to import \`react-devtools-core\`,
@@ -27718,6 +27719,42 @@ function startAscRefresh(spawn$1 = spawn) {
27718
27719
  return;
27719
27720
  }
27720
27721
  }
27722
+ function startAutoUpdate(version, spawn$1 = spawn, isGlobal = isGlobalInstall) {
27723
+ const entry = process.argv[1];
27724
+ if (!entry) return false;
27725
+ recordAutoUpdate(version);
27726
+ if (!isGlobal()) return false;
27727
+ try {
27728
+ const child = spawn$1(process.execPath, [
27729
+ entry,
27730
+ "upgrade",
27731
+ "--json"
27732
+ ], {
27733
+ cwd: tmpdir(),
27734
+ detached: true,
27735
+ stdio: "ignore",
27736
+ env: {
27737
+ ...process.env,
27738
+ SW_AUTO_UPDATE: version
27739
+ }
27740
+ });
27741
+ child.on("error", () => {});
27742
+ child.unref();
27743
+ return true;
27744
+ } catch {
27745
+ return false;
27746
+ }
27747
+ }
27748
+ function finishTerminal(stdout, mode, command, update, start$1 = startAutoUpdate) {
27749
+ refreshUpdateCheck();
27750
+ if (command === "upgrade") return;
27751
+ const version = update ? selectAutoUpdate() : null;
27752
+ if (version && start$1(version)) {
27753
+ if (mode !== "json") printAutoUpdate(stdout, version);
27754
+ return;
27755
+ }
27756
+ if (mode !== "json") maybeNotifyUpdate(stdout);
27757
+ }
27721
27758
  const terminalHost = {
27722
27759
  api: superwallApi,
27723
27760
  renderer: (mode) => selectRenderer({ mode }),
@@ -27733,11 +27770,7 @@ const terminalHost = {
27733
27770
  starting: (ui, mode) => {
27734
27771
  if (mode === "rich") maybeShowTelemetryNotice(ui);
27735
27772
  },
27736
- finishing: (stdout, mode, command) => {
27737
- if (mode === "json") return;
27738
- refreshUpdateCheck();
27739
- if (command !== "upgrade") maybeNotifyUpdate(stdout);
27740
- },
27773
+ finishing: (stdout, mode, command, update) => finishTerminal(stdout, mode, command, update),
27741
27774
  fail: () => {
27742
27775
  process.exitCode = 1;
27743
27776
  },
@@ -27942,12 +27975,14 @@ function takeGlobals(tokens) {
27942
27975
  const globals = {
27943
27976
  json: false,
27944
27977
  interactive: true,
27978
+ update: true,
27945
27979
  help: false,
27946
27980
  rest: []
27947
27981
  };
27948
27982
  for (const token of tokens) if (token === "--json") globals.json = true;
27949
27983
  else if (token === "--no-interactive") globals.interactive = false;
27950
27984
  else if (token === "--interactive") globals.interactive = true;
27985
+ else if (token === "--no-update") globals.update = false;
27951
27986
  else if (token === "--help" || token === "-h") globals.help = true;
27952
27987
  else globals.rest.push(token);
27953
27988
  return globals;
@@ -28053,7 +28088,8 @@ function resolveCommand(command, rest, globals) {
28053
28088
  words: parsed.positionals,
28054
28089
  flags: parsed.values,
28055
28090
  json: globals.json,
28056
- interactive: globals.interactive
28091
+ interactive: globals.interactive,
28092
+ update: globals.update
28057
28093
  };
28058
28094
  if (command.kind === "command") command.validate(input);
28059
28095
  return {
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "2.3.1";
2
+ var version = "2.5.0";
3
3
 
4
4
  //#endregion
5
5
  //#region src/environment.ts
@@ -19,6 +19,7 @@ const AUTH_HOST = () => resolveEnv("SUPERWALL_AUTH_HOST") ?? "https://auth.super
19
19
  const ASSET_HOST = () => resolveEnv("SUPERWALL_ASSET_HOST") ?? "https://user-content.superwalleditor.com/user-content/hl";
20
20
  const API_HOST_OVERRIDE = () => resolveEnv("SUPERWALL_API_HOST");
21
21
  const API_HOST = () => API_HOST_OVERRIDE() ?? "https://api.superwall.com";
22
+ const DASHBOARD_ORIGIN_OVERRIDE = () => resolveEnv("SUPERWALL_DASHBOARD_ORIGIN");
22
23
  const CLI_CLIENT_ID = () => resolveEnv("SUPERWALL_CLI_CLIENT_ID") ?? "client_01KWEWM154D2T28NZAS02B8MWT";
23
24
  const OAUTH_SCOPE = "openid profile email offline_access";
24
25
  const TELEMETRY_HOST = () => resolveEnv("SUPERWALL_TELEMETRY_HOST") ?? "https://us.i.posthog.com";
@@ -66,6 +67,12 @@ function isNonInteractive() {
66
67
  return !process.stdout.isTTY || !process.stdin.isTTY || process.env.CI === "true";
67
68
  }
68
69
  const RUNNING_VIA_NPX = () => process.argv[1]?.includes("_npx") ?? false;
70
+ const isOn = (name) => {
71
+ const value = resolveEnv(name)?.toLowerCase();
72
+ return value !== void 0 && value !== "0" && value !== "false";
73
+ };
74
+ const AUTO_UPDATE = () => !isOn("SUPERWALL_NO_UPDATE") && !isOn("CI") && !RUNNING_VIA_NPX();
75
+ const AUTO_UPDATE_TARGET = () => resolveEnv("SW_AUTO_UPDATE");
69
76
 
70
77
  //#endregion
71
- export { resolveEnv as C, isNonInteractive as S, USER_AGENT as _, CHANNEL as a, appleCredentialsFromEnv as b, DASHBOARD_URL as c, ENV_APPLE_PASSWORD as d, Integration as f, TELEMETRY_KEY as g, TELEMETRY_HOST as h, AUTH_HOST as i, ENV_API_KEY as l, RUNNING_VIA_NPX as m, API_HOST_OVERRIDE as n, CHANNELS as o, OAUTH_SCOPE as p, ASSET_HOST as r, CLI_CLIENT_ID as s, API_HOST as t, ENV_APPLE_ID as u, VERSION as v, detectAgent as x, apiKeyFromEnv as y };
78
+ export { appleCredentialsFromEnv as C, resolveEnv as E, apiKeyFromEnv as S, isNonInteractive as T, RUNNING_VIA_NPX as _, AUTO_UPDATE as a, USER_AGENT as b, CHANNELS as c, DASHBOARD_URL as d, ENV_API_KEY as f, OAUTH_SCOPE as g, Integration as h, AUTH_HOST as i, CLI_CLIENT_ID as l, ENV_APPLE_PASSWORD as m, API_HOST_OVERRIDE as n, AUTO_UPDATE_TARGET as o, ENV_APPLE_ID as p, ASSET_HOST as r, CHANNEL as s, API_HOST as t, DASHBOARD_ORIGIN_OVERRIDE as u, TELEMETRY_HOST as v, detectAgent as w, VERSION as x, TELEMETRY_KEY as y };
@@ -1,5 +1,5 @@
1
- import { f as Integration } from "./environment-i8BhiBDB.js";
2
- import { i as readPackageJson, r as allDeps } from "./scan-Dwk_lT5q.js";
1
+ import { h as Integration } from "./environment-BWT2S4qC.js";
2
+ import { i as readPackageJson, r as allDeps } from "./scan-Bj5y0zTZ.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import fg from "fast-glob";
5
5