ccdeck 3.47.0 → 3.48.1
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/README.md +28 -4
- package/bin/cli/commands.js +17 -9
- package/bin/cli/help.js +9 -4
- package/bin/cli/second-start.js +4 -2
- package/bin/cli/startup.js +3 -2
- package/bin/cli/tui.js +544 -0
- package/dist/web/assets/BrowserWatchModal-Dfsuy2cT.js +1 -0
- package/dist/web/assets/IntegrationModal-CcSR7YB-.js +7 -0
- package/dist/web/assets/{RadioPanel-DbmJJPsz.js → RadioPanel-s7WXdS6v.js} +1 -1
- package/dist/web/assets/{TrafficRadar-CPjAXd5e.js → TrafficRadar-C5GXMIwi.js} +1 -1
- package/dist/web/assets/UsageHistoryModal-CiExD9wF.js +1 -0
- package/dist/web/assets/app-BFaxhiED.js +321 -0
- package/dist/web/assets/app-DjlHxWHg.css +1 -0
- package/dist/web/assets/{index-Ca87aJP9.js → index-ByovgZ_7.js} +1 -1
- package/dist/web/index.html +3 -3
- package/package.json +1 -1
- package/release-notes.json +30 -3
- package/src/server/args.mjs +1 -0
- package/src/server/cli-lines.mjs +46 -0
- package/src/server/deck-prefs.mjs +23 -13
- package/src/server/gpu-metrics.mjs +78 -0
- package/src/server/integrations/jira-move.mjs +239 -0
- package/src/server/integrations/jira.mjs +30 -8
- package/src/server/integrations/proxy.mjs +3 -4
- package/src/server/integrations/routes.mjs +19 -5
- package/src/server/lan-deck.mjs +2 -1
- package/src/server/system-metrics.mjs +4 -0
- package/src/server/term.mjs +14 -5
- package/src/server/tui-screen.mjs +110 -0
- package/src/server/tui-view.mjs +1072 -0
- package/src/server/way-back.mjs +27 -0
- package/dist/web/assets/BrowserWatchModal-Bau0ttnH.js +0 -1
- package/dist/web/assets/IntegrationModal-8tTi25gA.js +0 -6
- package/dist/web/assets/UsageHistoryModal-qfmvXdWJ.js +0 -1
- package/dist/web/assets/app-BFFG6Wz8.js +0 -321
- package/dist/web/assets/app-DfcfHvcX.css +0 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ Or the desktop app, with the waiting count in your menu bar: **[macOS](https://g
|
|
|
33
33
|
|
|
34
34
|
which Claude Code session is blocked on you · tool calls · one canvas · cost · quota · local · sessions never leave
|
|
35
35
|
|
|
36
|
-
[ccdeck.dev](https://ccdeck.dev) · [Guides](https://ccdeck.dev/guides/) · [What you get](#what-you-get) · [Quick start](#quick-start) · [How it works](#how-it-works) · [What it touches](#what-it-touches) · [Accounts](#accounts) · [Local network](#local-network) · [Options](#options) · [FAQ](#questions-people-ask)
|
|
36
|
+
[ccdeck.dev](https://ccdeck.dev) · [Guides](https://ccdeck.dev/guides/) · [What you get](#what-you-get) · [Quick start](#quick-start) · [How it works](#how-it-works) · [What it touches](#what-it-touches) · [Accounts](#accounts) · [Local network](#local-network) · [Options](#options) · [Support](#support-ccdeck) · [FAQ](#questions-people-ask)
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
</div>
|
|
@@ -294,6 +294,17 @@ capture permissions and development dependencies. See the
|
|
|
294
294
|
for Npcap and binary pcap output.
|
|
295
295
|
|
|
296
296
|
|
|
297
|
+
### NVIDIA GPU readings
|
|
298
|
+
|
|
299
|
+
On Linux and Windows, the Machine panel can show each NVIDIA GPU's utilization,
|
|
300
|
+
allocated and total video memory, temperature and power. This requires the
|
|
301
|
+
NVIDIA driver's `nvidia-smi` command on `PATH`; ccdeck installs nothing.
|
|
302
|
+
Unavailable driver fields say “Unavailable”, and devices without a current
|
|
303
|
+
reading are hidden. Successful readings refresh every five seconds; a failed
|
|
304
|
+
probe clears the reading and retries after a minute. GPU history is not recorded.
|
|
305
|
+
These are readings from this machine, not the GPUs running a cloud model.
|
|
306
|
+
Existing Thermal sensors remain separate.
|
|
307
|
+
|
|
297
308
|
### Temperature, per machine
|
|
298
309
|
|
|
299
310
|
The machine panel shows a **Thermal** section only where the machine actually answers, and it never invents a reading — no sensor means no row.
|
|
@@ -367,6 +378,8 @@ What does go out is short and ordinary: a ~20-byte version check against the npm
|
|
|
367
378
|
|
|
368
379
|
**Settings › Integrations** keeps each connection in `integrations/`, in the deck's data directory: `integrations.json` holds its name, its address and the account it signed in as, and `integrations-secrets.json`, which only you can read, holds its token. The token goes to that connection's own Jira and nowhere else — for a scoped Atlassian Cloud token, `api.atlassian.com` as well — never to the page, never into a report or a log, and never to another deck on the local network. The Jira panel reads from Jira only while it is open: when you open a board read more than five minutes ago, or press Refresh. What it reads stays in memory; only the panel's layout and filters are remembered, in this browser. Avatars and issue icons come through the deck, which sends the token only to Jira's own address. Disconnecting deletes the connection and its token.
|
|
369
380
|
|
|
381
|
+
On a Scrum board ordered by Rank, you can drag Jira issues to reorder them or move them between active/future sprints and the backlog. Ctrl/Cmd+click toggles individual selections; Shift+click selects a visible range, and Space toggles the focused issue. Drag a selected issue to move the whole selection, or use **Move selected** (up to 50 unfinished top-level issues). **Move** provides the same action for keyboard and touch; Alt+M opens it from a focused issue. Filtering or folding rows removes hidden issues from the selection. These actions save changes in Jira using your account’s permissions; browsing does not write. Subtasks, epics and completed issues cannot be moved here, and moving does not change workflow status. Positions refer to the loaded issues, so hidden or unloaded issues keep their relative rank. A failed or interrupted move refreshes the board; check the result before trying again because Jira may have saved part of the action.
|
|
382
|
+
|
|
370
383
|
A GitHub or GitLab connection is kept the same way, and its token goes only to that forge's API — GitHub's at `api.github.com`, GitLab's at the address you typed (`gitlab.com` unless you set your own). The deck reads that forge only while its panel is open: opening the panel asks again for what is more than two minutes old, **Refresh** asks for the rest, and nothing is polled in the background. It only reads: it never comments, approves, merges, re-runs a job or touches a branch, and the token help asks for read access and nothing more (`repo` and `read:org`, or read-only fine-grained permissions, on GitHub; `read_api` on GitLab). A failed job's log is read only when you press **Show log**, and only its last lines. What it reads stays in the open page and is not written to disk; the project, tab and filters you last chose are remembered in this browser. Avatars and the pictures in a description reach the page through the deck, which fetches them only from the forge's own image hosts — GitHub's `githubusercontent.com` hosts without the token, your GitLab instance, or Gravatar without the token — and passes on PNG, JPEG, GIF and WebP only. Links in the panel open the forge in your browser.
|
|
371
384
|
|
|
372
385
|
Local network, Claude accounts, Usage and the empty canvas each carry a small **Watch · 30 s** link to their 30-second video on [ccdeck.dev](https://ccdeck.dev/guides/). Opening one is your click, in your own browser; the deck itself sends nothing for it.
|
|
@@ -442,15 +455,20 @@ ccdeck switch pick from a list (arrows, Enter; Esc cancels)
|
|
|
442
455
|
ccdeck usage the active account's limits, every lane
|
|
443
456
|
ccdeck sessions what each session is doing, the ones waiting on you first
|
|
444
457
|
ccdeck open the deck in your browser — over SSH, the line that opens it on yours
|
|
458
|
+
ccdeck tui all of the above on one screen that stays up
|
|
445
459
|
```
|
|
446
460
|
|
|
461
|
+
**`ccdeck tui`** keeps the accounts and the sessions waiting on you on one full screen, read again every few seconds. Move with the arrows (or `j` / `k`, or a slot's number), **Enter** switches to the selected account, **b** selects the one Auto-switch would pick, **a** turns Auto-switch on or off, **r** reads the usage again, **?** lists the keys and **q** leaves with your terminal as it was. With no deck running it reads claude-swap's store and **d** starts one in the background. It fits from 40×12 up, sets the selected account's detail beside the waiting sessions from 120 columns, follows `NO_COLOR`, and draws in ASCII on a console that cannot show its lines.
|
|
462
|
+
|
|
463
|
+
**Adding an account over SSH**: **+** signs one in, and **Enter** on an account whose login has expired signs it in again, keeping its slot, alias and history. The screen shows a sign-in link to open in any browser; once you approve, the page there shows a code, which you paste back into the terminal. If that browser runs on the machine itself, the sign-in finishes without the code. The account you are using stays active throughout. Sign-in goes through the deck, so it needs one running.
|
|
464
|
+
|
|
447
465
|
`swap` and `use` are other names for `switch`, `ls` for `accounts` and `ps` for `sessions`; `status`, `stop` and `logs` are `--status`, `--stop` and `--logs`. `ccdeck swap 1 2` does not exchange two slots the way claude-swap's `cswap swap` does — it says so and points you there.
|
|
448
466
|
|
|
449
467
|
**The commands ask the deck that is running.** A switch from the terminal goes through the same route as **Switch** on a row, so it waits for the same lock as the panel, Auto-switch and a sign-in in flight, the panel shows it at once, and it lands in the Projects report's history. With no deck running, `accounts`, `switch` and `usage` read and drive claude-swap's store directly; `sessions` and `open` need a deck, since sessions are what a deck watches. After a switch, the command says how many running Claude sessions move with it — all of them, from their next message.
|
|
450
468
|
|
|
451
|
-
**Over SSH**, `ccdeck open` prints the line to run on your own computer, `ssh -N -o ExitOnForwardFailure=yes -L 14317:127.0.0.1:4317 you@that-machine` (with `-p` when sshd is not on 22), and the deck then opens at `http://127.0.0.1:14317` in your own browser. Your end is not 4317, so it cannot land on a deck of your own. The deck still listens only on 127.0.0.1; the tunnel is your SSH connection.
|
|
469
|
+
**Over SSH**, `ccdeck open` prints the line to run on your own computer, `ssh -N -o ExitOnForwardFailure=yes -L 14317:127.0.0.1:4317 you@that-machine` (with `-p` when sshd is not on 22), and the deck then opens at `http://127.0.0.1:14317` in your own browser. Your end is not 4317, so it cannot land on a deck of your own. The deck still listens only on 127.0.0.1; the tunnel is your SSH connection. To stay in the terminal instead, `ccdeck tui` shows the accounts there, and a start over SSH says so.
|
|
452
470
|
|
|
453
|
-
**For scripts**, every command takes `--json` — one object on stdout with `schemaVersion` and `ok` — and `--port <n>` to name a deck. Nothing prompts without a terminal: `ccdeck switch` with no account named and no terminal is an error, not a wait. Exit codes are 0 done, 1 failed, 2 the command line was wrong (an account nothing matches, a misspelled command), and 3 no deck is running.
|
|
471
|
+
**For scripts**, every command but `tui` takes `--json` — one object on stdout with `schemaVersion` and `ok` — and every one takes `--port <n>` to name a deck. Nothing prompts without a terminal: `ccdeck switch` with no account named and no terminal is an error, not a wait. Exit codes are 0 done, 1 failed, 2 the command line was wrong (an account nothing matches, a misspelled command), and 3 no deck is running.
|
|
454
472
|
|
|
455
473
|
A misspelled command is refused — `ccdeck acounts` suggests `accounts` and starts nothing — so a typo over SSH never leaves a deck behind.
|
|
456
474
|
|
|
@@ -485,7 +503,7 @@ Four pictures, which are also the guide the section opens from `See how it works
|
|
|
485
503
|
|
|
486
504
|
**What is shared, and with whom.** Nothing until you tick a login, and then only that login, and only with paired decks. A login ticked on one deck arrives on every deck paired with it: added where it is missing, repaired where it has expired, and never in place of one that still works. The deck asks the machines it finds, and a machine that is asked waits for somebody there to press `accept` unless its `Say yes to every deck that asks` switch, in the same dialog, is on. That switch starts on, so your own machines pair without a press. It also means a deck the switch pairs can add the logins ticked on it to this machine, and Auto-switch, if it is on, may later move Claude Code to one of them — so on a network you do not own, turn the switch off. What still takes a person is the tick: a paired deck is handed nothing until somebody ticks a login here. A login that arrives from a deck somebody here accepted or paired by invite is ticked here too, so this machine can repair the next one; a deck the switch paired is handed only the logins a person ticked on this deck, never the ones that were ticked by arriving, so untick and tick such a login again to hand it to those decks as well — and what a deck the switch paired brings here is not ticked here at all. What crosses the wire is the same live credential a share carries, sealed to the deck it is addressed to, so treat the pairing decision as the moment that matters. Unpairing stops future rounds; a login already copied stays where it went.
|
|
487
505
|
|
|
488
|
-
**
|
|
506
|
+
**A ticked login goes out even while this machine is signed in to it** (since 3.48.1). That has a cost: a Claude login renews once, so two machines on one copied login race at each renewal and the one that renews second is signed out (“Login expired”). When a paired deck says it is on the login this deck is using, that account's row warns **Also active on** and names the deck, with one desktop notification, so one of the two machines can move to another account; a deck that hides which account it is on, or is on one it does not share with this one, says nothing, and nothing is shown. To keep the login in use on this machine, turn off **Send the login this deck is using too** in the same dialog. The dialog then marks it **in use here · not sent** when it is ticked, a paired deck reads it as **in use there** (or does not see it, while this deck hides which account it is on), and it goes out like any other ticked login as soon as this machine switches to another account; a paired deck that already holds a copy of that login, from before this machine switched to it, can still renew it first and sign this machine out. A deck updated from an earlier version starts with the switch on, whatever it showed before: only a choice made on 3.48.1 or later is kept.
|
|
489
507
|
|
|
490
508
|
On a Mac, **cannot share here** is different from **expired here**. It means this ccdeck process cannot read the Keychain copy, so that machine is not used as a credential source and another deck does not keep trying to “repair” the same healthy slot every minute. A LAN import is checked after it lands too; if the receiving Mac still cannot read the Keychain, the round reports that problem instead of claiming the login was repaired.
|
|
491
509
|
|
|
@@ -829,6 +847,12 @@ and starts again when you log in. `ccdeck --stop` ends it.
|
|
|
829
847
|
- 💬 **Questions & ideas** — [GitHub Discussions](https://github.com/BarganConstantin/ccdeck/discussions)
|
|
830
848
|
- 🐛 **Bugs & feature requests** — [GitHub Issues](https://github.com/BarganConstantin/ccdeck/issues)
|
|
831
849
|
|
|
850
|
+
## Support ccdeck
|
|
851
|
+
|
|
852
|
+
ccdeck is free, open source, and maintained independently. If it helps you see which coding agent needs attention instead of checking terminal after terminal, [consider sponsoring its development](https://github.com/sponsors/BarganConstantin).
|
|
853
|
+
|
|
854
|
+
Sponsorships support bug fixes, documentation, and testing across macOS, Linux, and Windows. They're entirely optional — no sponsorship or payment is needed to use ccdeck.
|
|
855
|
+
|
|
832
856
|
## License
|
|
833
857
|
|
|
834
858
|
ccdeck is licensed under the **GNU Affero General Public License v3.0 only (AGPL-3.0-only)**.
|
package/bin/cli/commands.js
CHANGED
|
@@ -14,17 +14,22 @@
|
|
|
14
14
|
// Every command takes `--json`: one object on stdout, `schemaVersion` first,
|
|
15
15
|
// `ok` beside it, the human sentences left off. Exit codes are part of the
|
|
16
16
|
// contract — see EXIT.
|
|
17
|
+
//
|
|
18
|
+
// `ccdeck tui` (bin/cli/tui.js) is the same commands kept on screen: it asks
|
|
19
|
+
// the deck through the helpers exported here, so a switch from it takes the
|
|
20
|
+
// route, the lock and the refusals a `ccdeck switch` does.
|
|
17
21
|
import { spawn } from "node:child_process";
|
|
18
22
|
import { hostname, userInfo } from "node:os";
|
|
19
23
|
import { join } from "node:path";
|
|
20
24
|
import { pathToFileURL } from "node:url";
|
|
21
25
|
import { COMMANDS, isPortValue } from "../../src/server/args.mjs";
|
|
22
26
|
import { isWsl } from "../../src/server/open-url.mjs";
|
|
27
|
+
import { overSsh } from "../../src/server/term.mjs";
|
|
23
28
|
import { COMMAND, PKG_ROOT, PKG_VERSION } from "./package.js";
|
|
24
29
|
import { G, P, UNICODE, cols } from "./screen.js";
|
|
25
30
|
import { oneShotVoice, reportFlagRows } from "./one-shot.js";
|
|
26
31
|
|
|
27
|
-
const load = (rel) => import(pathToFileURL(join(PKG_ROOT, rel)).href);
|
|
32
|
+
export const load = (rel) => import(pathToFileURL(join(PKG_ROOT, rel)).href);
|
|
28
33
|
|
|
29
34
|
/** The picker, loaded only when somebody is about to be shown it. */
|
|
30
35
|
async function pickAccount(rows, opts) {
|
|
@@ -63,6 +68,9 @@ export async function runCommand(flags) {
|
|
|
63
68
|
case "usage": return usageCommand(flags, out);
|
|
64
69
|
case "sessions": return sessionsCommand(flags, out);
|
|
65
70
|
case "open": return openCommand(flags, out);
|
|
71
|
+
// The one that stays: a full screen over the same deck, until q. Loaded
|
|
72
|
+
// only when asked for, like the picker.
|
|
73
|
+
case "tui": return (await import("./tui.js")).runTui(flags, out);
|
|
66
74
|
default: return out.fail(EXIT.USAGE, "unknown_command", unknownCommandText(String(flags.command)));
|
|
67
75
|
}
|
|
68
76
|
}
|
|
@@ -143,13 +151,13 @@ async function deckFor(flags) {
|
|
|
143
151
|
|
|
144
152
|
/** Decks whose process is alive although none answered the challenge — slow
|
|
145
153
|
* at boot, in a pause, on a loaded machine. A switch here would race theirs. */
|
|
146
|
-
async function silentDecks(port) {
|
|
154
|
+
export async function silentDecks(port) {
|
|
147
155
|
const { registeredDecks } = await load("src/server/running-deck.mjs");
|
|
148
156
|
const decks = await registeredDecks().catch(() => []);
|
|
149
157
|
return port == null ? decks : decks.filter(d => d.port === port);
|
|
150
158
|
}
|
|
151
159
|
|
|
152
|
-
async function ask(deck, opts) {
|
|
160
|
+
export async function ask(deck, opts) {
|
|
153
161
|
const { askDeck } = await load("src/server/deck-client.mjs");
|
|
154
162
|
return askDeck(deck, opts);
|
|
155
163
|
}
|
|
@@ -182,7 +190,7 @@ function localNote(silent) {
|
|
|
182
190
|
}
|
|
183
191
|
|
|
184
192
|
/** What to say about a deck that did not answer as expected. */
|
|
185
|
-
function deckTrouble(deck, r) {
|
|
193
|
+
export function deckTrouble(deck, r) {
|
|
186
194
|
if (r.status === 404) {
|
|
187
195
|
return `the deck on ${deck.port} (v${deck.version || "?"}) predates this command ${G.dash} \`${COMMAND} --new\` restarts it on v${PKG_VERSION}`;
|
|
188
196
|
}
|
|
@@ -191,7 +199,7 @@ function deckTrouble(deck, r) {
|
|
|
191
199
|
}
|
|
192
200
|
|
|
193
201
|
/** Why a roster has nothing in it, in the words a person needs next. */
|
|
194
|
-
function rosterTrouble(roster) {
|
|
202
|
+
export function rosterTrouble(roster) {
|
|
195
203
|
switch (roster?.reason) {
|
|
196
204
|
case "no_accounts":
|
|
197
205
|
return `no Claude accounts yet ${G.dash} sign in with \`claude\`, then add it from the deck's Accounts panel or with \`cswap add\``;
|
|
@@ -403,7 +411,7 @@ const BEST_PICKS = Object.freeze({
|
|
|
403
411
|
* read its panel makes, with its token. With no deck, read here. A deck that
|
|
404
412
|
* predates the rules (404) or cannot say has none to follow.
|
|
405
413
|
*/
|
|
406
|
-
async function autoRules(deck, accounts) {
|
|
414
|
+
export async function autoRules(deck, accounts) {
|
|
407
415
|
const { bestRules } = await load("src/server/cswap-auto-choice.mjs");
|
|
408
416
|
if (!deck) return bestRules(accounts).catch(() => null);
|
|
409
417
|
const r = await ask(deck, { path: "/api/cswap-auto" });
|
|
@@ -421,7 +429,7 @@ function lanesSummary(a) {
|
|
|
421
429
|
|
|
422
430
|
/** The switch, asked of the deck: its lock, its cache invalidation, its swap
|
|
423
431
|
* log — the same route the panel's click takes. */
|
|
424
|
-
async function switchThroughDeck(deck, num) {
|
|
432
|
+
export async function switchThroughDeck(deck, num) {
|
|
425
433
|
// Longer than the deck's own thirty seconds for `cswap switch`, so it is the
|
|
426
434
|
// deck's timeout that answers rather than this one cutting it off mid-switch.
|
|
427
435
|
const r = await ask(deck, { method: "POST", path: "/api/claude-accounts/switch", body: { account: num }, timeoutMs: 45_000 });
|
|
@@ -431,7 +439,7 @@ async function switchThroughDeck(deck, num) {
|
|
|
431
439
|
|
|
432
440
|
/** The switch with no deck to ask: claude-accounts.mjs's own, under the same
|
|
433
441
|
* mutex, and recorded in the same swap log the deck's route writes. */
|
|
434
|
-
async function switchHere(num) {
|
|
442
|
+
export async function switchHere(num) {
|
|
435
443
|
const { switchClaudeAccount } = await load("src/server/claude-accounts.mjs");
|
|
436
444
|
const result = await switchClaudeAccount(num);
|
|
437
445
|
if (result.ok) {
|
|
@@ -505,7 +513,7 @@ async function sessionsCommand(flags, out) {
|
|
|
505
513
|
* with no display has nowhere to open one at all.
|
|
506
514
|
*/
|
|
507
515
|
export function remoteShell(env = process.env, platform = process.platform, wsl = () => isWsl(platform, env)) {
|
|
508
|
-
if (env
|
|
516
|
+
if (overSsh(env)) return true;
|
|
509
517
|
// WSL without WSLg has no DISPLAY either, and opens the Windows browser —
|
|
510
518
|
// open-url.mjs knows how.
|
|
511
519
|
return platform === "linux" && !env.DISPLAY && !env.WAYLAND_DISPLAY && !wsl();
|
package/bin/cli/help.js
CHANGED
|
@@ -27,12 +27,17 @@ Commands:
|
|
|
27
27
|
you first. --all adds the ended ones. Alias: ps
|
|
28
28
|
open Open the deck in a browser. Over SSH, print the
|
|
29
29
|
\`ssh -L\` line that opens it on your own computer
|
|
30
|
+
tui A full-screen view of the accounts and the sessions
|
|
31
|
+
waiting on you: move with the arrows, Enter
|
|
32
|
+
switches, b picks the best, a turns Auto-switch on
|
|
33
|
+
or off, + signs an account in, ? lists the keys,
|
|
34
|
+
q quits
|
|
30
35
|
status, stop, logs The same as --status, --stop and --logs
|
|
31
36
|
|
|
32
|
-
Every command takes --
|
|
33
|
-
|
|
34
|
-
read claude-swap's store directly. Exit
|
|
35
|
-
command line was wrong, 3 no deck is running.
|
|
37
|
+
Every command takes --port <n> to name a deck, and all but tui take --json
|
|
38
|
+
(one object on stdout, with schemaVersion). Without a running deck,
|
|
39
|
+
accounts, switch, usage and tui read claude-swap's store directly. Exit
|
|
40
|
+
codes: 0 done, 1 failed, 2 the command line was wrong, 3 no deck is running.
|
|
36
41
|
|
|
37
42
|
Options:
|
|
38
43
|
-p, --port <number> Preferred port (default: 4317; falls back to random 4318–4400)
|
package/bin/cli/second-start.js
CHANGED
|
@@ -21,9 +21,10 @@ import { pathToFileURL } from "node:url";
|
|
|
21
21
|
import { isPortValue } from "../../src/server/args.mjs";
|
|
22
22
|
import { PRODUCT } from "../../src/server/brand.mjs";
|
|
23
23
|
import { liveDecks, olderVersion, secondStart, versionNote } from "../../src/server/running-deck.mjs";
|
|
24
|
-
import { link } from "../../src/server/term.mjs";
|
|
24
|
+
import { link, overSsh } from "../../src/server/term.mjs";
|
|
25
|
+
import { sshNote } from "../../src/server/way-back.mjs";
|
|
25
26
|
import { COMMAND, PKG_ROOT, PKG_VERSION } from "./package.js";
|
|
26
|
-
import { G, LINKS, P, sleep, write } from "./screen.js";
|
|
27
|
+
import { G, LINKS, P, cols, sleep, write } from "./screen.js";
|
|
27
28
|
import { reportIncompleteFlags, reportUnknownFlags } from "./startup.js";
|
|
28
29
|
|
|
29
30
|
/**
|
|
@@ -100,6 +101,7 @@ export async function settleSecondStart({ flags, workspace, persist, wantCodex,
|
|
|
100
101
|
// looks like it did nothing at all, which is the other way to be confusing
|
|
101
102
|
// about this — and it names the flag for the person who wanted a fresh one.
|
|
102
103
|
write(`\n ${P.muted}${G.dash} no second deck was started ${G.dash} \`${COMMAND} --new\` replaces it with a fresh one${P.reset}\n`);
|
|
104
|
+
if (overSsh()) write(` ${P.muted}${G.dash} ${sshNote({ command: COMMAND, dash: G.dash, columns: cols() })}${P.reset}\n`);
|
|
103
105
|
if (openBrowser) {
|
|
104
106
|
write(`\n ${P.ok}${P.bold}${G.play} opening browser${G.ellipsis}${P.reset}\n\n`);
|
|
105
107
|
try {
|
package/bin/cli/startup.js
CHANGED
|
@@ -13,8 +13,8 @@ import { pathToFileURL } from "node:url";
|
|
|
13
13
|
import { budget, bootDeadlineMs } from "../../src/server/boot-deadline.mjs";
|
|
14
14
|
import { PRODUCT } from "../../src/server/brand.mjs";
|
|
15
15
|
import { renameNotice } from "../../src/server/invoked-as.mjs";
|
|
16
|
-
import { link } from "../../src/server/term.mjs";
|
|
17
|
-
import { wayBackNote } from "../../src/server/way-back.mjs";
|
|
16
|
+
import { link, overSsh } from "../../src/server/term.mjs";
|
|
17
|
+
import { sshNote, wayBackNote } from "../../src/server/way-back.mjs";
|
|
18
18
|
import { COMMAND, INVOKED_AS, PKG_ROOT, PKG_VERSION } from "./package.js";
|
|
19
19
|
import { G, LINKS, P, cols, fileLink, row, step, write } from "./screen.js";
|
|
20
20
|
|
|
@@ -526,6 +526,7 @@ export function reportReady({ url, persist, openBrowser, flags }) {
|
|
|
526
526
|
write(`\n ${P.muted}${G.dash} ${wayBackNote({
|
|
527
527
|
command: COMMAND, dash: G.dash, columns: cols(),
|
|
528
528
|
})}${P.reset}\n`);
|
|
529
|
+
if (overSsh()) write(` ${P.muted}${G.dash} ${sshNote({ command: COMMAND, dash: G.dash, columns: cols() })}${P.reset}\n`);
|
|
529
530
|
// Only when one is actually being opened. Under --no-open — which is how an
|
|
530
531
|
// npx update relaunches, with a tab already waiting — this was announcing
|
|
531
532
|
// something that never happened.
|