@superwall/cli 1.5.0 → 1.6.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 (43) hide show
  1. package/README.md +2 -3
  2. package/dist/{actions-C0AzXRrF.js → actions-Dt35nIi8.js} +2 -2
  3. package/dist/{api-BnM4rTKN.js → api-BOR-uXZe.js} +5 -5
  4. package/dist/{app-BJxaQo2S.js → app-BU27SLPX.js} +7 -7
  5. package/dist/{asa-CLXU3JO4.js → asa-2ykGnjaV.js} +5 -5
  6. package/dist/{asc-CZowAIf_.js → asc-r3xmFT0L.js} +5 -5
  7. package/dist/{auth-CAEGguzH.js → auth-BWZfguI8.js} +8 -8
  8. package/dist/auth.js +2 -2
  9. package/dist/{billing-DHTBwrRm.js → billing-BsQgXXYh.js} +1 -1
  10. package/dist/{bind-CZOevfSJ.js → bind-BSTAinn6.js} +1 -1
  11. package/dist/{command-Du-b_Jji.js → command-DMoMn7uc.js} +4 -4
  12. package/dist/{create-Z_IbSC9n.js → create-CSo6XjSm.js} +18 -18
  13. package/dist/dev-B0MF6z3L.js +21 -0
  14. package/dist/{dev-0p2GTz3J.js → dev-CuXa3J4Z.js} +4 -4
  15. package/dist/{doctor-MHJadguy.js → doctor-DXJaDqsx.js} +9 -9
  16. package/dist/{drivers-8y9Qd-qe.js → drivers-Cr252DOJ.js} +2 -2
  17. package/dist/entry.js +27 -27
  18. package/dist/{existing-BBHtVCwp.js → existing-Ckx_g7Be.js} +2 -2
  19. package/dist/{feedback-BK4fdySj.js → feedback-Dt5yebMS.js} +5 -5
  20. package/dist/{hosted-B_5T7emr.js → hosted-Cjekn8oJ.js} +2 -2
  21. package/dist/{integrate-CEuN4ebb.js → integrate-DVqhvPVq.js} +16 -16
  22. package/dist/{login-kiXaqdkC.js → login-Bjj8QvIN.js} +3 -3
  23. package/dist/{migrate-C8Y3z2iF.js → migrate-qmvOtp3l.js} +19 -19
  24. package/dist/{open-studio-BGXha018.js → open-studio-CpHqjovS.js} +9 -10
  25. package/dist/{output-B0spXJAT.js → output-CiELrN8w.js} +1 -1
  26. package/dist/{pipeline-G5bZKqrN.js → pipeline-DSCHL9KA.js} +4 -5
  27. package/dist/{print-skill-CRpqzrBD.js → print-skill-CaHRJ8xW.js} +6 -6
  28. package/dist/{promote-BtDlI6UX.js → promote-UMTh8Q33.js} +13 -13
  29. package/dist/{publish-C94YHFK5.js → publish-DWX8S9yZ.js} +13 -13
  30. package/dist/{push-DOTj3kLl.js → push-Dox4_5Dq.js} +13 -13
  31. package/dist/{query-COqz70_0.js → query-CnSsDZ7Q.js} +5 -5
  32. package/dist/{resource-PBkSYrXp.js → resource-5bgyyL9B.js} +8 -8
  33. package/dist/{run-C7ou9t2X.js → run-BVeZWbXx.js} +2 -2
  34. package/dist/{scan-Cp_UTTEw.js → scan-CAObNRgc.js} +1 -1
  35. package/dist/skills/superwall-framework/SKILL.md +12 -4
  36. package/dist/{skills-m2D6qoYX.js → skills-Cu41i-Az.js} +6 -6
  37. package/dist/{skills-B6Sy3Tq0.js → skills-grTDuHlc.js} +2 -2
  38. package/dist/{telemetry-y1JmBs4f.js → telemetry-BuCbmoux.js} +1 -1
  39. package/dist/{token-uDs-2KqY.js → token-mju3Q-vc.js} +1 -1
  40. package/dist/{update-CLYT9c3k.js → update-DnGfpCD7.js} +2 -2
  41. package/dist/{upgrade-DLrdLVJk.js → upgrade-PMoj3yqJ.js} +5 -5
  42. package/package.json +2 -2
  43. package/dist/dev-dB-b2xI3.js +0 -21
package/README.md CHANGED
@@ -348,9 +348,8 @@ already knows, so it gets a paywall right on the first try.
348
348
  Set `SUPERWALL_CHANNEL=next` to opt into experimental and beta features:
349
349
  commands that are not in the stable set yet, and the matching agent skills
350
350
  from the `next` branch of the skills repo. Everything else is unchanged.
351
- Put it in a project's `.env` (the CLI loads `superwall/.env` and `.env` from
352
- the current directory) to keep that project on the channel, or export it in
353
- your shell. Unset it to go back to the stable set.
351
+ Export it in your shell rc so every terminal and agent sees it. Unset it to
352
+ go back to the stable set.
354
353
 
355
354
  ## Telemetry
356
355
 
@@ -1,5 +1,5 @@
1
- import { m as Integration } from "./output-B0spXJAT.js";
2
- import { i as loadBundledSkill } from "./skills-B6Sy3Tq0.js";
1
+ import { m as Integration } from "./output-CiELrN8w.js";
2
+ import { i as loadBundledSkill } from "./skills-grTDuHlc.js";
3
3
 
4
4
  //#region src/core/agent/actions.ts
5
5
  /** Skill reference file per framework, so an agent only sees its own platform's docs. */
@@ -1,8 +1,8 @@
1
- import "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
7
  import { E as titleCase, T as rowName, b as platformLabel, g as listResource, h as listProjects, m as listOrganizations } from "./resources-Bf9O1JNM.js";
8
8
  import { t as parseParams } from "./params-BxgTuCzr.js";
@@ -1,12 +1,12 @@
1
- import { i as loadSession, r as clearSession } from "./token-uDs-2KqY.js";
2
- import { a as superwallApi } from "./command-Du-b_Jji.js";
1
+ import { i as loadSession, r as clearSession } from "./token-mju3Q-vc.js";
2
+ import { a as superwallApi } from "./command-DMoMn7uc.js";
3
3
  import { n as ui } from "./ui-4gLyfrgl.js";
4
- import { i as onboardingHooks, n as performLogin } from "./login-kiXaqdkC.js";
5
- import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-Cp_UTTEw.js";
6
- import { r as getHostedStatus } from "./hosted-B_5T7emr.js";
4
+ import { i as onboardingHooks, n as performLogin } from "./login-Bjj8QvIN.js";
5
+ import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-CAObNRgc.js";
6
+ import { r as getHostedStatus } from "./hosted-Cjekn8oJ.js";
7
7
  import { t as withSpinner } from "./spinner-DFctF_Jw.js";
8
- import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-CZOevfSJ.js";
9
- import { t as ACTIONS } from "./actions-C0AzXRrF.js";
8
+ import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-BSTAinn6.js";
9
+ import { t as ACTIONS } from "./actions-Dt35nIi8.js";
10
10
 
11
11
  //#region src/commands/workflow/integrate/app.ts
