SPB Git

spb/khaelor Public

KHAELOR — a terminal-native autonomous engineering agent powered by Anthropic.

TypeScript 82.9% HTML 14.9% CSS 1.1% JavaScript 0.7%
1002 B · 36 lines
Raw Blame History
1# KHAELOR2# File: tests/tui/fixtures/pty-echo.exp3# Description: PTY live-echo probe — types "hello" into the idle app and reports whether it echoes before Enter.4#5# Author: Simon-Pierre Boucher6# Contact: contact@spboucher.ai78set timeout 159log_user 010spawn node node_modules/tsx/dist/cli.mjs tests/tui/fixtures/pty-echo-app.ts1112# The KHAELOR wordmark is gradient-painted (an SGR code between every13# character), so match the plain model line to detect the first paint.14expect {15  "claude-fixture" { send_user "STARTUP_OK\n" }16  timeout { send_user "STARTUP_TIMEOUT\n"; exit 1 }17}18expect {19  "What do you want to build?" { send_user "BOX_VISIBLE\n" }20  timeout { send_user "BOX_MISSING\n" }21}2223sleep 0.524set t0 [clock milliseconds]25send -- "hello"26set timeout 327expect {28  "hello" { send_user "ECHO_VISIBLE [expr [clock milliseconds] - $t0]ms\n" }29  timeout { send_user "ECHO_MISSING\n" }30}3132# Enter is never sent — Ctrl+C clears, Ctrl+C again quits.33send -- "\x03\x03"34set timeout 535expect eof36