@aiready/pattern-detect 0.17.4 → 0.17.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -5
- package/dist/index.mjs +2 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -848,12 +848,9 @@ var PatternDetectProvider = {
|
|
|
848
848
|
},
|
|
849
849
|
score(output, options) {
|
|
850
850
|
const duplicates = output.summary.duplicates || [];
|
|
851
|
+
const scoreData = duplicates;
|
|
851
852
|
const totalFiles = output.summary.totalFiles || output.results.length;
|
|
852
|
-
return calculatePatternScore(
|
|
853
|
-
duplicates,
|
|
854
|
-
totalFiles,
|
|
855
|
-
options.costConfig
|
|
856
|
-
);
|
|
853
|
+
return calculatePatternScore(scoreData, totalFiles, options.costConfig);
|
|
857
854
|
},
|
|
858
855
|
defaultWeight: 22
|
|
859
856
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -61,12 +61,9 @@ var PatternDetectProvider = {
|
|
|
61
61
|
},
|
|
62
62
|
score(output, options) {
|
|
63
63
|
const duplicates = output.summary.duplicates || [];
|
|
64
|
+
const scoreData = duplicates;
|
|
64
65
|
const totalFiles = output.summary.totalFiles || output.results.length;
|
|
65
|
-
return calculatePatternScore(
|
|
66
|
-
duplicates,
|
|
67
|
-
totalFiles,
|
|
68
|
-
options.costConfig
|
|
69
|
-
);
|
|
66
|
+
return calculatePatternScore(scoreData, totalFiles, options.costConfig);
|
|
70
67
|
},
|
|
71
68
|
defaultWeight: 22
|
|
72
69
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/pattern-detect",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.6",
|
|
4
4
|
"description": "Semantic duplicate pattern detection for AI-generated code - finds similar implementations that waste AI context tokens",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"commander": "^14.0.0",
|
|
67
67
|
"chalk": "^5.3.0",
|
|
68
|
-
"@aiready/core": "0.24.
|
|
68
|
+
"@aiready/core": "0.24.6"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"tsup": "^8.3.5",
|