@superwall/cli 1.1.0 → 1.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.
- package/README.md +181 -19
- package/dist/{actions-MB-eBY64.js → actions-I5gVO5jN.js} +2 -2
- package/dist/{api-BF7-toqM.js → api-emImQnVy.js} +3 -3
- package/dist/{app-K6j9Es7h.js → app-DE9lxNNV.js} +6 -6
- package/dist/{asc-CArSwo5D.js → asc-DYc_Yo9e.js} +3 -3
- package/dist/{auth-CY2cO_NF.js → auth-Bir_Un8l.js} +6 -6
- package/dist/{billing-DWyfEQ6l.js → billing-CW0diI2X.js} +1 -1
- package/dist/{bind-hslFhcTR.js → bind-DO11eXrR.js} +1 -1
- package/dist/{command-Kwx4ekbo.js → command-CmJMNVVz.js} +2 -2
- package/dist/{create-Bbi8BOO1.js → create-CwDgWW16.js} +12 -12
- package/dist/{dev-D0lQDCQI.js → dev-OnmMOsgK.js} +12 -12
- package/dist/{doctor-ByeRdMcl.js → doctor-CpYkDfdC.js} +7 -7
- package/dist/{drivers-DVAZgone.js → drivers-Cweb9bWA.js} +2 -2
- package/dist/entry.js +25 -25
- package/dist/{existing-CcJrIIAU.js → existing-p-hX-Nxc.js} +2 -2
- package/dist/{feedback-Z0Wk7VC5.js → feedback-CV4JnRuk.js} +3 -3
- package/dist/{git-3OX9u3xE.js → git-BrTxQ7ui.js} +3 -3
- package/dist/{hosted-CHwaUqLd.js → hosted-CbNJSJAC.js} +1 -1
- package/dist/{integrate-DqOAqK7J.js → integrate-DOLvHr1D.js} +14 -14
- package/dist/{login-Dr8UN_Gx.js → login-B7fSpJKc.js} +1 -1
- package/dist/{migrate-D92bJTg6.js → migrate-Bn5btm_H.js} +14 -14
- package/dist/{pipeline-CHHIg6BU.js → pipeline-COr4sB6U.js} +3 -3
- package/dist/{print-skill-BnZAk7dV.js → print-skill-D0j2D6tw.js} +5 -5
- package/dist/{promote-CRe9170G.js → promote-UmKZySRx.js} +12 -12
- package/dist/{publish-DsODvrOD.js → publish-BVnG2UOU.js} +12 -12
- package/dist/{push-BDkZUC0v.js → push-hHtVTZ1m.js} +12 -12
- package/dist/{query-DIllrSnk.js → query-CbGfXmKu.js} +3 -3
- package/dist/{resource-CdP1MDla.js → resource-m6yz1jwE.js} +6 -6
- package/dist/{run-cGGBUMs5.js → run-BTLaOoKK.js} +2 -2
- package/dist/{scan-BQexuUPO.js → scan-BfoeYW1v.js} +1 -1
- package/dist/{skills-DhuUs28u.js → skills-C4Yzl64N.js} +4 -4
- package/dist/{skills-xrfXt9u0.js → skills-HlIKA9xR.js} +1 -1
- package/dist/{telemetry-CcfrtXdf.js → telemetry-CLi7mjDP.js} +1 -1
- package/dist/{update-BiVeR024.js → update-CxP4fmMe.js} +1 -1
- package/dist/{upgrade-DYWspApv.js → upgrade-Cbh-7q_o.js} +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
-
<h1 align="center"
|
|
7
|
+
<h1 align="center">@superwall/cli</h1>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
Build paywalls and funnels as code, set up the SDK, manage products and
|
|
@@ -19,15 +19,18 @@ npm install --global superwall
|
|
|
19
19
|
superwall login
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
`superwall
|
|
22
|
+
This package is the engine behind the `superwall` command — every command
|
|
23
|
+
lives here — and the [`superwall`](https://www.npmjs.com/package/superwall)
|
|
24
|
+
package installs it for you, along with the framework and both the
|
|
25
|
+
`superwall` and the short `sw` binaries. Install `superwall`, not this
|
|
26
|
+
package; everything below is what you get.
|
|
26
27
|
|
|
27
28
|
`superwall login` opens your browser once and every command shares that
|
|
28
29
|
session. In CI, log in without a browser: `superwall login --api-key <key>`.
|
|
29
30
|
If your account belongs to more than one organization, pick one with
|
|
30
31
|
`superwall orgs use` (you'll otherwise be asked the first time it matters).
|
|
32
|
+
Upgrade any time with `superwall upgrade` - the CLI also tells you when a new
|
|
33
|
+
version is out.
|
|
31
34
|
|
|
32
35
|
## Set up your app
|
|
33
36
|
|
|
@@ -59,18 +62,141 @@ superwall promote # point production at a pushed version
|
|
|
59
62
|
superwall publish # push and promote in one step
|
|
60
63
|
```
|
|
61
64
|
|
|
65
|
+
Every paywall and web funnel is a mini React app: file-based routes, your
|
|
66
|
+
components, your design system, plain React state. The `superwall` package is
|
|
67
|
+
the framework too — `definePaywall`, the hooks, the typed router, web
|
|
68
|
+
checkout — and Superwall takes it from there: products and purchases,
|
|
69
|
+
localization, trials, experimentation, and delivery through the native SDKs
|
|
70
|
+
(iOS, Android, Flutter, React Native) and the web.
|
|
71
|
+
|
|
62
72
|
`create` sets up a `superwall/` directory in your app — always that name,
|
|
63
|
-
always self-contained.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
always self-contained. It asks for a starting point (`--example with-rive`
|
|
74
|
+
to begin from any example in the
|
|
75
|
+
[public repo](https://github.com/superwall/superwall/tree/main/examples)),
|
|
76
|
+
then looks at the app around it: if the Superwall SDK is already configured,
|
|
77
|
+
it finds your app by its API key and binds pushes to it; otherwise it can log
|
|
78
|
+
you in, pick an app, or create one on the spot. `--yes` accepts the defaults;
|
|
79
|
+
`--no-install` and `--no-connect` skip those steps.
|
|
80
|
+
|
|
81
|
+
### A project is a directory
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
superwall/
|
|
85
|
+
├── package.json the project's own deps, and the project marker
|
|
86
|
+
├── superwall.lock app + paywall bindings, per platform (commit it)
|
|
87
|
+
├── components/ shared design system
|
|
88
|
+
├── messages/en.ts shared strings, inherited by every surface
|
|
89
|
+
├── assets/ shared images, video, and fonts
|
|
90
|
+
├── paywalls/
|
|
91
|
+
│ └── plus-upgrade/ each paywall is a mini React app
|
|
92
|
+
│ ├── config.ts required — name, products, platforms, settings
|
|
93
|
+
│ ├── app/ routes only — every .tsx here is a route
|
|
94
|
+
│ │ ├── layout.tsx optional — wraps every route
|
|
95
|
+
│ │ ├── index.tsx where the flow starts
|
|
96
|
+
│ │ ├── plans.tsx one file per route
|
|
97
|
+
│ │ └── goals/ directories prefix route names
|
|
98
|
+
│ │ └── setup.tsx "goals/setup"
|
|
99
|
+
│ ├── components/
|
|
100
|
+
│ └── messages/en.ts
|
|
101
|
+
└── funnels/
|
|
102
|
+
└── onboarding/ same shape — onboarding, web2app, win-back
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Identity is the path: `paywalls/plus-upgrade` **is** the paywall's ID. No name
|
|
106
|
+
fields, no registration, no build config — the tooling owns bundling.
|
|
107
|
+
`components/`, `messages/`, and `assets/` work at both levels: shared at the
|
|
108
|
+
`superwall/` root (`@/…` aliases it), local inside a surface.
|
|
109
|
+
|
|
110
|
+
### `config.ts`
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
import { definePaywall } from "superwall/config";
|
|
114
|
+
|
|
115
|
+
export default definePaywall({
|
|
116
|
+
name: "Plus — Annual, 3-day trial",
|
|
117
|
+
platforms: ["ios", "android"],
|
|
118
|
+
products: {
|
|
119
|
+
monthly: "pro_999_month",
|
|
120
|
+
annual: { ios: "pro_5999_year", android: "pro_5999_year_play" },
|
|
121
|
+
},
|
|
122
|
+
presentation: { style: "drawer", height: 70 },
|
|
123
|
+
featureGating: "gated",
|
|
124
|
+
});
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`config.ts` is the whole truth for its paywall — there are no project-wide
|
|
128
|
+
defaults. `platforms` is a typed array of `ios | android | web`; the project
|
|
129
|
+
binds one Superwall app per platform, and a project on several platforms
|
|
130
|
+
never guesses which one a paywall means. `products` are slots by reference:
|
|
131
|
+
one store identifier, or one per platform when the store product differs —
|
|
132
|
+
`purchase("annual")` stays one call, and each platform's build carries only
|
|
133
|
+
its own ids. Product data (price, period, trial…) arrives from the SDK at
|
|
134
|
+
runtime and is never invented locally. Presentation style, feature gating,
|
|
135
|
+
caching, scrolling, game controller, introductory-offer eligibility,
|
|
136
|
+
background, and web checkout are all settings here too: pushed with the
|
|
137
|
+
version, stamped on promote, and an omitted key resets to its default. Share
|
|
138
|
+
settings by exporting a plain object and spreading it.
|
|
139
|
+
|
|
140
|
+
### Hooks
|
|
141
|
+
|
|
142
|
+
```tsx
|
|
143
|
+
import { useProducts, usePurchase, useTranslation } from "superwall/hooks";
|
|
144
|
+
|
|
145
|
+
export default function PlusUpgrade() {
|
|
146
|
+
const { getProduct } = useProducts();
|
|
147
|
+
const { purchase, isPurchasing } = usePurchase();
|
|
148
|
+
const { t } = useTranslation();
|
|
149
|
+
// your components, your design system — superwall is headless
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
One concern each: `useProducts`, `usePurchase` (resolves `completed |
|
|
154
|
+
abandoned | failed`, never throws for flow outcomes), `useActions`,
|
|
155
|
+
`useHaptics`, `useColorScheme`, `useTranslation`, `useTrialEligibility`,
|
|
156
|
+
`useDevice` / `useUser` / `useVariables`, `useLocalResource`,
|
|
157
|
+
`useSuperwallEvent`, `useGameController`.
|
|
158
|
+
|
|
159
|
+
### Navigation
|
|
160
|
+
|
|
161
|
+
```tsx
|
|
162
|
+
import { useRouter } from "superwall/navigation";
|
|
163
|
+
|
|
164
|
+
const router = useRouter();
|
|
165
|
+
router.push("goals/setup");
|
|
166
|
+
router.push("plans", { transition: "fade" });
|
|
167
|
+
router.back();
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
expo-router's API, method for method. Route names are generated into
|
|
171
|
+
`superwall.d.ts` on every `dev` and `push`, so a typo is a compile error.
|
|
172
|
+
Routes are names, not paths — the whole flow ships as one HTML file — and
|
|
173
|
+
`useQueryState` (nuqs's API) keeps web funnel state in the URL so hosted
|
|
174
|
+
checkout and in-app browsers hand a flow back where it left off.
|
|
175
|
+
|
|
176
|
+
### Dev — the studio
|
|
177
|
+
|
|
178
|
+
`superwall dev` discovers every surface and opens the studio: every paywall
|
|
179
|
+
and funnel as a live card, and an editor with a device-frame preview (nine
|
|
180
|
+
devices, iPhone SE to Desktop), light/dark, locale switching, and live
|
|
181
|
+
controls for the user, device, params, and product variables the SDK
|
|
182
|
+
reports. Previews run against a stand-in SDK host — purchases resolve, trials
|
|
183
|
+
start — while product data is read from Superwall, never invented. The same
|
|
184
|
+
build runs unchanged inside a real SDK webview.
|
|
185
|
+
|
|
186
|
+
### Push, promote, publish
|
|
187
|
+
|
|
188
|
+
Git semantics on purpose: **push saves, promote ships.** Every push builds
|
|
189
|
+
each paywall once per platform, uploads assets by content hash, and mints an
|
|
190
|
+
immutable version; nothing users see changes until `promote` repoints
|
|
191
|
+
production. `promote --version <n>` makes a rollback one command, `-m "why"`
|
|
192
|
+
records a note in the source commit that rides along with every version, and
|
|
193
|
+
`--platform <p>` narrows `push`, `promote`, and `publish` to one platform.
|
|
194
|
+
Renames are resolved, never guessed — interactively, or with
|
|
195
|
+
`push --rename old=new` in CI.
|
|
196
|
+
|
|
197
|
+
The full reference — assets, localization, trials, transitions, web
|
|
198
|
+
checkout, troubleshooting — lives at
|
|
199
|
+
[superwall.com/docs/framework](https://superwall.com/docs/framework).
|
|
74
200
|
|
|
75
201
|
## Manage your account
|
|
76
202
|
|
|
@@ -175,7 +301,9 @@ prompts.
|
|
|
175
301
|
Logging in also installs the [Superwall agent skills](https://github.com/superwall/skills)
|
|
176
302
|
into your coding agent and keeps them updated. `superwall skills` reinstalls
|
|
177
303
|
them (or a subset) manually; `superwall skills -y` installs everything without
|
|
178
|
-
asking.
|
|
304
|
+
asking. The framework itself is built to be written by agents: a plain npm
|
|
305
|
+
project, file-based routes, ordinary React state — conventions an agent
|
|
306
|
+
already knows, so it gets a paywall right on the first try.
|
|
179
307
|
|
|
180
308
|
## Telemetry
|
|
181
309
|
|
|
@@ -183,10 +311,37 @@ The CLI sends fully anonymous usage events (which workflow ran and whether it
|
|
|
183
311
|
succeeded — never emails, IDs, file paths, SQL, prompts, or error messages).
|
|
184
312
|
Opt out with `SUPERWALL_TELEMETRY_DISABLED=1` or `DO_NOT_TRACK=1`.
|
|
185
313
|
|
|
314
|
+
## Package layout
|
|
315
|
+
|
|
316
|
+
```
|
|
317
|
+
packages/cli/
|
|
318
|
+
├── bin.ts the entry the `superwall` launcher runs
|
|
319
|
+
├── src/
|
|
320
|
+
│ ├── cli.ts every command, flag, and help line (yargs)
|
|
321
|
+
│ ├── commands/
|
|
322
|
+
│ │ ├── account/ login, whoami, orgs, doctor, feedback, skills, upgrade
|
|
323
|
+
│ │ ├── resource/ apps, products, entitlements, campaigns, paywalls, bootstrap
|
|
324
|
+
│ │ ├── workflow/ integrate, migrate, review
|
|
325
|
+
│ │ ├── platform/ get/post/patch/delete, query, asc, asc keys
|
|
326
|
+
│ │ └── paywalls/ create, dev, push, promote, publish
|
|
327
|
+
│ ├── core/ api client, auth, project detection, paywall
|
|
328
|
+
│ │ binding + lock, agent runners, telemetry, skills sync
|
|
329
|
+
│ └── ui/ the renderer: human output, --json envelopes, prompts
|
|
330
|
+
├── skills/ the bundled playbooks integrate/migrate/review run
|
|
331
|
+
└── tests/ mirrors src/
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
The paywall commands load the framework's tooling contract
|
|
335
|
+
(`superwall/build`, `superwall/preview`, `superwall/discover`) dynamically
|
|
336
|
+
from the project's own install, so they always run against the framework
|
|
337
|
+
version in the project's lockfile.
|
|
338
|
+
|
|
186
339
|
## Develop
|
|
187
340
|
|
|
188
|
-
|
|
189
|
-
|
|
341
|
+
This package lives in the [`superwall/superwall`](https://github.com/superwall/superwall)
|
|
342
|
+
monorepo. **Read [AGENTS.md](https://github.com/superwall/superwall/blob/main/AGENTS.md)
|
|
343
|
+
first** - command naming, UI rules, skill authoring, and the sync checklist
|
|
344
|
+
are decided conventions, not suggestions.
|
|
190
345
|
|
|
191
346
|
```bash
|
|
192
347
|
bun install
|
|
@@ -199,3 +354,10 @@ bun run test
|
|
|
199
354
|
The global `superwall`/`sw` binaries are declared by the framework package:
|
|
200
355
|
`cd ../superwall && bun link` links them. They run this package's built
|
|
201
356
|
`dist/`, so rebuild after every change.
|
|
357
|
+
|
|
358
|
+
## License
|
|
359
|
+
|
|
360
|
+
[MIT](https://github.com/superwall/superwall/blob/main/packages/cli/LICENSE).
|
|
361
|
+
The framework it launches is licensed under the
|
|
362
|
+
[Functional Source License](https://github.com/superwall/superwall/blob/main/packages/superwall/LICENSE)
|
|
363
|
+
(FSL-1.1-ALv2).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Integration } from "./telemetry-
|
|
2
|
-
import { i as loadBundledSkill } from "./skills-
|
|
1
|
+
import { T as Integration } from "./telemetry-CLi7mjDP.js";
|
|
2
|
+
import { i as loadBundledSkill } from "./skills-HlIKA9xR.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/agent/actions.ts
|
|
5
5
|
/** Skill reference file per framework, so an agent only sees its own platform's docs. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./telemetry-
|
|
1
|
+
import "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
7
|
import { C as rowName, h as listResource, m as listProjects, p as listOrganizations, w as titleCase, y as platformLabel } from "./resources-CVrWwA1K.js";
|
|
8
8
|
import { t as parseParams } from "./params-Bvq0iqQK.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as loadSession, r as clearSession } from "./token-DHRH8cxi.js";
|
|
2
|
-
import { r as SuperwallApi } from "./command-
|
|
2
|
+
import { r as SuperwallApi } from "./command-CmJMNVVz.js";
|
|
3
3
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
4
|
-
import { n as performLogin, r as onboardingHooks } from "./login-
|
|
5
|
-
import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-
|
|
6
|
-
import { r as getHostedStatus } from "./hosted-
|
|
4
|
+
import { n as performLogin, r as onboardingHooks } from "./login-B7fSpJKc.js";
|
|
5
|
+
import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-BfoeYW1v.js";
|
|
6
|
+
import { r as getHostedStatus } from "./hosted-CbNJSJAC.js";
|
|
7
7
|
import { t as withSpinner } from "./spinner-gOxIMz-V.js";
|
|
8
|
-
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-
|
|
9
|
-
import { t as ACTIONS } from "./actions-
|
|
8
|
+
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-DO11eXrR.js";
|
|
9
|
+
import { t as ACTIONS } from "./actions-I5gVO5jN.js";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/workflow/integrate/app.ts
|
|
12
12
|
async function performLoginWithUi(app, onProvisioned) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./telemetry-
|
|
1
|
+
import "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
7
|
import "./spinner-gOxIMz-V.js";
|
|
8
8
|
import { C as rowName } from "./resources-CVrWwA1K.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { i as track, y as API_HOST } from "./telemetry-
|
|
1
|
+
import { i as track, y as API_HOST } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import { i as loadSession, r as clearSession } from "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
|
-
import { n as ensureSkillsCurrent } from "./skills-
|
|
7
|
+
import { n as ensureSkillsCurrent } from "./skills-HlIKA9xR.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import { n as performLogin, r as onboardingHooks, t as loginWithApiKey } from "./login-
|
|
10
|
-
import { t as scanProject } from "./scan-
|
|
9
|
+
import { n as performLogin, r as onboardingHooks, t as loginWithApiKey } from "./login-B7fSpJKc.js";
|
|
10
|
+
import { t as scanProject } from "./scan-BfoeYW1v.js";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/account/auth.ts
|
|
13
13
|
const runLogin = defineCommand({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Integration } from "./telemetry-
|
|
1
|
+
import { T as Integration } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
3
3
|
import { m as listProjects, n as createApplication, s as createProject, y as platformLabel } from "./resources-CVrWwA1K.js";
|
|
4
4
|
import { t as requireOrg } from "./org-B2gy9Pmu.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as track, n as maybeShowTelemetryNotice, o as isNonInteractive, y as API_HOST } from "./telemetry-
|
|
2
|
-
import { a as refreshUpdateCheck, c as writeJson, i as maybeNotifyUpdate, s as createCommandOutput } from "./update-
|
|
1
|
+
import { i as track, n as maybeShowTelemetryNotice, o as isNonInteractive, y as API_HOST } from "./telemetry-CLi7mjDP.js";
|
|
2
|
+
import { a as refreshUpdateCheck, c as writeJson, i as maybeNotifyUpdate, s as createCommandOutput } from "./update-CxP4fmMe.js";
|
|
3
3
|
import { a as saveSession, i as loadSession, n as resolveAuthToken, o as NotLoggedInError } from "./token-DHRH8cxi.js";
|
|
4
4
|
import { t as selectRenderer } from "./ui-C4ncRJqd.js";
|
|
5
5
|
import pc from "picocolors";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "./telemetry-
|
|
1
|
+
import "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-HlIKA9xR.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import { n as allDeps, r as readPackageJson, t as scanProject } from "./scan-
|
|
11
|
-
import "./hosted-
|
|
12
|
-
import { t as detectExisting } from "./existing-
|
|
9
|
+
import "./login-B7fSpJKc.js";
|
|
10
|
+
import { n as allDeps, r as readPackageJson, t as scanProject } from "./scan-BfoeYW1v.js";
|
|
11
|
+
import "./hosted-CbNJSJAC.js";
|
|
12
|
+
import { t as detectExisting } from "./existing-p-hX-Nxc.js";
|
|
13
13
|
import "./spinner-gOxIMz-V.js";
|
|
14
14
|
import { f as listApplications, m as listProjects, n as createApplication, y as platformLabel } from "./resources-CVrWwA1K.js";
|
|
15
15
|
import "./org-B2gy9Pmu.js";
|
|
16
|
-
import { r as resolveScopeFromKey } from "./bind-
|
|
17
|
-
import { a as projectPackageName, i as requireApi, l as requirePlatform, m as writeApp, r as LoginRequiredError, t as gitAvailable } from "./git-
|
|
18
|
-
import "./actions-
|
|
19
|
-
import "./app-
|
|
16
|
+
import { r as resolveScopeFromKey } from "./bind-DO11eXrR.js";
|
|
17
|
+
import { a as projectPackageName, i as requireApi, l as requirePlatform, m as writeApp, r as LoginRequiredError, t as gitAvailable } from "./git-BrTxQ7ui.js";
|
|
18
|
+
import "./actions-I5gVO5jN.js";
|
|
19
|
+
import "./app-DE9lxNNV.js";
|
|
20
20
|
import pc from "picocolors";
|
|
21
21
|
import { promisify } from "node:util";
|
|
22
22
|
import * as fs from "node:fs";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { k as VERSION } from "./telemetry-
|
|
1
|
+
import { k as VERSION } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-HlIKA9xR.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import "./scan-
|
|
11
|
-
import "./hosted-
|
|
9
|
+
import "./login-B7fSpJKc.js";
|
|
10
|
+
import "./scan-BfoeYW1v.js";
|
|
11
|
+
import "./hosted-CbNJSJAC.js";
|
|
12
12
|
import "./spinner-gOxIMz-V.js";
|
|
13
13
|
import { S as pushPaywallVersion, T as versionProducts, b as promotePaywallVersion, f as listApplications } from "./resources-CVrWwA1K.js";
|
|
14
14
|
import "./org-B2gy9Pmu.js";
|
|
15
|
-
import "./bind-
|
|
16
|
-
import { f as readLock, i as requireApi, o as writeProjectScaffold, u as resolveApps } from "./git-
|
|
17
|
-
import "./actions-
|
|
18
|
-
import "./app-
|
|
19
|
-
import { C as syncAssets, D as writeProjectTypes, E as collectProjectDeclarations, S as requireAssets, T as loadFramework, _ as planTargets, a as requireProject, b as resolveBinding, d as pushSource, f as collectSourceFiles, h as projectForApplication, i as projectDirs, m as fetchProducts, p as warnNotPortable, r as projectDir, t as LAYOUT_HINT, w as frameworkVersion, x as assetBaseUrl, y as wantedPlatforms } from "./pipeline-
|
|
15
|
+
import "./bind-DO11eXrR.js";
|
|
16
|
+
import { f as readLock, i as requireApi, o as writeProjectScaffold, u as resolveApps } from "./git-BrTxQ7ui.js";
|
|
17
|
+
import "./actions-I5gVO5jN.js";
|
|
18
|
+
import "./app-DE9lxNNV.js";
|
|
19
|
+
import { C as syncAssets, D as writeProjectTypes, E as collectProjectDeclarations, S as requireAssets, T as loadFramework, _ as planTargets, a as requireProject, b as resolveBinding, d as pushSource, f as collectSourceFiles, h as projectForApplication, i as projectDirs, m as fetchProducts, p as warnNotPortable, r as projectDir, t as LAYOUT_HINT, w as frameworkVersion, x as assetBaseUrl, y as wantedPlatforms } from "./pipeline-COr4sB6U.js";
|
|
20
20
|
import pc from "picocolors";
|
|
21
21
|
import * as fs from "node:fs";
|
|
22
22
|
import * as path from "node:path";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as apiKeyFromEnv } from "./telemetry-
|
|
1
|
+
import { a as apiKeyFromEnv } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import { i as loadSession } from "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import { a as fg, i as THEME, n as ui } from "./ui-C4ncRJqd.js";
|
|
7
7
|
import "./spawn-DSoTXy_j.js";
|
|
8
|
-
import { t as scanProject } from "./scan-
|
|
9
|
-
import { t as detectDrivers } from "./drivers-
|
|
10
|
-
import "./hosted-
|
|
11
|
-
import { t as detectExisting } from "./existing-
|
|
8
|
+
import { t as scanProject } from "./scan-BfoeYW1v.js";
|
|
9
|
+
import { t as detectDrivers } from "./drivers-Cweb9bWA.js";
|
|
10
|
+
import "./hosted-CbNJSJAC.js";
|
|
11
|
+
import { t as detectExisting } from "./existing-p-hX-Nxc.js";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/account/doctor.ts
|
|
14
14
|
const runDoctor = defineCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as VERSION } from "./telemetry-
|
|
1
|
+
import { k as VERSION } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import { n as readVersion, r as spawnStream, t as onPath } from "./spawn-DSoTXy_j.js";
|
|
3
|
-
import { n as getHostedAuthToken, r as getHostedStatus, t as getHostedAnthropicBaseUrl } from "./hosted-
|
|
3
|
+
import { n as getHostedAuthToken, r as getHostedStatus, t as getHostedAnthropicBaseUrl } from "./hosted-CbNJSJAC.js";
|
|
4
4
|
import { tmpdir } from "node:os";
|
|
5
5
|
import { basename, join } from "node:path";
|
|
6
6
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/entry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as VERSION, t as flushTelemetry, w as ENV_API_KEY } from "./telemetry-
|
|
1
|
+
import { k as VERSION, t as flushTelemetry, w as ENV_API_KEY } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import { c as writeJson, n as flushUpdateCheck } from "./update-
|
|
3
|
+
import { c as writeJson, n as flushUpdateCheck } from "./update-CxP4fmMe.js";
|
|
4
4
|
import yargs from "yargs";
|
|
5
5
|
import { hideBin } from "yargs/helpers";
|
|
6
6
|
import pc from "picocolors";
|
|
@@ -128,8 +128,8 @@ async function run() {
|
|
|
128
128
|
hidden: true
|
|
129
129
|
}
|
|
130
130
|
}), (argv) => {
|
|
131
|
-
if (argv.skill) return import("./print-skill-
|
|
132
|
-
return import("./integrate-
|
|
131
|
+
if (argv.skill) return import("./print-skill-D0j2D6tw.js").then((m) => m.runPrintSkill("integrate")(argv));
|
|
132
|
+
return import("./integrate-DOLvHr1D.js").then((m) => m.runIntegrate(argv));
|
|
133
133
|
}).command("review", "Review an existing Superwall setup end to end", (y) => y.options({
|
|
134
134
|
...installDirOption,
|
|
135
135
|
...dryRunOption,
|
|
@@ -140,8 +140,8 @@ async function run() {
|
|
|
140
140
|
}
|
|
141
141
|
}), (argv) => {
|
|
142
142
|
const id = argv.fix ? "review-fix" : "review";
|
|
143
|
-
if (argv.skill) return import("./print-skill-
|
|
144
|
-
return import("./integrate-
|
|
143
|
+
if (argv.skill) return import("./print-skill-D0j2D6tw.js").then((m) => m.runPrintSkill(id)(argv));
|
|
144
|
+
return import("./integrate-DOLvHr1D.js").then((m) => m.runActionCommand(id)(argv));
|
|
145
145
|
}).command("migrate", "Migrate from RevenueCat / Adapty / Qonversion to Superwall", (y) => y.options({
|
|
146
146
|
...installDirOption,
|
|
147
147
|
"dry-run": {
|
|
@@ -150,8 +150,8 @@ async function run() {
|
|
|
150
150
|
},
|
|
151
151
|
...skillOption
|
|
152
152
|
}), (argv) => {
|
|
153
|
-
if (argv.skill) return import("./print-skill-
|
|
154
|
-
return import("./migrate-
|
|
153
|
+
if (argv.skill) return import("./print-skill-D0j2D6tw.js").then((m) => m.runPrintSkill("migrate")(argv));
|
|
154
|
+
return import("./migrate-Bn5btm_H.js").then((m) => m.runMigrate(argv));
|
|
155
155
|
}).command("login", "Log in to Superwall (opens your browser)", (y) => y.options({
|
|
156
156
|
"api-key": {
|
|
157
157
|
type: "string",
|
|
@@ -168,11 +168,11 @@ async function run() {
|
|
|
168
168
|
hidden: true
|
|
169
169
|
}
|
|
170
170
|
}), (argv) => {
|
|
171
|
-
return import("./auth-
|
|
171
|
+
return import("./auth-Bir_Un8l.js").then((m) => m.runLogin(argv));
|
|
172
172
|
}).command("logout", "Log out of Superwall", (y) => y, (argv) => {
|
|
173
|
-
return import("./auth-
|
|
173
|
+
return import("./auth-Bir_Un8l.js").then((m) => m.runLogout(argv));
|
|
174
174
|
}).command("whoami", "Show the logged-in Superwall account", (y) => y, (argv) => {
|
|
175
|
-
return import("./auth-
|
|
175
|
+
return import("./auth-Bir_Un8l.js").then((m) => m.runWhoami(argv));
|
|
176
176
|
}).command("skills", "Install or update the Superwall agent skills for your coding agent", (y) => y.options({
|
|
177
177
|
skill: {
|
|
178
178
|
type: "array",
|
|
@@ -193,16 +193,16 @@ async function run() {
|
|
|
193
193
|
hidden: true
|
|
194
194
|
}
|
|
195
195
|
}), (argv) => {
|
|
196
|
-
return import("./skills-
|
|
196
|
+
return import("./skills-C4Yzl64N.js").then((m) => m.runSkills(argv));
|
|
197
197
|
}).command("doctor", "Check the health of your Superwall integration", (y) => y.options({ ...installDirOption }), (argv) => {
|
|
198
|
-
return import("./doctor-
|
|
198
|
+
return import("./doctor-CpYkDfdC.js").then((m) => m.runDoctor(argv));
|
|
199
199
|
}).command("upgrade", "Update the CLI to the latest version", (y) => y, (argv) => {
|
|
200
|
-
return import("./upgrade-
|
|
200
|
+
return import("./upgrade-Cbh-7q_o.js").then((m) => m.runUpgrade(argv));
|
|
201
201
|
}).command("feedback [message]", "Send feedback about the CLI to the Superwall team", (y) => y.positional("message", {
|
|
202
202
|
type: "string",
|
|
203
203
|
describe: "Your feedback (omit to be prompted)"
|
|
204
204
|
}).example("$0 feedback \"migrate crashed on Expo\"", "Send feedback").example("$0 feedback \"...\" --json", "For agents / automation"), (argv) => {
|
|
205
|
-
return import("./feedback-
|
|
205
|
+
return import("./feedback-CV4JnRuk.js").then((m) => m.runFeedback(argv));
|
|
206
206
|
}).command("query [sql]", "Run SQL against your ClickHouse analytics data", (y) => y.positional("sql", {
|
|
207
207
|
type: "string",
|
|
208
208
|
describe: "SQL query (or pass it with --file / stdin)"
|
|
@@ -210,7 +210,7 @@ async function run() {
|
|
|
210
210
|
type: "string",
|
|
211
211
|
describe: "Read SQL from a .sql file"
|
|
212
212
|
} }).example("$0 query \"SHOW TABLES FROM sw\"", "Run an inline query").example("$0 query --file report.sql --json", "Run a saved query"), (argv) => {
|
|
213
|
-
return import("./query-
|
|
213
|
+
return import("./query-CbGfXmKu.js").then((m) => m.runQuery(argv));
|
|
214
214
|
}).command("asc <target> [value] [value2]", "Call the App Store Connect API through Superwall's signed proxy (no .p8 / JWT needed)", (y) => y.positional("target", {
|
|
215
215
|
type: "string",
|
|
216
216
|
describe: "get|post|patch|delete, a raw path (/v1/...), or: apps | products | subscriptions | iaps | docs | keys"
|
|
@@ -258,7 +258,7 @@ async function run() {
|
|
|
258
258
|
hidden: true
|
|
259
259
|
}
|
|
260
260
|
}), (argv) => {
|
|
261
|
-
return import("./asc-
|
|
261
|
+
return import("./asc-DYc_Yo9e.js").then((m) => m.runAsc(argv));
|
|
262
262
|
});
|
|
263
263
|
const RESOURCE_HELP = {
|
|
264
264
|
orgs: "Your Superwall organizations (list, use <id|name>)",
|
|
@@ -333,10 +333,10 @@ async function run() {
|
|
|
333
333
|
describe: "Plan without writing"
|
|
334
334
|
}
|
|
335
335
|
}), (argv) => {
|
|
336
|
-
return import("./resource-
|
|
336
|
+
return import("./resource-m6yz1jwE.js").then((m) => m.runResource(resource)(argv));
|
|
337
337
|
});
|
|
338
338
|
cli = cli.command("bootstrap", "Complete account tree: orgs, projects, apps, campaigns, placements, and products", (y) => y, (argv) => {
|
|
339
|
-
return import("./api-
|
|
339
|
+
return import("./api-emImQnVy.js").then((m) => m.runBootstrap(argv));
|
|
340
340
|
});
|
|
341
341
|
for (const verb of API_VERBS) cli = cli.command(`${verb} <path>`, `Make ${verb.toUpperCase()} requests to the Superwall API`, (y) => y.positional("path", {
|
|
342
342
|
type: "string",
|
|
@@ -345,7 +345,7 @@ async function run() {
|
|
|
345
345
|
type: "array",
|
|
346
346
|
describe: "Param, Stripe-style: -d key=value (string) or key:=value (number/bool/json); nesting via key[sub]"
|
|
347
347
|
} }), (argv) => {
|
|
348
|
-
return import("./api-
|
|
348
|
+
return import("./api-emImQnVy.js").then((m) => m.runApi(verb)(argv));
|
|
349
349
|
});
|
|
350
350
|
cli = cli.command("create [dir]", "Set up paywalls in your app - creates a superwall/ directory inside it", (y) => y.positional("dir", {
|
|
351
351
|
type: "string",
|
|
@@ -371,7 +371,7 @@ async function run() {
|
|
|
371
371
|
describe: "Connect a Superwall app when possible (--no-connect to skip)"
|
|
372
372
|
}
|
|
373
373
|
}).example("$0 create", "Set up superwall/ in the current app").example("$0 create --example with-rive", "Start from an example"), (argv) => {
|
|
374
|
-
return import("./create-
|
|
374
|
+
return import("./create-CwDgWW16.js").then((m) => m.runCreate(argv));
|
|
375
375
|
}).command("dev [dir..]", "Host the studio: browse and preview your paywalls and funnels", (y) => y.positional("dir", {
|
|
376
376
|
type: "string",
|
|
377
377
|
array: true,
|
|
@@ -389,7 +389,7 @@ async function run() {
|
|
|
389
389
|
describe: "Host to bind"
|
|
390
390
|
}
|
|
391
391
|
}), (argv) => {
|
|
392
|
-
return import("./dev-
|
|
392
|
+
return import("./dev-OnmMOsgK.js").then((m) => m.runDev(argv));
|
|
393
393
|
}).command("push [dir]", "Build and push your paywalls as immutable versions (production untouched)", (y) => y.positional("dir", {
|
|
394
394
|
type: "string",
|
|
395
395
|
describe: "Project directory (default: cwd)"
|
|
@@ -415,7 +415,7 @@ async function run() {
|
|
|
415
415
|
describe: "Publish note recorded in the source commit (only lands when this publish creates a new source commit — unchanged source reuses the existing commit)"
|
|
416
416
|
}
|
|
417
417
|
}), (argv) => {
|
|
418
|
-
return import("./push-
|
|
418
|
+
return import("./push-hHtVTZ1m.js").then((m) => m.runPush(argv));
|
|
419
419
|
}).command("promote [dir]", "Point production at a pushed version (the latest by default)", (y) => y.version(false).positional("dir", {
|
|
420
420
|
type: "string",
|
|
421
421
|
describe: "Project directory (default: cwd)"
|
|
@@ -436,7 +436,7 @@ async function run() {
|
|
|
436
436
|
describe: "Pushed version number to promote (requires a single --id)"
|
|
437
437
|
}
|
|
438
438
|
}), (argv) => {
|
|
439
|
-
return import("./promote-
|
|
439
|
+
return import("./promote-UmKZySRx.js").then((m) => m.runPromote(argv));
|
|
440
440
|
}).command("publish [dir]", "Push and promote in one step - build, version, and ship to production", (y) => y.positional("dir", {
|
|
441
441
|
type: "string",
|
|
442
442
|
describe: "Project directory (default: cwd)"
|
|
@@ -462,7 +462,7 @@ async function run() {
|
|
|
462
462
|
describe: "Publish note recorded in the source commit (only lands when this publish creates a new source commit — unchanged source reuses the existing commit)"
|
|
463
463
|
}
|
|
464
464
|
}), (argv) => {
|
|
465
|
-
return import("./publish-
|
|
465
|
+
return import("./publish-BVnG2UOU.js").then((m) => m.runPublish(argv));
|
|
466
466
|
});
|
|
467
467
|
await cli.command("$0", false, (y) => y, () => printHelp()).version(VERSION).alias("v", "version").help().alias("h", "help").recommendCommands().showHelpOnFail(false).fail((msg, err) => {
|
|
468
468
|
if (err) throw err;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Integration } from "./telemetry-
|
|
2
|
-
import { n as allDeps, r as readPackageJson } from "./scan-
|
|
1
|
+
import { T as Integration } from "./telemetry-CLi7mjDP.js";
|
|
2
|
+
import { n as allDeps, r as readPackageJson } from "./scan-BfoeYW1v.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as TELEMETRY_HOST, O as TELEMETRY_KEY, k as VERSION, s as getAnonymousId } from "./telemetry-
|
|
1
|
+
import { D as TELEMETRY_HOST, O as TELEMETRY_KEY, k as VERSION, s as getAnonymousId } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import { i as loadSession } from "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
7
|
|
|
8
8
|
//#region src/core/feedback.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as apiKeyFromEnv, w as ENV_API_KEY, y as API_HOST } from "./telemetry-
|
|
1
|
+
import { a as apiKeyFromEnv, w as ENV_API_KEY, y as API_HOST } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import { i as loadSession } from "./token-DHRH8cxi.js";
|
|
3
|
-
import { r as SuperwallApi } from "./command-
|
|
3
|
+
import { r as SuperwallApi } from "./command-CmJMNVVz.js";
|
|
4
4
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
5
5
|
import { f as listApplications, y as platformLabel } from "./resources-CVrWwA1K.js";
|
|
6
|
-
import { r as performLoginWithUi } from "./app-
|
|
6
|
+
import { r as performLoginWithUi } from "./app-DE9lxNNV.js";
|
|
7
7
|
import { promisify } from "node:util";
|
|
8
8
|
import * as fs from "node:fs";
|
|
9
9
|
import * as os$1 from "node:os";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { C as DASHBOARD_URL, a as apiKeyFromEnv, k as VERSION, l as getOnboardedApp, r as setTelemetryTags } from "./telemetry-
|
|
1
|
+
import { C as DASHBOARD_URL, a as apiKeyFromEnv, k as VERSION, l as getOnboardedApp, r as setTelemetryTags } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import { t as formatJson } from "./json-C3hPIMkI.js";
|
|
3
|
-
import { o as blocks } from "./update-
|
|
3
|
+
import { o as blocks } from "./update-CxP4fmMe.js";
|
|
4
4
|
import { i as loadSession } from "./token-DHRH8cxi.js";
|
|
5
|
-
import { r as SuperwallApi, t as defineCommand } from "./command-
|
|
5
|
+
import { r as SuperwallApi, t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import { n as ui, r as stripReport } from "./ui-C4ncRJqd.js";
|
|
7
|
-
import { n as ensureSkillsCurrent } from "./skills-
|
|
7
|
+
import { n as ensureSkillsCurrent } from "./skills-HlIKA9xR.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-
|
|
11
|
-
import { t as detectDrivers } from "./drivers-
|
|
12
|
-
import "./hosted-
|
|
13
|
-
import { t as detectExisting } from "./existing-
|
|
9
|
+
import "./login-B7fSpJKc.js";
|
|
10
|
+
import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-BfoeYW1v.js";
|
|
11
|
+
import { t as detectDrivers } from "./drivers-Cweb9bWA.js";
|
|
12
|
+
import "./hosted-CbNJSJAC.js";
|
|
13
|
+
import { t as detectExisting } from "./existing-p-hX-Nxc.js";
|
|
14
14
|
import { t as withSpinner } from "./spinner-gOxIMz-V.js";
|
|
15
15
|
import { C as rowName, f as listApplications, h as listResource, o as createProduct, y as platformLabel } from "./resources-CVrWwA1K.js";
|
|
16
16
|
import "./org-B2gy9Pmu.js";
|
|
17
|
-
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-
|
|
18
|
-
import { r as actionById } from "./actions-
|
|
19
|
-
import { a as recoverUnmatchedScope, i as pickApp, n as ensureAgentDriverReady, o as stage, r as performLoginWithUi, t as chooseAction } from "./app-
|
|
17
|
+
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-DO11eXrR.js";
|
|
18
|
+
import { r as actionById } from "./actions-I5gVO5jN.js";
|
|
19
|
+
import { a as recoverUnmatchedScope, i as pickApp, n as ensureAgentDriverReady, o as stage, r as performLoginWithUi, t as chooseAction } from "./app-DE9lxNNV.js";
|
|
20
20
|
import { c as listAscConfigs, i as listAscApps, n as fetchUnimportedAscProducts, o as createAscConfig, r as findAscAppId, t as ascTypeDisplay } from "./asc-products-YQ6Oc6YO.js";
|
|
21
21
|
import { t as generateStoreKit } from "./storekit-Ddvs4Ynw.js";
|
|
22
|
-
import { i as saveReport, n as buildCopyPrompt, r as loadReport, t as runAction } from "./run-
|
|
23
|
-
import { t as detectBilling } from "./billing-
|
|
22
|
+
import { i as saveReport, n as buildCopyPrompt, r as loadReport, t as runAction } from "./run-BTLaOoKK.js";
|
|
23
|
+
import { t as detectBilling } from "./billing-CW0diI2X.js";
|
|
24
24
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
25
25
|
import { homedir } from "node:os";
|
|
26
26
|
import { basename, join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as OAUTH_SCOPE, S as CLI_CLIENT_ID, T as Integration, d as getOnboardingIdempotencyKey, g as setOnboardedOrg, h as setOnboardedApp, u as getOnboardedOrg, x as AUTH_HOST, y as API_HOST } from "./telemetry-
|
|
1
|
+
import { E as OAUTH_SCOPE, S as CLI_CLIENT_ID, T as Integration, d as getOnboardingIdempotencyKey, g as setOnboardedOrg, h as setOnboardedApp, u as getOnboardedOrg, x as AUTH_HOST, y as API_HOST } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import { a as saveSession } from "./token-DHRH8cxi.js";
|
|
3
3
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { C as DASHBOARD_URL, k as VERSION } from "./telemetry-
|
|
1
|
+
import { C as DASHBOARD_URL, k as VERSION } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import { o as blocks } from "./update-
|
|
3
|
+
import { o as blocks } from "./update-CxP4fmMe.js";
|
|
4
4
|
import { i as loadSession } from "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import { n as ui, r as stripReport } from "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-HlIKA9xR.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import { t as scanProject } from "./scan-
|
|
11
|
-
import { t as detectDrivers } from "./drivers-
|
|
12
|
-
import "./hosted-
|
|
13
|
-
import { t as detectExisting } from "./existing-
|
|
9
|
+
import "./login-B7fSpJKc.js";
|
|
10
|
+
import { t as scanProject } from "./scan-BfoeYW1v.js";
|
|
11
|
+
import { t as detectDrivers } from "./drivers-Cweb9bWA.js";
|
|
12
|
+
import "./hosted-CbNJSJAC.js";
|
|
13
|
+
import { t as detectExisting } from "./existing-p-hX-Nxc.js";
|
|
14
14
|
import "./spinner-gOxIMz-V.js";
|
|
15
15
|
import "./resources-CVrWwA1K.js";
|
|
16
16
|
import "./org-B2gy9Pmu.js";
|
|
17
|
-
import "./bind-
|
|
18
|
-
import { r as actionById } from "./actions-
|
|
19
|
-
import { r as performLoginWithUi } from "./app-
|
|
20
|
-
import { i as saveReport, t as runAction } from "./run-
|
|
21
|
-
import { t as detectBilling } from "./billing-
|
|
17
|
+
import "./bind-DO11eXrR.js";
|
|
18
|
+
import { r as actionById } from "./actions-I5gVO5jN.js";
|
|
19
|
+
import { r as performLoginWithUi } from "./app-DE9lxNNV.js";
|
|
20
|
+
import { i as saveReport, t as runAction } from "./run-BTLaOoKK.js";
|
|
21
|
+
import { t as detectBilling } from "./billing-CW0diI2X.js";
|
|
22
22
|
|
|
23
23
|
//#region src/commands/workflow/migrate.ts
|
|
24
24
|
const runMigrate = defineCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as ASSET_HOST, k as VERSION } from "./telemetry-
|
|
2
|
-
import { n as ApiError } from "./command-
|
|
1
|
+
import { b as ASSET_HOST, k as VERSION } from "./telemetry-CLi7mjDP.js";
|
|
2
|
+
import { n as ApiError } from "./command-CmJMNVVz.js";
|
|
3
3
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
4
4
|
import { S as pushPaywallVersion, T as versionProducts, a as createHeadlessPaywall, b as promotePaywallVersion, d as listAppPaywalls, g as livePaywall, m as listProjects, u as linkSourceCommit, v as mintSourceAccess, x as pushPaywallAssets, y as platformLabel } from "./resources-CVrWwA1K.js";
|
|
5
|
-
import { _ as writeSnapshot, c as platformFor, d as describeBindings, f as readLock, g as writeBindings, h as writeBinding, n as pushSourceTree, o as writeProjectScaffold, p as removeBinding, s as describePlatforms, t as gitAvailable, u as resolveApps } from "./git-
|
|
5
|
+
import { _ as writeSnapshot, c as platformFor, d as describeBindings, f as readLock, g as writeBindings, h as writeBinding, n as pushSourceTree, o as writeProjectScaffold, p as removeBinding, s as describePlatforms, t as gitAvailable, u as resolveApps } from "./git-BrTxQ7ui.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import pc from "picocolors";
|
|
8
8
|
import * as fs from "node:fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as track, r as setTelemetryTags } from "./telemetry-
|
|
1
|
+
import { i as track, r as setTelemetryTags } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
3
|
import "./ui-C4ncRJqd.js";
|
|
4
|
-
import { i as loadBundledSkill } from "./skills-
|
|
4
|
+
import { i as loadBundledSkill } from "./skills-HlIKA9xR.js";
|
|
5
5
|
import "./spawn-DSoTXy_j.js";
|
|
6
|
-
import { t as scanProject } from "./scan-
|
|
7
|
-
import { n as FRAMEWORK_REF } from "./actions-
|
|
8
|
-
import { t as detectBilling } from "./billing-
|
|
6
|
+
import { t as scanProject } from "./scan-BfoeYW1v.js";
|
|
7
|
+
import { n as FRAMEWORK_REF } from "./actions-I5gVO5jN.js";
|
|
8
|
+
import { t as detectBilling } from "./billing-CW0diI2X.js";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/workflow/print-skill.ts
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { k as VERSION } from "./telemetry-
|
|
1
|
+
import { k as VERSION } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { n as ApiError, t as defineCommand } from "./command-
|
|
5
|
+
import { n as ApiError, t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-HlIKA9xR.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import "./scan-
|
|
11
|
-
import "./hosted-
|
|
9
|
+
import "./login-B7fSpJKc.js";
|
|
10
|
+
import "./scan-BfoeYW1v.js";
|
|
11
|
+
import "./hosted-CbNJSJAC.js";
|
|
12
12
|
import "./spinner-gOxIMz-V.js";
|
|
13
13
|
import { _ as livePaywallVersion, b as promotePaywallVersion } from "./resources-CVrWwA1K.js";
|
|
14
14
|
import "./org-B2gy9Pmu.js";
|
|
15
|
-
import "./bind-
|
|
16
|
-
import { i as requireApi, u as resolveApps } from "./git-
|
|
17
|
-
import "./actions-
|
|
18
|
-
import "./app-
|
|
19
|
-
import { E as collectProjectDeclarations, T as loadFramework, _ as planTargets, b as resolveBinding, c as timed, g as parsePlatformFlags, l as transition, n as group, r as projectDir, s as selectSurfaces, u as pickApplicationOption, v as targetLabel, y as wantedPlatforms } from "./pipeline-
|
|
15
|
+
import "./bind-DO11eXrR.js";
|
|
16
|
+
import { i as requireApi, u as resolveApps } from "./git-BrTxQ7ui.js";
|
|
17
|
+
import "./actions-I5gVO5jN.js";
|
|
18
|
+
import "./app-DE9lxNNV.js";
|
|
19
|
+
import { E as collectProjectDeclarations, T as loadFramework, _ as planTargets, b as resolveBinding, c as timed, g as parsePlatformFlags, l as transition, n as group, r as projectDir, s as selectSurfaces, u as pickApplicationOption, v as targetLabel, y as wantedPlatforms } from "./pipeline-COr4sB6U.js";
|
|
20
20
|
import pc from "picocolors";
|
|
21
21
|
|
|
22
22
|
//#region src/commands/paywalls/promote.ts
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "./telemetry-
|
|
1
|
+
import "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-HlIKA9xR.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import "./scan-
|
|
11
|
-
import "./hosted-
|
|
9
|
+
import "./login-B7fSpJKc.js";
|
|
10
|
+
import "./scan-BfoeYW1v.js";
|
|
11
|
+
import "./hosted-CbNJSJAC.js";
|
|
12
12
|
import "./spinner-gOxIMz-V.js";
|
|
13
13
|
import "./resources-CVrWwA1K.js";
|
|
14
14
|
import "./org-B2gy9Pmu.js";
|
|
15
|
-
import "./bind-
|
|
16
|
-
import { i as requireApi } from "./git-
|
|
17
|
-
import "./actions-
|
|
18
|
-
import "./app-
|
|
19
|
-
import { o as runPushPipeline } from "./pipeline-
|
|
15
|
+
import "./bind-DO11eXrR.js";
|
|
16
|
+
import { i as requireApi } from "./git-BrTxQ7ui.js";
|
|
17
|
+
import "./actions-I5gVO5jN.js";
|
|
18
|
+
import "./app-DE9lxNNV.js";
|
|
19
|
+
import { o as runPushPipeline } from "./pipeline-COr4sB6U.js";
|
|
20
20
|
|
|
21
21
|
//#region src/commands/paywalls/publish.ts
|
|
22
22
|
const runPublish = defineCommand({
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "./telemetry-
|
|
1
|
+
import "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-HlIKA9xR.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import "./scan-
|
|
11
|
-
import "./hosted-
|
|
9
|
+
import "./login-B7fSpJKc.js";
|
|
10
|
+
import "./scan-BfoeYW1v.js";
|
|
11
|
+
import "./hosted-CbNJSJAC.js";
|
|
12
12
|
import "./spinner-gOxIMz-V.js";
|
|
13
13
|
import "./resources-CVrWwA1K.js";
|
|
14
14
|
import "./org-B2gy9Pmu.js";
|
|
15
|
-
import "./bind-
|
|
16
|
-
import { i as requireApi } from "./git-
|
|
17
|
-
import "./actions-
|
|
18
|
-
import "./app-
|
|
19
|
-
import { o as runPushPipeline } from "./pipeline-
|
|
15
|
+
import "./bind-DO11eXrR.js";
|
|
16
|
+
import { i as requireApi } from "./git-BrTxQ7ui.js";
|
|
17
|
+
import "./actions-I5gVO5jN.js";
|
|
18
|
+
import "./app-DE9lxNNV.js";
|
|
19
|
+
import { o as runPushPipeline } from "./pipeline-COr4sB6U.js";
|
|
20
20
|
|
|
21
21
|
//#region src/commands/paywalls/push.ts
|
|
22
22
|
const runPush = defineCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./telemetry-
|
|
1
|
+
import "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
7
|
import "./spinner-gOxIMz-V.js";
|
|
8
8
|
import "./resources-CVrWwA1K.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { c as getDefaultApp, m as setDefaultApp } from "./telemetry-
|
|
1
|
+
import { c as getDefaultApp, m as setDefaultApp } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import { t as formatJson } from "./json-C3hPIMkI.js";
|
|
3
|
-
import { o as blocks } from "./update-
|
|
3
|
+
import { o as blocks } from "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { n as ApiError, t as defineCommand } from "./command-
|
|
5
|
+
import { n as ApiError, t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
|
-
import { t as scanProject } from "./scan-
|
|
8
|
-
import { t as detectExisting } from "./existing-
|
|
7
|
+
import { t as scanProject } from "./scan-BfoeYW1v.js";
|
|
8
|
+
import { t as detectExisting } from "./existing-p-hX-Nxc.js";
|
|
9
9
|
import "./spinner-gOxIMz-V.js";
|
|
10
10
|
import { C as rowName, c as getPaywallApplicationId, h as listResource, i as createEntitlement, l as isAppScoped, m as listProjects, n as createApplication, o as createProduct, p as listOrganizations, r as createCampaign, s as createProject, t as addPlacement, w as titleCase, y as platformLabel } from "./resources-CVrWwA1K.js";
|
|
11
11
|
import { t as requireOrg } from "./org-B2gy9Pmu.js";
|
|
12
|
-
import { t as platformForIntegration } from "./bind-
|
|
12
|
+
import { t as platformForIntegration } from "./bind-DO11eXrR.js";
|
|
13
13
|
import { t as apiCall } from "./api-output-B5hh0q4V.js";
|
|
14
14
|
import { t as generateStoreKit } from "./storekit-Ddvs4Ynw.js";
|
|
15
15
|
import * as fs from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as DASHBOARD_URL } from "./telemetry-
|
|
2
|
-
import { s as packagedDir } from "./skills-
|
|
1
|
+
import { C as DASHBOARD_URL } from "./telemetry-CLi7mjDP.js";
|
|
2
|
+
import { s as packagedDir } from "./skills-HlIKA9xR.js";
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Integration } from "./telemetry-
|
|
1
|
+
import { T as Integration } from "./telemetry-CLi7mjDP.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,10 +1,10 @@
|
|
|
1
|
-
import "./telemetry-
|
|
1
|
+
import "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
7
|
-
import { a as skillsOutOfDate, o as syncSkills, r as fetchPublicSkills, t as SUPERWALL_SKILLS_SOURCE } from "./skills-
|
|
7
|
+
import { a as skillsOutOfDate, o as syncSkills, r as fetchPublicSkills, t as SUPERWALL_SKILLS_SOURCE } from "./skills-HlIKA9xR.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
9
|
import { t as withSpinner } from "./spinner-gOxIMz-V.js";
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as setSkillsSync, f as getSkillsSync, i as track, k as VERSION } from "./telemetry-
|
|
1
|
+
import { _ as setSkillsSync, f as getSkillsSync, i as track, k as VERSION } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
3
3
|
import { r as spawnStream } from "./spawn-DSoTXy_j.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as VERSION, p as getUpdateCheck, v as setUpdateCheck } from "./telemetry-
|
|
1
|
+
import { k as VERSION, p as getUpdateCheck, v as setUpdateCheck } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import { t as formatJson } from "./json-C3hPIMkI.js";
|
|
3
3
|
import pc from "picocolors";
|
|
4
4
|
import { stripVTControlCharacters } from "node:util";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k as VERSION, v as setUpdateCheck } from "./telemetry-
|
|
1
|
+
import { k as VERSION, v as setUpdateCheck } from "./telemetry-CLi7mjDP.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import { r as isNewerVersion, t as fetchLatestVersion } from "./update-
|
|
3
|
+
import { r as isNewerVersion, t as fetchLatestVersion } from "./update-CxP4fmMe.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-CmJMNVVz.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
7
|
import { r as spawnStream } from "./spawn-DSoTXy_j.js";
|
|
8
8
|
|