pi-lens 2.0.40 → 2.0.41
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/index.ts +4 -3
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -452,8 +452,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
452
452
|
|
|
453
453
|
// All files table (sorted by MI ascending)
|
|
454
454
|
report += `## All Files\n\n`;
|
|
455
|
-
report += `| Grade | File | MI | Cognitive |
|
|
456
|
-
report +=
|
|
455
|
+
report += `| Grade | File | MI | Cognitive | LOC | Entropy | Trend |\n`;
|
|
456
|
+
report += `|-------|------|-----|-----------|-----|---------|-------|\n`;
|
|
457
457
|
|
|
458
458
|
const sorted = [...results].sort(
|
|
459
459
|
(a, b) => a.maintainabilityIndex - b.maintainabilityIndex,
|
|
@@ -470,8 +470,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
470
470
|
// Make path relative for readability
|
|
471
471
|
const relPath = path.relative(targetPath, f.filePath);
|
|
472
472
|
const trendCell = formatTrendCell(f.filePath, history);
|
|
473
|
+
const entropyCell = f.codeEntropy > 0 ? f.codeEntropy.toFixed(2) : "—";
|
|
473
474
|
|
|
474
|
-
report += `| ${grade} | ${relPath} | ${mi.toFixed(1)} | ${f.cognitiveComplexity} | ${f.
|
|
475
|
+
report += `| ${grade} | ${relPath} | ${mi.toFixed(1)} | ${f.cognitiveComplexity} | ${f.linesOfCode} | ${entropyCell} | ${trendCell} |\n`;
|
|
475
476
|
}
|
|
476
477
|
report += `\n`;
|
|
477
478
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-lens",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.41",
|
|
4
4
|
"description": "Real-time code quality feedback for pi — TypeScript LSP, Biome, ast-grep, Ruff, complexity metrics, duplicate detection. Includes automated fix loop (/lens-booboo-fix) and interactive architectural refactoring (/lens-booboo-refactor) with browser-based interviews.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|