// tools/register-ai-cost-tools.ts — Registers the estimate_ai_cost MCP tool.
import { z } from 'zod';
import { handleEstimateAiCost } from './estimate-ai-cost.js';
import { safeLicensed } from './safe-handler.js';
export function registerAiCostTools(server) {
    // estimate_ai_cost — SPEC-069
    server.registerTool('estimate_ai_cost', {
        description: 'Estimate how many tokens and dollars it will cost to implement a spec with different AI models ' +
            '(Claude Opus, Sonnet, Haiku, GPT-4o, GPT-4.1, Gemini 2.5 Pro). ' +
            'Returns a cost breakdown table and a model recommendation based on spec complexity.',
        inputSchema: {
            specId: z
                .string()
                .describe('Spec ID to estimate costs for (e.g., "SPEC-069"). ' +
                'Must match a spec directory in planu/specs/ or docs/sdd/specs/.'),
            projectPath: z
                .string()
                .optional()
                .describe('Optional absolute path to the project directory. ' +
                'When provided, the estimator scans the codebase to include context tokens in the estimate.'),
        },
        annotations: { title: 'Estimate AI Cost', readOnlyHint: true },
    }, safeLicensed('estimate_ai_cost', async (args) => handleEstimateAiCost(args)));
}
//# sourceMappingURL=register-ai-cost-tools.js.map