@superwall/cli 1.6.0 → 1.6.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 (51) hide show
  1. package/dist/{actions-Dt35nIi8.js → actions-BdZ-7BJd.js} +2 -2
  2. package/dist/{api-BOR-uXZe.js → api-FjrCPu6r.js} +5 -5
  3. package/dist/{app-BU27SLPX.js → app-YeJj35Ia.js} +7 -7
  4. package/dist/{asa-2ykGnjaV.js → asa-4nk7HHy8.js} +5 -5
  5. package/dist/{asc-r3xmFT0L.js → asc-2TZOQuK1.js} +5 -5
  6. package/dist/{auth-BWZfguI8.js → auth-QUYfKdwk.js} +8 -8
  7. package/dist/auth.js +2 -2
  8. package/dist/{billing-BsQgXXYh.js → billing-BK7bpv1t.js} +1 -1
  9. package/dist/{bind-BSTAinn6.js → bind-Ch4VR2EY.js} +1 -1
  10. package/dist/{command-DMoMn7uc.js → command-BJ_6850A.js} +4 -4
  11. package/dist/{create-CSo6XjSm.js → create-vSQxQlEP.js} +18 -18
  12. package/dist/dev-B9qmPH1W.js +21 -0
  13. package/dist/{dev-CuXa3J4Z.js → dev-DEss5dwo.js} +4 -4
  14. package/dist/{doctor-DXJaDqsx.js → doctor-BYTfekBr.js} +9 -9
  15. package/dist/{drivers-Cr252DOJ.js → drivers-DGml3OlF.js} +2 -2
  16. package/dist/entry.js +27 -27
  17. package/dist/{existing-Ckx_g7Be.js → existing-DgSo639M.js} +2 -2
  18. package/dist/{feedback-Dt5yebMS.js → feedback-4LsBpZZx.js} +5 -5
  19. package/dist/{hosted-Cjekn8oJ.js → hosted-DqGp6oV2.js} +2 -2
  20. package/dist/{integrate-DVqhvPVq.js → integrate-Cl9eKHoF.js} +16 -16
  21. package/dist/{login-Bjj8QvIN.js → login-DS3MPeW2.js} +3 -3
  22. package/dist/{migrate-qmvOtp3l.js → migrate-WiTO71PE.js} +19 -19
  23. package/dist/{open-studio-CpHqjovS.js → open-studio-CbMUL5Va.js} +8 -8
  24. package/dist/{output-CiELrN8w.js → output-XKuoEEjP.js} +1 -1
  25. package/dist/{pipeline-DSCHL9KA.js → pipeline-J9-nENTS.js} +4 -4
  26. package/dist/{print-skill-CaHRJ8xW.js → print-skill-BOGm5Szi.js} +6 -6
  27. package/dist/{promote-UMTh8Q33.js → promote-Ci085QxU.js} +13 -13
  28. package/dist/{publish-DWX8S9yZ.js → publish--TV-j8Zd.js} +13 -13
  29. package/dist/{push-Dox4_5Dq.js → push-CpGetsJF.js} +13 -13
  30. package/dist/{query-CnSsDZ7Q.js → query-BZStoGLM.js} +5 -5
  31. package/dist/{resource-5bgyyL9B.js → resource-ClLHSXi6.js} +8 -8
  32. package/dist/{run-BVeZWbXx.js → run-CiaWn78U.js} +2 -2
  33. package/dist/{scan-CAObNRgc.js → scan-DEgX5HxV.js} +1 -1
  34. package/dist/skills/superwall/SKILL.md +70 -39
  35. package/dist/skills/superwall/references/api.md +14 -21
  36. package/dist/skills/superwall/references/asa.md +6 -0
  37. package/dist/skills/superwall/references/asc.md +7 -8
  38. package/dist/skills/superwall/references/data-analytics.md +7 -4
  39. package/dist/skills/superwall/references/docs.md +2 -2
  40. package/dist/skills/superwall/references/sdk-integration.md +3 -4
  41. package/dist/skills/superwall/workflows/dashboard/setup.md +23 -24
  42. package/dist/skills/superwall/workflows/integrate/expo.md +14 -11
  43. package/dist/skills/superwall/workflows/integrate/react-native.md +4 -3
  44. package/dist/{skills-Cu41i-Az.js → skills-DjPCmUMU.js} +6 -6
  45. package/dist/{skills-grTDuHlc.js → skills-DsBAVRTE.js} +2 -2
  46. package/dist/{telemetry-BuCbmoux.js → telemetry-EzV7cA7s.js} +1 -1
  47. package/dist/{token-mju3Q-vc.js → token-r5g876aI.js} +1 -1
  48. package/dist/{update-DnGfpCD7.js → update-Cz3Q3MFj.js} +2 -2
  49. package/dist/{upgrade-PMoj3yqJ.js → upgrade-BA_4sdnh.js} +5 -5
  50. package/package.json +2 -2
  51. package/dist/dev-B0MF6z3L.js +0 -21
