@kb-labs/commit-core 2.89.0 → 2.94.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.
@@ -2183,8 +2183,13 @@ async function generateCommitPlan(options) {
2183
2183
  if (error instanceof SecretsDetectedError) {
2184
2184
  throw error;
2185
2185
  }
2186
+ const errMsg = error instanceof Error ? error.message : String(error);
2187
+ const errStack = error instanceof Error && error.stack ? error.stack : "";
2188
+ process.stderr.write(`[commit] LLM failed, falling back to heuristics: ${errMsg}
2189
+ ${errStack}
2190
+ `);
2186
2191
  await logger.warn("LLM generation failed after retries, falling back to heuristics", {
2187
- error: error instanceof Error ? error.message : String(error)
2192
+ error: errMsg
2188
2193
  });
2189
2194
  onProgress?.("LLM failed, using heuristics...");
2190
2195
  commits = generateHeuristicPlan(summaries);