"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toolHandler = exports.toolDefinition = void 0; exports.toolDefinition = { name: 'get_thread', description: 'Get detailed information about a specific thread, optionally including messages and file changes.', inputSchema: { type: 'object', properties: { threadId: { type: 'string', description: 'ID of the thread to retrieve' }, includeMessages: { type: 'boolean', description: 'Include message history (default: false)' }, includeFileChanges: { type: 'boolean', description: 'Include file change history (default: false)' }, messageLimit: { type: 'number', description: 'Limit number of messages returned if included (default: 50)' } }, required: ['threadId'] } }; const toolHandler = async (invocation, threadManager) => { const { threadId, includeMessages, includeFileChanges, messageLimit } = invocation.input; return await threadManager.getThread(threadId, includeMessages, includeFileChanges, messageLimit); }; exports.toolHandler = toolHandler;