@superwall/cli 2.2.1 → 2.3.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 (87) hide show
  1. package/README.md +24 -11
  2. package/dist/{apple-DaqaI4vD.js → apple-D79LBw5E.js} +13 -13
  3. package/dist/assets-Diivv88t.js +89 -0
  4. package/dist/auth.d.ts +1 -1
  5. package/dist/auth.js +3 -3
  6. package/dist/{billing-DyKr2kmd.js → billing-CCuMv6mh.js} +3 -3
  7. package/dist/{bind-BpxebZf4.js → bind-CVRlFlRo.js} +4 -4
  8. package/dist/{build-DzbdRThf.js → build-BCq0cGh-.js} +7 -6
  9. package/dist/{client-BF9rCULI.js → client-CYtQvWJR.js} +3 -3
  10. package/dist/{create-B55V99TD.js → create-BZyUW60x.js} +28 -226
  11. package/dist/{create-D7AZHYGH.js → create-BaP6hoQ1.js} +6 -6
  12. package/dist/create-DNfuZ9os.js +19 -0
  13. package/dist/{doctor-B2mPKiaJ.js → doctor-kx01VvQX.js} +6 -6
  14. package/dist/{drivers-DOMky8Ug.js → drivers-D0818zGc.js} +3 -3
  15. package/dist/entry.js +19 -19
  16. package/dist/{environment-DBwo79dy.js → environment-a7W-0wg0.js} +1 -1
  17. package/dist/{existing-B4VK4BCL.js → existing-B7qxYiUX.js} +2 -2
  18. package/dist/held-C4BiAQ_X.js +16 -0
  19. package/dist/{held-DjcZPCwn.js → held-CEyXc1SI.js} +6 -6
  20. package/dist/{integrate-B8oHbvwz.js → integrate-RK5U0GTQ.js} +22 -22
  21. package/dist/login-DV70XgZO.js +16 -0
  22. package/dist/{login-DfhqWY9C.js → login-DrMLxlF4.js} +6 -6
  23. package/dist/{login-B8hgMLhS.js → login-NxCl2WuU.js} +1 -1
  24. package/dist/{lookup-r8p6H2ZC.js → lookup-Dor6ch5A.js} +2 -2
  25. package/dist/{migrate-DQf2Fosc.js → migrate-CjSpcnNu.js} +25 -22
  26. package/dist/{open-CrEnSL4v.js → migration-MlzZHGP-.js} +11 -49
  27. package/dist/{notification-url-BxPTEmkv.js → notification-url-C_QXtljc.js} +2 -2
  28. package/dist/open-CBW0Cuog.js +41 -0
  29. package/dist/{org-Cc2WGvl1.js → org-BJCyaL1b.js} +2 -2
  30. package/dist/{paths-BcNbJfpw.js → paths-Cp_lgyWO.js} +1 -1
  31. package/dist/{playbook-D9J8frkE.js → playbook-VqV7546k.js} +10 -10
  32. package/dist/{promote-C8T7DCFF.js → promote-BSckFPwZ.js} +18 -16
  33. package/dist/pull-DEumBwvc.js +303 -0
  34. package/dist/{push-Bzs1l_5C.js → push-D-dewDd1.js} +8 -6
  35. package/dist/push-YEPqa6hs.js +24 -0
  36. package/dist/{registry-CpxZbmxp.js → registry-D6M1JxYC.js} +230 -115
  37. package/dist/{resources-Bo6i7wBi.js → resources-DKn4itf3.js} +21 -7
  38. package/dist/{run-BUp4r8Kk.js → run-Ccv5egCC.js} +2 -2
  39. package/dist/{scan-8cxu2fx0.js → scan-Be17rMcQ.js} +1 -1
  40. package/dist/scan-CocGVPe0.js +4 -0
  41. package/dist/{scope-CPG_wWXL.js → scope-92neiQ2q.js} +5 -4
  42. package/dist/{selection-CMA4aG4V.js → selection-C5ZY23dQ.js} +16 -96
  43. package/dist/server-1pOxW1GJ.js +24 -0
  44. package/dist/{server-Xb3wp-mx.js → server-DZ7L28w4.js} +9 -7
  45. package/dist/{session-eZeXR9xU.js → session-CdnUL4zt.js} +444 -243
  46. package/dist/session-Cm0U68t3.js +6 -0
  47. package/dist/{session-DOZV1TP6.js → session-gTuw2_8i.js} +1 -1
  48. package/dist/setup-esb3_a7N.js +216 -0
  49. package/dist/skills/animate-onboarding/SKILL.md +1 -1
  50. package/dist/skills/mobile-design/SKILL.md +1 -1
  51. package/dist/skills/onboarding-questions/SKILL.md +1 -1
  52. package/dist/skills/superwall/SKILL.md +6 -7
  53. package/dist/skills/superwall/references/api.md +8 -3
  54. package/dist/skills/superwall/workflows/dashboard/playbook.md +4 -3
  55. package/dist/skills/superwall/workflows/dashboard/setup.md +7 -4
  56. package/dist/skills/superwall/workflows/migrate/adapty.md +4 -3
  57. package/dist/skills/superwall/workflows/migrate/playbook.md +2 -2
  58. package/dist/skills/superwall/workflows/migrate/qonversion.md +4 -3
  59. package/dist/skills/superwall/workflows/migrate/revenuecat.md +4 -3
  60. package/dist/skills/superwall-editor/SKILL.md +2 -3
  61. package/dist/skills/superwall-framework/SKILL.md +83 -13
  62. package/dist/skills/superwall-framework/references/cli.md +92 -21
  63. package/dist/skills/superwall-framework/references/migrate-from-editor.md +5 -1
  64. package/dist/{skills-BI19OGlS.js → skills-B_oH2dYK.js} +8 -8
  65. package/dist/{skills-DDf10ufO.js → skills-miJDcjQ2.js} +4 -4
  66. package/dist/source-push-NVrs53Uo.js +205 -0
  67. package/dist/{spinner-BClMQGGN.js → spinner-D6phP4Af.js} +3 -3
  68. package/dist/{storage-Po9E-CHL.js → storage-BcvKhvzZ.js} +1 -1
  69. package/dist/storekit-D1A5VHT1.js +16 -0
  70. package/dist/{storekit-Cbn9DBLA.js → storekit-Di3BkafX.js} +3 -3
  71. package/dist/{telemetry-s6dag6tb.js → telemetry-BpYXL-z3.js} +1 -1
  72. package/dist/{token-CPplNMVa.js → token-4dQOfOaK.js} +1 -1
  73. package/dist/tools.d.ts +1 -1
  74. package/dist/tools.js +216 -90
  75. package/dist/{upgrade-1OYm5NQU.js → upgrade-BnOq32zn.js} +2 -2
  76. package/dist/{upgrade-ahapZeex.js → upgrade-Cb6f4S_c.js} +1 -1
  77. package/package.json +2 -2
  78. package/dist/create-BYAPuhhf.js +0 -19
  79. package/dist/held-C9FqvNbn.js +0 -16
  80. package/dist/login-D-a7oS_8.js +0 -16
  81. package/dist/push-snV3SrnH.js +0 -22
  82. package/dist/scan-nUeXs9a1.js +0 -4
  83. package/dist/server-Boqa8jh_.js +0 -22
  84. package/dist/session-DtBpdlF-.js +0 -6
  85. package/dist/storekit-BU6Eq_UO.js +0 -16
  86. /package/dist/{reports-D_qbl7_u.js → reports-CwwKLUh0.js} +0 -0
  87. /package/dist/{storage-BbJF7z3l.d.ts → storage-gRyQetN9.d.ts} +0 -0
