sicua
Version:
A tool for analyzing project structure and dependencies
51 lines (50 loc) • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.COMMON_UI_PATTERNS = exports.DEFAULT_SIMILARITY_THRESHOLDS = exports.ComponentType = void 0;
/**
* Component type categorization
*/
var ComponentType;
(function (ComponentType) {
ComponentType["Page"] = "page";
ComponentType["Component"] = "component";
ComponentType["Layout"] = "layout";
ComponentType["Feature"] = "feature";
ComponentType["Other"] = "other";
})(ComponentType || (exports.ComponentType = ComponentType = {}));
/**
* Balanced similarity thresholds - not too strict, not too lenient
*/
exports.DEFAULT_SIMILARITY_THRESHOLDS = {
nameDistanceThreshold: 0.7,
minSimilarityScore: 0.8, // Raised from 0.7 to 0.8
minStructureComplexity: 3, // Raised from 2 to 3
minComplexityRatio: 0.7, // Raised from 0.6 to 0.7
};
/**
* Common UI patterns that should be weighted less in similarity calculation
*/
exports.COMMON_UI_PATTERNS = [
"Alert",
"AlertTitle",
"AlertDescription",
"AlertCircle",
"Card",
"CardHeader",
"CardTitle",
"CardContent",
"Button",
"Input",
"Label",
"div",
"span",
"p",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"Separator",
"Badge",
];