// Import-parser architecture guard: adding the management client to the Console // would move its key/connection boundary out of the bus, and must fail this test. import test from 'node:test'; import assert from 'node:assert/strict'; import { build } from '../node_modules/esbuild/lib/main.js'; import { fileURLToPath } from 'node:url'; test('Console production module graph cannot import the model-proxy client', async () => { const result = await build({ entryPoints: [new URL('../src/cli.mjs', import.meta.url), new URL('../src/serve.mjs', import.meta.url), new URL('../src/console-bus.mjs', import.meta.url)].map(fileURLToPath), bundle: true, packages: 'external', platform: 'node', format: 'esm', splitting: true, outdir: '/unused-proxy-architecture', write: false, metafile: true, logLevel: 'silent' }); assert.equal(Object.keys(result.metafile.inputs).some(file => file.endsWith('/model-proxy/src/client.mjs')), false); });