/**
 * @deprecated — Use cli/src/mcp/detect.ts instead. This file re-exports for backwards compatibility.
 */
export { resolvePlatformBinary } from '../mcp/detect.js';
import { detectExtension } from '../mcp/detect.js';
import path from 'path';
const EXTENSION_PREFIX = 'highagency.pencildev-';
/** @deprecated Use detectExtension from cli/src/mcp/detect.ts */
export function detectPencilExtension(extensionsDir) {
    return detectExtension(EXTENSION_PREFIX, extensionsDir);
}
/** @deprecated Use writeMcpConfig from cli/src/mcp/setup.ts */
export function buildMcpConfig(info, binaryName) {
    return {
        mcpServers: {
            pencil: {
                command: path.join(info.extensionPath, 'out', binaryName),
                args: ['--app', 'visual_studio_code'],
                env: {},
            },
        },
    };
}
