UNPKG

refakts

Version:

TypeScript refactoring tool built for AI coding agents to perform precise refactoring operations via command line instead of requiring complete code regeneration.

22 lines 793 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BoundarySelectionStrategy = void 0; const boundary_analyzer_1 = require("../services/boundary-analyzer"); class BoundarySelectionStrategy { constructor() { this.boundaryAnalyzer = new boundary_analyzer_1.BoundaryAnalyzer(); } canHandle(options) { return !!options.boundaries; } async select(sourceFile, options) { return this.boundaryAnalyzer.findBoundaryMatches(sourceFile, options); } validateOptions(options) { if (!options.regex) { throw new Error('--regex must be specified with --boundaries'); } } } exports.BoundarySelectionStrategy = BoundarySelectionStrategy; //# sourceMappingURL=boundary-selection-strategy.js.map