skydive-cli 0.3.0-beta.871 → 0.3.0-beta.898
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-
|
|
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-C8VUTYOa.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-
|
|
1508
|
+
const { runChat } = await import("./boot-BpOV8NNg.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-
|
|
1920
|
+
const { runChat } = await import("./boot-BpOV8NNg.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-
|
|
2279
|
+
const { runWorkspacePicker } = await import("./boot-BpOV8NNg.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-
|
|
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-C8VUTYOa.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";
|
|
@@ -3907,12 +3907,13 @@ function PlainDiff({ diff }) {
|
|
|
3907
3907
|
//#endregion
|
|
3908
3908
|
//#region src/chat/tui/chunks/tool-bash.tsx
|
|
3909
3909
|
const maxLines$1 = 8;
|
|
3910
|
+
const maxCommandLines = 3;
|
|
3910
3911
|
/**
|
|
3911
3912
|
* Rich view for the `bash`/`shell` tool. Leads with the model-authored
|
|
3912
3913
|
* summary when present (mirroring web chat's activity labels), with the
|
|
3913
3914
|
* command on its own dim line beneath; then its output
|
|
3914
3915
|
* (truncated to keep the scrollback usable — click the block to toggle the
|
|
3915
|
-
* full output
|
|
3916
|
+
* full command and output).
|
|
3916
3917
|
*/
|
|
3917
3918
|
function ToolBash({ item }) {
|
|
3918
3919
|
const glyph = toolGlyph(item.state);
|
|
@@ -3921,6 +3922,10 @@ function ToolBash({ item }) {
|
|
|
3921
3922
|
const output = item.output?.kind === "ok" ? typeof item.output.value === "string" ? item.output.value : extractStdout(item.output.value) : null;
|
|
3922
3923
|
const summary = getToolCallSummary(item.input);
|
|
3923
3924
|
const [expanded, setExpanded] = useState(false);
|
|
3925
|
+
const commandText = command || "(empty command)";
|
|
3926
|
+
const headerCommandLine = commandText.split("\n", 1)[0] ?? commandText;
|
|
3927
|
+
const commandBlockText = summary !== null ? `$ ${commandText}` : commandText.slice(headerCommandLine.length + 1);
|
|
3928
|
+
const showCommandBlock = commandBlockText.length > 0;
|
|
3924
3929
|
return /* @__PURE__ */ jsxs("box", {
|
|
3925
3930
|
style: {
|
|
3926
3931
|
flexDirection: "column",
|
|
@@ -3933,14 +3938,19 @@ function ToolBash({ item }) {
|
|
|
3933
3938
|
children: [glyph.ch, " "]
|
|
3934
3939
|
}), /* @__PURE__ */ jsx("span", {
|
|
3935
3940
|
fg: theme.tool,
|
|
3936
|
-
children: summary !== null ? summary : `$ ${
|
|
3941
|
+
children: summary !== null ? summary : `$ ${headerCommandLine}`
|
|
3937
3942
|
})] }),
|
|
3938
|
-
|
|
3943
|
+
showCommandBlock && /* @__PURE__ */ jsx(Indented, { children: expanded ? /* @__PURE__ */ jsx(ExpandedLines, {
|
|
3944
|
+
text: commandBlockText,
|
|
3945
|
+
fg: theme.muted
|
|
3946
|
+
}) : clipLines(commandBlockText, {
|
|
3947
|
+
maxLines: maxCommandLines,
|
|
3948
|
+
maxLineLen: 100
|
|
3949
|
+
}).map((line, idx) => /* @__PURE__ */ jsx("text", {
|
|
3939
3950
|
fg: theme.muted,
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
output !== null && output.length > 0 && /* @__PURE__ */ jsxs(Indented, { children: [expanded ? /* @__PURE__ */ jsx(ExpandedLines, {
|
|
3951
|
+
children: line
|
|
3952
|
+
}, idx)) }),
|
|
3953
|
+
output !== null && output.length > 0 && /* @__PURE__ */ jsx(Indented, { children: expanded ? /* @__PURE__ */ jsx(ExpandedLines, {
|
|
3944
3954
|
text: output,
|
|
3945
3955
|
fg: theme.muted
|
|
3946
3956
|
}) : clipLines(output, {
|
|
@@ -3949,11 +3959,12 @@ function ToolBash({ item }) {
|
|
|
3949
3959
|
}).map((line, idx) => /* @__PURE__ */ jsx("text", {
|
|
3950
3960
|
fg: theme.muted,
|
|
3951
3961
|
children: line
|
|
3952
|
-
}, idx))
|
|
3962
|
+
}, idx)) }),
|
|
3953
3963
|
item.output?.kind === "error" && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx("text", {
|
|
3954
3964
|
fg: theme.error,
|
|
3955
3965
|
children: item.output.errorText
|
|
3956
|
-
}) })
|
|
3966
|
+
}) }),
|
|
3967
|
+
expanded && (showCommandBlock && isClipped(commandBlockText, maxCommandLines) || output !== null && isClipped(output, maxLines$1)) && /* @__PURE__ */ jsx(Indented, { children: /* @__PURE__ */ jsx(CollapseHint, {}) })
|
|
3957
3968
|
]
|
|
3958
3969
|
});
|
|
3959
3970
|
}
|