@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.
Files changed (97) hide show
  1. package/README.md +7 -0
  2. package/dist/{apple-Dyr7OFBx.js → apple-BSKxY7Gx.js} +14 -14
  3. package/dist/{approve-Czs1-JO9.js → approve-DbwsYO4s.js} +15 -11
  4. package/dist/{assets-BrB9jQPQ.js → assets-CqpFg5mM.js} +3 -3
  5. package/dist/auth.d.ts +1 -1
  6. package/dist/auth.js +3 -3
  7. package/dist/{billing-D5qqIlVb.js → billing-BopwIhR3.js} +3 -3
  8. package/dist/{bind-B3eEcRyp.js → bind-DOF3o3FR.js} +4 -4
  9. package/dist/{build-DD9pSwHX.js → build-BF22vVdV.js} +11 -9
  10. package/dist/{client-AI9H4GGB.js → client-DHlsTaP1.js} +3 -3
  11. package/dist/{create-ChfgWpiM.js → create-CboPfAlN.js} +31 -31
  12. package/dist/{create-B4m-IKlr.js → create-CiZzZrru.js} +6 -6
  13. package/dist/create-DAkNdEzt.js +20 -0
  14. package/dist/design-lint-CvgcSzVg.js +158 -0
  15. package/dist/{doctor-XtXW6tKE.js → doctor-BqZGaQE5.js} +6 -6
  16. package/dist/{drivers-CMEL13gp.js → drivers-DkboeR1c.js} +3 -3
  17. package/dist/entry.js +20 -20
  18. package/dist/{environment-BWT2S4qC.js → environment-FR3bcq0D.js} +3 -3
  19. package/dist/{existing-b0GxFcnc.js → existing-C6TTT6c4.js} +2 -2
  20. package/dist/{git-D7AVdugb.js → git-DqDPnldI.js} +20 -11
  21. package/dist/{held-D3PUNky2.js → held-C2IjAyg6.js} +6 -6
  22. package/dist/held-KVcYIplR.js +17 -0
  23. package/dist/{install-CVUXsx8c.js → install-DoSYCwLL.js} +21 -15
  24. package/dist/{integrate-qvKd9pVW.js → integrate-BSqd2wgI.js} +23 -23
  25. package/dist/login-BiwaQkXS.js +17 -0
  26. package/dist/{login-PMoXUGqq.js → login-C6FcBQZg.js} +6 -6
  27. package/dist/{login-COmGHrU5.js → login-dRPPnGr7.js} +1 -1
  28. package/dist/{lookup-gjcKIZvh.js → lookup-D23dAOz6.js} +3 -3
  29. package/dist/{migrate-SkkLLdmr.js → migrate-CDdUCTH3.js} +29 -29
  30. package/dist/{migration-DS44-3Zr.js → migration-r9plM7F6.js} +29 -11
  31. package/dist/{notification-url-BjQPLf4-.js → notification-url-rdnENCxt.js} +2 -2
  32. package/dist/{open-DQpm2yVs.js → open-DVdE3HnK.js} +2 -2
  33. package/dist/{org-C04eAO-j.js → org-DZ41muzA.js} +3 -3
  34. package/dist/{organization-BOECL3vZ.js → organization-DIODPOwO.js} +4 -4
  35. package/dist/{orgs-D6Kk96mG.js → orgs-BxlwcvTu.js} +1 -1
  36. package/dist/{paths-REb-GrbX.js → paths-BaeoxDze.js} +1 -1
  37. package/dist/{playbook-Du4Oydbf.js → playbook-B-Pdonhg.js} +10 -10
  38. package/dist/{promote-Dm2_b1WK.js → promote-Ca4URuHY.js} +23 -22
  39. package/dist/{pull-F6pvO4To.js → pull-CQcTZxW8.js} +8 -8
  40. package/dist/pull-DRMIxqR8.js +36 -0
  41. package/dist/{pull-zYAbqo9n.js → pull-_qs90vGA.js} +33 -33
  42. package/dist/{push-BIFLhAiO.js → push-BlZoIwIj.js} +122 -22
  43. package/dist/push-Cb4g_l1K.js +30 -0
  44. package/dist/{push-D_l9KJZN.js → push-DQE48h_M.js} +9 -9
  45. package/dist/push-DZKsd6Dp.js +22 -0
  46. package/dist/{registry-DIJB0mJa.js → registry-FNG-uiIt.js} +74 -53
  47. package/dist/{resolve--GsHj0Q1.js → resolve-DGePiHgL.js} +40 -15
  48. package/dist/{resources-BaP3p_LY.js → resources-COOEvqqW.js} +2 -2
  49. package/dist/{run-CgLmD2vR.js → run-Czbb-sHR.js} +43 -20
  50. package/dist/{run-C5OPwhvS.js → run-DpYDOAw-.js} +2 -2
  51. package/dist/scan-2WqHGkjU.js +4 -0
  52. package/dist/{scan-Bj5y0zTZ.js → scan-BZS2FZeU.js} +1 -1
  53. package/dist/{scope-Bp_zwJOo.js → scope-BJQ-KcQg.js} +5 -5
  54. package/dist/{scope-CCb_7UvN.js → scope-t_SqFN6W.js} +18 -4
  55. package/dist/{sdk-TvT0p_nO.js → sdk-CyttTnGf.js} +2 -2
  56. package/dist/{selection-BltBpyp5.js → selection-CWfI4a0O.js} +1 -1
  57. package/dist/{series-TAixFBWW.js → series--Wp7TngJ.js} +2 -2
  58. package/dist/{server-CdVIboQn.js → server-BmmOj7bh.js} +9 -9
  59. package/dist/server-BqLPwcy9.js +29 -0
  60. package/dist/session-BHBIGscL.js +6 -0
  61. package/dist/{session-Ywim-P8M.js → session-BpYpOgaY.js} +1 -1
  62. package/dist/{session-D3fgXQBt.js → session-DYdxTNZf.js} +7 -7
  63. package/dist/{setup-zzjtTy8k.js → setup-DW50luOZ.js} +9 -9
  64. package/dist/skills/superwall-workspaces/SKILL.md +3 -2
  65. package/dist/skills/superwall-workspaces/references/cli.md +1 -1
  66. package/dist/{skills-8um2fBPS.js → skills-Bbtq8V_D.js} +8 -8
  67. package/dist/{skills-2qYaUXGE.js → skills-Cm1j2d1W.js} +4 -4
  68. package/dist/{source-push-kAep4gPe.js → source-push-B3c-VLfe.js} +43 -26
  69. package/dist/{spinner-BANVLncC.js → spinner-025_eqCX.js} +3 -3
  70. package/dist/{starter-CiLrp1cN.js → starter-hcwocv_Z.js} +3 -3
  71. package/dist/{status-CoYMK7QL.js → status-K1IGp6pe.js} +17 -14
  72. package/dist/{storage-DzP22xKn.js → storage-CUMgpcVH.js} +1 -1
  73. package/dist/{storekit-n1x0bWkQ.js → storekit-Cb0TkToV.js} +3 -3
  74. package/dist/storekit-Dewj_5qg.js +17 -0
  75. package/dist/{telemetry-CXN6f-ZX.js → telemetry-ekUQuhLJ.js} +1 -1
  76. package/dist/{token-FmeHywYt.js → token-B2PduqrR.js} +1 -1
  77. package/dist/tools.d.ts +1 -1
  78. package/dist/tools.js +29 -9
  79. package/dist/{try-BWbzgelb.js → try-BUnhITXS.js} +16 -16
  80. package/dist/{upgrade-Bk5boOgW.js → upgrade-CI7K1UZ-.js} +2 -2
  81. package/dist/{upgrade-CoWCEnoi.js → upgrade-DfZfDljd.js} +2 -2
  82. package/package.json +2 -2
  83. package/dist/create-CJljlkJK.js +0 -20
  84. package/dist/held-CX7Zf8u-.js +0 -17
  85. package/dist/login-ClnJi1Ea.js +0 -17
  86. package/dist/pull-DsdOoG-D.js +0 -36
  87. package/dist/push-CJVfvFZq.js +0 -29
  88. package/dist/push-SVzv7fzE.js +0 -22
  89. package/dist/scan-v_WTE722.js +0 -4
  90. package/dist/server-CvJVusw3.js +0 -29
  91. package/dist/session-B8JNXkwN.js +0 -6
  92. package/dist/storekit-D5eopLM0.js +0 -17
  93. /package/dist/{download-2Zu2I_Og.js → download-F8OtTJze.js} +0 -0
  94. /package/dist/{project-CP6hiHra.js → project-DHU5wc3R.js} +0 -0
  95. /package/dist/{reports-CuhB1_ub.js → reports-BZfxvenS.js} +0 -0
  96. /package/dist/{storage-BjQCiTuz.d.ts → storage-Bdz5AmqS.d.ts} +0 -0
  97. /package/dist/{types-JdxmnCko.js → types-CB6O_wjy.js} +0 -0
