Repository navigation
chore(release): 0.13.22 — Per-tenant filesystem storage, server-side error bodies, Bun 1.4.4 floor - #848
Conversation
Bun 1.4.4 fixes bun:sqlite multi-statement exec dropping a failing statement's error (#632). hono ^4.13.16 → ^4.13.17; @biomejs/biome 2.6.5 → 2.6.6 (framework and scaffold); @opentelemetry/instrumentation-pino ^0.70.0 → ^0.71.0 (dev), peer ^0.70.0 → ^0.70.0 || ^0.71.0; @opentelemetry/semantic-conventions ^1.44.0 → ^1.45.0 (dev); openai ^7.47.0 → ^7.53.0 (dev); scaffold tsc-alias ^1.9.9 → ^1.9.10.
…ma input Output and enrichment parsing defers validation so z.stringbool(), cross-type pipes, and codecs return their parsed value; a success result with a top-level error key is refused, and handler returns take the schema input type (#846).
…ent, and Bun floor changes Adds the AuthContext.token no-passthrough note and corrects a V8 version comment in encoding.ts.
…error bodies, Bun 1.4.4 floor Version bump, changelog entry, rollup, and tree.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Under a .passthrough() or .catchall() output root, a service-layer enrich of a declared output field replaced the parsed value unparsed; it now fails as -32603 naming the enrichment contract. The enrichment schema is built once per tool instead of on every call.
The three opt-in cases say they send body and responseBody on the wire rather than comparing against an earlier wire shape.
Names the enrichment open-root refusal and the antipattern script's header change, states the error-body bullets as the behavior that holds, and moves the htmlExtractor docs bullet under Changed.
|
Review pass on Fixes
The PR body's Automated review
Considered and left alone
Gates on No out-of-scope issues filed. |
Filesystem storage keeps every valid key as written and gives every tenant its own directory, captured upstream error bodies stay off client envelopes by default, tool output fields with transforming schemas stop failing successful calls, and
engines.bunrises to>=1.4.4.Changes
filesystemstorage stores every valid key as written under a percent-encoded_v2/layout and copies an existing store once on first start (bug(storage): FileSystemProvider normalizes valid keys on disk, so they collide or fail #656)filesystemstorage gives every valid tenant ID its own directory on every filesystem (bug(storage): FileSystemProvider tenants that differ only in case share one directory on case-insensitive filesystems #845, security)cloudflare-kvandcloudflare-r2reject over-limit key names withValidationErrorbefore any binding call; KVlisttakeslimitup to 10,000, R2deleteManysends at most 1,000 keys per call (bug(storage): KV and R2 reject keys that StorageService accepts #840)httpErrorFromResponseandfetchWithTimeoutstay server-side;exposeBody/exposeErrorBodysend them to the client per call (feat(utils): keep captured upstream error bodies off the client by default #590, security)AbortErrors, and mid-stream body failures map toRequestCancelled,Timeout, or retryableServiceUnavailable(bug(utils): fetchWithTimeout misclassifies failures after the response starts #604, bug(fetch): an abort neither signal raised reports RequestCancelled, not a retryable failure #799, bug(fetch): a 2xx body read that fails mid-stream rejects with the raw runtime error #819)z.stringbool(), cross-type.pipe(), orz.codec()return their parsed value; a success result with a top-levelerrorkey, or an enriched key replacing a declared output field, is refused; handler returns take the schema's input side (bug(tool): an output field declared with z.stringbool(), a cross-type .pipe(), or a codec fails every successful call #846)z.preprocess()-wrapped lists as sent, and costs a small multiple of one parse (bug(tool): a numeric string repaired past a .max() bound is rejected as the wrong type #745, bug(tool): a wrong-type rejection also renders a length check Zod measured on the wrong type #719, perf(tools): bound argument repair work to a small multiple of the Zod parse #739, security)engines.bunrises to>=1.4.4; opening a SQLite mirror store on an older Bun throwsConfigurationError(bug(mirror): on Bun below 1.4.4, SqliteHandle.exec ignores a failing statement that isn't the last one #632, breaking)pdfParser.extractTextdestroys its pdf.js document (bug(pdfParser): extractText never destroys the PDF document it opens #810); the HTTP transport sends an unwritable errordatafield as'[Unreadable]'; canvas export symlink tests (bug(canvas): DuckDB export symlink check leaves a check/open TOCTOU window #334);htmlExtractorsynchronous-cost docs (bug(parsing): htmlExtractor CPU time grows quadratically with nesting depth #755); speech provider@throws,AuthContext.token, and skill docshono^4.13.16 → ^4.13.17,@biomejs/biome2.6.5 → 2.6.6, plus dev-dependency bumpsGates
Run on the finished tree (
main@ 50f9b21 + working tree) before the commit stack:bun run test:contract— 8 / 8; one pin hand-edited on purpose (validation.defaults.json5, integer for a string beside a numeric string out of range →too_big, bug(tool): a numeric string repaired past a .max() bound is rejected as the wrong type #745)tools/listbyte-identicalOn the release branch head after review (
420b889d):bun run devcheck— exit 0; one exempt Security Audit warning, all transitive (dev tree only)bun run rebuild— exit 0bun run test:alllanes — exit 0: Bun + coverage 309 files, 10,231 passed / 15 skipped; Node 309 files, 10,231 passed / 15 skipped; worker 14 files / 162; worker bundle 1 / 1; integration 33 files / 330 on Bun and on Nodebun run test:package— exit 0, 1 / 1CHANGELOG v0.13.22