@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.
- package/dist/applier/index.d.ts +1 -1
- package/dist/generator/index.d.ts +2 -2
- package/dist/generator/index.js +9 -1
- package/dist/generator/index.js.map +1 -1
- package/dist/{heuristics-C9M8f0KK.d.ts → heuristics-AM06lXSo.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/{types-CEjOl41u.d.ts → types-CBjdZMSt.d.ts} +4 -0
- package/package.json +3 -3
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-
|
|
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-
|
|
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,
|