@superwall/cli 1.5.0 → 1.6.1

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 (53) hide show
  1. package/README.md +2 -3
  2. package/dist/{actions-C0AzXRrF.js → actions-BdZ-7BJd.js} +2 -2
  3. package/dist/{api-BnM4rTKN.js → api-FjrCPu6r.js} +5 -5
  4. package/dist/{app-BJxaQo2S.js → app-YeJj35Ia.js} +7 -7
  5. package/dist/{asa-CLXU3JO4.js → asa-4nk7HHy8.js} +5 -5
  6. package/dist/{asc-CZowAIf_.js → asc-2TZOQuK1.js} +5 -5
  7. package/dist/{auth-CAEGguzH.js → auth-QUYfKdwk.js} +8 -8
  8. package/dist/auth.js +2 -2
  9. package/dist/{billing-DHTBwrRm.js → billing-BK7bpv1t.js} +1 -1
  10. package/dist/{bind-CZOevfSJ.js → bind-Ch4VR2EY.js} +1 -1
  11. package/dist/{command-Du-b_Jji.js → command-BJ_6850A.js} +4 -4
  12. package/dist/{create-Z_IbSC9n.js → create-vSQxQlEP.js} +18 -18
  13. package/dist/dev-B9qmPH1W.js +21 -0
  14. package/dist/{dev-0p2GTz3J.js → dev-DEss5dwo.js} +4 -4
  15. package/dist/{doctor-MHJadguy.js → doctor-BYTfekBr.js} +9 -9
  16. package/dist/{drivers-8y9Qd-qe.js → drivers-DGml3OlF.js} +2 -2
  17. package/dist/entry.js +27 -27
  18. package/dist/{existing-BBHtVCwp.js → existing-DgSo639M.js} +2 -2
  19. package/dist/{feedback-BK4fdySj.js → feedback-4LsBpZZx.js} +5 -5
  20. package/dist/{hosted-B_5T7emr.js → hosted-DqGp6oV2.js} +2 -2
  21. package/dist/{integrate-CEuN4ebb.js → integrate-Cl9eKHoF.js} +16 -16
  22. package/dist/{login-kiXaqdkC.js → login-DS3MPeW2.js} +3 -3
  23. package/dist/{migrate-C8Y3z2iF.js → migrate-WiTO71PE.js} +19 -19
  24. package/dist/{open-studio-BGXha018.js → open-studio-CbMUL5Va.js} +9 -10
  25. package/dist/{output-B0spXJAT.js → output-XKuoEEjP.js} +1 -1
  26. package/dist/{pipeline-G5bZKqrN.js → pipeline-J9-nENTS.js} +4 -5
  27. package/dist/{print-skill-CRpqzrBD.js → print-skill-BOGm5Szi.js} +6 -6
  28. package/dist/{promote-BtDlI6UX.js → promote-Ci085QxU.js} +13 -13
  29. package/dist/{publish-C94YHFK5.js → publish--TV-j8Zd.js} +13 -13
  30. package/dist/{push-DOTj3kLl.js → push-CpGetsJF.js} +13 -13
  31. package/dist/{query-COqz70_0.js → query-BZStoGLM.js} +5 -5
  32. package/dist/{resource-PBkSYrXp.js → resource-ClLHSXi6.js} +8 -8
  33. package/dist/{run-C7ou9t2X.js → run-CiaWn78U.js} +2 -2
  34. package/dist/{scan-Cp_UTTEw.js → scan-DEgX5HxV.js} +1 -1
  35. package/dist/skills/superwall/SKILL.md +70 -39
  36. package/dist/skills/superwall/references/api.md +14 -21
  37. package/dist/skills/superwall/references/asa.md +6 -0
  38. package/dist/skills/superwall/references/asc.md +7 -8
  39. package/dist/skills/superwall/references/data-analytics.md +7 -4
  40. package/dist/skills/superwall/references/docs.md +2 -2
  41. package/dist/skills/superwall/references/sdk-integration.md +3 -4
  42. package/dist/skills/superwall/workflows/dashboard/setup.md +23 -24
  43. package/dist/skills/superwall/workflows/integrate/expo.md +14 -11
  44. package/dist/skills/superwall/workflows/integrate/react-native.md +4 -3
  45. package/dist/skills/superwall-framework/SKILL.md +12 -4
  46. package/dist/{skills-m2D6qoYX.js → skills-DjPCmUMU.js} +6 -6
  47. package/dist/{skills-B6Sy3Tq0.js → skills-DsBAVRTE.js} +2 -2
  48. package/dist/{telemetry-y1JmBs4f.js → telemetry-EzV7cA7s.js} +1 -1
  49. package/dist/{token-uDs-2KqY.js → token-r5g876aI.js} +1 -1
  50. package/dist/{update-CLYT9c3k.js → update-Cz3Q3MFj.js} +2 -2
  51. package/dist/{upgrade-DLrdLVJk.js → upgrade-BA_4sdnh.js} +5 -5
  52. package/package.json +2 -2
  53. 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-XKuoEEjP.js";
