feat: integrate Supabase for database operations and migrations
Add support for Supabase database operations, including migrations and queries. Implement new Supabase-related types, actions, and components to handle database interactions. Enhance the prompt system to include Supabase-specific instructions and constraints. Ensure data integrity and security by enforcing row-level security and proper migration practices.
This commit is contained in:
@@ -35,7 +35,11 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
|
||||
|
||||
const actions = useStore(
|
||||
computed(artifact.runner.actions, (actions) => {
|
||||
return Object.values(actions);
|
||||
// Filter out Supabase actions except for migrations
|
||||
return Object.values(actions).filter((action) => {
|
||||
// Exclude actions with type 'supabase' or actions that contain 'supabase' in their content
|
||||
return action.type !== 'supabase' && !(action.type === 'shell' && action.content?.includes('supabase'));
|
||||
});
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user