@superwall/cli 2.2.1 → 2.3.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.
- package/README.md +24 -11
- package/dist/{apple-DaqaI4vD.js → apple-z2qjOzIZ.js} +13 -13
- package/dist/assets-DXXegdDt.js +89 -0
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{billing-DyKr2kmd.js → billing-B8tOjsnY.js} +3 -3
- package/dist/{bind-BpxebZf4.js → bind-Bx9K6LwP.js} +4 -4
- package/dist/{build-DzbdRThf.js → build-Bu2kkzRe.js} +7 -6
- package/dist/{client-BF9rCULI.js → client-DOgk9gAS.js} +3 -3
- package/dist/{create-D7AZHYGH.js → create-B03MAuPe.js} +6 -6
- package/dist/create-BdZS_T68.js +19 -0
- package/dist/{create-B55V99TD.js → create-DzC_89gq.js} +28 -226
- package/dist/{doctor-B2mPKiaJ.js → doctor-BGZSKY_B.js} +6 -6
- package/dist/{drivers-DOMky8Ug.js → drivers-DqLgQxkC.js} +3 -3
- package/dist/entry.js +19 -19
- package/dist/{environment-DBwo79dy.js → environment-i8BhiBDB.js} +1 -1
- package/dist/{existing-B4VK4BCL.js → existing-BPOG5zLO.js} +2 -2
- package/dist/{held-DjcZPCwn.js → held-C56PYMRH.js} +6 -6
- package/dist/held-DSNUY-NZ.js +16 -0
- package/dist/{integrate-B8oHbvwz.js → integrate-DZ4Qvoch.js} +22 -22
- package/dist/login-Blrkm6oi.js +16 -0
- package/dist/{login-DfhqWY9C.js → login-ONZdK8vN.js} +6 -6
- package/dist/{login-B8hgMLhS.js → login-p9GVEKzD.js} +1 -1
- package/dist/{lookup-r8p6H2ZC.js → lookup-flTi0at0.js} +2 -2
- package/dist/{migrate-DQf2Fosc.js → migrate-DnXpbhL1.js} +25 -22
- package/dist/{open-CrEnSL4v.js → migration-DJ1uNKhk.js} +11 -49
- package/dist/{notification-url-BxPTEmkv.js → notification-url-CCDeS5S-.js} +2 -2
- package/dist/open-QdsZ_N47.js +41 -0
- package/dist/{org-Cc2WGvl1.js → org-BiFPjoHD.js} +2 -2
- package/dist/{paths-BcNbJfpw.js → paths-yRgm5Jpa.js} +1 -1
- package/dist/{playbook-D9J8frkE.js → playbook-B-pRKNa4.js} +10 -10
- package/dist/{promote-C8T7DCFF.js → promote-Djzk4C81.js} +18 -16
- package/dist/pull-BLA9XwHj.js +303 -0
- package/dist/push-BkMgOT6X.js +24 -0
- package/dist/{push-Bzs1l_5C.js → push-gSBxGDik.js} +8 -6
- package/dist/{registry-CpxZbmxp.js → registry-D3xmWk9p.js} +230 -115
- package/dist/{resources-Bo6i7wBi.js → resources-BTnczJCA.js} +21 -7
- package/dist/{run-BUp4r8Kk.js → run-C1SoizcJ.js} +2 -2
- package/dist/{scan-8cxu2fx0.js → scan-Dwk_lT5q.js} +1 -1
- package/dist/scan-Kp-MAutK.js +4 -0
- package/dist/{scope-CPG_wWXL.js → scope-Db7blD-l.js} +5 -4
- package/dist/{selection-CMA4aG4V.js → selection-u2KiKu_d.js} +16 -96
- package/dist/{server-Xb3wp-mx.js → server-Cb2N75JL.js} +9 -7
- package/dist/server-psYghr9K.js +24 -0
- package/dist/{session-eZeXR9xU.js → session-BDLQUJyV.js} +444 -243
- package/dist/session-CehHJWZk.js +6 -0
- package/dist/{session-DOZV1TP6.js → session-CnDJp_HO.js} +1 -1
- package/dist/setup-BLahHpgy.js +216 -0
- package/dist/skills/animate-onboarding/SKILL.md +1 -1
- package/dist/skills/mobile-design/SKILL.md +1 -1
- package/dist/skills/onboarding-questions/SKILL.md +1 -1
- package/dist/skills/superwall/SKILL.md +6 -7
- package/dist/skills/superwall/references/api.md +8 -3
- package/dist/skills/superwall/workflows/dashboard/playbook.md +4 -3
- package/dist/skills/superwall/workflows/dashboard/setup.md +7 -4
- package/dist/skills/superwall/workflows/migrate/adapty.md +4 -3
- package/dist/skills/superwall/workflows/migrate/playbook.md +2 -2
- package/dist/skills/superwall/workflows/migrate/qonversion.md +4 -3
- package/dist/skills/superwall/workflows/migrate/revenuecat.md +4 -3
- package/dist/skills/superwall-editor/SKILL.md +2 -3
- package/dist/skills/superwall-framework/SKILL.md +83 -13
- package/dist/skills/superwall-framework/references/cli.md +92 -21
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +5 -1
- package/dist/{skills-BI19OGlS.js → skills-DDV4zcLR.js} +8 -8
- package/dist/{skills-DDf10ufO.js → skills-zebMTZyr.js} +4 -4
- package/dist/source-push-DxuJuwEf.js +205 -0
- package/dist/{spinner-BClMQGGN.js → spinner-BN3U1CVB.js} +3 -3
- package/dist/{storage-Po9E-CHL.js → storage-VagEaaJC.js} +1 -1
- package/dist/storekit-BcBb2jXB.js +16 -0
- package/dist/{storekit-Cbn9DBLA.js → storekit-CoOf4Rvh.js} +3 -3
- package/dist/{telemetry-s6dag6tb.js → telemetry-CM0BDwCK.js} +1 -1
- package/dist/{token-CPplNMVa.js → token-lUUOkTJA.js} +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +215 -89
- package/dist/{upgrade-1OYm5NQU.js → upgrade-CpTJv_M7.js} +2 -2
- package/dist/{upgrade-ahapZeex.js → upgrade-DZbKb67W.js} +1 -1
- package/package.json +2 -2
- package/dist/create-BYAPuhhf.js +0 -19
- package/dist/held-C9FqvNbn.js +0 -16
- package/dist/login-D-a7oS_8.js +0 -16
- package/dist/push-snV3SrnH.js +0 -22
- package/dist/scan-nUeXs9a1.js +0 -4
- package/dist/server-Boqa8jh_.js +0 -22
- package/dist/session-DtBpdlF-.js +0 -6
- package/dist/storekit-BU6Eq_UO.js +0 -16
- /package/dist/{reports-D_qbl7_u.js → reports-CwwKLUh0.js} +0 -0
- /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-
|
|
2
|
+
import "./token-lUUOkTJA.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-
|
|
5
|
-
import "./storage-
|
|
6
|
-
import { i as superwallApi } from "./client-
|
|
7
|
-
import { O as useAscRefresh } from "./held-
|
|
4
|
+
import { S as isNonInteractive, a as CHANNEL, v as VERSION } from "./environment-i8BhiBDB.js";
|
|
5
|
+
import "./storage-VagEaaJC.js";
|
|
6
|
+
import { i as superwallApi } from "./client-DOgk9gAS.js";
|
|
7
|
+
import { O as useAscRefresh } from "./held-C56PYMRH.js";
|
|
8
8
|
import "./config-BO1Y87kV.js";
|
|
9
|
-
import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-
|
|
9
|
+
import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-CM0BDwCK.js";
|
|
10
10
|
import "./spawn-DmmmHIP-.js";
|
|
11
|
-
import { i as refreshUpdateCheck, r as maybeNotifyUpdate, t as flushUpdateCheck } from "./upgrade-
|
|
12
|
-
import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-
|
|
11
|
+
import { i as refreshUpdateCheck, r as maybeNotifyUpdate, t as flushUpdateCheck } from "./upgrade-DZbKb67W.js";
|
|
12
|
+
import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-BN3U1CVB.js";
|
|
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-
|
|
17
|
-
import { t as detectExisting } from "./existing-
|
|
18
|
-
import { n as SUPERWALL_HOME, r as expandHome } from "./paths-
|
|
19
|
-
import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-
|
|
20
|
-
import "./session-
|
|
21
|
-
import "./resources-
|
|
22
|
-
import "./org-
|
|
23
|
-
import "./lookup-
|
|
24
|
-
import "./scope-
|
|
16
|
+
import { t as scanProject } from "./scan-Dwk_lT5q.js";
|
|
17
|
+
import { t as detectExisting } from "./existing-BPOG5zLO.js";
|
|
18
|
+
import { n as SUPERWALL_HOME, r as expandHome } from "./paths-yRgm5Jpa.js";
|
|
19
|
+
import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-D3xmWk9p.js";
|
|
20
|
+
import "./session-CnDJp_HO.js";
|
|
21
|
+
import "./resources-BTnczJCA.js";
|
|
22
|
+
import "./org-BiFPjoHD.js";
|
|
23
|
+
import "./lookup-flTi0at0.js";
|
|
24
|
+
import "./scope-Db7blD-l.js";
|
|
25
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-
|
|
30
|
-
import "./bind-
|
|
29
|
+
import "./notification-url-CCDeS5S-.js";
|
|
30
|
+
import "./bind-Bx9K6LwP.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
|
-
import { f as Integration } from "./environment-
|
|
2
|
-
import { i as readPackageJson, r as allDeps } from "./scan-
|
|
1
|
+
import { f as Integration } from "./environment-i8BhiBDB.js";
|
|
2
|
+
import { i as readPackageJson, r as allDeps } from "./scan-Dwk_lT5q.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
5
|
|
|
@@ -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-
|
|
3
|
-
import { d as readInput, t as apiCall } from "./spinner-
|
|
4
|
-
import {
|
|
5
|
-
import { n as orgForNewProject } from "./org-
|
|
6
|
-
import { n as findApplication } from "./lookup-
|
|
7
|
-
import { r as pickOrganization } from "./scope-
|
|
2
|
+
import { t as ApiError } from "./client-DOgk9gAS.js";
|
|
3
|
+
import { d as readInput, t as apiCall } from "./spinner-BN3U1CVB.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-BTnczJCA.js";
|
|
5
|
+
import { n as orgForNewProject } from "./org-BiFPjoHD.js";
|
|
6
|
+
import { n as findApplication } from "./lookup-flTi0at0.js";
|
|
7
|
+
import { r as pickOrganization } from "./scope-Db7blD-l.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
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./token-lUUOkTJA.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-i8BhiBDB.js";
|
|
4
|
+
import "./storage-VagEaaJC.js";
|
|
5
|
+
import "./client-DOgk9gAS.js";
|
|
6
|
+
import { t as upsertHeldKey } from "./held-C56PYMRH.js";
|
|
7
|
+
import "./config-BO1Y87kV.js";
|
|
8
|
+
import "./spinner-BN3U1CVB.js";
|
|
9
|
+
import "./ui-D_qf3Gvw.js";
|
|
10
|
+
import "./resources-BTnczJCA.js";
|
|
11
|
+
import "./org-BiFPjoHD.js";
|
|
12
|
+
import "./lookup-flTi0at0.js";
|
|
13
|
+
import "./scope-Db7blD-l.js";
|
|
14
|
+
import "./client-BZ1UbpXz.js";
|
|
15
|
+
|
|
16
|
+
export { upsertHeldKey };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-lUUOkTJA.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-
|
|
4
|
-
import { i as removeSession, n as readSession, s as sessionOrgName } from "./storage-
|
|
5
|
-
import { i as superwallApi } from "./client-
|
|
3
|
+
import { c as DASHBOARD_URL, v as VERSION } from "./environment-i8BhiBDB.js";
|
|
4
|
+
import { i as removeSession, n as readSession, s as sessionOrgName } from "./storage-VagEaaJC.js";
|
|
5
|
+
import { i as superwallApi } from "./client-DOgk9gAS.js";
|
|
6
6
|
import { r as readOnboardedApp } from "./config-BO1Y87kV.js";
|
|
7
|
-
import { i as updateTelemetryTags } from "./telemetry-
|
|
7
|
+
import { i as updateTelemetryTags } from "./telemetry-CM0BDwCK.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import { n as withSpinner } from "./spinner-
|
|
9
|
+
import { n as withSpinner } from "./spinner-BN3U1CVB.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-
|
|
14
|
-
import { t as detectExisting } from "./existing-
|
|
15
|
-
import { r as expandHome } from "./paths-
|
|
16
|
-
import {
|
|
17
|
-
import "./org-
|
|
18
|
-
import "./lookup-
|
|
19
|
-
import "./scope-
|
|
13
|
+
import { n as SUPPORTED_LABEL, t as scanProject } from "./scan-Dwk_lT5q.js";
|
|
14
|
+
import { t as detectExisting } from "./existing-BPOG5zLO.js";
|
|
15
|
+
import { r as expandHome } from "./paths-yRgm5Jpa.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-BTnczJCA.js";
|
|
17
|
+
import "./org-BiFPjoHD.js";
|
|
18
|
+
import "./lookup-flTi0at0.js";
|
|
19
|
+
import "./scope-Db7blD-l.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-
|
|
24
|
-
import "./login-
|
|
25
|
-
import { s as ensureSkillsCurrent } from "./skills-
|
|
26
|
-
import { t as generateStoreKit } from "./storekit-
|
|
27
|
-
import { n as performLoginWithUi, t as createLoginGate } from "./login-
|
|
28
|
-
import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-
|
|
29
|
-
import { n as selectHostedStatus, t as detectDrivers } from "./drivers-
|
|
30
|
-
import { r as actionById, t as detectBilling } from "./billing-
|
|
31
|
-
import { n as writeReport, t as readReport } from "./reports-
|
|
23
|
+
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-Bx9K6LwP.js";
|
|
24
|
+
import "./login-ONZdK8vN.js";
|
|
25
|
+
import { s as ensureSkillsCurrent } from "./skills-zebMTZyr.js";
|
|
26
|
+
import { t as generateStoreKit } from "./storekit-CoOf4Rvh.js";
|
|
27
|
+
import { n as performLoginWithUi, t as createLoginGate } from "./login-p9GVEKzD.js";
|
|
28
|
+
import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-C1SoizcJ.js";
|
|
29
|
+
import { n as selectHostedStatus, t as detectDrivers } from "./drivers-DqLgQxkC.js";
|
|
30
|
+
import { r as actionById, t as detectBilling } from "./billing-B8tOjsnY.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-lUUOkTJA.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-i8BhiBDB.js";
|
|
4
|
+
import "./storage-VagEaaJC.js";
|
|
5
|
+
import "./client-DOgk9gAS.js";
|
|
6
|
+
import "./config-BO1Y87kV.js";
|
|
7
|
+
import "./telemetry-CM0BDwCK.js";
|
|
8
|
+
import "./spawn-DmmmHIP-.js";
|
|
9
|
+
import "./spinner-BN3U1CVB.js";
|
|
10
|
+
import "./ui-D_qf3Gvw.js";
|
|
11
|
+
import "./scan-Dwk_lT5q.js";
|
|
12
|
+
import "./paths-yRgm5Jpa.js";
|
|
13
|
+
import { i as startLogin, n as pollLogin, r as runLogin, t as performLogin } from "./login-ONZdK8vN.js";
|
|
14
|
+
import "./skills-zebMTZyr.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-
|
|
2
|
-
import { c as writePendingLogin, l as writeSession, o as serializeSession, r as removePendingLogin, t as readPendingLogin } from "./storage-
|
|
1
|
+
import { f as Integration, i as AUTH_HOST, p as OAUTH_SCOPE, s as CLI_CLIENT_ID, t as API_HOST } from "./environment-i8BhiBDB.js";
|
|
2
|
+
import { c as writePendingLogin, l as writeSession, o as serializeSession, r as removePendingLogin, t as readPendingLogin } from "./storage-VagEaaJC.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-
|
|
5
|
-
import { r as UsageError } from "./spinner-
|
|
4
|
+
import { r as track } from "./telemetry-CM0BDwCK.js";
|
|
5
|
+
import { r as UsageError } from "./spinner-BN3U1CVB.js";
|
|
6
6
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
7
|
-
import { t as scanProject } from "./scan-
|
|
8
|
-
import { s as ensureSkillsCurrent } from "./skills-
|
|
7
|
+
import { t as scanProject } from "./scan-Dwk_lT5q.js";
|
|
8
|
+
import { s as ensureSkillsCurrent } from "./skills-zebMTZyr.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-
|
|
2
|
+
import { a as BROWSER_UNAVAILABLE, s as onboardingHooks, t as performLogin } from "./login-ONZdK8vN.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-
|
|
2
|
-
import {
|
|
1
|
+
import { t as ApiError } from "./client-DOgk9gAS.js";
|
|
2
|
+
import { I as orgProjects, R as rememberOrg, m as listProjects } from "./resources-BTnczJCA.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-
|
|
1
|
+
import "./token-lUUOkTJA.js";
|
|
2
2
|
import { t as blocks } from "./output-Ggzq5_-t.js";
|
|
3
|
-
import { c as DASHBOARD_URL, v as VERSION } from "./environment-
|
|
4
|
-
import { n as readSession, s as sessionOrgName } from "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import { c as DASHBOARD_URL, v as VERSION } from "./environment-i8BhiBDB.js";
|
|
4
|
+
import { n as readSession, s as sessionOrgName } from "./storage-VagEaaJC.js";
|
|
5
|
+
import "./client-DOgk9gAS.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
|
-
import "./telemetry-
|
|
7
|
+
import "./telemetry-CM0BDwCK.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-BN3U1CVB.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-
|
|
14
|
-
import { t as detectExisting } from "./existing-
|
|
15
|
-
import "./paths-
|
|
16
|
-
import "./resources-
|
|
17
|
-
import "./lookup-
|
|
18
|
-
import "./login-
|
|
19
|
-
import "./skills-
|
|
20
|
-
import "./
|
|
21
|
-
import
|
|
22
|
-
import { n as
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import "./
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
13
|
+
import { t as scanProject } from "./scan-Dwk_lT5q.js";
|
|
14
|
+
import { t as detectExisting } from "./existing-BPOG5zLO.js";
|
|
15
|
+
import "./paths-yRgm5Jpa.js";
|
|
16
|
+
import "./resources-BTnczJCA.js";
|
|
17
|
+
import "./lookup-flTi0at0.js";
|
|
18
|
+
import "./login-ONZdK8vN.js";
|
|
19
|
+
import "./skills-zebMTZyr.js";
|
|
20
|
+
import "./assets-DXXegdDt.js";
|
|
21
|
+
import "./selection-u2KiKu_d.js";
|
|
22
|
+
import { n as requireApi } from "./session-BDLQUJyV.js";
|
|
23
|
+
import "./source-push-DxuJuwEf.js";
|
|
24
|
+
import { n as performLoginWithUi } from "./login-p9GVEKzD.js";
|
|
25
|
+
import { t as runAction } from "./run-C1SoizcJ.js";
|
|
26
|
+
import { t as detectDrivers } from "./drivers-DqLgQxkC.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-DJ1uNKhk.js";
|
|
28
|
+
import "./server-Cb2N75JL.js";
|
|
29
|
+
import { i as startStudio, n as migrationNextSteps, r as screenNextSteps, t as askStudio } from "./open-QdsZ_N47.js";
|
|
30
|
+
import { r as actionById, t as detectBilling } from "./billing-B8tOjsnY.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 {
|
|
2
|
-
import { t as ApiError } from "./client-
|
|
1
|
+
import { c as DASHBOARD_URL } from "./environment-i8BhiBDB.js";
|
|
2
|
+
import { t as ApiError } from "./client-DOgk9gAS.js";
|
|
3
3
|
import { t as stripReport } from "./log-NVhVe_oe.js";
|
|
4
|
-
import { i as readPackageJson, r as allDeps } from "./scan-
|
|
5
|
-
import {
|
|
6
|
-
import { d as readBundledSkill } from "./skills-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { a as copyToClipboard, i as readPrompt, n as runWithDriverFallback } from "./run-
|
|
10
|
-
import { t as detectDrivers } from "./drivers-
|
|
11
|
-
import { t as runStudio } from "./server-Xb3wp-mx.js";
|
|
4
|
+
import { i as readPackageJson, r as allDeps } from "./scan-Dwk_lT5q.js";
|
|
5
|
+
import { l as findPaywall, p as listApplications } from "./resources-BTnczJCA.js";
|
|
6
|
+
import { d as readBundledSkill } from "./skills-zebMTZyr.js";
|
|
7
|
+
import { F as writeOrigin, T as isScreenOrigin, j as writeApp, k as readLock } from "./selection-u2KiKu_d.js";
|
|
8
|
+
import { u as projectPackageName } from "./session-BDLQUJyV.js";
|
|
9
|
+
import { a as copyToClipboard, i as readPrompt, n as runWithDriverFallback } from "./run-C1SoizcJ.js";
|
|
10
|
+
import { t as detectDrivers } from "./drivers-DqLgQxkC.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
|
-
|
|
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-
|
|
2
|
-
import { t as apiCall } from "./spinner-
|
|
1
|
+
import { D as updateServerNotifications, r as chooseKeyApp } from "./held-C56PYMRH.js";
|
|
2
|
+
import { t as apiCall } from "./spinner-BN3U1CVB.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-i8BhiBDB.js";
|
|
2
|
+
import { t as runStudio } from "./server-Cb2N75JL.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-
|
|
1
|
+
import { n as withSpinner } from "./spinner-BN3U1CVB.js";
|
|
2
2
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
3
|
-
import {
|
|
3
|
+
import { E as titleCase, N as listOrgGroups, P as listOrganizations, T as rowName } from "./resources-BTnczJCA.js";
|
|
4
4
|
|
|
5
5
|
//#region src/core/account/org.ts
|
|
6
6
|
async function orgForNewProject(api, interactive) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-lUUOkTJA.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import "./environment-i8BhiBDB.js";
|
|
4
|
+
import "./storage-VagEaaJC.js";
|
|
5
|
+
import "./client-DOgk9gAS.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
|
-
import { i as updateTelemetryTags, r as track } from "./telemetry-
|
|
7
|
+
import { i as updateTelemetryTags, r as track } from "./telemetry-CM0BDwCK.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-BN3U1CVB.js";
|
|
10
10
|
import "./ui-D_qf3Gvw.js";
|
|
11
|
-
import { t as scanProject } from "./scan-
|
|
12
|
-
import "./paths-
|
|
13
|
-
import { d as readBundledSkill } from "./skills-
|
|
14
|
-
import { n as FRAMEWORK_REF, t as detectBilling } from "./billing-
|
|
11
|
+
import { t as scanProject } from "./scan-Dwk_lT5q.js";
|
|
12
|
+
import "./paths-yRgm5Jpa.js";
|
|
13
|
+
import { d as readBundledSkill } from "./skills-zebMTZyr.js";
|
|
14
|
+
import { n as FRAMEWORK_REF, t as detectBilling } from "./billing-B8tOjsnY.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-
|
|
1
|
+
import "./token-lUUOkTJA.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import { v as VERSION } from "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import { t as ApiError } from "./client-
|
|
3
|
+
import { v as VERSION } from "./environment-i8BhiBDB.js";
|
|
4
|
+
import "./storage-VagEaaJC.js";
|
|
5
|
+
import { t as ApiError } from "./client-DOgk9gAS.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
|
-
import "./telemetry-
|
|
7
|
+
import "./telemetry-CM0BDwCK.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-BN3U1CVB.js";
|
|
10
10
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
11
|
-
import "./scan-
|
|
12
|
-
import "./paths-
|
|
13
|
-
import {
|
|
14
|
-
import "./lookup-
|
|
15
|
-
import "./login-
|
|
16
|
-
import "./skills-
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import "./
|
|
11
|
+
import "./scan-Dwk_lT5q.js";
|
|
12
|
+
import "./paths-yRgm5Jpa.js";
|
|
13
|
+
import { _ as livePaywallVersion, x as promotePaywallVersion } from "./resources-BTnczJCA.js";
|
|
14
|
+
import "./lookup-flTi0at0.js";
|
|
15
|
+
import "./login-ONZdK8vN.js";
|
|
16
|
+
import "./skills-zebMTZyr.js";
|
|
17
|
+
import "./assets-DXXegdDt.js";
|
|
18
|
+
import { a as resolveProjectDir, g as transition, k as readLock, s as selectSurfaces, y as collectProjectDeclarations, z as resolveFramework } from "./selection-u2KiKu_d.js";
|
|
19
|
+
import { f as parsePlatformFlags, h as wantedPlatforms, m as targetLabel, n as requireApi, p as planTargets, v as resolveApps } from "./session-BDLQUJyV.js";
|
|
20
|
+
import { l as resolveBinding } from "./source-push-DxuJuwEf.js";
|
|
21
|
+
import { a as pickApplicationOption, i as timed, o as pickAdoptOption, t as group } from "./push-gSBxGDik.js";
|
|
22
|
+
import "./login-p9GVEKzD.js";
|
|
21
23
|
import pc from "picocolors";
|
|
22
24
|
|
|
23
25
|
//#region src/core/paywalls/promote.ts
|