@superwall/cli 2.0.0 → 2.1.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 (142) hide show
  1. package/README.md +3 -2
  2. package/dist/{apple-CkKlHBZ9.js → apple-BHbX0jbn.js} +13 -13
  3. package/dist/auth.d.ts +1 -1
  4. package/dist/auth.js +3 -3
  5. package/dist/{billing-XCZU_T46.js → billing-4zhIBFRQ.js} +3 -3
  6. package/dist/{bind-drne__Ys.js → bind-CHLHmxgA.js} +4 -4
  7. package/dist/{build-Gpdq5QXP.js → build-5PQeSnNN.js} +6 -6
  8. package/dist/{client-DP6Rc0t_.js → client-BIvOmWPC.js} +7 -3
  9. package/dist/{create-BBrtgUgS.js → create-BSNIFsnN.js} +6 -6
  10. package/dist/{create-Cwc3SRWJ.js → create-VK-pNfN7.js} +23 -23
  11. package/dist/create-oj3zXvHZ.js +19 -0
  12. package/dist/{doctor-C9ldpPFC.js → doctor-9JS96QkX.js} +6 -6
  13. package/dist/{drivers-DNrx4LWA.js → drivers-BamBJ10Y.js} +3 -3
  14. package/dist/entry.js +20 -21
  15. package/dist/{environment-DF1qKlny.js → environment-eV7LEnSN.js} +15 -2
  16. package/dist/{existing-78LWSsqS.js → existing-C8dSYHGk.js} +2 -2
  17. package/dist/{held-Cy8Wl4D1.js → held-BMisHn8F.js} +6 -6
  18. package/dist/held-DeJW2gUk.js +16 -0
  19. package/dist/{integrate-DcJhpXy8.js → integrate-VWtTNPCr.js} +22 -22
  20. package/dist/login-2JHCG6c1.js +16 -0
  21. package/dist/{login-D0lh3_JI.js → login-BimbukE5.js} +5 -5
  22. package/dist/{login-B2TsCE2H.js → login-BmwG14LC.js} +1 -1
  23. package/dist/{lookup-D-nmmAbw.js → lookup-k9EeOiZr.js} +2 -2
  24. package/dist/{migrate-Cfec564E.js → migrate-C86h6jeF.js} +22 -22
  25. package/dist/{notification-url-YDbq6FMA.js → notification-url-BVaTgWZ5.js} +2 -2
  26. package/dist/{open-Ba2vBl1_.js → open-0tDCQOXC.js} +10 -10
  27. package/dist/{org-D0g_q3mv.js → org-DUwdrKPV.js} +2 -2
  28. package/dist/{paths-DxSLdpOI.js → paths-BCbjCLP5.js} +1 -1
  29. package/dist/{playbook-DIeb7hne.js → playbook-oov9yV0q.js} +10 -10
  30. package/dist/{promote-COD4fYdz.js → promote-DPGPamkE.js} +16 -16
  31. package/dist/push-Chp21y3a.js +22 -0
  32. package/dist/{push-CncywhkQ.js → push-Cz4lJ8Qd.js} +27 -14
  33. package/dist/{registry-DSrosOYs.js → registry-CTczUigi.js} +525 -179
  34. package/dist/{resources-Dqr01Dep.js → resources-B1qKDVXd.js} +18 -6
  35. package/dist/{run-C9qg_QlC.js → run-DTPsVmFw.js} +2 -2
  36. package/dist/scan-B1SkkUi7.js +4 -0
  37. package/dist/{scan-DLrsrFS9.js → scan-Bb48xZqB.js} +1 -1
  38. package/dist/{scope-V336uz8j.js → scope-B6UYGuwn.js} +4 -4
  39. package/dist/{selection-Rdw-ZUoG.js → selection-BbNk9r1q.js} +10 -4
  40. package/dist/server-CwrZ-I1r.js +22 -0
  41. package/dist/{server-D0tGG8C4.js → server-EYBMKAG1.js} +10 -8
  42. package/dist/{session-D_nEWKXT.js → session-Crg9X-FI.js} +41 -13
  43. package/dist/session-DItGa4z0.js +6 -0
  44. package/dist/{session-CFAmMhem.js → session-xG9E8J2N.js} +1 -1
  45. package/dist/skills/superwall-framework/SKILL.md +43 -7
  46. package/dist/skills/superwall-framework/references/cli.md +1 -0
  47. package/dist/skills/superwall-framework/references/examples.md +1 -0
  48. package/dist/skills/superwall-framework/references/layout.md +34 -1
  49. package/dist/skills/superwall-framework/references/migrate-from-editor.md +16 -3
  50. package/dist/{skills-BvFOa4y6.js → skills-BdMKE2uO.js} +5 -4
  51. package/dist/{skills-DMG4bpKk.js → skills-Dg3k6TRC.js} +8 -8
  52. package/dist/{spinner-CneRK5rk.js → spinner-Ba3XhlMb.js} +3 -3
  53. package/dist/{storage-s2Dnz-yl.js → storage-DIkYajce.js} +1 -1
  54. package/dist/{storekit-yY_kS2iR.js → storekit-C2UzIIMs.js} +3 -3
  55. package/dist/storekit-DHNxDDpA.js +16 -0
  56. package/dist/{telemetry-DtG92m5O.js → telemetry-CVP8O6Y3.js} +1 -1
  57. package/dist/{token-DzRh7dI1.js → token-IWv2httm.js} +1 -1
  58. package/dist/tools-skills/animate-onboarding/SKILL.md +467 -0
  59. package/dist/tools-skills/animate-onboarding/references/engine.md +494 -0
  60. package/dist/tools-skills/animate-onboarding/references/framework/Question.tsx +71 -0
  61. package/dist/tools-skills/animate-onboarding/references/framework/README.md +40 -0
  62. package/dist/tools-skills/animate-onboarding/references/framework/answers.ts +19 -0
  63. package/dist/tools-skills/animate-onboarding/references/framework/flow.ts +80 -0
  64. package/dist/tools-skills/animate-onboarding/references/framework/handoffs.ts +869 -0
  65. package/dist/tools-skills/animate-onboarding/references/framework/layout.tsx +113 -0
  66. package/dist/tools-skills/animate-onboarding/references/framework/motion.css +559 -0
  67. package/dist/tools-skills/animate-onboarding/references/framework/useStoryRouter.ts +48 -0
  68. package/dist/tools-skills/animate-onboarding/references/handoffs.md +375 -0
  69. package/dist/tools-skills/animate-onboarding/references/imageReady.ts +92 -0
  70. package/dist/tools-skills/animate-onboarding/references/morphFrame.ts +356 -0
  71. package/dist/tools-skills/animate-onboarding/references/performance.md +41 -0
  72. package/dist/tools-skills/animate-onboarding/references/web-runtime/README.md +17 -0
  73. package/dist/tools-skills/animate-onboarding/references/web-runtime/handoffs.ts +858 -0
  74. package/dist/tools-skills/animate-onboarding/references/web-runtime/story-motion.css +301 -0
  75. package/dist/tools-skills/mobile-design/SKILL.md +447 -0
  76. package/dist/tools-skills/mobile-design/references/responsive.md +162 -0
  77. package/dist/tools-skills/onboarding-questions/SKILL.md +231 -0
  78. package/dist/tools-skills/onboarding-questions/references/arpu-questions.md +139 -0
  79. package/dist/tools-skills/onboarding-questions/references/craft.md +142 -0
  80. package/dist/tools-skills/onboarding-questions/references/example-reflective.md +117 -0
  81. package/dist/tools-skills/superwall/SKILL.md +263 -0
  82. package/dist/tools-skills/superwall/references/api.md +303 -0
  83. package/dist/tools-skills/superwall/references/asa.md +166 -0
  84. package/dist/tools-skills/superwall/references/asc.md +95 -0
  85. package/dist/tools-skills/superwall/references/dashboard-links.md +57 -0
  86. package/dist/tools-skills/superwall/references/data-analytics.md +896 -0
  87. package/dist/tools-skills/superwall/references/docs.md +51 -0
  88. package/dist/tools-skills/superwall/references/sdk-integration.md +104 -0
  89. package/dist/tools-skills/superwall/references/sdk-source.md +18 -0
  90. package/dist/tools-skills/superwall/workflows/dashboard/playbook.md +76 -0
  91. package/dist/tools-skills/superwall/workflows/dashboard/setup.md +100 -0
  92. package/dist/tools-skills/superwall/workflows/integrate/android.md +292 -0
  93. package/dist/tools-skills/superwall/workflows/integrate/expo.md +272 -0
  94. package/dist/tools-skills/superwall/workflows/integrate/flutter.md +285 -0
  95. package/dist/tools-skills/superwall/workflows/integrate/ios.md +314 -0
  96. package/dist/tools-skills/superwall/workflows/integrate/playbook.md +83 -0
  97. package/dist/tools-skills/superwall/workflows/integrate/react-native.md +246 -0
  98. package/dist/tools-skills/superwall/workflows/migrate/adapty.md +229 -0
  99. package/dist/tools-skills/superwall/workflows/migrate/playbook.md +78 -0
  100. package/dist/tools-skills/superwall/workflows/migrate/qonversion.md +227 -0
  101. package/dist/tools-skills/superwall/workflows/migrate/revenuecat.md +414 -0
  102. package/dist/tools-skills/superwall/workflows/placements/android.md +175 -0
  103. package/dist/tools-skills/superwall/workflows/placements/expo.md +161 -0
  104. package/dist/tools-skills/superwall/workflows/placements/flutter.md +139 -0
  105. package/dist/tools-skills/superwall/workflows/placements/ios.md +165 -0
  106. package/dist/tools-skills/superwall/workflows/placements/playbook.md +69 -0
  107. package/dist/tools-skills/superwall/workflows/placements/react-native.md +145 -0
  108. package/dist/tools-skills/superwall/workflows/placements/strategy.md +222 -0
  109. package/dist/tools-skills/superwall/workflows/review/android.md +120 -0
  110. package/dist/tools-skills/superwall/workflows/review/expo.md +100 -0
  111. package/dist/tools-skills/superwall/workflows/review/flutter.md +99 -0
  112. package/dist/tools-skills/superwall/workflows/review/ios.md +108 -0
  113. package/dist/tools-skills/superwall/workflows/review/playbook.md +70 -0
  114. package/dist/tools-skills/superwall/workflows/review/react-native.md +100 -0
  115. package/dist/tools-skills/superwall-editor/SKILL.md +113 -0
  116. package/dist/tools-skills/superwall-editor/references/cli.md +135 -0
  117. package/dist/tools-skills/superwall-editor/references/design.md +51 -0
  118. package/dist/tools-skills/superwall-editor/references/native-elements.md +171 -0
  119. package/dist/tools-skills/superwall-editor/references/workflow.md +65 -0
  120. package/dist/tools-skills/superwall-editor/scripts/sw-editor.sh +662 -0
  121. package/dist/tools-skills/wwdc/SKILL.md +22 -0
  122. package/dist/tools-skills/wwdc/references/docs.md +52 -0
  123. package/dist/tools-skills/wwdc/scripts/wwdc.sh +266 -0
  124. package/dist/tools.d.ts +4 -2
  125. package/dist/tools.js +561 -161
  126. package/dist/{upgrade-Bt4Ouw1y.js → upgrade-1t3aQUxh.js} +1 -1
  127. package/dist/{upgrade-Cqy5orjb.js → upgrade-DLf0LJDh.js} +2 -2
  128. package/package.json +2 -2
  129. package/dist/create-Yvf2gStM.js +0 -19
  130. package/dist/held-Ddw1XSsr.js +0 -16
  131. package/dist/kinds-GFXB3sYu.js +0 -11
  132. package/dist/login-BoBe8Psl.js +0 -16
  133. package/dist/push-CtD4FZQV.js +0 -22
  134. package/dist/scan-Cv5uOwVY.js +0 -4
  135. package/dist/send-BxD9yf6F.js +0 -150
  136. package/dist/server-z1LH94R_.js +0 -22
  137. package/dist/session-1AV_Bs_d.js +0 -6
  138. package/dist/storekit-DafAnGkM.js +0 -16
  139. /package/dist/{devtools-ByZ6XYnn.js → devtools-pBl_vt03.js} +0 -0
  140. /package/dist/{reports-DdPq4blM.js → reports-D_qbl7_u.js} +0 -0
  141. /package/dist/{screenshot-file-0UETadF8.js → screenshot-file-tVBfUEIi.js} +0 -0
  142. /package/dist/{storage-DYvmIOHa.d.ts → storage-CerJ5KLP.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { n as ApiUnreachableError, t as ApiError } from "./client-DP6Rc0t_.js";
1
+ import { n as ApiUnreachableError, t as ApiError } from "./client-BIvOmWPC.js";
2
2
  import { o as readOpenedOrgs, p as writeOpenedOrgs } from "./config-BO1Y87kV.js";
3
3
 
4
4
  //#region src/core/api/orgs.ts
@@ -264,6 +264,11 @@ async function livePaywall(api, paywallId) {
264
264
  throw error;
265
265
  });
