Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

Commit 7ee9f27

Browse files
committed
refactor(gitcommit)!: move tool arguments to top level
Move parameters from the nested args object to the top level in git_edit and git_read. Update validation.lua and output.lua to handle vim.NIL values and support nullable schema types. BREAKING CHANGE: Tool arguments are now top-level instead of nested under an args key in git_edit and git_read.
1 parent 091f33b commit 7ee9f27

File tree

8 files changed

+481
-426
lines changed

8 files changed

+481
-426
lines changed

lua/codecompanion/_extensions/gitcommit/tools/ai_release_notes.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,20 @@ AIReleaseNotes.schema = {
2020
type = "object",
2121
properties = {
2222
from_tag = {
23-
type = "string",
23+
type = { "string", "null" },
2424
description = "Starting tag/version (if not provided, uses second latest tag)",
2525
},
2626
to_tag = {
27-
type = "string",
27+
type = { "string", "null" },
2828
description = "Ending tag/version (if not provided, uses latest tag or HEAD)",
2929
},
3030
style = {
31-
type = "string",
31+
type = { "string", "null" },
3232
enum = { "detailed", "concise", "changelog", "marketing" },
33-
description = "Style of release notes to generate",
33+
description = "Style of release notes to generate. Default: detailed",
3434
},
3535
},
36+
required = { "from_tag", "to_tag", "style" },
3637
additionalProperties = false,
3738
},
3839
strict = true,

0 commit comments

Comments
 (0)