@kb-labs/commit-core 0.6.0 → 2.9.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/analyzer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FileDiff,
|
|
1
|
+
export { F as FileDiff, d as detectCommitStyle, f as formatFileSummary, g as getAllChangedFiles, a as getCurrentBranch, b as getFileDiff, k as getFileDiffs, c as getFileSummaries, e as getGitStatus, h as getRecentCommits, i as hasChanges, j as isProtectedBranch } from '../recent-commits-BnietMgO.js';
|
|
2
2
|
import '@kb-labs/commit-contracts';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SYSTEM_PROMPT,
|
|
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-C9M8f0KK.js';
|
|
2
2
|
import { LLMTool } from '@kb-labs/sdk';
|
|
3
3
|
import '@kb-labs/commit-contracts';
|
|
4
4
|
import '../types-CEjOl41u.js';
|
|
@@ -77,4 +77,4 @@ declare function parseResponse(response: string, summaries?: FileSummary[], patt
|
|
|
77
77
|
*/
|
|
78
78
|
declare function generateHeuristicPlan(summaries: FileSummary[]): CommitGroup[];
|
|
79
79
|
|
|
80
|
-
export { SYSTEM_PROMPT as S, generateHeuristicPlan as a, buildPrompt as b,
|
|
80
|
+
export { SYSTEM_PROMPT as S, generateHeuristicPlan as a, buildPrompt as b, SYSTEM_PROMPT_WITH_DIFF as c, buildPromptWithDiff as d, generateCommitPlan as g, parseResponse as p };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as ApplyOptions, G as GenerateOptions, a as GitStatusWithStaleness, L as LLMCompleteFunction, P as PushOptions } from './types-CEjOl41u.js';
|
|
2
|
-
export { F as FileDiff,
|
|
3
|
-
export { S as SYSTEM_PROMPT, b as buildPrompt, g as generateCommitPlan, a as generateHeuristicPlan, p as parseResponse } from './heuristics-
|
|
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';
|
|
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';
|
|
@@ -82,4 +82,4 @@ declare function detectCommitStyle(commits: string[]): {
|
|
|
82
82
|
avgLength: number;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
export { type FileDiff as F,
|
|
85
|
+
export { type FileDiff as F, getCurrentBranch as a, getFileDiff as b, getFileSummaries as c, detectCommitStyle as d, getGitStatus as e, formatFileSummary as f, getAllChangedFiles as g, getRecentCommits as h, hasChanges as i, isProtectedBranch as j, getFileDiffs as k };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kb-labs/commit-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core business logic for KB Labs Commit plugin - git analysis, plan generation, and commit application.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,36 +34,36 @@
|
|
|
34
34
|
"LICENSE"
|
|
35
35
|
],
|
|
36
36
|
"sideEffects": false,
|
|
37
|
-
"scripts": {
|
|
38
|
-
"pretype-check": "pnpm --filter @kb-labs/commit-core build",
|
|
39
|
-
"clean": "rimraf dist",
|
|
40
|
-
"build": "tsup --config tsup.config.ts",
|
|
41
|
-
"dev": "tsup --config tsup.config.ts --watch",
|
|
42
|
-
"lint": "eslint src --ext .ts",
|
|
43
|
-
"lint:fix": "eslint . --fix",
|
|
44
|
-
"type-check": "tsc --noEmit",
|
|
45
|
-
"test": "vitest run --passWithNoTests",
|
|
46
|
-
"test:watch": "vitest",
|
|
47
|
-
"test:benchmarks": "vitest run tests/benchmarks/commit-type-accuracy.test.ts",
|
|
48
|
-
"test:all": "vitest run && vitest run tests/benchmarks/commit-type-accuracy.test.ts"
|
|
49
|
-
},
|
|
50
37
|
"dependencies": {
|
|
51
|
-
"@kb-labs/commit-contracts": "^0.6.0",
|
|
52
|
-
"@kb-labs/sdk": "^1.5.0",
|
|
53
38
|
"globby": "^11.0.0",
|
|
54
39
|
"minimatch": "^10.0.1",
|
|
55
|
-
"simple-git": "^3.25.0"
|
|
40
|
+
"simple-git": "^3.25.0",
|
|
41
|
+
"@kb-labs/sdk": "1.6.6",
|
|
42
|
+
"@kb-labs/commit-contracts": "2.9.0"
|
|
56
43
|
},
|
|
57
44
|
"devDependencies": {
|
|
58
|
-
"@kb-labs/devkit": "link:../../../../infra/kb-labs-devkit",
|
|
59
45
|
"@types/node": "^24.3.3",
|
|
60
46
|
"rimraf": "^6.0.1",
|
|
61
47
|
"tsup": "^8.5.0",
|
|
62
48
|
"typescript": "^5.6.3",
|
|
63
|
-
"vitest": "^3.2.4"
|
|
49
|
+
"vitest": "^3.2.4",
|
|
50
|
+
"@kb-labs/devkit": "2.9.0"
|
|
64
51
|
},
|
|
65
52
|
"engines": {
|
|
66
53
|
"node": ">=20.0.0",
|
|
67
54
|
"pnpm": ">=9.0.0"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"pretype-check": "pnpm --filter @kb-labs/commit-core build",
|
|
58
|
+
"clean": "rimraf dist",
|
|
59
|
+
"build": "tsup --config tsup.config.ts",
|
|
60
|
+
"dev": "tsup --config tsup.config.ts --watch",
|
|
61
|
+
"lint": "eslint src --ext .ts",
|
|
62
|
+
"lint:fix": "eslint . --fix",
|
|
63
|
+
"type-check": "tsc --noEmit",
|
|
64
|
+
"test": "vitest run --passWithNoTests",
|
|
65
|
+
"test:watch": "vitest",
|
|
66
|
+
"test:benchmarks": "vitest run tests/benchmarks/commit-type-accuracy.test.ts",
|
|
67
|
+
"test:all": "vitest run && vitest run tests/benchmarks/commit-type-accuracy.test.ts"
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|