├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── README_en.md ├── assets └── extension-icon.png ├── package-lock.json ├── package.json ├── src ├── chat-append.ts ├── chat.ts └── common.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "extends": ["@raycast"] 4 | } 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # Raycast specific files 7 | raycast-env.d.ts 8 | .raycast-swift-build 9 | .swiftpm 10 | compiled_raycast_swift 11 | 12 | # misc 13 | .DS_Store 14 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 120, 3 | "singleQuote": false 4 | } 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Chat Selected Changelog 2 | 3 | ## [Initial Version] - 2024-09-15 -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 KAI 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Chat Any 2 | 3 | **其他语言版本: [中文](README.md), [English](README_en.md).** 4 | 5 | > [!NOTE] 6 | > To be a better Copy-Paste Engineer. 7 | 8 | ## 简介 9 | 10 | 在日常开发中,我经常需要将复制粘贴各种文本到 Cursor 中去编辑/问答,为了简化这个过程,所以有了 **Chat Any**。 11 | 12 | **Chat Any** 是一款基于 Raycast 的扩展,可以将你选中的文本/文件/文件夹压缩到一个文件中,并直接在 Cursor 中打开编辑。 13 | 14 | ## 功能 15 | 16 | - **内容收集**:自动读取选中的文本(/剪切版文本)、文件夹或文件内容。 17 | - **集中编辑**:将收集的内容汇总到 `context.md` 文件中,存储于用户的 `Documents/Chat Any` 目录下,并用 Cursor 编辑。 18 | - **追加内容**:支持将新的内容追加到已有的 `context.md` 文件中,方便持续编辑。 19 | 20 | ## 演示 21 | 22 | ### 1. 编辑选中文本 23 | 24 | 将文本复制粘贴到 Cursor 编辑 25 | 26 | https://github.com/user-attachments/assets/a7611f3d-c84b-437a-a7c2-f55676891012 27 | 28 | ### 2. 选中文件 29 | 30 | 将文件和文件夹中的文本聚合到一个文本 31 | 32 | https://github.com/user-attachments/assets/4e5030a9-b90a-41f2-867f-d2e9afc72088 33 | 34 | ### 3. 追加模式 35 | 36 | 利用追加模式,将代码和报错信息聚合到一个文本 37 | 38 | https://github.com/user-attachments/assets/7dc16756-3aa9-4bc3-96e2-131fe33f5579 39 | 40 | ## 安装 41 | 42 | ### 前提条件 43 | 44 | - 已安装 [Raycast](https://www.raycast.com/)。 45 | - 已安装 [Cursor](https://cursor.sh/)。 46 | 47 | ### 步骤 48 | 49 | 1. **克隆项目**: 50 | 51 | ```bash 52 | git clone https://github.com/yourusername/chat-any.git 53 | cd chat-any 54 | ``` 55 | 56 | 2. **安装依赖**: 57 | 58 | ```bash 59 | npm install 60 | ``` 61 | 62 | 3. **开发模式**: 63 | 64 | ```bash 65 | npm run dev 66 | ``` 67 | 68 | ## 使用方法 69 | 70 | 1. **收集文件内容**: 71 | 72 | - 在 Finder 中选中一个或多个文件、文件夹或文本。 73 | - 使用 Raycast 激活 **Chat Any** 扩展。 74 | - 执行 `Chat` 命令,扩展将自动收集选中的内容并**覆盖**到 `context.md` 文件中。 75 | 76 | 2. **追加内容**: 77 | 78 | - 在 Finder 中选中新的文件、文件夹或文本。 79 | - 使用 Raycast 激活 **Chat Any** 扩展。 80 | - 执行 `Chat Append` 命令,扩展将自动将选中的内容**追加**到 `context.md` 文件中。 81 | 82 | 3. **查看汇总内容**: 83 | 84 | - 执行命令后,扩展会自动打开 `Documents/Chat Any` 目录和 `context.md` 文件,方便即时查看。 85 | 86 | 4. **剪贴板操作**: 87 | 88 | - 如果没有选中文件或文本,扩展将尝试从剪贴板读取内容并汇总。 89 | 90 | ## 项目结构 91 | 92 | ``` 93 | chat-any/ 94 | ├── src/ 95 | │ ├── chat.ts # 主脚本文件,处理文件读取和内容覆盖 96 | │ ├── chat-append.ts # 脚本文件,处理内容追加 97 | │ └── common.ts # 公共函数 98 | ├── README.md 99 | ├── package.json 100 | └── ... 101 | ``` 102 | 103 | ## 贡献 104 | 105 | 欢迎提出 Issue 或 Pull Request!请确保您的代码遵循项目的编码规范,并附有相应的测试。 106 | 107 | ### 步骤 108 | 109 | 1. **Fork 本项目**。 110 | 2. **创建新分支**: 111 | 112 | ```bash 113 | git checkout -b feature/新功能 114 | ``` 115 | 116 | 3. **提交更改**: 117 | 118 | ```bash 119 | git commit -m '添加新功能' 120 | ``` 121 | 122 | 4. **推送分支**: 123 | 124 | ```bash 125 | git push origin feature/新功能 126 | ``` 127 | 128 | 5. **创建 Pull Request**。 129 | 130 | ## 许可证 131 | 132 | 本项目基于 [MIT 许可证](LICENSE) 开源。 133 | 134 | ## 联系我们 135 | 136 | 如果您有任何问题或建议,请通过 [GitHub Issues](https://github.com/ddhjy/chat-any/issues) 与我们联系。 137 | 138 | --- 139 | 140 | © 2024 Chat Any 团队 141 | -------------------------------------------------------------------------------- /README_en.md: -------------------------------------------------------------------------------- 1 | # Chat Any 2 | 3 | **Read this in other languages: [中文](README.md), [English](README_en.md).** 4 | 5 | > [!NOTE] 6 | > To be a better Copy-Paste Engineer. 7 | 8 | ## Introduction 9 | 10 | In daily development, I often need to copy and paste various texts into Cursor for editing/Q&A. To simplify this process, **Chat Any** was created. 11 | 12 | **Chat Any** is a Raycast extension, you can compress the selected text/file/folder into a file and edit it directly with Cursor. 13 | 14 | ## Features 15 | 16 | - **Content Collection**: Automatically read selected text (or clipboard text), folders, or file contents. 17 | - **Centralized Editing**: Aggregate the collected content into a `context.md` file, stored in the user's `Documents/Chat Any` directory, and edit it with Cursor. 18 | - **Append Content**: Supports appending new content to the existing `context.md` file for continuous editing. 19 | 20 | ## Demo 21 | 22 | ### 1. Edit Selected Text 23 | 24 | Copy and paste text into Cursor for editing. 25 | 26 | https://github.com/user-attachments/assets/a7611f3d-c84b-437a-a7c2-f55676891012 27 | 28 | ### 2. Select Files 29 | 30 | Aggregate text from files and folders into one text file. 31 | 32 | https://github.com/user-attachments/assets/4e5030a9-b90a-41f2-867f-d2e9afc72088 33 | 34 | ### 3. Append Mode 35 | 36 | Use append mode to aggregate code and error messages into one text file. 37 | 38 | https://github.com/user-attachments/assets/7dc16756-3aa9-4bc3-96e2-131fe33f5579 39 | 40 | ## Installation 41 | 42 | ### Prerequisites 43 | 44 | - Installed [Raycast](https://www.raycast.com/). 45 | - Installed [Cursor](https://cursor.sh/). 46 | 47 | ### Steps 48 | 49 | 1. **Clone the project**: 50 | 51 | ```bash 52 | git clone https://github.com/yourusername/chat-any.git 53 | cd chat-any 54 | ``` 55 | 56 | 2. **Install dependencies**: 57 | 58 | ```bash 59 | npm install 60 | ``` 61 | 62 | 3. **Development mode**: 63 | 64 | ```bash 65 | npm run dev 66 | ``` 67 | 68 | ## Usage 69 | 70 | 1. **Collect File Content**: 71 | 72 | - Select one or more files, folders, or text in Finder. 73 | - Activate the **Chat Any** extension using Raycast. 74 | - Execute the `Chat` command; the extension will automatically collect the selected content and **overwrite** the `context.md` file. 75 | 76 | 2. **Append Content**: 77 | 78 | - Select new files, folders, or text in Finder. 79 | - Activate the **Chat Any** extension using Raycast. 80 | - Execute the `Chat Append` command; the extension will automatically **append** the selected content to the `context.md` file. 81 | 82 | 3. **View Aggregated Content**: 83 | 84 | - After executing the command, the extension will automatically open the `Documents/Chat Any` directory and the `context.md` file for immediate viewing. 85 | 86 | 4. **Clipboard Operations**: 87 | 88 | - If no files or text are selected, the extension will attempt to read content from the clipboard and aggregate it. 89 | 90 | ## Project Structure 91 | 92 | ``` 93 | chat-any/ 94 | ├── src/ 95 | │ ├── chat.ts # Main script file, handles file reading and content overwriting 96 | │ ├── chat-append.ts # Script file, handles content appending 97 | │ └── common.ts # Common functions 98 | ├── README.md 99 | ├── package.json 100 | └── ... 101 | ``` 102 | 103 | ## Contribution 104 | 105 | We welcome Issues and Pull Requests! Please ensure your code follows the project's coding standards and includes corresponding tests. 106 | 107 | ### Steps 108 | 109 | 1. **Fork this project**. 110 | 111 | 2. **Create a new branch**: 112 | 113 | ```bash 114 | git checkout -b feature/new-feature 115 | ``` 116 | 117 | 3. **Commit changes**: 118 | 119 | ```bash 120 | git commit -m 'Add new feature' 121 | ``` 122 | 123 | 4. **Push the branch**: 124 | 125 | ```bash 126 | git push origin feature/new-feature 127 | ``` 128 | 129 | 5. **Create a Pull Request**. 130 | 131 | ## License 132 | 133 | This project is open-sourced under the [MIT License](LICENSE). 134 | 135 | ## Contact Us 136 | 137 | If you have any questions or suggestions, please contact us via [GitHub Issues](https://github.com/ddhjy/chat-any/issues). 138 | 139 | --- 140 | 141 | © 2024 Chat Any Team 142 | -------------------------------------------------------------------------------- /assets/extension-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ddhjy/chat-any/3a2cc5e9948414002abccabd763100ff838381c0/assets/extension-icon.png -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "chat-selected", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "name": "chat-selected", 8 | "license": "MIT", 9 | "dependencies": { 10 | "@raycast/api": "^1.82.5", 11 | "@raycast/utils": "^1.16.3" 12 | }, 13 | "devDependencies": { 14 | "@raycast/eslint-config": "^1.0.8", 15 | "@types/node": "20.8.10", 16 | "@types/react": "18.3.3", 17 | "eslint": "^8.57.0", 18 | "prettier": "^3.3.3", 19 | "typescript": "^5.4.5" 20 | } 21 | }, 22 | "node_modules/@eslint-community/eslint-utils": { 23 | "version": "4.4.0", 24 | "resolved": "https://bnpm.byted.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", 25 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", 26 | "dev": true, 27 | "dependencies": { 28 | "eslint-visitor-keys": "^3.3.0" 29 | }, 30 | "engines": { 31 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 32 | }, 33 | "peerDependencies": { 34 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 35 | } 36 | }, 37 | "node_modules/@eslint-community/regexpp": { 38 | "version": "4.11.1", 39 | "resolved": "https://bnpm.byted.org/@eslint-community/regexpp/-/regexpp-4.11.1.tgz", 40 | "integrity": "sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==", 41 | "dev": true, 42 | "engines": { 43 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 44 | } 45 | }, 46 | "node_modules/@eslint/eslintrc": { 47 | "version": "2.1.4", 48 | "resolved": "https://bnpm.byted.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", 49 | "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", 50 | "dev": true, 51 | "dependencies": { 52 | "ajv": "^6.12.4", 53 | "debug": "^4.3.2", 54 | "espree": "^9.6.0", 55 | "globals": "^13.19.0", 56 | "ignore": "^5.2.0", 57 | "import-fresh": "^3.2.1", 58 | "js-yaml": "^4.1.0", 59 | "minimatch": "^3.1.2", 60 | "strip-json-comments": "^3.1.1" 61 | }, 62 | "engines": { 63 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 64 | }, 65 | "funding": { 66 | "url": "https://opencollective.com/eslint" 67 | } 68 | }, 69 | "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { 70 | "version": "1.1.11", 71 | "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 72 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 73 | "dev": true, 74 | "dependencies": { 75 | "balanced-match": "^1.0.0", 76 | "concat-map": "0.0.1" 77 | } 78 | }, 79 | "node_modules/@eslint/eslintrc/node_modules/minimatch": { 80 | "version": "3.1.2", 81 | "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", 82 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 83 | "dev": true, 84 | "dependencies": { 85 | "brace-expansion": "^1.1.7" 86 | }, 87 | "engines": { 88 | "node": "*" 89 | } 90 | }, 91 | "node_modules/@eslint/js": { 92 | "version": "8.57.0", 93 | "resolved": "https://bnpm.byted.org/@eslint/js/-/js-8.57.0.tgz", 94 | "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", 95 | "dev": true, 96 | "engines": { 97 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 98 | } 99 | }, 100 | "node_modules/@humanwhocodes/config-array": { 101 | "version": "0.11.14", 102 | "resolved": "https://bnpm.byted.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", 103 | "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", 104 | "deprecated": "Use @eslint/config-array instead", 105 | "dev": true, 106 | "dependencies": { 107 | "@humanwhocodes/object-schema": "^2.0.2", 108 | "debug": "^4.3.1", 109 | "minimatch": "^3.0.5" 110 | }, 111 | "engines": { 112 | "node": ">=10.10.0" 113 | } 114 | }, 115 | "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { 116 | "version": "1.1.11", 117 | "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 118 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 119 | "dev": true, 120 | "dependencies": { 121 | "balanced-match": "^1.0.0", 122 | "concat-map": "0.0.1" 123 | } 124 | }, 125 | "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { 126 | "version": "3.1.2", 127 | "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", 128 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 129 | "dev": true, 130 | "dependencies": { 131 | "brace-expansion": "^1.1.7" 132 | }, 133 | "engines": { 134 | "node": "*" 135 | } 136 | }, 137 | "node_modules/@humanwhocodes/module-importer": { 138 | "version": "1.0.1", 139 | "resolved": "https://bnpm.byted.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 140 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 141 | "dev": true, 142 | "engines": { 143 | "node": ">=12.22" 144 | }, 145 | "funding": { 146 | "type": "github", 147 | "url": "https://github.com/sponsors/nzakas" 148 | } 149 | }, 150 | "node_modules/@humanwhocodes/object-schema": { 151 | "version": "2.0.3", 152 | "resolved": "https://bnpm.byted.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", 153 | "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", 154 | "deprecated": "Use @eslint/object-schema instead", 155 | "dev": true 156 | }, 157 | "node_modules/@nodelib/fs.scandir": { 158 | "version": "2.1.5", 159 | "resolved": "https://bnpm.byted.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 160 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 161 | "dev": true, 162 | "dependencies": { 163 | "@nodelib/fs.stat": "2.0.5", 164 | "run-parallel": "^1.1.9" 165 | }, 166 | "engines": { 167 | "node": ">= 8" 168 | } 169 | }, 170 | "node_modules/@nodelib/fs.stat": { 171 | "version": "2.0.5", 172 | "resolved": "https://bnpm.byted.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 173 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 174 | "dev": true, 175 | "engines": { 176 | "node": ">= 8" 177 | } 178 | }, 179 | "node_modules/@nodelib/fs.walk": { 180 | "version": "1.2.8", 181 | "resolved": "https://bnpm.byted.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 182 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 183 | "dev": true, 184 | "dependencies": { 185 | "@nodelib/fs.scandir": "2.1.5", 186 | "fastq": "^1.6.0" 187 | }, 188 | "engines": { 189 | "node": ">= 8" 190 | } 191 | }, 192 | "node_modules/@raycast/api": { 193 | "version": "1.82.5", 194 | "resolved": "https://bnpm.byted.org/@raycast/api/-/api-1.82.5.tgz", 195 | "integrity": "sha512-hhJa8r2IeAciQf2bJSYXo6eqKQvCARodYEwzolKYkioR3nqxPF0Fx/lxt4Uy5pKG3ZysLGoiEMSzb8fKnS3YfQ==", 196 | "hasInstallScript": true, 197 | "dependencies": { 198 | "@types/node": "^20.8.10", 199 | "@types/react": "^18.3.3", 200 | "react": "18.3.1" 201 | }, 202 | "bin": { 203 | "ray": "bin/ray" 204 | }, 205 | "peerDependencies": { 206 | "@types/node": "20.8.10", 207 | "@types/react": "18.3.3", 208 | "react-devtools": "5.2.0" 209 | }, 210 | "peerDependenciesMeta": { 211 | "@types/node": { 212 | "optional": true 213 | }, 214 | "@types/react": { 215 | "optional": true 216 | }, 217 | "react-devtools": { 218 | "optional": true 219 | } 220 | } 221 | }, 222 | "node_modules/@raycast/eslint-config": { 223 | "version": "1.0.11", 224 | "resolved": "https://bnpm.byted.org/@raycast/eslint-config/-/eslint-config-1.0.11.tgz", 225 | "integrity": "sha512-I0Lt8bwahVGkANUBxripIxKptMBz1Ou+UXGwfqgFvKwo1gVLrnlEngxaspQJA8L5pvzQkQMwizVCSgNC3bddWg==", 226 | "dev": true, 227 | "dependencies": { 228 | "@raycast/eslint-plugin": "^1.0.11", 229 | "@rushstack/eslint-patch": "^1.10.4", 230 | "@typescript-eslint/eslint-plugin": "^6.8.0", 231 | "@typescript-eslint/parser": "^6.8.0", 232 | "eslint-config-prettier": "^9.1.0" 233 | }, 234 | "peerDependencies": { 235 | "eslint": ">=7", 236 | "prettier": ">=2", 237 | "typescript": ">=4" 238 | } 239 | }, 240 | "node_modules/@raycast/eslint-plugin": { 241 | "version": "1.0.11", 242 | "resolved": "https://bnpm.byted.org/@raycast/eslint-plugin/-/eslint-plugin-1.0.11.tgz", 243 | "integrity": "sha512-NbQQYlZnsMp2P4l1qis//PpokzbHpv5cSJKOxDtrNHqYrOwKh/SI0GVeueBOhNIhcGAh4qq2ElrXQkVhsjCKDQ==", 244 | "dev": true, 245 | "dependencies": { 246 | "@typescript-eslint/utils": "^5.62.0" 247 | }, 248 | "peerDependencies": { 249 | "eslint": ">=7" 250 | } 251 | }, 252 | "node_modules/@raycast/utils": { 253 | "version": "1.17.0", 254 | "resolved": "https://bnpm.byted.org/@raycast/utils/-/utils-1.17.0.tgz", 255 | "integrity": "sha512-w5XOiNmy67goFUZpnrf4YGcWpzX7SIoTD1+Di2h85EQRZip+2D0hEgyKmwMrnjcbsrCJxc2SBlYwn3zoxPTgXQ==", 256 | "dependencies": { 257 | "cross-fetch": "^3.1.6", 258 | "dequal": "^2.0.3", 259 | "object-hash": "^3.0.0", 260 | "signal-exit": "^4.0.2", 261 | "stream-chain": "^2.2.5", 262 | "stream-json": "^1.8.0" 263 | }, 264 | "peerDependencies": { 265 | "@raycast/api": ">=1.69.0" 266 | } 267 | }, 268 | "node_modules/@rushstack/eslint-patch": { 269 | "version": "1.10.4", 270 | "resolved": "https://bnpm.byted.org/@rushstack/eslint-patch/-/eslint-patch-1.10.4.tgz", 271 | "integrity": "sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==", 272 | "dev": true 273 | }, 274 | "node_modules/@types/json-schema": { 275 | "version": "7.0.15", 276 | "resolved": "https://bnpm.byted.org/@types/json-schema/-/json-schema-7.0.15.tgz", 277 | "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", 278 | "dev": true 279 | }, 280 | "node_modules/@types/node": { 281 | "version": "20.8.10", 282 | "resolved": "https://bnpm.byted.org/@types/node/-/node-20.8.10.tgz", 283 | "integrity": "sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==", 284 | "dependencies": { 285 | "undici-types": "~5.26.4" 286 | } 287 | }, 288 | "node_modules/@types/prop-types": { 289 | "version": "15.7.12", 290 | "resolved": "https://bnpm.byted.org/@types/prop-types/-/prop-types-15.7.12.tgz", 291 | "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==" 292 | }, 293 | "node_modules/@types/react": { 294 | "version": "18.3.3", 295 | "resolved": "https://bnpm.byted.org/@types/react/-/react-18.3.3.tgz", 296 | "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", 297 | "dependencies": { 298 | "@types/prop-types": "*", 299 | "csstype": "^3.0.2" 300 | } 301 | }, 302 | "node_modules/@types/semver": { 303 | "version": "7.5.8", 304 | "resolved": "https://bnpm.byted.org/@types/semver/-/semver-7.5.8.tgz", 305 | "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", 306 | "dev": true 307 | }, 308 | "node_modules/@typescript-eslint/eslint-plugin": { 309 | "version": "6.21.0", 310 | "resolved": "https://bnpm.byted.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz", 311 | "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==", 312 | "dev": true, 313 | "dependencies": { 314 | "@eslint-community/regexpp": "^4.5.1", 315 | "@typescript-eslint/scope-manager": "6.21.0", 316 | "@typescript-eslint/type-utils": "6.21.0", 317 | "@typescript-eslint/utils": "6.21.0", 318 | "@typescript-eslint/visitor-keys": "6.21.0", 319 | "debug": "^4.3.4", 320 | "graphemer": "^1.4.0", 321 | "ignore": "^5.2.4", 322 | "natural-compare": "^1.4.0", 323 | "semver": "^7.5.4", 324 | "ts-api-utils": "^1.0.1" 325 | }, 326 | "engines": { 327 | "node": "^16.0.0 || >=18.0.0" 328 | }, 329 | "funding": { 330 | "type": "opencollective", 331 | "url": "https://opencollective.com/typescript-eslint" 332 | }, 333 | "peerDependencies": { 334 | "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", 335 | "eslint": "^7.0.0 || ^8.0.0" 336 | }, 337 | "peerDependenciesMeta": { 338 | "typescript": { 339 | "optional": true 340 | } 341 | } 342 | }, 343 | "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { 344 | "version": "6.21.0", 345 | "resolved": "https://bnpm.byted.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", 346 | "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", 347 | "dev": true, 348 | "dependencies": { 349 | "@eslint-community/eslint-utils": "^4.4.0", 350 | "@types/json-schema": "^7.0.12", 351 | "@types/semver": "^7.5.0", 352 | "@typescript-eslint/scope-manager": "6.21.0", 353 | "@typescript-eslint/types": "6.21.0", 354 | "@typescript-eslint/typescript-estree": "6.21.0", 355 | "semver": "^7.5.4" 356 | }, 357 | "engines": { 358 | "node": "^16.0.0 || >=18.0.0" 359 | }, 360 | "funding": { 361 | "type": "opencollective", 362 | "url": "https://opencollective.com/typescript-eslint" 363 | }, 364 | "peerDependencies": { 365 | "eslint": "^7.0.0 || ^8.0.0" 366 | } 367 | }, 368 | "node_modules/@typescript-eslint/parser": { 369 | "version": "6.21.0", 370 | "resolved": "https://bnpm.byted.org/@typescript-eslint/parser/-/parser-6.21.0.tgz", 371 | "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==", 372 | "dev": true, 373 | "dependencies": { 374 | "@typescript-eslint/scope-manager": "6.21.0", 375 | "@typescript-eslint/types": "6.21.0", 376 | "@typescript-eslint/typescript-estree": "6.21.0", 377 | "@typescript-eslint/visitor-keys": "6.21.0", 378 | "debug": "^4.3.4" 379 | }, 380 | "engines": { 381 | "node": "^16.0.0 || >=18.0.0" 382 | }, 383 | "funding": { 384 | "type": "opencollective", 385 | "url": "https://opencollective.com/typescript-eslint" 386 | }, 387 | "peerDependencies": { 388 | "eslint": "^7.0.0 || ^8.0.0" 389 | }, 390 | "peerDependenciesMeta": { 391 | "typescript": { 392 | "optional": true 393 | } 394 | } 395 | }, 396 | "node_modules/@typescript-eslint/scope-manager": { 397 | "version": "6.21.0", 398 | "resolved": "https://bnpm.byted.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", 399 | "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", 400 | "dev": true, 401 | "dependencies": { 402 | "@typescript-eslint/types": "6.21.0", 403 | "@typescript-eslint/visitor-keys": "6.21.0" 404 | }, 405 | "engines": { 406 | "node": "^16.0.0 || >=18.0.0" 407 | }, 408 | "funding": { 409 | "type": "opencollective", 410 | "url": "https://opencollective.com/typescript-eslint" 411 | } 412 | }, 413 | "node_modules/@typescript-eslint/type-utils": { 414 | "version": "6.21.0", 415 | "resolved": "https://bnpm.byted.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz", 416 | "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==", 417 | "dev": true, 418 | "dependencies": { 419 | "@typescript-eslint/typescript-estree": "6.21.0", 420 | "@typescript-eslint/utils": "6.21.0", 421 | "debug": "^4.3.4", 422 | "ts-api-utils": "^1.0.1" 423 | }, 424 | "engines": { 425 | "node": "^16.0.0 || >=18.0.0" 426 | }, 427 | "funding": { 428 | "type": "opencollective", 429 | "url": "https://opencollective.com/typescript-eslint" 430 | }, 431 | "peerDependencies": { 432 | "eslint": "^7.0.0 || ^8.0.0" 433 | }, 434 | "peerDependenciesMeta": { 435 | "typescript": { 436 | "optional": true 437 | } 438 | } 439 | }, 440 | "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils": { 441 | "version": "6.21.0", 442 | "resolved": "https://bnpm.byted.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", 443 | "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", 444 | "dev": true, 445 | "dependencies": { 446 | "@eslint-community/eslint-utils": "^4.4.0", 447 | "@types/json-schema": "^7.0.12", 448 | "@types/semver": "^7.5.0", 449 | "@typescript-eslint/scope-manager": "6.21.0", 450 | "@typescript-eslint/types": "6.21.0", 451 | "@typescript-eslint/typescript-estree": "6.21.0", 452 | "semver": "^7.5.4" 453 | }, 454 | "engines": { 455 | "node": "^16.0.0 || >=18.0.0" 456 | }, 457 | "funding": { 458 | "type": "opencollective", 459 | "url": "https://opencollective.com/typescript-eslint" 460 | }, 461 | "peerDependencies": { 462 | "eslint": "^7.0.0 || ^8.0.0" 463 | } 464 | }, 465 | "node_modules/@typescript-eslint/types": { 466 | "version": "6.21.0", 467 | "resolved": "https://bnpm.byted.org/@typescript-eslint/types/-/types-6.21.0.tgz", 468 | "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", 469 | "dev": true, 470 | "engines": { 471 | "node": "^16.0.0 || >=18.0.0" 472 | }, 473 | "funding": { 474 | "type": "opencollective", 475 | "url": "https://opencollective.com/typescript-eslint" 476 | } 477 | }, 478 | "node_modules/@typescript-eslint/typescript-estree": { 479 | "version": "6.21.0", 480 | "resolved": "https://bnpm.byted.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", 481 | "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", 482 | "dev": true, 483 | "dependencies": { 484 | "@typescript-eslint/types": "6.21.0", 485 | "@typescript-eslint/visitor-keys": "6.21.0", 486 | "debug": "^4.3.4", 487 | "globby": "^11.1.0", 488 | "is-glob": "^4.0.3", 489 | "minimatch": "9.0.3", 490 | "semver": "^7.5.4", 491 | "ts-api-utils": "^1.0.1" 492 | }, 493 | "engines": { 494 | "node": "^16.0.0 || >=18.0.0" 495 | }, 496 | "funding": { 497 | "type": "opencollective", 498 | "url": "https://opencollective.com/typescript-eslint" 499 | }, 500 | "peerDependenciesMeta": { 501 | "typescript": { 502 | "optional": true 503 | } 504 | } 505 | }, 506 | "node_modules/@typescript-eslint/utils": { 507 | "version": "5.62.0", 508 | "resolved": "https://bnpm.byted.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", 509 | "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", 510 | "dev": true, 511 | "dependencies": { 512 | "@eslint-community/eslint-utils": "^4.2.0", 513 | "@types/json-schema": "^7.0.9", 514 | "@types/semver": "^7.3.12", 515 | "@typescript-eslint/scope-manager": "5.62.0", 516 | "@typescript-eslint/types": "5.62.0", 517 | "@typescript-eslint/typescript-estree": "5.62.0", 518 | "eslint-scope": "^5.1.1", 519 | "semver": "^7.3.7" 520 | }, 521 | "engines": { 522 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 523 | }, 524 | "funding": { 525 | "type": "opencollective", 526 | "url": "https://opencollective.com/typescript-eslint" 527 | }, 528 | "peerDependencies": { 529 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 530 | } 531 | }, 532 | "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { 533 | "version": "5.62.0", 534 | "resolved": "https://bnpm.byted.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", 535 | "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", 536 | "dev": true, 537 | "dependencies": { 538 | "@typescript-eslint/types": "5.62.0", 539 | "@typescript-eslint/visitor-keys": "5.62.0" 540 | }, 541 | "engines": { 542 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 543 | }, 544 | "funding": { 545 | "type": "opencollective", 546 | "url": "https://opencollective.com/typescript-eslint" 547 | } 548 | }, 549 | "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { 550 | "version": "5.62.0", 551 | "resolved": "https://bnpm.byted.org/@typescript-eslint/types/-/types-5.62.0.tgz", 552 | "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", 553 | "dev": true, 554 | "engines": { 555 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 556 | }, 557 | "funding": { 558 | "type": "opencollective", 559 | "url": "https://opencollective.com/typescript-eslint" 560 | } 561 | }, 562 | "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { 563 | "version": "5.62.0", 564 | "resolved": "https://bnpm.byted.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", 565 | "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", 566 | "dev": true, 567 | "dependencies": { 568 | "@typescript-eslint/types": "5.62.0", 569 | "@typescript-eslint/visitor-keys": "5.62.0", 570 | "debug": "^4.3.4", 571 | "globby": "^11.1.0", 572 | "is-glob": "^4.0.3", 573 | "semver": "^7.3.7", 574 | "tsutils": "^3.21.0" 575 | }, 576 | "engines": { 577 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 578 | }, 579 | "funding": { 580 | "type": "opencollective", 581 | "url": "https://opencollective.com/typescript-eslint" 582 | }, 583 | "peerDependenciesMeta": { 584 | "typescript": { 585 | "optional": true 586 | } 587 | } 588 | }, 589 | "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { 590 | "version": "5.62.0", 591 | "resolved": "https://bnpm.byted.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", 592 | "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", 593 | "dev": true, 594 | "dependencies": { 595 | "@typescript-eslint/types": "5.62.0", 596 | "eslint-visitor-keys": "^3.3.0" 597 | }, 598 | "engines": { 599 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 600 | }, 601 | "funding": { 602 | "type": "opencollective", 603 | "url": "https://opencollective.com/typescript-eslint" 604 | } 605 | }, 606 | "node_modules/@typescript-eslint/visitor-keys": { 607 | "version": "6.21.0", 608 | "resolved": "https://bnpm.byted.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", 609 | "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", 610 | "dev": true, 611 | "dependencies": { 612 | "@typescript-eslint/types": "6.21.0", 613 | "eslint-visitor-keys": "^3.4.1" 614 | }, 615 | "engines": { 616 | "node": "^16.0.0 || >=18.0.0" 617 | }, 618 | "funding": { 619 | "type": "opencollective", 620 | "url": "https://opencollective.com/typescript-eslint" 621 | } 622 | }, 623 | "node_modules/@ungap/structured-clone": { 624 | "version": "1.2.0", 625 | "resolved": "https://bnpm.byted.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", 626 | "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", 627 | "dev": true 628 | }, 629 | "node_modules/acorn": { 630 | "version": "8.12.1", 631 | "resolved": "https://bnpm.byted.org/acorn/-/acorn-8.12.1.tgz", 632 | "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", 633 | "dev": true, 634 | "bin": { 635 | "acorn": "bin/acorn" 636 | }, 637 | "engines": { 638 | "node": ">=0.4.0" 639 | } 640 | }, 641 | "node_modules/acorn-jsx": { 642 | "version": "5.3.2", 643 | "resolved": "https://bnpm.byted.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 644 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 645 | "dev": true, 646 | "peerDependencies": { 647 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 648 | } 649 | }, 650 | "node_modules/ajv": { 651 | "version": "6.12.6", 652 | "resolved": "https://bnpm.byted.org/ajv/-/ajv-6.12.6.tgz", 653 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 654 | "dev": true, 655 | "dependencies": { 656 | "fast-deep-equal": "^3.1.1", 657 | "fast-json-stable-stringify": "^2.0.0", 658 | "json-schema-traverse": "^0.4.1", 659 | "uri-js": "^4.2.2" 660 | }, 661 | "funding": { 662 | "type": "github", 663 | "url": "https://github.com/sponsors/epoberezkin" 664 | } 665 | }, 666 | "node_modules/ansi-regex": { 667 | "version": "5.0.1", 668 | "resolved": "https://bnpm.byted.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 669 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 670 | "dev": true, 671 | "engines": { 672 | "node": ">=8" 673 | } 674 | }, 675 | "node_modules/ansi-styles": { 676 | "version": "4.3.0", 677 | "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 678 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 679 | "dev": true, 680 | "dependencies": { 681 | "color-convert": "^2.0.1" 682 | }, 683 | "engines": { 684 | "node": ">=8" 685 | }, 686 | "funding": { 687 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 688 | } 689 | }, 690 | "node_modules/argparse": { 691 | "version": "2.0.1", 692 | "resolved": "https://bnpm.byted.org/argparse/-/argparse-2.0.1.tgz", 693 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 694 | "dev": true 695 | }, 696 | "node_modules/array-union": { 697 | "version": "2.1.0", 698 | "resolved": "https://bnpm.byted.org/array-union/-/array-union-2.1.0.tgz", 699 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 700 | "dev": true, 701 | "engines": { 702 | "node": ">=8" 703 | } 704 | }, 705 | "node_modules/balanced-match": { 706 | "version": "1.0.2", 707 | "resolved": "https://bnpm.byted.org/balanced-match/-/balanced-match-1.0.2.tgz", 708 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 709 | "dev": true 710 | }, 711 | "node_modules/brace-expansion": { 712 | "version": "2.0.1", 713 | "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 714 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 715 | "dev": true, 716 | "dependencies": { 717 | "balanced-match": "^1.0.0" 718 | } 719 | }, 720 | "node_modules/braces": { 721 | "version": "3.0.3", 722 | "resolved": "https://bnpm.byted.org/braces/-/braces-3.0.3.tgz", 723 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 724 | "dev": true, 725 | "dependencies": { 726 | "fill-range": "^7.1.1" 727 | }, 728 | "engines": { 729 | "node": ">=8" 730 | } 731 | }, 732 | "node_modules/callsites": { 733 | "version": "3.1.0", 734 | "resolved": "https://bnpm.byted.org/callsites/-/callsites-3.1.0.tgz", 735 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 736 | "dev": true, 737 | "engines": { 738 | "node": ">=6" 739 | } 740 | }, 741 | "node_modules/chalk": { 742 | "version": "4.1.2", 743 | "resolved": "https://bnpm.byted.org/chalk/-/chalk-4.1.2.tgz", 744 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 745 | "dev": true, 746 | "dependencies": { 747 | "ansi-styles": "^4.1.0", 748 | "supports-color": "^7.1.0" 749 | }, 750 | "engines": { 751 | "node": ">=10" 752 | }, 753 | "funding": { 754 | "url": "https://github.com/chalk/chalk?sponsor=1" 755 | } 756 | }, 757 | "node_modules/color-convert": { 758 | "version": "2.0.1", 759 | "resolved": "https://bnpm.byted.org/color-convert/-/color-convert-2.0.1.tgz", 760 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 761 | "dev": true, 762 | "dependencies": { 763 | "color-name": "~1.1.4" 764 | }, 765 | "engines": { 766 | "node": ">=7.0.0" 767 | } 768 | }, 769 | "node_modules/color-name": { 770 | "version": "1.1.4", 771 | "resolved": "https://bnpm.byted.org/color-name/-/color-name-1.1.4.tgz", 772 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 773 | "dev": true 774 | }, 775 | "node_modules/concat-map": { 776 | "version": "0.0.1", 777 | "resolved": "https://bnpm.byted.org/concat-map/-/concat-map-0.0.1.tgz", 778 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 779 | "dev": true 780 | }, 781 | "node_modules/cross-fetch": { 782 | "version": "3.1.8", 783 | "resolved": "https://bnpm.byted.org/cross-fetch/-/cross-fetch-3.1.8.tgz", 784 | "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", 785 | "dependencies": { 786 | "node-fetch": "^2.6.12" 787 | } 788 | }, 789 | "node_modules/cross-spawn": { 790 | "version": "7.0.3", 791 | "resolved": "https://bnpm.byted.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 792 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 793 | "dev": true, 794 | "dependencies": { 795 | "path-key": "^3.1.0", 796 | "shebang-command": "^2.0.0", 797 | "which": "^2.0.1" 798 | }, 799 | "engines": { 800 | "node": ">= 8" 801 | } 802 | }, 803 | "node_modules/csstype": { 804 | "version": "3.1.3", 805 | "resolved": "https://bnpm.byted.org/csstype/-/csstype-3.1.3.tgz", 806 | "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" 807 | }, 808 | "node_modules/debug": { 809 | "version": "4.3.7", 810 | "resolved": "https://bnpm.byted.org/debug/-/debug-4.3.7.tgz", 811 | "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", 812 | "dev": true, 813 | "dependencies": { 814 | "ms": "^2.1.3" 815 | }, 816 | "engines": { 817 | "node": ">=6.0" 818 | }, 819 | "peerDependenciesMeta": { 820 | "supports-color": { 821 | "optional": true 822 | } 823 | } 824 | }, 825 | "node_modules/deep-is": { 826 | "version": "0.1.4", 827 | "resolved": "https://bnpm.byted.org/deep-is/-/deep-is-0.1.4.tgz", 828 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 829 | "dev": true 830 | }, 831 | "node_modules/dequal": { 832 | "version": "2.0.3", 833 | "resolved": "https://bnpm.byted.org/dequal/-/dequal-2.0.3.tgz", 834 | "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", 835 | "engines": { 836 | "node": ">=6" 837 | } 838 | }, 839 | "node_modules/dir-glob": { 840 | "version": "3.0.1", 841 | "resolved": "https://bnpm.byted.org/dir-glob/-/dir-glob-3.0.1.tgz", 842 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 843 | "dev": true, 844 | "dependencies": { 845 | "path-type": "^4.0.0" 846 | }, 847 | "engines": { 848 | "node": ">=8" 849 | } 850 | }, 851 | "node_modules/doctrine": { 852 | "version": "3.0.0", 853 | "resolved": "https://bnpm.byted.org/doctrine/-/doctrine-3.0.0.tgz", 854 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 855 | "dev": true, 856 | "dependencies": { 857 | "esutils": "^2.0.2" 858 | }, 859 | "engines": { 860 | "node": ">=6.0.0" 861 | } 862 | }, 863 | "node_modules/escape-string-regexp": { 864 | "version": "4.0.0", 865 | "resolved": "https://bnpm.byted.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 866 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 867 | "dev": true, 868 | "engines": { 869 | "node": ">=10" 870 | }, 871 | "funding": { 872 | "url": "https://github.com/sponsors/sindresorhus" 873 | } 874 | }, 875 | "node_modules/eslint": { 876 | "version": "8.57.0", 877 | "resolved": "https://bnpm.byted.org/eslint/-/eslint-8.57.0.tgz", 878 | "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", 879 | "dev": true, 880 | "dependencies": { 881 | "@eslint-community/eslint-utils": "^4.2.0", 882 | "@eslint-community/regexpp": "^4.6.1", 883 | "@eslint/eslintrc": "^2.1.4", 884 | "@eslint/js": "8.57.0", 885 | "@humanwhocodes/config-array": "^0.11.14", 886 | "@humanwhocodes/module-importer": "^1.0.1", 887 | "@nodelib/fs.walk": "^1.2.8", 888 | "@ungap/structured-clone": "^1.2.0", 889 | "ajv": "^6.12.4", 890 | "chalk": "^4.0.0", 891 | "cross-spawn": "^7.0.2", 892 | "debug": "^4.3.2", 893 | "doctrine": "^3.0.0", 894 | "escape-string-regexp": "^4.0.0", 895 | "eslint-scope": "^7.2.2", 896 | "eslint-visitor-keys": "^3.4.3", 897 | "espree": "^9.6.1", 898 | "esquery": "^1.4.2", 899 | "esutils": "^2.0.2", 900 | "fast-deep-equal": "^3.1.3", 901 | "file-entry-cache": "^6.0.1", 902 | "find-up": "^5.0.0", 903 | "glob-parent": "^6.0.2", 904 | "globals": "^13.19.0", 905 | "graphemer": "^1.4.0", 906 | "ignore": "^5.2.0", 907 | "imurmurhash": "^0.1.4", 908 | "is-glob": "^4.0.0", 909 | "is-path-inside": "^3.0.3", 910 | "js-yaml": "^4.1.0", 911 | "json-stable-stringify-without-jsonify": "^1.0.1", 912 | "levn": "^0.4.1", 913 | "lodash.merge": "^4.6.2", 914 | "minimatch": "^3.1.2", 915 | "natural-compare": "^1.4.0", 916 | "optionator": "^0.9.3", 917 | "strip-ansi": "^6.0.1", 918 | "text-table": "^0.2.0" 919 | }, 920 | "bin": { 921 | "eslint": "bin/eslint.js" 922 | }, 923 | "engines": { 924 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 925 | }, 926 | "funding": { 927 | "url": "https://opencollective.com/eslint" 928 | } 929 | }, 930 | "node_modules/eslint-config-prettier": { 931 | "version": "9.1.0", 932 | "resolved": "https://bnpm.byted.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", 933 | "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", 934 | "dev": true, 935 | "bin": { 936 | "eslint-config-prettier": "bin/cli.js" 937 | }, 938 | "peerDependencies": { 939 | "eslint": ">=7.0.0" 940 | } 941 | }, 942 | "node_modules/eslint-scope": { 943 | "version": "5.1.1", 944 | "resolved": "https://bnpm.byted.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 945 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 946 | "dev": true, 947 | "dependencies": { 948 | "esrecurse": "^4.3.0", 949 | "estraverse": "^4.1.1" 950 | }, 951 | "engines": { 952 | "node": ">=8.0.0" 953 | } 954 | }, 955 | "node_modules/eslint-visitor-keys": { 956 | "version": "3.4.3", 957 | "resolved": "https://bnpm.byted.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", 958 | "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", 959 | "dev": true, 960 | "engines": { 961 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 962 | }, 963 | "funding": { 964 | "url": "https://opencollective.com/eslint" 965 | } 966 | }, 967 | "node_modules/eslint/node_modules/brace-expansion": { 968 | "version": "1.1.11", 969 | "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 970 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 971 | "dev": true, 972 | "dependencies": { 973 | "balanced-match": "^1.0.0", 974 | "concat-map": "0.0.1" 975 | } 976 | }, 977 | "node_modules/eslint/node_modules/eslint-scope": { 978 | "version": "7.2.2", 979 | "resolved": "https://bnpm.byted.org/eslint-scope/-/eslint-scope-7.2.2.tgz", 980 | "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", 981 | "dev": true, 982 | "dependencies": { 983 | "esrecurse": "^4.3.0", 984 | "estraverse": "^5.2.0" 985 | }, 986 | "engines": { 987 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 988 | }, 989 | "funding": { 990 | "url": "https://opencollective.com/eslint" 991 | } 992 | }, 993 | "node_modules/eslint/node_modules/estraverse": { 994 | "version": "5.3.0", 995 | "resolved": "https://bnpm.byted.org/estraverse/-/estraverse-5.3.0.tgz", 996 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 997 | "dev": true, 998 | "engines": { 999 | "node": ">=4.0" 1000 | } 1001 | }, 1002 | "node_modules/eslint/node_modules/minimatch": { 1003 | "version": "3.1.2", 1004 | "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", 1005 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1006 | "dev": true, 1007 | "dependencies": { 1008 | "brace-expansion": "^1.1.7" 1009 | }, 1010 | "engines": { 1011 | "node": "*" 1012 | } 1013 | }, 1014 | "node_modules/espree": { 1015 | "version": "9.6.1", 1016 | "resolved": "https://bnpm.byted.org/espree/-/espree-9.6.1.tgz", 1017 | "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", 1018 | "dev": true, 1019 | "dependencies": { 1020 | "acorn": "^8.9.0", 1021 | "acorn-jsx": "^5.3.2", 1022 | "eslint-visitor-keys": "^3.4.1" 1023 | }, 1024 | "engines": { 1025 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1026 | }, 1027 | "funding": { 1028 | "url": "https://opencollective.com/eslint" 1029 | } 1030 | }, 1031 | "node_modules/esquery": { 1032 | "version": "1.6.0", 1033 | "resolved": "https://bnpm.byted.org/esquery/-/esquery-1.6.0.tgz", 1034 | "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", 1035 | "dev": true, 1036 | "dependencies": { 1037 | "estraverse": "^5.1.0" 1038 | }, 1039 | "engines": { 1040 | "node": ">=0.10" 1041 | } 1042 | }, 1043 | "node_modules/esquery/node_modules/estraverse": { 1044 | "version": "5.3.0", 1045 | "resolved": "https://bnpm.byted.org/estraverse/-/estraverse-5.3.0.tgz", 1046 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1047 | "dev": true, 1048 | "engines": { 1049 | "node": ">=4.0" 1050 | } 1051 | }, 1052 | "node_modules/esrecurse": { 1053 | "version": "4.3.0", 1054 | "resolved": "https://bnpm.byted.org/esrecurse/-/esrecurse-4.3.0.tgz", 1055 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1056 | "dev": true, 1057 | "dependencies": { 1058 | "estraverse": "^5.2.0" 1059 | }, 1060 | "engines": { 1061 | "node": ">=4.0" 1062 | } 1063 | }, 1064 | "node_modules/esrecurse/node_modules/estraverse": { 1065 | "version": "5.3.0", 1066 | "resolved": "https://bnpm.byted.org/estraverse/-/estraverse-5.3.0.tgz", 1067 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1068 | "dev": true, 1069 | "engines": { 1070 | "node": ">=4.0" 1071 | } 1072 | }, 1073 | "node_modules/estraverse": { 1074 | "version": "4.3.0", 1075 | "resolved": "https://bnpm.byted.org/estraverse/-/estraverse-4.3.0.tgz", 1076 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 1077 | "dev": true, 1078 | "engines": { 1079 | "node": ">=4.0" 1080 | } 1081 | }, 1082 | "node_modules/esutils": { 1083 | "version": "2.0.3", 1084 | "resolved": "https://bnpm.byted.org/esutils/-/esutils-2.0.3.tgz", 1085 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1086 | "dev": true, 1087 | "engines": { 1088 | "node": ">=0.10.0" 1089 | } 1090 | }, 1091 | "node_modules/fast-deep-equal": { 1092 | "version": "3.1.3", 1093 | "resolved": "https://bnpm.byted.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1094 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1095 | "dev": true 1096 | }, 1097 | "node_modules/fast-glob": { 1098 | "version": "3.3.2", 1099 | "resolved": "https://bnpm.byted.org/fast-glob/-/fast-glob-3.3.2.tgz", 1100 | "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", 1101 | "dev": true, 1102 | "dependencies": { 1103 | "@nodelib/fs.stat": "^2.0.2", 1104 | "@nodelib/fs.walk": "^1.2.3", 1105 | "glob-parent": "^5.1.2", 1106 | "merge2": "^1.3.0", 1107 | "micromatch": "^4.0.4" 1108 | }, 1109 | "engines": { 1110 | "node": ">=8.6.0" 1111 | } 1112 | }, 1113 | "node_modules/fast-glob/node_modules/glob-parent": { 1114 | "version": "5.1.2", 1115 | "resolved": "https://bnpm.byted.org/glob-parent/-/glob-parent-5.1.2.tgz", 1116 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1117 | "dev": true, 1118 | "dependencies": { 1119 | "is-glob": "^4.0.1" 1120 | }, 1121 | "engines": { 1122 | "node": ">= 6" 1123 | } 1124 | }, 1125 | "node_modules/fast-json-stable-stringify": { 1126 | "version": "2.1.0", 1127 | "resolved": "https://bnpm.byted.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1128 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1129 | "dev": true 1130 | }, 1131 | "node_modules/fast-levenshtein": { 1132 | "version": "2.0.6", 1133 | "resolved": "https://bnpm.byted.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1134 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1135 | "dev": true 1136 | }, 1137 | "node_modules/fastq": { 1138 | "version": "1.17.1", 1139 | "resolved": "https://bnpm.byted.org/fastq/-/fastq-1.17.1.tgz", 1140 | "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", 1141 | "dev": true, 1142 | "dependencies": { 1143 | "reusify": "^1.0.4" 1144 | } 1145 | }, 1146 | "node_modules/file-entry-cache": { 1147 | "version": "6.0.1", 1148 | "resolved": "https://bnpm.byted.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1149 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1150 | "dev": true, 1151 | "dependencies": { 1152 | "flat-cache": "^3.0.4" 1153 | }, 1154 | "engines": { 1155 | "node": "^10.12.0 || >=12.0.0" 1156 | } 1157 | }, 1158 | "node_modules/fill-range": { 1159 | "version": "7.1.1", 1160 | "resolved": "https://bnpm.byted.org/fill-range/-/fill-range-7.1.1.tgz", 1161 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 1162 | "dev": true, 1163 | "dependencies": { 1164 | "to-regex-range": "^5.0.1" 1165 | }, 1166 | "engines": { 1167 | "node": ">=8" 1168 | } 1169 | }, 1170 | "node_modules/find-up": { 1171 | "version": "5.0.0", 1172 | "resolved": "https://bnpm.byted.org/find-up/-/find-up-5.0.0.tgz", 1173 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1174 | "dev": true, 1175 | "dependencies": { 1176 | "locate-path": "^6.0.0", 1177 | "path-exists": "^4.0.0" 1178 | }, 1179 | "engines": { 1180 | "node": ">=10" 1181 | }, 1182 | "funding": { 1183 | "url": "https://github.com/sponsors/sindresorhus" 1184 | } 1185 | }, 1186 | "node_modules/flat-cache": { 1187 | "version": "3.2.0", 1188 | "resolved": "https://bnpm.byted.org/flat-cache/-/flat-cache-3.2.0.tgz", 1189 | "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", 1190 | "dev": true, 1191 | "dependencies": { 1192 | "flatted": "^3.2.9", 1193 | "keyv": "^4.5.3", 1194 | "rimraf": "^3.0.2" 1195 | }, 1196 | "engines": { 1197 | "node": "^10.12.0 || >=12.0.0" 1198 | } 1199 | }, 1200 | "node_modules/flatted": { 1201 | "version": "3.3.1", 1202 | "resolved": "https://bnpm.byted.org/flatted/-/flatted-3.3.1.tgz", 1203 | "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", 1204 | "dev": true 1205 | }, 1206 | "node_modules/fs.realpath": { 1207 | "version": "1.0.0", 1208 | "resolved": "https://bnpm.byted.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1209 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1210 | "dev": true 1211 | }, 1212 | "node_modules/glob": { 1213 | "version": "7.2.3", 1214 | "resolved": "https://bnpm.byted.org/glob/-/glob-7.2.3.tgz", 1215 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1216 | "deprecated": "Glob versions prior to v9 are no longer supported", 1217 | "dev": true, 1218 | "dependencies": { 1219 | "fs.realpath": "^1.0.0", 1220 | "inflight": "^1.0.4", 1221 | "inherits": "2", 1222 | "minimatch": "^3.1.1", 1223 | "once": "^1.3.0", 1224 | "path-is-absolute": "^1.0.0" 1225 | }, 1226 | "engines": { 1227 | "node": "*" 1228 | }, 1229 | "funding": { 1230 | "url": "https://github.com/sponsors/isaacs" 1231 | } 1232 | }, 1233 | "node_modules/glob-parent": { 1234 | "version": "6.0.2", 1235 | "resolved": "https://bnpm.byted.org/glob-parent/-/glob-parent-6.0.2.tgz", 1236 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1237 | "dev": true, 1238 | "dependencies": { 1239 | "is-glob": "^4.0.3" 1240 | }, 1241 | "engines": { 1242 | "node": ">=10.13.0" 1243 | } 1244 | }, 1245 | "node_modules/glob/node_modules/brace-expansion": { 1246 | "version": "1.1.11", 1247 | "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1248 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1249 | "dev": true, 1250 | "dependencies": { 1251 | "balanced-match": "^1.0.0", 1252 | "concat-map": "0.0.1" 1253 | } 1254 | }, 1255 | "node_modules/glob/node_modules/minimatch": { 1256 | "version": "3.1.2", 1257 | "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", 1258 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1259 | "dev": true, 1260 | "dependencies": { 1261 | "brace-expansion": "^1.1.7" 1262 | }, 1263 | "engines": { 1264 | "node": "*" 1265 | } 1266 | }, 1267 | "node_modules/globals": { 1268 | "version": "13.24.0", 1269 | "resolved": "https://bnpm.byted.org/globals/-/globals-13.24.0.tgz", 1270 | "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", 1271 | "dev": true, 1272 | "dependencies": { 1273 | "type-fest": "^0.20.2" 1274 | }, 1275 | "engines": { 1276 | "node": ">=8" 1277 | }, 1278 | "funding": { 1279 | "url": "https://github.com/sponsors/sindresorhus" 1280 | } 1281 | }, 1282 | "node_modules/globby": { 1283 | "version": "11.1.0", 1284 | "resolved": "https://bnpm.byted.org/globby/-/globby-11.1.0.tgz", 1285 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 1286 | "dev": true, 1287 | "dependencies": { 1288 | "array-union": "^2.1.0", 1289 | "dir-glob": "^3.0.1", 1290 | "fast-glob": "^3.2.9", 1291 | "ignore": "^5.2.0", 1292 | "merge2": "^1.4.1", 1293 | "slash": "^3.0.0" 1294 | }, 1295 | "engines": { 1296 | "node": ">=10" 1297 | }, 1298 | "funding": { 1299 | "url": "https://github.com/sponsors/sindresorhus" 1300 | } 1301 | }, 1302 | "node_modules/graphemer": { 1303 | "version": "1.4.0", 1304 | "resolved": "https://bnpm.byted.org/graphemer/-/graphemer-1.4.0.tgz", 1305 | "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", 1306 | "dev": true 1307 | }, 1308 | "node_modules/has-flag": { 1309 | "version": "4.0.0", 1310 | "resolved": "https://bnpm.byted.org/has-flag/-/has-flag-4.0.0.tgz", 1311 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1312 | "dev": true, 1313 | "engines": { 1314 | "node": ">=8" 1315 | } 1316 | }, 1317 | "node_modules/ignore": { 1318 | "version": "5.3.2", 1319 | "resolved": "https://bnpm.byted.org/ignore/-/ignore-5.3.2.tgz", 1320 | "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", 1321 | "dev": true, 1322 | "engines": { 1323 | "node": ">= 4" 1324 | } 1325 | }, 1326 | "node_modules/import-fresh": { 1327 | "version": "3.3.0", 1328 | "resolved": "https://bnpm.byted.org/import-fresh/-/import-fresh-3.3.0.tgz", 1329 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1330 | "dev": true, 1331 | "dependencies": { 1332 | "parent-module": "^1.0.0", 1333 | "resolve-from": "^4.0.0" 1334 | }, 1335 | "engines": { 1336 | "node": ">=6" 1337 | }, 1338 | "funding": { 1339 | "url": "https://github.com/sponsors/sindresorhus" 1340 | } 1341 | }, 1342 | "node_modules/imurmurhash": { 1343 | "version": "0.1.4", 1344 | "resolved": "https://bnpm.byted.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1345 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1346 | "dev": true, 1347 | "engines": { 1348 | "node": ">=0.8.19" 1349 | } 1350 | }, 1351 | "node_modules/inflight": { 1352 | "version": "1.0.6", 1353 | "resolved": "https://bnpm.byted.org/inflight/-/inflight-1.0.6.tgz", 1354 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1355 | "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", 1356 | "dev": true, 1357 | "dependencies": { 1358 | "once": "^1.3.0", 1359 | "wrappy": "1" 1360 | } 1361 | }, 1362 | "node_modules/inherits": { 1363 | "version": "2.0.4", 1364 | "resolved": "https://bnpm.byted.org/inherits/-/inherits-2.0.4.tgz", 1365 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1366 | "dev": true 1367 | }, 1368 | "node_modules/is-extglob": { 1369 | "version": "2.1.1", 1370 | "resolved": "https://bnpm.byted.org/is-extglob/-/is-extglob-2.1.1.tgz", 1371 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1372 | "dev": true, 1373 | "engines": { 1374 | "node": ">=0.10.0" 1375 | } 1376 | }, 1377 | "node_modules/is-glob": { 1378 | "version": "4.0.3", 1379 | "resolved": "https://bnpm.byted.org/is-glob/-/is-glob-4.0.3.tgz", 1380 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1381 | "dev": true, 1382 | "dependencies": { 1383 | "is-extglob": "^2.1.1" 1384 | }, 1385 | "engines": { 1386 | "node": ">=0.10.0" 1387 | } 1388 | }, 1389 | "node_modules/is-number": { 1390 | "version": "7.0.0", 1391 | "resolved": "https://bnpm.byted.org/is-number/-/is-number-7.0.0.tgz", 1392 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1393 | "dev": true, 1394 | "engines": { 1395 | "node": ">=0.12.0" 1396 | } 1397 | }, 1398 | "node_modules/is-path-inside": { 1399 | "version": "3.0.3", 1400 | "resolved": "https://bnpm.byted.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1401 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1402 | "dev": true, 1403 | "engines": { 1404 | "node": ">=8" 1405 | } 1406 | }, 1407 | "node_modules/isexe": { 1408 | "version": "2.0.0", 1409 | "resolved": "https://bnpm.byted.org/isexe/-/isexe-2.0.0.tgz", 1410 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1411 | "dev": true 1412 | }, 1413 | "node_modules/js-tokens": { 1414 | "version": "4.0.0", 1415 | "resolved": "https://bnpm.byted.org/js-tokens/-/js-tokens-4.0.0.tgz", 1416 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" 1417 | }, 1418 | "node_modules/js-yaml": { 1419 | "version": "4.1.0", 1420 | "resolved": "https://bnpm.byted.org/js-yaml/-/js-yaml-4.1.0.tgz", 1421 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1422 | "dev": true, 1423 | "dependencies": { 1424 | "argparse": "^2.0.1" 1425 | }, 1426 | "bin": { 1427 | "js-yaml": "bin/js-yaml.js" 1428 | } 1429 | }, 1430 | "node_modules/json-buffer": { 1431 | "version": "3.0.1", 1432 | "resolved": "https://bnpm.byted.org/json-buffer/-/json-buffer-3.0.1.tgz", 1433 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", 1434 | "dev": true 1435 | }, 1436 | "node_modules/json-schema-traverse": { 1437 | "version": "0.4.1", 1438 | "resolved": "https://bnpm.byted.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1439 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1440 | "dev": true 1441 | }, 1442 | "node_modules/json-stable-stringify-without-jsonify": { 1443 | "version": "1.0.1", 1444 | "resolved": "https://bnpm.byted.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1445 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1446 | "dev": true 1447 | }, 1448 | "node_modules/keyv": { 1449 | "version": "4.5.4", 1450 | "resolved": "https://bnpm.byted.org/keyv/-/keyv-4.5.4.tgz", 1451 | "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", 1452 | "dev": true, 1453 | "dependencies": { 1454 | "json-buffer": "3.0.1" 1455 | } 1456 | }, 1457 | "node_modules/levn": { 1458 | "version": "0.4.1", 1459 | "resolved": "https://bnpm.byted.org/levn/-/levn-0.4.1.tgz", 1460 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1461 | "dev": true, 1462 | "dependencies": { 1463 | "prelude-ls": "^1.2.1", 1464 | "type-check": "~0.4.0" 1465 | }, 1466 | "engines": { 1467 | "node": ">= 0.8.0" 1468 | } 1469 | }, 1470 | "node_modules/locate-path": { 1471 | "version": "6.0.0", 1472 | "resolved": "https://bnpm.byted.org/locate-path/-/locate-path-6.0.0.tgz", 1473 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1474 | "dev": true, 1475 | "dependencies": { 1476 | "p-locate": "^5.0.0" 1477 | }, 1478 | "engines": { 1479 | "node": ">=10" 1480 | }, 1481 | "funding": { 1482 | "url": "https://github.com/sponsors/sindresorhus" 1483 | } 1484 | }, 1485 | "node_modules/lodash.merge": { 1486 | "version": "4.6.2", 1487 | "resolved": "https://bnpm.byted.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1488 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1489 | "dev": true 1490 | }, 1491 | "node_modules/loose-envify": { 1492 | "version": "1.4.0", 1493 | "resolved": "https://bnpm.byted.org/loose-envify/-/loose-envify-1.4.0.tgz", 1494 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", 1495 | "dependencies": { 1496 | "js-tokens": "^3.0.0 || ^4.0.0" 1497 | }, 1498 | "bin": { 1499 | "loose-envify": "cli.js" 1500 | } 1501 | }, 1502 | "node_modules/merge2": { 1503 | "version": "1.4.1", 1504 | "resolved": "https://bnpm.byted.org/merge2/-/merge2-1.4.1.tgz", 1505 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1506 | "dev": true, 1507 | "engines": { 1508 | "node": ">= 8" 1509 | } 1510 | }, 1511 | "node_modules/micromatch": { 1512 | "version": "4.0.8", 1513 | "resolved": "https://bnpm.byted.org/micromatch/-/micromatch-4.0.8.tgz", 1514 | "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", 1515 | "dev": true, 1516 | "dependencies": { 1517 | "braces": "^3.0.3", 1518 | "picomatch": "^2.3.1" 1519 | }, 1520 | "engines": { 1521 | "node": ">=8.6" 1522 | } 1523 | }, 1524 | "node_modules/minimatch": { 1525 | "version": "9.0.3", 1526 | "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-9.0.3.tgz", 1527 | "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", 1528 | "dev": true, 1529 | "dependencies": { 1530 | "brace-expansion": "^2.0.1" 1531 | }, 1532 | "engines": { 1533 | "node": ">=16 || 14 >=14.17" 1534 | }, 1535 | "funding": { 1536 | "url": "https://github.com/sponsors/isaacs" 1537 | } 1538 | }, 1539 | "node_modules/ms": { 1540 | "version": "2.1.3", 1541 | "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", 1542 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1543 | "dev": true 1544 | }, 1545 | "node_modules/natural-compare": { 1546 | "version": "1.4.0", 1547 | "resolved": "https://bnpm.byted.org/natural-compare/-/natural-compare-1.4.0.tgz", 1548 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1549 | "dev": true 1550 | }, 1551 | "node_modules/node-fetch": { 1552 | "version": "2.7.0", 1553 | "resolved": "https://bnpm.byted.org/node-fetch/-/node-fetch-2.7.0.tgz", 1554 | "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", 1555 | "dependencies": { 1556 | "whatwg-url": "^5.0.0" 1557 | }, 1558 | "engines": { 1559 | "node": "4.x || >=6.0.0" 1560 | }, 1561 | "peerDependencies": { 1562 | "encoding": "^0.1.0" 1563 | }, 1564 | "peerDependenciesMeta": { 1565 | "encoding": { 1566 | "optional": true 1567 | } 1568 | } 1569 | }, 1570 | "node_modules/object-hash": { 1571 | "version": "3.0.0", 1572 | "resolved": "https://bnpm.byted.org/object-hash/-/object-hash-3.0.0.tgz", 1573 | "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", 1574 | "engines": { 1575 | "node": ">= 6" 1576 | } 1577 | }, 1578 | "node_modules/once": { 1579 | "version": "1.4.0", 1580 | "resolved": "https://bnpm.byted.org/once/-/once-1.4.0.tgz", 1581 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1582 | "dev": true, 1583 | "dependencies": { 1584 | "wrappy": "1" 1585 | } 1586 | }, 1587 | "node_modules/optionator": { 1588 | "version": "0.9.4", 1589 | "resolved": "https://bnpm.byted.org/optionator/-/optionator-0.9.4.tgz", 1590 | "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", 1591 | "dev": true, 1592 | "dependencies": { 1593 | "deep-is": "^0.1.3", 1594 | "fast-levenshtein": "^2.0.6", 1595 | "levn": "^0.4.1", 1596 | "prelude-ls": "^1.2.1", 1597 | "type-check": "^0.4.0", 1598 | "word-wrap": "^1.2.5" 1599 | }, 1600 | "engines": { 1601 | "node": ">= 0.8.0" 1602 | } 1603 | }, 1604 | "node_modules/p-limit": { 1605 | "version": "3.1.0", 1606 | "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-3.1.0.tgz", 1607 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1608 | "dev": true, 1609 | "dependencies": { 1610 | "yocto-queue": "^0.1.0" 1611 | }, 1612 | "engines": { 1613 | "node": ">=10" 1614 | }, 1615 | "funding": { 1616 | "url": "https://github.com/sponsors/sindresorhus" 1617 | } 1618 | }, 1619 | "node_modules/p-locate": { 1620 | "version": "5.0.0", 1621 | "resolved": "https://bnpm.byted.org/p-locate/-/p-locate-5.0.0.tgz", 1622 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1623 | "dev": true, 1624 | "dependencies": { 1625 | "p-limit": "^3.0.2" 1626 | }, 1627 | "engines": { 1628 | "node": ">=10" 1629 | }, 1630 | "funding": { 1631 | "url": "https://github.com/sponsors/sindresorhus" 1632 | } 1633 | }, 1634 | "node_modules/parent-module": { 1635 | "version": "1.0.1", 1636 | "resolved": "https://bnpm.byted.org/parent-module/-/parent-module-1.0.1.tgz", 1637 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1638 | "dev": true, 1639 | "dependencies": { 1640 | "callsites": "^3.0.0" 1641 | }, 1642 | "engines": { 1643 | "node": ">=6" 1644 | } 1645 | }, 1646 | "node_modules/path-exists": { 1647 | "version": "4.0.0", 1648 | "resolved": "https://bnpm.byted.org/path-exists/-/path-exists-4.0.0.tgz", 1649 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1650 | "dev": true, 1651 | "engines": { 1652 | "node": ">=8" 1653 | } 1654 | }, 1655 | "node_modules/path-is-absolute": { 1656 | "version": "1.0.1", 1657 | "resolved": "https://bnpm.byted.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1658 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1659 | "dev": true, 1660 | "engines": { 1661 | "node": ">=0.10.0" 1662 | } 1663 | }, 1664 | "node_modules/path-key": { 1665 | "version": "3.1.1", 1666 | "resolved": "https://bnpm.byted.org/path-key/-/path-key-3.1.1.tgz", 1667 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1668 | "dev": true, 1669 | "engines": { 1670 | "node": ">=8" 1671 | } 1672 | }, 1673 | "node_modules/path-type": { 1674 | "version": "4.0.0", 1675 | "resolved": "https://bnpm.byted.org/path-type/-/path-type-4.0.0.tgz", 1676 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1677 | "dev": true, 1678 | "engines": { 1679 | "node": ">=8" 1680 | } 1681 | }, 1682 | "node_modules/picomatch": { 1683 | "version": "2.3.1", 1684 | "resolved": "https://bnpm.byted.org/picomatch/-/picomatch-2.3.1.tgz", 1685 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1686 | "dev": true, 1687 | "engines": { 1688 | "node": ">=8.6" 1689 | }, 1690 | "funding": { 1691 | "url": "https://github.com/sponsors/jonschlinkert" 1692 | } 1693 | }, 1694 | "node_modules/prelude-ls": { 1695 | "version": "1.2.1", 1696 | "resolved": "https://bnpm.byted.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1697 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1698 | "dev": true, 1699 | "engines": { 1700 | "node": ">= 0.8.0" 1701 | } 1702 | }, 1703 | "node_modules/prettier": { 1704 | "version": "3.3.3", 1705 | "resolved": "https://bnpm.byted.org/prettier/-/prettier-3.3.3.tgz", 1706 | "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", 1707 | "dev": true, 1708 | "bin": { 1709 | "prettier": "bin/prettier.cjs" 1710 | }, 1711 | "engines": { 1712 | "node": ">=14" 1713 | }, 1714 | "funding": { 1715 | "url": "https://github.com/prettier/prettier?sponsor=1" 1716 | } 1717 | }, 1718 | "node_modules/punycode": { 1719 | "version": "2.3.1", 1720 | "resolved": "https://bnpm.byted.org/punycode/-/punycode-2.3.1.tgz", 1721 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1722 | "dev": true, 1723 | "engines": { 1724 | "node": ">=6" 1725 | } 1726 | }, 1727 | "node_modules/queue-microtask": { 1728 | "version": "1.2.3", 1729 | "resolved": "https://bnpm.byted.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1730 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1731 | "dev": true, 1732 | "funding": [ 1733 | { 1734 | "type": "github", 1735 | "url": "https://github.com/sponsors/feross" 1736 | }, 1737 | { 1738 | "type": "patreon", 1739 | "url": "https://www.patreon.com/feross" 1740 | }, 1741 | { 1742 | "type": "consulting", 1743 | "url": "https://feross.org/support" 1744 | } 1745 | ] 1746 | }, 1747 | "node_modules/react": { 1748 | "version": "18.3.1", 1749 | "resolved": "https://bnpm.byted.org/react/-/react-18.3.1.tgz", 1750 | "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", 1751 | "dependencies": { 1752 | "loose-envify": "^1.1.0" 1753 | }, 1754 | "engines": { 1755 | "node": ">=0.10.0" 1756 | } 1757 | }, 1758 | "node_modules/resolve-from": { 1759 | "version": "4.0.0", 1760 | "resolved": "https://bnpm.byted.org/resolve-from/-/resolve-from-4.0.0.tgz", 1761 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1762 | "dev": true, 1763 | "engines": { 1764 | "node": ">=4" 1765 | } 1766 | }, 1767 | "node_modules/reusify": { 1768 | "version": "1.0.4", 1769 | "resolved": "https://bnpm.byted.org/reusify/-/reusify-1.0.4.tgz", 1770 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1771 | "dev": true, 1772 | "engines": { 1773 | "iojs": ">=1.0.0", 1774 | "node": ">=0.10.0" 1775 | } 1776 | }, 1777 | "node_modules/rimraf": { 1778 | "version": "3.0.2", 1779 | "resolved": "https://bnpm.byted.org/rimraf/-/rimraf-3.0.2.tgz", 1780 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1781 | "deprecated": "Rimraf versions prior to v4 are no longer supported", 1782 | "dev": true, 1783 | "dependencies": { 1784 | "glob": "^7.1.3" 1785 | }, 1786 | "bin": { 1787 | "rimraf": "bin.js" 1788 | }, 1789 | "funding": { 1790 | "url": "https://github.com/sponsors/isaacs" 1791 | } 1792 | }, 1793 | "node_modules/run-parallel": { 1794 | "version": "1.2.0", 1795 | "resolved": "https://bnpm.byted.org/run-parallel/-/run-parallel-1.2.0.tgz", 1796 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1797 | "dev": true, 1798 | "funding": [ 1799 | { 1800 | "type": "github", 1801 | "url": "https://github.com/sponsors/feross" 1802 | }, 1803 | { 1804 | "type": "patreon", 1805 | "url": "https://www.patreon.com/feross" 1806 | }, 1807 | { 1808 | "type": "consulting", 1809 | "url": "https://feross.org/support" 1810 | } 1811 | ], 1812 | "dependencies": { 1813 | "queue-microtask": "^1.2.2" 1814 | } 1815 | }, 1816 | "node_modules/semver": { 1817 | "version": "7.6.3", 1818 | "resolved": "https://bnpm.byted.org/semver/-/semver-7.6.3.tgz", 1819 | "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", 1820 | "dev": true, 1821 | "bin": { 1822 | "semver": "bin/semver.js" 1823 | }, 1824 | "engines": { 1825 | "node": ">=10" 1826 | } 1827 | }, 1828 | "node_modules/shebang-command": { 1829 | "version": "2.0.0", 1830 | "resolved": "https://bnpm.byted.org/shebang-command/-/shebang-command-2.0.0.tgz", 1831 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1832 | "dev": true, 1833 | "dependencies": { 1834 | "shebang-regex": "^3.0.0" 1835 | }, 1836 | "engines": { 1837 | "node": ">=8" 1838 | } 1839 | }, 1840 | "node_modules/shebang-regex": { 1841 | "version": "3.0.0", 1842 | "resolved": "https://bnpm.byted.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1843 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1844 | "dev": true, 1845 | "engines": { 1846 | "node": ">=8" 1847 | } 1848 | }, 1849 | "node_modules/signal-exit": { 1850 | "version": "4.1.0", 1851 | "resolved": "https://bnpm.byted.org/signal-exit/-/signal-exit-4.1.0.tgz", 1852 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 1853 | "engines": { 1854 | "node": ">=14" 1855 | }, 1856 | "funding": { 1857 | "url": "https://github.com/sponsors/isaacs" 1858 | } 1859 | }, 1860 | "node_modules/slash": { 1861 | "version": "3.0.0", 1862 | "resolved": "https://bnpm.byted.org/slash/-/slash-3.0.0.tgz", 1863 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 1864 | "dev": true, 1865 | "engines": { 1866 | "node": ">=8" 1867 | } 1868 | }, 1869 | "node_modules/stream-chain": { 1870 | "version": "2.2.5", 1871 | "resolved": "https://bnpm.byted.org/stream-chain/-/stream-chain-2.2.5.tgz", 1872 | "integrity": "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==" 1873 | }, 1874 | "node_modules/stream-json": { 1875 | "version": "1.8.0", 1876 | "resolved": "https://bnpm.byted.org/stream-json/-/stream-json-1.8.0.tgz", 1877 | "integrity": "sha512-HZfXngYHUAr1exT4fxlbc1IOce1RYxp2ldeaf97LYCOPSoOqY/1Psp7iGvpb+6JIOgkra9zDYnPX01hGAHzEPw==", 1878 | "dependencies": { 1879 | "stream-chain": "^2.2.5" 1880 | } 1881 | }, 1882 | "node_modules/strip-ansi": { 1883 | "version": "6.0.1", 1884 | "resolved": "https://bnpm.byted.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1885 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1886 | "dev": true, 1887 | "dependencies": { 1888 | "ansi-regex": "^5.0.1" 1889 | }, 1890 | "engines": { 1891 | "node": ">=8" 1892 | } 1893 | }, 1894 | "node_modules/strip-json-comments": { 1895 | "version": "3.1.1", 1896 | "resolved": "https://bnpm.byted.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1897 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1898 | "dev": true, 1899 | "engines": { 1900 | "node": ">=8" 1901 | }, 1902 | "funding": { 1903 | "url": "https://github.com/sponsors/sindresorhus" 1904 | } 1905 | }, 1906 | "node_modules/supports-color": { 1907 | "version": "7.2.0", 1908 | "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-7.2.0.tgz", 1909 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1910 | "dev": true, 1911 | "dependencies": { 1912 | "has-flag": "^4.0.0" 1913 | }, 1914 | "engines": { 1915 | "node": ">=8" 1916 | } 1917 | }, 1918 | "node_modules/text-table": { 1919 | "version": "0.2.0", 1920 | "resolved": "https://bnpm.byted.org/text-table/-/text-table-0.2.0.tgz", 1921 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 1922 | "dev": true 1923 | }, 1924 | "node_modules/to-regex-range": { 1925 | "version": "5.0.1", 1926 | "resolved": "https://bnpm.byted.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1927 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1928 | "dev": true, 1929 | "dependencies": { 1930 | "is-number": "^7.0.0" 1931 | }, 1932 | "engines": { 1933 | "node": ">=8.0" 1934 | } 1935 | }, 1936 | "node_modules/tr46": { 1937 | "version": "0.0.3", 1938 | "resolved": "https://bnpm.byted.org/tr46/-/tr46-0.0.3.tgz", 1939 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" 1940 | }, 1941 | "node_modules/ts-api-utils": { 1942 | "version": "1.3.0", 1943 | "resolved": "https://bnpm.byted.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", 1944 | "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", 1945 | "dev": true, 1946 | "engines": { 1947 | "node": ">=16" 1948 | }, 1949 | "peerDependencies": { 1950 | "typescript": ">=4.2.0" 1951 | } 1952 | }, 1953 | "node_modules/tslib": { 1954 | "version": "1.14.1", 1955 | "resolved": "https://bnpm.byted.org/tslib/-/tslib-1.14.1.tgz", 1956 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 1957 | "dev": true 1958 | }, 1959 | "node_modules/tsutils": { 1960 | "version": "3.21.0", 1961 | "resolved": "https://bnpm.byted.org/tsutils/-/tsutils-3.21.0.tgz", 1962 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", 1963 | "dev": true, 1964 | "dependencies": { 1965 | "tslib": "^1.8.1" 1966 | }, 1967 | "engines": { 1968 | "node": ">= 6" 1969 | }, 1970 | "peerDependencies": { 1971 | "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" 1972 | } 1973 | }, 1974 | "node_modules/type-check": { 1975 | "version": "0.4.0", 1976 | "resolved": "https://bnpm.byted.org/type-check/-/type-check-0.4.0.tgz", 1977 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 1978 | "dev": true, 1979 | "dependencies": { 1980 | "prelude-ls": "^1.2.1" 1981 | }, 1982 | "engines": { 1983 | "node": ">= 0.8.0" 1984 | } 1985 | }, 1986 | "node_modules/type-fest": { 1987 | "version": "0.20.2", 1988 | "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-0.20.2.tgz", 1989 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 1990 | "dev": true, 1991 | "engines": { 1992 | "node": ">=10" 1993 | }, 1994 | "funding": { 1995 | "url": "https://github.com/sponsors/sindresorhus" 1996 | } 1997 | }, 1998 | "node_modules/typescript": { 1999 | "version": "5.6.2", 2000 | "resolved": "https://bnpm.byted.org/typescript/-/typescript-5.6.2.tgz", 2001 | "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", 2002 | "dev": true, 2003 | "bin": { 2004 | "tsc": "bin/tsc", 2005 | "tsserver": "bin/tsserver" 2006 | }, 2007 | "engines": { 2008 | "node": ">=14.17" 2009 | } 2010 | }, 2011 | "node_modules/undici-types": { 2012 | "version": "5.26.5", 2013 | "resolved": "https://bnpm.byted.org/undici-types/-/undici-types-5.26.5.tgz", 2014 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" 2015 | }, 2016 | "node_modules/uri-js": { 2017 | "version": "4.4.1", 2018 | "resolved": "https://bnpm.byted.org/uri-js/-/uri-js-4.4.1.tgz", 2019 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2020 | "dev": true, 2021 | "dependencies": { 2022 | "punycode": "^2.1.0" 2023 | } 2024 | }, 2025 | "node_modules/webidl-conversions": { 2026 | "version": "3.0.1", 2027 | "resolved": "https://bnpm.byted.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 2028 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" 2029 | }, 2030 | "node_modules/whatwg-url": { 2031 | "version": "5.0.0", 2032 | "resolved": "https://bnpm.byted.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 2033 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", 2034 | "dependencies": { 2035 | "tr46": "~0.0.3", 2036 | "webidl-conversions": "^3.0.0" 2037 | } 2038 | }, 2039 | "node_modules/which": { 2040 | "version": "2.0.2", 2041 | "resolved": "https://bnpm.byted.org/which/-/which-2.0.2.tgz", 2042 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2043 | "dev": true, 2044 | "dependencies": { 2045 | "isexe": "^2.0.0" 2046 | }, 2047 | "bin": { 2048 | "node-which": "bin/node-which" 2049 | }, 2050 | "engines": { 2051 | "node": ">= 8" 2052 | } 2053 | }, 2054 | "node_modules/word-wrap": { 2055 | "version": "1.2.5", 2056 | "resolved": "https://bnpm.byted.org/word-wrap/-/word-wrap-1.2.5.tgz", 2057 | "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", 2058 | "dev": true, 2059 | "engines": { 2060 | "node": ">=0.10.0" 2061 | } 2062 | }, 2063 | "node_modules/wrappy": { 2064 | "version": "1.0.2", 2065 | "resolved": "https://bnpm.byted.org/wrappy/-/wrappy-1.0.2.tgz", 2066 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2067 | "dev": true 2068 | }, 2069 | "node_modules/yocto-queue": { 2070 | "version": "0.1.0", 2071 | "resolved": "https://bnpm.byted.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2072 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2073 | "dev": true, 2074 | "engines": { 2075 | "node": ">=10" 2076 | }, 2077 | "funding": { 2078 | "url": "https://github.com/sponsors/sindresorhus" 2079 | } 2080 | } 2081 | } 2082 | } 2083 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://www.raycast.com/schemas/extension.json", 3 | "name": "chat-any", 4 | "title": "Chat Any", 5 | "description": "Chat with any selected text", 6 | "icon": "extension-icon.png", 7 | "author": "ddhjy2012", 8 | "license": "MIT", 9 | "commands": [ 10 | { 11 | "name": "chat", 12 | "title": "Chat", 13 | "description": "Chat with selected text", 14 | "mode": "no-view" 15 | }, 16 | { 17 | "name": "chat-append", 18 | "title": "Chat Append", 19 | "description": "Append selected text to context", 20 | "mode": "no-view" 21 | } 22 | ], 23 | "preferences": [ 24 | { 25 | "name": "customEditor", 26 | "title": "Editor Application", 27 | "description": "Choose which application to use for opening files", 28 | "type": "appPicker", 29 | "required": true, 30 | "default": "Cursor" 31 | } 32 | ], 33 | "dependencies": { 34 | "@raycast/api": "^1.82.5", 35 | "@raycast/utils": "^1.16.3" 36 | }, 37 | "devDependencies": { 38 | "@raycast/eslint-config": "^1.0.8", 39 | "@types/node": "20.8.10", 40 | "@types/react": "18.3.3", 41 | "eslint": "^8.57.0", 42 | "prettier": "^3.3.3", 43 | "typescript": "^5.4.5" 44 | }, 45 | "scripts": { 46 | "build": "ray build --skip-types -e dist -o dist", 47 | "dev": "ray develop", 48 | "fix-lint": "ray lint --fix", 49 | "lint": "ray lint", 50 | "prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1", 51 | "publish": "npx @raycast/api@latest publish" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/chat-append.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @file chat-append.ts 3 | * @description Entry point for the 'Chat Append' command in the Raycast extension. 4 | * This command collects selected content (Finder items, text, or clipboard) 5 | * and appends it to the existing `context.md` file. 6 | */ 7 | 8 | import { handleChatOperation } from "./common"; 9 | 10 | /** 11 | * Raycast command function that initiates the 'append' operation. 12 | * It calls the common handler function to gather content and append it to the context file. 13 | */ 14 | export default async function Command() { 15 | await handleChatOperation('append'); 16 | } -------------------------------------------------------------------------------- /src/chat.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @file chat.ts 3 | * @description Entry point for the 'Chat' command in the Raycast extension. 4 | * This command collects selected content (Finder items, text, or clipboard) 5 | * and overwrites the `context.md` file with it. 6 | */ 7 | 8 | import { handleChatOperation } from "./common"; 9 | 10 | /** 11 | * Raycast command function that initiates the 'write' operation. 12 | * It calls the common handler function to gather content and overwrite the context file. 13 | */ 14 | export default async function Command() { 15 | await handleChatOperation('write'); 16 | } -------------------------------------------------------------------------------- /src/common.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @file common.ts 3 | * @description Provides common utility functions and core logic for the Chat Any Raycast extension. 4 | * This includes functions for file system operations, content retrieval (Finder, selection, clipboard), 5 | * text processing, and interacting with the specified editor application. 6 | */ 7 | 8 | import fs from 'fs/promises'; 9 | import path from 'path'; 10 | import { homedir } from 'os'; 11 | import { 12 | getSelectedFinderItems, 13 | getSelectedText, 14 | Clipboard, 15 | showHUD, 16 | LocalStorage, 17 | getPreferenceValues, 18 | showToast, 19 | Toast, 20 | } from '@raycast/api'; 21 | import { promisify } from 'util'; 22 | import { exec } from 'child_process'; 23 | 24 | // Constants 25 | const DOCUMENTS_PATH = path.join(homedir(), 'Documents'); // Path to the user's Documents directory. 26 | const CHAT_ANY_PATH = path.join(DOCUMENTS_PATH, 'Chat Any'); // Directory to store the context file. 27 | const FILE_PATH = path.join(CHAT_ANY_PATH, 'context.md'); // Path to the context markdown file. 28 | const DIRECTORY_PATH = CHAT_ANY_PATH; // Path to the directory containing the context file. 29 | 30 | const LAST_CURSOR_OPEN_TIME_KEY = 'lastCursorOpenTime'; // LocalStorage key for tracking the last editor open time. 31 | 32 | // Sets for file filtering 33 | /** Set of file extensions considered as binary or media files, which should be ignored for content reading. */ 34 | const BINARY_MEDIA_EXTENSIONS = new Set([ 35 | '.jpg', 36 | '.jpeg', 37 | '.png', 38 | '.gif', 39 | '.bmp', 40 | '.tiff', 41 | '.mp3', 42 | '.wav', 43 | '.flac', 44 | '.mp4', 45 | '.avi', 46 | '.mkv', 47 | '.exe', 48 | '.dll', 49 | '.bin', 50 | '.iso', 51 | '.zip', 52 | '.rar', 53 | '.xcodeproj', 54 | '.xcworkspace', 55 | '.tiktoken', 56 | ]); 57 | 58 | /** Array of regex patterns for file/directory names that should be ignored during processing. */ 59 | const IGNORED_PATTERNS = [ 60 | /^(node_modules|dist|build|coverage|tmp|logs|public|assets|vendor)$/, 61 | /^\..+/, 62 | /^(package-lock\.json|yarn\.lock)$/, 63 | /^\.vscode$/, 64 | /^\.idea$/, 65 | /^\.env(\.local)?$/, 66 | /^\.cache$/, 67 | /^(bower_components|jspm_packages)$/, 68 | /^\.DS_Store$/, 69 | ]; 70 | 71 | // Utility Functions 72 | 73 | /** 74 | * Ensures that a directory exists. If it does not, creates it recursively. 75 | * @param dirPath - The path of the directory to ensure. 76 | */ 77 | export async function ensureDirectoryExists(dirPath: string): Promise { 78 | try { 79 | await fs.access(dirPath); 80 | } catch { 81 | await fs.mkdir(dirPath, { recursive: true }); 82 | } 83 | } 84 | 85 | /** 86 | * Checks if a file is a binary or media file based on its extension. 87 | * @param fileName - The name of the file to check. 88 | * @returns True if the file is binary or media, otherwise false. 89 | */ 90 | export function isBinaryOrMediaFile(fileName: string): boolean { 91 | const ext = path.extname(fileName).toLowerCase(); 92 | return BINARY_MEDIA_EXTENSIONS.has(ext); 93 | } 94 | 95 | /** 96 | * Checks if an item should be ignored based on its name. 97 | * @param itemName - The name of the item to check. 98 | * @returns True if the item is to be ignored, otherwise false. 99 | */ 100 | export function isIgnoredItem(itemName: string): boolean { 101 | return IGNORED_PATTERNS.some((pattern) => pattern.test(itemName)); 102 | } 103 | 104 | /** 105 | * Determines the type of a given path. 106 | * @param itemPath - The path to check. 107 | * @returns 'directory', 'file', or 'other'. 108 | */ 109 | export async function getFileType(itemPath: string): Promise<'directory' | 'file' | 'other'> { 110 | try { 111 | const stats = await fs.lstat(itemPath); 112 | if (stats.isDirectory()) return 'directory'; 113 | if (stats.isFile()) return 'file'; 114 | } catch { 115 | // Ignore errors 116 | } 117 | return 'other'; 118 | } 119 | 120 | /** 121 | * Recursively reads the contents of a directory, formatting the output. 122 | * It includes a header, directory structure, and the content of each non-ignored file. 123 | * Uses '===' separators for different sections. 124 | * @param dirPath - The directory path to read. 125 | * @param basePath - The base path to prepend for relative paths within the output. Defaults to ''. 126 | * @returns A promise that resolves to a string representing the formatted directory contents. 127 | */ 128 | export async function readDirectoryContents( 129 | dirPath: string, 130 | basePath = '', 131 | ): Promise { 132 | const contentParts: string[] = []; 133 | 134 | // Add repository summary header with directory name 135 | contentParts.push(`This is a merged representation of: ${dirPath}\n===\n`); 136 | 137 | try { 138 | // Add directory structure section 139 | contentParts.push('Directory Structure\n===\n'); 140 | const items = await fs.readdir(dirPath, { withFileTypes: true }); 141 | 142 | // Add current directory as root 143 | contentParts.push(`${path.basename(dirPath)}/`); 144 | 145 | // First pass: Build directory structure 146 | for (const item of items) { 147 | if (!isIgnoredItem(item.name)) { 148 | const relativePath = path.join(basePath, item.name); 149 | // Add indentation for better hierarchy visualization 150 | contentParts.push(` ${item.isDirectory() ? `${relativePath}/` : relativePath}`); 151 | } 152 | } 153 | 154 | // Add files content section 155 | contentParts.push('\n===\nFile Contents\n===\n'); 156 | 157 | // Second pass: Add file contents 158 | const readPromises = items.map(async (item) => { 159 | const itemName = item.name; 160 | const itemPath = path.join(dirPath, itemName); 161 | const relativePath = path.join(basePath, itemName); 162 | 163 | if (isIgnoredItem(itemName)) { 164 | contentParts.push(`File: ${relativePath} (content ignored)\n`); 165 | } else if (isBinaryOrMediaFile(itemName)) { 166 | contentParts.push(`File: ${relativePath} (binary or media file, content ignored)\n`); 167 | } else if (item.isDirectory()) { 168 | const dirContent = await readDirectoryContents(itemPath, relativePath); 169 | contentParts.push(dirContent); 170 | } else { 171 | try { 172 | const fileContent = await fs.readFile(itemPath, 'utf-8'); 173 | contentParts.push(`File: ${relativePath}\n${fileContent}\n`); 174 | } catch (error) { 175 | console.error(`Failed to read file in dir ${dirPath}: ${relativePath}`); 176 | contentParts.push(`File: ${relativePath} (read failed)\n`); 177 | } 178 | } 179 | }); 180 | 181 | await Promise.all(readPromises); 182 | } catch (error) { 183 | console.error(`Failed to read directory: ${dirPath}`, error); 184 | contentParts.push(`Directory: ${dirPath} (read failed)\n`); 185 | } 186 | 187 | return contentParts.join('\n'); 188 | } 189 | 190 | /** 191 | * Recursively builds a string representation of the directory structure, ignoring specified items. 192 | * @param dirPath - The directory path to generate the structure for. 193 | * @param basePath - The base path to prepend for relative paths. Defaults to ''. 194 | * @returns A promise that resolves to a string representing the directory structure, with indentation. 195 | */ 196 | async function getDirectoryStructure(dirPath: string, basePath = ''): Promise { 197 | const items = await fs.readdir(dirPath, { withFileTypes: true }); 198 | const structureParts: string[] = []; 199 | 200 | for (const item of items) { 201 | if (!isIgnoredItem(item.name)) { 202 | const relativePath = path.join(basePath, item.name); 203 | if (item.isDirectory()) { 204 | structureParts.push(`${relativePath}/`); 205 | const subDirStructure = await getDirectoryStructure( 206 | path.join(dirPath, item.name), 207 | relativePath, 208 | ); 209 | structureParts.push(subDirStructure); 210 | } else { 211 | structureParts.push(relativePath); 212 | } 213 | } 214 | } 215 | 216 | return structureParts.map((line) => ` ${line}`).join('\n'); 217 | } 218 | 219 | /** 220 | * Recursively counts the number of non-ignored, non-binary files within a directory or returns 1 if it's a single valid file. 221 | * @param itemPath - The path of the directory or file to count files in. 222 | * @returns A promise that resolves to the total count of relevant files. 223 | */ 224 | async function countFiles(itemPath: string): Promise { 225 | let count = 0; 226 | const fileType = await getFileType(itemPath); 227 | 228 | if (fileType === 'directory') { 229 | const items = await fs.readdir(itemPath, { withFileTypes: true }); 230 | for (const item of items) { 231 | const subPath = path.join(itemPath, item.name); 232 | if (!isIgnoredItem(item.name)) { 233 | count += await countFiles(subPath); 234 | } 235 | } 236 | } else if (fileType === 'file' && !isBinaryOrMediaFile(itemPath)) { 237 | count = 1; 238 | } 239 | 240 | return count; 241 | } 242 | 243 | /** 244 | * Retrieves and formats content from the items currently selected in Finder. 245 | * Handles both files and directories, ignoring specified patterns and binary files. 246 | * The output includes a file count, overall structure, and detailed contents. 247 | * @returns A promise that resolves to a string containing the combined and formatted content, or an empty string if no items are selected or an error occurs. 248 | */ 249 | export async function getContentFromSelectedItems(): Promise { 250 | const contentParts: string[] = []; 251 | let totalFiles = 0; 252 | 253 | try { 254 | const selectedItems = await getSelectedFinderItems().catch(() => []); 255 | 256 | if (selectedItems.length === 0) { 257 | return ''; 258 | } 259 | 260 | // Count total files 261 | const countPromises = selectedItems.map(item => { 262 | if (!isIgnoredItem(path.basename(item.path))) { 263 | return countFiles(item.path); 264 | } 265 | return Promise.resolve(0); 266 | }); 267 | const fileCounts = await Promise.all(countPromises); 268 | totalFiles = fileCounts.reduce((sum, count) => sum + count, 0); 269 | 270 | // Add file count information at the beginning 271 | contentParts.push(`Total Files: ${totalFiles}\n`); 272 | 273 | // Add overall summary header 274 | contentParts.push('This is a merged representation of selected items:\n===\n'); 275 | 276 | // Add overall directory structure section 277 | contentParts.push('Overall Directory Structure\n===\n'); 278 | const structureParts: string[] = []; 279 | 280 | for (const item of selectedItems) { 281 | const itemPath = item.path; 282 | const itemName = path.basename(itemPath); 283 | const fileType = await getFileType(itemPath); 284 | const relativePath = itemName; 285 | 286 | if (isIgnoredItem(itemName)) { 287 | continue; 288 | } 289 | 290 | if (fileType === 'directory') { 291 | structureParts.push(`${relativePath}/`); 292 | const dirStructure = await getDirectoryStructure(itemPath, relativePath); 293 | structureParts.push(dirStructure); 294 | } else if (fileType === 'file') { 295 | structureParts.push(relativePath); 296 | } 297 | } 298 | 299 | contentParts.push(structureParts.join('\n')); 300 | 301 | // Add detailed contents section 302 | contentParts.push('\n===\nDetailed Contents\n===\n'); 303 | 304 | const readPromises = selectedItems.map(async (item) => { 305 | const itemName = path.basename(item.path); 306 | const itemPath = item.path; 307 | 308 | if (isIgnoredItem(itemName)) { 309 | contentParts.push(`${itemPath} (content ignored)\n`); 310 | return; 311 | } 312 | 313 | const fileType = await getFileType(itemPath); 314 | 315 | if (fileType === 'directory') { 316 | const dirContent = await readDirectoryContents(itemPath, itemName); 317 | contentParts.push(dirContent); 318 | } else if (fileType === 'file') { 319 | if (isBinaryOrMediaFile(itemPath)) { 320 | contentParts.push(`File: ${itemName} (binary or media file, content ignored)\n`); 321 | } else { 322 | try { 323 | const fileContent = await fs.readFile(itemPath, 'utf-8'); 324 | contentParts.push(`File: ${itemName}\n${fileContent}\n`); 325 | } catch (error) { 326 | console.error(`Failed to read file: ${itemPath}`, error); 327 | contentParts.push(`File: ${itemName} (read failed)\n`); 328 | } 329 | } 330 | } 331 | }); 332 | 333 | await Promise.all(readPromises); 334 | } catch (error) { 335 | console.error('Failed to get selected Finder items', error); 336 | } 337 | 338 | return contentParts.join('\n'); 339 | } 340 | 341 | /** 342 | * Retrieves content from the selected text with timeout. 343 | * @param timeout - Timeout in milliseconds 344 | * @returns A string containing the selected text, or empty string if timeout or error. 345 | */ 346 | export async function getContentFromSelectedTextWithTimeout(timeout = 500): Promise { 347 | try { 348 | // 创建一个带超时的Promise 349 | const textPromise = getSelectedText(); 350 | const timeoutPromise = new Promise((_, reject) => { 351 | setTimeout(() => reject(new Error("获取选中文本超时")), timeout); 352 | }); 353 | 354 | // 使用 Promise.race 竞争,谁先完成就返回谁的结果 355 | const text = await Promise.race([textPromise, timeoutPromise]); 356 | return text; 357 | } catch (error) { 358 | if (!(error instanceof Error && error.message === "获取选中文本超时")) { 359 | console.error('Failed to get selected text', error); 360 | } 361 | return ''; 362 | } 363 | } 364 | 365 | /** 366 | * Retrieves content from the clipboard. 367 | * @returns A string containing the clipboard text. 368 | */ 369 | export async function getContentFromClipboard(): Promise { 370 | try { 371 | const clipboardText = await Clipboard.readText(); 372 | return clipboardText || ''; 373 | } catch (error) { 374 | console.error('Failed to get clipboard content', error); 375 | return ''; 376 | } 377 | } 378 | 379 | /** 380 | * Defines the structure for user preferences retrieved from Raycast settings. 381 | */ 382 | interface Preferences { 383 | /** The selected editor application preference. */ 384 | customEditor?: { name: string; path: string }; 385 | } 386 | 387 | /** 388 | * Opens the target directory and context file (`context.md`) in the user-specified editor application. 389 | * Implements logic to avoid reopening the editor too frequently for 'append' operations. 390 | * - If the operation is 'write', it always opens the editor. 391 | * - If the operation is 'append': 392 | * - If the editor hasn't been opened in the last 10 minutes, it behaves like 'write' (resetting context). 393 | * - If the editor was opened more than 1 minute ago, it reopens the editor and file. 394 | * - If the editor was opened within the last minute, it only shows a HUD notification. 395 | * - If the editor is 'Cursor' and it's an 'append' operation that reopens the editor, it attempts 396 | * to scroll to the bottom using AppleScript. 397 | * @param operation - The type of operation: 'write' (overwrite context) or 'append' (add to context). 398 | * @throws Will throw an error if opening the application or executing AppleScript fails. 399 | */ 400 | export async function openDirectoryAndFile(operation: 'write' | 'append'): Promise { 401 | const execPromise = promisify(exec); 402 | const currentTime = Date.now(); 403 | const preferences = getPreferenceValues(); 404 | const editorApp = preferences.customEditor?.name || 'Cursor'; 405 | 406 | try { 407 | const lastOpenTimeString = await LocalStorage.getItem(LAST_CURSOR_OPEN_TIME_KEY); 408 | const lastOpenTime = lastOpenTimeString ? parseInt(lastOpenTimeString as string, 10) : 0; 409 | 410 | // Check if more than 10 minutes have passed 411 | if (currentTime - lastOpenTime > 600000) { 412 | operation = 'write'; 413 | } 414 | 415 | if (operation === 'write' || currentTime - lastOpenTime > 60000) { 416 | // If it's a 'write' operation or more than a minute since last open, open the editor; 417 | await execPromise(`open -a "${editorApp}" "${DIRECTORY_PATH}" "${FILE_PATH}"`); 418 | await LocalStorage.setItem(LAST_CURSOR_OPEN_TIME_KEY, currentTime.toString()); 419 | 420 | if (operation === 'append' && editorApp === 'Cursor') { 421 | const appleScript = ` 422 | tell application "Cursor" 423 | activate 424 | tell application "System Events" 425 | key code 125 using {command down} 426 | end tell 427 | end tell 428 | `; 429 | await execPromise(`osascript -e '${appleScript}'`); 430 | } 431 | } else { 432 | // If it's an 'append' operation and opened within a minute, just show a notification 433 | await showHUD('Append successful'); 434 | } 435 | } catch (error) { 436 | console.error('Failed to open directory or file', error); 437 | throw new Error('Unable to open application or perform operation'); 438 | } 439 | } 440 | 441 | /** 442 | * Displays an error message using HUD. 443 | * @param message - The message to display. 444 | */ 445 | export async function showErrorHUD(message: string): Promise { 446 | try { 447 | await showHUD(message); 448 | } catch (error) { 449 | console.error('Failed to show HUD', error); 450 | } 451 | } 452 | 453 | // Main Operation Function 454 | 455 | /** 456 | * Main handler function for both 'Chat' and 'Chat Append' commands. 457 | * It ensures the target directory exists, retrieves content (prioritizing Finder selection, 458 | * then selected text, then clipboard), writes or appends the content to the `context.md` file, 459 | * and finally opens the file/directory in the configured editor. 460 | * @param operation - The operation mode: 'write' to overwrite the file, or 'append' to add to it. 461 | */ 462 | export async function handleChatOperation(operation: 'write' | 'append'): Promise { 463 | const toast = await showToast({ 464 | style: Toast.Style.Animated, 465 | title: "处理中...", 466 | }); 467 | 468 | try { 469 | // 1. 确保目录存在 470 | await ensureDirectoryExists(CHAT_ANY_PATH); 471 | 472 | // 2. 先启动打开编辑器的过程(如果是append且最近打开过,则不重新打开) 473 | let shouldOpenEditor = true; 474 | if (operation === 'append') { 475 | const lastOpenTimeString = await LocalStorage.getItem(LAST_CURSOR_OPEN_TIME_KEY); 476 | const lastOpenTime = lastOpenTimeString ? parseInt(lastOpenTimeString as string, 10) : 0; 477 | const currentTime = Date.now(); 478 | 479 | // 如果在过去1分钟内打开过,则不重新打开 480 | if (currentTime - lastOpenTime <= 60000) { 481 | shouldOpenEditor = false; 482 | } 483 | } 484 | 485 | // 异步启动编辑器打开操作 486 | let editorPromise: Promise | null = null; 487 | if (shouldOpenEditor) { 488 | // 立即创建一个空文件(如果不存在),以便编辑器有内容可打开 489 | if (operation === 'write') { 490 | try { 491 | // 检查文件是否存在,不存在则创建 492 | await fs.access(FILE_PATH).catch(() => fs.writeFile(FILE_PATH, '', 'utf-8')); 493 | } catch (error) { 494 | console.error('Failed to create initial file:', error); 495 | } 496 | } 497 | 498 | // 异步打开编辑器,不等待完成 499 | editorPromise = (async () => { 500 | try { 501 | await openDirectoryAndFile(operation); 502 | toast.title = "编辑器已打开"; 503 | toast.message = "正在处理内容..."; 504 | } catch (error) { 505 | console.error('Failed to open editor:', error); 506 | } 507 | })(); 508 | } 509 | 510 | // 3. 同时开始获取内容 511 | let text = ''; 512 | let source = 'unknown'; // 记录内容来源 513 | 514 | // 3.1 先检查 Finder 选中项 515 | text = await getContentFromSelectedItems(); 516 | if (text) { 517 | source = 'Finder Items'; 518 | } else { 519 | // 3.2 然后检查选中文本(使用带超时的版本) 520 | text = await getContentFromSelectedTextWithTimeout(500); // 超时时间设为500ms 521 | 522 | if (text) { 523 | source = 'Selected Text'; 524 | } else { 525 | // 3.3 最后才检查剪贴板 526 | text = await getContentFromClipboard(); 527 | 528 | if (text) { 529 | source = 'Clipboard'; 530 | } else { 531 | await showErrorHUD('没有选中文件或文本,剪贴板也为空'); 532 | toast.style = Toast.Style.Failure; 533 | toast.title = "失败"; 534 | toast.message = "未找到内容。"; 535 | 536 | // 如果已经启动了编辑器打开过程,等待它完成 537 | if (editorPromise) { 538 | await editorPromise.catch(() => { }); 539 | } 540 | 541 | return; 542 | } 543 | } 544 | } 545 | 546 | // 4. 内容写入文件 547 | try { 548 | if (operation === 'write') { 549 | await fs.writeFile(FILE_PATH, text, 'utf-8'); 550 | } else { 551 | // 添加换行符以分隔追加的内容 552 | await fs.appendFile(FILE_PATH, `\n\n===\n\n${text}`, 'utf-8'); 553 | } 554 | 555 | // 如果是append且已打开编辑器,尝试滚动到底部 556 | if (operation === 'append' && shouldOpenEditor) { 557 | try { 558 | const preferences = getPreferenceValues(); 559 | const editorApp = preferences.customEditor?.name || 'Cursor'; 560 | 561 | if (editorApp === 'Cursor') { 562 | const execPromise = promisify(exec); 563 | const appleScript = ` 564 | tell application "Cursor" 565 | activate 566 | tell application "System Events" 567 | key code 125 using {command down} 568 | end tell 569 | end tell 570 | `; 571 | await execPromise(`osascript -e '${appleScript}'`); 572 | } 573 | } catch (error) { 574 | console.error('Failed to scroll editor:', error); 575 | } 576 | } 577 | 578 | // 5. 等待编辑器打开完成(如果还在进行中) 579 | if (editorPromise) { 580 | await editorPromise.catch(error => { 581 | console.error('Editor opening process failed:', error); 582 | }); 583 | } else if (!shouldOpenEditor && operation === 'append') { 584 | // 如果没有重新打开编辑器但执行了追加操作,显示通知 585 | await showHUD('内容已追加'); 586 | } 587 | 588 | toast.style = Toast.Style.Success; 589 | toast.title = "成功"; 590 | toast.message = `已处理来自${source}的内容。`; 591 | } catch (error) { 592 | console.error('Failed to write to file', error); 593 | await showErrorHUD('无法写入文件'); 594 | toast.style = Toast.Style.Failure; 595 | toast.title = "失败"; 596 | toast.message = "无法写入文件。"; 597 | 598 | // 如果已经启动了编辑器打开过程,等待它完成 599 | if (editorPromise) { 600 | await editorPromise.catch(() => { }); 601 | } 602 | 603 | return; 604 | } 605 | } catch (error) { 606 | console.error('Operation failed', error); 607 | await showErrorHUD('操作失败'); 608 | toast.style = Toast.Style.Failure; 609 | toast.title = "操作失败"; 610 | toast.message = error instanceof Error ? error.message : String(error); 611 | } 612 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/tsconfig", 3 | "include": ["src/**/*", "raycast-env.d.ts"], 4 | "compilerOptions": { 5 | "lib": ["ES2023"], 6 | "module": "commonjs", 7 | "target": "ES2022", 8 | "strict": true, 9 | "isolatedModules": true, 10 | "esModuleInterop": true, 11 | "skipLibCheck": true, 12 | "forceConsistentCasingInFileNames": true, 13 | "jsx": "react-jsx", 14 | "resolveJsonModule": true 15 | } 16 | } 17 | --------------------------------------------------------------------------------