Release diff
release_diff
GitReleaseDiffTool — read-only SemVer bump decision for a package subdir.
GitReleaseDiffTool
Bases: AXMTool
Summarise commits/diff since the last tag to decide a SemVer bump.
Strictly read-only: issues only log, diff, tag and
rev-parse — never creates or pushes a tag. Scopes every log
and diff to the resolved package subdir so monorepo attribution
is correct. Registered as git_release_diff via axm.tools.
Source code in packages/axm-git/src/axm_git/tools/release_diff.py
| Python | |
|---|---|
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | |
name
property
Tool name used for MCP registration.
execute(*, path='.', **kwargs)
Compute a read-only release diff for the package at path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Package root (defaults to the current directory). |
'.'
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with current tag, commit summary, diffstat and a |
ToolResult
|
suggested next version. |