Repository navigation
Releases
v0.14.0
Changes since v0.13.1:
Behaviour changes
- a library caller's own AbortSignal that aborts a request of the default transport now fails it with "Request aborted by its caller before it finished" instead of "Request timed out after ms". (0bcbff9)
- the tool error for an upstream answer over 16 MiB has a new text, without the limit/filter advice; the size-cap error names a list a tool keeps whole. (85edc33)
Fixes
- a request its caller aborts says so, not that it timed out (0bcbff9)
- a tool can keep a list whole under the size cap, and an over-large source answer gets its own hint (85edc33)
Tests
- a transport test that hangs fails instead of keeping npm test running (fb59e7c)
- the stdio and drain tests end their servers whatever the outcome (89f2810)
Container images
Index digests (linux/amd64, linux/arm64); check one with gh attestation verify oci://<image>@<digest> --repo maschinenlesbar-org/abgeordnetenwatch-cli.
ghcr.io/maschinenlesbar-org/abgeordnetenwatch-cli:sha256:21846ab305c48f0784783813609000c7c787f64876e54d694ed0801c7af890e8ghcr.io/maschinenlesbar-org/abgeordnetenwatch-mcp:sha256:4b40f3dbc6c82ede991ef6f48980ada703d4d0f2b963e0b9a901629752a76965
Full Changelog: v0.13.1...v0.14.0
v0.13.1
Changes since v0.13.0:
Build / CI
- move the base image to the Debian 13 glibc security update (4a3f7cf)
Container images
Index digests (linux/amd64, linux/arm64); check one with gh attestation verify oci://<image>@<digest> --repo maschinenlesbar-org/abgeordnetenwatch-cli.
ghcr.io/maschinenlesbar-org/abgeordnetenwatch-cli:sha256:f17a8d8ac6165e4fb2aa46ac88f71c11f75758964669adb4624c74914435a689ghcr.io/maschinenlesbar-org/abgeordnetenwatch-mcp:sha256:9790947d06f1c2f4990a43b3b79d59af96e010236815aca9fa77928307fe8725
Full Changelog: v0.13.0...v0.13.1
v0.13.0
Changes since v0.12.0:
Behaviour changes
- findPolls (library and MCP tool) refuses a date that doesn't exist, such as 2026-02-30, with a validation error before any request (486dd92)
- the text of the error and the record for a request held by a 429's pause names the origin instead of "the API"; requests to other hosts are no longer paused. (c6b8c82)
sourcein every tool's result names the request (path and query), not only the collection. (01e2e1c)- listEntities answers a malformed or inconsistent total with a tool error instead of passing it on; the client has a new method page(). (6a53744)
- a filter key over 100 characters is a validation error (CLI: a usage error) instead of a request. (eaf9040)
- a name with a particle is searched as first name and particle-led last name (
searchedchanges accordingly), and the emptyreasonof getVotingRecord and getSideJobs ends in "Try the last name alone, or another spelling." (d0ef830) - findPolls'
reasonfor an empty answer has new wording. (37da87a) - a result whose page is whole no longer gets a nextOffset from the size cap, and a result whose other lists were cut carries a
reasonnaming them. (d526f83) - under --max-result-chars a result keeps its notes and its other lists whole as long as cutting the page and the texts is enough; it used to shorten the longest list, whichever that was. (367638a)
- a list over --max-result-chars keeps its first entry, with its texts cut, instead of coming back empty. (1f34d28)
- a result over --max-result-chars that has no list to shorten now has its texts cut further, or is a tool error, instead of coming back whole. fitResult returns undefined for a result it can't cut under the cap. (7633c14)
- a tool error is up to 5000 characters instead of 2000; a longer one loses its middle, marked "…[cut, N characters in all]…", instead of its end. (b06d610)
- a string cut to fit ends in "…[cut, N characters in all]" instead of "…" and is at most 2000 characters with the mark; a result with such a string says
truncated: true. (ab5675c) - tool results no longer carry tag characters, variation selectors (but U+FE0F after an emoji), soft hyphens or the other default-ignorable characters; zero-width joiners between emoji are now kept. (8626fe3)
- a tool result can carry keys with a "~2", "~3" suffix where an upstream object had keys that differ only in invisible characters or beyond the length cut. (22ad2d3)
- a result whose answer came from another origin after a redirect carries that note in
source, and the server logs a WARN record for it. (65b8c36) - tool results keep words that merely contain a short credential; a short credential glued inside a longer word is no longer replaced. (a6481e4)
- a --user-agent outside Latin-1 now ends the server with an ERROR record of .mcp and exit 2 (it crashed with a stack and exit 1, or started and failed every call). (c97179d)
- a --base-url the client's constructor refuses now ends the server with an ERROR record of .mcp and exit 2 (it crashed with a stack and exit 1, or started and failed every call). (476abb4)
- on stdio, a line that isn't JSON-RPC now gets an error answer on stdout and a WARN record on stderr (was: nothing). (64b00bb)
- on stdio, stdin's end with requests still running is an INFO record and waits for their answers; when they don't come in time, an ERROR record and exit 1 (was exit 0, silently). (4a49674)
- stderr gets a WARN record for every tool call that fails upstream or reaches its deadline. (d9c4f83)
- a call can now end up to 1 s after --call-timeout, and at the deadline a tool that keeps partial results answers with them instead of the deadline error. (3b76a7d)
- such a call now ends at once with "not sent: this server sends at most 120 requests a minute to the API …" (or the 429 pause) instead of "Request exceeded deadline" after the timeout; stderr gets a WARN record when requests start being held. The limiter's callSignal is now callScope, holding the call's signal and deadline. (2e02ecc)
- the retry record on stderr names the limiter's pause after a 429 (for example "in 5000 ms") where it named the engine's backoff. (cc87f3f)
Features
- a tool's source can cite the request it learned while running (eb21f58)
- a tool's source may be an absolute URL, for an API on a second host (3da9965)
Fixes
- a 429 pauses only the requests to the host that sent it (c6b8c82)
- a result's source is the request its answer came from (01e2e1c)
- listEntities refuses an answer whose total contradicts itself (6a53744)
- a filter key longer than 100 characters is refused before any request (eaf9040)
- a name with von, von der, zu or van finds the politician (d0ef830)
- findPolls' empty answer gives a reason that fits the question (37da87a)
- findPolls refuses a date that doesn't exist (486dd92)
- a complete page gets no nextOffset when the size cap cut another list (d526f83)
- the size cap takes from the page first and keeps the notes (367638a)
- a list is never emptied by the size cap (1f34d28)
- a page whose next entry alone is over the size cap still moves on (696a6ef)
- a result over --max-result-chars is cut to the cap, also without lists (7633c14)
- a result's source is no longer cut mid-URL like upstream text (51eb77d)
- a long tool error keeps its end, where the reason is (b06d610)
- a text cut to fit a result says so, in the text and in the result (ab5675c)
- tag characters, variation selectors and other invisible characters are cleaned out (8626fe3)
- a key that cleaning makes equal to another no longer takes its value (22ad2d3)
- an answer a redirect fetched from another host is no longer cited as the API's (65b8c36)
- a credential echoed with an invisible character inside stays out of the result (14a6d6d)
- a username no longer blanks out words of the data that contain it (a6481e4)
- a --user-agent outside Latin-1 is a usage error at start, not a crash (c97179d)
- a --base-url the client refuses is a usage error at start, not a crash (476abb4)
- a FIFO as the bearer token file is refused at once instead of hanging the start (09be6ef)
- a repeated --transport means the last one, for the bin too (a1bf9f9)
- on stdio, a line that isn't JSON-RPC is answered and logged (64b00bb)
- on stdio, the requests read before stdin ends are answered (4a49674)
- a Host header with a user name is refused (403), not a 500 (51982c6)
- slow request bodies no longer hold every request slot (2319f23)
- an HTTP client that goes away cancels its tool call (f5d2c6c)
- a browser page on an allowed origin can call the HTTP server (566a107)
- a tool call that fails upstream or at its deadline leaves a record on stderr (d9c4f83)
- at the call deadline a tool can still answer with what it has read (3b76a7d)
- cancelling the call that started the credentials lookup fails no other call (c089b97)
- a request the server's own limits would hold too long fails at once, saying why (2e02ecc)
- a retry's record names the wait the limiter holds it for (cc87f3f)
- no limiter timer overflows, and a clock set back stretches no pause (375640c)
- a 429 pauses the server's requests for at most 30 s (db2513c)
Refactoring
- getVotingRecord, getSideJobs and findPolitician cite their source from the answer (055fc11)
Tests
- check that an upstream error names the request with a 500 (73feb4d)
Build / CI
- the newer image smoke test and interop check from the kit (9ebd294)
- read the version past the registry cache before and after publishing (30afa21)
Chores
- bring the MCP kit up to date (5aef8ce)
Container images
Index digests (linux/amd64, linux/arm64); check one with gh attestation verify oci://<image>@<digest> --repo maschinenlesbar-org/abgeordnetenwatch-cli.
ghcr.io/maschinenlesbar-org/abgeordnetenwatch-cli:sha256:502a6a998a9947ac42a1ed8228e8add4d6b25732f60a89ab66ba6a1781b2829aghcr.io/maschinenlesbar-org/abgeordnetenwatch-mcp:sha256:c27723a5fb81999ed1d9aaf75b798440f2c22858474f6a78b6dbe2c905d1f9ea
Full Changelog: v0.12.0...v0.13.0
v0.12.0
Changes since v0.11.1:
Behaviour changes
- --allowed-origins takes origins, not host names (a bare host name is a usage error), and localhost origins are no longer allowed by default. (5738959)
- on stdio, an end of stdin before any input exits 1 with an ERROR record (was exit 0). (d1a1949)
Features
- drain HTTP calls in flight on SIGTERM, up to 5 s (e2fd041)
- accept the program name before the command (28ccb26)
Fixes
- the tool-call deadline keeps the process alive until the call ends (256a813)
- a call's deadline and cancellation reach every request it makes (3ea156e)
- refuse a request under a pids limit Node can't work with (b9c5b4d)
- in a memory-limited container, cap answers by the memory (f556e5b)
- match a browser Origin exactly; none is allowed by default (5738959)
- stdin closed before any message is an error, not a quiet exit 0 (d1a1949)
- warn when HTTP listens on loopback inside a container (b34beae)
- the non-loopback warning fits the container setup (5cfbfd3)
- an oversized upstream answer says what to ask instead (e17dfa0)
Documentation
- the MCP server's kit and its conformance tests in DEVELOPING.md (7755f75)
- the accepted stdio stall of a client that doesn't wait for initialize (ebf3484)
Refactoring
- the image and interop tooling as the kit has it (9524705)
- the server's generic files as the kit has them (fb02bc0)
- limits.ts as the kit has it (e4573eb)
- packages/log as the kit has it (9961330)
Tests
- M8 stops the server once the call reached the upstream, not after 50 ms (d2f22ff)
- M6 checks a Retry-After in seconds against the clock too (edd26d2)
- the image pipeline rules as the shared conformance test P32 (051e615)
- the generic tests become the shared conformance tests M1-M10 (74bef80)
- send only the headers in the 413 test (c51ad89)
Container images
Index digests (linux/amd64, linux/arm64); check one with gh attestation verify oci://<image>@<digest> --repo maschinenlesbar-org/abgeordnetenwatch-cli.
ghcr.io/maschinenlesbar-org/abgeordnetenwatch-cli:sha256:f27508db221e4c78694f951031ba194f9343e67b6ce12c38c0a5eb5320a44174ghcr.io/maschinenlesbar-org/abgeordnetenwatch-mcp:sha256:5817e4822deeaaaf23cff053137764c2f1afc45beecc56e7712eef68f26c83ca
Full Changelog: v0.11.1...v0.12.0
v0.11.1
Changes since v0.11.0:
Fixes
- one npm job per app, not one for both (33bfef8)
Build / CI
- a version on npm with the same files in another archive is published (b3199dc)
Container images
Index digests (linux/amd64, linux/arm64); check one with gh attestation verify oci://<image>@<digest> --repo maschinenlesbar-org/abgeordnetenwatch-cli.
ghcr.io/maschinenlesbar-org/abgeordnetenwatch-cli:sha256:3601bc62c18d84a1004c98fc752060c67a8b60a178ffcff336f966aa4410229bghcr.io/maschinenlesbar-org/abgeordnetenwatch-mcp:sha256:bf6777ed252121f39008fe6ed9af2b24d6da84c25728cb17c4efba1f794ed89b
Full Changelog: v0.11.0...v0.11.1
v0.11.0
Changes since v0.10.1:
Features
- MCP.md, the MCP package's README (75c683f)
- an MCP server for the abgeordnetenwatch.de API (4e05457)
- use-case operations: politician search, voting record, side jobs, polls, poll result (8241ae5)
- cancel a call with an AbortSignal (be42519)
Fixes
- read the MCP smoke test's HTTP answers with fetch, not curl -o /dev/stderr (2ae749e)
Documentation
- the MCP server in the README and DEVELOPING.md (20588f8)
Refactoring
- move the log records into packages/log, shared by the apps (a61de5f)
Build / CI
- check the MCP server against the official MCP client (836c993)
- report a failed image check as a GitHub annotation too (3d193ee)
- release and publish the MCP server with the CLI (b1a5704)
- the MCP server's image, built, smoke-tested and scanned with the CLI's (9207b1c)
- pack, install offline and run every published app, not only the CLI (9a5857f)
- bump every published app together (lockstep) (bdb9335)
Container images
Index digests (linux/amd64, linux/arm64); check one with gh attestation verify oci://<image>@<digest> --repo maschinenlesbar-org/abgeordnetenwatch-cli.
ghcr.io/maschinenlesbar-org/abgeordnetenwatch-cli:sha256:e1f61ac370e2c6d841fdc55f4e1a3efffed40a2ae98d7dfadc28d9f91199826fghcr.io/maschinenlesbar-org/abgeordnetenwatch-mcp:sha256:0b4096ec22dbaeda3f1f3066e93f2cbd80eef2bfe1975c2600a79e114177618b
Full Changelog: v0.10.1...v0.11.0
v0.10.1
Changes since v0.10.0:
Fixes
- give npm publish the tarball as ./release/ (f57160e)
Container image
Index digest (linux/amd64, linux/arm64): sha256:15d6f6b887d81728124483fdac152814cb4c92e709cce8fec54afd4e952359e9. Check it with gh attestation verify oci://<image>@sha256:15d6f6b887d81728124483fdac152814cb4c92e709cce8fec54afd4e952359e9 --repo maschinenlesbar-org/abgeordnetenwatch-cli.
Full Changelog: v0.10.0...v0.10.1
v0.10.0
Changes since v0.9.0:
Features
- exit on SIGINT, SIGTERM and SIGHUP when running as PID 1 (30159f9)
- link previews, structured data, short descriptions and a 404 page (6c16a43)
Documentation
- the container image: running it, how it is built, its licences (6ba373f)
Build / CI
- require immutable releases again (934d0dd)
- push the image to the GitHub Container Registry instead of ECR Public (161980b)
- publish the release's own tarball and push its image to ECR Public (ca2290d)
- attach the container image, its SBOMs and attestations (0508486)
- build, smoke-test and scan the image on every push (c2100e5)
- build, push and smoke-test the CLI's container image (17bdb6b)
- update commander, the SBOM tool, the site kit and the actions (c8a1735)
Container image
Index digest (linux/amd64, linux/arm64): sha256:a5a90f17988efbf0999210d81f76c204546b3b2511bb70c6cbaeacd8d6459089. Check it with gh attestation verify oci://<image>@sha256:a5a90f17988efbf0999210d81f76c204546b3b2511bb70c6cbaeacd8d6459089 --repo maschinenlesbar-org/abgeordnetenwatch-cli.
Full Changelog: v0.9.0...v0.10.0
v0.9.0
Changes since v0.8.0:
Behaviour changes
- a --base-url or baseUrl typed without
scheme://is refused withExpected an absolute http(s) URL.instead ofUnsupported scheme "<user>:". ...; the library's message shows its userinfo as ***. (f9708ea) - a base URL with a backslash, or whose scheme is not followed by exactly
//and the host (http:host,http:/host,http:///host,HTTPS:host), is a usage error (exit 2) from --base-url and an AwValidationError (... Expected an absolute http(s) URL ("https://" and the host).) in the library; before it was accepted and requested as repaired. Requests go to the base URL as WHATWG spells it: host lower-cased, a default port dropped, the path percent-encoded where WHATWG does it; error messages show that spelling, and a custom transport receives it. (4c7bbd3) - a 301/302/303/307/308 whose Location echoes the base URL's credentials is an AwApiError (exit 1,
redirect to <target> not followed) instead of being followed; its target shows *** in their place. (f45a952) - AwApiError.body may now be the decoded JSON written again (other escapes, no insignificant whitespace) when the base URL's credential hides behind an escape in it, and "" for such a body nested too deeply to write again. A 2xx error envelope's message shows *** where it echoed the credential. New public method RequestEngine.quoteServerValue(value, max?). (2bc4f6e)
- messages built from server text (an API error's detail, a 2xx error envelope's message, a Content-Type, a redirect target, a transport's reason) lose whole escape sequences instead of only their control bytes (
Database [31munavailableis nowDatabase unavailable), lose bidi, zero-width and other format characters, and have each run of whitespace (line breaks included) written as one space. AwApiError.detail shows the same text. sanitizeServerText (client internal module) reads at most the first 16 384 characters of its input. (523228f)
Fixes
- a base URL with a mistyped scheme is never echoed with its password (F7) (e909b85)
- the default transport never quotes the userinfo of a URL typed without its scheme (7eb9d43)
- an answer in millions of tiny chunks is read within bounded memory (0144a31)
- a base URL typed without its scheme never names its user name or password (f9708ea)
- requests go to the host the URL parser reads in the base URL; a backslash or a mangled scheme is refused (4c7bbd3)
- a base URL token without a password is scrubbed when a server echoes it (7b9b4b3)
- a redirect whose Location echoes the base URL's credential is not followed (f45a952)
- a credential a server echoes behind a JSON escape is scrubbed from the error (2bc4f6e)
- server text in a message is cleaned in bounded time and memory (523228f)
- a number with a long run of zeros is checked in linear time (fc7752c)
- stdout redaction also covers a URL glued onto the one before it (80cf558)
- run the SBOM tool locked and in its own read-only job (717ab95)
- keep intermediate files in a private mktemp directory (eb9a96c)
- redact URL userinfo on stdout in linear time (8631911)
Tests
- P27/P28 adapter switches METHOD, hostArgv and answerFor (template sync) (a2ef3b5)
- P30 reads back what the repo writes, through the adapter's
written(37a2d48) - P27's chunked answer is encoded as its chunk sizes are counted (4acb4d3)
- P28's redirect case reads the repo's redirect error from the adapter (6fcb256)
- conformance P28–P31 (security-audit kit) (b1b0ffe)
Full Changelog: v0.8.0...v0.9.0
v0.8.0
Changes since v0.7.1:
Behaviour changes
- such an answer is an ERROR record of abgeordnetenwatch.api, an AwParseError, instead of "Unexpected error" (abgeordnetenwatch.cli) and a plain Error. (9442afa)
- such a password now shows as *** on stderr (and stdout), where it was printed. (6d136ad)
- a filter value with a control or format character (a zero-width space, a soft hyphen, a bidi control) or with only invisible characters is a usage error (exit 2) / AwValidationError; --sort-by and sortBy are sent trimmed and must be a field name (
last_name[gt]andlast nameare refused before any request); the sort-direction refusal reads"x" is not a sort direction; use "asc" or "desc".(c257ac6) - stderr and AwValidationError messages show a refused value's invisible and format characters as \uXXXX escapes, and quote filter operators and clashing filters as JSON strings ("[xx]" stays, 'field[eq]=…' becomes "field[eq]=…"). (f77e151)
- a short write to stdout redirected to a file exits 1 with an ERROR record of abgeordnetenwatch.output instead of exit 0. (3dbe7a7)
- EngineOptions has a new option, onWarning (a function, else an AwValidationError). An answer with a lone surrogate prints U+FFFD in its place, and an answer with invalid bytes or a lone surrogate adds a WARN record of abgeordnetenwatch.api on stderr. (e6862f6)
- such an answer exits 1 with an ERROR record of abgeordnetenwatch.output instead of crashing with exit 134. (442d849)
- a print failure is an ERROR record of abgeordnetenwatch.output (was .cli), and its text changed ("The answer is nested too deeply to pretty-print[; try --compact].", "The answer is too large (more than N characters of JSON) to …"); the hint is gone where --compact would fail too. (92975ac)
- EngineOptions has a new option, bigIntegerKeys; a value other than a set or list of non-empty strings makes the constructor throw an AwValidationError. (c153141)
- the messages of AwParseError changed: "GET : unexpected response shape: expected …", "GET : error envelope in a 2xx answer: …", "GET : the number … cannot be represented exactly.", "GET : the answer is not valid JSON.", "GET : empty response body.", "GET : unexpected Content-Type "…" (expected JSON).", "GET : unsupported response charset "…".". The CLI's ERROR records of abgeordnetenwatch.api change with them. (26fc3e7)
- a transport's proto header no longer supplies other header values (Content-Type, Location, Retry-After); only an own header of that name counts. (f14f826)
- an answer holding a subnormal number that a double cannot carry as written is an AwParseError (CLI: exit 1, ERROR record of abgeordnetenwatch.api) instead of a changed value with exit 0. (13efd58)
Fixes
- the search for URLs inside an argument is linear, not quadratic (a520016)
- an answer too large to decode is an AwParseError naming the request (9442afa)
- a password in a URL anywhere in an argument is redacted on stderr, raw or percent-encoded (6d136ad)
- every value is canonicalised or refused; --sort-by takes a field name, trimmed (c257ac6)
- a refused value shows its invisible characters escaped (f77e151)
- stdout redirected to a file and cut short is an error, never exit 0 (3dbe7a7)
- invalid text in an answer is replaced with U+FFFD and reported (e6862f6)
- an answer full of DEL or C1 characters prints within memory, or is refused cleanly (442d849)
- an answer too large to print is called too large, not too deep (92975ac)
- the engine option bigIntegerKeys delivers declared members exactly (c153141)
- an error about an answer names the request, method and URL (26fc3e7)
- a response header named proto is an ordinary header (f14f826)
- a subnormal number that does not print as written is refused (13efd58)
Documentation
- a server's control characters are removed from a record, not escaped (0bc585e)
Full Changelog: v0.7.1...v0.8.0