12
12
  async function performLoginWithUi(app, onProvisioned) {
@@ -1,8 +1,8 @@
1
- import "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { r as ApiError, t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { r as ApiError, t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
7
  import "./spinner-DFctF_Jw.js";
8
8
  import { h as listProjects } from "./resources-Bf9O1JNM.js";
@@ -1,8 +1,8 @@
1
- import { g as SUPERWALL_HOME } from "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { g as SUPERWALL_HOME } from "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
7
  import "./spinner-DFctF_Jw.js";
8
8
  import { T as rowName } from "./resources-Bf9O1JNM.js";
@@ -1,13 +1,13 @@
1
- import { o as API_HOST } from "./output-B0spXJAT.js";
2
- import { i as track } from "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import { i as loadSession, r as clearSession } from "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { o as API_HOST } from "./output-CiELrN8w.js";
2
+ import { i as track } from "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import { i as loadSession, r as clearSession } from "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
- import { n as ensureSkillsCurrent } from "./skills-B6Sy3Tq0.js";
7
+ import { n as ensureSkillsCurrent } from "./skills-grTDuHlc.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import { i as onboardingHooks, n as performLogin, t as loginWithApiKey } from "./login-kiXaqdkC.js";
10
- import { t as scanProject } from "./scan-Cp_UTTEw.js";
9
+ import { i as onboardingHooks, n as performLogin, t as loginWithApiKey } from "./login-Bjj8QvIN.js";
10
+ import { t as scanProject } from "./scan-CAObNRgc.js";
11
11
 
12
12
  //#region src/commands/account/auth.ts
13
13
  const runLogin = defineCommand({
package/dist/auth.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./output-B0spXJAT.js";
2
- import { n as resolveAuthToken, o as NotLoggedInError, t as getOAuthAccessToken } from "./token-uDs-2KqY.js";
1
+ import "./output-CiELrN8w.js";
2
+ import { n as resolveAuthToken, o as NotLoggedInError, t as getOAuthAccessToken } from "./token-mju3Q-vc.js";
3
3
 
4
4
  export { NotLoggedInError, getOAuthAccessToken, resolveAuthToken };
@@ -1,4 +1,4 @@
1
- import { n as allDeps, r as readPackageJson } from "./scan-Cp_UTTEw.js";
1
+ import { n as allDeps, r as readPackageJson } from "./scan-CAObNRgc.js";
2
2
  import { readFileSync } from "node:fs";
3
3
  import fg from "fast-glob";
4
4
 
@@ -1,4 +1,4 @@
1
- import { m as Integration } from "./output-B0spXJAT.js";
1
+ import { m as Integration } from "./output-CiELrN8w.js";
2
2
  import { n as ui } from "./ui-4gLyfrgl.js";
3
3
  import { b as platformLabel, h as listProjects, n as createApplication, s as createProject } from "./resources-Bf9O1JNM.js";
4
4
  import { t as requireOrg } from "./org-CV8c849b.js";
@@ -1,7 +1,7 @@
1
- import { i as writeJson, n as createCommandOutput, o as API_HOST, x as isNonInteractive } from "./output-B0spXJAT.js";
2
- import { i as track, n as maybeShowTelemetryNotice } from "./telemetry-y1JmBs4f.js";
3
- import { a as refreshUpdateCheck, i as maybeNotifyUpdate } from "./update-CLYT9c3k.js";
4
- import { a as saveSession, i as loadSession, n as resolveAuthToken, o as NotLoggedInError } from "./token-uDs-2KqY.js";
1
+ import { i as writeJson, n as createCommandOutput, o as API_HOST, x as isNonInteractive } from "./output-CiELrN8w.js";
2
+ import { i as track, n as maybeShowTelemetryNotice } from "./telemetry-BuCbmoux.js";
3
+ import { a as refreshUpdateCheck, i as maybeNotifyUpdate } from "./update-DnGfpCD7.js";
4
+ import { a as saveSession, i as loadSession, n as resolveAuthToken, o as NotLoggedInError } from "./token-mju3Q-vc.js";
5
5
  import { r as useRenderer, t as selectRenderer } from "./ui-4gLyfrgl.js";
6
6
  import pc from "picocolors";
7
7
  import { resolve } from "node:path";
@@ -1,26 +1,26 @@
1
- import "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
- import "./skills-B6Sy3Tq0.js";
7
+ import "./skills-grTDuHlc.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import "./login-kiXaqdkC.js";
10
- import { n as allDeps, r as readPackageJson, t as scanProject } from "./scan-Cp_UTTEw.js";
11
- import "./drivers-8y9Qd-qe.js";
12
- import "./hosted-B_5T7emr.js";
13
- import { t as detectExisting } from "./existing-BBHtVCwp.js";
9
+ import "./login-Bjj8QvIN.js";
10
+ import { n as allDeps, r as readPackageJson, t as scanProject } from "./scan-CAObNRgc.js";
11
+ import "./drivers-Cr252DOJ.js";
12
+ import "./hosted-Cjekn8oJ.js";
13
+ import { t as detectExisting } from "./existing-Ckx_g7Be.js";
14
14
  import "./spinner-DFctF_Jw.js";
15
15
  import { b as platformLabel, h as listProjects, n as createApplication, p as listApplications } from "./resources-Bf9O1JNM.js";
16
16
  import "./org-CV8c849b.js";
17
- import { r as resolveScopeFromKey } from "./bind-CZOevfSJ.js";
18
- import { A as requireApi, L as writeApp, N as requirePlatform, f as gitAvailable, j as projectPackageName, k as LoginRequiredError } from "./pipeline-G5bZKqrN.js";
19
- import "./actions-C0AzXRrF.js";
20
- import "./app-BJxaQo2S.js";
21
- import "./run-C7ou9t2X.js";
22
- import { b as writeTemplate, c as migrationFor, d as projectDirOf, f as scaffoldFromPaywall, i as startStudio, n as migrationNextSteps, s as isSuperwallProject, t as askStudio, u as offerMigration, v as starterConfig, x as slugOf, y as writeSurfaceFiles } from "./open-studio-BGXha018.js";
23
- import "./dev-0p2GTz3J.js";
17
+ import { r as resolveScopeFromKey } from "./bind-BSTAinn6.js";
18
+ import { A as requireApi, L as writeApp, N as requirePlatform, f as gitAvailable, j as projectPackageName, k as LoginRequiredError } from "./pipeline-DSCHL9KA.js";
19
+ import "./actions-Dt35nIi8.js";
20
+ import "./app-BU27SLPX.js";
21
+ import "./run-BVeZWbXx.js";
22
+ import { b as writeTemplate, c as migrationFor, d as projectDirOf, f as scaffoldFromPaywall, i as startStudio, n as migrationNextSteps, s as isSuperwallProject, t as askStudio, u as offerMigration, v as starterConfig, x as slugOf, y as writeSurfaceFiles } from "./open-studio-CpHqjovS.js";
23
+ import "./dev-CuXa3J4Z.js";
24
24
  import pc from "picocolors";
25
25
  import * as path from "node:path";
26
26
  import * as os$1 from "node:os";
@@ -0,0 +1,21 @@
1
+ import "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import "./command-DMoMn7uc.js";
6
+ import "./ui-4gLyfrgl.js";
7
+ import "./skills-grTDuHlc.js";
8
+ import "./spawn-DSoTXy_j.js";
9
+ import "./login-Bjj8QvIN.js";
10
+ import "./scan-CAObNRgc.js";
11
+ import "./hosted-Cjekn8oJ.js";
12
+ import "./spinner-DFctF_Jw.js";
13
+ import "./resources-Bf9O1JNM.js";
14
+ import "./org-CV8c849b.js";
15
+ import "./bind-BSTAinn6.js";
16
+ import "./pipeline-DSCHL9KA.js";
17
+ import "./actions-Dt35nIi8.js";
18
+ import "./app-BU27SLPX.js";
19
+ import { t as runDev } from "./dev-CuXa3J4Z.js";
20
+
21
+ export { runDev };
@@ -1,9 +1,9 @@
1
- import { y as VERSION } from "./output-B0spXJAT.js";
2
- import { r as ApiError, t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { y as VERSION } from "./output-CiELrN8w.js";
2
+ import { r as ApiError, t as defineCommand } from "./command-DMoMn7uc.js";
3
3
  import { n as ui } from "./ui-4gLyfrgl.js";
4
- import { r as openBrowser } from "./login-kiXaqdkC.js";
4
+ import { r as openBrowser } from "./login-Bjj8QvIN.js";
5
5
  import { D as versionProducts, S as promotePaywallVersion, p as listApplications, w as pushPaywallVersion } from "./resources-Bf9O1JNM.js";
6
- import { A as requireApi, C as requireAssets, D as collectProjectDeclarations, E as loadFramework, I as readLock, M as writeProjectScaffold, O as writeProjectTypes, P as resolveApps, S as assetBaseUrl, T as frameworkVersion, a as projectDir, b as wantedPlatforms, d as pushSource, g as projectForApplication, h as fetchProducts, l as LAYOUT_HINT, m as warnNotPortable, o as projectDirs, p as collectSourceFiles, s as requireProject, v as planTargets, w as syncAssets, x as resolveBinding } from "./pipeline-G5bZKqrN.js";
6
+ import { A as requireApi, C as requireAssets, D as collectProjectDeclarations, E as loadFramework, I as readLock, M as writeProjectScaffold, O as writeProjectTypes, P as resolveApps, S as assetBaseUrl, T as frameworkVersion, a as projectDir, b as wantedPlatforms, d as pushSource, g as projectForApplication, h as fetchProducts, l as LAYOUT_HINT, m as warnNotPortable, o as projectDirs, p as collectSourceFiles, s as requireProject, v as planTargets, w as syncAssets, x as resolveBinding } from "./pipeline-DSCHL9KA.js";
7
7
  import pc from "picocolors";
8
8
  import * as path from "node:path";
9
9
  import * as fs from "node:fs";
@@ -1,14 +1,14 @@
1
- import { b as apiKeyFromEnv } from "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import { i as loadSession } from "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { b as apiKeyFromEnv } from "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import { i as loadSession } from "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import { a as THEME, n as ui, o as fg } from "./ui-4gLyfrgl.js";
7
7
  import "./spawn-DSoTXy_j.js";
8
- import { t as scanProject } from "./scan-Cp_UTTEw.js";
9
- import { t as detectDrivers } from "./drivers-8y9Qd-qe.js";
10
- import "./hosted-B_5T7emr.js";
11
- import { t as detectExisting } from "./existing-BBHtVCwp.js";
8
+ import { t as scanProject } from "./scan-CAObNRgc.js";
9
+ import { t as detectDrivers } from "./drivers-Cr252DOJ.js";
10
+ import "./hosted-Cjekn8oJ.js";
11
+ import { t as detectExisting } from "./existing-Ckx_g7Be.js";
12
12
 
13
13
  //#region src/commands/account/doctor.ts
14
14
  const runDoctor = defineCommand({
@@ -1,6 +1,6 @@
1
- import { y as VERSION } from "./output-B0spXJAT.js";
1
+ import { y as VERSION } from "./output-CiELrN8w.js";
2
2
  import { n as readVersion, r as spawnStream, t as onPath } from "./spawn-DSoTXy_j.js";
3
- import { n as getHostedAuthToken, r as getHostedStatus, t as getHostedAnthropicBaseUrl } from "./hosted-B_5T7emr.js";
3
+ import { n as getHostedAuthToken, r as getHostedStatus, t as getHostedAnthropicBaseUrl } from "./hosted-Cjekn8oJ.js";
4
4
  import { basename, join } from "node:path";
5
5
  import { tmpdir } from "node:os";
6
6
  import { readFile, rm } from "node:fs/promises";
package/dist/entry.js CHANGED
@@ -1,6 +1,6 @@
1
- import { i as writeJson, l as CHANNEL, p as ENV_API_KEY, y as VERSION } from "./output-B0spXJAT.js";
2
- import { t as flushTelemetry } from "./telemetry-y1JmBs4f.js";
3
- import { n as flushUpdateCheck } from "./update-CLYT9c3k.js";
1
+ import { i as writeJson, l as CHANNEL, p as ENV_API_KEY, y as VERSION } from "./output-CiELrN8w.js";
2
+ import { t as flushTelemetry } from "./telemetry-BuCbmoux.js";
3
+ import { n as flushUpdateCheck } from "./update-DnGfpCD7.js";
4
4
  import yargs from "yargs";
5
5
  import { hideBin } from "yargs/helpers";
6
6
  import pc from "picocolors";
@@ -56,11 +56,11 @@ const registerAccountCommands = (cli) => cli.command("login", "Log in to Superwa
56
56
  hidden: true
57
57
  }
58
58
  }), (argv) => {
59
- return import("./auth-CAEGguzH.js").then((m) => m.runLogin(argv));
59
+ return import("./auth-BWZfguI8.js").then((m) => m.runLogin(argv));
60
60
  }).command("logout", "Log out of Superwall", (y) => y, (argv) => {
61
- return import("./auth-CAEGguzH.js").then((m) => m.runLogout(argv));
61
+ return import("./auth-BWZfguI8.js").then((m) => m.runLogout(argv));
62
62
  }).command("whoami", "Show the logged-in Superwall account", (y) => y, (argv) => {
63
- return import("./auth-CAEGguzH.js").then((m) => m.runWhoami(argv));
63
+ return import("./auth-BWZfguI8.js").then((m) => m.runWhoami(argv));
64
64
  }).command("skills", "Install or update the Superwall agent skills for your coding agent", (y) => y.options({
65
65
  skill: {
66
66
  type: "array",
@@ -81,16 +81,16 @@ const registerAccountCommands = (cli) => cli.command("login", "Log in to Superwa
81
81
  hidden: true
82
82
  }
83
83
  }), (argv) => {
84
- return import("./skills-m2D6qoYX.js").then((m) => m.runSkills(argv));
84
+ return import("./skills-Cu41i-Az.js").then((m) => m.runSkills(argv));
85
85
  }).command("doctor", "Check the health of your Superwall integration", (y) => y.options({ ...installDirOption }), (argv) => {
86
- return import("./doctor-MHJadguy.js").then((m) => m.runDoctor(argv));
86
+ return import("./doctor-DXJaDqsx.js").then((m) => m.runDoctor(argv));
87
87
  }).command("upgrade", "Update the CLI to the latest version", (y) => y, (argv) => {
88
- return import("./upgrade-DLrdLVJk.js").then((m) => m.runUpgrade(argv));
88
+ return import("./upgrade-PMoj3yqJ.js").then((m) => m.runUpgrade(argv));
89
89
  }).command("feedback [message]", "Send feedback about the CLI to the Superwall team", (y) => y.positional("message", {
90
90
  type: "string",
91
91
  describe: "Your feedback (omit to be prompted)"
92
92
  }).example("$0 feedback \"migrate crashed on Expo\"", "Send feedback").example("$0 feedback \"...\" --json", "For agents / automation"), (argv) => {
93
- return import("./feedback-BK4fdySj.js").then((m) => m.runFeedback(argv));
93
+ return import("./feedback-Dt5yebMS.js").then((m) => m.runFeedback(argv));
94
94
  });
95
95
 
96
96
  //#endregion
@@ -199,7 +199,7 @@ const registerPaywallCommands = (cli) => cli.command("create [dir]", "Set up pay
199
199
  describe: "Connect a Superwall app when possible (--no-connect to skip)"
200
200
  }
201
201
  }).example("$0 create", "Set up superwall/ in the current app").example("$0 create --example with-rive", "Start from an example").example("$0 create --from 65920", "Rebuild dashboard paywall 65920 as code").example("$0 create --app 52518", "Connect a specific Superwall app"), (argv) => {
202
- return import("./create-Z_IbSC9n.js").then((m) => m.runCreate(argv));
202
+ return import("./create-CSo6XjSm.js").then((m) => m.runCreate(argv));
203
203
  }).command("dev [dir..]", "Host the studio: browse and preview your paywalls and funnels", (y) => y.positional("dir", {
204
204
  type: "string",
205
205
  array: true,
@@ -222,7 +222,7 @@ const registerPaywallCommands = (cli) => cli.command("create [dir]", "Set up pay
222
222
  describe: "Open the browser at this studio path once the server is up"
223
223
  }
224
224
  }), (argv) => {
225
- return import("./dev-dB-b2xI3.js").then((m) => m.runDev(argv));
225
+ return import("./dev-B0MF6z3L.js").then((m) => m.runDev(argv));
226
226
  }).command("push [dir]", "Build and push your paywalls as immutable versions (production untouched)", (y) => y.positional("dir", {
227
227
  type: "string",
228
228
  describe: "Project directory (default: cwd)"
@@ -248,7 +248,7 @@ const registerPaywallCommands = (cli) => cli.command("create [dir]", "Set up pay
248
248
  describe: "Publish note recorded in the source commit (only lands when this publish creates a new source commit — unchanged source reuses the existing commit)"
249
249
  }
250
250
  }), (argv) => {
251
- return import("./push-DOTj3kLl.js").then((m) => m.runPush(argv));
251
+ return import("./push-Dox4_5Dq.js").then((m) => m.runPush(argv));
252
252
  }).command("promote [dir]", "Point production at a pushed version (the latest by default)", (y) => y.version(false).positional("dir", {
253
253
  type: "string",
254
254
  describe: "Project directory (default: cwd)"
@@ -269,7 +269,7 @@ const registerPaywallCommands = (cli) => cli.command("create [dir]", "Set up pay
269
269
  describe: "Pushed version number to promote (requires a single --id)"
270
270
  }
271
271
  }), (argv) => {
272
- return import("./promote-BtDlI6UX.js").then((m) => m.runPromote(argv));
272
+ return import("./promote-UMTh8Q33.js").then((m) => m.runPromote(argv));
273
273
  }).command("publish [dir]", "Push and promote in one step - build, version, and ship to production", (y) => y.positional("dir", {
274
274
  type: "string",
275
275
  describe: "Project directory (default: cwd)"
@@ -295,7 +295,7 @@ const registerPaywallCommands = (cli) => cli.command("create [dir]", "Set up pay
295
295
  describe: "Publish note recorded in the source commit (only lands when this publish creates a new source commit — unchanged source reuses the existing commit)"
296
296
  }
297
297
  }), (argv) => {
298
- return import("./publish-C94YHFK5.js").then((m) => m.runPublish(argv));
298
+ return import("./publish-DWX8S9yZ.js").then((m) => m.runPublish(argv));
299
299
  });
300
300
 
301
301
  //#endregion
@@ -307,7 +307,7 @@ const registerPlatformCommands = (cli) => cli.command("query [sql]", "Run SQL ag
307
307
  type: "string",
308
308
  describe: "Read SQL from a .sql file"
309
309
  } }).example("$0 query \"SHOW TABLES FROM sw\"", "Run an inline query").example("$0 query --file report.sql --json", "Run a saved query"), (argv) => {
310
- return import("./query-COqz70_0.js").then((m) => m.runQuery(argv));
310
+ return import("./query-CnSsDZ7Q.js").then((m) => m.runQuery(argv));
311
311
  }).command("asc <target> [value] [value2]", "Call the App Store Connect API through Superwall's signed proxy (no .p8 / JWT needed)", (y) => y.positional("target", {
312
312
  type: "string",
313
313
  describe: "get|post|patch|delete, a raw path (/v1/...), or: apps | products | subscriptions | iaps | docs | keys"
@@ -357,7 +357,7 @@ const registerPlatformCommands = (cli) => cli.command("query [sql]", "Run SQL ag
357
357
  describe: "Plan without writing"
358
358
  }
359
359
  }), (argv) => {
360
- return import("./asc-CZowAIf_.js").then((m) => m.runAsc(argv));
360
+ return import("./asc-r3xmFT0L.js").then((m) => m.runAsc(argv));
361
361
  }).command("asa <target> [action] [value]", "Call the Apple Search Ads API through Superwall's proxy (no key or token handling)", (y) => y.positional("target", {
362
362
  type: "string",
363
363
  describe: "A resource (campaigns, adgroups, keywords, negative-keywords, ads, creatives, product-pages, ad-rejections, reports, impression-share, apps, geo, budget-orders, acls, me), get|post|put|delete, a raw path (/campaigns), docs, or keys"
@@ -569,7 +569,7 @@ const registerPlatformCommands = (cli) => cli.command("query [sql]", "Run SQL ag
569
569
  describe: "product-pages: include deleted assets"
570
570
  }
571
571
  }), (argv) => {
572
- return import("./asa-CLXU3JO4.js").then((m) => m.runAsa(argv));
572
+ return import("./asa-2ykGnjaV.js").then((m) => m.runAsa(argv));
573
573
  });