@@ -1,17 +1,17 @@
1
- import "./token-FmeHywYt.js";
1
+ import "./token-B2PduqrR.js";
2
2
  import "./output-Ggzq5_-t.js";
3
- import "./environment-BWT2S4qC.js";
4
- import "./storage-DzP22xKn.js";
5
- import "./client-AI9H4GGB.js";
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-CXN6f-ZX.js";
7
+ import { i as updateTelemetryTags, r as track } from "./telemetry-ekUQuhLJ.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import "./spinner-BANVLncC.js";
9
+ import "./spinner-025_eqCX.js";
10
10
  import "./ui-D_qf3Gvw.js";
11
- import { t as scanProject } from "./scan-Bj5y0zTZ.js";
12
- import "./paths-REb-GrbX.js";
13
- import { d as readBundledSkill } from "./skills-2qYaUXGE.js";
14
- import { n as FRAMEWORK_REF, t as detectBilling } from "./billing-D5qqIlVb.js";
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-FmeHywYt.js";
1
+ import "./token-B2PduqrR.js";
2
2
  import "./output-Ggzq5_-t.js";
3
- import { x as VERSION } from "./environment-BWT2S4qC.js";
4
- import "./storage-DzP22xKn.js";
5
- import { t as ApiError } from "./client-AI9H4GGB.js";
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-CXN6f-ZX.js";
7
+ import "./telemetry-ekUQuhLJ.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import "./spinner-BANVLncC.js";
9
+ import "./spinner-025_eqCX.js";
10
10
  import { n as ui } from "./ui-D_qf3Gvw.js";
