├── .eslintrc.json
├── .github
└── FUNDING.yml
├── .gitignore
├── .prettierrc.json
├── LICENSE
├── README.md
├── package-lock.json
├── package.json
├── src
├── GPTFunctions.ts
├── index.ts
└── utils.ts
└── tsconfig.json
/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "browser": true,
4 | "es2021": true,
5 | "node": true
6 | },
7 | "extends": [
8 | "eslint:recommended",
9 | "plugin:@typescript-eslint/recommended"
10 | ],
11 | "overrides": [
12 | ],
13 | "parser": "@typescript-eslint/parser",
14 | "parserOptions": {
15 | "ecmaVersion": "latest",
16 | "sourceType": "module"
17 | },
18 | "plugins": [
19 | "@typescript-eslint"
20 | ],
21 | "rules": {
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: AlenVelocity
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
2 | # Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,node
3 | # Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,node
4 |
5 | ### Node ###
6 | # Logs
7 | logs
8 | *.log
9 | npm-debug.log*
10 | yarn-debug.log*
11 | yarn-error.log*
12 | lerna-debug.log*
13 | .pnpm-debug.log*
14 |
15 | # Diagnostic reports (https://nodejs.org/api/report.html)
16 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
17 |
18 | # Runtime data
19 | pids
20 | *.pid
21 | *.seed
22 | *.pid.lock
23 |
24 | # Directory for instrumented libs generated by jscoverage/JSCover
25 | lib-cov
26 |
27 | # Coverage directory used by tools like istanbul
28 | coverage
29 | *.lcov
30 |
31 | # nyc test coverage
32 | .nyc_output
33 |
34 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
35 | .grunt
36 |
37 | # Bower dependency directory (https://bower.io/)
38 | bower_components
39 |
40 | # node-waf configuration
41 | .lock-wscript
42 |
43 | # Compiled binary addons (https://nodejs.org/api/addons.html)
44 | build/Release
45 |
46 | # Dependency directories
47 | node_modules/
48 | jspm_packages/
49 |
50 | # Snowpack dependency directory (https://snowpack.dev/)
51 | web_modules/
52 |
53 | # TypeScript cache
54 | *.tsbuildinfo
55 |
56 | # Optional npm cache directory
57 | .npm
58 |
59 | # Optional eslint cache
60 | .eslintcache
61 |
62 | # Optional stylelint cache
63 | .stylelintcache
64 |
65 | # Microbundle cache
66 | .rpt2_cache/
67 | .rts2_cache_cjs/
68 | .rts2_cache_es/
69 | .rts2_cache_umd/
70 |
71 | # Optional REPL history
72 | .node_repl_history
73 |
74 | # Output of 'npm pack'
75 | *.tgz
76 |
77 | # Yarn Integrity file
78 | .yarn-integrity
79 |
80 | # dotenv environment variable files
81 | .env
82 | .env.development.local
83 | .env.test.local
84 | .env.production.local
85 | .env.local
86 |
87 | # parcel-bundler cache (https://parceljs.org/)
88 | .cache
89 | .parcel-cache
90 |
91 | # Next.js build output
92 | .next
93 | out
94 |
95 | # Nuxt.js build / generate output
96 | .nuxt
97 | dist
98 |
99 | # Gatsby files
100 | .cache/
101 | # Comment in the public line in if your project uses Gatsby and not Next.js
102 | # https://nextjs.org/blog/next-9-1#public-directory-support
103 | # public
104 |
105 | # vuepress build output
106 | .vuepress/dist
107 |
108 | # vuepress v2.x temp and cache directory
109 | .temp
110 |
111 | # Docusaurus cache and generated files
112 | .docusaurus
113 |
114 | # Serverless directories
115 | .serverless/
116 |
117 | # FuseBox cache
118 | .fusebox/
119 |
120 | # DynamoDB Local files
121 | .dynamodb/
122 |
123 | # TernJS port file
124 | .tern-port
125 |
126 | # Stores VSCode versions used for testing VSCode extensions
127 | .vscode-test
128 |
129 | # yarn v2
130 | .yarn/cache
131 | .yarn/unplugged
132 | .yarn/build-state.yml
133 | .yarn/install-state.gz
134 | .pnp.*
135 |
136 | ### Node Patch ###
137 | # Serverless Webpack directories
138 | .webpack/
139 |
140 | # Optional stylelint cache
141 |
142 | # SvelteKit build / generate output
143 | .svelte-kit
144 |
145 | ### VisualStudioCode ###
146 | .vscode/*
147 | !.vscode/settings.json
148 | !.vscode/tasks.json
149 | !.vscode/launch.json
150 | !.vscode/extensions.json
151 | !.vscode/*.code-snippets
152 |
153 | # Local History for Visual Studio Code
154 | .history/
155 |
156 | # Built Visual Studio Code Extensions
157 | *.vsix
158 |
159 | ### VisualStudioCode Patch ###
160 | # Ignore all local history of files
161 | .history
162 | .ionide
163 |
164 | ### Windows ###
165 | # Windows thumbnail cache files
166 | Thumbs.db
167 | Thumbs.db:encryptable
168 | ehthumbs.db
169 | ehthumbs_vista.db
170 |
171 | # Dump file
172 | *.stackdump
173 |
174 | # Folder config file
175 | [Dd]esktop.ini
176 |
177 | # Recycle Bin used on file shares
178 | $RECYCLE.BIN/
179 |
180 | # Windows Installer files
181 | *.cab
182 | *.msi
183 | *.msix
184 | *.msm
185 | *.msp
186 |
187 | # Windows shortcuts
188 | *.lnk
189 |
190 | # End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,node
191 |
192 | # Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
193 |
194 | build
195 | bin/*.bin
196 |
197 |
--------------------------------------------------------------------------------
/.prettierrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "tabWidth": 4,
3 | "printWidth": 120,
4 | "singleQuote": true,
5 | "trailingComma": "none",
6 | "semi": false,
7 | "bracketSpacing": true
8 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Alen Yohannan
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 |
2 |
3 | # GPTFunctions
4 |
5 | ### **Convert raw text into actual Javascript Functions**
6 |
7 |
8 | [](https://github.com/AlenVelocity/gpt-functions/blob/master/LICENSE) [](https://www.codefactor.io/repository/github/AlenVelocity/gpt-functions) [](https://npmjs.com/package/gpt-functions)
9 |
10 |
11 |
12 | ## Installation
13 |
14 | ```shell
15 | npm install gpt-functions
16 | ```
17 |
18 | ## Usage
19 |
20 | ### Initialiaze the GPT Functions class
21 |
22 | ```js
23 | import { GPTFunctions } from 'gpt-functions'
24 |
25 | const API_KEY = 'your-openai-api-key-here'
26 | const gpt = new GPTFunctions(API_KEY)
27 | ```
28 |
29 | ### **.createFunction()**
30 |
31 | #### Example Usage
32 |
33 | ```js
34 | const celsiusToFahrenheit = await gpt.createFunction('convert the given temperature from Celsius to Fahrenheit')
35 |
36 | console.log(celsiusToFahrenheit(25))
37 | console.log(celsiusToFahrenheit(10))
38 | ```
39 | **Output**
40 | ```js
41 | 77
42 | 50
43 | ```
44 |
45 | #### Using the Options Object (Recommended way)
46 | ```js
47 | const permutations = await gpt.createFunction({
48 | func: '(array) => array',
49 | desc: 'Return all permutations of the passed array'
50 | })
51 |
52 | console.log(permutations([1,2,3]))
53 | ```
54 |
55 | **Output**
56 | ```js
57 | [
58 | [ 1, 2, 3 ],
59 | [ 1, 3, 2 ],
60 | [ 2, 1, 3 ],
61 | [ 2, 3, 1 ],
62 | [ 3, 1, 2 ],
63 | [ 3, 2, 1 ]
64 | ]
65 | ```
66 |
67 | **⚠️ WARNING ⚠️**
68 | > NEVER PASS RAW USER INPUT WITHOUT VALIDATING IT FIRST. GPTFUNCTIONS USES THE JS FUNCTION CONSTRUCTOR, WHICH CAN EXECUTE ARBITRARY CODE. AN ATTACKER COULD EXPLOIT THIS TO RUN MALICIOUS CODE ON YOUR SYSTEM. ALWAYS VALIDATE USER INPUT AND SANITIZE IT BEFORE PASSING IT
69 |
70 | .createFunction() is a method that takes a string as the functio description or an object with the following properties as its parameter:
71 |
72 | func: a string that represents the type of the fucntion
73 | desc: a string that describes what the code does
74 | model: the name of the OpenAI model you want to use to execute the code
75 | evaulate: a function evaluates the string to a an actual function `Default: Function Constructor`
76 |
77 | The createFunction() method returns a function that can be called with arguments to execute the code provided in the `func` property.
78 |
79 | Note that the createFunction() function does not execute the code immediately, but instead returns a function that can be used to execute the code later
80 |
81 | ### **GPTFunctions.prototype.getResult()**
82 |
83 | ```js
84 | const result = await gpt.getResult({
85 | func: '(array, array) => array',
86 | args: [['a', 'b', 'c'], ['x', 'y', 'z']],
87 | desc: 'Creates an array of arrays, grouping the elements of each input array based on their index.'
88 | })
89 |
90 | console.log(result)
91 | ```
92 |
93 | **Output**
94 | ```js
95 | [ [ 'a', 'x' ], [ 'b', 'y' ], [ 'c', 'z' ] ]
96 | ```
97 |
98 | GPTFunctions.prototype.getResult() is a function that takes an object with the following properties as its parameter:
99 |
100 | - `func`: a string that represents the code you want to execute
101 | - `args`: an array of arrays containing the arguments to pass to the func.
102 | - `desc`: a string that describes what the code does.
103 | - `model`: the name of the OpenAI model you want to use to execute the code.
104 | - `postProcess`: a function to parse the API response
105 |
106 | The `getResult()` method returns a Promise that resolves to the result of executing the code.
107 |
108 | ## Contribution and Acknowledgments
109 |
110 | If you find any issues or have any suggestions for improvement, please feel free to open an issue or a pull request.
111 |
112 | - [OpenAI API](openai.com)
113 | - [Torantulino/AI_Functions](https://github.com/Torantulino/AI-Functions)
114 |
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "gpt-functions",
3 | "version": "0.0.4",
4 | "lockfileVersion": 3,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "gpt-functions",
9 | "version": "0.0.4",
10 | "license": "MIT",
11 | "dependencies": {
12 | "common-tags": "^1.8.2",
13 | "openai": "^3.2.1"
14 | },
15 | "devDependencies": {
16 | "@types/common-tags": "^1.8.1",
17 | "@typescript-eslint/eslint-plugin": "^5.57.1",
18 | "@typescript-eslint/parser": "^5.57.1",
19 | "eslint": "^8.38.0",
20 | "prettier": "^2.8.7"
21 | }
22 | },
23 | "node_modules/@eslint-community/eslint-utils": {
24 | "version": "4.4.0",
25 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
26 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==",
27 | "dev": true,
28 | "dependencies": {
29 | "eslint-visitor-keys": "^3.3.0"
30 | },
31 | "engines": {
32 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
33 | },
34 | "peerDependencies": {
35 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
36 | }
37 | },
38 | "node_modules/@eslint-community/regexpp": {
39 | "version": "4.5.0",
40 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz",
41 | "integrity": "sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ==",
42 | "dev": true,
43 | "engines": {
44 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
45 | }
46 | },
47 | "node_modules/@eslint/eslintrc": {
48 | "version": "2.0.2",
49 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz",
50 | "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==",
51 | "dev": true,
52 | "dependencies": {
53 | "ajv": "^6.12.4",
54 | "debug": "^4.3.2",
55 | "espree": "^9.5.1",
56 | "globals": "^13.19.0",
57 | "ignore": "^5.2.0",
58 | "import-fresh": "^3.2.1",
59 | "js-yaml": "^4.1.0",
60 | "minimatch": "^3.1.2",
61 | "strip-json-comments": "^3.1.1"
62 | },
63 | "engines": {
64 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
65 | },
66 | "funding": {
67 | "url": "https://opencollective.com/eslint"
68 | }
69 | },
70 | "node_modules/@eslint/js": {
71 | "version": "8.38.0",
72 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.38.0.tgz",
73 | "integrity": "sha512-IoD2MfUnOV58ghIHCiil01PcohxjbYR/qCxsoC+xNgUwh1EY8jOOrYmu3d3a71+tJJ23uscEV4X2HJWMsPJu4g==",
74 | "dev": true,
75 | "engines": {
76 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
77 | }
78 | },
79 | "node_modules/@humanwhocodes/config-array": {
80 | "version": "0.11.8",
81 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz",
82 | "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==",
83 | "dev": true,
84 | "dependencies": {
85 | "@humanwhocodes/object-schema": "^1.2.1",
86 | "debug": "^4.1.1",
87 | "minimatch": "^3.0.5"
88 | },
89 | "engines": {
90 | "node": ">=10.10.0"
91 | }
92 | },
93 | "node_modules/@humanwhocodes/module-importer": {
94 | "version": "1.0.1",
95 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
96 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
97 | "dev": true,
98 | "engines": {
99 | "node": ">=12.22"
100 | },
101 | "funding": {
102 | "type": "github",
103 | "url": "https://github.com/sponsors/nzakas"
104 | }
105 | },
106 | "node_modules/@humanwhocodes/object-schema": {
107 | "version": "1.2.1",
108 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
109 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
110 | "dev": true
111 | },
112 | "node_modules/@nodelib/fs.scandir": {
113 | "version": "2.1.5",
114 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
115 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
116 | "dev": true,
117 | "dependencies": {
118 | "@nodelib/fs.stat": "2.0.5",
119 | "run-parallel": "^1.1.9"
120 | },
121 | "engines": {
122 | "node": ">= 8"
123 | }
124 | },
125 | "node_modules/@nodelib/fs.stat": {
126 | "version": "2.0.5",
127 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
128 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
129 | "dev": true,
130 | "engines": {
131 | "node": ">= 8"
132 | }
133 | },
134 | "node_modules/@nodelib/fs.walk": {
135 | "version": "1.2.8",
136 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
137 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
138 | "dev": true,
139 | "dependencies": {
140 | "@nodelib/fs.scandir": "2.1.5",
141 | "fastq": "^1.6.0"
142 | },
143 | "engines": {
144 | "node": ">= 8"
145 | }
146 | },
147 | "node_modules/@types/common-tags": {
148 | "version": "1.8.1",
149 | "resolved": "https://registry.npmjs.org/@types/common-tags/-/common-tags-1.8.1.tgz",
150 | "integrity": "sha512-20R/mDpKSPWdJs5TOpz3e7zqbeCNuMCPhV7Yndk9KU2Rbij2r5W4RzwDPkzC+2lzUqXYu9rFzTktCBnDjHuNQg==",
151 | "dev": true
152 | },
153 | "node_modules/@types/json-schema": {
154 | "version": "7.0.11",
155 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",
156 | "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",
157 | "dev": true
158 | },
159 | "node_modules/@types/semver": {
160 | "version": "7.3.13",
161 | "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz",
162 | "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==",
163 | "dev": true
164 | },
165 | "node_modules/@typescript-eslint/eslint-plugin": {
166 | "version": "5.57.1",
167 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.57.1.tgz",
168 | "integrity": "sha512-1MeobQkQ9tztuleT3v72XmY0XuKXVXusAhryoLuU5YZ+mXoYKZP9SQ7Flulh1NX4DTjpGTc2b/eMu4u7M7dhnQ==",
169 | "dev": true,
170 | "dependencies": {
171 | "@eslint-community/regexpp": "^4.4.0",
172 | "@typescript-eslint/scope-manager": "5.57.1",
173 | "@typescript-eslint/type-utils": "5.57.1",
174 | "@typescript-eslint/utils": "5.57.1",
175 | "debug": "^4.3.4",
176 | "grapheme-splitter": "^1.0.4",
177 | "ignore": "^5.2.0",
178 | "natural-compare-lite": "^1.4.0",
179 | "semver": "^7.3.7",
180 | "tsutils": "^3.21.0"
181 | },
182 | "engines": {
183 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
184 | },
185 | "funding": {
186 | "type": "opencollective",
187 | "url": "https://opencollective.com/typescript-eslint"
188 | },
189 | "peerDependencies": {
190 | "@typescript-eslint/parser": "^5.0.0",
191 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
192 | },
193 | "peerDependenciesMeta": {
194 | "typescript": {
195 | "optional": true
196 | }
197 | }
198 | },
199 | "node_modules/@typescript-eslint/parser": {
200 | "version": "5.57.1",
201 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.57.1.tgz",
202 | "integrity": "sha512-hlA0BLeVSA/wBPKdPGxoVr9Pp6GutGoY380FEhbVi0Ph4WNe8kLvqIRx76RSQt1lynZKfrXKs0/XeEk4zZycuA==",
203 | "dev": true,
204 | "dependencies": {
205 | "@typescript-eslint/scope-manager": "5.57.1",
206 | "@typescript-eslint/types": "5.57.1",
207 | "@typescript-eslint/typescript-estree": "5.57.1",
208 | "debug": "^4.3.4"
209 | },
210 | "engines": {
211 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
212 | },
213 | "funding": {
214 | "type": "opencollective",
215 | "url": "https://opencollective.com/typescript-eslint"
216 | },
217 | "peerDependencies": {
218 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
219 | },
220 | "peerDependenciesMeta": {
221 | "typescript": {
222 | "optional": true
223 | }
224 | }
225 | },
226 | "node_modules/@typescript-eslint/scope-manager": {
227 | "version": "5.57.1",
228 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.57.1.tgz",
229 | "integrity": "sha512-N/RrBwEUKMIYxSKl0oDK5sFVHd6VI7p9K5MyUlVYAY6dyNb/wHUqndkTd3XhpGlXgnQsBkRZuu4f9kAHghvgPw==",
230 | "dev": true,
231 | "dependencies": {
232 | "@typescript-eslint/types": "5.57.1",
233 | "@typescript-eslint/visitor-keys": "5.57.1"
234 | },
235 | "engines": {
236 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
237 | },
238 | "funding": {
239 | "type": "opencollective",
240 | "url": "https://opencollective.com/typescript-eslint"
241 | }
242 | },
243 | "node_modules/@typescript-eslint/type-utils": {
244 | "version": "5.57.1",
245 | "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.57.1.tgz",
246 | "integrity": "sha512-/RIPQyx60Pt6ga86hKXesXkJ2WOS4UemFrmmq/7eOyiYjYv/MUSHPlkhU6k9T9W1ytnTJueqASW+wOmW4KrViw==",
247 | "dev": true,
248 | "dependencies": {
249 | "@typescript-eslint/typescript-estree": "5.57.1",
250 | "@typescript-eslint/utils": "5.57.1",
251 | "debug": "^4.3.4",
252 | "tsutils": "^3.21.0"
253 | },
254 | "engines": {
255 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
256 | },
257 | "funding": {
258 | "type": "opencollective",
259 | "url": "https://opencollective.com/typescript-eslint"
260 | },
261 | "peerDependencies": {
262 | "eslint": "*"
263 | },
264 | "peerDependenciesMeta": {
265 | "typescript": {
266 | "optional": true
267 | }
268 | }
269 | },
270 | "node_modules/@typescript-eslint/types": {
271 | "version": "5.57.1",
272 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.57.1.tgz",
273 | "integrity": "sha512-bSs4LOgyV3bJ08F5RDqO2KXqg3WAdwHCu06zOqcQ6vqbTJizyBhuh1o1ImC69X4bV2g1OJxbH71PJqiO7Y1RuA==",
274 | "dev": true,
275 | "engines": {
276 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
277 | },
278 | "funding": {
279 | "type": "opencollective",
280 | "url": "https://opencollective.com/typescript-eslint"
281 | }
282 | },
283 | "node_modules/@typescript-eslint/typescript-estree": {
284 | "version": "5.57.1",
285 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.57.1.tgz",
286 | "integrity": "sha512-A2MZqD8gNT0qHKbk2wRspg7cHbCDCk2tcqt6ScCFLr5Ru8cn+TCfM786DjPhqwseiS+PrYwcXht5ztpEQ6TFTw==",
287 | "dev": true,
288 | "dependencies": {
289 | "@typescript-eslint/types": "5.57.1",
290 | "@typescript-eslint/visitor-keys": "5.57.1",
291 | "debug": "^4.3.4",
292 | "globby": "^11.1.0",
293 | "is-glob": "^4.0.3",
294 | "semver": "^7.3.7",
295 | "tsutils": "^3.21.0"
296 | },
297 | "engines": {
298 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
299 | },
300 | "funding": {
301 | "type": "opencollective",
302 | "url": "https://opencollective.com/typescript-eslint"
303 | },
304 | "peerDependenciesMeta": {
305 | "typescript": {
306 | "optional": true
307 | }
308 | }
309 | },
310 | "node_modules/@typescript-eslint/utils": {
311 | "version": "5.57.1",
312 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.57.1.tgz",
313 | "integrity": "sha512-kN6vzzf9NkEtawECqze6v99LtmDiUJCVpvieTFA1uL7/jDghiJGubGZ5csicYHU1Xoqb3oH/R5cN5df6W41Nfg==",
314 | "dev": true,
315 | "dependencies": {
316 | "@eslint-community/eslint-utils": "^4.2.0",
317 | "@types/json-schema": "^7.0.9",
318 | "@types/semver": "^7.3.12",
319 | "@typescript-eslint/scope-manager": "5.57.1",
320 | "@typescript-eslint/types": "5.57.1",
321 | "@typescript-eslint/typescript-estree": "5.57.1",
322 | "eslint-scope": "^5.1.1",
323 | "semver": "^7.3.7"
324 | },
325 | "engines": {
326 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
327 | },
328 | "funding": {
329 | "type": "opencollective",
330 | "url": "https://opencollective.com/typescript-eslint"
331 | },
332 | "peerDependencies": {
333 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
334 | }
335 | },
336 | "node_modules/@typescript-eslint/visitor-keys": {
337 | "version": "5.57.1",
338 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.57.1.tgz",
339 | "integrity": "sha512-RjQrAniDU0CEk5r7iphkm731zKlFiUjvcBS2yHAg8WWqFMCaCrD0rKEVOMUyMMcbGPZ0bPp56srkGWrgfZqLRA==",
340 | "dev": true,
341 | "dependencies": {
342 | "@typescript-eslint/types": "5.57.1",
343 | "eslint-visitor-keys": "^3.3.0"
344 | },
345 | "engines": {
346 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
347 | },
348 | "funding": {
349 | "type": "opencollective",
350 | "url": "https://opencollective.com/typescript-eslint"
351 | }
352 | },
353 | "node_modules/acorn": {
354 | "version": "8.8.2",
355 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
356 | "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==",
357 | "dev": true,
358 | "bin": {
359 | "acorn": "bin/acorn"
360 | },
361 | "engines": {
362 | "node": ">=0.4.0"
363 | }
364 | },
365 | "node_modules/acorn-jsx": {
366 | "version": "5.3.2",
367 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
368 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
369 | "dev": true,
370 | "peerDependencies": {
371 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
372 | }
373 | },
374 | "node_modules/ajv": {
375 | "version": "6.12.6",
376 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
377 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
378 | "dev": true,
379 | "dependencies": {
380 | "fast-deep-equal": "^3.1.1",
381 | "fast-json-stable-stringify": "^2.0.0",
382 | "json-schema-traverse": "^0.4.1",
383 | "uri-js": "^4.2.2"
384 | },
385 | "funding": {
386 | "type": "github",
387 | "url": "https://github.com/sponsors/epoberezkin"
388 | }
389 | },
390 | "node_modules/ansi-regex": {
391 | "version": "5.0.1",
392 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
393 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
394 | "dev": true,
395 | "engines": {
396 | "node": ">=8"
397 | }
398 | },
399 | "node_modules/ansi-styles": {
400 | "version": "4.3.0",
401 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
402 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
403 | "dev": true,
404 | "dependencies": {
405 | "color-convert": "^2.0.1"
406 | },
407 | "engines": {
408 | "node": ">=8"
409 | },
410 | "funding": {
411 | "url": "https://github.com/chalk/ansi-styles?sponsor=1"
412 | }
413 | },
414 | "node_modules/argparse": {
415 | "version": "2.0.1",
416 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
417 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
418 | "dev": true
419 | },
420 | "node_modules/array-union": {
421 | "version": "2.1.0",
422 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
423 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
424 | "dev": true,
425 | "engines": {
426 | "node": ">=8"
427 | }
428 | },
429 | "node_modules/asynckit": {
430 | "version": "0.4.0",
431 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
432 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
433 | },
434 | "node_modules/axios": {
435 | "version": "0.26.1",
436 | "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz",
437 | "integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==",
438 | "dependencies": {
439 | "follow-redirects": "^1.14.8"
440 | }
441 | },
442 | "node_modules/balanced-match": {
443 | "version": "1.0.2",
444 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
445 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
446 | "dev": true
447 | },
448 | "node_modules/brace-expansion": {
449 | "version": "1.1.11",
450 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
451 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
452 | "dev": true,
453 | "dependencies": {
454 | "balanced-match": "^1.0.0",
455 | "concat-map": "0.0.1"
456 | }
457 | },
458 | "node_modules/braces": {
459 | "version": "3.0.2",
460 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
461 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
462 | "dev": true,
463 | "dependencies": {
464 | "fill-range": "^7.0.1"
465 | },
466 | "engines": {
467 | "node": ">=8"
468 | }
469 | },
470 | "node_modules/callsites": {
471 | "version": "3.1.0",
472 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
473 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
474 | "dev": true,
475 | "engines": {
476 | "node": ">=6"
477 | }
478 | },
479 | "node_modules/chalk": {
480 | "version": "4.1.2",
481 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
482 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
483 | "dev": true,
484 | "dependencies": {
485 | "ansi-styles": "^4.1.0",
486 | "supports-color": "^7.1.0"
487 | },
488 | "engines": {
489 | "node": ">=10"
490 | },
491 | "funding": {
492 | "url": "https://github.com/chalk/chalk?sponsor=1"
493 | }
494 | },
495 | "node_modules/color-convert": {
496 | "version": "2.0.1",
497 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
498 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
499 | "dev": true,
500 | "dependencies": {
501 | "color-name": "~1.1.4"
502 | },
503 | "engines": {
504 | "node": ">=7.0.0"
505 | }
506 | },
507 | "node_modules/color-name": {
508 | "version": "1.1.4",
509 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
510 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
511 | "dev": true
512 | },
513 | "node_modules/combined-stream": {
514 | "version": "1.0.8",
515 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
516 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
517 | "dependencies": {
518 | "delayed-stream": "~1.0.0"
519 | },
520 | "engines": {
521 | "node": ">= 0.8"
522 | }
523 | },
524 | "node_modules/common-tags": {
525 | "version": "1.8.2",
526 | "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz",
527 | "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==",
528 | "engines": {
529 | "node": ">=4.0.0"
530 | }
531 | },
532 | "node_modules/concat-map": {
533 | "version": "0.0.1",
534 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
535 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
536 | "dev": true
537 | },
538 | "node_modules/cross-spawn": {
539 | "version": "7.0.3",
540 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
541 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
542 | "dev": true,
543 | "dependencies": {
544 | "path-key": "^3.1.0",
545 | "shebang-command": "^2.0.0",
546 | "which": "^2.0.1"
547 | },
548 | "engines": {
549 | "node": ">= 8"
550 | }
551 | },
552 | "node_modules/debug": {
553 | "version": "4.3.4",
554 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
555 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
556 | "dev": true,
557 | "dependencies": {
558 | "ms": "2.1.2"
559 | },
560 | "engines": {
561 | "node": ">=6.0"
562 | },
563 | "peerDependenciesMeta": {
564 | "supports-color": {
565 | "optional": true
566 | }
567 | }
568 | },
569 | "node_modules/deep-is": {
570 | "version": "0.1.4",
571 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
572 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
573 | "dev": true
574 | },
575 | "node_modules/delayed-stream": {
576 | "version": "1.0.0",
577 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
578 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
579 | "engines": {
580 | "node": ">=0.4.0"
581 | }
582 | },
583 | "node_modules/dir-glob": {
584 | "version": "3.0.1",
585 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
586 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
587 | "dev": true,
588 | "dependencies": {
589 | "path-type": "^4.0.0"
590 | },
591 | "engines": {
592 | "node": ">=8"
593 | }
594 | },
595 | "node_modules/doctrine": {
596 | "version": "3.0.0",
597 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
598 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
599 | "dev": true,
600 | "dependencies": {
601 | "esutils": "^2.0.2"
602 | },
603 | "engines": {
604 | "node": ">=6.0.0"
605 | }
606 | },
607 | "node_modules/escape-string-regexp": {
608 | "version": "4.0.0",
609 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
610 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
611 | "dev": true,
612 | "engines": {
613 | "node": ">=10"
614 | },
615 | "funding": {
616 | "url": "https://github.com/sponsors/sindresorhus"
617 | }
618 | },
619 | "node_modules/eslint": {
620 | "version": "8.38.0",
621 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.38.0.tgz",
622 | "integrity": "sha512-pIdsD2jwlUGf/U38Jv97t8lq6HpaU/G9NKbYmpWpZGw3LdTNhZLbJePqxOXGB5+JEKfOPU/XLxYxFh03nr1KTg==",
623 | "dev": true,
624 | "dependencies": {
625 | "@eslint-community/eslint-utils": "^4.2.0",
626 | "@eslint-community/regexpp": "^4.4.0",
627 | "@eslint/eslintrc": "^2.0.2",
628 | "@eslint/js": "8.38.0",
629 | "@humanwhocodes/config-array": "^0.11.8",
630 | "@humanwhocodes/module-importer": "^1.0.1",
631 | "@nodelib/fs.walk": "^1.2.8",
632 | "ajv": "^6.10.0",
633 | "chalk": "^4.0.0",
634 | "cross-spawn": "^7.0.2",
635 | "debug": "^4.3.2",
636 | "doctrine": "^3.0.0",
637 | "escape-string-regexp": "^4.0.0",
638 | "eslint-scope": "^7.1.1",
639 | "eslint-visitor-keys": "^3.4.0",
640 | "espree": "^9.5.1",
641 | "esquery": "^1.4.2",
642 | "esutils": "^2.0.2",
643 | "fast-deep-equal": "^3.1.3",
644 | "file-entry-cache": "^6.0.1",
645 | "find-up": "^5.0.0",
646 | "glob-parent": "^6.0.2",
647 | "globals": "^13.19.0",
648 | "grapheme-splitter": "^1.0.4",
649 | "ignore": "^5.2.0",
650 | "import-fresh": "^3.0.0",
651 | "imurmurhash": "^0.1.4",
652 | "is-glob": "^4.0.0",
653 | "is-path-inside": "^3.0.3",
654 | "js-sdsl": "^4.1.4",
655 | "js-yaml": "^4.1.0",
656 | "json-stable-stringify-without-jsonify": "^1.0.1",
657 | "levn": "^0.4.1",
658 | "lodash.merge": "^4.6.2",
659 | "minimatch": "^3.1.2",
660 | "natural-compare": "^1.4.0",
661 | "optionator": "^0.9.1",
662 | "strip-ansi": "^6.0.1",
663 | "strip-json-comments": "^3.1.0",
664 | "text-table": "^0.2.0"
665 | },
666 | "bin": {
667 | "eslint": "bin/eslint.js"
668 | },
669 | "engines": {
670 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
671 | },
672 | "funding": {
673 | "url": "https://opencollective.com/eslint"
674 | }
675 | },
676 | "node_modules/eslint-scope": {
677 | "version": "5.1.1",
678 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
679 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
680 | "dev": true,
681 | "dependencies": {
682 | "esrecurse": "^4.3.0",
683 | "estraverse": "^4.1.1"
684 | },
685 | "engines": {
686 | "node": ">=8.0.0"
687 | }
688 | },
689 | "node_modules/eslint-visitor-keys": {
690 | "version": "3.4.0",
691 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz",
692 | "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==",
693 | "dev": true,
694 | "engines": {
695 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
696 | },
697 | "funding": {
698 | "url": "https://opencollective.com/eslint"
699 | }
700 | },
701 | "node_modules/eslint/node_modules/eslint-scope": {
702 | "version": "7.1.1",
703 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz",
704 | "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==",
705 | "dev": true,
706 | "dependencies": {
707 | "esrecurse": "^4.3.0",
708 | "estraverse": "^5.2.0"
709 | },
710 | "engines": {
711 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
712 | }
713 | },
714 | "node_modules/eslint/node_modules/estraverse": {
715 | "version": "5.3.0",
716 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
717 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
718 | "dev": true,
719 | "engines": {
720 | "node": ">=4.0"
721 | }
722 | },
723 | "node_modules/espree": {
724 | "version": "9.5.1",
725 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz",
726 | "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==",
727 | "dev": true,
728 | "dependencies": {
729 | "acorn": "^8.8.0",
730 | "acorn-jsx": "^5.3.2",
731 | "eslint-visitor-keys": "^3.4.0"
732 | },
733 | "engines": {
734 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
735 | },
736 | "funding": {
737 | "url": "https://opencollective.com/eslint"
738 | }
739 | },
740 | "node_modules/esquery": {
741 | "version": "1.5.0",
742 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz",
743 | "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==",
744 | "dev": true,
745 | "dependencies": {
746 | "estraverse": "^5.1.0"
747 | },
748 | "engines": {
749 | "node": ">=0.10"
750 | }
751 | },
752 | "node_modules/esquery/node_modules/estraverse": {
753 | "version": "5.3.0",
754 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
755 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
756 | "dev": true,
757 | "engines": {
758 | "node": ">=4.0"
759 | }
760 | },
761 | "node_modules/esrecurse": {
762 | "version": "4.3.0",
763 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
764 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
765 | "dev": true,
766 | "dependencies": {
767 | "estraverse": "^5.2.0"
768 | },
769 | "engines": {
770 | "node": ">=4.0"
771 | }
772 | },
773 | "node_modules/esrecurse/node_modules/estraverse": {
774 | "version": "5.3.0",
775 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
776 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
777 | "dev": true,
778 | "engines": {
779 | "node": ">=4.0"
780 | }
781 | },
782 | "node_modules/estraverse": {
783 | "version": "4.3.0",
784 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
785 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
786 | "dev": true,
787 | "engines": {
788 | "node": ">=4.0"
789 | }
790 | },
791 | "node_modules/esutils": {
792 | "version": "2.0.3",
793 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
794 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
795 | "dev": true,
796 | "engines": {
797 | "node": ">=0.10.0"
798 | }
799 | },
800 | "node_modules/fast-deep-equal": {
801 | "version": "3.1.3",
802 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
803 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
804 | "dev": true
805 | },
806 | "node_modules/fast-glob": {
807 | "version": "3.2.12",
808 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz",
809 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==",
810 | "dev": true,
811 | "dependencies": {
812 | "@nodelib/fs.stat": "^2.0.2",
813 | "@nodelib/fs.walk": "^1.2.3",
814 | "glob-parent": "^5.1.2",
815 | "merge2": "^1.3.0",
816 | "micromatch": "^4.0.4"
817 | },
818 | "engines": {
819 | "node": ">=8.6.0"
820 | }
821 | },
822 | "node_modules/fast-glob/node_modules/glob-parent": {
823 | "version": "5.1.2",
824 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
825 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
826 | "dev": true,
827 | "dependencies": {
828 | "is-glob": "^4.0.1"
829 | },
830 | "engines": {
831 | "node": ">= 6"
832 | }
833 | },
834 | "node_modules/fast-json-stable-stringify": {
835 | "version": "2.1.0",
836 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
837 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
838 | "dev": true
839 | },
840 | "node_modules/fast-levenshtein": {
841 | "version": "2.0.6",
842 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
843 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
844 | "dev": true
845 | },
846 | "node_modules/fastq": {
847 | "version": "1.15.0",
848 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
849 | "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",
850 | "dev": true,
851 | "dependencies": {
852 | "reusify": "^1.0.4"
853 | }
854 | },
855 | "node_modules/file-entry-cache": {
856 | "version": "6.0.1",
857 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
858 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
859 | "dev": true,
860 | "dependencies": {
861 | "flat-cache": "^3.0.4"
862 | },
863 | "engines": {
864 | "node": "^10.12.0 || >=12.0.0"
865 | }
866 | },
867 | "node_modules/fill-range": {
868 | "version": "7.0.1",
869 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
870 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
871 | "dev": true,
872 | "dependencies": {
873 | "to-regex-range": "^5.0.1"
874 | },
875 | "engines": {
876 | "node": ">=8"
877 | }
878 | },
879 | "node_modules/find-up": {
880 | "version": "5.0.0",
881 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
882 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
883 | "dev": true,
884 | "dependencies": {
885 | "locate-path": "^6.0.0",
886 | "path-exists": "^4.0.0"
887 | },
888 | "engines": {
889 | "node": ">=10"
890 | },
891 | "funding": {
892 | "url": "https://github.com/sponsors/sindresorhus"
893 | }
894 | },
895 | "node_modules/flat-cache": {
896 | "version": "3.0.4",
897 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",
898 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",
899 | "dev": true,
900 | "dependencies": {
901 | "flatted": "^3.1.0",
902 | "rimraf": "^3.0.2"
903 | },
904 | "engines": {
905 | "node": "^10.12.0 || >=12.0.0"
906 | }
907 | },
908 | "node_modules/flatted": {
909 | "version": "3.2.7",
910 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
911 | "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",
912 | "dev": true
913 | },
914 | "node_modules/follow-redirects": {
915 | "version": "1.15.2",
916 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
917 | "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
918 | "funding": [
919 | {
920 | "type": "individual",
921 | "url": "https://github.com/sponsors/RubenVerborgh"
922 | }
923 | ],
924 | "engines": {
925 | "node": ">=4.0"
926 | },
927 | "peerDependenciesMeta": {
928 | "debug": {
929 | "optional": true
930 | }
931 | }
932 | },
933 | "node_modules/form-data": {
934 | "version": "4.0.0",
935 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
936 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
937 | "dependencies": {
938 | "asynckit": "^0.4.0",
939 | "combined-stream": "^1.0.8",
940 | "mime-types": "^2.1.12"
941 | },
942 | "engines": {
943 | "node": ">= 6"
944 | }
945 | },
946 | "node_modules/fs.realpath": {
947 | "version": "1.0.0",
948 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
949 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
950 | "dev": true
951 | },
952 | "node_modules/glob": {
953 | "version": "7.2.3",
954 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
955 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
956 | "dev": true,
957 | "dependencies": {
958 | "fs.realpath": "^1.0.0",
959 | "inflight": "^1.0.4",
960 | "inherits": "2",
961 | "minimatch": "^3.1.1",
962 | "once": "^1.3.0",
963 | "path-is-absolute": "^1.0.0"
964 | },
965 | "engines": {
966 | "node": "*"
967 | },
968 | "funding": {
969 | "url": "https://github.com/sponsors/isaacs"
970 | }
971 | },
972 | "node_modules/glob-parent": {
973 | "version": "6.0.2",
974 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
975 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
976 | "dev": true,
977 | "dependencies": {
978 | "is-glob": "^4.0.3"
979 | },
980 | "engines": {
981 | "node": ">=10.13.0"
982 | }
983 | },
984 | "node_modules/globals": {
985 | "version": "13.20.0",
986 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz",
987 | "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==",
988 | "dev": true,
989 | "dependencies": {
990 | "type-fest": "^0.20.2"
991 | },
992 | "engines": {
993 | "node": ">=8"
994 | },
995 | "funding": {
996 | "url": "https://github.com/sponsors/sindresorhus"
997 | }
998 | },
999 | "node_modules/globby": {
1000 | "version": "11.1.0",
1001 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
1002 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
1003 | "dev": true,
1004 | "dependencies": {
1005 | "array-union": "^2.1.0",
1006 | "dir-glob": "^3.0.1",
1007 | "fast-glob": "^3.2.9",
1008 | "ignore": "^5.2.0",
1009 | "merge2": "^1.4.1",
1010 | "slash": "^3.0.0"
1011 | },
1012 | "engines": {
1013 | "node": ">=10"
1014 | },
1015 | "funding": {
1016 | "url": "https://github.com/sponsors/sindresorhus"
1017 | }
1018 | },
1019 | "node_modules/grapheme-splitter": {
1020 | "version": "1.0.4",
1021 | "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz",
1022 | "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
1023 | "dev": true
1024 | },
1025 | "node_modules/has-flag": {
1026 | "version": "4.0.0",
1027 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
1028 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
1029 | "dev": true,
1030 | "engines": {
1031 | "node": ">=8"
1032 | }
1033 | },
1034 | "node_modules/ignore": {
1035 | "version": "5.2.4",
1036 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
1037 | "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
1038 | "dev": true,
1039 | "engines": {
1040 | "node": ">= 4"
1041 | }
1042 | },
1043 | "node_modules/import-fresh": {
1044 | "version": "3.3.0",
1045 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
1046 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
1047 | "dev": true,
1048 | "dependencies": {
1049 | "parent-module": "^1.0.0",
1050 | "resolve-from": "^4.0.0"
1051 | },
1052 | "engines": {
1053 | "node": ">=6"
1054 | },
1055 | "funding": {
1056 | "url": "https://github.com/sponsors/sindresorhus"
1057 | }
1058 | },
1059 | "node_modules/imurmurhash": {
1060 | "version": "0.1.4",
1061 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
1062 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
1063 | "dev": true,
1064 | "engines": {
1065 | "node": ">=0.8.19"
1066 | }
1067 | },
1068 | "node_modules/inflight": {
1069 | "version": "1.0.6",
1070 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
1071 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
1072 | "dev": true,
1073 | "dependencies": {
1074 | "once": "^1.3.0",
1075 | "wrappy": "1"
1076 | }
1077 | },
1078 | "node_modules/inherits": {
1079 | "version": "2.0.4",
1080 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
1081 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
1082 | "dev": true
1083 | },
1084 | "node_modules/is-extglob": {
1085 | "version": "2.1.1",
1086 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
1087 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
1088 | "dev": true,
1089 | "engines": {
1090 | "node": ">=0.10.0"
1091 | }
1092 | },
1093 | "node_modules/is-glob": {
1094 | "version": "4.0.3",
1095 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
1096 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
1097 | "dev": true,
1098 | "dependencies": {
1099 | "is-extglob": "^2.1.1"
1100 | },
1101 | "engines": {
1102 | "node": ">=0.10.0"
1103 | }
1104 | },
1105 | "node_modules/is-number": {
1106 | "version": "7.0.0",
1107 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
1108 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
1109 | "dev": true,
1110 | "engines": {
1111 | "node": ">=0.12.0"
1112 | }
1113 | },
1114 | "node_modules/is-path-inside": {
1115 | "version": "3.0.3",
1116 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
1117 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
1118 | "dev": true,
1119 | "engines": {
1120 | "node": ">=8"
1121 | }
1122 | },
1123 | "node_modules/isexe": {
1124 | "version": "2.0.0",
1125 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
1126 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
1127 | "dev": true
1128 | },
1129 | "node_modules/js-sdsl": {
1130 | "version": "4.4.0",
1131 | "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz",
1132 | "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==",
1133 | "dev": true,
1134 | "funding": {
1135 | "type": "opencollective",
1136 | "url": "https://opencollective.com/js-sdsl"
1137 | }
1138 | },
1139 | "node_modules/js-yaml": {
1140 | "version": "4.1.0",
1141 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
1142 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
1143 | "dev": true,
1144 | "dependencies": {
1145 | "argparse": "^2.0.1"
1146 | },
1147 | "bin": {
1148 | "js-yaml": "bin/js-yaml.js"
1149 | }
1150 | },
1151 | "node_modules/json-schema-traverse": {
1152 | "version": "0.4.1",
1153 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
1154 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
1155 | "dev": true
1156 | },
1157 | "node_modules/json-stable-stringify-without-jsonify": {
1158 | "version": "1.0.1",
1159 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
1160 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
1161 | "dev": true
1162 | },
1163 | "node_modules/levn": {
1164 | "version": "0.4.1",
1165 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
1166 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
1167 | "dev": true,
1168 | "dependencies": {
1169 | "prelude-ls": "^1.2.1",
1170 | "type-check": "~0.4.0"
1171 | },
1172 | "engines": {
1173 | "node": ">= 0.8.0"
1174 | }
1175 | },
1176 | "node_modules/locate-path": {
1177 | "version": "6.0.0",
1178 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
1179 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
1180 | "dev": true,
1181 | "dependencies": {
1182 | "p-locate": "^5.0.0"
1183 | },
1184 | "engines": {
1185 | "node": ">=10"
1186 | },
1187 | "funding": {
1188 | "url": "https://github.com/sponsors/sindresorhus"
1189 | }
1190 | },
1191 | "node_modules/lodash.merge": {
1192 | "version": "4.6.2",
1193 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
1194 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
1195 | "dev": true
1196 | },
1197 | "node_modules/lru-cache": {
1198 | "version": "6.0.0",
1199 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
1200 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
1201 | "dev": true,
1202 | "dependencies": {
1203 | "yallist": "^4.0.0"
1204 | },
1205 | "engines": {
1206 | "node": ">=10"
1207 | }
1208 | },
1209 | "node_modules/merge2": {
1210 | "version": "1.4.1",
1211 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
1212 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
1213 | "dev": true,
1214 | "engines": {
1215 | "node": ">= 8"
1216 | }
1217 | },
1218 | "node_modules/micromatch": {
1219 | "version": "4.0.5",
1220 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
1221 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
1222 | "dev": true,
1223 | "dependencies": {
1224 | "braces": "^3.0.2",
1225 | "picomatch": "^2.3.1"
1226 | },
1227 | "engines": {
1228 | "node": ">=8.6"
1229 | }
1230 | },
1231 | "node_modules/mime-db": {
1232 | "version": "1.52.0",
1233 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
1234 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
1235 | "engines": {
1236 | "node": ">= 0.6"
1237 | }
1238 | },
1239 | "node_modules/mime-types": {
1240 | "version": "2.1.35",
1241 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
1242 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
1243 | "dependencies": {
1244 | "mime-db": "1.52.0"
1245 | },
1246 | "engines": {
1247 | "node": ">= 0.6"
1248 | }
1249 | },
1250 | "node_modules/minimatch": {
1251 | "version": "3.1.2",
1252 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
1253 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
1254 | "dev": true,
1255 | "dependencies": {
1256 | "brace-expansion": "^1.1.7"
1257 | },
1258 | "engines": {
1259 | "node": "*"
1260 | }
1261 | },
1262 | "node_modules/ms": {
1263 | "version": "2.1.2",
1264 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
1265 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
1266 | "dev": true
1267 | },
1268 | "node_modules/natural-compare": {
1269 | "version": "1.4.0",
1270 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
1271 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
1272 | "dev": true
1273 | },
1274 | "node_modules/natural-compare-lite": {
1275 | "version": "1.4.0",
1276 | "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz",
1277 | "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==",
1278 | "dev": true
1279 | },
1280 | "node_modules/once": {
1281 | "version": "1.4.0",
1282 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1283 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
1284 | "dev": true,
1285 | "dependencies": {
1286 | "wrappy": "1"
1287 | }
1288 | },
1289 | "node_modules/openai": {
1290 | "version": "3.2.1",
1291 | "resolved": "https://registry.npmjs.org/openai/-/openai-3.2.1.tgz",
1292 | "integrity": "sha512-762C9BNlJPbjjlWZi4WYK9iM2tAVAv0uUp1UmI34vb0CN5T2mjB/qM6RYBmNKMh/dN9fC+bxqPwWJZUTWW052A==",
1293 | "dependencies": {
1294 | "axios": "^0.26.0",
1295 | "form-data": "^4.0.0"
1296 | }
1297 | },
1298 | "node_modules/optionator": {
1299 | "version": "0.9.1",
1300 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
1301 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",
1302 | "dev": true,
1303 | "dependencies": {
1304 | "deep-is": "^0.1.3",
1305 | "fast-levenshtein": "^2.0.6",
1306 | "levn": "^0.4.1",
1307 | "prelude-ls": "^1.2.1",
1308 | "type-check": "^0.4.0",
1309 | "word-wrap": "^1.2.3"
1310 | },
1311 | "engines": {
1312 | "node": ">= 0.8.0"
1313 | }
1314 | },
1315 | "node_modules/p-limit": {
1316 | "version": "3.1.0",
1317 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
1318 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
1319 | "dev": true,
1320 | "dependencies": {
1321 | "yocto-queue": "^0.1.0"
1322 | },
1323 | "engines": {
1324 | "node": ">=10"
1325 | },
1326 | "funding": {
1327 | "url": "https://github.com/sponsors/sindresorhus"
1328 | }
1329 | },
1330 | "node_modules/p-locate": {
1331 | "version": "5.0.0",
1332 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
1333 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
1334 | "dev": true,
1335 | "dependencies": {
1336 | "p-limit": "^3.0.2"
1337 | },
1338 | "engines": {
1339 | "node": ">=10"
1340 | },
1341 | "funding": {
1342 | "url": "https://github.com/sponsors/sindresorhus"
1343 | }
1344 | },
1345 | "node_modules/parent-module": {
1346 | "version": "1.0.1",
1347 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
1348 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
1349 | "dev": true,
1350 | "dependencies": {
1351 | "callsites": "^3.0.0"
1352 | },
1353 | "engines": {
1354 | "node": ">=6"
1355 | }
1356 | },
1357 | "node_modules/path-exists": {
1358 | "version": "4.0.0",
1359 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
1360 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
1361 | "dev": true,
1362 | "engines": {
1363 | "node": ">=8"
1364 | }
1365 | },
1366 | "node_modules/path-is-absolute": {
1367 | "version": "1.0.1",
1368 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
1369 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
1370 | "dev": true,
1371 | "engines": {
1372 | "node": ">=0.10.0"
1373 | }
1374 | },
1375 | "node_modules/path-key": {
1376 | "version": "3.1.1",
1377 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
1378 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
1379 | "dev": true,
1380 | "engines": {
1381 | "node": ">=8"
1382 | }
1383 | },
1384 | "node_modules/path-type": {
1385 | "version": "4.0.0",
1386 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
1387 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
1388 | "dev": true,
1389 | "engines": {
1390 | "node": ">=8"
1391 | }
1392 | },
1393 | "node_modules/picomatch": {
1394 | "version": "2.3.1",
1395 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
1396 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
1397 | "dev": true,
1398 | "engines": {
1399 | "node": ">=8.6"
1400 | },
1401 | "funding": {
1402 | "url": "https://github.com/sponsors/jonschlinkert"
1403 | }
1404 | },
1405 | "node_modules/prelude-ls": {
1406 | "version": "1.2.1",
1407 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
1408 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
1409 | "dev": true,
1410 | "engines": {
1411 | "node": ">= 0.8.0"
1412 | }
1413 | },
1414 | "node_modules/prettier": {
1415 | "version": "2.8.7",
1416 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz",
1417 | "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==",
1418 | "dev": true,
1419 | "bin": {
1420 | "prettier": "bin-prettier.js"
1421 | },
1422 | "engines": {
1423 | "node": ">=10.13.0"
1424 | },
1425 | "funding": {
1426 | "url": "https://github.com/prettier/prettier?sponsor=1"
1427 | }
1428 | },
1429 | "node_modules/punycode": {
1430 | "version": "2.3.0",
1431 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
1432 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
1433 | "dev": true,
1434 | "engines": {
1435 | "node": ">=6"
1436 | }
1437 | },
1438 | "node_modules/queue-microtask": {
1439 | "version": "1.2.3",
1440 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
1441 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
1442 | "dev": true,
1443 | "funding": [
1444 | {
1445 | "type": "github",
1446 | "url": "https://github.com/sponsors/feross"
1447 | },
1448 | {
1449 | "type": "patreon",
1450 | "url": "https://www.patreon.com/feross"
1451 | },
1452 | {
1453 | "type": "consulting",
1454 | "url": "https://feross.org/support"
1455 | }
1456 | ]
1457 | },
1458 | "node_modules/resolve-from": {
1459 | "version": "4.0.0",
1460 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
1461 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
1462 | "dev": true,
1463 | "engines": {
1464 | "node": ">=4"
1465 | }
1466 | },
1467 | "node_modules/reusify": {
1468 | "version": "1.0.4",
1469 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
1470 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
1471 | "dev": true,
1472 | "engines": {
1473 | "iojs": ">=1.0.0",
1474 | "node": ">=0.10.0"
1475 | }
1476 | },
1477 | "node_modules/rimraf": {
1478 | "version": "3.0.2",
1479 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
1480 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
1481 | "dev": true,
1482 | "dependencies": {
1483 | "glob": "^7.1.3"
1484 | },
1485 | "bin": {
1486 | "rimraf": "bin.js"
1487 | },
1488 | "funding": {
1489 | "url": "https://github.com/sponsors/isaacs"
1490 | }
1491 | },
1492 | "node_modules/run-parallel": {
1493 | "version": "1.2.0",
1494 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
1495 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
1496 | "dev": true,
1497 | "funding": [
1498 | {
1499 | "type": "github",
1500 | "url": "https://github.com/sponsors/feross"
1501 | },
1502 | {
1503 | "type": "patreon",
1504 | "url": "https://www.patreon.com/feross"
1505 | },
1506 | {
1507 | "type": "consulting",
1508 | "url": "https://feross.org/support"
1509 | }
1510 | ],
1511 | "dependencies": {
1512 | "queue-microtask": "^1.2.2"
1513 | }
1514 | },
1515 | "node_modules/semver": {
1516 | "version": "7.3.8",
1517 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz",
1518 | "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==",
1519 | "dev": true,
1520 | "dependencies": {
1521 | "lru-cache": "^6.0.0"
1522 | },
1523 | "bin": {
1524 | "semver": "bin/semver.js"
1525 | },
1526 | "engines": {
1527 | "node": ">=10"
1528 | }
1529 | },
1530 | "node_modules/shebang-command": {
1531 | "version": "2.0.0",
1532 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
1533 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
1534 | "dev": true,
1535 | "dependencies": {
1536 | "shebang-regex": "^3.0.0"
1537 | },
1538 | "engines": {
1539 | "node": ">=8"
1540 | }
1541 | },
1542 | "node_modules/shebang-regex": {
1543 | "version": "3.0.0",
1544 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
1545 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
1546 | "dev": true,
1547 | "engines": {
1548 | "node": ">=8"
1549 | }
1550 | },
1551 | "node_modules/slash": {
1552 | "version": "3.0.0",
1553 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
1554 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
1555 | "dev": true,
1556 | "engines": {
1557 | "node": ">=8"
1558 | }
1559 | },
1560 | "node_modules/strip-ansi": {
1561 | "version": "6.0.1",
1562 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
1563 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1564 | "dev": true,
1565 | "dependencies": {
1566 | "ansi-regex": "^5.0.1"
1567 | },
1568 | "engines": {
1569 | "node": ">=8"
1570 | }
1571 | },
1572 | "node_modules/strip-json-comments": {
1573 | "version": "3.1.1",
1574 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
1575 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
1576 | "dev": true,
1577 | "engines": {
1578 | "node": ">=8"
1579 | },
1580 | "funding": {
1581 | "url": "https://github.com/sponsors/sindresorhus"
1582 | }
1583 | },
1584 | "node_modules/supports-color": {
1585 | "version": "7.2.0",
1586 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
1587 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
1588 | "dev": true,
1589 | "dependencies": {
1590 | "has-flag": "^4.0.0"
1591 | },
1592 | "engines": {
1593 | "node": ">=8"
1594 | }
1595 | },
1596 | "node_modules/text-table": {
1597 | "version": "0.2.0",
1598 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
1599 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
1600 | "dev": true
1601 | },
1602 | "node_modules/to-regex-range": {
1603 | "version": "5.0.1",
1604 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
1605 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
1606 | "dev": true,
1607 | "dependencies": {
1608 | "is-number": "^7.0.0"
1609 | },
1610 | "engines": {
1611 | "node": ">=8.0"
1612 | }
1613 | },
1614 | "node_modules/tslib": {
1615 | "version": "1.14.1",
1616 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
1617 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
1618 | "dev": true
1619 | },
1620 | "node_modules/tsutils": {
1621 | "version": "3.21.0",
1622 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
1623 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
1624 | "dev": true,
1625 | "dependencies": {
1626 | "tslib": "^1.8.1"
1627 | },
1628 | "engines": {
1629 | "node": ">= 6"
1630 | },
1631 | "peerDependencies": {
1632 | "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"
1633 | }
1634 | },
1635 | "node_modules/type-check": {
1636 | "version": "0.4.0",
1637 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
1638 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
1639 | "dev": true,
1640 | "dependencies": {
1641 | "prelude-ls": "^1.2.1"
1642 | },
1643 | "engines": {
1644 | "node": ">= 0.8.0"
1645 | }
1646 | },
1647 | "node_modules/type-fest": {
1648 | "version": "0.20.2",
1649 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
1650 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
1651 | "dev": true,
1652 | "engines": {
1653 | "node": ">=10"
1654 | },
1655 | "funding": {
1656 | "url": "https://github.com/sponsors/sindresorhus"
1657 | }
1658 | },
1659 | "node_modules/typescript": {
1660 | "version": "5.0.4",
1661 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
1662 | "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
1663 | "dev": true,
1664 | "peer": true,
1665 | "bin": {
1666 | "tsc": "bin/tsc",
1667 | "tsserver": "bin/tsserver"
1668 | },
1669 | "engines": {
1670 | "node": ">=12.20"
1671 | }
1672 | },
1673 | "node_modules/uri-js": {
1674 | "version": "4.4.1",
1675 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
1676 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
1677 | "dev": true,
1678 | "dependencies": {
1679 | "punycode": "^2.1.0"
1680 | }
1681 | },
1682 | "node_modules/which": {
1683 | "version": "2.0.2",
1684 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
1685 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
1686 | "dev": true,
1687 | "dependencies": {
1688 | "isexe": "^2.0.0"
1689 | },
1690 | "bin": {
1691 | "node-which": "bin/node-which"
1692 | },
1693 | "engines": {
1694 | "node": ">= 8"
1695 | }
1696 | },
1697 | "node_modules/word-wrap": {
1698 | "version": "1.2.3",
1699 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
1700 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
1701 | "dev": true,
1702 | "engines": {
1703 | "node": ">=0.10.0"
1704 | }
1705 | },
1706 | "node_modules/wrappy": {
1707 | "version": "1.0.2",
1708 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1709 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
1710 | "dev": true
1711 | },
1712 | "node_modules/yallist": {
1713 | "version": "4.0.0",
1714 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
1715 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
1716 | "dev": true
1717 | },
1718 | "node_modules/yocto-queue": {
1719 | "version": "0.1.0",
1720 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
1721 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
1722 | "dev": true,
1723 | "engines": {
1724 | "node": ">=10"
1725 | },
1726 | "funding": {
1727 | "url": "https://github.com/sponsors/sindresorhus"
1728 | }
1729 | }
1730 | }
1731 | }
1732 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "gpt-functions",
3 | "version": "0.0.4",
4 | "description": "Never code again",
5 | "main": "build/index.js",
6 | "files": [
7 | "build/**/*"
8 | ],
9 | "types": "./build/index.d.ts",
10 | "scripts": {
11 | "build": "tsc -p .",
12 | "lint": "eslint src/**/*.ts",
13 | "fmt": "prettier --write src/**/*.ts",
14 | "prepare": "npm run build"
15 | },
16 | "repository": {
17 | "type": "git",
18 | "url": "https://github.com/alenvelocity/gpt-functions"
19 | },
20 | "keywords": [
21 | "gpt",
22 | "openai",
23 | "chatgpt",
24 | "gpt4",
25 | "javascript",
26 | "typescript",
27 | "no-code"
28 | ],
29 | "author": "Alen Yohannan",
30 | "license": "MIT",
31 | "devDependencies": {
32 | "@types/common-tags": "^1.8.1",
33 | "@typescript-eslint/eslint-plugin": "^5.57.1",
34 | "@typescript-eslint/parser": "^5.57.1",
35 | "eslint": "^8.38.0",
36 | "prettier": "^2.8.7"
37 | },
38 | "dependencies": {
39 | "common-tags": "^1.8.2",
40 | "openai": "^3.2.1"
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/GPTFunctions.ts:
--------------------------------------------------------------------------------
1 | import { Configuration, OpenAIApi } from 'openai'
2 | import { cleanCode, getContentString, getDefaultCreateOptions } from './utils'
3 |
4 | /**
5 | * Options for getting a result from the OpenAI API
6 | * @template T The type of the function
7 | */
8 | export type ResOptions = {
9 | /**
10 | * Rough type of the function
11 | * @example (number, number) => number
12 | */
13 | func: string
14 | /**
15 | * The arguments for the function
16 | * @example ["4", "5"]
17 | */
18 | args: Array
19 | /**
20 | * A description of the function being called
21 | */
22 | desc: string
23 | /**
24 | * The name of the OpenAI API model to use
25 | * @default 'gpt-3.5-turbo'
26 | */
27 | model?: string
28 | /**
29 | * A function to post-process the API response
30 | */
31 | postProcess?: (response: unknown) => T
32 | }
33 |
34 | /**
35 | * Options for creating a function using the OpenAI API
36 | * @template T The type of the function
37 | */
38 | export type CreateFucntionOptions = {
39 | /**
40 | * Rough type of the function
41 | */
42 | func: string
43 | /**
44 | * Description of the function being defined
45 | */
46 | desc: string
47 | /**
48 | * The name of the OpenAI API model to use
49 | * @default 'gpt-3.5-turbo'
50 | */
51 | model?: string
52 | /**
53 | * A function to evaluate the function definition
54 | * @default Function (Function constructor)
55 | */
56 | evaluate?: (...args: string[]) => T
57 | }
58 |
59 | export class GPTFunctions {
60 | private openai: OpenAIApi
61 |
62 | public constructor(apiKey: string) {
63 | const config = new Configuration({
64 | apiKey
65 | })
66 | this.openai = new OpenAIApi(config)
67 | }
68 |
69 | /**
70 | * Generate the result of calling a function
71 | * @param {ResOptions} options - The options for generating the result.
72 | * @returns {Promise} - A promise that resolves to the result of calling the function.
73 | * @template T
74 | */
75 | public getResult = async ({
76 | func,
77 | args,
78 | desc,
79 | model = 'gpt-3.5-turbo',
80 | postProcess = (res: unknown) => res as T
81 | }: ResOptions): Promise => {
82 | const response = await this.openai.createChatCompletion({
83 | model,
84 | messages: [
85 | {
86 | role: 'system',
87 | content: getContentString(func, desc)
88 | },
89 | {
90 | role: 'user',
91 | content: args.join(', ')
92 | }
93 | ]
94 | })
95 | return postProcess(response.data.choices[0].message?.content)
96 | }
97 |
98 | /**
99 | * Generate a function using inly it's description
100 | * @param {CreateFucntionOptions} options - The options for generating the function.
101 | * @returns {Promise} - A promise that resolves to the generated function.
102 | */
103 | public createFunction = async unknown>(options: CreateFucntionOptions | string): Promise => {
104 | if (typeof options === 'string') options = getDefaultCreateOptions(options)
105 | const {
106 | model = 'gpt-3.5-turbo',
107 | func,
108 | desc,
109 | evaluate = Function
110 | } = options as Required>
111 | const response = await this.openai.createChatCompletion({
112 | model,
113 | messages: [
114 | {
115 | role: 'system',
116 | content: getContentString(func, desc, 'create')
117 | },
118 | {
119 | role: 'user',
120 | content: desc
121 | }
122 | ],
123 | temperature: 0
124 | })
125 | const split = response.data.choices[0].message?.content.split('|') ?? ['a', 'return undefined']
126 | const parameters = split.shift() as string
127 | const finalFunc = evaluate(parameters, cleanCode(split.join('|'))) as T
128 | return finalFunc
129 | }
130 | }
131 |
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | export * from './GPTFunctions'
2 |
--------------------------------------------------------------------------------
/src/utils.ts:
--------------------------------------------------------------------------------
1 | import { stripIndents } from 'common-tags'
2 |
3 | export const getContentString = (func: string, description = '', type: 'res' | 'create' = 'res') => {
4 | return type === 'res'
5 | ? stripIndents`You are now the following JavaScript Function:
6 | \`\`\` ${description}
7 | ${func} \`\`\`
8 | Only respond with your \`return\` value. no verbose, no chat.`
9 | : stripIndents`Please provide JavaScript code for the function user defines.
10 | Please respond with the function parameter names, separated by commas.
11 | The response should be followed by a vertical bar (|) and then the code for the function body.
12 | The function body should only include the actual code that will be executed within the function body.
13 | Please do not include any function definitions, assignments, verbose language, or chat in the response.
14 | Make sure the function body ends with a return statement.
15 | Type: ${func}`
16 | }
17 |
18 | export const cleanCode = (code: string): string => {
19 | const pattern = /(```javascript|```|```js)\n([^]*?)\n```/
20 | const match = code.match(pattern)
21 | return match ? match[2] : code
22 | }
23 |
24 | export const getDefaultCreateOptions = unknown>(desc: string) => {
25 | return {
26 | desc,
27 | func: '() => ()',
28 | model: 'gpt-3.5-turbo',
29 | evaluate: Function as unknown as (...args: string[]) => T
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es6",
4 | "lib": [
5 | "ESNext",
6 | "DOM"
7 | ],
8 | "module": "commonjs",
9 | "declaration": true,
10 | "outDir": "./build",
11 | "resolveJsonModule": true,
12 | "strict": true,
13 | "esModuleInterop": true,
14 | "skipLibCheck": true,
15 | "forceConsistentCasingInFileNames": true
16 | },
17 | "include": [
18 | "src/**/*"
19 | ],
20 | "exclude": [
21 | "node_modules",
22 | "tests/**/*"
23 | ]
24 | }
--------------------------------------------------------------------------------