import { DEFAULT_MODEL, MODELS } from '../../domain/search/index.js';
export const command = {
    name: 'models',
    description: 'List available embedding models',
    execute(_args, _opts, ctx) {
        const embeddingsConfig = ctx.config.embeddings;
        const defaultModel = embeddingsConfig?.model || DEFAULT_MODEL;
        console.log('\nAvailable embedding models:\n');
        for (const [key, cfg] of Object.entries(MODELS)) {
            const def = key === defaultModel ? ' (default)' : '';
            const modelCfg = cfg;
            const ctxWindow = modelCfg.contextWindow ? `${modelCfg.contextWindow} ctx` : '';
            console.log(`  ${key.padEnd(12)} ${String(modelCfg.dim).padStart(4)}d  ${ctxWindow.padEnd(9)} ${modelCfg.desc}${def}`);
        }
        console.log('\nUsage: codegraph embed --model <name> --strategy <structured|source>');
        console.log('       codegraph search "query" --model <name>\n');
    },
};
//# sourceMappingURL=models.js.map