// tools/register-readiness-tools.ts — Registers implementation gate tools (SPEC-039)
import { z } from 'zod';
import { t } from '../i18n/index.js';
import { handleCheckReadiness } from './check-readiness.js';
import { handlePackageHandoff } from './package-handoff.js';
import { safeLicensed } from './safe-handler.js';
import { CheckReadinessOutputSchema } from './schemas/index.js';
export function registerReadinessTools(server) {
    // check_readiness — SPEC-039
    server.registerTool('check_readiness', {
        description: t('tools.check_readiness.description'),
        inputSchema: {
            projectId: z.string().max(500).describe('Project ID'),
            specId: z.string().max(500).describe('Spec ID to evaluate'),
            mode: z
                .enum(['strict', 'lenient'])
                .optional()
                .describe('Evaluation mode: strict (default) requires score >=70; lenient requires >=60'),
        },
        outputSchema: CheckReadinessOutputSchema,
    }, safeLicensed('check_readiness', async (args) => handleCheckReadiness(args)));
    // package_handoff — SPEC-039
    server.registerTool('package_handoff', {
        description: t('tools.package_handoff.description'),
        inputSchema: {
            projectId: z.string().max(500).describe('Project ID'),
            specId: z.string().max(500).describe('Spec ID to generate handoff package for'),
        },
    }, safeLicensed('package_handoff', async (args) => handlePackageHandoff(args)));
}
//# sourceMappingURL=register-readiness-tools.js.map