@superwall/cli 1.6.2 → 1.7.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 +110 -3
- package/dist/{actions-H7f6knyY.js → actions-B7ym3oVS.js} +2 -2
- package/dist/{api-Dv3LyZ5m.js → api-CZzirVMj.js} +6 -6
- package/dist/{app-mJC5NDtW.js → app-DH6U8yuI.js} +11 -10
- package/dist/{asa-D6H7Pjae.js → asa-C-sQzPPn.js} +8 -8
- package/dist/{asc-xCin0akG.js → asc-1ZBJ6DwS.js} +280 -41
- package/dist/asc-Bf7zBbyS.js +65 -0
- package/dist/{asc-products-Dvcyef3_.js → asc-products-9JXtDxI4.js} +2 -35
- package/dist/{auth-ZlLL-Gko.js → auth-YRhlV3DE.js} +11 -10
- package/dist/auth.js +2 -2
- package/dist/{billing-C8kBge_S.js → billing-CCYHdApx.js} +1 -1
- package/dist/{bind-BIzaGq8K.js → bind-YrJvuRF9.js} +3 -3
- package/dist/{build-B7BS1rF2.js → build-DLoCW5Ri.js} +7 -7
- package/dist/bundle-id-CKxl_026.js +121 -0
- package/dist/{command-3fGYyC8r.js → command-CMIz81Da.js} +5 -5
- package/dist/{create-CwnnNqv4.js → create-pkANt1Gs.js} +22 -22
- package/dist/dev-DZy6pOnB.js +22 -0
- package/dist/{dev-CgGAb5Al.js → dev-DmB3XqaJ.js} +12 -7
- package/dist/{doctor-CyUvut31.js → doctor-H-hf-Yww.js} +10 -10
- package/dist/{drivers-6RMOPIdn.js → drivers-Qx9LxmRN.js} +2 -2
- package/dist/entry.js +382 -39
- package/dist/{existing-DHpPn1y6.js → existing-AVEfZu2A.js} +2 -2
- package/dist/{feedback-RKyGuQ8_.js → feedback-CKf-rpBW.js} +6 -6
- package/dist/{hosted-BeGVAntr.js → hosted-CXe9TrWx.js} +2 -2
- package/dist/{integrate-BR2LR-EK.js → integrate-brmhPG-S.js} +23 -22
- package/dist/{login-Bhxgqwtm.js → login-Do4wFuLv.js} +31 -16
- package/dist/{migrate-C-4ISELN.js → migrate-C9ERDR6y.js} +24 -24
- package/dist/notification-url-DuKF2659.js +1273 -0
- package/dist/{open-studio-BnVD6tJ9.js → open-studio-DOw-6ydc.js} +10 -10
- package/dist/{org-CQduIOic.js → org-sj7uyvp-.js} +2 -2
- package/dist/{output-C-4UKMot.js → output-C4o2gJ1K.js} +12 -2
- package/dist/{pipeline-CHX0Syre.js → pipeline-BqzqZhX1.js} +6 -6
- package/dist/{print-skill-BiZLdCKv.js → print-skill-ZojRSybs.js} +7 -7
- package/dist/{promote-Pgpz-3xl.js → promote-BG8X4Nv_.js} +17 -17
- package/dist/publish-sxLh-G4G.js +35 -0
- package/dist/push-bQ6Vxtg8.js +35 -0
- package/dist/{query-CWLaZkdm.js → query-_FbybaH-.js} +8 -8
- package/dist/{resource-jwASPCrw.js → resource-CGIwSd29.js} +16 -176
- package/dist/revenue-provider-ebsRINY8.js +100 -0
- package/dist/{run-D-NbZLpj.js → run-DsVZ5snL.js} +2 -2
- package/dist/{scan-BmAW413l.js → scan-zKsddO72.js} +1 -1
- package/dist/scope-BvzD-kO4.js +223 -0
- package/dist/{selection-BGi6GyxC.js → selection-CxZoX4NT.js} +2 -2
- package/dist/setup-Bxj22rYi.js +189 -0
- package/dist/{skills-AxAf7bDB.js → skills-DPzlnfCK.js} +3 -3
- package/dist/{skills-FK5aDuNV.js → skills-D_R-lEsK.js} +8 -8
- package/dist/{spinner-DFctF_Jw.js → spinner-TWa0hia6.js} +1 -1
- package/dist/{telemetry-Ch9cCTI-.js → telemetry-DeA1mvnT.js} +1 -1
- package/dist/{token-BGAVPSQc.js → token-C0it-Xh7.js} +1 -1
- package/dist/{ui-4gLyfrgl.js → ui-Dy0b-9L8.js} +4 -3
- package/dist/{update-DIXbL-H9.js → update-B2fWIc4q.js} +2 -2
- package/dist/{upgrade-De7JMI1g.js → upgrade-BmzkTKrh.js} +6 -6
- package/package.json +2 -2
- package/dist/dev-Dx99K183.js +0 -22
- package/dist/publish-BPeuc3lq.js +0 -35
- package/dist/push-DcSQ4odB.js +0 -35
- /package/dist/{reports-DqMs9xNR.js → reports-CfJqoava.js} +0 -0
- /package/dist/{storekit-CC4gnTI6.js → storekit-Cj9Cpjcz.js} +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { r as ApiError } from "./command-CMIz81Da.js";
|
|
2
|
+
import { h as listProjects } from "./resources-Bf9O1JNM.js";
|
|
3
|
+
import { n as emitJson, t as apiCall } from "./api-output-aJNw7Syy.js";
|
|
4
|
+
import { f as saveBundleId, i as RefusedByApi, r as pickScope, s as getBundleIdSuggestions } from "./scope-BvzD-kO4.js";
|
|
5
|
+
|
|
6
|
+
//#region src/commands/resource/bundle-id.ts
|
|
7
|
+
const noun = (platform) => platform === "android" ? "package name" : "bundle ID";
|
|
8
|
+
const text = (value) => typeof value === "string" && value.trim() !== "" ? value.trim() : void 0;
|
|
9
|
+
function testModeExposure(chosen, candidates) {
|
|
10
|
+
const exposed = candidates.filter((candidate) => candidate.production_devices > 0 && candidate.bundle_id !== chosen && !candidate.bundle_id.startsWith(`${chosen}.`));
|
|
11
|
+
return {
|
|
12
|
+
devices: exposed.reduce((sum, candidate) => sum + candidate.production_devices, 0),
|
|
13
|
+
bundleIds: exposed.map((candidate) => candidate.bundle_id)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
async function suggestions(ctx, api, applicationId) {
|
|
17
|
+
try {
|
|
18
|
+
return await apiCall(ctx, "Reading what the SDK reported", () => getBundleIdSuggestions(api, applicationId));
|
|
19
|
+
} catch (error) {
|
|
20
|
+
if (error instanceof RefusedByApi) return null;
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function exposureLine(exposure, windowDays) {
|
|
25
|
+
return `${exposure.devices} production device${exposure.devices === 1 ? "" : "s"} in the last ${windowDays} days used ${exposure.bundleIds.join(", ")}, and would run in test mode.`;
|
|
26
|
+
}
|
|
27
|
+
async function testModeWarning(ctx, api, applicationId, bundleId) {
|
|
28
|
+
const read = await suggestions(ctx, api, applicationId);
|
|
29
|
+
if (!read?.available) return void 0;
|
|
30
|
+
const exposure = testModeExposure(bundleId, read.candidates);
|
|
31
|
+
if (exposure.devices === 0) return void 0;
|
|
32
|
+
return `Saving the bundle ID ${bundleId}: ${exposureLine(exposure, read.window_days)}`;
|
|
33
|
+
}
|
|
34
|
+
function candidateLine(candidate) {
|
|
35
|
+
const seen = candidate.last_seen_at.slice(0, 10);
|
|
36
|
+
const country = candidate.top_country ? `, mostly ${candidate.top_country}` : "";
|
|
37
|
+
return `\`${candidate.bundle_id}\` ${candidate.production_devices} production, ${candidate.sandbox_devices} sandbox devices, last seen ${seen}${country}`;
|
|
38
|
+
}
|
|
39
|
+
async function runBundleId(ctx) {
|
|
40
|
+
const { api } = ctx;
|
|
41
|
+
const scope = await pickScope(ctx, api, true);
|
|
42
|
+
const applicationId = scope.applicationId;
|
|
43
|
+
if (!applicationId) throw new Error("No app found in this project. Pass --app <id>.");
|
|
44
|
+
const platform = (scope.appPlatform ?? "").toLowerCase();
|
|
45
|
+
if (platform !== "ios" && platform !== "android") throw new Error("Only iOS and Android apps have a bundle ID.");
|
|
46
|
+
const saved = text((await listProjects(api)).flatMap((project) => project.applications ?? []).find((candidate) => String(candidate.id) === applicationId)?.bundle_id) ?? null;
|
|
47
|
+
const name = scope.appName ?? applicationId;
|
|
48
|
+
const wanted = text(ctx.argv.value);
|
|
49
|
+
const read = await suggestions(ctx, api, applicationId);
|
|
50
|
+
if (!wanted) {
|
|
51
|
+
if (ctx.json) return emitJson(ctx, {
|
|
52
|
+
application_id: applicationId,
|
|
53
|
+
platform,
|
|
54
|
+
bundle_id: saved,
|
|
55
|
+
suggestions: read
|
|
56
|
+
});
|
|
57
|
+
ctx.ui.step(saved ? `\`${name}\` has the ${noun(platform)} \`${saved}\`` : `\`${name}\` has no ${noun(platform)} saved`);
|
|
58
|
+
if (!read) return void ctx.ui.info("This Superwall API can't suggest one yet.");
|
|
59
|
+
if (!read.available) return void ctx.ui.info("The SDK's reports couldn't be read just now.");
|
|
60
|
+
if (read.candidates.length === 0) {
|
|
61
|
+
ctx.ui.info(`The SDK reported no ${noun(platform)} in the last ${read.window_days} days.`);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
ctx.ui.info(`What the SDK reported in the last ${read.window_days} days:`);
|
|
65
|
+
for (const candidate of read.candidates) ctx.ui.info(candidateLine(candidate));
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (saved === wanted) {
|
|
69
|
+
if (ctx.json) return emitJson(ctx, {
|
|
70
|
+
application_id: applicationId,
|
|
71
|
+
bundle_id: saved,
|
|
72
|
+
changed: false
|
|
73
|
+
});
|
|
74
|
+
ctx.ui.success(`\`${name}\` already has the ${noun(platform)} \`${saved}\`.`);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const replacing = saved !== null;
|
|
78
|
+
if (replacing && ctx.argv.replace !== true) throw new Error(`\`${name}\` already has the ${noun(platform)} ${saved}. Nothing was changed. Pass --replace to replace it with ${wanted}, once a person has agreed.`);
|
|
79
|
+
const exposure = read?.available ? testModeExposure(wanted, read.candidates) : null;
|
|
80
|
+
const consequences = [replacing ? `This replaces the ${noun(platform)} ${saved} with ${wanted}. Builds whose ${noun(platform)} is neither ${wanted} nor starts with "${wanted}." will run in test mode.` : void 0, exposure && exposure.devices > 0 ? exposureLine(exposure, read?.window_days ?? 30) : void 0].filter((line) => line !== void 0);
|
|
81
|
+
if (ctx.dryRun) {
|
|
82
|
+
if (ctx.json) return emitJson(ctx, {
|
|
83
|
+
dryRun: true,
|
|
84
|
+
application_id: applicationId,
|
|
85
|
+
from: saved,
|
|
86
|
+
to: wanted,
|
|
87
|
+
test_mode: exposure
|
|
88
|
+
});
|
|
89
|
+
ctx.ui.info([`[dry-run] would save the ${noun(platform)} ${wanted} on ${name}.`, ...consequences].join("\n"));
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (consequences.length > 0 && ctx.argv.yes !== true) {
|
|
93
|
+
if (!ctx.interactive) throw new Error(`${consequences.join("\n")}\nNothing was changed. This is a person's decision: once they agree, run it again with --yes.`);
|
|
94
|
+
ctx.ui.warn(consequences.join("\n"));
|
|
95
|
+
if (!await ctx.ui.confirm({ message: `Save ${wanted} as the ${noun(platform)}?` })) return void ctx.ui.warn("Cancelled. Nothing was changed.");
|
|
96
|
+
}
|
|
97
|
+
const appStoreId = text(ctx.argv["app-store-id"]);
|
|
98
|
+
let result;
|
|
99
|
+
try {
|
|
100
|
+
result = await apiCall(ctx, `Saving the ${noun(platform)}`, () => saveBundleId(api, applicationId, {
|
|
101
|
+
bundleId: wanted,
|
|
102
|
+
...appStoreId ? { appStoreId } : {},
|
|
103
|
+
replace: replacing
|
|
104
|
+
}));
|
|
105
|
+
} catch (error) {
|
|
106
|
+
if (error instanceof ApiError && error.status === 409) throw new Error(`${error.message} Nothing was changed. Pass --replace to replace it, once a person has agreed.`);
|
|
107
|
+
throw error;
|
|
108
|
+
}
|
|
109
|
+
if (ctx.json) return emitJson(ctx, {
|
|
110
|
+
application_id: applicationId,
|
|
111
|
+
bundle_id: result.bundle_id,
|
|
112
|
+
app_store_id: result.app_store_id,
|
|
113
|
+
changed: true,
|
|
114
|
+
previous: saved,
|
|
115
|
+
test_mode: exposure
|
|
116
|
+
});
|
|
117
|
+
ctx.ui.success(`\`${name}\` now has the ${noun(platform)} \`${result.bundle_id}\`.`);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
//#endregion
|
|
121
|
+
export { testModeWarning as n, runBundleId as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as writeJson, n as createCommandOutput, o as API_HOST,
|
|
2
|
-
import { i as track, n as maybeShowTelemetryNotice } from "./telemetry-
|
|
3
|
-
import { a as refreshUpdateCheck, i as maybeNotifyUpdate } from "./update-
|
|
4
|
-
import { a as saveSession, i as loadSession, n as resolveAuthToken, o as NotLoggedInError } from "./token-
|
|
5
|
-
import { r as useRenderer, t as selectRenderer } from "./ui-
|
|
1
|
+
import { i as writeJson, n as createCommandOutput, o as API_HOST, w as isNonInteractive } from "./output-C4o2gJ1K.js";
|
|
2
|
+
import { i as track, n as maybeShowTelemetryNotice } from "./telemetry-DeA1mvnT.js";
|
|
3
|
+
import { a as refreshUpdateCheck, i as maybeNotifyUpdate } from "./update-B2fWIc4q.js";
|
|
4
|
+
import { a as saveSession, i as loadSession, n as resolveAuthToken, o as NotLoggedInError } from "./token-C0it-Xh7.js";
|
|
5
|
+
import { r as useRenderer, t as selectRenderer } from "./ui-Dy0b-9L8.js";
|
|
6
6
|
import pc from "picocolors";
|
|
7
7
|
import { resolve } from "node:path";
|
|
8
8
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import "./output-
|
|
2
|
-
import "./telemetry-
|
|
3
|
-
import "./update-
|
|
4
|
-
import "./token-
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
6
|
-
import "./ui-
|
|
7
|
-
import "./skills-
|
|
1
|
+
import "./output-C4o2gJ1K.js";
|
|
2
|
+
import "./telemetry-DeA1mvnT.js";
|
|
3
|
+
import "./update-B2fWIc4q.js";
|
|
4
|
+
import "./token-C0it-Xh7.js";
|
|
5
|
+
import { t as defineCommand } from "./command-CMIz81Da.js";
|
|
6
|
+
import "./ui-Dy0b-9L8.js";
|
|
7
|
+
import "./skills-DPzlnfCK.js";
|
|
8
8
|
import "./spawn-DSoTXy_j.js";
|
|
9
|
-
import "./login-
|
|
10
|
-
import { n as allDeps, r as readPackageJson, t as scanProject } from "./scan-
|
|
11
|
-
import "./drivers-
|
|
12
|
-
import "./hosted-
|
|
13
|
-
import { t as detectExisting } from "./existing-
|
|
14
|
-
import "./spinner-
|
|
9
|
+
import "./login-Do4wFuLv.js";
|
|
10
|
+
import { n as allDeps, r as readPackageJson, t as scanProject } from "./scan-zKsddO72.js";
|
|
11
|
+
import "./drivers-Qx9LxmRN.js";
|
|
12
|
+
import "./hosted-CXe9TrWx.js";
|
|
13
|
+
import { t as detectExisting } from "./existing-AVEfZu2A.js";
|
|
14
|
+
import "./spinner-TWa0hia6.js";
|
|
15
15
|
import { b as platformLabel, h as listProjects, n as createApplication, p as listApplications } from "./resources-Bf9O1JNM.js";
|
|
16
|
-
import { C as writeApp } from "./selection-
|
|
17
|
-
import "./org-
|
|
18
|
-
import { r as resolveScopeFromKey } from "./bind-
|
|
19
|
-
import { _ as requireApi, b as requirePlatform, g as LoginRequiredError, o as gitAvailable, v as projectPackageName } from "./pipeline-
|
|
20
|
-
import "./actions-
|
|
21
|
-
import "./app-
|
|
22
|
-
import "./run-
|
|
23
|
-
import { b as writeTemplate, c as migrationFor, d as projectDirOf, f as scaffoldFromPaywall, i as startStudio, n as migrationNextSteps, s as isSuperwallProject, t as askStudio, u as offerMigration, v as starterConfig, x as slugOf, y as writeSurfaceFiles } from "./open-studio-
|
|
24
|
-
import "./dev-
|
|
16
|
+
import { C as writeApp } from "./selection-CxZoX4NT.js";
|
|
17
|
+
import "./org-sj7uyvp-.js";
|
|
18
|
+
import { r as resolveScopeFromKey } from "./bind-YrJvuRF9.js";
|
|
19
|
+
import { _ as requireApi, b as requirePlatform, g as LoginRequiredError, o as gitAvailable, v as projectPackageName } from "./pipeline-BqzqZhX1.js";
|
|
20
|
+
import "./actions-B7ym3oVS.js";
|
|
21
|
+
import "./app-DH6U8yuI.js";
|
|
22
|
+
import "./run-DsVZ5snL.js";
|
|
23
|
+
import { b as writeTemplate, c as migrationFor, d as projectDirOf, f as scaffoldFromPaywall, i as startStudio, n as migrationNextSteps, s as isSuperwallProject, t as askStudio, u as offerMigration, v as starterConfig, x as slugOf, y as writeSurfaceFiles } from "./open-studio-DOw-6ydc.js";
|
|
24
|
+
import "./dev-DmB3XqaJ.js";
|
|
25
25
|
import pc from "picocolors";
|
|
26
26
|
import * as path from "node:path";
|
|
27
27
|
import * as os$1 from "node:os";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./output-C4o2gJ1K.js";
|
|
2
|
+
import "./telemetry-DeA1mvnT.js";
|
|
3
|
+
import "./update-B2fWIc4q.js";
|
|
4
|
+
import "./token-C0it-Xh7.js";
|
|
5
|
+
import "./command-CMIz81Da.js";
|
|
6
|
+
import "./ui-Dy0b-9L8.js";
|
|
7
|
+
import "./skills-DPzlnfCK.js";
|
|
8
|
+
import "./spawn-DSoTXy_j.js";
|
|
9
|
+
import "./login-Do4wFuLv.js";
|
|
10
|
+
import "./scan-zKsddO72.js";
|
|
11
|
+
import "./hosted-CXe9TrWx.js";
|
|
12
|
+
import "./spinner-TWa0hia6.js";
|
|
13
|
+
import "./resources-Bf9O1JNM.js";
|
|
14
|
+
import "./selection-CxZoX4NT.js";
|
|
15
|
+
import "./org-sj7uyvp-.js";
|
|
16
|
+
import "./bind-YrJvuRF9.js";
|
|
17
|
+
import "./pipeline-BqzqZhX1.js";
|
|
18
|
+
import "./actions-B7ym3oVS.js";
|
|
19
|
+
import "./app-DH6U8yuI.js";
|
|
20
|
+
import { t as runDev } from "./dev-DmB3XqaJ.js";
|
|
21
|
+
|
|
22
|
+
export { runDev };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as ApiError, t as defineCommand } from "./command-
|
|
3
|
-
import { n as ui } from "./ui-
|
|
4
|
-
import {
|
|
1
|
+
import { x as VERSION } from "./output-C4o2gJ1K.js";
|
|
2
|
+
import { r as ApiError, t as defineCommand } from "./command-CMIz81Da.js";
|
|
3
|
+
import { n as ui } from "./ui-Dy0b-9L8.js";
|
|
4
|
+
import { i as openBrowser } from "./login-Do4wFuLv.js";
|
|
5
5
|
import { D as versionProducts, S as promotePaywallVersion, p as listApplications, w as pushPaywallVersion } from "./resources-Bf9O1JNM.js";
|
|
6
|
-
import { A as assetBaseUrl, M as syncAssets, O as frameworkVersion, _ as collectProjectDeclarations, i as projectDirs, j as requireAssets, k as loadFramework, l as LAYOUT_HINT, o as requireProject, r as projectDir, v as writeProjectTypes, x as readLock } from "./selection-
|
|
7
|
-
import { _ as requireApi, a as pushSource, c as warnNotPortable, f as planTargets, h as resolveBinding, l as fetchProducts, m as wantedPlatforms, s as collectSourceFiles, u as projectForApplication, x as resolveApps, y as writeProjectScaffold } from "./pipeline-
|
|
6
|
+
import { A as assetBaseUrl, M as syncAssets, O as frameworkVersion, _ as collectProjectDeclarations, i as projectDirs, j as requireAssets, k as loadFramework, l as LAYOUT_HINT, o as requireProject, r as projectDir, v as writeProjectTypes, x as readLock } from "./selection-CxZoX4NT.js";
|
|
7
|
+
import { _ as requireApi, a as pushSource, c as warnNotPortable, f as planTargets, h as resolveBinding, l as fetchProducts, m as wantedPlatforms, s as collectSourceFiles, u as projectForApplication, x as resolveApps, y as writeProjectScaffold } from "./pipeline-BqzqZhX1.js";
|
|
8
8
|
import pc from "picocolors";
|
|
9
9
|
import * as path from "node:path";
|
|
10
10
|
import * as fs from "node:fs";
|
|
@@ -445,7 +445,12 @@ const runDev = defineCommand({
|
|
|
445
445
|
return [...many ? [pc.bold(slug(one.root))] : [], ...one.surfaces.map((surface) => `${many ? " " : ""}${surface.kind}/${pc.bold(surface.id)} ` + pc.dim(`${url}${prefix}${surface.kind}/${surface.id}`))];
|
|
446
446
|
});
|
|
447
447
|
ui.step([`Studio ${pc.green(url)}`, ...rows].join("\n"));
|
|
448
|
-
if (typeof context.argv.open === "string" && context.argv.open !== "")
|
|
448
|
+
if (typeof context.argv.open === "string" && context.argv.open !== "") {
|
|
449
|
+
const target = `${url}${context.argv.open.replace(/^\//, "")}`;
|
|
450
|
+
openBrowser(target).then((opened) => {
|
|
451
|
+
if (!opened) ui.warn(`Couldn't open a browser here. Open ${target} yourself.`);
|
|
452
|
+
});
|
|
453
|
+
}
|
|
449
454
|
const network = server.resolvedUrls?.network[0];
|
|
450
455
|
if (network) {
|
|
451
456
|
const deviceUrl = `${network}device`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./telemetry-
|
|
3
|
-
import "./update-
|
|
4
|
-
import { i as loadSession } from "./token-
|
|
5
|
-
import { t as defineCommand } from "./command-
|
|
6
|
-
import { a as THEME, n as ui, o as fg } from "./ui-
|
|
1
|
+
import { S as apiKeyFromEnv } from "./output-C4o2gJ1K.js";
|
|
2
|
+
import "./telemetry-DeA1mvnT.js";
|
|
3
|
+
import "./update-B2fWIc4q.js";
|
|
4
|
+
import { i as loadSession } from "./token-C0it-Xh7.js";
|
|
5
|
+
import { t as defineCommand } from "./command-CMIz81Da.js";
|
|
6
|
+
import { a as THEME, n as ui, o as fg } from "./ui-Dy0b-9L8.js";
|
|
7
7
|
import "./spawn-DSoTXy_j.js";
|
|
8
|
-
import { t as scanProject } from "./scan-
|
|
9
|
-
import { t as detectDrivers } from "./drivers-
|
|
10
|
-
import "./hosted-
|
|
11
|
-
import { t as detectExisting } from "./existing-
|
|
8
|
+
import { t as scanProject } from "./scan-zKsddO72.js";
|
|
9
|
+
import { t as detectDrivers } from "./drivers-Qx9LxmRN.js";
|
|
10
|
+
import "./hosted-CXe9TrWx.js";
|
|
11
|
+
import { t as detectExisting } from "./existing-AVEfZu2A.js";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/account/doctor.ts
|
|
14
14
|
const runDoctor = defineCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { x as VERSION } from "./output-C4o2gJ1K.js";
|
|
2
2
|
import { n as readVersion, r as spawnStream, t as onPath } from "./spawn-DSoTXy_j.js";
|
|
3
|
-
import { n as getHostedAuthToken, r as getHostedStatus, t as getHostedAnthropicBaseUrl } from "./hosted-
|
|
3
|
+
import { n as getHostedAuthToken, r as getHostedStatus, t as getHostedAnthropicBaseUrl } from "./hosted-CXe9TrWx.js";
|
|
4
4
|
import { basename, join } from "node:path";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
6
|
import { readFile, rm } from "node:fs/promises";
|