-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat(tools): added clerk tools and block #3032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, 1 comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Summary
Type of Change
Testing
Tested manually
Checklist