package/dist/entry.js CHANGED
@@ -1,33 +1,33 @@
1
1
  import { n as __require, r as __toESM, t as __commonJS } from "./chunk-DQxbwPpZ.js";
2
- import "./token-CPplNMVa.js";
2
+ import "./token-4dQOfOaK.js";
3
3
  import { a as stripAnsi, d as useStores, i as writeJson } from "./output-Ggzq5_-t.js";
4
- import { S as isNonInteractive, a as CHANNEL, v as VERSION } from "./environment-DBwo79dy.js";
5
- import "./storage-Po9E-CHL.js";
6
- import { i as superwallApi } from "./client-BF9rCULI.js";
7
- import { O as useAscRefresh } from "./held-DjcZPCwn.js";
4
+ import { S as isNonInteractive, a as CHANNEL, v as VERSION } from "./environment-a7W-0wg0.js";
5
+ import "./storage-BcvKhvzZ.js";
6
+ import { i as superwallApi } from "./client-CYtQvWJR.js";
7
+ import { O as useAscRefresh } from "./held-CEyXc1SI.js";
8
8
  import "./config-BO1Y87kV.js";
9
- import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-s6dag6tb.js";
9
+ import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-BpYXL-z3.js";
10
10
  import "./spawn-DmmmHIP-.js";
11
- import { i as refreshUpdateCheck, r as maybeNotifyUpdate, t as flushUpdateCheck } from "./upgrade-ahapZeex.js";
12
- import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-BClMQGGN.js";
11
+ import { i as refreshUpdateCheck, r as maybeNotifyUpdate, t as flushUpdateCheck } from "./upgrade-Cb6f4S_c.js";
12
+ import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-D6phP4Af.js";
13
13
  import { r as useRenderer, t as silentRenderer } from "./ui-D_qf3Gvw.js";
14
14
  import { t as THEME } from "./theme-DUsCh-Vd.js";
15
15
  import { n as styleMarkdown, r as wrapReportLine } from "./log-NVhVe_oe.js";
16
- import { t as scanProject } from "./scan-8cxu2fx0.js";
17
- import { t as detectExisting } from "./existing-B4VK4BCL.js";
18
- import { n as SUPERWALL_HOME, r as expandHome } from "./paths-BcNbJfpw.js";
19
- import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-CpxZbmxp.js";
20
- import "./session-DOZV1TP6.js";
21
- import "./resources-Bo6i7wBi.js";
22
- import "./org-Cc2WGvl1.js";
23
- import "./lookup-r8p6H2ZC.js";
24
- import "./scope-CPG_wWXL.js";
16
+ import { t as scanProject } from "./scan-Be17rMcQ.js";
17
+ import { t as detectExisting } from "./existing-B7qxYiUX.js";
18
+ import { n as SUPERWALL_HOME, r as expandHome } from "./paths-Cp_lgyWO.js";
19
+ import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-D6M1JxYC.js";
20
+ import "./session-gTuw2_8i.js";
21
+ import "./resources-DKn4itf3.js";
22
+ import "./org-BJCyaL1b.js";
23
+ import "./lookup-Dor6ch5A.js";
24
+ import "./scope-92neiQ2q.js";
25
25
  import "./client-BZ1UbpXz.js";
