@kaynooo/cli-code 0.12.0 → 0.13.0
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/cli.js +2 -2
- package/dist/hotspots-cli.js +2 -2
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1418,7 +1418,7 @@ var {Glob } = globalThis.Bun;
|
|
|
1418
1418
|
var SESSION_FILES = new Glob("*.json");
|
|
1419
1419
|
var ACCOUNT_DIRS = new Glob("*/sessions");
|
|
1420
1420
|
// src/hotspots.ts
|
|
1421
|
-
import { join as join7 } from "path";
|
|
1421
|
+
import { basename, join as join7 } from "path";
|
|
1422
1422
|
import process14 from "process";
|
|
1423
1423
|
|
|
1424
1424
|
// src/churn.ts
|
|
@@ -1615,7 +1615,7 @@ async function hotspots(args) {
|
|
|
1615
1615
|
return colors.red(text);
|
|
1616
1616
|
return top > 0 && score >= top * WARM ? colors.yellow(text) : text;
|
|
1617
1617
|
};
|
|
1618
|
-
printHeader("hotspots");
|
|
1618
|
+
printHeader("hotspots", `${basename(cwd)} \xB7 since ${values.since ?? DEFAULT_SINCE}`);
|
|
1619
1619
|
console.log(table([["rank", "score", "churn", "recent", "complexity", "lines", "file", "most complex declaration"], ...shown.map((row) => [colors.dim(String(row.rank)), heat(row.score, String(row.score)), ...[row.churn, row.recent, row.complexity, row.lines].map(String), fileLink(path(row.path), row.path, process14.stdout, cwd), row.worst === undefined ? "" : `${row.worst.name} (${row.worst.complexity}, line ${row.worst.line})`])], { header: true, align: ["right", "right", "right", "right", "right", "right", "left", "left"] }));
|
|
1620
1620
|
if (footer !== undefined)
|
|
1621
1621
|
console.log(footer);
|
package/dist/hotspots-cli.js
CHANGED
|
@@ -1418,7 +1418,7 @@ var {Glob } = globalThis.Bun;
|
|
|
1418
1418
|
var SESSION_FILES = new Glob("*.json");
|
|
1419
1419
|
var ACCOUNT_DIRS = new Glob("*/sessions");
|
|
1420
1420
|
// src/hotspots.ts
|
|
1421
|
-
import { join as join7 } from "path";
|
|
1421
|
+
import { basename, join as join7 } from "path";
|
|
1422
1422
|
import process14 from "process";
|
|
1423
1423
|
|
|
1424
1424
|
// src/churn.ts
|
|
@@ -1615,7 +1615,7 @@ async function hotspots(args) {
|
|
|
1615
1615
|
return colors.red(text);
|
|
1616
1616
|
return top > 0 && score >= top * WARM ? colors.yellow(text) : text;
|
|
1617
1617
|
};
|
|
1618
|
-
printHeader("hotspots");
|
|
1618
|
+
printHeader("hotspots", `${basename(cwd)} \xB7 since ${values.since ?? DEFAULT_SINCE}`);
|
|
1619
1619
|
console.log(table([["rank", "score", "churn", "recent", "complexity", "lines", "file", "most complex declaration"], ...shown.map((row) => [colors.dim(String(row.rank)), heat(row.score, String(row.score)), ...[row.churn, row.recent, row.complexity, row.lines].map(String), fileLink(path(row.path), row.path, process14.stdout, cwd), row.worst === undefined ? "" : `${row.worst.name} (${row.worst.complexity}, line ${row.worst.line})`])], { header: true, align: ["right", "right", "right", "right", "right", "right", "left", "left"] }));
|
|
1620
1620
|
if (footer !== undefined)
|
|
1621
1621
|
console.log(footer);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaynooo/cli-code",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"description": "peek, todo-scan and hotspots: source read by spans, symbols and outlines in one call, the TODO and issue-reference comments of a repository with stale ones flagged, and the files ranked by complexity times git churn.",
|
|
6
6
|
"author": "Kaynooo <contact@kaynooo.fr>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"hotspots": "$npm_execpath src/hotspots-cli.ts"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@kaynooo/cli-kit": "0.
|
|
46
|
+
"@kaynooo/cli-kit": "0.29.0"
|
|
47
47
|
}
|
|
48
48
|
}
|