@superwall/cli 2.1.0 → 2.2.0
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 +12 -2
- package/dist/{apple-CSzNTGHM.js → apple-Bcr_PteR.js} +13 -13
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{billing-C3Q8DBU2.js → billing-CWM1ds3K.js} +3 -3
- package/dist/{bind-BumHTi9O.js → bind-DEYxsnZD.js} +4 -4
- package/dist/{build-Bpviiclc.js → build--oQKfZU6.js} +6 -6
- package/dist/{client-BL0f_yGf.js → client-CimFymxG.js} +7 -3
- package/dist/{create-BUcVG4Ab.js → create-BG9n4fvs.js} +22 -22
- package/dist/{create-CfK3PeKA.js → create-DTAyHkxb.js} +6 -6
- package/dist/create-kT2C9k4h.js +19 -0
- package/dist/{doctor-BWqIYcMn.js → doctor-BkygMUe2.js} +6 -6
- package/dist/{drivers-CPhdPkW5.js → drivers-C6eXj5-r.js} +3 -3
- package/dist/entry.js +19 -19
- package/dist/{environment-eBXjELoN.js → environment-CQn323uB.js} +15 -2
- package/dist/{existing-BltvQiX5.js → existing-CvOluc9U.js} +2 -2
- package/dist/held-Bwkhufdj.js +16 -0
- package/dist/{held-DgnTFMl3.js → held-QM7yfrXq.js} +6 -6
- package/dist/{integrate-BRsqoe01.js → integrate-Ci_MLkQG.js} +21 -21
- package/dist/{login-BbTIrCFT.js → login-BIAWgdzM.js} +256 -33
- package/dist/{login-BCEH5q0U.js → login-DLi71nJq.js} +1 -1
- package/dist/login-Dy9N5ZDH.js +16 -0
- package/dist/{lookup-rr1AkCJA.js → lookup-DZFrfzO0.js} +2 -2
- package/dist/{migrate-C9X2Vz81.js → migrate-BKF1WckS.js} +21 -21
- package/dist/{notification-url-CV86qiKP.js → notification-url-erXQ1edb.js} +2 -2
- package/dist/{open-CcpXotHG.js → open-BjvGVwJf.js} +10 -10
- package/dist/{org-BQQDo7wm.js → org-CvPGVSBF.js} +2 -2
- package/dist/{paths-CRlU72cq.js → paths-oRuC18Kt.js} +1 -1
- package/dist/{playbook-DVMXN7fh.js → playbook-CtTj1HBK.js} +10 -10
- package/dist/{promote-Da8xctzy.js → promote-BkJYISza.js} +16 -16
- package/dist/push-BIizJJOn.js +22 -0
- package/dist/{push-D6R9icWN.js → push-Ul2SW87i.js} +4 -4
- package/dist/{registry-BYVD-_h6.js → registry-OmPZ6dj0.js} +407 -177
- package/dist/{resources-DLON3-61.js → resources-FIrK7pE9.js} +1 -1
- package/dist/{run-Co-BwhOg.js → run-CwEY1eu5.js} +2 -2
- package/dist/{scan-CKuk-_6W.js → scan-CpbfZ2ju.js} +1 -1
- package/dist/scan-DjyvuWel.js +4 -0
- package/dist/{scope-DV22_Ufm.js → scope-BSqVfZvy.js} +4 -4
- package/dist/{selection-C2_KbLuo.js → selection-CHnVk8uw.js} +3 -3
- package/dist/server-BTveynqC.js +22 -0
- package/dist/{server-D0d2oP-5.js → server-D5xl5iKO.js} +66 -16
- package/dist/{session-B-Uz0cQ7.js → session-6lnJ0shD.js} +1 -1
- package/dist/{session-C4rbE3VS.js → session-BFwasPVq.js} +9 -8
- package/dist/session-Ds6tLC19.js +6 -0
- package/dist/skills/superwall/references/data-analytics.md +7 -8
- package/dist/skills/superwall-framework/SKILL.md +36 -4
- package/dist/skills/superwall-framework/references/examples.md +1 -0
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +18 -4
- package/dist/{skills-CLGJuMnF.js → skills-B8uSuanf.js} +8 -8
- package/dist/{skills-CZcpnEnG.js → skills-D7sG0xom.js} +4 -4
- package/dist/{spinner-C2U6QBJ9.js → spinner-TZeZEeVv.js} +3 -3
- package/dist/{storage-CerJ5KLP.d.ts → storage-BbJF7z3l.d.ts} +1 -0
- package/dist/{storage-6h9vyiAz.js → storage-DqKJe13V.js} +12 -2
- package/dist/storekit-C_LFh8qy.js +16 -0
- package/dist/{storekit-CinJra3V.js → storekit-uyT3DWo4.js} +3 -3
- package/dist/{telemetry-DKyDhURo.js → telemetry-D_uIIuSk.js} +1 -1
- package/dist/{token-DaxQgQkv.js → token-BJsLGoSX.js} +1 -1
- package/dist/tools.d.ts +11 -9
- package/dist/tools.js +389 -161
- package/dist/{upgrade-DPo0a4Es.js → upgrade-BRM51As6.js} +1 -1
- package/dist/{upgrade-ffseQDMx.js → upgrade-DV_rmhyV.js} +2 -2
- package/package.json +2 -2
- package/dist/create-BSfvpWoD.js +0 -19
- package/dist/held-CPve03KJ.js +0 -16
- package/dist/login-BPOONe7n.js +0 -16
- package/dist/push-BV-grvQg.js +0 -22
- package/dist/scan-B88OlWOt.js +0 -4
- package/dist/server-C4f6ccUr.js +0 -22
- package/dist/session-BuvArt1j.js +0 -6
- package/dist/storekit-CK9JmM2D.js +0 -16
package/README.md
CHANGED
|
@@ -29,6 +29,15 @@ package; everything below is what you get.
|
|
|
29
29
|
session. Where it can't open one (a server, or over SSH), it says so: open the
|
|
30
30
|
URL it prints on any device and approve the code there. In CI, log in without
|
|
31
31
|
a browser: `superwall login --api-key <key>`.
|
|
32
|
+
|
|
33
|
+
A coding agent can log you in too. Without a terminal, `superwall login` prints
|
|
34
|
+
the link and code and returns at once; the agent shows you the link, and once
|
|
35
|
+
you've approved it, `superwall login --poll` finishes the login (it waits up to
|
|
36
|
+
`--timeout` seconds, 60 by default, and says `pending` until then). A new
|
|
37
|
+
account without an organization needs `--org-name "<name>"` on either command;
|
|
38
|
+
add `--app-name "<name>" --platform ios|android|web` (and `--bundle-id`) to
|
|
39
|
+
create its first app too. `BROWSER=none` stops the CLI from opening a browser
|
|
40
|
+
itself.
|
|
32
41
|
There are no organizations to pick: `superwall apps list` shows every app you
|
|
33
42
|
can open, grouped by organization, and commands take `--app <id|dashboard link>`.
|
|
34
43
|
Upgrade any time with `superwall upgrade` - the CLI also tells you when a new
|
|
@@ -238,12 +247,13 @@ superwall campaigns placements create <campaign-id> --event-name onboarding_comp
|
|
|
238
247
|
superwall campaigns audiences readout <campaign-id> <audience-id>
|
|
239
248
|
superwall users subscriptions <app-user-id> --app <app>
|
|
240
249
|
superwall webhooks list --app <app>
|
|
250
|
+
superwall annotations create --app <app> --label "v4.2.0 released" --start-at 2026-10-28T14:00:00Z
|
|
241
251
|
superwall bootstrap # the whole account tree at a glance
|
|
242
252
|
```
|
|
243
253
|
|
|
244
254
|
Resources: `apps`, `products`, `entitlements` (+ `grants`),
|
|
245
255
|
`campaigns` (+ `placements`, `audiences`, `variants`), `paywalls`, `users`,
|
|
246
|
-
`webhooks`, `events`. Each has `list`, `get`, `create`, `update`, `delete` where
|
|
256
|
+
`webhooks`, `events`, `annotations`. Each has `list`, `get`, `create`, `update`, `delete` where
|
|
247
257
|
the API does, plus its own actions (`archive`, `publish`, `duplicate`, ...).
|
|
248
258
|
|
|
249
259
|
- Every command, and every subcommand of `asc`, `asa`, `setup` and `api`,
|
|
@@ -620,7 +630,7 @@ packages/cli/
|
|
|
620
630
|
│ ├── commands/ registry.ts + one directory per section of `superwall --help`
|
|
621
631
|
│ │ ├── workflows/ integrate, review, migrate
|
|
622
632
|
│ │ ├── paywalls/ create, dev, build, push, promote, publish
|
|
623
|
-
│ │ ├── main/ bootstrap, apps, products, entitlements, campaigns, paywalls, users, webhooks, events
|
|
633
|
+
│ │ ├── main/ bootstrap, apps, products, entitlements, campaigns, paywalls, users, webhooks, events, annotations
|
|
624
634
|
│ │ ├── analytics/ query
|
|
625
635
|
│ │ ├── api/ docs, get, post, patch, delete
|
|
626
636
|
│ │ ├── app-store-connect/ setup/, keys/, notification-url/, store/ (apps, products, …), api/ (get, post, …, docs)
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-BJsLGoSX.js";
|
|
2
2
|
import { t as blocks } from "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import { t as ApiError } from "./client-
|
|
6
|
-
import { E as updateBundleId, a as chooseAppIntent, g as RefusedByApi, i as savedKey, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, s as resolveApp, y as findIntegrations } from "./held-
|
|
3
|
+
import "./environment-CQn323uB.js";
|
|
4
|
+
import "./storage-DqKJe13V.js";
|
|
5
|
+
import { t as ApiError } from "./client-CimFymxG.js";
|
|
6
|
+
import { E as updateBundleId, a as chooseAppIntent, g as RefusedByApi, i as savedKey, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, s as resolveApp, y as findIntegrations } from "./held-QM7yfrXq.js";
|
|
7
7
|
import "./config-BO1Y87kV.js";
|
|
8
|
-
import { t as apiCall } from "./spinner-
|
|
8
|
+
import { t as apiCall } from "./spinner-TZeZEeVv.js";
|
|
9
9
|
import "./ui-D_qf3Gvw.js";
|
|
10
|
-
import "./paths-
|
|
11
|
-
import "./resources-
|
|
12
|
-
import "./org-
|
|
13
|
-
import "./lookup-
|
|
14
|
-
import "./scope-
|
|
10
|
+
import "./paths-oRuC18Kt.js";
|
|
11
|
+
import "./resources-FIrK7pE9.js";
|
|
12
|
+
import "./org-CvPGVSBF.js";
|
|
13
|
+
import "./lookup-DZFrfzO0.js";
|
|
14
|
+
import "./scope-BSqVfZvy.js";
|
|
15
15
|
import "./client-BZ1UbpXz.js";
|
|
16
16
|
import "./timing-BVxPrYq3.js";
|
|
17
|
-
import { n as ensureNotificationUrl, r as environmentLines, t as describeNotificationUrl } from "./notification-url-
|
|
18
|
-
import { a as chooseTeam, n as keyAccess, o as signIn, r as keyRole, s as appleDeps, t as createAndSaveKey } from "./create-
|
|
17
|
+
import { n as ensureNotificationUrl, r as environmentLines, t as describeNotificationUrl } from "./notification-url-erXQ1edb.js";
|
|
18
|
+
import { a as chooseTeam, n as keyAccess, o as signIn, r as keyRole, s as appleDeps, t as createAndSaveKey } from "./create-DTAyHkxb.js";
|
|
19
19
|
|
|
20
20
|
//#region src/core/app-store-connect/setup/apple.ts
|
|
21
21
|
const STEPS = [
|
package/dist/auth.d.ts
CHANGED
package/dist/auth.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as resolveAuthToken, r as NotLoggedInError, t as getOAuthAccessToken } from "./token-
|
|
1
|
+
import { n as resolveAuthToken, r as NotLoggedInError, t as getOAuthAccessToken } from "./token-BJsLGoSX.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
3
|
+
import "./environment-CQn323uB.js";
|
|
4
|
+
import "./storage-DqKJe13V.js";
|
|
5
5
|
|
|
6
6
|
export { NotLoggedInError, getOAuthAccessToken, resolveAuthToken };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as Integration } from "./environment-
|
|
2
|
-
import { i as readPackageJson, r as allDeps } from "./scan-
|
|
3
|
-
import { d as readBundledSkill } from "./skills-
|
|
1
|
+
import { f as Integration } from "./environment-CQn323uB.js";
|
|
2
|
+
import { i as readPackageJson, r as allDeps } from "./scan-CpbfZ2ju.js";
|
|
3
|
+
import { d as readBundledSkill } from "./skills-D7sG0xom.js";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import fg from "fast-glob";
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as Integration } from "./environment-
|
|
2
|
-
import { n as withSpinner } from "./spinner-
|
|
1
|
+
import { f as Integration } from "./environment-CQn323uB.js";
|
|
2
|
+
import { n as withSpinner } from "./spinner-TZeZEeVv.js";
|
|
3
3
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
4
|
-
import { n as createApplication, p as listProjects, s as createProject, v as platformLabel } from "./resources-
|
|
5
|
-
import { n as orgForNewProject } from "./org-
|
|
4
|
+
import { n as createApplication, p as listProjects, s as createProject, v as platformLabel } from "./resources-FIrK7pE9.js";
|
|
5
|
+
import { n as orgForNewProject } from "./org-CvPGVSBF.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core/account/bind.ts
|
|
8
8
|
const NEW = "__new__";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-BJsLGoSX.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import {
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import { v as VERSION } from "./environment-CQn323uB.js";
|
|
4
|
+
import "./storage-DqKJe13V.js";
|
|
5
|
+
import "./client-CimFymxG.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
7
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
8
|
-
import "./resources-
|
|
9
|
-
import { N as resolveFramework, P as assetBaseUrl, a as resolveProjectDir, d as kb, h as took, i as requireProject, n as parseIds, s as selectSurfaces, v as collectProjectDeclarations, w as readLock, y as writeProjectTypes } from "./selection-
|
|
8
|
+
import "./resources-FIrK7pE9.js";
|
|
9
|
+
import { N as resolveFramework, P as assetBaseUrl, a as resolveProjectDir, d as kb, h as took, i as requireProject, n as parseIds, s as selectSurfaces, v as collectProjectDeclarations, w as readLock, y as writeProjectTypes } from "./selection-CHnVk8uw.js";
|
|
10
10
|
import * as fs from "node:fs";
|
|
11
11
|
import * as path from "node:path";
|
|
12
12
|
import pc from "picocolors";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { n as resolveAuthToken, r as NotLoggedInError } from "./token-
|
|
2
|
-
import {
|
|
1
|
+
import { n as resolveAuthToken, r as NotLoggedInError } from "./token-BJsLGoSX.js";
|
|
2
|
+
import { _ as USER_AGENT } from "./environment-CQn323uB.js";
|
|
3
|
+
import { a as resolveApiHost, n as readSession } from "./storage-DqKJe13V.js";
|
|
3
4
|
|
|
4
5
|
//#region src/core/api/client.ts
|
|
5
6
|
const BODY_SNIPPET = 200;
|
|
@@ -65,12 +66,13 @@ async function parseApiError(request, res) {
|
|
|
65
66
|
const text = await res.text().catch(() => "");
|
|
66
67
|
return new ApiError(request, res.status, text);
|
|
67
68
|
}
|
|
69
|
+
const namesUserAgent = (headers) => Object.keys(headers ?? {}).some((name) => name.toLowerCase() === "user-agent");
|
|
68
70
|
function retryDelay(res, retry) {
|
|
69
71
|
const after = Number(res.headers.get("retry-after"));
|
|
70
72
|
if (Number.isFinite(after) && after >= 0 && res.headers.has("retry-after")) return after * 1e3;
|
|
71
73
|
return 400 * 2 ** retry;
|
|
72
74
|
}
|
|
73
|
-
const createSuperwallApi = (initial) => {
|
|
75
|
+
const createSuperwallApi = (initial, { userAgent = USER_AGENT() } = {}) => {
|
|
74
76
|
let session = initial;
|
|
75
77
|
const host = () => resolveApiHost(session);
|
|
76
78
|
const send = async (url, init) => {
|
|
@@ -91,6 +93,7 @@ const createSuperwallApi = (initial) => {
|
|
|
91
93
|
return send(`${host()}${path}`, {
|
|
92
94
|
method,
|
|
93
95
|
headers: {
|
|
96
|
+
...namesUserAgent(options.headers) ? {} : { "user-agent": userAgent },
|
|
94
97
|
...options.headers,
|
|
95
98
|
authorization: `Bearer ${token}`,
|
|
96
99
|
accept: "application/json",
|
|
@@ -132,6 +135,7 @@ const createSuperwallApi = (initial) => {
|
|
|
132
135
|
method: "POST",
|
|
133
136
|
headers: {
|
|
134
137
|
authorization: `Bearer ${token}`,
|
|
138
|
+
"user-agent": userAgent,
|
|
135
139
|
accept: "text/plain",
|
|
136
140
|
"content-type": "text/plain; charset=utf-8"
|
|
137
141
|
},
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-BJsLGoSX.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import "./environment-CQn323uB.js";
|
|
4
|
+
import "./storage-DqKJe13V.js";
|
|
5
|
+
import "./client-CimFymxG.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
|
-
import "./telemetry-
|
|
7
|
+
import "./telemetry-D_uIIuSk.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-TZeZEeVv.js";
|
|
10
10
|
import "./ui-D_qf3Gvw.js";
|
|
11
11
|
import "./theme-DUsCh-Vd.js";
|
|
12
12
|
import "./log-NVhVe_oe.js";
|
|
13
|
-
import { i as readPackageJson, r as allDeps, t as scanProject } from "./scan-
|
|
14
|
-
import { t as detectExisting } from "./existing-
|
|
15
|
-
import "./paths-
|
|
16
|
-
import { D as field, f as listApplications, n as createApplication, p as listProjects, v as platformLabel } from "./resources-
|
|
17
|
-
import "./org-
|
|
18
|
-
import { n as findApplication } from "./lookup-
|
|
19
|
-
import { r as resolveScopeFromKey } from "./bind-
|
|
20
|
-
import "./login-
|
|
21
|
-
import "./skills-
|
|
22
|
-
import { E as writeApp } from "./selection-
|
|
23
|
-
import { a as gitAvailable, b as requirePlatform, c as projectPackageName, n as requireApi, t as LoginRequiredError } from "./session-
|
|
24
|
-
import "./login-
|
|
25
|
-
import "./run-
|
|
26
|
-
import "./drivers-
|
|
27
|
-
import { b as writeTemplate, c as migrationFor, d as projectDirOf, f as scaffoldFromPaywall, i as startStudio, n as migrationNextSteps, s as isSuperwallProject, t as askStudio, u as offerMigration, v as starterConfig, x as slugOf, y as writeSurfaceFiles } from "./open-
|
|
28
|
-
import "./server-
|
|
13
|
+
import { i as readPackageJson, r as allDeps, t as scanProject } from "./scan-CpbfZ2ju.js";
|
|
14
|
+
import { t as detectExisting } from "./existing-CvOluc9U.js";
|
|
15
|
+
import "./paths-oRuC18Kt.js";
|
|
16
|
+
import { D as field, f as listApplications, n as createApplication, p as listProjects, v as platformLabel } from "./resources-FIrK7pE9.js";
|
|
17
|
+
import "./org-CvPGVSBF.js";
|
|
18
|
+
import { n as findApplication } from "./lookup-DZFrfzO0.js";
|
|
19
|
+
import { r as resolveScopeFromKey } from "./bind-DEYxsnZD.js";
|
|
20
|
+
import "./login-BIAWgdzM.js";
|
|
21
|
+
import "./skills-D7sG0xom.js";
|
|
22
|
+
import { E as writeApp } from "./selection-CHnVk8uw.js";
|
|
23
|
+
import { a as gitAvailable, b as requirePlatform, c as projectPackageName, n as requireApi, t as LoginRequiredError } from "./session-BFwasPVq.js";
|
|
24
|
+
import "./login-DLi71nJq.js";
|
|
25
|
+
import "./run-CwEY1eu5.js";
|
|
26
|
+
import "./drivers-C6eXj5-r.js";
|
|
27
|
+
import { b as writeTemplate, c as migrationFor, d as projectDirOf, f as scaffoldFromPaywall, i as startStudio, n as migrationNextSteps, s as isSuperwallProject, t as askStudio, u as offerMigration, v as starterConfig, x as slugOf, y as writeSurfaceFiles } from "./open-BjvGVwJf.js";
|
|
28
|
+
import "./server-D5xl5iKO.js";
|
|
29
29
|
import { execFile } from "node:child_process";
|
|
30
30
|
import * as fs from "node:fs";
|
|
31
31
|
import * as path from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ApiError } from "./client-
|
|
4
|
-
import { i as savedKey, m as KEY_LABEL, n as testModeWarning, o as chooseIosApp, s as resolveApp, t as upsertHeldKey, x as keyKind, y as findIntegrations } from "./held-
|
|
5
|
-
import { t as apiCall } from "./spinner-
|
|
6
|
-
import { n as SUPERWALL_HOME } from "./paths-
|
|
7
|
-
import { A as parseJson, D as field, j as textField, k as listField } from "./resources-
|
|
2
|
+
import { b as appleCredentialsFromEnv, d as ENV_APPLE_PASSWORD, u as ENV_APPLE_ID, v as VERSION } from "./environment-CQn323uB.js";
|
|
3
|
+
import { t as ApiError } from "./client-CimFymxG.js";
|
|
4
|
+
import { i as savedKey, m as KEY_LABEL, n as testModeWarning, o as chooseIosApp, s as resolveApp, t as upsertHeldKey, x as keyKind, y as findIntegrations } from "./held-QM7yfrXq.js";
|
|
5
|
+
import { t as apiCall } from "./spinner-TZeZEeVv.js";
|
|
6
|
+
import { n as SUPERWALL_HOME } from "./paths-oRuC18Kt.js";
|
|
7
|
+
import { A as parseJson, D as field, j as textField, k as listField } from "./resources-FIrK7pE9.js";
|
|
8
8
|
import { c as replaceAppPurchaseKey, s as replaceAppAscKey } from "./client-BZ1UbpXz.js";
|
|
9
9
|
import { t as timing } from "./timing-BVxPrYq3.js";
|
|
10
10
|
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "./token-BJsLGoSX.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-CQn323uB.js";
|
|
4
|
+
import "./storage-DqKJe13V.js";
|
|
5
|
+
import "./client-CimFymxG.js";
|
|
6
|
+
import "./held-QM7yfrXq.js";
|
|
7
|
+
import "./config-BO1Y87kV.js";
|
|
8
|
+
import "./spinner-TZeZEeVv.js";
|
|
9
|
+
import "./ui-D_qf3Gvw.js";
|
|
10
|
+
import "./paths-oRuC18Kt.js";
|
|
11
|
+
import "./resources-FIrK7pE9.js";
|
|
12
|
+
import "./org-CvPGVSBF.js";
|
|
13
|
+
import "./lookup-DZFrfzO0.js";
|
|
14
|
+
import "./scope-BSqVfZvy.js";
|
|
15
|
+
import "./client-BZ1UbpXz.js";
|
|
16
|
+
import "./timing-BVxPrYq3.js";
|
|
17
|
+
import { i as runAscKeysCreate, n as keyAccess, r as keyRole, t as createAndSaveKey } from "./create-DTAyHkxb.js";
|
|
18
|
+
|
|
19
|
+
export { createAndSaveKey, keyAccess, keyRole, runAscKeysCreate };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-BJsLGoSX.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { y as apiKeyFromEnv } from "./environment-CQn323uB.js";
|
|
4
|
+
import { n as readSession } from "./storage-DqKJe13V.js";
|
|
5
5
|
import "./spawn-DmmmHIP-.js";
|
|
6
6
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
7
7
|
import { n as fg, t as THEME } from "./theme-DUsCh-Vd.js";
|
|
8
|
-
import { t as scanProject } from "./scan-
|
|
9
|
-
import { t as detectExisting } from "./existing-
|
|
10
|
-
import { t as detectDrivers } from "./drivers-
|
|
8
|
+
import { t as scanProject } from "./scan-CpbfZ2ju.js";
|
|
9
|
+
import { t as detectExisting } from "./existing-CvOluc9U.js";
|
|
10
|
+
import { t as detectDrivers } from "./drivers-C6eXj5-r.js";
|
|
11
11
|
|
|
12
12
|
//#region src/core/support/doctor.ts
|
|
13
13
|
async function runDoctor(ctx, deps = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as getOAuthAccessToken } from "./token-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as getOAuthAccessToken } from "./token-BJsLGoSX.js";
|
|
2
|
+
import { t as API_HOST, v as VERSION } from "./environment-CQn323uB.js";
|
|
3
|
+
import { n as readSession } from "./storage-DqKJe13V.js";
|
|
4
4
|
import { n as readVersion, r as spawnStream, t as onPath } from "./spawn-DmmmHIP-.js";
|
|
5
5
|
import { basename, join } from "node:path";
|
|
6
6
|
import { tmpdir } from "node:os";
|
package/dist/entry.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { n as __require, r as __toESM, t as __commonJS } from "./chunk-DQxbwPpZ.js";
|
|
2
|
-
import "./token-
|
|
2
|
+
import "./token-BJsLGoSX.js";
|
|
3
3
|
import { a as stripAnsi, d as useStores, i as writeJson } from "./output-Ggzq5_-t.js";
|
|
4
|
-
import {
|
|
5
|
-
import "./storage-
|
|
6
|
-
import { i as superwallApi } from "./client-
|
|
7
|
-
import { O as useAscRefresh } from "./held-
|
|
4
|
+
import { S as isNonInteractive, a as CHANNEL, v as VERSION } from "./environment-CQn323uB.js";
|
|
5
|
+
import "./storage-DqKJe13V.js";
|
|
6
|
+
import { i as superwallApi } from "./client-CimFymxG.js";
|
|
7
|
+
import { O as useAscRefresh } from "./held-QM7yfrXq.js";
|
|
8
8
|
import "./config-BO1Y87kV.js";
|
|
9
|
-
import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-
|
|
9
|
+
import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-D_uIIuSk.js";
|
|
10
10
|
import "./spawn-DmmmHIP-.js";
|
|
11
|
-
import { i as refreshUpdateCheck, r as maybeNotifyUpdate, t as flushUpdateCheck } from "./upgrade-
|
|
12
|
-
import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-
|
|
11
|
+
import { i as refreshUpdateCheck, r as maybeNotifyUpdate, t as flushUpdateCheck } from "./upgrade-BRM51As6.js";
|
|
12
|
+
import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-TZeZEeVv.js";
|
|
13
13
|
import { r as useRenderer, t as silentRenderer } from "./ui-D_qf3Gvw.js";
|
|
14
14
|
import { t as THEME } from "./theme-DUsCh-Vd.js";
|
|
15
15
|
import { n as styleMarkdown, r as wrapReportLine } from "./log-NVhVe_oe.js";
|
|
16
|
-
import { t as scanProject } from "./scan-
|
|
17
|
-
import { t as detectExisting } from "./existing-
|
|
18
|
-
import { n as SUPERWALL_HOME, r as expandHome } from "./paths-
|
|
19
|
-
import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-
|
|
20
|
-
import "./session-
|
|
21
|
-
import "./resources-
|
|
22
|
-
import "./org-
|
|
23
|
-
import "./lookup-
|
|
24
|
-
import "./scope-
|
|
16
|
+
import { t as scanProject } from "./scan-CpbfZ2ju.js";
|
|
17
|
+
import { t as detectExisting } from "./existing-CvOluc9U.js";
|
|
18
|
+
import { n as SUPERWALL_HOME, r as expandHome } from "./paths-oRuC18Kt.js";
|
|
19
|
+
import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-OmPZ6dj0.js";
|
|
20
|
+
import "./session-6lnJ0shD.js";
|
|
21
|
+
import "./resources-FIrK7pE9.js";
|
|
22
|
+
import "./org-CvPGVSBF.js";
|
|
23
|
+
import "./lookup-DZFrfzO0.js";
|
|
24
|
+
import "./scope-BSqVfZvy.js";
|
|
25
25
|
import "./client-BZ1UbpXz.js";
|
|
26
26
|
import "./products-DH_fK9tY.js";
|
|
27
27
|
import "./input-vi0bou04.js";
|
|
28
28
|
import "./timing-BVxPrYq3.js";
|
|
29
|
-
import "./notification-url-
|
|
30
|
-
import "./bind-
|
|
29
|
+
import "./notification-url-erXQ1edb.js";
|
|
30
|
+
import "./bind-DEYxsnZD.js";
|
|
31
31
|
import { spawn } from "node:child_process";
|
|
32
32
|
import * as fs from "node:fs";
|
|
33
33
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "2.
|
|
2
|
+
var version = "2.2.0";
|
|
3
3
|
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/environment.ts
|
|
@@ -45,6 +45,19 @@ function appleCredentialsFromEnv() {
|
|
|
45
45
|
...password ? { password } : {}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
+
const AGENT_ENV = [
|
|
49
|
+
["CLAUDECODE", "claude-code"],
|
|
50
|
+
["CODEX_SANDBOX", "codex"],
|
|
51
|
+
["CURSOR_AGENT", "cursor"],
|
|
52
|
+
["GEMINI_CLI", "gemini-cli"]
|
|
53
|
+
];
|
|
54
|
+
function detectAgent(env = typeof process === "undefined" ? {} : process.env) {
|
|
55
|
+
return AGENT_ENV.find(([key]) => env[key])?.[1];
|
|
56
|
+
}
|
|
57
|
+
const USER_AGENT = () => {
|
|
58
|
+
const agent = detectAgent();
|
|
59
|
+
return agent ? `superwall-cli/${VERSION} (${agent})` : `superwall-cli/${VERSION}`;
|
|
60
|
+
};
|
|
48
61
|
function resolveEnv(name) {
|
|
49
62
|
const value = process.env[name]?.trim();
|
|
50
63
|
return value === "" ? void 0 : value;
|
|
@@ -55,4 +68,4 @@ function isNonInteractive() {
|
|
|
55
68
|
const RUNNING_VIA_NPX = () => process.argv[1]?.includes("_npx") ?? false;
|
|
56
69
|
|
|
57
70
|
//#endregion
|
|
58
|
-
export {
|
|
71
|
+
export { resolveEnv as C, isNonInteractive as S, USER_AGENT as _, CHANNEL as a, appleCredentialsFromEnv as b, DASHBOARD_URL as c, ENV_APPLE_PASSWORD as d, Integration as f, TELEMETRY_KEY as g, TELEMETRY_HOST as h, AUTH_HOST as i, ENV_API_KEY as l, RUNNING_VIA_NPX as m, API_HOST_OVERRIDE as n, CHANNELS as o, OAUTH_SCOPE as p, ASSET_HOST as r, CLI_CLIENT_ID as s, API_HOST as t, ENV_APPLE_ID as u, VERSION as v, detectAgent as x, apiKeyFromEnv as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as Integration } from "./environment-
|
|
2
|
-
import { i as readPackageJson, r as allDeps } from "./scan-
|
|
1
|
+
import { f as Integration } from "./environment-CQn323uB.js";
|
|
2
|
+
import { i as readPackageJson, r as allDeps } from "./scan-CpbfZ2ju.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
5
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./token-BJsLGoSX.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-CQn323uB.js";
|
|
4
|
+
import "./storage-DqKJe13V.js";
|
|
5
|
+
import "./client-CimFymxG.js";
|
|
6
|
+
import { t as upsertHeldKey } from "./held-QM7yfrXq.js";
|
|
7
|
+
import "./config-BO1Y87kV.js";
|
|
8
|
+
import "./spinner-TZeZEeVv.js";
|
|
9
|
+
import "./ui-D_qf3Gvw.js";
|
|
10
|
+
import "./resources-FIrK7pE9.js";
|
|
11
|
+
import "./org-CvPGVSBF.js";
|
|
12
|
+
import "./lookup-DZFrfzO0.js";
|
|
13
|
+
import "./scope-BSqVfZvy.js";
|
|
14
|
+
import "./client-BZ1UbpXz.js";
|
|
15
|
+
|
|
16
|
+
export { upsertHeldKey };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l as readJson, o as cache } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import { t as ApiError } from "./client-
|
|
3
|
-
import { d as readInput, t as apiCall } from "./spinner-
|
|
4
|
-
import { D as field, O as isRecord, j as textField, k as listField, n as createApplication, p as listProjects, s as createProject } from "./resources-
|
|
5
|
-
import { n as orgForNewProject } from "./org-
|
|
6
|
-
import { n as findApplication } from "./lookup-
|
|
7
|
-
import { r as pickOrganization } from "./scope-
|
|
2
|
+
import { t as ApiError } from "./client-CimFymxG.js";
|
|
3
|
+
import { d as readInput, t as apiCall } from "./spinner-TZeZEeVv.js";
|
|
4
|
+
import { D as field, O as isRecord, j as textField, k as listField, n as createApplication, p as listProjects, s as createProject } from "./resources-FIrK7pE9.js";
|
|
5
|
+
import { n as orgForNewProject } from "./org-CvPGVSBF.js";
|
|
6
|
+
import { n as findApplication } from "./lookup-DZFrfzO0.js";
|
|
7
|
+
import { r as pickOrganization } from "./scope-BSqVfZvy.js";
|
|
8
8
|
import { a as listAscConfigs, c as replaceAppPurchaseKey, l as replaceAscConfig, r as createAscConfig, s as replaceAppAscKey, t as ascProxy } from "./client-BZ1UbpXz.js";
|
|
9
9
|
|
|
10
10
|
//#region src/core/app-store-connect/api/spec.ts
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-BJsLGoSX.js";
|
|
2
2
|
import { r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as superwallApi } from "./client-
|
|
3
|
+
import { c as DASHBOARD_URL, v as VERSION } from "./environment-CQn323uB.js";
|
|
4
|
+
import { i as removeSession, n as readSession, s as sessionOrgName } from "./storage-DqKJe13V.js";
|
|
5
|
+
import { i as superwallApi } from "./client-CimFymxG.js";
|
|
6
6
|
import { r as readOnboardedApp } from "./config-BO1Y87kV.js";
|
|
7
|
-
import { i as updateTelemetryTags } from "./telemetry-
|
|
7
|
+
import { i as updateTelemetryTags } from "./telemetry-D_uIIuSk.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import { n as withSpinner } from "./spinner-
|
|
9
|
+
import { n as withSpinner } from "./spinner-TZeZEeVv.js";
|
|
10
10
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
11
11
|
import "./theme-DUsCh-Vd.js";
|
|
12
12
|
import { t as stripReport } from "./log-NVhVe_oe.js";
|
|
13
|
-
import { n as SUPPORTED_LABEL, t as scanProject } from "./scan-
|
|
14
|
-
import { t as detectExisting } from "./existing-
|
|
15
|
-
import { r as expandHome } from "./paths-
|
|
16
|
-
import { D as field, f as listApplications, k as listField, m as listResource, o as createProduct, v as platformLabel, w as rowName } from "./resources-
|
|
17
|
-
import "./org-
|
|
18
|
-
import "./lookup-
|
|
19
|
-
import "./scope-
|
|
13
|
+
import { n as SUPPORTED_LABEL, t as scanProject } from "./scan-CpbfZ2ju.js";
|
|
14
|
+
import { t as detectExisting } from "./existing-CvOluc9U.js";
|
|
15
|
+
import { r as expandHome } from "./paths-oRuC18Kt.js";
|
|
16
|
+
import { D as field, f as listApplications, k as listField, m as listResource, o as createProduct, v as platformLabel, w as rowName } from "./resources-FIrK7pE9.js";
|
|
17
|
+
import "./org-CvPGVSBF.js";
|
|
18
|
+
import "./lookup-DZFrfzO0.js";
|
|
19
|
+
import "./scope-BSqVfZvy.js";
|
|
20
20
|
import { a as listAscConfigs, r as createAscConfig } from "./client-BZ1UbpXz.js";
|
|
21
21
|
import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-DH_fK9tY.js";
|
|
22
22
|
import "./input-vi0bou04.js";
|
|
23
|
-
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-
|
|
24
|
-
import "./login-
|
|
25
|
-
import { s as ensureSkillsCurrent } from "./skills-
|
|
26
|
-
import { t as generateStoreKit } from "./storekit-
|
|
27
|
-
import { n as performLoginWithUi, t as createLoginGate } from "./login-
|
|
28
|
-
import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-
|
|
29
|
-
import { n as selectHostedStatus, t as detectDrivers } from "./drivers-
|
|
30
|
-
import { r as actionById, t as detectBilling } from "./billing-
|
|
23
|
+
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-DEYxsnZD.js";
|
|
24
|
+
import "./login-BIAWgdzM.js";
|
|
25
|
+
import { s as ensureSkillsCurrent } from "./skills-D7sG0xom.js";
|
|
26
|
+
import { t as generateStoreKit } from "./storekit-uyT3DWo4.js";
|
|
27
|
+
import { n as performLoginWithUi, t as createLoginGate } from "./login-DLi71nJq.js";
|
|
28
|
+
import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-CwEY1eu5.js";
|
|
29
|
+
import { n as selectHostedStatus, t as detectDrivers } from "./drivers-C6eXj5-r.js";
|
|
30
|
+
import { r as actionById, t as detectBilling } from "./billing-CWM1ds3K.js";
|
|
31
31
|
import { n as writeReport, t as readReport } from "./reports-D_qbl7_u.js";
|
|
32
32
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
33
33
|
import { basename } from "node:path";
|