feat(llm): update ai package to version 3.4.9

This commit is contained in:
bjc
2024-10-07 16:32:02 -07:00
parent 6c1f7f4502
commit aa50183dd8
5 changed files with 322 additions and 91 deletions

View File

@@ -1,7 +1,7 @@
import { streamText as _streamText } from 'ai';
import type { Prompts } from './prompts-interface';
interface Message {
export interface Message {
role: 'user' | 'assistant' | 'system';
content: string;
}

View File

@@ -4,7 +4,7 @@ import { MAX_TOKENS } from './constants';
import { getPrompts } from './prompts';
import type { LLM } from './llm-interface';
import type { Prompts } from './prompts-interface';
import type { Messages, StreamingOptions }from './llm-interface';
import type { Message, Messages, StreamingOptions }from './llm-interface';
// export type Messages = Message[];
@@ -28,15 +28,21 @@ export class OpenAILLM implements LLM {
}
const openai = createOpenAI({ apiKey: this.apiKey, compatibility: 'strict' });
const model = openai('gpt-4o');
const model = openai('o1-mini');
const o1sysmessage: Message = {
role: 'user',
content: this.getPrompts().getSystemPrompt()
};
// this is just some jank to get o1 working, proof of concept.
// for 4o, update the model above, remove the o1sysmessage, and set the system prompt and maxTokens
return _streamText({
model: model as any, // Use type assertion to bypass strict type checking
system: this.getPrompts().getSystemPrompt(),
messages:
// { role: 'system', content: this.getPrompts().getSystemPrompt() },
convertToCoreMessages(messages),
maxTokens: MAX_TOKENS,
// system: this.getPrompts().getSystemPrompt(),
messages: [o1sysmessage, ...convertToCoreMessages(messages)],
// maxTokens: MAX_TOKENS,
...options,
});
}

View File

