Repository navigation
Releases
0.2.0
Added
- The
ears-checkcommand line on Node, as the npm package@tsnee/ears-checker-cli, with the
same output and exit statuses as the jar. It's attached to the GitHub Release as a tarball; it
isn't on npm yet. - The
ears-checkcommand line as a native binary for Linux (x64 and Arm) and macOS (Arm). It
reads Markdown through an installed cmark 0.30 or later, loaded when it runs (brew install cmark, orapt install cmarkon Debian and Ubuntu); plain text and OpenSpec JSON need
nothing installed. It never loads cmark from the current directory, even when
LD_LIBRARY_PATHorDYLD_LIBRARY_PATHhas a relative entry; on macOS it then reads no
Markdown and says which entry to remove. - The classifier as the npm package
@tsnee/ears-checker, with TypeScript declarations and a
source map leading back to the Scala sources, likewise attached to the release as a tarball and
not on npm yet. ears-checkas a Coursier app, from this repository's channel (see the README):cs install
gives the native binary on Linux and macOS (Apple silicon) and the JVM launcher elsewhere, and
cs update ears-checkmoves it to the next release.- Release notes from this changelog, and a GitHub Release for each version with the jar, both
npm tarballs, the native binaries, aSHA256SUMSfile, and build-provenance attestations.
Changed
- The README is written for users, with a quick start for each way to get ears-checker and its
limits; building and contributing moved toCONTRIBUTING.md, andSECURITY.mdsays how to
report a vulnerability privately. - JSON output starts with a format version,
"version": 1, and the release that wrote it,
"checker", and is documented field by field indocs/json-output.md, with what can change
within a version. - Markdown is read the same way on every platform: commonmark-java on the JVM, commonmark.js on
Node, and cmark natively, checked against one conformance suite. - Checking is much faster on Node and natively: a 7 MB Markdown file takes about 2 to 3 s on
every build, where Node took 43 s and the native binary 88 s (docs/performance.md). - Inline code in a Markdown requirement reads as one quoted word, as OpenSpec's JSON gives it.
- Input must be UTF-8: a file with a bad byte is an error naming its line and column. Output
is UTF-8 whatever the locale. - An empty file name is a bad argument (exit status 2).
Fixed
- Text output and messages no longer pass control characters from the input to the terminal: an
escape sequence, bell, or line separator in a requirement, a file name, or an OpenSpec name
shows as\uXXXX, so a file can't hide or forge findings on screen. Backslashes are unchanged.
Files
| File | What it is | Needs |
|---|---|---|
ears-check-0.2.0.jar |
The ears-check command line, with its dependencies |
JDK 17 or later |
tsnee-ears-checker-cli-0.2.0.tgz |
The npm package @tsnee/ears-checker-cli: npm install gives the ears-check command |
Node 22 or later |
tsnee-ears-checker-0.2.0.tgz |
The npm package @tsnee/ears-checker: npm install gives the classifier as a library, with TypeScript declarations |
Node 22 or later |
ears-check-0.2.0-linux-x64 |
ears-check as a native binary for Linux on x64 |
glibc 2.35 or later (Ubuntu 22.04, Debian 12) |
ears-check-0.2.0-linux-arm64 |
ears-check as a native binary for Linux on Arm |
glibc 2.35 or later (Ubuntu 22.04, Debian 12) |
ears-check-0.2.0-macos-arm64 |
ears-check as a native binary for macOS on Apple silicon |
macOS 15 or later |
SHA256SUMS |
The SHA-256 of every other file |
The library is on Maven Central as io.github.tsnee:ears-checker_3:0.2.0 (and
ears-checker_sjs1_3 for Scala.js), and the command line as
io.github.tsnee:ears-checker-cli_3:0.2.0.
The jar here and the one on Maven Central are built from the same tagged commit, but in
separate jobs, so they may not be identical byte for byte. The checksums and attestations below
cover the files here.
Checking the files
Each file was built and checked by this release's workflow run. Check a file before running it,
in the directory holding it and SHA256SUMS, naming the file:
grep ' ears-check-0.2.0-linux-x64$' SHA256SUMS | sha256sum -c(shasum -a 256 -c where there's no sha256sum.) That shows the download is intact, but not who
built it, since SHA256SUMS comes from the same page. The attestation shows who: this
repository's release workflow, for tag v0.2.0. Check it with the
GitHub CLI:
gh attestation verify ears-check-0.2.0-linux-x64 --repo tsnee/ears-checker \
--signer-workflow tsnee/ears-checker/.github/workflows/release.yml \
--source-ref refs/tags/v0.2.0Running the files
Run the jar with
java -XX:+IgnoreUnrecognizedVMOptions --sun-misc-unsafe-memory-access=allow -jar ears-check-0.2.0.jar:
the flag stops JDK 23 and later from warning about the Scala runtime's use of sun.misc.Unsafe,
and older JDKs skip it. Install an npm tarball with
npm install ./tsnee-ears-checker-cli-0.2.0.tgz.
The native binaries read Markdown through cmark 0.30 or later, which they load when they run:
brew install cmark on macOS, apt install cmark on Debian and Ubuntu. Plain text and OpenSpec
JSON need nothing installed. Make a binary executable with chmod +x after downloading it.
The Coursier app installs these too:
cs install --channel https://raw.githubusercontent.com/tsnee/ears-checker/main/coursier/apps.json ears-check
gets this platform's native binary, or runs the jar from Maven Central on the JVM where there's
none. Coursier keeps the binary as .ears-check.aux next to the ears-check it installs (by
default in ~/.local/share/coursier/bin on Linux and ~/Library/Application Support/Coursier/bin
on macOS); to check who built it, run the attestation command above on that file.
macOS
The macOS binary isn't signed. macOS refuses to open an unsigned program that a browser
downloaded ("Apple could not verify…"), because the browser marks the file as quarantined.
Download it with curl, which doesn't mark it:
curl -fLO https://github.com/tsnee/ears-checker/releases/download/v0.2.0/ears-check-0.2.0-macos-arm64Or, after checking its checksum and attestation as above, clear the mark from a file the browser
downloaded (this tells macOS to open it without Apple's check):
xattr -d com.apple.quarantine ears-check-0.2.0-macos-arm640.1.1
Added
ears-checklogs to standard error, one line per entry: warnings and errors by default, and
every level from debug with--verbose.
Fixed
- The Scala.js library (
ears-checker_sjs1_3) links without scala-java-locales.
Maven Central
io.github.tsnee:ears-checker_3:0.1.1andears-checker_sjs1_3:0.1.1io.github.tsnee:ears-checker-cli_3:0.1.1
0.1.0
The first release, on Maven Central.
Added
io.github.tsnee:ears-checker_3andears-checker_sjs1_3: classifies one requirement
sentence against the six EARS templates, with a diagnostic and a suggested fix where one
exists. Pure, with no IO and no effect system; Scala 3.10 or later.io.github.tsnee:ears-checker-cli_3: theears-checkcommand line, on JDK 17 or later. It
checks plain text, Markdown, and OpenSpec JSON (openspec show --json), from files or
standard input, with theclassicoropenspecprofile and text or JSON output; it exits 0
when every requirement passes, 1 when any finding is reported, and 2 for bad arguments or
input.
Maven Central
io.github.tsnee:ears-checker_3:0.1.0andears-checker_sjs1_3:0.1.0io.github.tsnee:ears-checker-cli_3:0.1.0