26
26
  import "./products-DH_fK9tY.js";
27
27
  import "./input-vi0bou04.js";
28
28
  import "./timing-BVxPrYq3.js";
29
- import "./notification-url-BxPTEmkv.js";
30
- import "./bind-BpxebZf4.js";
29
+ import "./notification-url-C_QXtljc.js";
30
+ import "./bind-CVRlFlRo.js";
31
31
  import { spawn } from "node:child_process";
32
32
  import * as fs from "node:fs";
33
33
  import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "2.2.1";
2
+ var version = "2.3.0";
3
3
 
4
4
  //#endregion
5
5
  //#region src/environment.ts
@@ -1,5 +1,5 @@
1
- import { f as Integration } from "./environment-DBwo79dy.js";
2
- import { i as readPackageJson, r as allDeps } from "./scan-8cxu2fx0.js";
1
+ import { f as Integration } from "./environment-a7W-0wg0.js";
2
+ import { i as readPackageJson, r as allDeps } from "./scan-Be17rMcQ.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import fg from "fast-glob";
5
5
 
@@ -0,0 +1,16 @@
1
+ import "./token-4dQOfOaK.js";
2
+ import "./output-Ggzq5_-t.js";
3
+ import "./environment-a7W-0wg0.js";
4
+ import "./storage-BcvKhvzZ.js";
5
+ import "./client-CYtQvWJR.js";
6
+ import { t as upsertHeldKey } from "./held-CEyXc1SI.js";
7
+ import "./config-BO1Y87kV.js";
8
+ import "./spinner-D6phP4Af.js";
9
+ import "./ui-D_qf3Gvw.js";
10
+ import "./resources-DKn4itf3.js";
11
+ import "./org-BJCyaL1b.js";
12
+ import "./lookup-Dor6ch5A.js";
13
+ import "./scope-92neiQ2q.js";
14
+ import "./client-BZ1UbpXz.js";
15
+
16
+ export { upsertHeldKey };
@@ -1,10 +1,10 @@
1
1
  import { l as readJson, o as cache } from "./output-Ggzq5_-t.js";
2
- import { t as ApiError } from "./client-BF9rCULI.js";
3
- import { d as readInput, t as apiCall } from "./spinner-BClMQGGN.js";
4
- import { D as field, O as isRecord, j as textField, k as listField, n as createApplication, p as listProjects, s as createProject } from "./resources-Bo6i7wBi.js";
5
- import { n as orgForNewProject } from "./org-Cc2WGvl1.js";
6
- import { n as findApplication } from "./lookup-r8p6H2ZC.js";
7
- import { r as pickOrganization } from "./scope-CPG_wWXL.js";
2
+ import { t as ApiError } from "./client-CYtQvWJR.js";
3
+ import { d as readInput, t as apiCall } from "./spinner-D6phP4Af.js";
4
+ import { A as listField, M as textField, O as field, c as createProject, k as isRecord, m as listProjects, r as createApplication } from "./resources-DKn4itf3.js";
5
+ import { n as orgForNewProject } from "./org-BJCyaL1b.js";
6
+ import { n as findApplication } from "./lookup-Dor6ch5A.js";
7
+ import { r as pickOrganization } from "./scope-92neiQ2q.js";
8
8
  import { a as listAscConfigs, c as replaceAppPurchaseKey, l as replaceAscConfig, r as createAscConfig, s as replaceAppAscKey, t as ascProxy } from "./client-BZ1UbpXz.js";
9
9
 
10
10
  //#region src/core/app-store-connect/api/spec.ts