2
+ import { i as loadBundledSkill } from "./skills-DsBAVRTE.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-XKuoEEjP.js";
2
+ import "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import "./token-r5g876aI.js";
5
+ import { t as defineCommand } from "./command-BJ_6850A.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-r5g876aI.js";
2
+ import { a as superwallApi } from "./command-BJ_6850A.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-DS3MPeW2.js";
5
+ import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-DEgX5HxV.js";
6
+ import { r as getHostedStatus } from "./hosted-DqGp6oV2.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-Ch4VR2EY.js";
9
+ import { t as ACTIONS } from "./actions-BdZ-7BJd.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-XKuoEEjP.js";
2
+ import "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import "./token-r5g876aI.js";
5
+ import { r as ApiError, t as defineCommand } from "./command-BJ_6850A.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-XKuoEEjP.js";
2
+ import "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import "./token-r5g876aI.js";
5
+ import { t as defineCommand } from "./command-BJ_6850A.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-XKuoEEjP.js";
2
+ import { i as track } from "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import { i as loadSession, r as clearSession } from "./token-r5g876aI.js";
5
+ import { t as defineCommand } from "./command-BJ_6850A.js";
6
6
  import "./ui-4gLyfrgl.js";
7
- import { n as ensureSkillsCurrent } from "./skills-B6Sy3Tq0.js";
7
+ import { n as ensureSkillsCurrent } from "./skills-DsBAVRTE.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-DS3MPeW2.js";
10
+ import { t as scanProject } from "./scan-DEgX5HxV.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-XKuoEEjP.js";
2
+ import { n as resolveAuthToken, o as NotLoggedInError, t as getOAuthAccessToken } from "./token-r5g876aI.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-DEgX5HxV.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-XKuoEEjP.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-XKuoEEjP.js";
2
+ import { i as track, n as maybeShowTelemetryNotice } from "./telemetry-EzV7cA7s.js";
3
+ import { a as refreshUpdateCheck, i as maybeNotifyUpdate } from "./update-Cz3Q3MFj.js";
4
+ import { a as saveSession, i as loadSession, n as resolveAuthToken, o as NotLoggedInError } from "./token-r5g876aI.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-XKuoEEjP.js";
2
+ import "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import "./token-r5g876aI.js";
5
+ import { t as defineCommand } from "./command-BJ_6850A.js";
6
6
  import "./ui-4gLyfrgl.js";