@@ -70,21 +70,23 @@ For a full migration off another SDK, use the **superwall-migrate** skill.
70
70
  ## Step 1 - Install
71
71
 
72
72
  Detect the package manager from the lockfile. Use `expo install` so versions match
73
- the Expo SDK.
73
+ the Expo SDK. Run from the app root after installing its lockfile dependencies;
74
+ the commands below use the project's installed Expo CLI. Do not download another
75
+ Expo CLI version when the local binary is missing: restore the project dependencies.
74
76
 
75
77
  ```bash
76
78
  curl -sL https://superwall.com/docs/expo/quickstart/install.md
77
79
  ```
78
80
 
79
81
  ```bash
80
- npx expo install expo-superwall
81
- # or: pnpm dlx expo install expo-superwall / yarn dlx expo install expo-superwall / bunx expo install expo-superwall
82
+ ./node_modules/.bin/expo install expo-superwall
83
+ # or: pnpm exec expo install expo-superwall / yarn expo install expo-superwall
82
84
  ```
83
85
 
84
86
  Also install and configure `expo-build-properties` to guarantee native minimums:
85
87
 
86
88
  ```bash
87
- npx expo install expo-build-properties
89
+ ./node_modules/.bin/expo install expo-build-properties
88
90
  ```
89
91
 
90
92
  Merge into the **existing** `plugins` array in `app.json` / `app.config.js` (don't
@@ -108,14 +110,14 @@ create a second one):
108
110
  `expo-superwall` is a native module, so produce a **native build**:
109
111
 
110
112
  ```bash
111
- npx expo run:ios # or: npx expo run:android
113
+ ./node_modules/.bin/expo run:ios # or: ./node_modules/.bin/expo run:android
112
114
  ```
113
115
 
114
116
  For an **existing** project whose `ios/`/`android/` predate the install, regenerate
115
117
  them (back up custom native code first):
116
118
 
117
119
  ```bash
118
- npx expo prebuild --clean
120
+ ./node_modules/.bin/expo prebuild --clean
119
121
  ```
120
122
 
121
123
  ## Step 2 - Configure
