roast-my-codebase 1.3.3 → 1.3.5
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 +16 -14
- package/package.json +9 -1
package/dist/index.js
CHANGED
|
@@ -9079,11 +9079,22 @@ function renderReport(report, options) {
|
|
|
9079
9079
|
sections.push("");
|
|
9080
9080
|
sections.push(` ${chalk4.italic(report.verdict)}`);
|
|
9081
9081
|
sections.push("");
|
|
9082
|
-
|
|
9083
|
-
|
|
9082
|
+
const tweetText = encodeURIComponent(
|
|
9083
|
+
`My codebase just got roasted \u{1F525}
|
|
9084
|
+
|
|
9085
|
+
Health Score: ${report.health.score}/100 ${report.health.grade} \u2014 ${report.health.label}
|
|
9086
|
+
|
|
9087
|
+
"${report.verdict}"
|
|
9088
|
+
|
|
9089
|
+
roast yours \u{1F447}`
|
|
9084
9090
|
);
|
|
9091
|
+
const tweetUrl = `https://x.com/intent/tweet?text=${tweetText}&url=https://github.com/rahuldk1105/roast-my-codebase`;
|
|
9092
|
+
sections.push(chalk4.dim(" " + "\u2500".repeat(40)));
|
|
9093
|
+
sections.push("");
|
|
9094
|
+
sections.push(` ${chalk4.bold("Share your roast")} ${chalk4.dim("\u2192")} ${chalk4.cyan(tweetUrl)}`);
|
|
9095
|
+
sections.push("");
|
|
9085
9096
|
sections.push(
|
|
9086
|
-
chalk4.dim(" roast-my-codebase \xB7 github.com/
|
|
9097
|
+
chalk4.dim(" roast-my-codebase \xB7 github.com/rahuldk1105/roast-my-codebase")
|
|
9087
9098
|
);
|
|
9088
9099
|
sections.push("");
|
|
9089
9100
|
return sections.join("\n");
|
|
@@ -11179,7 +11190,6 @@ function isValidPlugin(plugin) {
|
|
|
11179
11190
|
|
|
11180
11191
|
// src/serve/index.ts
|
|
11181
11192
|
import http from "http";
|
|
11182
|
-
import { execFile } from "child_process";
|
|
11183
11193
|
import chokidar2 from "chokidar";
|
|
11184
11194
|
var COLORS = {
|
|
11185
11195
|
bg: "#0d1117",
|
|
@@ -12018,16 +12028,8 @@ function startDashboard(report, port = 7777, options) {
|
|
|
12018
12028
|
\u2713 Dashboard running at http://localhost:${actualPort}`);
|
|
12019
12029
|
console.log(" Press Ctrl+C to stop\n");
|
|
12020
12030
|
const url = `http://localhost:${actualPort}`;
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
});
|
|
12024
|
-
} else if (process.platform === "darwin") {
|
|
12025
|
-
execFile("open", [url], () => {
|
|
12026
|
-
});
|
|
12027
|
-
} else {
|
|
12028
|
-
execFile("xdg-open", [url], () => {
|
|
12029
|
-
});
|
|
12030
|
-
}
|
|
12031
|
+
import("open").then((mod) => mod.default(url)).catch(() => {
|
|
12032
|
+
});
|
|
12031
12033
|
if (options?.watch && options?.rootDir && options?.rescan) {
|
|
12032
12034
|
const watcher = chokidar2.watch(
|
|
12033
12035
|
["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "**/*.py", "**/*.go", "**/*.rs", "**/*.java", "**/*.cs", "**/*.rb", "**/*.php", "**/*.swift", "**/*.kt"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "roast-my-codebase",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Get roasted. Get better. Ship faster. A CLI that analyzes your codebase and delivers brutally honest (but funny) feedback.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,6 +41,13 @@
|
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=20"
|
|
43
43
|
},
|
|
44
|
+
"socket": {
|
|
45
|
+
"allow": [
|
|
46
|
+
"network",
|
|
47
|
+
"shell"
|
|
48
|
+
],
|
|
49
|
+
"comment": "Network: user-triggered webhook notifications (--notify) and GitHub PR comments (--pr-comment). Shell: spawns git/npm as subprocess with argument arrays (no shell interpolation) for git-insights, dep-health, and incremental diff scanning."
|
|
50
|
+
},
|
|
44
51
|
"dependencies": {
|
|
45
52
|
"@anthropic-ai/sdk": "^0.106.0",
|
|
46
53
|
"@inquirer/prompts": "^8.5.2",
|
|
@@ -50,6 +57,7 @@
|
|
|
50
57
|
"chokidar": "^5.0.0",
|
|
51
58
|
"commander": "^15.0.0",
|
|
52
59
|
"fast-glob": "^3.3.3",
|
|
60
|
+
"open": "^11.0.0",
|
|
53
61
|
"ora": "^9.4.1",
|
|
54
62
|
"picomatch": "^4.0.4"
|
|
55
63
|
},
|