This commit is contained in:
Joshen Lim committed 2025-09-18 21:53:38 +08:00
1 parent b41c93fc4d
commit 68cefc8e09
3 files changed
+12 -3

No files matched your search

+4 -1
View File
@@ -1,10 +1,13 @@
import { ToolSet } from 'ai'
import { IS_PLATFORM } from 'common'
import { AiOptInLevel } from '../org-ai-details'
import { filterToolsByOptInLevel } from '../tool-filter'
import { getFallbackTools } from './fallback-tools'
import { getMcpTools } from './mcp-tools'
import { getRenderingTools } from './rendering-tools'
import { getFallbackTools } from './fallback-tools'
import { getSchemaTools } from './schema-tools'
export const getTools = async ({
+1 -1
View File
@@ -1,4 +1,4 @@
import { AiOptInLevel } from 'hooks/misc/useOrgOptedIntoAi'
import { AiOptInLevel } from '../org-ai-details'
import { createSupabaseMCPClient } from '../supabase-mcp'
import { filterToolsByOptInLevel, toolSetValidationSchema } from '../tool-filter'
+7 -1
View File
@@ -1,7 +1,13 @@
// @ts-nocheck
import { tool } from 'ai'
import { getDatabasePolicies } from 'data/database-policies/database-policies-query'
// import { getDatabasePolicies } from 'data/database-policies/database-policies-query'
import { z } from 'zod'
const getDatabasePolicies = async (val: any, val2: any, val3: any) => {
return { data: [] }
}
export const getSchemaTools = ({
projectRef,
connectionString,