@kb-labs/commit-entry 2.104.0 → 2.106.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.
Files changed (51) hide show
  1. package/dist/cli/commands/generate.d.ts +1 -1
  2. package/dist/cli/commands/open.d.ts +1 -1
  3. package/dist/cli/commands/run.d.ts +1 -1
  4. package/dist/manifest.json +415 -0
  5. package/dist/rest/handlers/diff-handler.d.ts +2 -2
  6. package/dist/rest/handlers/generate-handler.d.ts +2 -2
  7. package/dist/rest/handlers/plan-handler.d.ts +1 -1
  8. package/dist/rest/handlers/regenerate-handler.d.ts +1 -1
  9. package/dist/rest/handlers/reset-handler.d.ts +1 -1
  10. package/dist/rest/handlers/summarize-handler.d.ts +1 -1
  11. package/dist/widgets/117.js +2 -3
  12. package/dist/widgets/165.js +1 -2
  13. package/dist/widgets/326.js +1 -2
  14. package/dist/widgets/370.js +1 -2
  15. package/dist/widgets/405.js +1 -2
  16. package/dist/widgets/46.js +2 -3
  17. package/dist/widgets/50.js +1 -2
  18. package/dist/widgets/546.js +1 -2
  19. package/dist/widgets/62.js +2 -3
  20. package/dist/widgets/648.js +1 -2
  21. package/dist/widgets/669.js +1 -2
  22. package/dist/widgets/707.js +1 -2
  23. package/dist/widgets/733.js +2 -3
  24. package/dist/widgets/775.js +1 -2
  25. package/dist/widgets/78.js +1 -2
  26. package/dist/widgets/945.js +1 -2
  27. package/dist/widgets/968.js +1 -2
  28. package/dist/widgets/__federation_expose_CommitOverview.js +1 -2
  29. package/dist/widgets/mf-manifest.json +12 -12
  30. package/dist/widgets/mf-stats.json +16 -16
  31. package/dist/widgets/remoteEntry.js +3 -4
  32. package/package.json +26 -26
  33. package/dist/widgets/117.js.map +0 -1
  34. package/dist/widgets/165.js.map +0 -1
  35. package/dist/widgets/326.js.map +0 -1
  36. package/dist/widgets/370.js.map +0 -1
  37. package/dist/widgets/405.js.map +0 -1
  38. package/dist/widgets/46.js.map +0 -1
  39. package/dist/widgets/50.js.map +0 -1
  40. package/dist/widgets/546.js.map +0 -1
  41. package/dist/widgets/62.js.map +0 -1
  42. package/dist/widgets/648.js.map +0 -1
  43. package/dist/widgets/669.js.map +0 -1
  44. package/dist/widgets/707.js.map +0 -1
  45. package/dist/widgets/733.js.map +0 -1
  46. package/dist/widgets/775.js.map +0 -1
  47. package/dist/widgets/78.js.map +0 -1
  48. package/dist/widgets/945.js.map +0 -1
  49. package/dist/widgets/968.js.map +0 -1
  50. package/dist/widgets/__federation_expose_CommitOverview.js.map +0 -1
  51. package/dist/widgets/remoteEntry.js.map +0 -1
@@ -19,7 +19,7 @@ declare const _default: _kb_labs_shared_command_kit.CommandHandlerV3<unknown, an
19
19
  type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
20
20
  id: string;
21
21
  files: string[];
22
- releaseHint: "none" | "patch" | "minor" | "major";
22
+ releaseHint: "minor" | "none" | "patch" | "major";
23
23
  breaking: boolean;
24
24
  scope?: string | undefined;
25
25
  body?: string | undefined;
@@ -24,7 +24,7 @@ declare const _default: _kb_labs_shared_command_kit.CommandHandlerV3<unknown, Op
24
24
  type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
25
25
  id: string;
26
26
  files: string[];
27
- releaseHint: "none" | "patch" | "minor" | "major";
27
+ releaseHint: "minor" | "none" | "patch" | "major";
28
28
  breaking: boolean;
29
29
  scope?: string | undefined;
30
30
  body?: string | undefined;
@@ -21,7 +21,7 @@ declare const _default: _kb_labs_shared_command_kit.CommandHandlerV3<unknown, CL
21
21
  type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
22
22
  id: string;
23
23
  files: string[];
