docs: LS ConnectRPC reference (100+ RPC methods) + devlog + commands update

This commit is contained in:
2026-03-07 19:16:33 +09:00
parent be6fae71de
commit e4b98af308
4 changed files with 250 additions and 0 deletions

View File

@@ -14,3 +14,6 @@
| 10 | 15:00 | @bridge@gravity 이름 변경 + 슬래시 명령어 /stop /auto /send | `02e9e4d`~`0bd525a` | ✅ |
| 11 | 16:00 | sendTextToChat 탐색 → sendPromptToAgentPanel 발견 | `e4eb756`~`8d5e59c` | ✅ |
| 12 | 17:15 | 양방향 통신 완성 + 171개 명령어 문서화 + scanner 시작 수정 | `befa5d7` | ✅ |
| 13 | 17:50 | getDiagnostics 구조 프로브 → 대화 텍스트 미포함 확인 | `952883d`~`150967d` | 🔧 |
| 14 | 18:15 | LS ConnectRPC 브릿지 구현 + HTTPS 프로토콜 감지 수정 | `91b3a7e`~`f2ed431` | 🔧 |
| 15 | 18:45 | Go 바이너리에서 100+ RPC 메서드 추출 → 정확한 메서드명 적용 | `be6fae7` | 🔧 |

View File

@@ -0,0 +1,38 @@
# LS ConnectRPC 브릿지 역설계 + AI 응답 릴레이 구현
- **시간**: 2026-03-07 17:30~19:00
- **Commit**: `952883d`~`be6fae7` (6 commits)
- **Vikunja**: #223 → 진행중
## 핵심 발견
### AI 대화 텍스트는 brain/ 파일에 없다
- brain/에는 artifact (task.md, walkthrough.md, implementation_plan.md)만 저장
- .system_generated/logs/ 디렉토리도 없음
- AI 응답 텍스트는 **LS 내부 메모리**에만 존재
- getDiagnostics에는 시스템 로그와 대화 **메타데이터**(제목, step 수)만 포함
### LS ConnectRPC 접속
- LS 바이너리: `language_server_windows_x64.exe` (160MB Go)
- 프로토콜: ConnectRPC over HTTPS (자체 서명 인증서)
- 인증: `x-codeium-csrf-token` 헤더 + `--csrf_token` CLI값
- 포트: `--random_port` 사용 → netstat + PID 기반 탐색 필요
### Go 바이너리에서 100+ RPC 메서드 추출
- Python regex로 `/exa.language_server_pb.LanguageServerService/` 패턴 추출
- 핵심 메서드: `GetUserTrajectoryDescriptions`, `GetCascadeTrajectorySteps`, `StreamCascadeReactiveUpdates`
- `GetTrajectoryDescriptions`는 존재하지 않음 → SDK 타입 정의가 부정확
## 실패한 접근법
1. `onDidChangeTextDocument` — WebView 기반 채팅은 TextDocument 이벤트 미발생
2. `getManagerTrace` / `getWorkbenchTrace` — undefined 반환
3. brain/ 파일 모니터링 — artifact만 존재, 대화 텍스트 없음
4. getDiagnostics → 메타데이터만, 대화 내용 없음
5. antigravity-sdk — d.ts만 있고 JS 구현 없는 vaporware
## 미완료
- [ ] LS ConnectRPC 호출이 실제로 대화 데이터 반환하는지 검증 필요
- [ ] `GetCascadeTrajectorySteps` 응답 구조 파악 → AI 텍스트 추출 로직
- [ ] `StreamCascadeReactiveUpdates`로 실시간 릴레이 가능성 탐색