@superwall/cli 2.5.0 → 2.5.2
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 +7 -0
- package/dist/{apple-Dyr7OFBx.js → apple-D2z3tALE.js} +14 -14
- package/dist/{approve-Czs1-JO9.js → approve-I-lvTanp.js} +35 -28
- package/dist/{assets-BrB9jQPQ.js → assets-oo93EFou.js} +3 -3
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{session-D3fgXQBt.js → base-Cft9NZfU.js} +35 -35
- package/dist/{billing-D5qqIlVb.js → billing-Bo1UEKqV.js} +3 -3
- package/dist/{bind-B3eEcRyp.js → bind-BvScWziR.js} +4 -4
- package/dist/{build-DD9pSwHX.js → build-Co487gha.js} +11 -9
- package/dist/{client-AI9H4GGB.js → client-Tp6iD66_.js} +55 -5
- package/dist/create-CHIPz5vb.js +20 -0
- package/dist/{create-ChfgWpiM.js → create-G3HuOHZ4.js} +31 -31
- package/dist/{create-B4m-IKlr.js → create-uA3nrMIa.js} +6 -6
- package/dist/design-lint-CiFc78aM.js +158 -0
- package/dist/{doctor-XtXW6tKE.js → doctor-CHF9aNFc.js} +6 -6
- package/dist/{drivers-CMEL13gp.js → drivers-YZEcBiSV.js} +3 -3
- package/dist/entry.js +20 -20
- package/dist/{environment-BWT2S4qC.js → environment-EU7Mrk7j.js} +3 -3
- package/dist/{existing-b0GxFcnc.js → existing-DV_6NLfW.js} +2 -2
- package/dist/{selection-BltBpyp5.js → framework-b-Yf8sP1.js} +50 -50
- package/dist/held-Dd19AduK.js +17 -0
- package/dist/{held-D3PUNky2.js → held-L0vz0_hA.js} +6 -6
- package/dist/install-CXfLcLhU.js +109 -0
- package/dist/{integrate-qvKd9pVW.js → integrate-DS2YGLsM.js} +23 -23
- package/dist/{types-JdxmnCko.js → lock-DgSx-p8Y.js} +79 -79
- package/dist/login-C0BjJmFy.js +17 -0
- package/dist/{login-PMoXUGqq.js → login-Ca6FhI6R.js} +6 -6
- package/dist/{login-COmGHrU5.js → login-DoMmU3Bq.js} +1 -1
- package/dist/{lookup-gjcKIZvh.js → lookup-DhMLZmdW.js} +3 -3
- package/dist/{migrate-SkkLLdmr.js → migrate-CoQWqzhJ.js} +29 -29
- package/dist/{migration-DS44-3Zr.js → migration-C22iQzAW.js} +29 -11
- package/dist/{notification-url-BjQPLf4-.js → notification-url-CqnXE9yB.js} +2 -2
- package/dist/{open-DQpm2yVs.js → open-DriuY3di.js} +2 -2
- package/dist/{org-C04eAO-j.js → org-D7LQrg3k.js} +3 -3
- package/dist/{organization-BOECL3vZ.js → organization-DDidaGRK.js} +8 -8
- package/dist/{orgs-D6Kk96mG.js → orgs-CYXjVdxM.js} +1 -1
- package/dist/{paths-REb-GrbX.js → paths-Bf3othB-.js} +1 -1
- package/dist/{playbook-Du4Oydbf.js → playbook-K7vmAUsu.js} +10 -10
- package/dist/{project-CP6hiHra.js → project-NoMtbMyl.js} +9 -9
- package/dist/{promote-Dm2_b1WK.js → promote-DXxxj4BU.js} +23 -22
- package/dist/pull-Bfa3_SBt.js +106 -0
- package/dist/pull-DGrlBSAG.js +36 -0
- package/dist/{pull-F6pvO4To.js → pull-DuFUkP7t.js} +8 -8
- package/dist/{push-D_l9KJZN.js → push-CrowxhpU.js} +54 -48
- package/dist/push-DPZdch2W.js +30 -0
- package/dist/push-DV-kJZdw.js +22 -0
- package/dist/{push-BIFLhAiO.js → push-Dk5x2xP3.js} +122 -22
- package/dist/{registry-DIJB0mJa.js → registry-HhZVRBqY.js} +178 -155
- package/dist/resolve-D3RBtfkI.js +242 -0
- package/dist/{resources-BaP3p_LY.js → resources-CkG6SCia.js} +2 -2
- package/dist/{run-C5OPwhvS.js → run-CL5ZnujW.js} +2 -2
- package/dist/{run-CgLmD2vR.js → run-Co8u_BkN.js} +93 -70
- package/dist/scan-BQmjhs3g.js +4 -0
- package/dist/{scan-Bj5y0zTZ.js → scan-DhmGH1rF.js} +1 -1
- package/dist/{scope-Bp_zwJOo.js → scope-D0XpYMn4.js} +5 -5
- package/dist/{scope-CCb_7UvN.js → scope-ehZ7L1nj.js} +25 -11
- package/dist/{sdk-TvT0p_nO.js → sdk-DEfQttek.js} +7 -7
- package/dist/{series-TAixFBWW.js → series-D2ZpZ8cx.js} +96 -63
- package/dist/server-4ZK_1Off.js +29 -0
- package/dist/{server-CdVIboQn.js → server-DamMN_ig.js} +9 -9
- package/dist/session-4F_YWSul.js +6 -0
- package/dist/{session-Ywim-P8M.js → session-G1uwJI8L.js} +1 -1
- package/dist/{setup-zzjtTy8k.js → setup-BFTSxEWU.js} +9 -9
- package/dist/skills/index.json +2 -2
- package/dist/skills/superwall/workflows/integrate/flutter.md +9 -7
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/SKILL.md +47 -32
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/references/cli.md +35 -29
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/references/slots.md +9 -9
- package/dist/{skills-2qYaUXGE.js → skills-CE4c9eHX.js} +4 -4
- package/dist/{skills-8um2fBPS.js → skills-ClEVgXUB.js} +8 -8
- package/dist/{git-D7AVdugb.js → source-BccdO4aL.js} +111 -102
- package/dist/{source-push-kAep4gPe.js → source-push-EyF02ekO.js} +43 -26
- package/dist/{spinner-BANVLncC.js → spinner-mWZnJCkN.js} +3 -3
- package/dist/{starter-CiLrp1cN.js → starter-BtUUQWhd.js} +38 -28
- package/dist/{status-CoYMK7QL.js → status-SAZxltzW.js} +42 -39
- package/dist/{storage-DzP22xKn.js → storage-R5-qDvHq.js} +1 -1
- package/dist/{storekit-n1x0bWkQ.js → storekit-CQHVFTOC.js} +3 -3
- package/dist/storekit-DK3xXKoY.js +17 -0
- package/dist/{telemetry-CXN6f-ZX.js → telemetry-B-uKuu49.js} +1 -1
- package/dist/{token-FmeHywYt.js → token-C2kzntVM.js} +1 -1
- package/dist/tools.d.ts +6 -1
- package/dist/tools.js +208 -130
- package/dist/{try-BWbzgelb.js → try-BrJJyXgq.js} +32 -32
- package/dist/{upgrade-CoWCEnoi.js → upgrade-g_Bd9oJe.js} +2 -2
- package/dist/{upgrade-Bk5boOgW.js → upgrade-zOXTIaAZ.js} +2 -2
- package/package.json +2 -2
- package/dist/create-CJljlkJK.js +0 -20
- package/dist/held-CX7Zf8u-.js +0 -17
- package/dist/install-CVUXsx8c.js +0 -103
- package/dist/login-ClnJi1Ea.js +0 -17
- package/dist/pull-DsdOoG-D.js +0 -36
- package/dist/pull-zYAbqo9n.js +0 -106
- package/dist/push-CJVfvFZq.js +0 -29
- package/dist/push-SVzv7fzE.js +0 -22
- package/dist/resolve--GsHj0Q1.js +0 -171
- package/dist/scan-v_WTE722.js +0 -4
- package/dist/server-CvJVusw3.js +0 -29
- package/dist/session-B8JNXkwN.js +0 -6
- package/dist/storekit-D5eopLM0.js +0 -17
- /package/dist/{download-2Zu2I_Og.js → download-DhGd4hOB.js} +0 -0
- /package/dist/{reports-CuhB1_ub.js → reports-HYVp169R.js} +0 -0
- /package/dist/{storage-BjQCiTuz.d.ts → storage-Bdz5AmqS.d.ts} +0 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import * as fs from "node:fs";
|
|
2
|
+
import * as path from "node:path";
|
|
3
|
+
|
|
4
|
+
//#region src/core/paywalls/project/design-lint.ts
|
|
5
|
+
const TOKENS_FILE = path.join("design", "tokens.css");
|
|
6
|
+
const SCANNED = /\.(css|tsx|ts|jsx|js)$/;
|
|
7
|
+
const SKIPPED_DIRS = new Set([
|
|
8
|
+
"node_modules",
|
|
9
|
+
".superwall",
|
|
10
|
+
"dist",
|
|
11
|
+
"public",
|
|
12
|
+
"assets"
|
|
13
|
+
]);
|
|
14
|
+
const COLOR = /#[0-9a-fA-F]{3,8}\b|rgba?\([^)]*\)|hsla?\([^)]*\)/g;
|
|
15
|
+
const LENGTH = /(?<![\w.#-])-?\d*\.?\d+(?:px|rem|em)\b/g;
|
|
16
|
+
const NUMBER = /(?<![\w.#%-])\d*\.?\d+(?![\w.%(])/g;
|
|
17
|
+
const PAINTS = /color|background|border|outline|fill|stroke|shadow|caret|accent|decoration|column-rule/;
|
|
18
|
+
const URL_VALUE = /url\([^)]*\)/gi;
|
|
19
|
+
const DECLARATION = /(?<![\w-])["']?([a-zA-Z][\w-]*)["']?\s*:\s*((?:[^;{},]|,(?!\s*["']?[a-zA-Z][\w-]*["']?\s*:))+)/g;
|
|
20
|
+
const PREFIXES = {
|
|
21
|
+
text: "--text-",
|
|
22
|
+
leading: "--leading-",
|
|
23
|
+
tracking: "--tracking-",
|
|
24
|
+
weight: "--weight-",
|
|
25
|
+
radius: "--radius",
|
|
26
|
+
space: "--space-"
|
|
27
|
+
};
|
|
28
|
+
const kebab = (name) => name.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
29
|
+
function categoryOf(property) {
|
|
30
|
+
if (property === "font-size") return "text";
|
|
31
|
+
if (property === "line-height") return "leading";
|
|
32
|
+
if (property === "letter-spacing") return "tracking";
|
|
33
|
+
if (property === "font-weight") return "weight";
|
|
34
|
+
if (property.includes("radius")) return "radius";
|
|
35
|
+
if (/^(padding|margin|gap|row-gap|column-gap)(-|$)/.test(property)) return "space";
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
function normalizeColor(literal) {
|
|
39
|
+
const value = literal.toLowerCase().trim().replace(/\s+/g, " ").replace(/\s*([(),/])\s*/g, "$1");
|
|
40
|
+
if (!value.startsWith("#")) return value;
|
|
41
|
+
const hex = value.slice(1);
|
|
42
|
+
const long = hex.length <= 4 ? [...hex].map((digit) => digit + digit).join("") : hex;
|
|
43
|
+
return `#${long.length === 8 && long.endsWith("ff") ? long.slice(0, 6) : long}`;
|
|
44
|
+
}
|
|
45
|
+
function normalizeLength(literal) {
|
|
46
|
+
const unit = literal.match(/(px|rem|em)$/)?.[1];
|
|
47
|
+
const amount = Number.parseFloat(literal);
|
|
48
|
+
if (unit === "rem") return `${amount * 16}px`;
|
|
49
|
+
return `${amount}${unit ?? ""}`;
|
|
50
|
+
}
|
|
51
|
+
function tokenLiteral(value) {
|
|
52
|
+
const trimmed = value.trim();
|
|
53
|
+
if (/^(#[0-9a-fA-F]{3,8}|rgba?\([^)]*\)|hsla?\([^)]*\))$/.test(trimmed)) return {
|
|
54
|
+
kind: "color",
|
|
55
|
+
value: normalizeColor(trimmed)
|
|
56
|
+
};
|
|
57
|
+
if (/^-?\d*\.?\d+(px|rem|em)$/.test(trimmed)) return {
|
|
58
|
+
kind: "length",
|
|
59
|
+
value: normalizeLength(trimmed)
|
|
60
|
+
};
|
|
61
|
+
if (/^\d*\.?\d+$/.test(trimmed)) return {
|
|
62
|
+
kind: "number",
|
|
63
|
+
value: String(Number(trimmed))
|
|
64
|
+
};
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
function readTokens(css) {
|
|
68
|
+
const index = {
|
|
69
|
+
colors: /* @__PURE__ */ new Map(),
|
|
70
|
+
values: /* @__PURE__ */ new Map()
|
|
71
|
+
};
|
|
72
|
+
for (const match of css.replace(/\/\*[\s\S]*?\*\//g, "").matchAll(/(--[\w-]+)\s*:\s*([^;}]+)/g)) {
|
|
73
|
+
const [, name, raw] = match;
|
|
74
|
+
if (!name || raw === void 0) continue;
|
|
75
|
+
const literal = tokenLiteral(raw);
|
|
76
|
+
if (!literal) continue;
|
|
77
|
+
const map = literal.kind === "color" ? index.colors : index.values;
|
|
78
|
+
const key = literal.kind === "color" ? literal.value : `${literal.kind}:${literal.value}`;
|
|
79
|
+
map.set(key, (map.get(key) ?? /* @__PURE__ */ new Set()).add(name));
|
|
80
|
+
}
|
|
81
|
+
return index;
|
|
82
|
+
}
|
|
83
|
+
function lintValue(index, property, value) {
|
|
84
|
+
const findings = [];
|
|
85
|
+
const painted = PAINTS.test(property) ? value.replace(URL_VALUE, " ") : "";
|
|
86
|
+
for (const [literal] of painted.matchAll(COLOR)) {
|
|
87
|
+
const tokens = index.colors.get(normalizeColor(literal));
|
|
88
|
+
if (tokens) findings.push({
|
|
89
|
+
literal,
|
|
90
|
+
tokens: [...tokens].sort()
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
const category = categoryOf(property);
|
|
94
|
+
if (!category) return findings;
|
|
95
|
+
const prefix = PREFIXES[category];
|
|
96
|
+
const unitless = category === "weight" || category === "leading";
|
|
97
|
+
const literals = [...value.replace(COLOR, " ").matchAll(LENGTH)].map(([literal]) => ({
|
|
98
|
+
literal,
|
|
99
|
+
key: `length:${normalizeLength(literal)}`
|
|
100
|
+
}));
|
|
101
|
+
if (unitless) for (const [literal] of value.replace(COLOR, " ").replace(LENGTH, " ").matchAll(NUMBER)) literals.push({
|
|
102
|
+
literal,
|
|
103
|
+
key: `number:${Number(literal)}`
|
|
104
|
+
});
|
|
105
|
+
for (const { literal, key } of literals) {
|
|
106
|
+
if (Number.parseFloat(literal) === 0) continue;
|
|
107
|
+
const tokens = [...index.values.get(key) ?? []].filter((name) => name.startsWith(prefix)).sort();
|
|
108
|
+
if (tokens.length > 0) findings.push({
|
|
109
|
+
literal,
|
|
110
|
+
tokens
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
return findings;
|
|
114
|
+
}
|
|
115
|
+
function lintSource(index, text) {
|
|
116
|
+
const findings = [];
|
|
117
|
+
const lines = text.replace(/\/\*[\s\S]*?\*\//g, (comment) => comment.replace(/[^\n]/g, " ")).split("\n");
|
|
118
|
+
for (const [index_, line] of lines.entries()) {
|
|
119
|
+
if (/^\s*\/\//.test(line)) continue;
|
|
120
|
+
for (const [, rawProperty, rawValue] of line.matchAll(DECLARATION)) {
|
|
121
|
+
if (!rawProperty || rawValue === void 0) continue;
|
|
122
|
+
for (const finding of lintValue(index, kebab(rawProperty), rawValue.replace(/["'`]/g, " "))) findings.push({
|
|
123
|
+
line: index_ + 1,
|
|
124
|
+
...finding
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return findings;
|
|
129
|
+
}
|
|
130
|
+
function walk(dir, into) {
|
|
131
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
132
|
+
for (const entry of entries) {
|
|
133
|
+
const full = path.join(dir, entry.name);
|
|
134
|
+
if (entry.isDirectory()) {
|
|
135
|
+
if (!SKIPPED_DIRS.has(entry.name)) walk(full, into);
|
|
136
|
+
} else if (SCANNED.test(entry.name)) into.push(full);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function lintDesignTokens(project, surfaces) {
|
|
140
|
+
const tokensFile = path.join(project.superwallDir, TOKENS_FILE);
|
|
141
|
+
if (!fs.existsSync(tokensFile)) return [];
|
|
142
|
+
const index = readTokens(fs.readFileSync(tokensFile, "utf8"));
|
|
143
|
+
if (index.colors.size === 0 && index.values.size === 0) return [];
|
|
144
|
+
const files = [];
|
|
145
|
+
for (const dir of [...surfaces.map((surface) => surface.dir), path.join(project.superwallDir, "components")]) if (fs.existsSync(dir)) walk(dir, files);
|
|
146
|
+
const configFiles = new Set(surfaces.map((surface) => surface.configFile));
|
|
147
|
+
return [...new Set(files)].filter((file) => !configFiles.has(file)).flatMap((file) => lintSource(index, fs.readFileSync(file, "utf8")).map((finding) => ({
|
|
148
|
+
file: path.relative(project.superwallDir, file),
|
|
149
|
+
...finding
|
|
150
|
+
})));
|
|
151
|
+
}
|
|
152
|
+
function formatTokenFinding(finding) {
|
|
153
|
+
const tokens = finding.tokens.map((token) => `var(${token})`).join(" or ");
|
|
154
|
+
return `${finding.file}:${finding.line} hard-codes ${finding.literal}, which the design system holds as ${tokens}. Use the token so a design-system change reaches it.`;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
//#endregion
|
|
158
|
+
export { lintDesignTokens as n, formatTokenFinding as t };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-C2kzntVM.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import { S as apiKeyFromEnv } from "./environment-
|
|
4
|
-
import { n as readSession } from "./storage-
|
|
3
|
+
import { S as apiKeyFromEnv } from "./environment-EU7Mrk7j.js";
|
|
4
|
+
import { n as readSession } from "./storage-R5-qDvHq.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-DhmGH1rF.js";
|
|
9
|
+
import { t as detectExisting } from "./existing-DV_6NLfW.js";
|
|
10
|
+
import { t as detectDrivers } from "./drivers-YZEcBiSV.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 { t as API_HOST, x as VERSION } from "./environment-
|
|
3
|
-
import { n as readSession } from "./storage-
|
|
1
|
+
import { t as getOAuthAccessToken } from "./token-C2kzntVM.js";
|
|
2
|
+
import { t as API_HOST, x as VERSION } from "./environment-EU7Mrk7j.js";
|
|
3
|
+
import { n as readSession } from "./storage-R5-qDvHq.js";
|
|
4
4
|
import { n as readVersion, r as spawnStream, t as onPath } from "./spawn-DmmmHIP-.js";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
6
|
import { basename, join } from "node:path";
|
package/dist/entry.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { n as __require, r as __toESM, t as __commonJS } from "./chunk-DQxbwPpZ.js";
|
|
2
|
-
import "./token-
|
|
2
|
+
import "./token-C2kzntVM.js";
|
|
3
3
|
import { a as stripAnsi, d as useStores, i as writeJson } from "./output-Ggzq5_-t.js";
|
|
4
|
-
import { T as isNonInteractive, s as CHANNEL, x as VERSION } from "./environment-
|
|
5
|
-
import "./storage-
|
|
6
|
-
import { i as superwallApi } from "./client-
|
|
7
|
-
import { O as useAscRefresh } from "./held-
|
|
4
|
+
import { T as isNonInteractive, s as CHANNEL, x as VERSION } from "./environment-EU7Mrk7j.js";
|
|
5
|
+
import "./storage-R5-qDvHq.js";
|
|
6
|
+
import { i as superwallApi } from "./client-Tp6iD66_.js";
|
|
7
|
+
import { O as useAscRefresh } from "./held-L0vz0_hA.js";
|
|
8
8
|
import "./config-CGcG7GOt.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-B-uKuu49.js";
|
|
10
10
|
import "./spawn-DmmmHIP-.js";
|
|
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-
|
|
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-zOXTIaAZ.js";
|
|
12
|
+
import { c as onChannel, f as useHost, l as summaryOf, o as examplesOf, r as UsageError, s as flagName } from "./spinner-mWZnJCkN.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-C0MDCfA2.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 "./orgs-
|
|
22
|
-
import "./resources-
|
|
23
|
-
import "./org-
|
|
24
|
-
import "./lookup-
|
|
25
|
-
import "./scope-
|
|
16
|
+
import { t as scanProject } from "./scan-DhmGH1rF.js";
|
|
17
|
+
import { t as detectExisting } from "./existing-DV_6NLfW.js";
|
|
18
|
+
import { n as SUPERWALL_HOME, r as expandHome } from "./paths-Bf3othB-.js";
|
|
19
|
+
import { a as renderPage, i as exampleLines, n as cmd, r as detailLines, t as listGroups } from "./registry-HhZVRBqY.js";
|
|
20
|
+
import "./session-G1uwJI8L.js";
|
|
21
|
+
import "./orgs-CYXjVdxM.js";
|
|
22
|
+
import "./resources-CkG6SCia.js";
|
|
23
|
+
import "./org-D7LQrg3k.js";
|
|
24
|
+
import "./lookup-DhMLZmdW.js";
|
|
25
|
+
import "./scope-D0XpYMn4.js";
|
|
26
26
|
import "./client-BJQXl62Q.js";
|
|
27
27
|
import "./products-Cqq59DBQ.js";
|
|
28
28
|
import "./input-MDd67UIp.js";
|
|
29
29
|
import "./timing-Ca0TXY-A.js";
|
|
30
|
-
import "./notification-url-
|
|
31
|
-
import "./bind-
|
|
30
|
+
import "./notification-url-CqnXE9yB.js";
|
|
31
|
+
import "./bind-BvScWziR.js";
|
|
32
32
|
import { spawn } from "node:child_process";
|
|
33
33
|
import * as fs from "node:fs";
|
|
34
34
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region package.json
|
|
2
|
-
var version = "2.5.
|
|
2
|
+
var version = "2.5.2";
|
|
3
3
|
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/environment.ts
|
|
@@ -40,7 +40,7 @@ const ENV_APPLE_ID = "SUPERWALL_APPLE_ID";
|
|
|
40
40
|
const ENV_APPLE_PASSWORD = "SUPERWALL_APPLE_PASSWORD";
|
|
41
41
|
function appleCredentialsFromEnv() {
|
|
42
42
|
const appleId = resolveEnv(ENV_APPLE_ID);
|
|
43
|
-
const password = process
|
|
43
|
+
const password = globalThis.process?.env[ENV_APPLE_PASSWORD];
|
|
44
44
|
return {
|
|
45
45
|
...appleId ? { appleId } : {},
|
|
46
46
|
...password ? { password } : {}
|
|
@@ -60,7 +60,7 @@ const USER_AGENT = () => {
|
|
|
60
60
|
return agent ? `superwall-cli/${VERSION} (${agent})` : `superwall-cli/${VERSION}`;
|
|
61
61
|
};
|
|
62
62
|
function resolveEnv(name) {
|
|
63
|
-
const value = process
|
|
63
|
+
const value = globalThis.process?.env[name]?.trim();
|
|
64
64
|
return value === "" ? void 0 : value;
|
|
65
65
|
}
|
|
66
66
|
function isNonInteractive() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as Integration } from "./environment-
|
|
2
|
-
import { i as readPackageJson, r as allDeps } from "./scan-
|
|
1
|
+
import { h as Integration } from "./environment-EU7Mrk7j.js";
|
|
2
|
+
import { i as readPackageJson, r as allDeps } from "./scan-DhmGH1rF.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
5
|
|
|
@@ -1,58 +1,10 @@
|
|
|
1
|
-
import { n as billingPlanOf } from "./resources-
|
|
1
|
+
import { n as billingPlanOf } from "./resources-CkG6SCia.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { globSync, readFileSync, statSync } from "node:fs";
|
|
4
4
|
import { join, resolve } from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
import pc from "picocolors";
|
|
7
7
|
|
|
8
|
-
//#region src/core/paywalls/project/framework.ts
|
|
9
|
-
var FrameworkNotFoundError = class extends Error {
|
|
10
|
-
constructor(dir) {
|
|
11
|
-
super(`No superwall framework found from ${dir}.\nInstall it in the project (\`npm i superwall\` / \`bun add superwall\`) and make sure you run this inside a project with a superwall/ directory.`);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
async function importSubpath(packageDir, subpath) {
|
|
15
|
-
return import(pathToFileURL(createRequire(join(packageDir, "package.json")).resolve(subpath)).href);
|
|
16
|
-
}
|
|
17
|
-
function fn(mod, name, subpath) {
|
|
18
|
-
const candidate = mod[name];
|
|
19
|
-
if (typeof candidate !== "function") throw new Error(`This project's superwall version does not export ${name} from ${subpath} — update the project's superwall dependency.`);
|
|
20
|
-
return candidate;
|
|
21
|
-
}
|
|
22
|
-
function resolveFrameworkDir(cwd) {
|
|
23
|
-
for (const anchor of [join(cwd, "superwall", "package.json"), join(cwd, "package.json")]) try {
|
|
24
|
-
return join(createRequire(anchor).resolve("superwall/package.json"), "..");
|
|
25
|
-
} catch {
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
throw new FrameworkNotFoundError(cwd);
|
|
29
|
-
}
|
|
30
|
-
function frameworkVersion(cwd) {
|
|
31
|
-
try {
|
|
32
|
-
const { version } = JSON.parse(readFileSync(join(resolveFrameworkDir(cwd), "package.json"), "utf8"));
|
|
33
|
-
if (typeof version === "string" && version !== "") return version;
|
|
34
|
-
} catch {
|
|
35
|
-
return "unknown";
|
|
36
|
-
}
|
|
37
|
-
return "unknown";
|
|
38
|
-
}
|
|
39
|
-
async function resolveFramework(cwd) {
|
|
40
|
-
const dir = resolveFrameworkDir(cwd);
|
|
41
|
-
const [discover, build, preview] = await Promise.all([
|
|
42
|
-
importSubpath(dir, "superwall/discover"),
|
|
43
|
-
importSubpath(dir, "superwall/build"),
|
|
44
|
-
importSubpath(dir, "superwall/preview")
|
|
45
|
-
]);
|
|
46
|
-
const studioProject = typeof preview.buildStudioProject === "function" ? preview.buildStudioProject : void 0;
|
|
47
|
-
return {
|
|
48
|
-
discoverProject: fn(discover, "discoverProject", "superwall/discover"),
|
|
49
|
-
buildSnapshot: fn(build, "buildSnapshot", "superwall/build"),
|
|
50
|
-
startPreviewServer: fn(preview, "startPreviewServer", "superwall/preview"),
|
|
51
|
-
studioProject
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
//#endregion
|
|
56
8
|
//#region src/core/paywalls/pipeline/output.ts
|
|
57
9
|
const kb = (bytes) => `${(bytes / 1024).toFixed(1)} kB`;
|
|
58
10
|
const weight = (bytes) => bytes >= 1024 * 1024 ? `${(bytes / 1024 / 1024).toFixed(1)} MB` : kb(bytes);
|
|
@@ -176,4 +128,52 @@ function needsWork(built, pushed, live) {
|
|
|
176
128
|
}
|
|
177
129
|
|
|
178
130
|
//#endregion
|
|
179
|
-
|
|
131
|
+
//#region src/core/paywalls/project/framework.ts
|
|
132
|
+
var FrameworkNotFoundError = class extends Error {
|
|
133
|
+
constructor(dir) {
|
|
134
|
+
super(`No superwall framework found from ${dir}.\nInstall it in the project (\`npm i superwall\` / \`bun add superwall\`) and make sure you run this inside a project with a superwall/ directory.`);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
async function importSubpath(packageDir, subpath) {
|
|
138
|
+
return import(pathToFileURL(createRequire(join(packageDir, "package.json")).resolve(subpath)).href);
|
|
139
|
+
}
|
|
140
|
+
function fn(mod, name, subpath) {
|
|
141
|
+
const candidate = mod[name];
|
|
142
|
+
if (typeof candidate !== "function") throw new Error(`This project's superwall version does not export ${name} from ${subpath} — update the project's superwall dependency.`);
|
|
143
|
+
return candidate;
|
|
144
|
+
}
|
|
145
|
+
function resolveFrameworkDir(cwd) {
|
|
146
|
+
for (const anchor of [join(cwd, "superwall", "package.json"), join(cwd, "package.json")]) try {
|
|
147
|
+
return join(createRequire(anchor).resolve("superwall/package.json"), "..");
|
|
148
|
+
} catch {
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
throw new FrameworkNotFoundError(cwd);
|
|
152
|
+
}
|
|
153
|
+
function frameworkVersion(cwd) {
|
|
154
|
+
try {
|
|
155
|
+
const { version } = JSON.parse(readFileSync(join(resolveFrameworkDir(cwd), "package.json"), "utf8"));
|
|
156
|
+
if (typeof version === "string" && version !== "") return version;
|
|
157
|
+
} catch {
|
|
158
|
+
return "unknown";
|
|
159
|
+
}
|
|
160
|
+
return "unknown";
|
|
161
|
+
}
|
|
162
|
+
async function resolveFramework(cwd) {
|
|
163
|
+
const dir = resolveFrameworkDir(cwd);
|
|
164
|
+
const [discover, build, preview] = await Promise.all([
|
|
165
|
+
importSubpath(dir, "superwall/discover"),
|
|
166
|
+
importSubpath(dir, "superwall/build"),
|
|
167
|
+
importSubpath(dir, "superwall/preview")
|
|
168
|
+
]);
|
|
169
|
+
const studioProject = typeof preview.buildStudioProject === "function" ? preview.buildStudioProject : void 0;
|
|
170
|
+
return {
|
|
171
|
+
discoverProject: fn(discover, "discoverProject", "superwall/discover"),
|
|
172
|
+
buildSnapshot: fn(build, "buildSnapshot", "superwall/build"),
|
|
173
|
+
startPreviewServer: fn(preview, "startPreviewServer", "superwall/preview"),
|
|
174
|
+
studioProject
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
//#endregion
|
|
179
|
+
export { took as _, requireClean as a, resolveProjectDirs as c, BIND_VERB as d, LAYOUT_HINT as f, resolveNote as g, pushedLine as h, parseIds as i, selectSurfaces as l, pendingPromoteWarning as m, resolveFramework as n, requireProject as o, kb as p, needsWork as r, resolveProjectDir as s, frameworkVersion as t, storesDiffer as u, transition as v, weight as y };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./token-C2kzntVM.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-EU7Mrk7j.js";
|
|
4
|
+
import "./storage-R5-qDvHq.js";
|
|
5
|
+
import "./client-Tp6iD66_.js";
|
|
6
|
+
import { t as upsertHeldKey } from "./held-L0vz0_hA.js";
|
|
7
|
+
import "./config-CGcG7GOt.js";
|
|
8
|
+
import "./spinner-mWZnJCkN.js";
|
|
9
|
+
import "./ui-D_qf3Gvw.js";
|
|
10
|
+
import "./orgs-CYXjVdxM.js";
|
|
11
|
+
import "./resources-CkG6SCia.js";
|
|
12
|
+
import "./org-D7LQrg3k.js";
|
|
13
|
+
import "./lookup-DhMLZmdW.js";
|
|
14
|
+
import "./scope-D0XpYMn4.js";
|
|
15
|
+
import "./client-BJQXl62Q.js";
|
|
16
|
+
|
|
17
|
+
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 { A as listField, M as textField, O as field, c as createProject, k as isRecord, m as listProjects, r as createApplication } 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-Tp6iD66_.js";
|
|
3
|
+
import { d as readInput, t as apiCall } from "./spinner-mWZnJCkN.js";
|
|
4
|
+
import { A as listField, M as textField, O as field, c as createProject, k as isRecord, m as listProjects, r as createApplication } from "./resources-CkG6SCia.js";
|
|
5
|
+
import { n as orgForNewProject } from "./org-D7LQrg3k.js";
|
|
6
|
+
import { n as findApplication } from "./lookup-DhMLZmdW.js";
|
|
7
|
+
import { r as pickOrganization } from "./scope-D0XpYMn4.js";
|
|
8
8
|
import { a as listAscConfigs, c as replaceAppPurchaseKey, l as replaceAscConfig, r as createAscConfig, s as replaceAppAscKey, t as ascProxy } from "./client-BJQXl62Q.js";
|
|
9
9
|
|
|
10
10
|
//#region src/core/app-store-connect/api/spec.ts
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import "./token-C2kzntVM.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-EU7Mrk7j.js";
|
|
4
|
+
import "./storage-R5-qDvHq.js";
|
|
5
|
+
import "./client-Tp6iD66_.js";
|
|
6
|
+
import "./config-CGcG7GOt.js";
|
|
7
|
+
import "./spinner-mWZnJCkN.js";
|
|
8
|
+
import "./ui-D_qf3Gvw.js";
|
|
9
|
+
import "./orgs-CYXjVdxM.js";
|
|
10
|
+
import "./resources-CkG6SCia.js";
|
|
11
|
+
import "./lookup-DhMLZmdW.js";
|
|
12
|
+
import { n as openBrowser } from "./browser-Bp3yRKlU.js";
|
|
13
|
+
import { C as listInstallations, O as setInstallation, S as listArtifacts, T as listVersions, a as latestManifest, c as openLink, d as resolveArtifact, m as readBinding, t as appEntrypointUrl, u as projectRoot, y as deleteInstallation } from "./resolve-D3RBtfkI.js";
|
|
14
|
+
import { t as ArtifactError } from "./project-NoMtbMyl.js";
|
|
15
|
+
import "./lock-DgSx-p8Y.js";
|
|
16
|
+
import "./scope-ehZ7L1nj.js";
|
|
17
|
+
import { n as resolveOrganization, t as resolveAppScope } from "./organization-DDidaGRK.js";
|
|
18
|
+
|
|
19
|
+
//#region src/core/artifacts/install.ts
|
|
20
|
+
const whereLabel = (application) => application === null || application === void 0 ? "the whole organization" : `app ${application}`;
|
|
21
|
+
const installationItem = (installation) => ({
|
|
22
|
+
label: installation.entrypoint_id,
|
|
23
|
+
meta: [
|
|
24
|
+
installation.slot,
|
|
25
|
+
whereLabel(installation.application_id),
|
|
26
|
+
installation.enabled ? "on" : "off",
|
|
27
|
+
`position ${installation.position}`
|
|
28
|
+
].join(", ")
|
|
29
|
+
});
|
|
30
|
+
async function runArtifactInstall(ctx, input) {
|
|
31
|
+
const artifact = await resolveArtifact(ctx, input);
|
|
32
|
+
if (input.entrypoint === void 0) {
|
|
33
|
+
if (input.remove || input.disable || input.app !== void 0 || input.position !== void 0) throw new ArtifactError("Say which entrypoint: `superwall artifacts install <entrypoint>`.");
|
|
34
|
+
const installations = await listInstallations(ctx.api, artifact.id);
|
|
35
|
+
if (ctx.json) ctx.output.data({ data: installations });
|
|
36
|
+
else ctx.ui.list({
|
|
37
|
+
empty: "Nothing is installed yet.",
|
|
38
|
+
items: installations.map(installationItem)
|
|
39
|
+
});
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const applicationId = input.app === void 0 ? void 0 : (await resolveAppScope(ctx.api, input.app, String(artifact.organization_id))).applicationId;
|
|
43
|
+
if (input.remove) {
|
|
44
|
+
if (!input.yes) {
|
|
45
|
+
if (!ctx.interactive) throw new ArtifactError("Removing an installation ends sessions that are open. Pass --yes to go ahead.");
|
|
46
|
+
if (!await ctx.ui.confirm({
|
|
47
|
+
message: `Remove \`${input.entrypoint}\` from ${whereLabel(applicationId)}? Sessions that are open will end.`,
|
|
48
|
+
initial: false
|
|
49
|
+
})) {
|
|
50
|
+
ctx.ui.outro("Nothing was removed.");
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const left = await deleteInstallation(ctx.api, artifact.id, input.entrypoint, applicationId);
|
|
55
|
+
if (ctx.json) ctx.output.data(left);
|
|
56
|
+
else ctx.ui.success(`Removed \`${input.entrypoint}\` from ${whereLabel(applicationId)}.`);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const installation = await setInstallation(ctx.api, artifact.id, {
|
|
60
|
+
entrypoint_id: input.entrypoint,
|
|
61
|
+
application_id: applicationId === void 0 ? null : Number(applicationId),
|
|
62
|
+
enabled: !input.disable,
|
|
63
|
+
...input.position === void 0 ? {} : { position: input.position }
|
|
64
|
+
});
|
|
65
|
+
if (ctx.json) {
|
|
66
|
+
ctx.output.data(installation);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
ctx.ui.success(input.disable ? `Turned \`${input.entrypoint}\` off for ${whereLabel(applicationId)}.` : `Installed \`${input.entrypoint}\` for ${whereLabel(applicationId)}.`);
|
|
70
|
+
}
|
|
71
|
+
async function runArtifactList(ctx, input) {
|
|
72
|
+
const organizationId = await resolveOrganization(ctx, input.org ?? readBinding(projectRoot(input.dir))?.organizationId);
|
|
73
|
+
const artifacts = await listArtifacts(ctx.api, organizationId);
|
|
74
|
+
if (ctx.json) {
|
|
75
|
+
ctx.output.data({ data: artifacts });
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
ctx.ui.list({
|
|
79
|
+
empty: `No artifacts in organization ${organizationId} yet.`,
|
|
80
|
+
items: artifacts.map((artifact) => ({
|
|
81
|
+
label: artifact.name,
|
|
82
|
+
meta: `${artifact.slug}, id ${artifact.id}, ${artifact.state.replaceAll("_", " ")}`
|
|
83
|
+
}))
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
async function runArtifactOpen(ctx, input, seams = {}) {
|
|
87
|
+
const artifact = await resolveArtifact(ctx, input);
|
|
88
|
+
if (input.entrypoint !== void 0 && input.app === void 0) throw new ArtifactError("An entrypoint opens inside an app. Say which with --app <id>.");
|
|
89
|
+
const manifest = latestManifest(await listVersions(ctx.api, artifact.id).catch(() => []));
|
|
90
|
+
let url;
|
|
91
|
+
if (input.entrypoint !== void 0 && input.app !== void 0) {
|
|
92
|
+
const { applicationId } = await resolveAppScope(ctx.api, input.app, String(artifact.organization_id));
|
|
93
|
+
const entrypoint = manifest?.entrypoints.find((candidate) => candidate.id === input.entrypoint);
|
|
94
|
+
url = appEntrypointUrl(ctx.api.host, artifact, String(applicationId), entrypoint ?? {
|
|
95
|
+
id: input.entrypoint,
|
|
96
|
+
slot: "app.page@1",
|
|
97
|
+
title: ""
|
|
98
|
+
});
|
|
99
|
+
} else url = (await openLink(ctx, artifact, manifest)).url;
|
|
100
|
+
if (ctx.json) {
|
|
101
|
+
ctx.output.data({ url });
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
ctx.ui.info(`Open ${url}`);
|
|
105
|
+
if (input.open && ctx.outputMode === "rich") await (seams.open ?? openBrowser)(url);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
export { runArtifactInstall, runArtifactList, runArtifactOpen };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-C2kzntVM.js";
|
|
2
2
|
import { r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
|
|
3
|
-
import { d as DASHBOARD_URL, x as VERSION } from "./environment-
|
|
4
|
-
import { i as removeSession, n as readSession, s as sessionOrgName } from "./storage-
|
|
5
|
-
import { i as superwallApi } from "./client-
|
|
3
|
+
import { d as DASHBOARD_URL, x as VERSION } from "./environment-EU7Mrk7j.js";
|
|
4
|
+
import { i as removeSession, n as readSession, s as sessionOrgName } from "./storage-R5-qDvHq.js";
|
|
5
|
+
import { i as superwallApi } from "./client-Tp6iD66_.js";
|
|
6
6
|
import { i as readOnboardedApp } from "./config-CGcG7GOt.js";
|
|
7
|
-
import { i as updateTelemetryTags } from "./telemetry-
|
|
7
|
+
import { i as updateTelemetryTags } from "./telemetry-B-uKuu49.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import { n as withSpinner } from "./spinner-
|
|
9
|
+
import { n as withSpinner } from "./spinner-mWZnJCkN.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-C0MDCfA2.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 "./orgs-
|
|
17
|
-
import { A as listField, O as field, T as rowName, h as listResource, p as listApplications, s as createProduct, y as platformLabel } from "./resources-
|
|
18
|
-
import "./org-
|
|
19
|
-
import "./lookup-
|
|
20
|
-
import "./scope-
|
|
13
|
+
import { n as SUPPORTED_LABEL, t as scanProject } from "./scan-DhmGH1rF.js";
|
|
14
|
+
import { t as detectExisting } from "./existing-DV_6NLfW.js";
|
|
15
|
+
import { r as expandHome } from "./paths-Bf3othB-.js";
|
|
16
|
+
import "./orgs-CYXjVdxM.js";
|
|
17
|
+
import { A as listField, O as field, T as rowName, h as listResource, p as listApplications, s as createProduct, y as platformLabel } from "./resources-CkG6SCia.js";
|
|
18
|
+
import "./org-D7LQrg3k.js";
|
|
19
|
+
import "./lookup-DhMLZmdW.js";
|
|
20
|
+
import "./scope-D0XpYMn4.js";
|
|
21
21
|
import { a as listAscConfigs, r as createAscConfig } from "./client-BJQXl62Q.js";
|
|
22
22
|
import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-Cqq59DBQ.js";
|
|
23
23
|
import "./input-MDd67UIp.js";
|
|
24
|
-
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-
|
|
25
|
-
import "./login-
|
|
26
|
-
import { s as ensureSkillsCurrent } from "./skills-
|
|
24
|
+
import { n as resolveAppBinding, r as resolveScopeFromKey, t as platformForIntegration } from "./bind-BvScWziR.js";
|
|
25
|
+
import "./login-Ca6FhI6R.js";
|
|
26
|
+
import { s as ensureSkillsCurrent } from "./skills-CE4c9eHX.js";
|
|
27
27
|
import "./browser-Bp3yRKlU.js";
|
|
28
|
-
import { t as
|
|
29
|
-
import { n as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { r as actionById, t as detectBilling } from "./billing-
|
|
33
|
-
import { n as writeReport, t as readReport } from "./reports-
|
|
28
|
+
import { a as copyToClipboard, r as buildCopyPrompt, t as runAction } from "./run-CL5ZnujW.js";
|
|
29
|
+
import { n as selectHostedStatus, t as detectDrivers } from "./drivers-YZEcBiSV.js";
|
|
30
|
+
import { n as performLoginWithUi, t as createLoginGate } from "./login-DoMmU3Bq.js";
|
|
31
|
+
import { t as generateStoreKit } from "./storekit-CQHVFTOC.js";
|
|
32
|
+
import { r as actionById, t as detectBilling } from "./billing-Bo1UEKqV.js";
|
|
33
|
+
import { n as writeReport, t as readReport } from "./reports-HYVp169R.js";
|
|
34
34
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
35
35
|
import { basename } from "node:path";
|
|
36
36
|
import fg from "fast-glob";
|