Skip to content

Commit 62c07bc

Browse files
author
waleed
committed
fix supabase tools
1 parent dd256da commit 62c07bc

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

apps/sim/lib/guardrails/validate_pii.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async function executePythonPIIDetection(
8080
language: string,
8181
requestId: string
8282
): Promise<PIIValidationResult> {
83-
return new Promise((resolve) => {
83+
return new Promise((resolve, reject) => {
8484
// Use path relative to project root
8585
// In Next.js, process.cwd() returns the project root
8686
const guardrailsDir = path.join(process.cwd(), 'lib/guardrails')

apps/sim/tools/supabase/delete.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const deleteTool: ToolConfig<SupabaseDeleteParams, SupabaseDeleteResponse
1717
table: {
1818
type: 'string',
1919
required: true,
20-
visibility: 'user-only',
20+
visibility: 'user-or-llm',
2121
description: 'The name of the Supabase table to delete from',
2222
},
2323
filter: {
@@ -29,7 +29,7 @@ export const deleteTool: ToolConfig<SupabaseDeleteParams, SupabaseDeleteResponse
2929
apiKey: {
3030
type: 'string',
3131
required: true,
32-
visibility: 'hidden',
32+
visibility: 'user-only',
3333
description: 'Your Supabase service role secret key',
3434
},
3535
},

apps/sim/tools/supabase/get_row.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const getRowTool: ToolConfig<SupabaseGetRowParams, SupabaseGetRowResponse
1717
table: {
1818
type: 'string',
1919
required: true,
20-
visibility: 'user-only',
20+
visibility: 'user-or-llm',
2121
description: 'The name of the Supabase table to query',
2222
},
2323
filter: {
@@ -29,7 +29,7 @@ export const getRowTool: ToolConfig<SupabaseGetRowParams, SupabaseGetRowResponse
2929
apiKey: {
3030
type: 'string',
3131
required: true,
32-
visibility: 'hidden',
32+
visibility: 'user-only',
3333
description: 'Your Supabase service role secret key',
3434
},
3535
},

apps/sim/tools/supabase/insert.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const insertTool: ToolConfig<SupabaseInsertParams, SupabaseInsertResponse
1717
table: {
1818
type: 'string',
1919
required: true,
20-
visibility: 'user-only',
20+
visibility: 'user-or-llm',
2121
description: 'The name of the Supabase table to insert data into',
2222
},
2323
data: {
@@ -29,7 +29,7 @@ export const insertTool: ToolConfig<SupabaseInsertParams, SupabaseInsertResponse
2929
apiKey: {
3030
type: 'string',
3131
required: true,
32-
visibility: 'hidden',
32+
visibility: 'user-only',
3333
description: 'Your Supabase service role secret key',
3434
},
3535
},

apps/sim/tools/supabase/query.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const queryTool: ToolConfig<SupabaseQueryParams, SupabaseQueryResponse> =
1717
table: {
1818
type: 'string',
1919
required: true,
20-
visibility: 'user-only',
20+
visibility: 'user-or-llm',
2121
description: 'The name of the Supabase table to query',
2222
},
2323
filter: {
@@ -41,7 +41,7 @@ export const queryTool: ToolConfig<SupabaseQueryParams, SupabaseQueryResponse> =
4141
apiKey: {
4242
type: 'string',
4343
required: true,
44-
visibility: 'hidden',
44+
visibility: 'user-only',
4545
description: 'Your Supabase service role secret key',
4646
},
4747
},

apps/sim/tools/supabase/update.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const updateTool: ToolConfig<SupabaseUpdateParams, SupabaseUpdateResponse
1717
table: {
1818
type: 'string',
1919
required: true,
20-
visibility: 'user-only',
20+
visibility: 'user-or-llm',
2121
description: 'The name of the Supabase table to update',
2222
},
2323
filter: {
@@ -35,7 +35,7 @@ export const updateTool: ToolConfig<SupabaseUpdateParams, SupabaseUpdateResponse
3535
apiKey: {
3636
type: 'string',
3737
required: true,
38-
visibility: 'hidden',
38+
visibility: 'user-only',
3939
description: 'Your Supabase service role secret key',
4040
},
4141
},

apps/sim/tools/supabase/upsert.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const upsertTool: ToolConfig<SupabaseUpsertParams, SupabaseUpsertResponse
1717
table: {
1818
type: 'string',
1919
required: true,
20-
visibility: 'user-only',
20+
visibility: 'user-or-llm',
2121
description: 'The name of the Supabase table to upsert data into',
2222
},
2323
data: {
@@ -29,7 +29,7 @@ export const upsertTool: ToolConfig<SupabaseUpsertParams, SupabaseUpsertResponse
2929
apiKey: {
3030
type: 'string',
3131
required: true,
32-
visibility: 'hidden',
32+
visibility: 'user-only',
3333
description: 'Your Supabase service role secret key',
3434
},
3535
},

0 commit comments

Comments
 (0)