@kb-labs/commit-core 2.73.0 → 2.74.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
@@ -2059,11 +2059,14 @@ async function generateCommitPlan(options) {
2059
2059
  );
2060
2060
  }
2061
2061
  console.log("\n\u26A0\uFE0F WARNING: --allow-secrets flag detected\n");
2062
+ options.onPauseProgress?.();
2062
2063
  const confirmed = await promptUserConfirmation(
2063
2064
  `\u26A0\uFE0F Proceed with committing ${secretFiles.length} file(s) that may contain secrets?`,
2064
- false
2065
+ false,
2065
2066
  // default: NO
2067
+ options.autoConfirm
2066
2068
  );
2069
+ options.onResumeProgress?.();
2067
2070
  if (!confirmed) {
2068
2071
  throw new SecretsDetectedError(
2069
2072
  basicMatches,
@@ -2180,6 +2183,7 @@ async function generateCommitPlan(options) {
2180
2183
  );
2181
2184
  }
2182
2185
  console.log("\n\u26A0\uFE0F WARNING: --allow-secrets flag detected\n");
2186
+ options.onPauseProgress?.();
2183
2187
  const confirmed = await promptUserConfirmation(
2184
2188
  `\u26A0\uFE0F Proceed with committing changes that contain ${secretMatches.length} potential secret(s)?`,
2185
2189
  false,
@@ -2187,6 +2191,7 @@ async function generateCommitPlan(options) {
2187
2191
  options.autoConfirm
2188
2192
  // auto-confirm if --yes flag
2189
2193
  );
2194
+ options.onResumeProgress?.();
2190
2195
  if (!confirmed) {
2191
2196
  throw new SecretsDetectedError(
2192
2197
  secretMatches,