@superwall/cli 2.2.0 → 2.2.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 +3 -1
- package/dist/{apple-Bcr_PteR.js → apple-DaqaI4vD.js} +13 -13
- package/dist/auth.js +3 -3
- package/dist/{billing-CWM1ds3K.js → billing-DyKr2kmd.js} +3 -3
- package/dist/{bind-DEYxsnZD.js → bind-BpxebZf4.js} +4 -4
- package/dist/{build--oQKfZU6.js → build-DzbdRThf.js} +6 -6
- package/dist/{client-CimFymxG.js → client-BF9rCULI.js} +3 -3
- package/dist/{create-BG9n4fvs.js → create-B55V99TD.js} +22 -22
- package/dist/create-BYAPuhhf.js +19 -0
- package/dist/{create-DTAyHkxb.js → create-D7AZHYGH.js} +6 -6
- package/dist/{doctor-BkygMUe2.js → doctor-B2mPKiaJ.js} +6 -6
- package/dist/{drivers-C6eXj5-r.js → drivers-DOMky8Ug.js} +3 -3
- package/dist/entry.js +19 -19
- package/dist/{environment-CQn323uB.js → environment-DBwo79dy.js} +1 -1
- package/dist/{existing-CvOluc9U.js → existing-B4VK4BCL.js} +2 -2
- package/dist/held-C9FqvNbn.js +16 -0
- package/dist/{held-QM7yfrXq.js → held-DjcZPCwn.js} +6 -6
- package/dist/{integrate-Ci_MLkQG.js → integrate-B8oHbvwz.js} +21 -21
- package/dist/{login-DLi71nJq.js → login-B8hgMLhS.js} +1 -1
- package/dist/login-D-a7oS_8.js +16 -0
- package/dist/{login-BIAWgdzM.js → login-DfhqWY9C.js} +6 -6
- package/dist/{lookup-DZFrfzO0.js → lookup-r8p6H2ZC.js} +2 -2
- package/dist/{migrate-BKF1WckS.js → migrate-DQf2Fosc.js} +21 -21
- package/dist/{notification-url-erXQ1edb.js → notification-url-BxPTEmkv.js} +2 -2
- package/dist/{open-BjvGVwJf.js → open-CrEnSL4v.js} +21 -17
- package/dist/{org-CvPGVSBF.js → org-Cc2WGvl1.js} +2 -2
- package/dist/{paths-oRuC18Kt.js → paths-BcNbJfpw.js} +1 -1
- package/dist/{playbook-CtTj1HBK.js → playbook-D9J8frkE.js} +10 -10
- package/dist/{promote-BkJYISza.js → promote-C8T7DCFF.js} +16 -16
- package/dist/{push-Ul2SW87i.js → push-Bzs1l_5C.js} +4 -4
- package/dist/push-snV3SrnH.js +22 -0
- package/dist/{registry-OmPZ6dj0.js → registry-CpxZbmxp.js} +40 -61
- package/dist/{resources-FIrK7pE9.js → resources-Bo6i7wBi.js} +1 -1
- package/dist/{run-CwEY1eu5.js → run-BUp4r8Kk.js} +2 -2
- package/dist/{scan-CpbfZ2ju.js → scan-8cxu2fx0.js} +1 -1
- package/dist/scan-nUeXs9a1.js +4 -0
- package/dist/{scope-BSqVfZvy.js → scope-CPG_wWXL.js} +4 -4
- package/dist/{selection-CHnVk8uw.js → selection-CMA4aG4V.js} +3 -3
- package/dist/server-Boqa8jh_.js +22 -0
- package/dist/{server-D5xl5iKO.js → server-Xb3wp-mx.js} +6 -6
- package/dist/{session-6lnJ0shD.js → session-DOZV1TP6.js} +1 -1
- package/dist/session-DtBpdlF-.js +6 -0
- package/dist/{session-BFwasPVq.js → session-eZeXR9xU.js} +7 -7
- package/dist/skills/animate-onboarding/SKILL.md +1 -1
- package/dist/skills/index.json +18 -18
- package/dist/skills/mobile-design/SKILL.md +1 -1
- package/dist/skills/onboarding-questions/SKILL.md +1 -1
- package/dist/skills/superwall/SKILL.md +102 -17
- package/dist/skills/superwall/references/api.md +13 -2
- package/dist/skills/superwall/workflows/dashboard/playbook.md +2 -1
- package/dist/skills/superwall/workflows/dashboard/setup.md +3 -1
- package/dist/skills/superwall/workflows/integrate/playbook.md +4 -2
- package/dist/skills/superwall/workflows/migrate/adapty.md +3 -3
- package/dist/skills/superwall/workflows/migrate/playbook.md +2 -1
- package/dist/skills/superwall/workflows/migrate/qonversion.md +3 -3
- package/dist/skills/superwall/workflows/migrate/revenuecat.md +4 -4
- package/dist/skills/superwall-editor/SKILL.md +53 -1
- package/dist/skills/superwall-framework/SKILL.md +10 -5
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +1 -1
- package/dist/skills/superwall-framework/references/mobile-design.md +1 -1
- package/dist/{skills-B8uSuanf.js → skills-BI19OGlS.js} +8 -8
- package/dist/{skills-D7sG0xom.js → skills-DDf10ufO.js} +4 -4
- package/dist/{spinner-TZeZEeVv.js → spinner-BClMQGGN.js} +3 -3
- package/dist/{storage-DqKJe13V.js → storage-Po9E-CHL.js} +1 -1
- package/dist/storekit-BU6Eq_UO.js +16 -0
- package/dist/{storekit-uyT3DWo4.js → storekit-Cbn9DBLA.js} +3 -3
- package/dist/{telemetry-D_uIIuSk.js → telemetry-s6dag6tb.js} +1 -1
- package/dist/{token-BJsLGoSX.js → token-CPplNMVa.js} +1 -1
- package/dist/tools-skills/animate-onboarding/SKILL.md +1 -1
- package/dist/tools-skills/mobile-design/SKILL.md +1 -1
- package/dist/tools-skills/onboarding-questions/SKILL.md +1 -1
- package/dist/tools-skills/superwall/SKILL.md +80 -8
- package/dist/tools-skills/superwall/references/api.md +116 -24
- package/dist/tools-skills/superwall/references/apple-setup.md +316 -0
- package/dist/tools-skills/superwall/references/asc.md +74 -38
- package/dist/tools-skills/superwall/references/data-analytics.md +62 -29
- package/dist/tools-skills/superwall/workflows/dashboard/playbook.md +3 -3
- package/dist/tools-skills/superwall/workflows/dashboard/setup.md +8 -8
- package/dist/tools-skills/superwall/workflows/migrate/adapty.md +6 -6
- package/dist/tools-skills/superwall/workflows/migrate/playbook.md +4 -4
- package/dist/tools-skills/superwall/workflows/migrate/qonversion.md +5 -5
- package/dist/tools-skills/superwall/workflows/migrate/revenuecat.md +6 -6
- package/dist/tools-skills/superwall/workflows/placements/android.md +2 -2
- package/dist/tools-skills/superwall/workflows/placements/expo.md +2 -2
- package/dist/tools-skills/superwall/workflows/placements/flutter.md +2 -2
- package/dist/tools-skills/superwall/workflows/placements/ios.md +2 -2
- package/dist/tools-skills/superwall/workflows/placements/playbook.md +2 -2
- package/dist/tools-skills/superwall/workflows/placements/react-native.md +2 -2
- package/dist/tools-skills/superwall/workflows/placements/strategy.md +2 -2
- package/dist/tools-skills/superwall/workflows/review/playbook.md +1 -1
- package/dist/tools-skills/superwall-editor/SKILL.md +2 -2
- package/dist/tools.js +8 -21
- package/dist/{upgrade-DV_rmhyV.js → upgrade-1OYm5NQU.js} +2 -2
- package/dist/{upgrade-BRM51As6.js → upgrade-ahapZeex.js} +1 -1
- package/package.json +2 -2
- package/dist/create-kT2C9k4h.js +0 -19
- package/dist/held-Bwkhufdj.js +0 -16
- package/dist/login-Dy9N5ZDH.js +0 -16
- package/dist/push-BIizJJOn.js +0 -22
- package/dist/scan-DjyvuWel.js +0 -4
- package/dist/server-BTveynqC.js +0 -22
- package/dist/session-Ds6tLC19.js +0 -6
- package/dist/storekit-C_LFh8qy.js +0 -16
package/README.md
CHANGED
|
@@ -608,7 +608,9 @@ Set `SUPERWALL_CHANNEL=next` to opt into experimental and beta features:
|
|
|
608
608
|
commands that are not in the stable set yet, and the matching agent skills
|
|
609
609
|
from the `next` branch of the skills repo. Everything else is unchanged.
|
|
610
610
|
Export it in your shell rc so every terminal and agent sees it. Unset it to
|
|
611
|
-
go back to the stable set.
|
|
611
|
+
go back to the stable set. The framework (`create`, `dev`, `build`, `push`,
|
|
612
|
+
`promote`, `publish`, `migrate <paywall-id>`, `migrate --screen`) is in public
|
|
613
|
+
beta on the stable set and needs no channel.
|
|
612
614
|
|
|
613
615
|
## Telemetry
|
|
614
616
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-CPplNMVa.js";
|
|
2
2
|
import { t as blocks } from "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import { t as ApiError } from "./client-
|
|
6
|
-
import { E as updateBundleId, a as chooseAppIntent, g as RefusedByApi, i as savedKey, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, s as resolveApp, y as findIntegrations } from "./held-
|
|
3
|
+
import "./environment-DBwo79dy.js";
|
|
4
|
+
import "./storage-Po9E-CHL.js";
|
|
5
|
+
import { t as ApiError } from "./client-BF9rCULI.js";
|
|
6
|
+
import { E as updateBundleId, a as chooseAppIntent, g as RefusedByApi, i as savedKey, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, s as resolveApp, y as findIntegrations } from "./held-DjcZPCwn.js";
|
|
7
7
|
import "./config-BO1Y87kV.js";
|
|
8
|
-
import { t as apiCall } from "./spinner-
|
|
8
|
+
import { t as apiCall } from "./spinner-BClMQGGN.js";
|
|
9
9
|
import "./ui-D_qf3Gvw.js";
|
|
10
|
-
import "./paths-
|
|
11
|
-
import "./resources-
|
|
12
|
-
import "./org-
|
|
13
|
-
import "./lookup-
|
|
14
|
-
import "./scope-
|
|
10
|
+
import "./paths-BcNbJfpw.js";
|
|
11
|
+
import "./resources-Bo6i7wBi.js";
|
|
12
|
+
import "./org-Cc2WGvl1.js";
|
|
13
|
+
import "./lookup-r8p6H2ZC.js";
|
|
14
|
+
import "./scope-CPG_wWXL.js";
|
|
15
15
|
import "./client-BZ1UbpXz.js";
|
|
16
16
|
import "./timing-BVxPrYq3.js";
|
|
17
|
-
import { n as ensureNotificationUrl, r as environmentLines, t as describeNotificationUrl } from "./notification-url-
|
|
18
|
-
import { a as chooseTeam, n as keyAccess, o as signIn, r as keyRole, s as appleDeps, t as createAndSaveKey } from "./create-
|
|
17
|
+
import { n as ensureNotificationUrl, r as environmentLines, t as describeNotificationUrl } from "./notification-url-BxPTEmkv.js";
|
|
18
|
+
import { a as chooseTeam, n as keyAccess, o as signIn, r as keyRole, s as appleDeps, t as createAndSaveKey } from "./create-D7AZHYGH.js";
|
|
19
19
|
|
|
20
20
|
//#region src/core/app-store-connect/setup/apple.ts
|
|
21
21
|
const STEPS = [
|
package/dist/auth.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as resolveAuthToken, r as NotLoggedInError, t as getOAuthAccessToken } from "./token-
|
|
1
|
+
import { n as resolveAuthToken, r as NotLoggedInError, t as getOAuthAccessToken } from "./token-CPplNMVa.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
3
|
+
import "./environment-DBwo79dy.js";
|
|
4
|
+
import "./storage-Po9E-CHL.js";
|
|
5
5
|
|
|
6
6
|
export { NotLoggedInError, getOAuthAccessToken, resolveAuthToken };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as Integration } from "./environment-
|
|
2
|
-
import { i as readPackageJson, r as allDeps } from "./scan-
|
|
3
|
-
import { d as readBundledSkill } from "./skills-
|
|
1
|
+
import { f as Integration } from "./environment-DBwo79dy.js";
|
|
2
|
+
import { i as readPackageJson, r as allDeps } from "./scan-8cxu2fx0.js";
|
|
3
|
+
import { d as readBundledSkill } from "./skills-DDf10ufO.js";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import fg from "fast-glob";
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as Integration } from "./environment-
|
|
2
|
-
import { n as withSpinner } from "./spinner-
|
|
1
|
+
import { f as Integration } from "./environment-DBwo79dy.js";
|
|
2
|
+
import { n as withSpinner } from "./spinner-BClMQGGN.js";
|
|
3
3
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
4
|
-
import { n as createApplication, p as listProjects, s as createProject, v as platformLabel } from "./resources-
|
|
5
|
-
import { n as orgForNewProject } from "./org-
|
|
4
|
+
import { n as createApplication, p as listProjects, s as createProject, v as platformLabel } from "./resources-Bo6i7wBi.js";
|
|
5
|
+
import { n as orgForNewProject } from "./org-Cc2WGvl1.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core/account/bind.ts
|
|
8
8
|
const NEW = "__new__";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-CPplNMVa.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import { v as VERSION } from "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import { v as VERSION } from "./environment-DBwo79dy.js";
|
|
4
|
+
import "./storage-Po9E-CHL.js";
|
|
5
|
+
import "./client-BF9rCULI.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
7
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
8
|
-
import "./resources-
|
|
9
|
-
import { N as resolveFramework, P as assetBaseUrl, a as resolveProjectDir, d as kb, h as took, i as requireProject, n as parseIds, s as selectSurfaces, v as collectProjectDeclarations, w as readLock, y as writeProjectTypes } from "./selection-
|
|
8
|
+
import "./resources-Bo6i7wBi.js";
|
|
9
|
+
import { N as resolveFramework, P as assetBaseUrl, a as resolveProjectDir, d as kb, h as took, i as requireProject, n as parseIds, s as selectSurfaces, v as collectProjectDeclarations, w as readLock, y as writeProjectTypes } from "./selection-CMA4aG4V.js";
|
|
10
10
|
import * as fs from "node:fs";
|
|
11
11
|
import * as path from "node:path";
|
|
12
12
|
import pc from "picocolors";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as resolveAuthToken, r as NotLoggedInError } from "./token-
|
|
2
|
-
import { _ as USER_AGENT } from "./environment-
|
|
3
|
-
import { a as resolveApiHost, n as readSession } from "./storage-
|
|
1
|
+
import { n as resolveAuthToken, r as NotLoggedInError } from "./token-CPplNMVa.js";
|
|
2
|
+
import { _ as USER_AGENT } from "./environment-DBwo79dy.js";
|
|
3
|
+
import { a as resolveApiHost, n as readSession } from "./storage-Po9E-CHL.js";
|
|
4
4
|
|
|
5
5
|
//#region src/core/api/client.ts
|
|
6
6
|
const BODY_SNIPPET = 200;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-CPplNMVa.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import "./environment-DBwo79dy.js";
|
|
4
|
+
import "./storage-Po9E-CHL.js";
|
|
5
|
+
import "./client-BF9rCULI.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
|
-
import "./telemetry-
|
|
7
|
+
import "./telemetry-s6dag6tb.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-BClMQGGN.js";
|
|
10
10
|
import "./ui-D_qf3Gvw.js";
|
|
11
11
|
import "./theme-DUsCh-Vd.js";
|
|
12
12
|
import "./log-NVhVe_oe.js";
|
|
13
|
-
import { i as readPackageJson, r as allDeps, t as scanProject } from "./scan-
|
|
14
|
-
import { t as detectExisting } from "./existing-
|
|
15
|
-
import "./paths-
|
|
16
|
-
import { D as field, f as listApplications, n as createApplication, p as listProjects, v as platformLabel } from "./resources-
|
|
17
|
-
import "./org-
|
|
18
|
-
import { n as findApplication } from "./lookup-
|
|
19
|
-
import { r as resolveScopeFromKey } from "./bind-
|
|
20
|
-
import "./login-
|
|
21
|
-
import "./skills-
|
|
22
|
-
import { E as writeApp } from "./selection-
|
|
23
|
-
import { a as gitAvailable, b as requirePlatform, c as projectPackageName, n as requireApi, t as LoginRequiredError } from "./session-
|
|
24
|
-
import "./login-
|
|
25
|
-
import "./run-
|
|
26
|
-
import "./drivers-
|
|
27
|
-
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-
|
|
28
|
-
import "./server-
|
|
13
|
+
import { i as readPackageJson, r as allDeps, t as scanProject } from "./scan-8cxu2fx0.js";
|
|
14
|
+
import { t as detectExisting } from "./existing-B4VK4BCL.js";
|
|
15
|
+
import "./paths-BcNbJfpw.js";
|
|
16
|
+
import { D as field, f as listApplications, n as createApplication, p as listProjects, v as platformLabel } from "./resources-Bo6i7wBi.js";
|
|
17
|
+
import "./org-Cc2WGvl1.js";
|
|
18
|
+
import { n as findApplication } from "./lookup-r8p6H2ZC.js";
|
|
19
|
+
import { r as resolveScopeFromKey } from "./bind-BpxebZf4.js";
|
|
20
|
+
import "./login-DfhqWY9C.js";
|
|
21
|
+
import "./skills-DDf10ufO.js";
|
|
22
|
+
import { E as writeApp } from "./selection-CMA4aG4V.js";
|
|
23
|
+
import { a as gitAvailable, b as requirePlatform, c as projectPackageName, n as requireApi, t as LoginRequiredError } from "./session-eZeXR9xU.js";
|
|
24
|
+
import "./login-B8hgMLhS.js";
|
|
25
|
+
import "./run-BUp4r8Kk.js";
|
|
26
|
+
import "./drivers-DOMky8Ug.js";
|
|
27
|
+
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-CrEnSL4v.js";
|
|
28
|
+
import "./server-Xb3wp-mx.js";
|
|
29
29
|
import { execFile } from "node:child_process";
|
|
30
30
|
import * as fs from "node:fs";
|
|
31
31
|
import * as path from "node:path";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "./token-CPplNMVa.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-DBwo79dy.js";
|
|
4
|
+
import "./storage-Po9E-CHL.js";
|
|
5
|
+
import "./client-BF9rCULI.js";
|
|
6
|
+
import "./held-DjcZPCwn.js";
|
|
7
|
+
import "./config-BO1Y87kV.js";
|
|
8
|
+
import "./spinner-BClMQGGN.js";
|
|
9
|
+
import "./ui-D_qf3Gvw.js";
|
|
10
|
+
import "./paths-BcNbJfpw.js";
|
|
11
|
+
import "./resources-Bo6i7wBi.js";
|
|
12
|
+
import "./org-Cc2WGvl1.js";
|
|
13
|
+
import "./lookup-r8p6H2ZC.js";
|
|
14
|
+
import "./scope-CPG_wWXL.js";
|
|
15
|
+
import "./client-BZ1UbpXz.js";
|
|
16
|
+
import "./timing-BVxPrYq3.js";
|
|
17
|
+
import { i as runAscKeysCreate, n as keyAccess, r as keyRole, t as createAndSaveKey } from "./create-D7AZHYGH.js";
|
|
18
|
+
|
|
19
|
+
export { createAndSaveKey, keyAccess, keyRole, runAscKeysCreate };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import { b as appleCredentialsFromEnv, d as ENV_APPLE_PASSWORD, u as ENV_APPLE_ID, v as VERSION } from "./environment-
|
|
3
|
-
import { t as ApiError } from "./client-
|
|
4
|
-
import { i as savedKey, m as KEY_LABEL, n as testModeWarning, o as chooseIosApp, s as resolveApp, t as upsertHeldKey, x as keyKind, y as findIntegrations } from "./held-
|
|
5
|
-
import { t as apiCall } from "./spinner-
|
|
6
|
-
import { n as SUPERWALL_HOME } from "./paths-
|
|
7
|
-
import { A as parseJson, D as field, j as textField, k as listField } from "./resources-
|
|
2
|
+
import { b as appleCredentialsFromEnv, d as ENV_APPLE_PASSWORD, u as ENV_APPLE_ID, v as VERSION } from "./environment-DBwo79dy.js";
|
|
3
|
+
import { t as ApiError } from "./client-BF9rCULI.js";
|
|
4
|
+
import { i as savedKey, m as KEY_LABEL, n as testModeWarning, o as chooseIosApp, s as resolveApp, t as upsertHeldKey, x as keyKind, y as findIntegrations } from "./held-DjcZPCwn.js";
|
|
5
|
+
import { t as apiCall } from "./spinner-BClMQGGN.js";
|
|
6
|
+
import { n as SUPERWALL_HOME } from "./paths-BcNbJfpw.js";
|
|
7
|
+
import { A as parseJson, D as field, j as textField, k as listField } from "./resources-Bo6i7wBi.js";
|
|
8
8
|
import { c as replaceAppPurchaseKey, s as replaceAppAscKey } from "./client-BZ1UbpXz.js";
|
|
9
9
|
import { t as timing } from "./timing-BVxPrYq3.js";
|
|
10
10
|
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-CPplNMVa.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import { y as apiKeyFromEnv } from "./environment-
|
|
4
|
-
import { n as readSession } from "./storage-
|
|
3
|
+
import { y as apiKeyFromEnv } from "./environment-DBwo79dy.js";
|
|
4
|
+
import { n as readSession } from "./storage-Po9E-CHL.js";
|
|
5
5
|
import "./spawn-DmmmHIP-.js";
|
|
6
6
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
7
7
|
import { n as fg, t as THEME } from "./theme-DUsCh-Vd.js";
|
|
8
|
-
import { t as scanProject } from "./scan-
|
|
9
|
-
import { t as detectExisting } from "./existing-
|
|
10
|
-
import { t as detectDrivers } from "./drivers-
|
|
8
|
+
import { t as scanProject } from "./scan-8cxu2fx0.js";
|
|
9
|
+
import { t as detectExisting } from "./existing-B4VK4BCL.js";
|
|
10
|
+
import { t as detectDrivers } from "./drivers-DOMky8Ug.js";
|
|
11
11
|
|
|
12
12
|
//#region src/core/support/doctor.ts
|
|
13
13
|
async function runDoctor(ctx, deps = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as getOAuthAccessToken } from "./token-
|
|
2
|
-
import { t as API_HOST, v as VERSION } from "./environment-
|
|
3
|
-
import { n as readSession } from "./storage-
|
|
1
|
+
import { t as getOAuthAccessToken } from "./token-CPplNMVa.js";
|
|
2
|
+
import { t as API_HOST, v as VERSION } from "./environment-DBwo79dy.js";
|
|
3
|
+
import { n as readSession } from "./storage-Po9E-CHL.js";
|
|
4
4
|
import { n as readVersion, r as spawnStream, t as onPath } from "./spawn-DmmmHIP-.js";
|
|
5
5
|
import { basename, join } from "node:path";
|
|
6
6
|
import { tmpdir } from "node:os";
|
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-CPplNMVa.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-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";
|
|
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-s6dag6tb.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-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";
|
|
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-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";
|
|
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-BxPTEmkv.js";
|
|
30
|
+
import "./bind-BpxebZf4.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-DBwo79dy.js";
|
|
2
|
+
import { i as readPackageJson, r as allDeps } from "./scan-8cxu2fx0.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
5
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./token-CPplNMVa.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-DBwo79dy.js";
|
|
4
|
+
import "./storage-Po9E-CHL.js";
|
|
5
|
+
import "./client-BF9rCULI.js";
|
|
6
|
+
import { t as upsertHeldKey } from "./held-DjcZPCwn.js";
|
|
7
|
+
import "./config-BO1Y87kV.js";
|
|
8
|
+
import "./spinner-BClMQGGN.js";
|
|
9
|
+
import "./ui-D_qf3Gvw.js";
|
|
10
|
+
import "./resources-Bo6i7wBi.js";
|
|
11
|
+
import "./org-Cc2WGvl1.js";
|
|
12
|
+
import "./lookup-r8p6H2ZC.js";
|
|
13
|
+
import "./scope-CPG_wWXL.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-
|
|
3
|
-
import { d as readInput, t as apiCall } from "./spinner-
|
|
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-
|
|
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-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";
|
|
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,33 +1,33 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-CPplNMVa.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-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";
|
|
6
6
|
import { r as readOnboardedApp } from "./config-BO1Y87kV.js";
|
|
7
|
-
import { i as updateTelemetryTags } from "./telemetry-
|
|
7
|
+
import { i as updateTelemetryTags } from "./telemetry-s6dag6tb.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import { n as withSpinner } from "./spinner-
|
|
9
|
+
import { n as withSpinner } from "./spinner-BClMQGGN.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 { D as field, f as listApplications, k as listField, m as listResource, o as createProduct, v as platformLabel, w as rowName } from "./resources-
|
|
17
|
-
import "./org-
|
|
18
|
-
import "./lookup-
|
|
19
|
-
import "./scope-
|
|
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";
|
|
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-
|
|
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
31
|
import { n as writeReport, t as readReport } from "./reports-D_qbl7_u.js";
|
|
32
32
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
33
33
|
import { basename } from "node:path";
|
|
@@ -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-DfhqWY9C.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/workflows/login.ts
|
|
5
5
|
async function performLoginWithUi(app, onProvisioned) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./token-CPplNMVa.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-DBwo79dy.js";
|
|
4
|
+
import "./storage-Po9E-CHL.js";
|
|
5
|
+
import "./client-BF9rCULI.js";
|
|
6
|
+
import "./config-BO1Y87kV.js";
|
|
7
|
+
import "./telemetry-s6dag6tb.js";
|
|
8
|
+
import "./spawn-DmmmHIP-.js";
|
|
9
|
+
import "./spinner-BClMQGGN.js";
|
|
10
|
+
import "./ui-D_qf3Gvw.js";
|
|
11
|
+
import "./scan-8cxu2fx0.js";
|
|
12
|
+
import "./paths-BcNbJfpw.js";
|
|
13
|
+
import { i as startLogin, n as pollLogin, r as runLogin, t as performLogin } from "./login-DfhqWY9C.js";
|
|
14
|
+
import "./skills-DDf10ufO.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-DBwo79dy.js";
|
|
2
|
+
import { c as writePendingLogin, l as writeSession, o as serializeSession, r as removePendingLogin, t as readPendingLogin } from "./storage-Po9E-CHL.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-s6dag6tb.js";
|
|
5
|
+
import { r as UsageError } from "./spinner-BClMQGGN.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-8cxu2fx0.js";
|
|
8
|
+
import { s as ensureSkillsCurrent } from "./skills-DDf10ufO.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { setTimeout } from "node:timers/promises";
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ApiError } from "./client-
|
|
2
|
-
import { F as orgProjects, L as rememberOrg, p as listProjects } from "./resources-
|
|
1
|
+
import { t as ApiError } from "./client-BF9rCULI.js";
|
|
2
|
+
import { F as orgProjects, L as rememberOrg, p as listProjects } from "./resources-Bo6i7wBi.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/api/lookup.ts
|
|
5
5
|
const DASHBOARD_PATH = /^\/(\d+)(?:\/(\d+))?(?:\/|$)/;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-CPplNMVa.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-DBwo79dy.js";
|
|
4
|
+
import { n as readSession, s as sessionOrgName } from "./storage-Po9E-CHL.js";
|
|
5
|
+
import "./client-BF9rCULI.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
|
-
import "./telemetry-
|
|
7
|
+
import "./telemetry-s6dag6tb.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-BClMQGGN.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 "./selection-
|
|
21
|
-
import { n as requireApi } from "./session-
|
|
22
|
-
import { n as performLoginWithUi } from "./login-
|
|
23
|
-
import { t as runAction } from "./run-
|
|
24
|
-
import { t as detectDrivers } from "./drivers-
|
|
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-
|
|
26
|
-
import "./server-
|
|
27
|
-
import { r as actionById, t as detectBilling } from "./billing-
|
|
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
28
|
import { n as writeReport } from "./reports-D_qbl7_u.js";
|
|
29
29
|
import { execFile } from "node:child_process";
|
|
30
30
|
import * as fs from "node:fs";
|
|
@@ -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-DjcZPCwn.js";
|
|
2
|
+
import { t as apiCall } from "./spinner-BClMQGGN.js";
|
|
3
3
|
import { i as findAppNotificationUrl } from "./client-BZ1UbpXz.js";
|
|
4
4
|
import { t as timing } from "./timing-BVxPrYq3.js";
|
|
5
5
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { S as isNonInteractive, c as DASHBOARD_URL } from "./environment-
|
|
2
|
-
import { t as ApiError } from "./client-
|
|
1
|
+
import { S as isNonInteractive, c as DASHBOARD_URL } from "./environment-DBwo79dy.js";
|
|
2
|
+
import { t as ApiError } from "./client-BF9rCULI.js";
|
|
3
3
|
import { t as stripReport } from "./log-NVhVe_oe.js";
|
|
4
|
-
import { i as readPackageJson, r as allDeps } from "./scan-
|
|
5
|
-
import { c as findPaywall, f as listApplications } from "./resources-
|
|
6
|
-
import { d as readBundledSkill } from "./skills-
|
|
7
|
-
import { E as writeApp, S as isScreenOrigin, k as writeOrigin, w as readLock } from "./selection-
|
|
8
|
-
import { c as projectPackageName } from "./session-
|
|
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-
|
|
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";
|
|
12
12
|
import * as fs from "node:fs";
|
|
13
13
|
import * as path from "node:path";
|
|
14
14
|
import fg from "fast-glob";
|
|
@@ -106,6 +106,7 @@ function parseOriginDocument(html) {
|
|
|
106
106
|
const cache = enabled(paywall.onDeviceCache);
|
|
107
107
|
if (cache !== void 0) settings.onDeviceCacheEnabled = cache;
|
|
108
108
|
if (typeof paywall.webCheckoutDestination === "string") settings.webCheckoutDestination = paywall.webCheckoutDestination;
|
|
109
|
+
if (paywall.prepaidCards === "BLOCKED") settings.prepaidCards = "block";
|
|
109
110
|
}
|
|
110
111
|
const locales = ofType("paywall_language").map((record) => typeof record.id === "string" ? record.id.split(":")[1] : void 0).filter((locale) => typeof locale === "string" && locale !== "").sort();
|
|
111
112
|
const nodeCounts = {};
|
|
@@ -179,7 +180,8 @@ function originOf(detail, document) {
|
|
|
179
180
|
scrollEnabled: document?.settings.scrollEnabled ?? true,
|
|
180
181
|
gameControllerEnabled: document?.settings.gameControllerEnabled ?? false,
|
|
181
182
|
onDeviceCacheEnabled: document?.settings.onDeviceCacheEnabled ?? true,
|
|
182
|
-
...document?.settings.webCheckoutDestination === void 0 ? {} : { webCheckoutDestination: document.settings.webCheckoutDestination }
|
|
183
|
+
...document?.settings.webCheckoutDestination === void 0 ? {} : { webCheckoutDestination: document.settings.webCheckoutDestination },
|
|
184
|
+
...document?.settings.prepaidCards === void 0 ? {} : { prepaidCards: document.settings.prepaidCards }
|
|
183
185
|
},
|
|
184
186
|
background: document?.background,
|
|
185
187
|
locales: document?.locales ?? [],
|
|
@@ -203,10 +205,15 @@ const presentationSource = (presentation) => {
|
|
|
203
205
|
}
|
|
204
206
|
return `{ style: ${literal$1(presentation.style)} }`;
|
|
205
207
|
};
|
|
208
|
+
const checkoutModeOf = (destination) => {
|
|
209
|
+
if (destination === "PAYWALL_APPLE_PAY") return "applePay";
|
|
210
|
+
if (destination === "PAYWALL_EMBEDDED") return "sheet";
|
|
211
|
+
};
|
|
206
212
|
const checkoutSource = (origin) => {
|
|
207
213
|
if (origin.platform !== "web") return void 0;
|
|
208
|
-
|
|
209
|
-
if (origin.settings.
|
|
214
|
+
const mode = checkoutModeOf(origin.settings.webCheckoutDestination);
|
|
215
|
+
if (origin.settings.prepaidCards === "block") return `{ mode: ${literal$1(mode ?? "external")}, prepaidCards: "block" }`;
|
|
216
|
+
return mode === void 0 ? void 0 : literal$1(mode);
|
|
210
217
|
};
|
|
211
218
|
function originConfigSource(origin) {
|
|
212
219
|
const lines = [` name: ${literal$1(origin.name)},`];
|
|
@@ -340,12 +347,9 @@ layout and inset system, mobile design, the CLI, and where the docs are.
|
|
|
340
347
|
\`superwall login\` installs it; otherwise:
|
|
341
348
|
|
|
342
349
|
\`\`\`bash
|
|
343
|
-
npx skills add
|
|
350
|
+
npx skills add superwall/skills --skill superwall-framework --global --yes --agent claude-code universal --full-depth
|
|
344
351
|
\`\`\`
|
|
345
352
|
|
|
346
|
-
The framework is on the \`next\` channel: its commands exist only while
|
|
347
|
-
\`SUPERWALL_CHANNEL=next\` is set in the environment.
|
|
348
|
-
|
|
349
353
|
Docs: \`curl -sL https://superwall.com/docs/framework/llms.txt\`
|
|
350
354
|
`;
|
|
351
355
|
const TSCONFIG = "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"lib\": [\"ES2023\", \"DOM\", \"DOM.Iterable\"],\n \"module\": \"ESNext\",\n \"moduleResolution\": \"bundler\",\n \"jsx\": \"react-jsx\",\n \"strict\": true,\n \"isolatedModules\": true,\n \"resolveJsonModule\": true,\n \"skipLibCheck\": true,\n \"noUnusedLocals\": true,\n \"noUnusedParameters\": true,\n \"noFallthroughCasesInSwitch\": true,\n \"noEmit\": true,\n \"paths\": {\n \"@/*\": [\"./*\"]\n }\n },\n \"include\": [\".\"]\n}\n";
|