@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/applier/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
4
|
+
import '../types-CBjdZMSt.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Tool definitions for native LLM tool calling
|
package/dist/generator/index.js
CHANGED
|
@@ -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,
|