Files
Netcatty/domain/terminalPromptSecurity.shared.d.cts
T
6cdf6b836b feat(terminal): show live jump hosts and fix AI prompt readiness (#4316)
* feat(terminal): extract hostnames from shell prompts

* fix(ai): accept decorated two-line shell prompts

* feat(tabs): add prompt-host title presentation

* feat(session): track prompt-host transitions

* feat(terminal): publish live prompt hostnames to tabs

* fix(session): include prompt host action in publisher runtime

* fix(ai): accept redrawn JumpServer shell prompts

* fix(tabs): prefer live prompt host behind user labels

* build(windows): normalize cross-built native modules

* fix(build): avoid config lint global shadowing

* fix(session): constrain live prompt hostname parsing

* fix(tabs): refresh workspace labels from live prompt hosts

* build(windows): validate cross-built native payloads

* fix(session): cover strict zsh and jump host prompts

* test(tabs): type live workspace prompt fixtures

* build(windows): scan packed native modules safely

* build(windows): add explicit cross-build script

* build(windows): make cross packaging self-contained

* fix(terminal): address review findings on JumpServer prompts and Windows cross-pack

* fix(windows): preserve child-process detection in cross-built packages

* fix(windows): require patched conpty.node during cross-packaging

---------

Co-authored-by: zjio26 <zjao2026@outlook.com>
Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com>
2026-11-24 10:50:25 +08:00

26 lines
1.0 KiB
TypeScript

export interface ConfirmedPromptOptions {
/** Network-device shells commonly use a bare host name followed by `>`. */
allowHostStyleGreaterThan?: boolean;
/**
* True when the terminal is on the alternate screen (DEC 1049). Used to
* tell vim's command-line `:` from a custom `sudo -p ':'` prompt.
*/
alternateScreen?: boolean;
}
export const MAX_PROMPT_SECURITY_TAIL_CHARS: number;
export function stripTerminalControlSequences(value: string): string;
export function isSensitiveTerminalChallenge(value: string): boolean;
export function isConfirmedTerminalShellPrompt(
promptText: string,
options?: ConfirmedPromptOptions,
): boolean;
export function splitTerminalLogicalLines(value: string): string[];
export function isBashPs2ContinuationLine(line: string): boolean;
export function isUntrustedTerminalInputPrompt(
value: string,
options?: ConfirmedPromptOptions,
): boolean;
export function isJumpServerMenuPrompt(value: string): boolean;
export function extractTerminalPromptHostname(value: string): string | null;