11
- import "./scan-Bj5y0zTZ.js";
12
- import "./paths-REb-GrbX.js";
13
- import "./orgs-D6Kk96mG.js";
14
- import { _ as livePaywallVersion, x as promotePaywallVersion } from "./resources-BaP3p_LY.js";
15
- import "./lookup-gjcKIZvh.js";
16
- import "./login-PMoXUGqq.js";
17
- import "./skills-2qYaUXGE.js";
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-BrB9jQPQ.js";
20
- import { a as resolveProjectDir, g as transition, s as selectSurfaces, y as resolveFramework } from "./selection-BltBpyp5.js";
21
- import { f as readLock, n as collectProjectDeclarations } from "./types-JdxmnCko.js";
22
- import { c as planTargets, l as targetLabel, n as requireApi, p as resolveApps, s as parsePlatformFlags, u as wantedPlatforms } from "./session-D3fgXQBt.js";
23
- import { l as resolveBinding } from "./source-push-kAep4gPe.js";
24
- import { a as pickApplicationOption, i as timed, o as pickAdoptOption, t as group } from "./push-BIFLhAiO.js";
25
- import "./git-D7AVdugb.js";
26
- import "./scope-CCb_7UvN.js";
27
- import "./login-COmGHrU5.js";
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-BWT2S4qC.js";
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-BaP3p_LY.js";
4
- import { n as findApplication, t as appNotFound } from "./lookup-gjcKIZvh.js";
5
- import { a as resolveProjectDir, i as requireProject, y as resolveFramework } from "./selection-BltBpyp5.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-JdxmnCko.js";
7
- import { d as PLATFORMS, f as requirePlatform, i as writeSourceBase, n as requireApi, r as readSourceBase, s as parsePlatformFlags } from "./session-D3fgXQBt.js";
8
- import { a as collectSourceFiles, i as statIfPresent, n as pullSourceTree } from "./git-D7AVdugb.js";
9
- import { a as devCommand, i as detectPackageManager } from "./setup-zzjtTy8k.js";
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-FmeHywYt.js";
1
+ import "./token-B2PduqrR.js";
2
2
  import "./output-Ggzq5_-t.js";
3
- import "./environment-BWT2S4qC.js";
4
- import "./storage-DzP22xKn.js";
5
- import "./client-AI9H4GGB.js";
3
+ import "./environment-FR3bcq0D.js";
4
+ import "./storage-CUMgpcVH.js";
5
+ import "./client-DHlsTaP1.js";
6
6
  import "./config-CGcG7GOt.js";
