@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 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. Global config file: `~/.config/ai-conventional-commit-cli/aicc.json` (or `$XDG_CONFIG_HOME`)
261
- 3. Project config (.aiccrc via cosmiconfig)
262
- 4. Environment variables (`AICC_*`)
263
- 5. CLI flags (e.g. `--model`, `--style`)
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),
@@ -3,7 +3,7 @@ import {
3
3
  loadConfig,
4
4
  loadConfigDetailed,
5
5
  saveGlobalConfig
6
- } from "./chunk-HJR5M6U7.js";
6
+ } from "./chunk-U7UVALKR.js";
7
7
  export {
8
8
  getGlobalConfigPath,
9
9
  loadConfig,