"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.register = register;
const zod_1 = require("zod");
function register(server, mgr) {
    server.registerTool('epics_get', {
        description: 'Get a single epic by ID. Returns title, status, priority, tags, progress (done/total), and cross-links.',
        inputSchema: {
            epicId: zod_1.z.string().min(1).max(500).describe('Epic ID'),
        },
    }, async ({ epicId }) => {
        const epic = mgr.getEpic(epicId);
        if (!epic)
            return { content: [{ type: 'text', text: 'Epic not found' }], isError: true };
        return { content: [{ type: 'text', text: JSON.stringify(epic, null, 2) }] };
    });
}
