@kud/ai-conventional-commit-cli 1.1.0 → 1.1.1
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 +8 -12
- package/dist/{chunk-F3BOAVBY.js → chunk-U7UVALKR.js} +1 -1
- package/dist/{config-C3S4LWLD.js → config-AZDENPAB.js} +1 -1
- package/dist/index.cjs +1200 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/dist/chunk-H4W6AMGZ.js +0 -549
- package/dist/chunk-HJR5M6U7.js +0 -120
- package/dist/chunk-YIXP5EWA.js +0 -545
- package/dist/config-RHGCFLHQ.js +0 -12
- package/dist/reword-CZDYMQEV.js +0 -150
- package/dist/reword-FE5N4MGV.js +0 -150
- package/dist/reword-IN2D2J4H.js +0 -212
- package/dist/reword-Q7MES34W.js +0 -212
- package/dist/reword-VRH7B6BE.js +0 -205
- package/dist/reword-WFCNTOEU.js +0 -203
package/README.md
CHANGED
|
@@ -227,12 +227,7 @@ Resolves via cosmiconfig (JSON/YAML/etc). Example:
|
|
|
227
227
|
"plugins": ["./src/sample-plugin/example-plugin.ts"],
|
|
228
228
|
"maxTokens": 512,
|
|
229
229
|
"maxFileLines": 1000,
|
|
230
|
-
"skipFilePatterns": [
|
|
231
|
-
"**/package-lock.json",
|
|
232
|
-
"**/yarn.lock",
|
|
233
|
-
"**/*.d.ts",
|
|
234
|
-
"**/dist/**"
|
|
235
|
-
]
|
|
230
|
+
"skipFilePatterns": ["**/package-lock.json", "**/yarn.lock", "**/*.d.ts", "**/dist/**"]
|
|
236
231
|
}
|
|
237
232
|
```
|
|
238
233
|
|
|
@@ -256,11 +251,12 @@ Environment overrides (prefix `AICC_`):
|
|
|
256
251
|
|
|
257
252
|
Lowest to highest (later wins):
|
|
258
253
|
|
|
259
|
-
1. Built-in defaults
|
|
260
|
-
2.
|
|
261
|
-
3.
|
|
262
|
-
4.
|
|
263
|
-
5.
|
|
254
|
+
1. Built-in defaults (`github-copilot/gpt-4.1`)
|
|
255
|
+
2. `OPENCODE_FREE_MODEL` env var (ambient opencode default)
|
|
256
|
+
3. Global config file: `~/.config/ai-conventional-commit-cli/aicc.json` (or `$XDG_CONFIG_HOME`)
|
|
257
|
+
4. Project config (.aiccrc via cosmiconfig)
|
|
258
|
+
5. Environment variables (`AICC_*`)
|
|
259
|
+
6. CLI flags (e.g. `--model`, `--style`)
|
|
264
260
|
|
|
265
261
|
View the resolved configuration:
|
|
266
262
|
|
|
@@ -278,7 +274,7 @@ ai-conventional-commit models --interactive --save # pick + persist globally
|
|
|
278
274
|
ai-conventional-commit models --current # show active model + source
|
|
279
275
|
```
|
|
280
276
|
|
|
281
|
-
`MODEL`, `PRIVACY`, `STYLE`, `STYLE_SAMPLES`, `MAX_TOKENS`, `MAX_FILE_LINES`, `VERBOSE`, `YES`, `MODEL_TIMEOUT_MS`, `DEBUG`, `PRINT_LOGS`, `DEBUG_PROVIDER=mock`.
|
|
277
|
+
`MODEL`, `PRIVACY`, `STYLE`, `STYLE_SAMPLES`, `MAX_TOKENS`, `MAX_FILE_LINES`, `VERBOSE`, `YES`, `MODEL_TIMEOUT_MS`, `DEBUG`, `PRINT_LOGS`, `DEBUG_PROVIDER=mock`. The external `OPENCODE_FREE_MODEL` env var is also honoured as a lower-priority model default (before `AICC_MODEL`).
|
|
282
278
|
|
|
283
279
|
**Note:** `skipFilePatterns` cannot be set via environment variable - use config file or accept defaults.
|
|
284
280
|
|
|
@@ -4,7 +4,7 @@ import { resolve, dirname, join } from "path";
|
|
|
4
4
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";
|
|
5
5
|
import { homedir } from "os";
|
|
6
6
|
var DEFAULTS = {
|
|
7
|
-
model: process.env.AICC_MODEL || "github-copilot/gpt-4.1",
|
|
7
|
+
model: process.env.AICC_MODEL || process.env.OPENCODE_FREE_MODEL || "github-copilot/gpt-4.1",
|
|
8
8
|
privacy: process.env.AICC_PRIVACY || "low",
|
|
9
9
|
style: process.env.AICC_STYLE || "standard",
|
|
10
10
|
styleSamples: parseInt(process.env.AICC_STYLE_SAMPLES || "120", 10),
|