@superwall/cli 2.1.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 (67) hide show
  1. package/README.md +3 -2
  2. package/dist/{apple-CSzNTGHM.js → apple-BHbX0jbn.js} +13 -13
  3. package/dist/auth.js +3 -3
  4. package/dist/{billing-C3Q8DBU2.js → billing-4zhIBFRQ.js} +3 -3
  5. package/dist/{bind-BumHTi9O.js → bind-CHLHmxgA.js} +4 -4
  6. package/dist/{build-Bpviiclc.js → build-5PQeSnNN.js} +6 -6
  7. package/dist/{client-BL0f_yGf.js → client-BIvOmWPC.js} +7 -3
  8. package/dist/{create-CfK3PeKA.js → create-BSNIFsnN.js} +6 -6
  9. package/dist/{create-BUcVG4Ab.js → create-VK-pNfN7.js} +22 -22
  10. package/dist/create-oj3zXvHZ.js +19 -0
  11. package/dist/{doctor-BWqIYcMn.js → doctor-9JS96QkX.js} +6 -6
  12. package/dist/{drivers-CPhdPkW5.js → drivers-BamBJ10Y.js} +3 -3
  13. package/dist/entry.js +19 -19
  14. package/dist/{environment-eBXjELoN.js → environment-eV7LEnSN.js} +15 -2
  15. package/dist/{existing-BltvQiX5.js → existing-C8dSYHGk.js} +2 -2
  16. package/dist/{held-DgnTFMl3.js → held-BMisHn8F.js} +6 -6
  17. package/dist/held-DeJW2gUk.js +16 -0
  18. package/dist/{integrate-BRsqoe01.js → integrate-VWtTNPCr.js} +21 -21
  19. package/dist/login-2JHCG6c1.js +16 -0
  20. package/dist/{login-BbTIrCFT.js → login-BimbukE5.js} +5 -5
  21. package/dist/{login-BCEH5q0U.js → login-BmwG14LC.js} +1 -1
  22. package/dist/{lookup-rr1AkCJA.js → lookup-k9EeOiZr.js} +2 -2
  23. package/dist/{migrate-C9X2Vz81.js → migrate-C86h6jeF.js} +21 -21
  24. package/dist/{notification-url-CV86qiKP.js → notification-url-BVaTgWZ5.js} +2 -2
  25. package/dist/{open-CcpXotHG.js → open-0tDCQOXC.js} +10 -10
  26. package/dist/{org-BQQDo7wm.js → org-DUwdrKPV.js} +2 -2
  27. package/dist/{paths-CRlU72cq.js → paths-BCbjCLP5.js} +1 -1
  28. package/dist/{playbook-DVMXN7fh.js → playbook-oov9yV0q.js} +10 -10
  29. package/dist/{promote-Da8xctzy.js → promote-DPGPamkE.js} +16 -16
  30. package/dist/push-Chp21y3a.js +22 -0
  31. package/dist/{push-D6R9icWN.js → push-Cz4lJ8Qd.js} +4 -4
  32. package/dist/{registry-BYVD-_h6.js → registry-CTczUigi.js} +365 -176
  33. package/dist/{resources-DLON3-61.js → resources-B1qKDVXd.js} +1 -1
  34. package/dist/{run-Co-BwhOg.js → run-DTPsVmFw.js} +2 -2
  35. package/dist/scan-B1SkkUi7.js +4 -0
  36. package/dist/{scan-CKuk-_6W.js → scan-Bb48xZqB.js} +1 -1
  37. package/dist/{scope-DV22_Ufm.js → scope-B6UYGuwn.js} +4 -4
  38. package/dist/{selection-C2_KbLuo.js → selection-BbNk9r1q.js} +3 -3
  39. package/dist/server-CwrZ-I1r.js +22 -0
  40. package/dist/{server-D0d2oP-5.js → server-EYBMKAG1.js} +6 -6
  41. package/dist/{session-C4rbE3VS.js → session-Crg9X-FI.js} +7 -7
  42. package/dist/session-DItGa4z0.js +6 -0
  43. package/dist/{session-B-Uz0cQ7.js → session-xG9E8J2N.js} +1 -1
  44. package/dist/skills/superwall-framework/SKILL.md +36 -4
  45. package/dist/skills/superwall-framework/references/examples.md +1 -0
  46. package/dist/skills/superwall-framework/references/migrate-from-editor.md +16 -3
  47. package/dist/{skills-CZcpnEnG.js → skills-BdMKE2uO.js} +4 -4
  48. package/dist/{skills-CLGJuMnF.js → skills-Dg3k6TRC.js} +8 -8
  49. package/dist/{spinner-C2U6QBJ9.js → spinner-Ba3XhlMb.js} +3 -3
  50. package/dist/{storage-6h9vyiAz.js → storage-DIkYajce.js} +1 -1
  51. package/dist/{storekit-CinJra3V.js → storekit-C2UzIIMs.js} +3 -3
  52. package/dist/storekit-DHNxDDpA.js +16 -0
  53. package/dist/{telemetry-DKyDhURo.js → telemetry-CVP8O6Y3.js} +1 -1
  54. package/dist/{token-DaxQgQkv.js → token-IWv2httm.js} +1 -1
  55. package/dist/tools.d.ts +3 -1
  56. package/dist/tools.js +378 -160
  57. package/dist/{upgrade-DPo0a4Es.js → upgrade-1t3aQUxh.js} +1 -1
  58. package/dist/{upgrade-ffseQDMx.js → upgrade-DLf0LJDh.js} +2 -2
  59. package/package.json +2 -2
  60. package/dist/create-BSfvpWoD.js +0 -19
  61. package/dist/held-CPve03KJ.js +0 -16
  62. package/dist/login-BPOONe7n.js +0 -16
  63. package/dist/push-BV-grvQg.js +0 -22
  64. package/dist/scan-B88OlWOt.js +0 -4
  65. package/dist/server-C4f6ccUr.js +0 -22
  66. package/dist/session-BuvArt1j.js +0 -6
  67. package/dist/storekit-CK9JmM2D.js +0 -16
