@superwall/cli 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{apple-CkKlHBZ9.js → apple-CSzNTGHM.js} +13 -13
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{billing-XCZU_T46.js → billing-C3Q8DBU2.js} +3 -3
- package/dist/{bind-drne__Ys.js → bind-BumHTi9O.js} +4 -4
- package/dist/{build-Gpdq5QXP.js → build-Bpviiclc.js} +6 -6
- package/dist/{client-DP6Rc0t_.js → client-BL0f_yGf.js} +2 -2
- package/dist/create-BSfvpWoD.js +19 -0
- package/dist/{create-Cwc3SRWJ.js → create-BUcVG4Ab.js} +23 -23
- package/dist/{create-BBrtgUgS.js → create-CfK3PeKA.js} +6 -6
- package/dist/{doctor-C9ldpPFC.js → doctor-BWqIYcMn.js} +6 -6
- package/dist/{drivers-DNrx4LWA.js → drivers-CPhdPkW5.js} +3 -3
- package/dist/entry.js +20 -21
- package/dist/{environment-DF1qKlny.js → environment-eBXjELoN.js} +1 -1
- package/dist/{existing-78LWSsqS.js → existing-BltvQiX5.js} +2 -2
- package/dist/held-CPve03KJ.js +16 -0
- package/dist/{held-Cy8Wl4D1.js → held-DgnTFMl3.js} +6 -6
- package/dist/{integrate-DcJhpXy8.js → integrate-BRsqoe01.js} +22 -22
- package/dist/{login-B2TsCE2H.js → login-BCEH5q0U.js} +1 -1
- package/dist/login-BPOONe7n.js +16 -0
- package/dist/{login-D0lh3_JI.js → login-BbTIrCFT.js} +5 -5
- package/dist/{lookup-D-nmmAbw.js → lookup-rr1AkCJA.js} +2 -2
- package/dist/{migrate-Cfec564E.js → migrate-C9X2Vz81.js} +22 -22
- package/dist/{notification-url-YDbq6FMA.js → notification-url-CV86qiKP.js} +2 -2
- package/dist/{open-Ba2vBl1_.js → open-CcpXotHG.js} +10 -10
- package/dist/{org-D0g_q3mv.js → org-BQQDo7wm.js} +2 -2
- package/dist/{paths-DxSLdpOI.js → paths-CRlU72cq.js} +1 -1
- package/dist/{playbook-DIeb7hne.js → playbook-DVMXN7fh.js} +10 -10
- package/dist/{promote-COD4fYdz.js → promote-Da8xctzy.js} +16 -16
- package/dist/push-BV-grvQg.js +22 -0
- package/dist/{push-CncywhkQ.js → push-D6R9icWN.js} +27 -14
- package/dist/{registry-DSrosOYs.js → registry-BYVD-_h6.js} +206 -49
- package/dist/{resources-Dqr01Dep.js → resources-DLON3-61.js} +18 -6
- package/dist/{run-C9qg_QlC.js → run-Co-BwhOg.js} +2 -2
- package/dist/scan-B88OlWOt.js +4 -0
- package/dist/{scan-DLrsrFS9.js → scan-CKuk-_6W.js} +1 -1
- package/dist/{scope-V336uz8j.js → scope-DV22_Ufm.js} +4 -4
- package/dist/{selection-Rdw-ZUoG.js → selection-C2_KbLuo.js} +10 -4
- package/dist/server-C4f6ccUr.js +22 -0
- package/dist/{server-D0tGG8C4.js → server-D0d2oP-5.js} +10 -8
- package/dist/{session-CFAmMhem.js → session-B-Uz0cQ7.js} +1 -1
- package/dist/session-BuvArt1j.js +6 -0
- package/dist/{session-D_nEWKXT.js → session-C4rbE3VS.js} +41 -13
- package/dist/skills/superwall-framework/SKILL.md +7 -3
- package/dist/skills/superwall-framework/references/cli.md +1 -0
- package/dist/skills/superwall-framework/references/layout.md +34 -1
- package/dist/{skills-DMG4bpKk.js → skills-CLGJuMnF.js} +8 -8
- package/dist/{skills-BvFOa4y6.js → skills-CZcpnEnG.js} +5 -4
- package/dist/{spinner-CneRK5rk.js → spinner-C2U6QBJ9.js} +3 -3
- package/dist/{storage-s2Dnz-yl.js → storage-6h9vyiAz.js} +1 -1
- package/dist/storekit-CK9JmM2D.js +16 -0
- package/dist/{storekit-yY_kS2iR.js → storekit-CinJra3V.js} +3 -3
- package/dist/{telemetry-DtG92m5O.js → telemetry-DKyDhURo.js} +1 -1
- package/dist/{token-DzRh7dI1.js → token-DaxQgQkv.js} +1 -1
- package/dist/tools-skills/animate-onboarding/SKILL.md +467 -0
- package/dist/tools-skills/animate-onboarding/references/engine.md +494 -0
- package/dist/tools-skills/animate-onboarding/references/framework/Question.tsx +71 -0
- package/dist/tools-skills/animate-onboarding/references/framework/README.md +40 -0
- package/dist/tools-skills/animate-onboarding/references/framework/answers.ts +19 -0
- package/dist/tools-skills/animate-onboarding/references/framework/flow.ts +80 -0
- package/dist/tools-skills/animate-onboarding/references/framework/handoffs.ts +869 -0
- package/dist/tools-skills/animate-onboarding/references/framework/layout.tsx +113 -0
- package/dist/tools-skills/animate-onboarding/references/framework/motion.css +559 -0
- package/dist/tools-skills/animate-onboarding/references/framework/useStoryRouter.ts +48 -0
- package/dist/tools-skills/animate-onboarding/references/handoffs.md +375 -0
- package/dist/tools-skills/animate-onboarding/references/imageReady.ts +92 -0
- package/dist/tools-skills/animate-onboarding/references/morphFrame.ts +356 -0
- package/dist/tools-skills/animate-onboarding/references/performance.md +41 -0
- package/dist/tools-skills/animate-onboarding/references/web-runtime/README.md +17 -0
- package/dist/tools-skills/animate-onboarding/references/web-runtime/handoffs.ts +858 -0
- package/dist/tools-skills/animate-onboarding/references/web-runtime/story-motion.css +301 -0
- package/dist/tools-skills/mobile-design/SKILL.md +447 -0
- package/dist/tools-skills/mobile-design/references/responsive.md +162 -0
- package/dist/tools-skills/onboarding-questions/SKILL.md +231 -0
- package/dist/tools-skills/onboarding-questions/references/arpu-questions.md +139 -0
- package/dist/tools-skills/onboarding-questions/references/craft.md +142 -0
- package/dist/tools-skills/onboarding-questions/references/example-reflective.md +117 -0
- package/dist/tools-skills/superwall/SKILL.md +263 -0
- package/dist/tools-skills/superwall/references/api.md +303 -0
- package/dist/tools-skills/superwall/references/asa.md +166 -0
- package/dist/tools-skills/superwall/references/asc.md +95 -0
- package/dist/tools-skills/superwall/references/dashboard-links.md +57 -0
- package/dist/tools-skills/superwall/references/data-analytics.md +896 -0
- package/dist/tools-skills/superwall/references/docs.md +51 -0
- package/dist/tools-skills/superwall/references/sdk-integration.md +104 -0
- package/dist/tools-skills/superwall/references/sdk-source.md +18 -0
- package/dist/tools-skills/superwall/workflows/dashboard/playbook.md +76 -0
- package/dist/tools-skills/superwall/workflows/dashboard/setup.md +100 -0
- package/dist/tools-skills/superwall/workflows/integrate/android.md +292 -0
- package/dist/tools-skills/superwall/workflows/integrate/expo.md +272 -0
- package/dist/tools-skills/superwall/workflows/integrate/flutter.md +285 -0
- package/dist/tools-skills/superwall/workflows/integrate/ios.md +314 -0
- package/dist/tools-skills/superwall/workflows/integrate/playbook.md +83 -0
- package/dist/tools-skills/superwall/workflows/integrate/react-native.md +246 -0
- package/dist/tools-skills/superwall/workflows/migrate/adapty.md +229 -0
- package/dist/tools-skills/superwall/workflows/migrate/playbook.md +78 -0
- package/dist/tools-skills/superwall/workflows/migrate/qonversion.md +227 -0
- package/dist/tools-skills/superwall/workflows/migrate/revenuecat.md +414 -0
- package/dist/tools-skills/superwall/workflows/placements/android.md +175 -0
- package/dist/tools-skills/superwall/workflows/placements/expo.md +161 -0
- package/dist/tools-skills/superwall/workflows/placements/flutter.md +139 -0
- package/dist/tools-skills/superwall/workflows/placements/ios.md +165 -0
- package/dist/tools-skills/superwall/workflows/placements/playbook.md +69 -0
- package/dist/tools-skills/superwall/workflows/placements/react-native.md +145 -0
- package/dist/tools-skills/superwall/workflows/placements/strategy.md +222 -0
- package/dist/tools-skills/superwall/workflows/review/android.md +120 -0
- package/dist/tools-skills/superwall/workflows/review/expo.md +100 -0
- package/dist/tools-skills/superwall/workflows/review/flutter.md +99 -0
- package/dist/tools-skills/superwall/workflows/review/ios.md +108 -0
- package/dist/tools-skills/superwall/workflows/review/playbook.md +70 -0
- package/dist/tools-skills/superwall/workflows/review/react-native.md +100 -0
- package/dist/tools-skills/superwall-editor/SKILL.md +113 -0
- package/dist/tools-skills/superwall-editor/references/cli.md +135 -0
- package/dist/tools-skills/superwall-editor/references/design.md +51 -0
- package/dist/tools-skills/superwall-editor/references/native-elements.md +171 -0
- package/dist/tools-skills/superwall-editor/references/workflow.md +65 -0
- package/dist/tools-skills/superwall-editor/scripts/sw-editor.sh +662 -0
- package/dist/tools-skills/wwdc/SKILL.md +22 -0
- package/dist/tools-skills/wwdc/references/docs.md +52 -0
- package/dist/tools-skills/wwdc/scripts/wwdc.sh +266 -0
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +200 -18
- package/dist/{upgrade-Bt4Ouw1y.js → upgrade-DPo0a4Es.js} +1 -1
- package/dist/{upgrade-Cqy5orjb.js → upgrade-ffseQDMx.js} +2 -2
- package/package.json +2 -2
- package/dist/create-Yvf2gStM.js +0 -19
- package/dist/held-Ddw1XSsr.js +0 -16
- package/dist/kinds-GFXB3sYu.js +0 -11
- package/dist/login-BoBe8Psl.js +0 -16
- package/dist/push-CtD4FZQV.js +0 -22
- package/dist/scan-Cv5uOwVY.js +0 -4
- package/dist/send-BxD9yf6F.js +0 -150
- package/dist/server-z1LH94R_.js +0 -22
- package/dist/session-1AV_Bs_d.js +0 -6
- package/dist/storekit-DafAnGkM.js +0 -16
- /package/dist/{devtools-ByZ6XYnn.js → devtools-pBl_vt03.js} +0 -0
- /package/dist/{reports-DdPq4blM.js → reports-D_qbl7_u.js} +0 -0
- /package/dist/{screenshot-file-0UETadF8.js → screenshot-file-tVBfUEIi.js} +0 -0
- /package/dist/{storage-DYvmIOHa.d.ts → storage-CerJ5KLP.d.ts} +0 -0
|
@@ -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, t as API_HOST } from "./environment-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
2
|
+
import { _ as VERSION, a as CHANNEL, g as TELEMETRY_KEY, h as TELEMETRY_HOST, t as API_HOST } from "./environment-eBXjELoN.js";
|
|
3
|
+
import { t as readSession } from "./storage-6h9vyiAz.js";
|
|
4
|
+
import { a as withQuery$1, t as ApiError } from "./client-BL0f_yGf.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-DgnTFMl3.js";
|
|
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-C2U6QBJ9.js";
|
|
7
8
|
import { n as fg, t as THEME } from "./theme-DUsCh-Vd.js";
|
|
8
|
-
import { n as runWhoami } from "./session-
|
|
9
|
-
import { A as
|
|
10
|
-
import { n as orgForNewProject } from "./org-
|
|
11
|
-
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-
|
|
12
|
-
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-B-Uz0cQ7.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-DLON3-61.js";
|
|
11
|
+
import { n as orgForNewProject } from "./org-BQQDo7wm.js";
|
|
12
|
+
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-rr1AkCJA.js";
|
|
13
|
+
import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-DV22_Ufm.js";
|
|
13
14
|
import { a as listAscConfigs, i as findAppNotificationUrl, o as removeAscConfig, t as ascProxy } from "./client-BZ1UbpXz.js";
|
|
14
15
|
import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-DH_fK9tY.js";
|
|
15
16
|
import { n as readResourceFlags, r as textOf, t as fieldName } from "./input-vi0bou04.js";
|
|
16
|
-
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-
|
|
17
|
-
import { t as platformForIntegration } from "./bind-
|
|
18
|
-
import { t as FEEDBACK_KINDS } from "./kinds-GFXB3sYu.js";
|
|
17
|
+
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-CV86qiKP.js";
|
|
18
|
+
import { t as platformForIntegration } from "./bind-BumHTi9O.js";
|
|
19
19
|
import pc from "picocolors";
|
|
20
20
|
|
|
21
21
|
//#region src/ui/help-layout.ts
|
|
@@ -101,7 +101,7 @@ const command = defineCommand({
|
|
|
101
101
|
prompts: true,
|
|
102
102
|
mcp: false,
|
|
103
103
|
async run(ctx, input) {
|
|
104
|
-
const { runLogin } = await import("./login-
|
|
104
|
+
const { runLogin } = await import("./login-BPOONe7n.js");
|
|
105
105
|
return runLogin(ctx, input);
|
|
106
106
|
}
|
|
107
107
|
});
|
|
@@ -117,7 +117,7 @@ const command$1 = defineCommand({
|
|
|
117
117
|
prompts: true,
|
|
118
118
|
mcp: false,
|
|
119
119
|
async run(ctx) {
|
|
120
|
-
const { runLogout } = await import("./session-
|
|
120
|
+
const { runLogout } = await import("./session-BuvArt1j.js");
|
|
121
121
|
return runLogout(ctx);
|
|
122
122
|
}
|
|
123
123
|
});
|
|
@@ -2039,6 +2039,7 @@ async function runBuildsGet(session, input) {
|
|
|
2039
2039
|
async function runBuildsAttach(session, input) {
|
|
2040
2040
|
const build = argOf(input, "id");
|
|
2041
2041
|
const version = await resolveVersionId(session, input);
|
|
2042
|
+
await assertConfirmed(session, input.yes, `Attach build ${build} to version ${version}, replacing its current build`);
|
|
2042
2043
|
await session.send("patch", `/v1/appStoreVersions/${version}/relationships/build`, { data: {
|
|
2043
2044
|
type: "builds",
|
|
2044
2045
|
id: build
|
|
@@ -2134,7 +2135,7 @@ const command$11 = defineAscResource({
|
|
|
2134
2135
|
required: true
|
|
2135
2136
|
}, VERSION_ARG],
|
|
2136
2137
|
flags: VERSION_FLAGS,
|
|
2137
|
-
effect: "
|
|
2138
|
+
effect: "destructive",
|
|
2138
2139
|
run: runBuildsAttach
|
|
2139
2140
|
},
|
|
2140
2141
|
{
|
|
@@ -2708,7 +2709,7 @@ async function resolveDeliveryState(session, path) {
|
|
|
2708
2709
|
async function runScreenshotsUpload(session, input) {
|
|
2709
2710
|
const { kind, id: id$1 } = resolveTarget(input, PRICED);
|
|
2710
2711
|
const spec = SCREENSHOT[kind];
|
|
2711
|
-
const { readScreenshotFile } = await import("./screenshot-file-
|
|
2712
|
+
const { readScreenshotFile } = await import("./screenshot-file-tVBfUEIi.js");
|
|
2712
2713
|
const file = readScreenshotFile(argOf(input, "file"));
|
|
2713
2714
|
const existing = await selectScreenshot(session, kind, id$1);
|
|
2714
2715
|
if (existing) await session.send("delete", `${spec.path}/${existing.id}`);
|
|
@@ -3415,7 +3416,7 @@ A purchase_key is for the app's bundle ID; an app with none gets --bundle-id sav
|
|
|
3415
3416
|
prompts: true,
|
|
3416
3417
|
mcp: false,
|
|
3417
3418
|
async run(ctx, input) {
|
|
3418
|
-
const { runAscKeysCreate } = await import("./create-
|
|
3419
|
+
const { runAscKeysCreate } = await import("./create-BSfvpWoD.js");
|
|
3419
3420
|
return runAscKeysCreate(ctx, input);
|
|
3420
3421
|
}
|
|
3421
3422
|
});
|
|
@@ -3800,7 +3801,7 @@ With --app it saves the key you hold on that app instead, as asc keys create --k
|
|
|
3800
3801
|
prompts: true,
|
|
3801
3802
|
mcp: false,
|
|
3802
3803
|
async run(ctx, { args, flags }) {
|
|
3803
|
-
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-
|
|
3804
|
+
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-CPve03KJ.js");
|
|
3804
3805
|
return upsertHeldKey$1(ctx, {
|
|
3805
3806
|
action: "update",
|
|
3806
3807
|
key: {
|
|
@@ -5036,7 +5037,7 @@ Exit codes
|
|
|
5036
5037
|
prompts: true,
|
|
5037
5038
|
mcp: false,
|
|
5038
5039
|
async run(ctx, input) {
|
|
5039
|
-
const { runSetupApple } = await import("./apple-
|
|
5040
|
+
const { runSetupApple } = await import("./apple-CSzNTGHM.js");
|
|
5040
5041
|
return runSetupApple(ctx, input);
|
|
5041
5042
|
}
|
|
5042
5043
|
});
|
|
@@ -7645,7 +7646,7 @@ const command$45 = defineCommand({
|
|
|
7645
7646
|
mcp: false,
|
|
7646
7647
|
channel: "next",
|
|
7647
7648
|
async run(ctx, { args, flags }) {
|
|
7648
|
-
const { runBuildPipeline } = await import("./build-
|
|
7649
|
+
const { runBuildPipeline } = await import("./build-Bpviiclc.js");
|
|
7649
7650
|
await runBuildPipeline({
|
|
7650
7651
|
output: ctx.output,
|
|
7651
7652
|
json: ctx.json
|
|
@@ -7707,7 +7708,7 @@ const command$46 = defineCommand({
|
|
|
7707
7708
|
mcp: false,
|
|
7708
7709
|
channel: "next",
|
|
7709
7710
|
async run(ctx, { args, flags }) {
|
|
7710
|
-
const { runCreate } = await import("./create-
|
|
7711
|
+
const { runCreate } = await import("./create-BUcVG4Ab.js");
|
|
7711
7712
|
return runCreate(ctx, {
|
|
7712
7713
|
dir: args.dir,
|
|
7713
7714
|
...flags
|
|
@@ -7751,7 +7752,7 @@ const command$47 = defineCommand({
|
|
|
7751
7752
|
mcp: false,
|
|
7752
7753
|
channel: "next",
|
|
7753
7754
|
async run(ctx, { args, flags }) {
|
|
7754
|
-
const { runStudio } = await import("./server-
|
|
7755
|
+
const { runStudio } = await import("./server-C4f6ccUr.js");
|
|
7755
7756
|
await runStudio({
|
|
7756
7757
|
dirs: args.dir,
|
|
7757
7758
|
port: flags.port,
|
|
@@ -7792,7 +7793,7 @@ const command$48 = defineCommand({
|
|
|
7792
7793
|
mcp: false,
|
|
7793
7794
|
channel: "next",
|
|
7794
7795
|
async run(ctx, input) {
|
|
7795
|
-
const { runPromote } = await import("./promote-
|
|
7796
|
+
const { runPromote } = await import("./promote-Da8xctzy.js");
|
|
7796
7797
|
return runPromote(ctx, input);
|
|
7797
7798
|
}
|
|
7798
7799
|
});
|
|
@@ -7837,7 +7838,7 @@ const command$49 = defineCommand({
|
|
|
7837
7838
|
mcp: false,
|
|
7838
7839
|
channel: "next",
|
|
7839
7840
|
async run(ctx, input) {
|
|
7840
|
-
const { runPush } = await import("./push-
|
|
7841
|
+
const { runPush } = await import("./push-BV-grvQg.js");
|
|
7841
7842
|
return runPush(ctx, input, true);
|
|
7842
7843
|
}
|
|
7843
7844
|
});
|
|
@@ -7882,7 +7883,7 @@ const command$50 = defineCommand({
|
|
|
7882
7883
|
mcp: false,
|
|
7883
7884
|
channel: "next",
|
|
7884
7885
|
async run(ctx, input) {
|
|
7885
|
-
const { runPush } = await import("./push-
|
|
7886
|
+
const { runPush } = await import("./push-BV-grvQg.js");
|
|
7886
7887
|
return runPush(ctx, input, false);
|
|
7887
7888
|
}
|
|
7888
7889
|
});
|
|
@@ -8271,7 +8272,7 @@ async function createApp(context, api, nameArg, fields) {
|
|
|
8271
8272
|
let name = nameArg;
|
|
8272
8273
|
let platform = textOf(fields.platform);
|
|
8273
8274
|
if (interactive && (!name || !platform)) {
|
|
8274
|
-
const { scanProject } = await import("./scan-
|
|
8275
|
+
const { scanProject } = await import("./scan-B88OlWOt.js");
|
|
8275
8276
|
const detected = (await scanProject(context.installDir).catch(() => null))?.apps[0];
|
|
8276
8277
|
if (detected && !name && !platform) {
|
|
8277
8278
|
ui.info(`Detected \`${detected.framework.name}\`` + (detected.details ? ` · \`${detected.details}\`` : ""));
|
|
@@ -8510,7 +8511,7 @@ async function runResource(ctx, resource, action, value$1, value2, flags) {
|
|
|
8510
8511
|
if (action === "create") return create(ctx, ctx.api, resource, value$1, value2, flags);
|
|
8511
8512
|
if (action === "use" && resource === "apps") return useApp(ctx, ctx.api, value$1);
|
|
8512
8513
|
if (action === "storekit" && resource === "products") {
|
|
8513
|
-
const { writeStoreKit } = await import("./storekit-
|
|
8514
|
+
const { writeStoreKit } = await import("./storekit-CK9JmM2D.js");
|
|
8514
8515
|
return writeStoreKit(ctx, ctx.api, flags.fields.out);
|
|
8515
8516
|
}
|
|
8516
8517
|
throw new Error(`Unknown action "${action}" for ${resource}.`);
|
|
@@ -9225,7 +9226,8 @@ const command$53 = defineResource({
|
|
|
9225
9226
|
name: "create",
|
|
9226
9227
|
summary: "Trigger it on an event",
|
|
9227
9228
|
method: "POST",
|
|
9228
|
-
path: "/v2/campaigns/{id}/placements"
|
|
9229
|
+
path: "/v2/campaigns/{id}/placements",
|
|
9230
|
+
destructive: true
|
|
9229
9231
|
},
|
|
9230
9232
|
{
|
|
9231
9233
|
name: "update",
|
|
@@ -9256,7 +9258,8 @@ const command$53 = defineResource({
|
|
|
9256
9258
|
name: "update",
|
|
9257
9259
|
summary: "Change its rules or name",
|
|
9258
9260
|
method: "PATCH",
|
|
9259
|
-
path: "/v2/campaigns/{id}/audiences/{audience_id}"
|
|
9261
|
+
path: "/v2/campaigns/{id}/audiences/{audience_id}",
|
|
9262
|
+
destructive: true
|
|
9260
9263
|
},
|
|
9261
9264
|
{
|
|
9262
9265
|
name: "delete",
|
|
@@ -9322,7 +9325,8 @@ const command$53 = defineResource({
|
|
|
9322
9325
|
name: "update",
|
|
9323
9326
|
summary: "Change its paywall",
|
|
9324
9327
|
method: "PATCH",
|
|
9325
|
-
path: "/v2/campaigns/{id}/audiences/{audience_id}/variants/{variant_id}"
|
|
9328
|
+
path: "/v2/campaigns/{id}/audiences/{audience_id}/variants/{variant_id}",
|
|
9329
|
+
destructive: true
|
|
9326
9330
|
},
|
|
9327
9331
|
{
|
|
9328
9332
|
name: "delete",
|
|
@@ -9400,7 +9404,8 @@ const command$54 = defineResource({
|
|
|
9400
9404
|
},
|
|
9401
9405
|
{
|
|
9402
9406
|
name: "create",
|
|
9403
|
-
summary: "Grant
|
|
9407
|
+
summary: "Grant an existing entitlement manually to a device, optionally linked to an app user ID",
|
|
9408
|
+
details: "Grants promotional access, optionally until an expiry time, without charging the user or creating a paid subscription. Returns an error when an active grant already exists.",
|
|
9404
9409
|
method: "POST",
|
|
9405
9410
|
path: "/v2/entitlements/{id}/grants"
|
|
9406
9411
|
},
|
|
@@ -9484,9 +9489,11 @@ const command$56 = defineResource({
|
|
|
9484
9489
|
},
|
|
9485
9490
|
{
|
|
9486
9491
|
name: "publish",
|
|
9487
|
-
summary: "Publish
|
|
9492
|
+
summary: "Publish the latest saved draft of a paywall",
|
|
9493
|
+
details: "Replaces its currently deployed version and refreshes app configuration. This can change the paywall shown to users by campaigns that use it.",
|
|
9488
9494
|
method: "POST",
|
|
9489
|
-
path: "/v2/paywalls/{id}/publish"
|
|
9495
|
+
path: "/v2/paywalls/{id}/publish",
|
|
9496
|
+
destructive: true
|
|
9490
9497
|
},
|
|
9491
9498
|
{
|
|
9492
9499
|
name: "archive",
|
|
@@ -9550,7 +9557,8 @@ const command$57 = defineResource({
|
|
|
9550
9557
|
name: "update",
|
|
9551
9558
|
summary: "Change a product",
|
|
9552
9559
|
method: "PATCH",
|
|
9553
|
-
path: "/v2/products/{id}"
|
|
9560
|
+
path: "/v2/products/{id}",
|
|
9561
|
+
destructive: true
|
|
9554
9562
|
},
|
|
9555
9563
|
{
|
|
9556
9564
|
name: "delete",
|
|
@@ -9660,12 +9668,14 @@ const command$59 = defineResource({
|
|
|
9660
9668
|
{
|
|
9661
9669
|
name: "create",
|
|
9662
9670
|
summary: "Add an endpoint",
|
|
9671
|
+
details: "Delivers subscribed events to the HTTPS URL you specify.",
|
|
9663
9672
|
method: "POST",
|
|
9664
9673
|
path: "/v2/projects/{project_id}/webhook_endpoints"
|
|
9665
9674
|
},
|
|
9666
9675
|
{
|
|
9667
9676
|
name: "update",
|
|
9668
9677
|
summary: "Change an endpoint",
|
|
9678
|
+
details: "Changes where or which subscribed events are delivered; the destination can be any HTTPS URL you specify.",
|
|
9669
9679
|
method: "PATCH",
|
|
9670
9680
|
path: "/v2/projects/{project_id}/webhook_endpoints/{endpoint_id}"
|
|
9671
9681
|
},
|
|
@@ -9712,16 +9722,165 @@ const command$60 = defineCommand({
|
|
|
9712
9722
|
prompts: true,
|
|
9713
9723
|
mcp: false,
|
|
9714
9724
|
async run(ctx) {
|
|
9715
|
-
const { runDoctor } = await import("./doctor-
|
|
9725
|
+
const { runDoctor } = await import("./doctor-BWqIYcMn.js");
|
|
9716
9726
|
return runDoctor(ctx);
|
|
9717
9727
|
}
|
|
9718
9728
|
});
|
|
9719
9729
|
|
|
9730
|
+
//#endregion
|
|
9731
|
+
//#region src/core/support/feedback/kinds.ts
|
|
9732
|
+
const FEEDBACK_KINDS = [
|
|
9733
|
+
"bug",
|
|
9734
|
+
"docs",
|
|
9735
|
+
"idea",
|
|
9736
|
+
"praise",
|
|
9737
|
+
"other"
|
|
9738
|
+
];
|
|
9739
|
+
|
|
9740
|
+
//#endregion
|
|
9741
|
+
//#region src/core/support/feedback/send.ts
|
|
9742
|
+
const proc = globalThis.process;
|
|
9743
|
+
const MAX_FILES = 5;
|
|
9744
|
+
const MAX_FILE_CHARS = 2e4;
|
|
9745
|
+
function parseContext(pairs) {
|
|
9746
|
+
const out = {};
|
|
9747
|
+
for (const pair of pairs) {
|
|
9748
|
+
const at = pair.indexOf("=");
|
|
9749
|
+
if (at < 1) throw new Error(`--context expects key=value, got "${pair}"`);
|
|
9750
|
+
out[pair.slice(0, at).trim()] = pair.slice(at + 1).trim();
|
|
9751
|
+
}
|
|
9752
|
+
return out;
|
|
9753
|
+
}
|
|
9754
|
+
function linkedApp(cwd = proc?.cwd() ?? "") {
|
|
9755
|
+
const app$1 = readOnboardedApp(cwd);
|
|
9756
|
+
return {
|
|
9757
|
+
projectId: app$1?.projectId,
|
|
9758
|
+
applicationId: app$1?.applicationId
|
|
9759
|
+
};
|
|
9760
|
+
}
|
|
9761
|
+
const AGENT_ENV = [
|
|
9762
|
+
["CLAUDECODE", "claude-code"],
|
|
9763
|
+
["CODEX_SANDBOX", "codex"],
|
|
9764
|
+
["CURSOR_AGENT", "cursor"],
|
|
9765
|
+
["GEMINI_CLI", "gemini-cli"]
|
|
9766
|
+
];
|
|
9767
|
+
function detectAgent(env = proc?.env ?? {}) {
|
|
9768
|
+
return AGENT_ENV.find(([key]) => env[key])?.[1];
|
|
9769
|
+
}
|
|
9770
|
+
function readAttachments(paths) {
|
|
9771
|
+
if (paths.length > MAX_FILES) throw new Error(`Attach at most ${MAX_FILES} files.`);
|
|
9772
|
+
return paths.map((path) => {
|
|
9773
|
+
const raw = readInput(path);
|
|
9774
|
+
const truncated = raw.length > MAX_FILE_CHARS;
|
|
9775
|
+
return {
|
|
9776
|
+
name: path === "-" ? "stdin" : path.split(/[\\/]/).pop() ?? path,
|
|
9777
|
+
content: truncated ? raw.slice(-MAX_FILE_CHARS) : raw,
|
|
9778
|
+
truncated
|
|
9779
|
+
};
|
|
9780
|
+
});
|
|
9781
|
+
}
|
|
9782
|
+
function buildFeedbackEvent(feedback, via, distinctId, session, osRelease) {
|
|
9783
|
+
return {
|
|
9784
|
+
api_key: TELEMETRY_KEY(),
|
|
9785
|
+
event: "feedback submitted",
|
|
9786
|
+
distinct_id: distinctId,
|
|
9787
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9788
|
+
properties: {
|
|
9789
|
+
$process_person_profile: false,
|
|
9790
|
+
title: feedback.title ?? null,
|
|
9791
|
+
message: feedback.message,
|
|
9792
|
+
kind: feedback.kind,
|
|
9793
|
+
command: feedback.command ?? null,
|
|
9794
|
+
project_id: feedback.projectId ?? null,
|
|
9795
|
+
application_id: feedback.applicationId ?? null,
|
|
9796
|
+
organization_id: feedback.organizationId ?? null,
|
|
9797
|
+
context: feedback.context,
|
|
9798
|
+
attachments: feedback.attachments,
|
|
9799
|
+
via,
|
|
9800
|
+
agent: feedback.agent ?? null,
|
|
9801
|
+
cli_version: VERSION,
|
|
9802
|
+
platform: proc?.platform ?? "worker",
|
|
9803
|
+
os_release: osRelease ?? null,
|
|
9804
|
+
arch: proc?.arch ?? null,
|
|
9805
|
+
node_version: proc?.version ?? null,
|
|
9806
|
+
ci: proc?.env.CI === "true",
|
|
9807
|
+
email: session?.userEmail ?? null,
|
|
9808
|
+
org_name: session?.orgName ?? null,
|
|
9809
|
+
auth_method: session?.authMethod ?? null
|
|
9810
|
+
}
|
|
9811
|
+
};
|
|
9812
|
+
}
|
|
9813
|
+
async function submitFeedback(feedback, via) {
|
|
9814
|
+
const osRelease = proc ? await import("node:os").then((os) => os.release()).catch(() => void 0) : void 0;
|
|
9815
|
+
const payload = buildFeedbackEvent(feedback, via, readAnonymousId(), readSession(), osRelease);
|
|
9816
|
+
try {
|
|
9817
|
+
return (await fetch(`${TELEMETRY_HOST()}/capture/`, {
|
|
9818
|
+
method: "POST",
|
|
9819
|
+
headers: { "content-type": "application/json" },
|
|
9820
|
+
body: JSON.stringify(payload),
|
|
9821
|
+
signal: AbortSignal.timeout(8e3)
|
|
9822
|
+
})).ok;
|
|
9823
|
+
} catch {
|
|
9824
|
+
return false;
|
|
9825
|
+
}
|
|
9826
|
+
}
|
|
9827
|
+
const ORG_LOOKUP_MS = 3e3;
|
|
9828
|
+
async function organizationOfApp(api, applicationId) {
|
|
9829
|
+
if (!api || !applicationId) return void 0;
|
|
9830
|
+
const lookup = findApplication(api, applicationId).then((found) => found ? orgIdOf(found.project) : void 0).catch(() => void 0);
|
|
9831
|
+
const timeout = new Promise((resolve) => {
|
|
9832
|
+
setTimeout(() => resolve(void 0), ORG_LOOKUP_MS).unref?.();
|
|
9833
|
+
});
|
|
9834
|
+
return Promise.race([lookup, timeout]);
|
|
9835
|
+
}
|
|
9836
|
+
async function runFeedback(ctx, { args, flags }) {
|
|
9837
|
+
const { ui, json, interactive } = ctx;
|
|
9838
|
+
let message = args.message;
|
|
9839
|
+
if (!message && interactive) {
|
|
9840
|
+
ui.intro("Superwall feedback");
|
|
9841
|
+
const answer = await ui.text({
|
|
9842
|
+
message: "What's your feedback on Superwall?",
|
|
9843
|
+
placeholder: "What worked, what didn't, what's missing...",
|
|
9844
|
+
validate: (v) => v?.trim() ? void 0 : "Required"
|
|
9845
|
+
});
|
|
9846
|
+
if (answer === null) return void ui.warn("Cancelled.");
|
|
9847
|
+
message = answer.trim();
|
|
9848
|
+
}
|
|
9849
|
+
if (!message) throw new Error("Usage: superwall feedback \"<message>\" [--title ...] [--kind bug] [--file log.txt]");
|
|
9850
|
+
const kind = FEEDBACK_KINDS.find((candidate) => candidate === flags.kind);
|
|
9851
|
+
if (!kind) throw new Error(`--kind must be one of: ${FEEDBACK_KINDS.join(", ")}`);
|
|
9852
|
+
const agent = flags.agent ?? detectAgent();
|
|
9853
|
+
const attachments = readAttachments(flags.file.filter(Boolean));
|
|
9854
|
+
const context = parseContext(flags.context);
|
|
9855
|
+
const linked = linkedApp();
|
|
9856
|
+
const applicationId = flags.app ?? linked.applicationId;
|
|
9857
|
+
const via = agent || !interactive ? "agent" : "human";
|
|
9858
|
+
const spin = interactive ? ui.spinner() : null;
|
|
9859
|
+
spin?.start("Sending your feedback");
|
|
9860
|
+
const ok$1 = await submitFeedback({
|
|
9861
|
+
title: flags.title,
|
|
9862
|
+
message,
|
|
9863
|
+
kind,
|
|
9864
|
+
command: flags.command,
|
|
9865
|
+
agent,
|
|
9866
|
+
projectId: flags.project ?? linked.projectId,
|
|
9867
|
+
applicationId,
|
|
9868
|
+
organizationId: await organizationOfApp(ctx.api, applicationId),
|
|
9869
|
+
context,
|
|
9870
|
+
attachments
|
|
9871
|
+
}, via);
|
|
9872
|
+
spin?.stop(ok$1 ? "Sent" : "Failed to send");
|
|
9873
|
+
if (json) return ctx.output.data({ submitted: ok$1 });
|
|
9874
|
+
if (!ok$1) throw new Error("Couldn't send your feedback - check your connection and try again.");
|
|
9875
|
+
ui.success("Thank you! We've received your feedback and will read through it. Really appreciate you helping us make Superwall better.");
|
|
9876
|
+
}
|
|
9877
|
+
|
|
9720
9878
|
//#endregion
|
|
9721
9879
|
//#region src/commands/support/feedback.ts
|
|
9722
9880
|
const command$61 = defineCommand({
|
|
9723
9881
|
name: "feedback",
|
|
9724
9882
|
summary: "Report a bug or send feedback to the Superwall team",
|
|
9883
|
+
details: "Goes straight to the Superwall team. Pass the app it happened in so the team can find the account. Report anything you confirm doesn't work, as a reproducible report with every ID and version in context. Without a shell, paste the relevant part of a log into the message: a tool cannot attach files.",
|
|
9725
9884
|
args: { message: { describe: "What happened: what you ran, what you expected, what you got (asked when left out)" } },
|
|
9726
9885
|
flags: {
|
|
9727
9886
|
title: {
|
|
@@ -9758,6 +9917,7 @@ const command$61 = defineCommand({
|
|
|
9758
9917
|
file: {
|
|
9759
9918
|
type: "list",
|
|
9760
9919
|
value: "path",
|
|
9920
|
+
mcp: false,
|
|
9761
9921
|
describe: "Attach a log or snippet, repeatable, at most 5; - reads stdin; long files keep the last 20k characters"
|
|
9762
9922
|
},
|
|
9763
9923
|
agent: {
|
|
@@ -9770,11 +9930,8 @@ const command$61 = defineCommand({
|
|
|
9770
9930
|
auth: "optional",
|
|
9771
9931
|
json: true,
|
|
9772
9932
|
prompts: true,
|
|
9773
|
-
mcp:
|
|
9774
|
-
|
|
9775
|
-
const { runFeedback } = await import("./send-BxD9yf6F.js");
|
|
9776
|
-
return runFeedback(ctx, input);
|
|
9777
|
-
}
|
|
9933
|
+
mcp: "write",
|
|
9934
|
+
run: (ctx, input) => runFeedback(ctx, input)
|
|
9778
9935
|
});
|
|
9779
9936
|
|
|
9780
9937
|
//#endregion
|
|
@@ -9808,7 +9965,7 @@ const command$62 = defineCommand({
|
|
|
9808
9965
|
prompts: true,
|
|
9809
9966
|
mcp: false,
|
|
9810
9967
|
async run(ctx, input) {
|
|
9811
|
-
const { runSkills } = await import("./skills-
|
|
9968
|
+
const { runSkills } = await import("./skills-CLGJuMnF.js");
|
|
9812
9969
|
return runSkills(ctx, input);
|
|
9813
9970
|
}
|
|
9814
9971
|
});
|
|
@@ -9824,7 +9981,7 @@ const command$63 = defineCommand({
|
|
|
9824
9981
|
prompts: true,
|
|
9825
9982
|
mcp: false,
|
|
9826
9983
|
async run(ctx) {
|
|
9827
|
-
const { runUpgrade } = await import("./upgrade-
|
|
9984
|
+
const { runUpgrade } = await import("./upgrade-ffseQDMx.js");
|
|
9828
9985
|
return runUpgrade(ctx);
|
|
9829
9986
|
}
|
|
9830
9987
|
});
|
|
@@ -9863,8 +10020,8 @@ const command$64 = defineCommand({
|
|
|
9863
10020
|
prompts: true,
|
|
9864
10021
|
mcp: false,
|
|
9865
10022
|
async run(ctx, { flags }) {
|
|
9866
|
-
const { runIntegrate } = await import("./integrate-
|
|
9867
|
-
const { printPlaybook } = await import("./playbook-
|
|
10023
|
+
const { runIntegrate } = await import("./integrate-BRsqoe01.js");
|
|
10024
|
+
const { printPlaybook } = await import("./playbook-DVMXN7fh.js");
|
|
9868
10025
|
if (flags.skill) return printPlaybook(ctx.installDir, "integrate");
|
|
9869
10026
|
await runIntegrate({
|
|
9870
10027
|
...ctx,
|
|
@@ -9924,8 +10081,8 @@ const command$65 = defineCommand({
|
|
|
9924
10081
|
prompts: true,
|
|
9925
10082
|
mcp: false,
|
|
9926
10083
|
async run(ctx, { args, flags }) {
|
|
9927
|
-
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-
|
|
9928
|
-
const { printPlaybook } = await import("./playbook-
|
|
10084
|
+
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-C9X2Vz81.js");
|
|
10085
|
+
const { printPlaybook } = await import("./playbook-DVMXN7fh.js");
|
|
9929
10086
|
if (flags.screen !== void 0) return runScreenMigration(ctx, {
|
|
9930
10087
|
path: flags.screen,
|
|
9931
10088
|
screenshot: flags.screenshot
|
|
@@ -9959,8 +10116,8 @@ const command$66 = defineCommand({
|
|
|
9959
10116
|
prompts: true,
|
|
9960
10117
|
mcp: false,
|
|
9961
10118
|
async run(ctx, { flags }) {
|
|
9962
|
-
const { runReview } = await import("./integrate-
|
|
9963
|
-
const { printPlaybook } = await import("./playbook-
|
|
10119
|
+
const { runReview } = await import("./integrate-BRsqoe01.js");
|
|
10120
|
+
const { printPlaybook } = await import("./playbook-DVMXN7fh.js");
|
|
9964
10121
|
if (flags.skill) return printPlaybook(ctx.installDir, flags.fix ? "review-fix" : "review");
|
|
9965
10122
|
await runReview(ctx, flags.fix);
|
|
9966
10123
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ApiUnreachableError, t as ApiError } from "./client-
|
|
1
|
+
import { n as ApiUnreachableError, t as ApiError } from "./client-BL0f_yGf.js";
|
|
2
2
|
import { o as readOpenedOrgs, p as writeOpenedOrgs } from "./config-BO1Y87kV.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/api/orgs.ts
|
|
@@ -264,6 +264,11 @@ async function livePaywall(api, paywallId) {
|
|
|
264
264
|
throw error;
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
+
async function pushedProducts(api, paywallId, snapshotId) {
|
|
268
|
+
const body = await api.get(`/v2/paywalls/${encodeURIComponent(paywallId)}/versions`);
|
|
269
|
+
const pushed = (Array.isArray(body.data) ? body.data.filter(isRecord) : []).filter((row) => row.snapshot_id === snapshotId && typeof row.version === "number").sort((a, b) => Number(b.version) - Number(a.version))[0];
|
|
270
|
+
return pushed === void 0 ? void 0 : parseProductRefs(pushed.products);
|
|
271
|
+
}
|
|
267
272
|
async function livePaywallVersion(api, paywallId) {
|
|
268
273
|
return livePaywall(api, paywallId).then((live) => live.version);
|
|
269
274
|
}
|
|
@@ -281,14 +286,21 @@ async function createHeadlessPaywall(api, opts) {
|
|
|
281
286
|
metadata: {}
|
|
282
287
|
};
|
|
283
288
|
}
|
|
284
|
-
function
|
|
285
|
-
if (/^(test|live):price_[^:]+/.test(identifier)) return "stripe";
|
|
289
|
+
function platformStore(platform) {
|
|
286
290
|
return platform === "android" ? "play-store" : "app-store";
|
|
287
291
|
}
|
|
288
|
-
function
|
|
292
|
+
function resolveStore(identifier, platform, known) {
|
|
293
|
+
if (/^(test|live):price_[^:]+/.test(identifier)) return "stripe";
|
|
294
|
+
const fallback = platformStore(platform);
|
|
295
|
+
if (known.includes(fallback)) return fallback;
|
|
296
|
+
if (known.includes("custom")) return "custom";
|
|
297
|
+
if (known.includes("stripe")) return "stripe";
|
|
298
|
+
return fallback;
|
|
299
|
+
}
|
|
300
|
+
function versionProducts(products, platform, stores = {}) {
|
|
289
301
|
return Object.entries(products ?? {}).map(([reference, identifier]) => {
|
|
290
302
|
return {
|
|
291
|
-
store: resolveStore(identifier, platform),
|
|
303
|
+
store: resolveStore(identifier, platform, Object.hasOwn(stores, identifier) ? stores[identifier] ?? [] : []),
|
|
292
304
|
identifier,
|
|
293
305
|
reference_name: reference
|
|
294
306
|
};
|
|
@@ -352,4 +364,4 @@ function promotePaywallVersion(api, paywallId, opts = {}) {
|
|
|
352
364
|
}
|
|
353
365
|
|
|
354
366
|
//#endregion
|
|
355
|
-
export {
|
|
367
|
+
export { parseJson as A, pushedProducts as C, field as D, versionProducts as E, orgProjects as F, organizationOf as I, rememberOrg as L, listOrgGroups as M, listOrganizations as N, isRecord as O, orgIdOf as P, pushPaywallVersion as S, titleCase as T, mintSourceAccess as _, createHeadlessPaywall as a, promotePaywallVersion as b, findPaywall as c, listAppPaywalls as d, listApplications as f, livePaywallVersion as g, livePaywall as h, createEntitlement as i, textField as j, listField as k, isAppScoped as l, listResource as m, createApplication as n, createProduct as o, listProjects as p, createCampaign as r, createProject as s, RESOURCES as t, linkSourceCommit as u, platformLabel as v, rowName as w, pushPaywallAssets as x, platformStore as y };
|
|
@@ -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-eBXjELoN.js";
|
|
2
|
+
import { i as packagedDir } from "./paths-CRlU72cq.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-eBXjELoN.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 {
|
|
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-C2U6QBJ9.js";
|
|
3
|
+
import { I as organizationOf, M as listOrgGroups, P as orgIdOf, c as findPaywall, p as listProjects, v as platformLabel } from "./resources-DLON3-61.js";
|
|
4
|
+
import { t as chooseOrgOfApps } from "./org-BQQDo7wm.js";
|
|
5
|
+
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-rr1AkCJA.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 {
|
|
1
|
+
import { r as ASSET_HOST } from "./environment-eBXjELoN.js";
|
|
2
|
+
import { t as ApiError } from "./client-BL0f_yGf.js";
|
|
3
|
+
import { x as pushPaywallAssets } from "./resources-DLON3-61.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";
|
|
@@ -531,9 +531,15 @@ function requireClean(surfaces) {
|
|
|
531
531
|
"Publishing is immutable — fix these first, then push again."
|
|
532
532
|
].join("\n"));
|
|
533
533
|
}
|
|
534
|
+
function storesDiffer(products, live) {
|
|
535
|
+
return products.some((product) => {
|
|
536
|
+
const pushed = live?.find((ref) => ref.reference === product.reference_name && ref.identifier === product.identifier);
|
|
537
|
+
return pushed?.store !== void 0 && pushed.store !== product.store;
|
|
538
|
+
});
|
|
539
|
+
}
|
|
534
540
|
function needsWork(built, pushed, live) {
|
|
535
541
|
return built !== pushed && built !== live;
|
|
536
542
|
}
|
|
537
543
|
|
|
538
544
|
//#endregion
|
|
539
|
-
export {
|
|
545
|
+
export { writeSnapshot as A, parseSources as C, writeBinding as D, writeApp as E, requireAssets as F, syncAssets as I, frameworkVersion as M, resolveFramework as N, writeBindings as O, assetBaseUrl as P, isScreenOrigin as S, removeBinding as T, weight as _, resolveProjectDir as a, describeBindings as b, storesDiffer as c, kb as d, pendingPromoteWarning as f, transition as g, took as h, requireProject as i, writeSources as j, writeOrigin as k, BIND_VERB as l, resolveNote as m, parseIds as n, resolveProjectDirs as o, pushedLine as p, requireClean as r, selectSurfaces as s, needsWork as t, LAYOUT_HINT as u, collectProjectDeclarations as v, readLock as w, formatSharedLock as x, writeProjectTypes as y };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./token-DaxQgQkv.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-eBXjELoN.js";
|
|
4
|
+
import "./storage-6h9vyiAz.js";
|
|
5
|
+
import "./client-BL0f_yGf.js";
|
|
6
|
+
import "./config-BO1Y87kV.js";
|
|
7
|
+
import "./telemetry-DKyDhURo.js";
|
|
8
|
+
import "./spawn-DmmmHIP-.js";
|
|
9
|
+
import "./spinner-C2U6QBJ9.js";
|
|
10
|
+
import "./ui-D_qf3Gvw.js";
|
|
11
|
+
import "./scan-CKuk-_6W.js";
|
|
12
|
+
import "./paths-CRlU72cq.js";
|
|
13
|
+
import "./resources-DLON3-61.js";
|
|
14
|
+
import "./lookup-rr1AkCJA.js";
|
|
15
|
+
import "./login-BbTIrCFT.js";
|
|
16
|
+
import "./skills-CZcpnEnG.js";
|
|
17
|
+
import "./selection-C2_KbLuo.js";
|
|
18
|
+
import "./session-C4rbE3VS.js";
|
|
19
|
+
import "./login-BCEH5q0U.js";
|
|
20
|
+
import { t as runStudio } from "./server-D0d2oP-5.js";
|
|
21
|
+
|
|
22
|
+
export { runStudio };
|