@superwall/cli 2.5.0 → 2.5.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 +7 -0
- package/dist/{apple-Dyr7OFBx.js → apple-BSKxY7Gx.js} +14 -14
- package/dist/{approve-Czs1-JO9.js → approve-DbwsYO4s.js} +15 -11
- package/dist/{assets-BrB9jQPQ.js → assets-CqpFg5mM.js} +3 -3
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{billing-D5qqIlVb.js → billing-BopwIhR3.js} +3 -3
- package/dist/{bind-B3eEcRyp.js → bind-DOF3o3FR.js} +4 -4
- package/dist/{build-DD9pSwHX.js → build-BF22vVdV.js} +11 -9
- package/dist/{client-AI9H4GGB.js → client-DHlsTaP1.js} +3 -3
- package/dist/{create-ChfgWpiM.js → create-CboPfAlN.js} +31 -31
- package/dist/{create-B4m-IKlr.js → create-CiZzZrru.js} +6 -6
- package/dist/create-DAkNdEzt.js +20 -0
- package/dist/design-lint-CvgcSzVg.js +158 -0
- package/dist/{doctor-XtXW6tKE.js → doctor-BqZGaQE5.js} +6 -6
- package/dist/{drivers-CMEL13gp.js → drivers-DkboeR1c.js} +3 -3
- package/dist/entry.js +20 -20
- package/dist/{environment-BWT2S4qC.js → environment-FR3bcq0D.js} +3 -3
- package/dist/{existing-b0GxFcnc.js → existing-C6TTT6c4.js} +2 -2
- package/dist/{git-D7AVdugb.js → git-DqDPnldI.js} +20 -11
- package/dist/{held-D3PUNky2.js → held-C2IjAyg6.js} +6 -6
- package/dist/held-KVcYIplR.js +17 -0
- package/dist/{install-CVUXsx8c.js → install-DoSYCwLL.js} +21 -15
- package/dist/{integrate-qvKd9pVW.js → integrate-BSqd2wgI.js} +23 -23
- package/dist/login-BiwaQkXS.js +17 -0
- package/dist/{login-PMoXUGqq.js → login-C6FcBQZg.js} +6 -6
- package/dist/{login-COmGHrU5.js → login-dRPPnGr7.js} +1 -1
- package/dist/{lookup-gjcKIZvh.js → lookup-D23dAOz6.js} +3 -3
- package/dist/{migrate-SkkLLdmr.js → migrate-CDdUCTH3.js} +29 -29
- package/dist/{migration-DS44-3Zr.js → migration-r9plM7F6.js} +29 -11
- package/dist/{notification-url-BjQPLf4-.js → notification-url-rdnENCxt.js} +2 -2
- package/dist/{open-DQpm2yVs.js → open-DVdE3HnK.js} +2 -2
- package/dist/{org-C04eAO-j.js → org-DZ41muzA.js} +3 -3
- package/dist/{organization-BOECL3vZ.js → organization-DIODPOwO.js} +4 -4
- package/dist/{orgs-D6Kk96mG.js → orgs-BxlwcvTu.js} +1 -1
- package/dist/{paths-REb-GrbX.js → paths-BaeoxDze.js} +1 -1
- package/dist/{playbook-Du4Oydbf.js → playbook-B-Pdonhg.js} +10 -10
- package/dist/{promote-Dm2_b1WK.js → promote-Ca4URuHY.js} +23 -22
- package/dist/{pull-F6pvO4To.js → pull-CQcTZxW8.js} +8 -8
- package/dist/pull-DRMIxqR8.js +36 -0
- package/dist/{pull-zYAbqo9n.js → pull-_qs90vGA.js} +33 -33
- package/dist/{push-BIFLhAiO.js → push-BlZoIwIj.js} +122 -22
- package/dist/push-Cb4g_l1K.js +30 -0
- package/dist/{push-D_l9KJZN.js → push-DQE48h_M.js} +9 -9
- package/dist/push-DZKsd6Dp.js +22 -0
- package/dist/{registry-DIJB0mJa.js → registry-FNG-uiIt.js} +74 -53
- package/dist/{resolve--GsHj0Q1.js → resolve-DGePiHgL.js} +40 -15
- package/dist/{resources-BaP3p_LY.js → resources-COOEvqqW.js} +2 -2
- package/dist/{run-CgLmD2vR.js → run-Czbb-sHR.js} +43 -20
- package/dist/{run-C5OPwhvS.js → run-DpYDOAw-.js} +2 -2
- package/dist/scan-2WqHGkjU.js +4 -0
- package/dist/{scan-Bj5y0zTZ.js → scan-BZS2FZeU.js} +1 -1
- package/dist/{scope-Bp_zwJOo.js → scope-BJQ-KcQg.js} +5 -5
- package/dist/{scope-CCb_7UvN.js → scope-t_SqFN6W.js} +18 -4
- package/dist/{sdk-TvT0p_nO.js → sdk-CyttTnGf.js} +2 -2
- package/dist/{selection-BltBpyp5.js → selection-CWfI4a0O.js} +1 -1
- package/dist/{series-TAixFBWW.js → series--Wp7TngJ.js} +2 -2
- package/dist/{server-CdVIboQn.js → server-BmmOj7bh.js} +9 -9
- package/dist/server-BqLPwcy9.js +29 -0
- package/dist/session-BHBIGscL.js +6 -0
- package/dist/{session-Ywim-P8M.js → session-BpYpOgaY.js} +1 -1
- package/dist/{session-D3fgXQBt.js → session-DYdxTNZf.js} +7 -7
- package/dist/{setup-zzjtTy8k.js → setup-DW50luOZ.js} +9 -9
- package/dist/skills/superwall-workspaces/SKILL.md +3 -2
- package/dist/skills/superwall-workspaces/references/cli.md +1 -1
- package/dist/{skills-8um2fBPS.js → skills-Bbtq8V_D.js} +8 -8
- package/dist/{skills-2qYaUXGE.js → skills-Cm1j2d1W.js} +4 -4
- package/dist/{source-push-kAep4gPe.js → source-push-B3c-VLfe.js} +43 -26
- package/dist/{spinner-BANVLncC.js → spinner-025_eqCX.js} +3 -3
- package/dist/{starter-CiLrp1cN.js → starter-hcwocv_Z.js} +3 -3
- package/dist/{status-CoYMK7QL.js → status-K1IGp6pe.js} +17 -14
- package/dist/{storage-DzP22xKn.js → storage-CUMgpcVH.js} +1 -1
- package/dist/{storekit-n1x0bWkQ.js → storekit-Cb0TkToV.js} +3 -3
- package/dist/storekit-Dewj_5qg.js +17 -0
- package/dist/{telemetry-CXN6f-ZX.js → telemetry-ekUQuhLJ.js} +1 -1
- package/dist/{token-FmeHywYt.js → token-B2PduqrR.js} +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +29 -9
- package/dist/{try-BWbzgelb.js → try-BUnhITXS.js} +16 -16
- package/dist/{upgrade-Bk5boOgW.js → upgrade-CI7K1UZ-.js} +2 -2
- package/dist/{upgrade-CoWCEnoi.js → upgrade-DfZfDljd.js} +2 -2
- package/package.json +2 -2
- package/dist/create-CJljlkJK.js +0 -20
- package/dist/held-CX7Zf8u-.js +0 -17
- package/dist/login-ClnJi1Ea.js +0 -17
- package/dist/pull-DsdOoG-D.js +0 -36
- package/dist/push-CJVfvFZq.js +0 -29
- package/dist/push-SVzv7fzE.js +0 -22
- package/dist/scan-v_WTE722.js +0 -4
- package/dist/server-CvJVusw3.js +0 -29
- package/dist/session-B8JNXkwN.js +0 -6
- package/dist/storekit-D5eopLM0.js +0 -17
- /package/dist/{download-2Zu2I_Og.js → download-F8OtTJze.js} +0 -0
- /package/dist/{project-CP6hiHra.js → project-DHU5wc3R.js} +0 -0
- /package/dist/{reports-CuhB1_ub.js → reports-BZfxvenS.js} +0 -0
- /package/dist/{storage-BjQCiTuz.d.ts → storage-Bdz5AmqS.d.ts} +0 -0
- /package/dist/{types-JdxmnCko.js → types-CB6O_wjy.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-B2PduqrR.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import "./environment-FR3bcq0D.js";
|
|
4
|
+
import "./storage-CUMgpcVH.js";
|
|
5
|
+
import "./client-DHlsTaP1.js";
|
|
6
6
|
import "./config-CGcG7GOt.js";
|
|
7
|
-
import { i as updateTelemetryTags, r as track } from "./telemetry-
|
|
7
|
+
import { i as updateTelemetryTags, r as track } from "./telemetry-ekUQuhLJ.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-025_eqCX.js";
|
|
10
10
|
import "./ui-D_qf3Gvw.js";
|
|
11
|
-
import { t as scanProject } from "./scan-
|
|
12
|
-
import "./paths-
|
|
13
|
-
import { d as readBundledSkill } from "./skills-
|
|
14
|
-
import { n as FRAMEWORK_REF, t as detectBilling } from "./billing-
|
|
11
|
+
import { t as scanProject } from "./scan-BZS2FZeU.js";
|
|
12
|
+
import "./paths-BaeoxDze.js";
|
|
13
|
+
import { d as readBundledSkill } from "./skills-Cm1j2d1W.js";
|
|
14
|
+
import { n as FRAMEWORK_REF, t as detectBilling } from "./billing-BopwIhR3.js";
|
|
15
15
|
|
|
16
16
|
//#region src/core/workflows/playbook.ts
|
|
17
17
|
async function printPlaybook(installDir, playbook) {
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-B2PduqrR.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import { x as VERSION } from "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import { t as ApiError } from "./client-
|
|
3
|
+
import { x as VERSION } from "./environment-FR3bcq0D.js";
|
|
4
|
+
import "./storage-CUMgpcVH.js";
|
|
5
|
+
import { t as ApiError } from "./client-DHlsTaP1.js";
|
|
6
6
|
import "./config-CGcG7GOt.js";
|
|
7
|
-
import "./telemetry-
|
|
7
|
+
import "./telemetry-ekUQuhLJ.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-025_eqCX.js";
|
|
10
10
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
11
|
-
import "./scan-
|
|
12
|
-
import "./paths-
|
|
13
|
-
import "./orgs-
|
|
14
|
-
import { _ as livePaywallVersion, x as promotePaywallVersion } from "./resources-
|
|
15
|
-
import "./lookup-
|
|
16
|
-
import "./login-
|
|
17
|
-
import "./skills-
|
|
11
|
+
import "./scan-BZS2FZeU.js";
|
|
12
|
+
import "./paths-BaeoxDze.js";
|
|
13
|
+
import "./orgs-BxlwcvTu.js";
|
|
14
|
+
import { _ as livePaywallVersion, x as promotePaywallVersion } from "./resources-COOEvqqW.js";
|
|
15
|
+
import "./lookup-D23dAOz6.js";
|
|
16
|
+
import "./login-C6FcBQZg.js";
|
|
17
|
+
import "./skills-Cm1j2d1W.js";
|
|
18
18
|
import "./browser-Bp3yRKlU.js";
|
|
19
|
-
import "./assets-
|
|
20
|
-
import { a as resolveProjectDir, g as transition, s as selectSurfaces, y as resolveFramework } from "./selection-
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
19
|
+
import "./assets-CqpFg5mM.js";
|
|
20
|
+
import { a as resolveProjectDir, g as transition, s as selectSurfaces, y as resolveFramework } from "./selection-CWfI4a0O.js";
|
|
21
|
+
import "./design-lint-CvgcSzVg.js";
|
|
22
|
+
import { f as readLock, n as collectProjectDeclarations } from "./types-CB6O_wjy.js";
|
|
23
|
+
import { c as planTargets, d as wantedPlatforms, h as resolveApps, n as requireApi, s as parsePlatformFlags, u as targetLabel } from "./session-DYdxTNZf.js";
|
|
24
|
+
import { u as resolveBinding } from "./source-push-B3c-VLfe.js";
|
|
25
|
+
import { a as pickApplicationOption, i as timed, o as pickAdoptOption, t as group } from "./push-BlZoIwIj.js";
|
|
26
|
+
import "./git-DqDPnldI.js";
|
|
27
|
+
import "./scope-t_SqFN6W.js";
|
|
28
|
+
import "./login-dRPPnGr7.js";
|
|
28
29
|
import pc from "picocolors";
|
|
29
30
|
|
|
30
31
|
//#region src/core/paywalls/promote.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { x as VERSION } from "./environment-
|
|
1
|
+
import { x as VERSION } from "./environment-FR3bcq0D.js";
|
|
2
2
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
3
|
-
import { f as listAppPaywalls, v as mintSourceAccess } from "./resources-
|
|
4
|
-
import { n as findApplication, t as appNotFound } from "./lookup-
|
|
5
|
-
import { a as resolveProjectDir, i as requireProject, y as resolveFramework } from "./selection-
|
|
6
|
-
import { _ as writeLock, f as readLock, i as NewerLockError, n as collectProjectDeclarations, r as writeProjectTypes, t as TYPES_FILE, u as parseLock } from "./types-
|
|
7
|
-
import {
|
|
8
|
-
import { a as collectSourceFiles, i as statIfPresent, n as pullSourceTree } from "./git-
|
|
9
|
-
import { a as devCommand, i as detectPackageManager } from "./setup-
|
|
3
|
+
import { f as listAppPaywalls, v as mintSourceAccess } from "./resources-COOEvqqW.js";
|
|
4
|
+
import { n as findApplication, t as appNotFound } from "./lookup-D23dAOz6.js";
|
|
5
|
+
import { a as resolveProjectDir, i as requireProject, y as resolveFramework } from "./selection-CWfI4a0O.js";
|
|
6
|
+
import { _ as writeLock, f as readLock, i as NewerLockError, n as collectProjectDeclarations, r as writeProjectTypes, t as TYPES_FILE, u as parseLock } from "./types-CB6O_wjy.js";
|
|
7
|
+
import { f as PLATFORMS, i as writeSourceBase, m as requirePlatform, n as requireApi, r as readSourceBase, s as parsePlatformFlags } from "./session-DYdxTNZf.js";
|
|
8
|
+
import { a as collectSourceFiles, i as statIfPresent, n as pullSourceTree } from "./git-DqDPnldI.js";
|
|
9
|
+
import { a as devCommand, i as detectPackageManager } from "./setup-DW50luOZ.js";
|
|
10
10
|
import * as fs from "node:fs";
|
|
11
11
|
import * as path from "node:path";
|
|
12
12
|
import pc from "picocolors";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "./token-B2PduqrR.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-FR3bcq0D.js";
|
|
4
|
+
import "./storage-CUMgpcVH.js";
|
|
5
|
+
import "./client-DHlsTaP1.js";
|
|
6
|
+
import "./config-CGcG7GOt.js";
|
|
7
|
+
import "./telemetry-ekUQuhLJ.js";
|
|
8
|
+
import "./spawn-DmmmHIP-.js";
|
|
9
|
+
import "./spinner-025_eqCX.js";
|
|
10
|
+
import "./ui-D_qf3Gvw.js";
|
|
11
|
+
import "./theme-DUsCh-Vd.js";
|
|
12
|
+
import "./log-C0MDCfA2.js";
|
|
13
|
+
import "./scan-BZS2FZeU.js";
|
|
14
|
+
import "./existing-C6TTT6c4.js";
|
|
15
|
+
import "./paths-BaeoxDze.js";
|
|
16
|
+
import "./orgs-BxlwcvTu.js";
|
|
17
|
+
import "./resources-COOEvqqW.js";
|
|
18
|
+
import "./org-DZ41muzA.js";
|
|
19
|
+
import "./lookup-D23dAOz6.js";
|
|
20
|
+
import "./bind-DOF3o3FR.js";
|
|
21
|
+
import "./login-C6FcBQZg.js";
|
|
22
|
+
import "./skills-Cm1j2d1W.js";
|
|
23
|
+
import "./browser-Bp3yRKlU.js";
|
|
24
|
+
import "./selection-CWfI4a0O.js";
|
|
25
|
+
import "./types-CB6O_wjy.js";
|
|
26
|
+
import "./session-DYdxTNZf.js";
|
|
27
|
+
import "./git-DqDPnldI.js";
|
|
28
|
+
import "./scope-t_SqFN6W.js";
|
|
29
|
+
import "./login-dRPPnGr7.js";
|
|
30
|
+
import "./run-DpYDOAw-.js";
|
|
31
|
+
import "./drivers-DkboeR1c.js";
|
|
32
|
+
import "./migration-r9plM7F6.js";
|
|
33
|
+
import "./setup-DW50luOZ.js";
|
|
34
|
+
import { a as cloneInto, c as pullInto, i as boundPaywall, l as runPull, n as applyPulledChanges, o as cloneTarget, r as appsToPull, s as mergePulledLock, t as PullPathError } from "./pull-CQcTZxW8.js";
|
|
35
|
+
|
|
36
|
+
export { PullPathError, applyPulledChanges, appsToPull, boundPaywall, cloneInto, cloneTarget, mergePulledLock, pullInto, runPull };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-B2PduqrR.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import "./environment-FR3bcq0D.js";
|
|
4
|
+
import "./storage-CUMgpcVH.js";
|
|
5
|
+
import "./client-DHlsTaP1.js";
|
|
6
6
|
import "./config-CGcG7GOt.js";
|
|
7
|
-
import "./telemetry-
|
|
7
|
+
import "./telemetry-ekUQuhLJ.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-025_eqCX.js";
|
|
10
10
|
import "./ui-D_qf3Gvw.js";
|
|
11
11
|
import "./theme-DUsCh-Vd.js";
|
|
12
12
|
import "./log-C0MDCfA2.js";
|
|
13
|
-
import "./scan-
|
|
14
|
-
import "./existing-
|
|
15
|
-
import "./paths-
|
|
16
|
-
import "./orgs-
|
|
17
|
-
import "./resources-
|
|
18
|
-
import "./org-
|
|
19
|
-
import "./lookup-
|
|
20
|
-
import "./bind-
|
|
21
|
-
import "./login-
|
|
22
|
-
import "./skills-
|
|
13
|
+
import "./scan-BZS2FZeU.js";
|
|
14
|
+
import "./existing-C6TTT6c4.js";
|
|
15
|
+
import "./paths-BaeoxDze.js";
|
|
16
|
+
import "./orgs-BxlwcvTu.js";
|
|
17
|
+
import "./resources-COOEvqqW.js";
|
|
18
|
+
import "./org-DZ41muzA.js";
|
|
19
|
+
import "./lookup-D23dAOz6.js";
|
|
20
|
+
import "./bind-DOF3o3FR.js";
|
|
21
|
+
import "./login-C6FcBQZg.js";
|
|
22
|
+
import "./skills-Cm1j2d1W.js";
|
|
23
23
|
import "./browser-Bp3yRKlU.js";
|
|
24
|
-
import "./selection-
|
|
25
|
-
import "./types-
|
|
26
|
-
import "./session-
|
|
27
|
-
import { a as collectSourceFiles, n as pullSourceTree } from "./git-
|
|
28
|
-
import { r as WORKSPACE_DERIVED_FILES } from "./scope-
|
|
29
|
-
import "./login-
|
|
30
|
-
import "./run-
|
|
31
|
-
import "./drivers-
|
|
32
|
-
import "./migration-
|
|
33
|
-
import "./download-
|
|
34
|
-
import "./setup-
|
|
35
|
-
import { n as applyPulledChanges } from "./pull-
|
|
36
|
-
import {
|
|
37
|
-
import { r as WorkspaceError } from "./project-
|
|
38
|
-
import "./organization-
|
|
39
|
-
import "./sdk-
|
|
40
|
-
import { a as toSourceAccess } from "./push-
|
|
24
|
+
import "./selection-CWfI4a0O.js";
|
|
25
|
+
import "./types-CB6O_wjy.js";
|
|
26
|
+
import "./session-DYdxTNZf.js";
|
|
27
|
+
import { a as collectSourceFiles, n as pullSourceTree } from "./git-DqDPnldI.js";
|
|
28
|
+
import { r as WORKSPACE_DERIVED_FILES } from "./scope-t_SqFN6W.js";
|
|
29
|
+
import "./login-dRPPnGr7.js";
|
|
30
|
+
import "./run-DpYDOAw-.js";
|
|
31
|
+
import "./drivers-DkboeR1c.js";
|
|
32
|
+
import "./migration-r9plM7F6.js";
|
|
33
|
+
import "./download-F8OtTJze.js";
|
|
34
|
+
import "./setup-DW50luOZ.js";
|
|
35
|
+
import { n as applyPulledChanges } from "./pull-CQcTZxW8.js";
|
|
36
|
+
import { c as projectRoot, f as readBinding, l as resolveWorkspace, m as writeBinding, p as readSourceFile, w as mintSourceAccess } from "./resolve-DGePiHgL.js";
|
|
37
|
+
import { r as WorkspaceError } from "./project-DHU5wc3R.js";
|
|
38
|
+
import "./organization-DIODPOwO.js";
|
|
39
|
+
import "./sdk-CyttTnGf.js";
|
|
40
|
+
import { a as toSourceAccess } from "./push-DQE48h_M.js";
|
|
41
41
|
import * as fs from "node:fs";
|
|
42
42
|
import * as path from "node:path";
|
|
43
43
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { x as VERSION } from "./environment-
|
|
1
|
+
import { x as VERSION } from "./environment-FR3bcq0D.js";
|
|
2
2
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
3
|
-
import { C as pushPaywallVersion, D as versionProducts, b as platformStore, g as livePaywall, w as pushedProducts, x as promotePaywallVersion, y as platformLabel } from "./resources-
|
|
4
|
-
import { n as requireAssets, r as syncAssets, t as assetBaseUrl } from "./assets-
|
|
5
|
-
import { _ as weight, a as resolveProjectDir, c as storesDiffer, d as kb, f as pendingPromoteWarning, g as transition, h as took, i as requireProject, l as BIND_VERB, m as resolveNote, p as pushedLine, r as requireClean, s as selectSurfaces, t as needsWork, v as frameworkVersion, y as resolveFramework } from "./selection-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { C as pushPaywallVersion, D as versionProducts, b as platformStore, g as livePaywall, w as pushedProducts, x as promotePaywallVersion, y as platformLabel } from "./resources-COOEvqqW.js";
|
|
4
|
+
import { n as requireAssets, r as syncAssets, t as assetBaseUrl } from "./assets-CqpFg5mM.js";
|
|
5
|
+
import { _ as weight, a as resolveProjectDir, c as storesDiffer, d as kb, f as pendingPromoteWarning, g as transition, h as took, i as requireProject, l as BIND_VERB, m as resolveNote, p as pushedLine, r as requireClean, s as selectSurfaces, t as needsWork, v as frameworkVersion, y as resolveFramework } from "./selection-CWfI4a0O.js";
|
|
6
|
+
import { n as lintDesignTokens, t as formatTokenFinding } from "./design-lint-CvgcSzVg.js";
|
|
7
|
+
import { a as describeBindings, f as readLock, g as writeBindings, n as collectProjectDeclarations, p as removeBinding, r as writeProjectTypes, y as writeSnapshot } from "./types-CB6O_wjy.js";
|
|
8
|
+
import { c as planTargets, d as wantedPlatforms, h as resolveApps, l as surfaceKey, n as requireApi, o as writeProjectScaffold, p as platformFor, s as parsePlatformFlags, u as targetLabel } from "./session-DYdxTNZf.js";
|
|
9
|
+
import { c as projectForApplication, i as warnNotPortable, l as requireProducts, n as pushProjectSource, o as listProjectCatalogue, r as pushSource, t as assertGit, u as resolveBinding } from "./source-push-B3c-VLfe.js";
|
|
10
|
+
import { a as collectSourceFiles } from "./git-DqDPnldI.js";
|
|
10
11
|
import { cpus } from "node:os";
|
|
11
12
|
import pc from "picocolors";
|
|
12
13
|
|
|
@@ -244,21 +245,74 @@ function summary(outcomes, skipped, promoted) {
|
|
|
244
245
|
ui.outro(`${count} ${noun(count)} pushed${unchanged} · run \`superwall promote\` to publish ${count === 1 ? "it" : "them"}.`);
|
|
245
246
|
}
|
|
246
247
|
const BUILD_CONCURRENCY = Math.max(2, Math.min(8, cpus().length - 1));
|
|
248
|
+
const isBound = (lock, target) => {
|
|
249
|
+
return (target.surface.kind === "paywall" ? lock.paywalls : lock.funnels)[target.surface.id]?.[target.platform] !== void 0;
|
|
250
|
+
};
|
|
251
|
+
function boundScope(lock, surfaces, declared, only) {
|
|
252
|
+
const allowed = only.map((entry) => platformFor(lock.apps, entry) ?? entry);
|
|
253
|
+
const wanted = (platform) => only.length === 0 || allowed.includes(platform);
|
|
254
|
+
const apps = Object.fromEntries(Object.entries(lock.apps).filter(([platform]) => wanted(platform)));
|
|
255
|
+
const scoped = [];
|
|
256
|
+
const narrowed = { ...declared };
|
|
257
|
+
const unbound = [];
|
|
258
|
+
for (const surface of surfaces) {
|
|
259
|
+
const platforms = declared[surfaceKey(surface)];
|
|
260
|
+
if (platforms === void 0) {
|
|
261
|
+
if (Object.keys(lock.apps).length > 1) planTargets({
|
|
262
|
+
surfaces: [surface],
|
|
263
|
+
declared,
|
|
264
|
+
apps: lock.apps
|
|
265
|
+
});
|
|
266
|
+
if (Object.keys(apps).length > 0) scoped.push(surface);
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
const kept = [];
|
|
270
|
+
for (const platform of platforms) {
|
|
271
|
+
if (!wanted(platform)) continue;
|
|
272
|
+
if (isBound(lock, {
|
|
273
|
+
surface,
|
|
274
|
+
platform
|
|
275
|
+
})) kept.push(platform);
|
|
276
|
+
else unbound.push({
|
|
277
|
+
surface,
|
|
278
|
+
platform
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
narrowed[surfaceKey(surface)] = kept;
|
|
282
|
+
if (kept.length > 0) scoped.push(surface);
|
|
283
|
+
}
|
|
284
|
+
return {
|
|
285
|
+
surfaces: scoped,
|
|
286
|
+
declared: narrowed,
|
|
287
|
+
apps,
|
|
288
|
+
unbound
|
|
289
|
+
};
|
|
290
|
+
}
|
|
247
291
|
async function prepare(context, input) {
|
|
248
|
-
const { framework, project
|
|
249
|
-
const
|
|
292
|
+
const { framework, project } = input;
|
|
293
|
+
const only = parsePlatformFlags(input.platforms);
|
|
294
|
+
const lock = readLock(project.superwallDir);
|
|
295
|
+
const scope = input.existing ? boundScope(lock, input.surfaces, input.declared, only) : {
|
|
296
|
+
surfaces: input.surfaces,
|
|
297
|
+
declared: input.declared,
|
|
298
|
+
apps: void 0,
|
|
299
|
+
unbound: []
|
|
300
|
+
};
|
|
301
|
+
const apps = scope.apps ?? await resolveApps({
|
|
250
302
|
api: context.api,
|
|
251
303
|
superwallDir: project.superwallDir,
|
|
252
|
-
wanted: wantedPlatforms(surfaces, declared),
|
|
304
|
+
wanted: wantedPlatforms(scope.surfaces, scope.declared),
|
|
253
305
|
pickApplication: context.interactive ? pickApplicationOption : void 0
|
|
254
306
|
});
|
|
255
|
-
const multi = Object.keys(apps).length > 1;
|
|
256
|
-
const
|
|
257
|
-
surfaces,
|
|
258
|
-
declared,
|
|
307
|
+
const multi = Object.keys(input.existing ? lock.apps : apps).length > 1;
|
|
308
|
+
const planned = scope.surfaces.length === 0 ? [] : planTargets({
|
|
309
|
+
surfaces: scope.surfaces,
|
|
310
|
+
declared: scope.declared,
|
|
259
311
|
apps,
|
|
260
|
-
only:
|
|
312
|
+
only: input.existing ? [] : only
|
|
261
313
|
});
|
|
314
|
+
const targets = input.existing ? planned.filter((target) => isBound(lock, target)) : planned;
|
|
315
|
+
const unbound = [...scope.unbound, ...planned.filter((target) => !targets.includes(target))];
|
|
262
316
|
const spin = context.outputMode === "rich" ? ui.spinner() : void 0;
|
|
263
317
|
const label = targets.length === 1 && targets[0] !== void 0 ? targetLabel(targets[0], multi) : `${targets.length} paywalls`;
|
|
264
318
|
spin?.start(`Building ${label}`);
|
|
@@ -307,8 +361,8 @@ async function prepare(context, input) {
|
|
|
307
361
|
if (!bind || !build) throw new Error(`Missing binding for ${target.surface.id}`);
|
|
308
362
|
requireAssets(build);
|
|
309
363
|
const live = await livePaywall(context.api, bind.paywallId);
|
|
310
|
-
const
|
|
311
|
-
const recorded = (target.surface.kind === "paywall" ?
|
|
364
|
+
const current = readLock(project.superwallDir);
|
|
365
|
+
const recorded = (target.surface.kind === "paywall" ? current.paywalls : current.funnels)[target.surface.id]?.[target.platform];
|
|
312
366
|
const stores = catalogueOf(target)?.stores ?? {};
|
|
313
367
|
const unsourced = recorded?.snapshot === build.snapshotId ? recorded.sourcePending : void 0;
|
|
314
368
|
const stale = needsWork(build.snapshotId, recorded?.snapshot, live.snapshotId);
|
|
@@ -329,7 +383,8 @@ async function prepare(context, input) {
|
|
|
329
383
|
spin?.stop(`${pc.bold(`Built ${label}`)} ${pc.dim(`${modified} modified · ${prepared.length - modified} unchanged`)} ${took(at)}`);
|
|
330
384
|
return {
|
|
331
385
|
prepared,
|
|
332
|
-
multi
|
|
386
|
+
multi,
|
|
387
|
+
unbound
|
|
333
388
|
};
|
|
334
389
|
} catch (error) {
|
|
335
390
|
spin?.stop(pc.red(`Building ${label} failed`));
|
|
@@ -399,13 +454,16 @@ async function runPushPipeline(context, options) {
|
|
|
399
454
|
const source = await collectSourceFiles(project.superwallDir);
|
|
400
455
|
const outcomes = [];
|
|
401
456
|
const external = /* @__PURE__ */ new Set();
|
|
402
|
-
const
|
|
457
|
+
for (const finding of lintDesignTokens(project, surfaces)) ui.warn(formatTokenFinding(finding));
|
|
458
|
+
const { prepared, multi, unbound } = await prepare(context, {
|
|
403
459
|
framework,
|
|
404
460
|
project,
|
|
405
461
|
surfaces,
|
|
406
462
|
declared: declarations.platforms,
|
|
407
|
-
platforms: options.platforms ?? []
|
|
463
|
+
platforms: options.platforms ?? [],
|
|
464
|
+
existing: options.existing === true
|
|
408
465
|
});
|
|
466
|
+
for (const target of unbound) ui.step(`${targetLabel(target, multi)} skipped ${pc.dim("(not on Superwall yet; --existing never creates one)")}`);
|
|
409
467
|
for (const entry of prepared) for (const source$1 of entry.build.externalSources ?? []) external.add(source$1);
|
|
410
468
|
const changed = prepared.filter((entry) => entry.changed);
|
|
411
469
|
const skipped = prepared.length - changed.length;
|
|
@@ -476,9 +534,49 @@ async function runPushPipeline(context, options) {
|
|
|
476
534
|
live
|
|
477
535
|
});
|
|
478
536
|
}
|
|
537
|
+
if (options.source) await pushSourceAlone(context, {
|
|
538
|
+
project,
|
|
539
|
+
prepared,
|
|
540
|
+
synced: new Set(changed.map((entry) => entry.bind.applicationId)),
|
|
541
|
+
multi,
|
|
542
|
+
files: source,
|
|
543
|
+
framework: installed,
|
|
544
|
+
note: publishNote,
|
|
545
|
+
overwrite: options.overwriteSource
|
|
546
|
+
});
|
|
479
547
|
warnNotPortable(external);
|
|
480
548
|
summary(outcomes, skipped, options.promote);
|
|
481
549
|
}
|
|
550
|
+
async function pushSourceAlone(context, input) {
|
|
551
|
+
if (input.prepared.length === 0) throw new Error("--source needs a paywall that is already on Superwall to push the source through.");
|
|
552
|
+
const through = /* @__PURE__ */ new Map();
|
|
553
|
+
for (const entry of input.prepared) {
|
|
554
|
+
const { applicationId } = entry.bind;
|
|
555
|
+
if (!input.synced.has(applicationId) && !through.has(applicationId)) through.set(applicationId, entry);
|
|
556
|
+
}
|
|
557
|
+
if (through.size === 0) return;
|
|
558
|
+
if (!input.files.ok) throw new Error(input.files.reason);
|
|
559
|
+
await assertGit();
|
|
560
|
+
const files = input.files.files;
|
|
561
|
+
for (const { bind, target } of through.values()) {
|
|
562
|
+
const label = input.multi ? `Project source · ${target.platform}` : "Project source";
|
|
563
|
+
await group(context.outputMode, label, async () => {
|
|
564
|
+
const pushed = await timed(() => pushProjectSource({
|
|
565
|
+
api: context.api,
|
|
566
|
+
superwallDir: input.project.superwallDir,
|
|
567
|
+
paywallId: bind.paywallId,
|
|
568
|
+
applicationId: bind.applicationId,
|
|
569
|
+
files,
|
|
570
|
+
framework: input.framework,
|
|
571
|
+
cli: VERSION,
|
|
572
|
+
note: input.note,
|
|
573
|
+
overwrite: input.overwrite
|
|
574
|
+
}));
|
|
575
|
+
const sha = pc.dim(pushed.value.commitSha.slice(0, 7));
|
|
576
|
+
return [`Source ${pushed.value.status === "unchanged" ? "unchanged" : "pushed"} ${sha} ${pushed.took}`];
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
}
|
|
482
580
|
async function runPush(ctx, { args, flags }, promote) {
|
|
483
581
|
await runPushPipeline({
|
|
484
582
|
api: await requireApi(ctx.interactive),
|
|
@@ -491,7 +589,9 @@ async function runPush(ctx, { args, flags }, promote) {
|
|
|
491
589
|
platforms: flags.platform,
|
|
492
590
|
renames: flags.rename,
|
|
493
591
|
message: flags.message,
|
|
494
|
-
overwriteSource: flags.overwriteSource
|
|
592
|
+
overwriteSource: flags.overwriteSource,
|
|
593
|
+
existing: flags.existing,
|
|
594
|
+
source: flags.source
|
|
495
595
|
});
|
|
496
596
|
}
|
|
497
597
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "./token-B2PduqrR.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-FR3bcq0D.js";
|
|
4
|
+
import "./storage-CUMgpcVH.js";
|
|
5
|
+
import "./client-DHlsTaP1.js";
|
|
6
|
+
import "./config-CGcG7GOt.js";
|
|
7
|
+
import "./telemetry-ekUQuhLJ.js";
|
|
8
|
+
import "./spawn-DmmmHIP-.js";
|
|
9
|
+
import "./spinner-025_eqCX.js";
|
|
10
|
+
import "./ui-D_qf3Gvw.js";
|
|
11
|
+
import "./scan-BZS2FZeU.js";
|
|
12
|
+
import "./paths-BaeoxDze.js";
|
|
13
|
+
import "./orgs-BxlwcvTu.js";
|
|
14
|
+
import "./resources-COOEvqqW.js";
|
|
15
|
+
import "./lookup-D23dAOz6.js";
|
|
16
|
+
import "./login-C6FcBQZg.js";
|
|
17
|
+
import "./skills-Cm1j2d1W.js";
|
|
18
|
+
import "./browser-Bp3yRKlU.js";
|
|
19
|
+
import "./assets-CqpFg5mM.js";
|
|
20
|
+
import "./selection-CWfI4a0O.js";
|
|
21
|
+
import "./design-lint-CvgcSzVg.js";
|
|
22
|
+
import "./types-CB6O_wjy.js";
|
|
23
|
+
import "./session-DYdxTNZf.js";
|
|
24
|
+
import "./source-push-B3c-VLfe.js";
|
|
25
|
+
import { i as timed, n as runPush, r as runPushPipeline, t as group } from "./push-BlZoIwIj.js";
|
|
26
|
+
import "./git-DqDPnldI.js";
|
|
27
|
+
import "./scope-t_SqFN6W.js";
|
|
28
|
+
import "./login-dRPPnGr7.js";
|
|
29
|
+
|
|
30
|
+
export { group, runPush, runPushPipeline, timed };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { x as VERSION } from "./environment-
|
|
2
|
-
import { n as ApiUnreachableError, t as ApiError } from "./client-
|
|
3
|
-
import { a as collectSourceFiles, r as pushSourceTree, t as gitAvailable } from "./git-
|
|
4
|
-
import { C as
|
|
5
|
-
import { r as WorkspaceError, s as readProject } from "./project-
|
|
6
|
-
import { n as resolveOrganization } from "./organization-
|
|
7
|
-
import { i as warnIfSdkBehind, r as vendoredVersion } from "./sdk-
|
|
1
|
+
import { x as VERSION } from "./environment-FR3bcq0D.js";
|
|
2
|
+
import { n as ApiUnreachableError, t as ApiError } from "./client-DHlsTaP1.js";
|
|
3
|
+
import { a as collectSourceFiles, r as pushSourceTree, t as gitAvailable } from "./git-DqDPnldI.js";
|
|
4
|
+
import { C as listWorkspaces, D as startBuild, d as visibilityOf, f as readBinding, g as createWorkspace, m as writeBinding, o as openLink, p as readSourceFile, v as getBuild, w as mintSourceAccess, y as getMe } from "./resolve-DGePiHgL.js";
|
|
5
|
+
import { r as WorkspaceError, s as readProject } from "./project-DHU5wc3R.js";
|
|
6
|
+
import { n as resolveOrganization } from "./organization-DIODPOwO.js";
|
|
7
|
+
import { i as warnIfSdkBehind, r as vendoredVersion } from "./sdk-CyttTnGf.js";
|
|
8
8
|
import { setTimeout } from "node:timers/promises";
|
|
9
9
|
|
|
10
10
|
//#region src/core/workspaces/push.ts
|
|
@@ -271,7 +271,7 @@ async function runWorkspacePush(ctx, input, seams = {}) {
|
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
273
|
spin.stop(`Built version ${build.version_id}`);
|
|
274
|
-
const { visibleTo, sentence } = await visibilityOf(ctx, binding.workspaceId, build.version_id);
|
|
274
|
+
const { visibleTo, sentence } = await visibilityOf(ctx, binding.workspaceId, build.version_id, project.manifest);
|
|
275
275
|
if (ctx.json) {
|
|
276
276
|
ctx.output.data({
|
|
277
277
|
...summary,
|
|
@@ -282,7 +282,7 @@ async function runWorkspacePush(ctx, input, seams = {}) {
|
|
|
282
282
|
ctx.ui.success(sentence);
|
|
283
283
|
if (pushed.incoming?.length) ctx.ui.warn(`It runs commits from ${namesOf(pushed.incoming)} with your reads, and they aren't in this project yet. Run \`superwall workspaces pull\` to get them.`);
|
|
284
284
|
ctx.ui.info(link.app ? `Open ${url} (in ${link.app})` : `Open ${url}`);
|
|
285
|
-
if (link.otherApps) ctx.ui.info(
|
|
285
|
+
if (link.otherApps) ctx.ui.info("Each of your other apps has the same page.");
|
|
286
286
|
ctx.ui.info("To ask for review, run `superwall workspaces share`.");
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./token-B2PduqrR.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-FR3bcq0D.js";
|
|
4
|
+
import "./storage-CUMgpcVH.js";
|
|
5
|
+
import "./client-DHlsTaP1.js";
|
|
6
|
+
import "./config-CGcG7GOt.js";
|
|
7
|
+
import "./spinner-025_eqCX.js";
|
|
8
|
+
import "./ui-D_qf3Gvw.js";
|
|
9
|
+
import "./orgs-BxlwcvTu.js";
|
|
10
|
+
import "./resources-COOEvqqW.js";
|
|
11
|
+
import "./lookup-D23dAOz6.js";
|
|
12
|
+
import "./types-CB6O_wjy.js";
|
|
13
|
+
import "./git-DqDPnldI.js";
|
|
14
|
+
import "./scope-t_SqFN6W.js";
|
|
15
|
+
import "./download-F8OtTJze.js";
|
|
16
|
+
import "./resolve-DGePiHgL.js";
|
|
17
|
+
import "./project-DHU5wc3R.js";
|
|
18
|
+
import "./organization-DIODPOwO.js";
|
|
19
|
+
import "./sdk-CyttTnGf.js";
|
|
20
|
+
import { a as toSourceAccess, i as slugOfName, n as namesOf, o as waitForBuild, r as runWorkspacePush, t as IncomingCommitsRefused } from "./push-DQE48h_M.js";
|
|
21
|
+
|
|
22
|
+
export { IncomingCommitsRefused, namesOf, runWorkspacePush, slugOfName, toSourceAccess, waitForBuild };
|