@kud/ai-conventional-commit-cli 0.5.0 → 0.6.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +16 -12
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -181,7 +181,7 @@ Resolves via cosmiconfig (JSON/YAML/etc). Example:
181
181
 
182
182
  ```json
183
183
  {
184
- "model": "github-copilot/gpt-5",
184
+ "model": "github-copilot/gpt-4.1",
185
185
  "privacy": "low",
186
186
  "gitmoji": true,
187
187
  "gitmojiMode": "gitmoji",
package/dist/index.js CHANGED
@@ -266,7 +266,7 @@ Refine now.`
266
266
  import { z } from "zod";
267
267
  import { execa } from "execa";
268
268
  var OpenCodeProvider = class {
269
- constructor(model = "github-copilot/gpt-5") {
269
+ constructor(model = "github-copilot/gpt-4.1") {
270
270
  this.model = model;
271
271
  }
272
272
  name() {
@@ -275,7 +275,7 @@ var OpenCodeProvider = class {
275
275
  async chat(messages, _opts) {
276
276
  const debug = process.env.AICC_DEBUG === "true";
277
277
  const mockMode = process.env.AICC_DEBUG_PROVIDER === "mock";
278
- const timeoutMs = parseInt(process.env.AICC_MODEL_TIMEOUT_MS || "45000", 10);
278
+ const timeoutMs = parseInt(process.env.AICC_MODEL_TIMEOUT_MS || "100000", 10);
279
279
  const eager = process.env.AICC_EAGER_PARSE !== "false";
280
280
  const userAggregate = messages.map((m) => `${m.role.toUpperCase()}: ${m.content}`).join("\n\n");
281
281
  const command = `Generate high-quality commit message candidates based on the staged git diff.`;
@@ -562,9 +562,12 @@ import inquirer from "inquirer";
562
562
 
563
563
  // src/workflow/ui.ts
564
564
  import chalk from "chalk";
565
- function animateHeaderBase(text = "ai-conventional-commit") {
565
+ function animateHeaderBase(text = "ai-conventional-commit", modelSegment) {
566
+ const mainText = text;
567
+ const modelSeg = modelSegment ? ` (using ${modelSegment})` : "";
566
568
  if (!process.stdout.isTTY || process.env.AICC_NO_ANIMATION) {
567
- console.log("\n\u250C " + chalk.bold(text));
569
+ if (modelSeg) console.log("\n\u250C " + chalk.bold(mainText) + chalk.dim(modelSeg));
570
+ else console.log("\n\u250C " + chalk.bold(mainText));
568
571
  return Promise.resolve();
569
572
  }
570
573
  const palette = [
@@ -582,8 +585,9 @@ function animateHeaderBase(text = "ai-conventional-commit") {
582
585
  process.stdout.write("\n");
583
586
  return palette.reduce(async (p, color) => {
584
587
  await p;
585
- const frame = chalk.bold.hex(color)(text);
586
- process.stdout.write("\r\u250C " + frame);
588
+ const frame = chalk.bold.hex(color)(mainText);
589
+ if (modelSeg) process.stdout.write("\r\u250C " + frame + chalk.dim(modelSeg));
590
+ else process.stdout.write("\r\u250C " + frame);
587
591
  await new Promise((r) => setTimeout(r, 60));
588
592
  }, Promise.resolve()).then(() => process.stdout.write("\n"));
589
593
  }
@@ -714,7 +718,7 @@ async function runGenerate(config) {
714
718
  return;
715
719
  }
716
720
  if (process.stdout.isTTY) {
717
- await animateHeaderBase(`ai-conventional-commit (using model ${config.model})`);
721
+ await animateHeaderBase("ai-conventional-commit", config.model);
718
722
  borderLine();
719
723
  }
720
724
  sectionTitle("Files");
@@ -866,7 +870,7 @@ async function runSplit(config, desired) {
866
870
  return;
867
871
  }
868
872
  if (process.stdout.isTTY) {
869
- await animateHeaderBase(`ai-conventional-commit (using model ${config.model})`);
873
+ await animateHeaderBase("ai-conventional-commit", config.model);
870
874
  borderLine();
871
875
  }
872
876
  sectionTitle("Files");
@@ -1029,7 +1033,7 @@ async function runRefine(config, options) {
1029
1033
  return;
1030
1034
  }
1031
1035
  if (process.stdout.isTTY) {
1032
- await animateHeaderBase(`ai-conventional-commit (using model ${config.model})`);
1036
+ await animateHeaderBase("ai-conventional-commit", config.model);
1033
1037
  borderLine();
1034
1038
  }
1035
1039
  sectionTitle("Original");
@@ -1109,7 +1113,7 @@ import { cosmiconfig } from "cosmiconfig";
1109
1113
  import { resolve as resolve2 } from "path";
1110
1114
  import { existsSync as existsSync4 } from "fs";
1111
1115
  var DEFAULTS = {
1112
- model: process.env.AICC_MODEL || "github-copilot/gpt-5",
1116
+ model: process.env.AICC_MODEL || "github-copilot/gpt-4.1",
1113
1117
  privacy: process.env.AICC_PRIVACY || "low",
1114
1118
  gitmoji: process.env.AICC_GITMOJI === "true",
1115
1119
  gitmojiMode: "standard",
@@ -1136,7 +1140,7 @@ async function loadConfig(cwd = process.cwd()) {
1136
1140
  // package.json
1137
1141
  var package_default = {
1138
1142
  name: "@kud/ai-conventional-commit-cli",
1139
- version: "0.5.0",
1143
+ version: "0.6.0",
1140
1144
  type: "module",
1141
1145
  description: "Opinionated, style-aware AI assistant for crafting and splitting git commits (opencode-based, provider-agnostic).",
1142
1146
  bin: {
@@ -1225,7 +1229,7 @@ Add --gitmoji[-pure] to enable emoji styles.`,
1225
1229
  });
1226
1230
  model = Option.String("-m,--model", {
1227
1231
  required: false,
1228
- description: "Model provider/name (e.g. github-copilot/gpt-5)"
1232
+ description: "Model provider/name (e.g. github-copilot/gpt-4.1)"
1229
1233
  });
1230
1234
  async execute() {
1231
1235
  const config = await loadConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/ai-conventional-commit-cli",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "Opinionated, style-aware AI assistant for crafting and splitting git commits (opencode-based, provider-agnostic).",
6
6
  "bin": {