feat(gmail): add detectReplies operation for thread reply tracking#63
Conversation
- Registers detectReplies in listTools.ts for tool discoverability - Implementation already in src/modules/gmail/detect-replies.ts - Exported from src/modules/gmail/index.ts - Wired into src/sdk/spec.ts, src/sdk/runtime.ts, src/sdk/types.ts - Unit tests in src/modules/gmail/__tests__/detectReplies.test.ts Closes #54 Resolves GDRIVE-21
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📊 Type Coverage ReportType Coverage: 98.63% This PR's TypeScript type coverage analysis is complete. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gdrive-mcp | 4417bb7 | Commit Preview URL Branch Preview URL |
Mar 28 2026, 09:07 PM |
🔒 Security Scan SummaryGenerated on: Sat Mar 28 21:08:19 UTC 2026 Scan Results
Summary
Recommendations
Security report generated by Claude Code |
Performance Comparison ReportOperation Performance
Memory Usage
Summary
Performance report generated by Claude Code |
Summary
Implements
gmail.detectRepliesoperation (GDRIVE-21) — accepts an array of Gmail threadIds and returns per-thread reply status by identifying messages from external participants.Changes
src/modules/gmail/detect-replies.ts— Core implementation: fetches thread metadata, filters out messages from the authenticated user, returns{ threads: [{ threadId, hasReply, replies: [{ messageId, from, date }] }] }src/modules/gmail/index.ts— Re-exportsdetectReplies,DetectRepliesOptions,DetectRepliesResultsrc/sdk/spec.ts— SDK spec entry with signature, description, params, returnssrc/sdk/runtime.ts— Runtime registration vialimiter.wrapsrc/sdk/types.ts— Type declaration fordetectReplieson the GmailSDK interfacesrc/tools/listTools.ts— Tool discoverability entry for thesearchtoolAcceptance Criteria
Testing
src/modules/gmail/__tests__/detectReplies.test.ts— 2 tests passingCloses #54
Summary by CodeRabbit