relgap

module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: Apache-2.0

README

relgap

relgap merges the release notes between two versions of a tool into one digest: breaking changes first, then deprecations, security fixes, features, fixes and the rest, each entry with a link to its source. It also lists the tool versions your repositories pin, shows which pins are behind or past their end of life, finds where repositories pin different versions, and serves all of it to agents over MCP.

relgap is pre-release, and its commands and output can still change before 1.0.

relgap digest kubectl 1.36.0..1.37.2
relgap outdated
relgap drift ~/src/infra

Install

mise use -g github:sassdavid/relgap

Release archives for Linux, macOS and Windows are on GitHub, signed with cosign and covered by build provenance attestations. Install has every channel and the verification steps.

Documentation

The docs are at relgap.sasskovacs.dev:

Contributing

Contributing covers the build, the tests and registry entries. Report a vulnerability through private vulnerability reporting.

License

Apache-2.0. The embedded registry snapshots in internal/registry/snapshot are derived from jdx/mise and aquaproj/aqua-registry, both MIT; their licenses are next to the snapshots. Each release archive has a third_party_licenses/ directory with the notices of everything compiled into the binary.

Directories

Path Synopsis
cmd
relgap command
Relgap prints release-note digests and toolchain drift for pinned tools.
Relgap prints release-note digests and toolchain drift for pinned tools.
internal
app
Package app holds Deps, the dependencies every command receives.
Package app holds Deps, the dependencies every command receives.
buildinfo
Package buildinfo reports the version, commit and build date of the binary.
Package buildinfo reports the version, commit and build date of the binary.
classify
Package classify splits release notes into entries and gives each a kind (breaking, feature, fix and so on) with a confidence.
Package classify splits release notes into entries and gives each a kind (breaking, feature, fix and so on) with a confidence.
cli
Package cli builds the cobra command tree and maps errors to exit codes.
Package cli builds the cobra command tree and maps errors to exit codes.
complete
Package complete builds shell completion functions from local data: enum flags whose help text and completions come from one list, file and directory filters, and dynamic lists with a timeout.
Package complete builds shell completion functions from local data: enum flags whose help text and completions come from one list, file and directory filters, and dynamic lists with a timeout.
config
Package config loads layered configuration and records where each value came from.
Package config loads layered configuration and records where each value came from.
docsurl
Package docsurl builds links to the relgap docs site, so help texts, messages and the config template never point users at paths in the repository.
Package docsurl builds links to the relgap docs site, so help texts, messages and the config template never point users at paths in the repository.
enrich
Package enrich adds end-of-life dates from endoflife.date and known vulnerabilities from OSV to a tool's versions, and reads the Go build info of installed binaries.
Package enrich adds end-of-life dates from endoflife.date and known vulnerabilities from OSV to a tool's versions, and reads the Go build info of installed binaries.
execx
Package execx runs external tools such as terragrunt, terraform, tofu and mise.
Package execx runs external tools such as terragrunt, terraform, tofu and mise.
ghcomment
Package ghcomment keeps one relgap comment per report kind on a GitHub pull request, edited in place and left alone when its content hasn't changed.
Package ghcomment keeps one relgap comment per report kind on a GitHub pull request, edited in place and left alone when its content hasn't changed.
github
Package github lists a repository's releases and tags and fetches release bodies.
Package github lists a repository's releases and tags and fetches release bodies.
htmlmd
Package htmlmd turns a part of an HTML page into Markdown, selected and cleaned with simple CSS selectors.
Package htmlmd turns a part of an HTML page into Markdown, selected and cleaned with simple CSS selectors.
httpx
Package httpx builds the HTTP client every network call goes through: a disk cache with ETag revalidation, retries with backoff, a per-host concurrency and rate limit, and a guard that stops at an exhausted GitHub rate limit.
Package httpx builds the HTTP client every network call goes through: a disk cache with ETag revalidation, retries with backoff, a per-host concurrency and rate limit, and a guard that stops at an exhausted GitHub rate limit.
mcpkit
Package mcpkit runs a stdio MCP server whose tools are read-only and answer with the JSON envelope of --format json, split into pages with an opaque cursor when an answer passes the size cap.
Package mcpkit runs a stdio MCP server whose tools are read-only and answer with the JSON envelope of --format json, split into pages with an opaque cursor when an answer passes the size cap.
mcpserver
Package mcpserver defines the digest, breaking_changes, outdated, drift and resolve tools and the upgrade_review prompt of `relgap mcp`.
Package mcpserver defines the digest, breaking_changes, outdated, drift and resolve tools and the upgrade_review prompt of `relgap mcp`.
mdindex
Package mdindex parses a changelog once and indexes its sections by version heading.
Package mdindex parses a changelog once and indexes its sections by version heading.
misex
Package misex runs mise and decodes its JSON output.
Package misex runs mise and decodes its JSON output.
prose
Package prose checks text against the mechanical parts of .claude/rules/writing.md.
Package prose checks text against the mechanical parts of .claude/rules/writing.md.
registry
Package registry resolves a tool name to a ToolSpec by merging the user config, relgap's curated entries, mise's registry and an index of the aqua registry.
Package registry resolves a tool name to a ToolSpec by merging the user config, relgap's curated entries, mise's registry and an index of the aqua registry.
registry/remote
Package remote looks tools up in the Terraform registry, Artifact Hub, npm, PyPI and the GitHub search API, for the resolver in package registry.
Package remote looks tools up in the Terraform registry, Artifact Hub, npm, PyPI and the GitHub search API, for the resolver in package registry.
render
Package render selects output formats and writes the JSON envelope.
Package render selects output formats and writes the JSON envelope.
report
Package report builds the reports relgap prints.
Package report builds the reports relgap prints.
sarif
Package sarif writes SARIF 2.1.0 logs, the format GitHub code scanning reads.
Package sarif writes SARIF 2.1.0 logs, the format GitHub code scanning reads.
scan
Package scan finds the tool versions a project pins (mise, asdf, aqua, Terraform, Dockerfiles, CI files and more) and maps each raw name to a registry tool.
Package scan finds the tool versions a project pins (mise, asdf, aqua, Terraform, Dockerfiles, CI files and more) and maps each raw name to a registry tool.
source
Package source fetches release notes for a tool's versions.
Package source fetches release notes for a tool's versions.
summarize
Package summarize asks a configured model for a cited upgrade-risk summary of a digest and keeps only the claims that cite entry IDs it was sent.
Package summarize asks a configured model for a cited upgrade-risk summary of a digest and keeps only the claims that cite entry IDs it was sent.
testutil
Package testutil has helpers shared by tests.
Package testutil has helpers shared by tests.
testutil/fakebin
Package fakebin turns the test binary into fake executables such as terragrunt or mise.
Package fakebin turns the test binary into fake executables such as terragrunt or mise.
testutil/ghtest
Package ghtest has GitHub settings for cassette tests: the scrubber and the token to record with.
Package ghtest has GitHub settings for cassette tests: the scrubber and the token to record with.
testutil/mcptest
Package mcptest connects an in-process MCP client to an mcpkit.Server and compares tool results with --format json golden files.
Package mcptest connects an in-process MCP client to an mcpkit.Server and compares tool results with --format json golden files.
testutil/sarifcheck
Package sarifcheck validates SARIF logs against the SARIF 2.1.0 JSON schema that GitHub's upload-sarif action checks uploads with.
Package sarifcheck validates SARIF logs against the SARIF 2.1.0 JSON schema that GitHub's upload-sarif action checks uploads with.
testutil/vcr
Package vcr records HTTP interactions into go-vcr cassettes and replays them in tests.
Package vcr records HTTP interactions into go-vcr cassettes and replays them in tests.
version
Package version parses tags under a version scheme, builds the sorted set of a tool's versions, and selects the versions in a range.
Package version parses tags under a version scheme, builds the sorted set of a tool's versions, and selects the versions in a range.
yamlschema
Package yamlschema validates YAML documents against a JSON Schema and reports each problem with its file:line:column.
Package yamlschema validates YAML documents against a JSON Schema and reports each problem with its file:line:column.
Package registry embeds the curated tool entries, one registry/<name>.yaml per tool.
Package registry embeds the curated tool entries, one registry/<name>.yaml per tool.
Package schemas embeds the JSON Schemas for config files and JSON output.
Package schemas embeds the JSON Schemas for config files and JSON output.
scripts
gendocs command
Gendocs regenerates docs/cli from the cobra command tree and exits 1 when the checked-in copy was stale.
Gendocs regenerates docs/cli from the cobra command tree and exits 1 when the checked-in copy was stale.
gensite command
Gensite writes the relgap-specific pages, fragments and data files of the docs site from code and test goldens, and exits 1 when a checked-in copy was stale.
Gensite writes the relgap-specific pages, fragments and data files of the docs site from code and test goldens, and exits 1 when a checked-in copy was stale.
proselint command
Proselint checks the repository text against .claude/rules/writing.md.
Proselint checks the repository text against .claude/rules/writing.md.
regsnapshot command
Regsnapshot writes the embedded mise and aqua registry snapshots from local checkouts of jdx/mise and aquaproj/aqua-registry.
Regsnapshot writes the embedded mise and aqua registry snapshots from local checkouts of jdx/mise and aquaproj/aqua-registry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL