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'; import { verifyRepositoryEvidence } from '../renderers/shared/repository-evidence.mjs'; 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 experimentSourcePath = path.join(repoRoot, 'experiments', 'mco-showcase', 'mco-runtime.architecture.json'); const experimentArtifactPath = path.join(repoRoot, 'experiments', 'mco-showcase', 'mco-runtime.html'); const cli = path.join(skillRoot, 'bin', 'archify.mjs'); const pinnedSource = JSON.parse(fs.readFileSync(sourcePath, 'utf8')); const pinnedRepository = pinnedSource.meta.repository; function evidencePayload(html) { const match = html.match(/