import { test } from 'node:test'; import assert from 'node:assert/strict'; import { execFileSync, spawnSync } from 'node:child_process'; import fs from 'node:fs'; import os from 'node:os'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const skillRoot = path.resolve(__dirname, '..'); const repoRoot = path.resolve(skillRoot, '..'); const sourcePath = path.join(repoRoot, 'docs', 'cases', 'mco-runtime.architecture.json'); const artifactPath = path.join(repoRoot, 'docs', 'cases', 'mco-runtime.architecture.html'); const shareCardPath = path.join(repoRoot, 'docs', 'assets', 'mco-runtime-share-card.png'); const cli = path.join(skillRoot, 'bin', 'archify.mjs'); function evidencePayload(html) { const match = html.match(/