netx/scripts
oliver 45de8144a3 Speed up WebCRT and record audited commands from the device echo.
Performance: event-driven stdout pump (no polling thread per socket, no 200ms
coalescing stall), keystrokes written immediately, blocking SSH reads, bounded
deque queue with batch drain, incremental UTF-8 decode, buffered session log,
non-blocking session teardown, shorter login/settle waits, xterm WebGL renderer
and idle-time direct writes. Zero-latency fake device: echo p50 11ms -> 2.3ms,
command RTT 219ms -> 20ms, bulk output 2.1 -> 8.3 MB/s.

Audit: track the device's own input row server-side (webcrt_cmd_audit) and
resolve each Enter from the echoed line feed, so Tab, backspace, cursor-key
edits, history recall, paste, Ctrl-C and pagers record what actually ran.
Password lines are redacted; pending Enters are flushed on close.

Hop: stop closing the hop session when the target prints the same prompt as the
hop (system-view); recognise the Huawei "closed by the remote host" message.
Generic NEs that show a network prompt now get the network key map.

Adds bench_webcrt.py, fake_ssh_device.py and e2e_webcrt_input_scenarios.py.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 07:34:30 +08:00
..
_analyze_topo_layout.py Unify UME World as hex nav with conditional flat world map. 2026-08-07 00:51:08 +08:00
_import_ume_csv_snapshot.py Unify UME World as hex nav with conditional flat world map. 2026-08-07 00:51:08 +08:00
_run_ume_apply.py Unify UME World as hex nav with conditional flat world map. 2026-08-07 00:51:08 +08:00
bench_webcrt.py Speed up WebCRT and record audited commands from the device echo. 2026-10-12 07:34:30 +08:00
e2e_webcrt_audit_r1.py Add WebCRT R1 audit e2e helper that reads credentials from the environment. 2026-09-02 22:02:52 +08:00
e2e_webcrt_input_scenarios.py Speed up WebCRT and record audited commands from the device echo. 2026-10-12 07:34:30 +08:00
fake_ssh_device.py Speed up WebCRT and record audited commands from the device echo. 2026-10-12 07:34:30 +08:00
init_pg.ps1 Fix Windows PowerShell parsing on Server 2012: UTF-8 BOM scripts. 2026-10-07 10:53:29 +08:00
load_smoke.py Add HTTP concurrency smoke probe for running netx API. 2026-08-02 18:25:27 +08:00
reset_db.py feat: initialize netx ops tool repository 2026-05-03 23:43:21 +08:00
start_netx.ps1 Fix portable Python: ship python/runtime and relink .venv on install (0.4.6). 2026-10-07 15:48:57 +08:00
start_netx.sh Scale biz_state collects with dedicated workers and non-blocking UI poll. 2026-09-22 17:00:37 +08:00
stop_netx.ps1 Fix Windows install start: writable runtime logs and robust Postgres bootstrap. 2026-10-07 11:22:01 +08:00
stop_netx.sh Scale biz_state collects with dedicated workers and non-blocking UI poll. 2026-09-22 17:00:37 +08:00