@superwall/cli 1.1.0 → 1.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 +212 -19
- package/dist/{actions-MB-eBY64.js → actions-DYQTxMXS.js} +2 -2
- package/dist/{api-BF7-toqM.js → api-B2Zsf08U.js} +3 -3
- package/dist/{app-K6j9Es7h.js → app-rYAP19Jo.js} +6 -6
- package/dist/asa-DlM6dlPD.js +1194 -0
- package/dist/{asc-CArSwo5D.js → asc-D6qBCfuj.js} +4 -4
- package/dist/{auth-CY2cO_NF.js → auth-BEnVvJlK.js} +6 -6
- package/dist/{billing-DWyfEQ6l.js → billing-DO-gNWvW.js} +1 -1
- package/dist/{bind-hslFhcTR.js → bind-KZhPLTdC.js} +1 -1
- package/dist/{command-Kwx4ekbo.js → command-B12qooZb.js} +17 -13
- package/dist/{create-Bbi8BOO1.js → create-BTEvRC1X.js} +12 -12
- package/dist/{dev-D0lQDCQI.js → dev-CwfCGm36.js} +12 -12
- package/dist/{doctor-ByeRdMcl.js → doctor-DIxs8i8A.js} +7 -7
- package/dist/{drivers-DVAZgone.js → drivers-D6Ka26e2.js} +2 -2
- package/dist/entry.js +221 -25
- package/dist/{existing-CcJrIIAU.js → existing-CECenoHS.js} +2 -2
- package/dist/{feedback-Z0Wk7VC5.js → feedback-CV2coV73.js} +3 -3
- package/dist/{git-3OX9u3xE.js → git-CCJwXufi.js} +3 -3
- package/dist/{hosted-CHwaUqLd.js → hosted-BCwzTTEw.js} +1 -1
- package/dist/{integrate-DqOAqK7J.js → integrate-Bhq0wkU0.js} +16 -16
- package/dist/{login-Dr8UN_Gx.js → login-D5TjqsXJ.js} +1 -1
- package/dist/{migrate-D92bJTg6.js → migrate-Cz7VqQNj.js} +14 -14
- package/dist/{pipeline-CHHIg6BU.js → pipeline-ChRDxU9b.js} +4 -78
- package/dist/{print-skill-BnZAk7dV.js → print-skill-BPePCjy4.js} +5 -5
- package/dist/{promote-CRe9170G.js → promote-C54bfsg3.js} +12 -12
- package/dist/{publish-DsODvrOD.js → publish-NUNSIKri.js} +12 -12
- package/dist/{push-BDkZUC0v.js → push-BjEpY9-h.js} +12 -12
- package/dist/{query-DIllrSnk.js → query-CXjrBFow.js} +3 -3
- package/dist/{resource-CdP1MDla.js → resource-CM2bIB5v.js} +7 -7
- package/dist/{run-cGGBUMs5.js → run-CAIDPbwe.js} +2 -2
- package/dist/{scan-BQexuUPO.js → scan-BrikLKx5.js} +1 -1
- package/dist/{skills-xrfXt9u0.js → skills-BwXcAVIf.js} +1 -1
- package/dist/{skills-DhuUs28u.js → skills-_TULXe09.js} +4 -4
- package/dist/{telemetry-CcfrtXdf.js → telemetry-CpIXSAbQ.js} +1 -1
- package/dist/{update-BiVeR024.js → update-BdcpwRu_.js} +1 -1
- package/dist/{upgrade-DYWspApv.js → upgrade-BNPbzr5V.js} +3 -3
- package/package.json +2 -1
- /package/dist/{asc-products-YQ6Oc6YO.js → asc-products-C6MvSy8H.js} +0 -0
- /package/dist/{storekit-Ddvs4Ynw.js → storekit-DPonXSwe.js} +0 -0
|
@@ -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-CpIXSAbQ.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-BdcpwRu_.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-B12qooZb.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-BwXcAVIf.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-D5TjqsXJ.js";
|
|
10
|
+
import { i as SUPPORTED_LABEL, t as scanProject } from "./scan-BrikLKx5.js";
|
|
11
|
+
import { t as detectDrivers } from "./drivers-D6Ka26e2.js";
|
|
12
|
+
import "./hosted-BCwzTTEw.js";
|
|
13
|
+
import { t as detectExisting } from "./existing-CECenoHS.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-
|
|
20
|
-
import { c as listAscConfigs, i as listAscApps, n as fetchUnimportedAscProducts, o as createAscConfig, r as findAscAppId, t as ascTypeDisplay } from "./asc-products-
|
|
21
|
-
import { t as generateStoreKit } from "./storekit-
|
|
22
|
-
import { i as saveReport, n as buildCopyPrompt, r as loadReport, t as runAction } from "./run-
|
|
23
|
-
import { t as detectBilling } from "./billing-
|
|
17
|
+
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-KZhPLTdC.js";
|
|
18
|
+
import { r as actionById } from "./actions-DYQTxMXS.js";
|
|
19
|
+
import { a as recoverUnmatchedScope, i as pickApp, n as ensureAgentDriverReady, o as stage, r as performLoginWithUi, t as chooseAction } from "./app-rYAP19Jo.js";
|
|
20
|
+
import { c as listAscConfigs, i as listAscApps, n as fetchUnimportedAscProducts, o as createAscConfig, r as findAscAppId, t as ascTypeDisplay } from "./asc-products-C6MvSy8H.js";
|
|
21
|
+
import { t as generateStoreKit } from "./storekit-DPonXSwe.js";
|
|
22
|
+
import { i as saveReport, n as buildCopyPrompt, r as loadReport, t as runAction } from "./run-CAIDPbwe.js";
|
|
23
|
+
import { t as detectBilling } from "./billing-DO-gNWvW.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-CpIXSAbQ.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-CpIXSAbQ.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import { o as blocks } from "./update-
|
|
3
|
+
import { o as blocks } from "./update-BdcpwRu_.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-B12qooZb.js";
|
|
6
6
|
import { n as ui, r as stripReport } from "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-BwXcAVIf.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-D5TjqsXJ.js";
|
|
10
|
+
import { t as scanProject } from "./scan-BrikLKx5.js";
|
|
11
|
+
import { t as detectDrivers } from "./drivers-D6Ka26e2.js";
|
|
12
|
+
import "./hosted-BCwzTTEw.js";
|
|
13
|
+
import { t as detectExisting } from "./existing-CECenoHS.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-KZhPLTdC.js";
|
|
18
|
+
import { r as actionById } from "./actions-DYQTxMXS.js";
|
|
19
|
+
import { r as performLoginWithUi } from "./app-rYAP19Jo.js";
|
|
20
|
+
import { i as saveReport, t as runAction } from "./run-CAIDPbwe.js";
|
|
21
|
+
import { t as detectBilling } from "./billing-DO-gNWvW.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-CpIXSAbQ.js";
|
|
2
|
+
import { n as ApiError } from "./command-B12qooZb.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-CCJwXufi.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import pc from "picocolors";
|
|
8
8
|
import * as fs from "node:fs";
|
|
@@ -12,6 +12,7 @@ import * as path from "node:path";
|
|
|
12
12
|
import { join, resolve } from "node:path";
|
|
13
13
|
import { pathToFileURL } from "node:url";
|
|
14
14
|
import fg from "fast-glob";
|
|
15
|
+
import { productVariables } from "@superwall/studio/products";
|
|
15
16
|
|
|
16
17
|
//#region src/core/paywalls/project/types.ts
|
|
17
18
|
const TYPES_FILE = "superwall.d.ts";
|
|
@@ -328,81 +329,6 @@ function planTargets(input) {
|
|
|
328
329
|
|
|
329
330
|
//#endregion
|
|
330
331
|
//#region src/core/paywalls/products.ts
|
|
331
|
-
const SYMBOLS = {
|
|
332
|
-
USD: "$",
|
|
333
|
-
CAD: "$",
|
|
334
|
-
AUD: "$",
|
|
335
|
-
NZD: "$",
|
|
336
|
-
EUR: "€",
|
|
337
|
-
GBP: "£",
|
|
338
|
-
JPY: "¥",
|
|
339
|
-
CNY: "¥",
|
|
340
|
-
INR: "₹",
|
|
341
|
-
KRW: "₩",
|
|
342
|
-
BRL: "R$",
|
|
343
|
-
MXN: "$",
|
|
344
|
-
CHF: "CHF",
|
|
345
|
-
SEK: "kr",
|
|
346
|
-
NOK: "kr",
|
|
347
|
-
DKK: "kr",
|
|
348
|
-
PLN: "zł",
|
|
349
|
-
TRY: "₺",
|
|
350
|
-
RUB: "₽",
|
|
351
|
-
ZAR: "R"
|
|
352
|
-
};
|
|
353
|
-
const MINOR = 100;
|
|
354
|
-
const PER_YEAR = {
|
|
355
|
-
day: 365,
|
|
356
|
-
week: 52,
|
|
357
|
-
month: 12,
|
|
358
|
-
year: 1
|
|
359
|
-
};
|
|
360
|
-
const symbolFor = (currency) => SYMBOLS[currency.toUpperCase()] ?? "";
|
|
361
|
-
const money = (amount, currency) => {
|
|
362
|
-
try {
|
|
363
|
-
return new Intl.NumberFormat("en-US", {
|
|
364
|
-
style: "currency",
|
|
365
|
-
currency
|
|
366
|
-
}).format(amount);
|
|
367
|
-
} catch {
|
|
368
|
-
return `${symbolFor(currency)}${amount.toFixed(2)}`;
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
const PERIODLY = {
|
|
372
|
-
day: "daily",
|
|
373
|
-
week: "weekly",
|
|
374
|
-
month: "monthly",
|
|
375
|
-
year: "yearly"
|
|
376
|
-
};
|
|
377
|
-
const productVariables = (product) => {
|
|
378
|
-
const variables = {};
|
|
379
|
-
if (product.identifier) variables.identifier = product.identifier;
|
|
380
|
-
const price = product.price;
|
|
381
|
-
if (!price || typeof price.amount !== "number" || !price.currency) return variables;
|
|
382
|
-
const currency = price.currency.toUpperCase();
|
|
383
|
-
const value = price.amount / MINOR;
|
|
384
|
-
variables.price = money(value, currency);
|
|
385
|
-
variables.rawPrice = value;
|
|
386
|
-
variables.currencyCode = currency;
|
|
387
|
-
variables.currencySymbol = symbolFor(currency);
|
|
388
|
-
const period = product.subscription?.period;
|
|
389
|
-
if (!period) return variables;
|
|
390
|
-
const count = product.subscription?.period_count ?? 1;
|
|
391
|
-
variables.period = period;
|
|
392
|
-
variables.periodly = PERIODLY[period] ?? `${period}ly`;
|
|
393
|
-
variables[`period${period.charAt(0).toUpperCase()}${period.slice(1)}s`] = count;
|
|
394
|
-
const perYear = (PER_YEAR[period] ?? 1) / count;
|
|
395
|
-
variables.yearlyPrice = money(value * perYear, currency);
|
|
396
|
-
variables.monthlyPrice = money(value * perYear / 12, currency);
|
|
397
|
-
variables.weeklyPrice = money(value * perYear / 52, currency);
|
|
398
|
-
variables.dailyPrice = money(value * perYear / 365, currency);
|
|
399
|
-
const trialDays = product.subscription?.trial_period_days;
|
|
400
|
-
if (typeof trialDays === "number" && trialDays > 0) {
|
|
401
|
-
variables.trialPeriodDays = trialDays;
|
|
402
|
-
variables.trialPeriodText = `${trialDays}-day`;
|
|
403
|
-
}
|
|
404
|
-
return variables;
|
|
405
|
-
};
|
|
406
332
|
async function fetchProducts(api, projectId) {
|
|
407
333
|
const rows = await api.list(`/v2/products?project_id=${encodeURIComponent(projectId)}`);
|
|
408
334
|
const catalogue = {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as track, r as setTelemetryTags } from "./telemetry-
|
|
1
|
+
import { i as track, r as setTelemetryTags } from "./telemetry-CpIXSAbQ.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-BwXcAVIf.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-BrikLKx5.js";
|
|
7
|
+
import { n as FRAMEWORK_REF } from "./actions-DYQTxMXS.js";
|
|
8
|
+
import { t as detectBilling } from "./billing-DO-gNWvW.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-CpIXSAbQ.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-BdcpwRu_.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-B12qooZb.js";
|
|
6
6
|
import { n as ui } from "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-BwXcAVIf.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import "./scan-
|
|
11
|
-
import "./hosted-
|
|
9
|
+
import "./login-D5TjqsXJ.js";
|
|
10
|
+
import "./scan-BrikLKx5.js";
|
|
11
|
+
import "./hosted-BCwzTTEw.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-KZhPLTdC.js";
|
|
16
|
+
import { i as requireApi, u as resolveApps } from "./git-CCJwXufi.js";
|
|
17
|
+
import "./actions-DYQTxMXS.js";
|
|
18
|
+
import "./app-rYAP19Jo.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-ChRDxU9b.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-CpIXSAbQ.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-BdcpwRu_.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-B12qooZb.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-BwXcAVIf.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import "./scan-
|
|
11
|
-
import "./hosted-
|
|
9
|
+
import "./login-D5TjqsXJ.js";
|
|
10
|
+
import "./scan-BrikLKx5.js";
|
|
11
|
+
import "./hosted-BCwzTTEw.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-KZhPLTdC.js";
|
|
16
|
+
import { i as requireApi } from "./git-CCJwXufi.js";
|
|
17
|
+
import "./actions-DYQTxMXS.js";
|
|
18
|
+
import "./app-rYAP19Jo.js";
|
|
19
|
+
import { o as runPushPipeline } from "./pipeline-ChRDxU9b.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-CpIXSAbQ.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-BdcpwRu_.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-B12qooZb.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-BwXcAVIf.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import "./scan-
|
|
11
|
-
import "./hosted-
|
|
9
|
+
import "./login-D5TjqsXJ.js";
|
|
10
|
+
import "./scan-BrikLKx5.js";
|
|
11
|
+
import "./hosted-BCwzTTEw.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-KZhPLTdC.js";
|
|
16
|
+
import { i as requireApi } from "./git-CCJwXufi.js";
|
|
17
|
+
import "./actions-DYQTxMXS.js";
|
|
18
|
+
import "./app-rYAP19Jo.js";
|
|
19
|
+
import { o as runPushPipeline } from "./pipeline-ChRDxU9b.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-CpIXSAbQ.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-BdcpwRu_.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-B12qooZb.js";
|
|
6
6
|
import "./ui-C4ncRJqd.js";
|
|
7
7
|
import "./spinner-gOxIMz-V.js";
|
|
8
8
|
import "./resources-CVrWwA1K.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { c as getDefaultApp, m as setDefaultApp } from "./telemetry-
|
|
1
|
+
import { c as getDefaultApp, m as setDefaultApp } from "./telemetry-CpIXSAbQ.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-BdcpwRu_.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-B12qooZb.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-BrikLKx5.js";
|
|
8
|
+
import { t as detectExisting } from "./existing-CECenoHS.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-KZhPLTdC.js";
|
|
13
13
|
import { t as apiCall } from "./api-output-B5hh0q4V.js";
|
|
14
|
-
import { t as generateStoreKit } from "./storekit-
|
|
14
|
+
import { t as generateStoreKit } from "./storekit-DPonXSwe.js";
|
|
15
15
|
import * as fs from "node:fs";
|
|
16
16
|
import { writeFileSync } from "node:fs";
|
|
17
17
|
import * as path from "node:path";
|
|
@@ -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-CpIXSAbQ.js";
|
|
2
|
+
import { s as packagedDir } from "./skills-BwXcAVIf.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-CpIXSAbQ.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,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-CpIXSAbQ.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,10 +1,10 @@
|
|
|
1
|
-
import "./telemetry-
|
|
1
|
+
import "./telemetry-CpIXSAbQ.js";
|
|
2
2
|
import "./json-C3hPIMkI.js";
|
|
3
|
-
import "./update-
|
|
3
|
+
import "./update-BdcpwRu_.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-B12qooZb.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-BwXcAVIf.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 { k as VERSION, p as getUpdateCheck, v as setUpdateCheck } from "./telemetry-
|
|
1
|
+
import { k as VERSION, p as getUpdateCheck, v as setUpdateCheck } from "./telemetry-CpIXSAbQ.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-CpIXSAbQ.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-BdcpwRu_.js";
|
|
4
4
|
import "./token-DHRH8cxi.js";
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
5
|
+
import { t as defineCommand } from "./command-B12qooZb.js";
|
|
6
6
|
import "./ui-C4ncRJqd.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.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "The official CLI for managing Superwall from your terminal or coding agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@anthropic-ai/claude-agent-sdk": "0.3.201",
|
|
61
|
+
"@superwall/studio": "1.2.0",
|
|
61
62
|
"ansi-escapes": "^7.3.0",
|
|
62
63
|
"fast-glob": "^3.3.3",
|
|
63
64
|
"ink": "^5.2.1",
|
|
File without changes
|
|
File without changes
|