mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-10 03:30:59 +00:00
- Return String from the sanitize helpers instead of Cow: every call site feeds the result into json!, which allocates anyway, so the borrowed fast path only cost extra branches and Cow-variant tests. - Route all toolUse/toolResult construction through private tool_use_block/tool_result_block constructors that own the sanitize calls, so the toolUse/toolResult pairing invariant is enforced by construction rather than by call-site discipline. - Drop a test assertion the type system already guarantees (encoding takes &Request, so it cannot mutate the input) and assert wiring tests against the sanitize helpers instead of re-pinning the exact replacement literals in a second file. No wire-format changes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| apps | ||
| components | ||
| foundation | ||
| packages/fabro-api-client | ||