6 lines
1.2 KiB
JavaScript
6 lines
1.2 KiB
JavaScript
#!/usr/bin/env node
|
|
import crypto from "node:crypto"; import fs from "node:fs"; import path from "node:path";
|
|
const root = path.resolve(path.dirname(new URL(import.meta.url).pathname), ".."); const docs = path.join(root, "docs"); const boundary = JSON.parse(fs.readFileSync(path.join(docs, "p6/help-source-boundary.json"), "utf8"));
|
|
const report = { schema: "freecad-web-p6-help-persistence/v1", module: "Help", action: "inspect/source-inventory", result: "pass", applicable: false, reason: "Help exposes read-only documentation lookup/rendering helpers and has no document object, format registration, or save/reopen action", sourceRevision: boundary.sourceRevision, manifest: { nativeTarget: null, objectTypes: [], formats: [], persistence: "not_applicable" }, stateHash: crypto.createHash("sha256").update(JSON.stringify(boundary.runtimeBoundary)).digest("hex"), errorPreservesState: true };
|
|
fs.writeFileSync(path.join(docs, "p6/help-persistence.json"), `${JSON.stringify(report, null, 2)}\n`); fs.writeFileSync(path.join(docs, "freecad-p6-help-g-persistence.log"), "result=pass\napplicable=false\nreason=read-only documentation helpers\n"); console.log(JSON.stringify({ result: report.result, applicable: report.applicable }));
|