-
Notifications
You must be signed in to change notification settings - Fork 3.3k
v0.3.41: wand with azure openai, generic mysql and postgres blocks #1195
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
* Switch to node * Refactor
…o dark mode styling (#1192) * add parallel ai, postgres, mysql, slight modifications to dark mode styling * bun install frozen lockfile * new deps
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Greptile Summary
This PR introduces significant functionality expansion and bug fixes across multiple areas of the platform. The most substantial changes include adding comprehensive database connectivity for MySQL and PostgreSQL with full CRUD operations (query, insert, update, delete, execute), integrating Parallel AI for advanced web search capabilities, and several UI improvements.
Database Integration: The PR adds generic MySQL and PostgreSQL blocks that use mysql2 and postgres-js libraries respectively, replacing the previous pg library to avoid peer dependency conflicts. Both database integrations provide identical operation sets with proper connection management, SSL support, and parameter validation. Each database tool includes its own API endpoints, utility functions for connection handling, and comprehensive TypeScript type definitions.
Parallel AI Integration: A new search tool is introduced that provides intelligent web search with content processing and extraction capabilities. The tool supports multiple search queries, configurable result limits, and various processor options for different search scenarios.
UI and UX Improvements: Several styling enhancements were made, particularly for dark mode support, including updates to the slider component, code editor caret visibility, and consistent border styling. The billing UI was improved to better handle enterprise users by directing them to settings when they click the usage indicator.
Infrastructure Changes: The wand generation API was switched from 'edge' to 'nodejs' runtime with direct fetch implementation to resolve streaming issues with Azure OpenAI. The type system was expanded to support 'array' as a primitive value type for better data handling.
All changes follow established architectural patterns in the codebase, with proper separation of concerns between blocks (UI configuration), tools (business logic), and API endpoints (data layer). The database tools implement the parameter visibility system correctly, marking connection credentials as 'user-only' while allowing operational parameters to be 'user-or-llm' accessible.
Confidence score: 2/5
- This PR contains critical security vulnerabilities that make it unsafe to merge without immediate fixes
- Score severely lowered due to SQL injection vulnerabilities in PostgreSQL WHERE clause handling and missing security validations in query endpoints
- Pay close attention to
apps/sim/app/api/tools/postgresql/utils.ts,apps/sim/app/api/tools/postgresql/query/route.ts, andapps/sim/app/api/tools/postgresql/delete/route.tswhich contain serious security flaws
46 files reviewed, 15 comments
…c db blocks & supabase postgrest syntax (#1197) * add parallel ai, postgres, mysql, slight modifications to dark mode styling * bun install frozen lockfile * new deps * improve security, add wand to short input and update wand config
Uh oh!
There was an error while loading. Please reload this page.