@kyubiware/commit-mint 0.12.0 → 0.12.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/dist/bin.mjs CHANGED
@@ -33,7 +33,7 @@ var __exportAll = (all, no_symbols) => {
33
33
  //#region package.json
34
34
  var package_default = {
35
35
  name: "@kyubiware/commit-mint",
36
- version: "0.12.0",
36
+ version: "0.12.1",
37
37
  description: "🌿 AI-powered git commit tool — auto-group changed files, generate messages, run pre-commit checks",
38
38
  type: "module",
39
39
  bin: { "cmint": "./dist/bin.mjs" },
@@ -173,14 +173,19 @@ function createFetchClient(baseURL, apiKey, timeout) {
173
173
  "Content-Type": "application/json",
174
174
  ...apiKey ? { Authorization: `Bearer ${apiKey}` } : {}
175
175
  },
176
- body: JSON.stringify(params),
176
+ body: JSON.stringify({
177
+ ...params,
178
+ stream: false
179
+ }),
177
180
  signal: controller.signal
178
181
  });
179
182
  if (!response.ok) {
180
183
  const text = await response.text().catch(() => "");
181
184
  throw new Error(`${response.status} ${text}`);
182
185
  }
183
- return await response.json();
186
+ const data = await response.json();
187
+ for (const choice of data.choices ?? []) if (!choice.message?.reasoning && choice.message?.reasoning_content) choice.message.reasoning = choice.message.reasoning_content;
188
+ return data;
184
189
  } finally {
185
190
  clearTimeout(timer);
186
191
  }