24
- releaseHint: "none" | "patch" | "minor" | "major";
24
+ releaseHint: "minor" | "none" | "patch" | "major";
25
25
  breaking: boolean;
26
26
  scope?: string | undefined;
27
27
  body?: string | undefined;
@@ -0,0 +1,415 @@
1
+ {
2
+ "schema": "kb.plugin/3",
3
+ "id": "@kb-labs/commit",
4
+ "version": "0.1.0",
5
+ "configSection": "commit",
6
+ "display": {
7
+ "name": "Commit Generator",
8
+ "description": "AI-powered conventional commit generation",
9
+ "tags": [
10
+ "commit",
11
+ "git",
12
+ "ai",
13
+ "conventional-commits"
14
+ ]
15
+ },
16
+ "platform": {
17
+ "requires": [
18
+ "storage",
19
+ "cache"
20
+ ],
21
+ "optional": [
22
+ "llm",
23
+ "analytics",
24
+ "logger"
25
+ ]
26
+ },
27
+ "cli": {
28
+ "groupMeta": [
29
+ {
30
+ "path": "commit",
31
+ "describe": "AI-powered conventional commit generation."
32
+ }
33
+ ],
34
+ "commands": [
35
+ {
36
+ "path": "commit",
37
+ "category": "Pipeline",
38
+ "describe": "Generate and apply commits (default flow).",
39
+ "operationType": "execute",
40
+ "longDescription": "Analyzes changes, generates commit plan with LLM, applies commits locally. Use --dry-run to preview without applying, --with-push to push after applying.",
41
+ "handler": "./cli/commands/run.js#default",
42
+ "flags": [
43
+ {
44
+ "name": "scope",
45
+ "type": "string",
46
+ "alias": "s",
47
+ "description": "Filter by package name (@kb-labs/core), wildcard (@kb-labs/*), or path pattern (packages/**)"
48
+ },
49
+ {
50
+ "name": "json",
51
+ "type": "boolean",
52
+ "default": false,
53
+ "description": "Output JSON"
54
+ },
55
+ {
56
+ "name": "dry-run",
57
+ "type": "boolean",
58
+ "default": false,
59
+ "description": "Generate plan only, do not apply"
60
+ },
61
+ {
62
+ "name": "with-push",
63
+ "type": "boolean",
64
+ "default": false,
65
+ "description": "Push after apply"
66
+ }
67
+ ],
68
+ "examples": [
69
+ "kb commit commit",
70
+ "kb commit commit --dry-run",
71
+ "kb commit commit --with-push",
72
+ "kb commit commit --scope \"src/components/**\""
73
+ ]
74
+ },
75
+ {
76
+ "path": "commit generate",
77
+ "category": "Pipeline",
78
+ "describe": "Generate commit plan from git changes.",
79
+ "operationType": "execute",
80
+ "longDescription": "Analyzes staged and unstaged changes using git diff, then uses LLM to group related changes and generate conventional commit messages.",
81
+ "handler": "./cli/commands/generate.js#default",
82
+ "flags": [
83
+ {
84
+ "name": "scope",
85
+ "type": "string",
86
+ "alias": "s",
87
+ "description": "Filter by package name (@kb-labs/core), wildcard (@kb-labs/*), or path pattern (packages/**)"
88
+ },
89
+ {
90
+ "name": "json",
91
+ "type": "boolean",
92
+ "default": false,
93
+ "description": "Output JSON"
94
+ }
95
+ ],
96
+ "examples": [
97
+ "kb commit generate",
98
+ "kb commit generate --json",
99
+ "kb commit generate --scope \"packages/**\""
100
+ ]
101
+ },
102
+ {
103
+ "path": "commit apply",
104
+ "category": "Pipeline",
105
+ "describe": "Apply current commit plan (create local commits).",
106
+ "operationType": "mutate",
107
+ "longDescription": "Creates git commits according to the current plan. Checks for staleness (working tree changes since plan generation) unless --force is used.",
108
+ "handler": "./cli/commands/apply.js#default",
109
+ "flags": [
110
+ {
111
+ "name": "force",
112
+ "type": "boolean",
113
+ "alias": "f",
114
+ "default": false,
115
+ "description": "Apply even if working tree changed"
116
+ },
117
+ {
118
+ "name": "json",
119
+ "type": "boolean",
120
+ "default": false,
121
+ "description": "Output JSON"
122
+ }
123
+ ],
124
+ "examples": [
125
+ "kb commit apply",
126
+ "kb commit apply --force"
127
+ ]
128
+ },
129
+ {
130
+ "path": "commit push",
131
+ "category": "Pipeline",
132
+ "describe": "Push commits to remote repository.",
133
+ "operationType": "execute",
134
+ "longDescription": "Pushes local commits to the remote. Refuses force push to protected branches (main, master) by default.",
135
+ "handler": "./cli/commands/push.js#default",
136
+ "flags": [
137
+ {
138
+ "name": "force",
139
+ "type": "boolean",
140
+ "alias": "f",
141
+ "default": false,
142
+ "description": "Force push (dangerous!)"
143
+ },
144
+ {
145
+ "name": "json",
146
+ "type": "boolean",
147
+ "default": false,
148
+ "description": "Output JSON"
149
+ }
150
+ ],
151
+ "examples": [
152
+ "kb commit push"
153
+ ]
154
+ },
155
+ {
156
+ "path": "commit open",
157
+ "category": "Plan",
158
+ "describe": "Show current commit plan.",
159
+ "operationType": "read",
160
+ "longDescription": "Displays the current commit plan if one exists.",
161
+ "handler": "./cli/commands/open.js#default",
162
+ "flags": [
163
+ {
164
+ "name": "json",
165
+ "type": "boolean",
166
+ "default": false,
167
+ "description": "Output JSON"
168
+ }
169
+ ],
170
+ "examples": [
171
+ "kb commit open",
172
+ "kb commit open --json"
173
+ ]
174
+ },
175
+ {
176
+ "path": "commit reset",
177
+ "category": "Plan",
178
+ "describe": "Clear current commit plan.",
179
+ "operationType": "mutate",
180
+ "longDescription": "Removes the current commit plan from storage.",
181
+ "handler": "./cli/commands/reset.js#default",
182
+ "flags": [],
183
+ "examples": [
184
+ "kb commit reset"
185
+ ]
186
+ }
187
+ ]
188
+ },
189
+ "capabilities": [],
190
+ "permissions": {
191
+ "fs": {
192
+ "read": [
193
+ "**/.git/**",
194
+ "**/.gitignore",
195
+ "**/.gitattributes",
196
+ ".kb/**",
197
+ ".kb/commit/**"
198
+ ],
199
+ "write": [
200
+ "**/.git/**",
201
+ "**/.gitignore",
202
+ "**/.gitattributes",
203
+ ".kb/**",
204
+ ".kb/commit/**"
205
+ ]
206
+ },
207
+ "env": {
208
+ "read": [
209
+ "HOME",
210
+ "USER",
211
+ "PATH",
212
+ "SHELL",
213
+ "TERM",
214
+ "LANG",
215
+ "LC_ALL",
216
+ "TZ",
217
+ "TMPDIR",
218
+ "GIT_*",
219
+ "SSH_AUTH_SOCK",
220
+ "SSH_AGENT_PID",
221
+ "NODE_ENV",
222
+ "KB_*",
223
+ "KB_COMMIT_LLM_ENABLED",
224
+ "KB_COMMIT_LLM_TEMPERATURE",
225
+ "KB_COMMIT_LLM_MAX_TOKENS",
226
+ "KB_COMMIT_STORAGE_DIR",
227
+ "KB_COMMIT_AUTO_STAGE"
228
+ ]
229
+ },
230
+ "platform": {
231
+ "llm": true,
232
+ "analytics": true,
233
+ "cache": {
234
+ "namespaces": [
235
+ "commit:"
236
+ ]
237
+ }
238
+ },
239
+ "quotas": {
240
+ "timeoutMs": 600000,
241
+ "memoryMb": 512
242
+ }
243
+ },
244
+ "rest": {
245
+ "basePath": "/v1/plugins/commit",
246
+ "routes": [
247
+ {
248
+ "method": "GET",
249
+ "path": "/scopes",
250
+ "handler": "./rest/handlers/scopes-handler.js#default",
251
+ "output": {
252
+ "zod": "@kb-labs/sdk#SelectDataSchema"
253
+ }
254
+ },
255
+ {
256
+ "method": "GET",
257
+ "path": "/status",
258
+ "handler": "./rest/handlers/status-handler.js#default",
259
+ "output": {
260
+ "zod": "@kb-labs/commit-contracts#StatusResponseSchema"
261
+ }
262
+ },
263
+ {
264
+ "method": "POST",
265
+ "path": "/generate",
266
+ "handler": "./rest/handlers/generate-handler.js#default",
267
+ "input": {
268
+ "zod": "@kb-labs/commit-contracts#GenerateRequestSchema"
269
+ },
270
+ "output": {
271
+ "zod": "@kb-labs/commit-contracts#GenerateResponseSchema"
272
+ },
273
+ "timeoutMs": 300000
274
+ },
275
+ {
276
+ "method": "GET",
277
+ "path": "/plan",
278
+ "handler": "./rest/handlers/plan-handler.js#default",
279
+ "output": {
280
+ "zod": "@kb-labs/commit-contracts#PlanResponseSchema"
281
+ }
282
+ },
283
+ {
284
+ "method": "POST",
285
+ "path": "/apply",
286
+ "handler": "./rest/handlers/apply-handler.js#default",
287
+ "input": {
288
+ "zod": "@kb-labs/commit-contracts#ApplyRequestSchema"
289
+ },
290
+ "output": {
291
+ "zod": "@kb-labs/commit-contracts#ApplyResponseSchema"
292
+ },
293
+ "timeoutMs": 600000
294
+ },
295
+ {
296
+ "method": "POST",
297
+ "path": "/push",
298
+ "handler": "./rest/handlers/push-handler.js#default",
299
+ "input": {
300
+ "zod": "@kb-labs/commit-contracts#PushRequestSchema"
301
+ },
302
+ "output": {
303
+ "zod": "@kb-labs/commit-contracts#PushResponseSchema"
304
+ },
305
+ "timeoutMs": 600000
306
+ },
307
+ {
308
+ "method": "DELETE",
309
+ "path": "/plan",
310
+ "handler": "./rest/handlers/reset-handler.js#default",
311
+ "output": {
312
+ "zod": "@kb-labs/commit-contracts#ResetResponseSchema"
313
+ }
314
+ },
315
+ {
316
+ "method": "GET",
317
+ "path": "/git-status",
318
+ "handler": "./rest/handlers/git-status-handler.js#default",
319
+ "output": {
320
+ "zod": "@kb-labs/commit-contracts#GitStatusResponseSchema"
321
+ }
322
+ },
323
+ {
324
+ "method": "GET",
325
+ "path": "/files",
326
+ "handler": "./rest/handlers/files-handler.js#default"
327
+ },
328
+ {
329
+ "method": "GET",
330
+ "path": "/diff",
331
+ "handler": "./rest/handlers/diff-handler.js#default",
332
+ "output": {
333
+ "zod": "@kb-labs/commit-contracts#FileDiffResponseSchema"
334
+ }
335
+ },
336
+ {
337
+ "method": "POST",
338
+ "path": "/summarize",
339
+ "handler": "./rest/handlers/summarize-handler.js#default",
340
+ "input": {
341
+ "zod": "@kb-labs/commit-contracts#SummarizeRequestSchema"
342
+ },
343
+ "output": {
344
+ "zod": "@kb-labs/commit-contracts#SummarizeResponseSchema"
345
+ }
346
+ },
347
+ {
348
+ "method": "GET",
349
+ "path": "/actions",
350
+ "handler": "./rest/handlers/actions-handler.js#default",
351
+ "output": {
352
+ "zod": "@kb-labs/commit-contracts#ActionsResponseSchema"
353
+ }
354
+ },
355
+ {
356
+ "method": "PATCH",
357
+ "path": "/plan",
358
+ "handler": "./rest/handlers/patch-plan-handler.js#default",
359
+ "input": {
360
+ "zod": "@kb-labs/commit-contracts#PatchPlanRequestSchema"
361
+ },
362
+ "output": {
363
+ "zod": "@kb-labs/commit-contracts#PatchPlanResponseSchema"
364
+ }
365
+ },
366
+ {
367
+ "method": "POST",
368
+ "path": "/regenerate-commit",
369
+ "handler": "./rest/handlers/regenerate-handler.js#default",
370
+ "input": {
371
+ "zod": "@kb-labs/commit-contracts#RegenerateCommitRequestSchema"
372
+ },
373
+ "output": {
374
+ "zod": "@kb-labs/commit-contracts#RegenerateCommitResponseSchema"
375
+ },
376
+ "timeoutMs": 300000
377
+ }
378
+ ]
379
+ },
380
+ "studio": {
381
+ "version": 2,
382
+ "remoteName": "commitPlugin",
383
+ "pages": [
384
+ {
385
+ "id": "commit.overview",
386
+ "title": "Commit",
387
+ "icon": "GitlabOutlined",
388
+ "route": "/p/commit",
389
+ "entry": "./CommitOverview",
390
+ "order": 1
391
+ }
392
+ ],
393
+ "menus": [
394
+ {
395
+ "id": "commit",
396
+ "label": "Commit",
397
+ "icon": "GitlabOutlined",
398
+ "target": "commit.overview",
399
+ "order": 30
400
+ }
401
+ ]
402
+ },
403
+ "artifacts": [
404
+ {
405
+ "id": "commit.plan.json",
406
+ "pathTemplate": ".kb/commit/current/plan.json",
407
+ "description": "Current commit plan."
408
+ },
409
+ {
410
+ "id": "commit.status.json",
411
+ "pathTemplate": ".kb/commit/current/status.json",
412
+ "description": "Git status snapshot at plan generation time."
413
+ }
414
+ ]
415
+ }
@@ -10,10 +10,10 @@ declare const _default: _kb_labs_shared_command_kit.Handler<unknown, RestInput<{
10
10
  scope?: string;
11
11
  file?: string;
12
12
  }, unknown, unknown>, {
13
+ file: string;
14
+ scope: string;
13
15
  additions: number;
14
16
  deletions: number;
15
- scope: string;
16
- file: string;
17
17
  diff: string;
18
18
  }>;