@@ -37,13 +37,13 @@ async function chatAction({ context, request }: ActionFunctionArgs) {
const result = await streamText(messages, context.cloudflare.env, options);
return stream.switchSource(result.toAIStream());
return stream.switchSource(result.toDataStream( { result }));
},
};
const result = await streamText(messages, context.cloudflare.env, options);
stream.switchSource(result.toAIStream());
stream.switchSource(result.toDataStream({ result }));
return new Response(stream.readable, {
status: 200,

View File

@@ -55,7 +55,7 @@
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0",
"@xterm/xterm": "^5.5.0",
"ai": "^3.3.4",
"ai": "^3.4.9",
"date-fns": "^3.6.0",
"diff": "^5.2.0",
"framer-motion": "^11.2.12",

385
pnpm-lock.yaml generated
View File

@@ -108,8 +108,8 @@ importers:
specifier: ^5.5.0
version: 5.5.0
ai:
specifier: ^3.3.4
version: 3.3.4(react@18.3.1)(sswr@2.1.0(svelte@4.2.18))(svelte@4.2.18)(vue@3.4.30(typescript@5.5.2))(zod@3.23.8)
specifier: ^3.4.9
version: 3.4.9(react@18.3.1)(sswr@2.1.0(svelte@4.2.18))(svelte@4.2.18)(vue@3.4.30(typescript@5.5.2))(zod@3.23.8)
date-fns:
specifier: ^3.6.0
version: 3.6.0
@@ -272,8 +272,8 @@ packages:
resolution: {integrity: sha512-XMsNGJdGO+L0cxhhegtqZ8+T6nn4EoShS819OvCgI2kLbYTIvk0GWFGD0AXJmxkxs3DrpsJxKAFukFR7bvTkgQ==}
engines: {node: '>=18'}
'@ai-sdk/react@0.0.40':
resolution: {integrity: sha512-irljzw5m9q2kz3g4Y59fbeHI7o29DFmPTPIKQNK+XrHcvYH1sDuj4rlOnQUQl6vpahnrU7fLO6FzVIYdwZv+0w==}
'@ai-sdk/react@0.0.62':
resolution: {integrity: sha512-1asDpxgmeHWL0/EZPCLENxfOHT+0jce0z/zasRhascodm2S6f6/KZn5doLG9jdmarcb+GjMjFmmwyOVXz3W1xg==}
engines: {node: '>=18'}
peerDependencies:
react: ^18 || ^19
@@ -284,8 +284,8 @@ packages:
zod:
optional: true
'@ai-sdk/solid@0.0.31':
resolution: {integrity: sha512-VYsrTCuNqAe8DzgPCyCqJl6MNdItnjjGMioxi2Pimns/3qet1bOw2LA0yUe5tTAoSpYaCAjGZZB4x8WC762asA==}
'@ai-sdk/solid@0.0.49':
resolution: {integrity: sha512-KnfWTt640cS1hM2fFIba8KHSPLpOIWXtEm28pNCHTvqasVKlh2y/zMQANTwE18pF2nuXL9P9F5/dKWaPsaEzQw==}
engines: {node: '>=18'}
peerDependencies:
solid-js: ^1.7.7
@@ -293,8 +293,8 @@ packages:
solid-js:
optional: true
'@ai-sdk/svelte@0.0.33':
resolution: {integrity: sha512-/QksvqVEv9fcq39nJfu4QqqeXeFX19pqkGUlVXBNhMQ6QQXhYsUasfJodIWy1DBsKDDV6dROJM0fHku5v+hrdw==}
'@ai-sdk/svelte@0.0.51':
resolution: {integrity: sha512-aIZJaIds+KpCt19yUDCRDWebzF/17GCY7gN9KkcA2QM6IKRO5UmMcqEYja0ZmwFQPm1kBZkF2njhr8VXis2mAw==}
engines: {node: '>=18'}
peerDependencies:
svelte: ^3.0.0 || ^4.0.0
@@ -302,8 +302,8 @@ packages:
svelte:
optional: true
'@ai-sdk/ui-utils@0.0.28':
resolution: {integrity: sha512-yc+0EgC/Gz36ltoHsiBmuEv7iPjV85ihuj8W1vSqYe3+CblGYHG9h8MC5RdIl51GtrOtnH9aqnDjkX5Qy6Q9KQ==}
'@ai-sdk/ui-utils@0.0.46':
resolution: {integrity: sha512-ZG/wneyJG+6w5Nm/hy1AKMuRgjPQToAxBsTk61c9sVPUTaxo+NNjM2MhXQMtmsja2N5evs8NmHie+ExEgpL3cA==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.0.0
@@ -311,8 +311,8 @@ packages:
zod:
optional: true
'@ai-sdk/vue@0.0.32':
resolution: {integrity: sha512-wEiH6J6VbuGcliA44UkQJM/JuSP1IwuFiovzPQ/bS0Gb/nJKuDQ8K2ru1JvdU7pEQFqmpTm7z+2R0Sduz0eKpA==}
'@ai-sdk/vue@0.0.54':
resolution: {integrity: sha512-Ltu6gbuii8Qlp3gg7zdwdnHdS4M8nqKDij2VVO1223VOtIFwORFJzKqpfx44U11FW8z2TPVBYN+FjkyVIcN2hg==}
engines: {node: '>=18'}
peerDependencies:
vue: ^3.3.4
@@ -416,10 +416,18 @@ packages:
resolution: {integrity: sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==}
engines: {node: '>=6.9.0'}
'@babel/helper-string-parser@7.25.7':
resolution: {integrity: sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==}
engines: {node: '>=6.9.0'}
'@babel/helper-validator-identifier@7.24.7':
resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==}
engines: {node: '>=6.9.0'}
'@babel/helper-validator-identifier@7.25.7':
resolution: {integrity: sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg==}
engines: {node: '>=6.9.0'}
'@babel/helper-validator-option@7.24.7':
resolution: {integrity: sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==}
engines: {node: '>=6.9.0'}
@@ -437,6 +445,11 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
'@babel/parser@7.25.7':
resolution: {integrity: sha512-aZn7ETtQsjjGG5HruveUK06cU3Hljuhd9Iojm4M8WWv3wLE6OkE5PWbDUkItmMgegmccaITudyuW5RPYrYlgWw==}
engines: {node: '>=6.0.0'}
hasBin: true
'@babel/plugin-syntax-decorators@7.24.7':
resolution: {integrity: sha512-Ui4uLJJrRV1lb38zg1yYTmRKmiZLiftDEvZN2iq3kd9kUFU+PttmzTbAFC2ucRk/XJmtek6G23gPsuZbhrT8fQ==}
engines: {node: '>=6.9.0'}
@@ -489,6 +502,10 @@ packages:
resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==}
engines: {node: '>=6.9.0'}
'@babel/types@7.25.7':
resolution: {integrity: sha512-vwIVdXG+j+FOpkwqHRcBgHLYNL7XMkufrlaFvL9o6Ai9sJn9+PdyIL5qa0XzTZw084c+u9LOls53eoZWP/W5WQ==}
engines: {node: '>=6.9.0'}
'@blitz/eslint-plugin@0.1.0':
resolution: {integrity: sha512-mGEAFWCI5AQ4nrePhjp2WzvRen+UWR+SF4MvH70icIBClR08Gm3dT9MRa2jszOpfY00NyIYfm7/1CFZ37GvW4g==}
engines: {node: ^18.0.0 || ^20.0.0}
@@ -1093,6 +1110,9 @@ packages:
'@jridgewell/sourcemap-codec@1.4.15':
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
'@jridgewell/sourcemap-codec@1.5.0':
resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}
'@jridgewell/trace-mapping@0.3.25':
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
@@ -1724,6 +1744,9 @@ packages:
'@types/estree@1.0.5':
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
'@types/estree@1.0.6':
resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==}
'@types/hast@2.3.10':
resolution: {integrity: sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==}
@@ -2022,12 +2045,17 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
acorn@8.12.1:
resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==}
engines: {node: '>=0.4.0'}
hasBin: true
aggregate-error@3.1.0:
resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==}
engines: {node: '>=8'}
ai@3.3.4:
resolution: {integrity: sha512-yb9ONWAnTq77J+O/fLtd+yvcTgasdN79k+U0IhBDJ6ssEc+HZeFldjqkSgr1jtKSc8rLZOu0GiVitwyAtwofNQ==}
ai@3.4.9:
resolution: {integrity: sha512-wmVzpIHNGjCEjIJ/3945a/DIkz+gwObjC767ZRgO8AmtIZMO5KqvqNr7n2KF+gQrCPCMC8fM1ICQFXSvBZnBlA==}
engines: {node: '>=18'}
peerDependencies:
openai: ^4.42.0
@@ -2088,8 +2116,9 @@ packages:
resolution: {integrity: sha512-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A==}
engines: {node: '>=10'}
aria-query@5.3.0:
resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}
aria-query@5.3.2:
resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
engines: {node: '>= 0.4'}
array-flatten@1.1.1:
resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==}
@@ -2119,8 +2148,9 @@ packages:
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
engines: {node: '>= 0.4'}
axobject-query@4.0.0:
resolution: {integrity: sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==}
axobject-query@4.1.0:
resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}
engines: {node: '>= 0.4'}
bail@2.0.2:
resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==}
@@ -2159,6 +2189,10 @@ packages:
resolution: {integrity: sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==}
engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}
body-parser@1.20.3:
resolution: {integrity: sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==}
engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}
brace-expansion@1.1.11:
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
@@ -2589,6 +2623,10 @@ packages:
resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==}
engines: {node: '>= 0.8'}
encodeurl@2.0.0:
resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==}
engines: {node: '>= 0.8'}
end-of-stream@1.4.4:
resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==}
@@ -2796,6 +2834,10 @@ packages:
resolution: {integrity: sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==}
engines: {node: '>= 0.10.0'}
express@4.21.0:
resolution: {integrity: sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==}
engines: {node: '>= 0.10.0'}
extend@3.0.2:
resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
@@ -2837,6 +2879,10 @@ packages:
resolution: {integrity: sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==}
engines: {node: '>= 0.8'}
finalhandler@1.3.1:
resolution: {integrity: sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==}
engines: {node: '>= 0.8'}
find-up@5.0.0:
resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
engines: {node: '>=10'}
@@ -3106,8 +3152,8 @@ packages:
resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==}
engines: {node: '>= 4'}
immutable@4.3.6:
resolution: {integrity: sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==}
immutable@4.3.7:
resolution: {integrity: sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw==}
import-fresh@3.3.0:
resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}
@@ -3397,6 +3443,9 @@ packages:
magic-string@0.30.10:
resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==}
magic-string@0.30.11:
resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==}
markdown-extensions@1.1.1:
resolution: {integrity: sha512-WWC0ZuMzCyDHYCasEGs4IPvLyTGftYwh6wIEOULOF0HXcqZlhwRzrK0w2VUlxWA98xnvb/jszw4ZSkJ6ADpM6Q==}
engines: {node: '>=0.10.0'}
@@ -3498,6 +3547,9 @@ packages:
merge-descriptors@1.0.1:
resolution: {integrity: sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==}
merge-descriptors@1.0.3:
resolution: {integrity: sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==}
merge-stream@2.0.0:
resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
@@ -3692,6 +3744,10 @@ packages:
resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
engines: {node: '>= 0.6'}
mime-db@1.53.0:
resolution: {integrity: sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==}
engines: {node: '>= 0.6'}
mime-types@2.1.35:
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
engines: {node: '>= 0.6'}
@@ -4007,6 +4063,9 @@ packages:
resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}
engines: {node: '>=16 || 14 >=14.18'}
path-to-regexp@0.1.10:
resolution: {integrity: sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==}
path-to-regexp@0.1.7:
resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==}
@@ -4204,6 +4263,10 @@ packages:
resolution: {integrity: sha512-AWJm14H1vVaO/iNZ4/hO+HyaTehuy9nRqVdkTqlJt0HWvBiBIEXFmb4C0DGeYo3Xes9rrEW+TxHsaigCbN5ICQ==}
engines: {node: '>=0.6'}
qs@6.13.0:
resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==}
engines: {node: '>=0.6'}
querystring-es3@0.2.1:
resolution: {integrity: sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==}
engines: {node: '>=0.4.x'}
@@ -4489,10 +4552,18 @@ packages:
resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==}
engines: {node: '>= 0.8.0'}
send@0.19.0:
resolution: {integrity: sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==}
engines: {node: '>= 0.8.0'}
serve-static@1.15.0:
resolution: {integrity: sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==}
engines: {node: '>= 0.8.0'}
serve-static@1.16.2:
resolution: {integrity: sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==}
engines: {node: '>= 0.8.0'}
set-cookie-parser@2.6.0:
resolution: {integrity: sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ==}
@@ -4547,6 +4618,10 @@ packages:
resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}
engines: {node: '>=0.10.0'}
source-map-js@1.2.1:
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
engines: {node: '>=0.10.0'}
source-map-support@0.5.21:
resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
@@ -4824,6 +4899,9 @@ packages:
ufo@1.5.3:
resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==}
ufo@1.5.4:
resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}
unconfig@0.3.13:
resolution: {integrity: sha512-N9Ph5NC4+sqtcOjPfHrRcHekBCadCXWTBzp2VYYbySOHW0PfD9XLCeXshTXjkPYwLrBr9AtSeU0CZmkYECJhng==}
@@ -4838,6 +4916,10 @@ packages:
resolution: {integrity: sha512-i3uaEUwNdkRq2qtTRRJb13moW5HWqviu7Vl7oYRYz++uPtGHJj+x7TGjcEuwS5Mt2P4nA0U9dhIX3DdB6JGY0g==}
engines: {node: '>=18.17'}
undici@6.19.8:
resolution: {integrity: sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==}
engines: {node: '>=18.17'}
unenv-nightly@1.10.0-1717606461.a117952:
resolution: {integrity: sha512-u3TfBX02WzbHTpaEfWEKwDijDSFAHcgXkayUZ+MVDrjhLFvgAJzFGTSTmwlEhwWi2exyRQey23ah9wELMM6etg==}
@@ -5205,10 +5287,10 @@ packages:
youch@3.3.3:
resolution: {integrity: sha512-qSFXUk3UZBLfggAW3dJKg0BMblG5biqSF8M34E06o5CSsZtH92u9Hqmj2RzGiHDi64fhe83+4tENFP2DB6t6ZA==}
zod-to-json-schema@3.22.5:
resolution: {integrity: sha512-+akaPo6a0zpVCCseDed504KBJUQpEW5QZw7RMneNmKw+fGaML1Z9tUNLnHHAC8x6dzVRO1eB2oEMyZRnuBZg7Q==}
zod-to-json-schema@3.23.2:
resolution: {integrity: sha512-uSt90Gzc/tUfyNqxnjlfBs8W6WSGpNBv0rVsNxP/BVSMHMKGdthPYff4xtCHYloJGM0CFxFsb3NbC0eqPhfImw==}
peerDependencies:
zod: ^3.22.4
zod: ^3.23.3
zod@3.23.8:
resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}
@@ -5256,44 +5338,46 @@ snapshots:
dependencies:
json-schema: 0.4.0
'@ai-sdk/react@0.0.40(react@18.3.1)(zod@3.23.8)':
'@ai-sdk/react@0.0.62(react@18.3.1)(zod@3.23.8)':
dependencies:
'@ai-sdk/provider-utils': 1.0.9(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.28(zod@3.23.8)
'@ai-sdk/provider-utils': 1.0.20(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.46(zod@3.23.8)
swr: 2.2.5(react@18.3.1)
optionalDependencies:
react: 18.3.1
zod: 3.23.8
'@ai-sdk/solid@0.0.31(zod@3.23.8)':
'@ai-sdk/solid@0.0.49(zod@3.23.8)':
dependencies:
'@ai-sdk/provider-utils': 1.0.9(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.28(zod@3.23.8)
'@ai-sdk/provider-utils': 1.0.20(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.46(zod@3.23.8)
transitivePeerDependencies:
- zod
'@ai-sdk/svelte@0.0.33(svelte@4.2.18)(zod@3.23.8)':
'@ai-sdk/svelte@0.0.51(svelte@4.2.18)(zod@3.23.8)':
dependencies:
'@ai-sdk/provider-utils': 1.0.9(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.28(zod@3.23.8)
'@ai-sdk/provider-utils': 1.0.20(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.46(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.28(zod@3.23.8)':
'@ai-sdk/ui-utils@0.0.46(zod@3.23.8)':
dependencies:
'@ai-sdk/provider': 0.0.17
'@ai-sdk/provider-utils': 1.0.9(zod@3.23.8)
'@ai-sdk/provider': 0.0.24
'@ai-sdk/provider-utils': 1.0.20(zod@3.23.8)
json-schema: 0.4.0
secure-json-parse: 2.7.0
zod-to-json-schema: 3.23.2(zod@3.23.8)
optionalDependencies:
zod: 3.23.8
'@ai-sdk/vue@0.0.32(vue@3.4.30(typescript@5.5.2))(zod@3.23.8)':
'@ai-sdk/vue@0.0.54(vue@3.4.30(typescript@5.5.2))(zod@3.23.8)':
dependencies:
'@ai-sdk/provider-utils': 1.0.9(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.28(zod@3.23.8)
'@ai-sdk/provider-utils': 1.0.20(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.46(zod@3.23.8)
swrv: 1.0.4(vue@3.4.30(typescript@5.5.2))
optionalDependencies:
vue: 3.4.30(typescript@5.5.2)
@@ -5446,8 +5530,12 @@ snapshots:
'@babel/helper-string-parser@7.24.7': {}
'@babel/helper-string-parser@7.25.7': {}
'@babel/helper-validator-identifier@7.24.7': {}
'@babel/helper-validator-identifier@7.25.7': {}
'@babel/helper-validator-option@7.24.7': {}
'@babel/helpers@7.24.7':
@@ -5466,6 +5554,10 @@ snapshots:
dependencies:
'@babel/types': 7.24.7
'@babel/parser@7.25.7':
dependencies:
'@babel/types': 7.25.7
'@babel/plugin-syntax-decorators@7.24.7(@babel/core@7.24.7)':
dependencies:
'@babel/core': 7.24.7
@@ -5542,6 +5634,12 @@ snapshots:
'@babel/helper-validator-identifier': 7.24.7
to-fast-properties: 2.0.0
'@babel/types@7.25.7':
dependencies:
'@babel/helper-string-parser': 7.25.7
'@babel/helper-validator-identifier': 7.25.7
to-fast-properties: 2.0.0
'@blitz/eslint-plugin@0.1.0(@types/eslint@8.56.10)(prettier@3.3.2)(typescript@5.5.2)':
dependencies:
'@stylistic/eslint-plugin-ts': 2.3.0(eslint@9.5.0)(typescript@5.5.2)
@@ -6028,6 +6126,8 @@ snapshots:
'@jridgewell/sourcemap-codec@1.4.15': {}
'@jridgewell/sourcemap-codec@1.5.0': {}
'@jridgewell/trace-mapping@0.3.25':
dependencies:
'@jridgewell/resolve-uri': 3.1.2
@@ -6523,10 +6623,10 @@ snapshots:
- ts-node
- utf-8-validate
'@remix-run/express@2.10.0(express@4.19.2)(typescript@5.5.2)':
'@remix-run/express@2.10.0(express@4.21.0)(typescript@5.5.2)':
dependencies:
'@remix-run/node': 2.10.0(typescript@5.5.2)
express: 4.19.2
express: 4.21.0
optionalDependencies:
typescript: 5.5.2
optional: true
@@ -6551,7 +6651,7 @@ snapshots:
cookie-signature: 1.2.1
source-map-support: 0.5.21
stream-slice: 0.1.2
undici: 6.19.4
undici: 6.19.8
optionalDependencies:
typescript: 5.5.2
optional: true
@@ -6574,11 +6674,11 @@ snapshots:
'@remix-run/serve@2.10.0(typescript@5.5.2)':
dependencies:
'@remix-run/express': 2.10.0(express@4.19.2)(typescript@5.5.2)
'@remix-run/express': 2.10.0(express@4.21.0)(typescript@5.5.2)
'@remix-run/node': 2.10.0(typescript@5.5.2)
chokidar: 3.6.0
compression: 1.7.4
express: 4.19.2
express: 4.21.0
get-port: 5.1.1
morgan: 1.10.0
source-map-support: 0.5.21
@@ -6750,6 +6850,8 @@ snapshots:
'@types/estree@1.0.5': {}
'@types/estree@1.0.6': {}
'@types/hast@2.3.10':
dependencies:
'@types/unist': 2.0.10
@@ -7073,7 +7175,7 @@ snapshots:
'@babel/plugin-syntax-typescript': 7.24.7(@babel/core@7.24.7)
'@vanilla-extract/babel-plugin-debug-ids': 1.0.6
'@vanilla-extract/css': 1.15.3
esbuild: 0.17.19
esbuild: 0.17.6
eval: 0.1.8
find-up: 5.0.0
javascript-stringify: 2.1.0
@@ -7125,11 +7227,11 @@ snapshots:
'@vue/compiler-core@3.4.30':
dependencies:
'@babel/parser': 7.24.7
'@babel/parser': 7.25.7
'@vue/shared': 3.4.30
entities: 4.5.0
estree-walker: 2.0.2
source-map-js: 1.2.0
source-map-js: 1.2.1
'@vue/compiler-dom@3.4.30':
dependencies:
@@ -7138,15 +7240,15 @@ snapshots:
'@vue/compiler-sfc@3.4.30':
dependencies:
'@babel/parser': 7.24.7
'@babel/parser': 7.25.7
'@vue/compiler-core': 3.4.30
'@vue/compiler-dom': 3.4.30
'@vue/compiler-ssr': 3.4.30
'@vue/shared': 3.4.30
estree-walker: 2.0.2
magic-string: 0.30.10
magic-string: 0.30.11
postcss: 8.4.38
source-map-js: 1.2.0
source-map-js: 1.2.1
'@vue/compiler-ssr@3.4.30':
dependencies:
@@ -7213,27 +7315,29 @@ snapshots:
acorn@8.12.0: {}
acorn@8.12.1: {}
aggregate-error@3.1.0:
dependencies:
clean-stack: 2.2.0
indent-string: 4.0.0
ai@3.3.4(react@18.3.1)(sswr@2.1.0(svelte@4.2.18))(svelte@4.2.18)(vue@3.4.30(typescript@5.5.2))(zod@3.23.8):
ai@3.4.9(react@18.3.1)(sswr@2.1.0(svelte@4.2.18))(svelte@4.2.18)(vue@3.4.30(typescript@5.5.2))(zod@3.23.8):
dependencies:
'@ai-sdk/provider': 0.0.17
'@ai-sdk/provider-utils': 1.0.9(zod@3.23.8)
'@ai-sdk/react': 0.0.40(react@18.3.1)(zod@3.23.8)
'@ai-sdk/solid': 0.0.31(zod@3.23.8)
'@ai-sdk/svelte': 0.0.33(svelte@4.2.18)(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.28(zod@3.23.8)
'@ai-sdk/vue': 0.0.32(vue@3.4.30(typescript@5.5.2))(zod@3.23.8)
'@ai-sdk/provider': 0.0.24
'@ai-sdk/provider-utils': 1.0.20(zod@3.23.8)
'@ai-sdk/react': 0.0.62(react@18.3.1)(zod@3.23.8)
'@ai-sdk/solid': 0.0.49(zod@3.23.8)
'@ai-sdk/svelte': 0.0.51(svelte@4.2.18)(zod@3.23.8)
'@ai-sdk/ui-utils': 0.0.46(zod@3.23.8)
'@ai-sdk/vue': 0.0.54(vue@3.4.30(typescript@5.5.2))(zod@3.23.8)
'@opentelemetry/api': 1.9.0
eventsource-parser: 1.1.2
json-schema: 0.4.0
jsondiffpatch: 0.6.0
nanoid: 3.3.6
secure-json-parse: 2.7.0
zod-to-json-schema: 3.22.5(zod@3.23.8)
zod-to-json-schema: 3.23.2(zod@3.23.8)
optionalDependencies:
react: 18.3.1
sswr: 2.1.0(svelte@4.2.18)
@@ -7279,9 +7383,7 @@ snapshots:
dependencies:
tslib: 2.6.3
aria-query@5.3.0:
dependencies:
dequal: 2.0.3
aria-query@5.3.2: {}
array-flatten@1.1.1: {}
@@ -7313,9 +7415,7 @@ snapshots:
dependencies:
possible-typed-array-names: 1.0.0
axobject-query@4.0.0:
dependencies:
dequal: 2.0.3
axobject-query@4.1.0: {}
bail@2.0.2: {}
@@ -7363,6 +7463,24 @@ snapshots:
transitivePeerDependencies:
- supports-color
body-parser@1.20.3:
dependencies:
bytes: 3.1.2
content-type: 1.0.5
debug: 2.6.9
depd: 2.0.0
destroy: 1.2.0
http-errors: 2.0.0
iconv-lite: 0.4.24
on-finished: 2.4.1
qs: 6.13.0
raw-body: 2.5.2
type-is: 1.6.18
unpipe: 1.0.0
transitivePeerDependencies:
- supports-color
optional: true
brace-expansion@1.1.11:
dependencies:
balanced-match: 1.0.2
@@ -7561,9 +7679,9 @@ snapshots:
code-red@1.0.4:
dependencies:
'@jridgewell/sourcemap-codec': 1.4.15
'@types/estree': 1.0.5
acorn: 8.12.0
'@jridgewell/sourcemap-codec': 1.5.0
'@types/estree': 1.0.6
acorn: 8.12.1
estree-walker: 3.0.3
periscopic: 3.1.0
@@ -7587,7 +7705,7 @@ snapshots:
compressible@2.0.18:
dependencies:
mime-db: 1.52.0
mime-db: 1.53.0
optional: true
compression@1.7.4:
@@ -7810,6 +7928,9 @@ snapshots:
encodeurl@1.0.2: {}
encodeurl@2.0.0:
optional: true
end-of-stream@1.4.4:
dependencies:
once: 1.4.0
@@ -8140,6 +8261,43 @@ snapshots:
transitivePeerDependencies:
- supports-color
express@4.21.0:
dependencies:
accepts: 1.3.8
array-flatten: 1.1.1
body-parser: 1.20.3
content-disposition: 0.5.4
content-type: 1.0.5
cookie: 0.6.0
cookie-signature: 1.0.6
debug: 2.6.9
depd: 2.0.0
encodeurl: 2.0.0
escape-html: 1.0.3
etag: 1.8.1
finalhandler: 1.3.1
fresh: 0.5.2
http-errors: 2.0.0
merge-descriptors: 1.0.3
methods: 1.1.2
on-finished: 2.4.1
parseurl: 1.3.3
path-to-regexp: 0.1.10
proxy-addr: 2.0.7
qs: 6.13.0
range-parser: 1.2.1
safe-buffer: 5.2.1
send: 0.19.0
serve-static: 1.16.2
setprototypeof: 1.2.0
statuses: 2.0.1
type-is: 1.6.18
utils-merge: 1.0.1
vary: 1.1.2
transitivePeerDependencies:
- supports-color
optional: true
extend@3.0.2: {}
fast-deep-equal@3.1.3: {}
@@ -8191,6 +8349,19 @@ snapshots:
transitivePeerDependencies:
- supports-color
finalhandler@1.3.1:
dependencies:
debug: 2.6.9
encodeurl: 2.0.0
escape-html: 1.0.3
on-finished: 2.4.1
parseurl: 1.3.3
statuses: 2.0.1
unpipe: 1.0.0
transitivePeerDependencies:
- supports-color
optional: true
find-up@5.0.0:
dependencies:
locate-path: 6.0.0
@@ -8513,7 +8684,7 @@ snapshots:
ignore@5.3.1: {}
immutable@4.3.6:
immutable@4.3.7:
optional: true
import-fresh@3.3.0:
@@ -8748,6 +8919,10 @@ snapshots:
dependencies:
'@jridgewell/sourcemap-codec': 1.4.15
magic-string@0.30.11:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
markdown-extensions@1.1.1: {}
markdown-table@3.0.3: {}
@@ -9028,6 +9203,9 @@ snapshots:
merge-descriptors@1.0.1: {}
merge-descriptors@1.0.3:
optional: true
merge-stream@2.0.0: {}
merge2@1.4.1: {}
@@ -9450,6 +9628,9 @@ snapshots:
mime-db@1.52.0: {}
mime-db@1.53.0:
optional: true
mime-types@2.1.35:
dependencies:
mime-db: 1.52.0
@@ -9531,7 +9712,7 @@ snapshots:
acorn: 8.12.0
pathe: 1.1.2
pkg-types: 1.1.1
ufo: 1.5.3
ufo: 1.5.4
modern-ahocorasick@1.0.1: {}
@@ -9787,6 +9968,9 @@ snapshots:
lru-cache: 10.2.2
minipass: 7.1.2
path-to-regexp@0.1.10:
optional: true
path-to-regexp@0.1.7: {}
path-to-regexp@6.2.2: {}
@@ -9973,6 +10157,11 @@ snapshots:
dependencies:
side-channel: 1.0.6
qs@6.13.0:
dependencies:
side-channel: 1.0.6
optional: true
querystring-es3@0.2.1: {}
queue-microtask@1.2.3: {}
@@ -10282,8 +10471,8 @@ snapshots:
sass@1.77.6:
dependencies:
chokidar: 3.6.0
immutable: 4.3.6
source-map-js: 1.2.0
immutable: 4.3.7
source-map-js: 1.2.1
optional: true
scheduler@0.23.2:
@@ -10319,6 +10508,25 @@ snapshots:
transitivePeerDependencies:
- supports-color
send@0.19.0:
dependencies:
debug: 2.6.9
depd: 2.0.0
destroy: 1.2.0
encodeurl: 1.0.2
escape-html: 1.0.3
etag: 1.8.1
fresh: 0.5.2
http-errors: 2.0.0
mime: 1.6.0
ms: 2.1.3
on-finished: 2.4.1
range-parser: 1.2.1
statuses: 2.0.1
transitivePeerDependencies:
- supports-color
optional: true
serve-static@1.15.0:
dependencies:
encodeurl: 1.0.2
@@ -10328,6 +10536,16 @@ snapshots:
transitivePeerDependencies:
- supports-color
serve-static@1.16.2:
dependencies:
encodeurl: 2.0.0
escape-html: 1.0.3
parseurl: 1.3.3
send: 0.19.0
transitivePeerDependencies:
- supports-color
optional: true
set-cookie-parser@2.6.0: {}
set-function-length@1.2.2:
@@ -10381,6 +10599,8 @@ snapshots:
source-map-js@1.2.0: {}
source-map-js@1.2.1: {}
source-map-support@0.5.21:
dependencies:
buffer-from: 1.1.2
@@ -10512,18 +10732,18 @@ snapshots:
svelte@4.2.18:
dependencies:
'@ampproject/remapping': 2.3.0
'@jridgewell/sourcemap-codec': 1.4.15
'@jridgewell/sourcemap-codec': 1.5.0
'@jridgewell/trace-mapping': 0.3.25
'@types/estree': 1.0.5
acorn: 8.12.0
aria-query: 5.3.0
axobject-query: 4.0.0
'@types/estree': 1.0.6
acorn: 8.12.1
aria-query: 5.3.2
axobject-query: 4.1.0
code-red: 1.0.4
css-tree: 2.3.1
estree-walker: 3.0.3
is-reference: 3.0.2
locate-character: 3.0.0
magic-string: 0.30.10
magic-string: 0.30.11
periscopic: 3.1.0
swr@2.2.5(react@18.3.1):
@@ -10654,6 +10874,8 @@ snapshots:
ufo@1.5.3: {}
ufo@1.5.4: {}
unconfig@0.3.13:
dependencies:
'@antfu/utils': 0.7.10
@@ -10668,6 +10890,9 @@ snapshots:
undici@6.19.4: {}
undici@6.19.8:
optional: true
unenv-nightly@1.10.0-1717606461.a117952:
dependencies:
consola: 3.2.3
@@ -10675,7 +10900,7 @@ snapshots:
mime: 3.0.0
node-fetch-native: 1.6.4
pathe: 1.1.2
ufo: 1.5.3
ufo: 1.5.4
unified@10.1.2:
dependencies:
@@ -11111,7 +11336,7 @@ snapshots:
mustache: 4.2.0
stacktracey: 2.1.8
zod-to-json-schema@3.22.5(zod@3.23.8):
zod-to-json-schema@3.23.2(zod@3.23.8):
dependencies:
zod: 3.23.8