Conversation
에이전트가 매치 하나만 보고 판단하기 어려울 때 앞뒤 문맥을 같은 왕복에서 받는다. 기본값은 기존과 완전히 동일하다 — 옵션 없으면 봉투가 한 바이트도 안 바뀐다. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Collaborator
|
누적 검토 및 반영을 완료했습니다. 이 PR의 contributor commit은 통합 PR #3895의 merge commit c09c67324로 확인한 검증은 다음과 같습니다.
원 PR별 검토 근거는 archive에 보관했습니다. 기여해 주셔서 감사합니다. |
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.
rhwp search는 매치와excerpt만 준다. 에이전트가 "이 매치가 내가 찾던 그건가"를판단하려면 앞뒤 문맥이 필요한데, 지금은 별도 명령으로 다시 왕복해야 한다.
matches[].contextBefore/contextAfter에 앞뒤 N개 문단을 담는다.문서 경계에서는 있는 만큼만 준다 — 범위 밖으로 나가지 않는다.
기본값은 한 바이트도 안 바뀐다
--context없으면 봉투가 기존과 완전히 동일하다. 기존 소비자 무회귀.--구분자 계약 유지search에는 검색어가-로 시작할 때--뒤에 둔다는 계약(#3748)이 있다.--context를 추가해도 그 계약이 그대로 동작하는지 테스트로 확인했다.검증
search_json_contract·cli_json_contract·mcp_server_contract전부 0 failed ·clippy --release -D warnings0 · rustfmt clean · 선검사 통과.