266
266
  }
267
+ async function pushedProducts(api, paywallId, snapshotId) {
268
+ const body = await api.get(`/v2/paywalls/${encodeURIComponent(paywallId)}/versions`);
269
+ const pushed = (Array.isArray(body.data) ? body.data.filter(isRecord) : []).filter((row) => row.snapshot_id === snapshotId && typeof row.version === "number").sort((a, b) => Number(b.version) - Number(a.version))[0];
270
+ return pushed === void 0 ? void 0 : parseProductRefs(pushed.products);
271
+ }
267
272
  async function livePaywallVersion(api, paywallId) {
268
273
  return livePaywall(api, paywallId).then((live) => live.version);
269
274
  }
@@ -281,14 +286,21 @@ async function createHeadlessPaywall(api, opts) {
281
286
  metadata: {}
282
287
  };
283
288
  }
284
- function resolveStore(identifier, platform) {
285
- if (/^(test|live):price_[^:]+/.test(identifier)) return "stripe";
289
+ function platformStore(platform) {
286
290
  return platform === "android" ? "play-store" : "app-store";
287
291
  }
288
- function versionProducts(products, platform) {
292
+ function resolveStore(identifier, platform, known) {
293
+ if (/^(test|live):price_[^:]+/.test(identifier)) return "stripe";
294
+ const fallback = platformStore(platform);
295
+ if (known.includes(fallback)) return fallback;
296
+ if (known.includes("custom")) return "custom";
297
+ if (known.includes("stripe")) return "stripe";
298
+ return fallback;
299
+ }
300
+ function versionProducts(products, platform, stores = {}) {
289
301
  return Object.entries(products ?? {}).map(([reference, identifier]) => {
290
302
  return {
291
- store: resolveStore(identifier, platform),
303
+ store: resolveStore(identifier, platform, Object.hasOwn(stores, identifier) ? stores[identifier] ?? [] : []),
292
304
  identifier,
293
305
  reference_name: reference
294
306
  };
@@ -352,4 +364,4 @@ function promotePaywallVersion(api, paywallId, opts = {}) {
352
364
  }
353
365
 
354
366
  //#endregion
355
- export { listOrgGroups as A, titleCase as C, listField as D, isRecord as E, rememberOrg as F, orgIdOf as M, orgProjects as N, parseJson as O, organizationOf as P, rowName as S, field as T, mintSourceAccess as _, createHeadlessPaywall as a, pushPaywallAssets as b, findPaywall as c, listAppPaywalls as d, listApplications as f, livePaywallVersion as g, livePaywall as h, createEntitlement as i, listOrganizations as j, textField as k, isAppScoped as l, listResource as m, createApplication as n, createProduct as o, listProjects as p, createCampaign as r, createProject as s, RESOURCES as t, linkSourceCommit as u, platformLabel as v, versionProducts as w, pushPaywallVersion as x, promotePaywallVersion as y };
367
+ export { parseJson as A, pushedProducts as C, field as D, versionProducts as E, orgProjects as F, organizationOf as I, rememberOrg as L, listOrgGroups as M, listOrganizations as N, isRecord as O, orgIdOf as P, pushPaywallVersion as S, titleCase as T, mintSourceAccess as _, createHeadlessPaywall as a, promotePaywallVersion as b, findPaywall as c, listAppPaywalls as d, listApplications as f, livePaywallVersion as g, livePaywall as h, createEntitlement as i, textField as j, listField as k, isAppScoped as l, listResource as m, createApplication as n, createProduct as o, listProjects as p, createCampaign as r, createProject as s, RESOURCES as t, linkSourceCommit as u, platformLabel as v, rowName as w, pushPaywallAssets as x, platformStore as y };
@@ -1,5 +1,5 @@
1
- import { c as DASHBOARD_URL } from "./environment-DF1qKlny.js";
2
- import { i as packagedDir } from "./paths-DxSLdpOI.js";
1
+ import { c as DASHBOARD_URL } from "./environment-eV7LEnSN.js";
2
+ import { i as packagedDir } from "./paths-BCbjCLP5.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-eV7LEnSN.js";
2
+ import { t as scanProject } from "./scan-Bb48xZqB.js";
3
+
4
+ export { scanProject };
@@ -1,4 +1,4 @@
1
- import { f as Integration } from "./environment-DF1qKlny.js";
1
+ import { f as Integration } from "./environment-eV7LEnSN.js";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { basename, dirname, join, relative, sep } from "node:path";
4
4
  import fg from "fast-glob";
@@ -1,8 +1,8 @@
1
1
  import { n as readDefaultApp, u as writeDefaultApp } from "./config-BO1Y87kV.js";
2
- import { t as apiCall, u as currentHost } from "./spinner-CneRK5rk.js";
3
- import { A as listOrgGroups, M as orgIdOf, P as organizationOf, c as findPaywall, p as listProjects, v as platformLabel } from "./resources-Dqr01Dep.js";
4
- import { t as chooseOrgOfApps } from "./org-D0g_q3mv.js";
5
- import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-D-nmmAbw.js";
2
+ import { t as apiCall, u as currentHost } from "./spinner-Ba3XhlMb.js";
3
+ import { I as organizationOf, M as listOrgGroups, P as orgIdOf, c as findPaywall, p as listProjects, v as platformLabel } from "./resources-B1qKDVXd.js";
4
+ import { t as chooseOrgOfApps } from "./org-DUwdrKPV.js";
5
+ import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-k9EeOiZr.js";
6
6
 
7
7
  //#region src/core/account/scope.ts
8
8
  function moveFirst(items, match) {
@@ -1,6 +1,6 @@
1
- import { r as ASSET_HOST } from "./environment-DF1qKlny.js";
2
- import { t as ApiError } from "./client-DP6Rc0t_.js";
3
- import { b as pushPaywallAssets } from "./resources-Dqr01Dep.js";
1
+ import { r as ASSET_HOST } from "./environment-eV7LEnSN.js";
2
+ import { t as ApiError } from "./client-BIvOmWPC.js";
3
+ import { x as pushPaywallAssets } from "./resources-B1qKDVXd.js";
4
4
  import { createRequire } from "node:module";
5
5
  import * as fs from "node:fs";
6
6
  import { globSync, readFileSync, statSync } from "node:fs";
@@ -531,9 +531,15 @@ function requireClean(surfaces) {
531
531
  "Publishing is immutable — fix these first, then push again."
532
532
  ].join("\n"));
533
533
  }
534
+ function storesDiffer(products, live) {
535
+ return products.some((product) => {
536
+ const pushed = live?.find((ref) => ref.reference === product.reference_name && ref.identifier === product.identifier);
537
+ return pushed?.store !== void 0 && pushed.store !== product.store;
538
+ });
539
+ }
534
540
  function needsWork(built, pushed, live) {
535
541
  return built !== pushed && built !== live;
536
542
  }
537
543
 
538
544
  //#endregion
539
- export { writeSources as A, readLock as C, writeBindings as D, writeBinding as E, syncAssets as F, resolveFramework as M, assetBaseUrl as N, writeOrigin as O, requireAssets as P, parseSources as S, writeApp as T, collectProjectDeclarations as _, resolveProjectDir as a, formatSharedLock as b, BIND_VERB as c, pendingPromoteWarning as d, pushedLine as f, weight as g, transition as h, requireProject as i, frameworkVersion as j, writeSnapshot as k, LAYOUT_HINT as l, took as m, parseIds as n, resolveProjectDirs as o, resolveNote as p, requireClean as r, selectSurfaces as s, needsWork as t, kb as u, writeProjectTypes as v, removeBinding as w, isScreenOrigin as x, describeBindings as y };
545
+ export { writeSnapshot as A, parseSources as C, writeBinding as D, writeApp as E, requireAssets as F, syncAssets as I, frameworkVersion as M, resolveFramework as N, writeBindings as O, assetBaseUrl as P, isScreenOrigin as S, removeBinding as T, weight as _, resolveProjectDir as a, describeBindings as b, storesDiffer as c, kb as d, pendingPromoteWarning as f, transition as g, took as h, requireProject as i, writeSources as j, writeOrigin as k, BIND_VERB as l, resolveNote as m, parseIds as n, resolveProjectDirs as o, pushedLine as p, requireClean as r, selectSurfaces as s, needsWork as t, LAYOUT_HINT as u, collectProjectDeclarations as v, readLock as w, formatSharedLock as x, writeProjectTypes as y };
@@ -0,0 +1,22 @@
1
+ import "./token-IWv2httm.js";
2
+ import "./output-Ggzq5_-t.js";
3
+ import "./environment-eV7LEnSN.js";
4
+ import "./storage-DIkYajce.js";
5
+ import "./client-BIvOmWPC.js";
6
+ import "./config-BO1Y87kV.js";
7
+ import "./telemetry-CVP8O6Y3.js";
8
+ import "./spawn-DmmmHIP-.js";
9
+ import "./spinner-Ba3XhlMb.js";
10
+ import "./ui-D_qf3Gvw.js";
11
+ import "./scan-Bb48xZqB.js";
12
+ import "./paths-BCbjCLP5.js";
13
+ import "./resources-B1qKDVXd.js";
14
+ import "./lookup-k9EeOiZr.js";
15
+ import "./login-BimbukE5.js";
16
+ import "./skills-BdMKE2uO.js";
17
+ import "./selection-BbNk9r1q.js";
18
+ import "./session-Crg9X-FI.js";
19
+ import "./login-BmwG14LC.js";
20
+ import { t as runStudio } from "./server-EYBMKAG1.js";
21
+
22
+ export { runStudio };
@@ -1,10 +1,10 @@
1
- import { _ as VERSION } from "./environment-DF1qKlny.js";
2
- import { t as ApiError } from "./client-DP6Rc0t_.js";
1
+ import { v as VERSION } from "./environment-eV7LEnSN.js";
2
+ import { t as ApiError } from "./client-BIvOmWPC.js";
3
3
  import { n as ui } from "./ui-D_qf3Gvw.js";
4
- import { f as listApplications, w as versionProducts, x as pushPaywallVersion, y as promotePaywallVersion } from "./resources-Dqr01Dep.js";
5
- import { i as openBrowser } from "./login-D0lh3_JI.js";
6
- import { C as readLock, F as syncAssets, M as resolveFramework, N as assetBaseUrl, P as requireAssets, _ as collectProjectDeclarations, i as requireProject, j as frameworkVersion, l as LAYOUT_HINT, o as resolveProjectDirs, v as writeProjectTypes } from "./selection-Rdw-ZUoG.js";
7
- import { _ as resolveBinding, d as projectForApplication, g as wantedPlatforms, i as pushSource, l as writeProjectScaffold, m as planTargets, n as requireApi, o as collectSourceFiles, s as warnNotPortable, u as listProjectProducts, y as resolveApps } from "./session-D_nEWKXT.js";
4
+ import { E as versionProducts, S as pushPaywallVersion, b as promotePaywallVersion, f as listApplications } from "./resources-B1qKDVXd.js";
5
+ import { i as openBrowser } from "./login-BimbukE5.js";
6
+ import { F as requireAssets, I as syncAssets, M as frameworkVersion, N as resolveFramework, P as assetBaseUrl, i as requireProject, o as resolveProjectDirs, u as LAYOUT_HINT, v as collectProjectDeclarations, w as readLock, y as writeProjectTypes } from "./selection-BbNk9r1q.js";
7
+ import { f as listProjectProducts, g as planTargets, i as pushSource, l as writeProjectScaffold, n as requireApi, o as collectSourceFiles, p as projectForApplication, s as warnNotPortable, u as listApplicationCatalogue, v as wantedPlatforms, x as resolveApps, y as resolveBinding } from "./session-Crg9X-FI.js";
8
8
  import { execFile } from "node:child_process";
9
9
  import * as fs from "node:fs";
10
10
  import * as path from "node:path";
@@ -292,9 +292,11 @@ function createStudioActions(framework, project) {
292
292
  let version = 0;
293
293
  const external = /* @__PURE__ */ new Set();
294
294
  for (const target of targets) {
295
+ const catalogue = await listApplicationCatalogue(client, target.applicationId);
295
296
  const built = await step("build", () => framework.buildSnapshot(project, surface, {
296
297
  assetBaseUrl: assetBaseUrl(target.applicationId),
297
- platform: target.platform
298
+ platform: target.platform,
299
+ catalogue: catalogue.variables
298
300
  }));
299
301
  const binding = await resolveBinding({
300
302
  api: client,
@@ -314,7 +316,7 @@ function createStudioActions(framework, project) {
314
316
  html: built.html,
315
317
  surface: surface.id,
316
318
  assets: synced.assets,
317
- products: versionProducts(built.products, target.platform),
319
+ products: versionProducts(built.products, target.platform, catalogue.stores),
318
320
  settings: built.settings
319
321
  }));
320
322
  await step("source", async () => {
@@ -1,11 +1,11 @@
1
- import { l as ENV_API_KEY, t as API_HOST, v as apiKeyFromEnv } from "./environment-DF1qKlny.js";
2
- import { t as readSession } from "./storage-s2Dnz-yl.js";
3
- import { n as ApiUnreachableError, r as createSuperwallApi, t as ApiError } from "./client-DP6Rc0t_.js";
1
+ import { l as ENV_API_KEY, t as API_HOST, y as apiKeyFromEnv } from "./environment-eV7LEnSN.js";
2
+ import { t as readSession } from "./storage-DIkYajce.js";
3
+ import { n as ApiUnreachableError, r as createSuperwallApi, t as ApiError } from "./client-BIvOmWPC.js";
4
4
  import { n as ui } from "./ui-D_qf3Gvw.js";
5
- import { E as isRecord, _ as mintSourceAccess, a as createHeadlessPaywall, d as listAppPaywalls, f as listApplications, u as linkSourceCommit, v as platformLabel } from "./resources-Dqr01Dep.js";
6
- import { n as findApplication } from "./lookup-D-nmmAbw.js";
7
- import { A as writeSources, C as readLock, E as writeBinding, S as parseSources, T as writeApp, b as formatSharedLock } from "./selection-Rdw-ZUoG.js";
8
- import { n as performLoginWithUi } from "./login-B2TsCE2H.js";
5
+ import { O as isRecord, _ as mintSourceAccess, a as createHeadlessPaywall, d as listAppPaywalls, f as listApplications, u as linkSourceCommit, v as platformLabel } from "./resources-B1qKDVXd.js";
6
+ import { n as findApplication } from "./lookup-k9EeOiZr.js";
7
+ import { C as parseSources, D as writeBinding, E as writeApp, j as writeSources, w as readLock, x as formatSharedLock } from "./selection-BbNk9r1q.js";
8
+ import { n as performLoginWithUi } from "./login-BmwG14LC.js";
9
9
  import { execFile } from "node:child_process";
10
10
  import * as fs from "node:fs";
11
11
  import * as path from "node:path";
@@ -196,11 +196,39 @@ function planTargets(input) {
196
196
 
197
197
  //#endregion
198
198
  //#region src/core/paywalls/products.ts
199
- async function listProjectProducts(api, projectId) {
199
+ function storeOf(row) {
200
+ if (row.platform === "stripe") return "stripe";
201
+ if (row.store === "custom" || row.platform === "custom") return "custom";
202
+ if (row.store === "app_store") return "app-store";
203
+ if (row.store === "play_store") return "play-store";
204
+ }
205
+ async function listProjectCatalogue(api, projectId) {
200
206
  const rows = await api.list(`/v2/products?project_id=${encodeURIComponent(projectId)}`);
201
- const catalogue = {};
202
- for (const row of rows) if (row.identifier) catalogue[row.identifier] = productVariables(row);
203
- return catalogue;
207
+ const variables = /* @__PURE__ */ new Map();
208
+ const stores = /* @__PURE__ */ new Map();
209
+ for (const row of rows) {
210
+ if (!row.identifier) continue;
211
+ variables.set(row.identifier, productVariables(row));
212
+ const store = storeOf(row);
213
+ if (store === void 0) continue;
214
+ const known = stores.get(row.identifier) ?? [];
215
+ if (!known.includes(store)) stores.set(row.identifier, [...known, store]);
216
+ }
217
+ return {
218
+ variables: Object.fromEntries(variables),
219
+ stores: Object.fromEntries(stores)
220
+ };
221
+ }
222
+ async function listProjectProducts(api, projectId) {
223
+ return (await listProjectCatalogue(api, projectId)).variables;
224
+ }
225
+ async function listApplicationCatalogue(api, applicationId) {
226
+ const projectId = await projectForApplication(api, applicationId);
227
+ if (projectId === void 0) return {
228
+ variables: {},
229
+ stores: {}
230
+ };
231
+ return listProjectCatalogue(api, projectId);
204
232
  }
205
233
  async function projectForApplication(api, applicationId) {
206
234
  const found = await findApplication(api, applicationId).catch(() => void 0);
@@ -208,7 +236,7 @@ async function projectForApplication(api, applicationId) {
208
236
  }
209
237
  var MissingProductError = class extends Error {};
210
238
  function requireProducts(catalogue, surfaces) {
211
- const gaps = surfaces.flatMap((surface) => Object.entries(surface.products ?? {}).filter(([, identifier]) => catalogue[identifier] === void 0).map(([reference, identifier]) => ` ${surface.id}: ${reference} → ${identifier}`));
239
+ const gaps = surfaces.flatMap((surface) => Object.entries(surface.products ?? {}).filter(([, identifier]) => !Object.hasOwn(catalogue, identifier)).map(([reference, identifier]) => ` ${surface.id}: ${reference} → ${identifier}`));
212
240
  if (gaps.length === 0) return;
213
241
  throw new MissingProductError([
214
242
  gaps.length === 1 ? "This product does not exist on Superwall:" : `These ${gaps.length} products do not exist on Superwall:`,
@@ -765,4 +793,4 @@ async function requireApi(interactive, login = performLoginWithUi) {
765
793
  }
766
794
 
767
795
  //#endregion
768
- export { resolveBinding as _, gitAvailable as a, projectPackageName as c, projectForApplication as d, requireProducts as f, wantedPlatforms as g, targetLabel as h, pushSource as i, writeProjectScaffold as l, planTargets as m, requireApi as n, collectSourceFiles as o, parsePlatformFlags as p, assertGit as r, warnNotPortable as s, LoginRequiredError as t, listProjectProducts as u, requirePlatform as v, resolveApps as y };
796
+ export { targetLabel as _, gitAvailable as a, requirePlatform as b, projectPackageName as c, listProjectCatalogue as d, listProjectProducts as f, planTargets as g, parsePlatformFlags as h, pushSource as i, writeProjectScaffold as l, requireProducts as m, requireApi as n, collectSourceFiles as o, projectForApplication as p, assertGit as r, warnNotPortable as s, LoginRequiredError as t, listApplicationCatalogue as u, wantedPlatforms as v, resolveApps as x, resolveBinding as y };
@@ -0,0 +1,6 @@
1
+ import "./output-Ggzq5_-t.js";
2
+ import "./environment-eV7LEnSN.js";
3
+ import "./storage-DIkYajce.js";
4
+ import { n as runWhoami, t as runLogout } from "./session-xG9E8J2N.js";
5
+
6
+ export { runLogout, runWhoami };
@@ -1,4 +1,4 @@
1
- import { a as sessionOrgName, i as serializeSession, n as removeSession, r as resolveApiHost, t as readSession } from "./storage-s2Dnz-yl.js";
1
+ import { a as sessionOrgName, i as serializeSession, n as removeSession, r as resolveApiHost, t as readSession } from "./storage-DIkYajce.js";
2
2
 
3
3
  //#region src/core/account/session.ts
4
4
  function runWhoami(ctx) {
@@ -89,7 +89,9 @@ curl -sL https://superwall.com/docs/framework/{page}.md # one page
89
89
  | Declaring products, reading variables, the three price rules | `products` |
90
90
  | `purchase()` outcomes, restore, the two channels | `purchases` |
91
91
  | Introductory-offer eligibility forking (`useIntroductoryOffer`), reminder notifications | `trials` |
92
- | Selling on the web — modes, prefetch, the Stripe sheet, hosted checkout, promotion codes (`useDiscount`), the shopper's email, after the purchase (`postPurchase`, `useCheckoutRedemption`), `stripeMetadata`, managed payments | `web-checkout` |
92
+ | Selling on the web — modes, prefetch, the Stripe sheet, hosted checkout, promotion codes (`useDiscount`), the shopper's email, after the purchase (`postPurchase`, `useCheckoutRedemption`), `stripeMetadata`, managed payments; a Stripe product inside an iOS app (app to web: always hosted checkout, priced from the dashboard at push) | `web-checkout`, `products` |
93
+ | Custom store products (external purchase controller, custom-store Stripe products) — declared by identifier, pushed with the dashboard's store | `products` |
94
+ | Continuing a flow on the web (teleport: `teleport: true` or `{ route, fallbacks, completion, … }`, `router.push(route, { teleport: true })`, prefetch, the teleport screen, `useTeleport`'s typed status, returning to the app) | `teleport` |
93
95
  | Web funnels — answers in the URL (`useQueryState`), resume after a browser hand-off, `shift` | `web-funnels` |
94
96
  | Multi-page flows, router, cross-page state, shared chrome | `navigation` |
95
97
  | Built-in + custom transitions, bottom sheets | `transitions` |
@@ -128,7 +130,9 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
128
130
  `postPurchase` in config (or per call): `"dismiss"` (default), `"stay"`
129
131
  to keep the paywall up, and on the web `"redeem"` / `{ redirect }`;
130
132
  `"stay"` on the web is finished with `useCheckoutRedemption()`. Pass
131
- `stripeMetadata` to `purchase()` for key/values on the Stripe subscription.
133
+ `stripeMetadata` to `purchase()` for key/values on the Stripe subscription,
134
+ and `checkout` to override the config's mode for one button (never past
135
+ the iOS rule: in an iOS app a Stripe purchase always opens hosted checkout).
132
136
  The shape every buy button has, all three outcomes handled:
133
137
 
134
138
  ```tsx
@@ -141,7 +145,10 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
141
145
  preloads paywalls hidden. Gate on
142
146
  `useSuperwallSnapshot().paywall !== undefined`. That includes CSS:
143
147
  `@starting-style` and an animation on a class present at render both
144
- finish during the preload.
148
+ finish during the preload. When iOS kills the web process, the SDK
149
+ reloads the page; from SuperwallKit 4.18.0 the reloaded page gets
150
+ `paywall_open` again, so the gate recovers with no code in the
151
+ paywall. Older iOS SDKs leave a gated reloaded page blank.
145
152
  4. **Dark mode is the `:root.dark` class the SDK stamps**, not
146
153
  `prefers-color-scheme`.
147
154
  5. **Routes are names on a stack** — no params, no order. Closing the
@@ -254,11 +261,39 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
254
261
  (restore, sign-out, an App Store exit offer) branches on
255
262
  `useDevice().hostPlatform` — `"ios" | "android" | "web" | undefined`,
256
263
  normalized and known from the first render — never on the raw
257
- `platform` string; show neither variant while it is `undefined`. A
264
+ `platform` string; show neither variant while it is `undefined`. UI
265
+ that depends on the surface rather than the platform (the Web SDK on the
266
+ merchant's site vs Superwall's hosted web paywall page, the teleport
267
+ page, the studio) branches on `useDevice().host` — `"ios-sdk" |
268
+ "android-sdk" | "web-sdk" | "web-paywall" | "web-teleport" | "studio" |
269
+ "browser"`, never `undefined` — never on the URL or `window`. A
258
270
  `"web"` paywall runs inside the Web SDK on the merchant's page, which
259
271
  hosts it as the web paywall app hosts editor paywalls: the SDK prices
260
272
  the Stripe products, reports the events and finishes the checkout, so
261
- `register()` resolves `purchased`, with no redemption step.
273
+ `register()` resolves `purchased`, with no redemption step. Inside an
274
+ iOS app a Stripe product is app to web: switch the slot on
275
+ `useVariables().device.storeFrontCountryCode`, read its price from
276
+ `useProducts()` as for any product (push bakes the dashboard's data in,
277
+ because the SDK prices only store products), and `purchase()` it — it
278
+ always opens hosted checkout in the browser, whatever `checkout` says,
279
+ and needs no `checkout` key at all. Never hardcode the price or route a
280
+ Stripe product to the App Store. When the user wants the rest of a flow
281
+ (checkout, or the second half of an onboarding) to run in the browser,
282
+ that is teleport — never a hand-built link or `openExternalUrl`:
283
+ `teleport: true` in `config.ts` plus `router.push(route, { teleport:
284
+ true })`, or `teleport: { route }` so a push to it and a Stripe purchase
285
+ teleport on their own and it is prepared when the paywall opens (call
286
+ `useTeleport().prefetch(route)` for a route only the router teleports).
287
+ The route opens on the web with every `useQueryState` value carried
288
+ along, and the app is credited when the shopper pays. Keep answers the
289
+ web half needs in `useQueryState`, not component state. A custom teleport
290
+ screen renders while `useTeleport().status === "waiting"` and not
291
+ `returned`, reopens with `open()`, and buys the fallback with plain
292
+ `purchase()`; count cancels and returns with `useTeleport({ onCancel,
293
+ onReturn })`, never with your own timers (`onCancel` is the Cancel
294
+ button only; an unpaid return shows as `purchase()` resolving
295
+ `abandoned`). Fetch `teleport`; the
296
+ `teleport` example is the complete flow to start from.
262
297
  13. **Shipping includes the dashboard.** A push that fails on missing
263
298
  products is not a blocker to report — create them with
264
299
  `superwall products create` ([references/cli.md](references/cli.md)).
@@ -274,8 +309,9 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
274
309
  16. **The paywall is inset by default; never write `env()` and never
275
310
  `position: fixed`.** The framework's root box pads the whole paywall
276
311
  by the safe area, resolved per platform, screen and presentation
277
- (iPhone island/notch/home button, iPad, Android's status bar, a
278
- modal's zero top, landscape sides) and live on device; its content
312
+ (iPhone island/notch/home button, iPhone Duo's camera strip, iPad,
313
+ Android's status bar, a modal's zero top, landscape sides) and live
314
+ on device; its content
279
315
  box is what layout chrome positions against. So layouts and pages
280
316
  write ordinary padding, a layout's shell is `flex: 1 1 auto` (never
281
317
  `100dvh`), chrome is absolute in `layout.tsx`, a pinned CTA is sticky
@@ -394,6 +394,7 @@ than listing none.
394
394
  | `…package.json is named "superwall"` | Rename the package — that name shadows the framework |
395
395
  | `No superwall framework found` | `bun add superwall` (or npm) inside the project |
396
396
  | `These N products do not exist on Superwall` | Create them with `superwall products create` (above) — don't just report it — or fix the identifiers in `config.ts` |
397
+ | `Superwall for Agents is in private beta and isn't enabled for this app yet` | Enabled per app on Superwall's side; contact support@superwall.com. Nothing in the CLI can set it |
397
398
  | `You can open N projects - pass --app <id\|dashboard link> or --project <id>` | Add `--app <id\|dashboard link>` to the resource command |
398
399
  | `App <id> already has a paywall … that superwall.lock doesn't bind` | Ask the user whether it's this project's; if so add the printed line under `paywalls`, if not rename the directory |
399
400
  | Diagnostics block the push | The message names each stray file and where it belongs |
@@ -60,6 +60,7 @@ number.
60
60
  | `abandonment-offer` | `purchase()` resolving `abandoned` is a signal only this paywall can act on — push a last-chance offer (a second product, not a second design) with a custom `sheet` transition |
61
61
  | `trial-reminders` | A local notification declared in config, scheduled by the SDK when the trial starts — the paywall needn't be open when it fires |
62
62
  | `web-funnel` | Selling on the web: steps as routes on `shift`, the answer kept in the URL with `useQueryState` (the rule for every web-funnel answer), then `checkout: "sheet"` — `purchase()` unchanged; `prefetch(reference)` on selection so the sheet opens instantly |
63
+ | `teleport` | Finishing an app flow on the web: `teleport: { route: "plan" }` makes `router.push("plan")` open the plan in the browser with the app's `useQueryState` answer carried along; `fallbacks: { monthly: "annual" }` offers the App Store plan on the teleport screen; the plan page reads `useTeleport().status === "arrived"` |
63
64
 
64
65
  `purchase-states` is the only example showing the full haptic vocabulary
65
66
  (`success()` / `error()` keyed to outcomes). `abandonment-offer` contains
@@ -207,6 +207,35 @@ there moves the insets. The value on an actual iPhone is `env()`, so a
207
207
  16 Pro shows 62 on device and 59 in the studio — that 3px is why chrome
208
208
  sits at inset *plus* spacing.
209
209
 
210
+ ### iPhone Duo in practice
211
+
212
+ Measured insets, by posture:
213
+
214
+ | State | Viewport | Safe area T / R / B / L |
215
+ | --- | --- | --- |
216
+ | Closed (outer screen), portrait or landscape | 466×678 / 678×466 | 0 / 84 / 34 / 0 |
217
+ | Open (inner screen), landscape | 951×669 | 0 / 84 / 34 / 0 |
218
+ | Open (inner screen), portrait | 669×951 | 82 / 0 / 34 / 0 |
219
+
220
+ Folding the phone doesn't change the safe area.
221
+
222
+ What this means for a paywall:
223
+
224
+ - **The close button.** Most paywalls put it top-right, which is exactly
225
+ where the strip is when the phone is closed. Inside the inset root it is
226
+ already clear. Over a bleed, inset it from **both** edges:
227
+ `top: calc(var(--sw-safe-area-inset-top) + 8px); right: calc(var(--sw-safe-area-inset-right) + 16px)`.
228
+ Never `right: 16px` alone over a bleed.
229
+ - **Never assume left equals right.** The insets are asymmetric. Write each
230
+ edge with its own variable, never `padding: 0 var(--sw-safe-area-inset-right)`.
231
+ - **The fold.** In book posture (open, portrait, folded) a 40px hinge band
232
+ runs across the inner screen at y 456–496; in tabletop (open, landscape,
233
+ folded) it runs down it at x 456–496. Web pages cannot detect whether the
234
+ phone is folded, so keep the primary CTA and the close button out of that
235
+ band on the inner screen (`min-width: 600px` on an iPhone).
236
+ - Detect it with `useDevice().cutout === "strip"` only for a design choice
237
+ the insets cannot make; layout itself needs nothing.
238
+
210
239
  ## Recipes
211
240
 
212
241
  **Close button** (`layout.tsx`):
@@ -215,6 +244,9 @@ sits at inset *plus* spacing.
215
244
  .close { position: absolute; top: 4px; right: 16px; }
216
245
  ```
217
246
 
247
+ The root is already inset, so this clears the island, the notch and the
248
+ iPhone Duo's camera strip without any variable.
249
+
218
250
  **Pinned CTA that content scrolls under** (last child of the page):
219
251
 
220
252
  ```css
@@ -251,7 +283,8 @@ insets: { top: "none" }
251
283
  ```
252
284
 
253
285
  ```css
254
- .close { position: absolute; top: calc(var(--sw-safe-area-inset-top) + 8px); right: 16px; }
286
+ .close { position: absolute; top: calc(var(--sw-safe-area-inset-top) + 8px);
287
+ right: calc(var(--sw-safe-area-inset-right) + 16px); }
255
288
  .hero::after { /* scrim so the bar's clock stays legible in both schemes */ }
256
289
  ```
257
290
 
@@ -74,7 +74,7 @@ is whichever slot the selection state points at.
74
74
  | `redeem-purchase` | `useCheckoutRedemption()` (web) |
75
75
  | `select-choice` / `select-indicator` | React state on the choice group |
76
76
  | `focus-input` / `scroll-to-element` | a `ref` and `focus()` / `scrollIntoView()` |
77
- | `teleport-to-web` | not migrated; ask the user what the web destination should be |
77
+ | `teleport-to-web` | nothing: a deprecated no-op in the editor itself |
78
78
 
79
79
  Fetch `curl -sL superwall.com/docs/framework/actions.md` for the exact hook
80
80
  signatures before writing them.
@@ -126,12 +126,25 @@ signatures before writing them.
126
126
  7. **Delete `MIGRATION.md`** when the user is satisfied. The `origins`
127
127
  entry in the lock stays, so Compare › Original keeps working.
128
128
 
129
+ ## The checkout page becomes teleport
130
+
131
+ An editor paywall with a **checkout page** (a page marked as one, on a
132
+ paywall with a Stripe product) maps to `teleport` in `config.ts`: the page
133
+ becomes the route, `checkoutPage.fallbacks` becomes `teleport.fallbacks`
134
+ (Stripe reference → store reference), `returnStyle: "screen"` becomes
135
+ `completion: "confirmation"` and `"alert"`/`"universal"` become
136
+ `"direct"`, `trialEligibility: "ALWAYS"` becomes
137
+ `introductoryOfferEligibility: "eligible"`, and `waitingScreen: false`
138
+ becomes `overlay: false`. `appLink` has no equivalent: the framework always
139
+ tries the universal link, then the URL scheme. Fetch
140
+ `curl -sL superwall.com/docs/framework/teleport.md`.
141
+
129
142
  ## What does not migrate, and must be said
130
143
 
131
144
  - **The original cannot be converted in place.** A framework paywall is a
132
145
  new dashboard paywall; the switch is a campaign change the user makes.
133
146
  - **Editor-only behavior with no framework equivalent**: surveys attached
134
- to the paywall, `teleport-to-web`, and anything the editor computes
147
+ to the paywall, and anything the editor computes
135
148
  from states the store carries but the pages never render. Name each one
136
149
  in the hand-off as "not carried over" rather than approximating it.
137
150
  - **Example prices.** The editor stores example `productVariables` per
@@ -204,5 +217,5 @@ curl -sL https://superwall.com/docs/framework/{page}.md # one page
204
217
  identifier the user has named. Never invent a product or a price.
205
218
  - Never paste the editor's generated HTML or CSS. Rebuild the design with
206
219
  clean components; the Compare pane decides when it matches.
207
- - Anything with no framework equivalent (surveys, `teleport-to-web`) is
220
+ - Anything with no framework equivalent (surveys) is
208
221
  listed in your final note as not carried over, never approximated.
@@ -1,10 +1,10 @@
1
- import { _ as VERSION, a as CHANNEL, o as CHANNELS } from "./environment-DF1qKlny.js";
1
+ import { a as CHANNEL, o as CHANNELS, v as VERSION } from "./environment-eV7LEnSN.js";
2
2
  import { m as writeSkillsSync, s as readSkillsSync } from "./config-BO1Y87kV.js";
3
- import { r as track } from "./telemetry-DtG92m5O.js";
3
+ import { r as track } from "./telemetry-CVP8O6Y3.js";
4
4
  import { r as spawnStream } from "./spawn-DmmmHIP-.js";
5
- import { n as withSpinner } from "./spinner-CneRK5rk.js";
5
+ import { n as withSpinner } from "./spinner-Ba3XhlMb.js";
6
6
  import { n as ui } from "./ui-D_qf3Gvw.js";
7
- import { i as packagedDir, t as AGENT_SKILLS_DIR } from "./paths-DxSLdpOI.js";
7
+ import { i as packagedDir, t as AGENT_SKILLS_DIR } from "./paths-BCbjCLP5.js";
8
8
  import { existsSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
9
9
  import { join } from "node:path";
10
10
  import { tmpdir } from "node:os";
@@ -15,6 +15,7 @@ const skillsRefFor = (channel) => CHANNELS[channel].skillsRef;
15
15
  const SKILLS_REF = () => skillsRefFor(CHANNEL());
16
16
  const skillsInstallSourceFor = (channel) => channel === "latest" ? SUPERWALL_SKILLS_SOURCE : `https://github.com/${SUPERWALL_SKILLS_SOURCE}/tree/${skillsRefFor(channel)}`;
17
17
  const SKILLS_INSTALL_SOURCE = () => skillsInstallSourceFor(CHANNEL());
18
+ const TOOLS_SKILLS_REF = CHANNELS.next.skillsRef;
18
19
  const onChannel = (channel) => channel === "latest" || channel === CHANNEL();
19
20
  function skillSummary(md) {
20
21
  const firstSentence = (md.match(/^description:\s*(.+)$/m)?.[1] ?? "").trim().replace(/^["']|["'`]+$/g, "").replace(/(?<=\.)\s[\s\S]*$/, "");
@@ -1,14 +1,14 @@
1
- import "./token-DzRh7dI1.js";
1
+ import "./token-IWv2httm.js";
2
2
  import "./output-Ggzq5_-t.js";
3
- import "./environment-DF1qKlny.js";
4
- import "./storage-s2Dnz-yl.js";
5
- import "./client-DP6Rc0t_.js";
3
+ import "./environment-eV7LEnSN.js";
4
+ import "./storage-DIkYajce.js";
5
+ import "./client-BIvOmWPC.js";
6
6
  import "./config-BO1Y87kV.js";
7
- import "./telemetry-DtG92m5O.js";
7
+ import "./telemetry-CVP8O6Y3.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import "./spinner-CneRK5rk.js";
9
+ import "./spinner-Ba3XhlMb.js";
10
10
  import "./ui-D_qf3Gvw.js";
11
- import "./paths-DxSLdpOI.js";
12
- import { a as bundledSkills, c as knownSkills, d as readBundledSkill, f as runSkills, i as SUPERWALL_SKILLS_SOURCE, l as normalizeSkillFrontmatter, m as skillsRefFor, n as SKILLS_INSTALL_SOURCE, o as checkSkillsSync, p as skillSummary, r as SKILLS_REF, s as ensureSkillsCurrent, t as PLAYBOOKS, u as normalizeSkillsDir } from "./skills-BvFOa4y6.js";
11
+ import "./paths-BCbjCLP5.js";
12
+ import { a as bundledSkills, c as knownSkills, d as readBundledSkill, f as runSkills, i as SUPERWALL_SKILLS_SOURCE, l as normalizeSkillFrontmatter, m as skillsRefFor, n as SKILLS_INSTALL_SOURCE, o as checkSkillsSync, p as skillSummary, r as SKILLS_REF, s as ensureSkillsCurrent, t as PLAYBOOKS, u as normalizeSkillsDir } from "./skills-BdMKE2uO.js";
13
13
 
14
14
  export { PLAYBOOKS, SKILLS_INSTALL_SOURCE, SKILLS_REF, SUPERWALL_SKILLS_SOURCE, bundledSkills, checkSkillsSync, ensureSkillsCurrent, knownSkills, normalizeSkillFrontmatter, normalizeSkillsDir, readBundledSkill, runSkills, skillSummary, skillsRefFor };
@@ -1,7 +1,7 @@
1
- import { r as NotLoggedInError } from "./token-DzRh7dI1.js";
1
+ import { r as NotLoggedInError } from "./token-IWv2httm.js";
2
2
  import { i as writeJson, n as createCommandOutput } from "./output-Ggzq5_-t.js";
3
- import { a as CHANNEL } from "./environment-DF1qKlny.js";
4
- import { t as ApiError } from "./client-DP6Rc0t_.js";
3
+ import { a as CHANNEL } from "./environment-eV7LEnSN.js";
4
+ import { t as ApiError } from "./client-BIvOmWPC.js";
5
5
  import { n as ui, r as useRenderer } from "./ui-D_qf3Gvw.js";
6
6
  import pc from "picocolors";
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { l as readJson, r as formatJson, u as state } from "./output-Ggzq5_-t.js";
2
- import { n as API_HOST_OVERRIDE, t as API_HOST } from "./environment-DF1qKlny.js";
2
+ import { n as API_HOST_OVERRIDE, t as API_HOST } from "./environment-eV7LEnSN.js";
3
3
 
4
4
  //#region src/core/account/storage.ts
5
5
  const sessionOrgName = (session) => {
@@ -1,7 +1,7 @@
1
1
  import { r as formatJson } from "./output-Ggzq5_-t.js";
2
- import { t as apiCall } from "./spinner-CneRK5rk.js";
3
- import { m as listResource } from "./resources-Dqr01Dep.js";
4
- import { a as pickScope } from "./scope-V336uz8j.js";
2
+ import { t as apiCall } from "./spinner-Ba3XhlMb.js";
3
+ import { m as listResource } from "./resources-B1qKDVXd.js";
4
+ import { a as pickScope } from "./scope-B6UYGuwn.js";
5
5
  import { r as textOf } from "./input-vi0bou04.js";
6
6
  import { writeFileSync } from "node:fs";
7
7
 
@@ -0,0 +1,16 @@
1
+ import "./token-IWv2httm.js";
2
+ import "./output-Ggzq5_-t.js";
3
+ import "./environment-eV7LEnSN.js";
4
+ import "./storage-DIkYajce.js";
5
+ import "./client-BIvOmWPC.js";
6
+ import "./config-BO1Y87kV.js";
7
+ import "./spinner-Ba3XhlMb.js";
8
+ import "./ui-D_qf3Gvw.js";
9
+ import "./resources-B1qKDVXd.js";
10
+ import "./org-DUwdrKPV.js";
11
+ import "./lookup-k9EeOiZr.js";
12
+ import "./scope-B6UYGuwn.js";
13
+ import "./input-vi0bou04.js";
14
+ import { n as writeStoreKit, t as generateStoreKit } from "./storekit-C2UzIIMs.js";
15
+
16
+ export { generateStoreKit, writeStoreKit };
@@ -1,4 +1,4 @@
1
- import { _ as VERSION, b as isNonInteractive, g as TELEMETRY_KEY, h as TELEMETRY_HOST } from "./environment-DF1qKlny.js";
1
+ import { S as isNonInteractive, g as TELEMETRY_KEY, h as TELEMETRY_HOST, v as VERSION } from "./environment-eV7LEnSN.js";
2
2
  import { h as writeTelemetryNoticeShown, l as telemetryNoticeShown, t as readAnonymousId } from "./config-BO1Y87kV.js";
3
3
 
4
4
  //#region src/core/support/telemetry.ts
@@ -1,4 +1,4 @@
1
- import { o as writeSession, t as readSession } from "./storage-s2Dnz-yl.js";
1
+ import { o as writeSession, t as readSession } from "./storage-DIkYajce.js";
2
2
 
3
3
  //#region src/core/account/errors.ts
4
4
  var NotLoggedInError = class extends Error {