teaching: run carrier builds from the toolkit page

Extract the console runner into web/teaching/console-runner.js (classic
script, file:// safe) and mount it on carrier-toolkit.html: per-part 运行本件,
per-group 运行本组, 运行全部 and 运行装配, all fed by lessons.mjs ids at build
time. Fix runButton() emitting a duplicate class attribute that dropped
run-group/run-assembly. Server banner now prints the carrier page URL; new
check:carrier-live gate drives the dry lesson end-to-end.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 21:45:08 +08:00
parent a6576b72ac
commit 3a3077c089
10 changed files with 1002 additions and 457 deletions

View File

@@ -275,7 +275,7 @@ function volumeText(volume) {
* where it sits on the vessel), and the last lesson assembles all 20 into one
* document with 19 fixed joints.
*/
function carrierLessons() {
export function carrierLessons() {
const parts = carrierParts();
const byGroup = new Map(carrierGroups().map((group) => [group.id, group.label]));
const intro = {