import { createSearchTools } from '../tools/searchTools.js';
/**
 * Unified Search Capability Module
 *
 * Provides the Search tool which combines:
 * - File pattern matching (glob)
 * - Content search (regex/grep)
 * - Definition finding (functions, classes, interfaces)
 */
export class SearchCapabilityModule {
    id = 'capability.search';
    options;
    constructor(options = {}) {
        this.options = options;
    }
    async create(context) {
        const workingDir = this.options.workingDir ?? context.workingDir;
        return {
            id: 'search.unified',
            description: 'Unified search for files and content',
            toolSuite: {
                id: 'search',
                tools: createSearchTools(workingDir),
            },
            metadata: { workingDir },
        };
    }
}
//# sourceMappingURL=searchCapability.js.map