The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat(assistant): upgrade AI SDK v5 → v6 (#43931)
Matt Rossmand29fbf6eb78d
diff --git a/apps/studio/lib/ai/generate-assistant-response.ts b/apps/studio/lib/ai/generate-assistant-response.tsindex d56256eadbe..0a740b37acc 100644--- a/apps/studio/lib/ai/generate-assistant-response.ts+++ b/apps/studio/lib/ai/generate-assistant-response.ts@@ -137,7 +137,7 @@ export async function generateAssistantResponse({},]: []),- ...convertToModelMessages(messages),+ ...(await convertToModelMessages(messages)),]const streamTextFn = shouldTrace ? tracedStreamText : ai.streamTextdiff --git a/apps/studio/lib/ai/model.utils.ts b/apps/studio/lib/ai/model.utils.tsindex 4fdf7736377..54fc126d775 100644--- a/apps/studio/lib/ai/model.utils.ts+++ b/apps/studio/lib/ai/model.utils.ts@@ -55,6 +55,7 @@ export const PROVIDERS: ProviderRegistry = {providerOptions: {openai: {reasoningEffort: 'minimal',+ store: false,},},},diff --git a/apps/studio/lib/ai/supabase-mcp.ts b/apps/studio/lib/ai/supabase-mcp.tsindex 6ab34dc27db..4c22a24681d 100644--- a/apps/studio/lib/ai/supabase-mcp.ts+++ b/apps/studio/lib/ai/supabase-mcp.ts@@ -1,7 +1,7 @@import { createSupabaseMcpServer } from '@supabase/mcp-server-supabase'import { createSupabaseApiPlatform } from '@supabase/mcp-server-supabase/platform/api'import { StreamTransport } from '@supabase/mcp-utils'-import { experimental_createMCPClient as createMCPClient } from 'ai'+import { createMCPClient } from '@ai-sdk/mcp'import { API_URL } from 'lib/constants'diff --git a/apps/studio/lib/api/rate.test.ts b/apps/studio/lib/api/rate.test.tsindex 499cfd5d0c3..e9d758aad92 100644--- a/apps/studio/lib/api/rate.test.ts+++ b/apps/studio/lib/api/rate.test.ts@@ -57,11 +57,12 @@ test('rate calls the tool sanitizer', async () => {}))vi.mock('ai', () => ({- generateObject: vi.fn().mockResolvedValue({- object: {+ generateText: vi.fn().mockResolvedValue({+ output: {category: 'sql_generation',},}),+ Output: { object: vi.fn() },}))vi.mock('components/ui/AIAssistantPanel/Message.utils', () => ({diff --git a/apps/studio/package.json b/apps/studio/package.jsonindex 36d3624cf1f..b070359dfee 100644--- a/apps/studio/package.json+++ b/apps/studio/package.json@@ -28,11 +28,12 @@"scorers:deploy": "IS_BRAINTRUST_PUSH=true braintrust push evals/scorer-online.ts"},"dependencies": {- "@ai-sdk/amazon-bedrock": "^3.0.0",- "@ai-sdk/openai": "2.0.32",- "@ai-sdk/provider": "^2.0.0",- "@ai-sdk/provider-utils": "^3.0.0",- "@ai-sdk/react": "2.0.52",+ "@ai-sdk/amazon-bedrock": "^4.0.81",+ "@ai-sdk/mcp": "^1.0.25",+ "@ai-sdk/openai": "^3.0.41",+ "@ai-sdk/provider": "^3.0.8",+ "@ai-sdk/provider-utils": "^4.0.19",+ "@ai-sdk/react": "^3.0.118","@aws-sdk/credential-providers": "^3.830.0","@dagrejs/dagre": "^1.0.4","@dnd-kit/core": "^6.1.0",@@ -74,7 +75,7 @@"@vercel/functions": "^2.1.0","@vitejs/plugin-react": "^4.3.4","@zip.js/zip.js": "^2.7.29",- "ai": "5.0.52",+ "ai": "^6.0.116","ai-commands": "workspace:*","awesome-debounce-promise": "^2.1.0","common": "workspace:*",@@ -106,7 +107,7 @@"next": "~16.1.7","next-themes": "^0.3.0","nuqs": "2.7.1",- "openai": "^4.75.1",+ "openai": "^4.104.0","openapi-fetch": "0.12.4","papaparse": "^5.3.1","path-to-regexp": "^8.0.0",@@ -185,7 +186,7 @@"@vitest/ui": "^3.2.0","api-types": "workspace:*","autoevals": "^0.0.132",- "braintrust": "^3.0.0",+ "braintrust": "^3.4.0","common": "workspace:*","config": "workspace:*","date-fns": "^2.30.0",diff --git a/apps/studio/pages/api/ai/feedback/classify.ts b/apps/studio/pages/api/ai/feedback/classify.tsindex bc673a9aa25..d4427b12d7d 100644--- a/apps/studio/pages/api/ai/feedback/classify.ts+++ b/apps/studio/pages/api/ai/feedback/classify.ts@@ -1,4 +1,4 @@-import { generateObject } from 'ai'+import { generateText, Output } from 'ai'import { getModel } from 'lib/ai/model'import apiWrapper from 'lib/api/apiWrapper'import { NextApiRequest, NextApiResponse } from 'next'@@ -41,11 +41,13 @@ export async function handlePost(req: NextApiRequest, res: NextApiResponse) {return res.status(500).json({ error: modelError.message })}- const { object } = await generateObject({+ const { output } = await generateText({model,providerOptions,- schema: z.object({- feedback_category: z.enum(['support', 'feedback', 'unknown']),+ output: Output.object({+ schema: z.object({+ feedback_category: z.enum(['support', 'feedback', 'unknown']),+ }),}),temperature: 0,prompt: `@@ -97,7 +99,7 @@ export async function handlePost(req: NextApiRequest, res: NextApiResponse) {`,})- return res.json({ feedback_category: object.feedback_category })+ return res.json({ feedback_category: output.feedback_category })} catch (error) {if (error instanceof Error) {console.error(`Classifying this feedback failed`)diff --git a/apps/studio/pages/api/ai/feedback/rate.ts b/apps/studio/pages/api/ai/feedback/rate.tsindex 641f11d469e..18a80e1476a 100644--- a/apps/studio/pages/api/ai/feedback/rate.ts+++ b/apps/studio/pages/api/ai/feedback/rate.ts@@ -1,4 +1,4 @@-import { generateObject } from 'ai'+import { generateText, Output } from 'ai'import { currentLogger } from 'braintrust'import { IS_PLATFORM } from 'common'import { rateMessageResponseSchema } from 'components/ui/AIAssistantPanel/Message.utils'@@ -110,10 +110,10 @@ export async function handlePost(req: NextApiRequest, res: NextApiResponse) {return res.status(500).json({ error: modelError.message })}- const { object } = await generateObject({+ const { output } = await generateText({model,providerOptions,- schema: rateMessageResponseSchema,+ output: Output.object({ schema: rateMessageResponseSchema }),prompt: `Your job is to look at a Supabase Assistant conversation, which the user has given feedback on, and classify it.@@ -148,7 +148,7 @@ Instructions:})logger?.updateSpan({id: spanId,- metadata: { feedbackCategory: object.category },+ metadata: { feedbackCategory: output.category },})} catch (error) {console.error('Failed to log feedback to Braintrust:', error)@@ -156,7 +156,7 @@ Instructions:}return res.json({- category: object.category,+ category: output.category,})} catch (error) {if (error instanceof Error) {diff --git a/apps/studio/pages/api/ai/onboarding/design.ts b/apps/studio/pages/api/ai/onboarding/design.tsindex 9e12fb09939..465e9aae53c 100644--- a/apps/studio/pages/api/ai/onboarding/design.ts+++ b/apps/studio/pages/api/ai/onboarding/design.ts@@ -102,5 +102,5 @@ async function handlePost(req: NextApiRequest, res: NextApiResponse) {tools: getTools(),})- result.pipeUIMessageStreamToResponse(res)+ result.pipeUIMessageStreamToResponse(res, { headers: { 'Content-Encoding': 'none' } })}diff --git a/apps/studio/pages/api/ai/sql/cron-v2.ts b/apps/studio/pages/api/ai/sql/cron-v2.tsindex d9344c9a43f..14e435d6171 100644--- a/apps/studio/pages/api/ai/sql/cron-v2.ts+++ b/apps/studio/pages/api/ai/sql/cron-v2.ts@@ -1,4 +1,4 @@-import { generateObject } from 'ai'+import { generateText, Output } from 'ai'import { source } from 'common-tags'import { getModel } from 'lib/ai/model'import apiWrapper from 'lib/api/apiWrapper'@@ -46,10 +46,10 @@ export async function handlePost(req: NextApiRequest, res: NextApiResponse) {return res.status(500).json({ error: modelError.message })}- const result = await generateObject({+ const result = await generateText({model,providerOptions,- schema: cronSchema,+ output: Output.object({ schema: cronSchema }),prompt: source`You are a cron syntax expert. Your purpose is to convert natural language time descriptions into valid cron expressions for pg_cron.@@ -88,7 +88,7 @@ export async function handlePost(req: NextApiRequest, res: NextApiResponse) {`,})- return res.json(result.object.cron_expression)+ return res.json(result.output.cron_expression)} catch (error) {if (error instanceof Error) {console.error(`AI cron generation failed: ${error.message}`)diff --git a/apps/studio/pages/api/ai/sql/filter-v1.ts b/apps/studio/pages/api/ai/sql/filter-v1.tsindex 1f296714c40..fd0ecb294b3 100644--- a/apps/studio/pages/api/ai/sql/filter-v1.ts+++ b/apps/studio/pages/api/ai/sql/filter-v1.ts@@ -1,4 +1,4 @@-import { generateObject } from 'ai'+import { generateText, Output } from 'ai'import { source } from 'common-tags'import { getModel } from 'lib/ai/model'import apiWrapper from 'lib/api/apiWrapper'@@ -62,10 +62,10 @@ export async function handlePost(req: NextApiRequest, res: NextApiResponse) {options: property.options,}))- const result = await generateObject({+ const result = await generateText({model,providerOptions,- schema: filterGroupSchema,+ output: Output.object({ schema: filterGroupSchema }),prompt: source`You are an expert Postgres filter builder. Convert the user's request into structured filters.@@ -84,7 +84,7 @@ export async function handlePost(req: NextApiRequest, res: NextApiResponse) {`,})- const generatedFilters = result.object+ const generatedFilters = result.outputif (!validateFilterGroup(generatedFilters, normalizedFilterProperties)) {return res.status(400).json({diff --git a/apps/studio/pages/api/ai/sql/generate-v4.ts b/apps/studio/pages/api/ai/sql/generate-v4.tsindex 27b5e08f592..c8a349421e8 100644--- a/apps/studio/pages/api/ai/sql/generate-v4.ts+++ b/apps/studio/pages/api/ai/sql/generate-v4.ts@@ -206,6 +206,7 @@ async function handlePost(req: NextApiRequest, res: NextApiResponse, claims?: Jwresult.pipeUIMessageStreamToResponse(res, {sendReasoning: true,+ headers: { 'Content-Encoding': 'none' },onError: (error) => {if (error == null) {return 'unknown error'diff --git a/apps/studio/pages/api/ai/sql/title-v2.ts b/apps/studio/pages/api/ai/sql/title-v2.tsindex 3c3a3cd6848..f415eeb1da7 100644--- a/apps/studio/pages/api/ai/sql/title-v2.ts+++ b/apps/studio/pages/api/ai/sql/title-v2.ts@@ -1,4 +1,4 @@-import { generateObject } from 'ai'+import { generateText, Output } from 'ai'import { source } from 'common-tags'import { getModel } from 'lib/ai/model'import apiWrapper from 'lib/api/apiWrapper'@@ -51,10 +51,10 @@ export async function handlePost(req: NextApiRequest, res: NextApiResponse) {return res.status(500).json({ error: modelError.message })}- const result = await generateObject({+ const result = await generateText({model,providerOptions,- schema: titleSchema,+ output: Output.object({ schema: titleSchema }),prompt: source`Generate a short title and summarized description for this Postgres SQL snippet:@@ -64,7 +64,7 @@ export async function handlePost(req: NextApiRequest, res: NextApiResponse) {`,})- return res.json(result.object)+ return res.json(result.output)} catch (error) {if (error instanceof Error) {console.error(`AI title generation failed: ${error.message}`)diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex cc3f6b1da7b..11428831975 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -757,20 +757,23 @@ importers:apps/studio:dependencies:'@ai-sdk/amazon-bedrock':- specifier: ^3.0.0- version: 3.0.0([email protected])+ specifier: ^4.0.81+ version: 4.0.81([email protected])+ '@ai-sdk/mcp':+ specifier: ^1.0.25+ version: 1.0.25([email protected])'@ai-sdk/openai':- specifier: 2.0.32- version: 2.0.32([email protected])+ specifier: ^3.0.41+ version: 3.0.41([email protected])'@ai-sdk/provider':- specifier: ^2.0.0- version: 2.0.0+ specifier: ^3.0.8+ version: 3.0.8'@ai-sdk/provider-utils':- specifier: ^3.0.0- version: 3.0.0([email protected])+ specifier: ^4.0.19+ version: 4.0.19([email protected])'@ai-sdk/react':- specifier: 2.0.52- version: 2.0.52([email protected])([email protected])+ specifier: ^3.0.118+ version: 3.0.118([email protected])([email protected])'@aws-sdk/credential-providers':specifier: ^3.830.0version: 3.830.0@@ -895,8 +898,8 @@ importers:specifier: ^2.7.29version: 2.7.30ai:- specifier: 5.0.52- version: 5.0.52([email protected])+ specifier: ^6.0.116+ version: 6.0.116([email protected])ai-commands:specifier: workspace:*version: link:../../packages/ai-commands@@ -991,7 +994,7 @@ importers:specifier: 2.7.1version: 2.7.1(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@babel/[email protected]([email protected]))(@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])openai:- specifier: ^4.75.1+ specifier: ^4.104.0openapi-fetch:specifier: 0.12.4@@ -1223,8 +1226,8 @@ importers:specifier: ^0.0.132version: 0.0.132([email protected])braintrust:- specifier: ^3.0.0+ specifier: ^3.4.0date-fns:specifier: ^2.30.0version: 2.30.0@@ -2808,17 +2811,17 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-Ff9+ksdQQB3rMncgqDK78uLznstjyfIf2Arnh22pW8kBpLs6rpKDwgnZT46hin5Hl1WzazzK64DOrhSwYpS7bQ==}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-OxNmyYRf7pY8NK69dAqpoewKtUhY/HUbpa6TDhp9zcgVmQJmhky8Q7HDetdiqopb2Pe3NB/f1nZVI73nin3qng==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-SP3LIpFt/JlK0sGs6E5jvjySvQqu/nqA942PehIGk3PZPJ5SMPsUNg+PYTs84PTUYEg8rr4XqkQOTNFq12zo2w==}engines: {node: '>=18'}peerDependencies:- zod: ^3.25.76 || ^4+ zod: ^3.25.76 || ^4.1.8- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-uyyaO4KhxoIKZztREqLPh+6/K3ZJx/rp72JKoUEL9/kC+vfQTThUfPnY/bUryUpcnawx8IY/tSoYNOi/8PCv7w==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-CkShXR8tmNO7QQnvpKbSMe2Vr1zUUcpqlp69iR+DYrbHm+tDJO9u6zZsjEHjcoRU9/e9z++p0W6NiuLC3aZ4Bg==}engines: {node: '>=18'}peerDependencies:- zod: ^3.25.76 || ^4+ zod: ^3.25.76 || ^4.1.8'@ai-sdk/[email protected]':resolution: {integrity: sha512-o9LtmBiG2WAgs3GAmL79F8idan/UupxHG8Tyr2gP4aUSOzflM0bsvfzozBp8x6WatQnOx+Pio7YNw45Y6I16iw==}@@ -2826,17 +2829,29 @@ packages:peerDependencies:zod: ^3.25.76 || ^4+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-SIQ0YY0iMuv+07HLsZ+bB990zUJ6S4ujORAh+Jv1V2KGNn73qQKnGO0JBk+w+Res8YqOFSycwDoWcFlQrVxS4A==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.25.76 || ^4.1.8++ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-vMlXUPGHGDE2vzLcPR8sw7Dhz2OBjtPU5lB+lIuC1hNQo4REuUC08P0e96/hzBKf4oQYJ8Zo6uP8AG2qThyFbg==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.25.76 || ^4.1.8+'@ai-sdk/[email protected]':resolution: {integrity: sha512-D4zYz2uR90aooKQvX1XnS00Z7PkbrcY+snUvPfm5bCabTG7bzLrVtD56nJ5bSaZG8lmuOMfXpyiEEArYLyWPpw==}engines: {node: '>=18'}peerDependencies:zod: ^3.25.76 || ^4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-p7giSkCs66Q1qYO/NPYI41CrSg65mcm8R2uAdF86+Y1D1/q4mUrWMyf5UTOJ0bx/z4jIPiNgGDCg2Kabi5zrKQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-IZ42A+FO+vuEQCVNqlnAPYQnnUpUfdJIwn1BEDOBywiEHa23fw7PahxVtlX9zm3/zMvTW4JKPzWyvAgDu+SQ2A==}engines: {node: '>=18'}peerDependencies:- zod: ^3.25.76 || ^4+ zod: ^3.25.76 || ^4.1.8'@ai-sdk/[email protected]':resolution: {integrity: sha512-BoQZtGcBxkeSH1zK+SRYNDtJPIPpacTeiMZqnG4Rv6xXjEwM0FH4MGs9c+PlhyEWmQCzjRM2HAotEydFhD4dYw==}@@ -2850,6 +2865,18 @@ packages:peerDependencies:zod: ^3.25.76 || ^4+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-3eG55CrSWCu2SXlqq2QCsFjo3+E7+Gmg7i/oRVoSZzIodTuDSfLb3MRje67xE9RFea73Zao7Lm4mADIfUETKGg==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.25.76 || ^4.1.8++ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-gpUIj9uDhIGbuo9afKEgQ074BWmhvK4THJAAeBjRnroTy2yQYo6rbtGD7pQDMZM8ouXPYmT/SCdkWVJ0KcpX8A==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.25.76 || ^4.1.8+'@ai-sdk/[email protected]':resolution: {integrity: sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==}engines: {node: '>=18'}@@ -2858,15 +2885,15 @@ packages:resolution: {integrity: sha512-6o7Y2SeO9vFKB8lArHXehNuusnpddKPk7xqL7T2/b+OvXMRIXUO1rR4wcv1hAFUAT9avGZshty3Wlua/XA7TvA==}engines: {node: '>=18'}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-4/i40pykN4gTGH264+k1g4tMGdw4xN7vZ1qESFCIm/lhS/8YiJPYheBOk9c349hytOT1sGxp3UNPcOWzWS0H2A==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-oGMAgGoQdBXbZqNG0Ze56CHjDZ1IDYOwGYxYjO5KLSlz5HiNQ9udIXsPZ61VWaHGZ5XW/jyjmr6t2xz2jGVwbQ==}+ engines: {node: '>=18'}++ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-fBAix8Jftxse6/2YJnOFkwW1/O6EQK4DK68M9DlFmZGAzBmsaHXEPVS77sVIlkaOWCy11bE7434NAVXRY+3OsQ==}engines: {node: '>=18'}peerDependencies:- react: ^18 || ^19 || ^19.0.0-rc- zod: ^3.25.76 || ^4- peerDependenciesMeta:- zod:- optional: true+ react: ^18 || ~19.0.1 || ~19.1.2 || ^19.2.1'@alloc/[email protected]':resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}@@ -2889,6 +2916,9 @@ packages:'@apm-js-collab/[email protected]':resolution: {integrity: sha512-YRjJjNq5KFSjDUoqu5pFUWrrsvGOxl6c3bu+uMFc9HNNptZ2rNU/TI2nLw4jnhQNtka972Ee2m3uqbvDQtPeCA==}+ '@apm-js-collab/[email protected]':+ resolution: {integrity: sha512-cfHtufVUBKJz6se/tQBJqizgoot5AOxhVy5B9Cuo493p6b7hXKBEIi6tcZEbr4XwN1VnV9JZOu52MMTCOCSBMw==}+'@apm-js-collab/[email protected]':resolution: {integrity: sha512-Vu1CbmPURlN5fTboVuKMoJjbO5qcq9fA5YXpskx3dXe/zTBvjODFoerw+69rVBlRLrJpwPqSDqEuJDEKIrTldw==}@@ -8321,6 +8351,9 @@ packages:'@standard-schema/[email protected]':resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==}+ '@standard-schema/[email protected]':+ resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}+'@stitches/[email protected]':resolution: {integrity: sha512-Gfkvwk9o9kE9r9XNBmJRfV8zONvXThnm1tcuojL04Uy5uRyqg93DC83lDebl0rocZCfKSjUv+fWYtMQmEDJldg==}@@ -9291,6 +9324,10 @@ packages:resolution: {integrity: sha512-OTe0KE37F5Y2eTys6eMnfopC+P4qr2ooXUTFyFPTplYSPwowmFk/HLD1FXtbKLjqsIH0SgekcJWad+C5uX4nkg==}engines: {node: '>=16'}+ '@vercel/[email protected]':+ resolution: {integrity: sha512-Fw28YZpRnA3cAHHDlkt7xQHiJ0fcL+NRcIqsocZQUSmbzeIKRpwttJjik5ZGanXP+vlA4SbTg+AbA3bP363l+w==}+ engines: {node: '>= 20'}+'@vitejs/[email protected]':resolution: {integrity: sha512-SCCPBJtYLdE8PX/7ZQAs1QAZ8Jqwih+0VBLum1EGqmCCQal+MIUqLCzj3ZUy8ufbC0cAM4LRlSTm7IQJwWT4ug==}engines: {node: ^14.18.0 || >=16.0.0}@@ -9619,6 +9656,12 @@ packages:peerDependencies:zod: ^3.25.76 || ^4+ resolution: {integrity: sha512-7yM+cTmyRLeNIXwt4Vj+mrrJgVQ9RMIW5WO0ydoLoYkewIvsMcvUmqS4j2RJTUXaF1HphwmSKUMQ/HypNRGOmA==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.25.76 || ^4.1.8+resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==}peerDependencies:@@ -10021,8 +10064,8 @@ packages:resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}engines: {node: '>=8'}- resolution: {integrity: sha512-mhpflunGgPhZC8wJxP6GPPcrFNIDgO0E77Gy/hkxSlIUaLpszfxLgQAIESccdbjH+x+PHUDiJiMIgDxNpagVHg==}+ resolution: {integrity: sha512-LsyvraUPcW+EAiUd7N5iMePrHk4n0LJ3/S4DiBljj2pLsDSavic987RPStS9L6cJG6qXc6BKCwKaLQf/1JaPuQ==}hasBin: truepeerDependencies:zod: ^3.25.34 || ^4.0@@ -10987,6 +11030,9 @@ packages:sqlite3:optional: true+ resolution: {integrity: sha512-B2PJFzWouEPzc+jLo+yTgUXaVz0eZjVsfKX9CnUDzezsluxOKOjllBpw0EJJ1KNJGnNzKpZ4dDYtd+jVp0KRNA==}+resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}@@ -11827,10 +11873,6 @@ packages:resolution: {integrity: sha512-v0eOBUbiaFojBu2s2NPBfYUoRR9GjcDNvCXVaqEf5vVfpIAh9f8RCo4vXTP8c63QRKCFwoLpMpTdPwwhEKVgzA==}engines: {node: '>=14.18'}- resolution: {integrity: sha512-nVpZkTMM9rF6AQ9gPJpFsNAMt48wIzB5TQgiTLdHiuO8XEDhUgZEhqKlZWXbIzo9VmJ/HvysHqEaVeD5v9TPvA==}- engines: {node: '>=20.0.0'}-resolution: {integrity: sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==}engines: {node: '>=18.0.0'}@@ -18173,11 +18215,6 @@ packages:peerDependencies:react: ^16.8.0 || ^17.0.0 || ^18.0.0- resolution: {integrity: sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==}- peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==}peerDependencies:@@ -18831,20 +18868,20 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/anthropic': 2.0.0([email protected])- '@ai-sdk/provider': 2.0.0- '@ai-sdk/provider-utils': 3.0.0([email protected])+ '@ai-sdk/anthropic': 3.0.62([email protected])+ '@ai-sdk/provider': 3.0.8+ '@ai-sdk/provider-utils': 4.0.20([email protected])'@smithy/eventstream-codec': 4.0.4'@smithy/util-utf8': 4.0.0aws4fetch: 1.0.20zod: 3.25.76- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 2.0.0- '@ai-sdk/provider-utils': 3.0.0([email protected])+ '@ai-sdk/provider': 3.0.8+ '@ai-sdk/provider-utils': 4.0.20([email protected])zod: 3.25.76'@ai-sdk/[email protected]([email protected])':@@ -18853,30 +18890,58 @@ snapshots:'@ai-sdk/provider-utils': 3.0.9([email protected])zod: 3.25.76+ '@ai-sdk/[email protected]([email protected])':+ dependencies:+ '@ai-sdk/provider': 3.0.8+ '@ai-sdk/provider-utils': 4.0.19([email protected])+ '@vercel/oidc': 3.1.0+ zod: 3.25.76++ '@ai-sdk/[email protected]([email protected])':+ dependencies:+ '@ai-sdk/provider': 3.0.8+ '@ai-sdk/provider-utils': 4.0.19([email protected])+ pkce-challenge: 5.0.0+ zod: 3.25.76+'@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 2.0.0'@ai-sdk/provider-utils': 3.0.0([email protected])zod: 3.25.76- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 2.0.0- '@ai-sdk/provider-utils': 3.0.9([email protected])+ '@ai-sdk/provider': 3.0.8+ '@ai-sdk/provider-utils': 4.0.19([email protected])zod: 3.25.76'@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 2.0.0- '@standard-schema/spec': 1.0.0- eventsource-parser: 3.0.3+ '@standard-schema/spec': 1.1.0+ eventsource-parser: 3.0.6zod: 3.25.76zod-to-json-schema: 3.24.5([email protected])'@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 2.0.0- '@standard-schema/spec': 1.0.0+ '@standard-schema/spec': 1.1.0+ eventsource-parser: 3.0.6+ zod: 3.25.76++ '@ai-sdk/[email protected]([email protected])':+ dependencies:+ '@ai-sdk/provider': 3.0.8+ '@standard-schema/spec': 1.1.0+ eventsource-parser: 3.0.6+ zod: 3.25.76++ '@ai-sdk/[email protected]([email protected])':+ dependencies:+ '@ai-sdk/provider': 3.0.8+ '@standard-schema/spec': 1.1.0eventsource-parser: 3.0.6zod: 3.25.76@@ -18888,15 +18953,19 @@ snapshots:dependencies:json-schema: 0.4.0+ '@ai-sdk/[email protected]':dependencies:- '@ai-sdk/provider-utils': 3.0.9([email protected])- ai: 5.0.52([email protected])+ json-schema: 0.4.0++ dependencies:+ '@ai-sdk/provider-utils': 4.0.19([email protected])+ ai: 6.0.116([email protected])react: 18.3.1swr: 2.2.5([email protected])throttleit: 2.1.0- optionalDependencies:- zod: 3.25.76+ transitivePeerDependencies:+ - zod'@alloc/[email protected]': {}@@ -18921,6 +18990,8 @@ snapshots:'@apm-js-collab/[email protected]': {}+ '@apm-js-collab/[email protected]': {}+'@apm-js-collab/[email protected]([email protected])':dependencies:'@apm-js-collab/code-transformer': 0.8.2@@ -25735,6 +25806,8 @@ snapshots:'@standard-schema/[email protected]': {}+ '@standard-schema/[email protected]': {}+'@stitches/[email protected]': {}'@stripe/[email protected](@stripe/[email protected])([email protected]([email protected]))([email protected])':@@ -26929,6 +27002,8 @@ snapshots:satori: 0.10.9yoga-wasm-web: 0.3.3+ '@vercel/[email protected]': {}+'@vitejs/[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.29.0([email protected])@@ -27382,6 +27457,14 @@ snapshots:'@opentelemetry/api': 1.9.0zod: 3.25.76+ dependencies:+ '@ai-sdk/gateway': 3.0.66([email protected])+ '@ai-sdk/provider': 3.0.8+ '@ai-sdk/provider-utils': 4.0.19([email protected])+ '@opentelemetry/api': 1.9.0+ zod: 3.25.76+optionalDependencies:ajv: 8.18.0@@ -27842,9 +27925,10 @@ snapshots:dependencies:fill-range: 7.1.1dependencies:'@ai-sdk/provider': 1.1.3+ '@apm-js-collab/code-transformer': 0.9.0'@next/env': 14.2.35'@vercel/functions': 1.6.0(@aws-sdk/[email protected])ajv: 8.18.0@@ -27854,6 +27938,7 @@ snapshots:cli-progress: 3.12.0cli-table3: 0.6.5cors: 2.8.5+ dc-browser: 1.0.3dotenv: 16.5.0esbuild: 0.25.2eventsource-parser: 1.1.2@@ -27861,14 +27946,16 @@ snapshots:graceful-fs: 4.2.11http-errors: 2.0.1minimatch: 9.0.7+ module-details-from-path: 1.0.4mustache: 4.2.0pluralize: 8.0.0simple-git: 3.32.3([email protected])source-map: 0.7.6termi-link: 1.1.0+ unplugin: 2.3.10uuid: 9.0.1zod: 3.25.76- zod-to-json-schema: 3.25.0([email protected])+ zod-to-json-schema: 3.25.1([email protected])transitivePeerDependencies:- '@aws-sdk/credential-provider-web-identity'- supports-color@@ -28969,6 +29056,8 @@ snapshots:'@electric-sql/pglite': 0.2.15drizzle-orm: 0.44.7(@electric-sql/[email protected])(@opentelemetry/[email protected])(@types/[email protected])([email protected])+ [email protected]: {}+@@ -29801,8 +29890,6 @@ snapshots:- [email protected]: {}-@@ -36978,7 +37065,7 @@ snapshots:dependencies:client-only: 0.0.1react: 18.3.1- use-sync-external-store: 1.5.0([email protected])+ use-sync-external-store: 1.6.0([email protected])@@ -37764,10 +37851,6 @@ snapshots:dependencies:react: 18.3.1- dependencies:- react: 18.3.1-dependencies:react: 18.3.1