import fs from 'node:fs' import path from 'node:path' import { fileURLToPath } from 'node:url' import { validateAssetBuildManifest } from './asset-build-manifest.mjs' import { resolvePythonExecutable, runPythonCommand } from './python-runtime.mjs' const scriptDirectory = path.dirname(fileURLToPath(import.meta.url)) const pipelineDirectory = path.resolve(scriptDirectory, '..') const workspace = path.resolve(pipelineDirectory, '..') const manifestPath = path.join(pipelineDirectory, 'manifests', 'shared-scroll-skins-v3.json') const reportPath = path.join(pipelineDirectory, 'generated', 'shared-scroll-skins-v3', 'quality-report.json') const python = resolvePythonExecutable({ pipelineDirectory }) const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8')) validateAssetBuildManifest(manifest, workspace) runPythonCommand({ executable: python, args: [path.join(scriptDirectory, 'verify-assets.py'), manifestPath, '--workspace', workspace, '--report', reportPath], cwd: workspace, })