refactor(open-sse): extract safeParseJSON util, dedup tryParseJSON (B5)

Consolidate two tryParseJSON variants into helpers/jsonUtil.js with explicit
fallback param. Preserve exact per-call semantics: openai-to-claude passthrough
(fallback=str), geminiHelper null. geminiHelper keeps tryParseJSON re-export.
No behavior change; gate: no regression.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-06-13 16:45:10 +07:00
co-authored by Cursor
parent 87fe069e9e
commit b87cf0c96a
4 changed files with 12 additions and 19 deletions
File diff suppressed because one or more lines are too long