Commit Graph

2 Commits

Author SHA1 Message Date
a3abe47286 HS: fix test-456 timeout + add sx_kernel_eval/hs_compile_inspect/hs_parse_inspect tools
- hs-run-filtered.js: add collectionExpressions to _NO_STEP_LIMIT_SUITES (fixes state
  corruption for downstream for-loop tests), add repeat-forever tests to _NO_STEP_LIMIT,
  extend slow deadline for collectionExpressions to 60s
- tests/hs-kernel-eval.js: new standalone Node.js eval script — full WASM kernel +
  mock DOM, accepts HS_EVAL_EXPR/MODE/SETUP/FILES env vars, supports eval/compile/parse modes
- tools/mcp_hs_test.py: add sx_kernel_eval, hs_compile_inspect, hs_parse_inspect tools
- hosts/ocaml/bin/mcp_tree.ml: add host_stubs param to sx_harness_eval (OCaml build pending)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 17:45:12 +00:00
f8d30f50fb mcp: add hs-test server for hyperscript conformance runs
Wraps `node tests/hs-run-filtered.js` so the agent can run/filter/kill
test runs without per-call Bash permission prompts. Tools:

- hs_test_run: run the suite (optional suite filter, start/end range,
  step_limit, verbose); enforces a wall-clock timeout via SIGTERM/SIGKILL
  on the child process group, so a hung CEK loop can't strand the agent.
- hs_test_kill: SIGTERM/SIGKILL any background runner.
- hs_test_regen: regenerate spec/tests/test-hyperscript-behavioral.sx.
- hs_test_status: list any in-flight runners.

Stdio JSON-RPC, same protocol as tools/mcp_services.py.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 10:56:50 +00:00