Commit Graph

18 Commits

Author SHA1 Message Date
87b2a6cb8a feat(carrier): 航空母舰 PartDesign 有头创建工具包与初学者教学
- 新数据链 web/teaching/cases/carrier-partdesign:20 件零件(spec.json 唯一来源)、
  内核建造器 parts/*.mjs、traces/FCStd/replay 全量产物;装配 20 插入 + 19 关节。
- 工具包 tools/carrier:catalog / preflight / create-part / create-assembly /
  create-all / list / self-test / README,按零件与装配拆分为独立工具。
- 共享驱动扩展 web/tools/cad-ui-rebuild:Loft/Pipe/Hole/Fillet/Chamfer/Mirrored/
  LinearPattern 交互,Reversed 复选框补齐;装配 saveAssemblyBundle 先 Accept 再保存。
- 教学:lessons.mjs 新增 carrier 组(环境课 + 20 件 + 装配),suite-runner 增加
  carrier-part/carrier-assembly,生成 carrier-toolkit.html 并接入 index 与控制台证据。

验证:20 件 210 步全部有头通过(P05 修复后 39640 m³;P06 回归 8/8);
装配 20/20 插入、19/19 关节、20 组件 0 畸形、0 mismatch;check:carrier、
check:reducer、check-console --live 全绿。

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 18:46:27 +08:00
b876ad5742 feat(reducer): 二级减速器有头创建工具包与初学者教学
- tools/reducer:目录/前置/单件/批量/装配/自测,复用 cad-ui-rebuild 引擎
- 教学控制台新增「二级减速器」分组:23 件逐件课 + 装配课 + 环境课(job kind reducer-part / reducer-assembly)
- web/teaching/reducer-toolkit.html 初学者配套页(生成物)+ Playwright 双视口门禁
- 首页补工具入口;工具手册随 npm 脚本变更重生成

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 07:31:24 +08:00
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
facbb196d8 feat(web): panel scroll contract, layout probe and functional suite
- lock the three-column height chain on workbench/PartDesign pages so each
  side panel scrolls independently and the centre stage keeps its size
- dock module task panels above the layout with their own scrollbar instead
  of letting them push the stage out of the viewport
- add tools/layout-probe.mjs (page scroll, aside bounds, pane scrolling,
  stage stability) and CLI mode for tools/static-host.mjs with relative
  --root support
- add the P0-P4 browser functional suite, manual scenarios and capture
  tooling; document it under docs/current/web-functional-suite

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 22:09:42 +08:00
3c2c623f70 Filter the command matrix by the web module registry
The matrix is scraped from upstream source, so it still carries modules
the port has removed. Counting its rows re-introduced OpenSCAD into the
manual data after the workbench was taken out. Parse the module list from
module-registry.generated.ts once and drop every record whose module is
not in it, which keeps 31 modules and reproduces the 1575 command rows
the manual now reports.

Regenerate the gaps document so it lists the 11 boundaries with the new
OpenSCAD-free set, and refresh the ch03 fixture captured alongside the
re-shot chapter.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-15 20:44:59 +08:00
82d78af58e Move the sketch editor onto the stage and align the manual's data
The sketch drawing panel was mounted in the properties aside, about 300px
wide, so its dozen or so groups needed a long scroll. Render it under the
3D viewport in the stage instead and lay its commands out as a
width-driven grid: three columns at 1440px, one on narrow screens. The
panel keeps the same DOM, so every existing selector, the Escape
handling and the 4-geometries assertion still hold; tsc --noEmit passes
and ch03 was re-captured headed with no page or console errors.

Point final-status.json and the manual gaps document at the current
figures: 31 modules, 1575 command rows, 64 screenshots and 11 boundaries.
Fix the generator rather than the output, so the next run cannot regress:
drop b-openscad-recompile while the workbench is removed, add the five
boundaries measured in the last pass, and record the layout change and
the two-shell split in the notes.

Update continuationNotes.md to the pushed state: 7d9cf3a5 is on
web-desktop-parity-20261113 and matches local HEAD.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-15 20:25:36 +08:00
39410dea36 Add the shared tool modules the new gates import
The previous commit landed the audit-coverage change together with the
scripts that enforce it, but several of those scripts import shared
modules that were never tracked: static-host.mjs (ephemeral isolated
static host used by every browser runner), wasm-probe-runtime.mjs,
official-fixture-resolver.mjs, artifact-assets.mjs and the four BIM GUI
acceptance modules. A checkout of that tree could not load the runners
that reference them.

Add the transitive closure of untracked local imports, computed by walking
the relative .mjs imports of the committed batch until no new files appear:
8 files, 27 KB, none of them covered by .gitignore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:26:05 +08:00
dd7a940c37 Derive workbench audit coverage from modules x viewports
The workbench surface audit scrapes module names out of the web module
registry and iterates two viewports, so its record count is a product,
never a constant. Removing OpenSCAD dropped the registry from 32 to 31
modules and moved the expected count from 64 to 62, while 65 places in
the tooling still asserted 64 - re-running the audit would have failed
every gate with no actual regression behind it.

Add tools/audit64.mjs as the single owner of the coverage rule:
auditCoverage(), auditCoverageComplete() and audit64Satisfied(). The
success test requires records === expectedRecords only when the snapshot
carries an expectation, so freshly produced evidence (62 records plus
expectedRecords 62) and historical evidence captured before the removal
(64 records, no expectation) are both judged against their own coverage.
The 111 archived CAM snapshots stay valid instead of being reclassified
as regressions, and a real 62-vs-64 shortfall still fails.

Converted callers: 56 build_cam_*_profile.mjs, 5 tools/mcp/replay-*.mjs,
close-official-case.mjs, run_partdesign_official_suite.mjs,
run_p6_assembly_testcore_chrome.mjs, run_p6_bim_arch_component_chrome.mjs
and run-official-native-shape-profile.mjs. The producer in
run_p6_cam_chrome.mjs now writes the derived expectedRecords so downstream
gates compare against an authoritative expectation.

Also fix artifacts that would have revived the removed module:
sync-assets.mjs unconditionally re-copied the OpenSCAD runtime probe into
public/kernel on every sync-kernel run, and its sources still exist in the
build tree. Drop that loop, the dead displayOwners entry in
audit-geometry-boundary.mjs, and the 14 MB vendored openscad-wasm.

Keep the parity matrix self-consistent: module_count follows rows (31),
and the business completion audit derives its expected module count from
the matrix instead of hardcoding 32, which would otherwise make completion
unreachable.

Rebuilt dist and re-ran the audit against an ephemeral isolated static
host: 31 modules, 2 viewports, 62 records, 0 failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:11:21 +08:00
579d6d20c8 Finalize manual verified status and gap ledger
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 13:09:50 +08:00
158e9ddfdc Complete all manual chapters with screenshots and command index
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 12:45:40 +08:00
3d3afc129f Add Sketcher chapter with coordinate-driven rectangle capture
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 11:49:49 +08:00
6a7efb5432 Add Part chapter with verified boolean and geometry captures
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 11:23:18 +08:00
bc40c77153 Add Web FreeCAD manual matrix, capture harness and chapter 1 pilot
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 11:13:29 +08:00
a10493723b Complete 18/18 production-line course media and final audit
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 08:59:47 +08:00
cf4a3ea984 Close out line-course at 7/18 media, product complete
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 05:20:04 +08:00
249f40a69b Add E06-E07 media evidence and course inventory
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 05:16:35 +08:00
3ac496c3c2 Update line-course progress and E05 verification
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 04:30:32 +08:00
4eff6110e7 Add 27-model production-line Web FreeCAD course tooling and pages
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 04:16:04 +08:00