@kb-labs/commit-core 2.73.0 → 2.75.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.
@@ -1,5 +1,5 @@
1
1
  import { CommitPlan, ApplyResult, CommitGroup, PushResult } from '@kb-labs/commit-contracts';
2
- import { A as ApplyOptions, P as PushOptions } from '../types-CEjOl41u.js';
2
+ import { A as ApplyOptions, P as PushOptions } from '../types-CBjdZMSt.js';
3
3
 
4
4
  /**
5
5
  * Commit plan applier
@@ -1,7 +1,7 @@
1
- export { S as SYSTEM_PROMPT, c as SYSTEM_PROMPT_WITH_DIFF, b as buildPrompt, d as buildPromptWithDiff, g as generateCommitPlan, a as generateHeuristicPlan, p as parseResponse } from '../heuristics-C9M8f0KK.js';
1
+ export { S as SYSTEM_PROMPT, c as SYSTEM_PROMPT_WITH_DIFF, b as buildPrompt, d as buildPromptWithDiff, g as generateCommitPlan, a as generateHeuristicPlan, p as parseResponse } from '../heuristics-AM06lXSo.js';
2
2
  import { LLMTool } from '@kb-labs/sdk';
3
3
  import '@kb-labs/commit-contracts';
4
- import '../types-CEjOl41u.js';
4
+ import '../types-CBjdZMSt.js';
5
5
 
6
6
  /**
7
7
  * Tool definitions for native LLM tool calling
@@ -1878,6 +1878,9 @@ async function promptUserConfirmation(question, defaultValue = false, autoConfir
1878
1878
  console.log(`${question} [auto-confirmed with --yes]`);
1879
1879
  return true;
1880
1880
  }
1881
+ if (!process.stdin.readableEnded) {
1882
+ process.stdin.resume();
1883
+ }
1881
1884
  const rl = readline.createInterface({
1882
1885
  input: process.stdin,
1883
1886
  output: process.stdout
@@ -1991,11 +1994,14 @@ async function generateCommitPlan(options) {
1991
1994
  );
1992
1995
  }
1993
1996
  console.log("\n\u26A0\uFE0F WARNING: --allow-secrets flag detected\n");
1997
+ options.onPauseProgress?.();
1994
1998
  const confirmed = await promptUserConfirmation(
1995
1999
  `\u26A0\uFE0F Proceed with committing ${secretFiles.length} file(s) that may contain secrets?`,
1996
- false
2000
+ false,
1997
2001
  // default: NO
2002
+ options.autoConfirm
1998
2003
  );
2004
+ options.onResumeProgress?.();
1999
2005
  if (!confirmed) {
2000
2006
  throw new SecretsDetectedError(
2001
2007
  basicMatches,
@@ -2112,6 +2118,7 @@ async function generateCommitPlan(options) {
2112
2118
  );
2113
2119
  }
2114
2120
  console.log("\n\u26A0\uFE0F WARNING: --allow-secrets flag detected\n");
2121
+ options.onPauseProgress?.();
2115
2122
  const confirmed = await promptUserConfirmation(
2116
2123
  `\u26A0\uFE0F Proceed with committing changes that contain ${secretMatches.length} potential secret(s)?`,
2117
2124
  false,
@@ -2119,6 +2126,7 @@ async function generateCommitPlan(options) {
2119
2126
  options.autoConfirm
2120
2127
  // auto-confirm if --yes flag
2121
2128
  );
2129
+ options.onResumeProgress?.();
2122
2130
  if (!confirmed) {
2123
2131
  throw new SecretsDetectedError(
2124
2132
  secretMatches,