@quikcommit/cli 4.0.0 → 4.2.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/index.js +9 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1104,11 +1104,11 @@ function init(options) {
|
|
|
1104
1104
|
if (options.uninstall) {
|
|
1105
1105
|
if ((0, import_fs6.existsSync)(hookPath)) {
|
|
1106
1106
|
const content = (0, import_fs6.readFileSync)(hookPath, "utf-8");
|
|
1107
|
-
if (content.includes("
|
|
1107
|
+
if (content.includes("Quikcommit")) {
|
|
1108
1108
|
(0, import_fs6.unlinkSync)(hookPath);
|
|
1109
|
-
console.log("
|
|
1109
|
+
console.log("Quikcommit hook removed.");
|
|
1110
1110
|
} else {
|
|
1111
|
-
console.log("Hook exists but was not installed by
|
|
1111
|
+
console.log("Hook exists but was not installed by Quikcommit. Skipping.");
|
|
1112
1112
|
}
|
|
1113
1113
|
} else {
|
|
1114
1114
|
console.log("No hook to remove.");
|
|
@@ -1117,8 +1117,8 @@ function init(options) {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
if ((0, import_fs6.existsSync)(hookPath)) {
|
|
1119
1119
|
const content = (0, import_fs6.readFileSync)(hookPath, "utf-8");
|
|
1120
|
-
if (content.includes("
|
|
1121
|
-
console.log("
|
|
1120
|
+
if (content.includes("Quikcommit")) {
|
|
1121
|
+
console.log("Quikcommit hook is already installed.");
|
|
1122
1122
|
return;
|
|
1123
1123
|
}
|
|
1124
1124
|
console.error(
|
|
@@ -1128,7 +1128,7 @@ function init(options) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
(0, import_fs6.writeFileSync)(hookPath, HOOK_CONTENT);
|
|
1130
1130
|
(0, import_fs6.chmodSync)(hookPath, 493);
|
|
1131
|
-
console.log("
|
|
1131
|
+
console.log("Quikcommit hook installed.");
|
|
1132
1132
|
console.log("Now just run `git commit` and a message will be generated automatically.");
|
|
1133
1133
|
}
|
|
1134
1134
|
var import_fs6, import_path6, import_child_process5, HOOK_CONTENT;
|
|
@@ -1139,7 +1139,7 @@ var init_init = __esm({
|
|
|
1139
1139
|
import_path6 = require("path");
|
|
1140
1140
|
import_child_process5 = require("child_process");
|
|
1141
1141
|
HOOK_CONTENT = `#!/bin/sh
|
|
1142
|
-
#
|
|
1142
|
+
# Quikcommit - auto-generate commit messages
|
|
1143
1143
|
# Installed by: qc init
|
|
1144
1144
|
# Remove with: qc init --uninstall
|
|
1145
1145
|
|
|
@@ -1669,7 +1669,7 @@ init_config();
|
|
|
1669
1669
|
init_api();
|
|
1670
1670
|
init_git();
|
|
1671
1671
|
init_monorepo();
|
|
1672
|
-
var HELP = `
|
|
1672
|
+
var HELP = `Quikcommit - AI-powered conventional commit messages
|
|
1673
1673
|
|
|
1674
1674
|
Usage:
|
|
1675
1675
|
qc Generate commit message and commit (default)
|
|
@@ -1695,7 +1695,7 @@ Options:
|
|
|
1695
1695
|
--to <ref> End ref for qc changelog (default: HEAD)
|
|
1696
1696
|
--write Prepend changelog to CHANGELOG.md
|
|
1697
1697
|
--version <ver> Version label for changelog header (default: derived from --to or "<from>-next")
|
|
1698
|
-
--uninstall Remove
|
|
1698
|
+
--uninstall Remove Quikcommit hook (qc init --uninstall)
|
|
1699
1699
|
--model <id> Use specific model (e.g. qwen25-coder-32b, llama-3.3-70b)
|
|
1700
1700
|
|
|
1701
1701
|
Commands:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quikcommit/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "AI-powered conventional commit messages",
|
|
5
5
|
"bin": {
|
|
6
6
|
"qc": "./dist/index.js"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"esbuild": "^0.27.3",
|
|
31
31
|
"typescript": "^5.9.3",
|
|
32
32
|
"vitest": "^4.0.18",
|
|
33
|
-
"@quikcommit/shared": "4.
|
|
33
|
+
"@quikcommit/shared": "4.2.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "node build.mjs",
|