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.
@@ -10,8 +10,8 @@
10
10
  "ai": {
11
11
  "enabled": true,
12
12
  "timeoutMs": 15000,
13
- "model": "openai/gpt-4.1-mini",
14
- "defaultProvider": "openai",
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": false,
44
+ "enabled": true,
45
45
  "provider": "github",
46
46
  "remote": "origin",
47
47
  "branch": "main"
package/README.md CHANGED
@@ -113,8 +113,8 @@ You can copy from:
113
113
 
114
114
  Full schema and options:
115
115
 
116
- - `docs/CONFIG.md`
117
- - `docs/zh-CN.md`
116
+ - `doc/CONFIG.md`
117
+ - `doc/zh-CN.md`
118
118
 
119
119
  ### AI Key Fields
120
120
 
@@ -20,10 +20,10 @@ const DEFAULT_CONFIG = (worktree) => ({
20
20
  maxMessageLength: 72,
21
21
  },
22
22
  ai: {
23
- enabled: false,
23
+ enabled: true,
24
24
  timeoutMs: 15000,
25
- model: "openai/gpt-4.1-mini",
26
- defaultProvider: "openai",
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: false,
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 = "openai/gpt-4.1-mini";
115
+ config.ai.model = "minimax/MiniMax-M2.5-highspeed";
126
116
  }
127
117
  if (!config.ai.defaultProvider.trim()) {
128
- config.ai.defaultProvider = "openai";
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 secondPath = output.slice(offset, secondNull);
47
+ const renamedFrom = output.slice(offset, secondNull);
48
48
  offset = secondNull + 1;
49
49
  files.push({
50
- path: secondPath,
51
- originalPath: firstPath,
50
+ path: firstPath,
51
+ originalPath: renamedFrom,
52
52
  indexStatus,
53
53
  worktreeStatus,
54
54
  });
@@ -83,7 +83,7 @@ cac status --scope project
83
83
 
84
84
  Default location in repository root: `.cac/.code-agent-auto-commit.json`
85
85
 
86
- For full field details, see `docs/CONFIG.md`.
86
+ For full field details, see `doc/CONFIG.md`.
87
87
 
88
88
  ## Important Notes
89
89
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-agent-auto-commit",
3
- "version": "1.3.3",
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
- "docs",
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/test/*.test.js",
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": [
File without changes