Web FreeCAD does not implement OpenSCAD. Drop the module end to end instead of keeping a blocked or placeholder shell: - delete the parity-matrix row and regenerate the module registry (31 modules, OpenSCAD absent) - remove the OpenSCAD-only frontend modules (worker, facades, slice, mesh backend, desktop/preferences tasks) and strip the OpenSCAD branches from the dispatchers, shells, storage and router - neutralise the two shared owners that outlived the module: openscad-desktop-view -> scene-viewport (SceneViewport) and openscad-desktop-adapter -> scene-document (SceneDocument), so Part, Mesh and the other consumers keep working - drop the FreeCADWebOpenSCADRuntimeProbe target and FREECAD_WEB_ENABLE_OPENSCAD option from the kernel CMake; BUILD_OPENSCAD stays in the forced-off list - delete web/openscad.html, its Vite input, the kernel artifacts and the 17 OpenSCAD tool entry points AGENTS.md records the removal rule. tsc --noEmit is clean and grep -ri openscad web/src is empty. Also carry the Boost pthread guard: under Emscripten a plain -lpthread implies -sUSE_PTHREADS=1 and therewith --shared-memory, which the non-atomics VTK archives cannot link against. Validation NOT_RUN / PARTIAL_FAILED, Acceptance NOT_CLAIMED. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
2.5 KiB
Python
35 lines
2.5 KiB
Python
#!/usr/bin/env python3
|
|
"""Generate grouped implementation metadata for Tier-1 readonly APIs."""
|
|
from __future__ import annotations
|
|
|
|
import hashlib
|
|
import json
|
|
from collections import Counter, defaultdict
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
source_path = ROOT / "docs/p6/python-api-manifest.json"
|
|
rows = json.loads(source_path.read_text(encoding="utf-8"))["records"]
|
|
selected = [row for row in rows if row["tier"] == "tier-1-readonly"]
|
|
routes = {
|
|
"Measure": ("measure.worker.ts", "measure.pythonApi", "src/Mod/Measure/App/AppMeasure.cpp"),
|
|
"Mesh": ("mesh.worker.ts", "mesh.pythonApi", "src/Mod/Mesh/App/AppMesh.cpp"),
|
|
"Sketcher": ("sketcher-python.worker.ts", "sketcher.pythonApi", "src/Mod/Sketcher/App/AppSketcher.cpp"),
|
|
"Robot": ("robot-python.worker.ts", "robot.pythonApi", "src/Mod/Robot/App/AppRobot.cpp"),
|
|
"Points": ("points.worker.ts", "points.pythonApi", "src/Mod/Points/App/AppPointsPy.cpp"),
|
|
"Cloud": ("cloud.worker.ts", "cloud.pythonFamilyBatch", "src/WebAssembly/FreeCADCoreProbe/CloudKernelProbe.cpp:644"),
|
|
"Draft": ("draft.worker.ts", "draft.pythonFamilyBatch", "src/WebAssembly/FreeCADCoreProbe/DraftRuntimeProbe.cpp:285"),
|
|
}
|
|
groups: dict[str, dict[str, object]] = defaultdict(lambda: {"apiIds": [], "families": Counter()})
|
|
for row in selected:
|
|
groups[row["module"]]["apiIds"].append(row["id"])
|
|
groups[row["module"]]["families"][row["family"]] += 1
|
|
modules = []
|
|
for module, group in sorted(groups.items()):
|
|
route = routes.get(module, (None, None, None))
|
|
modules.append({"module": module, "count": len(group["apiIds"]), "families": dict(sorted(group["families"].items())), "route": {"worker": route[0], "command": route[1], "nativeSource": route[2]}, "apiIds": sorted(group["apiIds"])})
|
|
output = {"schema": "freecad-web-tier1-readonly-adapter-manifest/v1", "taskId": "FW-P6-FPA-IMPL-TIER1-READONLY", "source": {"manifest": "docs/p6/python-api-manifest.json", "manifestSha256": hashlib.sha256(source_path.read_bytes()).hexdigest()}, "tier": "tier-1-readonly", "count": len(selected), "modules": modules, "boundaries": ["grouped readonly route readiness is not method-level return evidence", "original disposition is preserved until F1 coverage"]}
|
|
out = ROOT / "docs/p6/tier1-readonly-adapter-manifest.json"
|
|
out.write_text(json.dumps(output, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
|
|
print(json.dumps({"output": str(out.relative_to(ROOT)), "count": len(selected), "modules": len(modules), "sha256": hashlib.sha256(out.read_bytes()).hexdigest()}, ensure_ascii=False))
|