Finalize manual verified status and gap ledger

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-11-13 13:09:50 +08:00
parent 158e9ddfdc
commit 579d6d20c8
11 changed files with 820 additions and 94 deletions

View File

@@ -0,0 +1,21 @@
# Web FreeCAD 教案缺口台账
生成时间:2026-11-13T05:08:46.050Z
已验证命令:12;待修:0;边界:7
| 模块 | 边界 | 原因 | 桌面源码入口 |
|---|---|---|---|
| TechDraw | TechDraw 跨 Worker 文档桥 | 页面 Worker 未持有目标文档,TechDraw_PageDefault 报 Document does not exist;SVG 回退不是 TechDraw 输出。 | freecad-source/src/Mod/TechDraw/App/DrawPage.cpp<br>freecad-source/src/Mod/TechDraw/App/DrawViewPart.cpp |
| Fem | FEM 原生结果对象 | FemMeshObject/FemResultObject 未随包发布,结果停留在 Worker;VTK 显示为 three.js 近似。 | freecad-source/src/Mod/Fem/App/FemMeshObject.cpp<br>web/docs/current/web-freecad-gaps-fem.md |
| CAM | CAM OpenCAMLib 路径 | Adaptive/Surface/Waterline 依赖 OpenCAMLib 与完整 ToolBit/G-code 栈,WASM 包未提供。 | freecad-source/src/Mod/CAM/App/AppPath.cpp<br>web/docs/current/cam-teaching-gap.md |
| Import | glTF 原生导入/导出 | OCCT WASM 构建 USE_RAPIDJSON=OFF,RWGltf 无法读写;当前仅 three.js 查看。 | freecad-source/src/Mod/Import/App/ReaderGltf.cpp<br>freecad-source/src/Mod/Import/App/WriterGltf.cpp |
| Cloud | Cloud 远程存储 | Save/Restore 需要远程 S3 凭据与服务;本地 OPFS 不受影响。 | web/src/cloud.worker.ts |
| Material | Material 原生库兼容 | Material 原生 API 对稀疏数组/单位处理不完整,部分命令为边界。 | freecad-source/src/Mod/Material/App/MaterialManager.cpp |
| OpenSCAD | OpenSCAD 二次编译崩溃 | 同一实例连续编译可能崩溃;逐次保存并重启实例。 | freecad-source/src/Mod/OpenSCAD/App/OpenSCADUtils.cpp |
## 布局/流程说明
- 草图编辑器当前嵌在属性栏,面板窄且需滚动;属布局边界,可用 React 移到主舞台。
- 项目页 Part 文档切换 PartDesign 需要 ownership handoff;教程改用 partdesign.html。
- Mesh/BIM/TechDraw/FEM 模块页显示 boundary/no-worker,教程按模块页实际任务与边界编写。

View File

@@ -47,6 +47,11 @@
- 最终页面检查:15 章 / 33 图 / 1602 命令 / 1736 搜索项;
桌面与移动 0 错误、0 破图、0 横向溢出。
- `manual/data/final-status.json` 记录完成状态。
- 收口脚本 `tools/manual/finalize-features.mjs`:回写 14 个 workflow、34 张截图、
12 条 `verified` 命令;生成 `manual/data/gap-ledger.json` 与
`web/docs/current/web-freecad-manual-gaps.md`(7 条边界 + 布局/流程说明)。
- 最终页面:15 章 / 33 张正文图(34 张采集图)/ 1602 命令 / 1736 搜索项;
桌面与移动 0 错误、0 破图、0 溢出。
## 真实残余

View File

@@ -27,9 +27,13 @@
"ch15": 0
},
"byStatus": {
"detailed": 312,
"overview": 1287,
"verified": 12,
"detailed": 303,
"overview": 1284,
"boundary": 3
},
"ok": true
"ok": true,
"verified": 12,
"workflows": 14,
"screenshots": 34
}

View File

