@superwall/cli 1.1.1 → 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.
Files changed (39) hide show
  1. package/README.md +31 -0
  2. package/dist/{actions-I5gVO5jN.js → actions-DYQTxMXS.js} +2 -2
  3. package/dist/{api-emImQnVy.js → api-B2Zsf08U.js} +3 -3
  4. package/dist/{app-DE9lxNNV.js → app-rYAP19Jo.js} +6 -6
  5. package/dist/asa-DlM6dlPD.js +1194 -0
  6. package/dist/{asc-DYc_Yo9e.js → asc-D6qBCfuj.js} +4 -4
  7. package/dist/{auth-Bir_Un8l.js → auth-BEnVvJlK.js} +6 -6
  8. package/dist/{billing-CW0diI2X.js → billing-DO-gNWvW.js} +1 -1
  9. package/dist/{bind-DO11eXrR.js → bind-KZhPLTdC.js} +1 -1
  10. package/dist/{command-CmJMNVVz.js → command-B12qooZb.js} +17 -13
  11. package/dist/{create-CwDgWW16.js → create-BTEvRC1X.js} +12 -12
  12. package/dist/{dev-OnmMOsgK.js → dev-CwfCGm36.js} +12 -12
  13. package/dist/{doctor-CpYkDfdC.js → doctor-DIxs8i8A.js} +7 -7
  14. package/dist/{drivers-Cweb9bWA.js → drivers-D6Ka26e2.js} +2 -2
  15. package/dist/entry.js +221 -25
  16. package/dist/{existing-p-hX-Nxc.js → existing-CECenoHS.js} +2 -2
  17. package/dist/{feedback-CV4JnRuk.js → feedback-CV2coV73.js} +3 -3
  18. package/dist/{git-BrTxQ7ui.js → git-CCJwXufi.js} +3 -3
  19. package/dist/{hosted-CbNJSJAC.js → hosted-BCwzTTEw.js} +1 -1
  20. package/dist/{integrate-DOLvHr1D.js → integrate-Bhq0wkU0.js} +16 -16
  21. package/dist/{login-B7fSpJKc.js → login-D5TjqsXJ.js} +1 -1
  22. package/dist/{migrate-Bn5btm_H.js → migrate-Cz7VqQNj.js} +14 -14
  23. package/dist/{pipeline-COr4sB6U.js → pipeline-ChRDxU9b.js} +4 -78
  24. package/dist/{print-skill-D0j2D6tw.js → print-skill-BPePCjy4.js} +5 -5
  25. package/dist/{promote-UmKZySRx.js → promote-C54bfsg3.js} +12 -12
  26. package/dist/{publish-BVnG2UOU.js → publish-NUNSIKri.js} +12 -12
  27. package/dist/{push-hHtVTZ1m.js → push-BjEpY9-h.js} +12 -12
  28. package/dist/{query-CbGfXmKu.js → query-CXjrBFow.js} +3 -3
  29. package/dist/{resource-m6yz1jwE.js → resource-CM2bIB5v.js} +7 -7
  30. package/dist/{run-BTLaOoKK.js → run-CAIDPbwe.js} +2 -2
  31. package/dist/{scan-BfoeYW1v.js → scan-BrikLKx5.js} +1 -1
  32. package/dist/{skills-HlIKA9xR.js → skills-BwXcAVIf.js} +1 -1
  33. package/dist/{skills-C4Yzl64N.js → skills-_TULXe09.js} +4 -4
  34. package/dist/{telemetry-CLi7mjDP.js → telemetry-CpIXSAbQ.js} +1 -1
  35. package/dist/{update-CxP4fmMe.js → update-BdcpwRu_.js} +1 -1
  36. package/dist/{upgrade-Cbh-7q_o.js → upgrade-BNPbzr5V.js} +3 -3
  37. package/package.json +2 -1
  38. /package/dist/{asc-products-YQ6Oc6YO.js → asc-products-C6MvSy8H.js} +0 -0
  39. /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-CLi7mjDP.js";
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-CxP4fmMe.js";
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-CmJMNVVz.js";
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-HlIKA9xR.js";
7
+ import { n as ensureSkillsCurrent } from "./skills-BwXcAVIf.js";
8
8
  import "./spawn-DSoTXy_j.js";
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";
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-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
- 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
- import { t as generateStoreKit } from "./storekit-Ddvs4Ynw.js";
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";
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-CLi7mjDP.js";
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-CLi7mjDP.js";
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-CxP4fmMe.js";
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-CmJMNVVz.js";
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-HlIKA9xR.js";
7
+ import "./skills-BwXcAVIf.js";
8
8
  import "./spawn-DSoTXy_j.js";
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";
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-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";
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-CLi7mjDP.js";
2
- import { n as ApiError } from "./command-CmJMNVVz.js";
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-BrTxQ7ui.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-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-CLi7mjDP.js";
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-HlIKA9xR.js";
4
+ import { i as loadBundledSkill } from "./skills-BwXcAVIf.js";
5
5
  import "./spawn-DSoTXy_j.js";
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";
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-CLi7mjDP.js";
1
+ import { k as VERSION } from "./telemetry-CpIXSAbQ.js";
2
2
  import "./json-C3hPIMkI.js";