@@ -210,7 +212,7 @@ export class MyPurchaseController extends PurchaseController {
210
212
 
211
213
  ## Step 5 & 6 - Verify
212
214
 
213
- 1. **Build a dev client** and run it: `npx expo run:ios` / `npx expo run:android`
215
+ 1. **Build a dev client** and run it: `./node_modules/.bin/expo run:ios` / `run:android`
214
216
  (NOT Expo Go). Must compile with the native module linked.
215
217
  2. Watch Metro/Xcode/Android logs on launch for Superwall SDK startup.
216
218
  > **Important:** Superwall does **not** refetch config on hot reload - fully
@@ -246,15 +248,16 @@ The Expo SDK exposes these through the **`useUser`** hook and event hooks.
246
248
  ## Pitfalls
247
249
 
248
250
  - **"Cannot find native module 'SuperwallExpo'" / paywalls don't load** → you're on
249
- Expo Go. Build a dev client: `npx expo run:ios` / `run:android`, or
251
+ Expo Go. Build a dev client: `./node_modules/.bin/expo run:ios` / `run:android`, or
250
252
  `eas build --profile development --platform ios`.
251
- - **Existing app, native folders out of date** → `npx expo prebuild --clean` (back
253
+ - **Existing app, native folders out of date** → `./node_modules/.bin/expo prebuild --clean` (back
252
254
  up custom native code first).
253
255
  - **EAS build missing the module** → fresh dev build:
254
256
  `eas build --profile development --platform ios`.
255
- - **Stale caches after install** → `npx expo start --clear`, reinstall
257
+ - **Stale caches after install** → `./node_modules/.bin/expo start --clear`, reinstall
256
258
  `node_modules`, `pod install --repo-update` in `ios/`.
257
- - **Wrong Expo SDK** → `npx expo-doctor`; needs Expo SDK 53+.
259
+ - **Wrong Expo SDK** → `npx -y expo-doctor@1.20.4`; needs Expo SDK 53+.
260
+ Check the pinned doctor's Node `engines` requirement before running it.
258
261
  - **Changes not taking effect** → hot reload doesn't re-configure Superwall; fully
259
262
  restart.
260
263
 
@@ -75,7 +75,7 @@ consume `expo-superwall` without full Expo):
75
75
 
76
76
  ```bash
77
77
  curl -sL https://superwall.com/docs/expo/guides/using-expo-sdk-in-bare-react-native.md
78
- npx install-expo-modules@latest
78
+ npx -y install-expo-modules@0.16.0
79
79
  ```
80
80
 
81
81
  Install the SDK with the project's package manager (detect from lockfile):
@@ -202,7 +202,8 @@ setSubscriptionStatus({ status: "ACTIVE", entitlements: [{ id: "pro" }] })`.
202
202
 
203
203
  ## Verify (both paths)
204
204
 
205
- 1. **Native rebuild** & run: `npx react-native run-ios` / `run-android`. Path A must
205
+ 1. **Native rebuild** & run: `./node_modules/.bin/react-native run-ios` / `run-android`.
206
+ Run from the app root after installing its lockfile dependencies. Path A must
206
207
  relink the native module - rebuild, don't just reload JS.
207
208
  2. Watch native logs on launch for Superwall SDK startup.
208
209
  3. iOS purchase testing: StoreKit testing in Xcode.
@@ -231,7 +232,7 @@ Path A uses the `useUser` hook; Path B uses static `Superwall` methods.
231
232
  native rebuild (not just Metro reload).
232
233
  - **Reached for the wrong SDK** → prefer Path A (`expo-superwall`); the standalone
233
234
  `@superwall/react-native-superwall` is deprecated.
234
- - **Path A native module missing** → `npx install-expo-modules@latest` must succeed
235
+ - **Path A native module missing** → `npx -y install-expo-modules@0.16.0` must succeed
235
236
  before `pod install`; rebuild afterward.
236
237
  - **Configuring on every render** → Path B: wrap `configure` in `useEffect(..., [])`.
237
238
  - **Secret key** → key must start with `pk_`.
@@ -1,10 +1,10 @@
1
- import "./output-CiELrN8w.js";
2
- import "./telemetry-BuCbmoux.js";
3
- import "./update-DnGfpCD7.js";
4
- import "./token-mju3Q-vc.js";
5
- import { t as defineCommand } from "./command-DMoMn7uc.js";
1
+ import "./output-XKuoEEjP.js";
2
+ import "./telemetry-EzV7cA7s.js";
3
+ import "./update-Cz3Q3MFj.js";
4
+ import "./token-r5g876aI.js";
5
+ import { t as defineCommand } from "./command-BJ_6850A.js";
6
6
  import { n as ui } from "./ui-4gLyfrgl.js";
7
- import { a as skillsOutOfDate, o as syncSkills, r as fetchPublicSkills, t as SKILLS_INSTALL_SOURCE } from "./skills-grTDuHlc.js";
7
+ import { a as skillsOutOfDate, o as syncSkills, r as fetchPublicSkills, t as SKILLS_INSTALL_SOURCE } from "./skills-DsBAVRTE.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
9
  import { t as withSpinner } from "./spinner-DFctF_Jw.js";
10
10
 
@@ -1,5 +1,5 @@
1
- import { a as AGENT_SKILLS_DIR, l as CHANNEL, u as CHANNELS, y as VERSION } from "./output-CiELrN8w.js";
2
- import { h as setSkillsSync, i as track, u as getSkillsSync } from "./telemetry-BuCbmoux.js";
1
+ import { a as AGENT_SKILLS_DIR, l as CHANNEL, u as CHANNELS, y as VERSION } from "./output-XKuoEEjP.js";
2
+ import { h as setSkillsSync, i as track, u as getSkillsSync } from "./telemetry-EzV7cA7s.js";
3
3
  import { n as ui } from "./ui-4gLyfrgl.js";
4
4
  import { r as spawnStream } from "./spawn-DSoTXy_j.js";
5
5
  import { dirname, join } from "node:path";
@@ -1,4 +1,4 @@
1
- import { _ as TELEMETRY_HOST, g as SUPERWALL_HOME, r as formatJson, v as TELEMETRY_KEY, x as isNonInteractive, y as VERSION } from "./output-CiELrN8w.js";
1
+ import { _ as TELEMETRY_HOST, g as SUPERWALL_HOME, r as formatJson, v as TELEMETRY_KEY, x as isNonInteractive, y as VERSION } from "./output-XKuoEEjP.js";
2
2
  import { join } from "node:path";
3
3
  import { homedir } from "node:os";
4
4
  import { randomUUID } from "node:crypto";
@@ -1,4 +1,4 @@
1
- import { g as SUPERWALL_HOME, r as formatJson } from "./output-CiELrN8w.js";
1
+ import { g as SUPERWALL_HOME, r as formatJson } from "./output-XKuoEEjP.js";
2
2
  import { join } from "node:path";
3
3
  import { homedir } from "node:os";
4
4
  import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
@@ -1,5 +1,5 @@
1
- import { y as VERSION } from "./output-CiELrN8w.js";
2
- import { d as getUpdateCheck, g as setUpdateCheck } from "./telemetry-BuCbmoux.js";
1
+ import { y as VERSION } from "./output-XKuoEEjP.js";
2
+ import { d as getUpdateCheck, g as setUpdateCheck } from "./telemetry-EzV7cA7s.js";
3
3
  import pc from "picocolors";
4
4
 
5
5
  //#region src/core/update.ts
@@ -1,8 +1,8 @@
1
- import { y as VERSION } from "./output-CiELrN8w.js";
2
- import { g as setUpdateCheck } from "./telemetry-BuCbmoux.js";
3
- import { r as isNewerVersion, t as fetchLatestVersion } from "./update-DnGfpCD7.js";
4
- import "./token-mju3Q-vc.js";
5
- import { t as defineCommand } from "./command-DMoMn7uc.js";
1
+ import { y as VERSION } from "./output-XKuoEEjP.js";
2
+ import { g as setUpdateCheck } from "./telemetry-EzV7cA7s.js";
3
+ import { r as isNewerVersion, t as fetchLatestVersion } from "./update-Cz3Q3MFj.js";
4
+ import "./token-r5g876aI.js";
5
+ import { t as defineCommand } from "./command-BJ_6850A.js";
6
6
  import "./ui-4gLyfrgl.js";
7
7
  import { r as spawnStream } from "./spawn-DSoTXy_j.js";
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superwall/cli",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "The official CLI for managing Superwall from your terminal or coding agent.",
5
5
  "keywords": [
6
6
  "agent",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@anthropic-ai/claude-agent-sdk": "0.3.201",
62
- "@superwall/studio": "1.6.0",
62
+ "@superwall/studio": "1.6.1",
63
63
  "ansi-escapes": "^7.3.0",
64
64
  "fast-glob": "^3.3.3",
65
65
  "ink": "^5.2.1",
@@ -1,21 +0,0 @@
1
- import "./output-CiELrN8w.js";
2
- import "./telemetry-BuCbmoux.js";
3
- import "./update-DnGfpCD7.js";
4
- import "./token-mju3Q-vc.js";
5
- import "./command-DMoMn7uc.js";
6
- import "./ui-4gLyfrgl.js";
7
- import "./skills-grTDuHlc.js";
8
- import "./spawn-DSoTXy_j.js";
9
- import "./login-Bjj8QvIN.js";
10
- import "./scan-CAObNRgc.js";
11
- import "./hosted-Cjekn8oJ.js";
12
- import "./spinner-DFctF_Jw.js";
13
- import "./resources-Bf9O1JNM.js";
14
- import "./org-CV8c849b.js";
15
- import "./bind-BSTAinn6.js";
16
- import "./pipeline-DSCHL9KA.js";
17
- import "./actions-Dt35nIi8.js";
18
- import "./app-BU27SLPX.js";
19
- import { t as runDev } from "./dev-CuXa3J4Z.js";
20
-
21
- export { runDev };