Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR adds comprehensive integration with Enrich.so, a B2B data enrichment and LinkedIn intelligence platform. The implementation includes 30 tools covering person/company enrichment, email finding/verification, LinkedIn data extraction, and post analytics. Key additions:
Implementation quality:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Block as Enrich Block
participant Registry as Tool Registry
participant Tool as Enrich Tool
participant API as Enrich.so API
User->>Block: Configure operation & API key
Block->>Block: Validate & parse parameters
Note over Block: Parse JSON fields<br/>(currentJobTitles, skills, etc.)
Block->>Block: Map operation to tool name
Block->>Registry: Lookup tool by ID
Registry->>Tool: Return tool instance
Tool->>Tool: Build request URL/body
Note over Tool: Add Authorization header<br/>Bearer {apiKey}
Tool->>API: HTTP GET/POST request
API-->>Tool: JSON response
Tool->>Tool: Transform response
Note over Tool: Map API fields to output schema<br/>Handle queued responses (202)
Tool-->>Block: Return ToolResponse
Block-->>User: Output data
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| request: { | ||
| url: (params) => { | ||
| const url = new URL('https://api.enrich.so/v2/api/linkedin-to-email') | ||
| url.searchParams.append('linkedin_profile', params.linkedinProfile.trim()) |
There was a problem hiding this comment.
Both LinkedIn email tools use identical API endpoint
High Severity
The linkedInToWorkEmailTool and linkedInToPersonalEmailTool both call the exact same endpoint (https://api.enrich.so/v2/api/linkedin-to-email) with identical parameters. The Enrich.so API documentation shows separate endpoints exist for "Profile URL to Work Email" and "Profile URL to Personal Email". As currently implemented, users selecting the "LinkedIn to Personal Email" operation will actually get work email results (or the same results as work email), making the personal email feature non-functional.


Summary
Type of Change
Testing
Tested manually
Checklist