3
- import "./update-CxP4fmMe.js";
3
+ import "./update-BdcpwRu_.js";
4
4
  import "./token-DHRH8cxi.js";
5
- import { n as ApiError, t as defineCommand } from "./command-CmJMNVVz.js";
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-HlIKA9xR.js";
7
+ import "./skills-BwXcAVIf.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import "./login-B7fSpJKc.js";
10
- import "./scan-BfoeYW1v.js";
11
- import "./hosted-CbNJSJAC.js";
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-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";
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-CLi7mjDP.js";
1
+ import "./telemetry-CpIXSAbQ.js";
2
2
  import "./json-C3hPIMkI.js";
3
- import "./update-CxP4fmMe.js";
3
+ import "./update-BdcpwRu_.js";
4
4
  import "./token-DHRH8cxi.js";
5
- import { t as defineCommand } from "./command-CmJMNVVz.js";
5
+ import { t as defineCommand } from "./command-B12qooZb.js";
6
6
  import "./ui-C4ncRJqd.js";
7
- import "./skills-HlIKA9xR.js";
7
+ import "./skills-BwXcAVIf.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import "./login-B7fSpJKc.js";
10
- import "./scan-BfoeYW1v.js";
11
- import "./hosted-CbNJSJAC.js";
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-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";
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-CLi7mjDP.js";
1
+ import "./telemetry-CpIXSAbQ.js";
2
2
  import "./json-C3hPIMkI.js";
3
- import "./update-CxP4fmMe.js";
3
+ import "./update-BdcpwRu_.js";
4
4
  import "./token-DHRH8cxi.js";
5
- import { t as defineCommand } from "./command-CmJMNVVz.js";
5
+ import { t as defineCommand } from "./command-B12qooZb.js";
6
6
  import "./ui-C4ncRJqd.js";
7
- import "./skills-HlIKA9xR.js";
7
+ import "./skills-BwXcAVIf.js";
8
8
  import "./spawn-DSoTXy_j.js";
9
- import "./login-B7fSpJKc.js";
10
- import "./scan-BfoeYW1v.js";
11
- import "./hosted-CbNJSJAC.js";
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-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";
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-CLi7mjDP.js";
1
+ import "./telemetry-CpIXSAbQ.js";
2
2
  import "./json-C3hPIMkI.js";
3
- import "./update-CxP4fmMe.js";
3
+ import "./update-BdcpwRu_.js";
4
4
  import "./token-DHRH8cxi.js";
5
- import { t as defineCommand } from "./command-CmJMNVVz.js";
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-CLi7mjDP.js";
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-CxP4fmMe.js";
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-CmJMNVVz.js";
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-BfoeYW1v.js";
8
- import { t as detectExisting } from "./existing-p-hX-Nxc.js";
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-DO11eXrR.js";
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-Ddvs4Ynw.js";
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-CLi7mjDP.js";
2
- import { s as packagedDir } from "./skills-HlIKA9xR.js";
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-CLi7mjDP.js";
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-CLi7mjDP.js";
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-CLi7mjDP.js";
1
+ import "./telemetry-CpIXSAbQ.js";
2
2
  import "./json-C3hPIMkI.js";
3
- import "./update-CxP4fmMe.js";
3
+ import "./update-BdcpwRu_.js";
4
4
  import "./token-DHRH8cxi.js";
5
- import { t as defineCommand } from "./command-CmJMNVVz.js";
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-HlIKA9xR.js";
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
 
@@ -5,7 +5,7 @@ import { homedir } from "node:os";
5
5
  import { join } from "node:path";
6
6
 
7
7
  //#region package.json
8
- var version = "1.1.1";
8
+ var version = "1.2.0";
9
9
 
10
10
  //#endregion
11
11
  //#region src/constants.ts
@@ -1,4 +1,4 @@
1
- import { k as VERSION, p as getUpdateCheck, v as setUpdateCheck } from "./telemetry-CLi7mjDP.js";
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-CLi7mjDP.js";
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-CxP4fmMe.js";
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-CmJMNVVz.js";
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.1.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",