@kb-labs/commit-core 0.6.0 → 2.6.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,4 +1,4 @@
1
- export { F as FileDiff, j as detectCommitStyle, f as formatFileSummary, a as getAllChangedFiles, b as getCurrentBranch, d as getFileDiff, k as getFileDiffs, c as getFileSummaries, g as getGitStatus, e as getRecentCommits, h as hasChanges, i as isProtectedBranch } from '../recent-commits-DD6LX2OI.js';
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, d as SYSTEM_PROMPT_WITH_DIFF, b as buildPrompt, c as buildPromptWithDiff, g as generateCommitPlan, a as generateHeuristicPlan, p as parseResponse } from '../heuristics-B6EsN9yD.js';
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, buildPromptWithDiff as c, SYSTEM_PROMPT_WITH_DIFF as d, generateCommitPlan as g, parseResponse as p };
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, j as detectCommitStyle, f as formatFileSummary, a as getAllChangedFiles, b as getCurrentBranch, d as getFileDiff, c as getFileSummaries, g as getGitStatus, e as getRecentCommits, h as hasChanges, i as isProtectedBranch } from './recent-commits-DD6LX2OI.js';
3
- export { S as SYSTEM_PROMPT, b as buildPrompt, g as generateCommitPlan, a as generateHeuristicPlan, p as parseResponse } from './heuristics-B6EsN9yD.js';
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, getAllChangedFiles as a, getCurrentBranch as b, getFileSummaries as c, getFileDiff as d, getRecentCommits as e, formatFileSummary as f, getGitStatus as g, hasChanges as h, isProtectedBranch as i, detectCommitStyle as j, getFileDiffs as k };
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": "0.6.0",
3
+ "version": "2.6.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",
@@ -48,14 +48,14 @@
48
48
  "test:all": "vitest run && vitest run tests/benchmarks/commit-type-accuracy.test.ts"
49
49
  },
50
50
  "dependencies": {
51
- "@kb-labs/commit-contracts": "^0.6.0",
52
- "@kb-labs/sdk": "^1.5.0",
51
+ "@kb-labs/commit-contracts": "^2.6.0",
52
+ "@kb-labs/sdk": "workspace:*",
53
53
  "globby": "^11.0.0",
54
54
  "minimatch": "^10.0.1",
55
55
  "simple-git": "^3.25.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@kb-labs/devkit": "link:../../../../infra/kb-labs-devkit",
58
+ "@kb-labs/devkit": "workspace:*",
59
59
  "@types/node": "^24.3.3",
60
60
  "rimraf": "^6.0.1",
61
61
  "tsup": "^8.5.0",