7
- import "./telemetry-CXN6f-ZX.js";
7
+ import "./telemetry-ekUQuhLJ.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import "./spinner-BANVLncC.js";
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-Bj5y0zTZ.js";
14
- import "./existing-b0GxFcnc.js";
15
- import "./paths-REb-GrbX.js";
16
- import "./orgs-D6Kk96mG.js";
17
- import "./resources-BaP3p_LY.js";
18
- import "./org-C04eAO-j.js";
19
- import "./lookup-gjcKIZvh.js";
20
- import "./bind-B3eEcRyp.js";
21
- import "./login-PMoXUGqq.js";
22
- import "./skills-2qYaUXGE.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
23
  import "./browser-Bp3yRKlU.js";
24
- import "./selection-BltBpyp5.js";
25
- import "./types-JdxmnCko.js";
26
- import "./session-D3fgXQBt.js";
27
- import { a as collectSourceFiles, n as pullSourceTree } from "./git-D7AVdugb.js";
28
- import { r as WORKSPACE_DERIVED_FILES } from "./scope-CCb_7UvN.js";
29
- import "./login-COmGHrU5.js";
30
- import "./run-C5OPwhvS.js";
31
- import "./drivers-CMEL13gp.js";
32
- import "./migration-DS44-3Zr.js";
33
- import "./download-2Zu2I_Og.js";
34
- import "./setup-zzjtTy8k.js";
35
- import { n as applyPulledChanges } from "./pull-F6pvO4To.js";
36
- import { C as mintSourceAccess, c as resolveWorkspace, d as readBinding, f as readSourceFile, p as writeBinding, s as projectRoot } from "./resolve--GsHj0Q1.js";
37
- import { r as WorkspaceError } from "./project-CP6hiHra.js";
38
- import "./organization-BOECL3vZ.js";
39
- import "./sdk-TvT0p_nO.js";
40
- import { a as toSourceAccess } from "./push-D_l9KJZN.js";
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-BWT2S4qC.js";
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-BaP3p_LY.js";
4
- import { n as requireAssets, r as syncAssets, t as assetBaseUrl } from "./assets-BrB9jQPQ.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-BltBpyp5.js";
6
- import { a as describeBindings, f as readLock, g as writeBindings, n as collectProjectDeclarations, p as removeBinding, r as writeProjectTypes, y as writeSnapshot } from "./types-JdxmnCko.js";
7
- import { c as planTargets, l as targetLabel, n as requireApi, o as writeProjectScaffold, p as resolveApps, s as parsePlatformFlags, u as wantedPlatforms } from "./session-D3fgXQBt.js";
8
- import { a as listProjectCatalogue, c as requireProducts, l as resolveBinding, n as pushSource, r as warnNotPortable, s as projectForApplication, t as assertGit } from "./source-push-kAep4gPe.js";
9
- import { a as collectSourceFiles } from "./git-D7AVdugb.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-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, surfaces, declared } = input;
249
- const apps = await resolveApps({
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 targets = planTargets({
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: parsePlatformFlags(input.platforms)
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 lock = readLock(project.superwallDir);
311
- const recorded = (target.surface.kind === "paywall" ? lock.paywalls : lock.funnels)[target.surface.id]?.[target.platform];
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 { prepared, multi } = await prepare(context, {
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-BWT2S4qC.js";
2
- import { n as ApiUnreachableError, t as ApiError } from "./client-AI9H4GGB.js";
3
- import { a as collectSourceFiles, r as pushSourceTree, t as gitAvailable } from "./git-D7AVdugb.js";
4
- import { C as mintSourceAccess, E as startBuild, S as listWorkspaces, _ as getBuild, a as openLink, d as readBinding, f as readSourceFile, h as createWorkspace, p as writeBinding, u as visibilityOf, v as getMe } from "./resolve--GsHj0Q1.js";
5
- import { r as WorkspaceError, s as readProject } from "./project-CP6hiHra.js";
6
- import { n as resolveOrganization } from "./organization-BOECL3vZ.js";
7
- import { i as warnIfSdkBehind, r as vendoredVersion } from "./sdk-TvT0p_nO.js";
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(`For another app, run \`superwall workspaces open ${link.entrypoint} --app <id>\`.`);
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 };