skydive-cli 0.6.0-beta.18 → 0.6.0-beta.19
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 +3 -0
- package/dist/js/bin.mjs +20 -20
- package/dist/js/{boot-BcyHfvnh.mjs → boot-BWiSsPQJ.mjs} +229 -125
- package/dist/js/client-BHXI6wfY.mjs +5 -0
- package/dist/js/{client-DG0vUvWI.mjs → client-HWCoL5Jm.mjs} +1 -1
- package/dist/js/{daemon-rHe1xapN.mjs → daemon-Dl3nN-w4.mjs} +1 -1
- package/dist/js/{daemon-DZ9YSkAh.mjs → daemon-L_e8QFNp.mjs} +2 -2
- package/dist/js/daemon-client-BTkEdnyF.mjs +8 -0
- package/dist/js/{daemon-client-D-k67MEB.mjs → daemon-client-BUakFQGS.mjs} +1 -1
- package/dist/js/{install-Dvl9vzTP.mjs → install-Bs9OISd4.mjs} +2 -2
- package/dist/js/{print-CCXpClJw.mjs → print-BC2o90gX.mjs} +1 -1
- package/dist/js/{print-COTmamJX.mjs → print-iB47KC-f.mjs} +2 -2
- package/dist/js/{print-share-34Iwxo39.mjs → print-share-CsIKrGto.mjs} +1 -1
- package/dist/js/{rest-D2MDvQ6c.mjs → rest-DMNGNHgm.mjs} +1 -1
- package/dist/js/{rest-DZCq0tZw.mjs → rest-DQFiN7VL.mjs} +1 -1
- package/package.json +5 -5
- package/dist/js/client-BpD6yakI.mjs +0 -5
- package/dist/js/daemon-client-BwyXZn0g.mjs +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Changed
|
|
11
11
|
|
|
12
|
+
- `/fork` in the chat TUI now works while the agent is mid-run. It used to refuse with "finish or cancel the run first"; now it copies the conversation up to the last completed message and opens the copy, while the agent keeps working on the original — reopen the original to reattach, exactly as after `esc`. This matches the web "Fork chat" menu item, which never had the restriction.
|
|
13
|
+
- The two cards pinned above the chat TUI composer — **subagents** and **plan** — can now be minimized to a single header row. Click a card's header (the `▾`/`▸` chevron shows which way it goes), or use `/subagent collapse` and `/plan collapse`; `expand` on either brings the rows back. Minimized, a card keeps its label and its progress counter (`Subagents 7/10`), so a ten-task fan-out costs one row instead of ten and the rest of the terminal goes back to the transcript. Two things move with this: `/plan collapse` now minimizes the card (it used to re-fold the completed rows — that is `expand`'s counterpart and is still what clicking the card's _body_ does), and the plan card's fold hint moved from the header onto its `✔ N done` summary row, since the header is now the minimize target.
|
|
14
|
+
|
|
12
15
|
- The chat TUI status bar now always shows where the portal stands, instead of only lighting up once everything already worked. It reads `portal off`, `portal connecting`, `portal on` (open on this machine, but this agent has no grant), `portal shared` (green — this agent can run commands here), `portal error`, or `portal unavailable` when you signed in with an API key and no portal is possible. Previously the badge rendered nothing in every one of those states, so "why can't the agent reach my machine?" had no answer on screen.
|
|
13
16
|
- One word for that feature across the whole CLI: **portal**. The footer hint is now `ctrl+t portal` / `ctrl+t close portal` (was `local access` / `revoke access`), `/status` reports a `portal` row (was `local access`), and `/share` and `/portal` describe themselves as opening the portal and granting an agent access to your machine. `/portal` used to say "access your computer", which collided with `/computer` — that command still means the **agent's** sandbox, and "computer" stays reserved for it. `--share-machine` and the `shareMachineDefault` config key are unchanged.
|
|
14
17
|
- `npm i -g skydive-cli` (and yarn/pnpm/bun) now installs a tiny launcher plus one prebuilt, os/cpu-matched binary that carries its own runtime — so on the common platforms `skydive chat` and `skydive import` start instantly and **do not download a Bun runtime on first use**. On any platform without a prebuilt binary (or if the optional dependency is skipped), the CLI automatically falls back to the existing behavior: it runs under your Node and provisions Bun on first `chat`, exactly as before. Nothing about the commands, flags, config, or `SKYDIVE_*` environment variables changes, and `skydive update` still upgrades npm installs via your package manager and standalone-binary installs in place.
|
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 getPromptHistoryPath, B as resolveConfig, D as getDefaultAgent, E as getConfigPath, F as getStoredApiKeyWorkspaceName, G as saveSession, H as resolveSession$1, I as getUpdateCheckDisabled, N as getShareMachineDefault, O as getLastSeenVersion, P as getStoredApiKeyId, R as resolveAppUrl, S as DEFAULT_API_URL, T as deleteConfig, V as resolveManagementAuth, W as saveConfig, b as API_KEY_FAMILY_PREFIX, i as resolveAgent$1, k as getPreference, q as setLastSeenVersion, w as PREFERENCES, x as API_KEY_PREFIX, y as API_KEYS_URL, z as resolveChatAuth } from "./print-
|
|
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-
|
|
2
|
+
import { c as version, s as name, t as createRestClient } from "./rest-DQFiN7VL.mjs";
|
|
3
|
+
import { A as getPromptHistoryPath, B as resolveConfig, D as getDefaultAgent, E as getConfigPath, F as getStoredApiKeyWorkspaceName, G as saveSession, H as resolveSession$1, I as getUpdateCheckDisabled, N as getShareMachineDefault, O as getLastSeenVersion, P as getStoredApiKeyId, R as resolveAppUrl, S as DEFAULT_API_URL, T as deleteConfig, V as resolveManagementAuth, W as saveConfig, b as API_KEY_FAMILY_PREFIX, i as resolveAgent$1, k as getPreference, q as setLastSeenVersion, w as PREFERENCES, x as API_KEY_PREFIX, y as API_KEYS_URL, z as resolveChatAuth } from "./print-BC2o90gX.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-Bs9OISd4.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 { a as resolveMachineIdentity } from "./client-
|
|
8
|
+
import { a as resolveMachineIdentity } from "./client-HWCoL5Jm.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-
|
|
11
|
+
import { d as daemonPaths, i as queryDaemonStatus, n as ensureDaemonRunning, s as stopDaemon, u as PORTAL_DAEMON_FLAG } from "./daemon-Dl3nN-w4.mjs";
|
|
12
12
|
import { a as encodeFsRequest, i as decodeFsResponse, n as SANDBOX_STREAM_PATH, r as streamSpecToQuery, t as SandboxStream } from "./client-l6orYfqq.mjs";
|
|
13
13
|
import { hideBin } from "yargs/helpers";
|
|
14
14
|
import yargs from "yargs";
|
|
@@ -1584,7 +1584,7 @@ const importCommand = {
|
|
|
1584
1584
|
process.exit(1);
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
|
-
const { runChat } = await import("./boot-
|
|
1587
|
+
const { runChat } = await import("./boot-BWiSsPQJ.mjs");
|
|
1588
1588
|
await runChat({
|
|
1589
1589
|
appUrl,
|
|
1590
1590
|
sessionToken: session.value.sessionToken,
|
|
@@ -1614,7 +1614,7 @@ async function runImportPrintMode({ argv, appUrl }) {
|
|
|
1614
1614
|
printError(`${session.error.message} For non-interactive use, run \`skydive auth login --web\` first, or set SKYDIVE_SESSION_TOKEN.`);
|
|
1615
1615
|
process.exit(1);
|
|
1616
1616
|
}
|
|
1617
|
-
const { connectMachineShare } = await import("./print-share-
|
|
1617
|
+
const { connectMachineShare } = await import("./print-share-CsIKrGto.mjs");
|
|
1618
1618
|
const machineShare = await connectMachineShare({
|
|
1619
1619
|
appUrl,
|
|
1620
1620
|
sessionToken: session.value.sessionToken,
|
|
@@ -1622,7 +1622,7 @@ async function runImportPrintMode({ argv, appUrl }) {
|
|
|
1622
1622
|
});
|
|
1623
1623
|
const extra = (argv.print ?? "").trim();
|
|
1624
1624
|
const prompt = buildImportSeedPrompt(process.cwd(), machineOsFromPlatform(process.platform)) + (extra ? `\n\nAdditional instructions: ${extra}` : "");
|
|
1625
|
-
const { runPrint } = await import("./print-
|
|
1625
|
+
const { runPrint } = await import("./print-iB47KC-f.mjs");
|
|
1626
1626
|
try {
|
|
1627
1627
|
const result = await runPrint({
|
|
1628
1628
|
appUrl,
|
|
@@ -2029,7 +2029,7 @@ const chatCommand = {
|
|
|
2029
2029
|
sessionToken: auth.value.token,
|
|
2030
2030
|
agentSelector: argv.agent ?? null
|
|
2031
2031
|
});
|
|
2032
|
-
const { runChat } = await import("./boot-
|
|
2032
|
+
const { runChat } = await import("./boot-BWiSsPQJ.mjs");
|
|
2033
2033
|
await runChat({
|
|
2034
2034
|
appUrl: auth.value.appUrl,
|
|
2035
2035
|
sessionToken: auth.value.token,
|
|
@@ -2113,7 +2113,7 @@ async function runPrintMode({ argv, appUrl }) {
|
|
|
2113
2113
|
printError(`${auth.error.message} For non-interactive use, run \`skydive auth login\` first, or set SKYDIVE_API_KEY / SKYDIVE_SESSION_TOKEN.`);
|
|
2114
2114
|
process.exit(1);
|
|
2115
2115
|
}
|
|
2116
|
-
const { runPrint, readStdin } = await import("./print-
|
|
2116
|
+
const { runPrint, readStdin } = await import("./print-iB47KC-f.mjs");
|
|
2117
2117
|
const workspaceId = await resolveWorkspaceFlag({
|
|
2118
2118
|
appUrl,
|
|
2119
2119
|
sessionToken: auth.value.token,
|
|
@@ -2143,7 +2143,7 @@ async function runPrintMode({ argv, appUrl }) {
|
|
|
2143
2143
|
process.exit(1);
|
|
2144
2144
|
}
|
|
2145
2145
|
} else {
|
|
2146
|
-
const { connectMachineShare } = await import("./print-share-
|
|
2146
|
+
const { connectMachineShare } = await import("./print-share-CsIKrGto.mjs");
|
|
2147
2147
|
machineShare = await connectMachineShare({
|
|
2148
2148
|
appUrl: auth.value.appUrl,
|
|
2149
2149
|
sessionToken: auth.value.token,
|
|
@@ -2208,7 +2208,7 @@ const getCommand$1 = {
|
|
|
2208
2208
|
printError(`${auth.error.message} Run \`skydive auth login\` first, or set SKYDIVE_API_KEY / SKYDIVE_SESSION_TOKEN.`);
|
|
2209
2209
|
process.exit(1);
|
|
2210
2210
|
}
|
|
2211
|
-
const { messageGet } = await import("./print-
|
|
2211
|
+
const { messageGet } = await import("./print-iB47KC-f.mjs");
|
|
2212
2212
|
try {
|
|
2213
2213
|
const result = await messageGet({
|
|
2214
2214
|
appUrl: auth.value.appUrl,
|
|
@@ -2411,7 +2411,7 @@ const switchCommand = {
|
|
|
2411
2411
|
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.");
|
|
2412
2412
|
process.exit(1);
|
|
2413
2413
|
}
|
|
2414
|
-
const { runWorkspacePicker } = await import("./boot-
|
|
2414
|
+
const { runWorkspacePicker } = await import("./boot-BWiSsPQJ.mjs");
|
|
2415
2415
|
await runWorkspacePicker(session);
|
|
2416
2416
|
return;
|
|
2417
2417
|
}
|
|
@@ -2490,7 +2490,7 @@ const openCommand = {
|
|
|
2490
2490
|
const agent = argv.agent ? resolveAgent$1((await fetchPortalDevices(session)).agents, argv.agent) : null;
|
|
2491
2491
|
const cwd = argv.cwd ? path.resolve(argv.cwd) : process.cwd();
|
|
2492
2492
|
const { machineName } = await resolveMachineIdentity(null);
|
|
2493
|
-
const { PortalDaemonClient } = await import("./daemon-client-
|
|
2493
|
+
const { PortalDaemonClient } = await import("./daemon-client-BTkEdnyF.mjs");
|
|
2494
2494
|
let lastLine = "";
|
|
2495
2495
|
let signalConnected;
|
|
2496
2496
|
const connected = new Promise((resolve) => {
|
|
@@ -2847,8 +2847,8 @@ const sandboxCommand = {
|
|
|
2847
2847
|
}).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`"),
|
|
2848
2848
|
handler: async (argv) => {
|
|
2849
2849
|
const session = requireSession(argv);
|
|
2850
|
-
const { createRestClient } = await import("./rest-
|
|
2851
|
-
const { resolveAgent } = await import("./print-
|
|
2850
|
+
const { createRestClient } = await import("./rest-DMNGNHgm.mjs");
|
|
2851
|
+
const { resolveAgent } = await import("./print-iB47KC-f.mjs");
|
|
2852
2852
|
const client = createRestClient({
|
|
2853
2853
|
appUrl: session.appUrl,
|
|
2854
2854
|
sessionToken: session.sessionToken
|
|
@@ -3119,8 +3119,8 @@ const fsEditCommand = {
|
|
|
3119
3119
|
handler: async (argv) => {
|
|
3120
3120
|
const session = requireSession(argv);
|
|
3121
3121
|
const remotePath = argv.path;
|
|
3122
|
-
const { createRestClient } = await import("./rest-
|
|
3123
|
-
const { resolveAgent } = await import("./print-
|
|
3122
|
+
const { createRestClient } = await import("./rest-DMNGNHgm.mjs");
|
|
3123
|
+
const { resolveAgent } = await import("./print-iB47KC-f.mjs");
|
|
3124
3124
|
const client = createRestClient({
|
|
3125
3125
|
appUrl: session.appUrl,
|
|
3126
3126
|
sessionToken: session.sessionToken
|
|
@@ -4430,7 +4430,7 @@ function setupUpdateCheck(argv) {
|
|
|
4430
4430
|
|
|
4431
4431
|
//#endregion
|
|
4432
4432
|
//#region src/changelog.generated.ts
|
|
4433
|
-
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### Changed\n\n- The chat TUI status bar now always shows where the portal stands, instead of only lighting up once everything already worked. It reads `portal off`, `portal connecting`, `portal on` (open on this machine, but this agent has no grant), `portal shared` (green — this agent can run commands here), `portal error`, or `portal unavailable` when you signed in with an API key and no portal is possible. Previously the badge rendered nothing in every one of those states, so \"why can't the agent reach my machine?\" had no answer on screen.\n- One word for that feature across the whole CLI: **portal**. The footer hint is now `ctrl+t portal` / `ctrl+t close portal` (was `local access` / `revoke access`), `/status` reports a `portal` row (was `local access`), and `/share` and `/portal` describe themselves as opening the portal and granting an agent access to your machine. `/portal` used to say \"access your computer\", which collided with `/computer` — that command still means the **agent's** sandbox, and \"computer\" stays reserved for it. `--share-machine` and the `shareMachineDefault` config key are unchanged.\n- `npm i -g skydive-cli` (and yarn/pnpm/bun) now installs a tiny launcher plus one prebuilt, os/cpu-matched binary that carries its own runtime — so on the common platforms `skydive chat` and `skydive import` start instantly and **do not download a Bun runtime on first use**. On any platform without a prebuilt binary (or if the optional dependency is skipped), the CLI automatically falls back to the existing behavior: it runs under your Node and provisions Bun on first `chat`, exactly as before. Nothing about the commands, flags, config, or `SKYDIVE_*` environment variables changes, and `skydive update` still upgrades npm installs via your package manager and standalone-binary installs in place.\n\n### Added\n\n- Files an agent shares into the conversation now show as a saveable row in the chat TUI. When the agent sends you a file (a report, an export, a screenshot), it appears as a `📎` row with the filename and size and a \"click to save\" hint; clicking it downloads the file to your `~/Downloads` (falling back to your home directory) and opens it with your default app, then the row shows where it landed. Clicking a saved row again re-opens it. Previously these files were only reachable in the web app — in the terminal they were invisible.\n- `platform ask` forms now render in the chat TUI. The card lists each question with lettered options (A/B/C/D plus Other); `ctrl+r` opens a full overlay picker (one question at a time, arrows + enter, Other as a typed row — the Claude Code interaction). The answer sends as a normal message. Headless `chat -p` prints the question as an `[action needed]` block instead of dropping it.\n- Every API request now reports this install's version (`x-skydive-cli-version`) so the server can refuse features the installed CLI cannot render — `platform ask` needs the #21411 canary (`0.5.0-beta.43` or newer), not 0.4.0 and not earlier 0.5.0 betas.\n- `/search` (alias `/find`) in the chat TUI — opens the conversation picker with its search field focused, so \"find a conversation\" has a discoverable command instead of being a feature you had to know the bare picker already had. Pass a query inline (`/search billing deep dive`) and the picker opens already narrowed to the matches; bare `/search` opens it ready for you to type. The search runs server-side across conversation titles, message bodies, and participant names, the same search the picker exposes.\n- First run in a workspace with no agents now sets you up automatically: instead of dropping you on an empty agent picker, `skydive` creates your first agent for you (with a suggested name and avatar, mirroring the web onboarding flow) and then offers to have it learn how you already work — reading the other coding agents set up on your machine (Claude Code, Cursor, Codex, and more), the same import that `skydive import` runs, with a plan shown first and credentials never copied. Decline and you go straight into the new agent's chat. You can replay this flow anytime with `skydive --onboarding` (or `SKYDIVE_FORCE_ONBOARDING=1`), even in a workspace that already has agents.\n- `/computer` in the chat TUI — a snapshot of the agent's sandbox drawn as colored bar graphs: CPU, memory, and disk usage. Bars turn amber past 75%% and red past 90%% so a glance tells you whether the box is under pressure. The numbers come from the Skydive API (the same live resource sample the web computer view reads), not by connecting to the sandbox — so the card shows instantly, never waking or hanging on a box that isn't running: when the agent has no live sandbox it simply reads \"no sandbox running\". The card keeps itself current quietly (a slow background refresh, no flicker or \"updating\" chrome); only the most recent card refreshes, and it silently stops while you're scrolled up (no wasted polls on a card you're not looking at) and resumes at the bottom.\n- `/computer restart` in the chat TUI — reboot the agent's sandbox from chat. It asks a `y`/`n` confirm first (the restart stops whatever run is going and brings up a fresh box), then enqueues the same restart the web \"Restart\" control does. Available to anyone with edit access to the agent; view-only members are told they can't.\n- `skydive fs` — a namespace for working with the files on an agent's computer (its sandbox) from your own machine. Its first subcommand, `skydive fs edit <path>`, reads a remote file down over the same relay `skydive sandbox` uses, opens it in your local editor (`$VISUAL`/`$EDITOR`, override with `--editor`, defaults to `vi`), and writes your changes back atomically when you save and close — so you can edit a remote file as if it were local without opening the chat TUI. A path that doesn't exist yet is created on save; no changes means nothing is written. Access is gated on EDIT permission for the agent, exactly like `skydive sandbox`. (A first-class `fs` relay channel and `skydive fs mount` land in follow-ups.)\n\n## [0.4.0] - 2026-08-07\n\n### Added\n\n- `skydive chat` works with API key auth: an API key alone now opens the chat TUI (and headless `chat -p`) without a browser login, using the key's pinned workspace.\n- `skydive config` command to view and set the safe, hand-editable CLI preferences (`shareMachineDefault`, `updateCheck`) without opening `config.json`. `config`/`config list` shows each key, its effective value, and whether it comes from the file or the built-in default; `config get`/`set`/`unset` read and change one key; `config path` prints the config file location. It only ever touches those preference keys, never credentials or flow-managed state.\n- Billing-blocked sends and runs now surface the server-authored recovery\n guidance from the typed billing outcome. The chat TUI renders it as a\n warning-toned system-notice row — live when a send is refused or a run is\n stopped at the billing boundary, and again when reopening a conversation\n that holds a persisted billing notice — instead of a generic error.\n Headless `chat -p` and `messages get` print the guidance (state, recovery\n step, and manage-billing URL) on stderr, keep any partial output already\n streamed on stdout, and exit with code `5` (distinct from the generic `1`)\n so scripted callers can tell a billing pause from a failure.\n- Syntax highlighting for 14 more languages in the chat transcript and file/review panes (python, bash, go, rust, c, cpp, java, ruby, css, html, json, yaml, and more) — previously only JavaScript/TypeScript rendered colored.\n\n### Changed\n\n- `skydive agent list` lists the full agent roster by default instead of a truncated page.\n\n### Fixed\n\n- Long multi-line bash tool-call commands (e.g. heredocs) are clamped with a `+N more · click to expand` tail instead of dumping their whole body into the scrollback.\n- Tool error output is clipped the same way as ok output, so a failing command no longer floods the transcript.\n- The TUI toast overlay has an opaque background instead of letting the transcript bleed through.\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";
|
|
4433
|
+
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### Changed\n\n- `/fork` in the chat TUI now works while the agent is mid-run. It used to refuse with \"finish or cancel the run first\"; now it copies the conversation up to the last completed message and opens the copy, while the agent keeps working on the original — reopen the original to reattach, exactly as after `esc`. This matches the web \"Fork chat\" menu item, which never had the restriction.\n- The two cards pinned above the chat TUI composer — **subagents** and **plan** — can now be minimized to a single header row. Click a card's header (the `▾`/`▸` chevron shows which way it goes), or use `/subagent collapse` and `/plan collapse`; `expand` on either brings the rows back. Minimized, a card keeps its label and its progress counter (`Subagents 7/10`), so a ten-task fan-out costs one row instead of ten and the rest of the terminal goes back to the transcript. Two things move with this: `/plan collapse` now minimizes the card (it used to re-fold the completed rows — that is `expand`'s counterpart and is still what clicking the card's _body_ does), and the plan card's fold hint moved from the header onto its `✔ N done` summary row, since the header is now the minimize target.\n\n- The chat TUI status bar now always shows where the portal stands, instead of only lighting up once everything already worked. It reads `portal off`, `portal connecting`, `portal on` (open on this machine, but this agent has no grant), `portal shared` (green — this agent can run commands here), `portal error`, or `portal unavailable` when you signed in with an API key and no portal is possible. Previously the badge rendered nothing in every one of those states, so \"why can't the agent reach my machine?\" had no answer on screen.\n- One word for that feature across the whole CLI: **portal**. The footer hint is now `ctrl+t portal` / `ctrl+t close portal` (was `local access` / `revoke access`), `/status` reports a `portal` row (was `local access`), and `/share` and `/portal` describe themselves as opening the portal and granting an agent access to your machine. `/portal` used to say \"access your computer\", which collided with `/computer` — that command still means the **agent's** sandbox, and \"computer\" stays reserved for it. `--share-machine` and the `shareMachineDefault` config key are unchanged.\n- `npm i -g skydive-cli` (and yarn/pnpm/bun) now installs a tiny launcher plus one prebuilt, os/cpu-matched binary that carries its own runtime — so on the common platforms `skydive chat` and `skydive import` start instantly and **do not download a Bun runtime on first use**. On any platform without a prebuilt binary (or if the optional dependency is skipped), the CLI automatically falls back to the existing behavior: it runs under your Node and provisions Bun on first `chat`, exactly as before. Nothing about the commands, flags, config, or `SKYDIVE_*` environment variables changes, and `skydive update` still upgrades npm installs via your package manager and standalone-binary installs in place.\n\n### Added\n\n- Files an agent shares into the conversation now show as a saveable row in the chat TUI. When the agent sends you a file (a report, an export, a screenshot), it appears as a `📎` row with the filename and size and a \"click to save\" hint; clicking it downloads the file to your `~/Downloads` (falling back to your home directory) and opens it with your default app, then the row shows where it landed. Clicking a saved row again re-opens it. Previously these files were only reachable in the web app — in the terminal they were invisible.\n- `platform ask` forms now render in the chat TUI. The card lists each question with lettered options (A/B/C/D plus Other); `ctrl+r` opens a full overlay picker (one question at a time, arrows + enter, Other as a typed row — the Claude Code interaction). The answer sends as a normal message. Headless `chat -p` prints the question as an `[action needed]` block instead of dropping it.\n- Every API request now reports this install's version (`x-skydive-cli-version`) so the server can refuse features the installed CLI cannot render — `platform ask` needs the #21411 canary (`0.5.0-beta.43` or newer), not 0.4.0 and not earlier 0.5.0 betas.\n- `/search` (alias `/find`) in the chat TUI — opens the conversation picker with its search field focused, so \"find a conversation\" has a discoverable command instead of being a feature you had to know the bare picker already had. Pass a query inline (`/search billing deep dive`) and the picker opens already narrowed to the matches; bare `/search` opens it ready for you to type. The search runs server-side across conversation titles, message bodies, and participant names, the same search the picker exposes.\n- First run in a workspace with no agents now sets you up automatically: instead of dropping you on an empty agent picker, `skydive` creates your first agent for you (with a suggested name and avatar, mirroring the web onboarding flow) and then offers to have it learn how you already work — reading the other coding agents set up on your machine (Claude Code, Cursor, Codex, and more), the same import that `skydive import` runs, with a plan shown first and credentials never copied. Decline and you go straight into the new agent's chat. You can replay this flow anytime with `skydive --onboarding` (or `SKYDIVE_FORCE_ONBOARDING=1`), even in a workspace that already has agents.\n- `/computer` in the chat TUI — a snapshot of the agent's sandbox drawn as colored bar graphs: CPU, memory, and disk usage. Bars turn amber past 75%% and red past 90%% so a glance tells you whether the box is under pressure. The numbers come from the Skydive API (the same live resource sample the web computer view reads), not by connecting to the sandbox — so the card shows instantly, never waking or hanging on a box that isn't running: when the agent has no live sandbox it simply reads \"no sandbox running\". The card keeps itself current quietly (a slow background refresh, no flicker or \"updating\" chrome); only the most recent card refreshes, and it silently stops while you're scrolled up (no wasted polls on a card you're not looking at) and resumes at the bottom.\n- `/computer restart` in the chat TUI — reboot the agent's sandbox from chat. It asks a `y`/`n` confirm first (the restart stops whatever run is going and brings up a fresh box), then enqueues the same restart the web \"Restart\" control does. Available to anyone with edit access to the agent; view-only members are told they can't.\n- `skydive fs` — a namespace for working with the files on an agent's computer (its sandbox) from your own machine. Its first subcommand, `skydive fs edit <path>`, reads a remote file down over the same relay `skydive sandbox` uses, opens it in your local editor (`$VISUAL`/`$EDITOR`, override with `--editor`, defaults to `vi`), and writes your changes back atomically when you save and close — so you can edit a remote file as if it were local without opening the chat TUI. A path that doesn't exist yet is created on save; no changes means nothing is written. Access is gated on EDIT permission for the agent, exactly like `skydive sandbox`. (A first-class `fs` relay channel and `skydive fs mount` land in follow-ups.)\n\n## [0.4.0] - 2026-08-07\n\n### Added\n\n- `skydive chat` works with API key auth: an API key alone now opens the chat TUI (and headless `chat -p`) without a browser login, using the key's pinned workspace.\n- `skydive config` command to view and set the safe, hand-editable CLI preferences (`shareMachineDefault`, `updateCheck`) without opening `config.json`. `config`/`config list` shows each key, its effective value, and whether it comes from the file or the built-in default; `config get`/`set`/`unset` read and change one key; `config path` prints the config file location. It only ever touches those preference keys, never credentials or flow-managed state.\n- Billing-blocked sends and runs now surface the server-authored recovery\n guidance from the typed billing outcome. The chat TUI renders it as a\n warning-toned system-notice row — live when a send is refused or a run is\n stopped at the billing boundary, and again when reopening a conversation\n that holds a persisted billing notice — instead of a generic error.\n Headless `chat -p` and `messages get` print the guidance (state, recovery\n step, and manage-billing URL) on stderr, keep any partial output already\n streamed on stdout, and exit with code `5` (distinct from the generic `1`)\n so scripted callers can tell a billing pause from a failure.\n- Syntax highlighting for 14 more languages in the chat transcript and file/review panes (python, bash, go, rust, c, cpp, java, ruby, css, html, json, yaml, and more) — previously only JavaScript/TypeScript rendered colored.\n\n### Changed\n\n- `skydive agent list` lists the full agent roster by default instead of a truncated page.\n\n### Fixed\n\n- Long multi-line bash tool-call commands (e.g. heredocs) are clamped with a `+N more · click to expand` tail instead of dumping their whole body into the scrollback.\n- Tool error output is clipped the same way as ok output, so a failing command no longer floods the transcript.\n- The TUI toast overlay has an opaque background instead of letting the transcript bleed through.\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";
|
|
4434
4434
|
|
|
4435
4435
|
//#endregion
|
|
4436
4436
|
//#region src/whats-new.ts
|
|
@@ -4573,7 +4573,7 @@ if (process.argv.includes(UPDATE_WORKER_FLAG)) {
|
|
|
4573
4573
|
process.exit(0);
|
|
4574
4574
|
}
|
|
4575
4575
|
if (process.argv.includes(PORTAL_DAEMON_FLAG)) {
|
|
4576
|
-
const { runPortalDaemon } = await import("./daemon-
|
|
4576
|
+
const { runPortalDaemon } = await import("./daemon-L_e8QFNp.mjs");
|
|
4577
4577
|
runPortalDaemon(process.argv);
|
|
4578
4578
|
} else runCli();
|
|
4579
4579
|
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_APP_URL, E as getConfigPath, K as saveTheme, L as recordDefaultAgent, M as getSavedTheme, S as DEFAULT_API_URL, U as resolveWebUrl, _ as parseConnectCard, c as actionableCardVerb, d as parseOauthConnectParams, f as prioritizeActionableCards, g as computeSettledLabel, h as composeQuestionAnswer, i as resolveAgent, j as getReviewStateDir, l as cardActionErrorMessage, m as resolveConnectUrl, p as reconcileMaskedInput, s as MASK_CHAR, u as parseExternalOauthConnectParams, v as specKeyFor } from "./print-
|
|
4
|
-
import { A as installAgentAlias, C as themeVersion, D as machineOsFromPlatform, F as detectShell, L as getActiveWorkspaceId, M as takenAliasNames, O as aliasActivationHint, S as themeModeFromColorFgBg, T as themesForMode, V as setActiveWorkspace, _ as monoTheme, a as WORDMARK, b as themeForMode, d as profilingEnabled, f as record, g as findTheme, h as applyTheme, i as MARK_CELLS, j as slugifyAliasName, k as dedupeAliasName, m as DEFAULT_THEME_ID, n as buildCrashReport, p as writeArtifact, r as writeCrashReport, s as splashFitsWidth, t as installCrashHandler, v as noColorRequested, x as themeMode, y as theme, z as listWorkspaces } from "./install-
|
|
2
|
+
import { a as errorMessage, i as sendErrorMessage, n as errorDetail, o as isRecord, t as createRestClient } from "./rest-DQFiN7VL.mjs";
|
|
3
|
+
import { C as DEFAULT_APP_URL, E as getConfigPath, K as saveTheme, L as recordDefaultAgent, M as getSavedTheme, S as DEFAULT_API_URL, U as resolveWebUrl, _ as parseConnectCard, c as actionableCardVerb, d as parseOauthConnectParams, f as prioritizeActionableCards, g as computeSettledLabel, h as composeQuestionAnswer, i as resolveAgent, j as getReviewStateDir, l as cardActionErrorMessage, m as resolveConnectUrl, p as reconcileMaskedInput, s as MASK_CHAR, u as parseExternalOauthConnectParams, v as specKeyFor } from "./print-BC2o90gX.mjs";
|
|
4
|
+
import { A as installAgentAlias, C as themeVersion, D as machineOsFromPlatform, F as detectShell, L as getActiveWorkspaceId, M as takenAliasNames, O as aliasActivationHint, S as themeModeFromColorFgBg, T as themesForMode, V as setActiveWorkspace, _ as monoTheme, a as WORDMARK, b as themeForMode, d as profilingEnabled, f as record, g as findTheme, h as applyTheme, i as MARK_CELLS, j as slugifyAliasName, k as dedupeAliasName, m as DEFAULT_THEME_ID, n as buildCrashReport, p as writeArtifact, r as writeCrashReport, s as splashFitsWidth, t as installCrashHandler, v as noColorRequested, x as themeMode, y as theme, z as listWorkspaces } from "./install-Bs9OISd4.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 { t as PortalClient } from "./client-
|
|
7
|
+
import { t as PortalClient } from "./client-HWCoL5Jm.mjs";
|
|
8
8
|
import { t as defaultTlsCertSource } from "./tls-cert-Rua2oV7n.mjs";
|
|
9
9
|
import "./api-BFQ4PQDA.mjs";
|
|
10
|
-
import "./daemon-
|
|
10
|
+
import "./daemon-Dl3nN-w4.mjs";
|
|
11
11
|
import { t as SandboxStream } from "./client-l6orYfqq.mjs";
|
|
12
|
-
import { t as PortalDaemonClient } from "./daemon-client-
|
|
12
|
+
import { t as PortalDaemonClient } from "./daemon-client-BUakFQGS.mjs";
|
|
13
13
|
import { t as runRawPtyPassthrough } from "./raw-pty-dndn1Kxc.mjs";
|
|
14
14
|
import * as os$1 from "node:os";
|
|
15
15
|
import { homedir, platform, release, tmpdir } from "node:os";
|
|
@@ -7059,9 +7059,14 @@ function todosCanExpand(todos, cap) {
|
|
|
7059
7059
|
* reserve exactly this much and keep the composer pinned. Header + optional
|
|
7060
7060
|
* done-summary line + rendered rows + optional "+N more" tail + top margin.
|
|
7061
7061
|
* Must track `windowTodos` and `TodoCardView`'s layout.
|
|
7062
|
+
*
|
|
7063
|
+
* `collapsed` is the minimized card: the header row (label, progress counter
|
|
7064
|
+
* and the chevron that brings the rows back) plus the top margin, and nothing
|
|
7065
|
+
* else, however long the list is.
|
|
7062
7066
|
*/
|
|
7063
|
-
function todoCardHeight(todos, { expanded }) {
|
|
7067
|
+
function todoCardHeight(todos, { expanded, collapsed }) {
|
|
7064
7068
|
if (todos.length === 0) return 0;
|
|
7069
|
+
if (collapsed) return 2;
|
|
7065
7070
|
const w = windowTodos(todos, {
|
|
7066
7071
|
cap: MAX_VISIBLE_ROWS$1,
|
|
7067
7072
|
expanded
|
|
@@ -7102,15 +7107,20 @@ function rowColor$1(status) {
|
|
|
7102
7107
|
}
|
|
7103
7108
|
}
|
|
7104
7109
|
/**
|
|
7105
|
-
* The plan card's checklist content. The caller owns outer spacing and
|
|
7106
|
-
*
|
|
7107
|
-
*
|
|
7110
|
+
* The plan card's checklist content. The caller owns outer spacing and both
|
|
7111
|
+
* view states — the chat screen has to reserve the card's rows, so it can't
|
|
7112
|
+
* discover the height from a toggle held down here.
|
|
7108
7113
|
*
|
|
7109
|
-
*
|
|
7110
|
-
*
|
|
7111
|
-
*
|
|
7114
|
+
* The card has two independent click targets, one per axis of "how much do I
|
|
7115
|
+
* show":
|
|
7116
|
+
* - the **header** minimizes the card to that one row and back
|
|
7117
|
+
* (`collapsed` / `onToggleCollapsed`), which is what keeps a long plan from
|
|
7118
|
+
* eating the screen above the composer. The chevron carries the affordance.
|
|
7119
|
+
* - the **body** unfolds the completed work the window hides
|
|
7120
|
+
* (`expanded` / `onToggleExpanded`), the same interaction reasoning and
|
|
7121
|
+
* tool output already use. Only clickable when something is actually folded.
|
|
7112
7122
|
*/
|
|
7113
|
-
function TaskCardContent({ label, todos, isActive, expanded, onToggleExpanded }) {
|
|
7123
|
+
function TaskCardContent({ label, todos, isActive, collapsed, expanded, onToggleCollapsed, onToggleExpanded }) {
|
|
7114
7124
|
const completed = todos.filter((todo) => todo.status === "completed").length;
|
|
7115
7125
|
const canExpand = todosCanExpand(todos, MAX_VISIBLE_ROWS$1);
|
|
7116
7126
|
const { doneSummary, rows, moreCount } = windowTodos(todos, {
|
|
@@ -7119,66 +7129,72 @@ function TaskCardContent({ label, todos, isActive, expanded, onToggleExpanded })
|
|
|
7119
7129
|
});
|
|
7120
7130
|
return /* @__PURE__ */ jsxs("box", {
|
|
7121
7131
|
style: { flexDirection: "column" },
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
/* @__PURE__ */ jsx("text", {
|
|
7128
|
-
fg: isActive ? theme.accent : theme.muted,
|
|
7129
|
-
children: /* @__PURE__ */ jsx("b", { children: label })
|
|
7130
|
-
}),
|
|
7131
|
-
/* @__PURE__ */ jsxs("text", {
|
|
7132
|
-
fg: theme.dim,
|
|
7133
|
-
children: [
|
|
7134
|
-
" ",
|
|
7135
|
-
completed,
|
|
7136
|
-
"/",
|
|
7137
|
-
todos.length
|
|
7138
|
-
]
|
|
7139
|
-
}),
|
|
7140
|
-
canExpand ? /* @__PURE__ */ jsxs("text", {
|
|
7141
|
-
fg: theme.dim,
|
|
7142
|
-
children: [
|
|
7143
|
-
" ",
|
|
7144
|
-
"· click to ",
|
|
7145
|
-
expanded ? "collapse" : "expand"
|
|
7146
|
-
]
|
|
7147
|
-
}) : null
|
|
7148
|
-
]
|
|
7149
|
-
}),
|
|
7150
|
-
doneSummary > 0 ? /* @__PURE__ */ jsxs("box", {
|
|
7151
|
-
style: { flexDirection: "row" },
|
|
7152
|
-
children: [/* @__PURE__ */ jsx("text", {
|
|
7153
|
-
fg: theme.success,
|
|
7154
|
-
children: "✔ "
|
|
7155
|
-
}), /* @__PURE__ */ jsxs("text", {
|
|
7132
|
+
children: [/* @__PURE__ */ jsxs("box", {
|
|
7133
|
+
style: { flexDirection: "row" },
|
|
7134
|
+
onMouseDown: onToggleCollapsed,
|
|
7135
|
+
children: [
|
|
7136
|
+
/* @__PURE__ */ jsx("text", {
|
|
7156
7137
|
fg: theme.dim,
|
|
7157
|
-
children:
|
|
7158
|
-
})
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7138
|
+
children: collapsed ? "▸ " : "▾ "
|
|
7139
|
+
}),
|
|
7140
|
+
/* @__PURE__ */ jsx("text", {
|
|
7141
|
+
fg: isActive ? theme.accent : theme.muted,
|
|
7142
|
+
children: /* @__PURE__ */ jsx("b", { children: label })
|
|
7143
|
+
}),
|
|
7144
|
+
/* @__PURE__ */ jsxs("text", {
|
|
7145
|
+
fg: theme.dim,
|
|
7146
|
+
children: [
|
|
7147
|
+
" ",
|
|
7148
|
+
completed,
|
|
7149
|
+
"/",
|
|
7150
|
+
todos.length
|
|
7151
|
+
]
|
|
7152
|
+
})
|
|
7153
|
+
]
|
|
7154
|
+
}), collapsed ? null : /* @__PURE__ */ jsxs("box", {
|
|
7155
|
+
style: { flexDirection: "column" },
|
|
7156
|
+
onMouseDown: canExpand ? onToggleExpanded : void 0,
|
|
7157
|
+
children: [
|
|
7158
|
+
doneSummary > 0 ? /* @__PURE__ */ jsxs("box", {
|
|
7163
7159
|
style: { flexDirection: "row" },
|
|
7164
|
-
children: [
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7160
|
+
children: [
|
|
7161
|
+
/* @__PURE__ */ jsx("text", {
|
|
7162
|
+
fg: theme.success,
|
|
7163
|
+
children: "✔ "
|
|
7164
|
+
}),
|
|
7165
|
+
/* @__PURE__ */ jsxs("text", {
|
|
7166
|
+
fg: theme.dim,
|
|
7167
|
+
children: [doneSummary, " done"]
|
|
7168
|
+
}),
|
|
7169
|
+
/* @__PURE__ */ jsxs("text", {
|
|
7170
|
+
fg: theme.dim,
|
|
7171
|
+
children: [" ", "· click to show"]
|
|
7172
|
+
})
|
|
7173
|
+
]
|
|
7174
|
+
}) : null,
|
|
7175
|
+
rows.map((todo) => {
|
|
7176
|
+
const g = glyph(todo.status);
|
|
7177
|
+
return /* @__PURE__ */ jsxs("box", {
|
|
7178
|
+
style: { flexDirection: "row" },
|
|
7179
|
+
children: [/* @__PURE__ */ jsxs("text", {
|
|
7180
|
+
fg: g.fg,
|
|
7181
|
+
children: [g.char, " "]
|
|
7182
|
+
}), /* @__PURE__ */ jsx("text", {
|
|
7183
|
+
fg: rowColor$1(todo.status),
|
|
7184
|
+
children: todo.content
|
|
7185
|
+
})]
|
|
7186
|
+
}, todo.id);
|
|
7187
|
+
}),
|
|
7188
|
+
moreCount > 0 ? /* @__PURE__ */ jsxs("text", {
|
|
7189
|
+
fg: theme.dim,
|
|
7190
|
+
children: [
|
|
7191
|
+
" … +",
|
|
7192
|
+
moreCount,
|
|
7193
|
+
" more"
|
|
7194
|
+
]
|
|
7195
|
+
}) : null
|
|
7196
|
+
]
|
|
7197
|
+
})]
|
|
7182
7198
|
});
|
|
7183
7199
|
}
|
|
7184
7200
|
|
|
@@ -7193,9 +7209,12 @@ function TaskCardContent({ label, todos, isActive, expanded, onToggleExpanded })
|
|
|
7193
7209
|
* The card can't scroll like the web card, so it windows completed and pending
|
|
7194
7210
|
* work. `isActive` dims the header while the run is idle. `expanded` unfolds
|
|
7195
7211
|
* the completed work the window hides — a settled plan collapses to `✔ N done`
|
|
7196
|
-
* otherwise, and clicking the
|
|
7212
|
+
* otherwise, and clicking the body (or `/plan expand`) brings the rows back.
|
|
7213
|
+
* `collapsed` is the minimized card: header only, so a long plan can be kept
|
|
7214
|
+
* out of the way (click the header, or `/plan collapse`) without losing the
|
|
7215
|
+
* label and progress counter the way `/plan hide` does.
|
|
7197
7216
|
*/
|
|
7198
|
-
function TodoCardView({ todos, isActive, expanded, onToggleExpanded }) {
|
|
7217
|
+
function TodoCardView({ todos, isActive, collapsed, expanded, onToggleCollapsed, onToggleExpanded }) {
|
|
7199
7218
|
if (todos.length === 0) return null;
|
|
7200
7219
|
return /* @__PURE__ */ jsx("box", {
|
|
7201
7220
|
style: {
|
|
@@ -7209,7 +7228,9 @@ function TodoCardView({ todos, isActive, expanded, onToggleExpanded }) {
|
|
|
7209
7228
|
label: "Plan",
|
|
7210
7229
|
todos,
|
|
7211
7230
|
isActive,
|
|
7231
|
+
collapsed,
|
|
7212
7232
|
expanded,
|
|
7233
|
+
onToggleCollapsed,
|
|
7213
7234
|
onToggleExpanded
|
|
7214
7235
|
})
|
|
7215
7236
|
});
|
|
@@ -7552,8 +7573,14 @@ function SubagentRowView({ row, selected, width, nowMs, onOpen }) {
|
|
|
7552
7573
|
* ↵ to view (the chat screen owns those keys and the esc-back bookkeeping;
|
|
7553
7574
|
* the card reports its rows up through ConversationContext so the screen
|
|
7554
7575
|
* knows what's selectable).
|
|
7576
|
+
*
|
|
7577
|
+
* `collapsed` minimizes the card to its header row: a wide fan-out is 10 rows
|
|
7578
|
+
* of the terminal for as long as the conversation lives, so clicking the
|
|
7579
|
+
* header (or `/subagent collapse`) folds the rows away and leaves the label,
|
|
7580
|
+
* the live glyph and the N/M counter. The chat screen owns the flag because it
|
|
7581
|
+
* reserves the card's rows to keep the composer pinned.
|
|
7555
7582
|
*/
|
|
7556
|
-
function ToolSubagent({ items, isActive: _isActive, onHeightChange }) {
|
|
7583
|
+
function ToolSubagent({ items, isActive: _isActive, collapsed, onToggleCollapsed, onHeightChange }) {
|
|
7557
7584
|
const { rest, conversationId, openConversation, onSubagentBatch, subagentSelection } = useConversationContext();
|
|
7558
7585
|
const { width } = useTerminalDimensions();
|
|
7559
7586
|
const optimistic = /* @__PURE__ */ new Map();
|
|
@@ -7596,8 +7623,9 @@ function ToolSubagent({ items, isActive: _isActive, onHeightChange }) {
|
|
|
7596
7623
|
}, [live, rows.length]);
|
|
7597
7624
|
useEffect(() => {
|
|
7598
7625
|
const visibleRows = Math.min(rows.length, MAX_VISIBLE_ROWS);
|
|
7599
|
-
onHeightChange?.(rows.length === 0 ? items.length > 0 ? 1 : 0 : 1 + visibleRows + (rows.length > MAX_VISIBLE_ROWS ? 1 : 0));
|
|
7626
|
+
onHeightChange?.(rows.length === 0 ? items.length > 0 ? 1 : 0 : collapsed ? 1 : 1 + visibleRows + (rows.length > MAX_VISIBLE_ROWS ? 1 : 0));
|
|
7600
7627
|
}, [
|
|
7628
|
+
collapsed,
|
|
7601
7629
|
items.length,
|
|
7602
7630
|
onHeightChange,
|
|
7603
7631
|
rows.length
|
|
@@ -7656,32 +7684,40 @@ function ToolSubagent({ items, isActive: _isActive, onHeightChange }) {
|
|
|
7656
7684
|
const moreBelow = rows.length - start - visible.length;
|
|
7657
7685
|
return /* @__PURE__ */ jsxs("box", {
|
|
7658
7686
|
style: { flexDirection: "column" },
|
|
7659
|
-
children: [/* @__PURE__ */
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
"
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7687
|
+
children: [/* @__PURE__ */ jsx("box", {
|
|
7688
|
+
style: { flexDirection: "row" },
|
|
7689
|
+
onMouseDown: onToggleCollapsed,
|
|
7690
|
+
children: /* @__PURE__ */ jsxs("text", { children: [
|
|
7691
|
+
/* @__PURE__ */ jsx("span", {
|
|
7692
|
+
fg: theme.dim,
|
|
7693
|
+
children: collapsed ? "▸ " : "▾ "
|
|
7694
|
+
}),
|
|
7695
|
+
live ? /* @__PURE__ */ jsx(Spinner, { color: theme.accent }) : rows.every((row) => row.status === "completed") ? /* @__PURE__ */ jsx("span", {
|
|
7696
|
+
fg: theme.success,
|
|
7697
|
+
children: "✔"
|
|
7698
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
7699
|
+
fg: theme.error,
|
|
7700
|
+
children: "✗"
|
|
7701
|
+
}),
|
|
7702
|
+
/* @__PURE__ */ jsxs("span", {
|
|
7703
|
+
fg: theme.tool,
|
|
7704
|
+
children: [" ", /* @__PURE__ */ jsx("b", { children: headerLabel(rows) })]
|
|
7705
|
+
}),
|
|
7706
|
+
/* @__PURE__ */ jsxs("span", {
|
|
7707
|
+
fg: theme.dim,
|
|
7708
|
+
children: [
|
|
7709
|
+
" ",
|
|
7710
|
+
rows.filter((row) => row.status === "completed").length,
|
|
7711
|
+
"/",
|
|
7712
|
+
rows.length
|
|
7713
|
+
]
|
|
7714
|
+
}),
|
|
7715
|
+
openConversation && !collapsed ? /* @__PURE__ */ jsxs("span", {
|
|
7716
|
+
fg: theme.dim,
|
|
7717
|
+
children: [" ", selectedIndex !== null ? "↑/↓ select · ↵ view · esc back" : "/subagent to browse"]
|
|
7718
|
+
}) : null
|
|
7719
|
+
] })
|
|
7720
|
+
}), collapsed ? null : /* @__PURE__ */ jsxs("box", {
|
|
7685
7721
|
style: { flexDirection: "column" },
|
|
7686
7722
|
children: [visible.map((row, i) => {
|
|
7687
7723
|
const target = row.conversationId;
|
|
@@ -7707,8 +7743,12 @@ function ToolSubagent({ items, isActive: _isActive, onHeightChange }) {
|
|
|
7707
7743
|
* Delegated work pinned above the plan. Each batch owns its status polling;
|
|
7708
7744
|
* a settled batch keeps its rows — titles and drill-in — until the next
|
|
7709
7745
|
* fan-out replaces the group.
|
|
7746
|
+
*
|
|
7747
|
+
* `collapsed` folds the rows away and leaves the header (click it, or
|
|
7748
|
+
* `/subagent collapse`), so a ten-task fan-out stops owning ten rows above the
|
|
7749
|
+
* composer for the rest of the conversation.
|
|
7710
7750
|
*/
|
|
7711
|
-
function SubagentCardView({ items, isActive, onHeightChange }) {
|
|
7751
|
+
function SubagentCardView({ items, isActive, collapsed, onToggleCollapsed, onHeightChange }) {
|
|
7712
7752
|
const [height, setHeight] = useState(0);
|
|
7713
7753
|
useEffect(() => onHeightChange?.(height > 0 ? height + 1 : 0), [height, onHeightChange]);
|
|
7714
7754
|
return /* @__PURE__ */ jsx("box", {
|
|
@@ -7723,6 +7763,8 @@ function SubagentCardView({ items, isActive, onHeightChange }) {
|
|
|
7723
7763
|
children: /* @__PURE__ */ jsx(ToolSubagent, {
|
|
7724
7764
|
items,
|
|
7725
7765
|
isActive,
|
|
7766
|
+
collapsed,
|
|
7767
|
+
onToggleCollapsed,
|
|
7726
7768
|
onHeightChange: setHeight
|
|
7727
7769
|
})
|
|
7728
7770
|
});
|
|
@@ -8750,13 +8792,21 @@ const keybindGroups = [
|
|
|
8750
8792
|
keys: "ctrl+y",
|
|
8751
8793
|
action: "jump back to your last message"
|
|
8752
8794
|
},
|
|
8795
|
+
{
|
|
8796
|
+
keys: "click header",
|
|
8797
|
+
action: "minimize / expand the pinned plan or subagents card"
|
|
8798
|
+
},
|
|
8753
8799
|
{
|
|
8754
8800
|
keys: "click",
|
|
8755
8801
|
action: "expand a folded plan card back to its finished rows"
|
|
8756
8802
|
},
|
|
8757
8803
|
{
|
|
8758
|
-
keys: "/plan [show|hide|expand
|
|
8759
|
-
action: "show / hide / unfold the pinned plan card"
|
|
8804
|
+
keys: "/plan [show|hide|collapse|expand]",
|
|
8805
|
+
action: "show / hide / minimize / unfold the pinned plan card"
|
|
8806
|
+
},
|
|
8807
|
+
{
|
|
8808
|
+
keys: "/subagent [collapse|expand]",
|
|
8809
|
+
action: "browse the pinned subagents card, or minimize / expand it"
|
|
8760
8810
|
},
|
|
8761
8811
|
{
|
|
8762
8812
|
keys: "/rename <title>",
|
|
@@ -9461,9 +9511,12 @@ const slashCommands = [
|
|
|
9461
9511
|
{
|
|
9462
9512
|
name: "subagent",
|
|
9463
9513
|
aliases: ["subagents"],
|
|
9464
|
-
argsHint:
|
|
9465
|
-
description: "
|
|
9466
|
-
action: {
|
|
9514
|
+
argsHint: "[collapse|expand]",
|
|
9515
|
+
description: "browse, minimize or expand the fan-out card",
|
|
9516
|
+
action: {
|
|
9517
|
+
kind: "subagent",
|
|
9518
|
+
mode: "browse"
|
|
9519
|
+
}
|
|
9467
9520
|
},
|
|
9468
9521
|
{
|
|
9469
9522
|
name: "status",
|
|
@@ -9482,8 +9535,8 @@ const slashCommands = [
|
|
|
9482
9535
|
{
|
|
9483
9536
|
name: "plan",
|
|
9484
9537
|
aliases: ["todos", "todo"],
|
|
9485
|
-
argsHint: "[show|hide|expand
|
|
9486
|
-
description: "show, hide, or expand the pinned plan
|
|
9538
|
+
argsHint: "[show|hide|collapse|expand]",
|
|
9539
|
+
description: "show, hide, minimize or expand the pinned plan",
|
|
9487
9540
|
action: {
|
|
9488
9541
|
kind: "plan",
|
|
9489
9542
|
mode: "toggle"
|
|
@@ -13325,6 +13378,13 @@ function routeInput(raw) {
|
|
|
13325
13378
|
mode: arg === "show" ? "show" : arg === "hide" ? "hide" : arg === "expand" ? "expand" : arg === "collapse" ? "collapse" : "toggle"
|
|
13326
13379
|
};
|
|
13327
13380
|
}
|
|
13381
|
+
case "subagent": {
|
|
13382
|
+
const arg = match.rest.toLowerCase();
|
|
13383
|
+
return {
|
|
13384
|
+
kind: "subagent",
|
|
13385
|
+
mode: arg === "collapse" ? "collapse" : arg === "expand" ? "expand" : "browse"
|
|
13386
|
+
};
|
|
13387
|
+
}
|
|
13328
13388
|
case "new-conversation":
|
|
13329
13389
|
case "fork":
|
|
13330
13390
|
case "archive-conversation":
|
|
@@ -13332,7 +13392,6 @@ function routeInput(raw) {
|
|
|
13332
13392
|
case "effort-picker":
|
|
13333
13393
|
case "theme-picker":
|
|
13334
13394
|
case "pr-picker":
|
|
13335
|
-
case "subagent":
|
|
13336
13395
|
case "status":
|
|
13337
13396
|
case "share":
|
|
13338
13397
|
case "browser":
|
|
@@ -13524,6 +13583,13 @@ function ChatScreen({ agent, conversation, attachRunId, parentConversationId })
|
|
|
13524
13583
|
const [planHidden, setPlanHidden] = useState(false);
|
|
13525
13584
|
const [planExpanded, setPlanExpanded] = useState(false);
|
|
13526
13585
|
const togglePlanExpanded = useCallback(() => setPlanExpanded((current) => !current), []);
|
|
13586
|
+
const [planCollapsed, setPlanCollapsed] = useState(false);
|
|
13587
|
+
const togglePlanCollapsed = useCallback(() => {
|
|
13588
|
+
setPlanCollapsed((current) => {
|
|
13589
|
+
if (current) setPlanExpanded(false);
|
|
13590
|
+
return !current;
|
|
13591
|
+
});
|
|
13592
|
+
}, []);
|
|
13527
13593
|
const [subagentRows, setSubagentRows] = useState(0);
|
|
13528
13594
|
const [anchoredSubagentIds, setAnchoredSubagentIds] = useState([]);
|
|
13529
13595
|
const [scrolledUp, setScrolledUp] = useState(false);
|
|
@@ -13555,6 +13621,13 @@ function ChatScreen({ agent, conversation, attachRunId, parentConversationId })
|
|
|
13555
13621
|
const [modelPickerView, setModelPickerView] = useState(null);
|
|
13556
13622
|
const modelPickerOpen = modelPickerView !== null;
|
|
13557
13623
|
const [subagentSelection, setSubagentSelection] = useState(null);
|
|
13624
|
+
const [subagentCollapsed, setSubagentCollapsed] = useState(false);
|
|
13625
|
+
const toggleSubagentCollapsed = useCallback(() => {
|
|
13626
|
+
setSubagentCollapsed((current) => {
|
|
13627
|
+
if (!current) setSubagentSelection(null);
|
|
13628
|
+
return !current;
|
|
13629
|
+
});
|
|
13630
|
+
}, []);
|
|
13558
13631
|
const [subagentBatches, setSubagentBatches] = useState(() => /* @__PURE__ */ new Map());
|
|
13559
13632
|
const onSubagentBatch = useCallback((report) => {
|
|
13560
13633
|
setSubagentBatches((current) => {
|
|
@@ -13720,7 +13793,10 @@ function ChatScreen({ agent, conversation, attachRunId, parentConversationId })
|
|
|
13720
13793
|
const inlineReviewHeight = reviewOpen && reviewPlacement === "below" ? reviewHeight : 0;
|
|
13721
13794
|
const menuRows = menuOpen ? completionMenuHeight(menuCommands.length) : 0;
|
|
13722
13795
|
const todoCardVisible = !credPrompt && !planHidden && !!todos && todos.length > 0;
|
|
13723
|
-
const todoRows = todoCardVisible ? todoCardHeight(todos, {
|
|
13796
|
+
const todoRows = todoCardVisible ? todoCardHeight(todos, {
|
|
13797
|
+
expanded: planExpanded,
|
|
13798
|
+
collapsed: planCollapsed
|
|
13799
|
+
}) : 0;
|
|
13724
13800
|
const subagentItems = useMemo(() => {
|
|
13725
13801
|
const ids = new Set(anchoredSubagentIds);
|
|
13726
13802
|
return items.filter((item) => item.kind === "tool" && item.toolName === "subagent" && ids.has(item.id));
|
|
@@ -14759,7 +14835,13 @@ function ChatScreen({ agent, conversation, attachRunId, parentConversationId })
|
|
|
14759
14835
|
const screenAtFork = useStore.getState().screen;
|
|
14760
14836
|
const stillHere = () => useStore.getState().screen === screenAtFork;
|
|
14761
14837
|
rest.forkConversation({ conversationId }).then((forked) => {
|
|
14762
|
-
if (!stillHere())
|
|
14838
|
+
if (!stillHere()) {
|
|
14839
|
+
forkingRef.current = false;
|
|
14840
|
+
setForking(false);
|
|
14841
|
+
return;
|
|
14842
|
+
}
|
|
14843
|
+
const current = runRef.current;
|
|
14844
|
+
if (current.kind === "streaming") current.abort.abort();
|
|
14763
14845
|
goTo({
|
|
14764
14846
|
kind: "chat",
|
|
14765
14847
|
agent,
|
|
@@ -14772,7 +14854,7 @@ function ChatScreen({ agent, conversation, attachRunId, parentConversationId })
|
|
|
14772
14854
|
});
|
|
14773
14855
|
useStore.getState().showToast({
|
|
14774
14856
|
variant: "success",
|
|
14775
|
-
message: "Forked conversation"
|
|
14857
|
+
message: current.kind === "idle" ? "Forked conversation" : `Forked conversation — ${agent.name} keeps working on the original; reopen to reattach`
|
|
14776
14858
|
});
|
|
14777
14859
|
}).catch((err) => {
|
|
14778
14860
|
forkingRef.current = false;
|
|
@@ -15107,10 +15189,6 @@ function ChatScreen({ agent, conversation, attachRunId, parentConversationId })
|
|
|
15107
15189
|
});
|
|
15108
15190
|
break;
|
|
15109
15191
|
case "fork":
|
|
15110
|
-
if (runRef.current.kind !== "idle") {
|
|
15111
|
-
useStore.getState().showToast({ message: "finish or cancel the run first (ctrl+c)" });
|
|
15112
|
-
break;
|
|
15113
|
-
}
|
|
15114
15192
|
if (!conversationId) {
|
|
15115
15193
|
useStore.getState().showToast({ message: "nothing to fork yet; send a message first" });
|
|
15116
15194
|
break;
|
|
@@ -15149,8 +15227,23 @@ function ChatScreen({ agent, conversation, attachRunId, parentConversationId })
|
|
|
15149
15227
|
break;
|
|
15150
15228
|
case "subagent": {
|
|
15151
15229
|
const batch = anchoredSubagentBatchRef.current;
|
|
15152
|
-
if (!batch || batch.rows.length === 0)
|
|
15153
|
-
|
|
15230
|
+
if (!batch || batch.rows.length === 0) {
|
|
15231
|
+
useStore.getState().showToast({ message: "no subagents in this conversation yet" });
|
|
15232
|
+
break;
|
|
15233
|
+
}
|
|
15234
|
+
if (routed.mode === "collapse") {
|
|
15235
|
+
setSubagentCollapsed(true);
|
|
15236
|
+
setSubagentSelection(null);
|
|
15237
|
+
useStore.getState().showToast({ message: "subagents collapsed (/subagent expand)" });
|
|
15238
|
+
break;
|
|
15239
|
+
}
|
|
15240
|
+
if (routed.mode === "expand") {
|
|
15241
|
+
setSubagentCollapsed(false);
|
|
15242
|
+
useStore.getState().showToast({ message: "subagents expanded" });
|
|
15243
|
+
break;
|
|
15244
|
+
}
|
|
15245
|
+
setSubagentCollapsed(false);
|
|
15246
|
+
setSubagentSelection({
|
|
15154
15247
|
toolCallId: batch.toolCallId,
|
|
15155
15248
|
index: 0
|
|
15156
15249
|
});
|
|
@@ -15186,15 +15279,22 @@ function ChatScreen({ agent, conversation, attachRunId, parentConversationId })
|
|
|
15186
15279
|
useStore.getState().showToast({ message: "no plan to show yet" });
|
|
15187
15280
|
break;
|
|
15188
15281
|
}
|
|
15189
|
-
if (routed.mode === "
|
|
15190
|
-
|
|
15191
|
-
setPlanExpanded(
|
|
15192
|
-
|
|
15193
|
-
|
|
15282
|
+
if (routed.mode === "collapse") {
|
|
15283
|
+
setPlanCollapsed(true);
|
|
15284
|
+
setPlanExpanded(false);
|
|
15285
|
+
useStore.getState().showToast({ message: "plan collapsed (/plan expand)" });
|
|
15286
|
+
break;
|
|
15287
|
+
}
|
|
15288
|
+
if (routed.mode === "expand") {
|
|
15289
|
+
setPlanCollapsed(false);
|
|
15290
|
+
setPlanExpanded(true);
|
|
15291
|
+
setPlanHidden(false);
|
|
15292
|
+
useStore.getState().showToast({ message: "plan expanded (/plan collapse)" });
|
|
15194
15293
|
break;
|
|
15195
15294
|
}
|
|
15196
15295
|
const nextHidden = routed.mode === "toggle" ? !planHidden : routed.mode === "hide";
|
|
15197
15296
|
setPlanHidden(nextHidden);
|
|
15297
|
+
if (!nextHidden) setPlanCollapsed(false);
|
|
15198
15298
|
useStore.getState().showToast({ message: nextHidden ? "plan hidden (/plan show)" : "plan shown" });
|
|
15199
15299
|
break;
|
|
15200
15300
|
}
|
|
@@ -15939,12 +16039,16 @@ function ChatScreen({ agent, conversation, attachRunId, parentConversationId })
|
|
|
15939
16039
|
/* @__PURE__ */ jsx(SubagentCardView, {
|
|
15940
16040
|
items: subagentItems,
|
|
15941
16041
|
isActive: run.kind !== "idle",
|
|
16042
|
+
collapsed: subagentCollapsed,
|
|
16043
|
+
onToggleCollapsed: toggleSubagentCollapsed,
|
|
15942
16044
|
onHeightChange: setSubagentRows
|
|
15943
16045
|
}),
|
|
15944
16046
|
todoCardVisible && todos ? /* @__PURE__ */ jsx(TodoCardView, {
|
|
15945
16047
|
todos,
|
|
15946
16048
|
isActive: run.kind !== "idle",
|
|
16049
|
+
collapsed: planCollapsed,
|
|
15947
16050
|
expanded: planExpanded,
|
|
16051
|
+
onToggleCollapsed: togglePlanCollapsed,
|
|
15948
16052
|
onToggleExpanded: togglePlanExpanded
|
|
15949
16053
|
}) : null,
|
|
15950
16054
|
compacting ? /* @__PURE__ */ jsxs("box", {
|
|
@@ -160,7 +160,7 @@ function errorMessage(err) {
|
|
|
160
160
|
* the commit time of the built tree is one monotonic clock they share.
|
|
161
161
|
*/
|
|
162
162
|
function portalDaemonBuild() {
|
|
163
|
-
return "
|
|
163
|
+
return "1789089101";
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* Whether a client carrying `mine` should replace a running daemon carrying
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as isRecord, n as isNewerBuild, r as portalDaemonBuild, t as PortalClient } from "./client-
|
|
2
|
+
import { i as isRecord, n as isNewerBuild, r as portalDaemonBuild, t as PortalClient } from "./client-HWCoL5Jm.mjs";
|
|
3
3
|
import { t as defaultTlsCertSource } from "./tls-cert-Rua2oV7n.mjs";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./client-
|
|
2
|
+
import "./client-HWCoL5Jm.mjs";
|
|
3
3
|
import "./tls-cert-Rua2oV7n.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-Dl3nN-w4.mjs";
|
|
6
6
|
|
|
7
7
|
export { runPortalDaemon };
|
|
@@ -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-Dl3nN-w4.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { connect } from "node:net";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as version$1 } from "./rest-
|
|
3
|
-
import { E as getConfigPath } from "./print-
|
|
2
|
+
import { c as version$1 } from "./rest-DQFiN7VL.mjs";
|
|
3
|
+
import { E as getConfigPath } from "./print-BC2o90gX.mjs";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { err, ok } from "neverthrow";
|
|
@@ -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-DQFiN7VL.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-DQFiN7VL.mjs";
|
|
3
|
+
import { a as runPrint, i as resolveAgent, n as messageGet, o as toPrintError, r as readStdin, t as collectRunText } from "./print-BC2o90gX.mjs";
|
|
4
4
|
import "./billing-blocked-D3l5kJlX.mjs";
|
|
5
5
|
|
|
6
6
|
export { messageGet, readStdin, resolveAgent, runPrint };
|
|
@@ -14,7 +14,7 @@ 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-
|
|
17
|
+
const { PortalClient } = await import("./client-BHXI6wfY.mjs");
|
|
18
18
|
const { defaultTlsCertSource } = await import("./tls-cert-BpCaD5AT.mjs");
|
|
19
19
|
let signalConnected;
|
|
20
20
|
const connected = new Promise((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-DQFiN7VL.mjs";
|
|
3
3
|
import { t as HttpError } from "./http-error-BF2NZZE3.mjs";
|
|
4
4
|
import "./billing-blocked-D3l5kJlX.mjs";
|
|
5
5
|
|
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.19",
|
|
4
4
|
"description": "Skydive CLI — cloud agents from the command line",
|
|
5
5
|
"homepage": "https://skydive.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
},
|
|
72
72
|
"//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.",
|
|
73
73
|
"optionalDependencies": {
|
|
74
|
-
"skydive-cli-darwin-arm64": "0.6.0-beta.
|
|
75
|
-
"skydive-cli-darwin-x64": "0.6.0-beta.
|
|
76
|
-
"skydive-cli-linux-x64": "0.6.0-beta.
|
|
77
|
-
"skydive-cli-linux-arm64": "0.6.0-beta.
|
|
74
|
+
"skydive-cli-darwin-arm64": "0.6.0-beta.19",
|
|
75
|
+
"skydive-cli-darwin-x64": "0.6.0-beta.19",
|
|
76
|
+
"skydive-cli-linux-x64": "0.6.0-beta.19",
|
|
77
|
+
"skydive-cli-linux-arm64": "0.6.0-beta.19"
|
|
78
78
|
}
|
|
79
79
|
}
|