feat(guardrails): added guardrails block/tools and docs (#1605)

* Adding guardrails block

* ack PR comments

* cleanup checkbox in dark mode

* cleanup

* fix supabase tools
This commit is contained in:
Waleed
2025-10-11 19:55:17 -07:00
committed by waleed
parent bba407b507
commit ee77dea2d6
32 changed files with 2206 additions and 24 deletions

View File

@@ -2009,11 +2009,7 @@ export class Executor {
// Handle error outputs and ensure object structure
const output: NormalizedBlockOutput =
rawOutput && typeof rawOutput === 'object' && rawOutput.error
? { error: rawOutput.error, status: rawOutput.status || 500 }
: typeof rawOutput === 'object' && rawOutput !== null
? rawOutput
: { result: rawOutput }
typeof rawOutput === 'object' && rawOutput !== null ? rawOutput : { result: rawOutput }
// Update the context with the execution result
// Use virtual block ID for parallel executions