skydive-cli 0.6.0-beta.241 → 0.6.0-beta.243
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 +23 -23
- package/dist/js/{boot-D2wsGHK3.mjs → boot-DkdfKwQy.mjs} +7 -7
- package/dist/js/{client-DJfzYUvy.mjs → client-C9TwWXGI.mjs} +1 -1
- package/dist/js/{client-CG57X0JA.mjs → client-D_mJLEuK.mjs} +1 -1
- package/dist/js/{daemon-DbKeAwkj.mjs → daemon-CGj9unLM.mjs} +3 -3
- package/dist/js/{daemon-CQIg-oge.mjs → daemon-D_f48hdv.mjs} +2 -2
- package/dist/js/daemon-client-DJJPzQPj.mjs +8 -0
- package/dist/js/{daemon-client-BbDw7t4U.mjs → daemon-client-DXITkEWy.mjs} +1 -1
- package/dist/js/{dist-CRtjM7ba.mjs → dist-C-qLSjvr.mjs} +28 -15
- package/dist/js/{forward-C-f04uyE.mjs → forward-DxbobE7J.mjs} +1 -1
- package/dist/js/{install-CoR-tujr.mjs → install-DCJEVf1T.mjs} +2 -2
- package/dist/js/{localhost-cert-Bn-UBUmj.mjs → localhost-cert-Dq2MRdXk.mjs} +1 -1
- package/dist/js/{print-Bj_-r1JJ.mjs → print-CBBboXnk.mjs} +1 -1
- package/dist/js/{print-OQ2JaCMT.mjs → print-DtD2vc5J.mjs} +2 -2
- package/dist/js/{print-share-Du_Tyql4.mjs → print-share-Dcoh4Zha.mjs} +2 -2
- package/dist/js/{rest-BR-_VvaA.mjs → rest-C-0HnGC7.mjs} +1 -1
- package/dist/js/{rest-Ch6b342f.mjs → rest-D09GfLaR.mjs} +1 -1
- package/dist/js/{tls-cert-Rua2oV7n.mjs → tls-cert-8j8y2A31.mjs} +1 -1
- package/dist/js/tls-cert-BQDesyjU.mjs +4 -0
- package/package.json +9 -8
- package/dist/js/daemon-client-D5VXn6yo.mjs +0 -8
- package/dist/js/tls-cert-BpCaD5AT.mjs +0 -4
package/dist/js/bin.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as version, s as name, t as createRestClient } from "./rest-
|
|
3
|
-
import { A as getPreference, B as resolveChatAuth, C as DEFAULT_API_URL, D as getConfigPath, E as deleteConfig, F as getStoredApiKeyId, G as saveConfig, H as resolveManagementAuth, I as getStoredApiKeyWorkspaceName, J as setLastSeenVersion, K as saveSession, L as getUpdateCheckDisabled, O as getDefaultAgent, P as getShareMachineDefault, S as API_KEY_PREFIX, T as PREFERENCES, U as resolveSession$1, V as resolveConfig, b as API_KEYS_URL, i as resolveAgent$1, j as getPromptHistoryPath, k as getLastSeenVersion, x as API_KEY_FAMILY_PREFIX, z as resolveAppUrl } from "./print-
|
|
4
|
-
import { A as aliasActivationHint, B as getActiveWorkspaceId, E as themes, F as SUPPORTED_SHELLS, H as listWorkspaces, I as defaultInstallEnv, L as detectShell, M as installAgentAlias, N as slugifyAliasName, O as buildImportSeedPrompt, P as takenAliasNames, R as openBestEffort, U as resolveWorkspaceId, V as getSessionIdentity, W as setActiveWorkspace, c as brandHelpArt, d as maybeStartProfiling, f as profileDir, j as dedupeAliasName, k as machineOsFromPlatform, t as installCrashHandler, u as getAutomaticLogsDir, z as ensureActiveOrganization } from "./install-
|
|
2
|
+
import { c as version, s as name, t as createRestClient } from "./rest-D09GfLaR.mjs";
|
|
3
|
+
import { A as getPreference, B as resolveChatAuth, C as DEFAULT_API_URL, D as getConfigPath, E as deleteConfig, F as getStoredApiKeyId, G as saveConfig, H as resolveManagementAuth, I as getStoredApiKeyWorkspaceName, J as setLastSeenVersion, K as saveSession, L as getUpdateCheckDisabled, O as getDefaultAgent, P as getShareMachineDefault, S as API_KEY_PREFIX, T as PREFERENCES, U as resolveSession$1, V as resolveConfig, b as API_KEYS_URL, i as resolveAgent$1, j as getPromptHistoryPath, k as getLastSeenVersion, x as API_KEY_FAMILY_PREFIX, z as resolveAppUrl } from "./print-CBBboXnk.mjs";
|
|
4
|
+
import { A as aliasActivationHint, B as getActiveWorkspaceId, E as themes, F as SUPPORTED_SHELLS, H as listWorkspaces, I as defaultInstallEnv, L as detectShell, M as installAgentAlias, N as slugifyAliasName, O as buildImportSeedPrompt, P as takenAliasNames, R as openBestEffort, U as resolveWorkspaceId, V as getSessionIdentity, W as setActiveWorkspace, c as brandHelpArt, d as maybeStartProfiling, f as profileDir, j as dedupeAliasName, k as machineOsFromPlatform, t as installCrashHandler, u as getAutomaticLogsDir, z as ensureActiveOrganization } from "./install-DCJEVf1T.mjs";
|
|
5
5
|
import { n as printError, r as printTable, t as output } from "./output-C9mb3sUB.mjs";
|
|
6
6
|
import { t as HttpError } from "./http-error-BF2NZZE3.mjs";
|
|
7
7
|
import "./billing-blocked-D3l5kJlX.mjs";
|
|
8
|
-
import { s as resolveMachineIdentity } from "./client-
|
|
9
|
-
import "./tls-cert-
|
|
8
|
+
import { s as resolveMachineIdentity } from "./client-D_mJLEuK.mjs";
|
|
9
|
+
import "./tls-cert-8j8y2A31.mjs";
|
|
10
10
|
import { i as grantPortalAccess, n as fetchPortalDevices, o as registerPortalDevice, r as findThisDevice, s as revokePortalAccess } from "./api-BFQ4PQDA.mjs";
|
|
11
|
-
import { d as daemonPaths, i as queryDaemonStatus, n as ensureDaemonRunning, s as stopDaemon, u as PORTAL_DAEMON_FLAG } from "./daemon-
|
|
11
|
+
import { d as daemonPaths, i as queryDaemonStatus, n as ensureDaemonRunning, s as stopDaemon, u as PORTAL_DAEMON_FLAG } from "./daemon-D_f48hdv.mjs";
|
|
12
12
|
import { a as FS_MAX_BLOB_BYTES, i as streamSpecToQuery, n as DEFAULT_EXEC_TIMEOUT_MS, o as decodeFsResponse, r as SANDBOX_STREAM_PATH, s as encodeFsRequest, t as SandboxStream } from "./client-Cxk3khQu.mjs";
|
|
13
13
|
import { hideBin } from "yargs/helpers";
|
|
14
14
|
import yargs from "yargs";
|
|
@@ -1175,7 +1175,7 @@ async function resolveTargetAgentId(client, selector) {
|
|
|
1175
1175
|
printError("Missing --agent <id or name>. Run `skydive agents list` for candidates.");
|
|
1176
1176
|
process.exit(1);
|
|
1177
1177
|
}
|
|
1178
|
-
const { resolveAgent } = await import("./print-
|
|
1178
|
+
const { resolveAgent } = await import("./print-DtD2vc5J.mjs");
|
|
1179
1179
|
const result = await client.listAgents({
|
|
1180
1180
|
scope: "org",
|
|
1181
1181
|
limit: 100
|
|
@@ -1984,7 +1984,7 @@ const importCommand = {
|
|
|
1984
1984
|
process.exit(1);
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
|
-
const { runChat } = await import("./boot-
|
|
1987
|
+
const { runChat } = await import("./boot-DkdfKwQy.mjs");
|
|
1988
1988
|
await runChat({
|
|
1989
1989
|
appUrl,
|
|
1990
1990
|
sessionToken: session.value.sessionToken,
|
|
@@ -2017,7 +2017,7 @@ async function runImportPrintMode({ argv, appUrl }) {
|
|
|
2017
2017
|
printError(`${session.error.message} For non-interactive use, run \`skydive auth login --web\` first, or set SKYDIVE_SESSION_TOKEN.`);
|
|
2018
2018
|
process.exit(1);
|
|
2019
2019
|
}
|
|
2020
|
-
const { connectMachineShare } = await import("./print-share-
|
|
2020
|
+
const { connectMachineShare } = await import("./print-share-Dcoh4Zha.mjs");
|
|
2021
2021
|
const machineShare = await connectMachineShare({
|
|
2022
2022
|
appUrl,
|
|
2023
2023
|
sessionToken: session.value.sessionToken,
|
|
@@ -2028,7 +2028,7 @@ async function runImportPrintMode({ argv, appUrl }) {
|
|
|
2028
2028
|
projectDir: process.cwd(),
|
|
2029
2029
|
os: machineOsFromPlatform(process.platform)
|
|
2030
2030
|
}) + (extra ? `\n\nAdditional instructions: ${extra}` : "");
|
|
2031
|
-
const { runPrint } = await import("./print-
|
|
2031
|
+
const { runPrint } = await import("./print-DtD2vc5J.mjs");
|
|
2032
2032
|
try {
|
|
2033
2033
|
const result = await runPrint({
|
|
2034
2034
|
appUrl,
|
|
@@ -2451,7 +2451,7 @@ const chatCommand = {
|
|
|
2451
2451
|
sessionToken: auth.value.token,
|
|
2452
2452
|
agentSelector: argv.agent ?? null
|
|
2453
2453
|
});
|
|
2454
|
-
const { runChat } = await import("./boot-
|
|
2454
|
+
const { runChat } = await import("./boot-DkdfKwQy.mjs");
|
|
2455
2455
|
await runChat({
|
|
2456
2456
|
appUrl: auth.value.appUrl,
|
|
2457
2457
|
sessionToken: auth.value.token,
|
|
@@ -2535,7 +2535,7 @@ async function runPrintMode({ argv, appUrl }) {
|
|
|
2535
2535
|
printError(`${auth.error.message} For non-interactive use, run \`skydive auth login\` first, or set SKYDIVE_API_KEY / SKYDIVE_SESSION_TOKEN.`);
|
|
2536
2536
|
process.exit(1);
|
|
2537
2537
|
}
|
|
2538
|
-
const { runPrint, readStdin } = await import("./print-
|
|
2538
|
+
const { runPrint, readStdin } = await import("./print-DtD2vc5J.mjs");
|
|
2539
2539
|
const workspaceId = await resolveWorkspaceFlag({
|
|
2540
2540
|
appUrl,
|
|
2541
2541
|
sessionToken: auth.value.token,
|
|
@@ -2565,7 +2565,7 @@ async function runPrintMode({ argv, appUrl }) {
|
|
|
2565
2565
|
process.exit(1);
|
|
2566
2566
|
}
|
|
2567
2567
|
} else {
|
|
2568
|
-
const { connectMachineShare } = await import("./print-share-
|
|
2568
|
+
const { connectMachineShare } = await import("./print-share-Dcoh4Zha.mjs");
|
|
2569
2569
|
machineShare = await connectMachineShare({
|
|
2570
2570
|
appUrl: auth.value.appUrl,
|
|
2571
2571
|
sessionToken: auth.value.token,
|
|
@@ -2630,7 +2630,7 @@ const getCommand$1 = {
|
|
|
2630
2630
|
printError(`${auth.error.message} Run \`skydive auth login\` first, or set SKYDIVE_API_KEY / SKYDIVE_SESSION_TOKEN.`);
|
|
2631
2631
|
process.exit(1);
|
|
2632
2632
|
}
|
|
2633
|
-
const { messageGet } = await import("./print-
|
|
2633
|
+
const { messageGet } = await import("./print-DtD2vc5J.mjs");
|
|
2634
2634
|
try {
|
|
2635
2635
|
const result = await messageGet({
|
|
2636
2636
|
appUrl: auth.value.appUrl,
|
|
@@ -2833,7 +2833,7 @@ const switchCommand = {
|
|
|
2833
2833
|
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.");
|
|
2834
2834
|
process.exit(1);
|
|
2835
2835
|
}
|
|
2836
|
-
const { runWorkspacePicker } = await import("./boot-
|
|
2836
|
+
const { runWorkspacePicker } = await import("./boot-DkdfKwQy.mjs");
|
|
2837
2837
|
await runWorkspacePicker(session);
|
|
2838
2838
|
return;
|
|
2839
2839
|
}
|
|
@@ -2912,7 +2912,7 @@ const openCommand = {
|
|
|
2912
2912
|
const agent = argv.agent ? resolveAgent$1((await fetchPortalDevices(session)).agents, argv.agent) : null;
|
|
2913
2913
|
const cwd = argv.cwd ? path.resolve(argv.cwd) : process.cwd();
|
|
2914
2914
|
const { machineName } = await resolveMachineIdentity(null);
|
|
2915
|
-
const { PortalDaemonClient } = await import("./daemon-client-
|
|
2915
|
+
const { PortalDaemonClient } = await import("./daemon-client-DJJPzQPj.mjs");
|
|
2916
2916
|
let lastLine = "";
|
|
2917
2917
|
let signalConnected;
|
|
2918
2918
|
const connected = new Promise((resolve) => {
|
|
@@ -3201,8 +3201,8 @@ const forwardCommand = {
|
|
|
3201
3201
|
const agent = resolveAgent$1((await fetchPortalDevices(session)).agents, argv.agent ?? null);
|
|
3202
3202
|
const targetPort = argv.port;
|
|
3203
3203
|
const localPort = argv["local-port"] ?? targetPort;
|
|
3204
|
-
const { startForward } = await import("./forward-
|
|
3205
|
-
const { defaultTlsCertSource } = await import("./tls-cert-
|
|
3204
|
+
const { startForward } = await import("./forward-DxbobE7J.mjs");
|
|
3205
|
+
const { defaultTlsCertSource } = await import("./tls-cert-BQDesyjU.mjs");
|
|
3206
3206
|
const log = (msg) => console.error(msg);
|
|
3207
3207
|
const listener = await startForward({
|
|
3208
3208
|
auth: session,
|
|
@@ -3272,8 +3272,8 @@ const sandboxCommand = {
|
|
|
3272
3272
|
}).example("skydive sandbox --agent grace", "Live terminal (Ctrl-] detaches)").example("skydive sandbox --agent grace -- tail -n 50 /tmp/harness.log", "One-shot command (use `--` so its flags reach the sandbox)").example("skydive sandbox --agent grace -- sh -c 'ls /tmp | wc -l'", "Shell features go through an explicit `sh -c`"),
|
|
3273
3273
|
handler: async (argv) => {
|
|
3274
3274
|
const session = requireSession(argv);
|
|
3275
|
-
const { createRestClient } = await import("./rest-
|
|
3276
|
-
const { resolveAgent } = await import("./print-
|
|
3275
|
+
const { createRestClient } = await import("./rest-C-0HnGC7.mjs");
|
|
3276
|
+
const { resolveAgent } = await import("./print-DtD2vc5J.mjs");
|
|
3277
3277
|
const client = createRestClient({
|
|
3278
3278
|
appUrl: session.appUrl,
|
|
3279
3279
|
sessionToken: session.sessionToken
|
|
@@ -3565,8 +3565,8 @@ function resolveEditor(override, env, platform = process.platform) {
|
|
|
3565
3565
|
* `sandbox-fs-enabled` kill switch) exits here before any file work.
|
|
3566
3566
|
*/
|
|
3567
3567
|
async function openAgentFs(session, agentSelector) {
|
|
3568
|
-
const { createRestClient } = await import("./rest-
|
|
3569
|
-
const { resolveAgent } = await import("./print-
|
|
3568
|
+
const { createRestClient } = await import("./rest-C-0HnGC7.mjs");
|
|
3569
|
+
const { resolveAgent } = await import("./print-DtD2vc5J.mjs");
|
|
3570
3570
|
let agent;
|
|
3571
3571
|
try {
|
|
3572
3572
|
agent = resolveAgent(await createRestClient({
|
|
@@ -5356,7 +5356,7 @@ if (process.argv.includes(UPDATE_WORKER_FLAG)) {
|
|
|
5356
5356
|
process.exit(0);
|
|
5357
5357
|
}
|
|
5358
5358
|
if (process.argv.includes(PORTAL_DAEMON_FLAG)) {
|
|
5359
|
-
const { runPortalDaemon } = await import("./daemon-
|
|
5359
|
+
const { runPortalDaemon } = await import("./daemon-CGj9unLM.mjs");
|
|
5360
5360
|
runPortalDaemon(process.argv);
|
|
5361
5361
|
} else runCli();
|
|
5362
5362
|
function runCli() {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as errorMessage, i as sendErrorMessage, n as errorDetail, o as isRecord, t as createRestClient } from "./rest-
|
|
3
|
-
import { C as DEFAULT_API_URL, D as getConfigPath, M as getReviewStateDir, N as getSavedTheme, R as recordDefaultAgent, W as resolveWebUrl, _ as computeSettledLabel, c as actionableCardVerb, d as parseOauthConnectParams, f as prioritizeActionableCards, g as composeQuestionAnswerEntries, h as composeQuestionAnswer, i as resolveAgent, l as cardActionErrorMessage, m as resolveConnectUrl, p as reconcileMaskedInput, q as saveTheme, s as MASK_CHAR, u as parseExternalOauthConnectParams, v as parseConnectCard, w as DEFAULT_APP_URL, y as specKeyFor } from "./print-
|
|
4
|
-
import { A as aliasActivationHint, B as getActiveWorkspaceId, C as themeMode, D as themesForMode, H as listWorkspaces, L as detectShell, M as installAgentAlias, N as slugifyAliasName, P as takenAliasNames, R as openBestEffort, S as themeForMode, T as themeVersion, W as setActiveWorkspace, _ as applyTheme, a as writeCrashReport, b as noColorRequested, g as DEFAULT_THEME_ID, h as writeArtifact, i as buildCrashReport, j as dedupeAliasName, k as machineOsFromPlatform, l as splashFitsWidth, m as record, n as disableTerminalAutowrap, o as MARK_CELLS, p as profilingEnabled, r as restoreTerminalAutowrap, s as WORDMARK, t as installCrashHandler, v as findTheme, w as themeModeFromColorFgBg, x as theme, y as monoTheme } from "./install-
|
|
2
|
+
import { a as errorMessage, i as sendErrorMessage, n as errorDetail, o as isRecord, t as createRestClient } from "./rest-D09GfLaR.mjs";
|
|
3
|
+
import { C as DEFAULT_API_URL, D as getConfigPath, M as getReviewStateDir, N as getSavedTheme, R as recordDefaultAgent, W as resolveWebUrl, _ as computeSettledLabel, c as actionableCardVerb, d as parseOauthConnectParams, f as prioritizeActionableCards, g as composeQuestionAnswerEntries, h as composeQuestionAnswer, i as resolveAgent, l as cardActionErrorMessage, m as resolveConnectUrl, p as reconcileMaskedInput, q as saveTheme, s as MASK_CHAR, u as parseExternalOauthConnectParams, v as parseConnectCard, w as DEFAULT_APP_URL, y as specKeyFor } from "./print-CBBboXnk.mjs";
|
|
4
|
+
import { A as aliasActivationHint, B as getActiveWorkspaceId, C as themeMode, D as themesForMode, H as listWorkspaces, L as detectShell, M as installAgentAlias, N as slugifyAliasName, P as takenAliasNames, R as openBestEffort, S as themeForMode, T as themeVersion, W as setActiveWorkspace, _ as applyTheme, a as writeCrashReport, b as noColorRequested, g as DEFAULT_THEME_ID, h as writeArtifact, i as buildCrashReport, j as dedupeAliasName, k as machineOsFromPlatform, l as splashFitsWidth, m as record, n as disableTerminalAutowrap, o as MARK_CELLS, p as profilingEnabled, r as restoreTerminalAutowrap, s as WORDMARK, t as installCrashHandler, v as findTheme, w as themeModeFromColorFgBg, x as theme, y as monoTheme } from "./install-DCJEVf1T.mjs";
|
|
5
5
|
import { t as HttpError } from "./http-error-BF2NZZE3.mjs";
|
|
6
6
|
import { i as billingBlockedOutcomeFromSendResponse } from "./billing-blocked-D3l5kJlX.mjs";
|
|
7
|
-
import { n as PortalClient } from "./client-
|
|
8
|
-
import { t as defaultTlsCertSource } from "./tls-cert-
|
|
7
|
+
import { n as PortalClient } from "./client-D_mJLEuK.mjs";
|
|
8
|
+
import { t as defaultTlsCertSource } from "./tls-cert-8j8y2A31.mjs";
|
|
9
9
|
import "./api-BFQ4PQDA.mjs";
|
|
10
|
-
import "./daemon-
|
|
10
|
+
import "./daemon-D_f48hdv.mjs";
|
|
11
11
|
import { t as SandboxStream } from "./client-Cxk3khQu.mjs";
|
|
12
|
-
import { t as PortalDaemonClient } from "./daemon-client-
|
|
12
|
+
import { t as PortalDaemonClient } from "./daemon-client-DXITkEWy.mjs";
|
|
13
13
|
import { t as runRawPtyPassthrough } from "./raw-pty-B-WKaaE3.mjs";
|
|
14
14
|
import * as os$1 from "node:os";
|
|
15
15
|
import { homedir, platform, release, tmpdir } from "node:os";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as PortalClient, r as RATE_LIMIT_STAND_DOWN_MS, t as AUTH_STAND_DOWN_MS } from "./client-
|
|
2
|
+
import { n as PortalClient, r as RATE_LIMIT_STAND_DOWN_MS, t as AUTH_STAND_DOWN_MS } from "./client-D_mJLEuK.mjs";
|
|
3
3
|
import "./api-BFQ4PQDA.mjs";
|
|
4
4
|
|
|
5
5
|
export { PortalClient };
|
|
@@ -161,7 +161,7 @@ function errorMessage(err) {
|
|
|
161
161
|
* the commit time of the built tree is one monotonic clock they share.
|
|
162
162
|
*/
|
|
163
163
|
function portalDaemonBuild() {
|
|
164
|
-
return "
|
|
164
|
+
return "1794192832";
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Whether a client carrying `mine` should replace a running daemon carrying
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./client-
|
|
3
|
-
import "./tls-cert-
|
|
2
|
+
import "./client-D_mJLEuK.mjs";
|
|
3
|
+
import "./tls-cert-8j8y2A31.mjs";
|
|
4
4
|
import "./api-BFQ4PQDA.mjs";
|
|
5
|
-
import { a as runPortalDaemon, c as stopDaemonForHandoff, i as queryDaemonStatus, n as ensureDaemonRunning, o as startPortalDaemon, r as isDaemonListening, s as stopDaemon, t as PortalDaemon } from "./daemon-
|
|
5
|
+
import { a as runPortalDaemon, c as stopDaemonForHandoff, i as queryDaemonStatus, n as ensureDaemonRunning, o as startPortalDaemon, r as isDaemonListening, s as stopDaemon, t as PortalDaemon } from "./daemon-D_f48hdv.mjs";
|
|
6
6
|
|
|
7
7
|
export { runPortalDaemon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as portalDaemonBuild, i as isNewerBuild, n as PortalClient, o as isRecord } from "./client-
|
|
3
|
-
import { t as defaultTlsCertSource } from "./tls-cert-
|
|
2
|
+
import { a as portalDaemonBuild, i as isNewerBuild, n as PortalClient, o as isRecord } from "./client-D_mJLEuK.mjs";
|
|
3
|
+
import { t as defaultTlsCertSource } from "./tls-cert-8j8y2A31.mjs";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { access, appendFile, mkdir, readFile, stat, unlink, writeFile } from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { d as daemonPaths, f as encodeLine, l as LOCAL_PROTOCOL_VERSION, m as parseDaemonMessage, n as ensureDaemonRunning, p as makeLineParser } from "./daemon-
|
|
2
|
+
import { d as daemonPaths, f as encodeLine, l as LOCAL_PROTOCOL_VERSION, m as parseDaemonMessage, n as ensureDaemonRunning, p as makeLineParser } from "./daemon-D_f48hdv.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { connect } from "node:net";
|
|
5
5
|
|
|
@@ -505,12 +505,16 @@ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
505
505
|
const tty$1 = __require("tty");
|
|
506
506
|
const hasFlag = require_has_flag();
|
|
507
507
|
const { env } = process;
|
|
508
|
-
let
|
|
509
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never"))
|
|
510
|
-
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always"))
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
508
|
+
let flagForceColor;
|
|
509
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
510
|
+
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
511
|
+
function envForceColor() {
|
|
512
|
+
if ("FORCE_COLOR" in env) {
|
|
513
|
+
if (env.FORCE_COLOR === "true") return 1;
|
|
514
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
515
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
514
518
|
function translateLevel(level) {
|
|
515
519
|
if (level === 0) return false;
|
|
516
520
|
return {
|
|
@@ -520,10 +524,15 @@ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
520
524
|
has16m: level >= 3
|
|
521
525
|
};
|
|
522
526
|
}
|
|
523
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
527
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
528
|
+
const noFlagForceColor = envForceColor();
|
|
529
|
+
if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
|
|
530
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
524
531
|
if (forceColor === 0) return 0;
|
|
525
|
-
if (
|
|
526
|
-
|
|
532
|
+
if (sniffFlags) {
|
|
533
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
534
|
+
if (hasFlag("color=256")) return 2;
|
|
535
|
+
}
|
|
527
536
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
528
537
|
const min = forceColor || 0;
|
|
529
538
|
if (env.TERM === "dumb") return min;
|
|
@@ -539,14 +548,15 @@ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
539
548
|
"APPVEYOR",
|
|
540
549
|
"GITLAB_CI",
|
|
541
550
|
"GITHUB_ACTIONS",
|
|
542
|
-
"BUILDKITE"
|
|
551
|
+
"BUILDKITE",
|
|
552
|
+
"DRONE"
|
|
543
553
|
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
544
554
|
return min;
|
|
545
555
|
}
|
|
546
556
|
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
547
557
|
if (env.COLORTERM === "truecolor") return 3;
|
|
548
558
|
if ("TERM_PROGRAM" in env) {
|
|
549
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
559
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
550
560
|
switch (env.TERM_PROGRAM) {
|
|
551
561
|
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
552
562
|
case "Apple_Terminal": return 2;
|
|
@@ -557,13 +567,16 @@ var require_supports_color = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
557
567
|
if ("COLORTERM" in env) return 1;
|
|
558
568
|
return min;
|
|
559
569
|
}
|
|
560
|
-
function getSupportLevel(stream) {
|
|
561
|
-
return translateLevel(supportsColor(stream,
|
|
570
|
+
function getSupportLevel(stream, options = {}) {
|
|
571
|
+
return translateLevel(supportsColor(stream, {
|
|
572
|
+
streamIsTTY: stream && stream.isTTY,
|
|
573
|
+
...options
|
|
574
|
+
}));
|
|
562
575
|
}
|
|
563
576
|
module.exports = {
|
|
564
577
|
supportsColor: getSupportLevel,
|
|
565
|
-
stdout:
|
|
566
|
-
stderr:
|
|
578
|
+
stdout: getSupportLevel({ isTTY: tty$1.isatty(1) }),
|
|
579
|
+
stderr: getSupportLevel({ isTTY: tty$1.isatty(2) })
|
|
567
580
|
};
|
|
568
581
|
}));
|
|
569
582
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { r as warnOnRebindProtection } from "./tls-cert-
|
|
2
|
+
import { r as warnOnRebindProtection } from "./tls-cert-8j8y2A31.mjs";
|
|
3
3
|
import { l as startTlsForward, t as fetchForwardTarget } from "./api-BFQ4PQDA.mjs";
|
|
4
4
|
import net from "node:net";
|
|
5
5
|
import { WebSocket, createWebSocketStream } from "ws";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as version$1 } from "./rest-
|
|
3
|
-
import { D as getConfigPath } from "./print-
|
|
2
|
+
import { c as version$1 } from "./rest-D09GfLaR.mjs";
|
|
3
|
+
import { D as getConfigPath } from "./print-CBBboXnk.mjs";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path, { delimiter, join } from "node:path";
|
|
6
6
|
import { err, ok } from "neverthrow";
|
|
@@ -47,7 +47,7 @@ function localhostCertSource(log) {
|
|
|
47
47
|
return async () => {
|
|
48
48
|
if (await hasDeclined()) return null;
|
|
49
49
|
try {
|
|
50
|
-
const { certificateFor } = await import("./dist-
|
|
50
|
+
const { certificateFor } = await import("./dist-C-qLSjvr.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
51
51
|
const { key, cert } = await certificateFor("localhost", { skipHostsFile: true });
|
|
52
52
|
return {
|
|
53
53
|
key: key.toString(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as errorMessage, i as sendErrorMessage, o as isRecord, t as createRestClient } from "./rest-
|
|
2
|
+
import { a as errorMessage, i as sendErrorMessage, o as isRecord, t as createRestClient } from "./rest-D09GfLaR.mjs";
|
|
3
3
|
import { t as HttpError } from "./http-error-BF2NZZE3.mjs";
|
|
4
4
|
import { i as billingBlockedOutcomeFromSendResponse, n as BillingBlockedError } from "./billing-blocked-D3l5kJlX.mjs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./rest-
|
|
3
|
-
import { a as runPrint, i as resolveAgent, n as messageGet, o as toPrintError, r as readStdin, t as collectRunText } from "./print-
|
|
2
|
+
import "./rest-D09GfLaR.mjs";
|
|
3
|
+
import { a as runPrint, i as resolveAgent, n as messageGet, o as toPrintError, r as readStdin, t as collectRunText } from "./print-CBBboXnk.mjs";
|
|
4
4
|
import "./billing-blocked-D3l5kJlX.mjs";
|
|
5
5
|
|
|
6
6
|
export { messageGet, readStdin, resolveAgent, runPrint };
|
|
@@ -14,8 +14,8 @@ import { n as printError } from "./output-C9mb3sUB.mjs";
|
|
|
14
14
|
* the reply (and to --json).
|
|
15
15
|
*/
|
|
16
16
|
async function connectMachineShare({ appUrl, sessionToken, timeoutHint }) {
|
|
17
|
-
const { PortalClient } = await import("./client-
|
|
18
|
-
const { defaultTlsCertSource } = await import("./tls-cert-
|
|
17
|
+
const { PortalClient } = await import("./client-C9TwWXGI.mjs");
|
|
18
|
+
const { defaultTlsCertSource } = await import("./tls-cert-BQDesyjU.mjs");
|
|
19
19
|
let signalConnected;
|
|
20
20
|
const connected = new Promise((resolve) => {
|
|
21
21
|
signalConnected = resolve;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as sendErrorMessage, n as errorDetail, r as filenameFromContentDisposition, t as createRestClient } from "./rest-
|
|
2
|
+
import { i as sendErrorMessage, n as errorDetail, r as filenameFromContentDisposition, t as createRestClient } from "./rest-D09GfLaR.mjs";
|
|
3
3
|
import { t as HttpError } from "./http-error-BF2NZZE3.mjs";
|
|
4
4
|
import "./billing-blocked-D3l5kJlX.mjs";
|
|
5
5
|
|
|
@@ -43,7 +43,7 @@ function defaultTlsCertSource(env, log) {
|
|
|
43
43
|
const fromEnv = envTlsCertSource(env, log);
|
|
44
44
|
return async () => {
|
|
45
45
|
if (env.SKYDIVE_PORTAL_TLS_KEY || env.SKYDIVE_PORTAL_TLS_CERT || env.SKYDIVE_PORTAL_TLS_HOST) return fromEnv();
|
|
46
|
-
const { localhostCertSource } = await import("./localhost-cert-
|
|
46
|
+
const { localhostCertSource } = await import("./localhost-cert-Dq2MRdXk.mjs");
|
|
47
47
|
return localhostCertSource(log)();
|
|
48
48
|
};
|
|
49
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skydive-cli",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.243",
|
|
4
4
|
"description": "Skydive CLI — cloud agents from the command line",
|
|
5
5
|
"homepage": "https://skydive.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "node ./scripts/embed-changelog.mjs && tsdown --no-dts --out-dir dist/js",
|
|
24
24
|
"build:binary": "node ./scripts/embed-changelog.mjs && bun scripts/build-binary.ts",
|
|
25
25
|
"test:unit": "vitest run --passWithNoTests && yarn test:tui",
|
|
26
|
-
"test:ci": "vitest run --coverage --coverage.reporter=lcovonly --reporter=default --reporter=github-actions --
|
|
26
|
+
"test:ci": "vitest run --coverage --coverage.reporter=lcovonly --reporter=default --reporter=github-actions --maxWorkers=2 --passWithNoTests && yarn test:tui",
|
|
27
27
|
"test:tui": "node scripts/run-tui-tests.mjs",
|
|
28
28
|
"test:blackbox": "bun test test/blackbox --timeout 120000",
|
|
29
29
|
"render:frames": "bun scripts/render-frames.tsx",
|
|
@@ -61,10 +61,11 @@
|
|
|
61
61
|
"@types/semver": "^7.7.1",
|
|
62
62
|
"@types/yargs": "^17.0.33",
|
|
63
63
|
"@typescript/native-preview": "^7.0.0-dev.20260113.1",
|
|
64
|
-
"@vitest/coverage-v8": "^
|
|
64
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
65
65
|
"tsdown": "^0.20.3",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
|
-
"
|
|
67
|
+
"vite": "^7.3.2",
|
|
68
|
+
"vitest": "^5.0.5"
|
|
68
69
|
},
|
|
69
70
|
"engines": {
|
|
70
71
|
"bun": ">=1.3.14",
|
|
@@ -72,9 +73,9 @@
|
|
|
72
73
|
},
|
|
73
74
|
"//optionalDependencies": "The per-platform binary packages (skydive-cli-<os>-<arch>) are INTENTIONALLY not committed here. They are published by release-skydive-cli-binaries.yml and injected — pinned to the exact version being published — into the published launcher's optionalDependencies at release time (scripts/prepare-platform-packages.mjs --pin-version, run in release-skydive-cli.yml). Committing them would make `yarn install` try to resolve versions that only exist post-publish, breaking local dev and CI. npm installs of a published skydive-cli still get them (os/cpu-gated); the launcher (src/launcher.ts) resolves and execs the matching one. Local dev never needs them: it runs the JS bundle or `build:binary` directly.",
|
|
74
75
|
"optionalDependencies": {
|
|
75
|
-
"skydive-cli-darwin-arm64": "0.6.0-beta.
|
|
76
|
-
"skydive-cli-darwin-x64": "0.6.0-beta.
|
|
77
|
-
"skydive-cli-linux-x64": "0.6.0-beta.
|
|
78
|
-
"skydive-cli-linux-arm64": "0.6.0-beta.
|
|
76
|
+
"skydive-cli-darwin-arm64": "0.6.0-beta.243",
|
|
77
|
+
"skydive-cli-darwin-x64": "0.6.0-beta.243",
|
|
78
|
+
"skydive-cli-linux-x64": "0.6.0-beta.243",
|
|
79
|
+
"skydive-cli-linux-arm64": "0.6.0-beta.243"
|
|
79
80
|
}
|
|
80
81
|
}
|