// tools/register-security-tools.ts — Registers security analysis tools (SPEC-029)
// Keeps register-spec-tools.ts and register-platform-tools.ts under 400-line limit.
import { z } from 'zod';
import { t } from '../i18n/index.js';
import { handleSecurityCheck } from './security-check.js';
import { safeLicensed } from './safe-handler.js';
export function registerSecurityTools(server) {
    // security_check — SPEC-029
    server.registerTool('security_check', {
        description: t('tools.security_check.description'),
        inputSchema: {
            specId: z.string().describe('Spec ID to analyze'),
            projectId: z.string().describe('Project ID'),
            subcommand: z
                .enum(['analyze', 'score', 'drift'])
                .optional()
                .describe('analyze: OWASP gap list; score: security grade 0-100; drift: detect removed security criteria (default: analyze)'),
            codeFiles: z
                .array(z.string())
                .optional()
                .describe('Absolute paths to code files to scan for insecure patterns'),
        },
    }, safeLicensed('security_check', async (args) => handleSecurityCheck(args)));
}
//# sourceMappingURL=register-security-tools.js.map