Skip to content

feat(discord): #비서 대화 3단계 — 받기·보내기·스레드 (조회·답변만) - #156

Merged
fwkyle merged 3 commits into
mainfrom
kyle/feat/discord-chat
Oct 14, 2026
Merged

fwkyle merged 3 commits into
mainfrom
kyle/feat/discord-chat

Conversation

@fwkyle

@fwkyle fwkyle commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Why

kyle이 맥 앞에 없어도 디스코드 #비서에서 비서(계속 켜진 AI 세션)에게 묻고 답을 받게 한다. 코드는 받기·보내기만 하고 판단은 비서가 감시 도구로 구독해 한다. 조회·답변만 — 발령·결정 승인·머지는 없다.

변경

  • kadan discord watch [--once] [--interval]: 봇 REST 주기 조회(게이트웨이 없음, 의존성 0). DISCORD_USER_ID 한 명의 글만 JSON 한 줄, 인용·전달 quoted 표시, 👀 읽음 반응, 처음은 기준선, 상태 파일로 재시작 중복 0, watch 하나만(잠금)
  • kadan discord send: 2,000자 나눠 보내기, --reply-to로 스레드 열기, --thread, --edit(자기 글), 멘션 차단, #비서 밖 스레드 거절
  • kadan discord thread(이름 바꾸기·보관), kadan discord check(봇·채널·Message Content Intent 점검)
  • #비서 채널 ID: 기존 DISCORD_WEBHOOK_URL_SECRETARY 웹훅 조회(GET /webhooks/{id}/{token}, 봇 권한 불필요), 대안으로 DISCORD_SECRETARY_CHANNEL_ID 키
  • 시험이 실제 네트워크로 나가지 않음: KADAN_NOTIFY=off면 KADAN_DISCORD_API_BASE(루프백 http/https) 없이는 요청 거절
  • 문서 docs/discord-chat.md, docs/commands.md·flows.md·secrets.md·user-notify.md, 비서 스킬 절

확인

  • 전체 시험 1560/1560, check:public 0건, 유출 rg 0건
  • 실제 디스코드 최소 시험(격리 홈): 채널 ID 얻기·글 올리기·스레드 열기·답·수정·받기 한 바퀴 모두 2xx, 봇 자신의 글은 걸러짐. Message Content Intent는 켜짐(제한)

머지 뒤 kyle 확인 절차는 docs/discord-chat.md에 있다(운영 비서 구독은 kyle).

🤖 Generated with Claude Code

fwkyle and others added 3 commits October 14, 2026 17:38
조회·답변만. 게이트웨이 없이 REST 주기 조회, kyle 한 명의 글만 JSON 한 줄,
인용·전달 표시, 읽음 반응, 2,000자 나눠 보내기, 스레드 열기, 자기 글 수정.
시험은 가짜 디스코드 서버로만 돌고 KADAN_NOTIFY=off면 실제 주소로 나가지 않는다.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- 새로 처음 본 스레드는 첫 글부터(ID 나이로 판단하지 않음)
- 최소 한 번 전달: 출력이 끝난 뒤 cursor 저장, 중단 뒤 올리지 않음
- 깨진 상태 파일은 멈추고 원본 보존(없을 때만 처음 실행)
- 본문의 인용 줄·코드 블록 표시(containsQuote)와 비서 지침
- content·quotedContent의 비밀값 가림

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fwkyle
fwkyle merged commit 0a2df15 into main Oct 14, 2026
4 checks passed
@fwkyle
fwkyle deleted the kyle/feat/discord-chat branch October 14, 2026 10:57
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