@superwall/cli 2.1.1 → 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 +12 -1
- package/dist/{apple-BHbX0jbn.js → apple-DaqaI4vD.js} +13 -13
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{billing-4zhIBFRQ.js → billing-DyKr2kmd.js} +3 -3
- package/dist/{bind-CHLHmxgA.js → bind-BpxebZf4.js} +4 -4
- package/dist/{build-5PQeSnNN.js → build-DzbdRThf.js} +6 -6
- package/dist/{client-BIvOmWPC.js → client-BF9rCULI.js} +3 -3
- package/dist/{create-VK-pNfN7.js → create-B55V99TD.js} +22 -22
- package/dist/create-BYAPuhhf.js +19 -0
- package/dist/{create-BSNIFsnN.js → create-D7AZHYGH.js} +6 -6
- package/dist/{doctor-9JS96QkX.js → doctor-B2mPKiaJ.js} +6 -6
- package/dist/{drivers-BamBJ10Y.js → drivers-DOMky8Ug.js} +3 -3
- package/dist/entry.js +19 -19
- package/dist/{environment-eV7LEnSN.js → environment-DBwo79dy.js} +1 -1
- package/dist/{existing-C8dSYHGk.js → existing-B4VK4BCL.js} +2 -2
- package/dist/held-C9FqvNbn.js +16 -0
- package/dist/{held-BMisHn8F.js → held-DjcZPCwn.js} +6 -6
- package/dist/{integrate-VWtTNPCr.js → integrate-B8oHbvwz.js} +21 -21
- package/dist/{login-BmwG14LC.js → login-B8hgMLhS.js} +1 -1
- package/dist/login-D-a7oS_8.js +16 -0
- package/dist/{login-BimbukE5.js → login-DfhqWY9C.js} +256 -33
- package/dist/{lookup-k9EeOiZr.js → lookup-r8p6H2ZC.js} +2 -2
- package/dist/{migrate-C86h6jeF.js → migrate-DQf2Fosc.js} +21 -21
- package/dist/{notification-url-BVaTgWZ5.js → notification-url-BxPTEmkv.js} +2 -2
- package/dist/{open-0tDCQOXC.js → open-CrEnSL4v.js} +21 -17
- package/dist/{org-DUwdrKPV.js → org-Cc2WGvl1.js} +2 -2
- package/dist/{paths-BCbjCLP5.js → paths-BcNbJfpw.js} +1 -1
- package/dist/{playbook-oov9yV0q.js → playbook-D9J8frkE.js} +10 -10
- package/dist/{promote-DPGPamkE.js → promote-C8T7DCFF.js} +16 -16
- package/dist/{push-Cz4lJ8Qd.js → push-Bzs1l_5C.js} +4 -4
- package/dist/push-snV3SrnH.js +22 -0
- package/dist/{registry-CTczUigi.js → registry-CpxZbmxp.js} +83 -63
- package/dist/{resources-B1qKDVXd.js → resources-Bo6i7wBi.js} +1 -1
- package/dist/{run-DTPsVmFw.js → run-BUp4r8Kk.js} +2 -2
- package/dist/{scan-Bb48xZqB.js → scan-8cxu2fx0.js} +1 -1
- package/dist/scan-nUeXs9a1.js +4 -0
- package/dist/{scope-B6UYGuwn.js → scope-CPG_wWXL.js} +4 -4
- package/dist/{selection-BbNk9r1q.js → selection-CMA4aG4V.js} +3 -3
- package/dist/server-Boqa8jh_.js +22 -0
- package/dist/{server-EYBMKAG1.js → server-Xb3wp-mx.js} +66 -16
- package/dist/{session-xG9E8J2N.js → session-DOZV1TP6.js} +1 -1
- package/dist/session-DtBpdlF-.js +6 -0
- package/dist/{session-Crg9X-FI.js → session-eZeXR9xU.js} +9 -8
- 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/references/data-analytics.md +7 -8
- 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 +3 -2
- package/dist/skills/superwall-framework/references/mobile-design.md +1 -1
- package/dist/{skills-Dg3k6TRC.js → skills-BI19OGlS.js} +8 -8
- package/dist/{skills-BdMKE2uO.js → skills-DDf10ufO.js} +4 -4
- package/dist/{spinner-Ba3XhlMb.js → spinner-BClMQGGN.js} +3 -3
- package/dist/{storage-CerJ5KLP.d.ts → storage-BbJF7z3l.d.ts} +1 -0
- package/dist/{storage-DIkYajce.js → storage-Po9E-CHL.js} +12 -2
- package/dist/storekit-BU6Eq_UO.js +16 -0
- package/dist/{storekit-C2UzIIMs.js → storekit-Cbn9DBLA.js} +3 -3
- package/dist/{telemetry-CVP8O6Y3.js → telemetry-s6dag6tb.js} +1 -1
- package/dist/{token-IWv2httm.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.d.ts +8 -8
- package/dist/tools.js +21 -24
- package/dist/{upgrade-DLf0LJDh.js → upgrade-1OYm5NQU.js} +2 -2
- package/dist/{upgrade-1t3aQUxh.js → upgrade-ahapZeex.js} +1 -1
- package/package.json +2 -2
- package/dist/create-oj3zXvHZ.js +0 -19
- package/dist/held-DeJW2gUk.js +0 -16
- package/dist/login-2JHCG6c1.js +0 -16
- package/dist/push-Chp21y3a.js +0 -22
- package/dist/scan-B1SkkUi7.js +0 -4
- package/dist/server-CwrZ-I1r.js +0 -22
- package/dist/session-DItGa4z0.js +0 -6
- package/dist/storekit-DHNxDDpA.js +0 -16
|
@@ -0,0 +1,22 @@
|
|
|
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 "./resources-Bo6i7wBi.js";
|
|
14
|
+
import "./lookup-r8p6H2ZC.js";
|
|
15
|
+
import "./login-DfhqWY9C.js";
|
|
16
|
+
import "./skills-DDf10ufO.js";
|
|
17
|
+
import "./selection-CMA4aG4V.js";
|
|
18
|
+
import "./session-eZeXR9xU.js";
|
|
19
|
+
import { i as timed, n as runPush, r as runPushPipeline, t as group } from "./push-Bzs1l_5C.js";
|
|
20
|
+
import "./login-B8hgMLhS.js";
|
|
21
|
+
|
|
22
|
+
export { group, runPush, runPushPipeline, timed };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { a as stripAnsi, l as readJson, o as cache, r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import { a as CHANNEL, g as TELEMETRY_KEY, h as TELEMETRY_HOST, t as API_HOST, v as VERSION, x as detectAgent } from "./environment-
|
|
3
|
-
import {
|
|
4
|
-
import { a as withQuery$1, t as ApiError } from "./client-
|
|
5
|
-
import { C as listKeySources, S as listBundleIdSuggestions, T as replaceRevenueProvider, _ as checkServerNotifications, b as importAppKey, c as resolveAscOrgApi, d as runAscDocs, f as parseParams, h as REVENUE_INTEGRATIONS, i as savedKey, l as resolveAscTeam, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, r as chooseKeyApp, t as upsertHeldKey, u as sendAscRequest, v as copyAppKey, w as removeAppKey, x as keyKind, y as findIntegrations } from "./held-
|
|
2
|
+
import { a as CHANNEL, g as TELEMETRY_KEY, h as TELEMETRY_HOST, t as API_HOST, v as VERSION, x as detectAgent } from "./environment-DBwo79dy.js";
|
|
3
|
+
import { n as readSession } from "./storage-Po9E-CHL.js";
|
|
4
|
+
import { a as withQuery$1, t as ApiError } from "./client-BF9rCULI.js";
|
|
5
|
+
import { C as listKeySources, S as listBundleIdSuggestions, T as replaceRevenueProvider, _ as checkServerNotifications, b as importAppKey, c as resolveAscOrgApi, d as runAscDocs, f as parseParams, h as REVENUE_INTEGRATIONS, i as savedKey, l as resolveAscTeam, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, r as chooseKeyApp, t as upsertHeldKey, u as sendAscRequest, v as copyAppKey, w as removeAppKey, x as keyKind, y as findIntegrations } from "./held-DjcZPCwn.js";
|
|
6
6
|
import { n as readDefaultApp, r as readOnboardedApp, t as readAnonymousId, u as writeDefaultApp } from "./config-BO1Y87kV.js";
|
|
7
|
-
import { a as defineCommand, d as readInput, i as defineCatalog, r as UsageError, t as apiCall } from "./spinner-
|
|
7
|
+
import { a as defineCommand, d as readInput, i as defineCatalog, r as UsageError, t as apiCall } from "./spinner-BClMQGGN.js";
|
|
8
8
|
import { n as fg, t as THEME } from "./theme-DUsCh-Vd.js";
|
|
9
|
-
import { n as runWhoami } from "./session-
|
|
10
|
-
import { A as parseJson, M as listOrgGroups, O as isRecord, P as orgIdOf, i as createEntitlement, j as textField, l as isAppScoped, m as listResource, n as createApplication, o as createProduct, p as listProjects, r as createCampaign, s as createProject, t as RESOURCES, v as platformLabel, w as rowName } from "./resources-
|
|
11
|
-
import { n as orgForNewProject } from "./org-
|
|
12
|
-
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-
|
|
13
|
-
import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-
|
|
9
|
+
import { n as runWhoami } from "./session-DOZV1TP6.js";
|
|
10
|
+
import { A as parseJson, M as listOrgGroups, O as isRecord, P as orgIdOf, i as createEntitlement, j as textField, l as isAppScoped, m as listResource, n as createApplication, o as createProduct, p as listProjects, r as createCampaign, s as createProject, t as RESOURCES, v as platformLabel, w as rowName } from "./resources-Bo6i7wBi.js";
|
|
11
|
+
import { n as orgForNewProject } from "./org-Cc2WGvl1.js";
|
|
12
|
+
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-r8p6H2ZC.js";
|
|
13
|
+
import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-CPG_wWXL.js";
|
|
14
14
|
import { a as listAscConfigs, i as findAppNotificationUrl, o as removeAscConfig, t as ascProxy } from "./client-BZ1UbpXz.js";
|
|
15
15
|
import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-DH_fK9tY.js";
|
|
16
16
|
import { n as readResourceFlags, r as textOf, t as fieldName } from "./input-vi0bou04.js";
|
|
17
|
-
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-
|
|
18
|
-
import { t as platformForIntegration } from "./bind-
|
|
17
|
+
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-BxPTEmkv.js";
|
|
18
|
+
import { t as platformForIntegration } from "./bind-BpxebZf4.js";
|
|
19
19
|
import pc from "picocolors";
|
|
20
20
|
|
|
21
21
|
//#region src/ui/help-layout.ts
|
|
@@ -76,12 +76,47 @@ function renderPage(page) {
|
|
|
76
76
|
const command = defineCommand({
|
|
77
77
|
name: "login",
|
|
78
78
|
summary: "Log in to Superwall in your browser, or with an API key",
|
|
79
|
+
details: "Without a terminal (a coding agent, --json), login prints the link and code and returns at once; once the link is approved, `superwall login --poll` finishes it. A new account needs --org-name, and --app-name with --platform also creates its first app.",
|
|
79
80
|
flags: {
|
|
80
81
|
apiKey: {
|
|
81
82
|
type: "string",
|
|
82
83
|
value: "key",
|
|
83
84
|
describe: "Log in with an API key instead of the browser, for CI"
|
|
84
85
|
},
|
|
86
|
+
poll: {
|
|
87
|
+
type: "boolean",
|
|
88
|
+
describe: "Finish a login started without a terminal, once it's approved in the browser"
|
|
89
|
+
},
|
|
90
|
+
timeout: {
|
|
91
|
+
type: "number",
|
|
92
|
+
value: "seconds",
|
|
93
|
+
describe: "With --poll, seconds to wait for approval before returning (default 60)"
|
|
94
|
+
},
|
|
95
|
+
orgName: {
|
|
96
|
+
type: "string",
|
|
97
|
+
value: "name",
|
|
98
|
+
describe: "Create this organization if the account has none"
|
|
99
|
+
},
|
|
100
|
+
appName: {
|
|
101
|
+
type: "string",
|
|
102
|
+
value: "name",
|
|
103
|
+
describe: "With --org-name, also create this app as the organization's first"
|
|
104
|
+
},
|
|
105
|
+
platform: {
|
|
106
|
+
type: "string",
|
|
107
|
+
value: "platform",
|
|
108
|
+
choices: [
|
|
109
|
+
"ios",
|
|
110
|
+
"android",
|
|
111
|
+
"web"
|
|
112
|
+
],
|
|
113
|
+
describe: "Platform of the --app-name app"
|
|
114
|
+
},
|
|
115
|
+
bundleId: {
|
|
116
|
+
type: "string",
|
|
117
|
+
value: "id",
|
|
118
|
+
describe: "Bundle ID of the --app-name app"
|
|
119
|
+
},
|
|
85
120
|
host: {
|
|
86
121
|
type: "string",
|
|
87
122
|
value: "url",
|
|
@@ -95,13 +130,19 @@ const command = defineCommand({
|
|
|
95
130
|
hidden: true
|
|
96
131
|
}
|
|
97
132
|
},
|
|
98
|
-
examples: [
|
|
133
|
+
examples: [
|
|
134
|
+
["login", "Approve the login in your browser"],
|
|
135
|
+
["login --api-key <key>", "Log in on a server or in CI"],
|
|
136
|
+
["login --json", "From an agent: print the link to approve and return"],
|
|
137
|
+
["login --poll --json", "From an agent: finish the login once it's approved"],
|
|
138
|
+
["login --poll --org-name Acme --app-name Acme --platform ios", "From an agent: finish a new account's login and create its first app"]
|
|
139
|
+
],
|
|
99
140
|
auth: "none",
|
|
100
141
|
json: true,
|
|
101
142
|
prompts: true,
|
|
102
143
|
mcp: false,
|
|
103
144
|
async run(ctx, input) {
|
|
104
|
-
const { runLogin } = await import("./login-
|
|
145
|
+
const { runLogin } = await import("./login-D-a7oS_8.js");
|
|
105
146
|
return runLogin(ctx, input);
|
|
106
147
|
}
|
|
107
148
|
});
|
|
@@ -117,7 +158,7 @@ const command$1 = defineCommand({
|
|
|
117
158
|
prompts: true,
|
|
118
159
|
mcp: false,
|
|
119
160
|
async run(ctx) {
|
|
120
|
-
const { runLogout } = await import("./session-
|
|
161
|
+
const { runLogout } = await import("./session-DtBpdlF-.js");
|
|
121
162
|
return runLogout(ctx);
|
|
122
163
|
}
|
|
123
164
|
});
|
|
@@ -3429,7 +3470,7 @@ A purchase_key is for the app's bundle ID; an app with none gets --bundle-id sav
|
|
|
3429
3470
|
prompts: true,
|
|
3430
3471
|
mcp: false,
|
|
3431
3472
|
async run(ctx, input) {
|
|
3432
|
-
const { runAscKeysCreate } = await import("./create-
|
|
3473
|
+
const { runAscKeysCreate } = await import("./create-BYAPuhhf.js");
|
|
3433
3474
|
return runAscKeysCreate(ctx, input);
|
|
3434
3475
|
}
|
|
3435
3476
|
});
|
|
@@ -3816,7 +3857,7 @@ With --app it saves the key you hold on that app instead, as asc keys create --k
|
|
|
3816
3857
|
prompts: true,
|
|
3817
3858
|
mcp: false,
|
|
3818
3859
|
async run(ctx, { args, flags }) {
|
|
3819
|
-
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-
|
|
3860
|
+
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-C9FqvNbn.js");
|
|
3820
3861
|
return upsertHeldKey$1(ctx, {
|
|
3821
3862
|
action: "update",
|
|
3822
3863
|
key: {
|
|
@@ -5069,7 +5110,7 @@ Exit codes
|
|
|
5069
5110
|
prompts: true,
|
|
5070
5111
|
mcp: false,
|
|
5071
5112
|
async run(ctx, input) {
|
|
5072
|
-
const { runSetupApple } = await import("./apple-
|
|
5113
|
+
const { runSetupApple } = await import("./apple-DaqaI4vD.js");
|
|
5073
5114
|
return runSetupApple(ctx, input);
|
|
5074
5115
|
}
|
|
5075
5116
|
});
|
|
@@ -7700,9 +7741,8 @@ const command$45 = defineCommand({
|
|
|
7700
7741
|
json: true,
|
|
7701
7742
|
prompts: true,
|
|
7702
7743
|
mcp: false,
|
|
7703
|
-
channel: "next",
|
|
7704
7744
|
async run(ctx, { args, flags }) {
|
|
7705
|
-
const { runBuildPipeline } = await import("./build-
|
|
7745
|
+
const { runBuildPipeline } = await import("./build-DzbdRThf.js");
|
|
7706
7746
|
await runBuildPipeline({
|
|
7707
7747
|
output: ctx.output,
|
|
7708
7748
|
json: ctx.json
|
|
@@ -7762,9 +7802,8 @@ const command$46 = defineCommand({
|
|
|
7762
7802
|
json: false,
|
|
7763
7803
|
prompts: true,
|
|
7764
7804
|
mcp: false,
|
|
7765
|
-
channel: "next",
|
|
7766
7805
|
async run(ctx, { args, flags }) {
|
|
7767
|
-
const { runCreate } = await import("./create-
|
|
7806
|
+
const { runCreate } = await import("./create-B55V99TD.js");
|
|
7768
7807
|
return runCreate(ctx, {
|
|
7769
7808
|
dir: args.dir,
|
|
7770
7809
|
...flags
|
|
@@ -7806,9 +7845,8 @@ const command$47 = defineCommand({
|
|
|
7806
7845
|
json: false,
|
|
7807
7846
|
prompts: true,
|
|
7808
7847
|
mcp: false,
|
|
7809
|
-
channel: "next",
|
|
7810
7848
|
async run(ctx, { args, flags }) {
|
|
7811
|
-
const { runStudio } = await import("./server-
|
|
7849
|
+
const { runStudio } = await import("./server-Boqa8jh_.js");
|
|
7812
7850
|
await runStudio({
|
|
7813
7851
|
dirs: args.dir,
|
|
7814
7852
|
port: flags.port,
|
|
@@ -7847,9 +7885,8 @@ const command$48 = defineCommand({
|
|
|
7847
7885
|
json: false,
|
|
7848
7886
|
prompts: true,
|
|
7849
7887
|
mcp: false,
|
|
7850
|
-
channel: "next",
|
|
7851
7888
|
async run(ctx, input) {
|
|
7852
|
-
const { runPromote } = await import("./promote-
|
|
7889
|
+
const { runPromote } = await import("./promote-C8T7DCFF.js");
|
|
7853
7890
|
return runPromote(ctx, input);
|
|
7854
7891
|
}
|
|
7855
7892
|
});
|
|
@@ -7892,9 +7929,8 @@ const command$49 = defineCommand({
|
|
|
7892
7929
|
json: false,
|
|
7893
7930
|
prompts: true,
|
|
7894
7931
|
mcp: false,
|
|
7895
|
-
channel: "next",
|
|
7896
7932
|
async run(ctx, input) {
|
|
7897
|
-
const { runPush } = await import("./push-
|
|
7933
|
+
const { runPush } = await import("./push-snV3SrnH.js");
|
|
7898
7934
|
return runPush(ctx, input, true);
|
|
7899
7935
|
}
|
|
7900
7936
|
});
|
|
@@ -7937,9 +7973,8 @@ const command$50 = defineCommand({
|
|
|
7937
7973
|
json: false,
|
|
7938
7974
|
prompts: true,
|
|
7939
7975
|
mcp: false,
|
|
7940
|
-
channel: "next",
|
|
7941
7976
|
async run(ctx, input) {
|
|
7942
|
-
const { runPush } = await import("./push-
|
|
7977
|
+
const { runPush } = await import("./push-snV3SrnH.js");
|
|
7943
7978
|
return runPush(ctx, input, false);
|
|
7944
7979
|
}
|
|
7945
7980
|
});
|
|
@@ -8328,7 +8363,7 @@ async function createApp(context, api, nameArg, fields) {
|
|
|
8328
8363
|
let name = nameArg;
|
|
8329
8364
|
let platform = textOf(fields.platform);
|
|
8330
8365
|
if (interactive && (!name || !platform)) {
|
|
8331
|
-
const { scanProject } = await import("./scan-
|
|
8366
|
+
const { scanProject } = await import("./scan-nUeXs9a1.js");
|
|
8332
8367
|
const detected = (await scanProject(context.installDir).catch(() => null))?.apps[0];
|
|
8333
8368
|
if (detected && !name && !platform) {
|
|
8334
8369
|
ui.info(`Detected \`${detected.framework.name}\`` + (detected.details ? ` · \`${detected.details}\`` : ""));
|
|
@@ -8567,7 +8602,7 @@ async function runResource(ctx, resource, action, value$1, value2, flags) {
|
|
|
8567
8602
|
if (action === "create") return create(ctx, ctx.api, resource, value$1, value2, flags);
|
|
8568
8603
|
if (action === "use" && resource === "apps") return useApp(ctx, ctx.api, value$1);
|
|
8569
8604
|
if (action === "storekit" && resource === "products") {
|
|
8570
|
-
const { writeStoreKit } = await import("./storekit-
|
|
8605
|
+
const { writeStoreKit } = await import("./storekit-BU6Eq_UO.js");
|
|
8571
8606
|
return writeStoreKit(ctx, ctx.api, flags.fields.out);
|
|
8572
8607
|
}
|
|
8573
8608
|
throw new Error(`Unknown action "${action}" for ${resource}.`);
|
|
@@ -9305,7 +9340,7 @@ const command$54 = defineResource({
|
|
|
9305
9340
|
{
|
|
9306
9341
|
name: "update",
|
|
9307
9342
|
summary: "Change a campaign",
|
|
9308
|
-
details: "Overwrites supplied campaign
|
|
9343
|
+
details: "Overwrites supplied campaign description and notes. To change delivery mode, use placement update tools.",
|
|
9309
9344
|
effect: "destructive",
|
|
9310
9345
|
method: "PATCH",
|
|
9311
9346
|
path: "/v2/campaigns/{id}"
|
|
@@ -9917,7 +9952,7 @@ const command$61 = defineCommand({
|
|
|
9917
9952
|
prompts: true,
|
|
9918
9953
|
mcp: false,
|
|
9919
9954
|
async run(ctx) {
|
|
9920
|
-
const { runDoctor } = await import("./doctor-
|
|
9955
|
+
const { runDoctor } = await import("./doctor-B2mPKiaJ.js");
|
|
9921
9956
|
return runDoctor(ctx);
|
|
9922
9957
|
}
|
|
9923
9958
|
});
|
|
@@ -10153,7 +10188,7 @@ const command$63 = defineCommand({
|
|
|
10153
10188
|
prompts: true,
|
|
10154
10189
|
mcp: false,
|
|
10155
10190
|
async run(ctx, input) {
|
|
10156
|
-
const { runSkills } = await import("./skills-
|
|
10191
|
+
const { runSkills } = await import("./skills-BI19OGlS.js");
|
|
10157
10192
|
return runSkills(ctx, input);
|
|
10158
10193
|
}
|
|
10159
10194
|
});
|
|
@@ -10169,7 +10204,7 @@ const command$64 = defineCommand({
|
|
|
10169
10204
|
prompts: true,
|
|
10170
10205
|
mcp: false,
|
|
10171
10206
|
async run(ctx) {
|
|
10172
|
-
const { runUpgrade } = await import("./upgrade-
|
|
10207
|
+
const { runUpgrade } = await import("./upgrade-1OYm5NQU.js");
|
|
10173
10208
|
return runUpgrade(ctx);
|
|
10174
10209
|
}
|
|
10175
10210
|
});
|
|
@@ -10208,8 +10243,8 @@ const command$65 = defineCommand({
|
|
|
10208
10243
|
prompts: true,
|
|
10209
10244
|
mcp: false,
|
|
10210
10245
|
async run(ctx, { flags }) {
|
|
10211
|
-
const { runIntegrate } = await import("./integrate-
|
|
10212
|
-
const { printPlaybook } = await import("./playbook-
|
|
10246
|
+
const { runIntegrate } = await import("./integrate-B8oHbvwz.js");
|
|
10247
|
+
const { printPlaybook } = await import("./playbook-D9J8frkE.js");
|
|
10213
10248
|
if (flags.skill) return printPlaybook(ctx.installDir, "integrate");
|
|
10214
10249
|
await runIntegrate({
|
|
10215
10250
|
...ctx,
|
|
@@ -10223,12 +10258,8 @@ const command$65 = defineCommand({
|
|
|
10223
10258
|
//#region src/commands/workflows/migrate.ts
|
|
10224
10259
|
const command$66 = defineCommand({
|
|
10225
10260
|
name: "migrate",
|
|
10226
|
-
summary: "Migrate from RevenueCat / Adapty / Qonversion",
|
|
10227
|
-
|
|
10228
|
-
args: { paywall: {
|
|
10229
|
-
describe: "A dashboard paywall id: scaffold it as code (if not already) and rebuild its pages with your agent, or copy the prompt",
|
|
10230
|
-
channel: "next"
|
|
10231
|
-
} },
|
|
10261
|
+
summary: "Migrate from RevenueCat / Adapty / Qonversion, or rebuild a paywall or native screen as code",
|
|
10262
|
+
args: { paywall: { describe: "A dashboard paywall id: scaffold it as code (if not already) and rebuild its pages with your agent, or copy the prompt" } },
|
|
10232
10263
|
flags: {
|
|
10233
10264
|
installDir,
|
|
10234
10265
|
dryRun: {
|
|
@@ -10240,37 +10271,27 @@ const command$66 = defineCommand({
|
|
|
10240
10271
|
type: "string",
|
|
10241
10272
|
value: "path",
|
|
10242
10273
|
bare: true,
|
|
10243
|
-
describe: "A SwiftUI, UIKit, Kotlin (Compose or Views), React Native or Flutter file to rebuild as a Superwall screen (no path: pick from likely candidates)"
|
|
10244
|
-
channel: "next"
|
|
10274
|
+
describe: "A SwiftUI, UIKit, Kotlin (Compose or Views), React Native or Flutter file to rebuild as a Superwall screen (no path: pick from likely candidates)"
|
|
10245
10275
|
},
|
|
10246
10276
|
screenshot: {
|
|
10247
10277
|
type: "string",
|
|
10248
10278
|
value: "path",
|
|
10249
|
-
describe: "A screenshot of the native screen, shown as Compare › Original in the studio"
|
|
10250
|
-
channel: "next"
|
|
10279
|
+
describe: "A screenshot of the native screen, shown as Compare › Original in the studio"
|
|
10251
10280
|
}
|
|
10252
10281
|
},
|
|
10253
10282
|
examples: [
|
|
10254
10283
|
["migrate", "Move this app off RevenueCat / Adapty / Qonversion"],
|
|
10255
10284
|
["migrate --skill", "Print the migration playbook for your own agent"],
|
|
10256
|
-
[
|
|
10257
|
-
|
|
10258
|
-
"Rebuild dashboard paywall 65920 as code",
|
|
10259
|
-
"next"
|
|
10260
|
-
],
|
|
10261
|
-
[
|
|
10262
|
-
"migrate --screen App/UpdateRequiredView.swift",
|
|
10263
|
-
"Rebuild a native screen as a Superwall surface",
|
|
10264
|
-
"next"
|
|
10265
|
-
]
|
|
10285
|
+
["migrate 65920", "Rebuild dashboard paywall 65920 as code"],
|
|
10286
|
+
["migrate --screen App/UpdateRequiredView.swift", "Rebuild a native screen as a Superwall surface"]
|
|
10266
10287
|
],
|
|
10267
10288
|
auth: "optional",
|
|
10268
10289
|
json: false,
|
|
10269
10290
|
prompts: true,
|
|
10270
10291
|
mcp: false,
|
|
10271
10292
|
async run(ctx, { args, flags }) {
|
|
10272
|
-
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-
|
|
10273
|
-
const { printPlaybook } = await import("./playbook-
|
|
10293
|
+
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-DQf2Fosc.js");
|
|
10294
|
+
const { printPlaybook } = await import("./playbook-D9J8frkE.js");
|
|
10274
10295
|
if (flags.screen !== void 0) return runScreenMigration(ctx, {
|
|
10275
10296
|
path: flags.screen,
|
|
10276
10297
|
screenshot: flags.screenshot
|
|
@@ -10304,8 +10325,8 @@ const command$67 = defineCommand({
|
|
|
10304
10325
|
prompts: true,
|
|
10305
10326
|
mcp: false,
|
|
10306
10327
|
async run(ctx, { flags }) {
|
|
10307
|
-
const { runReview } = await import("./integrate-
|
|
10308
|
-
const { printPlaybook } = await import("./playbook-
|
|
10328
|
+
const { runReview } = await import("./integrate-B8oHbvwz.js");
|
|
10329
|
+
const { printPlaybook } = await import("./playbook-D9J8frkE.js");
|
|
10309
10330
|
if (flags.skill) return printPlaybook(ctx.installDir, flags.fix ? "review-fix" : "review");
|
|
10310
10331
|
await runReview(ctx, flags.fix);
|
|
10311
10332
|
}
|
|
@@ -10327,7 +10348,6 @@ const GROUPS = [
|
|
|
10327
10348
|
{
|
|
10328
10349
|
id: "paywalls",
|
|
10329
10350
|
title: "Paywalls & funnels",
|
|
10330
|
-
channel: "next",
|
|
10331
10351
|
notes: ["push and publish take -m <note> to record why, in the source commit.", "All four take --platform <p> when a project pushes to several platforms."],
|
|
10332
10352
|
commands: [
|
|
10333
10353
|
command$46,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ApiUnreachableError, t as ApiError } from "./client-
|
|
1
|
+
import { n as ApiUnreachableError, t as ApiError } from "./client-BF9rCULI.js";
|
|
2
2
|
import { o as readOpenedOrgs, p as writeOpenedOrgs } from "./config-BO1Y87kV.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/api/orgs.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as DASHBOARD_URL } from "./environment-
|
|
2
|
-
import { i as packagedDir } from "./paths-
|
|
1
|
+
import { c as DASHBOARD_URL } from "./environment-DBwo79dy.js";
|
|
2
|
+
import { i as packagedDir } from "./paths-BcNbJfpw.js";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as Integration } from "./environment-
|
|
1
|
+
import { f as Integration } from "./environment-DBwo79dy.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { basename, dirname, join, relative, sep } from "node:path";
|
|
4
4
|
import fg from "fast-glob";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as readDefaultApp, u as writeDefaultApp } from "./config-BO1Y87kV.js";
|
|
2
|
-
import { t as apiCall, u as currentHost } from "./spinner-
|
|
3
|
-
import { I as organizationOf, M as listOrgGroups, P as orgIdOf, c as findPaywall, p as listProjects, v as platformLabel } from "./resources-
|
|
4
|
-
import { t as chooseOrgOfApps } from "./org-
|
|
5
|
-
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-
|
|
2
|
+
import { t as apiCall, u as currentHost } from "./spinner-BClMQGGN.js";
|
|
3
|
+
import { I as organizationOf, M as listOrgGroups, P as orgIdOf, c as findPaywall, p as listProjects, v as platformLabel } from "./resources-Bo6i7wBi.js";
|
|
4
|
+
import { t as chooseOrgOfApps } from "./org-Cc2WGvl1.js";
|
|
5
|
+
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-r8p6H2ZC.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core/account/scope.ts
|
|
8
8
|
function moveFirst(items, match) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ASSET_HOST } from "./environment-
|
|
2
|
-
import { t as ApiError } from "./client-
|
|
3
|
-
import { x as pushPaywallAssets } from "./resources-
|
|
1
|
+
import { r as ASSET_HOST } from "./environment-DBwo79dy.js";
|
|
2
|
+
import { t as ApiError } from "./client-BF9rCULI.js";
|
|
3
|
+
import { x as pushPaywallAssets } from "./resources-Bo6i7wBi.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
6
|
import { globSync, readFileSync, statSync } from "node:fs";
|
|
@@ -0,0 +1,22 @@
|
|
|
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 "./resources-Bo6i7wBi.js";
|
|
14
|
+
import "./lookup-r8p6H2ZC.js";
|
|
15
|
+
import "./login-DfhqWY9C.js";
|
|
16
|
+
import "./skills-DDf10ufO.js";
|
|
17
|
+
import "./selection-CMA4aG4V.js";
|
|
18
|
+
import "./session-eZeXR9xU.js";
|
|
19
|
+
import "./login-B8hgMLhS.js";
|
|
20
|
+
import { t as runStudio } from "./server-Xb3wp-mx.js";
|
|
21
|
+
|
|
22
|
+
export { runStudio };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { v as VERSION } from "./environment-
|
|
2
|
-
import { t as ApiError } from "./client-
|
|
1
|
+
import { v as VERSION } from "./environment-DBwo79dy.js";
|
|
2
|
+
import { t as ApiError } from "./client-BF9rCULI.js";
|
|
3
3
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
4
|
-
import { E as versionProducts, S as pushPaywallVersion, b as promotePaywallVersion, f as listApplications } from "./resources-
|
|
5
|
-
import {
|
|
6
|
-
import { F as requireAssets, I as syncAssets, M as frameworkVersion, N as resolveFramework, P as assetBaseUrl, i as requireProject, o as resolveProjectDirs, u as LAYOUT_HINT, v as collectProjectDeclarations, w as readLock, y as writeProjectTypes } from "./selection-
|
|
7
|
-
import { f as listProjectProducts, g as planTargets, i as pushSource, l as writeProjectScaffold, n as requireApi, o as collectSourceFiles, p as projectForApplication, s as warnNotPortable, u as listApplicationCatalogue, v as wantedPlatforms, x as resolveApps, y as resolveBinding } from "./session-
|
|
4
|
+
import { E as versionProducts, S as pushPaywallVersion, b as promotePaywallVersion, f as listApplications } from "./resources-Bo6i7wBi.js";
|
|
5
|
+
import { o as openBrowser } from "./login-DfhqWY9C.js";
|
|
6
|
+
import { F as requireAssets, I as syncAssets, M as frameworkVersion, N as resolveFramework, P as assetBaseUrl, i as requireProject, o as resolveProjectDirs, u as LAYOUT_HINT, v as collectProjectDeclarations, w as readLock, y as writeProjectTypes } from "./selection-CMA4aG4V.js";
|
|
7
|
+
import { f as listProjectProducts, g as planTargets, i as pushSource, l as writeProjectScaffold, n as requireApi, o as collectSourceFiles, p as projectForApplication, s as warnNotPortable, u as listApplicationCatalogue, v as wantedPlatforms, x as resolveApps, y as resolveBinding } from "./session-eZeXR9xU.js";
|
|
8
8
|
import { execFile } from "node:child_process";
|
|
9
9
|
import * as fs from "node:fs";
|
|
10
10
|
import * as path from "node:path";
|
|
@@ -191,11 +191,63 @@ const allowLocalNetworking = async (plist) => {
|
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
193
|
//#region src/core/paywalls/studio/actions.ts
|
|
194
|
+
const resolveScreenshots = (session) => {
|
|
195
|
+
const pages = session.pages ?? [];
|
|
196
|
+
const reviewUrl = session.apple_review_image?.url;
|
|
197
|
+
const regular = pages.filter((page) => page.kind !== "overlay");
|
|
198
|
+
const reviewed = reviewUrl === void 0 ? void 0 : [...regular].reverse().find((page) => page.page_index === session.apple_review_image?.page_index) ?? regular.at(-1);
|
|
199
|
+
const hosts = /* @__PURE__ */ new Map();
|
|
200
|
+
const shots = [];
|
|
201
|
+
let ordinal = 0;
|
|
202
|
+
for (const page of pages) {
|
|
203
|
+
const url = page.app_store_image?.url ?? (page === reviewed ? reviewUrl : page.url);
|
|
204
|
+
if (page.kind === "overlay") {
|
|
205
|
+
const host = hosts.get(page.page_index) ?? {
|
|
206
|
+
label: `Page ${(page.page_index ?? 0) + 1}`,
|
|
207
|
+
overlays: 0
|
|
208
|
+
};
|
|
209
|
+
host.overlays += 1;
|
|
210
|
+
hosts.set(page.page_index, host);
|
|
211
|
+
const label$1 = page.page_name?.trim() || `${host.label} · Overlay ${host.overlays}`;
|
|
212
|
+
if (url !== void 0) shots.push({
|
|
213
|
+
label: label$1,
|
|
214
|
+
url
|
|
215
|
+
});
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
ordinal += 1;
|
|
219
|
+
const label = page.page_name?.trim() || `Page ${ordinal}`;
|
|
220
|
+
hosts.set(page.page_index, {
|
|
221
|
+
label,
|
|
222
|
+
overlays: 0
|
|
223
|
+
});
|
|
224
|
+
if (url !== void 0) shots.push({
|
|
225
|
+
label,
|
|
226
|
+
url
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
if (reviewed === void 0 && reviewUrl !== void 0) shots.push({
|
|
230
|
+
label: `Page ${ordinal + 1}`,
|
|
231
|
+
url: reviewUrl
|
|
232
|
+
});
|
|
233
|
+
return shots;
|
|
234
|
+
};
|
|
194
235
|
const reason = (error) => error instanceof Error ? error.message : String(error);
|
|
195
236
|
const firstApp = (apps) => apps.ios ?? Object.values(apps)[0];
|
|
196
237
|
function createStudioActions(framework, project) {
|
|
197
238
|
let api;
|
|
198
239
|
const ensureApi = async () => api ??= await requireApi(false);
|
|
240
|
+
const readPreviewImages = async (surface) => {
|
|
241
|
+
const lock = readLock(project.superwallDir);
|
|
242
|
+
const bindings = (surface.kind === "paywall" ? lock.paywalls : lock.funnels)[surface.id];
|
|
243
|
+
const bound = bindings === void 0 ? void 0 : Object.values(bindings)[0];
|
|
244
|
+
if (!bound) return void 0;
|
|
245
|
+
const session = await (await ensureApi()).get(`/v2/paywalls/${encodeURIComponent(bound.paywallId)}/preview-images`).catch((error) => {
|
|
246
|
+
if (error instanceof ApiError && error.status === 400) return void 0;
|
|
247
|
+
throw error;
|
|
248
|
+
});
|
|
249
|
+
return session?.status === "ready" ? session : void 0;
|
|
250
|
+
};
|
|
199
251
|
const targetsFor = async (client, surface) => {
|
|
200
252
|
const declared = (await collectProjectDeclarations(framework, project.root)).platforms;
|
|
201
253
|
const apps = await resolveApps({
|
|
@@ -353,17 +405,15 @@ function createStudioActions(framework, project) {
|
|
|
353
405
|
};
|
|
354
406
|
}
|
|
355
407
|
},
|
|
408
|
+
async screenshots(surface) {
|
|
409
|
+
const session = await readPreviewImages(surface);
|
|
410
|
+
if (session === void 0) return void 0;
|
|
411
|
+
const shots = resolveScreenshots(session);
|
|
412
|
+
return shots.length === 0 ? void 0 : shots;
|
|
413
|
+
},
|
|
356
414
|
async screenshot(surface) {
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
const bound = bindings === void 0 ? void 0 : Object.values(bindings)[0];
|
|
360
|
-
if (!bound) return void 0;
|
|
361
|
-
const session = await (await ensureApi()).get(`/v2/paywalls/${encodeURIComponent(bound.paywallId)}/preview-images`).catch((error) => {
|
|
362
|
-
if (error instanceof ApiError && error.status === 400) return void 0;
|
|
363
|
-
throw error;
|
|
364
|
-
});
|
|
365
|
-
if (session?.status !== "ready") return void 0;
|
|
366
|
-
return session.apple_review_image?.url ?? session.pages?.[0]?.url;
|
|
415
|
+
const session = await readPreviewImages(surface);
|
|
416
|
+
return session?.apple_review_image?.url ?? session?.pages?.[0]?.url;
|
|
367
417
|
},
|
|
368
418
|
async status(surface) {
|
|
369
419
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as resolveApiHost, i as removeSession, n as readSession, o as serializeSession, s as sessionOrgName } from "./storage-Po9E-CHL.js";
|
|
2
2
|
|
|
3
3
|
//#region src/core/account/session.ts
|
|
4
4
|
function runWhoami(ctx) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as ENV_API_KEY, t as API_HOST, y as apiKeyFromEnv } from "./environment-
|
|
2
|
-
import {
|
|
3
|
-
import { n as ApiUnreachableError, r as createSuperwallApi, t as ApiError } from "./client-
|
|
1
|
+
import { l as ENV_API_KEY, t as API_HOST, y as apiKeyFromEnv } from "./environment-DBwo79dy.js";
|
|
2
|
+
import { n as readSession } from "./storage-Po9E-CHL.js";
|
|
3
|
+
import { n as ApiUnreachableError, r as createSuperwallApi, t as ApiError } from "./client-BF9rCULI.js";
|
|
4
4
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
5
|
-
import { O as isRecord, _ as mintSourceAccess, a as createHeadlessPaywall, d as listAppPaywalls, f as listApplications, u as linkSourceCommit, v as platformLabel } from "./resources-
|
|
6
|
-
import { n as findApplication } from "./lookup-
|
|
7
|
-
import { C as parseSources, D as writeBinding, E as writeApp, j as writeSources, w as readLock, x as formatSharedLock } from "./selection-
|
|
8
|
-
import { n as performLoginWithUi } from "./login-
|
|
5
|
+
import { O as isRecord, _ as mintSourceAccess, a as createHeadlessPaywall, d as listAppPaywalls, f as listApplications, u as linkSourceCommit, v as platformLabel } from "./resources-Bo6i7wBi.js";
|
|
6
|
+
import { n as findApplication } from "./lookup-r8p6H2ZC.js";
|
|
7
|
+
import { C as parseSources, D as writeBinding, E as writeApp, j as writeSources, w as readLock, x as formatSharedLock } from "./selection-CMA4aG4V.js";
|
|
8
|
+
import { n as performLoginWithUi } from "./login-B8hgMLhS.js";
|
|
9
9
|
import { execFile } from "node:child_process";
|
|
10
10
|
import * as fs from "node:fs";
|
|
11
11
|
import * as path from "node:path";
|
|
@@ -771,7 +771,8 @@ var LoginRequiredError = class extends Error {
|
|
|
771
771
|
constructor() {
|
|
772
772
|
super(`Pushing paywalls needs a Superwall account.
|
|
773
773
|
Interactively: run \`superwall login\`.
|
|
774
|
-
In
|
|
774
|
+
In an agent: run \`superwall login\`, have the link it prints approved, then \`superwall login --poll\`.
|
|
775
|
+
In CI: set ${ENV_API_KEY} to an org API key (sk_…).`);
|
|
775
776
|
this.name = "LoginRequiredError";
|
|
776
777
|
}
|
|
777
778
|
};
|
|
@@ -38,7 +38,7 @@ skill assumes that shape, and the engine below is mapped onto its router:
|
|
|
38
38
|
().paywall !== undefined`), never mount: the SDK preloads surfaces hidden.
|
|
39
39
|
|
|
40
40
|
Read the `superwall-framework` skill before touching the flow (install it if
|
|
41
|
-
it isn't there: `npx skills add https://github.com/superwall/skills
|
|
41
|
+
it isn't there: `npx skills add https://github.com/superwall/skills
|
|
42
42
|
--skill superwall-framework --global --yes --agent claude-code universal
|
|
43
43
|
--full-depth`); its `references/mobile-design.md` carries the touch, motion
|
|
44
44
|
and type rules this skill builds on. A flow that is not a surface yet (a
|