skydive-cli 0.2.0-beta.742 → 0.3.0
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/CHANGELOG.md
CHANGED
|
@@ -7,11 +7,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.0] - 2026-08-04
|
|
11
|
+
|
|
10
12
|
### Added
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
14
|
+
**Chat TUI**
|
|
15
|
+
|
|
16
|
+
- `/fork` slash command to fork a conversation at any point and continue in a new thread.
|
|
17
|
+
- `/conversation` switches threads from inside a live session.
|
|
18
|
+
- `/compact` triggers manual conversation compaction.
|
|
19
|
+
- `/portal` and `/copy` slash commands.
|
|
20
|
+
- Archive the current conversation from the chat TUI.
|
|
21
|
+
- `--new` flag on `skydive chat` to start a fresh conversation.
|
|
22
|
+
- Debounced server-side conversation search in the picker, with title matches ranked first.
|
|
23
|
+
- File review pane orientation toggle, and review comments in the file pane.
|
|
24
|
+
- Pinned plan card controls and a jump-to-latest hint.
|
|
25
|
+
- Terminal title (OSC) follows the live conversation title on every screen; inside cmux the workspace is renamed too, and linked PRs are pushed to the cmux sidebar.
|
|
26
|
+
- Every participating agent shows in the conversation list; connect cards each have their own identity, and ctrl+r asks which connect card to act on.
|
|
27
|
+
- Colored Skydive splash art in `skydive --help` and the TUI pickers.
|
|
28
|
+
- New-agent name prefilled from the server's suggestion.
|
|
29
|
+
|
|
30
|
+
**CLI & platform**
|
|
31
|
+
|
|
32
|
+
- `skydive update` self-updater, with an update notice when a new version is available.
|
|
33
|
+
- Shell completions for bash, zsh, and fish via `completion install`.
|
|
34
|
+
- Portal daemon: one connection per host with per-conversation working directories.
|
|
35
|
+
- Agent-led coding-agent import (`skydive import`).
|
|
36
|
+
- Per-workspace scoping on the REST client, and cross-org `--agent <uuid>` auto-switches workspace.
|
|
37
|
+
- `skydive-beta` wrapper for the canary channel.
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
|
|
41
|
+
- `skydive update` no longer claims an update is available on every npm install.
|
|
42
|
+
- Chat memory is bounded (payload clamps + windowed rows) with a memory watchdog and OOM diagnostic report; transcript rows are memoized so streaming stops re-rendering the whole chat.
|
|
43
|
+
- Chat-send failures map to real error messages.
|
|
44
|
+
- Notification and sidebar previews use the last text block of the reply and strip inline markdown.
|
|
45
|
+
- Picker rows no longer overlap when a conversation title contains a newline, tab, or control character.
|
|
46
|
+
- Sending to non-web channel conversations is blocked in the TUI.
|
|
47
|
+
- GitHub bot connect opens on the web front door, not api.skydive.com.
|
|
48
|
+
- TUI activity counter times from the run, not the screen.
|
|
15
49
|
|
|
16
50
|
## [0.2.0] - 2026-07-29
|
|
17
51
|
|
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-CMYBFvR2.mjs";
|
|
3
3
|
import { A as resolveAppUrl, C as getPromptHistoryPath, D as getStoredApiKeyId, E as getShareMachineDefault, F as saveConfig, I as saveSession, M as resolveManagementAuth, N as resolveSession, O as getStoredApiKeyWorkspaceName, R as setLastSeenVersion, S as getLastSeenVersion, _ as API_KEY_PREFIX, b as deleteConfig, g as API_KEY_FAMILY_PREFIX, h as API_KEYS_URL, i as resolveAgent, j as resolveConfig, k as getUpdateCheckDisabled, v as DEFAULT_API_URL, x as getConfigPath } from "./print-Cd-bVSEJ.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-BlN_uWmL.mjs";
|
|
@@ -1500,7 +1500,7 @@ const importCommand = {
|
|
|
1500
1500
|
process.exit(1);
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
const { runChat } = await import("./boot-
|
|
1503
|
+
const { runChat } = await import("./boot-HAgDg_b4.mjs");
|
|
1504
1504
|
await runChat({
|
|
1505
1505
|
appUrl,
|
|
1506
1506
|
sessionToken: session.value.sessionToken,
|
|
@@ -1912,7 +1912,7 @@ const chatCommand = {
|
|
|
1912
1912
|
sessionToken: session.value.sessionToken,
|
|
1913
1913
|
agentSelector: argv.agent ?? null
|
|
1914
1914
|
});
|
|
1915
|
-
const { runChat } = await import("./boot-
|
|
1915
|
+
const { runChat } = await import("./boot-HAgDg_b4.mjs");
|
|
1916
1916
|
await runChat({
|
|
1917
1917
|
appUrl,
|
|
1918
1918
|
sessionToken: session.value.sessionToken,
|
|
@@ -2254,7 +2254,7 @@ const switchCommand = {
|
|
|
2254
2254
|
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.");
|
|
2255
2255
|
process.exit(1);
|
|
2256
2256
|
}
|
|
2257
|
-
const { runWorkspacePicker } = await import("./boot-
|
|
2257
|
+
const { runWorkspacePicker } = await import("./boot-HAgDg_b4.mjs");
|
|
2258
2258
|
await runWorkspacePicker(session);
|
|
2259
2259
|
return;
|
|
2260
2260
|
}
|
|
@@ -3586,7 +3586,7 @@ function setupUpdateCheck(argv) {
|
|
|
3586
3586
|
|
|
3587
3587
|
//#endregion
|
|
3588
3588
|
//#region src/changelog.generated.ts
|
|
3589
|
-
const CHANGELOG_MD = "# Changelog\n\nAll notable changes to the Skydive CLI are documented here.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## [Unreleased]\n\n### Added\n\n-
|
|
3589
|
+
const CHANGELOG_MD = "# Changelog\n\nAll notable changes to the Skydive CLI are documented here.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## [Unreleased]\n\n## [0.3.0] - 2026-08-04\n\n### Added\n\n**Chat TUI**\n\n- `/fork` slash command to fork a conversation at any point and continue in a new thread.\n- `/conversation` switches threads from inside a live session.\n- `/compact` triggers manual conversation compaction.\n- `/portal` and `/copy` slash commands.\n- Archive the current conversation from the chat TUI.\n- `--new` flag on `skydive chat` to start a fresh conversation.\n- Debounced server-side conversation search in the picker, with title matches ranked first.\n- File review pane orientation toggle, and review comments in the file pane.\n- Pinned plan card controls and a jump-to-latest hint.\n- Terminal title (OSC) follows the live conversation title on every screen; inside cmux the workspace is renamed too, and linked PRs are pushed to the cmux sidebar.\n- Every participating agent shows in the conversation list; connect cards each have their own identity, and ctrl+r asks which connect card to act on.\n- Colored Skydive splash art in `skydive --help` and the TUI pickers.\n- New-agent name prefilled from the server's suggestion.\n\n**CLI & platform**\n\n- `skydive update` self-updater, with an update notice when a new version is available.\n- Shell completions for bash, zsh, and fish via `completion install`.\n- Portal daemon: one connection per host with per-conversation working directories.\n- Agent-led coding-agent import (`skydive import`).\n- Per-workspace scoping on the REST client, and cross-org `--agent <uuid>` auto-switches workspace.\n- `skydive-beta` wrapper for the canary channel.\n\n### Fixed\n\n- `skydive update` no longer claims an update is available on every npm install.\n- Chat memory is bounded (payload clamps + windowed rows) with a memory watchdog and OOM diagnostic report; transcript rows are memoized so streaming stops re-rendering the whole chat.\n- Chat-send failures map to real error messages.\n- Notification and sidebar previews use the last text block of the reply and strip inline markdown.\n- Picker rows no longer overlap when a conversation title contains a newline, tab, or control character.\n- Sending to non-web channel conversations is blocked in the TUI.\n- GitHub bot connect opens on the web front door, not api.skydive.com.\n- TUI activity counter times from the run, not the screen.\n\n## [0.2.0] - 2026-07-29\n\n### Added\n\n**Sandbox & machine access**\n\n- Standalone `skydive sandbox` command for direct access to an agent's sandbox.\n- `/sandbox` in the chat TUI — live PTY session and one-shot command execution.\n- Headless machine sharing via `skydive portal`, with self-registering portal grants.\n- `shareMachineDefault` config key for always-on portal sharing.\n\n**Chat TUI**\n\n- File pane (`ctrl+g`) with Changes and Files tabs: a shared file tree plus source viewer and a workspace browser, mouse-resizable and responsive to terminal size.\n- Agent todo list rendered in the chat TUI, above the composer, mirroring the web chat's todo card.\n- Fuzzy finder in the conversation and agent pickers.\n- Slash-command autocomplete menu.\n- Paste or drag-and-drop any file into the composer; paste clipboard images with Cmd+V.\n- Run local shell commands with `!` in the composer.\n- Conversation recaps, streamed live title updates, and per-agent attribution on assistant turns.\n- Working timer rolls up into minutes and hours.\n- Conversation picker paginates past 50 conversations and shows only your own conversations.\n- Esc leaves a live run; typing `exit` quits the chat.\n- Cursor Dark theme.\n- Picker rows no longer overlap when a conversation title contains a newline, tab, or control character.\n\n**Headless & scripting**\n\n- Resume a conversation by id.\n- `conversations list` and `conversations show` for transcript reads.\n- `messages get`, with run recovery keyed on message id.\n- Connect cards surface in headless `-p` mode so a driving agent never gets stuck.\n\n**Authentication**\n\n- `skydive auth login` via the browser now auto-mints an API key, so one login yields both a chat session and a usable management credential. Management commands announce the key's pinned workspace when it drives them, so a workspace mismatch is visible at use time.\n- Workspace picker on the device authorization page.\n- Account and workspace identity shown in `auth status`.\n\n**Platform**\n\n- Standalone binary builds compiling the CLI into a per-target executable.\n- Interactive workspace switcher; management commands follow the active workspace.\n- Terminal host integrations and agent notifications.\n\n### Fixed\n\n- Transcript errors collapse to one line, click to expand (REST and portal errors keep their full body).\n- Dragged/pasted image file paths attach the file instead of inserting path text, including macOS paths with literal parentheses.\n- Bare URLs in chat markdown are hyperlinked so they survive text wrap.\n- Composer draft is preserved across TUI overlays.\n- Relative connect links resolve before opening the browser.\n- Numbered markdown headings render colored in the TUI.\n- Chat transcript pages by 75% of a screen; picker rows stay on one line.\n- Run starts push to the TUI over the conversation stream.\n- Security: remediated high-severity dependency findings and cleared tar/shell-quote CVEs.\n\n## [0.1.0] - 2026-07-21\n\nInitial public release: `skydive chat` TUI, agent and conversation management,\ndevice authorization, and headless `-p` mode.\n";
|
|
3590
3590
|
|
|
3591
3591
|
//#endregion
|
|
3592
3592
|
//#region src/whats-new.ts
|
|
@@ -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-CMYBFvR2.mjs";
|
|
3
3
|
import { L as saveTheme, P as resolveWebUrl, T as getSavedTheme, 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, w as getReviewStateDir, x as getConfigPath, y as DEFAULT_APP_URL } from "./print-Cd-bVSEJ.mjs";
|
|
4
4
|
import { a as errorMessage, i as sendErrorMessage, n as createRestClient, o as isRecord, r as errorDetail, t as HttpError } from "./rest-BlN_uWmL.mjs";
|
|
5
5
|
import { t as PortalClient } from "./client-Dc7GZ3PG.mjs";
|
|
@@ -12019,6 +12019,45 @@ function startMemoryWatchdog(opts = {}) {
|
|
|
12019
12019
|
};
|
|
12020
12020
|
}
|
|
12021
12021
|
|
|
12022
|
+
//#endregion
|
|
12023
|
+
//#region src/chat/theme-boot.ts
|
|
12024
|
+
/**
|
|
12025
|
+
* How long the first paint waits for the terminal to report its background
|
|
12026
|
+
* colour via OSC 10/11.
|
|
12027
|
+
*
|
|
12028
|
+
* OpenTUI's own default is 1000ms, and `createCliRenderer` has already switched
|
|
12029
|
+
* to the alternate screen by the time we wait — so on a terminal that never
|
|
12030
|
+
* answers the query (no OSC theme support, or a passthrough that eats it) the
|
|
12031
|
+
* user watched a blank cleared screen for a flat second on every launch, which
|
|
12032
|
+
* measured as 68% of cold start. Bound it by our budget rather than the
|
|
12033
|
+
* dependency's: 20ms is a typical real answer, so 100ms is generous.
|
|
12034
|
+
*/
|
|
12035
|
+
const THEME_QUERY_GRACE_MS = 100;
|
|
12036
|
+
/**
|
|
12037
|
+
* Settle the theme for the first paint, and keep following the terminal after
|
|
12038
|
+
* it.
|
|
12039
|
+
*
|
|
12040
|
+
* Order is the whole point and is load-bearing:
|
|
12041
|
+
*
|
|
12042
|
+
* 1. Subscribe to `theme_mode` FIRST. It carries both a late OSC answer and
|
|
12043
|
+
* every later system light/dark flip, so with the subscription in place,
|
|
12044
|
+
* giving up on the query early can only cost a briefly-wrong first paint —
|
|
12045
|
+
* never a permanently wrong theme.
|
|
12046
|
+
* 2. Apply the synchronous `COLORFGBG` sniff (iTerm2 and friends set it) so
|
|
12047
|
+
* there is something correct to paint at t=0.
|
|
12048
|
+
* 3. Only then wait, briefly, for the real answer.
|
|
12049
|
+
*
|
|
12050
|
+
* Inverting 2 and 3 is the bug this replaced: `COLORFGBG` was consulted only
|
|
12051
|
+
* after the 1000ms timeout expired, i.e. we blocked the launch waiting for
|
|
12052
|
+
* information we already had.
|
|
12053
|
+
*/
|
|
12054
|
+
async function settleBootThemeMode({ source, applyThemeMode, graceMs = THEME_QUERY_GRACE_MS, env }) {
|
|
12055
|
+
source.on("theme_mode", applyThemeMode);
|
|
12056
|
+
applyThemeMode(themeModeFromColorFgBg(env) ?? "dark");
|
|
12057
|
+
const answered = await source.waitForThemeMode(graceMs);
|
|
12058
|
+
if (answered) applyThemeMode(answered);
|
|
12059
|
+
}
|
|
12060
|
+
|
|
12022
12061
|
//#endregion
|
|
12023
12062
|
//#region src/chat/boot.tsx
|
|
12024
12063
|
/**
|
|
@@ -12045,13 +12084,10 @@ async function runChat({ appUrl, sessionToken, shareMachine, promptHistoryPath,
|
|
|
12045
12084
|
themeId: monoTheme.id
|
|
12046
12085
|
});
|
|
12047
12086
|
} else if (themeOverride && findTheme(themeOverride)) store.lockTheme(themeOverride);
|
|
12048
|
-
else {
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
useStore.getState().setThemeMode(mode);
|
|
12053
|
-
});
|
|
12054
|
-
}
|
|
12087
|
+
else await settleBootThemeMode({
|
|
12088
|
+
source: renderer,
|
|
12089
|
+
applyThemeMode: (mode) => useStore.getState().setThemeMode(mode)
|
|
12090
|
+
});
|
|
12055
12091
|
createRoot(renderer).render(/* @__PURE__ */ jsx(App, {
|
|
12056
12092
|
appUrl,
|
|
12057
12093
|
sessionToken,
|
|
@@ -12066,8 +12102,10 @@ async function runChat({ appUrl, sessionToken, shareMachine, promptHistoryPath,
|
|
|
12066
12102
|
/** Open the same workspace picker used by the initial agent screen. */
|
|
12067
12103
|
async function runWorkspacePicker({ appUrl, sessionToken }) {
|
|
12068
12104
|
const renderer = await createCliRenderer({ exitOnCtrlC: false });
|
|
12069
|
-
|
|
12070
|
-
|
|
12105
|
+
await settleBootThemeMode({
|
|
12106
|
+
source: renderer,
|
|
12107
|
+
applyThemeMode: (mode) => useStore.getState().setThemeMode(mode)
|
|
12108
|
+
});
|
|
12071
12109
|
const close = () => renderer.destroy();
|
|
12072
12110
|
createRoot(renderer).render(/* @__PURE__ */ jsx("box", {
|
|
12073
12111
|
style: {
|