├── .editorconfig ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── LICENSE ├── README.md ├── biome.json ├── package-lock.json ├── package.json ├── src └── index.ts └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [Makefile] 12 | indent_style = tab 13 | indent_size = 4 14 | 15 | [*.{md,mdx}] 16 | trim_trailing_whitespace = false 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | .idea 4 | -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npm run lint 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Gabriel Massadas 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Project Repository Moved 2 | 3 | > **Important Notice**: This project has been adopted by Cloudflare and is now maintained in the official Cloudflare AI repository. The latest version and ongoing development can be found at [github.com/cloudflare/ai](https://github.com/cloudflare/ai/tree/main/packages/ai-gateway-provider). Please use the new repository for the most up-to-date code, issues, and contributions. 4 | 5 | ___________ 6 | 7 | 8 | # AI Gateway Provider for Vercel AI SDK 9 | 10 | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 11 | 12 | This library provides an AI Gateway Provider for the [Vercel AI SDK](https://sdk.vercel.ai/docs), enabling you to seamlessly integrate multiple AI models from different providers behind a unified interface. It leverages Cloudflare's AI Gateway to manage and optimize your AI model usage. 13 | 14 | ## Features 15 | 16 | * **Runtime Agnostic:** Works in all JavaScript runtimes supported by the Vercel AI SDK including Node.js, Edge Runtime, and more. 17 | * **Automatic Provider Fallback:** ✨ Define an array of models and the provider will **automatically fallback** to the next available provider if one fails, ensuring high availability and resilience for your AI applications. 18 | * **Multi-Provider Support:** Easily switch between and combine models from various providers like OpenAI, Anthropic, DeepSeek, Google AI Studio, Grok, Mistral, Perplexity AI, Replicate and Groq. 19 | * **AI Gateway Integration:** Utilizes Cloudflare's AI Gateway for advanced features like request management, caching, and rate limiting. 20 | * **Simplified Model Management:** Abstracts away the complexities of interacting with different AI provider APIs. 21 | * **Easy Configuration:** Simple and intuitive setup process. 22 | 23 | ## Installation 24 | 25 | ```bash 26 | npm install ai-gateway-provider 27 | ``` 28 | 29 | ## Usage 30 | 31 | ### Basic Example with API Key 32 | 33 | ```typescript 34 | import {createOpenAI} from '@ai-sdk/openai'; 35 | import {createAiGateway} from 'ai-gateway-provider'; 36 | import {generateText} from "ai"; 37 | import {createAnthropic} from "@ai-sdk/anthropic"; 38 | 39 | const aigateway = createAiGateway({ 40 | accountId: "my-cloudflare-account-id", 41 | gateway: 'my-gateway-name', 42 | apiKey: 'optionally my cloudflare api key', 43 | options: { // Optional per-request override 44 | skipCache: true 45 | } 46 | }); 47 | const openai = createOpenAI({apiKey: 'openai api key'}); 48 | const anthropic = createAnthropic({apiKey: 'anthropic api key'}); 49 | 50 | const model = aigateway([ 51 | anthropic('claude-3-5-haiku-20241022'), // Primary choice 52 | openai("gpt-4o-mini"), // Fallback if first fails 53 | ]); 54 | 55 | const {text} = await generateText({ 56 | model: model, 57 | prompt: 'Write a vegetarian lasagna recipe for 4 people.', 58 | }); 59 | ``` 60 | 61 | ### Cloudflare AI Binding Example 62 | 63 | Binding Benefits: 64 | - Faster Requests: Saves milliseconds by avoiding open internet routing. 65 | - Enhanced Security: Uses a special pre-authenticated pipeline. 66 | - No API Key Required: Authentication is handled by the binding. 67 | 68 | ```typescript 69 | const aigateway = createAiGateway({ 70 | binding: env.AI.gateway('my-gateway'), 71 | options: { // Optional per-request override 72 | skipCache: true 73 | } 74 | }); 75 | const openai = createOpenAI({apiKey: 'openai api key'}); 76 | const anthropic = createAnthropic({apiKey: 'anthropic api key'}); 77 | 78 | const model = aigateway([ 79 | anthropic('claude-3-5-haiku-20241022'), // Primary choice 80 | openai("gpt-4o-mini"), // Fallback if first fails 81 | ]); 82 | 83 | const {text} = await generateText({ 84 | model: model, 85 | prompt: 'Write a vegetarian lasagna recipe for 4 people.', 86 | }); 87 | ``` 88 | 89 | ### Request-Level Options 90 | 91 | You can now customize AI Gateway settings for each request: 92 | 93 | ```typescript 94 | const aigateway = createAiGateway({ 95 | // ... other configs 96 | 97 | options: { // all fields are optional! 98 | cacheKey: 'my-custom-cache-key', 99 | cacheTtl: 3600, // Cache for 1 hour 100 | skipCache: false, 101 | metadata: { 102 | userId: 'user123', 103 | requestType: 'recipe' 104 | }, 105 | retries: { 106 | maxAttempts: 3, 107 | retryDelayMs: 1000, 108 | backoff: 'exponential' 109 | } 110 | }, 111 | }); 112 | ``` 113 | 114 | ## Configuration 115 | 116 | ### `createAiGateway(options: AiGatewaySettings)` 117 | 118 | #### API Key Authentication 119 | * `accountId`: Your Cloudflare account ID 120 | * `gateway`: The name of your AI Gateway 121 | * `apiKey` (Optional): Your Cloudflare API key 122 | 123 | #### Cloudflare AI Binding 124 | * `binding`: Cloudflare AI Gateway binding 125 | * `options` (Optional): Request-level AI Gateway settings 126 | 127 | ### Request Options 128 | 129 | * `cacheKey`: Custom cache key for the request 130 | * `cacheTtl`: Cache time-to-live in seconds 131 | * `skipCache`: Bypass caching for the request 132 | * `metadata`: Custom metadata for the request 133 | * `collectLog`: Enable/disable log collection 134 | * `eventId`: Custom event identifier 135 | * `requestTimeoutMs`: Request timeout in milliseconds 136 | * `retries`: Retry configuration 137 | * `maxAttempts`: Number of retry attempts (1-5) 138 | * `retryDelayMs`: Delay between retries 139 | * `backoff`: Retry backoff strategy ('constant', 'linear', 'exponential') 140 | 141 | ## Automatic Fallback Example 142 | 143 | ```typescript 144 | // Define multiple provider options with fallback priority 145 | const model = aigateway([ 146 | anthropic('claude-3-5-haiku-20241022'), // Primary choice 147 | openai("gpt-4o-mini"), // First fallback 148 | mistral("mistral-large-latest"), // Second fallback 149 | ]); 150 | 151 | // The system will automatically try the next model if previous ones fail 152 | const {text} = await generateText({ 153 | model: model, 154 | prompt: 'Suggest three names for my tech startup.', 155 | }); 156 | ``` 157 | 158 | ## Supported Providers 159 | 160 | * OpenAI 161 | * Anthropic 162 | * DeepSeek 163 | * Google AI Studio 164 | * Grok 165 | * Mistral 166 | * Perplexity AI 167 | * Replicate 168 | * Groq 169 | 170 | ## Supported Methods 171 | 172 | Currently only chat completions (non-streaming) is supported. 173 | More can be added, please open an issue in the GitHub repository! 174 | 175 | ## Error Handling 176 | 177 | The library throws the following custom errors: 178 | 179 | * `AiGatewayUnauthorizedError`: Your AI Gateway has authentication enabled, but a valid API key was not provided. 180 | * `AiGatewayDoesNotExist`: Specified AI Gateway does not exist 181 | 182 | ## License 183 | 184 | This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. 185 | 186 | ## Relevant Links 187 | 188 | * [Vercel AI SDK Documentation](https://sdk.vercel.ai/docs) 189 | * [Cloudflare AI Gateway Documentation](https://developers.cloudflare.com/ai-gateway/) 190 | * [GitHub Repository](https://github.com/G4brym/ai-gateway-provider) 191 | -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", 3 | "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, 4 | "files": { "ignoreUnknown": false, "ignore": ["dist", "docs/site"] }, 5 | "formatter": { 6 | "enabled": true, 7 | "useEditorconfig": true, 8 | "formatWithErrors": false, 9 | "indentStyle": "space", 10 | "indentWidth": 2, 11 | "lineEnding": "lf", 12 | "lineWidth": 120, 13 | "attributePosition": "auto", 14 | "bracketSpacing": true 15 | }, 16 | "organizeImports": { "enabled": true }, 17 | "linter": { 18 | "enabled": true, 19 | "rules": { "recommended": false } 20 | }, 21 | "javascript": { 22 | "formatter": { 23 | "jsxQuoteStyle": "double", 24 | "quoteProperties": "asNeeded", 25 | "trailingCommas": "es5", 26 | "semicolons": "asNeeded", 27 | "arrowParentheses": "always", 28 | "bracketSameLine": false, 29 | "quoteStyle": "single", 30 | "attributePosition": "auto", 31 | "bracketSpacing": true 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ai-gateway-provider", 3 | "version": "0.0.5", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "ai-gateway-provider", 9 | "version": "0.0.5", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@ai-sdk/provider": "^1.0.11", 13 | "@ai-sdk/provider-utils": "^2.1.13", 14 | "ai": "^4.1.61" 15 | }, 16 | "devDependencies": { 17 | "@biomejs/biome": "1.9.4", 18 | "husky": "^9.1.6", 19 | "tsup": "^8.3.5", 20 | "typescript": "^5.6.3" 21 | } 22 | }, 23 | "node_modules/@ai-sdk/provider": { 24 | "version": "1.0.11", 25 | "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.0.11.tgz", 26 | "integrity": "sha512-CPyImHGiT3svyfmvPvAFTianZzWFtm0qK82XjwlQIA1C3IQ2iku/PMQXi7aFyrX0TyMh3VTkJPB03tjU2VXVrw==", 27 | "license": "Apache-2.0", 28 | "dependencies": { 29 | "json-schema": "^0.4.0" 30 | }, 31 | "engines": { 32 | "node": ">=18" 33 | } 34 | }, 35 | "node_modules/@ai-sdk/provider-utils": { 36 | "version": "2.1.13", 37 | "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-2.1.13.tgz", 38 | "integrity": "sha512-kLjqsfOdONr6DGcGEntFYM1niXz1H05vyZNf9OAzK+KKKc64izyP4/q/9HX7W4+6g8hm6BnmKxu8vkr6FSOqDg==", 39 | "license": "Apache-2.0", 40 | "dependencies": { 41 | "@ai-sdk/provider": "1.0.11", 42 | "eventsource-parser": "^3.0.0", 43 | "nanoid": "^3.3.8", 44 | "secure-json-parse": "^2.7.0" 45 | }, 46 | "engines": { 47 | "node": ">=18" 48 | }, 49 | "peerDependencies": { 50 | "zod": "^3.0.0" 51 | }, 52 | "peerDependenciesMeta": { 53 | "zod": { 54 | "optional": true 55 | } 56 | } 57 | }, 58 | "node_modules/@ai-sdk/react": { 59 | "version": "1.1.23", 60 | "resolved": "https://registry.npmjs.org/@ai-sdk/react/-/react-1.1.23.tgz", 61 | "integrity": "sha512-R+PG9ya0GLs6orzt+1MxmjrWFuZM0gVs+l8ihBr1u+42wwkVeojY4CAtQjW4nrfGTVbdJYkl5y+r/VKfjr42aQ==", 62 | "license": "Apache-2.0", 63 | "dependencies": { 64 | "@ai-sdk/provider-utils": "2.1.13", 65 | "@ai-sdk/ui-utils": "1.1.19", 66 | "swr": "^2.2.5", 67 | "throttleit": "2.1.0" 68 | }, 69 | "engines": { 70 | "node": ">=18" 71 | }, 72 | "peerDependencies": { 73 | "react": "^18 || ^19 || ^19.0.0-rc", 74 | "zod": "^3.0.0" 75 | }, 76 | "peerDependenciesMeta": { 77 | "react": { 78 | "optional": true 79 | }, 80 | "zod": { 81 | "optional": true 82 | } 83 | } 84 | }, 85 | "node_modules/@ai-sdk/ui-utils": { 86 | "version": "1.1.19", 87 | "resolved": "https://registry.npmjs.org/@ai-sdk/ui-utils/-/ui-utils-1.1.19.tgz", 88 | "integrity": "sha512-rDHy2uxlPMt3jjS9L6mBrsfhEInZ5BVoWevmD13fsAt2s/XWy2OwwKmgmUQkdLlY4mn/eyeYAfDGK8+5CbOAgg==", 89 | "license": "Apache-2.0", 90 | "dependencies": { 91 | "@ai-sdk/provider": "1.0.11", 92 | "@ai-sdk/provider-utils": "2.1.13", 93 | "zod-to-json-schema": "^3.24.1" 94 | }, 95 | "engines": { 96 | "node": ">=18" 97 | }, 98 | "peerDependencies": { 99 | "zod": "^3.0.0" 100 | }, 101 | "peerDependenciesMeta": { 102 | "zod": { 103 | "optional": true 104 | } 105 | } 106 | }, 107 | "node_modules/@biomejs/biome": { 108 | "version": "1.9.4", 109 | "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.9.4.tgz", 110 | "integrity": "sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog==", 111 | "dev": true, 112 | "hasInstallScript": true, 113 | "bin": { 114 | "biome": "bin/biome" 115 | }, 116 | "engines": { 117 | "node": ">=14.21.3" 118 | }, 119 | "funding": { 120 | "type": "opencollective", 121 | "url": "https://opencollective.com/biome" 122 | }, 123 | "optionalDependencies": { 124 | "@biomejs/cli-darwin-arm64": "1.9.4", 125 | "@biomejs/cli-darwin-x64": "1.9.4", 126 | "@biomejs/cli-linux-arm64": "1.9.4", 127 | "@biomejs/cli-linux-arm64-musl": "1.9.4", 128 | "@biomejs/cli-linux-x64": "1.9.4", 129 | "@biomejs/cli-linux-x64-musl": "1.9.4", 130 | "@biomejs/cli-win32-arm64": "1.9.4", 131 | "@biomejs/cli-win32-x64": "1.9.4" 132 | } 133 | }, 134 | "node_modules/@biomejs/cli-darwin-arm64": { 135 | "version": "1.9.4", 136 | "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.9.4.tgz", 137 | "integrity": "sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw==", 138 | "cpu": [ 139 | "arm64" 140 | ], 141 | "dev": true, 142 | "optional": true, 143 | "os": [ 144 | "darwin" 145 | ], 146 | "engines": { 147 | "node": ">=14.21.3" 148 | } 149 | }, 150 | "node_modules/@biomejs/cli-darwin-x64": { 151 | "version": "1.9.4", 152 | "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.9.4.tgz", 153 | "integrity": "sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg==", 154 | "cpu": [ 155 | "x64" 156 | ], 157 | "dev": true, 158 | "optional": true, 159 | "os": [ 160 | "darwin" 161 | ], 162 | "engines": { 163 | "node": ">=14.21.3" 164 | } 165 | }, 166 | "node_modules/@biomejs/cli-linux-arm64": { 167 | "version": "1.9.4", 168 | "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.9.4.tgz", 169 | "integrity": "sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==", 170 | "cpu": [ 171 | "arm64" 172 | ], 173 | "dev": true, 174 | "optional": true, 175 | "os": [ 176 | "linux" 177 | ], 178 | "engines": { 179 | "node": ">=14.21.3" 180 | } 181 | }, 182 | "node_modules/@biomejs/cli-linux-arm64-musl": { 183 | "version": "1.9.4", 184 | "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.9.4.tgz", 185 | "integrity": "sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==", 186 | "cpu": [ 187 | "arm64" 188 | ], 189 | "dev": true, 190 | "optional": true, 191 | "os": [ 192 | "linux" 193 | ], 194 | "engines": { 195 | "node": ">=14.21.3" 196 | } 197 | }, 198 | "node_modules/@biomejs/cli-linux-x64": { 199 | "version": "1.9.4", 200 | "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.9.4.tgz", 201 | "integrity": "sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==", 202 | "cpu": [ 203 | "x64" 204 | ], 205 | "dev": true, 206 | "optional": true, 207 | "os": [ 208 | "linux" 209 | ], 210 | "engines": { 211 | "node": ">=14.21.3" 212 | } 213 | }, 214 | "node_modules/@biomejs/cli-linux-x64-musl": { 215 | "version": "1.9.4", 216 | "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.9.4.tgz", 217 | "integrity": "sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==", 218 | "cpu": [ 219 | "x64" 220 | ], 221 | "dev": true, 222 | "optional": true, 223 | "os": [ 224 | "linux" 225 | ], 226 | "engines": { 227 | "node": ">=14.21.3" 228 | } 229 | }, 230 | "node_modules/@biomejs/cli-win32-arm64": { 231 | "version": "1.9.4", 232 | "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.9.4.tgz", 233 | "integrity": "sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==", 234 | "cpu": [ 235 | "arm64" 236 | ], 237 | "dev": true, 238 | "optional": true, 239 | "os": [ 240 | "win32" 241 | ], 242 | "engines": { 243 | "node": ">=14.21.3" 244 | } 245 | }, 246 | "node_modules/@biomejs/cli-win32-x64": { 247 | "version": "1.9.4", 248 | "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.9.4.tgz", 249 | "integrity": "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA==", 250 | "cpu": [ 251 | "x64" 252 | ], 253 | "dev": true, 254 | "optional": true, 255 | "os": [ 256 | "win32" 257 | ], 258 | "engines": { 259 | "node": ">=14.21.3" 260 | } 261 | }, 262 | "node_modules/@esbuild/openbsd-arm64": { 263 | "version": "0.24.0", 264 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.0.tgz", 265 | "integrity": "sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg==", 266 | "cpu": [ 267 | "arm64" 268 | ], 269 | "dev": true, 270 | "optional": true, 271 | "os": [ 272 | "openbsd" 273 | ], 274 | "engines": { 275 | "node": ">=18" 276 | } 277 | }, 278 | "node_modules/@isaacs/cliui": { 279 | "version": "8.0.2", 280 | "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", 281 | "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", 282 | "dev": true, 283 | "dependencies": { 284 | "string-width": "^5.1.2", 285 | "string-width-cjs": "npm:string-width@^4.2.0", 286 | "strip-ansi": "^7.0.1", 287 | "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", 288 | "wrap-ansi": "^8.1.0", 289 | "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" 290 | }, 291 | "engines": { 292 | "node": ">=12" 293 | } 294 | }, 295 | "node_modules/@jridgewell/gen-mapping": { 296 | "version": "0.3.5", 297 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", 298 | "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", 299 | "dev": true, 300 | "dependencies": { 301 | "@jridgewell/set-array": "^1.2.1", 302 | "@jridgewell/sourcemap-codec": "^1.4.10", 303 | "@jridgewell/trace-mapping": "^0.3.24" 304 | }, 305 | "engines": { 306 | "node": ">=6.0.0" 307 | } 308 | }, 309 | "node_modules/@jridgewell/gen-mapping/node_modules/@jridgewell/trace-mapping": { 310 | "version": "0.3.25", 311 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 312 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 313 | "dev": true, 314 | "dependencies": { 315 | "@jridgewell/resolve-uri": "^3.1.0", 316 | "@jridgewell/sourcemap-codec": "^1.4.14" 317 | } 318 | }, 319 | "node_modules/@jridgewell/resolve-uri": { 320 | "version": "3.1.2", 321 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 322 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 323 | "dev": true, 324 | "engines": { 325 | "node": ">=6.0.0" 326 | } 327 | }, 328 | "node_modules/@jridgewell/set-array": { 329 | "version": "1.2.1", 330 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", 331 | "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 332 | "dev": true, 333 | "engines": { 334 | "node": ">=6.0.0" 335 | } 336 | }, 337 | "node_modules/@jridgewell/sourcemap-codec": { 338 | "version": "1.5.0", 339 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 340 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 341 | "dev": true 342 | }, 343 | "node_modules/@opentelemetry/api": { 344 | "version": "1.9.0", 345 | "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", 346 | "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", 347 | "license": "Apache-2.0", 348 | "engines": { 349 | "node": ">=8.0.0" 350 | } 351 | }, 352 | "node_modules/@pkgjs/parseargs": { 353 | "version": "0.11.0", 354 | "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", 355 | "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", 356 | "dev": true, 357 | "optional": true, 358 | "engines": { 359 | "node": ">=14" 360 | } 361 | }, 362 | "node_modules/@rollup/rollup-android-arm-eabi": { 363 | "version": "4.25.0", 364 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.25.0.tgz", 365 | "integrity": "sha512-CC/ZqFZwlAIbU1wUPisHyV/XRc5RydFrNLtgl3dGYskdwPZdt4HERtKm50a/+DtTlKeCq9IXFEWR+P6blwjqBA==", 366 | "cpu": [ 367 | "arm" 368 | ], 369 | "dev": true, 370 | "optional": true, 371 | "os": [ 372 | "android" 373 | ] 374 | }, 375 | "node_modules/@rollup/rollup-android-arm64": { 376 | "version": "4.25.0", 377 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.25.0.tgz", 378 | "integrity": "sha512-/Y76tmLGUJqVBXXCfVS8Q8FJqYGhgH4wl4qTA24E9v/IJM0XvJCGQVSW1QZ4J+VURO9h8YCa28sTFacZXwK7Rg==", 379 | "cpu": [ 380 | "arm64" 381 | ], 382 | "dev": true, 383 | "optional": true, 384 | "os": [ 385 | "android" 386 | ] 387 | }, 388 | "node_modules/@rollup/rollup-darwin-arm64": { 389 | "version": "4.25.0", 390 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.25.0.tgz", 391 | "integrity": "sha512-YVT6L3UrKTlC0FpCZd0MGA7NVdp7YNaEqkENbWQ7AOVOqd/7VzyHpgIpc1mIaxRAo1ZsJRH45fq8j4N63I/vvg==", 392 | "cpu": [ 393 | "arm64" 394 | ], 395 | "dev": true, 396 | "optional": true, 397 | "os": [ 398 | "darwin" 399 | ] 400 | }, 401 | "node_modules/@rollup/rollup-darwin-x64": { 402 | "version": "4.25.0", 403 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.25.0.tgz", 404 | "integrity": "sha512-ZRL+gexs3+ZmmWmGKEU43Bdn67kWnMeWXLFhcVv5Un8FQcx38yulHBA7XR2+KQdYIOtD0yZDWBCudmfj6lQJoA==", 405 | "cpu": [ 406 | "x64" 407 | ], 408 | "dev": true, 409 | "optional": true, 410 | "os": [ 411 | "darwin" 412 | ] 413 | }, 414 | "node_modules/@rollup/rollup-freebsd-arm64": { 415 | "version": "4.25.0", 416 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.25.0.tgz", 417 | "integrity": "sha512-xpEIXhiP27EAylEpreCozozsxWQ2TJbOLSivGfXhU4G1TBVEYtUPi2pOZBnvGXHyOdLAUUhPnJzH3ah5cqF01g==", 418 | "cpu": [ 419 | "arm64" 420 | ], 421 | "dev": true, 422 | "optional": true, 423 | "os": [ 424 | "freebsd" 425 | ] 426 | }, 427 | "node_modules/@rollup/rollup-freebsd-x64": { 428 | "version": "4.25.0", 429 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.25.0.tgz", 430 | "integrity": "sha512-sC5FsmZGlJv5dOcURrsnIK7ngc3Kirnx3as2XU9uER+zjfyqIjdcMVgzy4cOawhsssqzoAX19qmxgJ8a14Qrqw==", 431 | "cpu": [ 432 | "x64" 433 | ], 434 | "dev": true, 435 | "optional": true, 436 | "os": [ 437 | "freebsd" 438 | ] 439 | }, 440 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 441 | "version": "4.25.0", 442 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.25.0.tgz", 443 | "integrity": "sha512-uD/dbLSs1BEPzg564TpRAQ/YvTnCds2XxyOndAO8nJhaQcqQGFgv/DAVko/ZHap3boCvxnzYMa3mTkV/B/3SWA==", 444 | "cpu": [ 445 | "arm" 446 | ], 447 | "dev": true, 448 | "optional": true, 449 | "os": [ 450 | "linux" 451 | ] 452 | }, 453 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 454 | "version": "4.25.0", 455 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.25.0.tgz", 456 | "integrity": "sha512-ZVt/XkrDlQWegDWrwyC3l0OfAF7yeJUF4fq5RMS07YM72BlSfn2fQQ6lPyBNjt+YbczMguPiJoCfaQC2dnflpQ==", 457 | "cpu": [ 458 | "arm" 459 | ], 460 | "dev": true, 461 | "optional": true, 462 | "os": [ 463 | "linux" 464 | ] 465 | }, 466 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 467 | "version": "4.25.0", 468 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.25.0.tgz", 469 | "integrity": "sha512-qboZ+T0gHAW2kkSDPHxu7quaFaaBlynODXpBVnPxUgvWYaE84xgCKAPEYE+fSMd3Zv5PyFZR+L0tCdYCMAtG0A==", 470 | "cpu": [ 471 | "arm64" 472 | ], 473 | "dev": true, 474 | "optional": true, 475 | "os": [ 476 | "linux" 477 | ] 478 | }, 479 | "node_modules/@rollup/rollup-linux-arm64-musl": { 480 | "version": "4.25.0", 481 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.25.0.tgz", 482 | "integrity": "sha512-ndWTSEmAaKr88dBuogGH2NZaxe7u2rDoArsejNslugHZ+r44NfWiwjzizVS1nUOHo+n1Z6qV3X60rqE/HlISgw==", 483 | "cpu": [ 484 | "arm64" 485 | ], 486 | "dev": true, 487 | "optional": true, 488 | "os": [ 489 | "linux" 490 | ] 491 | }, 492 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 493 | "version": "4.25.0", 494 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.25.0.tgz", 495 | "integrity": "sha512-BVSQvVa2v5hKwJSy6X7W1fjDex6yZnNKy3Kx1JGimccHft6HV0THTwNtC2zawtNXKUu+S5CjXslilYdKBAadzA==", 496 | "cpu": [ 497 | "ppc64" 498 | ], 499 | "dev": true, 500 | "optional": true, 501 | "os": [ 502 | "linux" 503 | ] 504 | }, 505 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 506 | "version": "4.25.0", 507 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.25.0.tgz", 508 | "integrity": "sha512-G4hTREQrIdeV0PE2JruzI+vXdRnaK1pg64hemHq2v5fhv8C7WjVaeXc9P5i4Q5UC06d/L+zA0mszYIKl+wY8oA==", 509 | "cpu": [ 510 | "riscv64" 511 | ], 512 | "dev": true, 513 | "optional": true, 514 | "os": [ 515 | "linux" 516 | ] 517 | }, 518 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 519 | "version": "4.25.0", 520 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.25.0.tgz", 521 | "integrity": "sha512-9T/w0kQ+upxdkFL9zPVB6zy9vWW1deA3g8IauJxojN4bnz5FwSsUAD034KpXIVX5j5p/rn6XqumBMxfRkcHapQ==", 522 | "cpu": [ 523 | "s390x" 524 | ], 525 | "dev": true, 526 | "optional": true, 527 | "os": [ 528 | "linux" 529 | ] 530 | }, 531 | "node_modules/@rollup/rollup-linux-x64-gnu": { 532 | "version": "4.25.0", 533 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.25.0.tgz", 534 | "integrity": "sha512-ThcnU0EcMDn+J4B9LD++OgBYxZusuA7iemIIiz5yzEcFg04VZFzdFjuwPdlURmYPZw+fgVrFzj4CA64jSTG4Ig==", 535 | "cpu": [ 536 | "x64" 537 | ], 538 | "dev": true, 539 | "optional": true, 540 | "os": [ 541 | "linux" 542 | ] 543 | }, 544 | "node_modules/@rollup/rollup-linux-x64-musl": { 545 | "version": "4.25.0", 546 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.25.0.tgz", 547 | "integrity": "sha512-zx71aY2oQxGxAT1JShfhNG79PnjYhMC6voAjzpu/xmMjDnKNf6Nl/xv7YaB/9SIa9jDYf8RBPWEnjcdlhlv1rQ==", 548 | "cpu": [ 549 | "x64" 550 | ], 551 | "dev": true, 552 | "optional": true, 553 | "os": [ 554 | "linux" 555 | ] 556 | }, 557 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 558 | "version": "4.25.0", 559 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.25.0.tgz", 560 | "integrity": "sha512-JT8tcjNocMs4CylWY/CxVLnv8e1lE7ff1fi6kbGocWwxDq9pj30IJ28Peb+Y8yiPNSF28oad42ApJB8oUkwGww==", 561 | "cpu": [ 562 | "arm64" 563 | ], 564 | "dev": true, 565 | "optional": true, 566 | "os": [ 567 | "win32" 568 | ] 569 | }, 570 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 571 | "version": "4.25.0", 572 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.25.0.tgz", 573 | "integrity": "sha512-dRLjLsO3dNOfSN6tjyVlG+Msm4IiZnGkuZ7G5NmpzwF9oOc582FZG05+UdfTbz5Jd4buK/wMb6UeHFhG18+OEg==", 574 | "cpu": [ 575 | "ia32" 576 | ], 577 | "dev": true, 578 | "optional": true, 579 | "os": [ 580 | "win32" 581 | ] 582 | }, 583 | "node_modules/@rollup/rollup-win32-x64-msvc": { 584 | "version": "4.25.0", 585 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.25.0.tgz", 586 | "integrity": "sha512-/RqrIFtLB926frMhZD0a5oDa4eFIbyNEwLLloMTEjmqfwZWXywwVVOVmwTsuyhC9HKkVEZcOOi+KV4U9wmOdlg==", 587 | "cpu": [ 588 | "x64" 589 | ], 590 | "dev": true, 591 | "optional": true, 592 | "os": [ 593 | "win32" 594 | ] 595 | }, 596 | "node_modules/@types/diff-match-patch": { 597 | "version": "1.0.36", 598 | "resolved": "https://registry.npmjs.org/@types/diff-match-patch/-/diff-match-patch-1.0.36.tgz", 599 | "integrity": "sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==", 600 | "license": "MIT" 601 | }, 602 | "node_modules/@types/estree": { 603 | "version": "1.0.6", 604 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", 605 | "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", 606 | "dev": true 607 | }, 608 | "node_modules/ai": { 609 | "version": "4.1.61", 610 | "resolved": "https://registry.npmjs.org/ai/-/ai-4.1.61.tgz", 611 | "integrity": "sha512-Y9SAyGJEeW23F6C7PSHZXYNEvbH2cqJm0rVW2AoeFaXFT13ttx8rAqs8wz2w466C1UB329yl5PXayFcHqofSEA==", 612 | "license": "Apache-2.0", 613 | "dependencies": { 614 | "@ai-sdk/provider": "1.0.11", 615 | "@ai-sdk/provider-utils": "2.1.13", 616 | "@ai-sdk/react": "1.1.23", 617 | "@ai-sdk/ui-utils": "1.1.19", 618 | "@opentelemetry/api": "1.9.0", 619 | "eventsource-parser": "^3.0.0", 620 | "jsondiffpatch": "0.6.0" 621 | }, 622 | "engines": { 623 | "node": ">=18" 624 | }, 625 | "peerDependencies": { 626 | "react": "^18 || ^19 || ^19.0.0-rc", 627 | "zod": "^3.0.0" 628 | }, 629 | "peerDependenciesMeta": { 630 | "react": { 631 | "optional": true 632 | }, 633 | "zod": { 634 | "optional": true 635 | } 636 | } 637 | }, 638 | "node_modules/ansi-regex": { 639 | "version": "6.1.0", 640 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", 641 | "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", 642 | "dev": true, 643 | "engines": { 644 | "node": ">=12" 645 | }, 646 | "funding": { 647 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 648 | } 649 | }, 650 | "node_modules/ansi-styles": { 651 | "version": "6.2.1", 652 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", 653 | "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", 654 | "dev": true, 655 | "engines": { 656 | "node": ">=12" 657 | }, 658 | "funding": { 659 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 660 | } 661 | }, 662 | "node_modules/any-promise": { 663 | "version": "1.3.0", 664 | "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", 665 | "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", 666 | "dev": true 667 | }, 668 | "node_modules/balanced-match": { 669 | "version": "1.0.2", 670 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 671 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 672 | "dev": true 673 | }, 674 | "node_modules/brace-expansion": { 675 | "version": "2.0.1", 676 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 677 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 678 | "dev": true, 679 | "dependencies": { 680 | "balanced-match": "^1.0.0" 681 | } 682 | }, 683 | "node_modules/cac": { 684 | "version": "6.7.14", 685 | "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", 686 | "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", 687 | "dev": true, 688 | "engines": { 689 | "node": ">=8" 690 | } 691 | }, 692 | "node_modules/chalk": { 693 | "version": "5.4.1", 694 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", 695 | "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", 696 | "license": "MIT", 697 | "engines": { 698 | "node": "^12.17.0 || ^14.13 || >=16.0.0" 699 | }, 700 | "funding": { 701 | "url": "https://github.com/chalk/chalk?sponsor=1" 702 | } 703 | }, 704 | "node_modules/chokidar": { 705 | "version": "4.0.1", 706 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", 707 | "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", 708 | "dev": true, 709 | "dependencies": { 710 | "readdirp": "^4.0.1" 711 | }, 712 | "engines": { 713 | "node": ">= 14.16.0" 714 | }, 715 | "funding": { 716 | "url": "https://paulmillr.com/funding/" 717 | } 718 | }, 719 | "node_modules/color-convert": { 720 | "version": "2.0.1", 721 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 722 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 723 | "dev": true, 724 | "dependencies": { 725 | "color-name": "~1.1.4" 726 | }, 727 | "engines": { 728 | "node": ">=7.0.0" 729 | } 730 | }, 731 | "node_modules/color-name": { 732 | "version": "1.1.4", 733 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 734 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 735 | "dev": true 736 | }, 737 | "node_modules/commander": { 738 | "version": "4.1.1", 739 | "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", 740 | "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", 741 | "dev": true, 742 | "engines": { 743 | "node": ">= 6" 744 | } 745 | }, 746 | "node_modules/consola": { 747 | "version": "3.2.3", 748 | "resolved": "https://registry.npmjs.org/consola/-/consola-3.2.3.tgz", 749 | "integrity": "sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==", 750 | "dev": true, 751 | "engines": { 752 | "node": "^14.18.0 || >=16.10.0" 753 | } 754 | }, 755 | "node_modules/cross-spawn": { 756 | "version": "7.0.5", 757 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.5.tgz", 758 | "integrity": "sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==", 759 | "dev": true, 760 | "dependencies": { 761 | "path-key": "^3.1.0", 762 | "shebang-command": "^2.0.0", 763 | "which": "^2.0.1" 764 | }, 765 | "engines": { 766 | "node": ">= 8" 767 | } 768 | }, 769 | "node_modules/debug": { 770 | "version": "4.3.7", 771 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", 772 | "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", 773 | "dev": true, 774 | "dependencies": { 775 | "ms": "^2.1.3" 776 | }, 777 | "engines": { 778 | "node": ">=6.0" 779 | }, 780 | "peerDependenciesMeta": { 781 | "supports-color": { 782 | "optional": true 783 | } 784 | } 785 | }, 786 | "node_modules/dequal": { 787 | "version": "2.0.3", 788 | "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", 789 | "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", 790 | "license": "MIT", 791 | "engines": { 792 | "node": ">=6" 793 | } 794 | }, 795 | "node_modules/diff-match-patch": { 796 | "version": "1.0.5", 797 | "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz", 798 | "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==", 799 | "license": "Apache-2.0" 800 | }, 801 | "node_modules/eastasianwidth": { 802 | "version": "0.2.0", 803 | "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", 804 | "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", 805 | "dev": true 806 | }, 807 | "node_modules/emoji-regex": { 808 | "version": "9.2.2", 809 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", 810 | "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", 811 | "dev": true 812 | }, 813 | "node_modules/eventsource-parser": { 814 | "version": "3.0.0", 815 | "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", 816 | "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", 817 | "license": "MIT", 818 | "engines": { 819 | "node": ">=18.0.0" 820 | } 821 | }, 822 | "node_modules/foreground-child": { 823 | "version": "3.3.0", 824 | "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", 825 | "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", 826 | "dev": true, 827 | "dependencies": { 828 | "cross-spawn": "^7.0.0", 829 | "signal-exit": "^4.0.1" 830 | }, 831 | "engines": { 832 | "node": ">=14" 833 | }, 834 | "funding": { 835 | "url": "https://github.com/sponsors/isaacs" 836 | } 837 | }, 838 | "node_modules/fsevents": { 839 | "version": "2.3.3", 840 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 841 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 842 | "dev": true, 843 | "hasInstallScript": true, 844 | "optional": true, 845 | "os": [ 846 | "darwin" 847 | ], 848 | "engines": { 849 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 850 | } 851 | }, 852 | "node_modules/glob": { 853 | "version": "10.4.5", 854 | "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", 855 | "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", 856 | "dev": true, 857 | "dependencies": { 858 | "foreground-child": "^3.1.0", 859 | "jackspeak": "^3.1.2", 860 | "minimatch": "^9.0.4", 861 | "minipass": "^7.1.2", 862 | "package-json-from-dist": "^1.0.0", 863 | "path-scurry": "^1.11.1" 864 | }, 865 | "bin": { 866 | "glob": "dist/esm/bin.mjs" 867 | }, 868 | "funding": { 869 | "url": "https://github.com/sponsors/isaacs" 870 | } 871 | }, 872 | "node_modules/husky": { 873 | "version": "9.1.7", 874 | "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", 875 | "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", 876 | "dev": true, 877 | "bin": { 878 | "husky": "bin.js" 879 | }, 880 | "engines": { 881 | "node": ">=18" 882 | }, 883 | "funding": { 884 | "url": "https://github.com/sponsors/typicode" 885 | } 886 | }, 887 | "node_modules/is-fullwidth-code-point": { 888 | "version": "3.0.0", 889 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 890 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 891 | "dev": true, 892 | "engines": { 893 | "node": ">=8" 894 | } 895 | }, 896 | "node_modules/isexe": { 897 | "version": "2.0.0", 898 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 899 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 900 | "dev": true 901 | }, 902 | "node_modules/jackspeak": { 903 | "version": "3.4.3", 904 | "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", 905 | "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", 906 | "dev": true, 907 | "dependencies": { 908 | "@isaacs/cliui": "^8.0.2" 909 | }, 910 | "funding": { 911 | "url": "https://github.com/sponsors/isaacs" 912 | }, 913 | "optionalDependencies": { 914 | "@pkgjs/parseargs": "^0.11.0" 915 | } 916 | }, 917 | "node_modules/joycon": { 918 | "version": "3.1.1", 919 | "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", 920 | "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", 921 | "dev": true, 922 | "engines": { 923 | "node": ">=10" 924 | } 925 | }, 926 | "node_modules/js-tokens": { 927 | "version": "4.0.0", 928 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 929 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 930 | "license": "MIT", 931 | "peer": true 932 | }, 933 | "node_modules/json-schema": { 934 | "version": "0.4.0", 935 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", 936 | "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", 937 | "license": "(AFL-2.1 OR BSD-3-Clause)" 938 | }, 939 | "node_modules/jsondiffpatch": { 940 | "version": "0.6.0", 941 | "resolved": "https://registry.npmjs.org/jsondiffpatch/-/jsondiffpatch-0.6.0.tgz", 942 | "integrity": "sha512-3QItJOXp2AP1uv7waBkao5nCvhEv+QmJAd38Ybq7wNI74Q+BBmnLn4EDKz6yI9xGAIQoUF87qHt+kc1IVxB4zQ==", 943 | "license": "MIT", 944 | "dependencies": { 945 | "@types/diff-match-patch": "^1.0.36", 946 | "chalk": "^5.3.0", 947 | "diff-match-patch": "^1.0.5" 948 | }, 949 | "bin": { 950 | "jsondiffpatch": "bin/jsondiffpatch.js" 951 | }, 952 | "engines": { 953 | "node": "^18.0.0 || >=20.0.0" 954 | } 955 | }, 956 | "node_modules/lilconfig": { 957 | "version": "3.1.2", 958 | "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.2.tgz", 959 | "integrity": "sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==", 960 | "dev": true, 961 | "engines": { 962 | "node": ">=14" 963 | }, 964 | "funding": { 965 | "url": "https://github.com/sponsors/antonk52" 966 | } 967 | }, 968 | "node_modules/lines-and-columns": { 969 | "version": "1.2.4", 970 | "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", 971 | "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", 972 | "dev": true 973 | }, 974 | "node_modules/load-tsconfig": { 975 | "version": "0.2.5", 976 | "resolved": "https://registry.npmjs.org/load-tsconfig/-/load-tsconfig-0.2.5.tgz", 977 | "integrity": "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==", 978 | "dev": true, 979 | "engines": { 980 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 981 | } 982 | }, 983 | "node_modules/lodash.sortby": { 984 | "version": "4.7.0", 985 | "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", 986 | "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==", 987 | "dev": true 988 | }, 989 | "node_modules/loose-envify": { 990 | "version": "1.4.0", 991 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", 992 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 993 | "license": "MIT", 994 | "peer": true, 995 | "dependencies": { 996 | "js-tokens": "^3.0.0 || ^4.0.0" 997 | }, 998 | "bin": { 999 | "loose-envify": "cli.js" 1000 | } 1001 | }, 1002 | "node_modules/lru-cache": { 1003 | "version": "10.4.3", 1004 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", 1005 | "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", 1006 | "dev": true 1007 | }, 1008 | "node_modules/minimatch": { 1009 | "version": "9.0.5", 1010 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", 1011 | "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", 1012 | "dev": true, 1013 | "dependencies": { 1014 | "brace-expansion": "^2.0.1" 1015 | }, 1016 | "engines": { 1017 | "node": ">=16 || 14 >=14.17" 1018 | }, 1019 | "funding": { 1020 | "url": "https://github.com/sponsors/isaacs" 1021 | } 1022 | }, 1023 | "node_modules/minipass": { 1024 | "version": "7.1.2", 1025 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", 1026 | "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", 1027 | "dev": true, 1028 | "engines": { 1029 | "node": ">=16 || 14 >=14.17" 1030 | } 1031 | }, 1032 | "node_modules/ms": { 1033 | "version": "2.1.3", 1034 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1035 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1036 | "dev": true 1037 | }, 1038 | "node_modules/mz": { 1039 | "version": "2.7.0", 1040 | "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", 1041 | "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", 1042 | "dev": true, 1043 | "dependencies": { 1044 | "any-promise": "^1.0.0", 1045 | "object-assign": "^4.0.1", 1046 | "thenify-all": "^1.0.0" 1047 | } 1048 | }, 1049 | "node_modules/nanoid": { 1050 | "version": "3.3.8", 1051 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", 1052 | "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", 1053 | "funding": [ 1054 | { 1055 | "type": "github", 1056 | "url": "https://github.com/sponsors/ai" 1057 | } 1058 | ], 1059 | "license": "MIT", 1060 | "bin": { 1061 | "nanoid": "bin/nanoid.cjs" 1062 | }, 1063 | "engines": { 1064 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1065 | } 1066 | }, 1067 | "node_modules/object-assign": { 1068 | "version": "4.1.1", 1069 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1070 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 1071 | "dev": true, 1072 | "engines": { 1073 | "node": ">=0.10.0" 1074 | } 1075 | }, 1076 | "node_modules/package-json-from-dist": { 1077 | "version": "1.0.1", 1078 | "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", 1079 | "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", 1080 | "dev": true 1081 | }, 1082 | "node_modules/path-key": { 1083 | "version": "3.1.1", 1084 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1085 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1086 | "dev": true, 1087 | "engines": { 1088 | "node": ">=8" 1089 | } 1090 | }, 1091 | "node_modules/path-scurry": { 1092 | "version": "1.11.1", 1093 | "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", 1094 | "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", 1095 | "dev": true, 1096 | "dependencies": { 1097 | "lru-cache": "^10.2.0", 1098 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" 1099 | }, 1100 | "engines": { 1101 | "node": ">=16 || 14 >=14.18" 1102 | }, 1103 | "funding": { 1104 | "url": "https://github.com/sponsors/isaacs" 1105 | } 1106 | }, 1107 | "node_modules/picocolors": { 1108 | "version": "1.1.1", 1109 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 1110 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 1111 | "dev": true 1112 | }, 1113 | "node_modules/pirates": { 1114 | "version": "4.0.6", 1115 | "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", 1116 | "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", 1117 | "dev": true, 1118 | "engines": { 1119 | "node": ">= 6" 1120 | } 1121 | }, 1122 | "node_modules/postcss": { 1123 | "version": "8.5.2", 1124 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.2.tgz", 1125 | "integrity": "sha512-MjOadfU3Ys9KYoX0AdkBlFEF1Vx37uCCeN4ZHnmwm9FfpbsGWMZeBLMmmpY+6Ocqod7mkdZ0DT31OlbsFrLlkA==", 1126 | "dev": true, 1127 | "funding": [ 1128 | { 1129 | "type": "opencollective", 1130 | "url": "https://opencollective.com/postcss/" 1131 | }, 1132 | { 1133 | "type": "tidelift", 1134 | "url": "https://tidelift.com/funding/github/npm/postcss" 1135 | }, 1136 | { 1137 | "type": "github", 1138 | "url": "https://github.com/sponsors/ai" 1139 | } 1140 | ], 1141 | "license": "MIT", 1142 | "optional": true, 1143 | "peer": true, 1144 | "dependencies": { 1145 | "nanoid": "^3.3.8", 1146 | "picocolors": "^1.1.1", 1147 | "source-map-js": "^1.2.1" 1148 | }, 1149 | "engines": { 1150 | "node": "^10 || ^12 || >=14" 1151 | } 1152 | }, 1153 | "node_modules/postcss-load-config": { 1154 | "version": "6.0.1", 1155 | "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz", 1156 | "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", 1157 | "dev": true, 1158 | "funding": [ 1159 | { 1160 | "type": "opencollective", 1161 | "url": "https://opencollective.com/postcss/" 1162 | }, 1163 | { 1164 | "type": "github", 1165 | "url": "https://github.com/sponsors/ai" 1166 | } 1167 | ], 1168 | "dependencies": { 1169 | "lilconfig": "^3.1.1" 1170 | }, 1171 | "engines": { 1172 | "node": ">= 18" 1173 | }, 1174 | "peerDependencies": { 1175 | "jiti": ">=1.21.0", 1176 | "postcss": ">=8.0.9", 1177 | "tsx": "^4.8.1", 1178 | "yaml": "^2.4.2" 1179 | }, 1180 | "peerDependenciesMeta": { 1181 | "jiti": { 1182 | "optional": true 1183 | }, 1184 | "postcss": { 1185 | "optional": true 1186 | }, 1187 | "tsx": { 1188 | "optional": true 1189 | }, 1190 | "yaml": { 1191 | "optional": true 1192 | } 1193 | } 1194 | }, 1195 | "node_modules/punycode": { 1196 | "version": "2.3.1", 1197 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1198 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1199 | "dev": true, 1200 | "engines": { 1201 | "node": ">=6" 1202 | } 1203 | }, 1204 | "node_modules/react": { 1205 | "version": "18.3.1", 1206 | "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", 1207 | "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", 1208 | "license": "MIT", 1209 | "peer": true, 1210 | "dependencies": { 1211 | "loose-envify": "^1.1.0" 1212 | }, 1213 | "engines": { 1214 | "node": ">=0.10.0" 1215 | } 1216 | }, 1217 | "node_modules/readdirp": { 1218 | "version": "4.0.2", 1219 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", 1220 | "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", 1221 | "dev": true, 1222 | "engines": { 1223 | "node": ">= 14.16.0" 1224 | }, 1225 | "funding": { 1226 | "type": "individual", 1227 | "url": "https://paulmillr.com/funding/" 1228 | } 1229 | }, 1230 | "node_modules/resolve-from": { 1231 | "version": "5.0.0", 1232 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", 1233 | "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", 1234 | "dev": true, 1235 | "engines": { 1236 | "node": ">=8" 1237 | } 1238 | }, 1239 | "node_modules/rollup": { 1240 | "version": "4.25.0", 1241 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.25.0.tgz", 1242 | "integrity": "sha512-uVbClXmR6wvx5R1M3Od4utyLUxrmOcEm3pAtMphn73Apq19PDtHpgZoEvqH2YnnaNUuvKmg2DgRd2Sqv+odyqg==", 1243 | "dev": true, 1244 | "dependencies": { 1245 | "@types/estree": "1.0.6" 1246 | }, 1247 | "bin": { 1248 | "rollup": "dist/bin/rollup" 1249 | }, 1250 | "engines": { 1251 | "node": ">=18.0.0", 1252 | "npm": ">=8.0.0" 1253 | }, 1254 | "optionalDependencies": { 1255 | "@rollup/rollup-android-arm-eabi": "4.25.0", 1256 | "@rollup/rollup-android-arm64": "4.25.0", 1257 | "@rollup/rollup-darwin-arm64": "4.25.0", 1258 | "@rollup/rollup-darwin-x64": "4.25.0", 1259 | "@rollup/rollup-freebsd-arm64": "4.25.0", 1260 | "@rollup/rollup-freebsd-x64": "4.25.0", 1261 | "@rollup/rollup-linux-arm-gnueabihf": "4.25.0", 1262 | "@rollup/rollup-linux-arm-musleabihf": "4.25.0", 1263 | "@rollup/rollup-linux-arm64-gnu": "4.25.0", 1264 | "@rollup/rollup-linux-arm64-musl": "4.25.0", 1265 | "@rollup/rollup-linux-powerpc64le-gnu": "4.25.0", 1266 | "@rollup/rollup-linux-riscv64-gnu": "4.25.0", 1267 | "@rollup/rollup-linux-s390x-gnu": "4.25.0", 1268 | "@rollup/rollup-linux-x64-gnu": "4.25.0", 1269 | "@rollup/rollup-linux-x64-musl": "4.25.0", 1270 | "@rollup/rollup-win32-arm64-msvc": "4.25.0", 1271 | "@rollup/rollup-win32-ia32-msvc": "4.25.0", 1272 | "@rollup/rollup-win32-x64-msvc": "4.25.0", 1273 | "fsevents": "~2.3.2" 1274 | } 1275 | }, 1276 | "node_modules/secure-json-parse": { 1277 | "version": "2.7.0", 1278 | "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", 1279 | "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==", 1280 | "license": "BSD-3-Clause" 1281 | }, 1282 | "node_modules/shebang-command": { 1283 | "version": "2.0.0", 1284 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1285 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1286 | "dev": true, 1287 | "dependencies": { 1288 | "shebang-regex": "^3.0.0" 1289 | }, 1290 | "engines": { 1291 | "node": ">=8" 1292 | } 1293 | }, 1294 | "node_modules/shebang-regex": { 1295 | "version": "3.0.0", 1296 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1297 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1298 | "dev": true, 1299 | "engines": { 1300 | "node": ">=8" 1301 | } 1302 | }, 1303 | "node_modules/signal-exit": { 1304 | "version": "4.1.0", 1305 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", 1306 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 1307 | "dev": true, 1308 | "engines": { 1309 | "node": ">=14" 1310 | }, 1311 | "funding": { 1312 | "url": "https://github.com/sponsors/isaacs" 1313 | } 1314 | }, 1315 | "node_modules/source-map-js": { 1316 | "version": "1.2.1", 1317 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", 1318 | "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", 1319 | "dev": true, 1320 | "optional": true, 1321 | "peer": true, 1322 | "engines": { 1323 | "node": ">=0.10.0" 1324 | } 1325 | }, 1326 | "node_modules/string-width": { 1327 | "version": "5.1.2", 1328 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", 1329 | "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", 1330 | "dev": true, 1331 | "dependencies": { 1332 | "eastasianwidth": "^0.2.0", 1333 | "emoji-regex": "^9.2.2", 1334 | "strip-ansi": "^7.0.1" 1335 | }, 1336 | "engines": { 1337 | "node": ">=12" 1338 | }, 1339 | "funding": { 1340 | "url": "https://github.com/sponsors/sindresorhus" 1341 | } 1342 | }, 1343 | "node_modules/string-width-cjs": { 1344 | "name": "string-width", 1345 | "version": "4.2.3", 1346 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1347 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1348 | "dev": true, 1349 | "dependencies": { 1350 | "emoji-regex": "^8.0.0", 1351 | "is-fullwidth-code-point": "^3.0.0", 1352 | "strip-ansi": "^6.0.1" 1353 | }, 1354 | "engines": { 1355 | "node": ">=8" 1356 | } 1357 | }, 1358 | "node_modules/string-width-cjs/node_modules/ansi-regex": { 1359 | "version": "5.0.1", 1360 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1361 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1362 | "dev": true, 1363 | "engines": { 1364 | "node": ">=8" 1365 | } 1366 | }, 1367 | "node_modules/string-width-cjs/node_modules/emoji-regex": { 1368 | "version": "8.0.0", 1369 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1370 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1371 | "dev": true 1372 | }, 1373 | "node_modules/string-width-cjs/node_modules/strip-ansi": { 1374 | "version": "6.0.1", 1375 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1376 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1377 | "dev": true, 1378 | "dependencies": { 1379 | "ansi-regex": "^5.0.1" 1380 | }, 1381 | "engines": { 1382 | "node": ">=8" 1383 | } 1384 | }, 1385 | "node_modules/strip-ansi": { 1386 | "version": "7.1.0", 1387 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 1388 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 1389 | "dev": true, 1390 | "dependencies": { 1391 | "ansi-regex": "^6.0.1" 1392 | }, 1393 | "engines": { 1394 | "node": ">=12" 1395 | }, 1396 | "funding": { 1397 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 1398 | } 1399 | }, 1400 | "node_modules/strip-ansi-cjs": { 1401 | "name": "strip-ansi", 1402 | "version": "6.0.1", 1403 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1404 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1405 | "dev": true, 1406 | "dependencies": { 1407 | "ansi-regex": "^5.0.1" 1408 | }, 1409 | "engines": { 1410 | "node": ">=8" 1411 | } 1412 | }, 1413 | "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { 1414 | "version": "5.0.1", 1415 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1416 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1417 | "dev": true, 1418 | "engines": { 1419 | "node": ">=8" 1420 | } 1421 | }, 1422 | "node_modules/sucrase": { 1423 | "version": "3.35.0", 1424 | "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", 1425 | "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", 1426 | "dev": true, 1427 | "dependencies": { 1428 | "@jridgewell/gen-mapping": "^0.3.2", 1429 | "commander": "^4.0.0", 1430 | "glob": "^10.3.10", 1431 | "lines-and-columns": "^1.1.6", 1432 | "mz": "^2.7.0", 1433 | "pirates": "^4.0.1", 1434 | "ts-interface-checker": "^0.1.9" 1435 | }, 1436 | "bin": { 1437 | "sucrase": "bin/sucrase", 1438 | "sucrase-node": "bin/sucrase-node" 1439 | }, 1440 | "engines": { 1441 | "node": ">=16 || 14 >=14.17" 1442 | } 1443 | }, 1444 | "node_modules/swr": { 1445 | "version": "2.3.3", 1446 | "resolved": "https://registry.npmjs.org/swr/-/swr-2.3.3.tgz", 1447 | "integrity": "sha512-dshNvs3ExOqtZ6kJBaAsabhPdHyeY4P2cKwRCniDVifBMoG/SVI7tfLWqPXriVspf2Rg4tPzXJTnwaihIeFw2A==", 1448 | "license": "MIT", 1449 | "dependencies": { 1450 | "dequal": "^2.0.3", 1451 | "use-sync-external-store": "^1.4.0" 1452 | }, 1453 | "peerDependencies": { 1454 | "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" 1455 | } 1456 | }, 1457 | "node_modules/thenify": { 1458 | "version": "3.3.1", 1459 | "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", 1460 | "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", 1461 | "dev": true, 1462 | "dependencies": { 1463 | "any-promise": "^1.0.0" 1464 | } 1465 | }, 1466 | "node_modules/thenify-all": { 1467 | "version": "1.6.0", 1468 | "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", 1469 | "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", 1470 | "dev": true, 1471 | "dependencies": { 1472 | "thenify": ">= 3.1.0 < 4" 1473 | }, 1474 | "engines": { 1475 | "node": ">=0.8" 1476 | } 1477 | }, 1478 | "node_modules/throttleit": { 1479 | "version": "2.1.0", 1480 | "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-2.1.0.tgz", 1481 | "integrity": "sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==", 1482 | "license": "MIT", 1483 | "engines": { 1484 | "node": ">=18" 1485 | }, 1486 | "funding": { 1487 | "url": "https://github.com/sponsors/sindresorhus" 1488 | } 1489 | }, 1490 | "node_modules/tinyexec": { 1491 | "version": "0.3.1", 1492 | "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.1.tgz", 1493 | "integrity": "sha512-WiCJLEECkO18gwqIp6+hJg0//p23HXp4S+gGtAKu3mI2F2/sXC4FvHvXvB0zJVVaTPhx1/tOwdbRsa1sOBIKqQ==", 1494 | "dev": true 1495 | }, 1496 | "node_modules/tinyglobby": { 1497 | "version": "0.2.10", 1498 | "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.10.tgz", 1499 | "integrity": "sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==", 1500 | "dev": true, 1501 | "dependencies": { 1502 | "fdir": "^6.4.2", 1503 | "picomatch": "^4.0.2" 1504 | }, 1505 | "engines": { 1506 | "node": ">=12.0.0" 1507 | } 1508 | }, 1509 | "node_modules/tinyglobby/node_modules/fdir": { 1510 | "version": "6.4.2", 1511 | "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.2.tgz", 1512 | "integrity": "sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==", 1513 | "dev": true, 1514 | "peerDependencies": { 1515 | "picomatch": "^3 || ^4" 1516 | }, 1517 | "peerDependenciesMeta": { 1518 | "picomatch": { 1519 | "optional": true 1520 | } 1521 | } 1522 | }, 1523 | "node_modules/tinyglobby/node_modules/picomatch": { 1524 | "version": "4.0.2", 1525 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", 1526 | "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", 1527 | "dev": true, 1528 | "engines": { 1529 | "node": ">=12" 1530 | }, 1531 | "funding": { 1532 | "url": "https://github.com/sponsors/jonschlinkert" 1533 | } 1534 | }, 1535 | "node_modules/tr46": { 1536 | "version": "1.0.1", 1537 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", 1538 | "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", 1539 | "dev": true, 1540 | "dependencies": { 1541 | "punycode": "^2.1.0" 1542 | } 1543 | }, 1544 | "node_modules/tree-kill": { 1545 | "version": "1.2.2", 1546 | "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", 1547 | "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", 1548 | "dev": true, 1549 | "bin": { 1550 | "tree-kill": "cli.js" 1551 | } 1552 | }, 1553 | "node_modules/ts-interface-checker": { 1554 | "version": "0.1.13", 1555 | "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", 1556 | "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", 1557 | "dev": true 1558 | }, 1559 | "node_modules/tsup": { 1560 | "version": "8.3.5", 1561 | "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.3.5.tgz", 1562 | "integrity": "sha512-Tunf6r6m6tnZsG9GYWndg0z8dEV7fD733VBFzFJ5Vcm1FtlXB8xBD/rtrBi2a3YKEV7hHtxiZtW5EAVADoe1pA==", 1563 | "dev": true, 1564 | "dependencies": { 1565 | "bundle-require": "^5.0.0", 1566 | "cac": "^6.7.14", 1567 | "chokidar": "^4.0.1", 1568 | "consola": "^3.2.3", 1569 | "debug": "^4.3.7", 1570 | "esbuild": "^0.24.0", 1571 | "joycon": "^3.1.1", 1572 | "picocolors": "^1.1.1", 1573 | "postcss-load-config": "^6.0.1", 1574 | "resolve-from": "^5.0.0", 1575 | "rollup": "^4.24.0", 1576 | "source-map": "0.8.0-beta.0", 1577 | "sucrase": "^3.35.0", 1578 | "tinyexec": "^0.3.1", 1579 | "tinyglobby": "^0.2.9", 1580 | "tree-kill": "^1.2.2" 1581 | }, 1582 | "bin": { 1583 | "tsup": "dist/cli-default.js", 1584 | "tsup-node": "dist/cli-node.js" 1585 | }, 1586 | "engines": { 1587 | "node": ">=18" 1588 | }, 1589 | "peerDependencies": { 1590 | "@microsoft/api-extractor": "^7.36.0", 1591 | "@swc/core": "^1", 1592 | "postcss": "^8.4.12", 1593 | "typescript": ">=4.5.0" 1594 | }, 1595 | "peerDependenciesMeta": { 1596 | "@microsoft/api-extractor": { 1597 | "optional": true 1598 | }, 1599 | "@swc/core": { 1600 | "optional": true 1601 | }, 1602 | "postcss": { 1603 | "optional": true 1604 | }, 1605 | "typescript": { 1606 | "optional": true 1607 | } 1608 | } 1609 | }, 1610 | "node_modules/tsup/node_modules/@esbuild/aix-ppc64": { 1611 | "version": "0.24.0", 1612 | "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.0.tgz", 1613 | "integrity": "sha512-WtKdFM7ls47zkKHFVzMz8opM7LkcsIp9amDUBIAWirg70RM71WRSjdILPsY5Uv1D42ZpUfaPILDlfactHgsRkw==", 1614 | "cpu": [ 1615 | "ppc64" 1616 | ], 1617 | "dev": true, 1618 | "optional": true, 1619 | "os": [ 1620 | "aix" 1621 | ], 1622 | "engines": { 1623 | "node": ">=18" 1624 | } 1625 | }, 1626 | "node_modules/tsup/node_modules/@esbuild/android-arm": { 1627 | "version": "0.24.0", 1628 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.0.tgz", 1629 | "integrity": "sha512-arAtTPo76fJ/ICkXWetLCc9EwEHKaeya4vMrReVlEIUCAUncH7M4bhMQ+M9Vf+FFOZJdTNMXNBrWwW+OXWpSew==", 1630 | "cpu": [ 1631 | "arm" 1632 | ], 1633 | "dev": true, 1634 | "optional": true, 1635 | "os": [ 1636 | "android" 1637 | ], 1638 | "engines": { 1639 | "node": ">=18" 1640 | } 1641 | }, 1642 | "node_modules/tsup/node_modules/@esbuild/android-arm64": { 1643 | "version": "0.24.0", 1644 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.0.tgz", 1645 | "integrity": "sha512-Vsm497xFM7tTIPYK9bNTYJyF/lsP590Qc1WxJdlB6ljCbdZKU9SY8i7+Iin4kyhV/KV5J2rOKsBQbB77Ab7L/w==", 1646 | "cpu": [ 1647 | "arm64" 1648 | ], 1649 | "dev": true, 1650 | "optional": true, 1651 | "os": [ 1652 | "android" 1653 | ], 1654 | "engines": { 1655 | "node": ">=18" 1656 | } 1657 | }, 1658 | "node_modules/tsup/node_modules/@esbuild/android-x64": { 1659 | "version": "0.24.0", 1660 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.0.tgz", 1661 | "integrity": "sha512-t8GrvnFkiIY7pa7mMgJd7p8p8qqYIz1NYiAoKc75Zyv73L3DZW++oYMSHPRarcotTKuSs6m3hTOa5CKHaS02TQ==", 1662 | "cpu": [ 1663 | "x64" 1664 | ], 1665 | "dev": true, 1666 | "optional": true, 1667 | "os": [ 1668 | "android" 1669 | ], 1670 | "engines": { 1671 | "node": ">=18" 1672 | } 1673 | }, 1674 | "node_modules/tsup/node_modules/@esbuild/darwin-arm64": { 1675 | "version": "0.24.0", 1676 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.0.tgz", 1677 | "integrity": "sha512-CKyDpRbK1hXwv79soeTJNHb5EiG6ct3efd/FTPdzOWdbZZfGhpbcqIpiD0+vwmpu0wTIL97ZRPZu8vUt46nBSw==", 1678 | "cpu": [ 1679 | "arm64" 1680 | ], 1681 | "dev": true, 1682 | "optional": true, 1683 | "os": [ 1684 | "darwin" 1685 | ], 1686 | "engines": { 1687 | "node": ">=18" 1688 | } 1689 | }, 1690 | "node_modules/tsup/node_modules/@esbuild/darwin-x64": { 1691 | "version": "0.24.0", 1692 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.0.tgz", 1693 | "integrity": "sha512-rgtz6flkVkh58od4PwTRqxbKH9cOjaXCMZgWD905JOzjFKW+7EiUObfd/Kav+A6Gyud6WZk9w+xu6QLytdi2OA==", 1694 | "cpu": [ 1695 | "x64" 1696 | ], 1697 | "dev": true, 1698 | "optional": true, 1699 | "os": [ 1700 | "darwin" 1701 | ], 1702 | "engines": { 1703 | "node": ">=18" 1704 | } 1705 | }, 1706 | "node_modules/tsup/node_modules/@esbuild/freebsd-arm64": { 1707 | "version": "0.24.0", 1708 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.0.tgz", 1709 | "integrity": "sha512-6Mtdq5nHggwfDNLAHkPlyLBpE5L6hwsuXZX8XNmHno9JuL2+bg2BX5tRkwjyfn6sKbxZTq68suOjgWqCicvPXA==", 1710 | "cpu": [ 1711 | "arm64" 1712 | ], 1713 | "dev": true, 1714 | "optional": true, 1715 | "os": [ 1716 | "freebsd" 1717 | ], 1718 | "engines": { 1719 | "node": ">=18" 1720 | } 1721 | }, 1722 | "node_modules/tsup/node_modules/@esbuild/freebsd-x64": { 1723 | "version": "0.24.0", 1724 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.0.tgz", 1725 | "integrity": "sha512-D3H+xh3/zphoX8ck4S2RxKR6gHlHDXXzOf6f/9dbFt/NRBDIE33+cVa49Kil4WUjxMGW0ZIYBYtaGCa2+OsQwQ==", 1726 | "cpu": [ 1727 | "x64" 1728 | ], 1729 | "dev": true, 1730 | "optional": true, 1731 | "os": [ 1732 | "freebsd" 1733 | ], 1734 | "engines": { 1735 | "node": ">=18" 1736 | } 1737 | }, 1738 | "node_modules/tsup/node_modules/@esbuild/linux-arm": { 1739 | "version": "0.24.0", 1740 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.0.tgz", 1741 | "integrity": "sha512-gJKIi2IjRo5G6Glxb8d3DzYXlxdEj2NlkixPsqePSZMhLudqPhtZ4BUrpIuTjJYXxvF9njql+vRjB2oaC9XpBw==", 1742 | "cpu": [ 1743 | "arm" 1744 | ], 1745 | "dev": true, 1746 | "optional": true, 1747 | "os": [ 1748 | "linux" 1749 | ], 1750 | "engines": { 1751 | "node": ">=18" 1752 | } 1753 | }, 1754 | "node_modules/tsup/node_modules/@esbuild/linux-arm64": { 1755 | "version": "0.24.0", 1756 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.0.tgz", 1757 | "integrity": "sha512-TDijPXTOeE3eaMkRYpcy3LarIg13dS9wWHRdwYRnzlwlA370rNdZqbcp0WTyyV/k2zSxfko52+C7jU5F9Tfj1g==", 1758 | "cpu": [ 1759 | "arm64" 1760 | ], 1761 | "dev": true, 1762 | "optional": true, 1763 | "os": [ 1764 | "linux" 1765 | ], 1766 | "engines": { 1767 | "node": ">=18" 1768 | } 1769 | }, 1770 | "node_modules/tsup/node_modules/@esbuild/linux-ia32": { 1771 | "version": "0.24.0", 1772 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.0.tgz", 1773 | "integrity": "sha512-K40ip1LAcA0byL05TbCQ4yJ4swvnbzHscRmUilrmP9Am7//0UjPreh4lpYzvThT2Quw66MhjG//20mrufm40mA==", 1774 | "cpu": [ 1775 | "ia32" 1776 | ], 1777 | "dev": true, 1778 | "optional": true, 1779 | "os": [ 1780 | "linux" 1781 | ], 1782 | "engines": { 1783 | "node": ">=18" 1784 | } 1785 | }, 1786 | "node_modules/tsup/node_modules/@esbuild/linux-loong64": { 1787 | "version": "0.24.0", 1788 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.0.tgz", 1789 | "integrity": "sha512-0mswrYP/9ai+CU0BzBfPMZ8RVm3RGAN/lmOMgW4aFUSOQBjA31UP8Mr6DDhWSuMwj7jaWOT0p0WoZ6jeHhrD7g==", 1790 | "cpu": [ 1791 | "loong64" 1792 | ], 1793 | "dev": true, 1794 | "optional": true, 1795 | "os": [ 1796 | "linux" 1797 | ], 1798 | "engines": { 1799 | "node": ">=18" 1800 | } 1801 | }, 1802 | "node_modules/tsup/node_modules/@esbuild/linux-mips64el": { 1803 | "version": "0.24.0", 1804 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.0.tgz", 1805 | "integrity": "sha512-hIKvXm0/3w/5+RDtCJeXqMZGkI2s4oMUGj3/jM0QzhgIASWrGO5/RlzAzm5nNh/awHE0A19h/CvHQe6FaBNrRA==", 1806 | "cpu": [ 1807 | "mips64el" 1808 | ], 1809 | "dev": true, 1810 | "optional": true, 1811 | "os": [ 1812 | "linux" 1813 | ], 1814 | "engines": { 1815 | "node": ">=18" 1816 | } 1817 | }, 1818 | "node_modules/tsup/node_modules/@esbuild/linux-ppc64": { 1819 | "version": "0.24.0", 1820 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.0.tgz", 1821 | "integrity": "sha512-HcZh5BNq0aC52UoocJxaKORfFODWXZxtBaaZNuN3PUX3MoDsChsZqopzi5UupRhPHSEHotoiptqikjN/B77mYQ==", 1822 | "cpu": [ 1823 | "ppc64" 1824 | ], 1825 | "dev": true, 1826 | "optional": true, 1827 | "os": [ 1828 | "linux" 1829 | ], 1830 | "engines": { 1831 | "node": ">=18" 1832 | } 1833 | }, 1834 | "node_modules/tsup/node_modules/@esbuild/linux-riscv64": { 1835 | "version": "0.24.0", 1836 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.0.tgz", 1837 | "integrity": "sha512-bEh7dMn/h3QxeR2KTy1DUszQjUrIHPZKyO6aN1X4BCnhfYhuQqedHaa5MxSQA/06j3GpiIlFGSsy1c7Gf9padw==", 1838 | "cpu": [ 1839 | "riscv64" 1840 | ], 1841 | "dev": true, 1842 | "optional": true, 1843 | "os": [ 1844 | "linux" 1845 | ], 1846 | "engines": { 1847 | "node": ">=18" 1848 | } 1849 | }, 1850 | "node_modules/tsup/node_modules/@esbuild/linux-s390x": { 1851 | "version": "0.24.0", 1852 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.0.tgz", 1853 | "integrity": "sha512-ZcQ6+qRkw1UcZGPyrCiHHkmBaj9SiCD8Oqd556HldP+QlpUIe2Wgn3ehQGVoPOvZvtHm8HPx+bH20c9pvbkX3g==", 1854 | "cpu": [ 1855 | "s390x" 1856 | ], 1857 | "dev": true, 1858 | "optional": true, 1859 | "os": [ 1860 | "linux" 1861 | ], 1862 | "engines": { 1863 | "node": ">=18" 1864 | } 1865 | }, 1866 | "node_modules/tsup/node_modules/@esbuild/linux-x64": { 1867 | "version": "0.24.0", 1868 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.0.tgz", 1869 | "integrity": "sha512-vbutsFqQ+foy3wSSbmjBXXIJ6PL3scghJoM8zCL142cGaZKAdCZHyf+Bpu/MmX9zT9Q0zFBVKb36Ma5Fzfa8xA==", 1870 | "cpu": [ 1871 | "x64" 1872 | ], 1873 | "dev": true, 1874 | "optional": true, 1875 | "os": [ 1876 | "linux" 1877 | ], 1878 | "engines": { 1879 | "node": ">=18" 1880 | } 1881 | }, 1882 | "node_modules/tsup/node_modules/@esbuild/netbsd-x64": { 1883 | "version": "0.24.0", 1884 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.0.tgz", 1885 | "integrity": "sha512-hjQ0R/ulkO8fCYFsG0FZoH+pWgTTDreqpqY7UnQntnaKv95uP5iW3+dChxnx7C3trQQU40S+OgWhUVwCjVFLvg==", 1886 | "cpu": [ 1887 | "x64" 1888 | ], 1889 | "dev": true, 1890 | "optional": true, 1891 | "os": [ 1892 | "netbsd" 1893 | ], 1894 | "engines": { 1895 | "node": ">=18" 1896 | } 1897 | }, 1898 | "node_modules/tsup/node_modules/@esbuild/openbsd-x64": { 1899 | "version": "0.24.0", 1900 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.0.tgz", 1901 | "integrity": "sha512-4ir0aY1NGUhIC1hdoCzr1+5b43mw99uNwVzhIq1OY3QcEwPDO3B7WNXBzaKY5Nsf1+N11i1eOfFcq+D/gOS15Q==", 1902 | "cpu": [ 1903 | "x64" 1904 | ], 1905 | "dev": true, 1906 | "optional": true, 1907 | "os": [ 1908 | "openbsd" 1909 | ], 1910 | "engines": { 1911 | "node": ">=18" 1912 | } 1913 | }, 1914 | "node_modules/tsup/node_modules/@esbuild/sunos-x64": { 1915 | "version": "0.24.0", 1916 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.0.tgz", 1917 | "integrity": "sha512-jVzdzsbM5xrotH+W5f1s+JtUy1UWgjU0Cf4wMvffTB8m6wP5/kx0KiaLHlbJO+dMgtxKV8RQ/JvtlFcdZ1zCPA==", 1918 | "cpu": [ 1919 | "x64" 1920 | ], 1921 | "dev": true, 1922 | "optional": true, 1923 | "os": [ 1924 | "sunos" 1925 | ], 1926 | "engines": { 1927 | "node": ">=18" 1928 | } 1929 | }, 1930 | "node_modules/tsup/node_modules/@esbuild/win32-arm64": { 1931 | "version": "0.24.0", 1932 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.0.tgz", 1933 | "integrity": "sha512-iKc8GAslzRpBytO2/aN3d2yb2z8XTVfNV0PjGlCxKo5SgWmNXx82I/Q3aG1tFfS+A2igVCY97TJ8tnYwpUWLCA==", 1934 | "cpu": [ 1935 | "arm64" 1936 | ], 1937 | "dev": true, 1938 | "optional": true, 1939 | "os": [ 1940 | "win32" 1941 | ], 1942 | "engines": { 1943 | "node": ">=18" 1944 | } 1945 | }, 1946 | "node_modules/tsup/node_modules/@esbuild/win32-ia32": { 1947 | "version": "0.24.0", 1948 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.0.tgz", 1949 | "integrity": "sha512-vQW36KZolfIudCcTnaTpmLQ24Ha1RjygBo39/aLkM2kmjkWmZGEJ5Gn9l5/7tzXA42QGIoWbICfg6KLLkIw6yw==", 1950 | "cpu": [ 1951 | "ia32" 1952 | ], 1953 | "dev": true, 1954 | "optional": true, 1955 | "os": [ 1956 | "win32" 1957 | ], 1958 | "engines": { 1959 | "node": ">=18" 1960 | } 1961 | }, 1962 | "node_modules/tsup/node_modules/@esbuild/win32-x64": { 1963 | "version": "0.24.0", 1964 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.0.tgz", 1965 | "integrity": "sha512-7IAFPrjSQIJrGsK6flwg7NFmwBoSTyF3rl7If0hNUFQU4ilTsEPL6GuMuU9BfIWVVGuRnuIidkSMC+c0Otu8IA==", 1966 | "cpu": [ 1967 | "x64" 1968 | ], 1969 | "dev": true, 1970 | "optional": true, 1971 | "os": [ 1972 | "win32" 1973 | ], 1974 | "engines": { 1975 | "node": ">=18" 1976 | } 1977 | }, 1978 | "node_modules/tsup/node_modules/bundle-require": { 1979 | "version": "5.0.0", 1980 | "resolved": "https://registry.npmjs.org/bundle-require/-/bundle-require-5.0.0.tgz", 1981 | "integrity": "sha512-GuziW3fSSmopcx4KRymQEJVbZUfqlCqcq7dvs6TYwKRZiegK/2buMxQTPs6MGlNv50wms1699qYO54R8XfRX4w==", 1982 | "dev": true, 1983 | "dependencies": { 1984 | "load-tsconfig": "^0.2.3" 1985 | }, 1986 | "engines": { 1987 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 1988 | }, 1989 | "peerDependencies": { 1990 | "esbuild": ">=0.18" 1991 | } 1992 | }, 1993 | "node_modules/tsup/node_modules/esbuild": { 1994 | "version": "0.24.0", 1995 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.0.tgz", 1996 | "integrity": "sha512-FuLPevChGDshgSicjisSooU0cemp/sGXR841D5LHMB7mTVOmsEHcAxaH3irL53+8YDIeVNQEySh4DaYU/iuPqQ==", 1997 | "dev": true, 1998 | "hasInstallScript": true, 1999 | "bin": { 2000 | "esbuild": "bin/esbuild" 2001 | }, 2002 | "engines": { 2003 | "node": ">=18" 2004 | }, 2005 | "optionalDependencies": { 2006 | "@esbuild/aix-ppc64": "0.24.0", 2007 | "@esbuild/android-arm": "0.24.0", 2008 | "@esbuild/android-arm64": "0.24.0", 2009 | "@esbuild/android-x64": "0.24.0", 2010 | "@esbuild/darwin-arm64": "0.24.0", 2011 | "@esbuild/darwin-x64": "0.24.0", 2012 | "@esbuild/freebsd-arm64": "0.24.0", 2013 | "@esbuild/freebsd-x64": "0.24.0", 2014 | "@esbuild/linux-arm": "0.24.0", 2015 | "@esbuild/linux-arm64": "0.24.0", 2016 | "@esbuild/linux-ia32": "0.24.0", 2017 | "@esbuild/linux-loong64": "0.24.0", 2018 | "@esbuild/linux-mips64el": "0.24.0", 2019 | "@esbuild/linux-ppc64": "0.24.0", 2020 | "@esbuild/linux-riscv64": "0.24.0", 2021 | "@esbuild/linux-s390x": "0.24.0", 2022 | "@esbuild/linux-x64": "0.24.0", 2023 | "@esbuild/netbsd-x64": "0.24.0", 2024 | "@esbuild/openbsd-arm64": "0.24.0", 2025 | "@esbuild/openbsd-x64": "0.24.0", 2026 | "@esbuild/sunos-x64": "0.24.0", 2027 | "@esbuild/win32-arm64": "0.24.0", 2028 | "@esbuild/win32-ia32": "0.24.0", 2029 | "@esbuild/win32-x64": "0.24.0" 2030 | } 2031 | }, 2032 | "node_modules/tsup/node_modules/source-map": { 2033 | "version": "0.8.0-beta.0", 2034 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", 2035 | "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", 2036 | "dev": true, 2037 | "dependencies": { 2038 | "whatwg-url": "^7.0.0" 2039 | }, 2040 | "engines": { 2041 | "node": ">= 8" 2042 | } 2043 | }, 2044 | "node_modules/typescript": { 2045 | "version": "5.7.3", 2046 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", 2047 | "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", 2048 | "dev": true, 2049 | "bin": { 2050 | "tsc": "bin/tsc", 2051 | "tsserver": "bin/tsserver" 2052 | }, 2053 | "engines": { 2054 | "node": ">=14.17" 2055 | } 2056 | }, 2057 | "node_modules/use-sync-external-store": { 2058 | "version": "1.4.0", 2059 | "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz", 2060 | "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==", 2061 | "license": "MIT", 2062 | "peerDependencies": { 2063 | "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" 2064 | } 2065 | }, 2066 | "node_modules/webidl-conversions": { 2067 | "version": "4.0.2", 2068 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", 2069 | "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", 2070 | "dev": true 2071 | }, 2072 | "node_modules/whatwg-url": { 2073 | "version": "7.1.0", 2074 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", 2075 | "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", 2076 | "dev": true, 2077 | "dependencies": { 2078 | "lodash.sortby": "^4.7.0", 2079 | "tr46": "^1.0.1", 2080 | "webidl-conversions": "^4.0.2" 2081 | } 2082 | }, 2083 | "node_modules/which": { 2084 | "version": "2.0.2", 2085 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2086 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2087 | "dev": true, 2088 | "dependencies": { 2089 | "isexe": "^2.0.0" 2090 | }, 2091 | "bin": { 2092 | "node-which": "bin/node-which" 2093 | }, 2094 | "engines": { 2095 | "node": ">= 8" 2096 | } 2097 | }, 2098 | "node_modules/wrap-ansi": { 2099 | "version": "8.1.0", 2100 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", 2101 | "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", 2102 | "dev": true, 2103 | "dependencies": { 2104 | "ansi-styles": "^6.1.0", 2105 | "string-width": "^5.0.1", 2106 | "strip-ansi": "^7.0.1" 2107 | }, 2108 | "engines": { 2109 | "node": ">=12" 2110 | }, 2111 | "funding": { 2112 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2113 | } 2114 | }, 2115 | "node_modules/wrap-ansi-cjs": { 2116 | "name": "wrap-ansi", 2117 | "version": "7.0.0", 2118 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 2119 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 2120 | "dev": true, 2121 | "dependencies": { 2122 | "ansi-styles": "^4.0.0", 2123 | "string-width": "^4.1.0", 2124 | "strip-ansi": "^6.0.0" 2125 | }, 2126 | "engines": { 2127 | "node": ">=10" 2128 | }, 2129 | "funding": { 2130 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2131 | } 2132 | }, 2133 | "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { 2134 | "version": "5.0.1", 2135 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 2136 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2137 | "dev": true, 2138 | "engines": { 2139 | "node": ">=8" 2140 | } 2141 | }, 2142 | "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { 2143 | "version": "4.3.0", 2144 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 2145 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 2146 | "dev": true, 2147 | "dependencies": { 2148 | "color-convert": "^2.0.1" 2149 | }, 2150 | "engines": { 2151 | "node": ">=8" 2152 | }, 2153 | "funding": { 2154 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 2155 | } 2156 | }, 2157 | "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { 2158 | "version": "8.0.0", 2159 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2160 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2161 | "dev": true 2162 | }, 2163 | "node_modules/wrap-ansi-cjs/node_modules/string-width": { 2164 | "version": "4.2.3", 2165 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2166 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2167 | "dev": true, 2168 | "dependencies": { 2169 | "emoji-regex": "^8.0.0", 2170 | "is-fullwidth-code-point": "^3.0.0", 2171 | "strip-ansi": "^6.0.1" 2172 | }, 2173 | "engines": { 2174 | "node": ">=8" 2175 | } 2176 | }, 2177 | "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { 2178 | "version": "6.0.1", 2179 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2180 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2181 | "dev": true, 2182 | "dependencies": { 2183 | "ansi-regex": "^5.0.1" 2184 | }, 2185 | "engines": { 2186 | "node": ">=8" 2187 | } 2188 | }, 2189 | "node_modules/zod": { 2190 | "version": "3.24.2", 2191 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", 2192 | "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", 2193 | "license": "MIT", 2194 | "peer": true, 2195 | "funding": { 2196 | "url": "https://github.com/sponsors/colinhacks" 2197 | } 2198 | }, 2199 | "node_modules/zod-to-json-schema": { 2200 | "version": "3.24.4", 2201 | "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.4.tgz", 2202 | "integrity": "sha512-0uNlcvgabyrni9Ag8Vghj21drk7+7tp7VTwwR7KxxXXc/3pbXz2PHlDgj3cICahgF1kHm4dExBFj7BXrZJXzig==", 2203 | "license": "ISC", 2204 | "peerDependencies": { 2205 | "zod": "^3.24.1" 2206 | } 2207 | } 2208 | } 2209 | } 2210 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ai-gateway-provider", 3 | "version": "0.0.5", 4 | "description": "AI Gateway Provider for AI-SDK", 5 | "main": "./dist/index.js", 6 | "module": "./dist/index.mjs", 7 | "types": "./dist/index.d.ts", 8 | "files": [ 9 | "dist", 10 | "LICENSE", 11 | "README.md" 12 | ], 13 | "scripts": { 14 | "build": "tsup src/index.ts --format cjs,esm --dts", 15 | "lint": "npx @biomejs/biome check src/ || (npx @biomejs/biome check --write src/; exit 1)", 16 | "prepare": "husky" 17 | }, 18 | "publishConfig": { 19 | "access": "public" 20 | }, 21 | "keywords": [ 22 | "cloudflare", 23 | "worker" 24 | ], 25 | "author": "Gabriel Massadas ", 26 | "license": "MIT", 27 | "homepage": "https://github.com/G4brym/ai-gateway-provider", 28 | "repository": { 29 | "type": "git", 30 | "url": "git@github.com:G4brym/ai-gateway-provider.git" 31 | }, 32 | "bugs": { 33 | "url": "https://github.com/G4brym/ai-gateway-provider/issues" 34 | }, 35 | "devDependencies": { 36 | "@biomejs/biome": "1.9.4", 37 | "husky": "^9.1.6", 38 | "tsup": "^8.3.5", 39 | "typescript": "^5.6.3" 40 | }, 41 | "dependencies": { 42 | "@ai-sdk/provider": "^1.0.11", 43 | "@ai-sdk/provider-utils": "^2.1.13", 44 | "ai": "^4.1.61" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import type { 2 | LanguageModelV1, 3 | LanguageModelV1CallOptions, 4 | LanguageModelV1CallWarning, 5 | LanguageModelV1StreamPart, 6 | } from '@ai-sdk/provider' 7 | import type { FetchFunction } from '@ai-sdk/provider-utils' 8 | 9 | export class AiGatewayInternalFetchError extends Error {} 10 | 11 | export class AiGatewayDoesNotExist extends Error {} 12 | 13 | export class AiGatewayUnauthorizedError extends Error {} 14 | 15 | async function streamToObject(stream: ReadableStream) { 16 | const response = new Response(stream) 17 | return await response.json() 18 | } 19 | 20 | const ProvidersConfigs = [ 21 | { 22 | url: 'https://api.openai.com/', 23 | name: 'openai', 24 | }, 25 | { 26 | url: 'https://api.deepseek.com/', 27 | name: 'deepseek', 28 | }, 29 | { 30 | url: 'https://api.anthropic.com/', 31 | name: 'anthropic', 32 | }, 33 | { 34 | url: 'https://generativelanguage.googleapis.com/', 35 | name: 'google-ai-studio', 36 | }, 37 | { 38 | url: 'https://api.x.ai/', 39 | name: 'grok', 40 | }, 41 | { 42 | url: 'https://api.mistral.ai/', 43 | name: 'mistral', 44 | }, 45 | { 46 | url: 'https://api.perplexity.ai/', 47 | name: 'perplexity-ai', 48 | }, 49 | { 50 | url: 'https://api.replicate.com/', 51 | name: 'replicate', 52 | }, 53 | { 54 | url: 'https://api.groq.com/openai/v1/', 55 | name: 'groq', 56 | }, 57 | ] 58 | 59 | type InternalLanguageModelV1 = LanguageModelV1 & { config?: { fetch?: FetchFunction | undefined } } 60 | 61 | export class AiGatewayChatLanguageModel implements LanguageModelV1 { 62 | readonly specificationVersion = 'v1' 63 | readonly defaultObjectGenerationMode = 'json' 64 | 65 | readonly models: InternalLanguageModelV1[] 66 | readonly config: AiGatewaySettings 67 | 68 | get modelId(): string { 69 | if (!this.models[0]) { 70 | throw new Error('models cannot be empty array') 71 | } 72 | 73 | return this.models[0].modelId 74 | } 75 | 76 | get provider(): string { 77 | if (!this.models[0]) { 78 | throw new Error('models cannot be empty array') 79 | } 80 | 81 | return this.models[0].provider 82 | } 83 | 84 | constructor(models: LanguageModelV1[], config: AiGatewaySettings) { 85 | this.models = models 86 | this.config = config 87 | } 88 | 89 | async processModelRequest( 90 | options: Parameters[0], 91 | modelMethod: 'doStream' | 'doGenerate' 92 | ): Promise>> { 93 | const requests: { url: string; request: Request; modelProvider: string }[] = [] 94 | 95 | // Model configuration and request collection 96 | for (const model of this.models) { 97 | if (!model.config || !Object.keys(model.config).includes('fetch')) { 98 | throw new Error( 99 | `Sorry, but provider "${model.provider}" is currently not supported, please open a issue in the github repo!` 100 | ) 101 | } 102 | 103 | model.config.fetch = (url, request) => { 104 | requests.push({ 105 | url: url as string, 106 | request: request as Request, 107 | modelProvider: model.provider, 108 | }) 109 | throw new AiGatewayInternalFetchError('Stopping provider execution...') 110 | } 111 | 112 | try { 113 | await model[modelMethod](options) 114 | } catch (e) { 115 | if (!(e instanceof AiGatewayInternalFetchError)) { 116 | throw e 117 | } 118 | } 119 | } 120 | 121 | // Process requests 122 | const body = await Promise.all( 123 | requests.map(async (req) => { 124 | let providerConfig = null 125 | for (const provider of ProvidersConfigs) { 126 | if (req.url.includes(provider.url)) { 127 | providerConfig = provider 128 | } 129 | } 130 | 131 | if (!providerConfig) { 132 | throw new Error( 133 | `Sorry, but provider "${req.modelProvider}" is currently not supported, please open a issue in the github repo!` 134 | ) 135 | } 136 | 137 | if (!req.request.body) { 138 | throw new Error('Ai Gateway provider received an unexpected empty body') 139 | } 140 | 141 | return { 142 | provider: providerConfig.name, 143 | endpoint: req.url.replace(providerConfig.url, ''), 144 | headers: req.request.headers, 145 | query: await streamToObject(req.request.body), 146 | } 147 | }) 148 | ) 149 | 150 | // Handle response 151 | const headers = parseAiGatewayOptions(this.config.options ?? {}) 152 | let resp: Response 153 | 154 | if ('binding' in this.config) { 155 | const updatedBody = body.map((obj) => ({ 156 | ...obj, 157 | headers: { 158 | ...(obj.headers ?? {}), 159 | ...Object.fromEntries(headers.entries()), 160 | }, 161 | })) 162 | resp = await this.config.binding.run(updatedBody) 163 | } else { 164 | headers.set('Content-Type', 'application/json') 165 | headers.set('cf-aig-authorization', `Bearer ${this.config.apiKey}`) 166 | resp = await fetch(`https://gateway.ai.cloudflare.com/v1/${this.config.accountId}/${this.config.gateway}`, { 167 | method: 'POST', 168 | headers: headers, 169 | body: JSON.stringify(body), 170 | }) 171 | } 172 | 173 | // Error handling 174 | if (resp.status === 400) { 175 | const cloneResp = resp.clone() 176 | const result: { success?: boolean; error?: { code: number; message: string }[] } = await cloneResp.json() 177 | if (result.success === false && result.error && result.error.length > 0 && result.error[0]?.code === 2001) { 178 | throw new AiGatewayDoesNotExist('This AI gateway does not exist') 179 | } 180 | } else if (resp.status === 401) { 181 | const cloneResp = resp.clone() 182 | const result: { success?: boolean; error?: { code: number; message: string }[] } = await cloneResp.json() 183 | if (result.success === false && result.error && result.error.length > 0 && result.error[0]?.code === 2009) { 184 | throw new AiGatewayUnauthorizedError( 185 | "Your AI Gateway has authentication active, but you didn't provide a valid apiKey" 186 | ) 187 | } 188 | } 189 | 190 | const step = Number.parseInt(resp.headers.get('cf-aig-step') ?? '0') 191 | if (!this.models[step]) { 192 | throw new Error('Unexpected AI Gateway Error') 193 | } 194 | 195 | this.models[step].config = { 196 | ...this.models[step].config, 197 | fetch: (url, req) => resp as unknown as Promise, 198 | } 199 | 200 | return this.models[step][modelMethod](options) as Promise>> 201 | } 202 | 203 | async doStream( 204 | options: Parameters[0] 205 | ): Promise>> { 206 | return this.processModelRequest(options, 'doStream') 207 | } 208 | 209 | async doGenerate( 210 | options: Parameters[0] 211 | ): Promise>> { 212 | return this.processModelRequest(options, 'doGenerate') 213 | } 214 | } 215 | 216 | export interface AiGateway { 217 | (models: LanguageModelV1 | LanguageModelV1[]): LanguageModelV1 218 | 219 | chat(models: LanguageModelV1 | LanguageModelV1[]): LanguageModelV1 220 | } 221 | 222 | export type AiGatewayReties = { 223 | maxAttempts?: 1 | 2 | 3 | 4 | 5 224 | retryDelayMs?: number 225 | backoff?: 'constant' | 'linear' | 'exponential' 226 | } 227 | export type AiGatewayOptions = { 228 | cacheKey?: string 229 | cacheTtl?: number 230 | skipCache?: boolean 231 | metadata?: Record 232 | collectLog?: boolean 233 | eventId?: string 234 | requestTimeoutMs?: number 235 | retries?: AiGatewayReties 236 | } 237 | export type AiGatewayAPISettings = { 238 | gateway: string 239 | accountId: string 240 | apiKey?: string 241 | options?: AiGatewayOptions 242 | } 243 | export type AiGatewayBindingSettings = { 244 | binding: { 245 | run(data: unknown): Promise 246 | } 247 | options?: AiGatewayOptions 248 | } 249 | export type AiGatewaySettings = AiGatewayAPISettings | AiGatewayBindingSettings 250 | 251 | export function createAiGateway(options: AiGatewaySettings): AiGateway { 252 | const createChatModel = (models: LanguageModelV1 | LanguageModelV1[]) => { 253 | return new AiGatewayChatLanguageModel(Array.isArray(models) ? models : [models], options) 254 | } 255 | 256 | const provider = (models: LanguageModelV1 | LanguageModelV1[]) => createChatModel(models) 257 | 258 | provider.chat = createChatModel 259 | 260 | return provider 261 | } 262 | 263 | export function parseAiGatewayOptions(options: AiGatewayOptions): Headers { 264 | const headers = new Headers() 265 | 266 | if (options.skipCache === true) { 267 | headers.set('cf-skip-cache', 'true') 268 | } 269 | 270 | if (options.cacheTtl) { 271 | headers.set('cf-cache-ttl', options.cacheTtl.toString()) 272 | } 273 | 274 | if (options.metadata) { 275 | headers.set('cf-aig-metadata', JSON.stringify(options.metadata)) 276 | } 277 | 278 | if (options.cacheKey) { 279 | headers.set('cf-aig-cache-key', options.cacheKey) 280 | } 281 | 282 | if (options.collectLog !== undefined) { 283 | headers.set('cf-aig-collect-log', options.collectLog === true ? 'true' : 'false') 284 | } 285 | 286 | if (options.eventId !== undefined) { 287 | headers.set('cf-aig-event-id', options.eventId) 288 | } 289 | 290 | if (options.requestTimeoutMs !== undefined) { 291 | headers.set('cf-aig-request-timeout', options.requestTimeoutMs.toString()) 292 | } 293 | 294 | if (options.retries !== undefined) { 295 | if (options.retries.maxAttempts !== undefined) { 296 | headers.set('cf-aig-max-attempts', options.retries.maxAttempts.toString()) 297 | } 298 | if (options.retries.retryDelayMs !== undefined) { 299 | headers.set('cf-aig-retry-delay', options.retries.retryDelayMs.toString()) 300 | } 301 | if (options.retries.backoff !== undefined) { 302 | headers.set('cf-aig-backoff', options.retries.backoff) 303 | } 304 | } 305 | 306 | return headers 307 | } 308 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "esNext", 4 | "module": "commonjs", 5 | "esModuleInterop": true, 6 | "forceConsistentCasingInFileNames": true, 7 | "strict": true, 8 | "skipLibCheck": true, 9 | "noUncheckedIndexedAccess": true, 10 | "noEmit": true 11 | }, 12 | "include": ["src/*.ts", "src/**/*.ts"] 13 | } 14 | --------------------------------------------------------------------------------