@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,22 +1,23 @@
1
+ import { r as NotLoggedInError } from "./token-B2PduqrR.js";
1
2
  import { a as stripAnsi, l as readJson, o as cache, r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
2
- import { o as AUTO_UPDATE_TARGET, s as CHANNEL, t as API_HOST, v as TELEMETRY_HOST, w as detectAgent, x as VERSION, y as TELEMETRY_KEY } from "./environment-BWT2S4qC.js";
3
- import { n as readSession } from "./storage-DzP22xKn.js";
4
- import { a as withQuery$1, t as ApiError } from "./client-AI9H4GGB.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-D3PUNky2.js";
3
+ import { o as AUTO_UPDATE_TARGET, s as CHANNEL, t as API_HOST, v as TELEMETRY_HOST, w as detectAgent, x as VERSION, y as TELEMETRY_KEY } from "./environment-FR3bcq0D.js";
4
+ import { n as readSession } from "./storage-CUMgpcVH.js";
5
+ import { a as withQuery$1, n as ApiUnreachableError, t as ApiError } from "./client-DHlsTaP1.js";
6
+ 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-C2IjAyg6.js";
6
7
  import { f as writeDefaultApp, i as readOnboardedApp, r as readDefaultApp, t as readAnonymousId } from "./config-CGcG7GOt.js";
7
- import { a as defineCommand, d as readInput, i as defineCatalog, r as UsageError, t as apiCall } from "./spinner-BANVLncC.js";
8
+ import { a as defineCommand, d as readInput, i as defineCatalog, r as UsageError, t as apiCall } from "./spinner-025_eqCX.js";
8
9
  import { n as fg, t as THEME } from "./theme-DUsCh-Vd.js";
9
- import { n as runWhoami } from "./session-Ywim-P8M.js";
10
- import { i as orgIdOf, t as listOrgGroups } from "./orgs-D6Kk96mG.js";
11
- import { M as textField, O as field, T as rowName, a as createEntitlement, c as createProject, h as listResource, i as createCampaign, j as parseJson, k as isRecord, m as listProjects, r as createApplication, s as createProduct, t as RESOURCES, u as isAppScoped, y as platformLabel } from "./resources-BaP3p_LY.js";
12
- import { n as orgForNewProject } from "./org-C04eAO-j.js";
13
- import { i as parseDashboardUrl, n as findApplication, r as findProject, t as appNotFound } from "./lookup-gjcKIZvh.js";
14
- import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-Bp_zwJOo.js";
10
+ import { n as runWhoami } from "./session-BpYpOgaY.js";
11
+ import { i as orgIdOf, t as listOrgGroups } from "./orgs-BxlwcvTu.js";
12
+ import { M as textField, O as field, T as rowName, a as createEntitlement, c as createProject, h as listResource, i as createCampaign, j as parseJson, k as isRecord, m as listProjects, r as createApplication, s as createProduct, t as RESOURCES, u as isAppScoped, y as platformLabel } from "./resources-COOEvqqW.js";
13
+ import { n as orgForNewProject } from "./org-DZ41muzA.js";
14
+ import { i as parseDashboardUrl, n as findApplication, r as findProject, t as appNotFound } from "./lookup-D23dAOz6.js";
15
+ import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-BJQ-KcQg.js";
15
16
  import { a as listAscConfigs, i as findAppNotificationUrl, o as removeAscConfig, t as ascProxy } from "./client-BJQXl62Q.js";
16
17
  import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-Cqq59DBQ.js";
17
18
  import { n as readResourceFlags, r as textOf, t as fieldName } from "./input-MDd67UIp.js";
18
- import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-BjQPLf4-.js";
19
- import { t as platformForIntegration } from "./bind-B3eEcRyp.js";
19
+ import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-rdnENCxt.js";
20
+ import { t as platformForIntegration } from "./bind-DOF3o3FR.js";
20
21
  import pc from "picocolors";
21
22
 
22
23
  //#region src/ui/help-layout.ts
@@ -143,7 +144,7 @@ const command = defineCommand({
143
144
  prompts: true,
144
145
  mcp: false,
145
146
  async run(ctx, input) {
146
- const { runLogin } = await import("./login-ClnJi1Ea.js");
147
+ const { runLogin } = await import("./login-BiwaQkXS.js");
147
148
  return runLogin(ctx, input);
148
149
  }
149
150
  });
@@ -159,7 +160,7 @@ const command$1 = defineCommand({
159
160
  prompts: true,
160
161
  mcp: false,
161
162
  async run(ctx) {
162
- const { runLogout } = await import("./session-B8JNXkwN.js");
163
+ const { runLogout } = await import("./session-BHBIGscL.js");
163
164
  return runLogout(ctx);
164
165
  }
165
166
  });
@@ -3480,7 +3481,7 @@ A purchase_key is for the app's bundle ID; an app with none gets --bundle-id sav
3480
3481
  prompts: true,
3481
3482
  mcp: false,
3482
3483
  async run(ctx, input) {
3483
- const { runAscKeysCreate } = await import("./create-CJljlkJK.js");
3484
+ const { runAscKeysCreate } = await import("./create-DAkNdEzt.js");
3484
3485
  return runAscKeysCreate(ctx, input);
3485
3486
  }
3486
3487
  });
