@kb-labs/commit-core 2.89.0 → 2.93.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.
package/dist/index.js CHANGED
@@ -2251,8 +2251,13 @@ async function generateCommitPlan(options) {
2251
2251
  if (error instanceof SecretsDetectedError) {
2252
2252
  throw error;
2253
2253
  }
2254
+ const errMsg = error instanceof Error ? error.message : String(error);
2255
+ const errStack = error instanceof Error && error.stack ? error.stack : "";
2256
+ process.stderr.write(`[commit] LLM failed, falling back to heuristics: ${errMsg}
2257
+ ${errStack}
2258
+ `);
2254
2259
  await logger.warn("LLM generation failed after retries, falling back to heuristics", {
2255
- error: error instanceof Error ? error.message : String(error)
2260
+ error: errMsg
2256
2261
  });
2257
2262
  onProgress?.("LLM failed, using heuristics...");
2258
2263
  commits = generateHeuristicPlan(summaries);