v0.2.0
Minor Changes
-
a08b181: Add the
withPageCaptionRAG plugin and a Streamable HTTP CORS whitelist.withPageCaption— a new page-level multimodal captioning plugin
(PageCaptionOptions) that renders each PDF page and captions it through a
pluggable vision provider. It shares a singlecaption-enginewith
withVisionCaption, so the retry/backoff policy has one source of truth.
Exported from the package root.- Streamable HTTP CORS whitelist —
createMcpServernow accepts acors
option with anoriginswhitelist (exact origin orscheme://*wildcard).
Matched origins are echoed back,OPTIONSpreflight is answered, and no
Access-Control-*headers are emitted when the option is omitted. This lets
browser MCP clients (e.g. a Chrome extension) connect over HTTP.
Patch Changes
-
a08b181: CI: OIDC trusted publishing + provenance + size gate. Adds Changesets-driven
versioning/CHANGELOG, a GitHub Actionsrelease.ymlusing npm Trusted Publishing
(OIDC, tokenless) withprovenance: true, and anpm packsize guard (<100MB).
Replaces the manual webauthnnpm publishflow. -
a08b181: Mark
special_tokens_map.jsonas optional in model manifests. Some Hugging Face
model repos (e.g. certain reranker exports) ship without this file; the loader no
longer fails manifest verification when an entry flaggedoptional: trueis
absent. -
a08b181: Fix BM25 keyword recall and harden the caption pipeline.
- BM25 recall — multi-token FTS5 queries are now joined with
ORinstead of
being matched as a single quoted phrase, restoring keyword recall that an
earlier phrase-match regression had silently narrowed. - Vision caption buffer — each per-page
extractImagescall now receives its
own.slice()of the PDF bytes, becauseunpdf/pdf.js detaches the input
ArrayBufferon each call; sharing it caused "detached ArrayBuffer" failures. - Network-error retry — the shared caption engine now treats transient
network errors (ECONNRESETand friends, including nestedcausechains) as
retryable, so captioning rides out flaky vision-provider connections.
- BM25 recall — multi-token FTS5 queries are now joined with