@@ -3867,7 +3868,7 @@ With --app it saves the key you hold on that app instead, as asc keys create --k
3867
3868
  prompts: true,
3868
3869
  mcp: false,
3869
3870
  async run(ctx, { args, flags }) {
3870
- const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-CX7Zf8u-.js");
3871
+ const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-KVcYIplR.js");
3871
3872
  return upsertHeldKey$1(ctx, {
3872
3873
  action: "update",
3873
3874
  key: {
@@ -5119,7 +5120,7 @@ Exit codes
5119
5120
  prompts: true,
5120
5121
  mcp: false,
5121
5122
  async run(ctx, input) {
5122
- const { runSetupApple } = await import("./apple-Dyr7OFBx.js");
5123
+ const { runSetupApple } = await import("./apple-BSKxY7Gx.js");
5123
5124
  return runSetupApple(ctx, input);
5124
5125
  }
5125
5126
  });
@@ -7750,7 +7751,7 @@ const command$45 = defineCommand({
7750
7751
  prompts: true,
7751
7752
  mcp: false,
7752
7753
  async run(ctx, { args, flags }) {
7753
- const { runBuildPipeline } = await import("./build-DD9pSwHX.js");
7754
+ const { runBuildPipeline } = await import("./build-BF22vVdV.js");
7754
7755
  await runBuildPipeline({
7755
7756
  output: ctx.output,
7756
7757
  json: ctx.json
@@ -7811,7 +7812,7 @@ const command$46 = defineCommand({
7811
7812
  prompts: true,
7812
7813
  mcp: false,
7813
7814
  async run(ctx, { args, flags }) {
7814
- const { runCreate } = await import("./create-ChfgWpiM.js");
7815
+ const { runCreate } = await import("./create-CboPfAlN.js");
7815
7816
  return runCreate(ctx, {
7816
7817
  dir: args.dir,
7817
7818
  ...flags
@@ -7854,7 +7855,7 @@ const command$47 = defineCommand({
7854
7855
  prompts: true,
7855
7856
  mcp: false,
7856
7857
  async run(ctx, { args, flags }) {
7857
- const { runStudio } = await import("./server-CvJVusw3.js");
7858
+ const { runStudio } = await import("./server-BqLPwcy9.js");
7858
7859
  await runStudio({
7859
7860
  dirs: args.dir,
7860
7861
  port: flags.port,
@@ -7894,7 +7895,7 @@ const command$48 = defineCommand({
7894
7895
  prompts: true,
7895
7896
  mcp: false,
7896
7897
  async run(ctx, input) {
7897
- const { runPromote } = await import("./promote-Dm2_b1WK.js");
7898
+ const { runPromote } = await import("./promote-Ca4URuHY.js");
7898
7899
  return runPromote(ctx, input);
7899
7900
  }
7900
7901
  });
@@ -7930,15 +7931,27 @@ const command$49 = defineCommand({
7930
7931
  overwriteSource: {
7931
7932
  type: "boolean",
7932
7933
  describe: "Replace the pushed paywalls' source in the app's repo with yours even though it can't be merged - other paywalls and funnels stay"
7934
+ },
7935
+ existing: {
7936
+ type: "boolean",
7937
+ describe: "Only paywalls already on Superwall - skip any not in superwall.lock instead of creating them"
7938
+ },
7939
+ source: {
7940
+ type: "boolean",
7941
+ describe: "Push the project source to every app, also those whose paywalls did not change (shared files such as the design system)"
7933
7942
  }
7934
7943
  },
7935
- examples: [["publish", "Push every changed paywall and funnel and make it live"], ["publish --id plus-upgrade --platform ios -m \"New annual price\"", "Ship one paywall on one platform and record why"]],
7944
+ examples: [
7945
+ ["publish", "Push every changed paywall and funnel and make it live"],
7946
+ ["publish --id plus-upgrade --platform ios -m \"New annual price\"", "Ship one paywall on one platform and record why"],
7947
+ ["publish --existing --source -m \"Rounder corners\"", "Ship a design-system change: every paywall already on Superwall that it rebuilds, and every app's source"]
7948
+ ],
7936
7949
  auth: "none",
7937
7950
  json: false,
7938
7951
  prompts: true,
7939
7952
  mcp: false,
7940
7953
  async run(ctx, input) {
7941
- const { runPush } = await import("./push-CJVfvFZq.js");
7954
+ const { runPush } = await import("./push-Cb4g_l1K.js");
7942
7955
  return runPush(ctx, input, true);
7943
7956
  }
7944
7957
  });
@@ -7974,7 +7987,7 @@ const command$50 = defineCommand({
7974
7987
  prompts: true,
7975
7988
  mcp: false,
7976
7989
  async run(ctx, input) {
7977
- const { runPull } = await import("./pull-DsdOoG-D.js");
7990
+ const { runPull } = await import("./pull-DRMIxqR8.js");
7978
7991
  return runPull(ctx, input);
7979
7992
  }
7980
7993
  });
@@ -8010,6 +8023,14 @@ const command$51 = defineCommand({
8010
8023
  overwriteSource: {
8011
8024
  type: "boolean",
8012
8025
  describe: "Replace the pushed paywalls' source in the app's repo with yours even though it can't be merged - other paywalls and funnels stay"
8026
+ },
8027
+ existing: {
8028
+ type: "boolean",
8029
+ describe: "Only paywalls already on Superwall - skip any not in superwall.lock instead of creating them"
8030
+ },
8031
+ source: {
8032
+ type: "boolean",
8033
+ describe: "Push the project source to every app, also those whose paywalls did not change (shared files such as the design system)"
8013
8034
  }
8014
8035
  },
8015
8036
  examples: [["push", "Push every changed paywall and funnel as a new version"], ["push --id plus-upgrade -m \"New annual price\"", "Push one paywall and record why"]],
@@ -8018,7 +8039,7 @@ const command$51 = defineCommand({
8018
8039
  prompts: true,
8019
8040
  mcp: false,
8020
8041
  async run(ctx, input) {
8021
- const { runPush } = await import("./push-CJVfvFZq.js");
8042
+ const { runPush } = await import("./push-Cb4g_l1K.js");
8022
8043
  return runPush(ctx, input, false);
8023
8044
  }
8024
8045
  });
@@ -8413,7 +8434,7 @@ async function createApp(context, api, nameArg, fields) {
8413
8434
  let name = nameArg;
8414
8435
  let platform = textOf(fields.platform);
8415
8436
  if (interactive && (!name || !platform)) {
8416
- const { scanProject } = await import("./scan-v_WTE722.js");
8437
+ const { scanProject } = await import("./scan-2WqHGkjU.js");
8417
8438
  const detected = (await scanProject(context.installDir).catch(() => null))?.apps[0];
8418
8439
  if (detected && !name && !platform) {
8419
8440
  ui.info(`Detected \`${detected.framework.name}\`` + (detected.details ? ` · \`${detected.details}\`` : ""));
@@ -8723,7 +8744,7 @@ async function runResource(ctx, resource, action, value$1, value2, flags) {
8723
8744
  if (action === "create") return create(ctx, ctx.api, resource, value$1, value2, flags);
8724
8745
  if (action === "use" && resource === "apps") return useApp(ctx, ctx.api, value$1);
8725
8746
  if (action === "storekit" && resource === "products") {
8726
- const { writeStoreKit } = await import("./storekit-D5eopLM0.js");
8747
+ const { writeStoreKit } = await import("./storekit-Dewj_5qg.js");
8727
8748
  return writeStoreKit(ctx, ctx.api, flags.fields.out);
8728
8749
  }
8729
8750
  throw new Error(`Unknown action "${action}" for ${resource}.`);
@@ -10077,7 +10098,7 @@ const command$62 = defineCommand({
10077
10098
  prompts: true,
10078
10099
  mcp: false,
10079
10100
  async run(ctx) {
10080
- const { runDoctor } = await import("./doctor-XtXW6tKE.js");
10101
+ const { runDoctor } = await import("./doctor-BqZGaQE5.js");
10081
10102
  return runDoctor(ctx);
10082
10103
  }
10083
10104
  });
@@ -10201,13 +10222,13 @@ function parseFeedbackReport(value$1) {
10201
10222
  }
10202
10223
  };
10203
10224
  }
10204
- const rateLimited = (error) => error instanceof ApiError && error.status === 429;
10225
+ const fallsBack = (error) => error instanceof ApiError && error.status !== 429 || error instanceof ApiUnreachableError || error instanceof NotLoggedInError || error instanceof SyntaxError;
10205
10226
  async function sendToApi(api, feedback, via) {
10206
10227
  try {
10207
10228
  return parseFeedbackReport(await api.post("/v2/feedback", buildFeedbackBody(feedback, via)));
10208
10229
  } catch (error) {
10209
- if (rateLimited(error)) throw error;
10210
- return;
10230
+ if (fallsBack(error)) return void 0;
10231
+ throw error;
10211
10232
  }
10212
10233
  }
10213
10234
  function buildFeedbackEvent(feedback, via, distinctId, session, osRelease, report) {
@@ -10422,7 +10443,7 @@ const command$64 = defineCommand({
10422
10443
  prompts: true,
10423
10444
  mcp: false,
10424
10445
  async run(ctx, input) {
10425
- const { runSkills } = await import("./skills-8um2fBPS.js");
10446
+ const { runSkills } = await import("./skills-Bbtq8V_D.js");
10426
10447
  return runSkills(ctx, input);
10427
10448
  }
10428
10449
  });
@@ -10438,7 +10459,7 @@ const command$65 = defineCommand({
10438
10459
  prompts: true,
10439
10460
  mcp: false,
10440
10461
  async run(ctx) {
10441
- const { runUpgrade } = await import("./upgrade-CoWCEnoi.js");
10462
+ const { runUpgrade } = await import("./upgrade-DfZfDljd.js");
10442
10463
  return runUpgrade(ctx, AUTO_UPDATE_TARGET());
10443
10464
  }
10444
10465
  });
@@ -10478,7 +10499,7 @@ const command$66 = defineCommand({
10478
10499
  mcp: false,
10479
10500
  channel: "next",
10480
10501
  async run(ctx, { args, flags }) {
10481
- const { runWorkspaceApprove } = await import("./approve-Czs1-JO9.js");
10502
+ const { runWorkspaceApprove } = await import("./approve-DbwsYO4s.js");
10482
10503
  await runWorkspaceApprove(ctx, {
10483
10504
  version: args.version,
10484
10505
  ...flags
@@ -10504,7 +10525,7 @@ const command$67 = defineCommand({
10504
10525
  mcp: false,
10505
10526
  channel: "next",
10506
10527
  async run(ctx, { args, flags }) {
10507
- const { runWorkspaceCreate } = await import("./starter-CiLrp1cN.js");
10528
+ const { runWorkspaceCreate } = await import("./starter-hcwocv_Z.js");
10508
10529
  await runWorkspaceCreate(ctx, {
10509
10530
  dir: args.dir,
10510
10531
  install: flags.install
@@ -10588,7 +10609,7 @@ const command$68 = defineCommand({
10588
10609
  mcp: false,
10589
10610
  channel: "next",
10590
10611
  async run(ctx, { args, flags }) {
10591
- const { runWorkspaceDev } = await import("./run-CgLmD2vR.js");
10612
+ const { runWorkspaceDev } = await import("./run-Czbb-sHR.js");
10592
10613
  await runWorkspaceDev(ctx, {
10593
10614
  dir: args.dir,
10594
10615
  ...flags
@@ -10644,7 +10665,7 @@ const command$69 = defineCommand({
10644
10665
  mcp: false,
10645
10666
  channel: "next",
10646
10667
  async run(ctx, { args, flags }) {
10647
- const { runWorkspaceInstall } = await import("./install-CVUXsx8c.js");
10668
+ const { runWorkspaceInstall } = await import("./install-DoSYCwLL.js");
10648
10669
  await runWorkspaceInstall(ctx, {
10649
10670
  entrypoint: args.entrypoint,
10650
10671
  ...flags
@@ -10672,7 +10693,7 @@ const command$70 = defineCommand({
10672
10693
  mcp: false,
10673
10694
  channel: "next",
10674
10695
  async run(ctx, { flags }) {
10675
- const { runWorkspaceList } = await import("./install-CVUXsx8c.js");
10696
+ const { runWorkspaceList } = await import("./install-DoSYCwLL.js");
10676
10697
  await runWorkspaceList(ctx, flags);
10677
10698
  }
10678
10699
  });
@@ -10700,7 +10721,7 @@ const command$71 = defineCommand({
10700
10721
  mcp: false,
10701
10722
  channel: "next",
10702
10723
  async run(ctx, { args, flags }) {
10703
- const { runWorkspaceLogs } = await import("./status-CoYMK7QL.js");
10724
+ const { runWorkspaceLogs } = await import("./status-K1IGp6pe.js");
10704
10725
  await runWorkspaceLogs(ctx, {
10705
10726
  version: args.version,
10706
10727
  ...flags
@@ -10739,7 +10760,7 @@ const command$72 = defineCommand({
10739
10760
  mcp: false,
10740
10761
  channel: "next",
10741
10762
  async run(ctx, { args, flags }) {
10742
- const { runWorkspaceOpen } = await import("./install-CVUXsx8c.js");
10763
+ const { runWorkspaceOpen } = await import("./install-DoSYCwLL.js");
10743
10764
  await runWorkspaceOpen(ctx, {
10744
10765
  entrypoint: args.entrypoint,
10745
10766
  ...flags
@@ -10776,7 +10797,7 @@ const command$73 = defineCommand({
10776
10797
  mcp: false,
10777
10798
  channel: "next",
10778
10799
  async run(ctx, { args, flags }) {
10779
- const { runWorkspacePull } = await import("./pull-zYAbqo9n.js");
10800
+ const { runWorkspacePull } = await import("./pull-_qs90vGA.js");
10780
10801
  await runWorkspacePull(ctx, {
10781
10802
  dir: args.dir,
10782
10803
  ...flags
@@ -10822,7 +10843,7 @@ const command$74 = defineCommand({
10822
10843
  mcp: false,
10823
10844
  channel: "next",
10824
10845
  async run(ctx, { args, flags }) {
10825
- const { runWorkspacePush } = await import("./push-SVzv7fzE.js");
10846
+ const { runWorkspacePush } = await import("./push-DZKsd6Dp.js");
10826
10847
  await runWorkspacePush(ctx, {
10827
10848
  dir: args.dir,
10828
10849
  ...flags
@@ -10853,7 +10874,7 @@ const command$75 = defineCommand({
10853
10874
  mcp: false,
10854
10875
  channel: "next",
10855
10876
  async run(ctx, { args, flags }) {
10856
- const { runWorkspaceShare } = await import("./status-CoYMK7QL.js");
10877
+ const { runWorkspaceShare } = await import("./status-K1IGp6pe.js");
10857
10878
  await runWorkspaceShare(ctx, {
10858
10879
  version: args.version,
10859
10880
  ...flags
@@ -10886,7 +10907,7 @@ const command$76 = defineCommand({
10886
10907
  mcp: false,
10887
10908
  channel: "next",
10888
10909
  async run(ctx, { flags }) {
10889
- const { runWorkspaceStatus } = await import("./status-CoYMK7QL.js");
10910
+ const { runWorkspaceStatus } = await import("./status-K1IGp6pe.js");
10890
10911
  await runWorkspaceStatus(ctx, flags);
10891
10912
  }
10892
10913
  });
@@ -10988,7 +11009,7 @@ const command$77 = defineCommand({
10988
11009
  mcp: false,
10989
11010
  channel: "next",
10990
11011
  async run(ctx, { args, flags }) {
10991
- const { runWorkspaceTry } = await import("./try-BWbzgelb.js");
11012
+ const { runWorkspaceTry } = await import("./try-BUnhITXS.js");
10992
11013
  await runWorkspaceTry(ctx, {
10993
11014
  entrypoint: args.entrypoint,
10994
11015
  ...flags
@@ -11020,7 +11041,7 @@ const command$78 = defineCommand({
11020
11041
  mcp: false,
11021
11042
  channel: "next",
11022
11043
  async run(ctx, { args, flags }) {
11023
- const { runWorkspaceUpdate } = await import("./starter-CiLrp1cN.js");
11044
+ const { runWorkspaceUpdate } = await import("./starter-hcwocv_Z.js");
11024
11045
  await runWorkspaceUpdate(ctx, {
11025
11046
  dir: args.dir,
11026
11047
  install: flags.install,
@@ -11063,8 +11084,8 @@ const command$79 = defineCommand({
11063
11084
  prompts: true,
11064
11085
  mcp: false,
11065
11086
  async run(ctx, { flags }) {
11066
- const { runIntegrate } = await import("./integrate-qvKd9pVW.js");
11067
- const { printPlaybook } = await import("./playbook-Du4Oydbf.js");
11087
+ const { runIntegrate } = await import("./integrate-BSqd2wgI.js");
11088
+ const { printPlaybook } = await import("./playbook-B-Pdonhg.js");
11068
11089
  if (flags.skill) return printPlaybook(ctx.installDir, "integrate");
11069
11090
  await runIntegrate({
11070
11091
  ...ctx,
@@ -11110,8 +11131,8 @@ const command$80 = defineCommand({
11110
11131
  prompts: true,
11111
11132
  mcp: false,
11112
11133
  async run(ctx, { args, flags }) {
11113
- const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-SkkLLdmr.js");
11114
- const { printPlaybook } = await import("./playbook-Du4Oydbf.js");
11134
+ const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-CDdUCTH3.js");
11135
+ const { printPlaybook } = await import("./playbook-B-Pdonhg.js");
11115
11136
  if (flags.screen !== void 0) return runScreenMigration(ctx, {
11116
11137
  path: flags.screen,
11117
11138
  screenshot: flags.screenshot
@@ -11145,8 +11166,8 @@ const command$81 = defineCommand({
11145
11166
  prompts: true,
11146
11167
  mcp: false,
11147
11168
  async run(ctx, { flags }) {
11148
- const { runReview } = await import("./integrate-qvKd9pVW.js");
11149
- const { printPlaybook } = await import("./playbook-Du4Oydbf.js");
11169
+ const { runReview } = await import("./integrate-BSqd2wgI.js");
11170
+ const { printPlaybook } = await import("./playbook-B-Pdonhg.js");
11150
11171
  if (flags.skill) return printPlaybook(ctx.installDir, flags.fix ? "review-fix" : "review");
11151
11172
  await runReview(ctx, flags.fix);
11152
11173
  }
@@ -1,7 +1,7 @@
1
- import { u as DASHBOARD_ORIGIN_OVERRIDE } from "./environment-BWT2S4qC.js";
2
- import { a as orgProjects, n as listOrganizations } from "./orgs-D6Kk96mG.js";
3
- import { i as WORKSPACE_FILE } from "./scope-CCb_7UvN.js";
4
- import { r as WorkspaceError } from "./project-CP6hiHra.js";
1
+ import { u as DASHBOARD_ORIGIN_OVERRIDE } from "./environment-FR3bcq0D.js";
2
+ import { a as orgProjects, n as listOrganizations } from "./orgs-BxlwcvTu.js";
3
+ import { i as WORKSPACE_FILE } from "./scope-t_SqFN6W.js";
4
+ import { r as WorkspaceError } from "./project-DHU5wc3R.js";
5
5
  import * as fs from "node:fs";
6
6
  import * as path from "node:path";
7
7
 
@@ -104,33 +104,58 @@ function dashboardOrigin(apiHost) {
104
104
  return DASHBOARD_ORIGIN_OVERRIDE() ?? (new URL(apiHost).hostname.endsWith(".dev") ? "https://app.superwall.dev" : "https://app.superwall.com");
105
105
  }
106
106
  const workspaceUrl = (apiHost, workspace) => `${dashboardOrigin(apiHost)}/${workspace.organization_id}/workspaces/${encodeURIComponent(workspace.slug)}`;
107
- const appEntrypointUrl = (apiHost, workspace, applicationId, entrypoint) => `${dashboardOrigin(apiHost)}/${workspace.organization_id}/${applicationId}/apps/${workspace.id}/${encodeURIComponent(entrypoint)}`;
107
+ const EMBED_SLOTS = new Set([
108
+ "app.dashboard.widget@1",
109
+ "campaign.tab@1",
110
+ "campaign.metric@1",
111
+ "user.panel@1",
112
+ "user.action@1"
113
+ ]);
114
+ const appEntrypointUrl = (apiHost, workspace, applicationId, entrypoint) => {
115
+ const app = `${dashboardOrigin(apiHost)}/${workspace.organization_id}/${applicationId}`;
116
+ if (entrypoint.slot === "chart.source@1") return `${app}/charts?cS=workspaces`;
117
+ if (EMBED_SLOTS.has(entrypoint.slot)) return `${app}/embeds`;
118
+ return `${app}/apps/${workspace.id}/${encodeURIComponent(entrypoint.id)}`;
119
+ };
120
+ const mainEntrypoint = (entrypoints) => entrypoints.find((entrypoint) => entrypoint.slot === "app.page@1") ?? entrypoints.find((entrypoint) => EMBED_SLOTS.has(entrypoint.slot)) ?? entrypoints.find((entrypoint) => entrypoint.slot === "chart.source@1");
108
121
  async function openLink(ctx, workspace, manifest) {
109
122
  const fallback = { url: workspaceUrl(ctx.api.host, workspace) };
110
123
  const entrypoints = manifest?.entrypoints ?? [];
111
- const appPage = entrypoints.find((entrypoint) => entrypoint.slot === "app.page@1");
112
- if (!appPage || entrypoints.some((entrypoint) => entrypoint.slot === "org.page@1")) return fallback;
124
+ const main = mainEntrypoint(entrypoints);
125
+ if (!main || entrypoints.some((entrypoint) => entrypoint.slot === "org.page@1")) return fallback;
113
126
  const apps = (await orgProjects(ctx.api, String(workspace.organization_id)).catch(() => [])).flatMap((project) => project.applications ?? []);
114
127
  const [first] = apps;
115
128
  if (first === void 0) return fallback;
116
129
  return {
117
- url: appEntrypointUrl(ctx.api.host, workspace, String(first.id), appPage.id),
118
- entrypoint: appPage.id,
130
+ url: appEntrypointUrl(ctx.api.host, workspace, String(first.id), main),
119
131
  app: String(first.name ?? first.id),
120
132
  otherApps: apps.length > 1
121
133
  };
122
134
  }
135
+ async function awaitingInstall(api, workspaceId, manifest) {
136
+ const entrypoints = manifest?.entrypoints ?? [];
137
+ if (entrypoints.length === 0 || entrypoints.some((entrypoint) => entrypoint.slot === "org.page@1")) return false;
138
+ const installed = await listInstallations(api, workspaceId).catch(() => void 0);
139
+ if (installed === void 0) return false;
140
+ return entrypoints.every((entrypoint) => !installed.some((row) => row.entrypoint_id === entrypoint.id));
141
+ }
123
142
  const latestManifest = (versions) => newestFirst(versions).find((version) => version.manifest !== null)?.manifest;
124
- async function visibilityOf(ctx, workspaceId, version) {
143
+ async function visibilityOf(ctx, workspaceId, version, manifest) {
125
144
  const [workspace, me] = await Promise.all([getWorkspace(ctx.api, workspaceId).catch(() => void 0), getMe(ctx.api).catch(() => void 0)]);
126
145
  if (workspace?.state === "turned_off") return {
127
146
  visibleTo: "nobody",
128
147
  sentence: `This workspace is turned off, so nobody can see version ${version}.`
129
148
  };
130
- if (workspace?.active_version_id === version) return {
131
- visibleTo: "everyone",
132
- sentence: `Version ${version} is live.`
133
- };
149
+ if (workspace?.active_version_id === version) {
150
+ if (await awaitingInstall(ctx.api, workspaceId, manifest)) return {
151
+ visibleTo: "its_author",
152
+ sentence: `Version ${version} is approved, but nothing is installed yet, so only its author can see it, marked "Not installed". An admin chooses where it shows with \`superwall workspaces install\`.`
153
+ };
154
+ return {
155
+ visibleTo: "everyone",
156
+ sentence: `Version ${version} is live.`
157
+ };
158
+ }
134
159
  if (workspace?.author_version_id === version) return {
135
160
  visibleTo: "you",
136
161
  sentence: `Only you can see version ${version} until an admin approves it.`
@@ -168,4 +193,4 @@ async function pickVersion(ctx, workspace, requested, matches = () => true) {
168
193
  }
169
194
 
170
195
  //#endregion
171
- export { mintSourceAccess as C, startBuild as E, listWorkspaces as S, setInstallation as T, getBuild as _, openLink as a, listMembers as b, resolveWorkspace as c, readBinding as d, readSourceFile as f, deleteInstallation as g, createWorkspace as h, newestFirst as i, roleCanApprove as l, approveVersion as m, dashboardOrigin as n, pickVersion as o, writeBinding as p, latestManifest as r, projectRoot as s, appEntrypointUrl as t, visibilityOf as u, getMe as v, requestDeploy as w, listVersions as x, listInstallations as y };
196
+ export { listWorkspaces as C, startBuild as D, setInstallation as E, listVersions as S, requestDeploy as T, deleteInstallation as _, newestFirst as a, listInstallations as b, projectRoot as c, visibilityOf as d, readBinding as f, createWorkspace as g, approveVersion as h, latestManifest as i, resolveWorkspace as l, writeBinding as m, awaitingInstall as n, openLink as o, readSourceFile as p, dashboardOrigin as r, pickVersion as s, appEntrypointUrl as t, roleCanApprove as u, getBuild as v, mintSourceAccess as w, listMembers as x, getMe as y };
@@ -1,5 +1,5 @@
1
- import { n as ApiUnreachableError, t as ApiError } from "./client-AI9H4GGB.js";
2
- import { r as listReachableProjects } from "./orgs-D6Kk96mG.js";
1
+ import { n as ApiUnreachableError, t as ApiError } from "./client-DHlsTaP1.js";
2
+ import { r as listReachableProjects } from "./orgs-BxlwcvTu.js";
3
3
 
4
4
  //#region src/core/json.ts
5
5
  function isRecord(value) {
@@ -1,21 +1,21 @@
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 { t as ApiError } from "./client-AI9H4GGB.js";
3
+ import "./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 "./spinner-BANVLncC.js";
7
+ import "./spinner-025_eqCX.js";
8
8
  import "./ui-D_qf3Gvw.js";
9
- import "./orgs-D6Kk96mG.js";
10
- import "./resources-BaP3p_LY.js";
11
- import "./lookup-gjcKIZvh.js";
12
- import "./types-JdxmnCko.js";
13
- import { i as WORKSPACE_FILE } from "./scope-CCb_7UvN.js";
14
- import "./download-2Zu2I_Og.js";
15
- import { a as findEntrypoint, o as readManifest, r as WorkspaceError, s as readProject } from "./project-CP6hiHra.js";
16
- import { C as WORKSPACE_HEADER_PREFIX, S as WORKSPACE_COMPATIBILITY_DATE, _ as METRIC_LIMITS, b as READOUT_LIMITS, c as defaultRange, d as resolveWranglerPackage, f as API_HOST, g as ENTRYPOINT_HEADER, i as seriesProblem, l as parseContextJson, m as CONTEXT_HEADER, o as SLOTS, p as BRIDGE_PROTOCOL, r as readoutProblem, s as buildContext, t as checkMetricQuery, u as bundleWorkspace, v as MOUNT_LOAD_TIMEOUT_MS, w as isInternalPath, x as TRIGGER_HEADER, y as PLATFORM_HOST } from "./series-TAixFBWW.js";
17
- import { n as resolveOrganization, t as resolveAppScope } from "./organization-BOECL3vZ.js";
18
- import { i as warnIfSdkBehind } from "./sdk-TvT0p_nO.js";
9
+ import "./orgs-BxlwcvTu.js";
10
+ import "./resources-COOEvqqW.js";
11
+ import "./lookup-D23dAOz6.js";
12
+ import "./types-CB6O_wjy.js";
13
+ import { i as WORKSPACE_FILE } from "./scope-t_SqFN6W.js";
14
+ import "./download-F8OtTJze.js";
15
+ import { a as findEntrypoint, o as readManifest, r as WorkspaceError, s as readProject } from "./project-DHU5wc3R.js";
16
+ import { C as WORKSPACE_HEADER_PREFIX, S as WORKSPACE_COMPATIBILITY_DATE, _ as METRIC_LIMITS, b as READOUT_LIMITS, c as defaultRange, d as resolveWranglerPackage, f as API_HOST, g as ENTRYPOINT_HEADER, i as seriesProblem, l as parseContextJson, m as CONTEXT_HEADER, o as SLOTS, p as BRIDGE_PROTOCOL, r as readoutProblem, s as buildContext, t as checkMetricQuery, u as bundleWorkspace, v as MOUNT_LOAD_TIMEOUT_MS, w as isInternalPath, x as TRIGGER_HEADER, y as PLATFORM_HOST } from "./series--Wp7TngJ.js";
17
+ import { n as resolveOrganization, t as resolveAppScope } from "./organization-DIODPOwO.js";
18
+ import { i as warnIfSdkBehind } from "./sdk-CyttTnGf.js";
19
19
  import { createRequire } from "node:module";
20
20
  import * as fs from "node:fs";
21
21
  import * as path from "node:path";
@@ -587,7 +587,28 @@ svg { display: block; width: 100%; height: 160px; margin-bottom: 12px; }
587
587
  .row label { margin-bottom: 0; }
588
588
  .row h1 { flex: 1; }
589
589
  `;
590
+ const WATCH_LOAD = `
591
+ const watchLoad = (doc, ms, isReady, onLate) => {
592
+ let timer = 0;
593
+ const stop = () => {
594
+ clearTimeout(timer);
595
+ doc.removeEventListener("visibilitychange", restart);
596
+ };
597
+ const restart = () => {
598
+ clearTimeout(timer);
599
+ if (doc.visibilityState !== "visible") return;
600
+ timer = setTimeout(() => {
601
+ stop();
602
+ if (!isReady()) onLate();
603
+ }, ms);
604
+ };
605
+ doc.addEventListener("visibilitychange", restart);
606
+ restart();
607
+ return stop;
608
+ };
609
+ `;
590
610
  const SCRIPT = `
611
+ ${WATCH_LOAD}
591
612
  const PROTOCOL = ${JSON.stringify(BRIDGE_PROTOCOL)};
592
613
  const LOAD_TIMEOUT_MS = ${MOUNT_LOAD_TIMEOUT_MS};
593
614
  const TOKENS = { light: ${JSON.stringify(LIGHT_TOKENS)}, dark: ${JSON.stringify(DARK_TOKENS)} };
@@ -669,7 +690,8 @@ const showFrame = async (entrypoint, generation) => {
669
690
  const slot = state.slots[session.slot];
670
691
  const fills = slot.shape === "page" || session.slot === "app.dashboard.widget@1";
671
692
  const nonce = crypto.randomUUID().replaceAll("-", "");
672
- mount = { nonce, origin: session.origin, connected: false, slot, ready: false, timer: 0 };
693
+ mount?.stopWatching?.();
694
+ mount = { nonce, origin: session.origin, connected: false, slot, ready: false, stopWatching: null };
673
695
  frame = el("iframe", {
674
696
  class: fills ? "fills" : undefined,
675
697
  title: entrypoint.title,
@@ -678,10 +700,11 @@ const showFrame = async (entrypoint, generation) => {
678
700
  onload: () => {
679
701
  mount.connected = true;
680
702
  frame.contentWindow.postMessage(hostMessage({ _tag: "connect", theme: theme(), context: session.context }), mount.origin);
681
- clearTimeout(mount.timer);
682
- mount.timer = setTimeout(() => {
683
- if (!mount.ready) log("It didn't send ready within " + LOAD_TIMEOUT_MS / 1000 + " seconds. In the dashboard this shows as: This app couldn't load. Try again.");
684
- }, LOAD_TIMEOUT_MS);
703
+ mount.stopWatching?.();
704
+ const watched = mount;
705
+ mount.stopWatching = watchLoad(document, LOAD_TIMEOUT_MS, () => watched.ready || mount !== watched, () => {
706
+ log("It didn't send ready within " + LOAD_TIMEOUT_MS / 1000 + " seconds. In the dashboard this shows as: This app couldn't load. Try again.");
707
+ });
685
708
  },
686
709
  });
687
710
  if (!fills && slot.minHeight) frame.style.height = slot.minHeight + "px";
@@ -1,5 +1,5 @@
1
- import { d as DASHBOARD_URL } from "./environment-BWT2S4qC.js";
2
- import { i as packagedDir } from "./paths-REb-GrbX.js";
1
+ import { d as DASHBOARD_URL } from "./environment-FR3bcq0D.js";
2
+ import { i as packagedDir } from "./paths-BaeoxDze.js";
3
3
  import { spawn } from "node:child_process";
4
4
  import { readFileSync } from "node:fs";
5
5
  import { join } from "node:path";
@@ -0,0 +1,4 @@
1
+ import "./environment-FR3bcq0D.js";
2
+ import { t as scanProject } from "./scan-BZS2FZeU.js";
3
+
4
+ export { scanProject };
@@ -1,4 +1,4 @@
1
- import { h as Integration } from "./environment-BWT2S4qC.js";
1
+ import { h as Integration } from "./environment-FR3bcq0D.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,9 +1,9 @@
1
1
  import { f as writeDefaultApp, r as readDefaultApp } from "./config-CGcG7GOt.js";
2
- import { t as apiCall, u as currentHost } from "./spinner-BANVLncC.js";
3
- import { i as orgIdOf, o as organizationOf, t as listOrgGroups } from "./orgs-D6Kk96mG.js";
4
- import { l as findPaywall, m as listProjects, y as platformLabel } from "./resources-BaP3p_LY.js";
5
- import { t as chooseOrgOfApps } from "./org-C04eAO-j.js";
6
- import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-gjcKIZvh.js";
2
+ import { t as apiCall, u as currentHost } from "./spinner-025_eqCX.js";
3
+ import { i as orgIdOf, o as organizationOf, t as listOrgGroups } from "./orgs-BxlwcvTu.js";
4
+ import { l as findPaywall, m as listProjects, y as platformLabel } from "./resources-COOEvqqW.js";
5
+ import { t as chooseOrgOfApps } from "./org-DZ41muzA.js";
6
+ import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-D23dAOz6.js";
7
7
 
8
8
  //#region src/core/account/scope.ts
9
9
  function moveFirst(items, match) {