You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 519a249
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(adapter): hoist JSONL scan loop into shared helper
The pi, kimi, qwen, openclaw, and copilot parsers all repeated the same
three-step boilerplate after the previous commit: iterate `byte_lines`,
skip lines rejected by the `LinePrefilter`, and `serde_json::from_slice`
each surviving line into a `Value`.
Move that loop into a single `prefiltered_json_values` helper in
`fast.rs` that yields the parsed `Value`s, and have every line-delimited
adapter consume it. This removes the duplicated scan/parse glue and
leaves each adapter with only its own per-record logic.
No behavior change: the helper performs the identical filter-then-parse
sequence and drops unparseable lines exactly as the inline `let Ok(..)
else { continue }` did.
0 commit comments