Uh oh!
There was an error while loading. Please reload this page.
feat(tools): added clerk tools and block - #3032
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR adds comprehensive Clerk authentication integration to Sim, introducing 11 new tools and a unified block for managing users, organizations, and sessions. Changes
ArchitectureThe implementation follows established patterns in the codebase:
Issues Found
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Sim Workflow
participant Clerk Block
participant Tool Registry
participant Clerk API
User->>Sim Workflow: Configure Clerk Block
User->>Clerk Block: Select operation (e.g., "List Users")
User->>Clerk Block: Provide Secret Key
User->>Clerk Block: Set operation parameters
Sim Workflow->>Clerk Block: Execute block
Clerk Block->>Clerk Block: Map UI params to tool params
Clerk Block->>Tool Registry: Request tool (e.g., clerk_list_users)
Tool Registry-->>Clerk Block: Return tool config
Clerk Block->>Clerk API: HTTP Request with Authorization
Note over Clerk Block,Clerk API: GET/POST/PATCH/DELETE to<br/>api.clerk.com/v1/*
alt Success
Clerk API-->>Clerk Block: 200 OK + Response data
Clerk Block->>Clerk Block: Transform response
Clerk Block-->>Sim Workflow: Return formatted output
Sim Workflow-->>User: Display results
else Error
Clerk API-->>Clerk Block: 4xx/5xx + Error details
Clerk Block->>Clerk Block: Log error
Clerk Block-->>Sim Workflow: Throw error with message
Sim Workflow-->>User: Show error message
end
|
Uh oh!
There was an error while loading. Please reload this page.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
* feat(tools): added clerk tools and block * updated docs gen script * use clerk api types
Summary
Type of Change
Testing
Tested manually
Checklist