diff --git a/package.json b/package.json index 03be8f083..63fd75eef 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "@vercel/og": "^0.6.4", "@vercel/speed-insights": "^1.1.0", "@vidstack/react": "^0.6.15", - "ai": "^3.4.30", + "ai": "^4.0.14", "autoprefixer": "^10.4.20", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index feabf9383..d0fd96951 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,8 +66,8 @@ importers: specifier: ^0.6.15 version: 0.6.15(@types/react@18.3.3)(maverick.js@0.37.0)(react@18.3.1)(vidstack@0.6.15) ai: - specifier: ^3.4.30 - version: 3.4.30(react@18.3.1)(solid-js@1.8.17)(sswr@2.1.0(svelte@4.2.18))(svelte@4.2.18)(vue@3.4.29(typescript@5.6.3))(zod@3.23.8) + specifier: ^4.0.14 + version: 4.0.14(react@18.3.1)(zod@3.23.8) autoprefixer: specifier: ^10.4.20 version: 10.4.20(postcss@8.4.49) @@ -175,8 +175,8 @@ importers: packages: - '@ai-sdk/provider-utils@1.0.22': - resolution: {integrity: sha512-YHK2rpj++wnLVc9vPGzGFP3Pjeld2MwhKinetA0zKXOoHAT/Jit5O8kZsxcSlJPu9wvcGT1UGZEjZrtO7PfFOQ==} + '@ai-sdk/provider-utils@2.0.4': + resolution: {integrity: sha512-GMhcQCZbwM6RoZCri0MWeEWXRt/T+uCxsmHEsTwNvEH3GDjNzchfX25C8ftry2MeEOOn6KfqCLSKomcgK6RoOg==} engines: {node: '>=18'} peerDependencies: zod: ^3.0.0 @@ -184,12 +184,12 @@ packages: zod: optional: true - '@ai-sdk/provider@0.0.26': - resolution: {integrity: sha512-dQkfBDs2lTYpKM8389oopPdQgIU007GQyCbuPPrV+K6MtSII3HBfE0stUIMXUb44L+LK1t6GXPP7wjSzjO6uKg==} + '@ai-sdk/provider@1.0.2': + resolution: {integrity: sha512-YYtP6xWQyaAf5LiWLJ+ycGTOeBLWrED7LUrvc+SQIWhGaneylqbaGsyQL7VouQUeQ4JZ1qKYZuhmi3W56HADPA==} engines: {node: '>=18'} - '@ai-sdk/react@0.0.69': - resolution: {integrity: sha512-v3FvlxyzOHEV2a0iU6CAY4W3fm11I6RJwYONptN28/DFFxUX+q+7JqFaK+s0RoDQOCdgAkz5qaNzMeGjfJo+cg==} + '@ai-sdk/react@1.0.6': + resolution: {integrity: sha512-8Hkserq0Ge6AEi7N4hlv2FkfglAGbkoAXEZ8YSp255c3PbnZz6+/5fppw+aROmZMOfNwallSRuy1i/iPa2rBpQ==} engines: {node: '>=18'} peerDependencies: react: ^18 || ^19 || ^19.0.0-rc @@ -200,26 +200,8 @@ packages: zod: optional: true - '@ai-sdk/solid@0.0.54': - resolution: {integrity: sha512-96KWTVK+opdFeRubqrgaJXoNiDP89gNxFRWUp0PJOotZW816AbhUf4EnDjBjXTLjXL1n0h8tGSE9sZsRkj9wQQ==} - engines: {node: '>=18'} - peerDependencies: - solid-js: ^1.7.7 - peerDependenciesMeta: - solid-js: - optional: true - - '@ai-sdk/svelte@0.0.57': - resolution: {integrity: sha512-SyF9ItIR9ALP9yDNAD+2/5Vl1IT6kchgyDH8xkmhysfJI6WrvJbtO1wdQ0nylvPLcsPoYu+cAlz1krU4lFHcYw==} - engines: {node: '>=18'} - peerDependencies: - svelte: ^3.0.0 || ^4.0.0 || ^5.0.0 - peerDependenciesMeta: - svelte: - optional: true - - '@ai-sdk/ui-utils@0.0.50': - resolution: {integrity: sha512-Z5QYJVW+5XpSaJ4jYCCAVG7zIAuKOOdikhgpksneNmKvx61ACFaf98pmOd+xnjahl0pIlc/QIe6O4yVaJ1sEaw==} + '@ai-sdk/ui-utils@1.0.5': + resolution: {integrity: sha512-DGJSbDf+vJyWmFNexSPUsS1AAy7gtsmFmoSyNbNbJjwl9hRIf2dknfA1V0ahx6pg3NNklNYFm53L8Nphjovfvg==} engines: {node: '>=18'} peerDependencies: zod: ^3.0.0 @@ -227,15 +209,6 @@ packages: zod: optional: true - '@ai-sdk/vue@0.0.59': - resolution: {integrity: sha512-+ofYlnqdc8c4F6tM0IKF0+7NagZRAiqBJpGDJ+6EYhDW8FHLUP/JFBgu32SjxSxC6IKFZxEnl68ZoP/Z38EMlw==} - engines: {node: '>=18'} - peerDependencies: - vue: ^3.3.4 - peerDependenciesMeta: - vue: - optional: true - '@alloc/quick-lru@5.2.0': resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} engines: {node: '>=10'} @@ -2115,24 +2088,15 @@ packages: engines: {node: '>=0.4.0'} hasBin: true - ai@3.4.30: - resolution: {integrity: sha512-Io3SZvvYjvCh3S/b3IuZUNVVBf9rU/fgh2JXdMs1vIMf4IdgreGW9XQtuXJi5jc+Mpe0Lotf4R9ll+krX5fsaQ==} + ai@4.0.14: + resolution: {integrity: sha512-0Cefmf13LItpef4PotGnVX37vpx0CGxAcMypS429PweGOMAR913jxX3yPtRyS5S3pcKOK006phRZKLZreTBgmg==} engines: {node: '>=18'} peerDependencies: - openai: ^4.42.0 react: ^18 || ^19 || ^19.0.0-rc - sswr: ^2.1.0 - svelte: ^3.0.0 || ^4.0.0 || ^5.0.0 zod: ^3.0.0 peerDependenciesMeta: - openai: - optional: true react: optional: true - sswr: - optional: true - svelte: - optional: true zod: optional: true @@ -2819,9 +2783,9 @@ packages: estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - eventsource-parser@1.1.2: - resolution: {integrity: sha512-v0eOBUbiaFojBu2s2NPBfYUoRR9GjcDNvCXVaqEf5vVfpIAh9f8RCo4vXTP8c63QRKCFwoLpMpTdPwwhEKVgzA==} - engines: {node: '>=14.18'} + eventsource-parser@3.0.0: + resolution: {integrity: sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==} + engines: {node: '>=18.0.0'} execa@0.8.0: resolution: {integrity: sha512-zDWS+Rb1E8BlqqhALSt9kUhss8Qq4nN3iof3gsOdyINksElaPyNBtKUMTR62qhvgVWR0CqCX7sdnKe4MnUbFEA==} @@ -4500,16 +4464,6 @@ packages: engines: {node: '>=10'} hasBin: true - seroval-plugins@1.1.1: - resolution: {integrity: sha512-qNSy1+nUj7hsCOon7AO4wdAIo9P0jrzAMp18XhiOzA6/uO5TKtP7ScozVJ8T293oRIvi5wyCHSM4TrJo/c/GJA==} - engines: {node: '>=10'} - peerDependencies: - seroval: ^1.0 - - seroval@1.1.1: - resolution: {integrity: sha512-rqEO6FZk8mv7Hyv4UCj3FD3b6Waqft605TLfsCe/BiaylRpyyMC0b+uA5TJKawX3KzMrdi3wsLbCaLplrQmBvQ==} - engines: {node: '>=10'} - sharp@0.33.5: resolution: {integrity: sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} @@ -4554,9 +4508,6 @@ packages: resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==} engines: {node: '>=14.16'} - solid-js@1.8.17: - resolution: {integrity: sha512-E0FkUgv9sG/gEBWkHr/2XkBluHb1fkrHywUgA6o6XolPDCJ4g1HaLmQufcBBhiF36ee40q+HpG/vCZu7fLpI3Q==} - source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} @@ -4578,11 +4529,6 @@ packages: sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - sswr@2.1.0: - resolution: {integrity: sha512-Cqc355SYlTAaUt8iDPaC/4DPPXK925PePLMxyBKuWd5kKc5mwsG3nT9+Mq2tyguL5s7b4Jg+IRMpTRsNTAfpSQ==} - peerDependencies: - svelte: ^4.0.0 || ^5.0.0-next.0 - stats-gl@2.4.2: resolution: {integrity: sha512-g5O9B0hm9CvnM36+v7SFl39T7hmAlv541tU81ME8YeSb3i1CIP5/QdDeSB3A0la0bKNHpxpwxOVRo2wFTYEosQ==} peerDependencies: @@ -4688,14 +4634,6 @@ packages: peerDependencies: react: ^16.11.0 || ^17.0.0 || ^18.0.0 - swrev@4.0.0: - resolution: {integrity: sha512-LqVcOHSB4cPGgitD1riJ1Hh4vdmITOp+BkmfmXRh4hSF/t7EnS4iD+SOTmq7w5pPm/SiPeto4ADbKS6dHUDWFA==} - - swrv@1.0.4: - resolution: {integrity: sha512-zjEkcP8Ywmj+xOJW3lIT65ciY/4AL4e/Or7Gj0MzU3zBJNMdJiT8geVZhINavnlHRMMCcJLHhraLTAiDOTmQ9g==} - peerDependencies: - vue: '>=3.2.26 < 4' - symbol-observable@4.0.0: resolution: {integrity: sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==} engines: {node: '>=0.10'} @@ -4737,6 +4675,10 @@ packages: three@0.171.0: resolution: {integrity: sha512-Y/lAXPaKZPcEdkKjh0JOAHVv8OOnv/NDJqm0wjfCzyQmfKxV7zvkwsnBgPBKTzJHToSOhRGQAGbPJObT59B/PQ==} + throttleit@2.1.0: + resolution: {integrity: sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==} + engines: {node: '>=18'} + tiny-inflate@1.0.3: resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==} @@ -5230,73 +5172,44 @@ packages: snapshots: - '@ai-sdk/provider-utils@1.0.22(zod@3.23.8)': + '@ai-sdk/provider-utils@2.0.4(zod@3.23.8)': dependencies: - '@ai-sdk/provider': 0.0.26 - eventsource-parser: 1.1.2 + '@ai-sdk/provider': 1.0.2 + eventsource-parser: 3.0.0 nanoid: 3.3.8 secure-json-parse: 2.7.0 optionalDependencies: zod: 3.23.8 - '@ai-sdk/provider@0.0.26': + '@ai-sdk/provider@1.0.2': dependencies: json-schema: 0.4.0 - '@ai-sdk/react@0.0.69(react@18.3.1)(zod@3.23.8)': + '@ai-sdk/react@1.0.6(react@18.3.1)(zod@3.23.8)': dependencies: - '@ai-sdk/provider-utils': 1.0.22(zod@3.23.8) - '@ai-sdk/ui-utils': 0.0.50(zod@3.23.8) + '@ai-sdk/provider-utils': 2.0.4(zod@3.23.8) + '@ai-sdk/ui-utils': 1.0.5(zod@3.23.8) swr: 2.2.5(react@18.3.1) + throttleit: 2.1.0 optionalDependencies: react: 18.3.1 zod: 3.23.8 - '@ai-sdk/solid@0.0.54(solid-js@1.8.17)(zod@3.23.8)': + '@ai-sdk/ui-utils@1.0.5(zod@3.23.8)': dependencies: - '@ai-sdk/provider-utils': 1.0.22(zod@3.23.8) - '@ai-sdk/ui-utils': 0.0.50(zod@3.23.8) - optionalDependencies: - solid-js: 1.8.17 - transitivePeerDependencies: - - zod - - '@ai-sdk/svelte@0.0.57(svelte@4.2.18)(zod@3.23.8)': - dependencies: - '@ai-sdk/provider-utils': 1.0.22(zod@3.23.8) - '@ai-sdk/ui-utils': 0.0.50(zod@3.23.8) - sswr: 2.1.0(svelte@4.2.18) - optionalDependencies: - svelte: 4.2.18 - transitivePeerDependencies: - - zod - - '@ai-sdk/ui-utils@0.0.50(zod@3.23.8)': - dependencies: - '@ai-sdk/provider': 0.0.26 - '@ai-sdk/provider-utils': 1.0.22(zod@3.23.8) - json-schema: 0.4.0 - secure-json-parse: 2.7.0 + '@ai-sdk/provider': 1.0.2 + '@ai-sdk/provider-utils': 2.0.4(zod@3.23.8) zod-to-json-schema: 3.23.5(zod@3.23.8) optionalDependencies: zod: 3.23.8 - '@ai-sdk/vue@0.0.59(vue@3.4.29(typescript@5.6.3))(zod@3.23.8)': - dependencies: - '@ai-sdk/provider-utils': 1.0.22(zod@3.23.8) - '@ai-sdk/ui-utils': 0.0.50(zod@3.23.8) - swrv: 1.0.4(vue@3.4.29(typescript@5.6.3)) - optionalDependencies: - vue: 3.4.29(typescript@5.6.3) - transitivePeerDependencies: - - zod - '@alloc/quick-lru@5.2.0': {} '@ampproject/remapping@2.3.0': dependencies: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 + optional: true '@antfu/install-pkg@0.4.1': dependencies: @@ -5419,6 +5332,7 @@ snapshots: '@babel/parser@7.26.3': dependencies: '@babel/types': 7.26.3 + optional: true '@babel/runtime-corejs3@7.26.0': dependencies: @@ -5442,6 +5356,7 @@ snapshots: dependencies: '@babel/helper-string-parser': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 + optional: true '@braintree/sanitize-url@7.1.0': {} @@ -6921,6 +6836,7 @@ snapshots: entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.2.1 + optional: true '@vue/compiler-core@3.5.13': dependencies: @@ -6934,6 +6850,7 @@ snapshots: dependencies: '@vue/compiler-core': 3.4.29 '@vue/shared': 3.4.29 + optional: true '@vue/compiler-dom@3.5.13': dependencies: @@ -6951,6 +6868,7 @@ snapshots: magic-string: 0.30.15 postcss: 8.4.49 source-map-js: 1.2.1 + optional: true '@vue/compiler-sfc@3.5.13': dependencies: @@ -6968,6 +6886,7 @@ snapshots: dependencies: '@vue/compiler-dom': 3.4.29 '@vue/shared': 3.4.29 + optional: true '@vue/compiler-ssr@3.5.13': dependencies: @@ -6977,11 +6896,13 @@ snapshots: '@vue/reactivity@3.4.29': dependencies: '@vue/shared': 3.4.29 + optional: true '@vue/runtime-core@3.4.29': dependencies: '@vue/reactivity': 3.4.29 '@vue/shared': 3.4.29 + optional: true '@vue/runtime-dom@3.4.29': dependencies: @@ -6989,14 +6910,17 @@ snapshots: '@vue/runtime-core': 3.4.29 '@vue/shared': 3.4.29 csstype: 3.1.3 + optional: true '@vue/server-renderer@3.4.29(vue@3.4.29(typescript@5.6.3))': dependencies: '@vue/compiler-ssr': 3.4.29 '@vue/shared': 3.4.29 vue: 3.4.29(typescript@5.6.3) + optional: true - '@vue/shared@3.4.29': {} + '@vue/shared@3.4.29': + optional: true '@vue/shared@3.5.13': {} @@ -7863,29 +7787,18 @@ snapshots: acorn@8.14.0: {} - ai@3.4.30(react@18.3.1)(solid-js@1.8.17)(sswr@2.1.0(svelte@4.2.18))(svelte@4.2.18)(vue@3.4.29(typescript@5.6.3))(zod@3.23.8): + ai@4.0.14(react@18.3.1)(zod@3.23.8): dependencies: - '@ai-sdk/provider': 0.0.26 - '@ai-sdk/provider-utils': 1.0.22(zod@3.23.8) - '@ai-sdk/react': 0.0.69(react@18.3.1)(zod@3.23.8) - '@ai-sdk/solid': 0.0.54(solid-js@1.8.17)(zod@3.23.8) - '@ai-sdk/svelte': 0.0.57(svelte@4.2.18)(zod@3.23.8) - '@ai-sdk/ui-utils': 0.0.50(zod@3.23.8) - '@ai-sdk/vue': 0.0.59(vue@3.4.29(typescript@5.6.3))(zod@3.23.8) + '@ai-sdk/provider': 1.0.2 + '@ai-sdk/provider-utils': 2.0.4(zod@3.23.8) + '@ai-sdk/react': 1.0.6(react@18.3.1)(zod@3.23.8) + '@ai-sdk/ui-utils': 1.0.5(zod@3.23.8) '@opentelemetry/api': 1.9.0 - eventsource-parser: 1.1.2 - json-schema: 0.4.0 jsondiffpatch: 0.6.0 - secure-json-parse: 2.7.0 zod-to-json-schema: 3.23.5(zod@3.23.8) optionalDependencies: react: 18.3.1 - sswr: 2.1.0(svelte@4.2.18) - svelte: 4.2.18 zod: 3.23.8 - transitivePeerDependencies: - - solid-js - - vue ansi-colors@4.1.3: {} @@ -7924,7 +7837,8 @@ snapshots: dependencies: tslib: 2.8.1 - aria-query@5.3.2: {} + aria-query@5.3.2: + optional: true array-iterate@2.0.1: {} @@ -7952,7 +7866,8 @@ snapshots: postcss: 8.4.49 postcss-value-parser: 4.2.0 - axobject-query@4.1.0: {} + axobject-query@4.1.0: + optional: true bail@2.0.2: {} @@ -8102,6 +8017,7 @@ snapshots: acorn: 8.14.0 estree-walker: 3.0.3 periscopic: 3.1.0 + optional: true collapse-white-space@2.1.0: {} @@ -8208,6 +8124,7 @@ snapshots: dependencies: mdn-data: 2.0.30 source-map-js: 1.2.1 + optional: true cssesc@3.0.0: {} @@ -8568,7 +8485,7 @@ snapshots: dependencies: '@types/estree': 1.0.6 - eventsource-parser@1.1.2: {} + eventsource-parser@3.0.0: {} execa@0.8.0: dependencies: @@ -9113,6 +9030,7 @@ snapshots: is-reference@3.0.3: dependencies: '@types/estree': 1.0.6 + optional: true is-stream@1.1.0: {} @@ -9219,7 +9137,8 @@ snapshots: mlly: 1.7.2 pkg-types: 1.2.1 - locate-character@3.0.0: {} + locate-character@3.0.0: + optional: true locate-path@5.0.0: dependencies: @@ -9275,6 +9194,7 @@ snapshots: magic-string@0.30.15: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 + optional: true markdown-extensions@2.0.0: {} @@ -9563,7 +9483,8 @@ snapshots: dependencies: '@types/mdast': 4.0.4 - mdn-data@2.0.30: {} + mdn-data@2.0.30: + optional: true media-captions@0.0.18: {} @@ -11028,14 +10949,6 @@ snapshots: semver@7.6.3: optional: true - seroval-plugins@1.1.1(seroval@1.1.1): - dependencies: - seroval: 1.1.1 - optional: true - - seroval@1.1.1: - optional: true - sharp@0.33.5: dependencies: color: 4.2.3 @@ -11103,13 +11016,6 @@ snapshots: slash@5.1.0: {} - solid-js@1.8.17: - dependencies: - csstype: 3.1.3 - seroval: 1.1.1 - seroval-plugins: 1.1.1(seroval@1.1.1) - optional: true - source-map-js@1.2.1: {} source-map@0.7.4: {} @@ -11126,11 +11032,6 @@ snapshots: sprintf-js@1.0.3: {} - sswr@2.1.0(svelte@4.2.18): - dependencies: - svelte: 4.2.18 - swrev: 4.0.0 - stats-gl@2.4.2(@types/three@0.170.0)(three@0.171.0): dependencies: '@types/three': 0.170.0 @@ -11236,6 +11137,7 @@ snapshots: locate-character: 3.0.0 magic-string: 0.30.15 periscopic: 3.1.0 + optional: true swr@2.2.5(react@18.3.1): dependencies: @@ -11243,12 +11145,6 @@ snapshots: react: 18.3.1 use-sync-external-store: 1.2.2(react@18.3.1) - swrev@4.0.0: {} - - swrv@1.0.4(vue@3.4.29(typescript@5.6.3)): - dependencies: - vue: 3.4.29(typescript@5.6.3) - symbol-observable@4.0.0: {} tabbable@6.2.0: {} @@ -11310,6 +11206,8 @@ snapshots: three@0.171.0: {} + throttleit@2.1.0: {} + tiny-inflate@1.0.3: {} tinyexec@0.3.1: {} @@ -11659,6 +11557,7 @@ snapshots: '@vue/shared': 3.4.29 optionalDependencies: typescript: 5.6.3 + optional: true web-namespaces@2.0.1: {}