@superwall/cli 2.5.1 → 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/dist/{apple-BSKxY7Gx.js → apple-D2z3tALE.js} +14 -14
- package/dist/{approve-DbwsYO4s.js → approve-I-lvTanp.js} +31 -28
- package/dist/{assets-CqpFg5mM.js → assets-oo93EFou.js} +3 -3
- package/dist/auth.js +3 -3
- package/dist/{session-DYdxTNZf.js → base-Cft9NZfU.js} +35 -35
- package/dist/{billing-BopwIhR3.js → billing-Bo1UEKqV.js} +3 -3
- package/dist/{bind-DOF3o3FR.js → bind-BvScWziR.js} +4 -4
- package/dist/{build-BF22vVdV.js → build-Co487gha.js} +10 -10
- package/dist/{client-DHlsTaP1.js → client-Tp6iD66_.js} +55 -5
- package/dist/create-CHIPz5vb.js +20 -0
- package/dist/{create-CboPfAlN.js → create-G3HuOHZ4.js} +31 -31
- package/dist/{create-CiZzZrru.js → create-uA3nrMIa.js} +6 -6
- package/dist/{doctor-BqZGaQE5.js → doctor-CHF9aNFc.js} +6 -6
- package/dist/{drivers-DkboeR1c.js → drivers-YZEcBiSV.js} +3 -3
- package/dist/entry.js +20 -20
- package/dist/{environment-FR3bcq0D.js → environment-EU7Mrk7j.js} +1 -1
- package/dist/{existing-C6TTT6c4.js → existing-DV_6NLfW.js} +2 -2
- package/dist/{selection-CWfI4a0O.js → framework-b-Yf8sP1.js} +50 -50
- package/dist/held-Dd19AduK.js +17 -0
- package/dist/{held-C2IjAyg6.js → held-L0vz0_hA.js} +6 -6
- package/dist/{install-DoSYCwLL.js → install-CXfLcLhU.js} +37 -37
- package/dist/{integrate-BSqd2wgI.js → integrate-DS2YGLsM.js} +23 -23
- package/dist/{types-CB6O_wjy.js → lock-DgSx-p8Y.js} +79 -79
- package/dist/login-C0BjJmFy.js +17 -0
- package/dist/{login-C6FcBQZg.js → login-Ca6FhI6R.js} +6 -6
- package/dist/{login-dRPPnGr7.js → login-DoMmU3Bq.js} +1 -1
- package/dist/{lookup-D23dAOz6.js → lookup-DhMLZmdW.js} +3 -3
- package/dist/{migrate-CDdUCTH3.js → migrate-CoQWqzhJ.js} +29 -29
- package/dist/{migration-r9plM7F6.js → migration-C22iQzAW.js} +9 -9
- package/dist/{notification-url-rdnENCxt.js → notification-url-CqnXE9yB.js} +2 -2
- package/dist/{open-DVdE3HnK.js → open-DriuY3di.js} +2 -2
- package/dist/{org-DZ41muzA.js → org-D7LQrg3k.js} +3 -3
- package/dist/{organization-DIODPOwO.js → organization-DDidaGRK.js} +8 -8
- package/dist/{orgs-BxlwcvTu.js → orgs-CYXjVdxM.js} +1 -1
- package/dist/{paths-BaeoxDze.js → paths-Bf3othB-.js} +1 -1
- package/dist/{playbook-B-Pdonhg.js → playbook-K7vmAUsu.js} +10 -10
- package/dist/{project-DHU5wc3R.js → project-NoMtbMyl.js} +9 -9
- package/dist/{promote-Ca4URuHY.js → promote-DXxxj4BU.js} +23 -23
- package/dist/pull-Bfa3_SBt.js +106 -0
- package/dist/pull-DGrlBSAG.js +36 -0
- package/dist/{pull-CQcTZxW8.js → pull-DuFUkP7t.js} +8 -8
- package/dist/{push-DQE48h_M.js → push-CrowxhpU.js} +53 -47
- package/dist/push-DPZdch2W.js +30 -0
- package/dist/push-DV-kJZdw.js +22 -0
- package/dist/{push-BlZoIwIj.js → push-Dk5x2xP3.js} +9 -9
- package/dist/{registry-FNG-uiIt.js → registry-HhZVRBqY.js} +154 -152
- package/dist/resolve-D3RBtfkI.js +242 -0
- package/dist/{resources-COOEvqqW.js → resources-CkG6SCia.js} +2 -2
- package/dist/{run-DpYDOAw-.js → run-CL5ZnujW.js} +2 -2
- package/dist/{run-Czbb-sHR.js → run-Co8u_BkN.js} +65 -65
- package/dist/scan-BQmjhs3g.js +4 -0
- package/dist/{scan-BZS2FZeU.js → scan-DhmGH1rF.js} +1 -1
- package/dist/{scope-BJQ-KcQg.js → scope-D0XpYMn4.js} +5 -5
- package/dist/{scope-t_SqFN6W.js → scope-ehZ7L1nj.js} +8 -8
- package/dist/{sdk-CyttTnGf.js → sdk-DEfQttek.js} +7 -7
- package/dist/{series--Wp7TngJ.js → series-D2ZpZ8cx.js} +95 -62
- package/dist/server-4ZK_1Off.js +29 -0
- package/dist/{server-BmmOj7bh.js → server-DamMN_ig.js} +9 -9
- package/dist/session-4F_YWSul.js +6 -0
- package/dist/{session-BpYpOgaY.js → session-G1uwJI8L.js} +1 -1
- package/dist/{setup-DW50luOZ.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 +44 -30
- 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-Cm1j2d1W.js → skills-CE4c9eHX.js} +4 -4
- package/dist/{skills-Bbtq8V_D.js → skills-ClEVgXUB.js} +8 -8
- package/dist/{git-DqDPnldI.js → source-BccdO4aL.js} +95 -95
- package/dist/{source-push-B3c-VLfe.js → source-push-EyF02ekO.js} +6 -6
- package/dist/{spinner-025_eqCX.js → spinner-mWZnJCkN.js} +3 -3
- package/dist/{starter-hcwocv_Z.js → starter-BtUUQWhd.js} +38 -28
- package/dist/{status-K1IGp6pe.js → status-SAZxltzW.js} +39 -39
- package/dist/{storage-CUMgpcVH.js → storage-R5-qDvHq.js} +1 -1
- package/dist/{storekit-Cb0TkToV.js → storekit-CQHVFTOC.js} +3 -3
- package/dist/storekit-DK3xXKoY.js +17 -0
- package/dist/{telemetry-ekUQuhLJ.js → telemetry-B-uKuu49.js} +1 -1
- package/dist/{token-B2PduqrR.js → token-C2kzntVM.js} +1 -1
- package/dist/tools.d.ts +5 -0
- package/dist/tools.js +183 -125
- package/dist/{try-BUnhITXS.js → try-BrJJyXgq.js} +32 -32
- package/dist/{upgrade-DfZfDljd.js → upgrade-g_Bd9oJe.js} +2 -2
- package/dist/{upgrade-CI7K1UZ-.js → upgrade-zOXTIaAZ.js} +2 -2
- package/package.json +2 -2
- package/dist/create-DAkNdEzt.js +0 -20
- package/dist/held-KVcYIplR.js +0 -17
- package/dist/login-BiwaQkXS.js +0 -17
- package/dist/pull-DRMIxqR8.js +0 -36
- package/dist/pull-_qs90vGA.js +0 -106
- package/dist/push-Cb4g_l1K.js +0 -30
- package/dist/push-DZKsd6Dp.js +0 -22
- package/dist/resolve-DGePiHgL.js +0 -196
- package/dist/scan-2WqHGkjU.js +0 -4
- package/dist/server-BqLPwcy9.js +0 -29
- package/dist/session-BHBIGscL.js +0 -6
- package/dist/storekit-Dewj_5qg.js +0 -17
- /package/dist/{design-lint-CvgcSzVg.js → design-lint-CiFc78aM.js} +0 -0
- /package/dist/{download-F8OtTJze.js → download-DhGd4hOB.js} +0 -0
- /package/dist/{reports-BZfxvenS.js → reports-HYVp169R.js} +0 -0
|
@@ -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
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-C2kzntVM.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import "./environment-EU7Mrk7j.js";
|
|
4
|
+
import "./storage-R5-qDvHq.js";
|
|
5
|
+
import "./client-Tp6iD66_.js";
|
|
6
6
|
import "./config-CGcG7GOt.js";
|
|
7
|
-
import "./spinner-
|
|
7
|
+
import "./spinner-mWZnJCkN.js";
|
|
8
8
|
import "./ui-D_qf3Gvw.js";
|
|
9
|
-
import "./orgs-
|
|
10
|
-
import "./resources-
|
|
11
|
-
import "./lookup-
|
|
9
|
+
import "./orgs-CYXjVdxM.js";
|
|
10
|
+
import "./resources-CkG6SCia.js";
|
|
11
|
+
import "./lookup-DhMLZmdW.js";
|
|
12
12
|
import { n as openBrowser } from "./browser-Bp3yRKlU.js";
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { n as resolveOrganization, t as resolveAppScope } from "./organization-
|
|
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
18
|
|
|
19
|
-
//#region src/core/
|
|
19
|
+
//#region src/core/artifacts/install.ts
|
|
20
20
|
const whereLabel = (application) => application === null || application === void 0 ? "the whole organization" : `app ${application}`;
|
|
21
21
|
const installationItem = (installation) => ({
|
|
22
22
|
label: installation.entrypoint_id,
|
|
@@ -27,11 +27,11 @@ const installationItem = (installation) => ({
|
|
|
27
27
|
`position ${installation.position}`
|
|
28
28
|
].join(", ")
|
|
29
29
|
});
|
|
30
|
-
async function
|
|
31
|
-
const
|
|
30
|
+
async function runArtifactInstall(ctx, input) {
|
|
31
|
+
const artifact = await resolveArtifact(ctx, input);
|
|
32
32
|
if (input.entrypoint === void 0) {
|
|
33
|
-
if (input.remove || input.disable || input.app !== void 0 || input.position !== void 0) throw new
|
|
34
|
-
const installations = await listInstallations(ctx.api,
|
|
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
35
|
if (ctx.json) ctx.output.data({ data: installations });
|
|
36
36
|
else ctx.ui.list({
|
|
37
37
|
empty: "Nothing is installed yet.",
|
|
@@ -39,10 +39,10 @@ async function runWorkspaceInstall(ctx, input) {
|
|
|
39
39
|
});
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
const applicationId = input.app === void 0 ? void 0 : (await resolveAppScope(ctx.api, input.app, String(
|
|
42
|
+
const applicationId = input.app === void 0 ? void 0 : (await resolveAppScope(ctx.api, input.app, String(artifact.organization_id))).applicationId;
|
|
43
43
|
if (input.remove) {
|
|
44
44
|
if (!input.yes) {
|
|
45
|
-
if (!ctx.interactive) throw new
|
|
45
|
+
if (!ctx.interactive) throw new ArtifactError("Removing an installation ends sessions that are open. Pass --yes to go ahead.");
|
|
46
46
|
if (!await ctx.ui.confirm({
|
|
47
47
|
message: `Remove \`${input.entrypoint}\` from ${whereLabel(applicationId)}? Sessions that are open will end.`,
|
|
48
48
|
initial: false
|
|
@@ -51,12 +51,12 @@ async function runWorkspaceInstall(ctx, input) {
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
const left = await deleteInstallation(ctx.api,
|
|
54
|
+
const left = await deleteInstallation(ctx.api, artifact.id, input.entrypoint, applicationId);
|
|
55
55
|
if (ctx.json) ctx.output.data(left);
|
|
56
56
|
else ctx.ui.success(`Removed \`${input.entrypoint}\` from ${whereLabel(applicationId)}.`);
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
const installation = await setInstallation(ctx.api,
|
|
59
|
+
const installation = await setInstallation(ctx.api, artifact.id, {
|
|
60
60
|
entrypoint_id: input.entrypoint,
|
|
61
61
|
application_id: applicationId === void 0 ? null : Number(applicationId),
|
|
62
62
|
enabled: !input.disable,
|
|
@@ -68,35 +68,35 @@ async function runWorkspaceInstall(ctx, input) {
|
|
|
68
68
|
}
|
|
69
69
|
ctx.ui.success(input.disable ? `Turned \`${input.entrypoint}\` off for ${whereLabel(applicationId)}.` : `Installed \`${input.entrypoint}\` for ${whereLabel(applicationId)}.`);
|
|
70
70
|
}
|
|
71
|
-
async function
|
|
71
|
+
async function runArtifactList(ctx, input) {
|
|
72
72
|
const organizationId = await resolveOrganization(ctx, input.org ?? readBinding(projectRoot(input.dir))?.organizationId);
|
|
73
|
-
const
|
|
73
|
+
const artifacts = await listArtifacts(ctx.api, organizationId);
|
|
74
74
|
if (ctx.json) {
|
|
75
|
-
ctx.output.data({ data:
|
|
75
|
+
ctx.output.data({ data: artifacts });
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
ctx.ui.list({
|
|
79
|
-
empty: `No
|
|
80
|
-
items:
|
|
81
|
-
label:
|
|
82
|
-
meta: `${
|
|
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
83
|
}))
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
async function
|
|
87
|
-
const
|
|
88
|
-
if (input.entrypoint !== void 0 && input.app === void 0) throw new
|
|
89
|
-
const manifest = latestManifest(await listVersions(ctx.api,
|
|
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
90
|
let url;
|
|
91
91
|
if (input.entrypoint !== void 0 && input.app !== void 0) {
|
|
92
|
-
const { applicationId } = await resolveAppScope(ctx.api, input.app, String(
|
|
92
|
+
const { applicationId } = await resolveAppScope(ctx.api, input.app, String(artifact.organization_id));
|
|
93
93
|
const entrypoint = manifest?.entrypoints.find((candidate) => candidate.id === input.entrypoint);
|
|
94
|
-
url = appEntrypointUrl(ctx.api.host,
|
|
94
|
+
url = appEntrypointUrl(ctx.api.host, artifact, String(applicationId), entrypoint ?? {
|
|
95
95
|
id: input.entrypoint,
|
|
96
96
|
slot: "app.page@1",
|
|
97
97
|
title: ""
|
|
98
98
|
});
|
|
99
|
-
} else url = (await openLink(ctx,
|
|
99
|
+
} else url = (await openLink(ctx, artifact, manifest)).url;
|
|
100
100
|
if (ctx.json) {
|
|
101
101
|
ctx.output.data({ url });
|
|
102
102
|
return;
|
|
@@ -106,4 +106,4 @@ async function runWorkspaceOpen(ctx, input, seams = {}) {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
//#endregion
|
|
109
|
-
export {
|
|
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";
|
|
@@ -1,6 +1,84 @@
|
|
|
1
1
|
import * as fs from "node:fs";
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
|
|
4
|
+
//#region src/core/paywalls/project/types.ts
|
|
5
|
+
const TYPES_FILE = "superwall.d.ts";
|
|
6
|
+
const SUPERSEDED = ["superwall-env.d.ts", "superwall-routes.d.ts"];
|
|
7
|
+
const HEADER = `// Generated by the Superwall CLI. Commit it; don't edit it, and don't delete it.
|
|
8
|
+
// It is what makes \`import hero from "./assets/hero.jpg"\` typecheck and what
|
|
9
|
+
// makes router.push("...") autocomplete and reject typos. \`superwall dev\`
|
|
10
|
+
// rewrites it whenever your app/ directories change.
|
|
11
|
+
|
|
12
|
+
/// <reference types="superwall/assets" />
|
|
13
|
+
`;
|
|
14
|
+
const routeBlock = (names) => [
|
|
15
|
+
"declare module \"superwall/navigation\" {",
|
|
16
|
+
" interface SuperwallRoutes {",
|
|
17
|
+
...names.map((name) => ` ${JSON.stringify(name)}: true;`),
|
|
18
|
+
" }",
|
|
19
|
+
"}",
|
|
20
|
+
"",
|
|
21
|
+
"export type SuperwallRouteName = keyof import(\"superwall/navigation\").SuperwallRoutes;"
|
|
22
|
+
].join("\n");
|
|
23
|
+
const isStripeIdentifier = (identifier) => /^(test|live):price_[^:]+/.test(identifier);
|
|
24
|
+
const productBlock = (references, stripe) => [
|
|
25
|
+
"declare module \"superwall/hooks\" {",
|
|
26
|
+
" interface SuperwallProducts {",
|
|
27
|
+
...references.map((name) => ` ${JSON.stringify(name)}: true;`),
|
|
28
|
+
" }",
|
|
29
|
+
"",
|
|
30
|
+
" interface SuperwallStripeProducts {",
|
|
31
|
+
...stripe.map((name) => ` ${JSON.stringify(name)}: true;`),
|
|
32
|
+
" }",
|
|
33
|
+
"}"
|
|
34
|
+
].join("\n");
|
|
35
|
+
const productIdsOf = (surface) => surface.productIds ?? Object.fromEntries(Object.entries(surface.products).map(([reference, id]) => [reference, [id]]));
|
|
36
|
+
const declaredPlatforms = (value) => Array.isArray(value) && value.every((entry) => typeof entry === "string") ? value : void 0;
|
|
37
|
+
async function collectProjectDeclarations(framework, root) {
|
|
38
|
+
const declarations = {
|
|
39
|
+
products: {},
|
|
40
|
+
platforms: {}
|
|
41
|
+
};
|
|
42
|
+
if (!framework.studioProject) return declarations;
|
|
43
|
+
try {
|
|
44
|
+
const payload = await framework.studioProject(root);
|
|
45
|
+
for (const surface of payload.surfaces) {
|
|
46
|
+
for (const [reference, ids] of Object.entries(productIdsOf(surface))) declarations.products[reference] = [...new Set([...declarations.products[reference] ?? [], ...ids])];
|
|
47
|
+
if (typeof surface.kind === "string" && typeof surface.id === "string") declarations.platforms[`${surface.kind}/${surface.id}`] = declaredPlatforms(surface.platforms);
|
|
48
|
+
}
|
|
49
|
+
return declarations;
|
|
50
|
+
} catch {
|
|
51
|
+
return declarations;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function projectTypes(project, products = {}) {
|
|
55
|
+
const names = /* @__PURE__ */ new Set();
|
|
56
|
+
for (const surface of project.surfaces) for (const route of surface.routes) names.add(route.name);
|
|
57
|
+
const sorted = [...names].sort();
|
|
58
|
+
const sortedProducts = Object.keys(products).sort();
|
|
59
|
+
const sortedStripe = Object.entries(products).filter(([, identifiers]) => identifiers.some(isStripeIdentifier)).map(([name]) => name).sort();
|
|
60
|
+
const blocks = [sorted.length > 0 ? routeBlock(sorted) : "", sortedProducts.length > 0 ? productBlock(sortedProducts, sortedStripe) : ""].filter(Boolean);
|
|
61
|
+
return blocks.length === 0 ? `${HEADER}\nexport {};\n` : `${HEADER}\n${blocks.join("\n\n")}\n`;
|
|
62
|
+
}
|
|
63
|
+
function writeProjectTypes(project, products = {}) {
|
|
64
|
+
const file = path.join(project.superwallDir, TYPES_FILE);
|
|
65
|
+
const next = projectTypes(project, products);
|
|
66
|
+
try {
|
|
67
|
+
if (!fs.existsSync(file) || fs.readFileSync(file, "utf8") !== next) fs.writeFileSync(file, next);
|
|
68
|
+
} catch {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
for (const name of SUPERSEDED) {
|
|
72
|
+
const stale = path.join(project.superwallDir, name);
|
|
73
|
+
try {
|
|
74
|
+
if (fs.readFileSync(stale, "utf8").includes("Superwall CLI")) fs.rmSync(stale);
|
|
75
|
+
} catch {
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
4
82
|
//#region src/core/paywalls/project/lock.ts
|
|
5
83
|
const isScreenOrigin = (origin) => "path" in origin;
|
|
6
84
|
const isFileName = (value) => typeof value === "string" && value !== "" && !/[\\/]/.test(value) && !value.startsWith(".");
|
|
@@ -207,82 +285,4 @@ const describeBindings = (bindings) => {
|
|
|
207
285
|
};
|
|
208
286
|
|
|
209
287
|
//#endregion
|
|
210
|
-
|
|
211
|
-
const TYPES_FILE = "superwall.d.ts";
|
|
212
|
-
const SUPERSEDED = ["superwall-env.d.ts", "superwall-routes.d.ts"];
|
|
213
|
-
const HEADER = `// Generated by the Superwall CLI. Commit it; don't edit it, and don't delete it.
|
|
214
|
-
// It is what makes \`import hero from "./assets/hero.jpg"\` typecheck and what
|
|
215
|
-
// makes router.push("...") autocomplete and reject typos. \`superwall dev\`
|
|
216
|
-
// rewrites it whenever your app/ directories change.
|
|
217
|
-
|
|
218
|
-
/// <reference types="superwall/assets" />
|
|
219
|
-
`;
|
|
220
|
-
const routeBlock = (names) => [
|
|
221
|
-
"declare module \"superwall/navigation\" {",
|
|
222
|
-
" interface SuperwallRoutes {",
|
|
223
|
-
...names.map((name) => ` ${JSON.stringify(name)}: true;`),
|
|
224
|
-
" }",
|
|
225
|
-
"}",
|
|
226
|
-
"",
|
|
227
|
-
"export type SuperwallRouteName = keyof import(\"superwall/navigation\").SuperwallRoutes;"
|
|
228
|
-
].join("\n");
|
|
229
|
-
const isStripeIdentifier = (identifier) => /^(test|live):price_[^:]+/.test(identifier);
|
|
230
|
-
const productBlock = (references, stripe) => [
|
|
231
|
-
"declare module \"superwall/hooks\" {",
|
|
232
|
-
" interface SuperwallProducts {",
|
|
233
|
-
...references.map((name) => ` ${JSON.stringify(name)}: true;`),
|
|
234
|
-
" }",
|
|
235
|
-
"",
|
|
236
|
-
" interface SuperwallStripeProducts {",
|
|
237
|
-
...stripe.map((name) => ` ${JSON.stringify(name)}: true;`),
|
|
238
|
-
" }",
|
|
239
|
-
"}"
|
|
240
|
-
].join("\n");
|
|
241
|
-
const productIdsOf = (surface) => surface.productIds ?? Object.fromEntries(Object.entries(surface.products).map(([reference, id]) => [reference, [id]]));
|
|
242
|
-
const declaredPlatforms = (value) => Array.isArray(value) && value.every((entry) => typeof entry === "string") ? value : void 0;
|
|
243
|
-
async function collectProjectDeclarations(framework, root) {
|
|
244
|
-
const declarations = {
|
|
245
|
-
products: {},
|
|
246
|
-
platforms: {}
|
|
247
|
-
};
|
|
248
|
-
if (!framework.studioProject) return declarations;
|
|
249
|
-
try {
|
|
250
|
-
const payload = await framework.studioProject(root);
|
|
251
|
-
for (const surface of payload.surfaces) {
|
|
252
|
-
for (const [reference, ids] of Object.entries(productIdsOf(surface))) declarations.products[reference] = [...new Set([...declarations.products[reference] ?? [], ...ids])];
|
|
253
|
-
if (typeof surface.kind === "string" && typeof surface.id === "string") declarations.platforms[`${surface.kind}/${surface.id}`] = declaredPlatforms(surface.platforms);
|
|
254
|
-
}
|
|
255
|
-
return declarations;
|
|
256
|
-
} catch {
|
|
257
|
-
return declarations;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
function projectTypes(project, products = {}) {
|
|
261
|
-
const names = /* @__PURE__ */ new Set();
|
|
262
|
-
for (const surface of project.surfaces) for (const route of surface.routes) names.add(route.name);
|
|
263
|
-
const sorted = [...names].sort();
|
|
264
|
-
const sortedProducts = Object.keys(products).sort();
|
|
265
|
-
const sortedStripe = Object.entries(products).filter(([, identifiers]) => identifiers.some(isStripeIdentifier)).map(([name]) => name).sort();
|
|
266
|
-
const blocks = [sorted.length > 0 ? routeBlock(sorted) : "", sortedProducts.length > 0 ? productBlock(sortedProducts, sortedStripe) : ""].filter(Boolean);
|
|
267
|
-
return blocks.length === 0 ? `${HEADER}\nexport {};\n` : `${HEADER}\n${blocks.join("\n\n")}\n`;
|
|
268
|
-
}
|
|
269
|
-
function writeProjectTypes(project, products = {}) {
|
|
270
|
-
const file = path.join(project.superwallDir, TYPES_FILE);
|
|
271
|
-
const next = projectTypes(project, products);
|
|
272
|
-
try {
|
|
273
|
-
if (!fs.existsSync(file) || fs.readFileSync(file, "utf8") !== next) fs.writeFileSync(file, next);
|
|
274
|
-
} catch {
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
for (const name of SUPERSEDED) {
|
|
278
|
-
const stale = path.join(project.superwallDir, name);
|
|
279
|
-
try {
|
|
280
|
-
if (fs.readFileSync(stale, "utf8").includes("Superwall CLI")) fs.rmSync(stale);
|
|
281
|
-
} catch {
|
|
282
|
-
continue;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
//#endregion
|
|
288
|
-
export { writeLock as _, describeBindings as a, writeSources as b, isScreenOrigin as c, parseSources as d, readLock as f, writeBindings as g, writeBinding as h, NewerLockError as i, originKey as l, writeApp as m, collectProjectDeclarations as n, formatLock as o, removeBinding as p, writeProjectTypes as r, formatSharedLock as s, TYPES_FILE as t, parseLock as u, writeOrigin as v, writeSnapshot as y };
|
|
288
|
+
export { writeSources as _, isScreenOrigin as a, writeProjectTypes as b, parseSources as c, writeApp as d, writeBinding as f, writeSnapshot as g, writeOrigin as h, formatSharedLock as i, readLock as l, writeLock as m, describeBindings as n, originKey as o, writeBindings as p, formatLock as r, parseLock as s, NewerLockError as t, removeBinding as u, TYPES_FILE as v, collectProjectDeclarations 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 "./config-CGcG7GOt.js";
|
|
7
|
+
import "./telemetry-B-uKuu49.js";
|
|
8
|
+
import "./spawn-DmmmHIP-.js";
|
|
9
|
+
import "./spinner-mWZnJCkN.js";
|
|
10
|
+
import "./ui-D_qf3Gvw.js";
|
|
11
|
+
import "./scan-DhmGH1rF.js";
|
|
12
|
+
import "./paths-Bf3othB-.js";
|
|
13
|
+
import { i as startLogin, n as pollLogin, r as runLogin, t as performLogin } from "./login-Ca6FhI6R.js";
|
|
14
|
+
import "./skills-CE4c9eHX.js";
|
|
15
|
+
import "./browser-Bp3yRKlU.js";
|
|
16
|
+
|
|
17
|
+
export { performLogin, pollLogin, runLogin, startLogin };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { g as OAUTH_SCOPE, h as Integration, i as AUTH_HOST, l as CLI_CLIENT_ID, t as API_HOST } from "./environment-
|
|
2
|
-
import { c as writePendingLogin, l as writeSession, o as serializeSession, r as removePendingLogin, t as readPendingLogin } from "./storage-
|
|
1
|
+
import { g as OAUTH_SCOPE, h as Integration, i as AUTH_HOST, l as CLI_CLIENT_ID, t as API_HOST } from "./environment-EU7Mrk7j.js";
|
|
2
|
+
import { c as writePendingLogin, l as writeSession, o as serializeSession, r as removePendingLogin, t as readPendingLogin } from "./storage-R5-qDvHq.js";
|
|
3
3
|
import { a as readOnboardedOrg, m as writeOnboardedOrg, o as readOnboardingIdempotencyKey, p as writeOnboardedApp } from "./config-CGcG7GOt.js";
|
|
4
|
-
import { r as track } from "./telemetry-
|
|
5
|
-
import { r as UsageError } from "./spinner-
|
|
4
|
+
import { r as track } from "./telemetry-B-uKuu49.js";
|
|
5
|
+
import { r as UsageError } from "./spinner-mWZnJCkN.js";
|
|
6
6
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
7
|
-
import { t as scanProject } from "./scan-
|
|
8
|
-
import { s as ensureSkillsCurrent } from "./skills-
|
|
7
|
+
import { t as scanProject } from "./scan-DhmGH1rF.js";
|
|
8
|
+
import { s as ensureSkillsCurrent } from "./skills-CE4c9eHX.js";
|
|
9
9
|
import { n as openBrowser, t as BROWSER_UNAVAILABLE } from "./browser-Bp3yRKlU.js";
|
|
10
10
|
import { setTimeout } from "node:timers/promises";
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
2
|
-
import { a as onboardingHooks, t as performLogin } from "./login-
|
|
2
|
+
import { a as onboardingHooks, t as performLogin } from "./login-Ca6FhI6R.js";
|
|
3
3
|
import { t as BROWSER_UNAVAILABLE } from "./browser-Bp3yRKlU.js";
|
|
4
4
|
|
|
5
5
|
//#region src/core/workflows/login.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as ApiError } from "./client-
|
|
2
|
-
import { a as orgProjects, s as rememberOrg } from "./orgs-
|
|
3
|
-
import { m as listProjects } from "./resources-
|
|
1
|
+
import { t as ApiError } from "./client-Tp6iD66_.js";
|
|
2
|
+
import { a as orgProjects, s as rememberOrg } from "./orgs-CYXjVdxM.js";
|
|
3
|
+
import { m as listProjects } from "./resources-CkG6SCia.js";
|
|
4
4
|
|
|
5
5
|
//#region src/core/api/lookup.ts
|
|
6
6
|
const DASHBOARD_PATH = /^\/(\d+)(?:\/(\d+))?(?:\/|$)/;
|