skydive-cli 0.3.0-beta.911 → 0.3.0-beta.933

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 setActiveWorkspace, S as listWorkspaces, T as version, _ as themes, b as getActiveWorkspaceId, o as brandHelpArt, t as installCrashHandler, w as name, x as getSessionIdentity, y as ensureActiveOrganization } from "./install-Cf-qM2_g.mjs";
2
+ import { C as setActiveWorkspace, S as listWorkspaces, T as version, _ as themes, b as getActiveWorkspaceId, o as brandHelpArt, t as installCrashHandler, w as name, x as getSessionIdentity, y as ensureActiveOrganization } from "./install-xhTB2tUc.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-X2N5wJ5l.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-imDZZGQA.mjs";
@@ -1505,7 +1505,7 @@ const importCommand = {
1505
1505
  process.exit(1);
1506
1506
  }
1507
1507
  }
1508
- const { runChat } = await import("./boot-B3-GMK-L.mjs");
1508
+ const { runChat } = await import("./boot-Ba9fSwlj.mjs");
1509
1509
  await runChat({
1510
1510
  appUrl,
1511
1511
  sessionToken: session.value.sessionToken,
@@ -1917,7 +1917,7 @@ const chatCommand = {
1917
1917
  sessionToken: auth.value.token,
1918
1918
  agentSelector: argv.agent ?? null
1919
1919
  });
1920
- const { runChat } = await import("./boot-B3-GMK-L.mjs");
1920
+ const { runChat } = await import("./boot-Ba9fSwlj.mjs");
1921
1921
  await runChat({
1922
1922
  appUrl: auth.value.appUrl,
1923
1923
  sessionToken: auth.value.token,
@@ -2276,7 +2276,7 @@ const switchCommand = {
2276
2276
  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
2277
  process.exit(1);
2278
2278
  }
2279
- const { runWorkspacePicker } = await import("./boot-B3-GMK-L.mjs");
2279
+ const { runWorkspacePicker } = await import("./boot-Ba9fSwlj.mjs");
2280
2280
  await runWorkspacePicker(session);
2281
2281
  return;
2282
2282
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as setActiveWorkspace, S as listWorkspaces, a as WORDMARK, b as getActiveWorkspaceId, c as applyTheme, d as noColorRequested, f as theme, g as themeVersion, h as themeModeFromColorFgBg, i as MARK_CELLS, l as findTheme, m as themeMode, n as buildCrashReport, p as themeForMode, r as writeCrashReport, s as DEFAULT_THEME_ID, t as installCrashHandler, u as monoTheme, v as themesForMode } from "./install-Cf-qM2_g.mjs";
2
+ import { C as setActiveWorkspace, S as listWorkspaces, a as WORDMARK, b as getActiveWorkspaceId, c as applyTheme, d as noColorRequested, f as theme, g as themeVersion, h as themeModeFromColorFgBg, i as MARK_CELLS, l as findTheme, m as themeMode, n as buildCrashReport, p as themeForMode, r as writeCrashReport, s as DEFAULT_THEME_ID, t as installCrashHandler, u as monoTheme, v as themesForMode } from "./install-xhTB2tUc.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-X2N5wJ5l.mjs";
4
4
  import { a as errorMessage, i as sendErrorMessage, n as createRestClient, o as isRecord, r as errorDetail, t as HttpError } from "./rest-imDZZGQA.mjs";
5
5
  import { i as billingBlockedOutcomeFromSendResponse } from "./billing-blocked-CwfG1BTR.mjs";
@@ -2278,6 +2278,31 @@ function CollapseHint() {
2278
2278
  children: "· click to collapse"
2279
2279
  });
2280
2280
  }
2281
+ /** Collapsed line cap for tool error output. */
2282
+ const maxErrorLines = 8;
2283
+ /**
2284
+ * Tool error output, clamped like ok output: collapsed it clips to
2285
+ * `maxErrorLines` with the "+N more · click to expand" tail; expanded it
2286
+ * renders in full, word-wrapped. Same click-to-toggle box as the rest of
2287
+ * the block — a failing command's output shouldn't flood the scrollback
2288
+ * just because it arrived on the error channel.
2289
+ */
2290
+ function ErrorLines({ text, expanded }) {
2291
+ if (expanded) return /* @__PURE__ */ jsx(ExpandedLines, {
2292
+ text,
2293
+ fg: theme.error
2294
+ });
2295
+ return /* @__PURE__ */ jsx("box", {
2296
+ style: { flexDirection: "column" },
2297
+ children: clipLines(text, {
2298
+ maxLines: maxErrorLines,
2299
+ maxLineLen: 100
2300
+ }).map((line, idx) => /* @__PURE__ */ jsx("text", {
2301
+ fg: theme.error,
2302
+ children: line
2303
+ }, idx))
2304
+ });
2305
+ }
2281
2306
  /** Indents tool output two columns under its header — no rule, just space. */
