Files
FreeCADWasmDev/tools/mark_points_module_completed.mjs
wangdequan 9a7c4f0335 Save FreeCAD Web workspace sources and user validation evidence
IFC native binding remains incomplete; preserve accurate test results.
2026-09-15 22:01:58 +08:00

3 lines
687 B
JavaScript

#!/usr/bin/env node
import fs from "node:fs";import path from "node:path";import{fileURLToPath}from"node:url";const root=path.resolve(path.dirname(fileURLToPath(import.meta.url)),"..");const gate=JSON.parse(fs.readFileSync(path.join(root,"docs/p6/points-module-gate.json"),"utf8"));if(gate.task_id!=="FW-P6-PTS-Y"||gate.status!=="pass"||gate.module_status_after_gate!=="completed")throw Error("Points gate not eligible");const p=path.join(root,"docs/current/task-state.json");const s=JSON.parse(fs.readFileSync(p,"utf8"));s.module_status.Points="completed";fs.writeFileSync(p,`${JSON.stringify(s,null,2)}\n`);console.log(JSON.stringify({module:"Points",status:s.module_status.Points}));