git-repo-comitter 0.1.3 → 0.2.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/.env.example CHANGED
@@ -1,3 +1,3 @@
1
1
  LLM_API_KEY=your-api-key-here
2
2
  LLM_ENDPOINT=https://api.openai.com/v1
3
- LLM_MODEL=gpt-4
3
+ LLM_MODEL=deepseek-v4-flash
@@ -13,16 +13,19 @@ jobs:
13
13
  publish:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
- - uses: actions/checkout@v4
16
+ - uses: actions/checkout@v6
17
17
 
18
18
  - uses: pnpm/action-setup@v6
19
19
  with:
20
20
  version: "10"
21
21
 
22
- - uses: actions/setup-node@v4
22
+ - uses: actions/setup-node@v6
23
23
  with:
24
- node-version: "20"
24
+ node-version: "24"
25
25
  registry-url: "https://registry.npmjs.org"
26
+ package-manager-cache: false
27
+
28
+ - run: npm install -g npm@latest
26
29
 
27
30
  - run: pnpm install --frozen-lockfile
28
31
 
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # git-repo-comitter
2
2
 
3
- 基于大语言模型的 Git 提交信息生成工具。自动读取 Git 差异,调用 OpenAI 兼容 API 生成 Conventional Commits 格式的提交信息并执行提交。
3
+ 基于大语言模型的 Git 提交信息生成工具。
4
+ 自动读取 Git 差异,调用 OpenAI 兼容 API 生成 Conventional Commits 格式的提交信息并执行提交。
4
5
 
5
6
  ## 使用
6
7
 
7
8
  1. 配置环境变量:`LLM_API_KEY`、`LLM_ENDPOINT`、`LLM_MODEL`
8
9
  2. 运行:
9
-
10
10
  ```bash
11
11
  # 发布后直接使用
12
12
  npx git-repo-comitter
package/dist/index.cjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,12 +1,20 @@
1
1
  {
2
2
  "name": "git-repo-comitter",
3
- "version": "0.1.3",
3
+ "version": "0.2.5",
4
4
  "description": "A CLI tool that uses LLM to generate Git commit messages and execute commits",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "bin": {
8
8
  "git-repo-comitter": "dist/index.cjs"
9
9
  },
10
+ "scripts": {
11
+ "dev": "vite",
12
+ "build": "tsc && vite build",
13
+ "preview": "vite preview",
14
+ "lint": "eslint src/",
15
+ "format": "prettier --write \"src/**/*.ts\"",
16
+ "prepare": "husky"
17
+ },
10
18
  "keywords": [
11
19
  "git",
12
20
  "commit",
@@ -14,8 +22,20 @@
14
22
  "ai",
15
23
  "openai"
16
24
  ],
17
- "author": "",
25
+ "author": "jeanhwea",
18
26
  "license": "unlicense",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/Jeanhwea/git-repo-comitter.git"
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/Jeanhwea/git-repo-comitter/issues"
33
+ },
34
+ "homepage": "https://github.com/Jeanhwea/git-repo-comitter#readme",
35
+ "publishConfig": {
36
+ "registry": "https://registry.npmjs.org",
37
+ "access": "public"
38
+ },
19
39
  "lint-staged": {
20
40
  "*.ts": [
21
41
  "prettier --write",
@@ -38,12 +58,5 @@
38
58
  "dotenv": "^17.4.2",
39
59
  "openai": "^6.46.0",
40
60
  "yaml": "^2.9.0"
41
- },
42
- "scripts": {
43
- "dev": "vite",
44
- "build": "tsc && vite build",
45
- "preview": "vite preview",
46
- "lint": "eslint src/",
47
- "format": "prettier --write \"src/**/*.ts\""
48
61
  }
49
- }
62
+ }