@fzed51/git-tool 0.1.0 → 0.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/CHANGELOG.md +33 -0
- package/dist/git-commit.js +7 -0
- package/dist/git-commit.js.map +1 -1
- package/package.json +4 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.2.0] - 2026-02-11
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- ASCII art banner with chalk for enhanced CLI experience
|
|
12
|
+
- Public API with exported functions (`generateCommitMessage`, `git`, `GitWrapper`)
|
|
13
|
+
- MIT license
|
|
14
|
+
- Interactive confirmation before committing
|
|
15
|
+
- Token usage logging in git commit generation
|
|
16
|
+
- Mistral AI integration for commit message generation
|
|
17
|
+
- Environment variable support with dotenv
|
|
18
|
+
- README documentation with configuration instructions
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- Set temperature to 0.2 for more deterministic AI responses
|
|
22
|
+
- Improved JSON and TypeScript file formatting
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- Updated configuration files for improved settings and dependencies
|
|
26
|
+
- Updated module resolution settings
|
|
27
|
+
|
|
28
|
+
## [0.0.1] - Initial Development
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
- Initial project setup
|
|
32
|
+
- Git wrapper functionality
|
|
33
|
+
- Command-line interface for git operations
|
package/dist/git-commit.js
CHANGED
|
@@ -8,8 +8,15 @@ import { stdin as input, stdout as output } from "node:process";
|
|
|
8
8
|
import * as readline from "node:readline/promises";
|
|
9
9
|
import { generateCommitMessage } from "./lib/git-commit.js";
|
|
10
10
|
import { GitWrapper } from "./lib/git-wrapper.js";
|
|
11
|
+
import chalk from "chalk";
|
|
11
12
|
async function main() {
|
|
12
13
|
try {
|
|
14
|
+
console.log(chalk.green.bold([
|
|
15
|
+
" ▘▗ ▘▗",
|
|
16
|
+
"▛▌▌▜▘▄▖▛▘▛▌▛▛▌▛▛▌▌▜▘",
|
|
17
|
+
"▙▌▌▐▖ ▙▖▙▌▌▌▌▌▌▌▌▐▖",
|
|
18
|
+
"▄▌",
|
|
19
|
+
].join("\n")));
|
|
13
20
|
console.log("🤖 Génération du message de commit...\n");
|
|
14
21
|
const message = await generateCommitMessage();
|
|
15
22
|
console.log("✅ Message de commit généré:\n");
|
package/dist/git-commit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-commit.js","sourceRoot":"","sources":["../src/git-commit.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"git-commit.js","sourceRoot":"","sources":["../src/git-commit.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK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C,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC3E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fzed51/git-tool",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A command-line tool for Git operations with AI-powered commit message generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/lib/index.js",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist",
|
|
19
19
|
"README.md",
|
|
20
|
-
"LICENSE"
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"CHANGELOG.md"
|
|
21
22
|
],
|
|
22
23
|
"engines": {
|
|
23
24
|
"node": ">=18.0.0"
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
56
|
"@mistralai/mistralai": "^1.14.0",
|
|
57
|
+
"chalk": "^5.6.2",
|
|
56
58
|
"dotenv": "^17.2.4"
|
|
57
59
|
}
|
|
58
60
|
}
|