/** * spec_kit.update_ticket tool * * Updates an existing ticket in the configured backlog provider. * Supports partial updates (only specified fields), add/remove label operations, * state changes, and graceful error handling for not-found cases. * * @example * ```typescript * import { createUpdateTicketTool } from './update-ticket.js'; * * const tool = createUpdateTicketTool(config, (name) => registry.getProvider(name)); * * // Execute via MCP * const result = await tool.execute({ ref: '#123', title: 'New title' }); * ``` */ import type { AgencyTool } from '@generacy-ai/agency'; import type { BacklogProvider } from '../providers/types.js'; import type { SpecKitConfig } from '../config.js'; /** * Create the spec_kit.update_ticket tool. * * This tool updates an existing ticket in the configured backlog system. * It auto-detects the provider from the reference format when possible, * falling back to the configured default provider. * * @param config - SpecKit plugin configuration * @param getProvider - Factory function to get the appropriate provider * @returns AgencyTool instance * * @example * ```typescript * const registry = new ProviderRegistry(config); * const tool = createUpdateTicketTool(config, (name) => registry.getProvider(name)); * * // Update a ticket title * const result = await tool.execute({ ref: '#123', title: 'New title' }); * * // Add and remove labels * const result = await tool.execute({ * ref: '#123', * add_labels: ['priority:high'], * remove_labels: ['needs-triage'], * }); * ``` */ export declare function createUpdateTicketTool(config: SpecKitConfig, getProvider: (name?: string) => BacklogProvider): AgencyTool; //# sourceMappingURL=update-ticket.d.ts.map