"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.register = register;
const zod_1 = require("zod");
function register(server, mgr) {
    server.registerTool('epics_delete', {
        description: 'Delete an epic. Tasks linked to it are NOT deleted, only the epic and its links.',
        inputSchema: {
            epicId: zod_1.z.string().min(1).max(500).describe('Epic ID to delete'),
        },
    }, async ({ epicId }) => {
        const ok = mgr.deleteEpic(epicId);
        if (!ok)
            return { content: [{ type: 'text', text: 'Epic not found' }], isError: true };
        return { content: [{ type: 'text', text: JSON.stringify({ epicId, deleted: true }, null, 2) }] };
    });
}
