- API/WS driver A0–A12: auth/pairing, workspaces, instances, session create, real model streaming, abort, model/thinking, history paging, resync, multi-workspace isolation, subagents and a deterministic attention/diff trigger (attention-ext.ts). - Playwright driver B1–B14 + C1–C4: guard/pairing, workspaces, chat streaming, abort, panels, attention, status/devices, reconnect, deep links, i18n/theme, responsive overflow and console errors. - lib.sh isolates every run (runtime/data/state/agent dirs, ephemeral port, fresh workspaces) and reaps by /proc env; run-all.sh builds both sides. Document the plan and the 31/31 acceptance run.
24 lines
481 B
Bash
24 lines
481 B
Bash
#!/usr/bin/env bash
|
||
# A0–A12: protocol/API/WS end-to-end against daemon + headless nvim + real pi.
|
||
set -euo pipefail
|
||
|
||
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||
# shellcheck source=lib.sh
|
||
source "$HERE/lib.sh"
|
||
|
||
e2e_init api
|
||
if [ "${E2E_SKIP_BUILD:-0}" != "1" ]; then e2e_build 0; fi
|
||
e2e_start_daemon
|
||
e2e_pair "E2E API"
|
||
|
||
set +e
|
||
node "$HERE/api-e2e.mjs"
|
||
rc=$?
|
||
set -e
|
||
|
||
if [ "$rc" -ne 0 ]; then
|
||
E2E_KEEP=1
|
||
e2e_log "API suite FAILED (exit $rc); artifacts: $E2E_ROOT"
|
||
fi
|
||
exit "$rc"
|