feat(codepipeline): add AWS CodePipeline integration with tools and block#4945
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Eight authenticated Reviewed by Cursor Bugbot for commit 1a5a510. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryAdds an AWS CodePipeline integration with 8 tools (start/stop execution, get pipeline state, get/list executions, list pipelines, retry stage, put approval result) backed by server-side AWS SDK v3 routes, a CodePipeline block with operation dropdown, Zod-validated contracts, and a generated docs page.
Confidence Score: 5/5Safe to merge — all eight routes are correctly guarded by internal auth and Zod contract validation, the shared The integration follows established patterns from other AWS integrations in the codebase. Both issues flagged in the previous review thread (AWS error status mapping and unguarded JSON.parse) are addressed. AWS credentials use No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant Block as CodePipeline Block
participant Tool as Tool Config (params fn)
participant Route as /api/tools/codepipeline/<op>
participant Auth as checkInternalAuth
participant Zod as Zod Contract Validation
participant AWS as AWS CodePipeline SDK
Block->>Tool: operation + block params
Tool->>Tool: parseOptionalJsonInput / parseOptionalNumberInput / parseOptionalBooleanInput
Tool->>Route: "POST { region, accessKeyId, secretAccessKey, ...opParams }"
Route->>Auth: checkInternalAuth(request)
Auth-->>Route: "{ success, userId }"
Route->>Zod: parseToolRequest(contract, request)
Zod-->>Route: validated body or 400 error
Route->>AWS: "new CodePipelineClient({ region, credentials })"
AWS-->>Route: response or error
Note over Route,AWS: awsErrorStatus maps 4xx from $metadata
Route-->>Block: "{ success: true, output } or { error, status: 4xx/5xx }"
Reviews (3): Last reviewed commit: "fix(codepipeline): address review feedba..." | Re-trigger Greptile |
…integration # Conflicts: # apps/docs/components/icons.tsx
|
@greptile review |
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.
Reviewed by Cursor Bugbot for commit 860a1ce. Configure here.
|
@greptile review |
…t into previous commit
…gger from catalog The native Sim workspace-event trigger is documented at triggers/sim — the block writer no longer emits an integrations page for it (skip + canonical-set exclusion). CodePipeline (simstudioai#4945) lands in the catalog in the Actions format. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

Summary
Type of Change
Testing
Tested manually.
bun run lint:check,tsc --noEmit, andbun run check:api-validation:strictall pass.Checklist