2282
2307
  function Indented({ children }) {
2283
2308
  return /* @__PURE__ */ jsx("box", {
@@ -3365,9 +3390,9 @@ function ToolGeneric({ item }) {
3365
3390
  fg: theme.dim,
3366
3391
  children: " · click to expand"
3367
3392
  })]
3368
- }) : /* @__PURE__ */ jsx("text", {
3369
- fg: theme.error,
3370
- children: item.output.errorText
3393
+ }) : /* @__PURE__ */ jsx(ErrorLines, {
3394
+ text: item.output.errorText,
3395
+ expanded
3371
3396
  }) }) : null,
3372
3397
  expanded && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx(CollapseHint, {}) })
3373
3398
  ]
@@ -3778,10 +3803,10 @@ function ToolEdit({ item }) {
3778
3803
  fg: theme.muted,
3779
3804
  children: "(no changes)"
3780
3805
  }) }) : null,
3781
- item.output?.kind === "error" && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx("text", {
3782
- fg: theme.error,
3783
- children: item.output.errorText
3784
- }) }),
3806
+ item.output?.kind === "error" && /* @__PURE__ */ jsxs(Indented, { children: [/* @__PURE__ */ jsx(ErrorLines, {
3807
+ text: item.output.errorText,
3808
+ expanded
3809
+ }), expanded && isClipped(item.output.errorText, maxErrorLines) && /* @__PURE__ */ jsx(CollapseHint, {})] }),
3785
3810
  item.output?.kind === "ok" && pairs === null && inputReady && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx("text", {
3786
3811
  fg: theme.muted,
3787
3812
  children: summarize(item.output.value, 60)
@@ -3960,11 +3985,11 @@ function ToolBash({ item }) {
3960
3985
  fg: theme.muted,
3961
3986
  children: line
3962
3987
  }, idx)) }),
3963
- item.output?.kind === "error" && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx("text", {
3964
- fg: theme.error,
3965
- children: item.output.errorText
3988
+ item.output?.kind === "error" && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx(ErrorLines, {
3989
+ text: item.output.errorText,
3990
+ expanded
3966
3991
  }) }),
3967
- expanded && (showCommandBlock && isClipped(commandBlockText, maxCommandLines) || output !== null && isClipped(output, maxLines$1)) && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx(CollapseHint, {}) })
3992
+ expanded && (showCommandBlock && isClipped(commandBlockText, maxCommandLines) || output !== null && isClipped(output, maxLines$1) || item.output?.kind === "error" && isClipped(item.output.errorText, maxErrorLines)) && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx(CollapseHint, {}) })
3968
3993
  ]
3969
3994
  });
3970
3995
  }
@@ -4032,10 +4057,10 @@ function ToolRead({ item }) {
4032
4057
  fg: theme.muted,
4033
4058
  children: line
4034
4059
  }, idx)), expanded && isClipped(preview, maxLines) && /* @__PURE__ */ jsx(CollapseHint, {})] }),
4035
- item.output?.kind === "error" && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx("text", {
4036
- fg: theme.error,
4037
- children: item.output.errorText
4038
- }) })
4060
+ item.output?.kind === "error" && /* @__PURE__ */ jsxs(Indented, { children: [/* @__PURE__ */ jsx(ErrorLines, {
4061
+ text: item.output.errorText,
4062
+ expanded
4063
+ }), expanded && isClipped(item.output.errorText, maxErrorLines) && /* @__PURE__ */ jsx(CollapseHint, {})] })
4039
4064
  ]
4040
4065
  });
4041
4066
  }
@@ -4116,10 +4141,10 @@ function ToolGrep({ item }) {
4116
4141
  }),
4117
4142
  expanded && matches.length > maxMatches && /* @__PURE__ */ jsx(CollapseHint, {})
4118
4143
  ] }),
4119
- item.output?.kind === "error" && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx("text", {
4120
- fg: theme.error,
4121
- children: item.output.errorText
4122
- }) })
4144
+ item.output?.kind === "error" && /* @__PURE__ */ jsxs(Indented, { children: [/* @__PURE__ */ jsx(ErrorLines, {
4145
+ text: item.output.errorText,
4146
+ expanded
4147
+ }), expanded && isClipped(item.output.errorText, maxErrorLines) && /* @__PURE__ */ jsx(CollapseHint, {})] })
4123
4148
  ]
4124
4149
  });
4125
4150
  }
@@ -8,7 +8,7 @@ import fs from "node:fs";
8
8
 
9
9
  //#region package.json
10
10
  var name = "skydive-cli";
11
- var version$1 = "0.3.0-beta.911";
11
+ var version$1 = "0.3.0-beta.933";
12
12
 
13
13
  //#endregion
14
14
  //#region src/auth/organization.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skydive-cli",
3
- "version": "0.3.0-beta.911",
3
+ "version": "0.3.0-beta.933",
4
4
  "description": "Skydive CLI — cloud agents from the command line",
5
5
  "homepage": "https://skydive.com",
6
6
  "license": "MIT",