skydive-cli 0.6.0-beta.44 → 0.6.0-beta.45

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,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
- import { c as version, s as name, t as createRestClient } from "./rest-DapRUHYJ.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-357wbbEE.mjs";
4
- import { A as installAgentAlias, B as resolveWorkspaceId, D as machineOsFromPlatform, E as buildImportSeedPrompt, F as detectShell, I as ensureActiveOrganization, L as getActiveWorkspaceId, M as takenAliasNames, N as SUPPORTED_SHELLS, O as aliasActivationHint, P as defaultInstallEnv, R as getSessionIdentity, V as setActiveWorkspace, c as getAutomaticLogsDir, j as slugifyAliasName, k as dedupeAliasName, l as maybeStartProfiling, o as brandHelpArt, t as installCrashHandler, u as profileDir, w as themes, z as listWorkspaces } from "./install-DLTphokL.mjs";
2
+ import { c as version, s as name, t as createRestClient } from "./rest-C0xi02uj.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-ChRCtMhm.mjs";
4
+ import { A as installAgentAlias, B as resolveWorkspaceId, D as machineOsFromPlatform, E as buildImportSeedPrompt, F as detectShell, I as ensureActiveOrganization, L as getActiveWorkspaceId, M as takenAliasNames, N as SUPPORTED_SHELLS, O as aliasActivationHint, P as defaultInstallEnv, R as getSessionIdentity, V as setActiveWorkspace, c as getAutomaticLogsDir, j as slugifyAliasName, k as dedupeAliasName, l as maybeStartProfiling, o as brandHelpArt, t as installCrashHandler, u as profileDir, w as themes, z as listWorkspaces } from "./install-CHCOAdPx.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-D0RqJE_-.mjs";
8
+ import { s as resolveMachineIdentity } from "./client-CT2njxHl.mjs";
9
9
  import "./tls-cert-Rua2oV7n.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-CaPq7nD7.mjs";
11
+ import { d as daemonPaths, i as queryDaemonStatus, n as ensureDaemonRunning, s as stopDaemon, u as PORTAL_DAEMON_FLAG } from "./daemon-DW4X4NLq.mjs";
12
12
  import { a as encodeFsRequest, i as decodeFsResponse, n as SANDBOX_STREAM_PATH, r as streamSpecToQuery, t as SandboxStream } from "./client-CFnT0cAy.mjs";
13
13
  import { hideBin } from "yargs/helpers";
14
14
  import yargs from "yargs";
@@ -1080,7 +1080,7 @@ async function resolveTargetAgentId(client, selector) {
1080
1080
  printError("Missing --agent <id or name>. Run `skydive agents list` for candidates.");
1081
1081
  process.exit(1);
1082
1082
  }
1083
- const { resolveAgent } = await import("./print-B-NaRUOR.mjs");
1083
+ const { resolveAgent } = await import("./print-BnkCeeZt.mjs");
1084
1084
  const result = await client.listAgents({
1085
1085
  scope: "org",
1086
1086
  limit: 100
@@ -1823,7 +1823,7 @@ const importCommand = {
1823
1823
  process.exit(1);
1824
1824
  }
1825
1825
  }
1826
- const { runChat } = await import("./boot-D-sj-qcz.mjs");
1826
+ const { runChat } = await import("./boot-DTcDZkkA.mjs");
1827
1827
  await runChat({
1828
1828
  appUrl,
1829
1829
  sessionToken: session.value.sessionToken,
@@ -1853,7 +1853,7 @@ async function runImportPrintMode({ argv, appUrl }) {
1853
1853
  printError(`${session.error.message} For non-interactive use, run \`skydive auth login --web\` first, or set SKYDIVE_SESSION_TOKEN.`);
1854
1854
  process.exit(1);
1855
1855
  }
1856
- const { connectMachineShare } = await import("./print-share-0lItV44A.mjs");
1856
+ const { connectMachineShare } = await import("./print-share-qiNP_Dn8.mjs");
1857
1857
  const machineShare = await connectMachineShare({
1858
1858
  appUrl,
1859
1859
  sessionToken: session.value.sessionToken,
@@ -1861,7 +1861,7 @@ async function runImportPrintMode({ argv, appUrl }) {
1861
1861
  });
1862
1862
  const extra = (argv.print ?? "").trim();
1863
1863
  const prompt = buildImportSeedPrompt(process.cwd(), machineOsFromPlatform(process.platform)) + (extra ? `\n\nAdditional instructions: ${extra}` : "");
1864
- const { runPrint } = await import("./print-B-NaRUOR.mjs");
1864
+ const { runPrint } = await import("./print-BnkCeeZt.mjs");
1865
1865
  try {
1866
1866
  const result = await runPrint({
1867
1867
  appUrl,
@@ -2284,7 +2284,7 @@ const chatCommand = {
2284
2284
  sessionToken: auth.value.token,
2285
2285
  agentSelector: argv.agent ?? null
2286
2286
  });
2287
- const { runChat } = await import("./boot-D-sj-qcz.mjs");
2287
+ const { runChat } = await import("./boot-DTcDZkkA.mjs");
2288
2288
  await runChat({
2289
2289
  appUrl: auth.value.appUrl,
2290
2290
  sessionToken: auth.value.token,
@@ -2368,7 +2368,7 @@ async function runPrintMode({ argv, appUrl }) {
2368
2368
  printError(`${auth.error.message} For non-interactive use, run \`skydive auth login\` first, or set SKYDIVE_API_KEY / SKYDIVE_SESSION_TOKEN.`);
2369
2369
  process.exit(1);
2370
2370
  }
2371
- const { runPrint, readStdin } = await import("./print-B-NaRUOR.mjs");
2371
+ const { runPrint, readStdin } = await import("./print-BnkCeeZt.mjs");
2372
2372
  const workspaceId = await resolveWorkspaceFlag({
2373
2373
  appUrl,
2374
2374
  sessionToken: auth.value.token,
@@ -2398,7 +2398,7 @@ async function runPrintMode({ argv, appUrl }) {
2398
2398
  process.exit(1);
2399
2399
  }
2400
2400
  } else {
2401
- const { connectMachineShare } = await import("./print-share-0lItV44A.mjs");
2401
+ const { connectMachineShare } = await import("./print-share-qiNP_Dn8.mjs");
2402
2402
  machineShare = await connectMachineShare({
2403
2403
  appUrl: auth.value.appUrl,
2404
2404
  sessionToken: auth.value.token,
@@ -2463,7 +2463,7 @@ const getCommand$1 = {
2463
2463
  printError(`${auth.error.message} Run \`skydive auth login\` first, or set SKYDIVE_API_KEY / SKYDIVE_SESSION_TOKEN.`);
2464
2464
  process.exit(1);
2465
2465
  }
2466
- const { messageGet } = await import("./print-B-NaRUOR.mjs");
2466
+ const { messageGet } = await import("./print-BnkCeeZt.mjs");
2467
2467
  try {
2468
2468
  const result = await messageGet({
2469
2469
  appUrl: auth.value.appUrl,
@@ -2666,7 +2666,7 @@ const switchCommand = {
2666
2666
  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.");
2667
2667
  process.exit(1);
2668
2668
  }
2669
- const { runWorkspacePicker } = await import("./boot-D-sj-qcz.mjs");
2669
+ const { runWorkspacePicker } = await import("./boot-DTcDZkkA.mjs");
2670
2670
  await runWorkspacePicker(session);
2671
2671
  return;
2672
2672
  }
@@ -2745,7 +2745,7 @@ const openCommand = {
2745
2745
  const agent = argv.agent ? resolveAgent$1((await fetchPortalDevices(session)).agents, argv.agent) : null;
2746
2746
  const cwd = argv.cwd ? path.resolve(argv.cwd) : process.cwd();
2747
2747
  const { machineName } = await resolveMachineIdentity(null);
2748
- const { PortalDaemonClient } = await import("./daemon-client-fmh2MKfy.mjs");
2748
+ const { PortalDaemonClient } = await import("./daemon-client-C29PGHuU.mjs");
2749
2749
  let lastLine = "";
2750
2750
  let signalConnected;
2751
2751
  const connected = new Promise((resolve) => {
@@ -3105,8 +3105,8 @@ const sandboxCommand = {
3105
3105
  }).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`"),
3106
3106
  handler: async (argv) => {
3107
3107
  const session = requireSession(argv);
3108
- const { createRestClient } = await import("./rest-BzBSObm9.mjs");
3109
- const { resolveAgent } = await import("./print-B-NaRUOR.mjs");
3108
+ const { createRestClient } = await import("./rest-CXimvT7P.mjs");
3109
+ const { resolveAgent } = await import("./print-BnkCeeZt.mjs");
3110
3110
  const client = createRestClient({
3111
3111
  appUrl: session.appUrl,
3112
3112
  sessionToken: session.sessionToken
@@ -3423,8 +3423,8 @@ const fsEditCommand = {
3423
3423
  handler: async (argv) => {
3424
3424
  const session = requireSession(argv);
3425
3425
  const remotePath = argv.path;
3426
- const { createRestClient } = await import("./rest-BzBSObm9.mjs");
3427
- const { resolveAgent } = await import("./print-B-NaRUOR.mjs");
3426
+ const { createRestClient } = await import("./rest-CXimvT7P.mjs");
3427
+ const { resolveAgent } = await import("./print-BnkCeeZt.mjs");
3428
3428
  const client = createRestClient({
3429
3429
  appUrl: session.appUrl,
3430
3430
  sessionToken: session.sessionToken
@@ -4878,7 +4878,7 @@ if (process.argv.includes(UPDATE_WORKER_FLAG)) {
4878
4878
  process.exit(0);
4879
4879
  }
4880
4880
  if (process.argv.includes(PORTAL_DAEMON_FLAG)) {
4881
- const { runPortalDaemon } = await import("./daemon-BQBdP8BA.mjs");
4881
+ const { runPortalDaemon } = await import("./daemon-D0w9LhuE.mjs");
4882
4882
  runPortalDaemon(process.argv);
4883
4883
  } else runCli();
4884
4884
  function runCli() {