@commitguard/cli 0.0.16 → 0.0.17
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.d.mts +0 -0
- package/dist/index.mjs +7 -2
- package/package.json +11 -12
package/dist/index.d.mts
CHANGED
|
File without changes
|
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import stringWidth from "string-width";
|
|
|
17
17
|
import "dotenv/config";
|
|
18
18
|
|
|
19
19
|
//#region package.json
|
|
20
|
-
var version = "0.0.
|
|
20
|
+
var version = "0.0.17";
|
|
21
21
|
var package_default = {
|
|
22
22
|
name: "@commitguard/cli",
|
|
23
23
|
type: "module",
|
|
@@ -943,7 +943,12 @@ async function onStaged() {
|
|
|
943
943
|
analysis: response
|
|
944
944
|
});
|
|
945
945
|
} catch (error) {
|
|
946
|
-
|
|
946
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
947
|
+
if (process.stdout.isTTY) consola.box({
|
|
948
|
+
title: "Analysis Failed",
|
|
949
|
+
message
|
|
950
|
+
});
|
|
951
|
+
else consola.log(message);
|
|
947
952
|
}
|
|
948
953
|
}
|
|
949
954
|
function getCachedAnalysis(diff, diffHash) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitguard/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.17",
|
|
5
5
|
"description": "AI-powered git commit checker that blocks bad code before it ships",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -21,16 +21,6 @@
|
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "tsdown",
|
|
26
|
-
"dev": "tsdown --watch",
|
|
27
|
-
"test": "vitest",
|
|
28
|
-
"typecheck": "tsc --noEmit",
|
|
29
|
-
"prepublishOnly": "pnpm run build",
|
|
30
|
-
"lint": "eslint .",
|
|
31
|
-
"lint:fix": "eslint . --fix",
|
|
32
|
-
"release": "pnpm typecheck && bumpp --tag --push --publish && npm publish"
|
|
33
|
-
},
|
|
34
24
|
"dependencies": {
|
|
35
25
|
"@clack/prompts": "^0.11.0",
|
|
36
26
|
"@napi-rs/keyring": "^1.2.0",
|
|
@@ -52,5 +42,14 @@
|
|
|
52
42
|
"tsdown": "^0.18.3",
|
|
53
43
|
"typescript": "^5.9.3",
|
|
54
44
|
"vitest": "^4.0.16"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsdown",
|
|
48
|
+
"dev": "tsdown --watch",
|
|
49
|
+
"test": "vitest",
|
|
50
|
+
"typecheck": "tsc --noEmit",
|
|
51
|
+
"lint": "eslint .",
|
|
52
|
+
"lint:fix": "eslint . --fix",
|
|
53
|
+
"release": "pnpm typecheck && bumpp --tag --push --publish && npm publish"
|
|
55
54
|
}
|
|
56
|
-
}
|
|
55
|
+
}
|