Skip to content

fix: noise reduction, behavior summary prioritization, and Gemini multi-line fix#14

Merged
3rdflr merged 5 commits intomainfrom
feat/noise-reduction
Feb 23, 2026
Merged

fix: noise reduction, behavior summary prioritization, and Gemini multi-line fix#14
3rdflr merged 5 commits intomainfrom
feat/noise-reduction

Conversation

@3rdflr
Copy link
Owner

@3rdflr 3rdflr commented Feb 23, 2026

Summary

  • 불완전 라인 필터링 강화: ) / ] 로 시작하는 조각 라인, 닫힌 괄호 불균형 필터링
  • 인라인 원라이너 (cond) 오출력 제거: if (x) doSomething() 패턴이 (cond) x) doSomething() 으로 깨지던 문제 수정 — [^)] + 라인 끝 조건으로 순수 조건식만 허용
  • 빈 심볼 섹션 숨김: 내용 없는 ✏️ 변경됨 섹션 출력 제거
  • 동작 요약 우선순위 버킷: 단순 cap 8 → 카테고리별 제한
    • Tier 1 (state) / (API): 최대 4개
    • Tier 2 (guard) / (catch): 최대 2개
    • Tier 3 (cond): 최대 2개
    • Tier 4 (setState) / useEffect / (return): 최대 2개
  • 일반 함수 호출 노이즈 제거: 레이블 없는 foo() 항목 출력 제거
  • Gemini 다중 줄 요약 blockquote 수정: 여러 줄일 때 각 줄에 > 적용

Test plan

  • node dist/cli.js --repo 3rdflr/gacha_map --pr 6 — 불완전 라인 미출력 확인
  • GEMINI_API_KEY=... node dist/cli.js ... — AI 요약 다중 줄 blockquote 확인
  • ✏️ 변경됨 섹션 미출력 확인

- 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.
@github-actions
Copy link
Contributor

PR #14 — fix: noise reduction, behavior summary prioritization, and Gemini multi-line fix

3rdflr/github-mobile-reader · ed07354 · JS/TS 2개 파일 변경


🛠 Auto-generated by github-mobile-reader. Do not edit manually.

@3rdflr 3rdflr merged commit 5b7b58e into main Feb 23, 2026
1 check passed
@3rdflr 3rdflr deleted the feat/noise-reduction branch February 23, 2026 09:50
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant