v0.0.24
Added
-
Signed releases with SBOMs and build provenance. Every archive now
ships a CycloneDX SBOM,checksums.txtis signed keylessly with Sigstore
cosign (published aschecksums.txt.bundle, carrying both the signature
and the signing certificate), and GitHub build provenance is attested for
each artefact. Verify with:cosign verify-blob --bundle checksums.txt.bundle \ --certificate-identity-regexp 'https://github.com/sebastienrousseau/draft/.*' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com \ checksums.txt -
--jsonruns headless and emits one JSON object per job (JSON Lines)
on stdout — source, output path, engine, mode, word count, and status —
leaving stderr for human progress, so runs can be piped into other tools. -
--completion <bash|zsh|fish>prints a shell completion script,
completing flags, engine names, and file arguments. -
Runnable examples on pkg.go.dev for
config,frontmatter,
pipeline,prompt, andrules, so every public package now documents
itself with compiled, verified code. -
An API stability note in the README: while the module is
0.0.xthe
Go API may change between releases, the CLI surface is the stable one, and
breaking changes are always listed in this file.
Changed
- The version has one source of truth. It was a hand-maintained literal
incmd/draft/main.goand an ldflags injection — the duplication is how
v0.0.22 once shipped mislabelled. It is now derived from the build info,
overridden by ldflags for releases, andmake build/make installstamp
it fromgit describe, so a local build reports exactly what it is.
Fixed
rulescoverage rose from 81.1% to 94.6%:MetricForms, which decides
whether an abbreviation and its expansion count as the same metric during
the faithfulness check, had no test at all.