@superwall/cli 2.3.1 → 2.5.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 +10 -0
- package/dist/{apple-z2qjOzIZ.js → apple-Dyr7OFBx.js} +17 -16
- package/dist/approve-Czs1-JO9.js +186 -0
- package/dist/{assets-DXXegdDt.js → assets-BrB9jQPQ.js} +3 -3
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{billing-B8tOjsnY.js → billing-D5qqIlVb.js} +3 -3
- package/dist/{bind-Bx9K6LwP.js → bind-B3eEcRyp.js} +4 -4
- package/dist/browser-Bp3yRKlU.js +36 -0
- package/dist/{build-Bu2kkzRe.js → build-DD9pSwHX.js} +10 -8
- package/dist/{client-DOgk9gAS.js → client-AI9H4GGB.js} +3 -3
- package/dist/{config-BO1Y87kV.js → config-CGcG7GOt.js} +9 -1
- package/dist/{create-B03MAuPe.js → create-B4m-IKlr.js} +8 -8
- package/dist/create-CJljlkJK.js +20 -0
- package/dist/{create-DzC_89gq.js → create-ChfgWpiM.js} +41 -69
- package/dist/{doctor-BGZSKY_B.js → doctor-XtXW6tKE.js} +6 -6
- package/dist/download-2Zu2I_Og.js +58 -0
- package/dist/{drivers-DqLgQxkC.js → drivers-CMEL13gp.js} +4 -4
- package/dist/entry.js +69 -33
- package/dist/{environment-i8BhiBDB.js → environment-BWT2S4qC.js} +9 -2
- package/dist/{existing-BPOG5zLO.js → existing-b0GxFcnc.js} +2 -2
- package/dist/{session-BDLQUJyV.js → git-D7AVdugb.js} +97 -335
- package/dist/held-CX7Zf8u-.js +17 -0
- package/dist/{held-C56PYMRH.js → held-D3PUNky2.js} +7 -7
- package/dist/install-CVUXsx8c.js +103 -0
- package/dist/{integrate-DZ4Qvoch.js → integrate-qvKd9pVW.js} +29 -27
- package/dist/{log-NVhVe_oe.js → log-C0MDCfA2.js} +1 -1
- package/dist/{login-p9GVEKzD.js → login-COmGHrU5.js} +2 -1
- package/dist/login-ClnJi1Ea.js +17 -0
- package/dist/{login-ONZdK8vN.js → login-PMoXUGqq.js} +9 -42
- package/dist/{lookup-flTi0at0.js → lookup-gjcKIZvh.js} +4 -3
- package/dist/{migrate-DnXpbhL1.js → migrate-SkkLLdmr.js} +33 -28
- package/dist/{migration-DJ1uNKhk.js → migration-DS44-3Zr.js} +10 -10
- package/dist/{notification-url-CCDeS5S-.js → notification-url-BjQPLf4-.js} +4 -4
- package/dist/{open-QdsZ_N47.js → open-DQpm2yVs.js} +2 -2
- package/dist/{org-BiFPjoHD.js → org-C04eAO-j.js} +3 -2
- package/dist/organization-BOECL3vZ.js +39 -0
- package/dist/orgs-D6Kk96mG.js +81 -0
- package/dist/{paths-yRgm5Jpa.js → paths-REb-GrbX.js} +2 -2
- package/dist/{playbook-B-pRKNa4.js → playbook-Du4Oydbf.js} +11 -11
- package/dist/{products-DH_fK9tY.js → products-Cqq59DBQ.js} +1 -1
- package/dist/project-CP6hiHra.js +47 -0
- package/dist/{promote-Djzk4C81.js → promote-Dm2_b1WK.js} +24 -19
- package/dist/pull-DsdOoG-D.js +36 -0
- package/dist/{pull-BLA9XwHj.js → pull-F6pvO4To.js} +9 -28
- package/dist/pull-zYAbqo9n.js +106 -0
- package/dist/{push-gSBxGDik.js → push-BIFLhAiO.js} +9 -7
- package/dist/push-CJVfvFZq.js +29 -0
- package/dist/push-D_l9KJZN.js +290 -0
- package/dist/push-SVzv7fzE.js +22 -0
- package/dist/{registry-D3xmWk9p.js → registry-DIJB0mJa.js} +890 -158
- package/dist/resolve--GsHj0Q1.js +171 -0
- package/dist/{resources-BTnczJCA.js → resources-BaP3p_LY.js} +3 -80
- package/dist/{run-C1SoizcJ.js → run-C5OPwhvS.js} +2 -2
- package/dist/run-CgLmD2vR.js +1345 -0
- package/dist/{scan-Dwk_lT5q.js → scan-Bj5y0zTZ.js} +1 -1
- package/dist/scan-v_WTE722.js +4 -0
- package/dist/{scope-Db7blD-l.js → scope-Bp_zwJOo.js} +6 -5
- package/dist/scope-CCb_7UvN.js +89 -0
- package/dist/sdk-TvT0p_nO.js +71 -0
- package/dist/selection-BltBpyp5.js +179 -0
- package/dist/series-TAixFBWW.js +685 -0
- package/dist/{server-Cb2N75JL.js → server-CdVIboQn.js} +10 -8
- package/dist/server-CvJVusw3.js +29 -0
- package/dist/session-B8JNXkwN.js +6 -0
- package/dist/session-D3fgXQBt.js +219 -0
- package/dist/{session-CnDJp_HO.js → session-Ywim-P8M.js} +1 -1
- package/dist/{setup-BLahHpgy.js → setup-zzjtTy8k.js} +9 -8
- package/dist/skills/index.json +5 -0
- package/dist/skills/superwall/SKILL.md +48 -30
- package/dist/skills/superwall/references/api.md +3 -2
- package/dist/skills/superwall-editor/SKILL.md +7 -5
- package/dist/skills/superwall-framework/SKILL.md +11 -8
- package/dist/skills/superwall-framework/references/onboarding-state.md +21 -14
- package/dist/skills/superwall-workspaces/SKILL.md +313 -0
- package/dist/skills/superwall-workspaces/references/cli.md +174 -0
- package/dist/skills/superwall-workspaces/references/slots.md +103 -0
- package/dist/{skills-zebMTZyr.js → skills-2qYaUXGE.js} +15 -9
- package/dist/skills-8um2fBPS.js +14 -0
- package/dist/{source-push-DxuJuwEf.js → source-push-kAep4gPe.js} +6 -5
- package/dist/{spinner-BN3U1CVB.js → spinner-BANVLncC.js} +17 -5
- package/dist/starter-CiLrp1cN.js +190 -0
- package/dist/status-CoYMK7QL.js +139 -0
- package/dist/{storage-VagEaaJC.js → storage-DzP22xKn.js} +1 -1
- package/dist/storekit-D5eopLM0.js +17 -0
- package/dist/{storekit-CoOf4Rvh.js → storekit-n1x0bWkQ.js} +4 -4
- package/dist/{telemetry-CM0BDwCK.js → telemetry-CXN6f-ZX.js} +2 -2
- package/dist/{token-lUUOkTJA.js → token-FmeHywYt.js} +1 -1
- package/dist/tools-skills/superwall/SKILL.md +49 -31
- package/dist/tools-skills/superwall/references/api.md +3 -2
- package/dist/tools-skills/superwall-editor/SKILL.md +7 -5
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +575 -75
- package/dist/try-BWbzgelb.js +120 -0
- package/dist/{selection-u2KiKu_d.js → types-JdxmnCko.js} +1 -178
- package/dist/upgrade-Bk5boOgW.js +206 -0
- package/dist/upgrade-CoWCEnoi.js +7 -0
- package/package.json +5 -3
- package/prompts/commandments.xml +2 -0
- package/dist/create-BdZS_T68.js +0 -19
- package/dist/held-DSNUY-NZ.js +0 -16
- package/dist/login-Blrkm6oi.js +0 -16
- package/dist/push-BkMgOT6X.js +0 -24
- package/dist/scan-Kp-MAutK.js +0 -4
- package/dist/server-psYghr9K.js +0 -24
- package/dist/session-CehHJWZk.js +0 -6
- package/dist/skills-DDV4zcLR.js +0 -14
- package/dist/storekit-BcBb2jXB.js +0 -16
- package/dist/upgrade-CpTJv_M7.js +0 -7
- package/dist/upgrade-DZbKb67W.js +0 -117
- /package/dist/{client-BZ1UbpXz.js → client-BJQXl62Q.js} +0 -0
- /package/dist/{devtools-pBl_vt03.js → devtools-ByZ6XYnn.js} +0 -0
- /package/dist/{input-vi0bou04.js → input-MDd67UIp.js} +0 -0
- /package/dist/{reports-CwwKLUh0.js → reports-CuhB1_ub.js} +0 -0
- /package/dist/{screenshot-file-tVBfUEIi.js → screenshot-file-XAS0Xy0e.js} +0 -0
- /package/dist/{storage-gRyQetN9.d.ts → storage-BjQCiTuz.d.ts} +0 -0
- /package/dist/{timing-BVxPrYq3.js → timing-Ca0TXY-A.js} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { execFile } from "node:child_process";
|
|
2
|
+
import * as fs from "node:fs";
|
|
3
|
+
import * as os$1 from "node:os";
|
|
4
|
+
import * as path from "node:path";
|
|
5
|
+
import { promisify } from "node:util";
|
|
6
|
+
import { gunzipSync } from "node:zlib";
|
|
7
|
+
|
|
8
|
+
//#region src/core/repo/download.ts
|
|
9
|
+
const run = promisify(execFile);
|
|
10
|
+
const PUBLIC_REPO = process.env.SUPERWALL_EXAMPLES_REPO ?? "superwall/superwall";
|
|
11
|
+
const PUBLIC_REF = process.env.SUPERWALL_EXAMPLES_REF ?? "main";
|
|
12
|
+
var RepoDownloadError = class extends Error {};
|
|
13
|
+
const DOWNLOAD_TIMEOUT_MS = 12e4;
|
|
14
|
+
async function downloadRepoDir(dir, target, notFound, fetchImpl = fetch) {
|
|
15
|
+
const signal = AbortSignal.timeout(DOWNLOAD_TIMEOUT_MS);
|
|
16
|
+
let response;
|
|
17
|
+
let bytes;
|
|
18
|
+
try {
|
|
19
|
+
response = await fetchImpl(`https://codeload.github.com/${PUBLIC_REPO}/tar.gz/refs/heads/${PUBLIC_REF}`, { signal });
|
|
20
|
+
if (!response.ok) throw new RepoDownloadError(`Could not download github.com/${PUBLIC_REPO} (HTTP ${response.status}). Check your network, then try again.`);
|
|
21
|
+
bytes = await response.arrayBuffer();
|
|
22
|
+
} catch (error) {
|
|
23
|
+
if (error instanceof RepoDownloadError) throw error;
|
|
24
|
+
throw new RepoDownloadError(`Could not reach github.com/${PUBLIC_REPO}. Check your network, then try again.`);
|
|
25
|
+
}
|
|
26
|
+
let archive;
|
|
27
|
+
try {
|
|
28
|
+
archive = gunzipSync(Buffer.from(bytes));
|
|
29
|
+
} catch {
|
|
30
|
+
throw new RepoDownloadError(`The download of github.com/${PUBLIC_REPO} was damaged. Try again.`);
|
|
31
|
+
}
|
|
32
|
+
const stage = fs.mkdtempSync(path.join(os$1.tmpdir(), "superwall-download-"));
|
|
33
|
+
const tarball = path.join(stage, "repo.tar");
|
|
34
|
+
fs.writeFileSync(tarball, archive);
|
|
35
|
+
const prefix = `${PUBLIC_REPO.split("/")[1]}-${PUBLIC_REF.replace(/\//g, "-")}`;
|
|
36
|
+
fs.mkdirSync(target, { recursive: true });
|
|
37
|
+
try {
|
|
38
|
+
await run("tar", [
|
|
39
|
+
"-xf",
|
|
40
|
+
tarball,
|
|
41
|
+
"-C",
|
|
42
|
+
target,
|
|
43
|
+
"--strip-components",
|
|
44
|
+
String(dir.split("/").length + 1),
|
|
45
|
+
`${prefix}/${dir}`
|
|
46
|
+
]);
|
|
47
|
+
} catch {
|
|
48
|
+
throw new RepoDownloadError(notFound);
|
|
49
|
+
} finally {
|
|
50
|
+
fs.rmSync(stage, {
|
|
51
|
+
recursive: true,
|
|
52
|
+
force: true
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
export { downloadRepoDir as i, PUBLIC_REPO as n, RepoDownloadError as r, PUBLIC_REF as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as getOAuthAccessToken } from "./token-
|
|
2
|
-
import { t as API_HOST,
|
|
3
|
-
import { n as readSession } from "./storage-
|
|
1
|
+
import { t as getOAuthAccessToken } from "./token-FmeHywYt.js";
|
|
2
|
+
import { t as API_HOST, x as VERSION } from "./environment-BWT2S4qC.js";
|
|
3
|
+
import { n as readSession } from "./storage-DzP22xKn.js";
|
|
4
4
|
import { n as readVersion, r as spawnStream, t as onPath } from "./spawn-DmmmHIP-.js";
|
|
5
|
-
import { basename, join } from "node:path";
|
|
6
5
|
import { tmpdir } from "node:os";
|
|
6
|
+
import { basename, join } from "node:path";
|
|
7
7
|
import { readFile, rm } from "node:fs/promises";
|
|
8
8
|
import { query } from "@anthropic-ai/claude-agent-sdk";
|
|
9
9
|
|
package/dist/entry.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import { n as __require, r as __toESM, t as __commonJS } from "./chunk-DQxbwPpZ.js";
|
|
2
|
-
import "./token-
|
|
2
|
+
import "./token-FmeHywYt.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-
|
|
8
|
-
import "./config-
|
|
9
|
-
import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-
|
|
4
|
+
import { T as isNonInteractive, s as CHANNEL, x as VERSION } from "./environment-BWT2S4qC.js";
|
|
5
|
+
import "./storage-DzP22xKn.js";
|
|
6
|
+
import { i as superwallApi } from "./client-AI9H4GGB.js";
|
|
7
|
+
import { O as useAscRefresh } from "./held-D3PUNky2.js";
|
|
8
|
+
import "./config-CGcG7GOt.js";
|
|
9
|
+
import { n as maybeShowTelemetryNotice, r as track, t as flushTelemetry } from "./telemetry-CXN6f-ZX.js";
|
|
10
10
|
import "./spawn-DmmmHIP-.js";
|
|
11
|
-
import {
|
|
12
|
-
import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-
|
|
11
|
+
import { a as printAutoUpdate, i as maybeNotifyUpdate, l as selectAutoUpdate, n as isGlobalInstall, o as recordAutoUpdate, s as refreshUpdateCheck, t as flushUpdateCheck } from "./upgrade-Bk5boOgW.js";
|
|
12
|
+
import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-BANVLncC.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
|
-
import { n as styleMarkdown, r as wrapReportLine } from "./log-
|
|
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 "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
15
|
+
import { n as styleMarkdown, r as wrapReportLine } from "./log-C0MDCfA2.js";
|
|
16
|
+
import { t as scanProject } from "./scan-Bj5y0zTZ.js";
|
|
17
|
+
import { t as detectExisting } from "./existing-b0GxFcnc.js";
|
|
18
|
+
import { n as SUPERWALL_HOME, r as expandHome } from "./paths-REb-GrbX.js";
|
|
19
|
+
import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-DIJB0mJa.js";
|
|
20
|
+
import "./session-Ywim-P8M.js";
|
|
21
|
+
import "./orgs-D6Kk96mG.js";
|
|
22
|
+
import "./resources-BaP3p_LY.js";
|
|
23
|
+
import "./org-C04eAO-j.js";
|
|
24
|
+
import "./lookup-gjcKIZvh.js";
|
|
25
|
+
import "./scope-Bp_zwJOo.js";
|
|
26
|
+
import "./client-BJQXl62Q.js";
|
|
27
|
+
import "./products-Cqq59DBQ.js";
|
|
28
|
+
import "./input-MDd67UIp.js";
|
|
29
|
+
import "./timing-Ca0TXY-A.js";
|
|
30
|
+
import "./notification-url-BjQPLf4-.js";
|
|
31
|
+
import "./bind-B3eEcRyp.js";
|
|
31
32
|
import { spawn } from "node:child_process";
|
|
32
33
|
import * as fs from "node:fs";
|
|
33
34
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
35
|
+
import os, { tmpdir } from "node:os";
|
|
34
36
|
import * as path from "node:path";
|
|
35
37
|
import { join, resolve } from "node:path";
|
|
36
38
|
import pc from "picocolors";
|
|
@@ -38,7 +40,6 @@ import { PassThrough, Stream } from "node:stream";
|
|
|
38
40
|
import process$1, { cwd, env } from "node:process";
|
|
39
41
|
import ansiEscapes from "ansi-escapes";
|
|
40
42
|
import wrapAnsi from "wrap-ansi";
|
|
41
|
-
import os from "node:os";
|
|
42
43
|
import tty from "node:tty";
|
|
43
44
|
import { EventEmitter } from "node:events";
|
|
44
45
|
import { Buffer } from "node:buffer";
|
|
@@ -22096,7 +22097,7 @@ var styles_default = styles$2;
|
|
|
22096
22097
|
//#endregion
|
|
22097
22098
|
//#region ../../node_modules/.bun/ink@5.2.1+95f74e15225f916f/node_modules/ink/build/reconciler.js
|
|
22098
22099
|
if (process$1.env["DEV"] === "true") try {
|
|
22099
|
-
await import("./devtools-
|
|
22100
|
+
await import("./devtools-ByZ6XYnn.js");
|
|
22100
22101
|
} catch (error) {
|
|
22101
22102
|
if (error.code === "ERR_MODULE_NOT_FOUND") console.warn(`
|
|
22102
22103
|
The environment variable DEV is set to true, so Ink tried to import \`react-devtools-core\`,
|
|
@@ -27718,6 +27719,42 @@ function startAscRefresh(spawn$1 = spawn) {
|
|
|
27718
27719
|
return;
|
|
27719
27720
|
}
|
|
27720
27721
|
}
|
|
27722
|
+
function startAutoUpdate(version, spawn$1 = spawn, isGlobal = isGlobalInstall) {
|
|
27723
|
+
const entry = process.argv[1];
|
|
27724
|
+
if (!entry) return false;
|
|
27725
|
+
recordAutoUpdate(version);
|
|
27726
|
+
if (!isGlobal()) return false;
|
|
27727
|
+
try {
|
|
27728
|
+
const child = spawn$1(process.execPath, [
|
|
27729
|
+
entry,
|
|
27730
|
+
"upgrade",
|
|
27731
|
+
"--json"
|
|
27732
|
+
], {
|
|
27733
|
+
cwd: tmpdir(),
|
|
27734
|
+
detached: true,
|
|
27735
|
+
stdio: "ignore",
|
|
27736
|
+
env: {
|
|
27737
|
+
...process.env,
|
|
27738
|
+
SW_AUTO_UPDATE: version
|
|
27739
|
+
}
|
|
27740
|
+
});
|
|
27741
|
+
child.on("error", () => {});
|
|
27742
|
+
child.unref();
|
|
27743
|
+
return true;
|
|
27744
|
+
} catch {
|
|
27745
|
+
return false;
|
|
27746
|
+
}
|
|
27747
|
+
}
|
|
27748
|
+
function finishTerminal(stdout, mode, command, update, start$1 = startAutoUpdate) {
|
|
27749
|
+
refreshUpdateCheck();
|
|
27750
|
+
if (command === "upgrade") return;
|
|
27751
|
+
const version = update ? selectAutoUpdate() : null;
|
|
27752
|
+
if (version && start$1(version)) {
|
|
27753
|
+
if (mode !== "json") printAutoUpdate(stdout, version);
|
|
27754
|
+
return;
|
|
27755
|
+
}
|
|
27756
|
+
if (mode !== "json") maybeNotifyUpdate(stdout);
|
|
27757
|
+
}
|
|
27721
27758
|
const terminalHost = {
|
|
27722
27759
|
api: superwallApi,
|
|
27723
27760
|
renderer: (mode) => selectRenderer({ mode }),
|
|
@@ -27733,11 +27770,7 @@ const terminalHost = {
|
|
|
27733
27770
|
starting: (ui, mode) => {
|
|
27734
27771
|
if (mode === "rich") maybeShowTelemetryNotice(ui);
|
|
27735
27772
|
},
|
|
27736
|
-
finishing: (stdout, mode, command) =>
|
|
27737
|
-
if (mode === "json") return;
|
|
27738
|
-
refreshUpdateCheck();
|
|
27739
|
-
if (command !== "upgrade") maybeNotifyUpdate(stdout);
|
|
27740
|
-
},
|
|
27773
|
+
finishing: (stdout, mode, command, update) => finishTerminal(stdout, mode, command, update),
|
|
27741
27774
|
fail: () => {
|
|
27742
27775
|
process.exitCode = 1;
|
|
27743
27776
|
},
|
|
@@ -27942,12 +27975,14 @@ function takeGlobals(tokens) {
|
|
|
27942
27975
|
const globals = {
|
|
27943
27976
|
json: false,
|
|
27944
27977
|
interactive: true,
|
|
27978
|
+
update: true,
|
|
27945
27979
|
help: false,
|
|
27946
27980
|
rest: []
|
|
27947
27981
|
};
|
|
27948
27982
|
for (const token of tokens) if (token === "--json") globals.json = true;
|
|
27949
27983
|
else if (token === "--no-interactive") globals.interactive = false;
|
|
27950
27984
|
else if (token === "--interactive") globals.interactive = true;
|
|
27985
|
+
else if (token === "--no-update") globals.update = false;
|
|
27951
27986
|
else if (token === "--help" || token === "-h") globals.help = true;
|
|
27952
27987
|
else globals.rest.push(token);
|
|
27953
27988
|
return globals;
|
|
@@ -28053,7 +28088,8 @@ function resolveCommand(command, rest, globals) {
|
|
|
28053
28088
|
words: parsed.positionals,
|
|
28054
28089
|
flags: parsed.values,
|
|
28055
28090
|
json: globals.json,
|
|
28056
|
-
interactive: globals.interactive
|
|
28091
|
+
interactive: globals.interactive,
|
|
28092
|
+
update: globals.update
|
|
28057
28093
|
};
|
|
28058
28094
|
if (command.kind === "command") command.validate(input);
|
|
28059
28095
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "2.
|
|
2
|
+
var version = "2.5.0";
|
|
3
3
|
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/environment.ts
|
|
@@ -19,6 +19,7 @@ const AUTH_HOST = () => resolveEnv("SUPERWALL_AUTH_HOST") ?? "https://auth.super
|
|
|
19
19
|
const ASSET_HOST = () => resolveEnv("SUPERWALL_ASSET_HOST") ?? "https://user-content.superwalleditor.com/user-content/hl";
|
|
20
20
|
const API_HOST_OVERRIDE = () => resolveEnv("SUPERWALL_API_HOST");
|
|
21
21
|
const API_HOST = () => API_HOST_OVERRIDE() ?? "https://api.superwall.com";
|
|
22
|
+
const DASHBOARD_ORIGIN_OVERRIDE = () => resolveEnv("SUPERWALL_DASHBOARD_ORIGIN");
|
|
22
23
|
const CLI_CLIENT_ID = () => resolveEnv("SUPERWALL_CLI_CLIENT_ID") ?? "client_01KWEWM154D2T28NZAS02B8MWT";
|
|
23
24
|
const OAUTH_SCOPE = "openid profile email offline_access";
|
|
24
25
|
const TELEMETRY_HOST = () => resolveEnv("SUPERWALL_TELEMETRY_HOST") ?? "https://us.i.posthog.com";
|
|
@@ -66,6 +67,12 @@ function isNonInteractive() {
|
|
|
66
67
|
return !process.stdout.isTTY || !process.stdin.isTTY || process.env.CI === "true";
|
|
67
68
|
}
|
|
68
69
|
const RUNNING_VIA_NPX = () => process.argv[1]?.includes("_npx") ?? false;
|
|
70
|
+
const isOn = (name) => {
|
|
71
|
+
const value = resolveEnv(name)?.toLowerCase();
|
|
72
|
+
return value !== void 0 && value !== "0" && value !== "false";
|
|
73
|
+
};
|
|
74
|
+
const AUTO_UPDATE = () => !isOn("SUPERWALL_NO_UPDATE") && !isOn("CI") && !RUNNING_VIA_NPX();
|
|
75
|
+
const AUTO_UPDATE_TARGET = () => resolveEnv("SW_AUTO_UPDATE");
|
|
69
76
|
|
|
70
77
|
//#endregion
|
|
71
|
-
export {
|
|
78
|
+
export { appleCredentialsFromEnv as C, resolveEnv as E, apiKeyFromEnv as S, isNonInteractive as T, RUNNING_VIA_NPX as _, AUTO_UPDATE as a, USER_AGENT as b, CHANNELS as c, DASHBOARD_URL as d, ENV_API_KEY as f, OAUTH_SCOPE as g, Integration as h, AUTH_HOST as i, CLI_CLIENT_ID as l, ENV_APPLE_PASSWORD as m, API_HOST_OVERRIDE as n, AUTO_UPDATE_TARGET as o, ENV_APPLE_ID as p, ASSET_HOST as r, CHANNEL as s, API_HOST as t, DASHBOARD_ORIGIN_OVERRIDE as u, TELEMETRY_HOST as v, detectAgent as w, VERSION as x, TELEMETRY_KEY as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as readPackageJson, r as allDeps } from "./scan-
|
|
1
|
+
import { h as Integration } from "./environment-BWT2S4qC.js";
|
|
2
|
+
import { i as readPackageJson, r as allDeps } from "./scan-Bj5y0zTZ.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
5
|
|