diff --git a/lp/package.json b/lp/package.json index 1fb96a8c..5a31fbf2 100644 --- a/lp/package.json +++ b/lp/package.json @@ -12,7 +12,7 @@ "deploy:prd": "PUBLIC_ENV=prd VITE_ENV=prd pnpm build && wrangler pages deploy --project-name nepp-chan-lp-prd --branch main" }, "dependencies": { - "@ai-sdk/react": "^3.0.210", + "@ai-sdk/react": "^4.0.76", "@astrojs/check": "^0.9.10", "@astrojs/react": "^6.0.2", "@heroicons/react": "^2.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 61e122fa..d4d8ccf1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: lp: dependencies: '@ai-sdk/react': - specifier: ^3.0.210 - version: 3.0.210(react@19.2.8)(zod@4.4.3) + specifier: ^4.0.76 + version: 4.0.76(react@19.2.8)(zod@4.4.3) '@astrojs/check': specifier: ^0.9.10 version: 0.9.10(prettier@3.9.6)(typescript@6.0.3) @@ -261,8 +261,8 @@ importers: web: dependencies: '@ai-sdk/react': - specifier: ^3.0.210 - version: 3.0.210(react@19.2.8)(zod@4.4.3) + specifier: ^4.0.76 + version: 4.0.76(react@19.2.8)(zod@4.4.3) '@astrojs/check': specifier: ^0.9.10 version: 0.9.10(prettier@3.9.6)(typescript@6.0.3) @@ -379,8 +379,8 @@ importers: widget: dependencies: '@ai-sdk/react': - specifier: ^3.0.210 - version: 3.0.210(react@19.2.8)(zod@4.4.3) + specifier: ^4.0.76 + version: 4.0.76(react@19.2.8)(zod@4.4.3) '@heroicons/react': specifier: ^2.2.0 version: 2.2.0(react@19.2.8) @@ -463,12 +463,24 @@ packages: peerDependencies: zod: ^3.25.76 || ^4.1.8 + '@ai-sdk/gateway@4.0.59': + resolution: {integrity: sha512-9MPyBBXU5snhuvqMa3OSOYtHP+wlyepJ+E0E+9lVNoxLGmi4sZqGeLbIxSYZeTf7qQ2xPshtfo5qDJHaOmAHvw==} + engines: {node: '>=22'} + peerDependencies: + zod: ^3.25.76 || ^4.1.8 + '@ai-sdk/google@3.0.83': resolution: {integrity: sha512-Pz7aCX0dy+5x+r4K/37HbLZNaPtPL4q2NduzJW64VffLv5sI9Nb478wAd7PlH2r2asiypJsz/Jerf9draTciUA==} engines: {node: '>=18'} peerDependencies: zod: ^3.25.76 || ^4.1.8 + '@ai-sdk/mcp@2.0.34': + resolution: {integrity: sha512-JejeZFNplIAQpxI7F6FmE8y68kzcryJ+shmJl3hoj9DO/+ds7G/tIfGJvDEwzKhCZTZlWq5ra+MPrThx02YsGA==} + engines: {node: '>=22'} + peerDependencies: + zod: ^3.25.76 || ^4.1.8 + '@ai-sdk/openai@3.0.73': resolution: {integrity: sha512-+3x9oxHv9Xp33Iv2L8D+e5hqmZi64jofBKig/9611JKyfV59NdkaDDajtwc0CxOEfARgCVq1BW7dP+526gKOKw==} engines: {node: '>=18'} @@ -505,6 +517,12 @@ packages: peerDependencies: zod: ^3.25.76 || ^4.1.8 + '@ai-sdk/provider-utils@5.0.28': + resolution: {integrity: sha512-TnHUyd/rCYQqHg5RuiOaz/hUql6U+kbUaBW0Rp+0N5UhnAInA9CzzV0HXvuAAPwppDsK6fAx9Rd+tRawpJ/3pg==} + engines: {node: '>=22'} + peerDependencies: + zod: ^3.25.76 || ^4.1.8 + '@ai-sdk/provider@1.1.3': resolution: {integrity: sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==} engines: {node: '>=18'} @@ -525,9 +543,13 @@ packages: resolution: {integrity: sha512-e0CpNWJUY7OxAFAnCZkw+ri9QOHWwTs1tXP42782KFGCU07qt8NiXCrCVowyCB5dP2r5/Uls+g2oPd8kOJn9dw==} engines: {node: '>=22'} - '@ai-sdk/react@3.0.210': - resolution: {integrity: sha512-VprBlyc8yvwlpIdcIICL307vRncXrLlmcRTY/7JR5ND9+LvUcxJU16yW6prClFahqEWVza8Vr8P4Bgk5ZBtp4A==} - engines: {node: '>=18'} + '@ai-sdk/provider@4.0.7': + resolution: {integrity: sha512-6or44XprPzKbr8zkmzosowSE0pxkvJcoojBL+mCZvPUt3kvXp3XSNqeVun9golb1acEfSo6yaEBRT18h2VU+1Q==} + engines: {node: '>=22'} + + '@ai-sdk/react@4.0.76': + resolution: {integrity: sha512-CVzR29UV0mR69G6VZJUyM+GI28G5GOO/dmgD3K7MRBi4rbMxLC0WD6OuQjXNK/GaaVUuj6PiRbh2nPUOgPfaWQ==} + engines: {node: '>=22'} peerDependencies: react: ^18 || ~19.0.1 || ~19.1.2 || ^19.2.1 @@ -3493,6 +3515,12 @@ packages: peerDependencies: zod: ^3.25.76 || ^4.1.8 + ai@7.0.73: + resolution: {integrity: sha512-rm2Rk68seeyhfgXl1JA/oaHcQHL018AfgydkJWx7Bgz0wGDHyvl30SnRIU2V7ZVR60A5K0SOLyP78EZmEJ2tOw==} + engines: {node: '>=22'} + peerDependencies: + zod: ^3.25.76 || ^4.1.8 + ajv-draft-04@1.0.0: resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==} peerDependencies: @@ -6326,8 +6354,8 @@ packages: engines: {node: '>=16'} hasBin: true - swr@2.4.1: - resolution: {integrity: sha512-2CC6CiKQtEwaEeNiqWTAw9PGykW8SR5zZX8MZk6TeAvEAnVS7Visz8WzphqgtQ8v2xz/4Q5K+j+SeMaKXeeQIA==} + swr@2.5.1: + resolution: {integrity: sha512-BRw55e8r0B7SpDN20CAzoQAHl7y1yP7/Zt7oqUjMv0vSt2u2Xnkm88Ws+VypbV9BXHQVuSuyVq7zMjO16wSExw==} peerDependencies: react: ^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 @@ -7066,12 +7094,26 @@ snapshots: '@vercel/oidc': 3.2.0 zod: 4.4.3 + '@ai-sdk/gateway@4.0.59(zod@4.4.3)': + dependencies: + '@ai-sdk/provider': 4.0.7 + '@ai-sdk/provider-utils': 5.0.28(zod@4.4.3) + '@vercel/oidc': 3.2.0 + zod: 4.4.3 + '@ai-sdk/google@3.0.83(zod@4.4.3)': dependencies: '@ai-sdk/provider': 3.0.10 '@ai-sdk/provider-utils': 4.0.30(zod@4.4.3) zod: 4.4.3 + '@ai-sdk/mcp@2.0.34(zod@4.4.3)': + dependencies: + '@ai-sdk/provider': 4.0.7 + '@ai-sdk/provider-utils': 5.0.28(zod@4.4.3) + pkce-challenge: 5.0.1 + zod: 4.4.3 + '@ai-sdk/openai@3.0.73(zod@4.4.3)': dependencies: '@ai-sdk/provider': 3.0.10 @@ -7114,6 +7156,15 @@ snapshots: eventsource-parser: 3.1.1 zod: 4.4.3 + '@ai-sdk/provider-utils@5.0.28(zod@4.4.3)': + dependencies: + '@ai-sdk/provider': 4.0.7 + '@standard-schema/spec': 1.1.0 + '@workflow/serde': 4.1.0 + eventsource-parser: 3.1.1 + undici: 7.29.0 + zod: 4.4.3 + '@ai-sdk/provider@1.1.3': dependencies: json-schema: 0.4.0 @@ -7134,12 +7185,18 @@ snapshots: dependencies: json-schema: 0.4.0 - '@ai-sdk/react@3.0.210(react@19.2.8)(zod@4.4.3)': + '@ai-sdk/provider@4.0.7': dependencies: - '@ai-sdk/provider-utils': 4.0.30(zod@4.4.3) - ai: 6.0.208(zod@4.4.3) + json-schema: 0.4.0 + + '@ai-sdk/react@4.0.76(react@19.2.8)(zod@4.4.3)': + dependencies: + '@ai-sdk/mcp': 2.0.34(zod@4.4.3) + '@ai-sdk/provider': 4.0.7 + '@ai-sdk/provider-utils': 5.0.28(zod@4.4.3) + ai: 7.0.73(zod@4.4.3) react: 19.2.8 - swr: 2.4.1(react@19.2.8) + swr: 2.5.1(react@19.2.8) throttleit: 2.1.0 transitivePeerDependencies: - zod @@ -9893,6 +9950,13 @@ snapshots: '@opentelemetry/api': 1.9.1 zod: 4.4.3 + ai@7.0.73(zod@4.4.3): + dependencies: + '@ai-sdk/gateway': 4.0.59(zod@4.4.3) + '@ai-sdk/provider': 4.0.7 + '@ai-sdk/provider-utils': 5.0.28(zod@4.4.3) + zod: 4.4.3 + ajv-draft-04@1.0.0(ajv@8.20.0): optionalDependencies: ajv: 8.20.0 @@ -13121,7 +13185,7 @@ snapshots: picocolors: 1.1.1 sax: 1.6.1 - swr@2.4.1(react@19.2.8): + swr@2.5.1(react@19.2.8): dependencies: dequal: 2.0.3 react: 19.2.8 diff --git a/web/package.json b/web/package.json index cd56df52..f40e7d44 100644 --- a/web/package.json +++ b/web/package.json @@ -15,7 +15,7 @@ "openapi:generate": "openapi-typescript http://localhost:8787/doc -o ../shared/src/api/types.d.ts" }, "dependencies": { - "@ai-sdk/react": "^3.0.210", + "@ai-sdk/react": "^4.0.76", "@astrojs/check": "^0.9.10", "@astrojs/react": "^6.0.2", "@heroicons/react": "^2.2.0", diff --git a/widget/package.json b/widget/package.json index 915cfa98..95583992 100644 --- a/widget/package.json +++ b/widget/package.json @@ -13,7 +13,7 @@ "test:cov": "vitest run --coverage" }, "dependencies": { - "@ai-sdk/react": "^3.0.210", + "@ai-sdk/react": "^4.0.76", "@heroicons/react": "^2.2.0", "@nepp-chan/shared": "workspace:*", "ai": "^6.0.208",