@@ -1,4 +1,4 @@
1
- import { n as ApiUnreachableError, t as ApiError } from "./client-BL0f_yGf.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
@@ -1,5 +1,5 @@
1
- import { c as DASHBOARD_URL } from "./environment-eBXjELoN.js";
2
- import { i as packagedDir } from "./paths-CRlU72cq.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-eBXjELoN.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-C2U6QBJ9.js";
3
- import { I as organizationOf, M as listOrgGroups, P as orgIdOf, c as findPaywall, p as listProjects, v as platformLabel } from "./resources-DLON3-61.js";
4
- import { t as chooseOrgOfApps } from "./org-BQQDo7wm.js";
5
- import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-rr1AkCJA.js";
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-eBXjELoN.js";
2
- import { t as ApiError } from "./client-BL0f_yGf.js";
3
- import { x as pushPaywallAssets } from "./resources-DLON3-61.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";
@@ -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-eBXjELoN.js";
2
- import { t as ApiError } from "./client-BL0f_yGf.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 { E as versionProducts, S as pushPaywallVersion, b as promotePaywallVersion, f as listApplications } from "./resources-DLON3-61.js";
5
- import { i as openBrowser } from "./login-BbTIrCFT.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-C2_KbLuo.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-C4rbE3VS.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";
@@ -1,11 +1,11 @@
1
- import { l as ENV_API_KEY, t as API_HOST, v as apiKeyFromEnv } from "./environment-eBXjELoN.js";
2
- import { t as readSession } from "./storage-6h9vyiAz.js";
3
- import { n as ApiUnreachableError, r as createSuperwallApi, t as ApiError } from "./client-BL0f_yGf.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 { O as isRecord, _ as mintSourceAccess, a as createHeadlessPaywall, d as listAppPaywalls, f as listApplications, u as linkSourceCommit, v as platformLabel } from "./resources-DLON3-61.js";
6
- import { n as findApplication } from "./lookup-rr1AkCJA.js";
7
- import { C as parseSources, D as writeBinding, E as writeApp, j as writeSources, w as readLock, x as formatSharedLock } from "./selection-C2_KbLuo.js";
8
- import { n as performLoginWithUi } from "./login-BCEH5q0U.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";
@@ -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-6h9vyiAz.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
@@ -257,11 +261,39 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
257
261
  (restore, sign-out, an App Store exit offer) branches on
258
262
  `useDevice().hostPlatform` — `"ios" | "android" | "web" | undefined`,
259
263
  normalized and known from the first render — never on the raw
260
- `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
261
270
  `"web"` paywall runs inside the Web SDK on the merchant's page, which
262
271
  hosts it as the web paywall app hosts editor paywalls: the SDK prices
263
272
  the Stripe products, reports the events and finishes the checkout, so
264
- `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.
265
297
  13. **Shipping includes the dashboard.** A push that fails on missing
266
298
  products is not a blocker to report — create them with
267
299
  `superwall products create` ([references/cli.md](references/cli.md)).
@@ -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
@@ -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-eBXjELoN.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-DKyDhURo.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-C2U6QBJ9.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-CRlU72cq.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";
@@ -1,14 +1,14 @@
1
- import "./token-DaxQgQkv.js";
1
+ import "./token-IWv2httm.js";
2
2
  import "./output-Ggzq5_-t.js";
3
- import "./environment-eBXjELoN.js";
4
- import "./storage-6h9vyiAz.js";
5
- import "./client-BL0f_yGf.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-DKyDhURo.js";
7
+ import "./telemetry-CVP8O6Y3.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import "./spinner-C2U6QBJ9.js";
9
+ import "./spinner-Ba3XhlMb.js";
10
10
  import "./ui-D_qf3Gvw.js";
11
- import "./paths-CRlU72cq.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-CZcpnEnG.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-DaxQgQkv.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-eBXjELoN.js";
4
- import { t as ApiError } from "./client-BL0f_yGf.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-eBXjELoN.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-C2U6QBJ9.js";
3
- import { m as listResource } from "./resources-DLON3-61.js";
4
- import { a as pickScope } from "./scope-DV22_Ufm.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-eBXjELoN.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-6h9vyiAz.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 {
package/dist/tools.d.ts CHANGED
@@ -68,10 +68,12 @@ interface Tool {
68
68
  }
69
69
  declare function apiFor({
70
70
  token,
71
- host
71
+ host,
72
+ userAgent
72
73
  }: {
73
74
  token: string;
74
75
  host: string;
76
+ userAgent?: string;
75
77
  }): SuperwallApi;
76
78
  declare function useToolCache(store: Store): void;
77
79
  interface SkillFile {