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:
KevIsDev
2025-03-19 23:11:31 +00:00
parent 9fd5f149c9
commit 02974089de
18 changed files with 1316 additions and 12 deletions

View File

@@ -5,6 +5,10 @@ export interface PromptOptions {
cwd: string;
allowedHtmlElements: string[];
modificationTagName: string;
supabase?: {
isConnected: boolean;
hasSelectedProject: boolean;
};
}
export class PromptLibrary {
@@ -19,7 +23,7 @@ export class PromptLibrary {
default: {
label: 'Default Prompt',
description: 'This is the battle tested default system Prompt',
get: (options) => getSystemPrompt(options.cwd),
get: (options) => getSystemPrompt(options.cwd, options.supabase),
},
optimized: {
label: 'Optimized Prompt (experimental)',