574
574
 
575
575
  //#endregion
@@ -649,10 +649,10 @@ const registerResourceCommands = (input) => {
649
649
  describe: "Plan without writing"
650
650
  }
651
651
  }), (argv) => {
652
- return import("./resource-PBkSYrXp.js").then((m) => m.runResource(resource)(argv));
652
+ return import("./resource-5bgyyL9B.js").then((m) => m.runResource(resource)(argv));
653
653
  });
654
654
  cli = cli.command("bootstrap", "Complete account tree: orgs, projects, apps, campaigns, placements, and products", (y) => y, (argv) => {
655
- return import("./api-BnM4rTKN.js").then((m) => m.runBootstrap(argv));
655
+ return import("./api-BOR-uXZe.js").then((m) => m.runBootstrap(argv));
656
656
  });
657
657
  for (const verb of API_VERBS) cli = cli.command(`${verb} <path>`, `Make ${verb.toUpperCase()} requests to the Superwall API`, (y) => y.positional("path", {
658
658
  type: "string",
@@ -661,7 +661,7 @@ const registerResourceCommands = (input) => {
661
661
  type: "array",
662
662
  describe: "Param, Stripe-style: -d key=value (string) or key:=value (number/bool/json); nesting via key[sub]"
663
663
  } }), (argv) => {
664
- return import("./api-BnM4rTKN.js").then((m) => m.runApi(verb)(argv));
664
+ return import("./api-BOR-uXZe.js").then((m) => m.runApi(verb)(argv));
665
665
  });
