commit-agent-cli 0.1.6 → 0.1.7
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/README.md +2 -7
- package/dist/index.js +15 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# commit-agent-cli
|
|
2
2
|
|
|
3
|
-
> AI-powered git commit message generator using Claude 4.5 and LangGraph
|
|
3
|
+
> AI-powered git commit message generator using Claude Sonnet 4.5 and LangGraph
|
|
4
4
|
|
|
5
5
|
Generate intelligent, context-aware commit messages by simply typing `commit`.
|
|
6
6
|
|
|
@@ -25,12 +25,7 @@ You'll be prompted to:
|
|
|
25
25
|
|
|
26
26
|
## Features
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
- 🕵️ Autonomous codebase exploration
|
|
30
|
-
- 👁️ Transparent agent actions
|
|
31
|
-
- ⚙️ Customizable commit styles
|
|
32
|
-
- 🔒 Secure local storage
|
|
33
|
-
- 🔔 Auto update notifications
|
|
28
|
+
Powered by Claude Sonnet 4.5, this tool autonomously explores your codebase to generate intelligent commit messages with full transparency into its reasoning process. Supports customizable commit styles with secure local configuration storage.
|
|
34
29
|
|
|
35
30
|
## Documentation
|
|
36
31
|
|
package/dist/index.js
CHANGED
|
@@ -438,19 +438,25 @@ var notifier = updateNotifier({
|
|
|
438
438
|
updateCheckInterval: 1e3 * 60 * 60
|
|
439
439
|
// Check once per hour (was 24h)
|
|
440
440
|
});
|
|
441
|
-
if (notifier.update) {
|
|
441
|
+
if (notifier.update && notifier.update.current !== notifier.update.latest) {
|
|
442
442
|
const currentVersion = notifier.update.current;
|
|
443
443
|
const latestVersion = notifier.update.latest;
|
|
444
|
+
const boxWidth = 67;
|
|
445
|
+
const padLine = (content, width) => {
|
|
446
|
+
const visibleLength = content.replace(/\u001b\[[0-9;]*m/g, "").length;
|
|
447
|
+
const padding = width - visibleLength;
|
|
448
|
+
return content + " ".repeat(Math.max(0, padding));
|
|
449
|
+
};
|
|
444
450
|
console.log("");
|
|
445
451
|
console.log(import_picocolors.default.yellow("\u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E"));
|
|
446
|
-
console.log(import_picocolors.default.yellow("\u2502") + "
|
|
447
|
-
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.bold("New version of commit-cli is available!")
|
|
448
|
-
console.log(import_picocolors.default.yellow("\u2502") + "
|
|
449
|
-
console.log(import_picocolors.default.yellow("\u2502") + " Current: " + import_picocolors.default.dim(currentVersion) + " \u2192 Latest: " + import_picocolors.default.green(import_picocolors.default.bold(latestVersion))
|
|
450
|
-
console.log(import_picocolors.default.yellow("\u2502") + "
|
|
451
|
-
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.dim("Update after you finish by running:")
|
|
452
|
-
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.cyan(import_picocolors.default.bold(`npm install -g ${packageJson.name}@latest`))
|
|
453
|
-
console.log(import_picocolors.default.yellow("\u2502") + "
|
|
452
|
+
console.log(import_picocolors.default.yellow("\u2502") + padLine("", boxWidth) + import_picocolors.default.yellow("\u2502"));
|
|
453
|
+
console.log(import_picocolors.default.yellow("\u2502") + padLine(" " + import_picocolors.default.bold("New version of commit-cli is available!"), boxWidth) + import_picocolors.default.yellow("\u2502"));
|
|
454
|
+
console.log(import_picocolors.default.yellow("\u2502") + padLine("", boxWidth) + import_picocolors.default.yellow("\u2502"));
|
|
455
|
+
console.log(import_picocolors.default.yellow("\u2502") + padLine(" Current: " + import_picocolors.default.dim(currentVersion) + " \u2192 Latest: " + import_picocolors.default.green(import_picocolors.default.bold(latestVersion)), boxWidth) + import_picocolors.default.yellow("\u2502"));
|
|
456
|
+
console.log(import_picocolors.default.yellow("\u2502") + padLine("", boxWidth) + import_picocolors.default.yellow("\u2502"));
|
|
457
|
+
console.log(import_picocolors.default.yellow("\u2502") + padLine(" " + import_picocolors.default.dim("Update after you finish by running:"), boxWidth) + import_picocolors.default.yellow("\u2502"));
|
|
458
|
+
console.log(import_picocolors.default.yellow("\u2502") + padLine(" " + import_picocolors.default.cyan(import_picocolors.default.bold(`npm install -g ${packageJson.name}@latest`)), boxWidth) + import_picocolors.default.yellow("\u2502"));
|
|
459
|
+
console.log(import_picocolors.default.yellow("\u2502") + padLine("", boxWidth) + import_picocolors.default.yellow("\u2502"));
|
|
454
460
|
console.log(import_picocolors.default.yellow("\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F"));
|
|
455
461
|
console.log("");
|
|
456
462
|
}
|