Spaces:
Paused
Paused
Commit
·
4b69a1b
0
Parent(s):
Initial commit and configuration for Hugging Face Spaces
Browse files- .github/workflows/publish-docker-image.yml +63 -0
- .gitignore +130 -0
- Dockerfile +13 -0
- LICENSE +21 -0
- README.md +124 -0
- package-lock.json +1802 -0
- package.json +25 -0
- src/app.js +17 -0
- src/config/config.js +8 -0
- src/proto/message.js +0 -0
- src/proto/message.proto +133 -0
- src/routes/cursor.js +39 -0
- src/routes/index.js +10 -0
- src/routes/v1.js +302 -0
- src/tool/cursorLogin.js +79 -0
- src/utils/utils.js +196 -0
- works.js +38 -0
.github/workflows/publish-docker-image.yml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Publish Docker Image
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
workflow_dispatch:
|
| 5 |
+
|
| 6 |
+
env:
|
| 7 |
+
REGISTRY: ghcr.io
|
| 8 |
+
IMAGE_NAME: ${{ github.repository }}
|
| 9 |
+
MAJOR: 1
|
| 10 |
+
MINOR: 0
|
| 11 |
+
PATCH: ${{github.run_number}}
|
| 12 |
+
|
| 13 |
+
run-name: Publish Docker Image v1.0.${{github.run_number}}
|
| 14 |
+
|
| 15 |
+
jobs:
|
| 16 |
+
build-and-push-image:
|
| 17 |
+
runs-on: ubuntu-latest
|
| 18 |
+
|
| 19 |
+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
|
| 20 |
+
permissions:
|
| 21 |
+
contents: read
|
| 22 |
+
packages: write
|
| 23 |
+
attestations: write
|
| 24 |
+
id-token: write
|
| 25 |
+
|
| 26 |
+
steps:
|
| 27 |
+
- name: Checkout repository
|
| 28 |
+
uses: actions/checkout@v4
|
| 29 |
+
|
| 30 |
+
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
|
| 31 |
+
- name: Log in to the Container registry
|
| 32 |
+
uses: docker/login-action@v3
|
| 33 |
+
with:
|
| 34 |
+
registry: ${{ env.REGISTRY }}
|
| 35 |
+
username: ${{ github.actor }}
|
| 36 |
+
password: ${{ secrets.GITHUB_TOKEN }}
|
| 37 |
+
|
| 38 |
+
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
|
| 39 |
+
- name: Extract metadata (tags, labels) for Docker
|
| 40 |
+
id: meta
|
| 41 |
+
uses: docker/metadata-action@v5
|
| 42 |
+
with:
|
| 43 |
+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
| 44 |
+
tags: |
|
| 45 |
+
type=ref,event=branch
|
| 46 |
+
type=semver,pattern={{raw}}
|
| 47 |
+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
| 48 |
+
type=raw,value=v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}
|
| 49 |
+
|
| 50 |
+
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
|
| 51 |
+
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
|
| 52 |
+
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
|
| 53 |
+
- name: Build and push Docker image
|
| 54 |
+
id: push
|
| 55 |
+
uses: docker/build-push-action@v6
|
| 56 |
+
with:
|
| 57 |
+
context: .
|
| 58 |
+
push: true
|
| 59 |
+
tags: ${{ steps.meta.outputs.tags }}
|
| 60 |
+
labels: ${{ steps.meta.outputs.labels }}
|
| 61 |
+
subject-digest: ${{ steps.push.outputs.digest }}
|
| 62 |
+
push-to-registry: true
|
| 63 |
+
|
.gitignore
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Logs
|
| 2 |
+
logs
|
| 3 |
+
*.log
|
| 4 |
+
npm-debug.log*
|
| 5 |
+
yarn-debug.log*
|
| 6 |
+
yarn-error.log*
|
| 7 |
+
lerna-debug.log*
|
| 8 |
+
.pnpm-debug.log*
|
| 9 |
+
|
| 10 |
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
| 11 |
+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
| 12 |
+
|
| 13 |
+
# Runtime data
|
| 14 |
+
pids
|
| 15 |
+
*.pid
|
| 16 |
+
*.seed
|
| 17 |
+
*.pid.lock
|
| 18 |
+
|
| 19 |
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
| 20 |
+
lib-cov
|
| 21 |
+
|
| 22 |
+
# Coverage directory used by tools like istanbul
|
| 23 |
+
coverage
|
| 24 |
+
*.lcov
|
| 25 |
+
|
| 26 |
+
# nyc test coverage
|
| 27 |
+
.nyc_output
|
| 28 |
+
|
| 29 |
+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
| 30 |
+
.grunt
|
| 31 |
+
|
| 32 |
+
# Bower dependency directory (https://bower.io/)
|
| 33 |
+
bower_components
|
| 34 |
+
|
| 35 |
+
# node-waf configuration
|
| 36 |
+
.lock-wscript
|
| 37 |
+
|
| 38 |
+
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
| 39 |
+
build/Release
|
| 40 |
+
|
| 41 |
+
# Dependency directories
|
| 42 |
+
node_modules/
|
| 43 |
+
jspm_packages/
|
| 44 |
+
|
| 45 |
+
# Snowpack dependency directory (https://snowpack.dev/)
|
| 46 |
+
web_modules/
|
| 47 |
+
|
| 48 |
+
# TypeScript cache
|
| 49 |
+
*.tsbuildinfo
|
| 50 |
+
|
| 51 |
+
# Optional npm cache directory
|
| 52 |
+
.npm
|
| 53 |
+
|
| 54 |
+
# Optional eslint cache
|
| 55 |
+
.eslintcache
|
| 56 |
+
|
| 57 |
+
# Optional stylelint cache
|
| 58 |
+
.stylelintcache
|
| 59 |
+
|
| 60 |
+
# Microbundle cache
|
| 61 |
+
.rpt2_cache/
|
| 62 |
+
.rts2_cache_cjs/
|
| 63 |
+
.rts2_cache_es/
|
| 64 |
+
.rts2_cache_umd/
|
| 65 |
+
|
| 66 |
+
# Optional REPL history
|
| 67 |
+
.node_repl_history
|
| 68 |
+
|
| 69 |
+
# Output of 'npm pack'
|
| 70 |
+
*.tgz
|
| 71 |
+
|
| 72 |
+
# Yarn Integrity file
|
| 73 |
+
.yarn-integrity
|
| 74 |
+
|
| 75 |
+
# dotenv environment variable files
|
| 76 |
+
.env
|
| 77 |
+
.env.development.local
|
| 78 |
+
.env.test.local
|
| 79 |
+
.env.production.local
|
| 80 |
+
.env.local
|
| 81 |
+
|
| 82 |
+
# parcel-bundler cache (https://parceljs.org/)
|
| 83 |
+
.cache
|
| 84 |
+
.parcel-cache
|
| 85 |
+
|
| 86 |
+
# Next.js build output
|
| 87 |
+
.next
|
| 88 |
+
out
|
| 89 |
+
|
| 90 |
+
# Nuxt.js build / generate output
|
| 91 |
+
.nuxt
|
| 92 |
+
dist
|
| 93 |
+
|
| 94 |
+
# Gatsby files
|
| 95 |
+
.cache/
|
| 96 |
+
# Comment in the public line in if your project uses Gatsby and not Next.js
|
| 97 |
+
# https://nextjs.org/blog/next-9-1#public-directory-support
|
| 98 |
+
# public
|
| 99 |
+
|
| 100 |
+
# vuepress build output
|
| 101 |
+
.vuepress/dist
|
| 102 |
+
|
| 103 |
+
# vuepress v2.x temp and cache directory
|
| 104 |
+
.temp
|
| 105 |
+
.cache
|
| 106 |
+
|
| 107 |
+
# Docusaurus cache and generated files
|
| 108 |
+
.docusaurus
|
| 109 |
+
|
| 110 |
+
# Serverless directories
|
| 111 |
+
.serverless/
|
| 112 |
+
|
| 113 |
+
# FuseBox cache
|
| 114 |
+
.fusebox/
|
| 115 |
+
|
| 116 |
+
# DynamoDB Local files
|
| 117 |
+
.dynamodb/
|
| 118 |
+
|
| 119 |
+
# TernJS port file
|
| 120 |
+
.tern-port
|
| 121 |
+
|
| 122 |
+
# Stores VSCode versions used for testing VSCode extensions
|
| 123 |
+
.vscode-test
|
| 124 |
+
|
| 125 |
+
# yarn v2
|
| 126 |
+
.yarn/cache
|
| 127 |
+
.yarn/unplugged
|
| 128 |
+
.yarn/build-state.yml
|
| 129 |
+
.yarn/install-state.gz
|
| 130 |
+
.pnp.*
|
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:lts-alpine
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
COPY package.json package-lock.json ./
|
| 6 |
+
|
| 7 |
+
RUN npm install
|
| 8 |
+
|
| 9 |
+
COPY . .
|
| 10 |
+
|
| 11 |
+
EXPOSE 3010
|
| 12 |
+
|
| 13 |
+
CMD ["npm", "run", "start"]
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2025 JiuZ
|
| 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.
|
README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Cursor To OpenAI
|
| 3 |
+
emoji: 🚀
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 3010
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Cursor To OpenAI
|
| 12 |
+
|
| 13 |
+
Cursor to OpenAPI Proxy.
|
| 14 |
+
|
| 15 |
+
This Space runs the application defined in the Dockerfile.
|
| 16 |
+
The application will listen on the port specified by the `PORT` environment variable, which defaults to 3010 if not set (as configured in `src/config/config.js`).
|
| 17 |
+
Hugging Face Spaces will set this `PORT` environment variable, typically to 7860.
|
| 18 |
+
|
| 19 |
+
## Introduction
|
| 20 |
+
|
| 21 |
+
This project provides a proxy service that converts the AI chat of the Cursor Editor into an OpenAPI API, allowing you to reuse the LLM of the Cursor in other applications.
|
| 22 |
+
|
| 23 |
+
## Preparsuitue
|
| 24 |
+
|
| 25 |
+
Visit [Cursor](https://www.cursor.com) and register a account.
|
| 26 |
+
- 150 fast premium requests are given, which can be reset by deleting the account and then registering again
|
| 27 |
+
- Suggest to use gmail/outlook email, some temp emails have been disabled by Cursor.
|
| 28 |
+
|
| 29 |
+
### Get Cursor client cookie
|
| 30 |
+
|
| 31 |
+
The cookie from Cursor webpage does not work in Cursor-To-OpenAI server. You need to get the Cursor client cookie following these steps:
|
| 32 |
+
|
| 33 |
+
1. Run `npm install` to initialize the environment。
|
| 34 |
+
2. Run `npm run login`. Open the URL shows in the log, and then login your account.
|
| 35 |
+
3. The cookie shows in your command is the `Curosr Cookie` value. Copy and save it to your notepad.
|
| 36 |
+
|
| 37 |
+
The log of this command looks like:
|
| 38 |
+
```
|
| 39 |
+
[Log] Please open the following URL in your browser to login:
|
| 40 |
+
https://www.cursor.com/loginDeepControl?challenge=6aDBevuHkK-HLiZ<......>k2lEjbVRMpg&uuid=5147ac09<....>5fe5f3aeb&mode=login <-- Copy the url and open it in your browser.
|
| 41 |
+
[Log] Waiting for login... (1/60)
|
| 42 |
+
[Log] Waiting for login... (2/60)
|
| 43 |
+
[Log] Waiting for login... (3/60)
|
| 44 |
+
[Log] Waiting for login... (4/60)
|
| 45 |
+
[Log] Login successfully. Your Cursor cookie:
|
| 46 |
+
user_01JJF<.....>K3F4T8%3A%3AeyJhbGciOiJIUzI1NiIsInR5cCI6Ikp<...................>AsCpbPfnlHy022WxmlKIt4Q7Ll0 <-- This is the Cursor cookie, please save it.
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
#### API to get Cursor client cookie
|
| 50 |
+
|
| 51 |
+
We provide an API to save you from manual login. You need to log in to your Cursor account in browser and get `WorkosCursorSessionToken` from Application-Cookie.
|
| 52 |
+
1. Get Cursor client cookie
|
| 53 |
+
- Url:`http://localhost:3010/cursor/loginDeepContorl`
|
| 54 |
+
- Request:`GET`
|
| 55 |
+
- Authentication:`Bearer Token`(The value of `WorkosCursorSessionToken` from Cursor webpage)
|
| 56 |
+
- Reponse: In JSON, the value of `accessToken` is the `Cursor Cookie` in JWT format. That's what you want.
|
| 57 |
+
|
| 58 |
+
Sample request:
|
| 59 |
+
```
|
| 60 |
+
import requests
|
| 61 |
+
|
| 62 |
+
WorkosCursorSessionToken = "{{{Repalce by your WorkosCursorSessionToken from cookie in browser}}}}"
|
| 63 |
+
response = requests.get("http://localhost:3010/cursor/loginDeepControl", headers={
|
| 64 |
+
"authorization": f"Bearer {WorkosCursorSessionToken}"
|
| 65 |
+
})
|
| 66 |
+
data = response.json()
|
| 67 |
+
cookie = data["accessToken"]
|
| 68 |
+
print(cookie)
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
## How to Run
|
| 72 |
+
|
| 73 |
+
### Run in docker
|
| 74 |
+
```
|
| 75 |
+
docker run -d --name cursor-to-openai -p 3010:3010 ghcr.io/jiuz-chn/cursor-to-openai:latest
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
### Run in npm
|
| 79 |
+
```
|
| 80 |
+
npm install
|
| 81 |
+
npm run start
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
## How to use the server
|
| 85 |
+
|
| 86 |
+
1. Get models
|
| 87 |
+
- Url:`http://localhost:3010/v1/models`
|
| 88 |
+
- Request:`GET`
|
| 89 |
+
- Authentication:`Bearer Token`(The value of `Cursor Cookie`)
|
| 90 |
+
|
| 91 |
+
2. Chat completion
|
| 92 |
+
- Url:`http://localhost:3010/v1/chat/completions`
|
| 93 |
+
- Request:`POST`
|
| 94 |
+
- Authentication:`Bearer Token`(The value of `Cursor Cookie`,supports comma-separated values)
|
| 95 |
+
|
| 96 |
+
for the response body, please refer to the OpenAI interface
|
| 97 |
+
|
| 98 |
+
### Python demo
|
| 99 |
+
```
|
| 100 |
+
from openai import OpenAI
|
| 101 |
+
|
| 102 |
+
client = OpenAI(api_key="{{{Replace by the Cursor cookie of your account. It starts with user_...}}}",
|
| 103 |
+
base_url="http://localhost:3010/v1")
|
| 104 |
+
|
| 105 |
+
response = client.chat.completions.create(
|
| 106 |
+
model="claude-3-7-sonnet",
|
| 107 |
+
messages=[
|
| 108 |
+
{"role": "user", "content": "Hello."},
|
| 109 |
+
],
|
| 110 |
+
stream=False
|
| 111 |
+
)
|
| 112 |
+
|
| 113 |
+
print(response.choices)
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
## Notes
|
| 117 |
+
|
| 118 |
+
- Please keep your Cursor cookie properly and do not disclose it to others
|
| 119 |
+
- This project is for study and research only, please abide by the Cursor Terms of Use
|
| 120 |
+
|
| 121 |
+
## Acknowledgements
|
| 122 |
+
|
| 123 |
+
- This project is based on [cursor-api](https://github.com/zhx47/cursor-api)(by zhx47).
|
| 124 |
+
- This project integrates the commits in [cursor-api](https://github.com/lvguanjun/cursor-api)(by lvguanjun).
|
package-lock.json
ADDED
|
@@ -0,0 +1,1802 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "cursor-to-openai",
|
| 3 |
+
"version": "2.5.1",
|
| 4 |
+
"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"": {
|
| 8 |
+
"name": "cursor-to-openai",
|
| 9 |
+
"version": "2.5.1",
|
| 10 |
+
"license": "MIT",
|
| 11 |
+
"dependencies": {
|
| 12 |
+
"express": "4.21.2",
|
| 13 |
+
"morgan": "^1.10.0",
|
| 14 |
+
"protobufjs": "^7.4.0",
|
| 15 |
+
"undici": "^7.4.0",
|
| 16 |
+
"uuid": "11.0.5"
|
| 17 |
+
},
|
| 18 |
+
"devDependencies": {
|
| 19 |
+
"protobufjs-cli": "^1.1.3"
|
| 20 |
+
}
|
| 21 |
+
},
|
| 22 |
+
"node_modules/@babel/helper-string-parser": {
|
| 23 |
+
"version": "7.25.9",
|
| 24 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
|
| 25 |
+
"integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
|
| 26 |
+
"dev": true,
|
| 27 |
+
"license": "MIT",
|
| 28 |
+
"engines": {
|
| 29 |
+
"node": ">=6.9.0"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
"node_modules/@babel/helper-validator-identifier": {
|
| 33 |
+
"version": "7.25.9",
|
| 34 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
|
| 35 |
+
"integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
|
| 36 |
+
"dev": true,
|
| 37 |
+
"license": "MIT",
|
| 38 |
+
"engines": {
|
| 39 |
+
"node": ">=6.9.0"
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
"node_modules/@babel/parser": {
|
| 43 |
+
"version": "7.26.7",
|
| 44 |
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.7.tgz",
|
| 45 |
+
"integrity": "sha512-kEvgGGgEjRUutvdVvZhbn/BxVt+5VSpwXz1j3WYXQbXDo8KzFOPNG2GQbdAiNq8g6wn1yKk7C/qrke03a84V+w==",
|
| 46 |
+
"dev": true,
|
| 47 |
+
"license": "MIT",
|
| 48 |
+
"dependencies": {
|
| 49 |
+
"@babel/types": "^7.26.7"
|
| 50 |
+
},
|
| 51 |
+
"bin": {
|
| 52 |
+
"parser": "bin/babel-parser.js"
|
| 53 |
+
},
|
| 54 |
+
"engines": {
|
| 55 |
+
"node": ">=6.0.0"
|
| 56 |
+
}
|
| 57 |
+
},
|
| 58 |
+
"node_modules/@babel/types": {
|
| 59 |
+
"version": "7.26.7",
|
| 60 |
+
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.7.tgz",
|
| 61 |
+
"integrity": "sha512-t8kDRGrKXyp6+tjUh7hw2RLyclsW4TRoRvRHtSyAX9Bb5ldlFh+90YAYY6awRXrlB4G5G2izNeGySpATlFzmOg==",
|
| 62 |
+
"dev": true,
|
| 63 |
+
"license": "MIT",
|
| 64 |
+
"dependencies": {
|
| 65 |
+
"@babel/helper-string-parser": "^7.25.9",
|
| 66 |
+
"@babel/helper-validator-identifier": "^7.25.9"
|
| 67 |
+
},
|
| 68 |
+
"engines": {
|
| 69 |
+
"node": ">=6.9.0"
|
| 70 |
+
}
|
| 71 |
+
},
|
| 72 |
+
"node_modules/@jsdoc/salty": {
|
| 73 |
+
"version": "0.2.9",
|
| 74 |
+
"resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.9.tgz",
|
| 75 |
+
"integrity": "sha512-yYxMVH7Dqw6nO0d5NIV8OQWnitU8k6vXH8NtgqAfIa/IUqRMxRv/NUJJ08VEKbAakwxlgBl5PJdrU0dMPStsnw==",
|
| 76 |
+
"dev": true,
|
| 77 |
+
"license": "Apache-2.0",
|
| 78 |
+
"dependencies": {
|
| 79 |
+
"lodash": "^4.17.21"
|
| 80 |
+
},
|
| 81 |
+
"engines": {
|
| 82 |
+
"node": ">=v12.0.0"
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
"node_modules/@protobufjs/aspromise": {
|
| 86 |
+
"version": "1.1.2",
|
| 87 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
| 88 |
+
"integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
|
| 89 |
+
"license": "BSD-3-Clause"
|
| 90 |
+
},
|
| 91 |
+
"node_modules/@protobufjs/base64": {
|
| 92 |
+
"version": "1.1.2",
|
| 93 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
|
| 94 |
+
"integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
|
| 95 |
+
"license": "BSD-3-Clause"
|
| 96 |
+
},
|
| 97 |
+
"node_modules/@protobufjs/codegen": {
|
| 98 |
+
"version": "2.0.4",
|
| 99 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz",
|
| 100 |
+
"integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==",
|
| 101 |
+
"license": "BSD-3-Clause"
|
| 102 |
+
},
|
| 103 |
+
"node_modules/@protobufjs/eventemitter": {
|
| 104 |
+
"version": "1.1.0",
|
| 105 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",
|
| 106 |
+
"integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",
|
| 107 |
+
"license": "BSD-3-Clause"
|
| 108 |
+
},
|
| 109 |
+
"node_modules/@protobufjs/fetch": {
|
| 110 |
+
"version": "1.1.0",
|
| 111 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",
|
| 112 |
+
"integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",
|
| 113 |
+
"license": "BSD-3-Clause",
|
| 114 |
+
"dependencies": {
|
| 115 |
+
"@protobufjs/aspromise": "^1.1.1",
|
| 116 |
+
"@protobufjs/inquire": "^1.1.0"
|
| 117 |
+
}
|
| 118 |
+
},
|
| 119 |
+
"node_modules/@protobufjs/float": {
|
| 120 |
+
"version": "1.0.2",
|
| 121 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
|
| 122 |
+
"integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
|
| 123 |
+
"license": "BSD-3-Clause"
|
| 124 |
+
},
|
| 125 |
+
"node_modules/@protobufjs/inquire": {
|
| 126 |
+
"version": "1.1.0",
|
| 127 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz",
|
| 128 |
+
"integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==",
|
| 129 |
+
"license": "BSD-3-Clause"
|
| 130 |
+
},
|
| 131 |
+
"node_modules/@protobufjs/path": {
|
| 132 |
+
"version": "1.1.2",
|
| 133 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
|
| 134 |
+
"integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
|
| 135 |
+
"license": "BSD-3-Clause"
|
| 136 |
+
},
|
| 137 |
+
"node_modules/@protobufjs/pool": {
|
| 138 |
+
"version": "1.1.0",
|
| 139 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
|
| 140 |
+
"integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
|
| 141 |
+
"license": "BSD-3-Clause"
|
| 142 |
+
},
|
| 143 |
+
"node_modules/@protobufjs/utf8": {
|
| 144 |
+
"version": "1.1.0",
|
| 145 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz",
|
| 146 |
+
"integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==",
|
| 147 |
+
"license": "BSD-3-Clause"
|
| 148 |
+
},
|
| 149 |
+
"node_modules/@types/linkify-it": {
|
| 150 |
+
"version": "5.0.0",
|
| 151 |
+
"resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz",
|
| 152 |
+
"integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==",
|
| 153 |
+
"dev": true,
|
| 154 |
+
"license": "MIT"
|
| 155 |
+
},
|
| 156 |
+
"node_modules/@types/markdown-it": {
|
| 157 |
+
"version": "14.1.2",
|
| 158 |
+
"resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz",
|
| 159 |
+
"integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==",
|
| 160 |
+
"dev": true,
|
| 161 |
+
"license": "MIT",
|
| 162 |
+
"dependencies": {
|
| 163 |
+
"@types/linkify-it": "^5",
|
| 164 |
+
"@types/mdurl": "^2"
|
| 165 |
+
}
|
| 166 |
+
},
|
| 167 |
+
"node_modules/@types/mdurl": {
|
| 168 |
+
"version": "2.0.0",
|
| 169 |
+
"resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz",
|
| 170 |
+
"integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==",
|
| 171 |
+
"dev": true,
|
| 172 |
+
"license": "MIT"
|
| 173 |
+
},
|
| 174 |
+
"node_modules/@types/node": {
|
| 175 |
+
"version": "22.10.5",
|
| 176 |
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.5.tgz",
|
| 177 |
+
"integrity": "sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==",
|
| 178 |
+
"license": "MIT",
|
| 179 |
+
"dependencies": {
|
| 180 |
+
"undici-types": "~6.20.0"
|
| 181 |
+
}
|
| 182 |
+
},
|
| 183 |
+
"node_modules/accepts": {
|
| 184 |
+
"version": "1.3.8",
|
| 185 |
+
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
| 186 |
+
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
| 187 |
+
"license": "MIT",
|
| 188 |
+
"dependencies": {
|
| 189 |
+
"mime-types": "~2.1.34",
|
| 190 |
+
"negotiator": "0.6.3"
|
| 191 |
+
},
|
| 192 |
+
"engines": {
|
| 193 |
+
"node": ">= 0.6"
|
| 194 |
+
}
|
| 195 |
+
},
|
| 196 |
+
"node_modules/acorn": {
|
| 197 |
+
"version": "8.14.0",
|
| 198 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz",
|
| 199 |
+
"integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==",
|
| 200 |
+
"dev": true,
|
| 201 |
+
"license": "MIT",
|
| 202 |
+
"bin": {
|
| 203 |
+
"acorn": "bin/acorn"
|
| 204 |
+
},
|
| 205 |
+
"engines": {
|
| 206 |
+
"node": ">=0.4.0"
|
| 207 |
+
}
|
| 208 |
+
},
|
| 209 |
+
"node_modules/acorn-jsx": {
|
| 210 |
+
"version": "5.3.2",
|
| 211 |
+
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
|
| 212 |
+
"integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
|
| 213 |
+
"dev": true,
|
| 214 |
+
"license": "MIT",
|
| 215 |
+
"peerDependencies": {
|
| 216 |
+
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
| 217 |
+
}
|
| 218 |
+
},
|
| 219 |
+
"node_modules/ansi-styles": {
|
| 220 |
+
"version": "4.3.0",
|
| 221 |
+
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
| 222 |
+
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
| 223 |
+
"dev": true,
|
| 224 |
+
"license": "MIT",
|
| 225 |
+
"dependencies": {
|
| 226 |
+
"color-convert": "^2.0.1"
|
| 227 |
+
},
|
| 228 |
+
"engines": {
|
| 229 |
+
"node": ">=8"
|
| 230 |
+
},
|
| 231 |
+
"funding": {
|
| 232 |
+
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
| 233 |
+
}
|
| 234 |
+
},
|
| 235 |
+
"node_modules/argparse": {
|
| 236 |
+
"version": "2.0.1",
|
| 237 |
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
| 238 |
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
| 239 |
+
"dev": true,
|
| 240 |
+
"license": "Python-2.0"
|
| 241 |
+
},
|
| 242 |
+
"node_modules/array-flatten": {
|
| 243 |
+
"version": "1.1.1",
|
| 244 |
+
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
| 245 |
+
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
|
| 246 |
+
"license": "MIT"
|
| 247 |
+
},
|
| 248 |
+
"node_modules/balanced-match": {
|
| 249 |
+
"version": "1.0.2",
|
| 250 |
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
| 251 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 252 |
+
"dev": true,
|
| 253 |
+
"license": "MIT"
|
| 254 |
+
},
|
| 255 |
+
"node_modules/basic-auth": {
|
| 256 |
+
"version": "2.0.1",
|
| 257 |
+
"resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz",
|
| 258 |
+
"integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==",
|
| 259 |
+
"license": "MIT",
|
| 260 |
+
"dependencies": {
|
| 261 |
+
"safe-buffer": "5.1.2"
|
| 262 |
+
},
|
| 263 |
+
"engines": {
|
| 264 |
+
"node": ">= 0.8"
|
| 265 |
+
}
|
| 266 |
+
},
|
| 267 |
+
"node_modules/basic-auth/node_modules/safe-buffer": {
|
| 268 |
+
"version": "5.1.2",
|
| 269 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
| 270 |
+
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
|
| 271 |
+
"license": "MIT"
|
| 272 |
+
},
|
| 273 |
+
"node_modules/bluebird": {
|
| 274 |
+
"version": "3.7.2",
|
| 275 |
+
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
|
| 276 |
+
"integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
|
| 277 |
+
"dev": true,
|
| 278 |
+
"license": "MIT"
|
| 279 |
+
},
|
| 280 |
+
"node_modules/body-parser": {
|
| 281 |
+
"version": "1.20.3",
|
| 282 |
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
|
| 283 |
+
"integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
|
| 284 |
+
"license": "MIT",
|
| 285 |
+
"dependencies": {
|
| 286 |
+
"bytes": "3.1.2",
|
| 287 |
+
"content-type": "~1.0.5",
|
| 288 |
+
"debug": "2.6.9",
|
| 289 |
+
"depd": "2.0.0",
|
| 290 |
+
"destroy": "1.2.0",
|
| 291 |
+
"http-errors": "2.0.0",
|
| 292 |
+
"iconv-lite": "0.4.24",
|
| 293 |
+
"on-finished": "2.4.1",
|
| 294 |
+
"qs": "6.13.0",
|
| 295 |
+
"raw-body": "2.5.2",
|
| 296 |
+
"type-is": "~1.6.18",
|
| 297 |
+
"unpipe": "1.0.0"
|
| 298 |
+
},
|
| 299 |
+
"engines": {
|
| 300 |
+
"node": ">= 0.8",
|
| 301 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 302 |
+
}
|
| 303 |
+
},
|
| 304 |
+
"node_modules/brace-expansion": {
|
| 305 |
+
"version": "2.0.1",
|
| 306 |
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
| 307 |
+
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
| 308 |
+
"dev": true,
|
| 309 |
+
"license": "MIT",
|
| 310 |
+
"dependencies": {
|
| 311 |
+
"balanced-match": "^1.0.0"
|
| 312 |
+
}
|
| 313 |
+
},
|
| 314 |
+
"node_modules/bytes": {
|
| 315 |
+
"version": "3.1.2",
|
| 316 |
+
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
| 317 |
+
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
| 318 |
+
"license": "MIT",
|
| 319 |
+
"engines": {
|
| 320 |
+
"node": ">= 0.8"
|
| 321 |
+
}
|
| 322 |
+
},
|
| 323 |
+
"node_modules/call-bind-apply-helpers": {
|
| 324 |
+
"version": "1.0.1",
|
| 325 |
+
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz",
|
| 326 |
+
"integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==",
|
| 327 |
+
"license": "MIT",
|
| 328 |
+
"dependencies": {
|
| 329 |
+
"es-errors": "^1.3.0",
|
| 330 |
+
"function-bind": "^1.1.2"
|
| 331 |
+
},
|
| 332 |
+
"engines": {
|
| 333 |
+
"node": ">= 0.4"
|
| 334 |
+
}
|
| 335 |
+
},
|
| 336 |
+
"node_modules/call-bound": {
|
| 337 |
+
"version": "1.0.3",
|
| 338 |
+
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz",
|
| 339 |
+
"integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==",
|
| 340 |
+
"license": "MIT",
|
| 341 |
+
"dependencies": {
|
| 342 |
+
"call-bind-apply-helpers": "^1.0.1",
|
| 343 |
+
"get-intrinsic": "^1.2.6"
|
| 344 |
+
},
|
| 345 |
+
"engines": {
|
| 346 |
+
"node": ">= 0.4"
|
| 347 |
+
},
|
| 348 |
+
"funding": {
|
| 349 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 350 |
+
}
|
| 351 |
+
},
|
| 352 |
+
"node_modules/catharsis": {
|
| 353 |
+
"version": "0.9.0",
|
| 354 |
+
"resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz",
|
| 355 |
+
"integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==",
|
| 356 |
+
"dev": true,
|
| 357 |
+
"license": "MIT",
|
| 358 |
+
"dependencies": {
|
| 359 |
+
"lodash": "^4.17.15"
|
| 360 |
+
},
|
| 361 |
+
"engines": {
|
| 362 |
+
"node": ">= 10"
|
| 363 |
+
}
|
| 364 |
+
},
|
| 365 |
+
"node_modules/chalk": {
|
| 366 |
+
"version": "4.1.2",
|
| 367 |
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
| 368 |
+
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
| 369 |
+
"dev": true,
|
| 370 |
+
"license": "MIT",
|
| 371 |
+
"dependencies": {
|
| 372 |
+
"ansi-styles": "^4.1.0",
|
| 373 |
+
"supports-color": "^7.1.0"
|
| 374 |
+
},
|
| 375 |
+
"engines": {
|
| 376 |
+
"node": ">=10"
|
| 377 |
+
},
|
| 378 |
+
"funding": {
|
| 379 |
+
"url": "https://github.com/chalk/chalk?sponsor=1"
|
| 380 |
+
}
|
| 381 |
+
},
|
| 382 |
+
"node_modules/color-convert": {
|
| 383 |
+
"version": "2.0.1",
|
| 384 |
+
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
| 385 |
+
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
| 386 |
+
"dev": true,
|
| 387 |
+
"license": "MIT",
|
| 388 |
+
"dependencies": {
|
| 389 |
+
"color-name": "~1.1.4"
|
| 390 |
+
},
|
| 391 |
+
"engines": {
|
| 392 |
+
"node": ">=7.0.0"
|
| 393 |
+
}
|
| 394 |
+
},
|
| 395 |
+
"node_modules/color-name": {
|
| 396 |
+
"version": "1.1.4",
|
| 397 |
+
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 398 |
+
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
| 399 |
+
"dev": true,
|
| 400 |
+
"license": "MIT"
|
| 401 |
+
},
|
| 402 |
+
"node_modules/content-disposition": {
|
| 403 |
+
"version": "0.5.4",
|
| 404 |
+
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
| 405 |
+
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
| 406 |
+
"license": "MIT",
|
| 407 |
+
"dependencies": {
|
| 408 |
+
"safe-buffer": "5.2.1"
|
| 409 |
+
},
|
| 410 |
+
"engines": {
|
| 411 |
+
"node": ">= 0.6"
|
| 412 |
+
}
|
| 413 |
+
},
|
| 414 |
+
"node_modules/content-type": {
|
| 415 |
+
"version": "1.0.5",
|
| 416 |
+
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
| 417 |
+
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
| 418 |
+
"license": "MIT",
|
| 419 |
+
"engines": {
|
| 420 |
+
"node": ">= 0.6"
|
| 421 |
+
}
|
| 422 |
+
},
|
| 423 |
+
"node_modules/cookie": {
|
| 424 |
+
"version": "0.7.1",
|
| 425 |
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
|
| 426 |
+
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
|
| 427 |
+
"license": "MIT",
|
| 428 |
+
"engines": {
|
| 429 |
+
"node": ">= 0.6"
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
"node_modules/cookie-signature": {
|
| 433 |
+
"version": "1.0.6",
|
| 434 |
+
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
| 435 |
+
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
|
| 436 |
+
"license": "MIT"
|
| 437 |
+
},
|
| 438 |
+
"node_modules/debug": {
|
| 439 |
+
"version": "2.6.9",
|
| 440 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
| 441 |
+
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
| 442 |
+
"license": "MIT",
|
| 443 |
+
"dependencies": {
|
| 444 |
+
"ms": "2.0.0"
|
| 445 |
+
}
|
| 446 |
+
},
|
| 447 |
+
"node_modules/deep-is": {
|
| 448 |
+
"version": "0.1.4",
|
| 449 |
+
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
| 450 |
+
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
|
| 451 |
+
"dev": true,
|
| 452 |
+
"license": "MIT"
|
| 453 |
+
},
|
| 454 |
+
"node_modules/depd": {
|
| 455 |
+
"version": "2.0.0",
|
| 456 |
+
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
| 457 |
+
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
| 458 |
+
"license": "MIT",
|
| 459 |
+
"engines": {
|
| 460 |
+
"node": ">= 0.8"
|
| 461 |
+
}
|
| 462 |
+
},
|
| 463 |
+
"node_modules/destroy": {
|
| 464 |
+
"version": "1.2.0",
|
| 465 |
+
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
|
| 466 |
+
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
| 467 |
+
"license": "MIT",
|
| 468 |
+
"engines": {
|
| 469 |
+
"node": ">= 0.8",
|
| 470 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 471 |
+
}
|
| 472 |
+
},
|
| 473 |
+
"node_modules/dunder-proto": {
|
| 474 |
+
"version": "1.0.1",
|
| 475 |
+
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
| 476 |
+
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
| 477 |
+
"license": "MIT",
|
| 478 |
+
"dependencies": {
|
| 479 |
+
"call-bind-apply-helpers": "^1.0.1",
|
| 480 |
+
"es-errors": "^1.3.0",
|
| 481 |
+
"gopd": "^1.2.0"
|
| 482 |
+
},
|
| 483 |
+
"engines": {
|
| 484 |
+
"node": ">= 0.4"
|
| 485 |
+
}
|
| 486 |
+
},
|
| 487 |
+
"node_modules/ee-first": {
|
| 488 |
+
"version": "1.1.1",
|
| 489 |
+
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
| 490 |
+
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
| 491 |
+
"license": "MIT"
|
| 492 |
+
},
|
| 493 |
+
"node_modules/encodeurl": {
|
| 494 |
+
"version": "2.0.0",
|
| 495 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
| 496 |
+
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
|
| 497 |
+
"license": "MIT",
|
| 498 |
+
"engines": {
|
| 499 |
+
"node": ">= 0.8"
|
| 500 |
+
}
|
| 501 |
+
},
|
| 502 |
+
"node_modules/entities": {
|
| 503 |
+
"version": "4.5.0",
|
| 504 |
+
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
|
| 505 |
+
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
|
| 506 |
+
"dev": true,
|
| 507 |
+
"license": "BSD-2-Clause",
|
| 508 |
+
"engines": {
|
| 509 |
+
"node": ">=0.12"
|
| 510 |
+
},
|
| 511 |
+
"funding": {
|
| 512 |
+
"url": "https://github.com/fb55/entities?sponsor=1"
|
| 513 |
+
}
|
| 514 |
+
},
|
| 515 |
+
"node_modules/es-define-property": {
|
| 516 |
+
"version": "1.0.1",
|
| 517 |
+
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
| 518 |
+
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
| 519 |
+
"license": "MIT",
|
| 520 |
+
"engines": {
|
| 521 |
+
"node": ">= 0.4"
|
| 522 |
+
}
|
| 523 |
+
},
|
| 524 |
+
"node_modules/es-errors": {
|
| 525 |
+
"version": "1.3.0",
|
| 526 |
+
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
| 527 |
+
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
| 528 |
+
"license": "MIT",
|
| 529 |
+
"engines": {
|
| 530 |
+
"node": ">= 0.4"
|
| 531 |
+
}
|
| 532 |
+
},
|
| 533 |
+
"node_modules/es-object-atoms": {
|
| 534 |
+
"version": "1.0.0",
|
| 535 |
+
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz",
|
| 536 |
+
"integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==",
|
| 537 |
+
"license": "MIT",
|
| 538 |
+
"dependencies": {
|
| 539 |
+
"es-errors": "^1.3.0"
|
| 540 |
+
},
|
| 541 |
+
"engines": {
|
| 542 |
+
"node": ">= 0.4"
|
| 543 |
+
}
|
| 544 |
+
},
|
| 545 |
+
"node_modules/escape-html": {
|
| 546 |
+
"version": "1.0.3",
|
| 547 |
+
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
| 548 |
+
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
|
| 549 |
+
"license": "MIT"
|
| 550 |
+
},
|
| 551 |
+
"node_modules/escape-string-regexp": {
|
| 552 |
+
"version": "2.0.0",
|
| 553 |
+
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
|
| 554 |
+
"integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
|
| 555 |
+
"dev": true,
|
| 556 |
+
"license": "MIT",
|
| 557 |
+
"engines": {
|
| 558 |
+
"node": ">=8"
|
| 559 |
+
}
|
| 560 |
+
},
|
| 561 |
+
"node_modules/escodegen": {
|
| 562 |
+
"version": "1.14.3",
|
| 563 |
+
"resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz",
|
| 564 |
+
"integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==",
|
| 565 |
+
"dev": true,
|
| 566 |
+
"license": "BSD-2-Clause",
|
| 567 |
+
"dependencies": {
|
| 568 |
+
"esprima": "^4.0.1",
|
| 569 |
+
"estraverse": "^4.2.0",
|
| 570 |
+
"esutils": "^2.0.2",
|
| 571 |
+
"optionator": "^0.8.1"
|
| 572 |
+
},
|
| 573 |
+
"bin": {
|
| 574 |
+
"escodegen": "bin/escodegen.js",
|
| 575 |
+
"esgenerate": "bin/esgenerate.js"
|
| 576 |
+
},
|
| 577 |
+
"engines": {
|
| 578 |
+
"node": ">=4.0"
|
| 579 |
+
},
|
| 580 |
+
"optionalDependencies": {
|
| 581 |
+
"source-map": "~0.6.1"
|
| 582 |
+
}
|
| 583 |
+
},
|
| 584 |
+
"node_modules/escodegen/node_modules/estraverse": {
|
| 585 |
+
"version": "4.3.0",
|
| 586 |
+
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
|
| 587 |
+
"integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
|
| 588 |
+
"dev": true,
|
| 589 |
+
"license": "BSD-2-Clause",
|
| 590 |
+
"engines": {
|
| 591 |
+
"node": ">=4.0"
|
| 592 |
+
}
|
| 593 |
+
},
|
| 594 |
+
"node_modules/eslint-visitor-keys": {
|
| 595 |
+
"version": "3.4.3",
|
| 596 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
|
| 597 |
+
"integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
|
| 598 |
+
"dev": true,
|
| 599 |
+
"license": "Apache-2.0",
|
| 600 |
+
"engines": {
|
| 601 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 602 |
+
},
|
| 603 |
+
"funding": {
|
| 604 |
+
"url": "https://opencollective.com/eslint"
|
| 605 |
+
}
|
| 606 |
+
},
|
| 607 |
+
"node_modules/espree": {
|
| 608 |
+
"version": "9.6.1",
|
| 609 |
+
"resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
|
| 610 |
+
"integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
|
| 611 |
+
"dev": true,
|
| 612 |
+
"license": "BSD-2-Clause",
|
| 613 |
+
"dependencies": {
|
| 614 |
+
"acorn": "^8.9.0",
|
| 615 |
+
"acorn-jsx": "^5.3.2",
|
| 616 |
+
"eslint-visitor-keys": "^3.4.1"
|
| 617 |
+
},
|
| 618 |
+
"engines": {
|
| 619 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 620 |
+
},
|
| 621 |
+
"funding": {
|
| 622 |
+
"url": "https://opencollective.com/eslint"
|
| 623 |
+
}
|
| 624 |
+
},
|
| 625 |
+
"node_modules/esprima": {
|
| 626 |
+
"version": "4.0.1",
|
| 627 |
+
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
| 628 |
+
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
| 629 |
+
"dev": true,
|
| 630 |
+
"license": "BSD-2-Clause",
|
| 631 |
+
"bin": {
|
| 632 |
+
"esparse": "bin/esparse.js",
|
| 633 |
+
"esvalidate": "bin/esvalidate.js"
|
| 634 |
+
},
|
| 635 |
+
"engines": {
|
| 636 |
+
"node": ">=4"
|
| 637 |
+
}
|
| 638 |
+
},
|
| 639 |
+
"node_modules/estraverse": {
|
| 640 |
+
"version": "5.3.0",
|
| 641 |
+
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 642 |
+
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 643 |
+
"dev": true,
|
| 644 |
+
"license": "BSD-2-Clause",
|
| 645 |
+
"engines": {
|
| 646 |
+
"node": ">=4.0"
|
| 647 |
+
}
|
| 648 |
+
},
|
| 649 |
+
"node_modules/esutils": {
|
| 650 |
+
"version": "2.0.3",
|
| 651 |
+
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 652 |
+
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 653 |
+
"dev": true,
|
| 654 |
+
"license": "BSD-2-Clause",
|
| 655 |
+
"engines": {
|
| 656 |
+
"node": ">=0.10.0"
|
| 657 |
+
}
|
| 658 |
+
},
|
| 659 |
+
"node_modules/etag": {
|
| 660 |
+
"version": "1.8.1",
|
| 661 |
+
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
| 662 |
+
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
| 663 |
+
"license": "MIT",
|
| 664 |
+
"engines": {
|
| 665 |
+
"node": ">= 0.6"
|
| 666 |
+
}
|
| 667 |
+
},
|
| 668 |
+
"node_modules/express": {
|
| 669 |
+
"version": "4.21.2",
|
| 670 |
+
"resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
|
| 671 |
+
"integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
|
| 672 |
+
"license": "MIT",
|
| 673 |
+
"dependencies": {
|
| 674 |
+
"accepts": "~1.3.8",
|
| 675 |
+
"array-flatten": "1.1.1",
|
| 676 |
+
"body-parser": "1.20.3",
|
| 677 |
+
"content-disposition": "0.5.4",
|
| 678 |
+
"content-type": "~1.0.4",
|
| 679 |
+
"cookie": "0.7.1",
|
| 680 |
+
"cookie-signature": "1.0.6",
|
| 681 |
+
"debug": "2.6.9",
|
| 682 |
+
"depd": "2.0.0",
|
| 683 |
+
"encodeurl": "~2.0.0",
|
| 684 |
+
"escape-html": "~1.0.3",
|
| 685 |
+
"etag": "~1.8.1",
|
| 686 |
+
"finalhandler": "1.3.1",
|
| 687 |
+
"fresh": "0.5.2",
|
| 688 |
+
"http-errors": "2.0.0",
|
| 689 |
+
"merge-descriptors": "1.0.3",
|
| 690 |
+
"methods": "~1.1.2",
|
| 691 |
+
"on-finished": "2.4.1",
|
| 692 |
+
"parseurl": "~1.3.3",
|
| 693 |
+
"path-to-regexp": "0.1.12",
|
| 694 |
+
"proxy-addr": "~2.0.7",
|
| 695 |
+
"qs": "6.13.0",
|
| 696 |
+
"range-parser": "~1.2.1",
|
| 697 |
+
"safe-buffer": "5.2.1",
|
| 698 |
+
"send": "0.19.0",
|
| 699 |
+
"serve-static": "1.16.2",
|
| 700 |
+
"setprototypeof": "1.2.0",
|
| 701 |
+
"statuses": "2.0.1",
|
| 702 |
+
"type-is": "~1.6.18",
|
| 703 |
+
"utils-merge": "1.0.1",
|
| 704 |
+
"vary": "~1.1.2"
|
| 705 |
+
},
|
| 706 |
+
"engines": {
|
| 707 |
+
"node": ">= 0.10.0"
|
| 708 |
+
},
|
| 709 |
+
"funding": {
|
| 710 |
+
"type": "opencollective",
|
| 711 |
+
"url": "https://opencollective.com/express"
|
| 712 |
+
}
|
| 713 |
+
},
|
| 714 |
+
"node_modules/fast-levenshtein": {
|
| 715 |
+
"version": "2.0.6",
|
| 716 |
+
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
|
| 717 |
+
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
|
| 718 |
+
"dev": true,
|
| 719 |
+
"license": "MIT"
|
| 720 |
+
},
|
| 721 |
+
"node_modules/finalhandler": {
|
| 722 |
+
"version": "1.3.1",
|
| 723 |
+
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
|
| 724 |
+
"integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
|
| 725 |
+
"license": "MIT",
|
| 726 |
+
"dependencies": {
|
| 727 |
+
"debug": "2.6.9",
|
| 728 |
+
"encodeurl": "~2.0.0",
|
| 729 |
+
"escape-html": "~1.0.3",
|
| 730 |
+
"on-finished": "2.4.1",
|
| 731 |
+
"parseurl": "~1.3.3",
|
| 732 |
+
"statuses": "2.0.1",
|
| 733 |
+
"unpipe": "~1.0.0"
|
| 734 |
+
},
|
| 735 |
+
"engines": {
|
| 736 |
+
"node": ">= 0.8"
|
| 737 |
+
}
|
| 738 |
+
},
|
| 739 |
+
"node_modules/forwarded": {
|
| 740 |
+
"version": "0.2.0",
|
| 741 |
+
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
| 742 |
+
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
| 743 |
+
"license": "MIT",
|
| 744 |
+
"engines": {
|
| 745 |
+
"node": ">= 0.6"
|
| 746 |
+
}
|
| 747 |
+
},
|
| 748 |
+
"node_modules/fresh": {
|
| 749 |
+
"version": "0.5.2",
|
| 750 |
+
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
| 751 |
+
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
| 752 |
+
"license": "MIT",
|
| 753 |
+
"engines": {
|
| 754 |
+
"node": ">= 0.6"
|
| 755 |
+
}
|
| 756 |
+
},
|
| 757 |
+
"node_modules/fs.realpath": {
|
| 758 |
+
"version": "1.0.0",
|
| 759 |
+
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
| 760 |
+
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
|
| 761 |
+
"dev": true,
|
| 762 |
+
"license": "ISC"
|
| 763 |
+
},
|
| 764 |
+
"node_modules/function-bind": {
|
| 765 |
+
"version": "1.1.2",
|
| 766 |
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
| 767 |
+
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
| 768 |
+
"license": "MIT",
|
| 769 |
+
"funding": {
|
| 770 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 771 |
+
}
|
| 772 |
+
},
|
| 773 |
+
"node_modules/get-intrinsic": {
|
| 774 |
+
"version": "1.2.7",
|
| 775 |
+
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.7.tgz",
|
| 776 |
+
"integrity": "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==",
|
| 777 |
+
"license": "MIT",
|
| 778 |
+
"dependencies": {
|
| 779 |
+
"call-bind-apply-helpers": "^1.0.1",
|
| 780 |
+
"es-define-property": "^1.0.1",
|
| 781 |
+
"es-errors": "^1.3.0",
|
| 782 |
+
"es-object-atoms": "^1.0.0",
|
| 783 |
+
"function-bind": "^1.1.2",
|
| 784 |
+
"get-proto": "^1.0.0",
|
| 785 |
+
"gopd": "^1.2.0",
|
| 786 |
+
"has-symbols": "^1.1.0",
|
| 787 |
+
"hasown": "^2.0.2",
|
| 788 |
+
"math-intrinsics": "^1.1.0"
|
| 789 |
+
},
|
| 790 |
+
"engines": {
|
| 791 |
+
"node": ">= 0.4"
|
| 792 |
+
},
|
| 793 |
+
"funding": {
|
| 794 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 795 |
+
}
|
| 796 |
+
},
|
| 797 |
+
"node_modules/get-proto": {
|
| 798 |
+
"version": "1.0.1",
|
| 799 |
+
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
| 800 |
+
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
| 801 |
+
"license": "MIT",
|
| 802 |
+
"dependencies": {
|
| 803 |
+
"dunder-proto": "^1.0.1",
|
| 804 |
+
"es-object-atoms": "^1.0.0"
|
| 805 |
+
},
|
| 806 |
+
"engines": {
|
| 807 |
+
"node": ">= 0.4"
|
| 808 |
+
}
|
| 809 |
+
},
|
| 810 |
+
"node_modules/glob": {
|
| 811 |
+
"version": "8.1.0",
|
| 812 |
+
"resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
|
| 813 |
+
"integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
|
| 814 |
+
"deprecated": "Glob versions prior to v9 are no longer supported",
|
| 815 |
+
"dev": true,
|
| 816 |
+
"license": "ISC",
|
| 817 |
+
"dependencies": {
|
| 818 |
+
"fs.realpath": "^1.0.0",
|
| 819 |
+
"inflight": "^1.0.4",
|
| 820 |
+
"inherits": "2",
|
| 821 |
+
"minimatch": "^5.0.1",
|
| 822 |
+
"once": "^1.3.0"
|
| 823 |
+
},
|
| 824 |
+
"engines": {
|
| 825 |
+
"node": ">=12"
|
| 826 |
+
},
|
| 827 |
+
"funding": {
|
| 828 |
+
"url": "https://github.com/sponsors/isaacs"
|
| 829 |
+
}
|
| 830 |
+
},
|
| 831 |
+
"node_modules/gopd": {
|
| 832 |
+
"version": "1.2.0",
|
| 833 |
+
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
| 834 |
+
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
| 835 |
+
"license": "MIT",
|
| 836 |
+
"engines": {
|
| 837 |
+
"node": ">= 0.4"
|
| 838 |
+
},
|
| 839 |
+
"funding": {
|
| 840 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 841 |
+
}
|
| 842 |
+
},
|
| 843 |
+
"node_modules/graceful-fs": {
|
| 844 |
+
"version": "4.2.11",
|
| 845 |
+
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
| 846 |
+
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
| 847 |
+
"dev": true,
|
| 848 |
+
"license": "ISC"
|
| 849 |
+
},
|
| 850 |
+
"node_modules/has-flag": {
|
| 851 |
+
"version": "4.0.0",
|
| 852 |
+
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
| 853 |
+
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
| 854 |
+
"dev": true,
|
| 855 |
+
"license": "MIT",
|
| 856 |
+
"engines": {
|
| 857 |
+
"node": ">=8"
|
| 858 |
+
}
|
| 859 |
+
},
|
| 860 |
+
"node_modules/has-symbols": {
|
| 861 |
+
"version": "1.1.0",
|
| 862 |
+
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
| 863 |
+
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
| 864 |
+
"license": "MIT",
|
| 865 |
+
"engines": {
|
| 866 |
+
"node": ">= 0.4"
|
| 867 |
+
},
|
| 868 |
+
"funding": {
|
| 869 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 870 |
+
}
|
| 871 |
+
},
|
| 872 |
+
"node_modules/hasown": {
|
| 873 |
+
"version": "2.0.2",
|
| 874 |
+
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
| 875 |
+
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
| 876 |
+
"license": "MIT",
|
| 877 |
+
"dependencies": {
|
| 878 |
+
"function-bind": "^1.1.2"
|
| 879 |
+
},
|
| 880 |
+
"engines": {
|
| 881 |
+
"node": ">= 0.4"
|
| 882 |
+
}
|
| 883 |
+
},
|
| 884 |
+
"node_modules/http-errors": {
|
| 885 |
+
"version": "2.0.0",
|
| 886 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
| 887 |
+
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
| 888 |
+
"license": "MIT",
|
| 889 |
+
"dependencies": {
|
| 890 |
+
"depd": "2.0.0",
|
| 891 |
+
"inherits": "2.0.4",
|
| 892 |
+
"setprototypeof": "1.2.0",
|
| 893 |
+
"statuses": "2.0.1",
|
| 894 |
+
"toidentifier": "1.0.1"
|
| 895 |
+
},
|
| 896 |
+
"engines": {
|
| 897 |
+
"node": ">= 0.8"
|
| 898 |
+
}
|
| 899 |
+
},
|
| 900 |
+
"node_modules/iconv-lite": {
|
| 901 |
+
"version": "0.4.24",
|
| 902 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
| 903 |
+
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
| 904 |
+
"license": "MIT",
|
| 905 |
+
"dependencies": {
|
| 906 |
+
"safer-buffer": ">= 2.1.2 < 3"
|
| 907 |
+
},
|
| 908 |
+
"engines": {
|
| 909 |
+
"node": ">=0.10.0"
|
| 910 |
+
}
|
| 911 |
+
},
|
| 912 |
+
"node_modules/inflight": {
|
| 913 |
+
"version": "1.0.6",
|
| 914 |
+
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
| 915 |
+
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
|
| 916 |
+
"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.",
|
| 917 |
+
"dev": true,
|
| 918 |
+
"license": "ISC",
|
| 919 |
+
"dependencies": {
|
| 920 |
+
"once": "^1.3.0",
|
| 921 |
+
"wrappy": "1"
|
| 922 |
+
}
|
| 923 |
+
},
|
| 924 |
+
"node_modules/inherits": {
|
| 925 |
+
"version": "2.0.4",
|
| 926 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
| 927 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
| 928 |
+
"license": "ISC"
|
| 929 |
+
},
|
| 930 |
+
"node_modules/ipaddr.js": {
|
| 931 |
+
"version": "1.9.1",
|
| 932 |
+
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
| 933 |
+
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
| 934 |
+
"license": "MIT",
|
| 935 |
+
"engines": {
|
| 936 |
+
"node": ">= 0.10"
|
| 937 |
+
}
|
| 938 |
+
},
|
| 939 |
+
"node_modules/js2xmlparser": {
|
| 940 |
+
"version": "4.0.2",
|
| 941 |
+
"resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz",
|
| 942 |
+
"integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==",
|
| 943 |
+
"dev": true,
|
| 944 |
+
"license": "Apache-2.0",
|
| 945 |
+
"dependencies": {
|
| 946 |
+
"xmlcreate": "^2.0.4"
|
| 947 |
+
}
|
| 948 |
+
},
|
| 949 |
+
"node_modules/jsdoc": {
|
| 950 |
+
"version": "4.0.4",
|
| 951 |
+
"resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.4.tgz",
|
| 952 |
+
"integrity": "sha512-zeFezwyXeG4syyYHbvh1A967IAqq/67yXtXvuL5wnqCkFZe8I0vKfm+EO+YEvLguo6w9CDUbrAXVtJSHh2E8rw==",
|
| 953 |
+
"dev": true,
|
| 954 |
+
"license": "Apache-2.0",
|
| 955 |
+
"dependencies": {
|
| 956 |
+
"@babel/parser": "^7.20.15",
|
| 957 |
+
"@jsdoc/salty": "^0.2.1",
|
| 958 |
+
"@types/markdown-it": "^14.1.1",
|
| 959 |
+
"bluebird": "^3.7.2",
|
| 960 |
+
"catharsis": "^0.9.0",
|
| 961 |
+
"escape-string-regexp": "^2.0.0",
|
| 962 |
+
"js2xmlparser": "^4.0.2",
|
| 963 |
+
"klaw": "^3.0.0",
|
| 964 |
+
"markdown-it": "^14.1.0",
|
| 965 |
+
"markdown-it-anchor": "^8.6.7",
|
| 966 |
+
"marked": "^4.0.10",
|
| 967 |
+
"mkdirp": "^1.0.4",
|
| 968 |
+
"requizzle": "^0.2.3",
|
| 969 |
+
"strip-json-comments": "^3.1.0",
|
| 970 |
+
"underscore": "~1.13.2"
|
| 971 |
+
},
|
| 972 |
+
"bin": {
|
| 973 |
+
"jsdoc": "jsdoc.js"
|
| 974 |
+
},
|
| 975 |
+
"engines": {
|
| 976 |
+
"node": ">=12.0.0"
|
| 977 |
+
}
|
| 978 |
+
},
|
| 979 |
+
"node_modules/klaw": {
|
| 980 |
+
"version": "3.0.0",
|
| 981 |
+
"resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz",
|
| 982 |
+
"integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==",
|
| 983 |
+
"dev": true,
|
| 984 |
+
"license": "MIT",
|
| 985 |
+
"dependencies": {
|
| 986 |
+
"graceful-fs": "^4.1.9"
|
| 987 |
+
}
|
| 988 |
+
},
|
| 989 |
+
"node_modules/levn": {
|
| 990 |
+
"version": "0.3.0",
|
| 991 |
+
"resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
|
| 992 |
+
"integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==",
|
| 993 |
+
"dev": true,
|
| 994 |
+
"license": "MIT",
|
| 995 |
+
"dependencies": {
|
| 996 |
+
"prelude-ls": "~1.1.2",
|
| 997 |
+
"type-check": "~0.3.2"
|
| 998 |
+
},
|
| 999 |
+
"engines": {
|
| 1000 |
+
"node": ">= 0.8.0"
|
| 1001 |
+
}
|
| 1002 |
+
},
|
| 1003 |
+
"node_modules/linkify-it": {
|
| 1004 |
+
"version": "5.0.0",
|
| 1005 |
+
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz",
|
| 1006 |
+
"integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==",
|
| 1007 |
+
"dev": true,
|
| 1008 |
+
"license": "MIT",
|
| 1009 |
+
"dependencies": {
|
| 1010 |
+
"uc.micro": "^2.0.0"
|
| 1011 |
+
}
|
| 1012 |
+
},
|
| 1013 |
+
"node_modules/lodash": {
|
| 1014 |
+
"version": "4.17.21",
|
| 1015 |
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
| 1016 |
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
| 1017 |
+
"dev": true,
|
| 1018 |
+
"license": "MIT"
|
| 1019 |
+
},
|
| 1020 |
+
"node_modules/long": {
|
| 1021 |
+
"version": "5.2.4",
|
| 1022 |
+
"resolved": "https://registry.npmjs.org/long/-/long-5.2.4.tgz",
|
| 1023 |
+
"integrity": "sha512-qtzLbJE8hq7VabR3mISmVGtoXP8KGc2Z/AT8OuqlYD7JTR3oqrgwdjnk07wpj1twXxYmgDXgoKVWUG/fReSzHg==",
|
| 1024 |
+
"license": "Apache-2.0"
|
| 1025 |
+
},
|
| 1026 |
+
"node_modules/markdown-it": {
|
| 1027 |
+
"version": "14.1.0",
|
| 1028 |
+
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz",
|
| 1029 |
+
"integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==",
|
| 1030 |
+
"dev": true,
|
| 1031 |
+
"license": "MIT",
|
| 1032 |
+
"dependencies": {
|
| 1033 |
+
"argparse": "^2.0.1",
|
| 1034 |
+
"entities": "^4.4.0",
|
| 1035 |
+
"linkify-it": "^5.0.0",
|
| 1036 |
+
"mdurl": "^2.0.0",
|
| 1037 |
+
"punycode.js": "^2.3.1",
|
| 1038 |
+
"uc.micro": "^2.1.0"
|
| 1039 |
+
},
|
| 1040 |
+
"bin": {
|
| 1041 |
+
"markdown-it": "bin/markdown-it.mjs"
|
| 1042 |
+
}
|
| 1043 |
+
},
|
| 1044 |
+
"node_modules/markdown-it-anchor": {
|
| 1045 |
+
"version": "8.6.7",
|
| 1046 |
+
"resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz",
|
| 1047 |
+
"integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==",
|
| 1048 |
+
"dev": true,
|
| 1049 |
+
"license": "Unlicense",
|
| 1050 |
+
"peerDependencies": {
|
| 1051 |
+
"@types/markdown-it": "*",
|
| 1052 |
+
"markdown-it": "*"
|
| 1053 |
+
}
|
| 1054 |
+
},
|
| 1055 |
+
"node_modules/marked": {
|
| 1056 |
+
"version": "4.3.0",
|
| 1057 |
+
"resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz",
|
| 1058 |
+
"integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==",
|
| 1059 |
+
"dev": true,
|
| 1060 |
+
"license": "MIT",
|
| 1061 |
+
"bin": {
|
| 1062 |
+
"marked": "bin/marked.js"
|
| 1063 |
+
},
|
| 1064 |
+
"engines": {
|
| 1065 |
+
"node": ">= 12"
|
| 1066 |
+
}
|
| 1067 |
+
},
|
| 1068 |
+
"node_modules/math-intrinsics": {
|
| 1069 |
+
"version": "1.1.0",
|
| 1070 |
+
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
| 1071 |
+
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
| 1072 |
+
"license": "MIT",
|
| 1073 |
+
"engines": {
|
| 1074 |
+
"node": ">= 0.4"
|
| 1075 |
+
}
|
| 1076 |
+
},
|
| 1077 |
+
"node_modules/mdurl": {
|
| 1078 |
+
"version": "2.0.0",
|
| 1079 |
+
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz",
|
| 1080 |
+
"integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==",
|
| 1081 |
+
"dev": true,
|
| 1082 |
+
"license": "MIT"
|
| 1083 |
+
},
|
| 1084 |
+
"node_modules/media-typer": {
|
| 1085 |
+
"version": "0.3.0",
|
| 1086 |
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
| 1087 |
+
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
| 1088 |
+
"license": "MIT",
|
| 1089 |
+
"engines": {
|
| 1090 |
+
"node": ">= 0.6"
|
| 1091 |
+
}
|
| 1092 |
+
},
|
| 1093 |
+
"node_modules/merge-descriptors": {
|
| 1094 |
+
"version": "1.0.3",
|
| 1095 |
+
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
|
| 1096 |
+
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
|
| 1097 |
+
"license": "MIT",
|
| 1098 |
+
"funding": {
|
| 1099 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1100 |
+
}
|
| 1101 |
+
},
|
| 1102 |
+
"node_modules/methods": {
|
| 1103 |
+
"version": "1.1.2",
|
| 1104 |
+
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
| 1105 |
+
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
| 1106 |
+
"license": "MIT",
|
| 1107 |
+
"engines": {
|
| 1108 |
+
"node": ">= 0.6"
|
| 1109 |
+
}
|
| 1110 |
+
},
|
| 1111 |
+
"node_modules/mime": {
|
| 1112 |
+
"version": "1.6.0",
|
| 1113 |
+
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
| 1114 |
+
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
| 1115 |
+
"license": "MIT",
|
| 1116 |
+
"bin": {
|
| 1117 |
+
"mime": "cli.js"
|
| 1118 |
+
},
|
| 1119 |
+
"engines": {
|
| 1120 |
+
"node": ">=4"
|
| 1121 |
+
}
|
| 1122 |
+
},
|
| 1123 |
+
"node_modules/mime-db": {
|
| 1124 |
+
"version": "1.52.0",
|
| 1125 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
| 1126 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
| 1127 |
+
"license": "MIT",
|
| 1128 |
+
"engines": {
|
| 1129 |
+
"node": ">= 0.6"
|
| 1130 |
+
}
|
| 1131 |
+
},
|
| 1132 |
+
"node_modules/mime-types": {
|
| 1133 |
+
"version": "2.1.35",
|
| 1134 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
| 1135 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
| 1136 |
+
"license": "MIT",
|
| 1137 |
+
"dependencies": {
|
| 1138 |
+
"mime-db": "1.52.0"
|
| 1139 |
+
},
|
| 1140 |
+
"engines": {
|
| 1141 |
+
"node": ">= 0.6"
|
| 1142 |
+
}
|
| 1143 |
+
},
|
| 1144 |
+
"node_modules/minimatch": {
|
| 1145 |
+
"version": "5.1.6",
|
| 1146 |
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
|
| 1147 |
+
"integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
|
| 1148 |
+
"dev": true,
|
| 1149 |
+
"license": "ISC",
|
| 1150 |
+
"dependencies": {
|
| 1151 |
+
"brace-expansion": "^2.0.1"
|
| 1152 |
+
},
|
| 1153 |
+
"engines": {
|
| 1154 |
+
"node": ">=10"
|
| 1155 |
+
}
|
| 1156 |
+
},
|
| 1157 |
+
"node_modules/minimist": {
|
| 1158 |
+
"version": "1.2.8",
|
| 1159 |
+
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
|
| 1160 |
+
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
|
| 1161 |
+
"dev": true,
|
| 1162 |
+
"license": "MIT",
|
| 1163 |
+
"funding": {
|
| 1164 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1165 |
+
}
|
| 1166 |
+
},
|
| 1167 |
+
"node_modules/mkdirp": {
|
| 1168 |
+
"version": "1.0.4",
|
| 1169 |
+
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
|
| 1170 |
+
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
|
| 1171 |
+
"dev": true,
|
| 1172 |
+
"license": "MIT",
|
| 1173 |
+
"bin": {
|
| 1174 |
+
"mkdirp": "bin/cmd.js"
|
| 1175 |
+
},
|
| 1176 |
+
"engines": {
|
| 1177 |
+
"node": ">=10"
|
| 1178 |
+
}
|
| 1179 |
+
},
|
| 1180 |
+
"node_modules/morgan": {
|
| 1181 |
+
"version": "1.10.0",
|
| 1182 |
+
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz",
|
| 1183 |
+
"integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==",
|
| 1184 |
+
"license": "MIT",
|
| 1185 |
+
"dependencies": {
|
| 1186 |
+
"basic-auth": "~2.0.1",
|
| 1187 |
+
"debug": "2.6.9",
|
| 1188 |
+
"depd": "~2.0.0",
|
| 1189 |
+
"on-finished": "~2.3.0",
|
| 1190 |
+
"on-headers": "~1.0.2"
|
| 1191 |
+
},
|
| 1192 |
+
"engines": {
|
| 1193 |
+
"node": ">= 0.8.0"
|
| 1194 |
+
}
|
| 1195 |
+
},
|
| 1196 |
+
"node_modules/morgan/node_modules/on-finished": {
|
| 1197 |
+
"version": "2.3.0",
|
| 1198 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
|
| 1199 |
+
"integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==",
|
| 1200 |
+
"license": "MIT",
|
| 1201 |
+
"dependencies": {
|
| 1202 |
+
"ee-first": "1.1.1"
|
| 1203 |
+
},
|
| 1204 |
+
"engines": {
|
| 1205 |
+
"node": ">= 0.8"
|
| 1206 |
+
}
|
| 1207 |
+
},
|
| 1208 |
+
"node_modules/ms": {
|
| 1209 |
+
"version": "2.0.0",
|
| 1210 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
| 1211 |
+
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
| 1212 |
+
"license": "MIT"
|
| 1213 |
+
},
|
| 1214 |
+
"node_modules/negotiator": {
|
| 1215 |
+
"version": "0.6.3",
|
| 1216 |
+
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
| 1217 |
+
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
| 1218 |
+
"license": "MIT",
|
| 1219 |
+
"engines": {
|
| 1220 |
+
"node": ">= 0.6"
|
| 1221 |
+
}
|
| 1222 |
+
},
|
| 1223 |
+
"node_modules/object-inspect": {
|
| 1224 |
+
"version": "1.13.3",
|
| 1225 |
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz",
|
| 1226 |
+
"integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==",
|
| 1227 |
+
"license": "MIT",
|
| 1228 |
+
"engines": {
|
| 1229 |
+
"node": ">= 0.4"
|
| 1230 |
+
},
|
| 1231 |
+
"funding": {
|
| 1232 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1233 |
+
}
|
| 1234 |
+
},
|
| 1235 |
+
"node_modules/on-finished": {
|
| 1236 |
+
"version": "2.4.1",
|
| 1237 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
| 1238 |
+
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
| 1239 |
+
"license": "MIT",
|
| 1240 |
+
"dependencies": {
|
| 1241 |
+
"ee-first": "1.1.1"
|
| 1242 |
+
},
|
| 1243 |
+
"engines": {
|
| 1244 |
+
"node": ">= 0.8"
|
| 1245 |
+
}
|
| 1246 |
+
},
|
| 1247 |
+
"node_modules/on-headers": {
|
| 1248 |
+
"version": "1.0.2",
|
| 1249 |
+
"resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
|
| 1250 |
+
"integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==",
|
| 1251 |
+
"license": "MIT",
|
| 1252 |
+
"engines": {
|
| 1253 |
+
"node": ">= 0.8"
|
| 1254 |
+
}
|
| 1255 |
+
},
|
| 1256 |
+
"node_modules/once": {
|
| 1257 |
+
"version": "1.4.0",
|
| 1258 |
+
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
| 1259 |
+
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
| 1260 |
+
"dev": true,
|
| 1261 |
+
"license": "ISC",
|
| 1262 |
+
"dependencies": {
|
| 1263 |
+
"wrappy": "1"
|
| 1264 |
+
}
|
| 1265 |
+
},
|
| 1266 |
+
"node_modules/optionator": {
|
| 1267 |
+
"version": "0.8.3",
|
| 1268 |
+
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz",
|
| 1269 |
+
"integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==",
|
| 1270 |
+
"dev": true,
|
| 1271 |
+
"license": "MIT",
|
| 1272 |
+
"dependencies": {
|
| 1273 |
+
"deep-is": "~0.1.3",
|
| 1274 |
+
"fast-levenshtein": "~2.0.6",
|
| 1275 |
+
"levn": "~0.3.0",
|
| 1276 |
+
"prelude-ls": "~1.1.2",
|
| 1277 |
+
"type-check": "~0.3.2",
|
| 1278 |
+
"word-wrap": "~1.2.3"
|
| 1279 |
+
},
|
| 1280 |
+
"engines": {
|
| 1281 |
+
"node": ">= 0.8.0"
|
| 1282 |
+
}
|
| 1283 |
+
},
|
| 1284 |
+
"node_modules/parseurl": {
|
| 1285 |
+
"version": "1.3.3",
|
| 1286 |
+
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
| 1287 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
| 1288 |
+
"license": "MIT",
|
| 1289 |
+
"engines": {
|
| 1290 |
+
"node": ">= 0.8"
|
| 1291 |
+
}
|
| 1292 |
+
},
|
| 1293 |
+
"node_modules/path-to-regexp": {
|
| 1294 |
+
"version": "0.1.12",
|
| 1295 |
+
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
| 1296 |
+
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
|
| 1297 |
+
"license": "MIT"
|
| 1298 |
+
},
|
| 1299 |
+
"node_modules/prelude-ls": {
|
| 1300 |
+
"version": "1.1.2",
|
| 1301 |
+
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
|
| 1302 |
+
"integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==",
|
| 1303 |
+
"dev": true,
|
| 1304 |
+
"engines": {
|
| 1305 |
+
"node": ">= 0.8.0"
|
| 1306 |
+
}
|
| 1307 |
+
},
|
| 1308 |
+
"node_modules/protobufjs": {
|
| 1309 |
+
"version": "7.4.0",
|
| 1310 |
+
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz",
|
| 1311 |
+
"integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==",
|
| 1312 |
+
"hasInstallScript": true,
|
| 1313 |
+
"license": "BSD-3-Clause",
|
| 1314 |
+
"dependencies": {
|
| 1315 |
+
"@protobufjs/aspromise": "^1.1.2",
|
| 1316 |
+
"@protobufjs/base64": "^1.1.2",
|
| 1317 |
+
"@protobufjs/codegen": "^2.0.4",
|
| 1318 |
+
"@protobufjs/eventemitter": "^1.1.0",
|
| 1319 |
+
"@protobufjs/fetch": "^1.1.0",
|
| 1320 |
+
"@protobufjs/float": "^1.0.2",
|
| 1321 |
+
"@protobufjs/inquire": "^1.1.0",
|
| 1322 |
+
"@protobufjs/path": "^1.1.2",
|
| 1323 |
+
"@protobufjs/pool": "^1.1.0",
|
| 1324 |
+
"@protobufjs/utf8": "^1.1.0",
|
| 1325 |
+
"@types/node": ">=13.7.0",
|
| 1326 |
+
"long": "^5.0.0"
|
| 1327 |
+
},
|
| 1328 |
+
"engines": {
|
| 1329 |
+
"node": ">=12.0.0"
|
| 1330 |
+
}
|
| 1331 |
+
},
|
| 1332 |
+
"node_modules/protobufjs-cli": {
|
| 1333 |
+
"version": "1.1.3",
|
| 1334 |
+
"resolved": "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.3.tgz",
|
| 1335 |
+
"integrity": "sha512-MqD10lqF+FMsOayFiNOdOGNlXc4iKDCf0ZQPkPR+gizYh9gqUeGTWulABUCdI+N67w5RfJ6xhgX4J8pa8qmMXQ==",
|
| 1336 |
+
"dev": true,
|
| 1337 |
+
"license": "BSD-3-Clause",
|
| 1338 |
+
"dependencies": {
|
| 1339 |
+
"chalk": "^4.0.0",
|
| 1340 |
+
"escodegen": "^1.13.0",
|
| 1341 |
+
"espree": "^9.0.0",
|
| 1342 |
+
"estraverse": "^5.1.0",
|
| 1343 |
+
"glob": "^8.0.0",
|
| 1344 |
+
"jsdoc": "^4.0.0",
|
| 1345 |
+
"minimist": "^1.2.0",
|
| 1346 |
+
"semver": "^7.1.2",
|
| 1347 |
+
"tmp": "^0.2.1",
|
| 1348 |
+
"uglify-js": "^3.7.7"
|
| 1349 |
+
},
|
| 1350 |
+
"bin": {
|
| 1351 |
+
"pbjs": "bin/pbjs",
|
| 1352 |
+
"pbts": "bin/pbts"
|
| 1353 |
+
},
|
| 1354 |
+
"engines": {
|
| 1355 |
+
"node": ">=12.0.0"
|
| 1356 |
+
},
|
| 1357 |
+
"peerDependencies": {
|
| 1358 |
+
"protobufjs": "^7.0.0"
|
| 1359 |
+
}
|
| 1360 |
+
},
|
| 1361 |
+
"node_modules/proxy-addr": {
|
| 1362 |
+
"version": "2.0.7",
|
| 1363 |
+
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
| 1364 |
+
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
| 1365 |
+
"license": "MIT",
|
| 1366 |
+
"dependencies": {
|
| 1367 |
+
"forwarded": "0.2.0",
|
| 1368 |
+
"ipaddr.js": "1.9.1"
|
| 1369 |
+
},
|
| 1370 |
+
"engines": {
|
| 1371 |
+
"node": ">= 0.10"
|
| 1372 |
+
}
|
| 1373 |
+
},
|
| 1374 |
+
"node_modules/punycode.js": {
|
| 1375 |
+
"version": "2.3.1",
|
| 1376 |
+
"resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
|
| 1377 |
+
"integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==",
|
| 1378 |
+
"dev": true,
|
| 1379 |
+
"license": "MIT",
|
| 1380 |
+
"engines": {
|
| 1381 |
+
"node": ">=6"
|
| 1382 |
+
}
|
| 1383 |
+
},
|
| 1384 |
+
"node_modules/qs": {
|
| 1385 |
+
"version": "6.13.0",
|
| 1386 |
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
|
| 1387 |
+
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
|
| 1388 |
+
"license": "BSD-3-Clause",
|
| 1389 |
+
"dependencies": {
|
| 1390 |
+
"side-channel": "^1.0.6"
|
| 1391 |
+
},
|
| 1392 |
+
"engines": {
|
| 1393 |
+
"node": ">=0.6"
|
| 1394 |
+
},
|
| 1395 |
+
"funding": {
|
| 1396 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1397 |
+
}
|
| 1398 |
+
},
|
| 1399 |
+
"node_modules/range-parser": {
|
| 1400 |
+
"version": "1.2.1",
|
| 1401 |
+
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
| 1402 |
+
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
| 1403 |
+
"license": "MIT",
|
| 1404 |
+
"engines": {
|
| 1405 |
+
"node": ">= 0.6"
|
| 1406 |
+
}
|
| 1407 |
+
},
|
| 1408 |
+
"node_modules/raw-body": {
|
| 1409 |
+
"version": "2.5.2",
|
| 1410 |
+
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
|
| 1411 |
+
"integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
|
| 1412 |
+
"license": "MIT",
|
| 1413 |
+
"dependencies": {
|
| 1414 |
+
"bytes": "3.1.2",
|
| 1415 |
+
"http-errors": "2.0.0",
|
| 1416 |
+
"iconv-lite": "0.4.24",
|
| 1417 |
+
"unpipe": "1.0.0"
|
| 1418 |
+
},
|
| 1419 |
+
"engines": {
|
| 1420 |
+
"node": ">= 0.8"
|
| 1421 |
+
}
|
| 1422 |
+
},
|
| 1423 |
+
"node_modules/requizzle": {
|
| 1424 |
+
"version": "0.2.4",
|
| 1425 |
+
"resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz",
|
| 1426 |
+
"integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==",
|
| 1427 |
+
"dev": true,
|
| 1428 |
+
"license": "MIT",
|
| 1429 |
+
"dependencies": {
|
| 1430 |
+
"lodash": "^4.17.21"
|
| 1431 |
+
}
|
| 1432 |
+
},
|
| 1433 |
+
"node_modules/safe-buffer": {
|
| 1434 |
+
"version": "5.2.1",
|
| 1435 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
| 1436 |
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
| 1437 |
+
"funding": [
|
| 1438 |
+
{
|
| 1439 |
+
"type": "github",
|
| 1440 |
+
"url": "https://github.com/sponsors/feross"
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "patreon",
|
| 1444 |
+
"url": "https://www.patreon.com/feross"
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "consulting",
|
| 1448 |
+
"url": "https://feross.org/support"
|
| 1449 |
+
}
|
| 1450 |
+
],
|
| 1451 |
+
"license": "MIT"
|
| 1452 |
+
},
|
| 1453 |
+
"node_modules/safer-buffer": {
|
| 1454 |
+
"version": "2.1.2",
|
| 1455 |
+
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
| 1456 |
+
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
| 1457 |
+
"license": "MIT"
|
| 1458 |
+
},
|
| 1459 |
+
"node_modules/semver": {
|
| 1460 |
+
"version": "7.7.0",
|
| 1461 |
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.0.tgz",
|
| 1462 |
+
"integrity": "sha512-DrfFnPzblFmNrIZzg5RzHegbiRWg7KMR7btwi2yjHwx06zsUbO5g613sVwEV7FTwmzJu+Io0lJe2GJ3LxqpvBQ==",
|
| 1463 |
+
"dev": true,
|
| 1464 |
+
"license": "ISC",
|
| 1465 |
+
"bin": {
|
| 1466 |
+
"semver": "bin/semver.js"
|
| 1467 |
+
},
|
| 1468 |
+
"engines": {
|
| 1469 |
+
"node": ">=10"
|
| 1470 |
+
}
|
| 1471 |
+
},
|
| 1472 |
+
"node_modules/send": {
|
| 1473 |
+
"version": "0.19.0",
|
| 1474 |
+
"resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
|
| 1475 |
+
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
|
| 1476 |
+
"license": "MIT",
|
| 1477 |
+
"dependencies": {
|
| 1478 |
+
"debug": "2.6.9",
|
| 1479 |
+
"depd": "2.0.0",
|
| 1480 |
+
"destroy": "1.2.0",
|
| 1481 |
+
"encodeurl": "~1.0.2",
|
| 1482 |
+
"escape-html": "~1.0.3",
|
| 1483 |
+
"etag": "~1.8.1",
|
| 1484 |
+
"fresh": "0.5.2",
|
| 1485 |
+
"http-errors": "2.0.0",
|
| 1486 |
+
"mime": "1.6.0",
|
| 1487 |
+
"ms": "2.1.3",
|
| 1488 |
+
"on-finished": "2.4.1",
|
| 1489 |
+
"range-parser": "~1.2.1",
|
| 1490 |
+
"statuses": "2.0.1"
|
| 1491 |
+
},
|
| 1492 |
+
"engines": {
|
| 1493 |
+
"node": ">= 0.8.0"
|
| 1494 |
+
}
|
| 1495 |
+
},
|
| 1496 |
+
"node_modules/send/node_modules/encodeurl": {
|
| 1497 |
+
"version": "1.0.2",
|
| 1498 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
| 1499 |
+
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
| 1500 |
+
"license": "MIT",
|
| 1501 |
+
"engines": {
|
| 1502 |
+
"node": ">= 0.8"
|
| 1503 |
+
}
|
| 1504 |
+
},
|
| 1505 |
+
"node_modules/send/node_modules/ms": {
|
| 1506 |
+
"version": "2.1.3",
|
| 1507 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 1508 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 1509 |
+
"license": "MIT"
|
| 1510 |
+
},
|
| 1511 |
+
"node_modules/serve-static": {
|
| 1512 |
+
"version": "1.16.2",
|
| 1513 |
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
|
| 1514 |
+
"integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
|
| 1515 |
+
"license": "MIT",
|
| 1516 |
+
"dependencies": {
|
| 1517 |
+
"encodeurl": "~2.0.0",
|
| 1518 |
+
"escape-html": "~1.0.3",
|
| 1519 |
+
"parseurl": "~1.3.3",
|
| 1520 |
+
"send": "0.19.0"
|
| 1521 |
+
},
|
| 1522 |
+
"engines": {
|
| 1523 |
+
"node": ">= 0.8.0"
|
| 1524 |
+
}
|
| 1525 |
+
},
|
| 1526 |
+
"node_modules/setprototypeof": {
|
| 1527 |
+
"version": "1.2.0",
|
| 1528 |
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
| 1529 |
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
| 1530 |
+
"license": "ISC"
|
| 1531 |
+
},
|
| 1532 |
+
"node_modules/side-channel": {
|
| 1533 |
+
"version": "1.1.0",
|
| 1534 |
+
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
|
| 1535 |
+
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
|
| 1536 |
+
"license": "MIT",
|
| 1537 |
+
"dependencies": {
|
| 1538 |
+
"es-errors": "^1.3.0",
|
| 1539 |
+
"object-inspect": "^1.13.3",
|
| 1540 |
+
"side-channel-list": "^1.0.0",
|
| 1541 |
+
"side-channel-map": "^1.0.1",
|
| 1542 |
+
"side-channel-weakmap": "^1.0.2"
|
| 1543 |
+
},
|
| 1544 |
+
"engines": {
|
| 1545 |
+
"node": ">= 0.4"
|
| 1546 |
+
},
|
| 1547 |
+
"funding": {
|
| 1548 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1549 |
+
}
|
| 1550 |
+
},
|
| 1551 |
+
"node_modules/side-channel-list": {
|
| 1552 |
+
"version": "1.0.0",
|
| 1553 |
+
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
|
| 1554 |
+
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
|
| 1555 |
+
"license": "MIT",
|
| 1556 |
+
"dependencies": {
|
| 1557 |
+
"es-errors": "^1.3.0",
|
| 1558 |
+
"object-inspect": "^1.13.3"
|
| 1559 |
+
},
|
| 1560 |
+
"engines": {
|
| 1561 |
+
"node": ">= 0.4"
|
| 1562 |
+
},
|
| 1563 |
+
"funding": {
|
| 1564 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1565 |
+
}
|
| 1566 |
+
},
|
| 1567 |
+
"node_modules/side-channel-map": {
|
| 1568 |
+
"version": "1.0.1",
|
| 1569 |
+
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
|
| 1570 |
+
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
|
| 1571 |
+
"license": "MIT",
|
| 1572 |
+
"dependencies": {
|
| 1573 |
+
"call-bound": "^1.0.2",
|
| 1574 |
+
"es-errors": "^1.3.0",
|
| 1575 |
+
"get-intrinsic": "^1.2.5",
|
| 1576 |
+
"object-inspect": "^1.13.3"
|
| 1577 |
+
},
|
| 1578 |
+
"engines": {
|
| 1579 |
+
"node": ">= 0.4"
|
| 1580 |
+
},
|
| 1581 |
+
"funding": {
|
| 1582 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1583 |
+
}
|
| 1584 |
+
},
|
| 1585 |
+
"node_modules/side-channel-weakmap": {
|
| 1586 |
+
"version": "1.0.2",
|
| 1587 |
+
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
|
| 1588 |
+
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
|
| 1589 |
+
"license": "MIT",
|
| 1590 |
+
"dependencies": {
|
| 1591 |
+
"call-bound": "^1.0.2",
|
| 1592 |
+
"es-errors": "^1.3.0",
|
| 1593 |
+
"get-intrinsic": "^1.2.5",
|
| 1594 |
+
"object-inspect": "^1.13.3",
|
| 1595 |
+
"side-channel-map": "^1.0.1"
|
| 1596 |
+
},
|
| 1597 |
+
"engines": {
|
| 1598 |
+
"node": ">= 0.4"
|
| 1599 |
+
},
|
| 1600 |
+
"funding": {
|
| 1601 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1602 |
+
}
|
| 1603 |
+
},
|
| 1604 |
+
"node_modules/source-map": {
|
| 1605 |
+
"version": "0.6.1",
|
| 1606 |
+
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
| 1607 |
+
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
| 1608 |
+
"dev": true,
|
| 1609 |
+
"license": "BSD-3-Clause",
|
| 1610 |
+
"optional": true,
|
| 1611 |
+
"engines": {
|
| 1612 |
+
"node": ">=0.10.0"
|
| 1613 |
+
}
|
| 1614 |
+
},
|
| 1615 |
+
"node_modules/statuses": {
|
| 1616 |
+
"version": "2.0.1",
|
| 1617 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
| 1618 |
+
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
| 1619 |
+
"license": "MIT",
|
| 1620 |
+
"engines": {
|
| 1621 |
+
"node": ">= 0.8"
|
| 1622 |
+
}
|
| 1623 |
+
},
|
| 1624 |
+
"node_modules/strip-json-comments": {
|
| 1625 |
+
"version": "3.1.1",
|
| 1626 |
+
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
|
| 1627 |
+
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
| 1628 |
+
"dev": true,
|
| 1629 |
+
"license": "MIT",
|
| 1630 |
+
"engines": {
|
| 1631 |
+
"node": ">=8"
|
| 1632 |
+
},
|
| 1633 |
+
"funding": {
|
| 1634 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1635 |
+
}
|
| 1636 |
+
},
|
| 1637 |
+
"node_modules/supports-color": {
|
| 1638 |
+
"version": "7.2.0",
|
| 1639 |
+
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
| 1640 |
+
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
| 1641 |
+
"dev": true,
|
| 1642 |
+
"license": "MIT",
|
| 1643 |
+
"dependencies": {
|
| 1644 |
+
"has-flag": "^4.0.0"
|
| 1645 |
+
},
|
| 1646 |
+
"engines": {
|
| 1647 |
+
"node": ">=8"
|
| 1648 |
+
}
|
| 1649 |
+
},
|
| 1650 |
+
"node_modules/tmp": {
|
| 1651 |
+
"version": "0.2.3",
|
| 1652 |
+
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz",
|
| 1653 |
+
"integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==",
|
| 1654 |
+
"dev": true,
|
| 1655 |
+
"license": "MIT",
|
| 1656 |
+
"engines": {
|
| 1657 |
+
"node": ">=14.14"
|
| 1658 |
+
}
|
| 1659 |
+
},
|
| 1660 |
+
"node_modules/toidentifier": {
|
| 1661 |
+
"version": "1.0.1",
|
| 1662 |
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
| 1663 |
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
| 1664 |
+
"license": "MIT",
|
| 1665 |
+
"engines": {
|
| 1666 |
+
"node": ">=0.6"
|
| 1667 |
+
}
|
| 1668 |
+
},
|
| 1669 |
+
"node_modules/type-check": {
|
| 1670 |
+
"version": "0.3.2",
|
| 1671 |
+
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz",
|
| 1672 |
+
"integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==",
|
| 1673 |
+
"dev": true,
|
| 1674 |
+
"license": "MIT",
|
| 1675 |
+
"dependencies": {
|
| 1676 |
+
"prelude-ls": "~1.1.2"
|
| 1677 |
+
},
|
| 1678 |
+
"engines": {
|
| 1679 |
+
"node": ">= 0.8.0"
|
| 1680 |
+
}
|
| 1681 |
+
},
|
| 1682 |
+
"node_modules/type-is": {
|
| 1683 |
+
"version": "1.6.18",
|
| 1684 |
+
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
| 1685 |
+
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
| 1686 |
+
"license": "MIT",
|
| 1687 |
+
"dependencies": {
|
| 1688 |
+
"media-typer": "0.3.0",
|
| 1689 |
+
"mime-types": "~2.1.24"
|
| 1690 |
+
},
|
| 1691 |
+
"engines": {
|
| 1692 |
+
"node": ">= 0.6"
|
| 1693 |
+
}
|
| 1694 |
+
},
|
| 1695 |
+
"node_modules/uc.micro": {
|
| 1696 |
+
"version": "2.1.0",
|
| 1697 |
+
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz",
|
| 1698 |
+
"integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==",
|
| 1699 |
+
"dev": true,
|
| 1700 |
+
"license": "MIT"
|
| 1701 |
+
},
|
| 1702 |
+
"node_modules/uglify-js": {
|
| 1703 |
+
"version": "3.19.3",
|
| 1704 |
+
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz",
|
| 1705 |
+
"integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==",
|
| 1706 |
+
"dev": true,
|
| 1707 |
+
"license": "BSD-2-Clause",
|
| 1708 |
+
"bin": {
|
| 1709 |
+
"uglifyjs": "bin/uglifyjs"
|
| 1710 |
+
},
|
| 1711 |
+
"engines": {
|
| 1712 |
+
"node": ">=0.8.0"
|
| 1713 |
+
}
|
| 1714 |
+
},
|
| 1715 |
+
"node_modules/underscore": {
|
| 1716 |
+
"version": "1.13.7",
|
| 1717 |
+
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.7.tgz",
|
| 1718 |
+
"integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==",
|
| 1719 |
+
"dev": true,
|
| 1720 |
+
"license": "MIT"
|
| 1721 |
+
},
|
| 1722 |
+
"node_modules/undici": {
|
| 1723 |
+
"version": "7.4.0",
|
| 1724 |
+
"resolved": "https://registry.npmjs.org/undici/-/undici-7.4.0.tgz",
|
| 1725 |
+
"integrity": "sha512-PUQM3/es3noM24oUn10u3kNNap0AbxESOmnssmW+dOi9yGwlUSi5nTNYl3bNbTkWOF8YZDkx2tCmj9OtQ3iGGw==",
|
| 1726 |
+
"license": "MIT",
|
| 1727 |
+
"engines": {
|
| 1728 |
+
"node": ">=20.18.1"
|
| 1729 |
+
}
|
| 1730 |
+
},
|
| 1731 |
+
"node_modules/undici-types": {
|
| 1732 |
+
"version": "6.20.0",
|
| 1733 |
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
|
| 1734 |
+
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
|
| 1735 |
+
"license": "MIT"
|
| 1736 |
+
},
|
| 1737 |
+
"node_modules/unpipe": {
|
| 1738 |
+
"version": "1.0.0",
|
| 1739 |
+
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
| 1740 |
+
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
| 1741 |
+
"license": "MIT",
|
| 1742 |
+
"engines": {
|
| 1743 |
+
"node": ">= 0.8"
|
| 1744 |
+
}
|
| 1745 |
+
},
|
| 1746 |
+
"node_modules/utils-merge": {
|
| 1747 |
+
"version": "1.0.1",
|
| 1748 |
+
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
| 1749 |
+
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
| 1750 |
+
"license": "MIT",
|
| 1751 |
+
"engines": {
|
| 1752 |
+
"node": ">= 0.4.0"
|
| 1753 |
+
}
|
| 1754 |
+
},
|
| 1755 |
+
"node_modules/uuid": {
|
| 1756 |
+
"version": "11.0.5",
|
| 1757 |
+
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
|
| 1758 |
+
"integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
|
| 1759 |
+
"funding": [
|
| 1760 |
+
"https://github.com/sponsors/broofa",
|
| 1761 |
+
"https://github.com/sponsors/ctavan"
|
| 1762 |
+
],
|
| 1763 |
+
"license": "MIT",
|
| 1764 |
+
"bin": {
|
| 1765 |
+
"uuid": "dist/esm/bin/uuid"
|
| 1766 |
+
}
|
| 1767 |
+
},
|
| 1768 |
+
"node_modules/vary": {
|
| 1769 |
+
"version": "1.1.2",
|
| 1770 |
+
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
| 1771 |
+
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
| 1772 |
+
"license": "MIT",
|
| 1773 |
+
"engines": {
|
| 1774 |
+
"node": ">= 0.8"
|
| 1775 |
+
}
|
| 1776 |
+
},
|
| 1777 |
+
"node_modules/word-wrap": {
|
| 1778 |
+
"version": "1.2.5",
|
| 1779 |
+
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
|
| 1780 |
+
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
|
| 1781 |
+
"dev": true,
|
| 1782 |
+
"license": "MIT",
|
| 1783 |
+
"engines": {
|
| 1784 |
+
"node": ">=0.10.0"
|
| 1785 |
+
}
|
| 1786 |
+
},
|
| 1787 |
+
"node_modules/wrappy": {
|
| 1788 |
+
"version": "1.0.2",
|
| 1789 |
+
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
| 1790 |
+
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
| 1791 |
+
"dev": true,
|
| 1792 |
+
"license": "ISC"
|
| 1793 |
+
},
|
| 1794 |
+
"node_modules/xmlcreate": {
|
| 1795 |
+
"version": "2.0.4",
|
| 1796 |
+
"resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz",
|
| 1797 |
+
"integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==",
|
| 1798 |
+
"dev": true,
|
| 1799 |
+
"license": "Apache-2.0"
|
| 1800 |
+
}
|
| 1801 |
+
}
|
| 1802 |
+
}
|
package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "cursor-to-openai",
|
| 3 |
+
"version": "2.5.1",
|
| 4 |
+
"description": "Cursor to OpenAPI",
|
| 5 |
+
"author": "JiuZ-Chn",
|
| 6 |
+
"private": false,
|
| 7 |
+
"main": "index.js",
|
| 8 |
+
"url": "https://github.com/JiuZ-Chn/Cursor-To-OpenAI",
|
| 9 |
+
"license": "MIT",
|
| 10 |
+
"dependencies": {
|
| 11 |
+
"express": "4.21.2",
|
| 12 |
+
"morgan": "^1.10.0",
|
| 13 |
+
"protobufjs": "^7.4.0",
|
| 14 |
+
"undici": "^7.4.0",
|
| 15 |
+
"uuid": "11.0.5"
|
| 16 |
+
},
|
| 17 |
+
"scripts": {
|
| 18 |
+
"proto": "npx pbjs -t static-module -w commonjs -o src/proto/message.js src/proto/message.proto",
|
| 19 |
+
"login": "node src/tool/cursorLogin.js",
|
| 20 |
+
"start": "node src/app.js"
|
| 21 |
+
},
|
| 22 |
+
"devDependencies": {
|
| 23 |
+
"protobufjs-cli": "^1.1.3"
|
| 24 |
+
}
|
| 25 |
+
}
|
src/app.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const express = require('express');
|
| 2 |
+
const morgan = require('morgan');
|
| 3 |
+
const app = express();
|
| 4 |
+
|
| 5 |
+
const config = require('./config/config');
|
| 6 |
+
const routes = require('./routes');
|
| 7 |
+
|
| 8 |
+
app.use(express.json({ limit: '50mb' }));
|
| 9 |
+
app.use(express.urlencoded({ extended: true, limit: '50mb' }));
|
| 10 |
+
|
| 11 |
+
app.use(morgan(process.env.MORGAN_FORMAT ?? 'tiny'));
|
| 12 |
+
|
| 13 |
+
app.use("/", routes)
|
| 14 |
+
|
| 15 |
+
app.listen(config.port, () => {
|
| 16 |
+
console.log(`The server listens port: ${config.port}`);
|
| 17 |
+
});
|
src/config/config.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports = {
|
| 2 |
+
port: process.env.PORT || 3010,
|
| 3 |
+
proxy:{
|
| 4 |
+
enabled: false,
|
| 5 |
+
url: 'http://127.0.0.1:7890',
|
| 6 |
+
},
|
| 7 |
+
//chatMode: 1 // 1 for ask, 2 for agent, 3 for edit
|
| 8 |
+
};
|
src/proto/message.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
src/proto/message.proto
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
syntax = "proto3";
|
| 2 |
+
|
| 3 |
+
message AvailableModelsResponse {
|
| 4 |
+
message AvailableModel {
|
| 5 |
+
string name = 1;
|
| 6 |
+
bool defaultOn = 2;
|
| 7 |
+
optional bool isLongContextOnly = 3;
|
| 8 |
+
optional bool isChatOnly = 4;
|
| 9 |
+
}
|
| 10 |
+
repeated AvailableModel models = 2;
|
| 11 |
+
repeated string modelNames = 1;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
message MessageSummary {
|
| 15 |
+
string content = 1;
|
| 16 |
+
string summaryId1 = 2;
|
| 17 |
+
string summaryId2 = 3; // uuid, equal to summaryId1
|
| 18 |
+
string previousSummaryId = 4;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
message MessageThinking {
|
| 22 |
+
string content = 1;
|
| 23 |
+
}
|
| 24 |
+
message StreamUnifiedChatWithToolsRequest {
|
| 25 |
+
message Request {
|
| 26 |
+
message Message {
|
| 27 |
+
message Image {
|
| 28 |
+
message Metadata {
|
| 29 |
+
int32 width = 1;
|
| 30 |
+
int32 height = 2;
|
| 31 |
+
}
|
| 32 |
+
bytes data = 1;
|
| 33 |
+
Metadata metadata = 2;
|
| 34 |
+
}
|
| 35 |
+
string content = 1;
|
| 36 |
+
int32 role = 2;
|
| 37 |
+
Image image = 10;
|
| 38 |
+
string messageId = 13;
|
| 39 |
+
string unknown29 = 29; // 1, only for user message
|
| 40 |
+
string summaryId = 32;
|
| 41 |
+
MessageSummary summary = 39;
|
| 42 |
+
MessageThinking thinking = 45;
|
| 43 |
+
int32 chatModeEnum = 47; // 1 for ask, 2 for agent, 3 for edit
|
| 44 |
+
}
|
| 45 |
+
message Instruction {
|
| 46 |
+
string instruction = 1;
|
| 47 |
+
}
|
| 48 |
+
message Model {
|
| 49 |
+
string name = 1;
|
| 50 |
+
bytes empty = 4;
|
| 51 |
+
}
|
| 52 |
+
message CursorSetting {
|
| 53 |
+
message Unknown6 {
|
| 54 |
+
bytes unknown1 = 1;
|
| 55 |
+
bytes unknown2 = 2;
|
| 56 |
+
}
|
| 57 |
+
string name = 1;
|
| 58 |
+
bytes unknown3 = 3;
|
| 59 |
+
Unknown6 unknown6 = 6;
|
| 60 |
+
int32 unknown8 = 8;
|
| 61 |
+
int32 unknown9 = 9;
|
| 62 |
+
}
|
| 63 |
+
message Metadata {
|
| 64 |
+
string os = 1; // win32
|
| 65 |
+
string arch = 2; // x64
|
| 66 |
+
string version = 3; // 10.0.22631
|
| 67 |
+
string path = 4; // C:\Program Files\PowerShell\7\pwsh.exe
|
| 68 |
+
string timestamp = 5; // 2025-03-03T13:10:08.590Z
|
| 69 |
+
}
|
| 70 |
+
message MessageId {
|
| 71 |
+
string messageId = 1;
|
| 72 |
+
string summaryId = 2;
|
| 73 |
+
int32 role = 3;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
repeated Message messages = 1;
|
| 77 |
+
int32 unknown2 = 2; // 1
|
| 78 |
+
Instruction instruction = 3;
|
| 79 |
+
int32 unknown4 = 4; // 1
|
| 80 |
+
Model model = 5;
|
| 81 |
+
repeated string wikiTool = 7; // one url one item
|
| 82 |
+
string webTool = 8; // "full search"
|
| 83 |
+
int32 unknown13 = 13;
|
| 84 |
+
CursorSetting cursorSetting = 15;
|
| 85 |
+
int32 unknown19 = 19; // 1
|
| 86 |
+
int32 unknown22 = 22; // 1
|
| 87 |
+
string conversationId = 23; // uuid
|
| 88 |
+
Metadata metadata = 26;
|
| 89 |
+
int32 unknown27 = 27; // 1
|
| 90 |
+
string unknown29 = 29;
|
| 91 |
+
repeated MessageId messageIds = 30;
|
| 92 |
+
int32 largeContext = 35; // 1
|
| 93 |
+
int32 unknown38 = 38; // 0
|
| 94 |
+
int32 chatModeEnum = 46; // 1 for ask, 2 for agent, 3 for edit
|
| 95 |
+
string unknown47 = 47;
|
| 96 |
+
int32 unknown48 = 48; // 0
|
| 97 |
+
int32 unknown49 = 49; // 0
|
| 98 |
+
int32 unknown51 = 51; // 0
|
| 99 |
+
int32 unknown53 = 53; // 0
|
| 100 |
+
string chatMode = 54;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
Request request = 1;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
message StreamUnifiedChatWithToolsResponse {
|
| 107 |
+
message Message {
|
| 108 |
+
message WebTool {
|
| 109 |
+
message WebPage {
|
| 110 |
+
string url = 1;
|
| 111 |
+
string title = 2;
|
| 112 |
+
string content = 3;
|
| 113 |
+
}
|
| 114 |
+
repeated WebPage webPage = 1;
|
| 115 |
+
}
|
| 116 |
+
message Unknown12 {
|
| 117 |
+
message Content {
|
| 118 |
+
string content = 1;
|
| 119 |
+
}
|
| 120 |
+
Content content = 1;
|
| 121 |
+
}
|
| 122 |
+
string content = 1;
|
| 123 |
+
WebTool webtool = 11;
|
| 124 |
+
Unknown12 unknown12 = 12;
|
| 125 |
+
string unknown22 = 22; // uuid
|
| 126 |
+
string unknown23 = 23;
|
| 127 |
+
string unknown27 = 27; // uuid
|
| 128 |
+
MessageThinking thinking = 25;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
Message message = 2;
|
| 132 |
+
MessageSummary summary = 3;
|
| 133 |
+
}
|
src/routes/cursor.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const express = require('express');
|
| 2 |
+
const router = express.Router();
|
| 3 |
+
|
| 4 |
+
const { v4: uuidv4 } = require('uuid');
|
| 5 |
+
const { generatePkcePair, queryAuthPoll } = require('../tool/cursorLogin.js');
|
| 6 |
+
|
| 7 |
+
router.get("/loginDeepControl", async (req, res) => {
|
| 8 |
+
let bearerToken = req.headers.authorization?.replace('Bearer ', '');
|
| 9 |
+
const { verifier, challenge } = generatePkcePair();
|
| 10 |
+
const uuid = uuidv4();
|
| 11 |
+
const resposne = await fetch("https://www.cursor.com/api/auth/loginDeepCallbackControl", {
|
| 12 |
+
method: 'POST',
|
| 13 |
+
headers: {
|
| 14 |
+
"Accept": "*/*",
|
| 15 |
+
'Content-Type': 'application/json',
|
| 16 |
+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.6834.210 Safari/537.36',
|
| 17 |
+
'Cookie': `WorkosCursorSessionToken=${bearerToken}`
|
| 18 |
+
},
|
| 19 |
+
body: JSON.stringify({
|
| 20 |
+
"uuid": uuid,
|
| 21 |
+
"challenge": challenge
|
| 22 |
+
})
|
| 23 |
+
})
|
| 24 |
+
|
| 25 |
+
const retryAttempts = 20
|
| 26 |
+
for (let i = 0; i < retryAttempts; i++) {
|
| 27 |
+
const data = await queryAuthPoll(uuid, verifier);
|
| 28 |
+
if (data) {
|
| 29 |
+
return res.json(data)
|
| 30 |
+
}
|
| 31 |
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
return res.status(500).json({
|
| 35 |
+
error: 'Get cookie timeout, please try again.',
|
| 36 |
+
});
|
| 37 |
+
})
|
| 38 |
+
|
| 39 |
+
module.exports = router;
|
src/routes/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const express = require('express');
|
| 2 |
+
const router = express.Router();
|
| 3 |
+
const v1Routes = require('./v1');
|
| 4 |
+
const cursorRoutes = require('./cursor');
|
| 5 |
+
|
| 6 |
+
// OpenAI v1 API routes
|
| 7 |
+
router.use('/v1', v1Routes);
|
| 8 |
+
router.use('/cursor', cursorRoutes);
|
| 9 |
+
|
| 10 |
+
module.exports = router;
|
src/routes/v1.js
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const express = require('express');
|
| 2 |
+
const router = express.Router();
|
| 3 |
+
const { fetch, ProxyAgent, Agent } = require('undici');
|
| 4 |
+
|
| 5 |
+
const { v4: uuidv4, v5: uuidv5 } = require('uuid');
|
| 6 |
+
const config = require('../config/config');
|
| 7 |
+
const $root = require('../proto/message.js');
|
| 8 |
+
const { generateCursorBody, chunkToUtf8String, generateHashed64Hex, generateCursorChecksum } = require('../utils/utils.js');
|
| 9 |
+
|
| 10 |
+
router.get("/models", async (req, res) => {
|
| 11 |
+
try{
|
| 12 |
+
let bearerToken = req.headers.authorization?.replace('Bearer ', '');
|
| 13 |
+
let authToken = bearerToken.split(',').map((key) => key.trim())[0];
|
| 14 |
+
if (authToken && authToken.includes('%3A%3A')) {
|
| 15 |
+
authToken = authToken.split('%3A%3A')[1];
|
| 16 |
+
}
|
| 17 |
+
else if (authToken && authToken.includes('::')) {
|
| 18 |
+
authToken = authToken.split('::')[1];
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
const cursorChecksum = req.headers['x-cursor-checksum']
|
| 22 |
+
?? generateCursorChecksum(authToken.trim());
|
| 23 |
+
const cursorClientVersion = "0.48.7"
|
| 24 |
+
|
| 25 |
+
const customAgent = new Agent({
|
| 26 |
+
connectTimeout: 30000,
|
| 27 |
+
});
|
| 28 |
+
|
| 29 |
+
const availableModelsResponse = await fetch("https://cursor.cflin.ddns-ip.net/aiserver.v1.AiService/AvailableModels", {
|
| 30 |
+
method: 'POST',
|
| 31 |
+
headers: {
|
| 32 |
+
'accept-encoding': 'gzip',
|
| 33 |
+
'authorization': `Bearer ${authToken}`,
|
| 34 |
+
'connect-protocol-version': '1',
|
| 35 |
+
'content-type': 'application/proto',
|
| 36 |
+
'user-agent': 'connect-es/1.6.1',
|
| 37 |
+
'x-cursor-checksum': cursorChecksum,
|
| 38 |
+
'x-cursor-client-version': cursorClientVersion,
|
| 39 |
+
'x-cursor-config-version': uuidv4(),
|
| 40 |
+
'x-cursor-timezone': 'Asia/Shanghai',
|
| 41 |
+
'x-ghost-mode': 'true',
|
| 42 |
+
'Host': 'cursor.cflin.ddns-ip.net',
|
| 43 |
+
},
|
| 44 |
+
dispatcher: customAgent
|
| 45 |
+
})
|
| 46 |
+
const data = await availableModelsResponse.arrayBuffer();
|
| 47 |
+
const buffer = Buffer.from(data);
|
| 48 |
+
try{
|
| 49 |
+
const models = $root.AvailableModelsResponse.decode(buffer).models;
|
| 50 |
+
|
| 51 |
+
return res.json({
|
| 52 |
+
object: "list",
|
| 53 |
+
data: models.map(model => ({
|
| 54 |
+
id: model.name,
|
| 55 |
+
created: Date.now(),
|
| 56 |
+
object: 'model',
|
| 57 |
+
owned_by: 'cursor'
|
| 58 |
+
}))
|
| 59 |
+
})
|
| 60 |
+
} catch (error) {
|
| 61 |
+
const text = buffer.toString('utf-8');
|
| 62 |
+
throw new Error(text);
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
catch (error) {
|
| 66 |
+
console.error(error);
|
| 67 |
+
return res.status(500).json({
|
| 68 |
+
error: 'Internal server error',
|
| 69 |
+
});
|
| 70 |
+
}
|
| 71 |
+
})
|
| 72 |
+
|
| 73 |
+
router.post('/chat/completions', async (req, res) => {
|
| 74 |
+
|
| 75 |
+
try {
|
| 76 |
+
const { model, messages, stream = false } = req.body;
|
| 77 |
+
let bearerToken = req.headers.authorization?.replace('Bearer ', '');
|
| 78 |
+
const keys = bearerToken.split(',').map((key) => key.trim());
|
| 79 |
+
let authToken = keys[Math.floor(Math.random() * keys.length)]
|
| 80 |
+
|
| 81 |
+
if (!messages || !Array.isArray(messages) || messages.length === 0 || !authToken) {
|
| 82 |
+
return res.status(400).json({
|
| 83 |
+
error: 'Invalid request. Messages should be a non-empty array and authorization is required',
|
| 84 |
+
});
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
if (authToken && authToken.includes('%3A%3A')) {
|
| 88 |
+
authToken = authToken.split('%3A%3A')[1];
|
| 89 |
+
}
|
| 90 |
+
else if (authToken && authToken.includes('::')) {
|
| 91 |
+
authToken = authToken.split('::')[1];
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
const cursorChecksum = req.headers['x-cursor-checksum']
|
| 95 |
+
?? generateCursorChecksum(authToken.trim());
|
| 96 |
+
|
| 97 |
+
const sessionid = uuidv5(authToken, uuidv5.DNS);
|
| 98 |
+
const clientKey = generateHashed64Hex(authToken)
|
| 99 |
+
const cursorClientVersion = "0.48.7"
|
| 100 |
+
const cursorConfigVersion = uuidv4();
|
| 101 |
+
|
| 102 |
+
const customChatAgent = new Agent({
|
| 103 |
+
connectTimeout: 30000,
|
| 104 |
+
});
|
| 105 |
+
|
| 106 |
+
// Request the AvailableModels before StreamChat.
|
| 107 |
+
// Note: This specific fetch for AvailableModels inside /chat/completions might be redundant
|
| 108 |
+
// if /models is always called first by the client, but we'll update it for consistency.
|
| 109 |
+
const preChatAvailableModelsResponse = await fetch("https://cursor.cflin.ddns-ip.net/aiserver.v1.AiService/AvailableModels", {
|
| 110 |
+
method: 'POST',
|
| 111 |
+
headers: {
|
| 112 |
+
'accept-encoding': 'gzip',
|
| 113 |
+
'authorization': `Bearer ${authToken}`,
|
| 114 |
+
'connect-protocol-version': '1',
|
| 115 |
+
'content-type': 'application/proto',
|
| 116 |
+
'user-agent': 'connect-es/1.6.1',
|
| 117 |
+
'x-amzn-trace-id': `Root=${uuidv4()}`,
|
| 118 |
+
'x-client-key': clientKey,
|
| 119 |
+
'x-cursor-checksum': cursorChecksum,
|
| 120 |
+
'x-cursor-client-version': cursorClientVersion,
|
| 121 |
+
'x-cursor-config-version': cursorConfigVersion,
|
| 122 |
+
'x-cursor-timezone': 'Asia/Shanghai',
|
| 123 |
+
'x-ghost-mode': 'true',
|
| 124 |
+
"x-request-id": uuidv4(),
|
| 125 |
+
"x-session-id": sessionid,
|
| 126 |
+
'Host': 'cursor.cflin.ddns-ip.net',
|
| 127 |
+
},
|
| 128 |
+
dispatcher: customChatAgent
|
| 129 |
+
})
|
| 130 |
+
// We don't typically use the response of this pre-chat AvailableModels call directly in this route,
|
| 131 |
+
// but ensure it doesn't throw an error if it's vital.
|
| 132 |
+
if (!preChatAvailableModelsResponse.ok && messages[0]?.role !== 'user' && messages[0]?.content !== 'heartbeat') { // Added a check to avoid issues with potential heartbeat messages
|
| 133 |
+
console.warn(`Pre-chat AvailableModels check failed with status: ${preChatAvailableModelsResponse.status}`);
|
| 134 |
+
// Decide if this should be a critical failure or just a warning
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
const cursorBody = generateCursorBody(messages, model);
|
| 138 |
+
|
| 139 |
+
let chatDispatcher;
|
| 140 |
+
if (config.proxy.enabled) {
|
| 141 |
+
chatDispatcher = new ProxyAgent({
|
| 142 |
+
uri: config.proxy.url, // Assuming ProxyAgent constructor takes an object
|
| 143 |
+
connectTimeout: 30000,
|
| 144 |
+
// allowH2: true, // This was in your original code, ensure ProxyAgent supports it this way
|
| 145 |
+
});
|
| 146 |
+
} else {
|
| 147 |
+
chatDispatcher = customChatAgent;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
const response = await fetch('https://cursor.cflin.ddns-ip.net/aiserver.v1.ChatService/StreamUnifiedChatWithTools', {
|
| 151 |
+
method: 'POST',
|
| 152 |
+
headers: {
|
| 153 |
+
'authorization': `Bearer ${authToken}`,
|
| 154 |
+
'connect-accept-encoding': 'gzip',
|
| 155 |
+
'connect-content-encoding': 'gzip',
|
| 156 |
+
'connect-protocol-version': '1',
|
| 157 |
+
'content-type': 'application/connect+proto',
|
| 158 |
+
'user-agent': 'connect-es/1.6.1',
|
| 159 |
+
'x-amzn-trace-id': `Root=${uuidv4()}`,
|
| 160 |
+
'x-client-key': clientKey,
|
| 161 |
+
'x-cursor-checksum': cursorChecksum,
|
| 162 |
+
'x-cursor-client-version': cursorClientVersion,
|
| 163 |
+
'x-cursor-config-version': cursorConfigVersion,
|
| 164 |
+
'x-cursor-timezone': 'Asia/Shanghai',
|
| 165 |
+
'x-ghost-mode': 'true',
|
| 166 |
+
'x-request-id': uuidv4(),
|
| 167 |
+
'x-session-id': sessionid,
|
| 168 |
+
'Host': 'cursor.cflin.ddns-ip.net'
|
| 169 |
+
},
|
| 170 |
+
body: cursorBody,
|
| 171 |
+
dispatcher: chatDispatcher,
|
| 172 |
+
});
|
| 173 |
+
|
| 174 |
+
if (response.status !== 200) {
|
| 175 |
+
return res.status(response.status).json({
|
| 176 |
+
error: response.statusText
|
| 177 |
+
});
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
if (stream) {
|
| 181 |
+
res.setHeader('Content-Type', 'text/event-stream');
|
| 182 |
+
res.setHeader('Cache-Control', 'no-cache');
|
| 183 |
+
res.setHeader('Connection', 'keep-alive');
|
| 184 |
+
|
| 185 |
+
const responseId = `chatcmpl-${uuidv4()}`;
|
| 186 |
+
|
| 187 |
+
try {
|
| 188 |
+
let thinkingStart = "<thinking>";
|
| 189 |
+
let thinkingEnd = "</thinking>";
|
| 190 |
+
for await (const chunk of response.body) {
|
| 191 |
+
const { thinking, text } = chunkToUtf8String(chunk);
|
| 192 |
+
let content = ""
|
| 193 |
+
|
| 194 |
+
if (thinkingStart !== "" && thinking.length > 0 ){
|
| 195 |
+
content += thinkingStart + "\n"
|
| 196 |
+
thinkingStart = ""
|
| 197 |
+
}
|
| 198 |
+
content += thinking
|
| 199 |
+
if (thinkingEnd !== "" && thinking.length === 0 && text.length !== 0 && thinkingStart === "") {
|
| 200 |
+
content += "\n" + thinkingEnd + "\n"
|
| 201 |
+
thinkingEnd = ""
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
content += text
|
| 205 |
+
|
| 206 |
+
if (content.length > 0) {
|
| 207 |
+
res.write(
|
| 208 |
+
`data: ${JSON.stringify({
|
| 209 |
+
id: responseId,
|
| 210 |
+
object: 'chat.completion.chunk',
|
| 211 |
+
created: Math.floor(Date.now() / 1000),
|
| 212 |
+
model: model,
|
| 213 |
+
choices: [{
|
| 214 |
+
index: 0,
|
| 215 |
+
delta: {
|
| 216 |
+
content: content,
|
| 217 |
+
},
|
| 218 |
+
}],
|
| 219 |
+
})}\n\n`
|
| 220 |
+
);
|
| 221 |
+
}
|
| 222 |
+
}
|
| 223 |
+
} catch (streamError) {
|
| 224 |
+
console.error('Stream error:', streamError);
|
| 225 |
+
if (streamError.name === 'TimeoutError') {
|
| 226 |
+
res.write(`data: ${JSON.stringify({ error: 'Server response timeout' })}\n\n`);
|
| 227 |
+
} else {
|
| 228 |
+
res.write(`data: ${JSON.stringify({ error: 'Stream processing error' })}\n\n`);
|
| 229 |
+
}
|
| 230 |
+
} finally {
|
| 231 |
+
res.write('data: [DONE]\n\n');
|
| 232 |
+
res.end();
|
| 233 |
+
}
|
| 234 |
+
} else {
|
| 235 |
+
// Non-streaming response
|
| 236 |
+
try {
|
| 237 |
+
let thinkingStart = "<thinking>";
|
| 238 |
+
let thinkingEnd = "</thinking>";
|
| 239 |
+
let content = '';
|
| 240 |
+
for await (const chunk of response.body) {
|
| 241 |
+
const { thinking, text } = chunkToUtf8String(chunk);
|
| 242 |
+
|
| 243 |
+
if (thinkingStart !== "" && thinking.length > 0 ){
|
| 244 |
+
content += thinkingStart + "\n"
|
| 245 |
+
thinkingStart = ""
|
| 246 |
+
}
|
| 247 |
+
content += thinking
|
| 248 |
+
if (thinkingEnd !== "" && thinking.length === 0 && text.length !== 0 && thinkingStart === "") {
|
| 249 |
+
content += "\n" + thinkingEnd + "\n"
|
| 250 |
+
thinkingEnd = ""
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
content += text
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
return res.json({
|
| 257 |
+
id: `chatcmpl-${uuidv4()}`,
|
| 258 |
+
object: 'chat.completion',
|
| 259 |
+
created: Math.floor(Date.now() / 1000),
|
| 260 |
+
model: model,
|
| 261 |
+
choices: [
|
| 262 |
+
{
|
| 263 |
+
index: 0,
|
| 264 |
+
message: {
|
| 265 |
+
role: 'assistant',
|
| 266 |
+
content: content,
|
| 267 |
+
},
|
| 268 |
+
finish_reason: 'stop',
|
| 269 |
+
},
|
| 270 |
+
],
|
| 271 |
+
usage: {
|
| 272 |
+
prompt_tokens: 0,
|
| 273 |
+
completion_tokens: 0,
|
| 274 |
+
total_tokens: 0,
|
| 275 |
+
},
|
| 276 |
+
});
|
| 277 |
+
} catch (error) {
|
| 278 |
+
console.error('Non-stream error:', error);
|
| 279 |
+
if (error.name === 'TimeoutError') {
|
| 280 |
+
return res.status(408).json({ error: 'Server response timeout' });
|
| 281 |
+
}
|
| 282 |
+
throw error;
|
| 283 |
+
}
|
| 284 |
+
}
|
| 285 |
+
} catch (error) {
|
| 286 |
+
console.error('Error:', error);
|
| 287 |
+
if (!res.headersSent) {
|
| 288 |
+
const errorMessage = {
|
| 289 |
+
error: error.name === 'TimeoutError' ? 'Request timeout' : 'Internal server error'
|
| 290 |
+
};
|
| 291 |
+
|
| 292 |
+
if (req.body.stream) {
|
| 293 |
+
res.write(`data: ${JSON.stringify(errorMessage)}\n\n`);
|
| 294 |
+
return res.end();
|
| 295 |
+
} else {
|
| 296 |
+
return res.status(error.name === 'TimeoutError' ? 408 : 500).json(errorMessage);
|
| 297 |
+
}
|
| 298 |
+
}
|
| 299 |
+
}
|
| 300 |
+
});
|
| 301 |
+
|
| 302 |
+
module.exports = router;
|
src/tool/cursorLogin.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const crypto = require('crypto');
|
| 2 |
+
const { v4: uuidv4, v5: uuidv5 } = require('uuid');
|
| 3 |
+
|
| 4 |
+
function generatePkcePair() {
|
| 5 |
+
const verifier = crypto.randomBytes(43).toString('base64url');
|
| 6 |
+
const challenge = crypto.createHash('sha256').update(verifier).digest('base64url');
|
| 7 |
+
return { verifier, challenge };
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
function getLoginUrl(uuid, challenge) {
|
| 11 |
+
const loginUrl = `https://www.cursor.com/loginDeepControl?challenge=${challenge}&uuid=${uuid}&mode=login`
|
| 12 |
+
return loginUrl
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
async function queryAuthPoll(uuid, verifier){
|
| 16 |
+
const authPolllUrl = `https://api2.cursor.sh/auth/poll?uuid=${uuid}&verifier=${verifier}`;
|
| 17 |
+
const response = await fetch(authPolllUrl, {
|
| 18 |
+
method: 'GET',
|
| 19 |
+
headers: {
|
| 20 |
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Cursor/0.48.6 Chrome/132.0.6834.210 Electron/34.3.4 Safari/537.36",
|
| 21 |
+
"Accept": "*/*"
|
| 22 |
+
},
|
| 23 |
+
timeout: 5000
|
| 24 |
+
});
|
| 25 |
+
|
| 26 |
+
if (response.status === 200) {
|
| 27 |
+
const data = await response.json();
|
| 28 |
+
return data
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
return undefined;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
if (require.main === module) {
|
| 35 |
+
|
| 36 |
+
async function main(){
|
| 37 |
+
const { verifier, challenge } = generatePkcePair();
|
| 38 |
+
const uuid = uuidv4();
|
| 39 |
+
const loginUrl = getLoginUrl(uuid, challenge);
|
| 40 |
+
console.log("[Log] Please open the following URL in your browser to login:");
|
| 41 |
+
console.log(loginUrl);
|
| 42 |
+
|
| 43 |
+
const retryAttempts = 60;
|
| 44 |
+
|
| 45 |
+
for (let i = 0; i < retryAttempts; i++) {
|
| 46 |
+
console.log(`[Log] Waiting for login... (${i + 1}/${retryAttempts})`);
|
| 47 |
+
const data = await queryAuthPoll(uuid, verifier);
|
| 48 |
+
if (data) {
|
| 49 |
+
const accessToken = data.accessToken || undefined;
|
| 50 |
+
const authId = data.authId || "";
|
| 51 |
+
let token = undefined
|
| 52 |
+
if (authId.split("|").length > 1) {
|
| 53 |
+
const userId = authId.split("|")[1];
|
| 54 |
+
token = `${userId}%3A%3A${accessToken}`;
|
| 55 |
+
} else {
|
| 56 |
+
token = accessToken;
|
| 57 |
+
}
|
| 58 |
+
console.log("[Log] Login successfully. Your Cursor cookie:");
|
| 59 |
+
console.log(token)
|
| 60 |
+
break;
|
| 61 |
+
}
|
| 62 |
+
await new Promise(resolve => setTimeout(resolve, 5000));
|
| 63 |
+
|
| 64 |
+
if (i === retryAttempts - 1) {
|
| 65 |
+
console.log("Login timeout, please try again.");
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
main().catch((error) => {
|
| 71 |
+
console.error("Error:", error);
|
| 72 |
+
});
|
| 73 |
+
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
module.exports = {
|
| 77 |
+
generatePkcePair,
|
| 78 |
+
queryAuthPoll
|
| 79 |
+
}
|
src/utils/utils.js
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const os = require('os');
|
| 2 |
+
const zlib = require('zlib');
|
| 3 |
+
const crypto = require('crypto');
|
| 4 |
+
const { v4: uuidv4 } = require('uuid');
|
| 5 |
+
const $root = require('../proto/message.js');
|
| 6 |
+
|
| 7 |
+
function generateCursorBody(messages, modelName) {
|
| 8 |
+
|
| 9 |
+
const instruction = messages
|
| 10 |
+
.filter(msg => msg.role === 'system')
|
| 11 |
+
.map(msg => msg.content)
|
| 12 |
+
.join('\n')
|
| 13 |
+
|
| 14 |
+
const formattedMessages = messages
|
| 15 |
+
.filter(msg => msg.role !== 'system')
|
| 16 |
+
.map(msg => ({
|
| 17 |
+
content: msg.content,
|
| 18 |
+
role: msg.role === 'user' ? 1 : 2,
|
| 19 |
+
messageId: uuidv4(),
|
| 20 |
+
...(msg.role === 'user' ? { chatModeEnum: 1 } : {})
|
| 21 |
+
//...(msg.role !== 'user' ? { summaryId: uuidv4() } : {})
|
| 22 |
+
}));
|
| 23 |
+
|
| 24 |
+
const messageIds = formattedMessages.map(msg => {
|
| 25 |
+
const { role, messageId, summaryId } = msg;
|
| 26 |
+
return summaryId ? { role, messageId, summaryId } : { role, messageId };
|
| 27 |
+
});
|
| 28 |
+
|
| 29 |
+
const body = {
|
| 30 |
+
request:{
|
| 31 |
+
messages: formattedMessages,
|
| 32 |
+
unknown2: 1,
|
| 33 |
+
instruction: {
|
| 34 |
+
instruction: instruction
|
| 35 |
+
},
|
| 36 |
+
unknown4: 1,
|
| 37 |
+
model: {
|
| 38 |
+
name: modelName,
|
| 39 |
+
empty: '',
|
| 40 |
+
},
|
| 41 |
+
webTool: "",
|
| 42 |
+
unknown13: 1,
|
| 43 |
+
cursorSetting: {
|
| 44 |
+
name: "cursor\\aisettings",
|
| 45 |
+
unknown3: "",
|
| 46 |
+
unknown6: {
|
| 47 |
+
unknwon1: "",
|
| 48 |
+
unknown2: ""
|
| 49 |
+
},
|
| 50 |
+
unknown8: 1,
|
| 51 |
+
unknown9: 1
|
| 52 |
+
},
|
| 53 |
+
unknown19: 1,
|
| 54 |
+
//unknown22: 1,
|
| 55 |
+
conversationId: uuidv4(),
|
| 56 |
+
metadata: {
|
| 57 |
+
os: "win32",
|
| 58 |
+
arch: "x64",
|
| 59 |
+
version: "10.0.22631",
|
| 60 |
+
path: "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
|
| 61 |
+
timestamp: new Date().toISOString(),
|
| 62 |
+
},
|
| 63 |
+
unknown27: 0,
|
| 64 |
+
//unknown29: "",
|
| 65 |
+
messageIds: messageIds,
|
| 66 |
+
largeContext: 0,
|
| 67 |
+
unknown38: 0,
|
| 68 |
+
chatModeEnum: 1,
|
| 69 |
+
unknown47: "",
|
| 70 |
+
unknown48: 0,
|
| 71 |
+
unknown49: 0,
|
| 72 |
+
unknown51: 0,
|
| 73 |
+
unknown53: 1,
|
| 74 |
+
chatMode: "Ask"
|
| 75 |
+
}
|
| 76 |
+
};
|
| 77 |
+
|
| 78 |
+
const errMsg = $root.StreamUnifiedChatWithToolsRequest.verify(body);
|
| 79 |
+
if (errMsg) throw Error(errMsg);
|
| 80 |
+
const instance = $root.StreamUnifiedChatWithToolsRequest.create(body);
|
| 81 |
+
let buffer = $root.StreamUnifiedChatWithToolsRequest.encode(instance).finish();
|
| 82 |
+
let magicNumber = 0x00
|
| 83 |
+
if (formattedMessages.length >= 3){
|
| 84 |
+
buffer = zlib.gzipSync(buffer)
|
| 85 |
+
magicNumber = 0x01
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
const finalBody = Buffer.concat([
|
| 89 |
+
Buffer.from([magicNumber]),
|
| 90 |
+
Buffer.from(buffer.length.toString(16).padStart(8, '0'), 'hex'),
|
| 91 |
+
buffer
|
| 92 |
+
])
|
| 93 |
+
|
| 94 |
+
return finalBody
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
function chunkToUtf8String(chunk) {
|
| 98 |
+
const thinkingOutput = []
|
| 99 |
+
const textOutput = []
|
| 100 |
+
const buffer = Buffer.from(chunk, 'hex');
|
| 101 |
+
//console.log("Chunk buffer:", buffer.toString('hex'))
|
| 102 |
+
|
| 103 |
+
try {
|
| 104 |
+
for(let i = 0; i < buffer.length; i++){
|
| 105 |
+
const magicNumber = parseInt(buffer.subarray(i, i + 1).toString('hex'), 16)
|
| 106 |
+
const dataLength = parseInt(buffer.subarray(i + 1, i + 5).toString('hex'), 16)
|
| 107 |
+
const data = buffer.subarray(i + 5, i + 5 + dataLength)
|
| 108 |
+
//console.log("Parsed buffer:", magicNumber, dataLength, data.toString('hex'))
|
| 109 |
+
|
| 110 |
+
if (magicNumber == 0 || magicNumber == 1) {
|
| 111 |
+
const gunzipData = magicNumber == 0 ? data : zlib.gunzipSync(data)
|
| 112 |
+
const response = $root.StreamUnifiedChatWithToolsResponse.decode(gunzipData);
|
| 113 |
+
|
| 114 |
+
const thinking = response?.message?.thinking?.content
|
| 115 |
+
if (thinking !== undefined){
|
| 116 |
+
thinkingOutput.push(thinking)
|
| 117 |
+
//console.log(thinking)
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
const content = response?.message?.content
|
| 121 |
+
if (content !== undefined){
|
| 122 |
+
textOutput.push(content)
|
| 123 |
+
//console.log(content)
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
}
|
| 127 |
+
else if (magicNumber == 2 || magicNumber == 3) {
|
| 128 |
+
// Json message
|
| 129 |
+
const gunzipData = magicNumber == 2 ? data : zlib.gunzipSync(data)
|
| 130 |
+
const utf8 = gunzipData.toString('utf-8')
|
| 131 |
+
const message = JSON.parse(utf8)
|
| 132 |
+
|
| 133 |
+
if (message != null && (typeof message !== 'object' ||
|
| 134 |
+
(Array.isArray(message) ? message.length > 0 : Object.keys(message).length > 0))){
|
| 135 |
+
//results.push(utf8)
|
| 136 |
+
console.error(utf8)
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
}
|
| 140 |
+
else {
|
| 141 |
+
//console.log('Unknown magic number when parsing chunk response: ' + magicNumber)
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
i += 5 + dataLength - 1
|
| 145 |
+
}
|
| 146 |
+
} catch (err) {
|
| 147 |
+
console.log('Error parsing chunk response:', err)
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
return {
|
| 151 |
+
thinking: thinkingOutput.join(''),
|
| 152 |
+
text: textOutput.join('')
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
function generateHashed64Hex(input, salt = '') {
|
| 157 |
+
const hash = crypto.createHash('sha256');
|
| 158 |
+
hash.update(input + salt);
|
| 159 |
+
return hash.digest('hex');
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
function obfuscateBytes(byteArray) {
|
| 163 |
+
let t = 165;
|
| 164 |
+
for (let r = 0; r < byteArray.length; r++) {
|
| 165 |
+
byteArray[r] = (byteArray[r] ^ t) + (r % 256);
|
| 166 |
+
t = byteArray[r];
|
| 167 |
+
}
|
| 168 |
+
return byteArray;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
function generateCursorChecksum(token) {
|
| 172 |
+
const machineId = generateHashed64Hex(token, 'machineId');
|
| 173 |
+
const macMachineId = generateHashed64Hex(token, 'macMachineId');
|
| 174 |
+
|
| 175 |
+
const timestamp = Math.floor(Date.now() / 1e6);
|
| 176 |
+
const byteArray = new Uint8Array([
|
| 177 |
+
(timestamp >> 40) & 255,
|
| 178 |
+
(timestamp >> 32) & 255,
|
| 179 |
+
(timestamp >> 24) & 255,
|
| 180 |
+
(timestamp >> 16) & 255,
|
| 181 |
+
(timestamp >> 8) & 255,
|
| 182 |
+
255 & timestamp,
|
| 183 |
+
]);
|
| 184 |
+
|
| 185 |
+
const obfuscatedBytes = obfuscateBytes(byteArray);
|
| 186 |
+
const encodedChecksum = Buffer.from(obfuscatedBytes).toString('base64');
|
| 187 |
+
|
| 188 |
+
return `${encodedChecksum}${machineId}/${macMachineId}`;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
module.exports = {
|
| 192 |
+
generateCursorBody,
|
| 193 |
+
chunkToUtf8String,
|
| 194 |
+
generateHashed64Hex,
|
| 195 |
+
generateCursorChecksum
|
| 196 |
+
};
|
works.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
addEventListener('fetch', event => {
|
| 2 |
+
event.respondWith(handleRequest(event.request))
|
| 3 |
+
})
|
| 4 |
+
|
| 5 |
+
async function handleRequest(request) {
|
| 6 |
+
const url = new URL(request.url)
|
| 7 |
+
const targetUrl = `https://api2.cursor.sh${url.pathname}${url.search}`
|
| 8 |
+
|
| 9 |
+
// 创建一个新的请求对象,复制原始请求的头部和方法,但使用新的目标URL
|
| 10 |
+
// 注意:一些头部可能需要特殊处理,或者不应该直接复制 (例如 Host)
|
| 11 |
+
const newHeaders = new Headers(request.headers)
|
| 12 |
+
newHeaders.set('Host', 'api2.cursor.sh') // 设置正确的主机头
|
| 13 |
+
|
| 14 |
+
const newRequest = new Request(targetUrl, {
|
| 15 |
+
method: request.method,
|
| 16 |
+
headers: newHeaders,
|
| 17 |
+
body: request.body,
|
| 18 |
+
redirect: 'follow' // 根据需要处理重定向
|
| 19 |
+
})
|
| 20 |
+
|
| 21 |
+
try {
|
| 22 |
+
const response = await fetch(newRequest)
|
| 23 |
+
// 创建一个新的响应,以便可以修改头部 (例如,CORS)
|
| 24 |
+
const newResponseHeaders = new Headers(response.headers)
|
| 25 |
+
// 允许跨域请求 (根据需要调整)
|
| 26 |
+
newResponseHeaders.set('Access-Control-Allow-Origin', '*')
|
| 27 |
+
newResponseHeaders.set('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS')
|
| 28 |
+
newResponseHeaders.set('Access-Control-Allow-Headers', '*')
|
| 29 |
+
|
| 30 |
+
return new Response(response.body, {
|
| 31 |
+
status: response.status,
|
| 32 |
+
statusText: response.statusText,
|
| 33 |
+
headers: newResponseHeaders
|
| 34 |
+
})
|
| 35 |
+
} catch (e) {
|
| 36 |
+
return new Response(e.toString(), { status: 500 })
|
| 37 |
+
}
|
| 38 |
+
}
|