@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, ConventionalType, FileSummary, CommitGroup } from '@kb-labs/commit-contracts';
2
- import { G as GenerateOptions } from './types-CEjOl41u.js';
2
+ import { G as GenerateOptions } from './types-CBjdZMSt.js';
3
3
 
4
4
  /**
5
5
  * Main commit plan generator
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as ApplyOptions, G as GenerateOptions, a as GitStatusWithStaleness, L as LLMCompleteFunction, P as PushOptions } from './types-CEjOl41u.js';
1
+ export { A as ApplyOptions, G as GenerateOptions, a as GitStatusWithStaleness, L as LLMCompleteFunction, P as PushOptions } from './types-CBjdZMSt.js';
2
2
  export { F as FileDiff, d as detectCommitStyle, f as formatFileSummary, g as getAllChangedFiles, a as getCurrentBranch, b as getFileDiff, c as getFileSummaries, e as getGitStatus, h as getRecentCommits, i as hasChanges, j as isProtectedBranch } from './recent-commits-BnietMgO.js';
3
- export { S as SYSTEM_PROMPT, b as buildPrompt, g as generateCommitPlan, a as generateHeuristicPlan, p as parseResponse } from './heuristics-C9M8f0KK.js';
3
+ export { S as SYSTEM_PROMPT, b as buildPrompt, g as generateCommitPlan, a as generateHeuristicPlan, p as parseResponse } from './heuristics-AM06lXSo.js';
4
4
  export { applyCommitPlan, formatCommitMessage, pushCommits } from './applier/index.js';
5
5
  export { clearPlan, getCommitStoragePath, getCurrentPlanPath, getCurrentStatusPath, hasPlan, initStorage, listHistory, loadPlan, loadStatus, savePlan, saveToHistory } from './storage/index.js';
6
6
  export { ApplyResult, CommitGroup, CommitPlan, ConventionalType, FileSummary, GitStatus, GitStatusSnapshot, PushResult, ReleaseHint } from '@kb-labs/commit-contracts';
package/dist/index.js CHANGED
@@ -1946,6 +1946,9 @@ async function promptUserConfirmation(question, defaultValue = false, autoConfir
1946
1946
  console.log(`${question} [auto-confirmed with --yes]`);
1947
1947
  return true;
1948
1948
  }
1949
+ if (!process.stdin.readableEnded) {
1950
+ process.stdin.resume();
1951
+ }
1949
1952
  const rl = readline.createInterface({
1950
1953
  input: process.stdin,
1951
1954
  output: process.stdout
@@ -2059,11 +2062,14 @@ async function generateCommitPlan(options) {
2059
2062
  );
2060
2063
  }
2061
2064
  console.log("\n\u26A0\uFE0F WARNING: --allow-secrets flag detected\n");
2065
+ options.onPauseProgress?.();
2062
2066
  const confirmed = await promptUserConfirmation(
2063
2067
  `\u26A0\uFE0F Proceed with committing ${secretFiles.length} file(s) that may contain secrets?`,
2064
- false
2068
+ false,
2065
2069
  // default: NO
2070
+ options.autoConfirm
2066
2071
  );
2072
+ options.onResumeProgress?.();
2067
2073
  if (!confirmed) {
2068
2074
  throw new SecretsDetectedError(
2069
2075
  basicMatches,
@@ -2180,6 +2186,7 @@ async function generateCommitPlan(options) {
2180
2186
  );
2181
2187
  }
2182
2188
  console.log("\n\u26A0\uFE0F WARNING: --allow-secrets flag detected\n");
2189
+ options.onPauseProgress?.();
2183
2190
  const confirmed = await promptUserConfirmation(
2184
2191
  `\u26A0\uFE0F Proceed with committing changes that contain ${secretMatches.length} potential secret(s)?`,
2185
2192
  false,
@@ -2187,6 +2194,7 @@ async function generateCommitPlan(options) {
2187
2194
  options.autoConfirm
2188
2195
  // auto-confirm if --yes flag
2189
2196
  );
2197
+ options.onResumeProgress?.();
2190
2198
  if (!confirmed) {
2191
2199
  throw new SecretsDetectedError(
2192
2200
  secretMatches,