@@ -1,34 +1,34 @@
1
- import "./token-CPplNMVa.js";
1
+ import "./token-4dQOfOaK.js";
2
2
  import { r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
3
- import { c as DASHBOARD_URL, v as VERSION } from "./environment-DBwo79dy.js";
4
- import { i as removeSession, n as readSession, s as sessionOrgName } from "./storage-Po9E-CHL.js";
5
- import { i as superwallApi } from "./client-BF9rCULI.js";
3
+ import { c as DASHBOARD_URL, v as VERSION } from "./environment-a7W-0wg0.js";
4
+ import { i as removeSession, n as readSession, s as sessionOrgName } from "./storage-BcvKhvzZ.js";
5
+ import { i as superwallApi } from "./client-CYtQvWJR.js";
6
6
  import { r as readOnboardedApp } from "./config-BO1Y87kV.js";
7
- import { i as updateTelemetryTags } from "./telemetry-s6dag6tb.js";
7
+ import { i as updateTelemetryTags } from "./telemetry-BpYXL-z3.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import { n as withSpinner } from "./spinner-BClMQGGN.js";
9
+ import { n as withSpinner } from "./spinner-D6phP4Af.js";
10
10
  import { n as ui } from "./ui-D_qf3Gvw.js";
11
11
  import "./theme-DUsCh-Vd.js";
12
12
  import { t as stripReport } from "./log-NVhVe_oe.js";
13
- import { n as SUPPORTED_LABEL, t as scanProject } from "./scan-8cxu2fx0.js";
14
- import { t as detectExisting } from "./existing-B4VK4BCL.js";
15
- import { r as expandHome } from "./paths-BcNbJfpw.js";
16
- import { D as field, f as listApplications, k as listField, m as listResource, o as createProduct, v as platformLabel, w as rowName } from "./resources-Bo6i7wBi.js";
17
- import "./org-Cc2WGvl1.js";
18
- import "./lookup-r8p6H2ZC.js";
19
- import "./scope-CPG_wWXL.js";
13
+ import { n as SUPPORTED_LABEL, t as scanProject } from "./scan-Be17rMcQ.js";
14
+ import { t as detectExisting } from "./existing-B7qxYiUX.js";
15
+ import { r as expandHome } from "./paths-Cp_lgyWO.js";
16
+ import { A as listField, O as field, T as rowName, h as listResource, p as listApplications, s as createProduct, y as platformLabel } from "./resources-DKn4itf3.js";
17
+ import "./org-BJCyaL1b.js";
18
+ import "./lookup-Dor6ch5A.js";
19
+ import "./scope-92neiQ2q.js";
20
20
  import { a as listAscConfigs, r as createAscConfig } from "./client-BZ1UbpXz.js";
21
21
  import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-DH_fK9tY.js";
22
22
  import "./input-vi0bou04.js";
23
- import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-BpxebZf4.js";
24
- import "./login-DfhqWY9C.js";
25
- import { s as ensureSkillsCurrent } from "./skills-DDf10ufO.js";
26
- import { t as generateStoreKit } from "./storekit-Cbn9DBLA.js";
27
- import { n as performLoginWithUi, t as createLoginGate } from "./login-B8hgMLhS.js";
28
- import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-BUp4r8Kk.js";
29
- import { n as selectHostedStatus, t as detectDrivers } from "./drivers-DOMky8Ug.js";
30
- import { r as actionById, t as detectBilling } from "./billing-DyKr2kmd.js";
31
- import { n as writeReport, t as readReport } from "./reports-D_qbl7_u.js";
23
+ import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-CVRlFlRo.js";
24
+ import "./login-DrMLxlF4.js";
25
+ import { s as ensureSkillsCurrent } from "./skills-miJDcjQ2.js";
26
+ import { t as generateStoreKit } from "./storekit-Di3BkafX.js";
27
+ import { n as performLoginWithUi, t as createLoginGate } from "./login-NxCl2WuU.js";
28
+ import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-Ccv5egCC.js";
29
+ import { n as selectHostedStatus, t as detectDrivers } from "./drivers-D0818zGc.js";
30
+ import { r as actionById, t as detectBilling } from "./billing-CCuMv6mh.js";
31
+ import { n as writeReport, t as readReport } from "./reports-CwwKLUh0.js";
32
32
  import { readFileSync, writeFileSync } from "node:fs";
33
33
  import { basename } from "node:path";
34
34
  import fg from "fast-glob";
@@ -0,0 +1,16 @@
1
+ import "./token-4dQOfOaK.js";
2
+ import "./output-Ggzq5_-t.js";
3
+ import "./environment-a7W-0wg0.js";
4
+ import "./storage-BcvKhvzZ.js";
5
+ import "./client-CYtQvWJR.js";
6
+ import "./config-BO1Y87kV.js";
7
+ import "./telemetry-BpYXL-z3.js";
8
+ import "./spawn-DmmmHIP-.js";
9
+ import "./spinner-D6phP4Af.js";
10
+ import "./ui-D_qf3Gvw.js";
11
+ import "./scan-Be17rMcQ.js";
12
+ import "./paths-Cp_lgyWO.js";
13
+ import { i as startLogin, n as pollLogin, r as runLogin, t as performLogin } from "./login-DrMLxlF4.js";
14
+ import "./skills-miJDcjQ2.js";
15
+
16
+ export { performLogin, pollLogin, runLogin, startLogin };
@@ -1,11 +1,11 @@
1
- import { f as Integration, i as AUTH_HOST, p as OAUTH_SCOPE, s as CLI_CLIENT_ID, t as API_HOST } from "./environment-DBwo79dy.js";
2
- import { c as writePendingLogin, l as writeSession, o as serializeSession, r as removePendingLogin, t as readPendingLogin } from "./storage-Po9E-CHL.js";
1
+ import { f as Integration, i as AUTH_HOST, p as OAUTH_SCOPE, s as CLI_CLIENT_ID, t as API_HOST } from "./environment-a7W-0wg0.js";
2
+ import { c as writePendingLogin, l as writeSession, o as serializeSession, r as removePendingLogin, t as readPendingLogin } from "./storage-BcvKhvzZ.js";
3
3
  import { a as readOnboardingIdempotencyKey, d as writeOnboardedApp, f as writeOnboardedOrg, i as readOnboardedOrg } from "./config-BO1Y87kV.js";
4
- import { r as track } from "./telemetry-s6dag6tb.js";
5
- import { r as UsageError } from "./spinner-BClMQGGN.js";
4
+ import { r as track } from "./telemetry-BpYXL-z3.js";
5
+ import { r as UsageError } from "./spinner-D6phP4Af.js";
6
6
  import { n as ui } from "./ui-D_qf3Gvw.js";
7
- import { t as scanProject } from "./scan-8cxu2fx0.js";
8
- import { s as ensureSkillsCurrent } from "./skills-DDf10ufO.js";
7
+ import { t as scanProject } from "./scan-Be17rMcQ.js";
8
+ import { s as ensureSkillsCurrent } from "./skills-miJDcjQ2.js";
9
9
  import { spawn } from "node:child_process";
10
10
  import { setTimeout } from "node:timers/promises";
11
11
 
@@ -1,5 +1,5 @@
1
1
  import { n as ui } from "./ui-D_qf3Gvw.js";
2
- import { a as BROWSER_UNAVAILABLE, s as onboardingHooks, t as performLogin } from "./login-DfhqWY9C.js";
2
+ import { a as BROWSER_UNAVAILABLE, s as onboardingHooks, t as performLogin } from "./login-DrMLxlF4.js";
3
3
 
4
4
  //#region src/core/workflows/login.ts
5
5
  async function performLoginWithUi(app, onProvisioned) {
@@ -1,5 +1,5 @@
1
- import { t as ApiError } from "./client-BF9rCULI.js";
2
- import { F as orgProjects, L as rememberOrg, p as listProjects } from "./resources-Bo6i7wBi.js";
1
+ import { t as ApiError } from "./client-CYtQvWJR.js";
2
+ import { I as orgProjects, R as rememberOrg, m as listProjects } from "./resources-DKn4itf3.js";
3
3
 
4
4
  //#region src/core/api/lookup.ts
5
5
  const DASHBOARD_PATH = /^\/(\d+)(?:\/(\d+))?(?:\/|$)/;
@@ -1,31 +1,34 @@
1
- import "./token-CPplNMVa.js";
1
+ import "./token-4dQOfOaK.js";
2
2
  import { t as blocks } from "./output-Ggzq5_-t.js";
3
- import { c as DASHBOARD_URL, v as VERSION } from "./environment-DBwo79dy.js";
4
- import { n as readSession, s as sessionOrgName } from "./storage-Po9E-CHL.js";
5
- import "./client-BF9rCULI.js";
3
+ import { c as DASHBOARD_URL, v as VERSION } from "./environment-a7W-0wg0.js";
4
+ import { n as readSession, s as sessionOrgName } from "./storage-BcvKhvzZ.js";
5
+ import "./client-CYtQvWJR.js";
6
6
  import "./config-BO1Y87kV.js";
7
- import "./telemetry-s6dag6tb.js";
7
+ import "./telemetry-BpYXL-z3.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import "./spinner-BClMQGGN.js";
9
+ import "./spinner-D6phP4Af.js";
10
10
  import { n as ui } from "./ui-D_qf3Gvw.js";
11
11
  import "./theme-DUsCh-Vd.js";
12
12
  import { t as stripReport } from "./log-NVhVe_oe.js";
13
- import { t as scanProject } from "./scan-8cxu2fx0.js";
14
- import { t as detectExisting } from "./existing-B4VK4BCL.js";
15
- import "./paths-BcNbJfpw.js";
16
- import "./resources-Bo6i7wBi.js";
17
- import "./lookup-r8p6H2ZC.js";
18
- import "./login-DfhqWY9C.js";
19
- import "./skills-DDf10ufO.js";
20
- import "./selection-CMA4aG4V.js";
21
- import { n as requireApi } from "./session-eZeXR9xU.js";
22
- import { n as performLoginWithUi } from "./login-B8hgMLhS.js";
23
- import { t as runAction } from "./run-BUp4r8Kk.js";
24
- import { t as detectDrivers } from "./drivers-DOMky8Ug.js";
25
- 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-CrEnSL4v.js";
26
- import "./server-Xb3wp-mx.js";
27
- import { r as actionById, t as detectBilling } from "./billing-DyKr2kmd.js";
28
- import { n as writeReport } from "./reports-D_qbl7_u.js";
13
+ import { t as scanProject } from "./scan-Be17rMcQ.js";
14
+ import { t as detectExisting } from "./existing-B7qxYiUX.js";
15
+ import "./paths-Cp_lgyWO.js";
16
+ import "./resources-DKn4itf3.js";
17
+ import "./lookup-Dor6ch5A.js";
18
+ import "./login-DrMLxlF4.js";
19
+ import "./skills-miJDcjQ2.js";
20
+ import "./assets-Diivv88t.js";
21
+ import "./selection-C5ZY23dQ.js";
22
+ import { n as requireApi } from "./session-CdnUL4zt.js";
23
+ import "./source-push-NVrs53Uo.js";
24
+ import { n as performLoginWithUi } from "./login-NxCl2WuU.js";
25
+ import { t as runAction } from "./run-Ccv5egCC.js";
26
+ import { t as detectDrivers } from "./drivers-D0818zGc.js";
27
+ import { a as migrationSource, c as scaffoldFromPaywall, d as findScreenCandidates, f as placementOfName, i as migrationFor, l as scaffoldFromScreen, n as hasOriginal, o as offerMigration, p as screenNameOf, s as projectDirOf, t as buildMigrationCopyPrompt, u as screenMigrationFor } from "./migration-MlzZHGP-.js";
28
+ import "./server-DZ7L28w4.js";
29
+ import { i as startStudio, n as migrationNextSteps, r as screenNextSteps, t as askStudio } from "./open-CBW0Cuog.js";
30
+ import { r as actionById, t as detectBilling } from "./billing-CCuMv6mh.js";
31
+ import { n as writeReport } from "./reports-CwwKLUh0.js";
29
32
  import { execFile } from "node:child_process";
30
33
  import * as fs from "node:fs";
31
34
  import * as path from "node:path";
@@ -1,14 +1,13 @@
1
- import { S as isNonInteractive, c as DASHBOARD_URL } from "./environment-DBwo79dy.js";
2
- import { t as ApiError } from "./client-BF9rCULI.js";
1
+ import { c as DASHBOARD_URL } from "./environment-a7W-0wg0.js";
2
+ import { t as ApiError } from "./client-CYtQvWJR.js";
3
3
  import { t as stripReport } from "./log-NVhVe_oe.js";
4
- import { i as readPackageJson, r as allDeps } from "./scan-8cxu2fx0.js";
5
- import { c as findPaywall, f as listApplications } from "./resources-Bo6i7wBi.js";
6
- import { d as readBundledSkill } from "./skills-DDf10ufO.js";
7
- import { E as writeApp, S as isScreenOrigin, k as writeOrigin, w as readLock } from "./selection-CMA4aG4V.js";
8
- import { c as projectPackageName } from "./session-eZeXR9xU.js";
9
- import { a as copyToClipboard, i as readPrompt, n as runWithDriverFallback } from "./run-BUp4r8Kk.js";
10
- import { t as detectDrivers } from "./drivers-DOMky8Ug.js";
11
- import { t as runStudio } from "./server-Xb3wp-mx.js";
4
+ import { i as readPackageJson, r as allDeps } from "./scan-Be17rMcQ.js";
5
+ import { l as findPaywall, p as listApplications } from "./resources-DKn4itf3.js";
6
+ import { d as readBundledSkill } from "./skills-miJDcjQ2.js";
7
+ import { F as writeOrigin, T as isScreenOrigin, j as writeApp, k as readLock } from "./selection-C5ZY23dQ.js";
8
+ import { u as projectPackageName } from "./session-CdnUL4zt.js";
9
+ import { a as copyToClipboard, i as readPrompt, n as runWithDriverFallback } from "./run-Ccv5egCC.js";
10
+ import { t as detectDrivers } from "./drivers-D0818zGc.js";
12
11
  import * as fs from "node:fs";
13
12
  import * as path from "node:path";
14
13
  import fg from "fast-glob";
@@ -222,7 +221,7 @@ function originConfigSource(origin) {
222
221
  lines.push(` products: {`);
223
222
  for (const product of origin.products) {
224
223
  const key = /^[A-Za-z_$][\w$]*$/.test(product.reference) ? product.reference : literal$1(product.reference);
225
- lines.push(` ${key}: ${literal$1(product.identifier)},`);
224
+ lines.push(product.billingPlan === void 0 ? ` ${key}: ${literal$1(product.identifier)},` : ` ${key}: { productId: ${literal$1(product.identifier)}, billingPlan: ${literal$1(product.billingPlan)} },`);
226
225
  }
227
226
  lines.push(` },`);
228
227
  }
@@ -1257,41 +1256,4 @@ async function offerMigration(ui, interactive, migration, forced, deps = runtime
1257
1256
  }
1258
1257
 
1259
1258
  //#endregion
1260
- //#region src/core/paywalls/studio/open.ts
1261
- async function askStudio(ui, interactive, surfaceId, original = true) {
1262
- if (!interactive) return false;
1263
- return await ui.confirm({
1264
- message: original ? `Open the studio now, on paywall/${surfaceId} next to the original?` : `Open the studio now, on paywall/${surfaceId}?`,
1265
- initial: true
1266
- }) === true;
1267
- }
1268
- async function startStudio(superwallDir, surfaceId, original = true, deps = {}) {
1269
- await runStudio({
1270
- dirs: [superwallDir],
1271
- port: 6100,
1272
- host: "0.0.0.0",
1273
- open: original ? `paywall/${surfaceId}?compare=origin` : `paywall/${surfaceId}`,
1274
- interactive: !isNonInteractive()
1275
- }, deps);
1276
- }
1277
- function migrationNextSteps(studioOpening, superwallDir, paywallId, choice) {
1278
- const compare = studioOpening ? "The studio opens on the rebuilt paywall with the original beside it. Walk every page in both schemes (the toolbar's Compare menu switches the right pane)." : `Run \`superwall dev\` in ${superwallDir}, open the paywall, and pick Compare › Original in the toolbar. Walk every page in both schemes.`;
1279
- return [
1280
- ...choice === "later" ? [`superwall migrate ${paywallId} — rebuild with your agent, or copy the prompt for one.`] : [],
1281
- compare,
1282
- "It's your code now: anything that doesn't match, ask your agent to tweak in paywalls/, and the studio reloads live.",
1283
- "Push when it's right. The dashboard paywall keeps serving until a campaign points at the new one."
1284
- ];
1285
- }
1286
- function screenNextSteps(input) {
1287
- const review = input.studioOpening ? input.screenshot ? "The studio opens on the rebuilt screen with the simulator screenshot beside it. Check every state in both schemes." : "The studio opens on the rebuilt screen. Keep the original open in the simulator and check every state in both schemes." : `Run \`superwall dev\` in ${input.superwallDir} and open the screen${input.screenshot ? "; Compare › Original shows the simulator screenshot" : " next to the original running in the simulator"}. Check every state in both schemes.`;
1288
- return [
1289
- ...input.choice === "later" ? [`superwall migrate --screen ${input.screenPath} — rebuild with your agent, or copy the prompt for one.`] : [],
1290
- review,
1291
- "It's your code now: anything that doesn't match, ask your agent to tweak in paywalls/, and the studio reloads live.",
1292
- `Push when it's right, then wire the app: register("${input.placement}") where it presented ${input.screenPath}, a campaign for that placement (\`superwall integrate\` covers it), and delete the native screen.`
1293
- ];
1294
- }
1295
-
1296
- //#endregion
1297
- export { screenNameOf as _, buildMigrationCopyPrompt as a, writeTemplate as b, migrationFor as c, projectDirOf as d, scaffoldFromPaywall as f, placementOfName as g, findScreenCandidates as h, startStudio as i, migrationSource as l, screenMigrationFor as m, migrationNextSteps as n, hasOriginal as o, scaffoldFromScreen as p, screenNextSteps as r, isSuperwallProject as s, askStudio as t, offerMigration as u, starterConfig as v, slugOf as x, writeSurfaceFiles as y };
1259
+ export { slugOf as _, migrationSource as a, scaffoldFromPaywall as c, findScreenCandidates as d, placementOfName as f, writeTemplate as g, writeSurfaceFiles as h, migrationFor as i, scaffoldFromScreen as l, starterConfig as m, hasOriginal as n, offerMigration as o, screenNameOf as p, isSuperwallProject as r, projectDirOf as s, buildMigrationCopyPrompt as t, screenMigrationFor as u };
@@ -1,5 +1,5 @@
1
- import { D as updateServerNotifications, r as chooseKeyApp } from "./held-DjcZPCwn.js";
2
- import { t as apiCall } from "./spinner-BClMQGGN.js";
1
+ import { D as updateServerNotifications, r as chooseKeyApp } from "./held-CEyXc1SI.js";
2
+ import { t as apiCall } from "./spinner-D6phP4Af.js";
3
3
  import { i as findAppNotificationUrl } from "./client-BZ1UbpXz.js";
4
4
  import { t as timing } from "./timing-BVxPrYq3.js";
5
5
 
@@ -0,0 +1,41 @@
1
+ import { S as isNonInteractive } from "./environment-a7W-0wg0.js";
2
+ import { t as runStudio } from "./server-DZ7L28w4.js";
3
+
4
+ //#region src/core/paywalls/studio/open.ts
5
+ async function askStudio(ui, interactive, surfaceId, original = true) {
6
+ if (!interactive) return false;
7
+ return await ui.confirm({
8
+ message: original ? `Open the studio now, on paywall/${surfaceId} next to the original?` : `Open the studio now, on paywall/${surfaceId}?`,
9
+ initial: true
10
+ }) === true;
11
+ }
12
+ async function startStudio(superwallDir, surfaceId, original = true, deps = {}) {
13
+ await runStudio({
14
+ dirs: [superwallDir],
15
+ port: 6100,
16
+ host: "0.0.0.0",
17
+ open: original ? `paywall/${surfaceId}?compare=origin` : `paywall/${surfaceId}`,
18
+ interactive: !isNonInteractive()
19
+ }, deps);
20
+ }
21
+ function migrationNextSteps(studioOpening, superwallDir, paywallId, choice) {
22
+ const compare = studioOpening ? "The studio opens on the rebuilt paywall with the original beside it. Walk every page in both schemes (the toolbar's Compare menu switches the right pane)." : `Run \`superwall dev\` in ${superwallDir}, open the paywall, and pick Compare › Original in the toolbar. Walk every page in both schemes.`;
23
+ return [
24
+ ...choice === "later" ? [`superwall migrate ${paywallId} — rebuild with your agent, or copy the prompt for one.`] : [],
25
+ compare,
26
+ "It's your code now: anything that doesn't match, ask your agent to tweak in paywalls/, and the studio reloads live.",
27
+ "Push when it's right. The dashboard paywall keeps serving until a campaign points at the new one."
28
+ ];
29
+ }
30
+ function screenNextSteps(input) {
31
+ const review = input.studioOpening ? input.screenshot ? "The studio opens on the rebuilt screen with the simulator screenshot beside it. Check every state in both schemes." : "The studio opens on the rebuilt screen. Keep the original open in the simulator and check every state in both schemes." : `Run \`superwall dev\` in ${input.superwallDir} and open the screen${input.screenshot ? "; Compare › Original shows the simulator screenshot" : " next to the original running in the simulator"}. Check every state in both schemes.`;
32
+ return [
33
+ ...input.choice === "later" ? [`superwall migrate --screen ${input.screenPath} — rebuild with your agent, or copy the prompt for one.`] : [],
34
+ review,
35
+ "It's your code now: anything that doesn't match, ask your agent to tweak in paywalls/, and the studio reloads live.",
36
+ `Push when it's right, then wire the app: register("${input.placement}") where it presented ${input.screenPath}, a campaign for that placement (\`superwall integrate\` covers it), and delete the native screen.`
37
+ ];
38
+ }
39
+
40
+ //#endregion
41
+ export { startStudio as i, migrationNextSteps as n, screenNextSteps as r, askStudio as t };
@@ -1,6 +1,6 @@
1
- import { n as withSpinner } from "./spinner-BClMQGGN.js";
1
+ import { n as withSpinner } from "./spinner-D6phP4Af.js";
2
2
  import { n as ui } from "./ui-D_qf3Gvw.js";
3
- import { M as listOrgGroups, N as listOrganizations, T as titleCase, w as rowName } from "./resources-Bo6i7wBi.js";
3
+ import { E as titleCase, N as listOrgGroups, P as listOrganizations, T as rowName } from "./resources-DKn4itf3.js";
4
4
 
5
5
  //#region src/core/account/org.ts
6
6
  async function orgForNewProject(api, interactive) {
@@ -1,4 +1,4 @@
1
- import { C as resolveEnv } from "./environment-DBwo79dy.js";
1
+ import { C as resolveEnv } from "./environment-a7W-0wg0.js";
2
2
  import { existsSync } from "node:fs";
3
3
  import { dirname, join } from "node:path";
4
4
  import { homedir } from "node:os";
@@ -1,17 +1,17 @@
1
- import "./token-CPplNMVa.js";
1
+ import "./token-4dQOfOaK.js";
2
2
  import "./output-Ggzq5_-t.js";
3
- import "./environment-DBwo79dy.js";
4
- import "./storage-Po9E-CHL.js";
5
- import "./client-BF9rCULI.js";
3
+ import "./environment-a7W-0wg0.js";
4
+ import "./storage-BcvKhvzZ.js";
5
+ import "./client-CYtQvWJR.js";
6
6
  import "./config-BO1Y87kV.js";
7
- import { i as updateTelemetryTags, r as track } from "./telemetry-s6dag6tb.js";
7
+ import { i as updateTelemetryTags, r as track } from "./telemetry-BpYXL-z3.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import "./spinner-BClMQGGN.js";
9
+ import "./spinner-D6phP4Af.js";
10
10
  import "./ui-D_qf3Gvw.js";
11
- import { t as scanProject } from "./scan-8cxu2fx0.js";
12
- import "./paths-BcNbJfpw.js";
13
- import { d as readBundledSkill } from "./skills-DDf10ufO.js";
14
- import { n as FRAMEWORK_REF, t as detectBilling } from "./billing-DyKr2kmd.js";
11
+ import { t as scanProject } from "./scan-Be17rMcQ.js";
12
+ import "./paths-Cp_lgyWO.js";
13
+ import { d as readBundledSkill } from "./skills-miJDcjQ2.js";
14
+ import { n as FRAMEWORK_REF, t as detectBilling } from "./billing-CCuMv6mh.js";
15
15
 
16
16
  //#region src/core/workflows/playbook.ts
17
17
  async function printPlaybook(installDir, playbook) {
@@ -1,23 +1,25 @@
1
- import "./token-CPplNMVa.js";
1
+ import "./token-4dQOfOaK.js";
2
2
  import "./output-Ggzq5_-t.js";
3
- import { v as VERSION } from "./environment-DBwo79dy.js";
4
- import "./storage-Po9E-CHL.js";
5
- import { t as ApiError } from "./client-BF9rCULI.js";
3
+ import { v as VERSION } from "./environment-a7W-0wg0.js";
4
+ import "./storage-BcvKhvzZ.js";
5
+ import { t as ApiError } from "./client-CYtQvWJR.js";
6
6
  import "./config-BO1Y87kV.js";
7
- import "./telemetry-s6dag6tb.js";
7
+ import "./telemetry-BpYXL-z3.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import "./spinner-BClMQGGN.js";
9
+ import "./spinner-D6phP4Af.js";
10
10
  import { n as ui } from "./ui-D_qf3Gvw.js";
11
- import "./scan-8cxu2fx0.js";
12
- import "./paths-BcNbJfpw.js";
13
- import { b as promotePaywallVersion, g as livePaywallVersion } from "./resources-Bo6i7wBi.js";
14
- import "./lookup-r8p6H2ZC.js";
15
- import "./login-DfhqWY9C.js";
16
- import "./skills-DDf10ufO.js";
17
- import { N as resolveFramework, a as resolveProjectDir, g as transition, s as selectSurfaces, v as collectProjectDeclarations, w as readLock } from "./selection-CMA4aG4V.js";
18
- import { _ as targetLabel, g as planTargets, h as parsePlatformFlags, n as requireApi, v as wantedPlatforms, x as resolveApps, y as resolveBinding } from "./session-eZeXR9xU.js";
19
- import { a as pickApplicationOption, i as timed, o as pickAdoptOption, t as group } from "./push-Bzs1l_5C.js";
20
- import "./login-B8hgMLhS.js";
11
+ import "./scan-Be17rMcQ.js";
12
+ import "./paths-Cp_lgyWO.js";
13
+ import { _ as livePaywallVersion, x as promotePaywallVersion } from "./resources-DKn4itf3.js";
14
+ import "./lookup-Dor6ch5A.js";
15
+ import "./login-DrMLxlF4.js";
16
+ import "./skills-miJDcjQ2.js";
17
+ import "./assets-Diivv88t.js";
18
+ import { a as resolveProjectDir, g as transition, k as readLock, s as selectSurfaces, y as collectProjectDeclarations, z as resolveFramework } from "./selection-C5ZY23dQ.js";
19
+ import { f as parsePlatformFlags, h as wantedPlatforms, m as targetLabel, n as requireApi, p as planTargets, v as resolveApps } from "./session-CdnUL4zt.js";
20
+ import { l as resolveBinding } from "./source-push-NVrs53Uo.js";
21
+ import { a as pickApplicationOption, i as timed, o as pickAdoptOption, t as group } from "./push-D-dewDd1.js";
22
+ import "./login-NxCl2WuU.js";
21
23
  import pc from "picocolors";
22
24
 
23
25
  //#region src/core/paywalls/promote.ts