19
19
 
@@ -31,7 +31,7 @@ declare const _default: _kb_labs_shared_command_kit.Handler<unknown, RestInput<u
31
31
  type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
32
32
  id: string;
33
33
  files: string[];
34
- releaseHint: "none" | "patch" | "minor" | "major";
34
+ releaseHint: "minor" | "none" | "patch" | "major";
35
35
  breaking: boolean;
36
36
  scope?: string | undefined;
37
37
  body?: string | undefined;
@@ -53,8 +53,8 @@ declare const _default: _kb_labs_shared_command_kit.Handler<unknown, RestInput<u
53
53
  } | undefined;
54
54
  planPath?: string | undefined;
55
55
  secrets?: {
56
- type: string;
57
56
  file: string;
57
+ type: string;
58
58
  line: number;
59
59
  column: number;
60
60
  pattern: string;
@@ -25,7 +25,7 @@ declare const _default: _kb_labs_shared_command_kit.Handler<unknown, RestInput<{
25
25
  type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
26
26
  id: string;
27
27
  files: string[];
28
- releaseHint: "none" | "patch" | "minor" | "major";
28
+ releaseHint: "minor" | "none" | "patch" | "major";
29
29
  breaking: boolean;
30
30
  scope?: string | undefined;
31
31
  body?: string | undefined;
@@ -20,7 +20,7 @@ declare const _default: _kb_labs_shared_command_kit.Handler<unknown, RestInput<u
20
20
  type: "feat" | "fix" | "refactor" | "chore" | "docs" | "test" | "build" | "ci" | "perf";
21
21
  id: string;
22
22
  files: string[];
23
- releaseHint: "none" | "patch" | "minor" | "major";
23
+ releaseHint: "minor" | "none" | "patch" | "major";
24
24
  breaking: boolean;
25
25
  scope?: string | undefined;
26
26
  body?: string | undefined;
@@ -9,8 +9,8 @@ import { RestInput } from '@kb-labs/sdk';
9
9
  declare const _default: _kb_labs_shared_command_kit.Handler<unknown, RestInput<{
10
10
  scope?: string;
11
11
  }, unknown, unknown>, {
12
- message: string;
13
12
  scope: string;
13
+ message: string;
14
14
  success: boolean;
15
15
  }>;
16
16
 
@@ -14,8 +14,8 @@ declare const _default: _kb_labs_shared_command_kit.Handler<unknown, RestInput<u
14
14
  }, unknown>, {
15
15
  scope: string;
16
16
  summary: string;
17
- tokensUsed?: number | undefined;
18
17
  file?: string | undefined;
18
+ tokensUsed?: number | undefined;
19
19
  }>;
20
20
 
21
21
  export { _default as default };