mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-26 19:07:17 +00:00
* 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>
26 lines
858 B
TypeScript
26 lines
858 B
TypeScript
import assert from 'node:assert/strict';
|
|
import { readFileSync } from 'node:fs';
|
|
import test from 'node:test';
|
|
|
|
const source = readFileSync(
|
|
new URL('./TerminalLayer.tsx', import.meta.url),
|
|
'utf8',
|
|
);
|
|
const terminalHostSource = readFileSync(
|
|
new URL('../application/app/hosts/TerminalHost.tsx', import.meta.url),
|
|
'utf8',
|
|
);
|
|
|
|
test('terminal output fans out to both coding-CLI and prompt-host handlers', () => {
|
|
assert.match(source, /createPromptHostnameSessionSignalController/);
|
|
assert.match(source, /codingCliSignalController\.handleTerminalOutput/);
|
|
assert.match(source, /promptHostnameSignalController\.handleTerminalOutput/);
|
|
});
|
|
|
|
test('session publisher exposes prompt-host updates to the terminal props', () => {
|
|
assert.match(
|
|
terminalHostSource,
|
|
/updateSessionPromptHost:\s*sessionActions\?\.updateSessionPromptHost/,
|
|
);
|
|
});
|