├── .env.example ├── .gitignore ├── .nvmrc ├── .prettierignore ├── Dockerfile ├── LICENSE ├── README.md ├── docker-compose.yml ├── package-lock.json ├── package.json ├── prettier.config.mjs ├── report.md ├── src ├── ai │ ├── providers.ts │ ├── text-splitter.test.ts │ └── text-splitter.ts ├── api.ts ├── deep-research.ts ├── feedback.ts ├── prompt.ts └── run.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- 1 | FIRECRAWL_KEY="YOUR_KEY" 2 | # If you want to use your self-hosted Firecrawl, add the following below: 3 | # FIRECRAWL_BASE_URL="http://localhost:3002" 4 | # FIRECRAWL_CONCURRENCY="2" 5 | 6 | OPENAI_KEY="YOUR_KEY" 7 | CONTEXT_SIZE="128000" 8 | 9 | # If you want to use other OpenAI compatible API, add the following below: 10 | # OPENAI_ENDPOINT="http://localhost:11434/v1" 11 | # CUSTOM_MODEL="llama3.1" 12 | 13 | # If you want to use fireworks.ai's DeepSeek R1 model: 14 | # FIREWORKS_KEY="YOUR_KEY" 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # Output files 4 | output.md 5 | report.md 6 | answer.md 7 | 8 | # Dependencies 9 | node_modules 10 | .pnp 11 | .pnp.js 12 | 13 | # Local env files 14 | .env 15 | .env.local 16 | .env.development.local 17 | .env.test.local 18 | .env.production.local 19 | 20 | # Testing 21 | coverage 22 | 23 | # Turbo 24 | .turbo 25 | 26 | # Vercel 27 | .vercel 28 | 29 | # Build Outputs 30 | .next/ 31 | out/ 32 | build 33 | dist 34 | 35 | 36 | # Debug 37 | npm-debug.log* 38 | yarn-debug.log* 39 | yarn-error.log* 40 | 41 | # Misc 42 | .DS_Store 43 | *.pem 44 | bun.lockb -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v22 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | *.hbs -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:18-alpine 2 | 3 | WORKDIR /app 4 | 5 | COPY . . 6 | COPY package.json ./ 7 | COPY .env.local ./.env.local 8 | 9 | RUN npm install 10 | 11 | CMD ["npm", "run", "docker"] 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 David Zhang 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 | # Open Deep Research 2 | 3 | An AI-powered research assistant that performs iterative, deep research on any topic by combining search engines, web scraping, and large language models. 4 | 5 | The goal of this repo is to provide the simplest implementation of a deep research agent - e.g. an agent that can refine its research direction over time and deep dive into a topic. Goal is to keep the repo size at <500 LoC so it is easy to understand and build on top of. 6 | 7 | If you like this project, please consider starring it and giving me a follow on [X/Twitter](https://x.com/dzhng). This project is sponsored by [Aomni](https://aomni.com). 8 | 9 | ## How It Works 10 | 11 | ```mermaid 12 | flowchart TB 13 | subgraph Input 14 | Q[User Query] 15 | B[Breadth Parameter] 16 | D[Depth Parameter] 17 | end 18 | 19 | DR[Deep Research] --> 20 | SQ[SERP Queries] --> 21 | PR[Process Results] 22 | 23 | subgraph Results[Results] 24 | direction TB 25 | NL((Learnings)) 26 | ND((Directions)) 27 | end 28 | 29 | PR --> NL 30 | PR --> ND 31 | 32 | DP{depth > 0?} 33 | 34 | RD["Next Direction: 35 | - Prior Goals 36 | - New Questions 37 | - Learnings"] 38 | 39 | MR[Markdown Report] 40 | 41 | %% Main Flow 42 | Q & B & D --> DR 43 | 44 | %% Results to Decision 45 | NL & ND --> DP 46 | 47 | %% Circular Flow 48 | DP -->|Yes| RD 49 | RD -->|New Context| DR 50 | 51 | %% Final Output 52 | DP -->|No| MR 53 | 54 | %% Styling 55 | classDef input fill:#7bed9f,stroke:#2ed573,color:black 56 | classDef process fill:#70a1ff,stroke:#1e90ff,color:black 57 | classDef recursive fill:#ffa502,stroke:#ff7f50,color:black 58 | classDef output fill:#ff4757,stroke:#ff6b81,color:black 59 | classDef results fill:#a8e6cf,stroke:#3b7a57,color:black 60 | 61 | class Q,B,D input 62 | class DR,SQ,PR process 63 | class DP,RD recursive 64 | class MR output 65 | class NL,ND results 66 | ``` 67 | 68 | ## Features 69 | 70 | - **Iterative Research**: Performs deep research by iteratively generating search queries, processing results, and diving deeper based on findings 71 | - **Intelligent Query Generation**: Uses LLMs to generate targeted search queries based on research goals and previous findings 72 | - **Depth & Breadth Control**: Configurable parameters to control how wide (breadth) and deep (depth) the research goes 73 | - **Smart Follow-up**: Generates follow-up questions to better understand research needs 74 | - **Comprehensive Reports**: Produces detailed markdown reports with findings and sources 75 | - **Concurrent Processing**: Handles multiple searches and result processing in parallel for efficiency 76 | 77 | ## Requirements 78 | 79 | - Node.js environment 80 | - API keys for: 81 | - Firecrawl API (for web search and content extraction) 82 | - OpenAI API (for o3 mini model) 83 | 84 | ## Setup 85 | 86 | ### Node.js 87 | 88 | 1. Clone the repository 89 | 2. Install dependencies: 90 | 91 | ```bash 92 | npm install 93 | ``` 94 | 95 | 3. Set up environment variables in a `.env.local` file: 96 | 97 | ```bash 98 | FIRECRAWL_KEY="your_firecrawl_key" 99 | # If you want to use your self-hosted Firecrawl, add the following below: 100 | # FIRECRAWL_BASE_URL="http://localhost:3002" 101 | 102 | OPENAI_KEY="your_openai_key" 103 | ``` 104 | 105 | To use local LLM, comment out `OPENAI_KEY` and instead uncomment `OPENAI_ENDPOINT` and `OPENAI_MODEL`: 106 | 107 | - Set `OPENAI_ENDPOINT` to the address of your local server (eg."http://localhost:1234/v1") 108 | - Set `OPENAI_MODEL` to the name of the model loaded in your local server. 109 | 110 | ### Docker 111 | 112 | 1. Clone the repository 113 | 2. Rename `.env.example` to `.env.local` and set your API keys 114 | 115 | 3. Run `docker build -f Dockerfile` 116 | 117 | 4. Run the Docker image: 118 | 119 | ```bash 120 | docker compose up -d 121 | ``` 122 | 123 | 5. Execute `npm run docker` in the docker service: 124 | 125 | ```bash 126 | docker exec -it deep-research npm run docker 127 | ``` 128 | 129 | ## Usage 130 | 131 | Run the research assistant: 132 | 133 | ```bash 134 | npm start 135 | ``` 136 | 137 | You'll be prompted to: 138 | 139 | 1. Enter your research query 140 | 2. Specify research breadth (recommended: 3-10, default: 4) 141 | 3. Specify research depth (recommended: 1-5, default: 2) 142 | 4. Answer follow-up questions to refine the research direction 143 | 144 | The system will then: 145 | 146 | 1. Generate and execute search queries 147 | 2. Process and analyze search results 148 | 3. Recursively explore deeper based on findings 149 | 4. Generate a comprehensive markdown report 150 | 151 | The final report will be saved as `report.md` or `answer.md` in your working directory, depending on which modes you selected. 152 | 153 | ### Concurrency 154 | 155 | If you have a paid version of Firecrawl or a local version, feel free to increase the `ConcurrencyLimit` by setting the `CONCURRENCY_LIMIT` environment variable so it runs faster. 156 | 157 | If you have a free version, you may sometimes run into rate limit errors, you can reduce the limit to 1 (but it will run a lot slower). 158 | 159 | ### DeepSeek R1 160 | 161 | Deep research performs great on R1! We use [Fireworks](http://fireworks.ai) as the main provider for the R1 model. To use R1, simply set a Fireworks API key: 162 | 163 | ```bash 164 | FIREWORKS_KEY="api_key" 165 | ``` 166 | 167 | The system will automatically switch over to use R1 instead of `o3-mini` when the key is detected. 168 | 169 | ### Custom endpoints and models 170 | 171 | There are 2 other optional env vars that lets you tweak the endpoint (for other OpenAI compatible APIs like OpenRouter or Gemini) as well as the model string. 172 | 173 | ```bash 174 | OPENAI_ENDPOINT="custom_endpoint" 175 | CUSTOM_MODEL="custom_model" 176 | ``` 177 | 178 | ## How It Works 179 | 180 | 1. **Initial Setup** 181 | 182 | - Takes user query and research parameters (breadth & depth) 183 | - Generates follow-up questions to understand research needs better 184 | 185 | 2. **Deep Research Process** 186 | 187 | - Generates multiple SERP queries based on research goals 188 | - Processes search results to extract key learnings 189 | - Generates follow-up research directions 190 | 191 | 3. **Recursive Exploration** 192 | 193 | - If depth > 0, takes new research directions and continues exploration 194 | - Each iteration builds on previous learnings 195 | - Maintains context of research goals and findings 196 | 197 | 4. **Report Generation** 198 | - Compiles all findings into a comprehensive markdown report 199 | - Includes all sources and references 200 | - Organizes information in a clear, readable format 201 | 202 | ## License 203 | 204 | MIT License - feel free to use and modify as needed. 205 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | services: 2 | deep-research: 3 | container_name: deep-research 4 | build: . 5 | env_file: 6 | - .env.local 7 | volumes: 8 | - ./:/app/ 9 | tty: true 10 | stdin_open: true 11 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "open-deep-research", 3 | "version": "0.0.1", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "open-deep-research", 9 | "version": "0.0.1", 10 | "license": "ISC", 11 | "dependencies": { 12 | "@ai-sdk/fireworks": "^0.1.14", 13 | "@ai-sdk/openai": "^1.1.9", 14 | "@mendable/firecrawl-js": "^1.16.0", 15 | "ai": "^4.1.17", 16 | "cors": "^2.8.5", 17 | "express": "^4.18.3", 18 | "js-tiktoken": "^1.0.17", 19 | "lodash-es": "^4.17.21", 20 | "p-limit": "^6.2.0", 21 | "uuid": "^9.0.1", 22 | "zod": "^3.24.1" 23 | }, 24 | "devDependencies": { 25 | "@ianvs/prettier-plugin-sort-imports": "^4.4.1", 26 | "@types/cors": "^2.8.17", 27 | "@types/express": "^4.17.21", 28 | "@types/lodash-es": "^4.17.12", 29 | "@types/node": "^22.13.0", 30 | "@types/uuid": "^9.0.8", 31 | "prettier": "^3.4.2", 32 | "tsx": "^4.19.2", 33 | "typescript": "^5.7.3" 34 | }, 35 | "engines": { 36 | "node": "22.x" 37 | } 38 | }, 39 | "node_modules/@ai-sdk/fireworks": { 40 | "version": "0.1.14", 41 | "resolved": "https://registry.npmjs.org/@ai-sdk/fireworks/-/fireworks-0.1.14.tgz", 42 | "integrity": "sha512-aVUFSIM7dV4yhVRvGcgJFComofKkKYkXqQqI/ckRrqnawWQc0nuv1YyMqHtng7GGTuCNT06imNZHkGP1+VPrww==", 43 | "license": "Apache-2.0", 44 | "dependencies": { 45 | "@ai-sdk/openai-compatible": "0.1.13", 46 | "@ai-sdk/provider": "1.0.10", 47 | "@ai-sdk/provider-utils": "2.1.11" 48 | }, 49 | "engines": { 50 | "node": ">=18" 51 | }, 52 | "peerDependencies": { 53 | "zod": "^3.0.0" 54 | } 55 | }, 56 | "node_modules/@ai-sdk/fireworks/node_modules/@ai-sdk/provider": { 57 | "version": "1.0.10", 58 | "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.0.10.tgz", 59 | "integrity": "sha512-pco8Zl9U0xwXI+nCLc0woMtxbvjU8hRmGTseAUiPHFLYAAL8trRPCukg69IDeinOvIeo1SmXxAIdWWPZOLb4Cg==", 60 | "license": "Apache-2.0", 61 | "dependencies": { 62 | "json-schema": "^0.4.0" 63 | }, 64 | "engines": { 65 | "node": ">=18" 66 | } 67 | }, 68 | "node_modules/@ai-sdk/fireworks/node_modules/@ai-sdk/provider-utils": { 69 | "version": "2.1.11", 70 | "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-2.1.11.tgz", 71 | "integrity": "sha512-lMnXA5KaRJidzW7gQmlo/SnX6D+AKk5GxHFcQtOaGOSJNmu/qcNZc1rGaO7K5qW52OvCLXtnWudR4cc/FvMpVQ==", 72 | "license": "Apache-2.0", 73 | "dependencies": { 74 | "@ai-sdk/provider": "1.0.10", 75 | "eventsource-parser": "^3.0.0", 76 | "nanoid": "^3.3.8", 77 | "secure-json-parse": "^2.7.0" 78 | }, 79 | "engines": { 80 | "node": ">=18" 81 | }, 82 | "peerDependencies": { 83 | "zod": "^3.0.0" 84 | }, 85 | "peerDependenciesMeta": { 86 | "zod": { 87 | "optional": true 88 | } 89 | } 90 | }, 91 | "node_modules/@ai-sdk/openai": { 92 | "version": "1.1.9", 93 | "resolved": "https://registry.npmjs.org/@ai-sdk/openai/-/openai-1.1.9.tgz", 94 | "integrity": "sha512-t/CpC4TLipdbgBJTMX/otzzqzCMBSPQwUOkYPGbT/jyuC86F+YO9o+LS0Ty2pGUE1kyT+B3WmJ318B16ZCg4hw==", 95 | "license": "Apache-2.0", 96 | "dependencies": { 97 | "@ai-sdk/provider": "1.0.7", 98 | "@ai-sdk/provider-utils": "2.1.6" 99 | }, 100 | "engines": { 101 | "node": ">=18" 102 | }, 103 | "peerDependencies": { 104 | "zod": "^3.0.0" 105 | } 106 | }, 107 | "node_modules/@ai-sdk/openai-compatible": { 108 | "version": "0.1.13", 109 | "resolved": "https://registry.npmjs.org/@ai-sdk/openai-compatible/-/openai-compatible-0.1.13.tgz", 110 | "integrity": "sha512-hgj6BdvasVXCTmJwbsiWo+e626GkmEBJKG8PYwpVq7moLWj93wJnfBNlDjxVjhZ32d5KGT32RIMZjqaX8QkClg==", 111 | "license": "Apache-2.0", 112 | "dependencies": { 113 | "@ai-sdk/provider": "1.0.10", 114 | "@ai-sdk/provider-utils": "2.1.11" 115 | }, 116 | "engines": { 117 | "node": ">=18" 118 | }, 119 | "peerDependencies": { 120 | "zod": "^3.0.0" 121 | } 122 | }, 123 | "node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider": { 124 | "version": "1.0.10", 125 | "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.0.10.tgz", 126 | "integrity": "sha512-pco8Zl9U0xwXI+nCLc0woMtxbvjU8hRmGTseAUiPHFLYAAL8trRPCukg69IDeinOvIeo1SmXxAIdWWPZOLb4Cg==", 127 | "license": "Apache-2.0", 128 | "dependencies": { 129 | "json-schema": "^0.4.0" 130 | }, 131 | "engines": { 132 | "node": ">=18" 133 | } 134 | }, 135 | "node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider-utils": { 136 | "version": "2.1.11", 137 | "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-2.1.11.tgz", 138 | "integrity": "sha512-lMnXA5KaRJidzW7gQmlo/SnX6D+AKk5GxHFcQtOaGOSJNmu/qcNZc1rGaO7K5qW52OvCLXtnWudR4cc/FvMpVQ==", 139 | "license": "Apache-2.0", 140 | "dependencies": { 141 | "@ai-sdk/provider": "1.0.10", 142 | "eventsource-parser": "^3.0.0", 143 | "nanoid": "^3.3.8", 144 | "secure-json-parse": "^2.7.0" 145 | }, 146 | "engines": { 147 | "node": ">=18" 148 | }, 149 | "peerDependencies": { 150 | "zod": "^3.0.0" 151 | }, 152 | "peerDependenciesMeta": { 153 | "zod": { 154 | "optional": true 155 | } 156 | } 157 | }, 158 | "node_modules/@ai-sdk/provider": { 159 | "version": "1.0.7", 160 | "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.0.7.tgz", 161 | "integrity": "sha512-q1PJEZ0qD9rVR+8JFEd01/QM++csMT5UVwYXSN2u54BrVw/D8TZLTeg2FEfKK00DgAx0UtWd8XOhhwITP9BT5g==", 162 | "license": "Apache-2.0", 163 | "dependencies": { 164 | "json-schema": "^0.4.0" 165 | }, 166 | "engines": { 167 | "node": ">=18" 168 | } 169 | }, 170 | "node_modules/@ai-sdk/provider-utils": { 171 | "version": "2.1.6", 172 | "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-2.1.6.tgz", 173 | "integrity": "sha512-Pfyaj0QZS22qyVn5Iz7IXcJ8nKIKlu2MeSAdKJzTwkAks7zdLaKVB+396Rqcp1bfQnxl7vaduQVMQiXUrgK8Gw==", 174 | "license": "Apache-2.0", 175 | "dependencies": { 176 | "@ai-sdk/provider": "1.0.7", 177 | "eventsource-parser": "^3.0.0", 178 | "nanoid": "^3.3.8", 179 | "secure-json-parse": "^2.7.0" 180 | }, 181 | "engines": { 182 | "node": ">=18" 183 | }, 184 | "peerDependencies": { 185 | "zod": "^3.0.0" 186 | }, 187 | "peerDependenciesMeta": { 188 | "zod": { 189 | "optional": true 190 | } 191 | } 192 | }, 193 | "node_modules/@ai-sdk/react": { 194 | "version": "1.1.8", 195 | "resolved": "https://registry.npmjs.org/@ai-sdk/react/-/react-1.1.8.tgz", 196 | "integrity": "sha512-buHm7hP21xEOksnRQtJX9fKbi7cAUwanEBa5niddTDibCDKd+kIXP2vaJGy8+heB3rff+XSW3BWlA8pscK+n1g==", 197 | "license": "Apache-2.0", 198 | "dependencies": { 199 | "@ai-sdk/provider-utils": "2.1.6", 200 | "@ai-sdk/ui-utils": "1.1.8", 201 | "swr": "^2.2.5", 202 | "throttleit": "2.1.0" 203 | }, 204 | "engines": { 205 | "node": ">=18" 206 | }, 207 | "peerDependencies": { 208 | "react": "^18 || ^19 || ^19.0.0-rc", 209 | "zod": "^3.0.0" 210 | }, 211 | "peerDependenciesMeta": { 212 | "react": { 213 | "optional": true 214 | }, 215 | "zod": { 216 | "optional": true 217 | } 218 | } 219 | }, 220 | "node_modules/@ai-sdk/ui-utils": { 221 | "version": "1.1.8", 222 | "resolved": "https://registry.npmjs.org/@ai-sdk/ui-utils/-/ui-utils-1.1.8.tgz", 223 | "integrity": "sha512-nbok53K1EalO2sZjBLFB33cqs+8SxiL6pe7ekZ7+5f2MJTwdvpShl6d9U4O8fO3DnZ9pYLzaVC0XNMxnJt030Q==", 224 | "license": "Apache-2.0", 225 | "dependencies": { 226 | "@ai-sdk/provider": "1.0.7", 227 | "@ai-sdk/provider-utils": "2.1.6", 228 | "zod-to-json-schema": "^3.24.1" 229 | }, 230 | "engines": { 231 | "node": ">=18" 232 | }, 233 | "peerDependencies": { 234 | "zod": "^3.0.0" 235 | }, 236 | "peerDependenciesMeta": { 237 | "zod": { 238 | "optional": true 239 | } 240 | } 241 | }, 242 | "node_modules/@babel/code-frame": { 243 | "version": "7.26.2", 244 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", 245 | "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", 246 | "dev": true, 247 | "license": "MIT", 248 | "dependencies": { 249 | "@babel/helper-validator-identifier": "^7.25.9", 250 | "js-tokens": "^4.0.0", 251 | "picocolors": "^1.0.0" 252 | }, 253 | "engines": { 254 | "node": ">=6.9.0" 255 | } 256 | }, 257 | "node_modules/@babel/generator": { 258 | "version": "7.26.5", 259 | "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.5.tgz", 260 | "integrity": "sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw==", 261 | "dev": true, 262 | "license": "MIT", 263 | "dependencies": { 264 | "@babel/parser": "^7.26.5", 265 | "@babel/types": "^7.26.5", 266 | "@jridgewell/gen-mapping": "^0.3.5", 267 | "@jridgewell/trace-mapping": "^0.3.25", 268 | "jsesc": "^3.0.2" 269 | }, 270 | "engines": { 271 | "node": ">=6.9.0" 272 | } 273 | }, 274 | "node_modules/@babel/helper-string-parser": { 275 | "version": "7.25.9", 276 | "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", 277 | "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", 278 | "dev": true, 279 | "license": "MIT", 280 | "engines": { 281 | "node": ">=6.9.0" 282 | } 283 | }, 284 | "node_modules/@babel/helper-validator-identifier": { 285 | "version": "7.25.9", 286 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", 287 | "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", 288 | "dev": true, 289 | "license": "MIT", 290 | "engines": { 291 | "node": ">=6.9.0" 292 | } 293 | }, 294 | "node_modules/@babel/parser": { 295 | "version": "7.26.7", 296 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.7.tgz", 297 | "integrity": "sha512-kEvgGGgEjRUutvdVvZhbn/BxVt+5VSpwXz1j3WYXQbXDo8KzFOPNG2GQbdAiNq8g6wn1yKk7C/qrke03a84V+w==", 298 | "dev": true, 299 | "license": "MIT", 300 | "dependencies": { 301 | "@babel/types": "^7.26.7" 302 | }, 303 | "bin": { 304 | "parser": "bin/babel-parser.js" 305 | }, 306 | "engines": { 307 | "node": ">=6.0.0" 308 | } 309 | }, 310 | "node_modules/@babel/template": { 311 | "version": "7.25.9", 312 | "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz", 313 | "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", 314 | "dev": true, 315 | "license": "MIT", 316 | "dependencies": { 317 | "@babel/code-frame": "^7.25.9", 318 | "@babel/parser": "^7.25.9", 319 | "@babel/types": "^7.25.9" 320 | }, 321 | "engines": { 322 | "node": ">=6.9.0" 323 | } 324 | }, 325 | "node_modules/@babel/traverse": { 326 | "version": "7.26.7", 327 | "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.7.tgz", 328 | "integrity": "sha512-1x1sgeyRLC3r5fQOM0/xtQKsYjyxmFjaOrLJNtZ81inNjyJHGIolTULPiSc/2qe1/qfpFLisLQYFnnZl7QoedA==", 329 | "dev": true, 330 | "license": "MIT", 331 | "dependencies": { 332 | "@babel/code-frame": "^7.26.2", 333 | "@babel/generator": "^7.26.5", 334 | "@babel/parser": "^7.26.7", 335 | "@babel/template": "^7.25.9", 336 | "@babel/types": "^7.26.7", 337 | "debug": "^4.3.1", 338 | "globals": "^11.1.0" 339 | }, 340 | "engines": { 341 | "node": ">=6.9.0" 342 | } 343 | }, 344 | "node_modules/@babel/types": { 345 | "version": "7.26.7", 346 | "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.7.tgz", 347 | "integrity": "sha512-t8kDRGrKXyp6+tjUh7hw2RLyclsW4TRoRvRHtSyAX9Bb5ldlFh+90YAYY6awRXrlB4G5G2izNeGySpATlFzmOg==", 348 | "dev": true, 349 | "license": "MIT", 350 | "dependencies": { 351 | "@babel/helper-string-parser": "^7.25.9", 352 | "@babel/helper-validator-identifier": "^7.25.9" 353 | }, 354 | "engines": { 355 | "node": ">=6.9.0" 356 | } 357 | }, 358 | "node_modules/@esbuild/aix-ppc64": { 359 | "version": "0.23.1", 360 | "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.1.tgz", 361 | "integrity": "sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==", 362 | "cpu": [ 363 | "ppc64" 364 | ], 365 | "dev": true, 366 | "license": "MIT", 367 | "optional": true, 368 | "os": [ 369 | "aix" 370 | ], 371 | "engines": { 372 | "node": ">=18" 373 | } 374 | }, 375 | "node_modules/@esbuild/android-arm": { 376 | "version": "0.23.1", 377 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.1.tgz", 378 | "integrity": "sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==", 379 | "cpu": [ 380 | "arm" 381 | ], 382 | "dev": true, 383 | "license": "MIT", 384 | "optional": true, 385 | "os": [ 386 | "android" 387 | ], 388 | "engines": { 389 | "node": ">=18" 390 | } 391 | }, 392 | "node_modules/@esbuild/android-arm64": { 393 | "version": "0.23.1", 394 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.1.tgz", 395 | "integrity": "sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==", 396 | "cpu": [ 397 | "arm64" 398 | ], 399 | "dev": true, 400 | "license": "MIT", 401 | "optional": true, 402 | "os": [ 403 | "android" 404 | ], 405 | "engines": { 406 | "node": ">=18" 407 | } 408 | }, 409 | "node_modules/@esbuild/android-x64": { 410 | "version": "0.23.1", 411 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.1.tgz", 412 | "integrity": "sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==", 413 | "cpu": [ 414 | "x64" 415 | ], 416 | "dev": true, 417 | "license": "MIT", 418 | "optional": true, 419 | "os": [ 420 | "android" 421 | ], 422 | "engines": { 423 | "node": ">=18" 424 | } 425 | }, 426 | "node_modules/@esbuild/darwin-arm64": { 427 | "version": "0.23.1", 428 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.1.tgz", 429 | "integrity": "sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==", 430 | "cpu": [ 431 | "arm64" 432 | ], 433 | "dev": true, 434 | "license": "MIT", 435 | "optional": true, 436 | "os": [ 437 | "darwin" 438 | ], 439 | "engines": { 440 | "node": ">=18" 441 | } 442 | }, 443 | "node_modules/@esbuild/darwin-x64": { 444 | "version": "0.23.1", 445 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.1.tgz", 446 | "integrity": "sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==", 447 | "cpu": [ 448 | "x64" 449 | ], 450 | "dev": true, 451 | "license": "MIT", 452 | "optional": true, 453 | "os": [ 454 | "darwin" 455 | ], 456 | "engines": { 457 | "node": ">=18" 458 | } 459 | }, 460 | "node_modules/@esbuild/freebsd-arm64": { 461 | "version": "0.23.1", 462 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.1.tgz", 463 | "integrity": "sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==", 464 | "cpu": [ 465 | "arm64" 466 | ], 467 | "dev": true, 468 | "license": "MIT", 469 | "optional": true, 470 | "os": [ 471 | "freebsd" 472 | ], 473 | "engines": { 474 | "node": ">=18" 475 | } 476 | }, 477 | "node_modules/@esbuild/freebsd-x64": { 478 | "version": "0.23.1", 479 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.1.tgz", 480 | "integrity": "sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==", 481 | "cpu": [ 482 | "x64" 483 | ], 484 | "dev": true, 485 | "license": "MIT", 486 | "optional": true, 487 | "os": [ 488 | "freebsd" 489 | ], 490 | "engines": { 491 | "node": ">=18" 492 | } 493 | }, 494 | "node_modules/@esbuild/linux-arm": { 495 | "version": "0.23.1", 496 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.1.tgz", 497 | "integrity": "sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==", 498 | "cpu": [ 499 | "arm" 500 | ], 501 | "dev": true, 502 | "license": "MIT", 503 | "optional": true, 504 | "os": [ 505 | "linux" 506 | ], 507 | "engines": { 508 | "node": ">=18" 509 | } 510 | }, 511 | "node_modules/@esbuild/linux-arm64": { 512 | "version": "0.23.1", 513 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.1.tgz", 514 | "integrity": "sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==", 515 | "cpu": [ 516 | "arm64" 517 | ], 518 | "dev": true, 519 | "license": "MIT", 520 | "optional": true, 521 | "os": [ 522 | "linux" 523 | ], 524 | "engines": { 525 | "node": ">=18" 526 | } 527 | }, 528 | "node_modules/@esbuild/linux-ia32": { 529 | "version": "0.23.1", 530 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.1.tgz", 531 | "integrity": "sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==", 532 | "cpu": [ 533 | "ia32" 534 | ], 535 | "dev": true, 536 | "license": "MIT", 537 | "optional": true, 538 | "os": [ 539 | "linux" 540 | ], 541 | "engines": { 542 | "node": ">=18" 543 | } 544 | }, 545 | "node_modules/@esbuild/linux-loong64": { 546 | "version": "0.23.1", 547 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.1.tgz", 548 | "integrity": "sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==", 549 | "cpu": [ 550 | "loong64" 551 | ], 552 | "dev": true, 553 | "license": "MIT", 554 | "optional": true, 555 | "os": [ 556 | "linux" 557 | ], 558 | "engines": { 559 | "node": ">=18" 560 | } 561 | }, 562 | "node_modules/@esbuild/linux-mips64el": { 563 | "version": "0.23.1", 564 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.1.tgz", 565 | "integrity": "sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==", 566 | "cpu": [ 567 | "mips64el" 568 | ], 569 | "dev": true, 570 | "license": "MIT", 571 | "optional": true, 572 | "os": [ 573 | "linux" 574 | ], 575 | "engines": { 576 | "node": ">=18" 577 | } 578 | }, 579 | "node_modules/@esbuild/linux-ppc64": { 580 | "version": "0.23.1", 581 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.1.tgz", 582 | "integrity": "sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==", 583 | "cpu": [ 584 | "ppc64" 585 | ], 586 | "dev": true, 587 | "license": "MIT", 588 | "optional": true, 589 | "os": [ 590 | "linux" 591 | ], 592 | "engines": { 593 | "node": ">=18" 594 | } 595 | }, 596 | "node_modules/@esbuild/linux-riscv64": { 597 | "version": "0.23.1", 598 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.1.tgz", 599 | "integrity": "sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==", 600 | "cpu": [ 601 | "riscv64" 602 | ], 603 | "dev": true, 604 | "license": "MIT", 605 | "optional": true, 606 | "os": [ 607 | "linux" 608 | ], 609 | "engines": { 610 | "node": ">=18" 611 | } 612 | }, 613 | "node_modules/@esbuild/linux-s390x": { 614 | "version": "0.23.1", 615 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.1.tgz", 616 | "integrity": "sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==", 617 | "cpu": [ 618 | "s390x" 619 | ], 620 | "dev": true, 621 | "license": "MIT", 622 | "optional": true, 623 | "os": [ 624 | "linux" 625 | ], 626 | "engines": { 627 | "node": ">=18" 628 | } 629 | }, 630 | "node_modules/@esbuild/linux-x64": { 631 | "version": "0.23.1", 632 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.1.tgz", 633 | "integrity": "sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==", 634 | "cpu": [ 635 | "x64" 636 | ], 637 | "dev": true, 638 | "license": "MIT", 639 | "optional": true, 640 | "os": [ 641 | "linux" 642 | ], 643 | "engines": { 644 | "node": ">=18" 645 | } 646 | }, 647 | "node_modules/@esbuild/netbsd-x64": { 648 | "version": "0.23.1", 649 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.1.tgz", 650 | "integrity": "sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==", 651 | "cpu": [ 652 | "x64" 653 | ], 654 | "dev": true, 655 | "license": "MIT", 656 | "optional": true, 657 | "os": [ 658 | "netbsd" 659 | ], 660 | "engines": { 661 | "node": ">=18" 662 | } 663 | }, 664 | "node_modules/@esbuild/openbsd-arm64": { 665 | "version": "0.23.1", 666 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.1.tgz", 667 | "integrity": "sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==", 668 | "cpu": [ 669 | "arm64" 670 | ], 671 | "dev": true, 672 | "license": "MIT", 673 | "optional": true, 674 | "os": [ 675 | "openbsd" 676 | ], 677 | "engines": { 678 | "node": ">=18" 679 | } 680 | }, 681 | "node_modules/@esbuild/openbsd-x64": { 682 | "version": "0.23.1", 683 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.1.tgz", 684 | "integrity": "sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==", 685 | "cpu": [ 686 | "x64" 687 | ], 688 | "dev": true, 689 | "license": "MIT", 690 | "optional": true, 691 | "os": [ 692 | "openbsd" 693 | ], 694 | "engines": { 695 | "node": ">=18" 696 | } 697 | }, 698 | "node_modules/@esbuild/sunos-x64": { 699 | "version": "0.23.1", 700 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.1.tgz", 701 | "integrity": "sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==", 702 | "cpu": [ 703 | "x64" 704 | ], 705 | "dev": true, 706 | "license": "MIT", 707 | "optional": true, 708 | "os": [ 709 | "sunos" 710 | ], 711 | "engines": { 712 | "node": ">=18" 713 | } 714 | }, 715 | "node_modules/@esbuild/win32-arm64": { 716 | "version": "0.23.1", 717 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.1.tgz", 718 | "integrity": "sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==", 719 | "cpu": [ 720 | "arm64" 721 | ], 722 | "dev": true, 723 | "license": "MIT", 724 | "optional": true, 725 | "os": [ 726 | "win32" 727 | ], 728 | "engines": { 729 | "node": ">=18" 730 | } 731 | }, 732 | "node_modules/@esbuild/win32-ia32": { 733 | "version": "0.23.1", 734 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.1.tgz", 735 | "integrity": "sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==", 736 | "cpu": [ 737 | "ia32" 738 | ], 739 | "dev": true, 740 | "license": "MIT", 741 | "optional": true, 742 | "os": [ 743 | "win32" 744 | ], 745 | "engines": { 746 | "node": ">=18" 747 | } 748 | }, 749 | "node_modules/@esbuild/win32-x64": { 750 | "version": "0.23.1", 751 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz", 752 | "integrity": "sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==", 753 | "cpu": [ 754 | "x64" 755 | ], 756 | "dev": true, 757 | "license": "MIT", 758 | "optional": true, 759 | "os": [ 760 | "win32" 761 | ], 762 | "engines": { 763 | "node": ">=18" 764 | } 765 | }, 766 | "node_modules/@ianvs/prettier-plugin-sort-imports": { 767 | "version": "4.4.1", 768 | "resolved": "https://registry.npmjs.org/@ianvs/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-4.4.1.tgz", 769 | "integrity": "sha512-F0/Hrcfpy8WuxlQyAWJTEren/uxKhYonOGY4OyWmwRdeTvkh9mMSCxowZLjNkhwi/2ipqCgtXwwOk7tW0mWXkA==", 770 | "dev": true, 771 | "license": "Apache-2.0", 772 | "dependencies": { 773 | "@babel/generator": "^7.26.2", 774 | "@babel/parser": "^7.26.2", 775 | "@babel/traverse": "^7.25.9", 776 | "@babel/types": "^7.26.0", 777 | "semver": "^7.5.2" 778 | }, 779 | "peerDependencies": { 780 | "@vue/compiler-sfc": "2.7.x || 3.x", 781 | "prettier": "2 || 3" 782 | }, 783 | "peerDependenciesMeta": { 784 | "@vue/compiler-sfc": { 785 | "optional": true 786 | } 787 | } 788 | }, 789 | "node_modules/@jridgewell/gen-mapping": { 790 | "version": "0.3.8", 791 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", 792 | "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", 793 | "dev": true, 794 | "license": "MIT", 795 | "dependencies": { 796 | "@jridgewell/set-array": "^1.2.1", 797 | "@jridgewell/sourcemap-codec": "^1.4.10", 798 | "@jridgewell/trace-mapping": "^0.3.24" 799 | }, 800 | "engines": { 801 | "node": ">=6.0.0" 802 | } 803 | }, 804 | "node_modules/@jridgewell/resolve-uri": { 805 | "version": "3.1.2", 806 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 807 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 808 | "dev": true, 809 | "license": "MIT", 810 | "engines": { 811 | "node": ">=6.0.0" 812 | } 813 | }, 814 | "node_modules/@jridgewell/set-array": { 815 | "version": "1.2.1", 816 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", 817 | "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 818 | "dev": true, 819 | "license": "MIT", 820 | "engines": { 821 | "node": ">=6.0.0" 822 | } 823 | }, 824 | "node_modules/@jridgewell/sourcemap-codec": { 825 | "version": "1.5.0", 826 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 827 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 828 | "dev": true, 829 | "license": "MIT" 830 | }, 831 | "node_modules/@jridgewell/trace-mapping": { 832 | "version": "0.3.25", 833 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 834 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 835 | "dev": true, 836 | "license": "MIT", 837 | "dependencies": { 838 | "@jridgewell/resolve-uri": "^3.1.0", 839 | "@jridgewell/sourcemap-codec": "^1.4.14" 840 | } 841 | }, 842 | "node_modules/@mendable/firecrawl-js": { 843 | "version": "1.16.0", 844 | "resolved": "https://registry.npmjs.org/@mendable/firecrawl-js/-/firecrawl-js-1.16.0.tgz", 845 | "integrity": "sha512-u5UVkgmR5yLRBVOaf8gnycAN1RyVHxqjpNkzYCeuCaqnWX7k6ad0OAUMSwf9DR8cPXuHw2/H0VPHqwMhBG/8Xw==", 846 | "license": "MIT", 847 | "dependencies": { 848 | "axios": "^1.6.8", 849 | "isows": "^1.0.4", 850 | "typescript-event-target": "^1.1.1", 851 | "zod": "^3.23.8", 852 | "zod-to-json-schema": "^3.23.0" 853 | } 854 | }, 855 | "node_modules/@opentelemetry/api": { 856 | "version": "1.9.0", 857 | "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", 858 | "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", 859 | "license": "Apache-2.0", 860 | "engines": { 861 | "node": ">=8.0.0" 862 | } 863 | }, 864 | "node_modules/@types/body-parser": { 865 | "version": "1.19.5", 866 | "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", 867 | "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", 868 | "dev": true, 869 | "license": "MIT", 870 | "dependencies": { 871 | "@types/connect": "*", 872 | "@types/node": "*" 873 | } 874 | }, 875 | "node_modules/@types/connect": { 876 | "version": "3.4.38", 877 | "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", 878 | "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", 879 | "dev": true, 880 | "license": "MIT", 881 | "dependencies": { 882 | "@types/node": "*" 883 | } 884 | }, 885 | "node_modules/@types/cors": { 886 | "version": "2.8.17", 887 | "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.17.tgz", 888 | "integrity": "sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==", 889 | "dev": true, 890 | "license": "MIT", 891 | "dependencies": { 892 | "@types/node": "*" 893 | } 894 | }, 895 | "node_modules/@types/diff-match-patch": { 896 | "version": "1.0.36", 897 | "resolved": "https://registry.npmjs.org/@types/diff-match-patch/-/diff-match-patch-1.0.36.tgz", 898 | "integrity": "sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==", 899 | "license": "MIT" 900 | }, 901 | "node_modules/@types/express": { 902 | "version": "4.17.21", 903 | "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", 904 | "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", 905 | "dev": true, 906 | "license": "MIT", 907 | "dependencies": { 908 | "@types/body-parser": "*", 909 | "@types/express-serve-static-core": "^4.17.33", 910 | "@types/qs": "*", 911 | "@types/serve-static": "*" 912 | } 913 | }, 914 | "node_modules/@types/express-serve-static-core": { 915 | "version": "4.19.6", 916 | "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", 917 | "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", 918 | "dev": true, 919 | "license": "MIT", 920 | "dependencies": { 921 | "@types/node": "*", 922 | "@types/qs": "*", 923 | "@types/range-parser": "*", 924 | "@types/send": "*" 925 | } 926 | }, 927 | "node_modules/@types/http-errors": { 928 | "version": "2.0.4", 929 | "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", 930 | "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", 931 | "dev": true, 932 | "license": "MIT" 933 | }, 934 | "node_modules/@types/lodash": { 935 | "version": "4.17.15", 936 | "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.15.tgz", 937 | "integrity": "sha512-w/P33JFeySuhN6JLkysYUK2gEmy9kHHFN7E8ro0tkfmlDOgxBDzWEZ/J8cWA+fHqFevpswDTFZnDx+R9lbL6xw==", 938 | "dev": true, 939 | "license": "MIT" 940 | }, 941 | "node_modules/@types/lodash-es": { 942 | "version": "4.17.12", 943 | "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz", 944 | "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", 945 | "dev": true, 946 | "license": "MIT", 947 | "dependencies": { 948 | "@types/lodash": "*" 949 | } 950 | }, 951 | "node_modules/@types/mime": { 952 | "version": "1.3.5", 953 | "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", 954 | "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", 955 | "dev": true, 956 | "license": "MIT" 957 | }, 958 | "node_modules/@types/node": { 959 | "version": "22.13.0", 960 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.0.tgz", 961 | "integrity": "sha512-ClIbNe36lawluuvq3+YYhnIN2CELi+6q8NpnM7PYp4hBn/TatfboPgVSm2rwKRfnV2M+Ty9GWDFI64KEe+kysA==", 962 | "dev": true, 963 | "license": "MIT", 964 | "dependencies": { 965 | "undici-types": "~6.20.0" 966 | } 967 | }, 968 | "node_modules/@types/qs": { 969 | "version": "6.9.18", 970 | "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz", 971 | "integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==", 972 | "dev": true, 973 | "license": "MIT" 974 | }, 975 | "node_modules/@types/range-parser": { 976 | "version": "1.2.7", 977 | "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", 978 | "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", 979 | "dev": true, 980 | "license": "MIT" 981 | }, 982 | "node_modules/@types/send": { 983 | "version": "0.17.4", 984 | "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", 985 | "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", 986 | "dev": true, 987 | "license": "MIT", 988 | "dependencies": { 989 | "@types/mime": "^1", 990 | "@types/node": "*" 991 | } 992 | }, 993 | "node_modules/@types/serve-static": { 994 | "version": "1.15.7", 995 | "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", 996 | "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", 997 | "dev": true, 998 | "license": "MIT", 999 | "dependencies": { 1000 | "@types/http-errors": "*", 1001 | "@types/node": "*", 1002 | "@types/send": "*" 1003 | } 1004 | }, 1005 | "node_modules/@types/uuid": { 1006 | "version": "9.0.8", 1007 | "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", 1008 | "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", 1009 | "dev": true, 1010 | "license": "MIT" 1011 | }, 1012 | "node_modules/accepts": { 1013 | "version": "1.3.8", 1014 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 1015 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 1016 | "license": "MIT", 1017 | "dependencies": { 1018 | "mime-types": "~2.1.34", 1019 | "negotiator": "0.6.3" 1020 | }, 1021 | "engines": { 1022 | "node": ">= 0.6" 1023 | } 1024 | }, 1025 | "node_modules/ai": { 1026 | "version": "4.1.17", 1027 | "resolved": "https://registry.npmjs.org/ai/-/ai-4.1.17.tgz", 1028 | "integrity": "sha512-5SW15tXDuxE/wlEOjRKxLxTOUIGD4C9bIee+FCFvXHTTAZhHiQjViC2s7RtMUW+hbFtGya302jUHY1Pe8A/YuQ==", 1029 | "license": "Apache-2.0", 1030 | "dependencies": { 1031 | "@ai-sdk/provider": "1.0.7", 1032 | "@ai-sdk/provider-utils": "2.1.6", 1033 | "@ai-sdk/react": "1.1.8", 1034 | "@ai-sdk/ui-utils": "1.1.8", 1035 | "@opentelemetry/api": "1.9.0", 1036 | "jsondiffpatch": "0.6.0" 1037 | }, 1038 | "engines": { 1039 | "node": ">=18" 1040 | }, 1041 | "peerDependencies": { 1042 | "react": "^18 || ^19 || ^19.0.0-rc", 1043 | "zod": "^3.0.0" 1044 | }, 1045 | "peerDependenciesMeta": { 1046 | "react": { 1047 | "optional": true 1048 | }, 1049 | "zod": { 1050 | "optional": true 1051 | } 1052 | } 1053 | }, 1054 | "node_modules/array-flatten": { 1055 | "version": "1.1.1", 1056 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 1057 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", 1058 | "license": "MIT" 1059 | }, 1060 | "node_modules/asynckit": { 1061 | "version": "0.4.0", 1062 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 1063 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", 1064 | "license": "MIT" 1065 | }, 1066 | "node_modules/axios": { 1067 | "version": "1.7.9", 1068 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", 1069 | "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", 1070 | "license": "MIT", 1071 | "dependencies": { 1072 | "follow-redirects": "^1.15.6", 1073 | "form-data": "^4.0.0", 1074 | "proxy-from-env": "^1.1.0" 1075 | } 1076 | }, 1077 | "node_modules/base64-js": { 1078 | "version": "1.5.1", 1079 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 1080 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", 1081 | "funding": [ 1082 | { 1083 | "type": "github", 1084 | "url": "https://github.com/sponsors/feross" 1085 | }, 1086 | { 1087 | "type": "patreon", 1088 | "url": "https://www.patreon.com/feross" 1089 | }, 1090 | { 1091 | "type": "consulting", 1092 | "url": "https://feross.org/support" 1093 | } 1094 | ], 1095 | "license": "MIT" 1096 | }, 1097 | "node_modules/body-parser": { 1098 | "version": "1.20.3", 1099 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", 1100 | "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", 1101 | "license": "MIT", 1102 | "dependencies": { 1103 | "bytes": "3.1.2", 1104 | "content-type": "~1.0.5", 1105 | "debug": "2.6.9", 1106 | "depd": "2.0.0", 1107 | "destroy": "1.2.0", 1108 | "http-errors": "2.0.0", 1109 | "iconv-lite": "0.4.24", 1110 | "on-finished": "2.4.1", 1111 | "qs": "6.13.0", 1112 | "raw-body": "2.5.2", 1113 | "type-is": "~1.6.18", 1114 | "unpipe": "1.0.0" 1115 | }, 1116 | "engines": { 1117 | "node": ">= 0.8", 1118 | "npm": "1.2.8000 || >= 1.4.16" 1119 | } 1120 | }, 1121 | "node_modules/body-parser/node_modules/debug": { 1122 | "version": "2.6.9", 1123 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1124 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1125 | "license": "MIT", 1126 | "dependencies": { 1127 | "ms": "2.0.0" 1128 | } 1129 | }, 1130 | "node_modules/body-parser/node_modules/ms": { 1131 | "version": "2.0.0", 1132 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1133 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 1134 | "license": "MIT" 1135 | }, 1136 | "node_modules/bytes": { 1137 | "version": "3.1.2", 1138 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 1139 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 1140 | "license": "MIT", 1141 | "engines": { 1142 | "node": ">= 0.8" 1143 | } 1144 | }, 1145 | "node_modules/call-bind-apply-helpers": { 1146 | "version": "1.0.2", 1147 | "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", 1148 | "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", 1149 | "license": "MIT", 1150 | "dependencies": { 1151 | "es-errors": "^1.3.0", 1152 | "function-bind": "^1.1.2" 1153 | }, 1154 | "engines": { 1155 | "node": ">= 0.4" 1156 | } 1157 | }, 1158 | "node_modules/call-bound": { 1159 | "version": "1.0.4", 1160 | "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", 1161 | "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", 1162 | "license": "MIT", 1163 | "dependencies": { 1164 | "call-bind-apply-helpers": "^1.0.2", 1165 | "get-intrinsic": "^1.3.0" 1166 | }, 1167 | "engines": { 1168 | "node": ">= 0.4" 1169 | }, 1170 | "funding": { 1171 | "url": "https://github.com/sponsors/ljharb" 1172 | } 1173 | }, 1174 | "node_modules/chalk": { 1175 | "version": "5.4.1", 1176 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", 1177 | "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", 1178 | "license": "MIT", 1179 | "engines": { 1180 | "node": "^12.17.0 || ^14.13 || >=16.0.0" 1181 | }, 1182 | "funding": { 1183 | "url": "https://github.com/chalk/chalk?sponsor=1" 1184 | } 1185 | }, 1186 | "node_modules/combined-stream": { 1187 | "version": "1.0.8", 1188 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 1189 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 1190 | "license": "MIT", 1191 | "dependencies": { 1192 | "delayed-stream": "~1.0.0" 1193 | }, 1194 | "engines": { 1195 | "node": ">= 0.8" 1196 | } 1197 | }, 1198 | "node_modules/content-disposition": { 1199 | "version": "0.5.4", 1200 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 1201 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 1202 | "license": "MIT", 1203 | "dependencies": { 1204 | "safe-buffer": "5.2.1" 1205 | }, 1206 | "engines": { 1207 | "node": ">= 0.6" 1208 | } 1209 | }, 1210 | "node_modules/content-type": { 1211 | "version": "1.0.5", 1212 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 1213 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 1214 | "license": "MIT", 1215 | "engines": { 1216 | "node": ">= 0.6" 1217 | } 1218 | }, 1219 | "node_modules/cookie": { 1220 | "version": "0.7.1", 1221 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", 1222 | "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", 1223 | "license": "MIT", 1224 | "engines": { 1225 | "node": ">= 0.6" 1226 | } 1227 | }, 1228 | "node_modules/cookie-signature": { 1229 | "version": "1.0.6", 1230 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 1231 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", 1232 | "license": "MIT" 1233 | }, 1234 | "node_modules/cors": { 1235 | "version": "2.8.5", 1236 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 1237 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 1238 | "license": "MIT", 1239 | "dependencies": { 1240 | "object-assign": "^4", 1241 | "vary": "^1" 1242 | }, 1243 | "engines": { 1244 | "node": ">= 0.10" 1245 | } 1246 | }, 1247 | "node_modules/debug": { 1248 | "version": "4.4.0", 1249 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 1250 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 1251 | "dev": true, 1252 | "license": "MIT", 1253 | "dependencies": { 1254 | "ms": "^2.1.3" 1255 | }, 1256 | "engines": { 1257 | "node": ">=6.0" 1258 | }, 1259 | "peerDependenciesMeta": { 1260 | "supports-color": { 1261 | "optional": true 1262 | } 1263 | } 1264 | }, 1265 | "node_modules/delayed-stream": { 1266 | "version": "1.0.0", 1267 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 1268 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", 1269 | "license": "MIT", 1270 | "engines": { 1271 | "node": ">=0.4.0" 1272 | } 1273 | }, 1274 | "node_modules/depd": { 1275 | "version": "2.0.0", 1276 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 1277 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 1278 | "license": "MIT", 1279 | "engines": { 1280 | "node": ">= 0.8" 1281 | } 1282 | }, 1283 | "node_modules/dequal": { 1284 | "version": "2.0.3", 1285 | "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", 1286 | "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", 1287 | "license": "MIT", 1288 | "engines": { 1289 | "node": ">=6" 1290 | } 1291 | }, 1292 | "node_modules/destroy": { 1293 | "version": "1.2.0", 1294 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 1295 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 1296 | "license": "MIT", 1297 | "engines": { 1298 | "node": ">= 0.8", 1299 | "npm": "1.2.8000 || >= 1.4.16" 1300 | } 1301 | }, 1302 | "node_modules/diff-match-patch": { 1303 | "version": "1.0.5", 1304 | "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.5.tgz", 1305 | "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==", 1306 | "license": "Apache-2.0" 1307 | }, 1308 | "node_modules/dunder-proto": { 1309 | "version": "1.0.1", 1310 | "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", 1311 | "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", 1312 | "license": "MIT", 1313 | "dependencies": { 1314 | "call-bind-apply-helpers": "^1.0.1", 1315 | "es-errors": "^1.3.0", 1316 | "gopd": "^1.2.0" 1317 | }, 1318 | "engines": { 1319 | "node": ">= 0.4" 1320 | } 1321 | }, 1322 | "node_modules/ee-first": { 1323 | "version": "1.1.1", 1324 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 1325 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", 1326 | "license": "MIT" 1327 | }, 1328 | "node_modules/encodeurl": { 1329 | "version": "2.0.0", 1330 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", 1331 | "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", 1332 | "license": "MIT", 1333 | "engines": { 1334 | "node": ">= 0.8" 1335 | } 1336 | }, 1337 | "node_modules/es-define-property": { 1338 | "version": "1.0.1", 1339 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", 1340 | "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", 1341 | "license": "MIT", 1342 | "engines": { 1343 | "node": ">= 0.4" 1344 | } 1345 | }, 1346 | "node_modules/es-errors": { 1347 | "version": "1.3.0", 1348 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 1349 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 1350 | "license": "MIT", 1351 | "engines": { 1352 | "node": ">= 0.4" 1353 | } 1354 | }, 1355 | "node_modules/es-object-atoms": { 1356 | "version": "1.1.1", 1357 | "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", 1358 | "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", 1359 | "license": "MIT", 1360 | "dependencies": { 1361 | "es-errors": "^1.3.0" 1362 | }, 1363 | "engines": { 1364 | "node": ">= 0.4" 1365 | } 1366 | }, 1367 | "node_modules/esbuild": { 1368 | "version": "0.23.1", 1369 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.1.tgz", 1370 | "integrity": "sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==", 1371 | "dev": true, 1372 | "hasInstallScript": true, 1373 | "license": "MIT", 1374 | "bin": { 1375 | "esbuild": "bin/esbuild" 1376 | }, 1377 | "engines": { 1378 | "node": ">=18" 1379 | }, 1380 | "optionalDependencies": { 1381 | "@esbuild/aix-ppc64": "0.23.1", 1382 | "@esbuild/android-arm": "0.23.1", 1383 | "@esbuild/android-arm64": "0.23.1", 1384 | "@esbuild/android-x64": "0.23.1", 1385 | "@esbuild/darwin-arm64": "0.23.1", 1386 | "@esbuild/darwin-x64": "0.23.1", 1387 | "@esbuild/freebsd-arm64": "0.23.1", 1388 | "@esbuild/freebsd-x64": "0.23.1", 1389 | "@esbuild/linux-arm": "0.23.1", 1390 | "@esbuild/linux-arm64": "0.23.1", 1391 | "@esbuild/linux-ia32": "0.23.1", 1392 | "@esbuild/linux-loong64": "0.23.1", 1393 | "@esbuild/linux-mips64el": "0.23.1", 1394 | "@esbuild/linux-ppc64": "0.23.1", 1395 | "@esbuild/linux-riscv64": "0.23.1", 1396 | "@esbuild/linux-s390x": "0.23.1", 1397 | "@esbuild/linux-x64": "0.23.1", 1398 | "@esbuild/netbsd-x64": "0.23.1", 1399 | "@esbuild/openbsd-arm64": "0.23.1", 1400 | "@esbuild/openbsd-x64": "0.23.1", 1401 | "@esbuild/sunos-x64": "0.23.1", 1402 | "@esbuild/win32-arm64": "0.23.1", 1403 | "@esbuild/win32-ia32": "0.23.1", 1404 | "@esbuild/win32-x64": "0.23.1" 1405 | } 1406 | }, 1407 | "node_modules/escape-html": { 1408 | "version": "1.0.3", 1409 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 1410 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", 1411 | "license": "MIT" 1412 | }, 1413 | "node_modules/etag": { 1414 | "version": "1.8.1", 1415 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 1416 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 1417 | "license": "MIT", 1418 | "engines": { 1419 | "node": ">= 0.6" 1420 | } 1421 | }, 1422 | "node_modules/eventsource-parser": { 1423 | "version": "3.0.0", 1424 | "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", 1425 | "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", 1426 | "license": "MIT", 1427 | "engines": { 1428 | "node": ">=18.0.0" 1429 | } 1430 | }, 1431 | "node_modules/express": { 1432 | "version": "4.21.2", 1433 | "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", 1434 | "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", 1435 | "license": "MIT", 1436 | "dependencies": { 1437 | "accepts": "~1.3.8", 1438 | "array-flatten": "1.1.1", 1439 | "body-parser": "1.20.3", 1440 | "content-disposition": "0.5.4", 1441 | "content-type": "~1.0.4", 1442 | "cookie": "0.7.1", 1443 | "cookie-signature": "1.0.6", 1444 | "debug": "2.6.9", 1445 | "depd": "2.0.0", 1446 | "encodeurl": "~2.0.0", 1447 | "escape-html": "~1.0.3", 1448 | "etag": "~1.8.1", 1449 | "finalhandler": "1.3.1", 1450 | "fresh": "0.5.2", 1451 | "http-errors": "2.0.0", 1452 | "merge-descriptors": "1.0.3", 1453 | "methods": "~1.1.2", 1454 | "on-finished": "2.4.1", 1455 | "parseurl": "~1.3.3", 1456 | "path-to-regexp": "0.1.12", 1457 | "proxy-addr": "~2.0.7", 1458 | "qs": "6.13.0", 1459 | "range-parser": "~1.2.1", 1460 | "safe-buffer": "5.2.1", 1461 | "send": "0.19.0", 1462 | "serve-static": "1.16.2", 1463 | "setprototypeof": "1.2.0", 1464 | "statuses": "2.0.1", 1465 | "type-is": "~1.6.18", 1466 | "utils-merge": "1.0.1", 1467 | "vary": "~1.1.2" 1468 | }, 1469 | "engines": { 1470 | "node": ">= 0.10.0" 1471 | }, 1472 | "funding": { 1473 | "type": "opencollective", 1474 | "url": "https://opencollective.com/express" 1475 | } 1476 | }, 1477 | "node_modules/express/node_modules/debug": { 1478 | "version": "2.6.9", 1479 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1480 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1481 | "license": "MIT", 1482 | "dependencies": { 1483 | "ms": "2.0.0" 1484 | } 1485 | }, 1486 | "node_modules/express/node_modules/ms": { 1487 | "version": "2.0.0", 1488 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1489 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 1490 | "license": "MIT" 1491 | }, 1492 | "node_modules/finalhandler": { 1493 | "version": "1.3.1", 1494 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", 1495 | "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", 1496 | "license": "MIT", 1497 | "dependencies": { 1498 | "debug": "2.6.9", 1499 | "encodeurl": "~2.0.0", 1500 | "escape-html": "~1.0.3", 1501 | "on-finished": "2.4.1", 1502 | "parseurl": "~1.3.3", 1503 | "statuses": "2.0.1", 1504 | "unpipe": "~1.0.0" 1505 | }, 1506 | "engines": { 1507 | "node": ">= 0.8" 1508 | } 1509 | }, 1510 | "node_modules/finalhandler/node_modules/debug": { 1511 | "version": "2.6.9", 1512 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1513 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1514 | "license": "MIT", 1515 | "dependencies": { 1516 | "ms": "2.0.0" 1517 | } 1518 | }, 1519 | "node_modules/finalhandler/node_modules/ms": { 1520 | "version": "2.0.0", 1521 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1522 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 1523 | "license": "MIT" 1524 | }, 1525 | "node_modules/follow-redirects": { 1526 | "version": "1.15.9", 1527 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", 1528 | "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", 1529 | "funding": [ 1530 | { 1531 | "type": "individual", 1532 | "url": "https://github.com/sponsors/RubenVerborgh" 1533 | } 1534 | ], 1535 | "license": "MIT", 1536 | "engines": { 1537 | "node": ">=4.0" 1538 | }, 1539 | "peerDependenciesMeta": { 1540 | "debug": { 1541 | "optional": true 1542 | } 1543 | } 1544 | }, 1545 | "node_modules/form-data": { 1546 | "version": "4.0.1", 1547 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", 1548 | "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", 1549 | "license": "MIT", 1550 | "dependencies": { 1551 | "asynckit": "^0.4.0", 1552 | "combined-stream": "^1.0.8", 1553 | "mime-types": "^2.1.12" 1554 | }, 1555 | "engines": { 1556 | "node": ">= 6" 1557 | } 1558 | }, 1559 | "node_modules/forwarded": { 1560 | "version": "0.2.0", 1561 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 1562 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 1563 | "license": "MIT", 1564 | "engines": { 1565 | "node": ">= 0.6" 1566 | } 1567 | }, 1568 | "node_modules/fresh": { 1569 | "version": "0.5.2", 1570 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 1571 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 1572 | "license": "MIT", 1573 | "engines": { 1574 | "node": ">= 0.6" 1575 | } 1576 | }, 1577 | "node_modules/fsevents": { 1578 | "version": "2.3.3", 1579 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1580 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1581 | "dev": true, 1582 | "hasInstallScript": true, 1583 | "license": "MIT", 1584 | "optional": true, 1585 | "os": [ 1586 | "darwin" 1587 | ], 1588 | "engines": { 1589 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1590 | } 1591 | }, 1592 | "node_modules/function-bind": { 1593 | "version": "1.1.2", 1594 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 1595 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 1596 | "license": "MIT", 1597 | "funding": { 1598 | "url": "https://github.com/sponsors/ljharb" 1599 | } 1600 | }, 1601 | "node_modules/get-intrinsic": { 1602 | "version": "1.3.0", 1603 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", 1604 | "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", 1605 | "license": "MIT", 1606 | "dependencies": { 1607 | "call-bind-apply-helpers": "^1.0.2", 1608 | "es-define-property": "^1.0.1", 1609 | "es-errors": "^1.3.0", 1610 | "es-object-atoms": "^1.1.1", 1611 | "function-bind": "^1.1.2", 1612 | "get-proto": "^1.0.1", 1613 | "gopd": "^1.2.0", 1614 | "has-symbols": "^1.1.0", 1615 | "hasown": "^2.0.2", 1616 | "math-intrinsics": "^1.1.0" 1617 | }, 1618 | "engines": { 1619 | "node": ">= 0.4" 1620 | }, 1621 | "funding": { 1622 | "url": "https://github.com/sponsors/ljharb" 1623 | } 1624 | }, 1625 | "node_modules/get-proto": { 1626 | "version": "1.0.1", 1627 | "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", 1628 | "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", 1629 | "license": "MIT", 1630 | "dependencies": { 1631 | "dunder-proto": "^1.0.1", 1632 | "es-object-atoms": "^1.0.0" 1633 | }, 1634 | "engines": { 1635 | "node": ">= 0.4" 1636 | } 1637 | }, 1638 | "node_modules/get-tsconfig": { 1639 | "version": "4.10.0", 1640 | "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", 1641 | "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", 1642 | "dev": true, 1643 | "license": "MIT", 1644 | "dependencies": { 1645 | "resolve-pkg-maps": "^1.0.0" 1646 | }, 1647 | "funding": { 1648 | "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" 1649 | } 1650 | }, 1651 | "node_modules/globals": { 1652 | "version": "11.12.0", 1653 | "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", 1654 | "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", 1655 | "dev": true, 1656 | "license": "MIT", 1657 | "engines": { 1658 | "node": ">=4" 1659 | } 1660 | }, 1661 | "node_modules/gopd": { 1662 | "version": "1.2.0", 1663 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", 1664 | "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", 1665 | "license": "MIT", 1666 | "engines": { 1667 | "node": ">= 0.4" 1668 | }, 1669 | "funding": { 1670 | "url": "https://github.com/sponsors/ljharb" 1671 | } 1672 | }, 1673 | "node_modules/has-symbols": { 1674 | "version": "1.1.0", 1675 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", 1676 | "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", 1677 | "license": "MIT", 1678 | "engines": { 1679 | "node": ">= 0.4" 1680 | }, 1681 | "funding": { 1682 | "url": "https://github.com/sponsors/ljharb" 1683 | } 1684 | }, 1685 | "node_modules/hasown": { 1686 | "version": "2.0.2", 1687 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 1688 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 1689 | "license": "MIT", 1690 | "dependencies": { 1691 | "function-bind": "^1.1.2" 1692 | }, 1693 | "engines": { 1694 | "node": ">= 0.4" 1695 | } 1696 | }, 1697 | "node_modules/http-errors": { 1698 | "version": "2.0.0", 1699 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 1700 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 1701 | "license": "MIT", 1702 | "dependencies": { 1703 | "depd": "2.0.0", 1704 | "inherits": "2.0.4", 1705 | "setprototypeof": "1.2.0", 1706 | "statuses": "2.0.1", 1707 | "toidentifier": "1.0.1" 1708 | }, 1709 | "engines": { 1710 | "node": ">= 0.8" 1711 | } 1712 | }, 1713 | "node_modules/iconv-lite": { 1714 | "version": "0.4.24", 1715 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 1716 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 1717 | "license": "MIT", 1718 | "dependencies": { 1719 | "safer-buffer": ">= 2.1.2 < 3" 1720 | }, 1721 | "engines": { 1722 | "node": ">=0.10.0" 1723 | } 1724 | }, 1725 | "node_modules/inherits": { 1726 | "version": "2.0.4", 1727 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1728 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1729 | "license": "ISC" 1730 | }, 1731 | "node_modules/ipaddr.js": { 1732 | "version": "1.9.1", 1733 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1734 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 1735 | "license": "MIT", 1736 | "engines": { 1737 | "node": ">= 0.10" 1738 | } 1739 | }, 1740 | "node_modules/isows": { 1741 | "version": "1.0.6", 1742 | "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.6.tgz", 1743 | "integrity": "sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw==", 1744 | "funding": [ 1745 | { 1746 | "type": "github", 1747 | "url": "https://github.com/sponsors/wevm" 1748 | } 1749 | ], 1750 | "license": "MIT", 1751 | "peerDependencies": { 1752 | "ws": "*" 1753 | } 1754 | }, 1755 | "node_modules/js-tiktoken": { 1756 | "version": "1.0.17", 1757 | "resolved": "https://registry.npmjs.org/js-tiktoken/-/js-tiktoken-1.0.17.tgz", 1758 | "integrity": "sha512-Fzmf02RUP8lU6eAn0CtwWEr//mSVGOgj6lK6D++OF+ZVVtFVPnaBdSAN1P2QA0/q8IZOulhIOIjnlFy6QwYNBw==", 1759 | "license": "MIT", 1760 | "dependencies": { 1761 | "base64-js": "^1.5.1" 1762 | } 1763 | }, 1764 | "node_modules/js-tokens": { 1765 | "version": "4.0.0", 1766 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1767 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 1768 | "dev": true, 1769 | "license": "MIT" 1770 | }, 1771 | "node_modules/jsesc": { 1772 | "version": "3.1.0", 1773 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", 1774 | "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", 1775 | "dev": true, 1776 | "license": "MIT", 1777 | "bin": { 1778 | "jsesc": "bin/jsesc" 1779 | }, 1780 | "engines": { 1781 | "node": ">=6" 1782 | } 1783 | }, 1784 | "node_modules/json-schema": { 1785 | "version": "0.4.0", 1786 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", 1787 | "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", 1788 | "license": "(AFL-2.1 OR BSD-3-Clause)" 1789 | }, 1790 | "node_modules/jsondiffpatch": { 1791 | "version": "0.6.0", 1792 | "resolved": "https://registry.npmjs.org/jsondiffpatch/-/jsondiffpatch-0.6.0.tgz", 1793 | "integrity": "sha512-3QItJOXp2AP1uv7waBkao5nCvhEv+QmJAd38Ybq7wNI74Q+BBmnLn4EDKz6yI9xGAIQoUF87qHt+kc1IVxB4zQ==", 1794 | "license": "MIT", 1795 | "dependencies": { 1796 | "@types/diff-match-patch": "^1.0.36", 1797 | "chalk": "^5.3.0", 1798 | "diff-match-patch": "^1.0.5" 1799 | }, 1800 | "bin": { 1801 | "jsondiffpatch": "bin/jsondiffpatch.js" 1802 | }, 1803 | "engines": { 1804 | "node": "^18.0.0 || >=20.0.0" 1805 | } 1806 | }, 1807 | "node_modules/lodash-es": { 1808 | "version": "4.17.21", 1809 | "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", 1810 | "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", 1811 | "license": "MIT" 1812 | }, 1813 | "node_modules/math-intrinsics": { 1814 | "version": "1.1.0", 1815 | "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", 1816 | "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", 1817 | "license": "MIT", 1818 | "engines": { 1819 | "node": ">= 0.4" 1820 | } 1821 | }, 1822 | "node_modules/media-typer": { 1823 | "version": "0.3.0", 1824 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1825 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 1826 | "license": "MIT", 1827 | "engines": { 1828 | "node": ">= 0.6" 1829 | } 1830 | }, 1831 | "node_modules/merge-descriptors": { 1832 | "version": "1.0.3", 1833 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", 1834 | "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", 1835 | "license": "MIT", 1836 | "funding": { 1837 | "url": "https://github.com/sponsors/sindresorhus" 1838 | } 1839 | }, 1840 | "node_modules/methods": { 1841 | "version": "1.1.2", 1842 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1843 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 1844 | "license": "MIT", 1845 | "engines": { 1846 | "node": ">= 0.6" 1847 | } 1848 | }, 1849 | "node_modules/mime": { 1850 | "version": "1.6.0", 1851 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1852 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 1853 | "license": "MIT", 1854 | "bin": { 1855 | "mime": "cli.js" 1856 | }, 1857 | "engines": { 1858 | "node": ">=4" 1859 | } 1860 | }, 1861 | "node_modules/mime-db": { 1862 | "version": "1.52.0", 1863 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 1864 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 1865 | "license": "MIT", 1866 | "engines": { 1867 | "node": ">= 0.6" 1868 | } 1869 | }, 1870 | "node_modules/mime-types": { 1871 | "version": "2.1.35", 1872 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 1873 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 1874 | "license": "MIT", 1875 | "dependencies": { 1876 | "mime-db": "1.52.0" 1877 | }, 1878 | "engines": { 1879 | "node": ">= 0.6" 1880 | } 1881 | }, 1882 | "node_modules/ms": { 1883 | "version": "2.1.3", 1884 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1885 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1886 | "license": "MIT" 1887 | }, 1888 | "node_modules/nanoid": { 1889 | "version": "3.3.8", 1890 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", 1891 | "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", 1892 | "funding": [ 1893 | { 1894 | "type": "github", 1895 | "url": "https://github.com/sponsors/ai" 1896 | } 1897 | ], 1898 | "license": "MIT", 1899 | "bin": { 1900 | "nanoid": "bin/nanoid.cjs" 1901 | }, 1902 | "engines": { 1903 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1904 | } 1905 | }, 1906 | "node_modules/negotiator": { 1907 | "version": "0.6.3", 1908 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 1909 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 1910 | "license": "MIT", 1911 | "engines": { 1912 | "node": ">= 0.6" 1913 | } 1914 | }, 1915 | "node_modules/object-assign": { 1916 | "version": "4.1.1", 1917 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1918 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 1919 | "license": "MIT", 1920 | "engines": { 1921 | "node": ">=0.10.0" 1922 | } 1923 | }, 1924 | "node_modules/object-inspect": { 1925 | "version": "1.13.4", 1926 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", 1927 | "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", 1928 | "license": "MIT", 1929 | "engines": { 1930 | "node": ">= 0.4" 1931 | }, 1932 | "funding": { 1933 | "url": "https://github.com/sponsors/ljharb" 1934 | } 1935 | }, 1936 | "node_modules/on-finished": { 1937 | "version": "2.4.1", 1938 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 1939 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 1940 | "license": "MIT", 1941 | "dependencies": { 1942 | "ee-first": "1.1.1" 1943 | }, 1944 | "engines": { 1945 | "node": ">= 0.8" 1946 | } 1947 | }, 1948 | "node_modules/p-limit": { 1949 | "version": "6.2.0", 1950 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-6.2.0.tgz", 1951 | "integrity": "sha512-kuUqqHNUqoIWp/c467RI4X6mmyuojY5jGutNU0wVTmEOOfcuwLqyMVoAi9MKi2Ak+5i9+nhmrK4ufZE8069kHA==", 1952 | "license": "MIT", 1953 | "dependencies": { 1954 | "yocto-queue": "^1.1.1" 1955 | }, 1956 | "engines": { 1957 | "node": ">=18" 1958 | }, 1959 | "funding": { 1960 | "url": "https://github.com/sponsors/sindresorhus" 1961 | } 1962 | }, 1963 | "node_modules/parseurl": { 1964 | "version": "1.3.3", 1965 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1966 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1967 | "license": "MIT", 1968 | "engines": { 1969 | "node": ">= 0.8" 1970 | } 1971 | }, 1972 | "node_modules/path-to-regexp": { 1973 | "version": "0.1.12", 1974 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", 1975 | "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", 1976 | "license": "MIT" 1977 | }, 1978 | "node_modules/picocolors": { 1979 | "version": "1.1.1", 1980 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 1981 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 1982 | "dev": true, 1983 | "license": "ISC" 1984 | }, 1985 | "node_modules/prettier": { 1986 | "version": "3.4.2", 1987 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", 1988 | "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", 1989 | "dev": true, 1990 | "license": "MIT", 1991 | "bin": { 1992 | "prettier": "bin/prettier.cjs" 1993 | }, 1994 | "engines": { 1995 | "node": ">=14" 1996 | }, 1997 | "funding": { 1998 | "url": "https://github.com/prettier/prettier?sponsor=1" 1999 | } 2000 | }, 2001 | "node_modules/proxy-addr": { 2002 | "version": "2.0.7", 2003 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 2004 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 2005 | "license": "MIT", 2006 | "dependencies": { 2007 | "forwarded": "0.2.0", 2008 | "ipaddr.js": "1.9.1" 2009 | }, 2010 | "engines": { 2011 | "node": ">= 0.10" 2012 | } 2013 | }, 2014 | "node_modules/proxy-from-env": { 2015 | "version": "1.1.0", 2016 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", 2017 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", 2018 | "license": "MIT" 2019 | }, 2020 | "node_modules/qs": { 2021 | "version": "6.13.0", 2022 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", 2023 | "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", 2024 | "license": "BSD-3-Clause", 2025 | "dependencies": { 2026 | "side-channel": "^1.0.6" 2027 | }, 2028 | "engines": { 2029 | "node": ">=0.6" 2030 | }, 2031 | "funding": { 2032 | "url": "https://github.com/sponsors/ljharb" 2033 | } 2034 | }, 2035 | "node_modules/range-parser": { 2036 | "version": "1.2.1", 2037 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 2038 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 2039 | "license": "MIT", 2040 | "engines": { 2041 | "node": ">= 0.6" 2042 | } 2043 | }, 2044 | "node_modules/raw-body": { 2045 | "version": "2.5.2", 2046 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", 2047 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", 2048 | "license": "MIT", 2049 | "dependencies": { 2050 | "bytes": "3.1.2", 2051 | "http-errors": "2.0.0", 2052 | "iconv-lite": "0.4.24", 2053 | "unpipe": "1.0.0" 2054 | }, 2055 | "engines": { 2056 | "node": ">= 0.8" 2057 | } 2058 | }, 2059 | "node_modules/react": { 2060 | "version": "19.0.0", 2061 | "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", 2062 | "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", 2063 | "license": "MIT", 2064 | "peer": true, 2065 | "engines": { 2066 | "node": ">=0.10.0" 2067 | } 2068 | }, 2069 | "node_modules/resolve-pkg-maps": { 2070 | "version": "1.0.0", 2071 | "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", 2072 | "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", 2073 | "dev": true, 2074 | "license": "MIT", 2075 | "funding": { 2076 | "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" 2077 | } 2078 | }, 2079 | "node_modules/safe-buffer": { 2080 | "version": "5.2.1", 2081 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 2082 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 2083 | "funding": [ 2084 | { 2085 | "type": "github", 2086 | "url": "https://github.com/sponsors/feross" 2087 | }, 2088 | { 2089 | "type": "patreon", 2090 | "url": "https://www.patreon.com/feross" 2091 | }, 2092 | { 2093 | "type": "consulting", 2094 | "url": "https://feross.org/support" 2095 | } 2096 | ], 2097 | "license": "MIT" 2098 | }, 2099 | "node_modules/safer-buffer": { 2100 | "version": "2.1.2", 2101 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 2102 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 2103 | "license": "MIT" 2104 | }, 2105 | "node_modules/secure-json-parse": { 2106 | "version": "2.7.0", 2107 | "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", 2108 | "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==", 2109 | "license": "BSD-3-Clause" 2110 | }, 2111 | "node_modules/semver": { 2112 | "version": "7.7.1", 2113 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", 2114 | "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", 2115 | "dev": true, 2116 | "license": "ISC", 2117 | "bin": { 2118 | "semver": "bin/semver.js" 2119 | }, 2120 | "engines": { 2121 | "node": ">=10" 2122 | } 2123 | }, 2124 | "node_modules/send": { 2125 | "version": "0.19.0", 2126 | "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", 2127 | "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", 2128 | "license": "MIT", 2129 | "dependencies": { 2130 | "debug": "2.6.9", 2131 | "depd": "2.0.0", 2132 | "destroy": "1.2.0", 2133 | "encodeurl": "~1.0.2", 2134 | "escape-html": "~1.0.3", 2135 | "etag": "~1.8.1", 2136 | "fresh": "0.5.2", 2137 | "http-errors": "2.0.0", 2138 | "mime": "1.6.0", 2139 | "ms": "2.1.3", 2140 | "on-finished": "2.4.1", 2141 | "range-parser": "~1.2.1", 2142 | "statuses": "2.0.1" 2143 | }, 2144 | "engines": { 2145 | "node": ">= 0.8.0" 2146 | } 2147 | }, 2148 | "node_modules/send/node_modules/debug": { 2149 | "version": "2.6.9", 2150 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 2151 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 2152 | "license": "MIT", 2153 | "dependencies": { 2154 | "ms": "2.0.0" 2155 | } 2156 | }, 2157 | "node_modules/send/node_modules/debug/node_modules/ms": { 2158 | "version": "2.0.0", 2159 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 2160 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 2161 | "license": "MIT" 2162 | }, 2163 | "node_modules/send/node_modules/encodeurl": { 2164 | "version": "1.0.2", 2165 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 2166 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 2167 | "license": "MIT", 2168 | "engines": { 2169 | "node": ">= 0.8" 2170 | } 2171 | }, 2172 | "node_modules/serve-static": { 2173 | "version": "1.16.2", 2174 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", 2175 | "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", 2176 | "license": "MIT", 2177 | "dependencies": { 2178 | "encodeurl": "~2.0.0", 2179 | "escape-html": "~1.0.3", 2180 | "parseurl": "~1.3.3", 2181 | "send": "0.19.0" 2182 | }, 2183 | "engines": { 2184 | "node": ">= 0.8.0" 2185 | } 2186 | }, 2187 | "node_modules/setprototypeof": { 2188 | "version": "1.2.0", 2189 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 2190 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", 2191 | "license": "ISC" 2192 | }, 2193 | "node_modules/side-channel": { 2194 | "version": "1.1.0", 2195 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", 2196 | "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", 2197 | "license": "MIT", 2198 | "dependencies": { 2199 | "es-errors": "^1.3.0", 2200 | "object-inspect": "^1.13.3", 2201 | "side-channel-list": "^1.0.0", 2202 | "side-channel-map": "^1.0.1", 2203 | "side-channel-weakmap": "^1.0.2" 2204 | }, 2205 | "engines": { 2206 | "node": ">= 0.4" 2207 | }, 2208 | "funding": { 2209 | "url": "https://github.com/sponsors/ljharb" 2210 | } 2211 | }, 2212 | "node_modules/side-channel-list": { 2213 | "version": "1.0.0", 2214 | "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", 2215 | "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", 2216 | "license": "MIT", 2217 | "dependencies": { 2218 | "es-errors": "^1.3.0", 2219 | "object-inspect": "^1.13.3" 2220 | }, 2221 | "engines": { 2222 | "node": ">= 0.4" 2223 | }, 2224 | "funding": { 2225 | "url": "https://github.com/sponsors/ljharb" 2226 | } 2227 | }, 2228 | "node_modules/side-channel-map": { 2229 | "version": "1.0.1", 2230 | "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", 2231 | "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", 2232 | "license": "MIT", 2233 | "dependencies": { 2234 | "call-bound": "^1.0.2", 2235 | "es-errors": "^1.3.0", 2236 | "get-intrinsic": "^1.2.5", 2237 | "object-inspect": "^1.13.3" 2238 | }, 2239 | "engines": { 2240 | "node": ">= 0.4" 2241 | }, 2242 | "funding": { 2243 | "url": "https://github.com/sponsors/ljharb" 2244 | } 2245 | }, 2246 | "node_modules/side-channel-weakmap": { 2247 | "version": "1.0.2", 2248 | "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", 2249 | "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", 2250 | "license": "MIT", 2251 | "dependencies": { 2252 | "call-bound": "^1.0.2", 2253 | "es-errors": "^1.3.0", 2254 | "get-intrinsic": "^1.2.5", 2255 | "object-inspect": "^1.13.3", 2256 | "side-channel-map": "^1.0.1" 2257 | }, 2258 | "engines": { 2259 | "node": ">= 0.4" 2260 | }, 2261 | "funding": { 2262 | "url": "https://github.com/sponsors/ljharb" 2263 | } 2264 | }, 2265 | "node_modules/statuses": { 2266 | "version": "2.0.1", 2267 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 2268 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 2269 | "license": "MIT", 2270 | "engines": { 2271 | "node": ">= 0.8" 2272 | } 2273 | }, 2274 | "node_modules/swr": { 2275 | "version": "2.3.0", 2276 | "resolved": "https://registry.npmjs.org/swr/-/swr-2.3.0.tgz", 2277 | "integrity": "sha512-NyZ76wA4yElZWBHzSgEJc28a0u6QZvhb6w0azeL2k7+Q1gAzVK+IqQYXhVOC/mzi+HZIozrZvBVeSeOZNR2bqA==", 2278 | "license": "MIT", 2279 | "dependencies": { 2280 | "dequal": "^2.0.3", 2281 | "use-sync-external-store": "^1.4.0" 2282 | }, 2283 | "peerDependencies": { 2284 | "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" 2285 | } 2286 | }, 2287 | "node_modules/throttleit": { 2288 | "version": "2.1.0", 2289 | "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-2.1.0.tgz", 2290 | "integrity": "sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==", 2291 | "license": "MIT", 2292 | "engines": { 2293 | "node": ">=18" 2294 | }, 2295 | "funding": { 2296 | "url": "https://github.com/sponsors/sindresorhus" 2297 | } 2298 | }, 2299 | "node_modules/toidentifier": { 2300 | "version": "1.0.1", 2301 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 2302 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 2303 | "license": "MIT", 2304 | "engines": { 2305 | "node": ">=0.6" 2306 | } 2307 | }, 2308 | "node_modules/tsx": { 2309 | "version": "4.19.2", 2310 | "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.2.tgz", 2311 | "integrity": "sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==", 2312 | "dev": true, 2313 | "license": "MIT", 2314 | "dependencies": { 2315 | "esbuild": "~0.23.0", 2316 | "get-tsconfig": "^4.7.5" 2317 | }, 2318 | "bin": { 2319 | "tsx": "dist/cli.mjs" 2320 | }, 2321 | "engines": { 2322 | "node": ">=18.0.0" 2323 | }, 2324 | "optionalDependencies": { 2325 | "fsevents": "~2.3.3" 2326 | } 2327 | }, 2328 | "node_modules/type-is": { 2329 | "version": "1.6.18", 2330 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 2331 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 2332 | "license": "MIT", 2333 | "dependencies": { 2334 | "media-typer": "0.3.0", 2335 | "mime-types": "~2.1.24" 2336 | }, 2337 | "engines": { 2338 | "node": ">= 0.6" 2339 | } 2340 | }, 2341 | "node_modules/typescript": { 2342 | "version": "5.7.3", 2343 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", 2344 | "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", 2345 | "dev": true, 2346 | "license": "Apache-2.0", 2347 | "bin": { 2348 | "tsc": "bin/tsc", 2349 | "tsserver": "bin/tsserver" 2350 | }, 2351 | "engines": { 2352 | "node": ">=14.17" 2353 | } 2354 | }, 2355 | "node_modules/typescript-event-target": { 2356 | "version": "1.1.1", 2357 | "resolved": "https://registry.npmjs.org/typescript-event-target/-/typescript-event-target-1.1.1.tgz", 2358 | "integrity": "sha512-dFSOFBKV6uwaloBCCUhxlD3Pr/P1a/tJdcmPrTXCHlEFD3faj0mztjcGn6VBAhQ0/Bdy8K3VWrrqwbt/ffsYsg==", 2359 | "license": "MIT" 2360 | }, 2361 | "node_modules/undici-types": { 2362 | "version": "6.20.0", 2363 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", 2364 | "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", 2365 | "dev": true, 2366 | "license": "MIT" 2367 | }, 2368 | "node_modules/unpipe": { 2369 | "version": "1.0.0", 2370 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2371 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 2372 | "license": "MIT", 2373 | "engines": { 2374 | "node": ">= 0.8" 2375 | } 2376 | }, 2377 | "node_modules/use-sync-external-store": { 2378 | "version": "1.4.0", 2379 | "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz", 2380 | "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==", 2381 | "license": "MIT", 2382 | "peerDependencies": { 2383 | "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" 2384 | } 2385 | }, 2386 | "node_modules/utils-merge": { 2387 | "version": "1.0.1", 2388 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2389 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 2390 | "license": "MIT", 2391 | "engines": { 2392 | "node": ">= 0.4.0" 2393 | } 2394 | }, 2395 | "node_modules/uuid": { 2396 | "version": "9.0.1", 2397 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", 2398 | "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", 2399 | "funding": [ 2400 | "https://github.com/sponsors/broofa", 2401 | "https://github.com/sponsors/ctavan" 2402 | ], 2403 | "license": "MIT", 2404 | "bin": { 2405 | "uuid": "dist/bin/uuid" 2406 | } 2407 | }, 2408 | "node_modules/vary": { 2409 | "version": "1.1.2", 2410 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2411 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 2412 | "license": "MIT", 2413 | "engines": { 2414 | "node": ">= 0.8" 2415 | } 2416 | }, 2417 | "node_modules/ws": { 2418 | "version": "8.18.0", 2419 | "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", 2420 | "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", 2421 | "license": "MIT", 2422 | "peer": true, 2423 | "engines": { 2424 | "node": ">=10.0.0" 2425 | }, 2426 | "peerDependencies": { 2427 | "bufferutil": "^4.0.1", 2428 | "utf-8-validate": ">=5.0.2" 2429 | }, 2430 | "peerDependenciesMeta": { 2431 | "bufferutil": { 2432 | "optional": true 2433 | }, 2434 | "utf-8-validate": { 2435 | "optional": true 2436 | } 2437 | } 2438 | }, 2439 | "node_modules/yocto-queue": { 2440 | "version": "1.1.1", 2441 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.1.1.tgz", 2442 | "integrity": "sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==", 2443 | "license": "MIT", 2444 | "engines": { 2445 | "node": ">=12.20" 2446 | }, 2447 | "funding": { 2448 | "url": "https://github.com/sponsors/sindresorhus" 2449 | } 2450 | }, 2451 | "node_modules/zod": { 2452 | "version": "3.24.1", 2453 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.1.tgz", 2454 | "integrity": "sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==", 2455 | "license": "MIT", 2456 | "funding": { 2457 | "url": "https://github.com/sponsors/colinhacks" 2458 | } 2459 | }, 2460 | "node_modules/zod-to-json-schema": { 2461 | "version": "3.24.1", 2462 | "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.1.tgz", 2463 | "integrity": "sha512-3h08nf3Vw3Wl3PK+q3ow/lIil81IT2Oa7YpQyUUDsEWbXveMesdfK1xBd2RhCkynwZndAxixji/7SYJJowr62w==", 2464 | "license": "ISC", 2465 | "peerDependencies": { 2466 | "zod": "^3.24.1" 2467 | } 2468 | } 2469 | } 2470 | } 2471 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "open-deep-research", 3 | "version": "0.0.1", 4 | "main": "index.ts", 5 | "scripts": { 6 | "format": "prettier --write \"src/**/*.{ts,tsx}\"", 7 | "tsx": "tsx --env-file=.env.local", 8 | "start": "tsx --env-file=.env.local src/run.ts", 9 | "api": "tsx --env-file=.env.local src/api.ts", 10 | "docker": "tsx src/run.ts", 11 | "test": "echo \"Error: no test specified\" && exit 1" 12 | }, 13 | "author": "", 14 | "license": "ISC", 15 | "description": "", 16 | "devDependencies": { 17 | "@ianvs/prettier-plugin-sort-imports": "^4.4.1", 18 | "@types/cors": "^2.8.17", 19 | "@types/express": "^4.17.21", 20 | "@types/lodash-es": "^4.17.12", 21 | "@types/node": "^22.13.0", 22 | "@types/uuid": "^9.0.8", 23 | "prettier": "^3.4.2", 24 | "tsx": "^4.19.2", 25 | "typescript": "^5.7.3" 26 | }, 27 | "dependencies": { 28 | "@ai-sdk/fireworks": "^0.1.14", 29 | "@ai-sdk/openai": "^1.1.9", 30 | "@mendable/firecrawl-js": "^1.16.0", 31 | "ai": "^4.1.17", 32 | "cors": "^2.8.5", 33 | "express": "^4.18.3", 34 | "js-tiktoken": "^1.0.17", 35 | "lodash-es": "^4.17.21", 36 | "p-limit": "^6.2.0", 37 | "uuid": "^9.0.1", 38 | "zod": "^3.24.1" 39 | }, 40 | "engines": { 41 | "node": "22.x" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /prettier.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('prettier').Config} */ 2 | export default { 3 | endOfLine: 'lf', 4 | semi: true, 5 | useTabs: false, 6 | singleQuote: true, 7 | arrowParens: 'avoid', 8 | tabWidth: 2, 9 | trailingComma: 'all', 10 | importOrder: [ 11 | '^(react/(.*)$)|^(react$)', 12 | '^(next/(.*)$)|^(next$)', 13 | '', 14 | '', 15 | '@repo/(.*)$', 16 | '', 17 | '^@/(.*)$', 18 | '', 19 | '^[./]', 20 | ], 21 | importOrderParserPlugins: ['typescript', 'jsx'], 22 | importOrderTypeScriptVersion: '5.7.2', 23 | plugins: ['@ianvs/prettier-plugin-sort-imports'], 24 | }; 25 | -------------------------------------------------------------------------------- /report.md: -------------------------------------------------------------------------------- 1 | # A Comprehensive Analysis of NVIDIA's RTX 5000 Series for Gaming Performance 2 | 3 | This report provides an in-depth technical and comparative analysis of NVIDIA’s new RTX 5000 series GPUs, with a focus on pure gaming performance. It covers architectural innovations, benchmarking results, design optimizations, and market positioning relative to both previous RTX generations and competing products such as AMD’s RX 9000 series. The following sections detail the extensive research conducted, incorporating insights from rigorous benchmarks, innovative engineering strategies, and comparative evaluations. 4 | 5 | --- 6 | 7 | ## 1. Introduction 8 | 9 | The RTX 5000 series marks a significant generational leap for NVIDIA in catering specifically to high-performance gaming. This new lineup targets enthusiasts and professionals alike, delivering improved frame rates, cutting-edge AI upscaling, and state-of-the-art ray tracing capabilities. As a follow-up to prior queries comparing the RTX 5000 series to its predecessors and to AMD's upcoming offerings, this report aggregates all recent findings to offer an exhaustive analysis of its performance benefits. 10 | 11 | --- 12 | 13 | ## 2. Architectural Innovations and Design Enhancements 14 | 15 | ### 2.1. New Blackwell Architecture 16 | 17 | - **Key Features:** 18 | - Integration of 5th Generation Tensor Cores and 4th Generation RT Cores. 19 | - Adoption of GDDR7 memory (up to 32GB in flagship models), offering up to 1792 GB/sec bandwidth. 20 | - Enhanced AI driven features with DLSS 4's Multi Frame Generation technology that utilizes a novel transformer model and an integrated AI management processor (AMP based on RISC-V). 21 | 22 | ### 2.2. Process Node Evolution 23 | 24 | - Although the physical node change from TSMC N4 to N4P only provides a ~5% improvement, this modest uplift is compensated with significant architectural tweaks such as: 25 | - Increased number of CUDA cores (up to 33% more in some instances compared to the RTX 4090). 26 | - Advanced power distribution management via a 30-phase VRM design in flagship models (e.g., the RTX 5090 Founders Edition). 27 | 28 | ### 2.3. PCB and Cooling Innovations 29 | 30 | - **Compact Two-Slot Design:** 31 | - Despite increased power envelopes (e.g., RTX 5090’s 575W vs. RTX 4090’s 450W), the engineering team managed to design a dense PCB that maintains a 2-slot footprint. 32 | 33 | - **Enhanced Thermal Management:** 34 | - Implementation of dual flow-through cooling systems with liquid metal and triple-walled gaskets resulted in peak temperatures stabilized around 72°C (with even the flagship RTX 5090 successfully operating under heavy 4K loads). 35 | - Advanced measures like vapor-chambers and premium phase-change thermal pads further ensure that thermal-efficiency is maintained even under high power draw conditions. 36 | 37 | - **Acoustic Engineering:** 38 | - Despite the higher TDP and increased power consumption (e.g., idle power draw for the RTX 5090 is 46W compared to 28–29W for the RTX 4090), acoustic performance is optimized to around 32.5 dBA at 1 meter via targeted airflow and noise reduction strategies. 39 | 40 | --- 41 | 42 | ## 3. Gaming Performance Benchmarks 43 | 44 | The primary focus being gaming performance, this section incorporates multiple performance metrics and independent benchmarks from both synthetic tests (such as Blender and 3DMark) and popular gaming titles like Resident Evil 4, Horizon Forbidden West, Cyberpunk 2077, and Final Fantasy XVI. 45 | 46 | ### 3.1. Relative Performance Gains Over Previous Generations 47 | 48 | - **RTX 5090:** 49 | - Delivers roughly 30–35% higher performance than the RTX 4090 in pure 4K, non-ray tracing gaming. 50 | - Offers 20–50% improvements in average frame rates across diverse gaming titles. 51 | - Demonstrates a 32% improvement in ray tracing performance alongside up to a two-fold increase in performance in specific titles. 52 | - Trade-off: Elevated power draw (575W) necessitates scrutinizing efficiency and overall FPS-per-watt metrics. 53 | 54 | - **RTX 5080 and RTX 5070-Ti:** 55 | - The RTX 5080 shows about a 15% performance uplift (both in rasterization and in ray tracing tasks) relative to the previous generation’s 4080-Super series. 56 | - The RTX 5070-Ti positions itself as a best-value proposition for gamers by delivering approximately 20% higher performance than the older 4070-Ti-Super at a lower price point ($749.99) while boasting 16GB VRAM, making it particularly effective for high-resolution gaming. 57 | 58 | ### 3.2. Technical Specifications and Numbers 59 | 60 | Table below summarizes the key specifications and performance benchmarks for representative models in the series: 61 | 62 | | Model | CUDA Cores | Boost Clock (GHz) | TGP (W) | Memory Configuration & Bandwidth | Performance Gains vs. Predecessor | 63 | |-----------------|------------|-------------------|---------|--------------------------------------------------|-----------------------------------------| 64 | | RTX 5090 | 21,760+ | Higher (e.g., ~2.62 GHz similar or above) | 575 | 32GB GDDR7, 512-bit, up to 1792 GB/sec | ~30–35% (raster), 27–35% (RT), significant DLSS gains | 65 | | RTX 5080 | 10,752 | 2.62 | 360 | High-bandwidth GDDR7 | Roughly 15–20% higher FPS in 4K gaming | 66 | | RTX 5070-Ti | 8,960 | 2.45 | 300 | 16GB VRAM, GDDR7 | ~20% gain over 4070-Ti-Super | 67 | 68 | These improvements are driven by higher core counts, enhanced architectural features, and tailored driver optimizations that have addressed frametime issues previously seen in titles like Alan Wake 2. 69 | 70 | --- 71 | 72 | ## 4. AI and Upscaling Technologies 73 | 74 | ### 4.1. DLSS 4 Multi Frame Generation 75 | 76 | - **Revolutionizing Frame Rates:** 77 | - DLSS 4 leverages a transformer-based model combined with the inbuilt RISC-V based AMP to deliver enhanced multi-frame generation. 78 | - This technology can boost performance by up to 40% in demanding, ray-traced scenes and even multiply frame rates by as much as 8X compared to traditional rendering methods. 79 | 80 | ### 4.2. NVIDIA Reflex 2 81 | 82 | - **Latency Reduction:** 83 | - NVIDIA Reflex 2 technology slashes input latency by up to 75%, ensuring a smoother and more responsive gaming experience, particularly in competitive gaming scenarios. 84 | 85 | ### 4.3. Integration with AI-Driven Content Creation 86 | 87 | - While the primary focus here is gaming, it is important to note that these AI enhancements also accelerate creative workloads, making the RTX 5000 series a versatile choice for AI research and content production. 88 | 89 | --- 90 | 91 | ## 5. Power Efficiency and Thermal Performance Considerations 92 | 93 | ### 5.1. Power Consumption Trade-offs 94 | 95 | - The series, particularly the RTX 5090, sees significant increases in power draw (e.g., idle and load differences such as 46W idle power compared to 29W for the RTX 4090). The increase in power is justified by the raw performance gains but does come with questions regarding overall efficiency, especially in FPS-per-watt metrics. 96 | 97 | ### 5.2. Thermal Efficiency Advances 98 | 99 | - **Innovative Cooling Techniques:** As outlined earlier, advanced cooling methods are crucial for stable performance at high power loads. The full flow-through cooling system ensures that despite the high TDP (up to 575W for the RTX 5090), steady-state operational temperatures remain near 72–77°C. 100 | 101 | - **Memory Thermal Characteristics:** Although the GPU core temperatures are well-managed, memory temperatures can occasionally peak up to 89–90°C under strenuous gaming loads, prompting further investigation into long-term memory reliability under prolonged usage conditions. 102 | 103 | --- 104 | 105 | ## 6. Comparative Analysis with Predecessor and Competitor Products 106 | 107 | ### 6.1. Comparisons with Previous RTX Series Models 108 | 109 | - **RTX 5000 vs. RTX 4000 Series:** 110 | - The RTX 5000 series shows a marked performance uplift across the board. For instance, while the RTX 5090 pushes around 30–35% performance improvements, the RTX 5080 and 5070-Ti deliver gains of 15% and 20% over the 4080-Super and 4070-Ti-Super, respectively. 111 | - The driver optimizations and thermal management technologies in the RTX 5000 series have also resolved issues seen in earlier generations (such as inconsistencies in frametime performance in certain titles). 112 | 113 | ### 6.2. Competitive Dynamics with AMD’s RX 9000 Series 114 | 115 | - **AMD’s Positioning:** 116 | - Although AMD is rumored to be withdrawing from the ultra-high-end market, the RX 9000 series, exemplified by the RX 9070XT (with 16GB of VRAM), shows competitive pressure. Leaked 3DMark numbers indicate performance figures close to the RTX 5070 series, emphasizing raw performance metrics in 4K gaming. 117 | - Differences in memory configuration (GDDR6 for AMD vs. GDDR7 for NVIDIA) and architectural paradigms (RDNA 4 vs. Blackwell) make efficiency and performance trade-offs a key battleground. 118 | 119 | - **Strategic Considerations:** 120 | - NVIDIA’s aggressive product segmentation, with pricing ranging from about $549 for lower-end models (e.g., RTX 5060) to nearly $2,000 for flagship variants (RTX 5090 Founders Edition), contrasts with AMD’s mid-range focus. This segmentation not only influences immediate gaming performance metrics but also longer-term upgrade cycles and market dynamics. 121 | 122 | --- 123 | 124 | ## 7. Market Impact, Value Trade-offs, and Future Outlook 125 | 126 | ### 7.1. Pricing Dynamics and Consumer Sentiment 127 | 128 | - **Premium Pricing Concerns:** 129 | - The RTX 5090 is priced around $1,999.99 compared to the RTX 4090 at $1,599.99. Although this represents a 25% higher price point, the performance boost (around 30–35%) may justify the extra cost for gamers demanding uncompromised 4K and ray-traced performance. 130 | 131 | - **Value Proposition of the RTX 5070-Ti:** 132 | - At approximately $749.99 with 16GB VRAM, the RTX 5070-Ti emerges as a clear best-value option for high-resolution gaming. Its competitive pricing relative to its performance makes it attractive for gamers who balance performance with cost efficiency. 133 | 134 | - **Consumer Debates:** 135 | - Forum discussions and expert reviews reveal a divided community, with some criticisms over aggressive segmentation and high flagship pricing, while others commend the tailored use cases such as AI-enhanced gaming and professional creative workflows. 136 | 137 | ### 7.2. Future Technological Projections and Speculative Trends 138 | 139 | - **Improved Driver Optimizations:** 140 | - Continued refinement in driver updates (addressing issues such as frametime inconsistencies) can further enhance performance in real-world gaming scenarios. 141 | 142 | - **Potential New Technologies:** 143 | - Future iterations might explore even more efficient power scaling and cooling optimizations, perhaps integrating improved liquid cooling or hybrid passive-active cooling mechanisms to further lower the thermal footprint. 144 | - Given the competitive dynamics, both NVIDIA and AMD may drive innovations around VRAM management and efficiency, which could significantly impact future pricing and segmentation strategies. 145 | 146 | - **AI and Upscaling Evolution:** 147 | - DLSS and AI-based rendering technologies are likely to become even more integral to gaming performance enhancements, with potential upcoming improvements focusing on reducing latency further and increasing real-time fidelity. 148 | 149 | --- 150 | 151 | ## 8. Conclusion 152 | 153 | The RTX 5000 series represents a robust and innovative leap in gaming GPU technology. Key takeaways include: 154 | 155 | - **Substantial Performance Increases:** A clear generational improvement over previous RTX models with substantial enhancements in 4K gaming, ray tracing, and AI-driven rendering. 156 | 157 | - **Innovative Architecture and Thermal Design:** The Blackwell architecture combined with advanced cooling solutions enables such high performance while mitigating thermal concerns typically associated with higher TDP values. 158 | 159 | - **Competitive Market Positioning:** NVIDIA’s strategy of aggressive segmentation and comprehensive performance gains reinforces its position, even as AMD’s RX 9000 series introduces competitive pressure in the mid-range segment. 160 | 161 | - **Trade-offs in Efficiency:** The significant improvements come at the cost of increased power consumption, raising considerations for both energy efficiency and operational heat management under sustained loads. 162 | 163 | This comprehensive analysis, rooted in extensive benchmarking and technical evaluations, should serve as a detailed reference for experts evaluating the RTX 5000 series for high-performance gaming. Future developments in AI rendering and thermal management are expected to further refine these impressive performance metrics, while competitive dynamics will continue to push the envelope in GPU technology. 164 | 165 | --- 166 | 167 | *Note: Some projections and speculations in this report are based on emerging trends and early benchmarking data. Continued monitoring of real-world performance and driver updates is recommended for an ongoing evaluation.* 168 | 169 | 170 | # End of Report 171 | 172 | 173 | ## Sources 174 | 175 | - https://www.tomshardware.com/reviews/gpu-hierarchy,4388.html 176 | - https://linustechtips.com/topic/1596724-my-personally-recommended-gpu-from-rtx-5000-series/ 177 | - https://www.forbes.com/sites/moorinsights/2025/01/23/nvidia-rtx-5090-graphics-card-review---get-neural-or-get-left-behind/ 178 | - https://www.neogaf.com/threads/nvidia-official-geforce-rtx-50-vs-rtx-40-benchmarks-15-to-33-performance-uplift-without-dlss-multi-frame-generation.1679651/ 179 | - https://pcoutlet.com/parts/video-cards/rtx-5070-ti-vs-rtx-5080-which-gpu-reigns-supreme 180 | - https://www.kitguru.net/components/graphic-cards/dominic-moass/nvidia-rtx-5080-review-efficiency-gains-but-a-performance-letdown/all/1/ 181 | - https://forums.pcgamer.com/threads/rtx-5000-series-review-discussion.147293/ 182 | - https://www.techradar.com/computing/gpu/nvidias-new-next-gen-gpu-benchmarks-cause-concern-among-pc-gamers-particularly-with-the-rtx-5080-but-dont-panic-yet 183 | - https://www.vcsolutions.com/blog/nvidia-rtx-5000-series-performance-unveiled/ 184 | - https://gamersnexus.net/gpus/nvidia-geforce-rtx-5090-founders-edition-review-benchmarks-gaming-thermals-power 185 | - https://www.tomshardware.com/pc-components/gpus/nvidia-geforce-rtx-5090-review 186 | - https://www.nvidia.com/en-us/geforce/news/rtx-50-series-graphics-cards-gpu-laptop-announcements/ 187 | - https://pcoutlet.com/parts/video-cards/nvidia-rtx-5000-series 188 | - https://press.asus.com/news/press-releases/asus-nvidia-geforce-rtx-50-series-graphics-cards/ 189 | - https://galaxy.ai/youtube-summarizer/the-challenges-facing-nvidias-rtx-5000-series-and-amds-rx-8000-cards-VHQkBdeXzT0 190 | - https://www.xda-developers.com/nvidia-rtx-5000-not-what-you-think/ 191 | - https://hardwarehunt.co.uk/blogs/pc-building-maintenance/amd-vs-nvidia-the-battle-between-radeon-rx-9000-and-rtx-5000?srsltid=AfmBOorJ59FR_9WsA8ol-7k9g_jPvGbbYgFK1MzbvOwRS05HQO8JdjoZ 192 | - https://hardforum.com/threads/2025-nvidia-versus-amd-ati-rematch-5000-versus-9000-series-edition.2038817/ 193 | - https://9meters.com/technology/graphics/nvidia-shows-off-geforce-rtx-5090-fe-pcb-30-phases-of-stable-575w-power 194 | - https://www.technology.org/2025/01/20/nvidias-rtx-5090-a-technological-leap-beyond-the-rtx-4090/ -------------------------------------------------------------------------------- /src/ai/providers.ts: -------------------------------------------------------------------------------- 1 | import { createFireworks } from '@ai-sdk/fireworks'; 2 | import { createOpenAI } from '@ai-sdk/openai'; 3 | import { 4 | extractReasoningMiddleware, 5 | LanguageModelV1, 6 | wrapLanguageModel, 7 | } from 'ai'; 8 | import { getEncoding } from 'js-tiktoken'; 9 | 10 | import { RecursiveCharacterTextSplitter } from './text-splitter'; 11 | 12 | // Providers 13 | const openai = process.env.OPENAI_KEY 14 | ? createOpenAI({ 15 | apiKey: process.env.OPENAI_KEY, 16 | baseURL: process.env.OPENAI_ENDPOINT || 'https://api.openai.com/v1', 17 | }) 18 | : undefined; 19 | 20 | const fireworks = process.env.FIREWORKS_KEY 21 | ? createFireworks({ 22 | apiKey: process.env.FIREWORKS_KEY, 23 | }) 24 | : undefined; 25 | 26 | const customModel = process.env.CUSTOM_MODEL 27 | ? openai?.(process.env.CUSTOM_MODEL, { 28 | structuredOutputs: true, 29 | }) 30 | : undefined; 31 | 32 | // Models 33 | 34 | const o3MiniModel = openai?.('o3-mini', { 35 | reasoningEffort: 'medium', 36 | structuredOutputs: true, 37 | }); 38 | 39 | const deepSeekR1Model = fireworks 40 | ? wrapLanguageModel({ 41 | model: fireworks( 42 | 'accounts/fireworks/models/deepseek-r1', 43 | ) as LanguageModelV1, 44 | middleware: extractReasoningMiddleware({ tagName: 'think' }), 45 | }) 46 | : undefined; 47 | 48 | export function getModel(): LanguageModelV1 { 49 | if (customModel) { 50 | return customModel; 51 | } 52 | 53 | const model = deepSeekR1Model ?? o3MiniModel; 54 | if (!model) { 55 | throw new Error('No model found'); 56 | } 57 | 58 | return model as LanguageModelV1; 59 | } 60 | 61 | const MinChunkSize = 140; 62 | const encoder = getEncoding('o200k_base'); 63 | 64 | // trim prompt to maximum context size 65 | export function trimPrompt( 66 | prompt: string, 67 | contextSize = Number(process.env.CONTEXT_SIZE) || 128_000, 68 | ) { 69 | if (!prompt) { 70 | return ''; 71 | } 72 | 73 | const length = encoder.encode(prompt).length; 74 | if (length <= contextSize) { 75 | return prompt; 76 | } 77 | 78 | const overflowTokens = length - contextSize; 79 | // on average it's 3 characters per token, so multiply by 3 to get a rough estimate of the number of characters 80 | const chunkSize = prompt.length - overflowTokens * 3; 81 | if (chunkSize < MinChunkSize) { 82 | return prompt.slice(0, MinChunkSize); 83 | } 84 | 85 | const splitter = new RecursiveCharacterTextSplitter({ 86 | chunkSize, 87 | chunkOverlap: 0, 88 | }); 89 | const trimmedPrompt = splitter.splitText(prompt)[0] ?? ''; 90 | 91 | // last catch, there's a chance that the trimmed prompt is same length as the original prompt, due to how tokens are split & innerworkings of the splitter, handle this case by just doing a hard cut 92 | if (trimmedPrompt.length === prompt.length) { 93 | return trimPrompt(prompt.slice(0, chunkSize), contextSize); 94 | } 95 | 96 | // recursively trim until the prompt is within the context size 97 | return trimPrompt(trimmedPrompt, contextSize); 98 | } 99 | -------------------------------------------------------------------------------- /src/ai/text-splitter.test.ts: -------------------------------------------------------------------------------- 1 | import assert from 'node:assert'; 2 | import { describe, it, beforeEach } from 'node:test'; 3 | import { RecursiveCharacterTextSplitter } from './text-splitter'; 4 | 5 | describe('RecursiveCharacterTextSplitter', () => { 6 | let splitter: RecursiveCharacterTextSplitter; 7 | 8 | beforeEach(() => { 9 | splitter = new RecursiveCharacterTextSplitter({ 10 | chunkSize: 50, 11 | chunkOverlap: 10, 12 | }); 13 | }); 14 | 15 | it('Should correctly split text by separators', () => { 16 | const text = 'Hello world, this is a test of the recursive text splitter.'; 17 | 18 | // Test with initial chunkSize 19 | assert.deepEqual( 20 | splitter.splitText(text), 21 | ['Hello world', 'this is a test of the recursive text splitter'] 22 | ); 23 | 24 | // Test with updated chunkSize 25 | splitter.chunkSize = 100; 26 | assert.deepEqual( 27 | splitter.splitText( 28 | 'Hello world, this is a test of the recursive text splitter. If I have a period, it should split along the period.' 29 | ), 30 | [ 31 | 'Hello world, this is a test of the recursive text splitter', 32 | 'If I have a period, it should split along the period.', 33 | ] 34 | ); 35 | 36 | // Test with another updated chunkSize 37 | splitter.chunkSize = 110; 38 | assert.deepEqual( 39 | splitter.splitText( 40 | 'Hello world, this is a test of the recursive text splitter. If I have a period, it should split along the period.\nOr, if there is a new line, it should prioritize splitting on new lines instead.' 41 | ), 42 | [ 43 | 'Hello world, this is a test of the recursive text splitter', 44 | 'If I have a period, it should split along the period.', 45 | 'Or, if there is a new line, it should prioritize splitting on new lines instead.', 46 | ] 47 | ); 48 | }); 49 | 50 | it('Should handle empty string', () => { 51 | assert.deepEqual(splitter.splitText(''), []); 52 | }); 53 | 54 | it('Should handle special characters and large texts', () => { 55 | const largeText = 'A'.repeat(1000); 56 | splitter.chunkSize = 200; 57 | assert.deepEqual( 58 | splitter.splitText(largeText), 59 | Array(5).fill('A'.repeat(200)) 60 | ); 61 | 62 | const specialCharText = 'Hello!@# world$%^ &*( this) is+ a-test'; 63 | assert.deepEqual( 64 | splitter.splitText(specialCharText), 65 | ['Hello!@#', 'world$%^', '&*( this)', 'is+', 'a-test'] 66 | ); 67 | }); 68 | 69 | it('Should handle chunkSize equal to chunkOverlap', () => { 70 | splitter.chunkSize = 50; 71 | splitter.chunkOverlap = 50; 72 | assert.throws( 73 | () => splitter.splitText('Invalid configuration'), 74 | new Error('Cannot have chunkOverlap >= chunkSize') 75 | ); 76 | }); 77 | }); 78 | -------------------------------------------------------------------------------- /src/ai/text-splitter.ts: -------------------------------------------------------------------------------- 1 | interface TextSplitterParams { 2 | chunkSize: number; 3 | 4 | chunkOverlap: number; 5 | } 6 | 7 | abstract class TextSplitter implements TextSplitterParams { 8 | chunkSize = 1000; 9 | chunkOverlap = 200; 10 | 11 | constructor(fields?: Partial) { 12 | this.chunkSize = fields?.chunkSize ?? this.chunkSize; 13 | this.chunkOverlap = fields?.chunkOverlap ?? this.chunkOverlap; 14 | if (this.chunkOverlap >= this.chunkSize) { 15 | throw new Error('Cannot have chunkOverlap >= chunkSize'); 16 | } 17 | } 18 | 19 | abstract splitText(text: string): string[]; 20 | 21 | createDocuments(texts: string[]): string[] { 22 | const documents: string[] = []; 23 | for (let i = 0; i < texts.length; i += 1) { 24 | const text = texts[i]; 25 | for (const chunk of this.splitText(text!)) { 26 | documents.push(chunk); 27 | } 28 | } 29 | return documents; 30 | } 31 | 32 | splitDocuments(documents: string[]): string[] { 33 | return this.createDocuments(documents); 34 | } 35 | 36 | private joinDocs(docs: string[], separator: string): string | null { 37 | const text = docs.join(separator).trim(); 38 | return text === '' ? null : text; 39 | } 40 | 41 | mergeSplits(splits: string[], separator: string): string[] { 42 | const docs: string[] = []; 43 | const currentDoc: string[] = []; 44 | let total = 0; 45 | for (const d of splits) { 46 | const _len = d.length; 47 | if (total + _len >= this.chunkSize) { 48 | if (total > this.chunkSize) { 49 | console.warn( 50 | `Created a chunk of size ${total}, + 51 | which is longer than the specified ${this.chunkSize}`, 52 | ); 53 | } 54 | if (currentDoc.length > 0) { 55 | const doc = this.joinDocs(currentDoc, separator); 56 | if (doc !== null) { 57 | docs.push(doc); 58 | } 59 | // Keep on popping if: 60 | // - we have a larger chunk than in the chunk overlap 61 | // - or if we still have any chunks and the length is long 62 | while ( 63 | total > this.chunkOverlap || 64 | (total + _len > this.chunkSize && total > 0) 65 | ) { 66 | total -= currentDoc[0]!.length; 67 | currentDoc.shift(); 68 | } 69 | } 70 | } 71 | currentDoc.push(d); 72 | total += _len; 73 | } 74 | const doc = this.joinDocs(currentDoc, separator); 75 | if (doc !== null) { 76 | docs.push(doc); 77 | } 78 | return docs; 79 | } 80 | } 81 | 82 | export interface RecursiveCharacterTextSplitterParams 83 | extends TextSplitterParams { 84 | separators: string[]; 85 | } 86 | 87 | export class RecursiveCharacterTextSplitter 88 | extends TextSplitter 89 | implements RecursiveCharacterTextSplitterParams 90 | { 91 | separators: string[] = ['\n\n', '\n', '.', ',', '>', '<', ' ', '']; 92 | 93 | constructor(fields?: Partial) { 94 | super(fields); 95 | this.separators = fields?.separators ?? this.separators; 96 | } 97 | 98 | splitText(text: string): string[] { 99 | const finalChunks: string[] = []; 100 | 101 | // Get appropriate separator to use 102 | let separator: string = this.separators[this.separators.length - 1]!; 103 | for (const s of this.separators) { 104 | if (s === '') { 105 | separator = s; 106 | break; 107 | } 108 | if (text.includes(s)) { 109 | separator = s; 110 | break; 111 | } 112 | } 113 | 114 | // Now that we have the separator, split the text 115 | let splits: string[]; 116 | if (separator) { 117 | splits = text.split(separator); 118 | } else { 119 | splits = text.split(''); 120 | } 121 | 122 | // Now go merging things, recursively splitting longer texts. 123 | let goodSplits: string[] = []; 124 | for (const s of splits) { 125 | if (s.length < this.chunkSize) { 126 | goodSplits.push(s); 127 | } else { 128 | if (goodSplits.length) { 129 | const mergedText = this.mergeSplits(goodSplits, separator); 130 | finalChunks.push(...mergedText); 131 | goodSplits = []; 132 | } 133 | const otherInfo = this.splitText(s); 134 | finalChunks.push(...otherInfo); 135 | } 136 | } 137 | if (goodSplits.length) { 138 | const mergedText = this.mergeSplits(goodSplits, separator); 139 | finalChunks.push(...mergedText); 140 | } 141 | return finalChunks; 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /src/api.ts: -------------------------------------------------------------------------------- 1 | import cors from 'cors'; 2 | import express, { Request, Response } from 'express'; 3 | 4 | import { deepResearch, writeFinalAnswer } from './deep-research'; 5 | 6 | const app = express(); 7 | const port = process.env.PORT || 3051; 8 | 9 | // Middleware 10 | app.use(cors()); 11 | app.use(express.json()); 12 | 13 | // Helper function for consistent logging 14 | function log(...args: any[]) { 15 | console.log(...args); 16 | } 17 | 18 | // API endpoint to run research 19 | app.post('/api/research', async (req: Request, res: Response) => { 20 | try { 21 | const { query, depth = 3, breadth = 3 } = req.body; 22 | 23 | if (!query) { 24 | return res.status(400).json({ error: 'Query is required' }); 25 | } 26 | 27 | log('\nStarting research...\n'); 28 | 29 | const { learnings, visitedUrls } = await deepResearch({ 30 | query, 31 | breadth, 32 | depth, 33 | }); 34 | 35 | log(`\n\nLearnings:\n\n${learnings.join('\n')}`); 36 | log( 37 | `\n\nVisited URLs (${visitedUrls.length}):\n\n${visitedUrls.join('\n')}`, 38 | ); 39 | 40 | const answer = await writeFinalAnswer({ 41 | prompt: query, 42 | learnings, 43 | }); 44 | 45 | // Return the results 46 | return res.json({ 47 | success: true, 48 | answer, 49 | learnings, 50 | visitedUrls, 51 | }); 52 | } catch (error: unknown) { 53 | console.error('Error in research API:', error); 54 | return res.status(500).json({ 55 | error: 'An error occurred during research', 56 | message: error instanceof Error ? error.message : String(error), 57 | }); 58 | } 59 | }); 60 | 61 | // Start the server 62 | app.listen(port, () => { 63 | console.log(`Deep Research API running on port ${port}`); 64 | }); 65 | 66 | export default app; 67 | -------------------------------------------------------------------------------- /src/deep-research.ts: -------------------------------------------------------------------------------- 1 | import FirecrawlApp, { SearchResponse } from '@mendable/firecrawl-js'; 2 | import { generateObject } from 'ai'; 3 | import { compact } from 'lodash-es'; 4 | import pLimit from 'p-limit'; 5 | import { z } from 'zod'; 6 | 7 | import { getModel, trimPrompt } from './ai/providers'; 8 | import { systemPrompt } from './prompt'; 9 | 10 | function log(...args: any[]) { 11 | console.log(...args); 12 | } 13 | 14 | export type ResearchProgress = { 15 | currentDepth: number; 16 | totalDepth: number; 17 | currentBreadth: number; 18 | totalBreadth: number; 19 | currentQuery?: string; 20 | totalQueries: number; 21 | completedQueries: number; 22 | }; 23 | 24 | type ResearchResult = { 25 | learnings: string[]; 26 | visitedUrls: string[]; 27 | }; 28 | 29 | // increase this if you have higher API rate limits 30 | const ConcurrencyLimit = Number(process.env.FIRECRAWL_CONCURRENCY) || 2; 31 | 32 | // Initialize Firecrawl with optional API key and optional base url 33 | 34 | const firecrawl = new FirecrawlApp({ 35 | apiKey: process.env.FIRECRAWL_KEY ?? '', 36 | apiUrl: process.env.FIRECRAWL_BASE_URL, 37 | }); 38 | 39 | // take en user query, return a list of SERP queries 40 | async function generateSerpQueries({ 41 | query, 42 | numQueries = 3, 43 | learnings, 44 | }: { 45 | query: string; 46 | numQueries?: number; 47 | 48 | // optional, if provided, the research will continue from the last learning 49 | learnings?: string[]; 50 | }) { 51 | const res = await generateObject({ 52 | model: getModel(), 53 | system: systemPrompt(), 54 | prompt: `Given the following prompt from the user, generate a list of SERP queries to research the topic. Return a maximum of ${numQueries} queries, but feel free to return less if the original prompt is clear. Make sure each query is unique and not similar to each other: ${query}\n\n${ 55 | learnings 56 | ? `Here are some learnings from previous research, use them to generate more specific queries: ${learnings.join( 57 | '\n', 58 | )}` 59 | : '' 60 | }`, 61 | schema: z.object({ 62 | queries: z 63 | .array( 64 | z.object({ 65 | query: z.string().describe('The SERP query'), 66 | researchGoal: z 67 | .string() 68 | .describe( 69 | 'First talk about the goal of the research that this query is meant to accomplish, then go deeper into how to advance the research once the results are found, mention additional research directions. Be as specific as possible, especially for additional research directions.', 70 | ), 71 | }), 72 | ) 73 | .describe(`List of SERP queries, max of ${numQueries}`), 74 | }), 75 | }); 76 | log(`Created ${res.object.queries.length} queries`, res.object.queries); 77 | 78 | return res.object.queries.slice(0, numQueries); 79 | } 80 | 81 | async function processSerpResult({ 82 | query, 83 | result, 84 | numLearnings = 3, 85 | numFollowUpQuestions = 3, 86 | }: { 87 | query: string; 88 | result: SearchResponse; 89 | numLearnings?: number; 90 | numFollowUpQuestions?: number; 91 | }) { 92 | const contents = compact(result.data.map(item => item.markdown)).map(content => 93 | trimPrompt(content, 25_000), 94 | ); 95 | log(`Ran ${query}, found ${contents.length} contents`); 96 | 97 | const res = await generateObject({ 98 | model: getModel(), 99 | abortSignal: AbortSignal.timeout(60_000), 100 | system: systemPrompt(), 101 | prompt: trimPrompt( 102 | `Given the following contents from a SERP search for the query ${query}, generate a list of learnings from the contents. Return a maximum of ${numLearnings} learnings, but feel free to return less if the contents are clear. Make sure each learning is unique and not similar to each other. The learnings should be concise and to the point, as detailed and information dense as possible. Make sure to include any entities like people, places, companies, products, things, etc in the learnings, as well as any exact metrics, numbers, or dates. The learnings will be used to research the topic further.\n\n${contents 103 | .map(content => `\n${content}\n`) 104 | .join('\n')}`, 105 | ), 106 | schema: z.object({ 107 | learnings: z.array(z.string()).describe(`List of learnings, max of ${numLearnings}`), 108 | followUpQuestions: z 109 | .array(z.string()) 110 | .describe( 111 | `List of follow-up questions to research the topic further, max of ${numFollowUpQuestions}`, 112 | ), 113 | }), 114 | }); 115 | log(`Created ${res.object.learnings.length} learnings`, res.object.learnings); 116 | 117 | return res.object; 118 | } 119 | 120 | export async function writeFinalReport({ 121 | prompt, 122 | learnings, 123 | visitedUrls, 124 | }: { 125 | prompt: string; 126 | learnings: string[]; 127 | visitedUrls: string[]; 128 | }) { 129 | const learningsString = learnings 130 | .map(learning => `\n${learning}\n`) 131 | .join('\n'); 132 | 133 | const res = await generateObject({ 134 | model: getModel(), 135 | system: systemPrompt(), 136 | prompt: trimPrompt( 137 | `Given the following prompt from the user, write a final report on the topic using the learnings from research. Make it as as detailed as possible, aim for 3 or more pages, include ALL the learnings from research:\n\n${prompt}\n\nHere are all the learnings from previous research:\n\n\n${learningsString}\n`, 138 | ), 139 | schema: z.object({ 140 | reportMarkdown: z.string().describe('Final report on the topic in Markdown'), 141 | }), 142 | }); 143 | 144 | // Append the visited URLs section to the report 145 | const urlsSection = `\n\n## Sources\n\n${visitedUrls.map(url => `- ${url}`).join('\n')}`; 146 | return res.object.reportMarkdown + urlsSection; 147 | } 148 | 149 | export async function writeFinalAnswer({ 150 | prompt, 151 | learnings, 152 | }: { 153 | prompt: string; 154 | learnings: string[]; 155 | }) { 156 | const learningsString = learnings 157 | .map(learning => `\n${learning}\n`) 158 | .join('\n'); 159 | 160 | const res = await generateObject({ 161 | model: getModel(), 162 | system: systemPrompt(), 163 | prompt: trimPrompt( 164 | `Given the following prompt from the user, write a final answer on the topic using the learnings from research. Follow the format specified in the prompt. Do not yap or babble or include any other text than the answer besides the format specified in the prompt. Keep the answer as concise as possible - usually it should be just a few words or maximum a sentence. Try to follow the format specified in the prompt (for example, if the prompt is using Latex, the answer should be in Latex. If the prompt gives multiple answer choices, the answer should be one of the choices).\n\n${prompt}\n\nHere are all the learnings from research on the topic that you can use to help answer the prompt:\n\n\n${learningsString}\n`, 165 | ), 166 | schema: z.object({ 167 | exactAnswer: z 168 | .string() 169 | .describe('The final answer, make it short and concise, just the answer, no other text'), 170 | }), 171 | }); 172 | 173 | return res.object.exactAnswer; 174 | } 175 | 176 | export async function deepResearch({ 177 | query, 178 | breadth, 179 | depth, 180 | learnings = [], 181 | visitedUrls = [], 182 | onProgress, 183 | }: { 184 | query: string; 185 | breadth: number; 186 | depth: number; 187 | learnings?: string[]; 188 | visitedUrls?: string[]; 189 | onProgress?: (progress: ResearchProgress) => void; 190 | }): Promise { 191 | const progress: ResearchProgress = { 192 | currentDepth: depth, 193 | totalDepth: depth, 194 | currentBreadth: breadth, 195 | totalBreadth: breadth, 196 | totalQueries: 0, 197 | completedQueries: 0, 198 | }; 199 | 200 | const reportProgress = (update: Partial) => { 201 | Object.assign(progress, update); 202 | onProgress?.(progress); 203 | }; 204 | 205 | const serpQueries = await generateSerpQueries({ 206 | query, 207 | learnings, 208 | numQueries: breadth, 209 | }); 210 | 211 | reportProgress({ 212 | totalQueries: serpQueries.length, 213 | currentQuery: serpQueries[0]?.query, 214 | }); 215 | 216 | const limit = pLimit(ConcurrencyLimit); 217 | 218 | const results = await Promise.all( 219 | serpQueries.map(serpQuery => 220 | limit(async () => { 221 | try { 222 | const result = await firecrawl.search(serpQuery.query, { 223 | timeout: 15000, 224 | limit: 5, 225 | scrapeOptions: { formats: ['markdown'] }, 226 | }); 227 | 228 | // Collect URLs from this search 229 | const newUrls = compact(result.data.map(item => item.url)); 230 | const newBreadth = Math.ceil(breadth / 2); 231 | const newDepth = depth - 1; 232 | 233 | const newLearnings = await processSerpResult({ 234 | query: serpQuery.query, 235 | result, 236 | numFollowUpQuestions: newBreadth, 237 | }); 238 | const allLearnings = [...learnings, ...newLearnings.learnings]; 239 | const allUrls = [...visitedUrls, ...newUrls]; 240 | 241 | if (newDepth > 0) { 242 | log(`Researching deeper, breadth: ${newBreadth}, depth: ${newDepth}`); 243 | 244 | reportProgress({ 245 | currentDepth: newDepth, 246 | currentBreadth: newBreadth, 247 | completedQueries: progress.completedQueries + 1, 248 | currentQuery: serpQuery.query, 249 | }); 250 | 251 | const nextQuery = ` 252 | Previous research goal: ${serpQuery.researchGoal} 253 | Follow-up research directions: ${newLearnings.followUpQuestions.map(q => `\n${q}`).join('')} 254 | `.trim(); 255 | 256 | return deepResearch({ 257 | query: nextQuery, 258 | breadth: newBreadth, 259 | depth: newDepth, 260 | learnings: allLearnings, 261 | visitedUrls: allUrls, 262 | onProgress, 263 | }); 264 | } else { 265 | reportProgress({ 266 | currentDepth: 0, 267 | completedQueries: progress.completedQueries + 1, 268 | currentQuery: serpQuery.query, 269 | }); 270 | return { 271 | learnings: allLearnings, 272 | visitedUrls: allUrls, 273 | }; 274 | } 275 | } catch (e: any) { 276 | if (e.message && e.message.includes('Timeout')) { 277 | log(`Timeout error running query: ${serpQuery.query}: `, e); 278 | } else { 279 | log(`Error running query: ${serpQuery.query}: `, e); 280 | } 281 | return { 282 | learnings: [], 283 | visitedUrls: [], 284 | }; 285 | } 286 | }), 287 | ), 288 | ); 289 | 290 | return { 291 | learnings: [...new Set(results.flatMap(r => r.learnings))], 292 | visitedUrls: [...new Set(results.flatMap(r => r.visitedUrls))], 293 | }; 294 | } 295 | -------------------------------------------------------------------------------- /src/feedback.ts: -------------------------------------------------------------------------------- 1 | import { generateObject } from 'ai'; 2 | import { z } from 'zod'; 3 | 4 | import { getModel } from './ai/providers'; 5 | import { systemPrompt } from './prompt'; 6 | 7 | export async function generateFeedback({ 8 | query, 9 | numQuestions = 3, 10 | }: { 11 | query: string; 12 | numQuestions?: number; 13 | }) { 14 | const userFeedback = await generateObject({ 15 | model: getModel(), 16 | system: systemPrompt(), 17 | prompt: `Given the following query from the user, ask some follow up questions to clarify the research direction. Return a maximum of ${numQuestions} questions, but feel free to return less if the original query is clear: ${query}`, 18 | schema: z.object({ 19 | questions: z 20 | .array(z.string()) 21 | .describe( 22 | `Follow up questions to clarify the research direction, max of ${numQuestions}`, 23 | ), 24 | }), 25 | }); 26 | 27 | return userFeedback.object.questions.slice(0, numQuestions); 28 | } 29 | -------------------------------------------------------------------------------- /src/prompt.ts: -------------------------------------------------------------------------------- 1 | export const systemPrompt = () => { 2 | const now = new Date().toISOString(); 3 | return `You are an expert researcher. Today is ${now}. Follow these instructions when responding: 4 | - You may be asked to research subjects that is after your knowledge cutoff, assume the user is right when presented with news. 5 | - The user is a highly experienced analyst, no need to simplify it, be as detailed as possible and make sure your response is correct. 6 | - Be highly organized. 7 | - Suggest solutions that I didn't think about. 8 | - Be proactive and anticipate my needs. 9 | - Treat me as an expert in all subject matter. 10 | - Mistakes erode my trust, so be accurate and thorough. 11 | - Provide detailed explanations, I'm comfortable with lots of detail. 12 | - Value good arguments over authorities, the source is irrelevant. 13 | - Consider new technologies and contrarian ideas, not just the conventional wisdom. 14 | - You may use high levels of speculation or prediction, just flag it for me.`; 15 | }; 16 | -------------------------------------------------------------------------------- /src/run.ts: -------------------------------------------------------------------------------- 1 | import * as fs from 'fs/promises'; 2 | import * as readline from 'readline'; 3 | 4 | import { getModel } from './ai/providers'; 5 | import { 6 | deepResearch, 7 | writeFinalAnswer, 8 | writeFinalReport, 9 | } from './deep-research'; 10 | import { generateFeedback } from './feedback'; 11 | 12 | // Helper function for consistent logging 13 | function log(...args: any[]) { 14 | console.log(...args); 15 | } 16 | 17 | const rl = readline.createInterface({ 18 | input: process.stdin, 19 | output: process.stdout, 20 | }); 21 | 22 | // Helper function to get user input 23 | function askQuestion(query: string): Promise { 24 | return new Promise(resolve => { 25 | rl.question(query, answer => { 26 | resolve(answer); 27 | }); 28 | }); 29 | } 30 | 31 | // run the agent 32 | async function run() { 33 | console.log('Using model: ', getModel().modelId); 34 | 35 | // Get initial query 36 | const initialQuery = await askQuestion('What would you like to research? '); 37 | 38 | // Get breath and depth parameters 39 | const breadth = 40 | parseInt( 41 | await askQuestion( 42 | 'Enter research breadth (recommended 2-10, default 4): ', 43 | ), 44 | 10, 45 | ) || 4; 46 | const depth = 47 | parseInt( 48 | await askQuestion('Enter research depth (recommended 1-5, default 2): '), 49 | 10, 50 | ) || 2; 51 | const isReport = 52 | (await askQuestion( 53 | 'Do you want to generate a long report or a specific answer? (report/answer, default report): ', 54 | )) !== 'answer'; 55 | 56 | let combinedQuery = initialQuery; 57 | if (isReport) { 58 | log(`Creating research plan...`); 59 | 60 | // Generate follow-up questions 61 | const followUpQuestions = await generateFeedback({ 62 | query: initialQuery, 63 | }); 64 | 65 | log( 66 | '\nTo better understand your research needs, please answer these follow-up questions:', 67 | ); 68 | 69 | // Collect answers to follow-up questions 70 | const answers: string[] = []; 71 | for (const question of followUpQuestions) { 72 | const answer = await askQuestion(`\n${question}\nYour answer: `); 73 | answers.push(answer); 74 | } 75 | 76 | // Combine all information for deep research 77 | combinedQuery = ` 78 | Initial Query: ${initialQuery} 79 | Follow-up Questions and Answers: 80 | ${followUpQuestions.map((q: string, i: number) => `Q: ${q}\nA: ${answers[i]}`).join('\n')} 81 | `; 82 | } 83 | 84 | log('\nStarting research...\n'); 85 | 86 | const { learnings, visitedUrls } = await deepResearch({ 87 | query: combinedQuery, 88 | breadth, 89 | depth, 90 | }); 91 | 92 | log(`\n\nLearnings:\n\n${learnings.join('\n')}`); 93 | log(`\n\nVisited URLs (${visitedUrls.length}):\n\n${visitedUrls.join('\n')}`); 94 | log('Writing final report...'); 95 | 96 | if (isReport) { 97 | const report = await writeFinalReport({ 98 | prompt: combinedQuery, 99 | learnings, 100 | visitedUrls, 101 | }); 102 | 103 | await fs.writeFile('report.md', report, 'utf-8'); 104 | console.log(`\n\nFinal Report:\n\n${report}`); 105 | console.log('\nReport has been saved to report.md'); 106 | } else { 107 | const answer = await writeFinalAnswer({ 108 | prompt: combinedQuery, 109 | learnings, 110 | }); 111 | 112 | await fs.writeFile('answer.md', answer, 'utf-8'); 113 | console.log(`\n\nFinal Answer:\n\n${answer}`); 114 | console.log('\nAnswer has been saved to answer.md'); 115 | } 116 | 117 | rl.close(); 118 | } 119 | 120 | run().catch(console.error); 121 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/tsconfig", 3 | "compilerOptions": { 4 | "declaration": true, 5 | "declarationMap": true, 6 | "esModuleInterop": true, 7 | "incremental": false, 8 | "isolatedModules": true, 9 | "lib": ["es2022", "DOM", "DOM.Iterable"], 10 | "module": "ESNext", 11 | "moduleDetection": "force", 12 | "moduleResolution": "Bundler", 13 | "noUncheckedIndexedAccess": true, 14 | "resolveJsonModule": true, 15 | "skipLibCheck": true, 16 | "strict": true, 17 | "target": "ES2022" 18 | } 19 | } 20 | --------------------------------------------------------------------------------