@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.
- package/dist/applier/index.d.ts +1 -1
- package/dist/generator/index.d.ts +2 -2
- package/dist/generator/index.js +6 -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 +6 -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
|
@@ -1991,11 +1991,14 @@ async function generateCommitPlan(options) {
|
|
|
1991
1991
|
);
|
|
1992
1992
|
}
|
|
1993
1993
|
console.log("\n\u26A0\uFE0F WARNING: --allow-secrets flag detected\n");
|
|
1994
|
+
options.onPauseProgress?.();
|
|
1994
1995
|
const confirmed = await promptUserConfirmation(
|
|
1995
1996
|
`\u26A0\uFE0F Proceed with committing ${secretFiles.length} file(s) that may contain secrets?`,
|
|
1996
|
-
false
|
|
1997
|
+
false,
|
|
1997
1998
|
// default: NO
|
|
1999
|
+
options.autoConfirm
|
|
1998
2000
|
);
|
|
2001
|
+
options.onResumeProgress?.();
|
|
1999
2002
|
if (!confirmed) {
|
|
2000
2003
|
throw new SecretsDetectedError(
|
|
2001
2004
|
basicMatches,
|
|
@@ -2112,6 +2115,7 @@ async function generateCommitPlan(options) {
|
|
|
2112
2115
|
);
|
|
2113
2116
|
}
|
|
2114
2117
|
console.log("\n\u26A0\uFE0F WARNING: --allow-secrets flag detected\n");
|
|
2118
|
+
options.onPauseProgress?.();
|
|
2115
2119
|
const confirmed = await promptUserConfirmation(
|
|
2116
2120
|
`\u26A0\uFE0F Proceed with committing changes that contain ${secretMatches.length} potential secret(s)?`,
|
|
2117
2121
|
false,
|
|
@@ -2119,6 +2123,7 @@ async function generateCommitPlan(options) {
|
|
|
2119
2123
|
options.autoConfirm
|
|
2120
2124
|
// auto-confirm if --yes flag
|
|
2121
2125
|
);
|
|
2126
|
+
options.onResumeProgress?.();
|
|
2122
2127
|
if (!confirmed) {
|
|
2123
2128
|
throw new SecretsDetectedError(
|
|
2124
2129
|
secretMatches,
|