fix: noise reduction, behavior summary prioritization, and Gemini multi-line fix#14
Merged
fix: noise reduction, behavior summary prioritization, and Gemini multi-line fix#14
Conversation
- isSyntacticallyIncomplete: reject lines starting with ) or ] (continuation fragments) and treat both open and close unbalanced parens as incomplete - generateSymbolSections: skip modified symbols with no content lines (empty sections) - buildBehaviorSummary: replace flat 8-item cap with priority bucket system Tier 1 (state/API): max 4 — core data flow, always shown first Tier 2 (guard/catch): max 2 — safety/error boundaries Tier 3 (cond): max 2 — branching logic Tier 4 (setState/useEffect/return): max 2 — side effects - Remove generic function call capture (callMatch) — was producing noisy unlabeled entries
…nd) output Use [^)] in condMatch to reject conditions containing ) characters, and require the line to end after the closing brace — this eliminates patterns like 'if (x) doSomething()' which were leaking into output.
Contributor
PR #14 — fix: noise reduction, behavior summary prioritization, and Gemini multi-line fix3rdflr/github-mobile-reader · 🛠 Auto-generated by github-mobile-reader. Do not edit manually. |
3rdflr
added a commit
that referenced
this pull request
Feb 24, 2026
…ti-line fix (#14) * fix: reduce output noise and improve behavior summary prioritization - isSyntacticallyIncomplete: reject lines starting with ) or ] (continuation fragments) and treat both open and close unbalanced parens as incomplete - generateSymbolSections: skip modified symbols with no content lines (empty sections) - buildBehaviorSummary: replace flat 8-item cap with priority bucket system Tier 1 (state/API): max 4 — core data flow, always shown first Tier 2 (guard/catch): max 2 — safety/error boundaries Tier 3 (cond): max 2 — branching logic Tier 4 (setState/useEffect/return): max 2 — side effects - Remove generic function call capture (callMatch) — was producing noisy unlabeled entries * 0.1.14 * fix: render multi-line Gemini summaries as proper blockquotes * fix: prevent inline one-liner conditionals from producing garbled (cond) output Use [^)] in condMatch to reject conditions containing ) characters, and require the line to end after the closing brace — this eliminates patterns like 'if (x) doSomething()' which were leaking into output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
)/]로 시작하는 조각 라인, 닫힌 괄호 불균형 필터링(cond)오출력 제거:if (x) doSomething()패턴이(cond) x) doSomething()으로 깨지던 문제 수정 —[^)]+ 라인 끝 조건으로 순수 조건식만 허용✏️ 변경됨섹션 출력 제거(state)/(API): 최대 4개(guard)/(catch): 최대 2개(cond): 최대 2개(setState)/useEffect/(return): 최대 2개foo()항목 출력 제거>적용Test plan
node dist/cli.js --repo 3rdflr/gacha_map --pr 6— 불완전 라인 미출력 확인GEMINI_API_KEY=... node dist/cli.js ...— AI 요약 다중 줄 blockquote 확인✏️ 변경됨섹션 미출력 확인