dsh-ssh-tui 0.6.1 → 0.6.2
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.en.md +2 -8
- package/README.md +4 -4
- package/lib/commands.js +0 -1
- package/lib/commands.js.map +1 -1
- package/lib/i18n/en.js +0 -10
- package/lib/i18n/en.js.map +1 -1
- package/lib/i18n/zh.js +0 -10
- package/lib/i18n/zh.js.map +1 -1
- package/lib/index.js +0 -28
- package/lib/index.js.map +1 -1
- package/lib/session-list.js +5 -5
- package/lib/session-lock.js +5 -5
- package/lib/tui.js +8 -83
- package/lib/tui.js.map +1 -1
- package/lib/types/commands.d.ts +0 -3
- package/lib/types/session-list.d.ts +4 -4
- package/lib/types/session-lock.d.ts +2 -2
- package/lib/types/tui.d.ts +0 -8
- package/package.json +1 -1
package/lib/types/commands.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shared history-session listing for the SSH TUI: the launch picker
|
|
3
|
-
*
|
|
4
|
-
* both surfaces offer the same sessions.
|
|
2
|
+
* Shared history-session listing for the SSH TUI: the launch picker's lazy
|
|
3
|
+
* pages and the eager `listResumableSessions` listing use the same candidates,
|
|
4
|
+
* labels, and ordering, so both surfaces offer the same sessions.
|
|
5
5
|
*/
|
|
6
6
|
import { listAttachableHosts } from './session-lock.js';
|
|
7
7
|
/** Last path segment for the footer chip (`\root\genshin\srv` → `srv`). */
|
|
@@ -71,7 +71,7 @@ export interface ResumableSessionPage {
|
|
|
71
71
|
export interface ResumableSessionPager {
|
|
72
72
|
/** Inspect onward until `size` more rows exist, or history runs out. */
|
|
73
73
|
page(size?: number): Promise<ResumableSessionPage>;
|
|
74
|
-
/** Read every remaining candidate (the
|
|
74
|
+
/** Read every remaining candidate (the eager listing wants the whole list). */
|
|
75
75
|
complete(): Promise<ResumableSession[]>;
|
|
76
76
|
}
|
|
77
77
|
/** Sessions read before the picker's first paint, and per lazy page after it. */
|
|
@@ -77,8 +77,8 @@ export declare function windowsProcessMatchesLock(lock: SessionLockInfo, identit
|
|
|
77
77
|
* behavior is kept.
|
|
78
78
|
*
|
|
79
79
|
* Async because the Windows probe spawns PowerShell, and this runs on the
|
|
80
|
-
*
|
|
81
|
-
* freeze painting and keystrokes for the duration of the probe.
|
|
80
|
+
* history-listing path (the picker inspects every lock); a synchronous spawn
|
|
81
|
+
* would freeze painting and keystrokes for the duration of the probe.
|
|
82
82
|
*/
|
|
83
83
|
export declare function lockOwnerIsAlive(lock: SessionLockInfo): Promise<boolean>;
|
|
84
84
|
export declare function formatLockHeldMessage(lock: SessionLockInfo): string;
|
package/lib/types/tui.d.ts
CHANGED
|
@@ -63,12 +63,8 @@ export interface TuiConfig {
|
|
|
63
63
|
presetId?: string;
|
|
64
64
|
/** Display name of the active preset. */
|
|
65
65
|
presetName?: string;
|
|
66
|
-
/** Switch the running TUI to another session (used by /resume). */
|
|
67
|
-
onSwitchSession?: (sessionId: string) => Promise<void> | void;
|
|
68
66
|
/** Notify the launcher of an explicit in-process selection change. */
|
|
69
67
|
onSelectionChanged?: (selection: ModelSelection) => void;
|
|
70
|
-
/** Open the history-session picker immediately after mounting (--resume). */
|
|
71
|
-
resumePicker?: boolean;
|
|
72
68
|
/**
|
|
73
69
|
* Minimum milliseconds between paints while a turn is streaming.
|
|
74
70
|
* Jump-host / proxied SSH can raise this so token ticks do not flood the
|
|
@@ -157,9 +153,7 @@ export declare class SshTui {
|
|
|
157
153
|
private readonly providerName;
|
|
158
154
|
private readonly selectionRef;
|
|
159
155
|
private readonly subagentSelection;
|
|
160
|
-
private readonly onSwitchSession;
|
|
161
156
|
private readonly onSelectionChanged;
|
|
162
|
-
private readonly resumePicker;
|
|
163
157
|
private readonly disposers;
|
|
164
158
|
private userQuestionDisposer;
|
|
165
159
|
private presetId;
|
|
@@ -574,8 +568,6 @@ export declare class SshTui {
|
|
|
574
568
|
private runDisconnectCommand;
|
|
575
569
|
/** /mode: pick an agent preset (standard / minimal / ptc / cordis / routing-suite / ...). */
|
|
576
570
|
private runModeCommand;
|
|
577
|
-
/** /resume: switch to a past session, or open a picker when no id is given. */
|
|
578
|
-
private runResumeCommand;
|
|
579
571
|
/** Current provider route selected for the running agent. */
|
|
580
572
|
private currentProvider;
|
|
581
573
|
/** Resolve one credential reference without exposing its value. */
|