Repository navigation
feat(mcp-server): 터미널에서 작업 반영 표시를 남기는 mark_reflected 도구 추가 - #45
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ected # Conflicts: # packages/notify/src/browser.ts
바뀐 결정 사항 찾기 · PR #45
@RCatMin 이 PR에서 결정 사항이 바뀐 것 같은데 확실하지 않아요.
+ // 표시 풀기는 답 내용과 상관없이 받아요
+ if (!input.reflected) return { ok: true };
+ if (!answer.affected) {
+ 'not_affected',
+ '관계없다로 답한 확인할 변경이라 작업 반영을 표시하지 않아요. 관계있다로 답한 변경에만 표시할 수 있어요.',결정 사항은 그대로 두었어요. 바뀐 게 맞으면 Claude Code에서 "결정 사항을 바꿔 줘"라고 말해 주세요. 바뀐 게 아니면 이 댓글은 넘어가셔도 돼요. |
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.
관련 이슈
무엇을 바꿨나요
@sil/notify에 작업 반영 표시를 저장하기 전에 검사하는checkReflect를 추가했습니다. 브라우저 입구에서도 가져올 수 있습니다.mark_reflected를 추가했습니다. 입력은 확인할 변경 ID와 작업 반영 여부(켜기/끄기) 두 가지입니다. 사람 이름은 다른 알리기 도구와 같이X-Sil-User에서 가져옵니다.apps/mcp-server와packages/notifyREADME,docs/decisions.mdD56을 고쳤습니다.왜 바꿨나요
담당자가 관계있다로 답한 뒤 실제로 작업에 반영했다는 표시를 터미널에서 남길 방법이 없었습니다.
터미널로만 일하는 사람은 반영해도 DB에 "작업 반영 안 함"으로 남았습니다.
DB 함수
save_reflected는 받은 사람인지, 답한 변경인지만 확인합니다.위키
notify.check.reflectedv2는 "관계있다로 답한 확인할 변경에만" 표시할 수 있다고 정합니다.그래서 이 규칙은 도구가 DB까지 가기 전에
checkReflect로 확인합니다. 표시 풀기는 잘못 켜진 표시를 지울 수 있도록 관계없다로 답한 변경에도 허락했습니다.wiki.mcp.five-tools는 위키를 읽고 쓰는 도구만 다섯 개로 정합니다. 알리기 도구(list_pending,respond)와 같이 따로 세는 것으로 보고 추가했습니다.어떻게 확인했나요
pnpm check를 통과했습니다 (notify 78개, 전체 vitest 174개).checkReflect단위 테스트: 관계있다 통과, 관계없다 거절, 표시 풀기 허락, 대기·대체됨·자동 닫힘 거절, 없는 변경·다른 사람 변경 거절, 답을 찾지 못한 경우 거절을 확인했습니다.list_pending에reflected: true가 보이는 것, 표시 풀기, DB 거절 문장이 그대로 전달되는 것을 확인했습니다.mark_reflected를 추가했습니다. 안내문 9번에도 "관계있다"가 들어가서, 관계있다 결정 사항 칸이 없는지 보는 검사는 칸 제목으로 확인하도록 바꿨습니다.직접 확인하지 못한 부분