dsh-ssh-tui 0.5.9 → 0.5.10

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.
@@ -119,6 +119,16 @@ export interface SpawnedHost {
119
119
  /** Exit watch so a Host that dies before listening is reported at once. */
120
120
  exitWatch: HostExitWatch;
121
121
  }
122
+ /**
123
+ * Keep the terminal quiet while the launcher retries or waits for a Host.
124
+ *
125
+ * Between attempts the TTY is back in cooked mode, so a DSR reply still in
126
+ * flight from the previous probe is echoed to the screen as `^[[17;1R`-style
127
+ * garbage. Raw mode plus a drain swallows those bytes instead: they are either
128
+ * stale replies or keys typed before any display existed, and neither should
129
+ * reach the shell.
130
+ */
131
+ export declare function quietTerminalInput(stdin?: NodeJS.ReadStream): number;
122
132
  /** Spawn a detached Host copy of this `dsh` invocation and return its sock path. */
123
133
  export declare function spawnDetachedHost(sessionId: string): SpawnedHost;
124
134
  export declare function probeDisplaySock(path: string, timeoutMs?: number): Promise<boolean>;
@@ -86,6 +86,8 @@ export declare function findCursorPositionReply(text: string): {
86
86
  * reply never arrives (dumb pipe, blocked DSR). Does not interpret the
87
87
  * coordinates — only the elapsed milliseconds matter.
88
88
  */
89
+ /** Ask up to `attempts` times, pausing between misses. */
90
+ export declare function probeRttWithRetry(run: () => Promise<number | undefined>, attempts?: number, delayMs?: number): Promise<number | undefined>;
89
91
  export declare function probeTerminalRttMs(stdin?: NodeJS.ReadStream, stdout?: NodeJS.WriteStream, timeoutMs?: number): Promise<number | undefined>;
90
92
  /** Sliding window of `windowSize` items that keeps `cursor` visible. */
91
93
  export declare function pickerWindowStart(cursor: number, total: number, windowSize?: number): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-ssh-tui",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "SSH-friendly interactive terminal TUI plugin for DeepSeek Harness",
5
5
  "keywords": [
6
6
  "deepseek-harness",