import { z } from 'zod';
import { handleValidateWorkflow } from './validate-workflow.js';
import { safeLicensed } from './safe-handler.js';
export function registerWorkflowTools(server) {
    server.registerTool('validate_workflow', {
        description: 'Validate developer workflow conventions: suggest the right AI model for a task, detect Git Flow violations, audit MCP tool code conventions, verify worktree base, or run a full workflow audit. Supports suggest-model | check-git-flow | check-mcp-conventions | check-worktree | full-audit.',
        inputSchema: {
            action: z
                .enum([
                'suggest-model',
                'check-git-flow',
                'check-mcp-conventions',
                'check-worktree',
                'full-audit',
            ])
                .describe('Action: suggest-model (AI model recommendation) | check-git-flow (branch discipline) | check-mcp-conventions (Zod/hints audit) | check-worktree (branch base check) | full-audit (all checks)'),
            projectPath: z
                .string()
                .optional()
                .describe('Absolute path to the project root (defaults to cwd)'),
            taskDescription: z
                .string()
                .optional()
                .describe('suggest-model: natural-language description of the task to score (e.g. "implement the login handler")'),
            toolsDir: z
                .string()
                .optional()
                .describe('check-mcp-conventions | full-audit: directory containing MCP tool *.ts files (defaults to projectPath/src/tools)'),
            worktreePath: z
                .string()
                .optional()
                .describe('check-worktree: absolute path of the worktree to validate (defaults to projectPath)'),
        },
        annotations: { readOnlyHint: true },
    }, safeLicensed('validate_workflow', async (args) => handleValidateWorkflow(args)));
}
//# sourceMappingURL=register-workflow-tools.js.map