Commit Graph

9 Commits

Author SHA1 Message Date
a6576b72ac docs(carrier): 阶段 5 收尾记录(控制台证据修复、P06 回归、提交范围)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 18:51:13 +08:00
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
5b61c77c2c docs(tools): generate full tool usage manual (HTML)
Static scan of tools/ and web/tools/ (1691 files, no tool execution):
purpose/usage/env extraction with provenance badges, family folding
(67 families covering 953 files), 16 directory records, 42 hand-written
chapters plus 4 environment contracts, and a 1996-entry search index.

- tools/tools-manual/{config,scan,extract,chapters,render,verify}.mjs
- tools/build-tools-manual.mjs (--check/--verify/--stats)
- tools/check-tools-manual.mjs (Playwright, desktop + mobile)
- docs/current/tools-manual/index.html (1.08 MB, self-contained)
- web/package.json: manual:tools, check:tools-manual

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 03:22:36 +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
c3b3160f33 feat(web): object picker in workbench shell, verify sketch panel on stage
workbench.html routes Sketcher desktop commands to the standalone sketcher
probe, which had no document, so Sketcher_EditSketch always failed with
"The selected live document does not exist in this runtime". The shell also
only exposed an object selection table for BIM, so no command could receive
a selected sketch.

- workbench shell: add a generic document object list (details
  .workbench-object-picker) that writes both the shell selection and the
  command payload selection for every module
- ch03: document the working session path (NewSketch creates
  workbench_document/Sketch, then EditSketch on that selection) with two
  stage screenshots, plus the measured layout (panel left 284 vs stage left
  260, zero horizontal overflow)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 06:54:05 +08:00
300c8efb01 docs(web): full UI surface inventory, illustrated manual, panel screenshots
Interface design document and manual now share one authoritative surface
inventory (333 surfaces across 9 categories, gap 0), and every chapter carries
real Playwright screenshots of the panels it documents.

- tools/fcweb: ui-surface-scan/ui-surface-inventory (deterministic --check),
  build-ui-doc renders panel catalog, workbench matrix and mapping tables;
  blank toolbar crops (<1 KB) are skipped and pruned instead of embedded
- web/tools/manual: generate-panel-index (ch16), audit-ui-gaps,
  generate-final-status, generate-gaps-doc; pager is per-chapter so the manual
  no longer overflows horizontally
- manual: 130 screenshot references / 128 PNGs, panel sections for ch02-ch13
- web/src: utility menus stop click propagation (menu reopened on item click);
  workbench shell gains an OPFS document picker so workbench.html can bind a
  real document instead of the fixed workbench-document id; Sketcher panel
  moves from the command column to the main stage

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 01:30:31 +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
789e18ca3e Continue FreeCAD Web UI parity repairs
Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
CodeQL Advanced (c-cpp) / Analyze (c-cpp) (push) Has been cancelled
Push Crowdin Translations / update-crowdin (push) Has been cancelled
Fetch Crowdin Translations / update-crowdin (push) Has been cancelled
Build Release / upload_src (push) Has been cancelled
Build Release / build (10.13, macos-15-intel, osx-64) (push) Has been cancelled
Build Release / build (11.0, macos-latest, osx-arm64) (push) Has been cancelled
Build Release / build (15.0, macos-latest, osx-arm64) (push) Has been cancelled
Build Release / build (ubuntu-22.04, linux-64) (push) Has been cancelled
Build Release / build (ubuntu-22.04-arm, linux-arm64) (push) Has been cancelled
Build Release / build (windows-latest, win-64) (push) Has been cancelled
Monthly issue metrics / issue metrics (push) Has been cancelled
2026-09-23 14:03:56 +08:00