skydive-cli 0.4.0-beta.1105 → 0.4.0-beta.1112
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/js/bin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as ensureActiveOrganization, D as setActiveWorkspace, E as listWorkspaces, O as name, T as getSessionIdentity, a as installCrashHandler, k as version, t as maybeStartProfiling, u as brandHelpArt, w as getActiveWorkspaceId, x as themes } from "./profiler-
|
|
2
|
+
import { C as ensureActiveOrganization, D as setActiveWorkspace, E as listWorkspaces, O as name, T as getSessionIdentity, a as installCrashHandler, k as version, t as maybeStartProfiling, u as brandHelpArt, w as getActiveWorkspaceId, x as themes } from "./profiler-DORuJUS8.mjs";
|
|
3
3
|
import { A as getStoredApiKeyWorkspaceName, C as getLastSeenVersion, F as resolveManagementAuth, I as resolveSession, M as resolveAppUrl, N as resolveChatAuth, O as getShareMachineDefault, P as resolveConfig, R as saveConfig, S as getConfigPath, T as getPromptHistoryPath, V as setLastSeenVersion, _ as API_KEY_PREFIX, b as PREFERENCES, g as API_KEY_FAMILY_PREFIX, h as API_KEYS_URL, i as resolveAgent, j as getUpdateCheckDisabled, k as getStoredApiKeyId, v as DEFAULT_API_URL, w as getPreference, x as deleteConfig, z as saveSession } from "./print-CiaU2ygh.mjs";
|
|
4
4
|
import { n as printError, r as printTable, t as output } from "./output-DYzzdXYV.mjs";
|
|
5
5
|
import { n as createRestClient, t as HttpError } from "./rest-CG7VpQ56.mjs";
|
|
@@ -1230,6 +1230,15 @@ const PINNED_BUN_VERSION = "1.3.14";
|
|
|
1230
1230
|
const BUN_RELEASE_BASE = process.env["SKYDIVE_BUN_RELEASE_BASE"] ?? "https://github.com/oven-sh/bun/releases/download";
|
|
1231
1231
|
/** Guard env var: set on the child so a re-exec can never recurse. */
|
|
1232
1232
|
const REEXEC_GUARD = "SKYDIVE_BUN_REEXEC";
|
|
1233
|
+
/**
|
|
1234
|
+
* Whether this process is the Bun child that `chat` re-exec'd itself into.
|
|
1235
|
+
* The parent Node process is still alive, blocked on spawnSync, and already
|
|
1236
|
+
* ran the per-invocation startup notices (update check, what's-new) — so the
|
|
1237
|
+
* child must not repeat them or the user sees each notice twice.
|
|
1238
|
+
*/
|
|
1239
|
+
function isBunReexecChild(env = process.env) {
|
|
1240
|
+
return env[REEXEC_GUARD] === "1";
|
|
1241
|
+
}
|
|
1233
1242
|
function isBun() {
|
|
1234
1243
|
return typeof process !== "undefined" && "bun" in process.versions;
|
|
1235
1244
|
}
|
|
@@ -1505,7 +1514,7 @@ const importCommand = {
|
|
|
1505
1514
|
process.exit(1);
|
|
1506
1515
|
}
|
|
1507
1516
|
}
|
|
1508
|
-
const { runChat } = await import("./boot-
|
|
1517
|
+
const { runChat } = await import("./boot-DDtm3bc5.mjs");
|
|
1509
1518
|
await runChat({
|
|
1510
1519
|
appUrl,
|
|
1511
1520
|
sessionToken: session.value.sessionToken,
|
|
@@ -1917,7 +1926,7 @@ const chatCommand = {
|
|
|
1917
1926
|
sessionToken: auth.value.token,
|
|
1918
1927
|
agentSelector: argv.agent ?? null
|
|
1919
1928
|
});
|
|
1920
|
-
const { runChat } = await import("./boot-
|
|
1929
|
+
const { runChat } = await import("./boot-DDtm3bc5.mjs");
|
|
1921
1930
|
await runChat({
|
|
1922
1931
|
appUrl: auth.value.appUrl,
|
|
1923
1932
|
sessionToken: auth.value.token,
|
|
@@ -2276,7 +2285,7 @@ const switchCommand = {
|
|
|
2276
2285
|
printError("The workspace picker needs the Bun runtime and it could not be set up automatically. Pass a workspace slug instead, or install Bun and retry.");
|
|
2277
2286
|
process.exit(1);
|
|
2278
2287
|
}
|
|
2279
|
-
const { runWorkspacePicker } = await import("./boot-
|
|
2288
|
+
const { runWorkspacePicker } = await import("./boot-DDtm3bc5.mjs");
|
|
2280
2289
|
await runWorkspacePicker(session);
|
|
2281
2290
|
return;
|
|
2282
2291
|
}
|
|
@@ -3892,7 +3901,7 @@ if (process.argv.includes(PORTAL_DAEMON_FLAG)) {
|
|
|
3892
3901
|
} else runCli();
|
|
3893
3902
|
function runCli() {
|
|
3894
3903
|
const completionProbe = isCompletionProbe(process.argv);
|
|
3895
|
-
if (!completionProbe) {
|
|
3904
|
+
if (!completionProbe && !isBunReexecChild()) {
|
|
3896
3905
|
maybePrintWhatsNew();
|
|
3897
3906
|
setupUpdateCheck(hideBin(process.argv));
|
|
3898
3907
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { D as setActiveWorkspace, E as listWorkspaces, S as themesForMode, _ as themeForMode, a as installCrashHandler, b as themeVersion, c as MARK_CELLS, d as DEFAULT_THEME_ID, f as applyTheme, g as theme, h as noColorRequested, i as writeArtifact, l as WORDMARK, m as monoTheme, n as profilingEnabled, o as buildCrashReport, p as findTheme, r as record, s as writeCrashReport, v as themeMode, w as getActiveWorkspaceId, y as themeModeFromColorFgBg } from "./profiler-
|
|
2
|
+
import { D as setActiveWorkspace, E as listWorkspaces, S as themesForMode, _ as themeForMode, a as installCrashHandler, b as themeVersion, c as MARK_CELLS, d as DEFAULT_THEME_ID, f as applyTheme, g as theme, h as noColorRequested, i as writeArtifact, l as WORDMARK, m as monoTheme, n as profilingEnabled, o as buildCrashReport, p as findTheme, r as record, s as writeCrashReport, v as themeMode, w as getActiveWorkspaceId, y as themeModeFromColorFgBg } from "./profiler-DORuJUS8.mjs";
|
|
3
3
|
import { B as saveTheme, D as getSavedTheme, E as getReviewStateDir, L as resolveWebUrl, S as getConfigPath, c as cardActionErrorMessage, d as reconcileMaskedInput, f as resolveConnectUrl, i as resolveAgent, l as parseExternalOauthConnectParams, m as specKeyFor, p as parseConnectCard, s as MASK_CHAR, u as parseOauthConnectParams, v as DEFAULT_API_URL, y as DEFAULT_APP_URL } from "./print-CiaU2ygh.mjs";
|
|
4
4
|
import { a as errorMessage, i as sendErrorMessage, n as createRestClient, o as isRecord, r as errorDetail, t as HttpError } from "./rest-CG7VpQ56.mjs";
|
|
5
5
|
import { i as billingBlockedOutcomeFromSendResponse } from "./billing-blocked-CwfG1BTR.mjs";
|