Files
FreeCADWasmDev/web/teaching/console.html
wangdequan dd8ba17591 feat(teaching): browser console that runs the functional suite by workbench
A lesson-oriented page plus a loopback job service: click a lesson and the
page really runs tools/web-freecad-functional-suite.mjs, tools/layout-probe.mjs
or tools/static-host.mjs, streaming logs and rendering verdicts from the
suite's own manifest/checkpoint/results files.

- web/tools/teaching-console: catalog derived from scenarios + registry,
  73 workbench lessons, template, builder (--check), Playwright gate,
  no-browser self-test for every spawn validation path
- web/teaching/suite-runner.mjs: argv whitelist, env whitelist, single
  concurrent job, process-group cancel, ring-buffered logs, preflight
- web/teaching/server.mjs: /api/console/* routes with startup token,
  Origin check, SSE events, artifact serving; existing routes untouched
- preflight blocks runs (E_PREFLIGHT) instead of starting without dist,
  Chrome, DISPLAY, kernel or Playwright
- gates: self-test OK, build --check idempotent, offline + live Playwright
  (MOD-Part-01 pass, cancel path) OK

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 04:12:31 +08:00

86 KiB