code-agent-auto-commit 1.3.3 → 1.4.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/.code-agent-auto-commit.example.json +3 -3
- package/README.md +2 -2
- package/dist/core/config.js +7 -17
- package/dist/core/git.js +3 -3
- package/{docs → doc}/zh-CN.md +1 -1
- package/package.json +3 -3
- /package/{docs → doc}/CONFIG.md +0 -0
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"ai": {
|
|
11
11
|
"enabled": true,
|
|
12
12
|
"timeoutMs": 15000,
|
|
13
|
-
"model": "
|
|
14
|
-
"defaultProvider": "
|
|
13
|
+
"model": "minimax/MiniMax-M2.5-highspeed",
|
|
14
|
+
"defaultProvider": "minimax",
|
|
15
15
|
"providers": {
|
|
16
16
|
"openai": {
|
|
17
17
|
"api": "openai-completions",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"push": {
|
|
44
|
-
"enabled":
|
|
44
|
+
"enabled": true,
|
|
45
45
|
"provider": "github",
|
|
46
46
|
"remote": "origin",
|
|
47
47
|
"branch": "main"
|
package/README.md
CHANGED
package/dist/core/config.js
CHANGED
|
@@ -20,10 +20,10 @@ const DEFAULT_CONFIG = (worktree) => ({
|
|
|
20
20
|
maxMessageLength: 72,
|
|
21
21
|
},
|
|
22
22
|
ai: {
|
|
23
|
-
enabled:
|
|
23
|
+
enabled: true,
|
|
24
24
|
timeoutMs: 15000,
|
|
25
|
-
model: "
|
|
26
|
-
defaultProvider: "
|
|
25
|
+
model: "minimax/MiniMax-M2.5-highspeed",
|
|
26
|
+
defaultProvider: "minimax",
|
|
27
27
|
providers: {
|
|
28
28
|
openai: {
|
|
29
29
|
api: "openai-completions",
|
|
@@ -35,11 +35,6 @@ const DEFAULT_CONFIG = (worktree) => ({
|
|
|
35
35
|
baseUrl: "https://api.anthropic.com/v1",
|
|
36
36
|
apiKeyEnv: "ANTHROPIC_API_KEY",
|
|
37
37
|
},
|
|
38
|
-
openrouter: {
|
|
39
|
-
api: "openai-completions",
|
|
40
|
-
baseUrl: "https://openrouter.ai/api/v1",
|
|
41
|
-
apiKeyEnv: "OPENROUTER_API_KEY",
|
|
42
|
-
},
|
|
43
38
|
moonshot: {
|
|
44
39
|
api: "openai-completions",
|
|
45
40
|
baseUrl: "https://api.moonshot.ai/v1",
|
|
@@ -50,11 +45,6 @@ const DEFAULT_CONFIG = (worktree) => ({
|
|
|
50
45
|
baseUrl: "https://api.minimaxi.chat/v1",
|
|
51
46
|
apiKeyEnv: "MINIMAX_API_KEY",
|
|
52
47
|
},
|
|
53
|
-
"kimi-coding": {
|
|
54
|
-
api: "anthropic-messages",
|
|
55
|
-
baseUrl: "https://api.moonshot.ai/anthropic",
|
|
56
|
-
apiKeyEnv: "KIMI_API_KEY",
|
|
57
|
-
},
|
|
58
48
|
ollama: {
|
|
59
49
|
api: "openai-completions",
|
|
60
50
|
baseUrl: "http://127.0.0.1:11434/v1",
|
|
@@ -63,10 +53,10 @@ const DEFAULT_CONFIG = (worktree) => ({
|
|
|
63
53
|
},
|
|
64
54
|
},
|
|
65
55
|
push: {
|
|
66
|
-
enabled:
|
|
56
|
+
enabled: true,
|
|
67
57
|
provider: "github",
|
|
68
58
|
remote: "origin",
|
|
69
|
-
branch: "",
|
|
59
|
+
branch: "main",
|
|
70
60
|
},
|
|
71
61
|
filters: {
|
|
72
62
|
include: [],
|
|
@@ -122,10 +112,10 @@ function normalizeConfig(config) {
|
|
|
122
112
|
config.ai.timeoutMs = 1000;
|
|
123
113
|
}
|
|
124
114
|
if (!config.ai.model.trim()) {
|
|
125
|
-
config.ai.model = "
|
|
115
|
+
config.ai.model = "minimax/MiniMax-M2.5-highspeed";
|
|
126
116
|
}
|
|
127
117
|
if (!config.ai.defaultProvider.trim()) {
|
|
128
|
-
config.ai.defaultProvider = "
|
|
118
|
+
config.ai.defaultProvider = "minimax";
|
|
129
119
|
}
|
|
130
120
|
const allowedApis = new Set(["openai-completions", "anthropic-messages"]);
|
|
131
121
|
for (const [provider, providerConfig] of Object.entries(config.ai.providers)) {
|
package/dist/core/git.js
CHANGED
|
@@ -44,11 +44,11 @@ function listChangedFiles(worktree) {
|
|
|
44
44
|
if (secondNull === -1) {
|
|
45
45
|
break;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const renamedFrom = output.slice(offset, secondNull);
|
|
48
48
|
offset = secondNull + 1;
|
|
49
49
|
files.push({
|
|
50
|
-
path:
|
|
51
|
-
originalPath:
|
|
50
|
+
path: firstPath,
|
|
51
|
+
originalPath: renamedFrom,
|
|
52
52
|
indexStatus,
|
|
53
53
|
worktreeStatus,
|
|
54
54
|
});
|
package/{docs → doc}/zh-CN.md
RENAMED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "code-agent-auto-commit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "CAC provides configurable AI auto-commit(using your git account) for OpenCode, Claude Code, Codex, and other AI code agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"CONTRIBUTING.md",
|
|
18
18
|
"CODE_OF_CONDUCT.md",
|
|
19
19
|
"SECURITY.md",
|
|
20
|
-
"
|
|
20
|
+
"doc",
|
|
21
21
|
".code-agent-auto-commit.example.json"
|
|
22
22
|
],
|
|
23
23
|
"publishConfig": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"clean": "rm -rf dist",
|
|
28
28
|
"build": "tsc -p tsconfig.json",
|
|
29
29
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
30
|
-
"test": "node --test dist/
|
|
30
|
+
"test": "tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js",
|
|
31
31
|
"prepare": "pnpm run build"
|
|
32
32
|
},
|
|
33
33
|
"keywords": [
|
/package/{docs → doc}/CONFIG.md
RENAMED
|
File without changes
|