7
- import "./skills-B6Sy3Tq0.js";
7
+ import "./skills-DsBAVRTE.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-DS3MPeW2.js";
10
+ import { n as allDeps, r as readPackageJson, t as scanProject } from "./scan-DEgX5HxV.js";
11
+ import "./drivers-DGml3OlF.js";
12
+ import "./hosted-DqGp6oV2.js";
13
+ import { t as detectExisting } from "./existing-DgSo639M.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-Ch4VR2EY.js";
18
+ import { A as requireApi, L as writeApp, N as requirePlatform, f as gitAvailable, j as projectPackageName, k as LoginRequiredError } from "./pipeline-J9-nENTS.js";
19
+ import "./actions-BdZ-7BJd.js";
20
+ import "./app-YeJj35Ia.js";
21
+ import "./run-CiaWn78U.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-CbMUL5Va.js";
23
+ import "./dev-DEss5dwo.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-XKuoEEjP.js";
2
+ import "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import "./token-r5g876aI.js";
5
+ import "./command-BJ_6850A.js";
6
+ import "./ui-4gLyfrgl.js";
7
+ import "./skills-DsBAVRTE.js";
8
+ import "./spawn-DSoTXy_j.js";
9
+ import "./login-DS3MPeW2.js";
10
+ import "./scan-DEgX5HxV.js";
11
+ import "./hosted-DqGp6oV2.js";
12
+ import "./spinner-DFctF_Jw.js";
13
+ import "./resources-Bf9O1JNM.js";
14
+ import "./org-CV8c849b.js";
15
+ import "./bind-Ch4VR2EY.js";
16
+ import "./pipeline-J9-nENTS.js";
17
+ import "./actions-BdZ-7BJd.js";
18
+ import "./app-YeJj35Ia.js";
19
+ import { t as runDev } from "./dev-DEss5dwo.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-XKuoEEjP.js";
2
+ import { r as ApiError, t as defineCommand } from "./command-BJ_6850A.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-DS3MPeW2.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-J9-nENTS.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-XKuoEEjP.js";
2
+ import "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import { i as loadSession } from "./token-r5g876aI.js";
5
+ import { t as defineCommand } from "./command-BJ_6850A.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-DEgX5HxV.js";
9
+ import { t as detectDrivers } from "./drivers-DGml3OlF.js";
10
+ import "./hosted-DqGp6oV2.js";
11
+ import { t as detectExisting } from "./existing-DgSo639M.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-XKuoEEjP.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-DqGp6oV2.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-XKuoEEjP.js";
2
+ import { t as flushTelemetry } from "./telemetry-EzV7cA7s.js";
3
+ import { n as flushUpdateCheck } from "./update-Cz3Q3MFj.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-QUYfKdwk.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-QUYfKdwk.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-QUYfKdwk.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-DjPCmUMU.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-BYTfekBr.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-BA_4sdnh.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-4LsBpZZx.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-vSQxQlEP.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-B9qmPH1W.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-CpGetsJF.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-Ci085QxU.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--TV-j8Zd.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-BZStoGLM.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-2TZOQuK1.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-4nk7HHy8.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-ClLHSXi6.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-FjrCPu6r.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-FjrCPu6r.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-BOGm5Szi.js").then((m) => m.runPrintSkill("integrate")(argv));
698
+ return import("./integrate-Cl9eKHoF.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-BOGm5Szi.js").then((m) => m.runPrintSkill(id)(argv));
710
+ return import("./integrate-Cl9eKHoF.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-BOGm5Szi.js").then((m) => m.runPrintSkill("migrate")(argv));
727
+ return import("./migrate-WiTO71PE.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-XKuoEEjP.js";
2
+ import { n as allDeps, r as readPackageJson } from "./scan-DEgX5HxV.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-XKuoEEjP.js";
2
+ import { a as getAnonymousId } from "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import { i as loadSession } from "./token-r5g876aI.js";
5
+ import { t as defineCommand } from "./command-BJ_6850A.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-XKuoEEjP.js";
2
+ import { i as loadSession, t as getOAuthAccessToken } from "./token-r5g876aI.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-XKuoEEjP.js";
2
+ import { r as setTelemetryTags, s as getOnboardedApp } from "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import { i as loadSession } from "./token-r5g876aI.js";
5
+ import { a as superwallApi, t as defineCommand } from "./command-BJ_6850A.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-DsBAVRTE.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-DS3MPeW2.js";
10
+ import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-DEgX5HxV.js";
11
+ import { t as detectDrivers } from "./drivers-DGml3OlF.js";
12
+ import "./hosted-DqGp6oV2.js";
13
+ import { t as detectExisting } from "./existing-DgSo639M.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-Ch4VR2EY.js";
18
+ import { r as actionById } from "./actions-BdZ-7BJd.js";
19
+ import { a as recoverUnmatchedScope, i as pickApp, n as ensureAgentDriverReady, o as stage, r as performLoginWithUi, t as chooseAction } from "./app-YeJj35Ia.js";
20
+ import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-CiaWn78U.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-BK7bpv1t.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-XKuoEEjP.js";
2
+ import { c as getOnboardedOrg, l as getOnboardingIdempotencyKey, m as setOnboardedOrg, p as setOnboardedApp } from "./telemetry-EzV7cA7s.js";
3
+ import { a as saveSession } from "./token-r5g876aI.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-XKuoEEjP.js";
2
+ import "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import { i as loadSession } from "./token-r5g876aI.js";
5
+ import { t as defineCommand } from "./command-BJ_6850A.js";
6
6
  import { i as stripReport, n as ui } from "./ui-4gLyfrgl.js";
7
- import "./skills-B6Sy3Tq0.js";
7
+ import "./skills-DsBAVRTE.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-DS3MPeW2.js";
10
+ import { t as scanProject } from "./scan-DEgX5HxV.js";
11
+ import { t as detectDrivers } from "./drivers-DGml3OlF.js";
12
+ import "./hosted-DqGp6oV2.js";
13
+ import { t as detectExisting } from "./existing-DgSo639M.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-Ch4VR2EY.js";
18
+ import { A as requireApi } from "./pipeline-J9-nENTS.js";
19
+ import { r as actionById } from "./actions-BdZ-7BJd.js";
20
+ import { r as performLoginWithUi } from "./app-YeJj35Ia.js";
21
+ import { t as runAction } from "./run-CiaWn78U.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-CbMUL5Va.js";
23
+ import "./dev-DEss5dwo.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-BK7bpv1t.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";