// Structural contract: shared/mod.ts must never import @singularity-forge/pi-tui.
// TUI-dependent exports live in shared/tui.ts instead.

import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { test } from 'vitest';
import { fileURLToPath } from "node:url";

const __dirname = dirname(fileURLToPath(import.meta.url));

test('shared/mod.ts has no import from "@singularity-forge/pi-tui"', () => {
	const src = readFileSync(join(__dirname, "../../shared/mod.ts"), "utf-8");
	assert.ok(
		!src.includes("@singularity-forge/pi-tui"),
		'mod.ts must not import "@singularity-forge/pi-tui"',
	);
});
