import * as path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export function buildPortContext(base) {
    const root = base || __dirname;
    const srcRoot = path.join(root, 'src');
    const testsRoot = path.join(root, 'tests');
    const assetsRoot = path.join(root, 'assets');
    const archiveRoot = path.join(root, 'archive');
    return {
        sourceRoot: srcRoot,
        testsRoot: testsRoot,
        assetsRoot: assetsRoot,
        archiveRoot: archiveRoot,
        pythonFileCount: 0,
        testFileCount: 0,
        assetFileCount: 0,
        archiveAvailable: false,
    };
}
export function renderContext(context) {
    return [
        `Source root: ${context.sourceRoot}`,
        `Test root: ${context.testsRoot}`,
        `Assets root: ${context.assetsRoot}`,
        `Archive root: ${context.archiveRoot}`,
        `Archive available: ${context.archiveAvailable}`,
    ].join('\n');
}
