Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR standardizes and improves tool output schemas across Intercom, Pinecone, Supabase, and Typeform integrations by flattening the output structure and providing detailed type definitions for better discoverability and usability. Major Changes:
All changes maintain backward compatibility in response structure while improving the output schema definitions for better developer experience. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Block
participant ToolExecutor
participant Tool
participant API
User->>Block: Configure tool parameters
Block->>ToolExecutor: Execute tool with params
alt OAuth Required (e.g., Intercom, Salesforce)
ToolExecutor->>ToolExecutor: Get access token from auth
Note over ToolExecutor: For Salesforce: Extract instanceUrl from scope
ToolExecutor->>ToolExecutor: Add accessToken/instanceUrl to params
end
ToolExecutor->>Tool: Call tool.request with params
Tool->>Tool: Build URL, headers, body
Tool->>API: HTTP Request (GET/POST/PATCH/DELETE)
alt Success Response
API-->>Tool: 200/201/204 Response
Tool->>Tool: transformResponse()
alt Pinecone Upsert
Note over Tool: Returns 201 with empty body<br/>Return {statusText: "Created"}
else Typeform Update
Note over Tool: May return 204 or empty body<br/>Return {message: "success"}
else Intercom Operations
Note over Tool: Parse JSON response<br/>Return detailed typed objects
else Supabase Storage
Note over Tool: Construct path from fileName + path<br/>Return upload results
end
Tool-->>ToolExecutor: {success: true, output: {...}}
else Error Response
API-->>Tool: 4xx/5xx Response
Tool->>Tool: handleError()
Tool-->>ToolExecutor: {success: false, error: "..."}
end
ToolExecutor-->>Block: Flattened output structure
Note over Block: outputs config describes<br/>top-level fields in output object
Block-->>User: Display results with typed fields
|
c4c84f8 to
7a41917
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixed various tool outputs
Type of Change
Testing
Tested manually
Checklist