├── .gitignore ├── README-en.md ├── README-ja.md ├── README.md ├── bun.lock ├── example.ts ├── imgs ├── test-01.png └── test-02.png ├── index.ts ├── mcp-langchain-ts-client └── index.ts ├── package-lock.json ├── package.json ├── src └── index.ts ├── test.js └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies (bun install) 2 | node_modules 3 | 4 | # output 5 | out 6 | dist 7 | *.tgz 8 | 9 | # code coverage 10 | coverage 11 | *.lcov 12 | 13 | # logs 14 | logs 15 | _.log 16 | report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json 17 | 18 | # dotenv environment variable files 19 | .env 20 | .env.development.local 21 | .env.test.local 22 | .env.production.local 23 | .env.local 24 | 25 | # caches 26 | .eslintcache 27 | .cache 28 | *.tsbuildinfo 29 | 30 | # IntelliJ based IDEs 31 | .idea 32 | 33 | # Finder (MacOS) folder config 34 | .DS_Store 35 | -------------------------------------------------------------------------------- /README-en.md: -------------------------------------------------------------------------------- 1 | # Bilibili MCP 2 | 3 | [![English](https://img.shields.io/badge/English-Click-yellow)](README-en.md) 4 | [![中文文档](https://img.shields.io/badge/中文文档-点击查看-orange)](README.md) 5 | [![日本語](https://img.shields.io/badge/日本語-クリック-青)](README-ja.md) 6 | 7 | ## Introduction 8 | This is a Bilibili video search server based on the Model Context Protocol (MCP). The server provides a simple API interface that allows users to search for video content on Bilibili. It includes LangChain usage examples and test scripts. 9 | 10 | ## Acknowledgements 11 | - LangChain example code referenced from [mcp-langchain-ts-client](https://github.com/isaacwasserman/mcp-langchain-ts-client) 12 | 13 | ## Features 14 | - Bilibili video search 15 | - Support for paginated queries 16 | - Returns video information (title, author, view count, duration, etc.) 17 | - Standardized interface based on the MCP protocol 18 | 19 | ## System Requirements 20 | - Node.js >= 20.12.0 21 | 22 | ## npm package 23 | Thanks to [HQHC](https://github.com/HQHC)for publishing the npm package 24 | ```json 25 | { 26 | "mcpServers": { 27 | "bilibili-search": { 28 | "command": "npx", 29 | "args": ["bilibili-mcp"], 30 | "description": "Bilibili Video Search MCP service, enabling AI applications to search Bilibili video content." 31 | } 32 | } 33 | } 34 | ``` 35 | 36 | ## Quick Start 37 | > If you want to run the LangChain example, please configure the LLM model first by modifying the .\example.ts file. 38 | ```javascript 39 | const llm = new ChatOpenAI({ 40 | modelName: "gpt-4o-mini", 41 | temperature: 0, 42 | openAIApiKey: "your_api_key", // Replace with your model's API key 43 | configuration: { 44 | baseURL: "https://www.api.com/v1", // Replace with your model's API address 45 | }, 46 | }); 47 | 48 | bun: 49 | 50 | ```bash 51 | bun i 52 | bun index.ts 53 | # Test script 54 | bun test.js 55 | # MCP Inspector 56 | bun run inspector 57 | # Run LangChain example 58 | bun build:bun 59 | bun example.ts 60 | ``` 61 | 62 | npm: 63 | 64 | ```bash 65 | npm i 66 | npm run start 67 | # Test script 68 | npm run test 69 | # MCP Inspector 70 | npm run inspector 71 | # Run LangChain example 72 | npm run build 73 | node dist/example.js 74 | ``` 75 | 76 | ## SCREENSHOTS 77 | ![](./imgs/test-01.png) 78 | ![](./imgs/test-02.png) 79 | -------------------------------------------------------------------------------- /README-ja.md: -------------------------------------------------------------------------------- 1 | # Bilibili MCP 2 | 3 | [![English](https://img.shields.io/badge/English-Click-yellow)](README-en.md) 4 | [![中文文档](https://img.shields.io/badge/中文文档-点击查看-orange)](README.md) 5 | [![日本語](https://img.shields.io/badge/日本語-クリック-青)](README-ja.md) 6 | 7 | ## 概要 8 | これは Model Context Protocol (MCP) に基づいた Bilibili 動画検索サーバーです。このサーバーはシンプルな API インターフェースを提供し、ユーザーが Bilibili の動画コンテンツを検索できるようにします。LangChain の使用例とテストスクリプトが含まれています。 9 | 10 | ## 謝辞 11 | - LangChain のサンプルコードは [mcp-langchain-ts-client](https://github.com/isaacwasserman/mcp-langchain-ts-client)を参考にしています 12 | 13 | ## 特徴 14 | - Bilibili 動画検索 15 | - ページネーションクエリのサポート 16 | - 動画情報の返却(タイトル、作者、再生回数、動画の長さなど) 17 | - MCP プロトコルに基づく標準化されたインターフェース 18 | 19 | ## システム要件 20 | - Node.js >= 20.12.0 21 | 22 | ## npm package 23 | [HQHC](https://github.com/HQHC)が公開したnpmパッケージに感謝 24 | ```json 25 | { 26 | "mcpServers": { 27 | "bilibili-search": { 28 | "command": "npx", 29 | "args": ["bilibili-mcp"], 30 | "description": "Bilibili動画検索用MCPサービス。AIアプリケーションでBilibiliの動画コンテンツを検索できます。" 31 | } 32 | } 33 | } 34 | ``` 35 | 36 | ## クイックスタート 37 | > LangChain の例を実行する場合は、まず LLM モデルを設定し、.\example.ts ファイルを修正してください。 38 | ```javascript 39 | const llm = new ChatOpenAI({ 40 | modelName: "gpt-4o-mini", 41 | temperature: 0, 42 | openAIApiKey: "your_api_key", // あなたのモデルの API キーに置き換えてください 43 | configuration: { 44 | baseURL: "https://www.api.com/v1", // あなたのモデルの API アドレスに置き換えてください 45 | }, 46 | }); 47 | ``` 48 | 49 | bun: 50 | 51 | ```bash 52 | bun i 53 | bun index.ts 54 | # テストスクリプト 55 | bun test.js 56 | # MCP Inspector 57 | bun run inspector 58 | # LangChain の例を実行 59 | bun build:bun 60 | bun example.ts 61 | ``` 62 | 63 | npm: 64 | 65 | ```bash 66 | npm i 67 | npm run start 68 | # テストスクリプト 69 | npm run test 70 | # MCP Inspector 71 | npm run inspector 72 | # LangChain の例を実行 73 | npm run build 74 | node dist/example.js 75 | ``` 76 | 77 | ## スクリーンショット 78 | ![](./imgs/test-01.png) 79 | ![](./imgs/test-02.png) 80 | 81 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bilibili MCP 2 | 3 | [![English](https://img.shields.io/badge/English-Click-yellow)](README-en.md) 4 | [![中文文档](https://img.shields.io/badge/中文文档-点击查看-orange)](README.md) 5 | [![日本語](https://img.shields.io/badge/日本語-クリック-青)](README-ja.md) 6 | 7 | ## 简介 8 | 这是一个基于 Model Context Protocol (MCP) 的 B站视频搜索服务器。该服务器提供了简单的 API 接口,允许用户搜索 B站 的视频内容。提供LangChain调用示例、测试脚本。 9 | 10 | ## 鸣谢 11 | - LangChain 示例代码参考自 [mcp-langchain-ts-client](https://github.com/isaacwasserman/mcp-langchain-ts-client) 12 | 13 | ## 功能特点 14 | - B站视频搜索 15 | - 支持分页查询 16 | - 返回视频信息(标题、作者、播放量、时长等) 17 | - 基于 MCP 协议的标准化接口 18 | 19 | ## 系统要求 20 | - Node.js >= 20.12.0 21 | 22 | ## npm package 23 | 感谢[HQHC](https://github.com/HQHC)发布的npm包 24 | ```json 25 | { 26 | "mcpServers": { 27 | "bilibili-search": { 28 | "command": "npx", 29 | "args": ["bilibili-mcp"], 30 | "description": "B站视频搜索 MCP 服务,可以在AI应用中搜索B站视频内容。" 31 | } 32 | } 33 | } 34 | ``` 35 | 36 | ## 快速开始 37 | > 如果要运行langchain例子,请先配置llm模型,修改.\example.ts文件。 38 | ```javascript 39 | const llm = new ChatOpenAI({ 40 | modelName: "gpt-4o-mini", 41 | temperature: 0, 42 | openAIApiKey: "your_api_key", // 替换成你模型的密钥 43 | configuration: { 44 | baseURL: "https://www.api.com/v1", // 替换成你模型的API地址 45 | }, 46 | }); 47 | ``` 48 | 49 | bun: 50 | 51 | ```bash 52 | bun i 53 | bun index.ts 54 | # 测试脚本 55 | bun test.js 56 | # MCP Inspector 57 | bun run inspector 58 | # 运行langchain例子 59 | bun build:bun 60 | bun example.ts 61 | ``` 62 | 63 | npm: 64 | 65 | ```bash 66 | npm i 67 | npm run start 68 | # 测试脚本 69 | npm run test 70 | # MCP Inspector 71 | npm run inspector 72 | # 运行langchain例子 73 | npm run build 74 | node dist/example.js 75 | ``` 76 | 77 | ## 截图 78 | ![](./imgs/test-01.png) 79 | ![](./imgs/test-02.png) 80 | 81 | -------------------------------------------------------------------------------- /bun.lock: -------------------------------------------------------------------------------- 1 | { 2 | "lockfileVersion": 1, 3 | "workspaces": { 4 | "": { 5 | "name": "bilibili-mcp", 6 | "dependencies": { 7 | "@langchain/core": "^0.3.43", 8 | "@langchain/langgraph": "^0.2.57", 9 | "@langchain/openai": "^0.4.9", 10 | "@modelcontextprotocol/sdk": "^1.7.0", 11 | "axios": "^1.8.4", 12 | "langchain": "^0.3.19", 13 | "tough-cookie": "^5.1.2", 14 | }, 15 | "devDependencies": { 16 | "@types/tough-cookie": "^4.0.5", 17 | "ts-node": "^10.9.2", 18 | "typescript": "^5.8.2", 19 | }, 20 | "peerDependencies": { 21 | "typescript": "^5", 22 | }, 23 | }, 24 | }, 25 | "packages": { 26 | "@cfworker/json-schema": ["@cfworker/json-schema@4.1.1", "https://registry.npmmirror.com/@cfworker/json-schema/-/json-schema-4.1.1.tgz", {}, "sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og=="], 27 | 28 | "@cspotcode/source-map-support": ["@cspotcode/source-map-support@0.8.1", "https://registry.npmmirror.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", { "dependencies": { "@jridgewell/trace-mapping": "0.3.9" } }, "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw=="], 29 | 30 | "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="], 31 | 32 | "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.0", "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", {}, "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="], 33 | 34 | "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.9", "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", { "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" } }, "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ=="], 35 | 36 | "@langchain/core": ["@langchain/core@0.3.43", "https://registry.npmmirror.com/@langchain/core/-/core-0.3.43.tgz", { "dependencies": { "@cfworker/json-schema": "^4.0.2", "ansi-styles": "^5.0.0", "camelcase": "6", "decamelize": "1.2.0", "js-tiktoken": "^1.0.12", "langsmith": ">=0.2.8 <0.4.0", "mustache": "^4.2.0", "p-queue": "^6.6.2", "p-retry": "4", "uuid": "^10.0.0", "zod": "^3.22.4", "zod-to-json-schema": "^3.22.3" } }, "sha512-DwiSUwmZqcuOn7j8SFdeOH1nvaUqG7q8qn3LhobdQYEg5PmjLgd2yLr2KzuT/YWMBfjkOR+Di5K6HEdFmouTxg=="], 37 | 38 | "@langchain/langgraph": ["@langchain/langgraph@0.2.57", "https://registry.npmmirror.com/@langchain/langgraph/-/langgraph-0.2.57.tgz", { "dependencies": { "@langchain/langgraph-checkpoint": "~0.0.16", "@langchain/langgraph-sdk": "~0.0.32", "uuid": "^10.0.0", "zod": "^3.23.8" }, "peerDependencies": { "@langchain/core": ">=0.2.36 <0.3.0 || >=0.3.40 < 0.4.0" } }, "sha512-SolqE+HzwbxEEiqAVgHwE11r9lzjZAnAfEe7MMBUE77TUCaWK3GC0VvDfJMNas53ndlc0KRutmpEa0ODWdhcRQ=="], 39 | 40 | "@langchain/langgraph-checkpoint": ["@langchain/langgraph-checkpoint@0.0.16", "https://registry.npmmirror.com/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-0.0.16.tgz", { "dependencies": { "uuid": "^10.0.0" }, "peerDependencies": { "@langchain/core": ">=0.2.31 <0.4.0" } }, "sha512-B50l7w9o9353drHsdsD01vhQrCJw0eqvYeXid7oKeoj1Yye+qY90r97xuhiflaYCZHM5VEo2oaizs8oknerZsQ=="], 41 | 42 | "@langchain/langgraph-sdk": ["@langchain/langgraph-sdk@0.0.60", "https://registry.npmmirror.com/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.60.tgz", { "dependencies": { "@types/json-schema": "^7.0.15", "p-queue": "^6.6.2", "p-retry": "4", "uuid": "^9.0.0" }, "peerDependencies": { "@langchain/core": ">=0.2.31 <0.4.0", "react": "^18 || ^19" }, "optionalPeers": ["@langchain/core", "react"] }, "sha512-7ndeAdw1afVY72HpKEGw7AyuDlD7U3e4jxaJflxA+PXaFPiE0d/hQYvlPT84YmvqNzJN605hv7YcrOju2573bQ=="], 43 | 44 | "@langchain/openai": ["@langchain/openai@0.4.9", "https://registry.npmmirror.com/@langchain/openai/-/openai-0.4.9.tgz", { "dependencies": { "js-tiktoken": "^1.0.12", "openai": "^4.87.3", "zod": "^3.22.4", "zod-to-json-schema": "^3.22.3" }, "peerDependencies": { "@langchain/core": ">=0.3.39 <0.4.0" } }, "sha512-NAsaionRHNdqaMjVLPkFCyjUDze+OqRHghA1Cn4fPoAafz+FXcl9c7LlEl9Xo0FH6/8yiCl7Rw2t780C/SBVxQ=="], 45 | 46 | "@langchain/textsplitters": ["@langchain/textsplitters@0.1.0", "https://registry.npmmirror.com/@langchain/textsplitters/-/textsplitters-0.1.0.tgz", { "dependencies": { "js-tiktoken": "^1.0.12" }, "peerDependencies": { "@langchain/core": ">=0.2.21 <0.4.0" } }, "sha512-djI4uw9rlkAb5iMhtLED+xJebDdAG935AdP4eRTB02R7OB/act55Bj9wsskhZsvuyQRpO4O1wQOp85s6T6GWmw=="], 47 | 48 | "@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.7.0", "https://registry.npmmirror.com/@modelcontextprotocol/sdk/-/sdk-1.7.0.tgz", { "dependencies": { "content-type": "^1.0.5", "cors": "^2.8.5", "eventsource": "^3.0.2", "express": "^5.0.1", "express-rate-limit": "^7.5.0", "pkce-challenge": "^4.1.0", "raw-body": "^3.0.0", "zod": "^3.23.8", "zod-to-json-schema": "^3.24.1" } }, "sha512-IYPe/FLpvF3IZrd/f5p5ffmWhMc3aEMuM2wGJASDqC2Ge7qatVCdbfPx3n/5xFeb19xN0j/911M2AaFuircsWA=="], 49 | 50 | "@tsconfig/node10": ["@tsconfig/node10@1.0.11", "https://registry.npmmirror.com/@tsconfig/node10/-/node10-1.0.11.tgz", {}, "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw=="], 51 | 52 | "@tsconfig/node12": ["@tsconfig/node12@1.0.11", "https://registry.npmmirror.com/@tsconfig/node12/-/node12-1.0.11.tgz", {}, "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag=="], 53 | 54 | "@tsconfig/node14": ["@tsconfig/node14@1.0.3", "https://registry.npmmirror.com/@tsconfig/node14/-/node14-1.0.3.tgz", {}, "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow=="], 55 | 56 | "@tsconfig/node16": ["@tsconfig/node16@1.0.4", "https://registry.npmmirror.com/@tsconfig/node16/-/node16-1.0.4.tgz", {}, "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA=="], 57 | 58 | "@types/json-schema": ["@types/json-schema@7.0.15", "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="], 59 | 60 | "@types/node": ["@types/node@22.13.12", "https://registry.npmmirror.com/@types/node/-/node-22.13.12.tgz", { "dependencies": { "undici-types": "~6.20.0" } }, "sha512-ixiWrCSRi33uqBMRuICcKECW7rtgY43TbsHDpM2XK7lXispd48opW+0IXrBVxv9NMhaz/Ue9kyj6r3NTVyXm8A=="], 61 | 62 | "@types/node-fetch": ["@types/node-fetch@2.6.12", "https://registry.npmmirror.com/@types/node-fetch/-/node-fetch-2.6.12.tgz", { "dependencies": { "@types/node": "*", "form-data": "^4.0.0" } }, "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA=="], 63 | 64 | "@types/retry": ["@types/retry@0.12.0", "https://registry.npmmirror.com/@types/retry/-/retry-0.12.0.tgz", {}, "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA=="], 65 | 66 | "@types/tough-cookie": ["@types/tough-cookie@4.0.5", "https://registry.npmmirror.com/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", {}, "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA=="], 67 | 68 | "@types/uuid": ["@types/uuid@10.0.0", "https://registry.npmmirror.com/@types/uuid/-/uuid-10.0.0.tgz", {}, "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ=="], 69 | 70 | "abort-controller": ["abort-controller@3.0.0", "https://registry.npmmirror.com/abort-controller/-/abort-controller-3.0.0.tgz", { "dependencies": { "event-target-shim": "^5.0.0" } }, "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg=="], 71 | 72 | "accepts": ["accepts@2.0.0", "https://registry.npmmirror.com/accepts/-/accepts-2.0.0.tgz", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="], 73 | 74 | "acorn": ["acorn@8.14.1", "https://registry.npmmirror.com/acorn/-/acorn-8.14.1.tgz", { "bin": { "acorn": "bin/acorn" } }, "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg=="], 75 | 76 | "acorn-walk": ["acorn-walk@8.3.4", "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.3.4.tgz", { "dependencies": { "acorn": "^8.11.0" } }, "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g=="], 77 | 78 | "agentkeepalive": ["agentkeepalive@4.6.0", "https://registry.npmmirror.com/agentkeepalive/-/agentkeepalive-4.6.0.tgz", { "dependencies": { "humanize-ms": "^1.2.1" } }, "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ=="], 79 | 80 | "ansi-styles": ["ansi-styles@5.2.0", "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-5.2.0.tgz", {}, "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA=="], 81 | 82 | "arg": ["arg@4.1.3", "https://registry.npmmirror.com/arg/-/arg-4.1.3.tgz", {}, "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA=="], 83 | 84 | "argparse": ["argparse@2.0.1", "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="], 85 | 86 | "asynckit": ["asynckit@0.4.0", "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", {}, "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="], 87 | 88 | "axios": ["axios@1.8.4", "https://registry.npmmirror.com/axios/-/axios-1.8.4.tgz", { "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } }, "sha512-eBSYY4Y68NNlHbHBMdeDmKNtDgXWhQsJcGqzO3iLUM0GraQFSS9cVgPX5I9b3lbdFKyYoAEGAZF1DwhTaljNAw=="], 89 | 90 | "base64-js": ["base64-js@1.5.1", "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="], 91 | 92 | "body-parser": ["body-parser@2.1.0", "https://registry.npmmirror.com/body-parser/-/body-parser-2.1.0.tgz", { "dependencies": { "bytes": "^3.1.2", "content-type": "^1.0.5", "debug": "^4.4.0", "http-errors": "^2.0.0", "iconv-lite": "^0.5.2", "on-finished": "^2.4.1", "qs": "^6.14.0", "raw-body": "^3.0.0", "type-is": "^2.0.0" } }, "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ=="], 93 | 94 | "bytes": ["bytes@3.1.2", "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="], 95 | 96 | "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="], 97 | 98 | "call-bound": ["call-bound@1.0.4", "https://registry.npmmirror.com/call-bound/-/call-bound-1.0.4.tgz", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="], 99 | 100 | "camelcase": ["camelcase@6.3.0", "https://registry.npmmirror.com/camelcase/-/camelcase-6.3.0.tgz", {}, "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA=="], 101 | 102 | "chalk": ["chalk@4.1.2", "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], 103 | 104 | "color-convert": ["color-convert@2.0.1", "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], 105 | 106 | "color-name": ["color-name@1.1.4", "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], 107 | 108 | "combined-stream": ["combined-stream@1.0.8", "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", { "dependencies": { "delayed-stream": "~1.0.0" } }, "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="], 109 | 110 | "console-table-printer": ["console-table-printer@2.12.1", "https://registry.npmmirror.com/console-table-printer/-/console-table-printer-2.12.1.tgz", { "dependencies": { "simple-wcswidth": "^1.0.1" } }, "sha512-wKGOQRRvdnd89pCeH96e2Fn4wkbenSP6LMHfjfyNLMbGuHEFbMqQNuxXqd0oXG9caIOQ1FTvc5Uijp9/4jujnQ=="], 111 | 112 | "content-disposition": ["content-disposition@1.0.0", "https://registry.npmmirror.com/content-disposition/-/content-disposition-1.0.0.tgz", { "dependencies": { "safe-buffer": "5.2.1" } }, "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg=="], 113 | 114 | "content-type": ["content-type@1.0.5", "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="], 115 | 116 | "cookie": ["cookie@0.7.1", "https://registry.npmmirror.com/cookie/-/cookie-0.7.1.tgz", {}, "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w=="], 117 | 118 | "cookie-signature": ["cookie-signature@1.2.2", "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.2.2.tgz", {}, "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg=="], 119 | 120 | "cors": ["cors@2.8.5", "https://registry.npmmirror.com/cors/-/cors-2.8.5.tgz", { "dependencies": { "object-assign": "^4", "vary": "^1" } }, "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g=="], 121 | 122 | "create-require": ["create-require@1.1.1", "https://registry.npmmirror.com/create-require/-/create-require-1.1.1.tgz", {}, "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ=="], 123 | 124 | "debug": ["debug@4.3.6", "https://registry.npmmirror.com/debug/-/debug-4.3.6.tgz", { "dependencies": { "ms": "2.1.2" } }, "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg=="], 125 | 126 | "decamelize": ["decamelize@1.2.0", "https://registry.npmmirror.com/decamelize/-/decamelize-1.2.0.tgz", {}, "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA=="], 127 | 128 | "delayed-stream": ["delayed-stream@1.0.0", "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", {}, "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="], 129 | 130 | "depd": ["depd@2.0.0", "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz", {}, "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="], 131 | 132 | "destroy": ["destroy@1.2.0", "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz", {}, "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg=="], 133 | 134 | "diff": ["diff@4.0.2", "https://registry.npmmirror.com/diff/-/diff-4.0.2.tgz", {}, "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A=="], 135 | 136 | "dunder-proto": ["dunder-proto@1.0.1", "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], 137 | 138 | "ee-first": ["ee-first@1.1.1", "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz", {}, "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="], 139 | 140 | "encodeurl": ["encodeurl@2.0.0", "https://registry.npmmirror.com/encodeurl/-/encodeurl-2.0.0.tgz", {}, "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg=="], 141 | 142 | "es-define-property": ["es-define-property@1.0.1", "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="], 143 | 144 | "es-errors": ["es-errors@1.3.0", "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="], 145 | 146 | "es-object-atoms": ["es-object-atoms@1.1.1", "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="], 147 | 148 | "es-set-tostringtag": ["es-set-tostringtag@2.1.0", "https://registry.npmmirror.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", { "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA=="], 149 | 150 | "escape-html": ["escape-html@1.0.3", "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz", {}, "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="], 151 | 152 | "etag": ["etag@1.8.1", "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="], 153 | 154 | "event-target-shim": ["event-target-shim@5.0.1", "https://registry.npmmirror.com/event-target-shim/-/event-target-shim-5.0.1.tgz", {}, "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="], 155 | 156 | "eventemitter3": ["eventemitter3@4.0.7", "https://registry.npmmirror.com/eventemitter3/-/eventemitter3-4.0.7.tgz", {}, "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="], 157 | 158 | "eventsource": ["eventsource@3.0.5", "https://registry.npmmirror.com/eventsource/-/eventsource-3.0.5.tgz", { "dependencies": { "eventsource-parser": "^3.0.0" } }, "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw=="], 159 | 160 | "eventsource-parser": ["eventsource-parser@3.0.0", "https://registry.npmmirror.com/eventsource-parser/-/eventsource-parser-3.0.0.tgz", {}, "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA=="], 161 | 162 | "express": ["express@5.0.1", "https://registry.npmmirror.com/express/-/express-5.0.1.tgz", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.0.1", "content-disposition": "^1.0.0", "content-type": "~1.0.4", "cookie": "0.7.1", "cookie-signature": "^1.2.1", "debug": "4.3.6", "depd": "2.0.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "finalhandler": "^2.0.0", "fresh": "2.0.0", "http-errors": "2.0.0", "merge-descriptors": "^2.0.0", "methods": "~1.1.2", "mime-types": "^3.0.0", "on-finished": "2.4.1", "once": "1.4.0", "parseurl": "~1.3.3", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", "router": "^2.0.0", "safe-buffer": "5.2.1", "send": "^1.1.0", "serve-static": "^2.1.0", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "^2.0.0", "utils-merge": "1.0.1", "vary": "~1.1.2" } }, "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ=="], 163 | 164 | "express-rate-limit": ["express-rate-limit@7.5.0", "https://registry.npmmirror.com/express-rate-limit/-/express-rate-limit-7.5.0.tgz", { "peerDependencies": { "express": "^4.11 || 5 || ^5.0.0-beta.1" } }, "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg=="], 165 | 166 | "finalhandler": ["finalhandler@2.1.0", "https://registry.npmmirror.com/finalhandler/-/finalhandler-2.1.0.tgz", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q=="], 167 | 168 | "follow-redirects": ["follow-redirects@1.15.9", "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.9.tgz", {}, "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ=="], 169 | 170 | "form-data": ["form-data@4.0.2", "https://registry.npmmirror.com/form-data/-/form-data-4.0.2.tgz", { "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "mime-types": "^2.1.12" } }, "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w=="], 171 | 172 | "form-data-encoder": ["form-data-encoder@1.7.2", "https://registry.npmmirror.com/form-data-encoder/-/form-data-encoder-1.7.2.tgz", {}, "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A=="], 173 | 174 | "formdata-node": ["formdata-node@4.4.1", "https://registry.npmmirror.com/formdata-node/-/formdata-node-4.4.1.tgz", { "dependencies": { "node-domexception": "1.0.0", "web-streams-polyfill": "4.0.0-beta.3" } }, "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ=="], 175 | 176 | "forwarded": ["forwarded@0.2.0", "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz", {}, "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="], 177 | 178 | "fresh": ["fresh@2.0.0", "https://registry.npmmirror.com/fresh/-/fresh-2.0.0.tgz", {}, "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A=="], 179 | 180 | "function-bind": ["function-bind@1.1.2", "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="], 181 | 182 | "get-intrinsic": ["get-intrinsic@1.3.0", "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="], 183 | 184 | "get-proto": ["get-proto@1.0.1", "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="], 185 | 186 | "gopd": ["gopd@1.2.0", "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="], 187 | 188 | "has-flag": ["has-flag@4.0.0", "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], 189 | 190 | "has-symbols": ["has-symbols@1.1.0", "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="], 191 | 192 | "has-tostringtag": ["has-tostringtag@1.0.2", "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz", { "dependencies": { "has-symbols": "^1.0.3" } }, "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw=="], 193 | 194 | "hasown": ["hasown@2.0.2", "https://registry.npmmirror.com/hasown/-/hasown-2.0.2.tgz", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="], 195 | 196 | "http-errors": ["http-errors@2.0.0", "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.0.tgz", { "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", "statuses": "2.0.1", "toidentifier": "1.0.1" } }, "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ=="], 197 | 198 | "humanize-ms": ["humanize-ms@1.2.1", "https://registry.npmmirror.com/humanize-ms/-/humanize-ms-1.2.1.tgz", { "dependencies": { "ms": "^2.0.0" } }, "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ=="], 199 | 200 | "iconv-lite": ["iconv-lite@0.6.3", "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="], 201 | 202 | "inherits": ["inherits@2.0.4", "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="], 203 | 204 | "ipaddr.js": ["ipaddr.js@1.9.1", "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="], 205 | 206 | "is-promise": ["is-promise@4.0.0", "https://registry.npmmirror.com/is-promise/-/is-promise-4.0.0.tgz", {}, "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="], 207 | 208 | "js-tiktoken": ["js-tiktoken@1.0.19", "https://registry.npmmirror.com/js-tiktoken/-/js-tiktoken-1.0.19.tgz", { "dependencies": { "base64-js": "^1.5.1" } }, "sha512-XC63YQeEcS47Y53gg950xiZ4IWmkfMe4p2V9OSaBt26q+p47WHn18izuXzSclCI73B7yGqtfRsT6jcZQI0y08g=="], 209 | 210 | "js-yaml": ["js-yaml@4.1.0", "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.1.0.tgz", { "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA=="], 211 | 212 | "jsonpointer": ["jsonpointer@5.0.1", "https://registry.npmmirror.com/jsonpointer/-/jsonpointer-5.0.1.tgz", {}, "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ=="], 213 | 214 | "langchain": ["langchain@0.3.19", "https://registry.npmmirror.com/langchain/-/langchain-0.3.19.tgz", { "dependencies": { "@langchain/openai": ">=0.1.0 <0.5.0", "@langchain/textsplitters": ">=0.0.0 <0.2.0", "js-tiktoken": "^1.0.12", "js-yaml": "^4.1.0", "jsonpointer": "^5.0.1", "langsmith": ">=0.2.8 <0.4.0", "openapi-types": "^12.1.3", "p-retry": "4", "uuid": "^10.0.0", "yaml": "^2.2.1", "zod": "^3.22.4", "zod-to-json-schema": "^3.22.3" }, "peerDependencies": { "@langchain/anthropic": "*", "@langchain/aws": "*", "@langchain/cerebras": "*", "@langchain/cohere": "*", "@langchain/core": ">=0.2.21 <0.4.0", "@langchain/deepseek": "*", "@langchain/google-genai": "*", "@langchain/google-vertexai": "*", "@langchain/google-vertexai-web": "*", "@langchain/groq": "*", "@langchain/mistralai": "*", "@langchain/ollama": "*", "@langchain/xai": "*", "axios": "*", "cheerio": "*", "handlebars": "^4.7.8", "peggy": "^3.0.2", "typeorm": "*" }, "optionalPeers": ["@langchain/anthropic", "@langchain/aws", "@langchain/cerebras", "@langchain/cohere", "@langchain/deepseek", "@langchain/google-genai", "@langchain/google-vertexai", "@langchain/google-vertexai-web", "@langchain/groq", "@langchain/mistralai", "@langchain/ollama", "@langchain/xai", "axios", "cheerio", "handlebars", "peggy", "typeorm"] }, "sha512-aGhoTvTBS5ulatA67RHbJ4bcV5zcYRYdm5IH+hpX99RYSFXG24XF3ghSjhYi6sxW+SUnEQ99fJhA5kroVpKNhw=="], 215 | 216 | "langsmith": ["langsmith@0.3.14", "https://registry.npmmirror.com/langsmith/-/langsmith-0.3.14.tgz", { "dependencies": { "@types/uuid": "^10.0.0", "chalk": "^4.1.2", "console-table-printer": "^2.12.1", "p-queue": "^6.6.2", "p-retry": "4", "semver": "^7.6.3", "uuid": "^10.0.0" }, "peerDependencies": { "openai": "*" }, "optionalPeers": ["openai"] }, "sha512-MzoxdRkFFV/6140vpP5V2e2fkTG6x/0zIjw77bsRwAXEMjPRTUyDazfXeSyrS5uJvbLgxAXc+MF1h6vPWe6SXQ=="], 217 | 218 | "make-error": ["make-error@1.3.6", "https://registry.npmmirror.com/make-error/-/make-error-1.3.6.tgz", {}, "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw=="], 219 | 220 | "math-intrinsics": ["math-intrinsics@1.1.0", "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], 221 | 222 | "media-typer": ["media-typer@1.1.0", "https://registry.npmmirror.com/media-typer/-/media-typer-1.1.0.tgz", {}, "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw=="], 223 | 224 | "merge-descriptors": ["merge-descriptors@2.0.0", "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-2.0.0.tgz", {}, "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g=="], 225 | 226 | "methods": ["methods@1.1.2", "https://registry.npmmirror.com/methods/-/methods-1.1.2.tgz", {}, "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w=="], 227 | 228 | "mime-db": ["mime-db@1.54.0", "https://registry.npmmirror.com/mime-db/-/mime-db-1.54.0.tgz", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="], 229 | 230 | "mime-types": ["mime-types@3.0.0", "https://registry.npmmirror.com/mime-types/-/mime-types-3.0.0.tgz", { "dependencies": { "mime-db": "^1.53.0" } }, "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w=="], 231 | 232 | "ms": ["ms@2.1.2", "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", {}, "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="], 233 | 234 | "mustache": ["mustache@4.2.0", "https://registry.npmmirror.com/mustache/-/mustache-4.2.0.tgz", { "bin": { "mustache": "bin/mustache" } }, "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ=="], 235 | 236 | "negotiator": ["negotiator@1.0.0", "https://registry.npmmirror.com/negotiator/-/negotiator-1.0.0.tgz", {}, "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg=="], 237 | 238 | "node-domexception": ["node-domexception@1.0.0", "https://registry.npmmirror.com/node-domexception/-/node-domexception-1.0.0.tgz", {}, "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="], 239 | 240 | "node-fetch": ["node-fetch@2.7.0", "https://registry.npmmirror.com/node-fetch/-/node-fetch-2.7.0.tgz", { "dependencies": { "whatwg-url": "^5.0.0" }, "peerDependencies": { "encoding": "^0.1.0" }, "optionalPeers": ["encoding"] }, "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A=="], 241 | 242 | "object-assign": ["object-assign@4.1.1", "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="], 243 | 244 | "object-inspect": ["object-inspect@1.13.4", "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.4.tgz", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="], 245 | 246 | "on-finished": ["on-finished@2.4.1", "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz", { "dependencies": { "ee-first": "1.1.1" } }, "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg=="], 247 | 248 | "once": ["once@1.4.0", "https://registry.npmmirror.com/once/-/once-1.4.0.tgz", { "dependencies": { "wrappy": "1" } }, "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="], 249 | 250 | "openai": ["openai@4.89.0", "https://registry.npmmirror.com/openai/-/openai-4.89.0.tgz", { "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", "abort-controller": "^3.0.0", "agentkeepalive": "^4.2.1", "form-data-encoder": "1.7.2", "formdata-node": "^4.3.2", "node-fetch": "^2.6.7" }, "peerDependencies": { "ws": "^8.18.0", "zod": "^3.23.8" }, "optionalPeers": ["ws", "zod"], "bin": { "openai": "bin/cli" } }, "sha512-XNI0q2l8/Os6jmojxaID5EhyQjxZgzR2gWcpEjYWK5hGKwE7AcifxEY7UNwFDDHJQXqeiosQ0CJwQN+rvnwdjA=="], 251 | 252 | "openapi-types": ["openapi-types@12.1.3", "https://registry.npmmirror.com/openapi-types/-/openapi-types-12.1.3.tgz", {}, "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw=="], 253 | 254 | "p-finally": ["p-finally@1.0.0", "https://registry.npmmirror.com/p-finally/-/p-finally-1.0.0.tgz", {}, "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow=="], 255 | 256 | "p-queue": ["p-queue@6.6.2", "https://registry.npmmirror.com/p-queue/-/p-queue-6.6.2.tgz", { "dependencies": { "eventemitter3": "^4.0.4", "p-timeout": "^3.2.0" } }, "sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ=="], 257 | 258 | "p-retry": ["p-retry@4.6.2", "https://registry.npmmirror.com/p-retry/-/p-retry-4.6.2.tgz", { "dependencies": { "@types/retry": "0.12.0", "retry": "^0.13.1" } }, "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ=="], 259 | 260 | "p-timeout": ["p-timeout@3.2.0", "https://registry.npmmirror.com/p-timeout/-/p-timeout-3.2.0.tgz", { "dependencies": { "p-finally": "^1.0.0" } }, "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg=="], 261 | 262 | "parseurl": ["parseurl@1.3.3", "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz", {}, "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="], 263 | 264 | "path-to-regexp": ["path-to-regexp@8.2.0", "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-8.2.0.tgz", {}, "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ=="], 265 | 266 | "pkce-challenge": ["pkce-challenge@4.1.0", "https://registry.npmmirror.com/pkce-challenge/-/pkce-challenge-4.1.0.tgz", {}, "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ=="], 267 | 268 | "proxy-addr": ["proxy-addr@2.0.7", "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz", { "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" } }, "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg=="], 269 | 270 | "proxy-from-env": ["proxy-from-env@1.1.0", "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz", {}, "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="], 271 | 272 | "qs": ["qs@6.13.0", "https://registry.npmmirror.com/qs/-/qs-6.13.0.tgz", { "dependencies": { "side-channel": "^1.0.6" } }, "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg=="], 273 | 274 | "range-parser": ["range-parser@1.2.1", "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="], 275 | 276 | "raw-body": ["raw-body@3.0.0", "https://registry.npmmirror.com/raw-body/-/raw-body-3.0.0.tgz", { "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.6.3", "unpipe": "1.0.0" } }, "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g=="], 277 | 278 | "retry": ["retry@0.13.1", "https://registry.npmmirror.com/retry/-/retry-0.13.1.tgz", {}, "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg=="], 279 | 280 | "router": ["router@2.1.0", "https://registry.npmmirror.com/router/-/router-2.1.0.tgz", { "dependencies": { "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" } }, "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA=="], 281 | 282 | "safe-buffer": ["safe-buffer@5.2.1", "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], 283 | 284 | "safer-buffer": ["safer-buffer@2.1.2", "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="], 285 | 286 | "semver": ["semver@7.7.1", "https://registry.npmmirror.com/semver/-/semver-7.7.1.tgz", { "bin": { "semver": "bin/semver.js" } }, "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA=="], 287 | 288 | "send": ["send@1.1.0", "https://registry.npmmirror.com/send/-/send-1.1.0.tgz", { "dependencies": { "debug": "^4.3.5", "destroy": "^1.2.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^0.5.2", "http-errors": "^2.0.0", "mime-types": "^2.1.35", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.1" } }, "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA=="], 289 | 290 | "serve-static": ["serve-static@2.1.0", "https://registry.npmmirror.com/serve-static/-/serve-static-2.1.0.tgz", { "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "parseurl": "^1.3.3", "send": "^1.0.0" } }, "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA=="], 291 | 292 | "setprototypeof": ["setprototypeof@1.2.0", "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="], 293 | 294 | "side-channel": ["side-channel@1.1.0", "https://registry.npmmirror.com/side-channel/-/side-channel-1.1.0.tgz", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw=="], 295 | 296 | "side-channel-list": ["side-channel-list@1.0.0", "https://registry.npmmirror.com/side-channel-list/-/side-channel-list-1.0.0.tgz", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3" } }, "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA=="], 297 | 298 | "side-channel-map": ["side-channel-map@1.0.1", "https://registry.npmmirror.com/side-channel-map/-/side-channel-map-1.0.1.tgz", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" } }, "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA=="], 299 | 300 | "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "https://registry.npmmirror.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="], 301 | 302 | "simple-wcswidth": ["simple-wcswidth@1.0.1", "https://registry.npmmirror.com/simple-wcswidth/-/simple-wcswidth-1.0.1.tgz", {}, "sha512-xMO/8eNREtaROt7tJvWJqHBDTMFN4eiQ5I4JRMuilwfnFcV5W9u7RUkueNkdw0jPqGMX36iCywelS5yilTuOxg=="], 303 | 304 | "statuses": ["statuses@2.0.1", "https://registry.npmmirror.com/statuses/-/statuses-2.0.1.tgz", {}, "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="], 305 | 306 | "supports-color": ["supports-color@7.2.0", "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="], 307 | 308 | "tldts": ["tldts@6.1.85", "https://registry.npmmirror.com/tldts/-/tldts-6.1.85.tgz", { "dependencies": { "tldts-core": "^6.1.85" }, "bin": { "tldts": "bin/cli.js" } }, "sha512-gBdZ1RjCSevRPFix/hpaUWeak2/RNUZB4/8frF1r5uYMHjFptkiT0JXIebWvgI/0ZHXvxaUDDJshiA0j6GdL3w=="], 309 | 310 | "tldts-core": ["tldts-core@6.1.85", "https://registry.npmmirror.com/tldts-core/-/tldts-core-6.1.85.tgz", {}, "sha512-DTjUVvxckL1fIoPSb3KE7ISNtkWSawZdpfxGxwiIrZoO6EbHVDXXUIlIuWympPaeS+BLGyggozX/HTMsRAdsoA=="], 311 | 312 | "toidentifier": ["toidentifier@1.0.1", "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz", {}, "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="], 313 | 314 | "tough-cookie": ["tough-cookie@5.1.2", "https://registry.npmmirror.com/tough-cookie/-/tough-cookie-5.1.2.tgz", { "dependencies": { "tldts": "^6.1.32" } }, "sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A=="], 315 | 316 | "tr46": ["tr46@0.0.3", "https://registry.npmmirror.com/tr46/-/tr46-0.0.3.tgz", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="], 317 | 318 | "ts-node": ["ts-node@10.9.2", "https://registry.npmmirror.com/ts-node/-/ts-node-10.9.2.tgz", { "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", "@tsconfig/node12": "^1.0.7", "@tsconfig/node14": "^1.0.0", "@tsconfig/node16": "^1.0.2", "acorn": "^8.4.1", "acorn-walk": "^8.1.1", "arg": "^4.1.0", "create-require": "^1.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", "v8-compile-cache-lib": "^3.0.1", "yn": "3.1.1" }, "peerDependencies": { "@swc/core": ">=1.2.50", "@swc/wasm": ">=1.2.50", "@types/node": "*", "typescript": ">=2.7" }, "optionalPeers": ["@swc/core", "@swc/wasm"], "bin": { "ts-node": "dist/bin.js", "ts-node-cwd": "dist/bin-cwd.js", "ts-node-esm": "dist/bin-esm.js", "ts-node-script": "dist/bin-script.js", "ts-node-transpile-only": "dist/bin-transpile.js", "ts-script": "dist/bin-script-deprecated.js" } }, "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ=="], 319 | 320 | "type-is": ["type-is@2.0.0", "https://registry.npmmirror.com/type-is/-/type-is-2.0.0.tgz", { "dependencies": { "content-type": "^1.0.5", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw=="], 321 | 322 | "typescript": ["typescript@5.8.2", "https://registry.npmmirror.com/typescript/-/typescript-5.8.2.tgz", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ=="], 323 | 324 | "undici-types": ["undici-types@6.20.0", "https://registry.npmmirror.com/undici-types/-/undici-types-6.20.0.tgz", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="], 325 | 326 | "unpipe": ["unpipe@1.0.0", "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz", {}, "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="], 327 | 328 | "utils-merge": ["utils-merge@1.0.1", "https://registry.npmmirror.com/utils-merge/-/utils-merge-1.0.1.tgz", {}, "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA=="], 329 | 330 | "uuid": ["uuid@10.0.0", "https://registry.npmmirror.com/uuid/-/uuid-10.0.0.tgz", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ=="], 331 | 332 | "v8-compile-cache-lib": ["v8-compile-cache-lib@3.0.1", "https://registry.npmmirror.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", {}, "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg=="], 333 | 334 | "vary": ["vary@1.1.2", "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="], 335 | 336 | "web-streams-polyfill": ["web-streams-polyfill@4.0.0-beta.3", "https://registry.npmmirror.com/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", {}, "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug=="], 337 | 338 | "webidl-conversions": ["webidl-conversions@3.0.1", "https://registry.npmmirror.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="], 339 | 340 | "whatwg-url": ["whatwg-url@5.0.0", "https://registry.npmmirror.com/whatwg-url/-/whatwg-url-5.0.0.tgz", { "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="], 341 | 342 | "wrappy": ["wrappy@1.0.2", "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="], 343 | 344 | "yaml": ["yaml@2.7.0", "https://registry.npmmirror.com/yaml/-/yaml-2.7.0.tgz", { "bin": { "yaml": "bin.mjs" } }, "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA=="], 345 | 346 | "yn": ["yn@3.1.1", "https://registry.npmmirror.com/yn/-/yn-3.1.1.tgz", {}, "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q=="], 347 | 348 | "zod": ["zod@3.24.2", "https://registry.npmmirror.com/zod/-/zod-3.24.2.tgz", {}, "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ=="], 349 | 350 | "zod-to-json-schema": ["zod-to-json-schema@3.24.5", "https://registry.npmmirror.com/zod-to-json-schema/-/zod-to-json-schema-3.24.5.tgz", { "peerDependencies": { "zod": "^3.24.1" } }, "sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g=="], 351 | 352 | "@langchain/langgraph-sdk/uuid": ["uuid@9.0.1", "https://registry.npmmirror.com/uuid/-/uuid-9.0.1.tgz", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA=="], 353 | 354 | "body-parser/debug": ["debug@4.4.0", "https://registry.npmmirror.com/debug/-/debug-4.4.0.tgz", { "dependencies": { "ms": "^2.1.3" } }, "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA=="], 355 | 356 | "body-parser/iconv-lite": ["iconv-lite@0.5.2", "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.5.2.tgz", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag=="], 357 | 358 | "body-parser/qs": ["qs@6.14.0", "https://registry.npmmirror.com/qs/-/qs-6.14.0.tgz", { "dependencies": { "side-channel": "^1.1.0" } }, "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w=="], 359 | 360 | "chalk/ansi-styles": ["ansi-styles@4.3.0", "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="], 361 | 362 | "finalhandler/debug": ["debug@4.4.0", "https://registry.npmmirror.com/debug/-/debug-4.4.0.tgz", { "dependencies": { "ms": "^2.1.3" } }, "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA=="], 363 | 364 | "form-data/mime-types": ["mime-types@2.1.35", "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], 365 | 366 | "humanize-ms/ms": ["ms@2.1.3", "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], 367 | 368 | "openai/@types/node": ["@types/node@18.19.83", "https://registry.npmmirror.com/@types/node/-/node-18.19.83.tgz", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-D69JeR5SfFS5H6FLbUaS0vE4r1dGhmMBbG4Ed6BNS4wkDK8GZjsdCShT5LCN59vOHEUHnFCY9J4aclXlIphMkA=="], 369 | 370 | "send/debug": ["debug@4.4.0", "https://registry.npmmirror.com/debug/-/debug-4.4.0.tgz", { "dependencies": { "ms": "^2.1.3" } }, "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA=="], 371 | 372 | "send/fresh": ["fresh@0.5.2", "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz", {}, "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="], 373 | 374 | "send/mime-types": ["mime-types@2.1.35", "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], 375 | 376 | "send/ms": ["ms@2.1.3", "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], 377 | 378 | "body-parser/debug/ms": ["ms@2.1.3", "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], 379 | 380 | "finalhandler/debug/ms": ["ms@2.1.3", "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], 381 | 382 | "form-data/mime-types/mime-db": ["mime-db@1.52.0", "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], 383 | 384 | "openai/@types/node/undici-types": ["undici-types@5.26.5", "https://registry.npmmirror.com/undici-types/-/undici-types-5.26.5.tgz", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="], 385 | 386 | "send/mime-types/mime-db": ["mime-db@1.52.0", "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], 387 | } 388 | } 389 | -------------------------------------------------------------------------------- /example.ts: -------------------------------------------------------------------------------- 1 | import { MCPToolkit } from "./mcp-langchain-ts-client/index.js"; 2 | import { createReactAgent } from "@langchain/langgraph/prebuilt"; 3 | import { ChatOpenAI } from "@langchain/openai"; 4 | import { MemorySaver } from "@langchain/langgraph"; 5 | import { HumanMessage } from "@langchain/core/messages"; 6 | 7 | import path from "path"; 8 | 9 | const isBun = typeof process.versions.bun !== 'undefined'; 10 | const serverParams = { 11 | command: isBun ? "bun" : "node", 12 | args: [path.join(process.cwd(), "dist", "index.js")] 13 | }; 14 | 15 | const memory = new MemorySaver(); 16 | 17 | // Initialize the toolkit 18 | const toolkit = new MCPToolkit(serverParams); 19 | await toolkit.initialize(); 20 | 21 | // Extract LangChain.js compatible tools 22 | const tools = toolkit.tools; 23 | console.log('可用工具列表:'); 24 | tools.forEach(tool => { 25 | console.log(`- 工具名称: ${tool.name}`); 26 | console.log(` 描述: ${tool.description}`); 27 | console.log('---'); 28 | }); 29 | 30 | const llm = new ChatOpenAI({ 31 | modelName: "gpt-4o-mini", 32 | temperature: 0, 33 | openAIApiKey: "your_api_key", // 替换成你模型的密钥 34 | configuration: { 35 | baseURL: "https://www.api.com/v1", // 替换成你模型的API地址 36 | }, 37 | }); 38 | 39 | const agent = createReactAgent({ 40 | llm, 41 | tools, 42 | checkpointSaver: memory, 43 | }); 44 | 45 | const result = await agent.invoke( 46 | { messages: [new HumanMessage("搜索b站'蓝色战衣',输出作者排行榜")] }, 47 | { configurable: { thread_id: "42" } } 48 | ); 49 | console.log("Agent response:", result.messages[result.messages.length - 1].content); 50 | -------------------------------------------------------------------------------- /imgs/test-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/34892002/bilibili-mcp-js/9cc1941f93a1a0623a8cf8c9249bbdc0479870fa/imgs/test-01.png -------------------------------------------------------------------------------- /imgs/test-02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/34892002/bilibili-mcp-js/9cc1941f93a1a0623a8cf8c9249bbdc0479870fa/imgs/test-02.png -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import { Server } from "@modelcontextprotocol/sdk/server/index.js"; 3 | import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; 4 | import { 5 | CallToolRequestSchema, 6 | ErrorCode, 7 | ListToolsRequestSchema, 8 | McpError, 9 | } from "@modelcontextprotocol/sdk/types.js"; 10 | import { searchBilibili } from "./src/index.js"; 11 | 12 | 13 | interface BilibiliSearchResult { 14 | title: string; 15 | author: string; 16 | play_count: number; 17 | duration: string; 18 | publish_date: string; 19 | url: string; 20 | bvid: string; 21 | upic: string; 22 | pic: string; 23 | } 24 | 25 | const isValidSearchArgs = ( 26 | args: any 27 | ): args is { keyword: string; page?: number; limit?: number } => 28 | typeof args === "object" && 29 | args !== null && 30 | typeof args.keyword === "string" && 31 | (args.page === undefined || typeof args.page === "number") && 32 | (args.limit === undefined || typeof args.limit === "number"); 33 | 34 | class BilibiliSearchServer { 35 | private server: Server; 36 | 37 | constructor() { 38 | this.server = new Server( 39 | { 40 | name: "bilibili-search", 41 | version: "0.1.0", 42 | }, 43 | { 44 | capabilities: { 45 | tools: {}, 46 | }, 47 | } 48 | ); 49 | 50 | this.setupToolHandlers(); 51 | 52 | this.server.onerror = (error) => console.error("[MCP Error]", error); 53 | process.on("SIGINT", async () => { 54 | await this.server.close(); 55 | process.exit(0); 56 | }); 57 | } 58 | 59 | private setupToolHandlers() { 60 | this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ 61 | tools: [ 62 | { 63 | name: "bilibili-search", 64 | description: "搜索B站视频内容", 65 | inputSchema: { 66 | type: "object", 67 | properties: { 68 | keyword: { 69 | type: "string", 70 | description: "搜索关键词", 71 | }, 72 | page: { 73 | type: "number", 74 | description: "页码(默认:1)", 75 | minimum: 1, 76 | }, 77 | limit: { 78 | type: "number", 79 | description: "返回结果数量(默认:10)", 80 | minimum: 1, 81 | maximum: 20, 82 | }, 83 | }, 84 | required: ["keyword"], 85 | }, 86 | }, 87 | ], 88 | })); 89 | 90 | this.server.setRequestHandler(CallToolRequestSchema, async (request) => { 91 | if (request.params.name !== "bilibili-search") { 92 | throw new McpError( 93 | ErrorCode.MethodNotFound, 94 | `未知工具: ${request.params.name}` 95 | ); 96 | } 97 | 98 | if (!isValidSearchArgs(request.params.arguments)) { 99 | throw new McpError(ErrorCode.InvalidParams, "无效的搜索参数"); 100 | } 101 | 102 | const keyword = request.params.arguments.keyword; 103 | const page = request.params.arguments.page || 1; 104 | const limit = Math.min(request.params.arguments.limit || 10, 20); 105 | 106 | try { 107 | const results = await this.performSearch(keyword, page, limit); 108 | return { 109 | content: [ 110 | { 111 | type: "text", 112 | text: JSON.stringify(results, null, 2), 113 | }, 114 | ], 115 | }; 116 | } catch (error) { 117 | return { 118 | content: [ 119 | { 120 | type: "text", 121 | text: `搜索错误: ${ 122 | error instanceof Error ? error.message : String(error) 123 | }`, 124 | }, 125 | ], 126 | isError: true, 127 | }; 128 | } 129 | }); 130 | } 131 | 132 | private async performSearch( 133 | keyword: string, 134 | page: number, 135 | limit: number 136 | ): Promise { 137 | try { 138 | // 调用src/index.ts中的searchBilibili函数获取搜索结果 139 | const searchResults = await searchBilibili(keyword, page, limit); 140 | 141 | // 处理视频项目 142 | const results: BilibiliSearchResult[] = searchResults.map((video: any) => ({ 143 | title: this.cleanTitle(video.title), 144 | author: video.author || "", 145 | play_count: parseInt(video.play) || 0, 146 | duration: video.duration || "", 147 | publish_date: this.formatDate(video.pubdate), 148 | url: video.arcurl || `https://www.bilibili.com/video/${video.bvid}`, 149 | bvid: video.bvid || "", 150 | upic: video.upic || "", 151 | pic: video.pic || "", 152 | tag: video.tag || "", 153 | description: video.description || "", 154 | })); 155 | 156 | return results; 157 | } catch (error) { 158 | console.error("搜索B站视频时出错:", error); 159 | throw new Error(`搜索B站视频失败: ${error instanceof Error ? error.message : String(error)}`); 160 | } 161 | } 162 | 163 | private cleanTitle(title: string): string { 164 | if (!title) return ""; 165 | return title.replace(/(.*?)<\/em>/g, "$1"); 166 | } 167 | 168 | private formatDate(timestamp: number): string { 169 | if (!timestamp) return ""; 170 | const date = new Date(timestamp * 1000); 171 | return date.toISOString().split("T")[0]; 172 | } 173 | 174 | async run() { 175 | const transport = new StdioServerTransport(); 176 | await this.server.connect(transport); 177 | console.error("Bilibili Search MCP server running on stdio"); 178 | } 179 | } 180 | 181 | const server = new BilibiliSearchServer(); 182 | server.run().catch(console.error); 183 | -------------------------------------------------------------------------------- /mcp-langchain-ts-client/index.ts: -------------------------------------------------------------------------------- 1 | import { 2 | type CallToolRequest, 3 | CallToolResultSchema, 4 | type ListToolsResult, 5 | ListToolsResultSchema, 6 | } from "@modelcontextprotocol/sdk/types.js"; 7 | import { 8 | StdioClientTransport, 9 | type StdioServerParameters, 10 | } from "@modelcontextprotocol/sdk/client/stdio.js"; 11 | import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js"; 12 | import { Client } from "@modelcontextprotocol/sdk/client/index.js"; 13 | import { BaseToolkit, tool, Tool } from "@langchain/core/tools"; 14 | import { z } from "zod"; 15 | 16 | export class MCPToolkit extends BaseToolkit { 17 | tools: Tool[] = []; 18 | _tools: ListToolsResult | null = null; 19 | model_config: any; 20 | transport: StdioClientTransport | null = null; 21 | client: Client | null = null; 22 | constructor(serverParams: StdioServerParameters) { 23 | super(); 24 | // this.transport = new SSEClientTransport( 25 | // new URL("http://192.168.16.211:3000/sse"), 26 | // ); 27 | this.transport = new StdioClientTransport(serverParams); 28 | } 29 | async initialize() { 30 | if (this._tools === null) { 31 | this.client = new Client( 32 | { 33 | name: "langchain-js-client", 34 | version: "1.0.0", 35 | }, 36 | { 37 | capabilities: {}, 38 | } 39 | ); 40 | if (this.transport === null) { 41 | throw new Error("Transport is not initialized"); 42 | } 43 | await this.client.connect(this.transport); 44 | console.log("Connected to server"); 45 | this._tools = await this.client.request( 46 | { method: "tools/list" }, 47 | ListToolsResultSchema 48 | ); 49 | 50 | this.tools = await this.get_tools(); 51 | } 52 | } 53 | 54 | async get_tools(): Promise { 55 | if (this._tools === null || this.client === null) { 56 | throw new Error("Must initialize the toolkit first"); 57 | } 58 | const toolsPromises = this._tools.tools.map(async (tool: any) => { 59 | if (this.client === null) { 60 | throw new Error("Client is not initialized"); 61 | } 62 | return await MCPTool({ 63 | client: this.client, 64 | name: tool.name, 65 | description: tool.description || "", 66 | argsSchema: createSchemaModel(tool.inputSchema), 67 | }); 68 | }); 69 | return Promise.all(toolsPromises); 70 | } 71 | } 72 | 73 | export async function MCPTool({ 74 | client, 75 | name, 76 | description, 77 | argsSchema, 78 | }: { 79 | client: Client; 80 | name: string; 81 | description: string; 82 | argsSchema: any; 83 | }): Promise { 84 | return tool( 85 | async (input): Promise => { 86 | const req: CallToolRequest = { 87 | method: "tools/call", 88 | params: { name: name, arguments: input }, 89 | }; 90 | const res = await client.request(req, CallToolResultSchema); 91 | const content = res.content; 92 | const contentString = JSON.stringify(content); 93 | return contentString; 94 | }, 95 | { 96 | name: name, 97 | description: description, 98 | schema: argsSchema, 99 | } 100 | ); 101 | } 102 | 103 | function createSchemaModel( 104 | inputSchema: { 105 | type: "object"; 106 | properties?: 107 | | import("zod").objectOutputType< 108 | {}, 109 | import("zod").ZodTypeAny, 110 | "passthrough" 111 | > 112 | | undefined; 113 | } & { [k: string]: unknown } 114 | ): any { 115 | if (inputSchema.type !== "object" || !inputSchema.properties) { 116 | throw new Error("Invalid schema type or missing properties"); 117 | } 118 | 119 | const schemaProperties = Object.entries(inputSchema.properties).reduce( 120 | (acc, [key, value]) => { 121 | acc[key] = z.any(); // You can customize this to map specific types 122 | return acc; 123 | }, 124 | {} as Record 125 | ); 126 | 127 | return z.object(schemaProperties); 128 | } 129 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bilibili-mcp-js", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "name": "bilibili-mcp-js", 8 | "dependencies": { 9 | "@langchain/core": "^0.3.43", 10 | "@langchain/langgraph": "^0.2.57", 11 | "@langchain/openai": "^0.4.9", 12 | "@modelcontextprotocol/sdk": "^1.7.0", 13 | "axios": "^1.8.4", 14 | "langchain": "^0.3.19", 15 | "tough-cookie": "^5.1.2", 16 | "ts-node": "^10.9.2" 17 | }, 18 | "devDependencies": { 19 | "@types/tough-cookie": "^4.0.5", 20 | "typescript": "^5.8.2" 21 | }, 22 | "engines": { 23 | "node": ">=20.12.0" 24 | }, 25 | "peerDependencies": { 26 | "typescript": "^5" 27 | } 28 | }, 29 | "node_modules/@cfworker/json-schema": { 30 | "version": "4.1.1", 31 | "license": "MIT" 32 | }, 33 | "node_modules/@cspotcode/source-map-support": { 34 | "version": "0.8.1", 35 | "license": "MIT", 36 | "dependencies": { 37 | "@jridgewell/trace-mapping": "0.3.9" 38 | }, 39 | "engines": { 40 | "node": ">=12" 41 | } 42 | }, 43 | "node_modules/@jridgewell/resolve-uri": { 44 | "version": "3.1.2", 45 | "license": "MIT", 46 | "engines": { 47 | "node": ">=6.0.0" 48 | } 49 | }, 50 | "node_modules/@jridgewell/sourcemap-codec": { 51 | "version": "1.5.0", 52 | "license": "MIT" 53 | }, 54 | "node_modules/@jridgewell/trace-mapping": { 55 | "version": "0.3.9", 56 | "license": "MIT", 57 | "dependencies": { 58 | "@jridgewell/resolve-uri": "^3.0.3", 59 | "@jridgewell/sourcemap-codec": "^1.4.10" 60 | } 61 | }, 62 | "node_modules/@langchain/core": { 63 | "version": "0.3.43", 64 | "license": "MIT", 65 | "dependencies": { 66 | "@cfworker/json-schema": "^4.0.2", 67 | "ansi-styles": "^5.0.0", 68 | "camelcase": "6", 69 | "decamelize": "1.2.0", 70 | "js-tiktoken": "^1.0.12", 71 | "langsmith": ">=0.2.8 <0.4.0", 72 | "mustache": "^4.2.0", 73 | "p-queue": "^6.6.2", 74 | "p-retry": "4", 75 | "uuid": "^10.0.0", 76 | "zod": "^3.22.4", 77 | "zod-to-json-schema": "^3.22.3" 78 | }, 79 | "engines": { 80 | "node": ">=18" 81 | } 82 | }, 83 | "node_modules/@langchain/langgraph": { 84 | "version": "0.2.57", 85 | "license": "MIT", 86 | "dependencies": { 87 | "@langchain/langgraph-checkpoint": "~0.0.16", 88 | "@langchain/langgraph-sdk": "~0.0.32", 89 | "uuid": "^10.0.0", 90 | "zod": "^3.23.8" 91 | }, 92 | "engines": { 93 | "node": ">=18" 94 | }, 95 | "peerDependencies": { 96 | "@langchain/core": ">=0.2.36 <0.3.0 || >=0.3.40 < 0.4.0" 97 | } 98 | }, 99 | "node_modules/@langchain/langgraph-checkpoint": { 100 | "version": "0.0.16", 101 | "license": "MIT", 102 | "dependencies": { 103 | "uuid": "^10.0.0" 104 | }, 105 | "engines": { 106 | "node": ">=18" 107 | }, 108 | "peerDependencies": { 109 | "@langchain/core": ">=0.2.31 <0.4.0" 110 | } 111 | }, 112 | "node_modules/@langchain/langgraph-sdk": { 113 | "version": "0.0.60", 114 | "license": "MIT", 115 | "dependencies": { 116 | "@types/json-schema": "^7.0.15", 117 | "p-queue": "^6.6.2", 118 | "p-retry": "4", 119 | "uuid": "^9.0.0" 120 | }, 121 | "peerDependencies": { 122 | "@langchain/core": ">=0.2.31 <0.4.0", 123 | "react": "^18 || ^19" 124 | }, 125 | "peerDependenciesMeta": { 126 | "@langchain/core": { 127 | "optional": true 128 | }, 129 | "react": { 130 | "optional": true 131 | } 132 | } 133 | }, 134 | "node_modules/@langchain/langgraph-sdk/node_modules/uuid": { 135 | "version": "9.0.1", 136 | "funding": [ 137 | "https://github.com/sponsors/broofa", 138 | "https://github.com/sponsors/ctavan" 139 | ], 140 | "license": "MIT", 141 | "bin": { 142 | "uuid": "dist/bin/uuid" 143 | } 144 | }, 145 | "node_modules/@langchain/openai": { 146 | "version": "0.4.9", 147 | "license": "MIT", 148 | "dependencies": { 149 | "js-tiktoken": "^1.0.12", 150 | "openai": "^4.87.3", 151 | "zod": "^3.22.4", 152 | "zod-to-json-schema": "^3.22.3" 153 | }, 154 | "engines": { 155 | "node": ">=18" 156 | }, 157 | "peerDependencies": { 158 | "@langchain/core": ">=0.3.39 <0.4.0" 159 | } 160 | }, 161 | "node_modules/@langchain/textsplitters": { 162 | "version": "0.1.0", 163 | "license": "MIT", 164 | "dependencies": { 165 | "js-tiktoken": "^1.0.12" 166 | }, 167 | "engines": { 168 | "node": ">=18" 169 | }, 170 | "peerDependencies": { 171 | "@langchain/core": ">=0.2.21 <0.4.0" 172 | } 173 | }, 174 | "node_modules/@modelcontextprotocol/sdk": { 175 | "version": "1.7.0", 176 | "license": "MIT", 177 | "dependencies": { 178 | "content-type": "^1.0.5", 179 | "cors": "^2.8.5", 180 | "eventsource": "^3.0.2", 181 | "express": "^5.0.1", 182 | "express-rate-limit": "^7.5.0", 183 | "pkce-challenge": "^4.1.0", 184 | "raw-body": "^3.0.0", 185 | "zod": "^3.23.8", 186 | "zod-to-json-schema": "^3.24.1" 187 | }, 188 | "engines": { 189 | "node": ">=18" 190 | } 191 | }, 192 | "node_modules/@modelcontextprotocol/sdk/node_modules/express": { 193 | "version": "5.0.1", 194 | "license": "MIT", 195 | "dependencies": { 196 | "accepts": "^2.0.0", 197 | "body-parser": "^2.0.1", 198 | "content-disposition": "^1.0.0", 199 | "content-type": "~1.0.4", 200 | "cookie": "0.7.1", 201 | "cookie-signature": "^1.2.1", 202 | "debug": "4.3.6", 203 | "depd": "2.0.0", 204 | "encodeurl": "~2.0.0", 205 | "escape-html": "~1.0.3", 206 | "etag": "~1.8.1", 207 | "finalhandler": "^2.0.0", 208 | "fresh": "2.0.0", 209 | "http-errors": "2.0.0", 210 | "merge-descriptors": "^2.0.0", 211 | "methods": "~1.1.2", 212 | "mime-types": "^3.0.0", 213 | "on-finished": "2.4.1", 214 | "once": "1.4.0", 215 | "parseurl": "~1.3.3", 216 | "proxy-addr": "~2.0.7", 217 | "qs": "6.13.0", 218 | "range-parser": "~1.2.1", 219 | "router": "^2.0.0", 220 | "safe-buffer": "5.2.1", 221 | "send": "^1.1.0", 222 | "serve-static": "^2.1.0", 223 | "setprototypeof": "1.2.0", 224 | "statuses": "2.0.1", 225 | "type-is": "^2.0.0", 226 | "utils-merge": "1.0.1", 227 | "vary": "~1.1.2" 228 | }, 229 | "engines": { 230 | "node": ">= 18" 231 | } 232 | }, 233 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/accepts": { 234 | "version": "2.0.0", 235 | "license": "MIT", 236 | "dependencies": { 237 | "mime-types": "^3.0.0", 238 | "negotiator": "^1.0.0" 239 | }, 240 | "engines": { 241 | "node": ">= 0.6" 242 | } 243 | }, 244 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/accepts/node_modules/negotiator": { 245 | "version": "1.0.0", 246 | "license": "MIT", 247 | "engines": { 248 | "node": ">= 0.6" 249 | } 250 | }, 251 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/body-parser": { 252 | "version": "2.1.0", 253 | "license": "MIT", 254 | "dependencies": { 255 | "bytes": "^3.1.2", 256 | "content-type": "^1.0.5", 257 | "debug": "^4.4.0", 258 | "http-errors": "^2.0.0", 259 | "iconv-lite": "^0.5.2", 260 | "on-finished": "^2.4.1", 261 | "qs": "^6.14.0", 262 | "raw-body": "^3.0.0", 263 | "type-is": "^2.0.0" 264 | }, 265 | "engines": { 266 | "node": ">=18" 267 | } 268 | }, 269 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/body-parser/node_modules/debug": { 270 | "version": "4.4.0", 271 | "license": "MIT", 272 | "dependencies": { 273 | "ms": "^2.1.3" 274 | }, 275 | "engines": { 276 | "node": ">=6.0" 277 | }, 278 | "peerDependenciesMeta": { 279 | "supports-color": { 280 | "optional": true 281 | } 282 | } 283 | }, 284 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/body-parser/node_modules/debug/node_modules/ms": { 285 | "version": "2.1.3", 286 | "license": "MIT" 287 | }, 288 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/body-parser/node_modules/iconv-lite": { 289 | "version": "0.5.2", 290 | "license": "MIT", 291 | "dependencies": { 292 | "safer-buffer": ">= 2.1.2 < 3" 293 | }, 294 | "engines": { 295 | "node": ">=0.10.0" 296 | } 297 | }, 298 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/body-parser/node_modules/qs": { 299 | "version": "6.14.0", 300 | "license": "BSD-3-Clause", 301 | "dependencies": { 302 | "side-channel": "^1.1.0" 303 | }, 304 | "engines": { 305 | "node": ">=0.6" 306 | }, 307 | "funding": { 308 | "url": "https://github.com/sponsors/ljharb" 309 | } 310 | }, 311 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/content-disposition": { 312 | "version": "1.0.0", 313 | "license": "MIT", 314 | "dependencies": { 315 | "safe-buffer": "5.2.1" 316 | }, 317 | "engines": { 318 | "node": ">= 0.6" 319 | } 320 | }, 321 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/cookie-signature": { 322 | "version": "1.2.2", 323 | "license": "MIT", 324 | "engines": { 325 | "node": ">=6.6.0" 326 | } 327 | }, 328 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/debug": { 329 | "version": "4.3.6", 330 | "license": "MIT", 331 | "dependencies": { 332 | "ms": "2.1.2" 333 | }, 334 | "engines": { 335 | "node": ">=6.0" 336 | }, 337 | "peerDependenciesMeta": { 338 | "supports-color": { 339 | "optional": true 340 | } 341 | } 342 | }, 343 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/debug/node_modules/ms": { 344 | "version": "2.1.2", 345 | "license": "MIT" 346 | }, 347 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/finalhandler": { 348 | "version": "2.1.0", 349 | "license": "MIT", 350 | "dependencies": { 351 | "debug": "^4.4.0", 352 | "encodeurl": "^2.0.0", 353 | "escape-html": "^1.0.3", 354 | "on-finished": "^2.4.1", 355 | "parseurl": "^1.3.3", 356 | "statuses": "^2.0.1" 357 | }, 358 | "engines": { 359 | "node": ">= 0.8" 360 | } 361 | }, 362 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/finalhandler/node_modules/debug": { 363 | "version": "4.4.0", 364 | "license": "MIT", 365 | "dependencies": { 366 | "ms": "^2.1.3" 367 | }, 368 | "engines": { 369 | "node": ">=6.0" 370 | }, 371 | "peerDependenciesMeta": { 372 | "supports-color": { 373 | "optional": true 374 | } 375 | } 376 | }, 377 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/finalhandler/node_modules/debug/node_modules/ms": { 378 | "version": "2.1.3", 379 | "license": "MIT" 380 | }, 381 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/fresh": { 382 | "version": "2.0.0", 383 | "license": "MIT", 384 | "engines": { 385 | "node": ">= 0.8" 386 | } 387 | }, 388 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/merge-descriptors": { 389 | "version": "2.0.0", 390 | "license": "MIT", 391 | "engines": { 392 | "node": ">=18" 393 | }, 394 | "funding": { 395 | "url": "https://github.com/sponsors/sindresorhus" 396 | } 397 | }, 398 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/send": { 399 | "version": "1.1.0", 400 | "license": "MIT", 401 | "dependencies": { 402 | "debug": "^4.3.5", 403 | "destroy": "^1.2.0", 404 | "encodeurl": "^2.0.0", 405 | "escape-html": "^1.0.3", 406 | "etag": "^1.8.1", 407 | "fresh": "^0.5.2", 408 | "http-errors": "^2.0.0", 409 | "mime-types": "^2.1.35", 410 | "ms": "^2.1.3", 411 | "on-finished": "^2.4.1", 412 | "range-parser": "^1.2.1", 413 | "statuses": "^2.0.1" 414 | }, 415 | "engines": { 416 | "node": ">= 18" 417 | } 418 | }, 419 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/send/node_modules/debug": { 420 | "version": "4.4.0", 421 | "license": "MIT", 422 | "dependencies": { 423 | "ms": "^2.1.3" 424 | }, 425 | "engines": { 426 | "node": ">=6.0" 427 | }, 428 | "peerDependenciesMeta": { 429 | "supports-color": { 430 | "optional": true 431 | } 432 | } 433 | }, 434 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/send/node_modules/fresh": { 435 | "version": "0.5.2", 436 | "license": "MIT", 437 | "engines": { 438 | "node": ">= 0.6" 439 | } 440 | }, 441 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/send/node_modules/mime-types": { 442 | "version": "2.1.35", 443 | "license": "MIT", 444 | "dependencies": { 445 | "mime-db": "1.52.0" 446 | }, 447 | "engines": { 448 | "node": ">= 0.6" 449 | } 450 | }, 451 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/send/node_modules/mime-types/node_modules/mime-db": { 452 | "version": "1.52.0", 453 | "license": "MIT", 454 | "engines": { 455 | "node": ">= 0.6" 456 | } 457 | }, 458 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/send/node_modules/ms": { 459 | "version": "2.1.3", 460 | "license": "MIT" 461 | }, 462 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/serve-static": { 463 | "version": "2.1.0", 464 | "license": "MIT", 465 | "dependencies": { 466 | "encodeurl": "^2.0.0", 467 | "escape-html": "^1.0.3", 468 | "parseurl": "^1.3.3", 469 | "send": "^1.0.0" 470 | }, 471 | "engines": { 472 | "node": ">= 18" 473 | } 474 | }, 475 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/type-is": { 476 | "version": "2.0.0", 477 | "license": "MIT", 478 | "dependencies": { 479 | "content-type": "^1.0.5", 480 | "media-typer": "^1.1.0", 481 | "mime-types": "^3.0.0" 482 | }, 483 | "engines": { 484 | "node": ">= 0.6" 485 | } 486 | }, 487 | "node_modules/@modelcontextprotocol/sdk/node_modules/express/node_modules/type-is/node_modules/media-typer": { 488 | "version": "1.1.0", 489 | "license": "MIT", 490 | "engines": { 491 | "node": ">= 0.8" 492 | } 493 | }, 494 | "node_modules/@tsconfig/node10": { 495 | "version": "1.0.11", 496 | "license": "MIT" 497 | }, 498 | "node_modules/@tsconfig/node12": { 499 | "version": "1.0.11", 500 | "license": "MIT" 501 | }, 502 | "node_modules/@tsconfig/node14": { 503 | "version": "1.0.3", 504 | "license": "MIT" 505 | }, 506 | "node_modules/@tsconfig/node16": { 507 | "version": "1.0.4", 508 | "license": "MIT" 509 | }, 510 | "node_modules/@types/json-schema": { 511 | "version": "7.0.15", 512 | "license": "MIT" 513 | }, 514 | "node_modules/@types/node": { 515 | "version": "22.13.12", 516 | "license": "MIT", 517 | "dependencies": { 518 | "undici-types": "~6.20.0" 519 | } 520 | }, 521 | "node_modules/@types/node-fetch": { 522 | "version": "2.6.12", 523 | "license": "MIT", 524 | "dependencies": { 525 | "@types/node": "*", 526 | "form-data": "^4.0.0" 527 | } 528 | }, 529 | "node_modules/@types/retry": { 530 | "version": "0.12.0", 531 | "license": "MIT" 532 | }, 533 | "node_modules/@types/tough-cookie": { 534 | "version": "4.0.5", 535 | "dev": true, 536 | "license": "MIT" 537 | }, 538 | "node_modules/@types/uuid": { 539 | "version": "10.0.0", 540 | "license": "MIT" 541 | }, 542 | "node_modules/abort-controller": { 543 | "version": "3.0.0", 544 | "license": "MIT", 545 | "dependencies": { 546 | "event-target-shim": "^5.0.0" 547 | }, 548 | "engines": { 549 | "node": ">=6.5" 550 | } 551 | }, 552 | "node_modules/accepts": { 553 | "version": "2.0.0", 554 | "license": "MIT", 555 | "peer": true, 556 | "dependencies": { 557 | "mime-types": "^3.0.0", 558 | "negotiator": "^1.0.0" 559 | }, 560 | "engines": { 561 | "node": ">= 0.6" 562 | } 563 | }, 564 | "node_modules/acorn": { 565 | "version": "8.14.1", 566 | "license": "MIT", 567 | "bin": { 568 | "acorn": "bin/acorn" 569 | }, 570 | "engines": { 571 | "node": ">=0.4.0" 572 | } 573 | }, 574 | "node_modules/acorn-walk": { 575 | "version": "8.3.4", 576 | "license": "MIT", 577 | "dependencies": { 578 | "acorn": "^8.11.0" 579 | }, 580 | "engines": { 581 | "node": ">=0.4.0" 582 | } 583 | }, 584 | "node_modules/agentkeepalive": { 585 | "version": "4.6.0", 586 | "license": "MIT", 587 | "dependencies": { 588 | "humanize-ms": "^1.2.1" 589 | }, 590 | "engines": { 591 | "node": ">= 8.0.0" 592 | } 593 | }, 594 | "node_modules/ansi-styles": { 595 | "version": "5.2.0", 596 | "license": "MIT", 597 | "engines": { 598 | "node": ">=10" 599 | }, 600 | "funding": { 601 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 602 | } 603 | }, 604 | "node_modules/arg": { 605 | "version": "4.1.3", 606 | "license": "MIT" 607 | }, 608 | "node_modules/argparse": { 609 | "version": "2.0.1", 610 | "license": "Python-2.0" 611 | }, 612 | "node_modules/asynckit": { 613 | "version": "0.4.0", 614 | "license": "MIT" 615 | }, 616 | "node_modules/axios": { 617 | "version": "1.8.4", 618 | "license": "MIT", 619 | "dependencies": { 620 | "follow-redirects": "^1.15.6", 621 | "form-data": "^4.0.0", 622 | "proxy-from-env": "^1.1.0" 623 | } 624 | }, 625 | "node_modules/base64-js": { 626 | "version": "1.5.1", 627 | "funding": [ 628 | { 629 | "type": "github", 630 | "url": "https://github.com/sponsors/feross" 631 | }, 632 | { 633 | "type": "patreon", 634 | "url": "https://www.patreon.com/feross" 635 | }, 636 | { 637 | "type": "consulting", 638 | "url": "https://feross.org/support" 639 | } 640 | ], 641 | "license": "MIT" 642 | }, 643 | "node_modules/body-parser": { 644 | "version": "2.1.0", 645 | "license": "MIT", 646 | "peer": true, 647 | "dependencies": { 648 | "bytes": "^3.1.2", 649 | "content-type": "^1.0.5", 650 | "debug": "^4.4.0", 651 | "http-errors": "^2.0.0", 652 | "iconv-lite": "^0.5.2", 653 | "on-finished": "^2.4.1", 654 | "qs": "^6.14.0", 655 | "raw-body": "^3.0.0", 656 | "type-is": "^2.0.0" 657 | }, 658 | "engines": { 659 | "node": ">=18" 660 | } 661 | }, 662 | "node_modules/body-parser/node_modules/debug": { 663 | "version": "4.4.0", 664 | "license": "MIT", 665 | "peer": true, 666 | "dependencies": { 667 | "ms": "^2.1.3" 668 | }, 669 | "engines": { 670 | "node": ">=6.0" 671 | }, 672 | "peerDependenciesMeta": { 673 | "supports-color": { 674 | "optional": true 675 | } 676 | } 677 | }, 678 | "node_modules/body-parser/node_modules/debug/node_modules/ms": { 679 | "version": "2.1.3", 680 | "license": "MIT", 681 | "peer": true 682 | }, 683 | "node_modules/body-parser/node_modules/iconv-lite": { 684 | "version": "0.5.2", 685 | "license": "MIT", 686 | "peer": true, 687 | "dependencies": { 688 | "safer-buffer": ">= 2.1.2 < 3" 689 | }, 690 | "engines": { 691 | "node": ">=0.10.0" 692 | } 693 | }, 694 | "node_modules/body-parser/node_modules/qs": { 695 | "version": "6.14.0", 696 | "license": "BSD-3-Clause", 697 | "peer": true, 698 | "dependencies": { 699 | "side-channel": "^1.1.0" 700 | }, 701 | "engines": { 702 | "node": ">=0.6" 703 | }, 704 | "funding": { 705 | "url": "https://github.com/sponsors/ljharb" 706 | } 707 | }, 708 | "node_modules/bytes": { 709 | "version": "3.1.2", 710 | "license": "MIT", 711 | "engines": { 712 | "node": ">= 0.8" 713 | } 714 | }, 715 | "node_modules/call-bind-apply-helpers": { 716 | "version": "1.0.2", 717 | "license": "MIT", 718 | "dependencies": { 719 | "es-errors": "^1.3.0", 720 | "function-bind": "^1.1.2" 721 | }, 722 | "engines": { 723 | "node": ">= 0.4" 724 | } 725 | }, 726 | "node_modules/call-bound": { 727 | "version": "1.0.4", 728 | "license": "MIT", 729 | "dependencies": { 730 | "call-bind-apply-helpers": "^1.0.2", 731 | "get-intrinsic": "^1.3.0" 732 | }, 733 | "engines": { 734 | "node": ">= 0.4" 735 | }, 736 | "funding": { 737 | "url": "https://github.com/sponsors/ljharb" 738 | } 739 | }, 740 | "node_modules/camelcase": { 741 | "version": "6.3.0", 742 | "license": "MIT", 743 | "engines": { 744 | "node": ">=10" 745 | }, 746 | "funding": { 747 | "url": "https://github.com/sponsors/sindresorhus" 748 | } 749 | }, 750 | "node_modules/chalk": { 751 | "version": "4.1.2", 752 | "license": "MIT", 753 | "dependencies": { 754 | "ansi-styles": "^4.1.0", 755 | "supports-color": "^7.1.0" 756 | }, 757 | "engines": { 758 | "node": ">=10" 759 | }, 760 | "funding": { 761 | "url": "https://github.com/chalk/chalk?sponsor=1" 762 | } 763 | }, 764 | "node_modules/chalk/node_modules/ansi-styles": { 765 | "version": "4.3.0", 766 | "license": "MIT", 767 | "dependencies": { 768 | "color-convert": "^2.0.1" 769 | }, 770 | "engines": { 771 | "node": ">=8" 772 | }, 773 | "funding": { 774 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 775 | } 776 | }, 777 | "node_modules/color-convert": { 778 | "version": "2.0.1", 779 | "license": "MIT", 780 | "dependencies": { 781 | "color-name": "~1.1.4" 782 | }, 783 | "engines": { 784 | "node": ">=7.0.0" 785 | } 786 | }, 787 | "node_modules/color-name": { 788 | "version": "1.1.4", 789 | "license": "MIT" 790 | }, 791 | "node_modules/combined-stream": { 792 | "version": "1.0.8", 793 | "license": "MIT", 794 | "dependencies": { 795 | "delayed-stream": "~1.0.0" 796 | }, 797 | "engines": { 798 | "node": ">= 0.8" 799 | } 800 | }, 801 | "node_modules/console-table-printer": { 802 | "version": "2.12.1", 803 | "license": "MIT", 804 | "dependencies": { 805 | "simple-wcswidth": "^1.0.1" 806 | } 807 | }, 808 | "node_modules/content-disposition": { 809 | "version": "1.0.0", 810 | "license": "MIT", 811 | "peer": true, 812 | "dependencies": { 813 | "safe-buffer": "5.2.1" 814 | }, 815 | "engines": { 816 | "node": ">= 0.6" 817 | } 818 | }, 819 | "node_modules/content-type": { 820 | "version": "1.0.5", 821 | "license": "MIT", 822 | "engines": { 823 | "node": ">= 0.6" 824 | } 825 | }, 826 | "node_modules/cookie": { 827 | "version": "0.7.1", 828 | "license": "MIT", 829 | "engines": { 830 | "node": ">= 0.6" 831 | } 832 | }, 833 | "node_modules/cookie-signature": { 834 | "version": "1.2.2", 835 | "license": "MIT", 836 | "peer": true, 837 | "engines": { 838 | "node": ">=6.6.0" 839 | } 840 | }, 841 | "node_modules/cors": { 842 | "version": "2.8.5", 843 | "license": "MIT", 844 | "dependencies": { 845 | "object-assign": "^4", 846 | "vary": "^1" 847 | }, 848 | "engines": { 849 | "node": ">= 0.10" 850 | } 851 | }, 852 | "node_modules/create-require": { 853 | "version": "1.1.1", 854 | "license": "MIT" 855 | }, 856 | "node_modules/debug": { 857 | "version": "4.3.6", 858 | "license": "MIT", 859 | "peer": true, 860 | "dependencies": { 861 | "ms": "2.1.2" 862 | }, 863 | "engines": { 864 | "node": ">=6.0" 865 | }, 866 | "peerDependenciesMeta": { 867 | "supports-color": { 868 | "optional": true 869 | } 870 | } 871 | }, 872 | "node_modules/decamelize": { 873 | "version": "1.2.0", 874 | "license": "MIT", 875 | "engines": { 876 | "node": ">=0.10.0" 877 | } 878 | }, 879 | "node_modules/delayed-stream": { 880 | "version": "1.0.0", 881 | "license": "MIT", 882 | "engines": { 883 | "node": ">=0.4.0" 884 | } 885 | }, 886 | "node_modules/depd": { 887 | "version": "2.0.0", 888 | "license": "MIT", 889 | "engines": { 890 | "node": ">= 0.8" 891 | } 892 | }, 893 | "node_modules/destroy": { 894 | "version": "1.2.0", 895 | "license": "MIT", 896 | "engines": { 897 | "node": ">= 0.8", 898 | "npm": "1.2.8000 || >= 1.4.16" 899 | } 900 | }, 901 | "node_modules/diff": { 902 | "version": "4.0.2", 903 | "license": "BSD-3-Clause", 904 | "engines": { 905 | "node": ">=0.3.1" 906 | } 907 | }, 908 | "node_modules/dunder-proto": { 909 | "version": "1.0.1", 910 | "license": "MIT", 911 | "dependencies": { 912 | "call-bind-apply-helpers": "^1.0.1", 913 | "es-errors": "^1.3.0", 914 | "gopd": "^1.2.0" 915 | }, 916 | "engines": { 917 | "node": ">= 0.4" 918 | } 919 | }, 920 | "node_modules/ee-first": { 921 | "version": "1.1.1", 922 | "license": "MIT" 923 | }, 924 | "node_modules/encodeurl": { 925 | "version": "2.0.0", 926 | "license": "MIT", 927 | "engines": { 928 | "node": ">= 0.8" 929 | } 930 | }, 931 | "node_modules/es-define-property": { 932 | "version": "1.0.1", 933 | "license": "MIT", 934 | "engines": { 935 | "node": ">= 0.4" 936 | } 937 | }, 938 | "node_modules/es-errors": { 939 | "version": "1.3.0", 940 | "license": "MIT", 941 | "engines": { 942 | "node": ">= 0.4" 943 | } 944 | }, 945 | "node_modules/es-object-atoms": { 946 | "version": "1.1.1", 947 | "license": "MIT", 948 | "dependencies": { 949 | "es-errors": "^1.3.0" 950 | }, 951 | "engines": { 952 | "node": ">= 0.4" 953 | } 954 | }, 955 | "node_modules/es-set-tostringtag": { 956 | "version": "2.1.0", 957 | "license": "MIT", 958 | "dependencies": { 959 | "es-errors": "^1.3.0", 960 | "get-intrinsic": "^1.2.6", 961 | "has-tostringtag": "^1.0.2", 962 | "hasown": "^2.0.2" 963 | }, 964 | "engines": { 965 | "node": ">= 0.4" 966 | } 967 | }, 968 | "node_modules/escape-html": { 969 | "version": "1.0.3", 970 | "license": "MIT" 971 | }, 972 | "node_modules/etag": { 973 | "version": "1.8.1", 974 | "license": "MIT", 975 | "engines": { 976 | "node": ">= 0.6" 977 | } 978 | }, 979 | "node_modules/event-target-shim": { 980 | "version": "5.0.1", 981 | "license": "MIT", 982 | "engines": { 983 | "node": ">=6" 984 | } 985 | }, 986 | "node_modules/eventemitter3": { 987 | "version": "4.0.7", 988 | "license": "MIT" 989 | }, 990 | "node_modules/eventsource": { 991 | "version": "3.0.5", 992 | "license": "MIT", 993 | "dependencies": { 994 | "eventsource-parser": "^3.0.0" 995 | }, 996 | "engines": { 997 | "node": ">=18.0.0" 998 | } 999 | }, 1000 | "node_modules/eventsource-parser": { 1001 | "version": "3.0.0", 1002 | "license": "MIT", 1003 | "engines": { 1004 | "node": ">=18.0.0" 1005 | } 1006 | }, 1007 | "node_modules/express": { 1008 | "version": "5.0.1", 1009 | "license": "MIT", 1010 | "peer": true, 1011 | "dependencies": { 1012 | "accepts": "^2.0.0", 1013 | "body-parser": "^2.0.1", 1014 | "content-disposition": "^1.0.0", 1015 | "content-type": "~1.0.4", 1016 | "cookie": "0.7.1", 1017 | "cookie-signature": "^1.2.1", 1018 | "debug": "4.3.6", 1019 | "depd": "2.0.0", 1020 | "encodeurl": "~2.0.0", 1021 | "escape-html": "~1.0.3", 1022 | "etag": "~1.8.1", 1023 | "finalhandler": "^2.0.0", 1024 | "fresh": "2.0.0", 1025 | "http-errors": "2.0.0", 1026 | "merge-descriptors": "^2.0.0", 1027 | "methods": "~1.1.2", 1028 | "mime-types": "^3.0.0", 1029 | "on-finished": "2.4.1", 1030 | "once": "1.4.0", 1031 | "parseurl": "~1.3.3", 1032 | "proxy-addr": "~2.0.7", 1033 | "qs": "6.13.0", 1034 | "range-parser": "~1.2.1", 1035 | "router": "^2.0.0", 1036 | "safe-buffer": "5.2.1", 1037 | "send": "^1.1.0", 1038 | "serve-static": "^2.1.0", 1039 | "setprototypeof": "1.2.0", 1040 | "statuses": "2.0.1", 1041 | "type-is": "^2.0.0", 1042 | "utils-merge": "1.0.1", 1043 | "vary": "~1.1.2" 1044 | }, 1045 | "engines": { 1046 | "node": ">= 18" 1047 | } 1048 | }, 1049 | "node_modules/express-rate-limit": { 1050 | "version": "7.5.0", 1051 | "license": "MIT", 1052 | "engines": { 1053 | "node": ">= 16" 1054 | }, 1055 | "funding": { 1056 | "url": "https://github.com/sponsors/express-rate-limit" 1057 | }, 1058 | "peerDependencies": { 1059 | "express": "^4.11 || 5 || ^5.0.0-beta.1" 1060 | } 1061 | }, 1062 | "node_modules/finalhandler": { 1063 | "version": "2.1.0", 1064 | "license": "MIT", 1065 | "peer": true, 1066 | "dependencies": { 1067 | "debug": "^4.4.0", 1068 | "encodeurl": "^2.0.0", 1069 | "escape-html": "^1.0.3", 1070 | "on-finished": "^2.4.1", 1071 | "parseurl": "^1.3.3", 1072 | "statuses": "^2.0.1" 1073 | }, 1074 | "engines": { 1075 | "node": ">= 0.8" 1076 | } 1077 | }, 1078 | "node_modules/finalhandler/node_modules/debug": { 1079 | "version": "4.4.0", 1080 | "license": "MIT", 1081 | "peer": true, 1082 | "dependencies": { 1083 | "ms": "^2.1.3" 1084 | }, 1085 | "engines": { 1086 | "node": ">=6.0" 1087 | }, 1088 | "peerDependenciesMeta": { 1089 | "supports-color": { 1090 | "optional": true 1091 | } 1092 | } 1093 | }, 1094 | "node_modules/finalhandler/node_modules/debug/node_modules/ms": { 1095 | "version": "2.1.3", 1096 | "license": "MIT", 1097 | "peer": true 1098 | }, 1099 | "node_modules/follow-redirects": { 1100 | "version": "1.15.9", 1101 | "funding": [ 1102 | { 1103 | "type": "individual", 1104 | "url": "https://github.com/sponsors/RubenVerborgh" 1105 | } 1106 | ], 1107 | "license": "MIT", 1108 | "engines": { 1109 | "node": ">=4.0" 1110 | }, 1111 | "peerDependenciesMeta": { 1112 | "debug": { 1113 | "optional": true 1114 | } 1115 | } 1116 | }, 1117 | "node_modules/form-data": { 1118 | "version": "4.0.2", 1119 | "license": "MIT", 1120 | "dependencies": { 1121 | "asynckit": "^0.4.0", 1122 | "combined-stream": "^1.0.8", 1123 | "es-set-tostringtag": "^2.1.0", 1124 | "mime-types": "^2.1.12" 1125 | }, 1126 | "engines": { 1127 | "node": ">= 6" 1128 | } 1129 | }, 1130 | "node_modules/form-data-encoder": { 1131 | "version": "1.7.2", 1132 | "license": "MIT" 1133 | }, 1134 | "node_modules/form-data/node_modules/mime-types": { 1135 | "version": "2.1.35", 1136 | "license": "MIT", 1137 | "dependencies": { 1138 | "mime-db": "1.52.0" 1139 | }, 1140 | "engines": { 1141 | "node": ">= 0.6" 1142 | } 1143 | }, 1144 | "node_modules/form-data/node_modules/mime-types/node_modules/mime-db": { 1145 | "version": "1.52.0", 1146 | "license": "MIT", 1147 | "engines": { 1148 | "node": ">= 0.6" 1149 | } 1150 | }, 1151 | "node_modules/formdata-node": { 1152 | "version": "4.4.1", 1153 | "license": "MIT", 1154 | "dependencies": { 1155 | "node-domexception": "1.0.0", 1156 | "web-streams-polyfill": "4.0.0-beta.3" 1157 | }, 1158 | "engines": { 1159 | "node": ">= 12.20" 1160 | } 1161 | }, 1162 | "node_modules/forwarded": { 1163 | "version": "0.2.0", 1164 | "license": "MIT", 1165 | "engines": { 1166 | "node": ">= 0.6" 1167 | } 1168 | }, 1169 | "node_modules/fresh": { 1170 | "version": "2.0.0", 1171 | "license": "MIT", 1172 | "peer": true, 1173 | "engines": { 1174 | "node": ">= 0.8" 1175 | } 1176 | }, 1177 | "node_modules/function-bind": { 1178 | "version": "1.1.2", 1179 | "license": "MIT", 1180 | "funding": { 1181 | "url": "https://github.com/sponsors/ljharb" 1182 | } 1183 | }, 1184 | "node_modules/get-intrinsic": { 1185 | "version": "1.3.0", 1186 | "license": "MIT", 1187 | "dependencies": { 1188 | "call-bind-apply-helpers": "^1.0.2", 1189 | "es-define-property": "^1.0.1", 1190 | "es-errors": "^1.3.0", 1191 | "es-object-atoms": "^1.1.1", 1192 | "function-bind": "^1.1.2", 1193 | "get-proto": "^1.0.1", 1194 | "gopd": "^1.2.0", 1195 | "has-symbols": "^1.1.0", 1196 | "hasown": "^2.0.2", 1197 | "math-intrinsics": "^1.1.0" 1198 | }, 1199 | "engines": { 1200 | "node": ">= 0.4" 1201 | }, 1202 | "funding": { 1203 | "url": "https://github.com/sponsors/ljharb" 1204 | } 1205 | }, 1206 | "node_modules/get-proto": { 1207 | "version": "1.0.1", 1208 | "license": "MIT", 1209 | "dependencies": { 1210 | "dunder-proto": "^1.0.1", 1211 | "es-object-atoms": "^1.0.0" 1212 | }, 1213 | "engines": { 1214 | "node": ">= 0.4" 1215 | } 1216 | }, 1217 | "node_modules/gopd": { 1218 | "version": "1.2.0", 1219 | "license": "MIT", 1220 | "engines": { 1221 | "node": ">= 0.4" 1222 | }, 1223 | "funding": { 1224 | "url": "https://github.com/sponsors/ljharb" 1225 | } 1226 | }, 1227 | "node_modules/has-flag": { 1228 | "version": "4.0.0", 1229 | "license": "MIT", 1230 | "engines": { 1231 | "node": ">=8" 1232 | } 1233 | }, 1234 | "node_modules/has-symbols": { 1235 | "version": "1.1.0", 1236 | "license": "MIT", 1237 | "engines": { 1238 | "node": ">= 0.4" 1239 | }, 1240 | "funding": { 1241 | "url": "https://github.com/sponsors/ljharb" 1242 | } 1243 | }, 1244 | "node_modules/has-tostringtag": { 1245 | "version": "1.0.2", 1246 | "license": "MIT", 1247 | "dependencies": { 1248 | "has-symbols": "^1.0.3" 1249 | }, 1250 | "engines": { 1251 | "node": ">= 0.4" 1252 | }, 1253 | "funding": { 1254 | "url": "https://github.com/sponsors/ljharb" 1255 | } 1256 | }, 1257 | "node_modules/hasown": { 1258 | "version": "2.0.2", 1259 | "license": "MIT", 1260 | "dependencies": { 1261 | "function-bind": "^1.1.2" 1262 | }, 1263 | "engines": { 1264 | "node": ">= 0.4" 1265 | } 1266 | }, 1267 | "node_modules/http-errors": { 1268 | "version": "2.0.0", 1269 | "license": "MIT", 1270 | "dependencies": { 1271 | "depd": "2.0.0", 1272 | "inherits": "2.0.4", 1273 | "setprototypeof": "1.2.0", 1274 | "statuses": "2.0.1", 1275 | "toidentifier": "1.0.1" 1276 | }, 1277 | "engines": { 1278 | "node": ">= 0.8" 1279 | } 1280 | }, 1281 | "node_modules/humanize-ms": { 1282 | "version": "1.2.1", 1283 | "license": "MIT", 1284 | "dependencies": { 1285 | "ms": "^2.0.0" 1286 | } 1287 | }, 1288 | "node_modules/humanize-ms/node_modules/ms": { 1289 | "version": "2.1.3", 1290 | "license": "MIT" 1291 | }, 1292 | "node_modules/iconv-lite": { 1293 | "version": "0.6.3", 1294 | "license": "MIT", 1295 | "dependencies": { 1296 | "safer-buffer": ">= 2.1.2 < 3.0.0" 1297 | }, 1298 | "engines": { 1299 | "node": ">=0.10.0" 1300 | } 1301 | }, 1302 | "node_modules/inherits": { 1303 | "version": "2.0.4", 1304 | "license": "ISC" 1305 | }, 1306 | "node_modules/ipaddr.js": { 1307 | "version": "1.9.1", 1308 | "license": "MIT", 1309 | "engines": { 1310 | "node": ">= 0.10" 1311 | } 1312 | }, 1313 | "node_modules/is-promise": { 1314 | "version": "4.0.0", 1315 | "license": "MIT" 1316 | }, 1317 | "node_modules/js-tiktoken": { 1318 | "version": "1.0.19", 1319 | "license": "MIT", 1320 | "dependencies": { 1321 | "base64-js": "^1.5.1" 1322 | } 1323 | }, 1324 | "node_modules/js-yaml": { 1325 | "version": "4.1.0", 1326 | "license": "MIT", 1327 | "dependencies": { 1328 | "argparse": "^2.0.1" 1329 | }, 1330 | "bin": { 1331 | "js-yaml": "bin/js-yaml.js" 1332 | } 1333 | }, 1334 | "node_modules/jsonpointer": { 1335 | "version": "5.0.1", 1336 | "license": "MIT", 1337 | "engines": { 1338 | "node": ">=0.10.0" 1339 | } 1340 | }, 1341 | "node_modules/langchain": { 1342 | "version": "0.3.19", 1343 | "license": "MIT", 1344 | "dependencies": { 1345 | "@langchain/openai": ">=0.1.0 <0.5.0", 1346 | "@langchain/textsplitters": ">=0.0.0 <0.2.0", 1347 | "js-tiktoken": "^1.0.12", 1348 | "js-yaml": "^4.1.0", 1349 | "jsonpointer": "^5.0.1", 1350 | "langsmith": ">=0.2.8 <0.4.0", 1351 | "openapi-types": "^12.1.3", 1352 | "p-retry": "4", 1353 | "uuid": "^10.0.0", 1354 | "yaml": "^2.2.1", 1355 | "zod": "^3.22.4", 1356 | "zod-to-json-schema": "^3.22.3" 1357 | }, 1358 | "engines": { 1359 | "node": ">=18" 1360 | }, 1361 | "peerDependencies": { 1362 | "@langchain/anthropic": "*", 1363 | "@langchain/aws": "*", 1364 | "@langchain/cerebras": "*", 1365 | "@langchain/cohere": "*", 1366 | "@langchain/core": ">=0.2.21 <0.4.0", 1367 | "@langchain/deepseek": "*", 1368 | "@langchain/google-genai": "*", 1369 | "@langchain/google-vertexai": "*", 1370 | "@langchain/google-vertexai-web": "*", 1371 | "@langchain/groq": "*", 1372 | "@langchain/mistralai": "*", 1373 | "@langchain/ollama": "*", 1374 | "@langchain/xai": "*", 1375 | "axios": "*", 1376 | "cheerio": "*", 1377 | "handlebars": "^4.7.8", 1378 | "peggy": "^3.0.2", 1379 | "typeorm": "*" 1380 | }, 1381 | "peerDependenciesMeta": { 1382 | "@langchain/anthropic": { 1383 | "optional": true 1384 | }, 1385 | "@langchain/aws": { 1386 | "optional": true 1387 | }, 1388 | "@langchain/cerebras": { 1389 | "optional": true 1390 | }, 1391 | "@langchain/cohere": { 1392 | "optional": true 1393 | }, 1394 | "@langchain/deepseek": { 1395 | "optional": true 1396 | }, 1397 | "@langchain/google-genai": { 1398 | "optional": true 1399 | }, 1400 | "@langchain/google-vertexai": { 1401 | "optional": true 1402 | }, 1403 | "@langchain/google-vertexai-web": { 1404 | "optional": true 1405 | }, 1406 | "@langchain/groq": { 1407 | "optional": true 1408 | }, 1409 | "@langchain/mistralai": { 1410 | "optional": true 1411 | }, 1412 | "@langchain/ollama": { 1413 | "optional": true 1414 | }, 1415 | "@langchain/xai": { 1416 | "optional": true 1417 | }, 1418 | "axios": { 1419 | "optional": true 1420 | }, 1421 | "cheerio": { 1422 | "optional": true 1423 | }, 1424 | "handlebars": { 1425 | "optional": true 1426 | }, 1427 | "peggy": { 1428 | "optional": true 1429 | }, 1430 | "typeorm": { 1431 | "optional": true 1432 | } 1433 | } 1434 | }, 1435 | "node_modules/langsmith": { 1436 | "version": "0.3.14", 1437 | "license": "MIT", 1438 | "dependencies": { 1439 | "@types/uuid": "^10.0.0", 1440 | "chalk": "^4.1.2", 1441 | "console-table-printer": "^2.12.1", 1442 | "p-queue": "^6.6.2", 1443 | "p-retry": "4", 1444 | "semver": "^7.6.3", 1445 | "uuid": "^10.0.0" 1446 | }, 1447 | "peerDependencies": { 1448 | "openai": "*" 1449 | }, 1450 | "peerDependenciesMeta": { 1451 | "openai": { 1452 | "optional": true 1453 | } 1454 | } 1455 | }, 1456 | "node_modules/make-error": { 1457 | "version": "1.3.6", 1458 | "license": "ISC" 1459 | }, 1460 | "node_modules/math-intrinsics": { 1461 | "version": "1.1.0", 1462 | "license": "MIT", 1463 | "engines": { 1464 | "node": ">= 0.4" 1465 | } 1466 | }, 1467 | "node_modules/media-typer": { 1468 | "version": "1.1.0", 1469 | "license": "MIT", 1470 | "peer": true, 1471 | "engines": { 1472 | "node": ">= 0.8" 1473 | } 1474 | }, 1475 | "node_modules/merge-descriptors": { 1476 | "version": "2.0.0", 1477 | "license": "MIT", 1478 | "peer": true, 1479 | "engines": { 1480 | "node": ">=18" 1481 | }, 1482 | "funding": { 1483 | "url": "https://github.com/sponsors/sindresorhus" 1484 | } 1485 | }, 1486 | "node_modules/methods": { 1487 | "version": "1.1.2", 1488 | "license": "MIT", 1489 | "engines": { 1490 | "node": ">= 0.6" 1491 | } 1492 | }, 1493 | "node_modules/mime-db": { 1494 | "version": "1.54.0", 1495 | "license": "MIT", 1496 | "engines": { 1497 | "node": ">= 0.6" 1498 | } 1499 | }, 1500 | "node_modules/mime-types": { 1501 | "version": "3.0.0", 1502 | "license": "MIT", 1503 | "dependencies": { 1504 | "mime-db": "^1.53.0" 1505 | }, 1506 | "engines": { 1507 | "node": ">= 0.6" 1508 | } 1509 | }, 1510 | "node_modules/ms": { 1511 | "version": "2.1.2", 1512 | "license": "MIT", 1513 | "peer": true 1514 | }, 1515 | "node_modules/mustache": { 1516 | "version": "4.2.0", 1517 | "license": "MIT", 1518 | "bin": { 1519 | "mustache": "bin/mustache" 1520 | } 1521 | }, 1522 | "node_modules/negotiator": { 1523 | "version": "1.0.0", 1524 | "license": "MIT", 1525 | "peer": true, 1526 | "engines": { 1527 | "node": ">= 0.6" 1528 | } 1529 | }, 1530 | "node_modules/node-domexception": { 1531 | "version": "1.0.0", 1532 | "funding": [ 1533 | { 1534 | "type": "github", 1535 | "url": "https://github.com/sponsors/jimmywarting" 1536 | }, 1537 | { 1538 | "type": "github", 1539 | "url": "https://paypal.me/jimmywarting" 1540 | } 1541 | ], 1542 | "license": "MIT", 1543 | "engines": { 1544 | "node": ">=10.5.0" 1545 | } 1546 | }, 1547 | "node_modules/node-fetch": { 1548 | "version": "2.7.0", 1549 | "license": "MIT", 1550 | "dependencies": { 1551 | "whatwg-url": "^5.0.0" 1552 | }, 1553 | "engines": { 1554 | "node": "4.x || >=6.0.0" 1555 | }, 1556 | "peerDependencies": { 1557 | "encoding": "^0.1.0" 1558 | }, 1559 | "peerDependenciesMeta": { 1560 | "encoding": { 1561 | "optional": true 1562 | } 1563 | } 1564 | }, 1565 | "node_modules/object-assign": { 1566 | "version": "4.1.1", 1567 | "license": "MIT", 1568 | "engines": { 1569 | "node": ">=0.10.0" 1570 | } 1571 | }, 1572 | "node_modules/object-inspect": { 1573 | "version": "1.13.4", 1574 | "license": "MIT", 1575 | "engines": { 1576 | "node": ">= 0.4" 1577 | }, 1578 | "funding": { 1579 | "url": "https://github.com/sponsors/ljharb" 1580 | } 1581 | }, 1582 | "node_modules/on-finished": { 1583 | "version": "2.4.1", 1584 | "license": "MIT", 1585 | "dependencies": { 1586 | "ee-first": "1.1.1" 1587 | }, 1588 | "engines": { 1589 | "node": ">= 0.8" 1590 | } 1591 | }, 1592 | "node_modules/once": { 1593 | "version": "1.4.0", 1594 | "license": "ISC", 1595 | "dependencies": { 1596 | "wrappy": "1" 1597 | } 1598 | }, 1599 | "node_modules/openai": { 1600 | "version": "4.89.0", 1601 | "license": "Apache-2.0", 1602 | "dependencies": { 1603 | "@types/node": "^18.11.18", 1604 | "@types/node-fetch": "^2.6.4", 1605 | "abort-controller": "^3.0.0", 1606 | "agentkeepalive": "^4.2.1", 1607 | "form-data-encoder": "1.7.2", 1608 | "formdata-node": "^4.3.2", 1609 | "node-fetch": "^2.6.7" 1610 | }, 1611 | "bin": { 1612 | "openai": "bin/cli" 1613 | }, 1614 | "peerDependencies": { 1615 | "ws": "^8.18.0", 1616 | "zod": "^3.23.8" 1617 | }, 1618 | "peerDependenciesMeta": { 1619 | "ws": { 1620 | "optional": true 1621 | }, 1622 | "zod": { 1623 | "optional": true 1624 | } 1625 | } 1626 | }, 1627 | "node_modules/openai/node_modules/@types/node": { 1628 | "version": "18.19.83", 1629 | "license": "MIT", 1630 | "dependencies": { 1631 | "undici-types": "~5.26.4" 1632 | } 1633 | }, 1634 | "node_modules/openai/node_modules/@types/node/node_modules/undici-types": { 1635 | "version": "5.26.5", 1636 | "license": "MIT" 1637 | }, 1638 | "node_modules/openapi-types": { 1639 | "version": "12.1.3", 1640 | "license": "MIT" 1641 | }, 1642 | "node_modules/p-finally": { 1643 | "version": "1.0.0", 1644 | "license": "MIT", 1645 | "engines": { 1646 | "node": ">=4" 1647 | } 1648 | }, 1649 | "node_modules/p-queue": { 1650 | "version": "6.6.2", 1651 | "license": "MIT", 1652 | "dependencies": { 1653 | "eventemitter3": "^4.0.4", 1654 | "p-timeout": "^3.2.0" 1655 | }, 1656 | "engines": { 1657 | "node": ">=8" 1658 | }, 1659 | "funding": { 1660 | "url": "https://github.com/sponsors/sindresorhus" 1661 | } 1662 | }, 1663 | "node_modules/p-retry": { 1664 | "version": "4.6.2", 1665 | "license": "MIT", 1666 | "dependencies": { 1667 | "@types/retry": "0.12.0", 1668 | "retry": "^0.13.1" 1669 | }, 1670 | "engines": { 1671 | "node": ">=8" 1672 | } 1673 | }, 1674 | "node_modules/p-timeout": { 1675 | "version": "3.2.0", 1676 | "license": "MIT", 1677 | "dependencies": { 1678 | "p-finally": "^1.0.0" 1679 | }, 1680 | "engines": { 1681 | "node": ">=8" 1682 | } 1683 | }, 1684 | "node_modules/parseurl": { 1685 | "version": "1.3.3", 1686 | "license": "MIT", 1687 | "engines": { 1688 | "node": ">= 0.8" 1689 | } 1690 | }, 1691 | "node_modules/pkce-challenge": { 1692 | "version": "4.1.0", 1693 | "license": "MIT", 1694 | "engines": { 1695 | "node": ">=16.20.0" 1696 | } 1697 | }, 1698 | "node_modules/proxy-addr": { 1699 | "version": "2.0.7", 1700 | "license": "MIT", 1701 | "dependencies": { 1702 | "forwarded": "0.2.0", 1703 | "ipaddr.js": "1.9.1" 1704 | }, 1705 | "engines": { 1706 | "node": ">= 0.10" 1707 | } 1708 | }, 1709 | "node_modules/proxy-from-env": { 1710 | "version": "1.1.0", 1711 | "license": "MIT" 1712 | }, 1713 | "node_modules/qs": { 1714 | "version": "6.13.0", 1715 | "license": "BSD-3-Clause", 1716 | "dependencies": { 1717 | "side-channel": "^1.0.6" 1718 | }, 1719 | "engines": { 1720 | "node": ">=0.6" 1721 | }, 1722 | "funding": { 1723 | "url": "https://github.com/sponsors/ljharb" 1724 | } 1725 | }, 1726 | "node_modules/range-parser": { 1727 | "version": "1.2.1", 1728 | "license": "MIT", 1729 | "engines": { 1730 | "node": ">= 0.6" 1731 | } 1732 | }, 1733 | "node_modules/raw-body": { 1734 | "version": "3.0.0", 1735 | "license": "MIT", 1736 | "dependencies": { 1737 | "bytes": "3.1.2", 1738 | "http-errors": "2.0.0", 1739 | "iconv-lite": "0.6.3", 1740 | "unpipe": "1.0.0" 1741 | }, 1742 | "engines": { 1743 | "node": ">= 0.8" 1744 | } 1745 | }, 1746 | "node_modules/retry": { 1747 | "version": "0.13.1", 1748 | "license": "MIT", 1749 | "engines": { 1750 | "node": ">= 4" 1751 | } 1752 | }, 1753 | "node_modules/router": { 1754 | "version": "2.1.0", 1755 | "license": "MIT", 1756 | "dependencies": { 1757 | "is-promise": "^4.0.0", 1758 | "parseurl": "^1.3.3", 1759 | "path-to-regexp": "^8.0.0" 1760 | }, 1761 | "engines": { 1762 | "node": ">= 18" 1763 | } 1764 | }, 1765 | "node_modules/router/node_modules/path-to-regexp": { 1766 | "version": "8.2.0", 1767 | "license": "MIT", 1768 | "engines": { 1769 | "node": ">=16" 1770 | } 1771 | }, 1772 | "node_modules/safe-buffer": { 1773 | "version": "5.2.1", 1774 | "funding": [ 1775 | { 1776 | "type": "github", 1777 | "url": "https://github.com/sponsors/feross" 1778 | }, 1779 | { 1780 | "type": "patreon", 1781 | "url": "https://www.patreon.com/feross" 1782 | }, 1783 | { 1784 | "type": "consulting", 1785 | "url": "https://feross.org/support" 1786 | } 1787 | ], 1788 | "license": "MIT" 1789 | }, 1790 | "node_modules/safer-buffer": { 1791 | "version": "2.1.2", 1792 | "license": "MIT" 1793 | }, 1794 | "node_modules/semver": { 1795 | "version": "7.7.1", 1796 | "license": "ISC", 1797 | "bin": { 1798 | "semver": "bin/semver.js" 1799 | }, 1800 | "engines": { 1801 | "node": ">=10" 1802 | } 1803 | }, 1804 | "node_modules/send": { 1805 | "version": "1.1.0", 1806 | "license": "MIT", 1807 | "peer": true, 1808 | "dependencies": { 1809 | "debug": "^4.3.5", 1810 | "destroy": "^1.2.0", 1811 | "encodeurl": "^2.0.0", 1812 | "escape-html": "^1.0.3", 1813 | "etag": "^1.8.1", 1814 | "fresh": "^0.5.2", 1815 | "http-errors": "^2.0.0", 1816 | "mime-types": "^2.1.35", 1817 | "ms": "^2.1.3", 1818 | "on-finished": "^2.4.1", 1819 | "range-parser": "^1.2.1", 1820 | "statuses": "^2.0.1" 1821 | }, 1822 | "engines": { 1823 | "node": ">= 18" 1824 | } 1825 | }, 1826 | "node_modules/send/node_modules/debug": { 1827 | "version": "4.4.0", 1828 | "license": "MIT", 1829 | "peer": true, 1830 | "dependencies": { 1831 | "ms": "^2.1.3" 1832 | }, 1833 | "engines": { 1834 | "node": ">=6.0" 1835 | }, 1836 | "peerDependenciesMeta": { 1837 | "supports-color": { 1838 | "optional": true 1839 | } 1840 | } 1841 | }, 1842 | "node_modules/send/node_modules/fresh": { 1843 | "version": "0.5.2", 1844 | "license": "MIT", 1845 | "peer": true, 1846 | "engines": { 1847 | "node": ">= 0.6" 1848 | } 1849 | }, 1850 | "node_modules/send/node_modules/mime-types": { 1851 | "version": "2.1.35", 1852 | "license": "MIT", 1853 | "peer": true, 1854 | "dependencies": { 1855 | "mime-db": "1.52.0" 1856 | }, 1857 | "engines": { 1858 | "node": ">= 0.6" 1859 | } 1860 | }, 1861 | "node_modules/send/node_modules/mime-types/node_modules/mime-db": { 1862 | "version": "1.52.0", 1863 | "license": "MIT", 1864 | "peer": true, 1865 | "engines": { 1866 | "node": ">= 0.6" 1867 | } 1868 | }, 1869 | "node_modules/send/node_modules/ms": { 1870 | "version": "2.1.3", 1871 | "license": "MIT", 1872 | "peer": true 1873 | }, 1874 | "node_modules/serve-static": { 1875 | "version": "2.1.0", 1876 | "license": "MIT", 1877 | "peer": true, 1878 | "dependencies": { 1879 | "encodeurl": "^2.0.0", 1880 | "escape-html": "^1.0.3", 1881 | "parseurl": "^1.3.3", 1882 | "send": "^1.0.0" 1883 | }, 1884 | "engines": { 1885 | "node": ">= 18" 1886 | } 1887 | }, 1888 | "node_modules/setprototypeof": { 1889 | "version": "1.2.0", 1890 | "license": "ISC" 1891 | }, 1892 | "node_modules/side-channel": { 1893 | "version": "1.1.0", 1894 | "license": "MIT", 1895 | "dependencies": { 1896 | "es-errors": "^1.3.0", 1897 | "object-inspect": "^1.13.3", 1898 | "side-channel-list": "^1.0.0", 1899 | "side-channel-map": "^1.0.1", 1900 | "side-channel-weakmap": "^1.0.2" 1901 | }, 1902 | "engines": { 1903 | "node": ">= 0.4" 1904 | }, 1905 | "funding": { 1906 | "url": "https://github.com/sponsors/ljharb" 1907 | } 1908 | }, 1909 | "node_modules/side-channel-list": { 1910 | "version": "1.0.0", 1911 | "license": "MIT", 1912 | "dependencies": { 1913 | "es-errors": "^1.3.0", 1914 | "object-inspect": "^1.13.3" 1915 | }, 1916 | "engines": { 1917 | "node": ">= 0.4" 1918 | }, 1919 | "funding": { 1920 | "url": "https://github.com/sponsors/ljharb" 1921 | } 1922 | }, 1923 | "node_modules/side-channel-map": { 1924 | "version": "1.0.1", 1925 | "license": "MIT", 1926 | "dependencies": { 1927 | "call-bound": "^1.0.2", 1928 | "es-errors": "^1.3.0", 1929 | "get-intrinsic": "^1.2.5", 1930 | "object-inspect": "^1.13.3" 1931 | }, 1932 | "engines": { 1933 | "node": ">= 0.4" 1934 | }, 1935 | "funding": { 1936 | "url": "https://github.com/sponsors/ljharb" 1937 | } 1938 | }, 1939 | "node_modules/side-channel-weakmap": { 1940 | "version": "1.0.2", 1941 | "license": "MIT", 1942 | "dependencies": { 1943 | "call-bound": "^1.0.2", 1944 | "es-errors": "^1.3.0", 1945 | "get-intrinsic": "^1.2.5", 1946 | "object-inspect": "^1.13.3", 1947 | "side-channel-map": "^1.0.1" 1948 | }, 1949 | "engines": { 1950 | "node": ">= 0.4" 1951 | }, 1952 | "funding": { 1953 | "url": "https://github.com/sponsors/ljharb" 1954 | } 1955 | }, 1956 | "node_modules/simple-wcswidth": { 1957 | "version": "1.0.1", 1958 | "license": "MIT" 1959 | }, 1960 | "node_modules/statuses": { 1961 | "version": "2.0.1", 1962 | "license": "MIT", 1963 | "engines": { 1964 | "node": ">= 0.8" 1965 | } 1966 | }, 1967 | "node_modules/supports-color": { 1968 | "version": "7.2.0", 1969 | "license": "MIT", 1970 | "dependencies": { 1971 | "has-flag": "^4.0.0" 1972 | }, 1973 | "engines": { 1974 | "node": ">=8" 1975 | } 1976 | }, 1977 | "node_modules/tldts": { 1978 | "version": "6.1.85", 1979 | "license": "MIT", 1980 | "dependencies": { 1981 | "tldts-core": "^6.1.85" 1982 | }, 1983 | "bin": { 1984 | "tldts": "bin/cli.js" 1985 | } 1986 | }, 1987 | "node_modules/tldts-core": { 1988 | "version": "6.1.85", 1989 | "license": "MIT" 1990 | }, 1991 | "node_modules/toidentifier": { 1992 | "version": "1.0.1", 1993 | "license": "MIT", 1994 | "engines": { 1995 | "node": ">=0.6" 1996 | } 1997 | }, 1998 | "node_modules/tough-cookie": { 1999 | "version": "5.1.2", 2000 | "license": "BSD-3-Clause", 2001 | "dependencies": { 2002 | "tldts": "^6.1.32" 2003 | }, 2004 | "engines": { 2005 | "node": ">=16" 2006 | } 2007 | }, 2008 | "node_modules/tr46": { 2009 | "version": "0.0.3", 2010 | "license": "MIT" 2011 | }, 2012 | "node_modules/ts-node": { 2013 | "version": "10.9.2", 2014 | "license": "MIT", 2015 | "dependencies": { 2016 | "@cspotcode/source-map-support": "^0.8.0", 2017 | "@tsconfig/node10": "^1.0.7", 2018 | "@tsconfig/node12": "^1.0.7", 2019 | "@tsconfig/node14": "^1.0.0", 2020 | "@tsconfig/node16": "^1.0.2", 2021 | "acorn": "^8.4.1", 2022 | "acorn-walk": "^8.1.1", 2023 | "arg": "^4.1.0", 2024 | "create-require": "^1.1.0", 2025 | "diff": "^4.0.1", 2026 | "make-error": "^1.1.1", 2027 | "v8-compile-cache-lib": "^3.0.1", 2028 | "yn": "3.1.1" 2029 | }, 2030 | "bin": { 2031 | "ts-node": "dist/bin.js", 2032 | "ts-node-cwd": "dist/bin-cwd.js", 2033 | "ts-node-esm": "dist/bin-esm.js", 2034 | "ts-node-script": "dist/bin-script.js", 2035 | "ts-node-transpile-only": "dist/bin-transpile.js", 2036 | "ts-script": "dist/bin-script-deprecated.js" 2037 | }, 2038 | "peerDependencies": { 2039 | "@swc/core": ">=1.2.50", 2040 | "@swc/wasm": ">=1.2.50", 2041 | "@types/node": "*", 2042 | "typescript": ">=2.7" 2043 | }, 2044 | "peerDependenciesMeta": { 2045 | "@swc/core": { 2046 | "optional": true 2047 | }, 2048 | "@swc/wasm": { 2049 | "optional": true 2050 | } 2051 | } 2052 | }, 2053 | "node_modules/type-is": { 2054 | "version": "2.0.0", 2055 | "license": "MIT", 2056 | "peer": true, 2057 | "dependencies": { 2058 | "content-type": "^1.0.5", 2059 | "media-typer": "^1.1.0", 2060 | "mime-types": "^3.0.0" 2061 | }, 2062 | "engines": { 2063 | "node": ">= 0.6" 2064 | } 2065 | }, 2066 | "node_modules/typescript": { 2067 | "version": "5.8.2", 2068 | "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.8.2.tgz", 2069 | "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", 2070 | "license": "Apache-2.0", 2071 | "bin": { 2072 | "tsc": "bin/tsc", 2073 | "tsserver": "bin/tsserver" 2074 | }, 2075 | "engines": { 2076 | "node": ">=14.17" 2077 | } 2078 | }, 2079 | "node_modules/undici-types": { 2080 | "version": "6.20.0", 2081 | "license": "MIT" 2082 | }, 2083 | "node_modules/unpipe": { 2084 | "version": "1.0.0", 2085 | "license": "MIT", 2086 | "engines": { 2087 | "node": ">= 0.8" 2088 | } 2089 | }, 2090 | "node_modules/utils-merge": { 2091 | "version": "1.0.1", 2092 | "license": "MIT", 2093 | "engines": { 2094 | "node": ">= 0.4.0" 2095 | } 2096 | }, 2097 | "node_modules/uuid": { 2098 | "version": "10.0.0", 2099 | "funding": [ 2100 | "https://github.com/sponsors/broofa", 2101 | "https://github.com/sponsors/ctavan" 2102 | ], 2103 | "license": "MIT", 2104 | "bin": { 2105 | "uuid": "dist/bin/uuid" 2106 | } 2107 | }, 2108 | "node_modules/v8-compile-cache-lib": { 2109 | "version": "3.0.1", 2110 | "license": "MIT" 2111 | }, 2112 | "node_modules/vary": { 2113 | "version": "1.1.2", 2114 | "license": "MIT", 2115 | "engines": { 2116 | "node": ">= 0.8" 2117 | } 2118 | }, 2119 | "node_modules/web-streams-polyfill": { 2120 | "version": "4.0.0-beta.3", 2121 | "license": "MIT", 2122 | "engines": { 2123 | "node": ">= 14" 2124 | } 2125 | }, 2126 | "node_modules/webidl-conversions": { 2127 | "version": "3.0.1", 2128 | "license": "BSD-2-Clause" 2129 | }, 2130 | "node_modules/whatwg-url": { 2131 | "version": "5.0.0", 2132 | "license": "MIT", 2133 | "dependencies": { 2134 | "tr46": "~0.0.3", 2135 | "webidl-conversions": "^3.0.0" 2136 | } 2137 | }, 2138 | "node_modules/wrappy": { 2139 | "version": "1.0.2", 2140 | "license": "ISC" 2141 | }, 2142 | "node_modules/yaml": { 2143 | "version": "2.7.0", 2144 | "license": "ISC", 2145 | "bin": { 2146 | "yaml": "bin.mjs" 2147 | }, 2148 | "engines": { 2149 | "node": ">= 14" 2150 | } 2151 | }, 2152 | "node_modules/yn": { 2153 | "version": "3.1.1", 2154 | "license": "MIT", 2155 | "engines": { 2156 | "node": ">=6" 2157 | } 2158 | }, 2159 | "node_modules/zod": { 2160 | "version": "3.24.2", 2161 | "license": "MIT", 2162 | "funding": { 2163 | "url": "https://github.com/sponsors/colinhacks" 2164 | } 2165 | }, 2166 | "node_modules/zod-to-json-schema": { 2167 | "version": "3.24.5", 2168 | "license": "ISC", 2169 | "peerDependencies": { 2170 | "zod": "^3.24.1" 2171 | } 2172 | } 2173 | } 2174 | } 2175 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bilibili-mcp-js", 3 | "module": "index.ts", 4 | "type": "module", 5 | "private": true, 6 | "engines": { 7 | "node": ">=20.12.0" 8 | }, 9 | "scripts": { 10 | "start": "node --loader ts-node/esm index.ts", 11 | "test": "node test.js", 12 | "build": "tsc && node -e \"require('fs').chmodSync('dist/index.js', '755')\"", 13 | "build:bun": "bun build index.ts --outfile ./dist/index.js --target node", 14 | "inspector": "npx @modelcontextprotocol/inspector ./dist/index.js" 15 | }, 16 | "peerDependencies": { 17 | "typescript": "^5" 18 | }, 19 | "devDependencies": { 20 | "@types/tough-cookie": "^4.0.5", 21 | "typescript": "^5.8.2", 22 | "ts-node": "^10.9.2" 23 | }, 24 | "dependencies": { 25 | "@langchain/core": "^0.3.43", 26 | "@langchain/langgraph": "^0.2.57", 27 | "@langchain/openai": "^0.4.9", 28 | "@modelcontextprotocol/sdk": "^1.7.0", 29 | "axios": "^1.8.4", 30 | "langchain": "^0.3.19", 31 | "tough-cookie": "^5.1.2" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import axios from "axios"; 2 | import { CookieJar } from "tough-cookie"; 3 | // import * as fs from "fs"; 4 | // import * as path from "path"; 5 | 6 | const HOME_URL = "https://www.bilibili.com"; 7 | const BW_HEADERS = { 8 | Accept: "*/*", 9 | Connection: "keep-alive", 10 | "Accept-Encoding": "gzip, deflate, br", 11 | "User-Agent": 12 | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0", 13 | Referer: HOME_URL, 14 | }; 15 | 16 | export async function searchBilibili( 17 | keyword: string, 18 | page: number = 1, 19 | limit: number = 20, 20 | order: string = "totalrank" 21 | ) { 22 | // 创建 cookie jar 23 | const jar = new CookieJar(); 24 | const client = axios.create(); 25 | 26 | // 第一步:访问 bilibili.com 获取 cookies 27 | // console.log会返回到客户端,所以屏蔽 28 | // console.log("正在获取 Bilibili cookies..."); 29 | try { 30 | const biliResponse = await client.get(HOME_URL, { 31 | headers: BW_HEADERS, 32 | }); 33 | if (biliResponse.status === 200) { 34 | if (biliResponse.headers["set-cookie"]) { 35 | const setCookies = biliResponse.headers["set-cookie"]; 36 | for (const cookieStr of setCookies) { 37 | await jar.setCookieSync(cookieStr, HOME_URL); 38 | } 39 | } 40 | } 41 | } catch (error) { 42 | console.error("访问B站失败:", error); 43 | } 44 | 45 | // 第二步:使用获取的 cookies 访问搜索 API 46 | // console.log(`正在搜索关键词: ${keyword}`); 47 | const encodeStr = encodeURIComponent(keyword); 48 | // 使用正确的搜索 API URL,添加更多必要参数 49 | const searchUrl = `https://api.bilibili.com/x/web-interface/search/all/v2?keyword=${encodeStr}&page=${page}&order=${order}`; 50 | 51 | // 获取将要发送的 cookies 52 | const cookiesForRequest = await jar.getCookieString(HOME_URL); 53 | // console.log("搜索使用的 cookies:", cookiesForRequest); 54 | 55 | // 手动将 cookies 添加到请求头 56 | const response = await client.get(searchUrl, { 57 | headers: { 58 | ...BW_HEADERS, 59 | Cookie: cookiesForRequest, // 手动设置 Cookie 头 60 | Referer: `https://search.bilibili.com/all?keyword=${encodeStr}`, // 必须设置正确的 Referer 61 | }, 62 | }); 63 | 64 | // 打印返回的数据 65 | // console.log("接口 Code:", response?.data?.code); 66 | if (response?.data?.code == 0) { 67 | const res = response.data.data.result.find((item: any) => item.result_type === "video") 68 | ?.data || [] 69 | res.forEach((item: any) => { 70 | console.log(item); 71 | item.arcurl = fixUrl(item.arcurl); 72 | item.pic = fixUrl(item.pic); 73 | }); 74 | return res; 75 | } else { 76 | console.log("搜索失败:", response?.data); 77 | return []; 78 | } 79 | } 80 | 81 | function fixUrl(url: string): string { 82 | if (url.startsWith("//")) { 83 | return "https:" + url; 84 | } else { 85 | return url.replace(/^http:\/\//, "https://"); 86 | } 87 | } 88 | 89 | // 测试 90 | // // 执行搜索 91 | // const res = await searchBilibili("一栗小莎子").catch((err) => { 92 | // console.log("程序执行出错:", err?.response?.data || err); 93 | // }); 94 | 95 | // // 将结果保存到文件 96 | // const timestamp = new Date().toISOString().replace(/[:.]/g, "-"); 97 | // const filename = `bilibili_search_${timestamp}.json`; 98 | // fs.writeFileSync( 99 | // path.join(__dirname, filename), 100 | // JSON.stringify(res, null, 2), 101 | // "utf8" 102 | // ); 103 | // console.log(`搜索结果已保存到文件: ${filename}`); 104 | -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- 1 | import { spawn } from "child_process"; 2 | 3 | // 启动服务器进程 4 | const isBun = typeof process.versions.bun !== 'undefined'; 5 | const serverProcess = spawn( 6 | isBun ? "bun" : "node", 7 | isBun ? ["index.ts"] : ["--loader", "ts-node/esm", "index.ts"], 8 | {stdio: ["pipe", "pipe", "inherit"]} 9 | ); 10 | 11 | // 准备简单的JSON-RPC请求 12 | const request = { 13 | jsonrpc: "2.0", 14 | id: 1, 15 | method: "tools/list", 16 | params: { 17 | version: "1.0", 18 | }, 19 | }; 20 | 21 | // 监听服务器输出 22 | serverProcess.stdout.on("data", (data) => { 23 | const output = data.toString().trim(); 24 | console.log("服务器响应:", data.toString()); 25 | const jsonMatch = output.match(/\{.*\}/); 26 | if (!jsonMatch) return; 27 | 28 | try { 29 | const response = JSON.parse(output); 30 | if (response.id === 1 && response.result && response.result.tools) { 31 | console.log("发送搜索请求..."); 32 | 33 | // 修改搜索请求格式 34 | const searchRequest = { 35 | jsonrpc: "2.0", 36 | id: 2, 37 | method: "tools/call", 38 | params: { 39 | version: "0.1.0", 40 | name: "bilibili-search", 41 | arguments: { 42 | keyword: "岛市老八", 43 | limit: 10, 44 | }, 45 | }, 46 | }; 47 | 48 | serverProcess.stdin.write(JSON.stringify(searchRequest) + "\n"); 49 | return; 50 | } 51 | 52 | // 如果是搜索响应,关闭服务器 53 | if (response.id === 2) { 54 | console.log("测试完成,关闭服务器..."); 55 | serverProcess.kill(); 56 | process.exit(0); 57 | } 58 | } catch (e) { 59 | console.error("解析响应失败:", e); 60 | } 61 | 62 | // 如果不需要继续测试,关闭服务器 63 | serverProcess.kill(); 64 | process.exit(0); 65 | }); 66 | 67 | // 发送请求前打印请求内容 68 | console.log("发送 MCP 请求:", JSON.stringify(request, null, 2)); 69 | serverProcess.stdin.write(JSON.stringify(request) + "\n"); 70 | 71 | // 设置超时 72 | setTimeout(() => { 73 | console.error("测试超时"); 74 | serverProcess.kill(); 75 | process.exit(1); 76 | }, 10000); // 增加超时时间 77 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "outDir": "./dist", 4 | // Enable latest features 5 | "lib": ["ESNext", "DOM"], 6 | "target": "ES2020", 7 | "module": "Node16", 8 | "moduleDetection": "force", 9 | "jsx": "react-jsx", 10 | "allowJs": true, 11 | 12 | // Bundler mode 13 | "moduleResolution": "Node16", 14 | "allowImportingTsExtensions": false, 15 | "verbatimModuleSyntax": true, 16 | "noEmit": false, 17 | 18 | // Best practices 19 | "strict": true, 20 | "skipLibCheck": true, 21 | "noFallthroughCasesInSwitch": true, 22 | 23 | // Some stricter flags (disabled by default) 24 | "noUnusedLocals": false, 25 | "noUnusedParameters": false, 26 | "noPropertyAccessFromIndexSignature": false 27 | }, 28 | "include": ["*.ts", "src/**/*"], 29 | "exclude": ["node_modules"] 30 | } 31 | --------------------------------------------------------------------------------