@cortexkit/aft 0.50.1 → 0.50.3
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 +5 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -567,11 +567,12 @@ function parseStatusBarCounts(value) {
|
|
|
567
567
|
unused_exports: num("unused_exports"),
|
|
568
568
|
duplicates: num("duplicates"),
|
|
569
569
|
todos: num("todos"),
|
|
570
|
-
tier2_stale: record.tier2_stale === true
|
|
570
|
+
tier2_stale: record.tier2_stale === true,
|
|
571
|
+
...typeof record.line === "string" ? { line: record.line } : {}
|
|
571
572
|
};
|
|
572
573
|
}
|
|
573
574
|
function countsEqual(a, b) {
|
|
574
|
-
return a.errors === b.errors && a.warnings === b.warnings && a.dead_code === b.dead_code && a.unused_exports === b.unused_exports && a.duplicates === b.duplicates && a.todos === b.todos && a.tier2_stale === b.tier2_stale;
|
|
575
|
+
return a.errors === b.errors && a.warnings === b.warnings && a.dead_code === b.dead_code && a.unused_exports === b.unused_exports && a.duplicates === b.duplicates && a.todos === b.todos && a.tier2_stale === b.tier2_stale && a.line === b.line;
|
|
575
576
|
}
|
|
576
577
|
function shouldEmitStatusBar(state, next) {
|
|
577
578
|
const changed = state.last === undefined || !countsEqual(state.last, next);
|
|
@@ -585,6 +586,8 @@ function shouldEmitStatusBar(state, next) {
|
|
|
585
586
|
return false;
|
|
586
587
|
}
|
|
587
588
|
function formatStatusBar(counts) {
|
|
589
|
+
if (counts.line !== undefined)
|
|
590
|
+
return counts.line;
|
|
588
591
|
const staleMark = counts.tier2_stale ? "~" : "";
|
|
589
592
|
return `[AFT E${counts.errors} W${counts.warnings} | ` + `${staleMark}D${counts.dead_code} U${counts.unused_exports} C${counts.duplicates} | ` + `T${counts.todos}]`;
|
|
590
593
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unified CLI for Agent File Tools (AFT) — setup, doctor, and diagnostics across supported agent harnesses (OpenCode, Pi)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@clack/prompts": "^1.6.0",
|
|
27
|
-
"@cortexkit/aft-bridge": "0.50.
|
|
27
|
+
"@cortexkit/aft-bridge": "0.50.3",
|
|
28
28
|
"comment-json": "^4.6.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|