mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 06:58:07 -05:00
improvement(tools): removed transformError, isInternalRoute, directExecution (#928)
* standardized response format for transformError * removed trasnformError, moved error handling to executeTool for all different error formats * remove isInternalRoute, make it implicit in executeTool * removed directExecution, everything on the server nothing on the client * fix supabase * fix(tag-dropdown): fix values for parallel & loop blocks (#929) * fix(search-modal): add parallel and loop blocks to search modal * reordered tool params * update docs
This commit is contained in:
@@ -370,7 +370,7 @@ function extractToolInfo(
|
||||
try {
|
||||
// Extract tool config section - Match params until the next top-level property
|
||||
const toolConfigRegex =
|
||||
/params\s*:\s*{([\s\S]*?)},?\s*(?:outputs|oauth|request|directExecution|postProcess|transformResponse|transformError)/
|
||||
/params\s*:\s*{([\s\S]*?)},?\s*(?:outputs|oauth|request|directExecution|postProcess|transformResponse)/
|
||||
const toolConfigMatch = fileContent.match(toolConfigRegex)
|
||||
|
||||
// Extract description
|
||||
@@ -455,7 +455,7 @@ function extractToolInfo(
|
||||
// First priority: Extract outputs from the new outputs field in ToolConfig
|
||||
let outputs: Record<string, any> = {}
|
||||
const outputsFieldRegex =
|
||||
/outputs\s*:\s*{([\s\S]*?)}\s*,?\s*(?:oauth|params|request|directExecution|postProcess|transformResponse|transformError|$|\})/
|
||||
/outputs\s*:\s*{([\s\S]*?)}\s*,?\s*(?:oauth|params|request|directExecution|postProcess|transformResponse|$|\})/
|
||||
const outputsFieldMatch = fileContent.match(outputsFieldRegex)
|
||||
|
||||
if (outputsFieldMatch) {
|
||||
|
||||
Reference in New Issue
Block a user