Skip to content

v0.1.5

Choose a tag to compare

@justram justram released this 24 Mar 06:03
· 65 commits to main since this release

pi-serini v0.1.5

Patch release focused on runtime JSON validation hardening.

Fixed

  • Added ajv as the runtime validation backend while keeping @sinclair/typebox as the schema authoring layer.
  • Hardened untrusted process-boundary JSON parsing for:
    • BM25 helper RPC responses
    • BM25 helper ping handshake payloads
    • shared BM25 server readiness payloads
    • pi JSON event lines consumed by benchmark and judge runners
    • extension-side BM25 search, render_search_results, and read_document responses
  • Replaced unchecked JSON.parse(...) as T casts on those boundaries with schema-backed validation and clearer error messages.
  • Added regression tests that prove malformed payloads are rejected explicitly.

Scope

v0.1.5 does not change benchmark semantics or retrieval behavior. It makes runtime failures at JSON process boundaries more explicit and safer to diagnose.