@@ -1,27 +1,16 @@
{
"schema": "freecad-web-manual/final-status/v1",
"generatedAt": "2026-11-13T12:50:00+08:00",
"generatedAt": "2026-11-13T13:10:00+08:00",
"state": "complete",
"chapters": 15,
"chaptersWithAppendix": 16,
"screenshots": 33,
"screenshots": 34,
"commands": 1602,
"modules": 32,
"nativeHandlers": 196,
"statusCounts": {
"modules": 32,
"commands": 1602,
"desktopRecords": 1492,
"routes": 1296,
"registryCommands": 306,
"nativeHandlers": 196,
"detailed": 312,
"overview": 1287,
"boundary": 3,
"verifiedCandidates": 73,
"screenshots": 0,
"workflows": 0
},
"verifiedCommands": 12,
"workflows": 14,
"boundaries": 7,
"pageCheck": {
"ok": true,
"desktopOverflow": 0,
@@ -33,17 +22,19 @@
"url": "http://127.0.0.1:5190/manual.html",
"assets": "web/teaching/manual-assets",
"captureReports": "web/manual/data/capture",
"gapLedger": "web/manual/data/gap-ledger.json",
"knownBoundaries": [
"TechDraw 跨 Worker 文档桥",
"FEM 原生结果对象",
"CAM OpenCAMLib/完整 G-code",
"glTF 原生导入导出",
"Material 稀疏数组/Cloud 远程 S3",
"OpenSCAD 二次编译"
"CAM OpenCAMLib 路径",
"glTF 原生导入/导出",
"Cloud 远程存储",
"Material 原生库兼容",
"OpenSCAD 二次编译崩溃"
],
"notes": [
"第 3 章记录草图编辑器位于属性栏的布局边界",
"第 4 章使用独立 partdesign.html,规避 project 页 ownership handoff",
"第 8-12 章专业工作台按模块页实际任务与边界编写"
"草图编辑器当前嵌在属性栏,面板窄且需滚动;属布局边界,可用 React 移到主舞台。",
"项目页 Part 文档切换 PartDesign 需要 ownership handoff;教程改用 partdesign.html。",
"Mesh/BIM/TechDraw/FEM 模块页显示 boundary/no-worker,教程按模块页实际任务与边界编写。"
]
}

View File

@@ -0,0 +1,94 @@
{
"schema": "freecad-web-manual/gaps/v1",
"generatedAt": "2026-11-13T05:08:46.050Z",
"verified": 12,
"fixNeeded": [],
"boundaries": [
{
"id": "b-techdraw-worker",
"module": "TechDraw",
"title": "TechDraw 跨 Worker 文档桥",
"detail": "页面 Worker 未持有目标文档,TechDraw_PageDefault 报 Document does not exist;SVG 回退不是 TechDraw 输出。",
"desktopRefs": [
"freecad-source/src/Mod/TechDraw/App/DrawPage.cpp",
"freecad-source/src/Mod/TechDraw/App/DrawViewPart.cpp"
],
"status": "boundary",
"evidence": "web/tools/manual/evidence/ch11"
},
{
"id": "b-fem-native",
"module": "Fem",
"title": "FEM 原生结果对象",
"detail": "FemMeshObject/FemResultObject 未随包发布,结果停留在 Worker;VTK 显示为 three.js 近似。",
"desktopRefs": [
"freecad-source/src/Mod/Fem/App/FemMeshObject.cpp",
"web/docs/current/web-freecad-gaps-fem.md"
],
"status": "boundary",
"evidence": "web/tools/manual/evidence/ch12"
},
{
"id": "b-cam-opencamlib",
"module": "CAM",
"title": "CAM OpenCAMLib 路径",
"detail": "Adaptive/Surface/Waterline 依赖 OpenCAMLib 与完整 ToolBit/G-code 栈,WASM 包未提供。",
"desktopRefs": [
"freecad-source/src/Mod/CAM/App/AppPath.cpp",
"web/docs/current/cam-teaching-gap.md"
],
"status": "boundary",
"evidence": "web/tools/manual/evidence/ch10"
},
{
"id": "b-gltf-native",
"module": "Import",
"title": "glTF 原生导入/导出",
"detail": "OCCT WASM 构建 USE_RAPIDJSON=OFF,RWGltf 无法读写;当前仅 three.js 查看。",
"desktopRefs": [
"freecad-source/src/Mod/Import/App/ReaderGltf.cpp",
"freecad-source/src/Mod/Import/App/WriterGltf.cpp"
],
"status": "boundary",
"evidence": "web/manual/content/ch07-import-export.md"
},
{
"id": "b-cloud-remote",
"module": "Cloud",
"title": "Cloud 远程存储",
"detail": "Save/Restore 需要远程 S3 凭据与服务;本地 OPFS 不受影响。",
"desktopRefs": [
"web/src/cloud.worker.ts"
],
"status": "boundary",
"evidence": "web/manual/content/ch13-specialists.md"
},
{
"id": "b-material-sparse",
"module": "Material",
"title": "Material 原生库兼容",
"detail": "Material 原生 API 对稀疏数组/单位处理不完整,部分命令为边界。",
"desktopRefs": [
"freecad-source/src/Mod/Material/App/MaterialManager.cpp"
],
"status": "boundary",
"evidence": "web/docs/current/freecad-official-case-ledger.json"
},
{
"id": "b-openscad-recompile",
"module": "OpenSCAD",
"title": "OpenSCAD 二次编译崩溃",
"detail": "同一实例连续编译可能崩溃;逐次保存并重启实例。",
"desktopRefs": [
"freecad-source/src/Mod/OpenSCAD/App/OpenSCADUtils.cpp"
],
"status": "boundary",
"evidence": "web/manual/content/ch13-specialists.md"
}
],
"notes": [
"草图编辑器当前嵌在属性栏,面板窄且需滚动;属布局边界,可用 React 移到主舞台。",
"项目页 Part 文档切换 PartDesign 需要 ownership handoff;教程改用 partdesign.html。",
"Mesh/BIM/TechDraw/FEM 模块页显示 boundary/no-worker,教程按模块页实际任务与边界编写。"
]
}

View File

@@ -38,8 +38,9 @@
"overview": 1287,
"boundary": 3,
"verifiedCandidates": 73,
"screenshots": 0,
"workflows": 0
"screenshots": 34,
"workflows": 14,
"verified": 12
},
"chapters": [
{
@@ -200,7 +201,187 @@
"moduleIds": []
}
],
"workflows": [],
"workflows": [
{
"id": "ch00-start-opfs",
"chapterId": "ch00",
"title": "start-opfs",
"commands": [],
"screenshots": [
"ch00/start-opfs/01-start-dialog",
"ch00/start-opfs/02-file-tools"
],
"status": "verified"
},
{
"id": "ch01-ui-and-document",
"chapterId": "ch01",
"title": "ui-and-document",
"commands": [
"Part_Box"
],
"screenshots": [
"ch01/ui-and-document/01-interface",
"ch01/ui-and-document/02-part-box",
"ch01/ui-and-document/03-placement",
"ch01/ui-and-document/04-properties",
"ch01/ui-and-document/05-viewport",
"ch01/ui-and-document/06-saved",
"ch01/ui-and-document/07-summary"
],
"status": "verified"
},
{
"id": "ch02-part-primitives-boolean",
"chapterId": "ch02",
"title": "part-primitives-boolean",
"commands": [
"Part_Box",
"Part_Cylinder",
"Part_Cut",
"Part_CheckGeometry"
],
"screenshots": [
"ch02/part-primitives-boolean/01-primitives",
"ch02/part-primitives-boolean/02-boolean-cut",
"ch02/part-primitives-boolean/03-check-geometry",
"ch02/part-primitives-boolean/04-result"
],
"status": "verified"
},
{
"id": "ch03-sketch-rectangle",
"chapterId": "ch03",
"title": "sketch-rectangle",
"commands": [
"Sketcher_NewSketch",
"Sketcher_CreateRectangle"
],
"screenshots": [
"ch03/sketch-rectangle/01-new-sketch",
"ch03/sketch-rectangle/02-sketch-editor",
"ch03/sketch-rectangle/03-rectangle",
"ch03/sketch-rectangle/05-constraint-space",
"ch03/sketch-rectangle/06-closed"
],
"status": "verified"
},
{
"id": "ch04-partdesign-body-pad",
"chapterId": "ch04",
"title": "partdesign-body-pad",
"commands": [
"PartDesign_Body",
"PartDesign_NewSketch",
"PartDesign_Pad"
],
"screenshots": [
"ch04/partdesign-body-pad/01-sketch",
"ch04/partdesign-body-pad/02-pad-task",
"ch04/partdesign-body-pad/03-pad-result"
],
"status": "verified"
},
{
"id": "ch05-assembly-create-insert",
"chapterId": "ch05",
"title": "assembly-create-insert",
"commands": [
"Assembly_CreateAssembly",
"Assembly_InsertLink"
],
"screenshots": [
"ch05/assembly-create-insert/01-create-assembly",
"ch05/assembly-create-insert/02-insert-links",
"ch05/assembly-create-insert/03-assembly-result"
],
"status": "verified"
},
{
"id": "ch06-spreadsheet-measure",
"chapterId": "ch06",
"title": "spreadsheet-measure",
"commands": [
"Spreadsheet_CreateSheet"
],
"screenshots": [
"ch06/spreadsheet-measure/01-spreadsheet"
],
"status": "verified"
},
{
"id": "ch07-file-tools",
"chapterId": "ch07",
"title": "file-tools",
"commands": [],
"screenshots": [
"ch07/file-tools/01-file-tools"
],
"status": "verified"
},
{
"id": "ch08-mesh-workbench",
"chapterId": "ch08",
"title": "mesh-workbench",
"commands": [],
"screenshots": [
"ch08/mesh-workbench/01-mesh-page"
],
"status": "verified"
},
{
"id": "ch09-bim-workbench",
"chapterId": "ch09",
"title": "bim-workbench",
"commands": [],
"screenshots": [
"ch09/bim-workbench/01-bim-page"
],
"status": "verified"
},
{
"id": "ch10-cam-job",
"chapterId": "ch10",
"title": "cam-job",
"commands": [],
"screenshots": [
"ch10/cam-job/01-cam-job"
],
"status": "verified"
},
{
"id": "ch11-techdraw-page",
"chapterId": "ch11",
"title": "techdraw-page",
"commands": [],
"screenshots": [
"ch11/techdraw-page/01-techdraw-page"
],
"status": "verified"
},
{
"id": "ch12-fem-workbench",
"chapterId": "ch12",
"title": "fem-workbench",
"commands": [],
"screenshots": [
"ch12/fem-workbench/01-fem-page"
],
"status": "verified"
},
{
"id": "ch13-specialist-tools",
"chapterId": "ch13",
"title": "specialist-tools",
"commands": [],
"screenshots": [
"ch13/specialist-tools/01-openscad",
"ch13/specialist-tools/02-robot",
"ch13/specialist-tools/03-plot"
],
"status": "verified"
}
],
"commands": [
{
"key": "Assembly:desktop:Assembly_ActivateAssembly",
@@ -228,12 +409,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch05",
"workflowId": null,
"status": "overview",
"workflowId": "ch05-assembly-create-insert",
"status": "verified",
"uiSurface": false,
"ledgerCaseId": null,
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch05/assembly-create-insert/01-create-assembly",
"sourcePath": "src/Mod/Assembly/CommandCreateAssembly.py",
"sourceLine": 171,
"desktopRef": "src/Mod/Assembly/CommandCreateAssembly.py:171"
@@ -588,12 +769,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch05",
"workflowId": null,
"status": "overview",
"workflowId": "ch05-assembly-create-insert",
"status": "verified",
"uiSurface": false,
"ledgerCaseId": null,
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch05/assembly-create-insert/01-create-assembly",
"sourcePath": "src/Mod/Assembly/CommandInsertLink.py",
"sourceLine": 733,
"desktopRef": "src/Mod/Assembly/CommandInsertLink.py:733"
@@ -11610,12 +11791,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch02",
"workflowId": null,
"status": "detailed",
"workflowId": "ch02-part-primitives-boolean",
"status": "verified",
"uiSurface": true,
"ledgerCaseId": null,
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch02/part-primitives-boolean/01-primitives",
"sourcePath": "src/Mod/Part/Gui/CommandParametric.cpp",
"sourceLine": 110,
"desktopRef": "src/Mod/Part/Gui/CommandParametric.cpp:110"
@@ -11718,12 +11899,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch02",
"workflowId": null,
"status": "detailed",
"workflowId": "ch02-part-primitives-boolean",
"status": "verified",
"uiSurface": true,
"ledgerCaseId": null,
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch02/part-primitives-boolean/01-primitives",
"sourcePath": "src/Mod/Part/Gui/Command.cpp",
"sourceLine": 2326,
"desktopRef": "src/Mod/Part/Gui/Command.cpp:2326"
@@ -11934,12 +12115,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch02",
"workflowId": null,
"status": "detailed",
"workflowId": "ch02-part-primitives-boolean",
"status": "verified",
"uiSurface": true,
"ledgerCaseId": null,
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch02/part-primitives-boolean/01-primitives",
"sourcePath": "src/Mod/Part/Gui/Command.cpp",
"sourceLine": 311,
"desktopRef": "src/Mod/Part/Gui/Command.cpp:311"
@@ -11952,12 +12133,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch02",
"workflowId": null,
"status": "detailed",
"workflowId": "ch02-part-primitives-boolean",
"status": "verified",
"uiSurface": true,
"ledgerCaseId": null,
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch02/part-primitives-boolean/01-primitives",
"sourcePath": "src/Mod/Part/Gui/CommandParametric.cpp",
"sourceLine": 66,
"desktopRef": "src/Mod/Part/Gui/CommandParametric.cpp:66"
@@ -13197,12 +13378,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch04",
"workflowId": null,
"status": "detailed",
"workflowId": "ch04-partdesign-body-pad",
"status": "verified",
"uiSurface": true,
"ledgerCaseId": "real.PartDesign:desktop:PartDesign_Body",
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch04/partdesign-body-pad/01-sketch",
"sourcePath": "src/Mod/PartDesign/Gui/CommandBody.cpp",
"sourceLine": 89,
"desktopRef": "src/Mod/PartDesign/Gui/CommandBody.cpp:89"
@@ -13611,12 +13792,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch04",
"workflowId": null,
"status": "detailed",
"workflowId": "ch04-partdesign-body-pad",
"status": "verified",
"uiSurface": true,
"ledgerCaseId": "real.PartDesign:desktop:PartDesign_NewSketch",
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch04/partdesign-body-pad/01-sketch",
"sourcePath": "src/Mod/PartDesign/Gui/Command.cpp",
"sourceLine": 574,
"desktopRef": "src/Mod/PartDesign/Gui/Command.cpp:574"
@@ -13629,12 +13810,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch04",
"workflowId": null,
"status": "detailed",
"workflowId": "ch04-partdesign-body-pad",
"status": "verified",
"uiSurface": true,
"ledgerCaseId": "real.PartDesign:desktop:PartDesign_Pad",
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch04/partdesign-body-pad/01-sketch",
"sourcePath": "src/Mod/PartDesign/Gui/Command.cpp",
"sourceLine": 1227,
"desktopRef": "src/Mod/PartDesign/Gui/Command.cpp:1227"
@@ -18210,12 +18391,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch03",
"workflowId": null,
"status": "detailed",
"workflowId": "ch03-sketch-rectangle",
"status": "verified",
"uiSurface": true,
"ledgerCaseId": null,
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch03/sketch-rectangle/01-new-sketch",
"sourcePath": "src/Mod/Sketcher/Gui/CommandCreateGeo.cpp",
"sourceLine": 719,
"desktopRef": "src/Mod/Sketcher/Gui/CommandCreateGeo.cpp:719"
@@ -18570,12 +18751,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch03",
"workflowId": null,
"status": "detailed",
"workflowId": "ch03-sketch-rectangle",
"status": "verified",
"uiSurface": true,
"ledgerCaseId": null,
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch03/sketch-rectangle/01-new-sketch",
"sourcePath": "src/Mod/Sketcher/Gui/Command.cpp",
"sourceLine": 153,
"desktopRef": "src/Mod/Sketcher/Gui/Command.cpp:153"
@@ -19452,12 +19633,12 @@
"disposition": "restricted",
"route": null,
"chapterId": "ch06",
"workflowId": null,
"status": "overview",
"workflowId": "ch06-spreadsheet-measure",
"status": "verified",
"uiSurface": false,
"ledgerCaseId": null,
"boundaryId": null,
"screenshotId": null,
"screenshotId": "ch06/spreadsheet-measure/01-spreadsheet",
"sourcePath": "src/Mod/Spreadsheet/Gui/Command.cpp",
"sourceLine": 951,
"desktopRef": "src/Mod/Spreadsheet/Gui/Command.cpp:951"
@@ -29627,7 +29808,314 @@
"desktopRef": null
}
],
"screenshots": [],
"screenshots": [
{
"id": "ch00/start-opfs/01-start-dialog",
"file": "manual/assets/ch00/start-opfs/01-start-dialog.png",
"chapterId": "ch00",
"workflowId": "ch00-start-opfs",
"bytes": 95328,
"sha256": "605dacbf90f42fd74203810d624e6a8180646b9865a15975933df98d031245f2",
"fullPage": false
},
{
"id": "ch00/start-opfs/02-file-tools",
"file": "manual/assets/ch00/start-opfs/02-file-tools.png",
"chapterId": "ch00",
"workflowId": "ch00-start-opfs",
"bytes": 236537,
"sha256": "13b98035ba984c9573f1e3e591046277506ca6ccbb6860708c62a7a6d20c8002",
"fullPage": true
},
{
"id": "ch01/ui-and-document/01-interface",
"file": "manual/assets/ch01/ui-and-document/01-interface.png",
"chapterId": "ch01",
"workflowId": "ch01-ui-and-document",
"bytes": 165728,
"sha256": "a6b2b7b8ea4149233a9054b2d96a8a289f83366fef5c270dd8e0642245a3337d",
"fullPage": true
},
{
"id": "ch01/ui-and-document/02-part-box",
"file": "manual/assets/ch01/ui-and-document/02-part-box.png",
"chapterId": "ch01",
"workflowId": "ch01-ui-and-document",
"bytes": 212824,
"sha256": "541ad0dcac5096d09124c6ab51f3d84db3b3c3901ae56a67ac970fee2a324281",
"fullPage": true
},
{
"id": "ch01/ui-and-document/03-placement",
"file": "manual/assets/ch01/ui-and-document/03-placement.png",
"chapterId": "ch01",
"workflowId": "ch01-ui-and-document",
"bytes": 218043,
"sha256": "3ca3b5cf7c0466e57ae353edee4a19a0ecd90537d36098e43a6fc26cfe86c4c4",
"fullPage": true
},
{
"id": "ch01/ui-and-document/04-properties",
"file": "manual/assets/ch01/ui-and-document/04-properties.png",
"chapterId": "ch01",
"workflowId": "ch01-ui-and-document",
"bytes": 52634,
"sha256": "564f2483692cc4e7bd746394498c7a592d6b3dcaa70e0ab2ee6a2c4a173120ab",
"fullPage": false
},
{
"id": "ch01/ui-and-document/05-viewport",
"file": "manual/assets/ch01/ui-and-document/05-viewport.png",
"chapterId": "ch01",
"workflowId": "ch01-ui-and-document",
"bytes": 218276,
"sha256": "89b20c2f977311a6e1206637fb04400810b9a9191f9152e5e0bef4525d589061",
"fullPage": true
},
{
"id": "ch01/ui-and-document/06-saved",
"file": "manual/assets/ch01/ui-and-document/06-saved.png",
"chapterId": "ch01",
"workflowId": "ch01-ui-and-document",
"bytes": 287402,
"sha256": "5276720fee5bc4d9f1c9583a35f18ca3cf092cf853dfc43517d118d305835ffa",
"fullPage": true
},
{
"id": "ch01/ui-and-document/07-summary",
"file": "manual/assets/ch01/ui-and-document/07-summary.png",
"chapterId": "ch01",
"workflowId": "ch01-ui-and-document",
"bytes": 287402,
"sha256": "5276720fee5bc4d9f1c9583a35f18ca3cf092cf853dfc43517d118d305835ffa",
"fullPage": true
},
{
"id": "ch02/part-primitives-boolean/01-primitives",
"file": "manual/assets/ch02/part-primitives-boolean/01-primitives.png",
"chapterId": "ch02",
"workflowId": "ch02-part-primitives-boolean",
"bytes": 226412,
"sha256": "10a819e0bf885dbe881601246e422b28450ca8ffd5880d575177e70e0ea670f3",
"fullPage": true
},
{
"id": "ch02/part-primitives-boolean/02-boolean-cut",
"file": "manual/assets/ch02/part-primitives-boolean/02-boolean-cut.png",
"chapterId": "ch02",
"workflowId": "ch02-part-primitives-boolean",
"bytes": 222860,
"sha256": "f5dd55dcff3545363fc83838f05c4285927d6cddedbe54ca9168b486187bd8b1",
"fullPage": true
},
{
"id": "ch02/part-primitives-boolean/03-check-geometry",
"file": "manual/assets/ch02/part-primitives-boolean/03-check-geometry.png",
"chapterId": "ch02",
"workflowId": "ch02-part-primitives-boolean",
"bytes": 244203,
"sha256": "f6773dfc61eeabd9c7b464845c0ca10b07b9a940cbf6a3d9787c7c601bcc6959",
"fullPage": true
},
{
"id": "ch02/part-primitives-boolean/04-result",
"file": "manual/assets/ch02/part-primitives-boolean/04-result.png",
"chapterId": "ch02",
"workflowId": "ch02-part-primitives-boolean",
"bytes": 224664,
"sha256": "89598c30b8f23317adf0c37c6bd84a481112dfe62af3984ee43665a0232f7e4b",
"fullPage": true
},
{
"id": "ch03/sketch-rectangle/01-new-sketch",
"file": "manual/assets/ch03/sketch-rectangle/01-new-sketch.png",
"chapterId": "ch03",
"workflowId": "ch03-sketch-rectangle",
"bytes": 180723,
"sha256": "2d02c81da960ad62363feac743616bf7e50b7a6b371d81fc6492203a6fbda783",
"fullPage": true
},
{
"id": "ch03/sketch-rectangle/02-sketch-editor",
"file": "manual/assets/ch03/sketch-rectangle/02-sketch-editor.png",
"chapterId": "ch03",
"workflowId": "ch03-sketch-rectangle",
"bytes": 357609,
"sha256": "2da325dcfa52f02ad2656864ba2802a2f122599575d385b0219641c4ca7e2f34",
"fullPage": true
},
{
"id": "ch03/sketch-rectangle/03-rectangle",
"file": "manual/assets/ch03/sketch-rectangle/03-rectangle.png",
"chapterId": "ch03",
"workflowId": "ch03-sketch-rectangle",
"bytes": 131052,
"sha256": "4e90188a9d943be970880a98f7d3bbab0b78dce7a195c4f15c234f6c1b29833d",
"fullPage": false
},
{
"id": "ch03/sketch-rectangle/05-constraint-space",
"file": "manual/assets/ch03/sketch-rectangle/05-constraint-space.png",
"chapterId": "ch03",
"workflowId": "ch03-sketch-rectangle",
"bytes": 130940,
"sha256": "db1381873ab43d74c9c1dc2e823e4a0c79005ae1b7dce1ebdb1888e61e9a3505",
"fullPage": false
},
{
"id": "ch03/sketch-rectangle/06-closed",
"file": "manual/assets/ch03/sketch-rectangle/06-closed.png",
"chapterId": "ch03",
"workflowId": "ch03-sketch-rectangle",
"bytes": 189153,
"sha256": "219a84d4fb9fc3bb01dcc93edee04d7a8614b28a4867ed126750c0e03ba2a21e",
"fullPage": true
},
{
"id": "ch04/partdesign-body-pad/01-sketch",
"file": "manual/assets/ch04/partdesign-body-pad/01-sketch.png",
"chapterId": "ch04",
"workflowId": "ch04-partdesign-body-pad",
"bytes": 16000,
"sha256": "a7c2884a4889b0ad4f39076070ec0010f696564616ca5955391ddb5b71c774d6",
"fullPage": false
},
{
"id": "ch04/partdesign-body-pad/02-pad-task",
"file": "manual/assets/ch04/partdesign-body-pad/02-pad-task.png",
"chapterId": "ch04",
"workflowId": "ch04-partdesign-body-pad",
"bytes": 30838,
"sha256": "451b86211060842d25e54de9015a091312af3d870c63b6726f0e9254b52f2796",
"fullPage": false
},
{
"id": "ch04/partdesign-body-pad/03-pad-result",
"file": "manual/assets/ch04/partdesign-body-pad/03-pad-result.png",
"chapterId": "ch04",
"workflowId": "ch04-partdesign-body-pad",
"bytes": 21494,
"sha256": "ebbc2c41a1ee346f0d72f57ecee5eca7a695df9f2307438be45c5d441d7a9329",
"fullPage": false
},
{
"id": "ch05/assembly-create-insert/01-create-assembly",
"file": "manual/assets/ch05/assembly-create-insert/01-create-assembly.png",
"chapterId": "ch05",
"workflowId": "ch05-assembly-create-insert",
"bytes": 11672,
"sha256": "bf89108c75628eb6467decff2d50a216d9105ccf89df427a4fcecdfd865aa5d4",
"fullPage": false
},
{
"id": "ch05/assembly-create-insert/02-insert-links",
"file": "manual/assets/ch05/assembly-create-insert/02-insert-links.png",
"chapterId": "ch05",
"workflowId": "ch05-assembly-create-insert",
"bytes": 53141,
"sha256": "fa28a33b9da9ffa065dfd9b98397759f49ca45f093ca0460e7cd833ca910b671",
"fullPage": false
},
{
"id": "ch05/assembly-create-insert/03-assembly-result",
"file": "manual/assets/ch05/assembly-create-insert/03-assembly-result.png",
"chapterId": "ch05",
"workflowId": "ch05-assembly-create-insert",
"bytes": 358031,
"sha256": "9c21585f7be0570d492776d479925bd9d4605fdc53a7dc7f4c39402d9c310ed2",
"fullPage": true
},
{
"id": "ch06/spreadsheet-measure/01-spreadsheet",
"file": "manual/assets/ch06/spreadsheet-measure/01-spreadsheet.png",
"chapterId": "ch06",
"workflowId": "ch06-spreadsheet-measure",
"bytes": 260585,
"sha256": "64d2ce6b10e3a84b896c6db8bfbec676cd902f5dd13c9df508878edb7d039f3a",
"fullPage": true
},
{
"id": "ch07/file-tools/01-file-tools",
"file": "manual/assets/ch07/file-tools/01-file-tools.png",
"chapterId": "ch07",
"workflowId": "ch07-file-tools",
"bytes": 236537,
"sha256": "13b98035ba984c9573f1e3e591046277506ca6ccbb6860708c62a7a6d20c8002",
"fullPage": true
},
{
"id": "ch08/mesh-workbench/01-mesh-page",
"file": "manual/assets/ch08/mesh-workbench/01-mesh-page.png",
"chapterId": "ch08",
"workflowId": "ch08-mesh-workbench",
"bytes": 174472,
"sha256": "7e426d2755b73aea37384b8c39f3c32165b6f9fc2989d27953b8fbae65d66a90",
"fullPage": false
},
{
"id": "ch09/bim-workbench/01-bim-page",
"file": "manual/assets/ch09/bim-workbench/01-bim-page.png",
"chapterId": "ch09",
"workflowId": "ch09-bim-workbench",
"bytes": 157010,
"sha256": "6a3bb6be4f66e92e9a8e721f5202286e2d1d7a00d7ba37d4eb53b8e86d1ac7e6",
"fullPage": false
},
{
"id": "ch10/cam-job/01-cam-job",
"file": "manual/assets/ch10/cam-job/01-cam-job.png",
"chapterId": "ch10",
"workflowId": "ch10-cam-job",
"bytes": 37913,
"sha256": "0a648d1333ba76782cffc33a22ff873fd213437563fffff1c326b4580a4186b7",
"fullPage": false
},
{
"id": "ch11/techdraw-page/01-techdraw-page",
"file": "manual/assets/ch11/techdraw-page/01-techdraw-page.png",
"chapterId": "ch11",
"workflowId": "ch11-techdraw-page",
"bytes": 211190,
"sha256": "f633bbab0bc68674483a3b9bfe138757e5a292397d3e0493e53e512f87eb348c",
"fullPage": false
},
{
"id": "ch12/fem-workbench/01-fem-page",
"file": "manual/assets/ch12/fem-workbench/01-fem-page.png",
"chapterId": "ch12",
"workflowId": "ch12-fem-workbench",
"bytes": 256619,
"sha256": "0464b5bcaa5beb228e53ac45f93c729bf284fc86ca0e169b1a063af632fda94d",
"fullPage": false
},
{
"id": "ch13/specialist-tools/01-openscad",
"file": "manual/assets/ch13/specialist-tools/01-openscad.png",
"chapterId": "ch13",
"workflowId": "ch13-specialist-tools",
"bytes": 62326,
"sha256": "ff99112c42804bfa07d598be3cafe662fbee1dba490c60a118a7f36c933658fa",
"fullPage": false
},
{
"id": "ch13/specialist-tools/02-robot",
"file": "manual/assets/ch13/specialist-tools/02-robot.png",
"chapterId": "ch13",
"workflowId": "ch13-specialist-tools",
"bytes": 8186,
"sha256": "f329bd4b3d7fb2fc5a137dc6e0265e8d91518bcd410fdf4d67e374e0830c78d9",
"fullPage": false
},
{
"id": "ch13/specialist-tools/03-plot",
"file": "manual/assets/ch13/specialist-tools/03-plot.png",
"chapterId": "ch13",
"workflowId": "ch13-specialist-tools",
"bytes": 6880,
"sha256": "5a741c9ab7dda3755cef88d6acc68db93f99c83420f5ea4273af091477b1f47d",
"fullPage": false
}
],
"boundaries": [
{
"id": "b-techdraw-worker",

View File

@@ -1,6 +1,6 @@
{
"schema": "freecad-web-manual/page-check/v1",
"generatedAt": "2026-11-13T04:45:00.026Z",
"generatedAt": "2026-11-13T05:09:11.163Z",
"url": "http://127.0.0.1:5190/manual.html",
"viewports": [
{

File diff suppressed because one or more lines are too long

View File

@@ -99,7 +99,7 @@ const commandIndex = `<section id="command-index-section"><h1 id="ch15">附录
状态含义:精讲 = 有分步教程;覆盖 = 有工作流/命令说明;边界 = 当前 Web 端受限并注明原因。</p>
<div class="index-controls">
<select id="filter-module" aria-label="按模块筛选"><option value="">全部模块</option>${moduleOptions}</select>
<select id="filter-status" aria-label="按状态筛选"><option value="">全部状态</option><option value="detailed">精讲</option><option value="overview">覆盖</option><option value="boundary">边界</option></select>
<select id="filter-status" aria-label="按状态筛选"><option value="">全部状态</option><option value="verified">已验证</option><option value="detailed">精讲</option><option value="overview">覆盖</option><option value="boundary">边界</option></select>
<input id="filter-command" type="search" placeholder="筛选命令…" aria-label="筛选命令" />
</div>
<div class="table-scroll"><table id="command-index"><thead><tr><th>模块</th><th>命令</th><th>类型</th><th>状态</th><th>章节</th><th>案例</th></tr></thead><tbody>${indexRows}</tbody></table></div></section>`;

View File

@@ -0,0 +1,121 @@
#!/usr/bin/env node
// Backfills verified workflows/screenshots from capture reports, writes the gap
// ledger, and refreshes coverage-audit.json. Run after captures and before build.
import fs from "node:fs";
import path from "node:path";
import { createHash } from "node:crypto";
import { fileURLToPath } from "node:url";
const here = path.dirname(fileURLToPath(import.meta.url));
const webRoot = path.resolve(here, "../..");
const dataDir = path.join(webRoot, "manual", "data");
const features = JSON.parse(fs.readFileSync(path.join(dataDir, "manual-features.json"), "utf8"));
const captureDir = path.join(dataDir, "capture");
const verifiedCommands = {
ch01: ["Part_Box"],
ch02: ["Part_Box", "Part_Cylinder", "Part_Cut", "Part_CheckGeometry"],
ch03: ["Sketcher_NewSketch", "Sketcher_CreateRectangle"],
ch04: ["PartDesign_Body", "PartDesign_NewSketch", "PartDesign_Pad"],
ch05: ["Assembly_CreateAssembly", "Assembly_InsertLink"],
ch06: ["Spreadsheet_CreateSheet"],
};
const commandIndex = new Map(features.commands.map(item => [`${item.module}:${item.command}`, item]));
const sha256 = file => createHash("sha256").update(fs.readFileSync(file)).digest("hex");
const workflows = [];
const screenshots = [];
for (const name of fs.readdirSync(captureDir).filter(file => file.endsWith(".json")).sort()) {
const report = JSON.parse(fs.readFileSync(path.join(captureDir, name), "utf8"));
if (!report.ok) continue;
const workflowId = `${report.chapter}-${report.workflow}`;
const commands = (verifiedCommands[report.chapter] ?? []).filter(command =>
features.commands.some(item => item.command === command));
for (const shot of report.shots ?? []) {
screenshots.push({ id: shot.id, file: shot.file, chapterId: report.chapter,
workflowId, bytes: shot.bytes, sha256: shot.sha256, fullPage: shot.fullPage });
}
const screenshotId = report.shots?.[0]?.id ?? null;
for (const command of commands) {
const item = features.commands.find(entry => entry.command === command
&& entry.chapterId === report.chapter);
if (!item) continue;
item.status = "verified";
item.workflowId = workflowId;
item.screenshotId = screenshotId;
}
workflows.push({ id: workflowId, chapterId: report.chapter, title: report.workflow,
commands, screenshots: (report.shots ?? []).map(shot => shot.id), status: "verified" });
}
features.workflows = workflows;
features.screenshots = screenshots;
features.stats.workflows = workflows.length;
features.stats.screenshots = screenshots.length;
features.stats.verified = features.commands.filter(item => item.status === "verified").length;
const moduleGaps = [
{ id: "b-techdraw-worker", module: "TechDraw", title: "TechDraw 跨 Worker 文档桥",
detail: "页面 Worker 未持有目标文档,TechDraw_PageDefault 报 Document does not exist;SVG 回退不是 TechDraw 输出。",
desktopRefs: ["freecad-source/src/Mod/TechDraw/App/DrawPage.cpp", "freecad-source/src/Mod/TechDraw/App/DrawViewPart.cpp"],
status: "boundary", evidence: "web/tools/manual/evidence/ch11" },
{ id: "b-fem-native", module: "Fem", title: "FEM 原生结果对象",
detail: "FemMeshObject/FemResultObject 未随包发布,结果停留在 Worker;VTK 显示为 three.js 近似。",
desktopRefs: ["freecad-source/src/Mod/Fem/App/FemMeshObject.cpp", "web/docs/current/web-freecad-gaps-fem.md"],
status: "boundary", evidence: "web/tools/manual/evidence/ch12" },
{ id: "b-cam-opencamlib", module: "CAM", title: "CAM OpenCAMLib 路径",
detail: "Adaptive/Surface/Waterline 依赖 OpenCAMLib 与完整 ToolBit/G-code 栈,WASM 包未提供。",
desktopRefs: ["freecad-source/src/Mod/CAM/App/AppPath.cpp", "web/docs/current/cam-teaching-gap.md"],
status: "boundary", evidence: "web/tools/manual/evidence/ch10" },
{ id: "b-gltf-native", module: "Import", title: "glTF 原生导入/导出",
detail: "OCCT WASM 构建 USE_RAPIDJSON=OFF,RWGltf 无法读写;当前仅 three.js 查看。",
desktopRefs: ["freecad-source/src/Mod/Import/App/ReaderGltf.cpp", "freecad-source/src/Mod/Import/App/WriterGltf.cpp"],
status: "boundary", evidence: "web/manual/content/ch07-import-export.md" },
{ id: "b-cloud-remote", module: "Cloud", title: "Cloud 远程存储",
detail: "Save/Restore 需要远程 S3 凭据与服务;本地 OPFS 不受影响。",
desktopRefs: ["web/src/cloud.worker.ts"], status: "boundary", evidence: "web/manual/content/ch13-specialists.md" },
{ id: "b-material-sparse", module: "Material", title: "Material 原生库兼容",
detail: "Material 原生 API 对稀疏数组/单位处理不完整,部分命令为边界。",
desktopRefs: ["freecad-source/src/Mod/Material/App/MaterialManager.cpp"], status: "boundary",
evidence: "web/docs/current/freecad-official-case-ledger.json" },
{ id: "b-openscad-recompile", module: "OpenSCAD", title: "OpenSCAD 二次编译崩溃",
detail: "同一实例连续编译可能崩溃;逐次保存并重启实例。",
desktopRefs: ["freecad-source/src/Mod/OpenSCAD/App/OpenSCADUtils.cpp"], status: "boundary",
evidence: "web/manual/content/ch13-specialists.md" },
];
const gapLedger = {
schema: "freecad-web-manual/gaps/v1",
generatedAt: new Date().toISOString(),
verified: features.commands.filter(item => item.status === "verified").length,
fixNeeded: [],
boundaries: moduleGaps,
notes: [
"草图编辑器当前嵌在属性栏,面板窄且需滚动;属布局边界,可用 React 移到主舞台。",
"项目页 Part 文档切换 PartDesign 需要 ownership handoff;教程改用 partdesign.html。",
"Mesh/BIM/TechDraw/FEM 模块页显示 boundary/no-worker,教程按模块页实际任务与边界编写。",
],
};
fs.writeFileSync(path.join(dataDir, "manual-features.json"), `${JSON.stringify(features, null, 2)}\n`);
fs.writeFileSync(path.join(dataDir, "gap-ledger.json"), `${JSON.stringify(gapLedger, null, 2)}\n`);
const coverage = JSON.parse(fs.readFileSync(path.join(dataDir, "coverage-audit.json"), "utf8"));
coverage.verified = features.stats.verified;
coverage.workflows = features.stats.workflows;
coverage.screenshots = features.stats.screenshots;
coverage.byStatus = Object.fromEntries(["verified", "detailed", "overview", "boundary"].map(status =>
[status, features.commands.filter(item => item.status === status).length]));
coverage.ok = coverage.unknownModules.length === 0;
fs.writeFileSync(path.join(dataDir, "coverage-audit.json"), `${JSON.stringify(coverage, null, 2)}\n`);
const lines = [
"# Web FreeCAD 教案缺口台账", "",
`生成时间:${gapLedger.generatedAt}`, "",
`已验证命令:${gapLedger.verified};待修:${gapLedger.fixNeeded.length};边界:${gapLedger.boundaries.length}`, "",
"| 模块 | 边界 | 原因 | 桌面源码入口 |", "|---|---|---|---|",
...moduleGaps.map(gap => `| ${gap.module} | ${gap.title} | ${gap.detail} | ${gap.desktopRefs.join("<br>")} |`),
"", "## 布局/流程说明", "", ...gapLedger.notes.map(note => `- ${note}`),
];
const docDir = path.join(webRoot, "docs", "current");
fs.mkdirSync(docDir, { recursive: true });
fs.writeFileSync(path.join(docDir, "web-freecad-manual-gaps.md"), `${lines.join("\n")}\n`);
console.log(JSON.stringify({ ok: true, verified: features.stats.verified, workflows: workflows.length,
screenshots: screenshots.length, boundaries: moduleGaps.length }));

View File

@@ -48,6 +48,7 @@
.cmd { font-family:ui-monospace,monospace; font-size:12px; color:#9fd6de; }
.badge { display:inline-block; border-radius:4px; padding:0 6px; font-size:11px; border:1px solid var(--line); }
.badge.detailed { color:var(--ok); } .badge.overview { color:var(--accent); } .badge.boundary { color:var(--warn); }
.badge.verified { color:#0f1419; background:var(--ok); border-color:var(--ok); }
.index-controls { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.index-controls select, .index-controls input { background:#0b1014; color:var(--text); border:1px solid #3f3f3f; border-radius:4px; padding:5px 8px; }
#command-index td { font-size:12px; } #command-index tr.hidden { display:none; }