666
666
  return cli;
667
667
  };
@@ -694,8 +694,8 @@ const registerWorkflowCommands = (cli) => cli.command("integrate", "Set up the S
694
694
  hidden: true
695
695
  }
696
696
  }), (argv) => {
697
- if (argv.skill) return import("./print-skill-CRpqzrBD.js").then((m) => m.runPrintSkill("integrate")(argv));
698
- return import("./integrate-CEuN4ebb.js").then((m) => m.runIntegrate(argv));
697
+ if (argv.skill) return import("./print-skill-CaHRJ8xW.js").then((m) => m.runPrintSkill("integrate")(argv));
698
+ return import("./integrate-DVqhvPVq.js").then((m) => m.runIntegrate(argv));
699
699
  }).command("review", "Review an existing Superwall setup end to end", (y) => y.options({
700
700
  ...installDirOption,
701
701
  ...dryRunOption,
@@ -706,8 +706,8 @@ const registerWorkflowCommands = (cli) => cli.command("integrate", "Set up the S
706
706
  }
707
707
  }), (argv) => {
708
708
  const id = argv.fix ? "review-fix" : "review";
709
- if (argv.skill) return import("./print-skill-CRpqzrBD.js").then((m) => m.runPrintSkill(id)(argv));
710
- return import("./integrate-CEuN4ebb.js").then((m) => m.runActionCommand(id)(argv));
709
+ if (argv.skill) return import("./print-skill-CaHRJ8xW.js").then((m) => m.runPrintSkill(id)(argv));
710
+ return import("./integrate-DVqhvPVq.js").then((m) => m.runActionCommand(id)(argv));
711
711
  }).command(CHANNEL() === "next" ? "migrate [paywall]" : "migrate", CHANNEL() === "next" ? "Migrate from RevenueCat / Adapty / Qonversion, or rebuild a dashboard paywall or a native screen as code" : "Migrate from RevenueCat / Adapty / Qonversion", (y) => {
712
712
  const base = y.options({
713
713
  ...installDirOption,
@@ -723,8 +723,8 @@ const registerWorkflowCommands = (cli) => cli.command("integrate", "Set up the S
723
723
  describe: "A dashboard paywall id: scaffold it as code (if not already) and rebuild its pages with your agent, or copy the prompt"
724
724
  }).options(migrateNextOptions).example("$0 migrate 65920", "Rebuild dashboard paywall 65920 as code").example("$0 migrate --screen App/UpdateRequiredView.swift", "Rebuild a native screen as a Superwall surface");
725
725
  }, (argv) => {
726
- if (argv.skill && argv.paywall === void 0 && argv.screen === void 0) return import("./print-skill-CRpqzrBD.js").then((m) => m.runPrintSkill("migrate")(argv));
727
- return import("./migrate-C8Y3z2iF.js").then((m) => m.runMigrate(argv));
726
+ if (argv.skill && argv.paywall === void 0 && argv.screen === void 0) return import("./print-skill-CaHRJ8xW.js").then((m) => m.runPrintSkill("migrate")(argv));
727
+ return import("./migrate-qmvOtp3l.js").then((m) => m.runMigrate(argv));
728
728
  });
729
729
 
730
730
  //#endregion
@@ -1,5 +1,5 @@
1
- import { m as Integration } from "./output-B0spXJAT.js";
2
- import { n as allDeps, r as readPackageJson } from "./scan-Cp_UTTEw.js";
1
+ import { m as Integration } from "./output-CiELrN8w.js";
2
+ import { n as allDeps, r as readPackageJson } from "./scan-CAObNRgc.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import fg from "fast-glob";
5
5
 
@@ -1,8 +1,8 @@
1
- import { _ as TELEMETRY_HOST, v as TELEMETRY_KEY, y as VERSION } from "./output-B0spXJAT.js";
2
- import { a as getAnonymousId } from "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import { i as loadSession } from "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { _ as TELEMETRY_HOST, v as TELEMETRY_KEY, y as VERSION } from "./output-CiELrN8w.js";
2
+ import { a as getAnonymousId } from "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import { i as loadSession } from "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
7
 
8
8
  //#region src/core/feedback.ts
@@ -1,5 +1,5 @@
1
- import { o as API_HOST } from "./output-B0spXJAT.js";
2
- import { i as loadSession, t as getOAuthAccessToken } from "./token-uDs-2KqY.js";
1
+ import { o as API_HOST } from "./output-CiELrN8w.js";
2
+ import { i as loadSession, t as getOAuthAccessToken } from "./token-mju3Q-vc.js";
3
3
 
4
4
  //#region src/core/agent/hosted.ts
5
5
  const STATUS_PATH = "/v2/cli-agent/status";
@@ -1,27 +1,27 @@
1
- import { b as apiKeyFromEnv, f as DASHBOARD_URL, r as formatJson, t as blocks, y as VERSION } from "./output-B0spXJAT.js";
2
- import { r as setTelemetryTags, s as getOnboardedApp } from "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import { i as loadSession } from "./token-uDs-2KqY.js";
5
- import { a as superwallApi, t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { b as apiKeyFromEnv, f as DASHBOARD_URL, r as formatJson, t as blocks, y as VERSION } from "./output-CiELrN8w.js";
2
+ import { r as setTelemetryTags, s as getOnboardedApp } from "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import { i as loadSession } from "./token-mju3Q-vc.js";
5
+ import { a as superwallApi, t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import { i as stripReport, n as ui } from "./ui-4gLyfrgl.js";
7
- import { n as ensureSkillsCurrent } from "./skills-B6Sy3Tq0.js";
7
+ import { n as ensureSkillsCurrent } from "./skills-grTDuHlc.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import "./login-kiXaqdkC.js";
10
- import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-Cp_UTTEw.js";
11
- import { t as detectDrivers } from "./drivers-8y9Qd-qe.js";
12
- import "./hosted-B_5T7emr.js";
13
- import { t as detectExisting } from "./existing-BBHtVCwp.js";
9
+ import "./login-Bjj8QvIN.js";
10
+ import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-CAObNRgc.js";
11
+ import { t as detectDrivers } from "./drivers-Cr252DOJ.js";
12
+ import "./hosted-Cjekn8oJ.js";
13
+ import { t as detectExisting } from "./existing-Ckx_g7Be.js";
14
14
  import { t as withSpinner } from "./spinner-DFctF_Jw.js";
15
15
  import { T as rowName, b as platformLabel, g as listResource, o as createProduct, p as listApplications } from "./resources-Bf9O1JNM.js";
16
16
  import "./org-CV8c849b.js";
17
- import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-CZOevfSJ.js";
18
- import { r as actionById } from "./actions-C0AzXRrF.js";
19
- import { a as recoverUnmatchedScope, i as pickApp, n as ensureAgentDriverReady, o as stage, r as performLoginWithUi, t as chooseAction } from "./app-BJxaQo2S.js";
20
- import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-C7ou9t2X.js";
17
+ import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-BSTAinn6.js";
18
+ import { r as actionById } from "./actions-Dt35nIi8.js";
19
+ import { a as recoverUnmatchedScope, i as pickApp, n as ensureAgentDriverReady, o as stage, r as performLoginWithUi, t as chooseAction } from "./app-BU27SLPX.js";
20
+ import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-BVeZWbXx.js";
21
21
  import { c as listAscConfigs, i as listAscApps, n as fetchUnimportedAscProducts, o as createAscConfig, r as findAscAppId, t as ascTypeDisplay } from "./asc-products-1e1DoGeL.js";
22
22
  import { t as generateStoreKit } from "./storekit-Dlpbq5Wv.js";
23
23
  import { n as saveReport, t as loadReport } from "./reports-C0xHCLnt.js";
24
- import { t as detectBilling } from "./billing-DHTBwrRm.js";
24
+ import { t as detectBilling } from "./billing-BsQgXXYh.js";
25
25
  import { basename, join } from "node:path";
26
26
  import { homedir } from "node:os";
27
27
  import { readFileSync, writeFileSync } from "node:fs";
@@ -1,6 +1,6 @@
1
- import { c as AUTH_HOST, d as CLI_CLIENT_ID, h as OAUTH_SCOPE, m as Integration, o as API_HOST } from "./output-B0spXJAT.js";
2
- import { c as getOnboardedOrg, l as getOnboardingIdempotencyKey, m as setOnboardedOrg, p as setOnboardedApp } from "./telemetry-y1JmBs4f.js";
3
- import { a as saveSession } from "./token-uDs-2KqY.js";
1
+ import { c as AUTH_HOST, d as CLI_CLIENT_ID, h as OAUTH_SCOPE, m as Integration, o as API_HOST } from "./output-CiELrN8w.js";
2
+ import { c as getOnboardedOrg, l as getOnboardingIdempotencyKey, m as setOnboardedOrg, p as setOnboardedApp } from "./telemetry-BuCbmoux.js";
3
+ import { a as saveSession } from "./token-mju3Q-vc.js";
4
4
  import { n as ui } from "./ui-4gLyfrgl.js";
5
5
  import { spawn } from "node:child_process";
6
6
 
@@ -1,28 +1,28 @@
1
- import { f as DASHBOARD_URL, t as blocks, y as VERSION } from "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import { i as loadSession } from "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { f as DASHBOARD_URL, t as blocks, y as VERSION } from "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import { i as loadSession } from "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import { i as stripReport, n as ui } from "./ui-4gLyfrgl.js";
7
- import "./skills-B6Sy3Tq0.js";
7
+ import "./skills-grTDuHlc.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import "./login-kiXaqdkC.js";
10
- import { t as scanProject } from "./scan-Cp_UTTEw.js";
11
- import { t as detectDrivers } from "./drivers-8y9Qd-qe.js";
12
- import "./hosted-B_5T7emr.js";
13
- import { t as detectExisting } from "./existing-BBHtVCwp.js";
9
+ import "./login-Bjj8QvIN.js";
10
+ import { t as scanProject } from "./scan-CAObNRgc.js";
11
+ import { t as detectDrivers } from "./drivers-Cr252DOJ.js";
12
+ import "./hosted-Cjekn8oJ.js";
13
+ import { t as detectExisting } from "./existing-Ckx_g7Be.js";
14
14
  import "./spinner-DFctF_Jw.js";
15
15
  import "./resources-Bf9O1JNM.js";
16
16
  import "./org-CV8c849b.js";
17
- import "./bind-CZOevfSJ.js";
18
- import { A as requireApi } from "./pipeline-G5bZKqrN.js";
19
- import { r as actionById } from "./actions-C0AzXRrF.js";
20
- import { r as performLoginWithUi } from "./app-BJxaQo2S.js";
21
- import { t as runAction } from "./run-C7ou9t2X.js";
22
- import { _ as screenNameOf, a as buildMigrationCopyPrompt, c as migrationFor, d as projectDirOf, f as scaffoldFromPaywall, g as placementOfName, h as findScreenCandidates, i as startStudio, l as migrationSource, m as screenMigrationFor, n as migrationNextSteps, o as hasOriginal, p as scaffoldFromScreen, r as screenNextSteps, t as askStudio, u as offerMigration } from "./open-studio-BGXha018.js";
23
- import "./dev-0p2GTz3J.js";
17
+ import "./bind-BSTAinn6.js";
18
+ import { A as requireApi } from "./pipeline-DSCHL9KA.js";
19
+ import { r as actionById } from "./actions-Dt35nIi8.js";
20
+ import { r as performLoginWithUi } from "./app-BU27SLPX.js";
21
+ import { t as runAction } from "./run-BVeZWbXx.js";
22
+ import { _ as screenNameOf, a as buildMigrationCopyPrompt, c as migrationFor, d as projectDirOf, f as scaffoldFromPaywall, g as placementOfName, h as findScreenCandidates, i as startStudio, l as migrationSource, m as screenMigrationFor, n as migrationNextSteps, o as hasOriginal, p as scaffoldFromScreen, r as screenNextSteps, t as askStudio, u as offerMigration } from "./open-studio-CpHqjovS.js";
23
+ import "./dev-CuXa3J4Z.js";
24
24
  import { n as saveReport } from "./reports-C0xHCLnt.js";
25
- import { t as detectBilling } from "./billing-DHTBwrRm.js";
25
+ import { t as detectBilling } from "./billing-BsQgXXYh.js";
26
26
  import * as path from "node:path";
27
27
  import * as os$1 from "node:os";
28
28
  import * as fs from "node:fs";
@@ -1,13 +1,13 @@
1
- import { f as DASHBOARD_URL } from "./output-B0spXJAT.js";
2
- import { n as executeCommand, r as ApiError } from "./command-Du-b_Jji.js";
1
+ import { f as DASHBOARD_URL } from "./output-CiELrN8w.js";
2
+ import { n as executeCommand, r as ApiError } from "./command-DMoMn7uc.js";
3
3
  import { i as stripReport } from "./ui-4gLyfrgl.js";
4
- import { i as loadBundledSkill } from "./skills-B6Sy3Tq0.js";
5
- import { n as allDeps, r as readPackageJson } from "./scan-Cp_UTTEw.js";
6
- import { t as detectDrivers } from "./drivers-8y9Qd-qe.js";
4
+ import { i as loadBundledSkill } from "./skills-grTDuHlc.js";
5
+ import { n as allDeps, r as readPackageJson } from "./scan-CAObNRgc.js";
6
+ import { t as detectDrivers } from "./drivers-Cr252DOJ.js";
7
7
  import { c as getPaywall, p as listApplications, x as projectOrganizationId } from "./resources-Bf9O1JNM.js";
8
- import { F as isScreenOrigin, I as readLock, L as writeApp, R as writeOrigin, j as projectPackageName } from "./pipeline-G5bZKqrN.js";
9
- import { a as copyToClipboard, i as loadPrompt, n as runWithDriverFallback } from "./run-C7ou9t2X.js";
10
- import { t as runDev } from "./dev-0p2GTz3J.js";
8
+ import { F as isScreenOrigin, I as readLock, L as writeApp, R as writeOrigin, j as projectPackageName } from "./pipeline-DSCHL9KA.js";
9
+ import { a as copyToClipboard, i as loadPrompt, n as runWithDriverFallback } from "./run-BVeZWbXx.js";
10
+ import { t as runDev } from "./dev-CuXa3J4Z.js";
11
11
  import * as path from "node:path";
12
12
  import * as fs from "node:fs";
13
13
  import fg from "fast-glob";
@@ -343,8 +343,7 @@ npx skills add https://github.com/superwall/skills/tree/next --skill superwall-f
343
343
  \`\`\`
344
344
 
345
345
  The framework is on the \`next\` channel: its commands exist only while
346
- \`SUPERWALL_CHANNEL=next\` is set. \`.env\` in this directory carries it and
347
- the CLI loads that file, so run commands from here or export it yourself.
346
+ \`SUPERWALL_CHANNEL=next\` is set in the environment.
348
347
 
349
348
  Docs: \`curl -sL https://superwall.com/docs/framework/llms.txt\`
350
349
  `;
@@ -3,7 +3,7 @@ import { homedir } from "node:os";
3
3
  import { stripVTControlCharacters } from "node:util";
4
4
 
5
5
  //#region package.json
6
- var version = "1.5.0";
6
+ var version = "1.6.0";
7
7
 
8
8
  //#endregion
9
9
  //#region src/environment.ts
@@ -1,9 +1,9 @@
1
- import { b as apiKeyFromEnv, o as API_HOST, p as ENV_API_KEY, s as ASSET_HOST, y as VERSION } from "./output-B0spXJAT.js";
2
- import { i as loadSession } from "./token-uDs-2KqY.js";
3
- import { i as createSuperwallApi, r as ApiError } from "./command-Du-b_Jji.js";
1
+ import { b as apiKeyFromEnv, o as API_HOST, p as ENV_API_KEY, s as ASSET_HOST, y as VERSION } from "./output-CiELrN8w.js";
2
+ import { i as loadSession } from "./token-mju3Q-vc.js";
3
+ import { i as createSuperwallApi, r as ApiError } from "./command-DMoMn7uc.js";
4
4
  import { n as ui } from "./ui-4gLyfrgl.js";
5
5
  import { C as pushPaywallAssets, D as versionProducts, S as promotePaywallVersion, _ as livePaywall, a as createHeadlessPaywall, b as platformLabel, d as linkSourceCommit, f as listAppPaywalls, h as listProjects, p as listApplications, w as pushPaywallVersion, y as mintSourceAccess } from "./resources-Bf9O1JNM.js";
6
- import { r as performLoginWithUi } from "./app-BJxaQo2S.js";
6
+ import { r as performLoginWithUi } from "./app-BU27SLPX.js";
7
7
  import { createRequire } from "node:module";
8
8
  import pc from "picocolors";
9
9
  import * as path from "node:path";
@@ -275,7 +275,6 @@ function writeIfAbsent(file, content) {
275
275
  function writeProjectScaffold(options) {
276
276
  writeIfAbsent(path.join(options.superwallDir, "package.json"), packageJson(projectPackageName(options.root), options.frameworkVersion));
277
277
  writeIfAbsent(path.join(options.superwallDir, ".gitignore"), GITIGNORE);
278
- writeIfAbsent(path.join(options.superwallDir, ".env"), "SUPERWALL_CHANNEL=next\n");
279
278
  }
280
279
 
281
280
  //#endregion
@@ -1,11 +1,11 @@
1
- import "./output-B0spXJAT.js";
2
- import { i as track, r as setTelemetryTags } from "./telemetry-y1JmBs4f.js";
1
+ import "./output-CiELrN8w.js";
2
+ import { i as track, r as setTelemetryTags } from "./telemetry-BuCbmoux.js";
3
3
  import "./ui-4gLyfrgl.js";
4
- import { i as loadBundledSkill } from "./skills-B6Sy3Tq0.js";
4
+ import { i as loadBundledSkill } from "./skills-grTDuHlc.js";
5
5
  import "./spawn-DSoTXy_j.js";
6
- import { t as scanProject } from "./scan-Cp_UTTEw.js";
7
- import { n as FRAMEWORK_REF } from "./actions-C0AzXRrF.js";
8
- import { t as detectBilling } from "./billing-DHTBwrRm.js";
6
+ import { t as scanProject } from "./scan-CAObNRgc.js";
7
+ import { n as FRAMEWORK_REF } from "./actions-Dt35nIi8.js";
8
+ import { t as detectBilling } from "./billing-BsQgXXYh.js";
9
9
  import { resolve } from "node:path";
10
10
 
11
11
  //#region src/commands/workflow/print-skill.ts
@@ -1,21 +1,21 @@
1
- import { y as VERSION } from "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { r as ApiError, t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { y as VERSION } from "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { r as ApiError, t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import { n as ui } from "./ui-4gLyfrgl.js";
7
- import "./skills-B6Sy3Tq0.js";
7
+ import "./skills-grTDuHlc.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import "./login-kiXaqdkC.js";
10
- import "./scan-Cp_UTTEw.js";
11
- import "./hosted-B_5T7emr.js";
9
+ import "./login-Bjj8QvIN.js";
10
+ import "./scan-CAObNRgc.js";
11
+ import "./hosted-Cjekn8oJ.js";
12
12
  import "./spinner-DFctF_Jw.js";
13
13
  import { S as promotePaywallVersion, v as livePaywallVersion } from "./resources-Bf9O1JNM.js";
14
14
  import "./org-CV8c849b.js";
15
- import "./bind-CZOevfSJ.js";
16
- import { A as requireApi, D as collectProjectDeclarations, E as loadFramework, P as resolveApps, _ as parsePlatformFlags, a as projectDir, b as wantedPlatforms, c as selectSurfaces, i as pickApplicationOption, r as timed, t as group, u as transition, v as planTargets, x as resolveBinding, y as targetLabel } from "./pipeline-G5bZKqrN.js";
17
- import "./actions-C0AzXRrF.js";
18
- import "./app-BJxaQo2S.js";
15
+ import "./bind-BSTAinn6.js";
16
+ import { A as requireApi, D as collectProjectDeclarations, E as loadFramework, P as resolveApps, _ as parsePlatformFlags, a as projectDir, b as wantedPlatforms, c as selectSurfaces, i as pickApplicationOption, r as timed, t as group, u as transition, v as planTargets, x as resolveBinding, y as targetLabel } from "./pipeline-DSCHL9KA.js";
17
+ import "./actions-Dt35nIi8.js";
18
+ import "./app-BU27SLPX.js";
19
19
  import pc from "picocolors";
20
20
 
21
21
  //#region src/commands/paywalls/promote.ts
@@ -1,21 +1,21 @@
1
- import "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
- import "./skills-B6Sy3Tq0.js";
7
+ import "./skills-grTDuHlc.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import "./login-kiXaqdkC.js";
10
- import "./scan-Cp_UTTEw.js";
11
- import "./hosted-B_5T7emr.js";
9
+ import "./login-Bjj8QvIN.js";
10
+ import "./scan-CAObNRgc.js";
11
+ import "./hosted-Cjekn8oJ.js";
12
12
  import "./spinner-DFctF_Jw.js";
13
13
  import "./resources-Bf9O1JNM.js";
14
14
  import "./org-CV8c849b.js";
15
- import "./bind-CZOevfSJ.js";
16
- import { A as requireApi, n as runPushPipeline } from "./pipeline-G5bZKqrN.js";
17
- import "./actions-C0AzXRrF.js";
18
- import "./app-BJxaQo2S.js";
15
+ import "./bind-BSTAinn6.js";
16
+ import { A as requireApi, n as runPushPipeline } from "./pipeline-DSCHL9KA.js";
17
+ import "./actions-Dt35nIi8.js";
18
+ import "./app-BU27SLPX.js";
19
19
 
20
20
  //#region src/commands/paywalls/publish.ts
21
21
  const runPublish = defineCommand({
@@ -1,21 +1,21 @@
1
- import "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
- import "./skills-B6Sy3Tq0.js";
7
+ import "./skills-grTDuHlc.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import "./login-kiXaqdkC.js";
10
- import "./scan-Cp_UTTEw.js";
11
- import "./hosted-B_5T7emr.js";
9
+ import "./login-Bjj8QvIN.js";
10
+ import "./scan-CAObNRgc.js";
11
+ import "./hosted-Cjekn8oJ.js";
12
12
  import "./spinner-DFctF_Jw.js";
13
13
  import "./resources-Bf9O1JNM.js";
14
14
  import "./org-CV8c849b.js";
15
- import "./bind-CZOevfSJ.js";
16
- import { A as requireApi, n as runPushPipeline } from "./pipeline-G5bZKqrN.js";
17
- import "./actions-C0AzXRrF.js";
18
- import "./app-BJxaQo2S.js";
15
+ import "./bind-BSTAinn6.js";
16
+ import { A as requireApi, n as runPushPipeline } from "./pipeline-DSCHL9KA.js";
17
+ import "./actions-Dt35nIi8.js";
18
+ import "./app-BU27SLPX.js";
19
19
 
20
20
  //#region src/commands/paywalls/push.ts
21
21
  const runPush = defineCommand({
@@ -1,8 +1,8 @@
1
- import "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
7
  import "./spinner-DFctF_Jw.js";
8
8
  import "./resources-Bf9O1JNM.js";
@@ -1,15 +1,15 @@
1
- import { r as formatJson, t as blocks } from "./output-B0spXJAT.js";
2
- import { f as setDefaultApp, o as getDefaultApp } from "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { r as ApiError, t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { r as formatJson, t as blocks } from "./output-CiELrN8w.js";
2
+ import { f as setDefaultApp, o as getDefaultApp } from "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { r as ApiError, t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
- import { t as scanProject } from "./scan-Cp_UTTEw.js";
8
- import { t as detectExisting } from "./existing-BBHtVCwp.js";
7
+ import { t as scanProject } from "./scan-CAObNRgc.js";
8
+ import { t as detectExisting } from "./existing-Ckx_g7Be.js";
9
9
  import "./spinner-DFctF_Jw.js";
10
10
  import { E as titleCase, T as rowName, b as platformLabel, g as listResource, h as listProjects, i as createEntitlement, l as getPaywallApplicationId, m as listOrganizations, n as createApplication, o as createProduct, r as createCampaign, s as createProject, t as addPlacement, u as isAppScoped } from "./resources-Bf9O1JNM.js";
11
11
  import { t as requireOrg } from "./org-CV8c849b.js";
12
- import { t as platformForIntegration } from "./bind-CZOevfSJ.js";
12
+ import { t as platformForIntegration } from "./bind-BSTAinn6.js";
13
13
  import { t as apiCall } from "./api-output-CEhN-U_N.js";
14
14
  import { t as generateStoreKit } from "./storekit-Dlpbq5Wv.js";
15
15
  import * as path from "node:path";
@@ -1,5 +1,5 @@
1
- import { f as DASHBOARD_URL } from "./output-B0spXJAT.js";
2
- import { s as packagedDir } from "./skills-B6Sy3Tq0.js";
1
+ import { f as DASHBOARD_URL } from "./output-CiELrN8w.js";
2
+ import { s as packagedDir } from "./skills-grTDuHlc.js";
3
3
  import { join } from "node:path";
4
4
  import { readFileSync } from "node:fs";
5
5
  import { spawn } from "node:child_process";
@@ -1,4 +1,4 @@
1
- import { m as Integration } from "./output-B0spXJAT.js";
1
+ import { m as Integration } from "./output-CiELrN8w.js";
2
2
  import { basename, dirname, join, relative, sep } from "node:path";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import fg from "fast-glob";
@@ -36,9 +36,9 @@ Entry points: `superwall` (SuperwallProvider — mounted for you),
36
36
 
37
37
  The framework is a private beta on the `next` channel. The CLI has
38
38
  `create`/`dev`/`push`/`promote`/`publish` and the rebuild forms of `migrate`
39
- only while `SUPERWALL_CHANNEL=next` is set; `superwall create` writes it into
40
- the project's `superwall/.env`, which the CLI loads for every later command.
41
- `Unknown command: create` means the variable is missing: export it and retry.
39
+ only while `SUPERWALL_CHANNEL=next` is set in the environment.
40
+ `Unknown command: create` means the variable is missing from your
41
+ environment: ask the user to set it globally (shell rc) and relaunch.
42
42
 
43
43
  ## Local references — the agent playbooks
44
44
 
@@ -157,7 +157,15 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
157
157
  Store products differ per store, so a shared slot takes one id per
158
158
  platform — `annual: { ios: "…", android: "…" }` — while
159
159
  `purchase("annual")` stays the same call; the slot must name every
160
- platform the paywall ships to.
160
+ platform the paywall ships to. UI one platform must never show
161
+ (restore, sign-out, an App Store exit offer) branches on
162
+ `useDevice().hostPlatform` — `"ios" | "android" | "web" | undefined`,
163
+ normalized and known from the first render — never on the raw
164
+ `platform` string; show neither variant while it is `undefined`. A
165
+ `"web"` paywall runs inside the Web SDK on the merchant's page, which
166
+ hosts it as the web paywall app hosts editor paywalls: the SDK prices
167
+ the Stripe products, reports the events and finishes the checkout, so
168
+ `register()` resolves `purchased`, with no redemption step.
161
169
  11. **Shipping includes the dashboard.** A push that fails on missing
162
170
  products is not a blocker to report — create them with
163
171
  `superwall products create` ([references/cli.md](references/cli.md)).
@@ -1,10 +1,10 @@
1
- import "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import "./output-CiELrN8w.js";
2
+ import "./telemetry-BuCbmoux.js";
3
+ import "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import { n as ui } from "./ui-4gLyfrgl.js";
7
- import { a as skillsOutOfDate, o as syncSkills, r as fetchPublicSkills, t as SKILLS_INSTALL_SOURCE } from "./skills-B6Sy3Tq0.js";
7
+ import { a as skillsOutOfDate, o as syncSkills, r as fetchPublicSkills, t as SKILLS_INSTALL_SOURCE } from "./skills-grTDuHlc.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
9
  import { t as withSpinner } from "./spinner-DFctF_Jw.js";
10
10
 
@@ -1,5 +1,5 @@
1
- import { a as AGENT_SKILLS_DIR, l as CHANNEL, u as CHANNELS, y as VERSION } from "./output-B0spXJAT.js";
2
- import { h as setSkillsSync, i as track, u as getSkillsSync } from "./telemetry-y1JmBs4f.js";
1
+ import { a as AGENT_SKILLS_DIR, l as CHANNEL, u as CHANNELS, y as VERSION } from "./output-CiELrN8w.js";
2
+ import { h as setSkillsSync, i as track, u as getSkillsSync } from "./telemetry-BuCbmoux.js";
3
3
  import { n as ui } from "./ui-4gLyfrgl.js";
4
4
  import { r as spawnStream } from "./spawn-DSoTXy_j.js";
5
5
  import { dirname, join } from "node:path";
@@ -1,4 +1,4 @@
1
- import { _ as TELEMETRY_HOST, g as SUPERWALL_HOME, r as formatJson, v as TELEMETRY_KEY, x as isNonInteractive, y as VERSION } from "./output-B0spXJAT.js";
1
+ import { _ as TELEMETRY_HOST, g as SUPERWALL_HOME, r as formatJson, v as TELEMETRY_KEY, x as isNonInteractive, y as VERSION } from "./output-CiELrN8w.js";
2
2
  import { join } from "node:path";
3
3
  import { homedir } from "node:os";
4
4
  import { randomUUID } from "node:crypto";
@@ -1,4 +1,4 @@
1
- import { g as SUPERWALL_HOME, r as formatJson } from "./output-B0spXJAT.js";
1
+ import { g as SUPERWALL_HOME, r as formatJson } from "./output-CiELrN8w.js";
2
2
  import { join } from "node:path";
3
3
  import { homedir } from "node:os";
4
4
  import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
@@ -1,5 +1,5 @@
1
- import { y as VERSION } from "./output-B0spXJAT.js";
2
- import { d as getUpdateCheck, g as setUpdateCheck } from "./telemetry-y1JmBs4f.js";
1
+ import { y as VERSION } from "./output-CiELrN8w.js";
2
+ import { d as getUpdateCheck, g as setUpdateCheck } from "./telemetry-BuCbmoux.js";
3
3
  import pc from "picocolors";
4
4
 
5
5
  //#region src/core/update.ts
@@ -1,8 +1,8 @@
1
- import { y as VERSION } from "./output-B0spXJAT.js";
2
- import { g as setUpdateCheck } from "./telemetry-y1JmBs4f.js";
3
- import { r as isNewerVersion, t as fetchLatestVersion } from "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import { t as defineCommand } from "./command-Du-b_Jji.js";
1
+ import { y as VERSION } from "./output-CiELrN8w.js";
2
+ import { g as setUpdateCheck } from "./telemetry-BuCbmoux.js";
3
+ import { r as isNewerVersion, t as fetchLatestVersion } from "./update-DnGfpCD7.js";
4
+ import "./token-mju3Q-vc.js";
5
+ import { t as defineCommand } from "./command-DMoMn7uc.js";
6
6
  import "./ui-4gLyfrgl.js";
7
7
  import { r as spawnStream } from "./spawn-DSoTXy_j.js";
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superwall/cli",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "The official CLI for managing Superwall from your terminal or coding agent.",
5
5
  "keywords": [
6
6
  "agent",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@anthropic-ai/claude-agent-sdk": "0.3.201",
62
- "@superwall/studio": "1.5.0",
62
+ "@superwall/studio": "1.6.0",
63
63
  "ansi-escapes": "^7.3.0",
64
64
  "fast-glob": "^3.3.3",
65
65
  "ink": "^5.2.1",
@@ -1,21 +0,0 @@
1
- import "./output-B0spXJAT.js";
2
- import "./telemetry-y1JmBs4f.js";
3
- import "./update-CLYT9c3k.js";
4
- import "./token-uDs-2KqY.js";
5
- import "./command-Du-b_Jji.js";
6
- import "./ui-4gLyfrgl.js";
7
- import "./skills-B6Sy3Tq0.js";
8
- import "./spawn-DSoTXy_j.js";
9
- import "./login-kiXaqdkC.js";
10
- import "./scan-Cp_UTTEw.js";
11
- import "./hosted-B_5T7emr.js";
12
- import "./spinner-DFctF_Jw.js";
13
- import "./resources-Bf9O1JNM.js";
14
- import "./org-CV8c849b.js";
15
- import "./bind-CZOevfSJ.js";
16
- import "./pipeline-G5bZKqrN.js";
17
- import "./actions-C0AzXRrF.js";
18
- import "./app-BJxaQo2S.js";
19
- import { t as runDev } from "./dev-0p2GTz3J.js";
20
-
21
- export { runDev };