#!/bin/sh
':' //; D=$(cd "${0%/*}" 2>/dev/null && pwd || pwd); while [ ! -x "$D/node_modules/_runtime/bin/node" ]; do D=${D%/*}; [ -n "$D" ] || { echo "run 0000-entry-point.sh first" >&2; exit 1; }; done; exec "$D/node_modules/_runtime/bin/node" "$0" "$@"
/* code-conventions/conventions.mjs applies. */

/* Fixed-stage adapter: architecture details belong to ../report.mjs. */
import { spawnSync } from 'node:child_process';
import { basename, dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';

const gStrHere = dirname(fileURLToPath(import.meta.url));
const gObjResult = spawnSync(join(gStrHere, '..', 'report.mjs'),
    ['--stage', basename(gStrHere), ...process.argv.slice(2)], { stdio: 'inherit' });
process.exit(gObjResult.status ?? 1);
