Runtime-agnostic test-binary core for the TS canonical zzz server.
Shared by the Deno (testing_server_deno.ts) and Node
(testing_server_node.ts) test-binary adapters: same create_zzz_app
factory, same _testing_reset registration, same reset_state
closure, same daemon-info + shutdown discipline. The two runtime
adapters only supply the boundary primitives that diverge between
Deno and Node (HTTP serve, WS upgrade construction, signal
registration, pid, exit).
Production stays on Deno (server.ts). Both test entries register
_testing_reset from fuz_app's create_testing_actions factory with
a zzz reset_state closure that closes all workspaces, kills
terminals via PtyManager.kill_all, and wipes the optional
ZZZ_TESTING_SCRATCH_DIR tree.
NEVER ship in a release. The module reaches into fuz_app's
testing/cross_backend/ modules which throw at production-bundle
load via assert_dev_env. The testing_ filename prefix mirrors the
Rust testing_zzz_server convention and is enforced for the Rust
side by cargo xtask check-release's dep-graph audit.