Upload 18 files
Browse files- .env.example +65 -0
- .gitignore +135 -0
- Dockerfile +13 -0
- LICENSE +201 -0
- README.md +569 -11
- SETUP.md +102 -0
- add-api-key.js +43 -0
- auto-refresh-cookies.js +143 -0
- cursor-to-openai-helper.sh +557 -0
- docker-compose.yaml +14 -0
- manage-emails.js +309 -0
- manage-invalid-cookies.js +169 -0
- package-lock.json +2281 -0
- package.json +37 -0
- project.sh +51 -0
- setup.js +361 -0
- test-api.js +21 -0
- test-get-cookies.js +35 -0
.env.example
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 服务端口
|
| 2 |
+
PORT=3010
|
| 3 |
+
|
| 4 |
+
# 日志格式 (tiny, combined, common, dev, short)
|
| 5 |
+
MORGAN_FORMAT=tiny
|
| 6 |
+
|
| 7 |
+
# API Key与Cookie映射关系 (JSON格式)
|
| 8 |
+
# 格式: {"自定义API Key": "Cookie值"} 或 {"自定义API Key": ["Cookie值1", "Cookie值2"]}
|
| 9 |
+
API_KEYS={"sk-cursor-123":"user_xxxxxxx","sk-cursor-456":["user_yyyyyyy","user_zzzzzzz"]}
|
| 10 |
+
|
| 11 |
+
# 轮询策略 (random 或 round-robin)
|
| 12 |
+
ROTATION_STRATEGY=round-robin
|
| 13 |
+
|
| 14 |
+
# Cursor校验和 (可选)
|
| 15 |
+
# x-cursor-checksum=xxxxxxxx
|
| 16 |
+
|
| 17 |
+
# 自动刷新Cookie设置
|
| 18 |
+
# 是否启用自动刷新Cookie (true 或 false)
|
| 19 |
+
ENABLE_AUTO_REFRESH=true
|
| 20 |
+
|
| 21 |
+
# 自动刷新Cookie的定时规则 (Cron表达式)
|
| 22 |
+
# 默认每6小时执行一次
|
| 23 |
+
REFRESH_CRON=0 */6 * * *
|
| 24 |
+
|
| 25 |
+
# 每个API Key最小Cookie数量
|
| 26 |
+
# 当Cookie数量低于此值时,会自动尝试刷新
|
| 27 |
+
MIN_COOKIE_COUNT=1000
|
| 28 |
+
|
| 29 |
+
# Cookie刷新模式
|
| 30 |
+
# replace: 每次刷新都将现有cookie全部标记为无效并替换成新cookie(默认)
|
| 31 |
+
# append: 保留现有cookie,仅追加新cookie
|
| 32 |
+
COOKIE_REFRESH_MODE=replace
|
| 33 |
+
|
| 34 |
+
# GitHub 仓库信息
|
| 35 |
+
GITHUB_OWNER=your_name
|
| 36 |
+
GITHUB_REPO=Cursor-Register-fix
|
| 37 |
+
|
| 38 |
+
# GitHub Token (用于从GitHub Actions下载Artifact)
|
| 39 |
+
# 需要有repo权限
|
| 40 |
+
GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
| 41 |
+
|
| 42 |
+
# GitHub Actions 工作流ID
|
| 43 |
+
# 用于触发工作流程
|
| 44 |
+
GITHUB_WORKFLOW_ID=cursor_register.yml
|
| 45 |
+
|
| 46 |
+
# 是否自动触发工作流
|
| 47 |
+
# 设置为true时,会自动触发工作流而不是仅获取最新结果
|
| 48 |
+
TRIGGER_WORKFLOW=true
|
| 49 |
+
|
| 50 |
+
# 工作流参数设置 目前只支持gmail,outlook过于复杂,暂时不支持
|
| 51 |
+
# 注册账号数量
|
| 52 |
+
REGISTER_NUMBER=1
|
| 53 |
+
# 最大并发工作线程数
|
| 54 |
+
REGISTER_MAX_WORKERS=1
|
| 55 |
+
# 邮箱服务器类型 (TempEmail 或 IMAP)
|
| 56 |
+
REGISTER_EMAIL_SERVER=IMAP
|
| 57 |
+
# 是否将账号令牌注入到OneAPI (true 或 false)
|
| 58 |
+
REGISTER_INGEST_TO_ONEAPI=false
|
| 59 |
+
# 是否上传账号信息到Artifact (true 或 false)
|
| 60 |
+
REGISTER_UPLOAD_ARTIFACT=true
|
| 61 |
+
# 是否从config.yaml读取邮箱配置 (true 或 false)
|
| 62 |
+
REGISTER_USE_CONFIG_FILE=false
|
| 63 |
+
# 邮箱配置JSON字符串(仅在REGISTER_USE_CONFIG_FILE=false时有效)
|
| 64 |
+
# 格式例如[{"email":"[email protected]","imap_server":"imap.gmail.com","imap_port":993,"username":"[email protected]","password":"your_app_password"}]
|
| 65 |
+
REGISTER_EMAIL_CONFIGS=[]
|
.gitignore
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.*
|
| 131 |
+
|
| 132 |
+
data/admin.json
|
| 133 |
+
data/api_keys.json
|
| 134 |
+
data/invalid_cookies.json
|
| 135 |
+
.env.*
|
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 . /app
|
| 10 |
+
|
| 11 |
+
EXPOSE 3010
|
| 12 |
+
|
| 13 |
+
CMD ["npm", "run", "start"]
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright 2024 liuw1535
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
README.md
CHANGED
|
@@ -1,11 +1,569 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Cursor-To-OpenAI
|
| 2 |
+
|
| 3 |
+
将Cursor的API请求转发到OpenAI,支持多个API Key轮询,自动刷新Cookie。
|
| 4 |
+
|
| 5 |
+
## 项目特点
|
| 6 |
+
|
| 7 |
+
- 🔄 **自动刷新Cookie**: 支持通过GitHub Action自动注册新账号并获取Cookie
|
| 8 |
+
- 🔑 **多Key轮询**: 支持配置多个API Key进行轮询,提高可用性
|
| 9 |
+
- 🚀 **简易配置**: 提供一键配置脚本,快速完成环境搭建
|
| 10 |
+
- 📧 **邮箱管理**: 支持管理多个Gmail账号用于自动注册
|
| 11 |
+
- 📊 **状态监控**: 可查看各API Key的使用情况和Cookie状态
|
| 12 |
+
- 🔧 **易于维护**: 提供便捷的维护脚本,简化日常操作
|
| 13 |
+
|
| 14 |
+
## 快速开始
|
| 15 |
+
|
| 16 |
+
我们提供了一个简易脚本,帮助您快速上手本项目:
|
| 17 |
+
|
| 18 |
+
```bash
|
| 19 |
+
# 下载管理脚本
|
| 20 |
+
curl -O https://github.com/liuw1535/cursor-to-openai-nexus/main/cursor-to-openai-helper.sh
|
| 21 |
+
|
| 22 |
+
# 设置可执行权限
|
| 23 |
+
chmod +x cursor-to-openai-helper.sh
|
| 24 |
+
|
| 25 |
+
# 运行脚本
|
| 26 |
+
./cursor-to-openai-helper.sh
|
| 27 |
+
```
|
| 28 |
+
### 使用指南
|
| 29 |
+
#### 管理脚本功能
|
| 30 |
+
脚本提供了四个主要功能区:
|
| 31 |
+
|
| 32 |
+
1. 启动服务 (npm) - 快速启动服务
|
| 33 |
+
2. 安装配置 - 完成初始安装和配置
|
| 34 |
+
3. 系统维护 - 执行维护任务
|
| 35 |
+
4. 退出 - 退出脚本
|
| 36 |
+
|
| 37 |
+
#### 首次使用流程
|
| 38 |
+
1. 运行脚本选择「安装配置」
|
| 39 |
+
|
| 40 |
+
2. 按顺序完成:克隆仓库 → 安装依赖 → 创建配置文件 → 设置管理员账户 → 运行安装向导
|
| 41 |
+
|
| 42 |
+
3. 配置完成后,回到主菜单选择「启动服务 (npm)」
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
#### 准备工作
|
| 46 |
+
|
| 47 |
+
在开始配置前,请确保您已经:
|
| 48 |
+
|
| 49 |
+
1.
|
| 50 |
+
Fork了 Cursor-Register-fix 仓库到您的GitHub账号
|
| 51 |
+
|
| 52 |
+
2. 创建了GitHub个人访问令牌(Personal Access Token),具有 repo 权限
|
| 53 |
+
3. 拥有至少一个Gmail账号,并启用了两步验证
|
| 54 |
+
4. 为Gmail账号创建了应用密码(Application Password)
|
| 55 |
+
|
| 56 |
+
#### Cookie管理
|
| 57 |
+
|
| 58 |
+
维护菜单中提供了三种刷新Cookie的方式:
|
| 59 |
+
|
| 60 |
+
1. 常规刷新: 检查现有Cookie数量,必要时触发刷新
|
| 61 |
+
2. 强制刷新: 忽略数量检查,直接触发刷新
|
| 62 |
+
3. 持续刷新: 在设定的时间内持续尝试,直到成功添加新Cookie
|
| 63 |
+
|
| 64 |
+
#### 项目更新与备份
|
| 65 |
+
|
| 66 |
+
维护菜单提供了项目更新和备份功能:
|
| 67 |
+
|
| 68 |
+
1. 更新项目代码: 自动备份配置文件、拉取最新代码并恢复配置
|
| 69 |
+
2. 备份项目数据: 将重要配置文件备份到backups目录
|
| 70 |
+
|
| 71 |
+
#### Gmail应用密码设置步骤
|
| 72 |
+
|
| 73 |
+
如果您还没有创建Gmail应用密码,请按照以下步骤操作:
|
| 74 |
+
|
| 75 |
+
1. 访问 Google账号安全设置
|
| 76 |
+
2. 在"登录Google"部分,点击"两步验证"(如未启用需先启用)
|
| 77 |
+
3. 在页面底部找到"应用密码",点击进入
|
| 78 |
+
4. 选择"其他(自定义名称)",输入名称(如"Cursor注册")
|
| 79 |
+
5. 点击"生成"并复制16位应用密码
|
| 80 |
+
|
| 81 |
+
#### 手动操作命令
|
| 82 |
+
|
| 83 |
+
如需手动执行操作,可使用以下命令:
|
| 84 |
+
|
| 85 |
+
```bash
|
| 86 |
+
# 启动服务
|
| 87 |
+
npm start
|
| 88 |
+
|
| 89 |
+
# 刷新Cookie
|
| 90 |
+
npm run refresh-cookies
|
| 91 |
+
|
| 92 |
+
# 强制刷新Cookie
|
| 93 |
+
npm run refresh-cookies -- --force
|
| 94 |
+
|
| 95 |
+
# 管理邮箱配置
|
| 96 |
+
npm run manage-emails
|
| 97 |
+
|
| 98 |
+
# 运行安装向导
|
| 99 |
+
npm run setup
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
#### 注意事项
|
| 103 |
+
|
| 104 |
+
- GitHub Token需具有repo权限,用于访问您fork的仓库
|
| 105 |
+
- Gmail应用密码不同于登录密码,是专为第三方应用生成的
|
| 106 |
+
- 确保至少有一个有效的Gmail账号配置,否则自动刷新功能无法正常工作
|
| 107 |
+
- 推荐定期备份重要配置文件(.env和data目录)
|
| 108 |
+
- 更新项目前,系统会自动备份现有配置,更新后会自动恢复
|
| 109 |
+
|
| 110 |
+
#### 故障排除
|
| 111 |
+
|
| 112 |
+
- Docker启动失败: 检查Docker服务是否运行,端口是否被占用
|
| 113 |
+
- Cookie刷新失败: 检查GitHub Token是否有效,网络是否正常
|
| 114 |
+
- 更新失败: 尝试手动解决冲突,或使用备份功能恢复之前的版本
|
| 115 |
+
- 服务无响应: 查看日志确认问题,必要时重启服务
|
| 116 |
+
|
| 117 |
+
#### 免责声明
|
| 118 |
+
|
| 119 |
+
- 本功能仅用于学习和研究目的,请遵守Cursor的使用条款
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
----
|
| 123 |
+
|
| 124 |
+
> 以下是手动配置教程
|
| 125 |
+
|
| 126 |
+
## 安装
|
| 127 |
+
|
| 128 |
+
1. 克隆仓库
|
| 129 |
+
```bash
|
| 130 |
+
git clone https://github.com/your-username/cursor-to-openai.git
|
| 131 |
+
cd cursor-to-openai
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
2. 安装依赖
|
| 135 |
+
```bash
|
| 136 |
+
npm install
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
3. 配置环境变量
|
| 140 |
+
复制`.env.example`文件为`.env`,并根据需要修改配置:
|
| 141 |
+
```bash
|
| 142 |
+
cp .env.example .env
|
| 143 |
+
```
|
| 144 |
+
|
| 145 |
+
4. 配置管理员账户
|
| 146 |
+
复制`data/admin.example.json`文件为`data/admin.json`:
|
| 147 |
+
```bash
|
| 148 |
+
cp data/admin.example.json data/admin.json
|
| 149 |
+
```
|
| 150 |
+
|
| 151 |
+
然后使用以下命令生成管理员账户:
|
| 152 |
+
```bash
|
| 153 |
+
node scripts/create-admin.js
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
按照提示输入管理员用户名和密码。
|
| 157 |
+
|
| 158 |
+
## 使用说明
|
| 159 |
+
|
| 160 |
+
1. 启动服务
|
| 161 |
+
```bash
|
| 162 |
+
npm start
|
| 163 |
+
```
|
| 164 |
+
|
| 165 |
+
2. 访问管理界面
|
| 166 |
+
打开浏览器访问`http://localhost:3010`(或你配置的其他端口),使用管理员账户登录。
|
| 167 |
+
|
| 168 |
+
3. 添加API Key
|
| 169 |
+
在管理界面添加Cursor API Key,系统会自动获取和刷新Cookie。
|
| 170 |
+
|
| 171 |
+
4. 使用API
|
| 172 |
+
将你的OpenAI客���端的base URL改为`http://localhost:3010`,然后像使用OpenAI API一样使用即可。
|
| 173 |
+
|
| 174 |
+
## 注意事项
|
| 175 |
+
|
| 176 |
+
- 请妥善保管你的管理员账户信息
|
| 177 |
+
- 不要将`data/admin.json`和`data/api_keys.json`文件提交到版本控制系统
|
| 178 |
+
- 建议定期备份这些配置文件
|
| 179 |
+
|
| 180 |
+
## License
|
| 181 |
+
|
| 182 |
+
MIT
|
| 183 |
+
|
| 184 |
+
## Introduction
|
| 185 |
+
|
| 186 |
+
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.
|
| 187 |
+
|
| 188 |
+
## 新增功能
|
| 189 |
+
|
| 190 |
+
- **自定义API Key**:可以设置自定义的API Key,而不是直接使用冗长的Cookie
|
| 191 |
+
- **多Cookie轮询**:支持配置多个Cursor Cookie,系统会自动轮询使用
|
| 192 |
+
- **Web管理界面**:提供简单的Web界面来管理API Key和Cookie映射关系
|
| 193 |
+
- **轮询策略**:支持随机(random)和轮询(round-robin)两种策略
|
| 194 |
+
- **无效Cookie管理**:自动检测并移除无效的Cookie,支持通过Web界面和命令行工具管理
|
| 195 |
+
- **自动刷新Cookie**:支持从GitHub仓库自动获取新的Cookie,保持系统可用性
|
| 196 |
+
|
| 197 |
+
## Preparsuitue
|
| 198 |
+
|
| 199 |
+
1. Visit [Cursor](https://www.cursor.com) and register a account.
|
| 200 |
+
- 150 fast premium requests are given, which can be reset by deleting the account and then registering again
|
| 201 |
+
- Suggest to use gmail/outlook email, some temp emails have been disabled by Cursor.
|
| 202 |
+
2. Log in and open the developer tool in the browser (F12).
|
| 203 |
+
3. Find the cookie value named `WorkosCursorSessionToken` in Application-Cookies and save it (The value starts with `user_`).
|
| 204 |
+
|
| 205 |
+
## 环境配置
|
| 206 |
+
|
| 207 |
+
本项目使用 `.env` 文件存储配置信息。在启动前,您需要创建并配置此文件:
|
| 208 |
+
|
| 209 |
+
1. 复制示例配置文件:
|
| 210 |
+
```
|
| 211 |
+
cp .env.example .env
|
| 212 |
+
```
|
| 213 |
+
|
| 214 |
+
2. 编辑 `.env` 文件,设置必要的环境变量:
|
| 215 |
+
- `API_KEYS`: 必须设置,格式为JSON字符串,包含API Key与Cookie的映射关系
|
| 216 |
+
- 如果启用自动刷新Cookie功能(`ENABLE_AUTO_REFRESH=true`),则还需设置以下变量:
|
| 217 |
+
- `GITHUB_TOKEN`: GitHub个人访问令牌
|
| 218 |
+
- `GITHUB_OWNER`: GitHub用户名
|
| 219 |
+
- `GITHUB_REPO`: 仓库名称
|
| 220 |
+
- `GITHUB_WORKFLOW_ID`: 工作流文件名
|
| 221 |
+
- `TRIGGER_WORKFLOW`: 是否允许触发工作流
|
| 222 |
+
|
| 223 |
+
3. 系统在启动时会检查 `.env` 文件是否存在以及必要的环境变量是否已设置,如果不符合要求将拒绝启动并显示错误信息。
|
| 224 |
+
|
| 225 |
+
4. **API Keys 合并逻辑**:系统启动时会自动合并 `.env` 中的 API Keys 和 `data/api_keys.json` 文件中的 API Keys,确保通过刷新添加的 Cookie 不会丢失。合并规则如下:
|
| 226 |
+
- 如果某个 API Key 只存在于 `.env` 或 `data/api_keys.json` 中的一处,则直接使用该处的配置
|
| 227 |
+
- 如果某个 API Key 同时存在于两处,则合并其 Cookie 列表,确保不重复
|
| 228 |
+
- 合并后的结果会保存到 `data/api_keys.json` 文件中
|
| 229 |
+
|
| 230 |
+
5. **Cookie 持久化**:系统会自动将所有 API Keys 和 Cookies 保存到 `data/api_keys.json` 文件中,确保在程序重启后不会丢失。以下情况会触发保存操作:
|
| 231 |
+
- 系统启动时合并 API Keys 后
|
| 232 |
+
- 添加或更新 API Key 时
|
| 233 |
+
- 移除 API Key 时
|
| 234 |
+
- 从 API Key 中移除 Cookie 时
|
| 235 |
+
- 自动刷新添加新 Cookie 时
|
| 236 |
+
|
| 237 |
+
## 自动刷新 Cookie 功能
|
| 238 |
+
|
| 239 |
+
系统支持自动刷新 Cookie,确保 API Key 始终有足够的可用 Cookie。
|
| 240 |
+
|
| 241 |
+
### 配置说明
|
| 242 |
+
|
| 243 |
+
1. 在 `.env` 文件中设置以下变量:
|
| 244 |
+
```
|
| 245 |
+
# 是否启用自动刷新 Cookie
|
| 246 |
+
ENABLE_AUTO_REFRESH=true
|
| 247 |
+
|
| 248 |
+
# 自动刷新的定时规则(Cron 表达式)
|
| 249 |
+
REFRESH_CRON=0 */6 * * *
|
| 250 |
+
|
| 251 |
+
# 每个 API Key 的最小 Cookie 数量,低于此数量将触发刷新
|
| 252 |
+
MIN_COOKIE_COUNT=2
|
| 253 |
+
|
| 254 |
+
# GitHub 相关配置
|
| 255 |
+
GITHUB_TOKEN=your_github_token
|
| 256 |
+
GITHUB_OWNER=your_github_username
|
| 257 |
+
GITHUB_REPO=your_repo_name
|
| 258 |
+
GITHUB_WORKFLOW_ID=cursor_register.yml
|
| 259 |
+
TRIGGER_WORKFLOW=true
|
| 260 |
+
|
| 261 |
+
# 工作流参数
|
| 262 |
+
REGISTER_NUMBER=2
|
| 263 |
+
REGISTER_MAX_WORKERS=1
|
| 264 |
+
REGISTER_EMAIL_SERVER=TempEmail
|
| 265 |
+
REGISTER_INGEST_TO_ONEAPI=false
|
| 266 |
+
REGISTER_UPLOAD_ARTIFACT=true
|
| 267 |
+
```
|
| 268 |
+
|
| 269 |
+
2. 系统会根据 `REFRESH_CRON` 定时检查每个 API Key 的 Cookie 数量,如果低于 `MIN_COOKIE_COUNT`,则触发刷新流程。
|
| 270 |
+
|
| 271 |
+
### 手动刷新
|
| 272 |
+
|
| 273 |
+
您也可以通过命令行手动触发刷新:
|
| 274 |
+
|
| 275 |
+
```
|
| 276 |
+
# 刷新所有 API Key
|
| 277 |
+
npm run refresh-cookies
|
| 278 |
+
|
| 279 |
+
# 刷新特定 API Key
|
| 280 |
+
npm run refresh-cookies -- your_api_key
|
| 281 |
+
|
| 282 |
+
# 强制刷新(忽略 Cookie 数量检查)
|
| 283 |
+
npm run refresh-cookies -- --force
|
| 284 |
+
npm run refresh-cookies -- your_api_key --force
|
| 285 |
+
```
|
| 286 |
+
|
| 287 |
+
### 工作原理
|
| 288 |
+
|
| 289 |
+
1. 系统检查 API Key 的 Cookie 数量,如果低于阈值,则触发刷新流程。
|
| 290 |
+
2. 系统连接到 GitHub,触发指定的工作流(如 `cursor_register.yml`)。
|
| 291 |
+
3. 系统等待工作流完成,然后下载生成的 Artifact。
|
| 292 |
+
4. 系统从 Artifact 中提取 Cookie,并添加到对应的 API Key 中。
|
| 293 |
+
5. 新的 Cookie 会自动保存到 `data/api_keys.json` 文件中,确保在程序重启后不会丢失。
|
| 294 |
+
|
| 295 |
+
### 错误处理
|
| 296 |
+
|
| 297 |
+
系统实现了��善的错误处理机制,包括:
|
| 298 |
+
|
| 299 |
+
1. 网络超时重试:在触发工作流、获取工作流状态、下载 Artifact 等环节,系统会自动重试多次,确保临时网络问题不会导致刷新失败。
|
| 300 |
+
2. 文件解析容错:系统能够处理各种格式的 CSV 文件,确保能够正确提取 Cookie。
|
| 301 |
+
3. Cookie 验证:系统会验证提取的 Cookie 是否完整有效,避免添加无效的 Cookie。
|
| 302 |
+
|
| 303 |
+
## How to Run
|
| 304 |
+
|
| 305 |
+
### 使用Docker Compose运行
|
| 306 |
+
1. 创建必要的配置文件:
|
| 307 |
+
```bash
|
| 308 |
+
# 创建环境配置文件
|
| 309 |
+
cp .env.example .env
|
| 310 |
+
|
| 311 |
+
# 创建数据目录
|
| 312 |
+
mkdir -p data
|
| 313 |
+
|
| 314 |
+
# 创建管理员账户配置
|
| 315 |
+
cp data/admin.example.json data/admin.json
|
| 316 |
+
```
|
| 317 |
+
|
| 318 |
+
2. 编辑配置文件:
|
| 319 |
+
- 编辑`.env`文件,设置必要的环境变量
|
| 320 |
+
- 使用`node scripts/create-admin.js`创建管理员账户,或手动编辑`data/admin.json`
|
| 321 |
+
|
| 322 |
+
3. 构建并启动服务:
|
| 323 |
+
```bash
|
| 324 |
+
docker compose up -d --build
|
| 325 |
+
```
|
| 326 |
+
|
| 327 |
+
4. 访问服务:
|
| 328 |
+
- 管理界面:`http://localhost:3010`
|
| 329 |
+
- API接口:`http://localhost:3010/v1/...`
|
| 330 |
+
|
| 331 |
+
5. 查看日志:
|
| 332 |
+
```bash
|
| 333 |
+
docker compose logs -f
|
| 334 |
+
```
|
| 335 |
+
|
| 336 |
+
6. 停止服务:
|
| 337 |
+
```bash
|
| 338 |
+
docker compose down
|
| 339 |
+
```
|
| 340 |
+
|
| 341 |
+
### Docker配置文件说明
|
| 342 |
+
|
| 343 |
+
项目包含以下Docker相关文件:
|
| 344 |
+
|
| 345 |
+
1. `Dockerfile`:定义了应用的构建过程
|
| 346 |
+
- 基于`node:lts-alpine`镜像
|
| 347 |
+
- 安装依赖并复制应用代码
|
| 348 |
+
- 暴露3010端口
|
| 349 |
+
- 使用`npm run start`启动应用
|
| 350 |
+
|
| 351 |
+
2. `docker-compose.yaml`:定义了服务的运行环境
|
| 352 |
+
- 使用本地Dockerfile构建镜像
|
| 353 |
+
- 将数据文件挂载到容器中,确保数据持久化:
|
| 354 |
+
- `./data/invalid_cookies.json:/app/data/invalid_cookies.json`
|
| 355 |
+
- `./data/api_keys.json:/app/data/api_keys.json`
|
| 356 |
+
- `./data/admin.json:/app/data/admin.json`
|
| 357 |
+
- 将3010端口映射到主机
|
| 358 |
+
- 使用`.env`文件加载环境变量
|
| 359 |
+
|
| 360 |
+
通过这种配置,您的数据(API Keys、无效Cookie和管理员账户)将保存在主机的`data`目录中,即使容器重启或重建,数据也不会丢失。
|
| 361 |
+
|
| 362 |
+
### Run in npm
|
| 363 |
+
```
|
| 364 |
+
npm install
|
| 365 |
+
npm run start
|
| 366 |
+
```
|
| 367 |
+
|
| 368 |
+
## 配置API Key
|
| 369 |
+
|
| 370 |
+
有两种方式配置API Key与Cookie的映射关系:
|
| 371 |
+
|
| 372 |
+
### 1. 通过Web界面配置
|
| 373 |
+
|
| 374 |
+
访问 `http://localhost:3010` 打开Web管理界面,可以添加、查看和删除API Key。
|
| 375 |
+
|
| 376 |
+
### 2. 通过环境变量配置
|
| 377 |
+
|
| 378 |
+
设置环境变量 `API_KEYS`,格式为JSON字符串:
|
| 379 |
+
|
| 380 |
+
```
|
| 381 |
+
API_KEYS={"your_custom_api_key1":"user_cookie1","your_custom_api_key2":["user_cookie2","user_cookie3"]}
|
| 382 |
+
```
|
| 383 |
+
|
| 384 |
+
### 3. 通过API配置
|
| 385 |
+
|
| 386 |
+
```
|
| 387 |
+
POST /v1/api-keys
|
| 388 |
+
Content-Type: application/json
|
| 389 |
+
|
| 390 |
+
{
|
| 391 |
+
"apiKey": "your_custom_api_key",
|
| 392 |
+
"cookieValues": ["user_cookie1", "user_cookie2"]
|
| 393 |
+
}
|
| 394 |
+
```
|
| 395 |
+
|
| 396 |
+
## How to use the server
|
| 397 |
+
|
| 398 |
+
1. Get models
|
| 399 |
+
- Url:`http://localhost:3010/v1/models`
|
| 400 |
+
- Request:`GET`
|
| 401 |
+
- Authentication:`Bearer Token`(自定义API Key或WorkosCursorSessionToken值)
|
| 402 |
+
|
| 403 |
+
2. Chat completion
|
| 404 |
+
- Url:`http://localhost:3010/v1/chat/completions`
|
| 405 |
+
- Request:`POST`
|
| 406 |
+
- Authentication:`Bearer Token`(自定义API Key或WorkosCursorSessionToken值)
|
| 407 |
+
|
| 408 |
+
for the response body, please refer to the OpenAI interface
|
| 409 |
+
|
| 410 |
+
### Python demo
|
| 411 |
+
```
|
| 412 |
+
from openai import OpenAI
|
| 413 |
+
|
| 414 |
+
# 使用自定义API Key
|
| 415 |
+
client = OpenAI(api_key="your_custom_api_key",
|
| 416 |
+
base_url="http://localhost:3010/v1")
|
| 417 |
+
|
| 418 |
+
# 或者直接使用Cookie(向后兼容)
|
| 419 |
+
# client = OpenAI(api_key="{{{Replace by the WorkosCursorSessionToken value of your account. It starts with user_...}}}",
|
| 420 |
+
# base_url="http://localhost:3010/v1")
|
| 421 |
+
|
| 422 |
+
response = client.chat.completions.create(
|
| 423 |
+
model="claude-3-7-sonnet",
|
| 424 |
+
messages=[
|
| 425 |
+
{"role": "user", "content": "Hello."},
|
| 426 |
+
],
|
| 427 |
+
stream=False
|
| 428 |
+
)
|
| 429 |
+
|
| 430 |
+
print(response.choices)
|
| 431 |
+
```
|
| 432 |
+
|
| 433 |
+
## Notes
|
| 434 |
+
|
| 435 |
+
- Please keep your WorkosCursorSessionToken properly and do not disclose it to others
|
| 436 |
+
- This project is for study and research only, please abide by the Cursor Terms of Use
|
| 437 |
+
|
| 438 |
+
## Acknowledgements
|
| 439 |
+
|
| 440 |
+
- This project is based on [cursor-api](https://github.com/zhx47/cursor-api)(by zhx47).
|
| 441 |
+
- This project integrates the commits in [cursor-api](https://github.com/lvguanjun/cursor-api)(by lvguanjun).
|
| 442 |
+
|
| 443 |
+
## 无效Cookie管理
|
| 444 |
+
|
| 445 |
+
系统会自动检测请求过程中失效的Cookie,并将其从API Key中移除,同时记录到无效Cookie列表中。
|
| 446 |
+
|
| 447 |
+
### 1. 通过Web界面管理
|
| 448 |
+
|
| 449 |
+
访问 `http://localhost:3010` 打开Web管理界面,可以查看和清除无效Cookie。
|
| 450 |
+
|
| 451 |
+
### 2. 通过命令行工具管理
|
| 452 |
+
|
| 453 |
+
使用项目根目录下的 `manage-invalid-cookies.js` 工具:
|
| 454 |
+
|
| 455 |
+
```
|
| 456 |
+
node manage-invalid-cookies.js
|
| 457 |
+
```
|
| 458 |
+
|
| 459 |
+
该工具提供以下功能:
|
| 460 |
+
- 查看所有无效Cookie
|
| 461 |
+
- 添加无效Cookie
|
| 462 |
+
- 删除特定无效Cookie
|
| 463 |
+
- 清空所有无效Cookie
|
| 464 |
+
- 从API Keys中移除所有无效Cookie
|
| 465 |
+
|
| 466 |
+
## 自动刷新Cookie
|
| 467 |
+
|
| 468 |
+
系统支持从GitHub仓库自动获取新的Cookie,以保持服务的可用性。通过GitHub Actions自动注册Cursor账号并获取Cookie,实现Cookie的自动补充。
|
| 469 |
+
|
| 470 |
+
### 前置准备
|
| 471 |
+
|
| 472 |
+
1. 从 [Cursor-Register](https://github.com/JiuZ-Chn/Cursor-Register) 项目fork一份到自己的GitHub账号下
|
| 473 |
+
- 访问 https://github.com/JiuZ-Chn/Cursor-Register
|
| 474 |
+
- 点击右上角的 "Fork" 按钮,创建自己的副本
|
| 475 |
+
|
| 476 |
+
2. 获取GitHub个人访问令牌(Personal Access Token)
|
| 477 |
+
- 访问 GitHub 的 [Personal access tokens](https://github.com/settings/tokens) 页面
|
| 478 |
+
- 点击 "Generate new token" > "Generate new token (classic)"
|
| 479 |
+
- 为令牌添加描述,例如 "Cursor Cookie Refresher"
|
| 480 |
+
- 选择以下权限范围:
|
| 481 |
+
- `repo` (完整的仓库访问权限)
|
| 482 |
+
- `workflow` (允许管理GitHub Actions工作流)
|
| 483 |
+
- 点击 "Generate token" 并保存生成的令牌(离开页面后将无法再次查看)
|
| 484 |
+
|
| 485 |
+
### 配置自动刷新
|
| 486 |
+
|
| 487 |
+
1. 在项目根目录创建或编辑 `.env` 文件,参考 `.env.example` 添加以下配置:
|
| 488 |
+
|
| 489 |
+
```
|
| 490 |
+
# GitHub相关配置
|
| 491 |
+
GITHUB_TOKEN=your_github_token # 替换为你的GitHub个人访问令牌
|
| 492 |
+
GITHUB_OWNER=your_github_username # 替换为你的GitHub用户名
|
| 493 |
+
GITHUB_REPO=Cursor-Register # 你fork的仓库名称,默认为Cursor-Register
|
| 494 |
+
GITHUB_WORKFLOW_ID=cursor_register.yml # 工作流文件名,通常不需要修改
|
| 495 |
+
TRIGGER_WORKFLOW=true # 是否允许触发GitHub Actions工作流
|
| 496 |
+
|
| 497 |
+
# 工作流参数
|
| 498 |
+
REGISTER_NUMBER=2 # 每次注册的账号数量
|
| 499 |
+
REGISTER_MAX_WORKERS=1 # 并行工作器数量
|
| 500 |
+
REGISTER_EMAIL_SERVER=TempEmail # 临时邮箱服务,可选值: TempEmail, TempMailLol, Emailnator
|
| 501 |
+
REGISTER_INGEST_TO_ONEAPI=false # 是否将Cookie导入到OneAPI
|
| 502 |
+
REGISTER_UPLOAD_ARTIFACT=true # 是否上传Artifact(必须为true)
|
| 503 |
+
|
| 504 |
+
# 刷新配置
|
| 505 |
+
REFRESH_CRON=0 */6 * * * # Cron表达式,定义自动刷新的时间间隔(此处为每6小时)
|
| 506 |
+
MIN_COOKIE_COUNT=2 # 触发自动刷新的最小Cookie数量阈值
|
| 507 |
+
```
|
| 508 |
+
|
| 509 |
+
2. 确保你的fork仓库中的GitHub Actions已启用
|
| 510 |
+
- 访问你fork的仓库
|
| 511 |
+
- 点击 "Actions" 标签
|
| 512 |
+
- 如果看到提示需要启用Actions,点击 "I understand my workflows, go ahead and enable them"
|
| 513 |
+
|
| 514 |
+
### 自动刷新机制
|
| 515 |
+
|
| 516 |
+
系统会根据以下规则自动刷新Cookie:
|
| 517 |
+
|
| 518 |
+
1. 定时检查:根据 `REFRESH_CRON` 设置的时间间隔,定期检查每个API Key关联的Cookie数量
|
| 519 |
+
2. 阈值触发:当某个API Key的Cookie数量低于 `MIN_COOKIE_COUNT` 设定的阈值时,触发自动刷新
|
| 520 |
+
3. 工作流程:
|
| 521 |
+
- 系统会调用GitHub API触发你fork仓库中的工作流
|
| 522 |
+
- 工作流会自动注册指定数量的Cursor账号
|
| 523 |
+
- 注册完成后,系统会下载包含Cookie的Artifact
|
| 524 |
+
- 提取Cookie并添加到系统中,过滤掉已存在和无效的Cookie
|
| 525 |
+
|
| 526 |
+
### 手动触发刷新
|
| 527 |
+
|
| 528 |
+
如果需要立即刷新Cookie,可以使用以下命令手动触发:
|
| 529 |
+
|
| 530 |
+
```
|
| 531 |
+
npm run refresh-cookies
|
| 532 |
+
```
|
| 533 |
+
|
| 534 |
+
系统会检查所有 API Key 的 Cookie 数量,并刷新那些数量低于阈值的 API Key。刷新时会优先处理 Cookie 数量最少的 API Key。
|
| 535 |
+
|
| 536 |
+
#### 高级用法
|
| 537 |
+
|
| 538 |
+
1. 刷新特定的 API Key:
|
| 539 |
+
|
| 540 |
+
```
|
| 541 |
+
npm run refresh-cookies:api your_api_key
|
| 542 |
+
```
|
| 543 |
+
|
| 544 |
+
2. 强制刷新(忽略 Cookie 数量检查):
|
| 545 |
+
|
| 546 |
+
```
|
| 547 |
+
npm run refresh-cookies:force
|
| 548 |
+
```
|
| 549 |
+
|
| 550 |
+
3. 强制刷新特定的 API Key:
|
| 551 |
+
|
| 552 |
+
```
|
| 553 |
+
node auto-refresh-cookies.js your_api_key --force
|
| 554 |
+
```
|
| 555 |
+
|
| 556 |
+
### 故障排除
|
| 557 |
+
|
| 558 |
+
如果自动刷新过程中遇到问题,请检查:
|
| 559 |
+
|
| 560 |
+
1. GitHub令牌是否有效且具有足够的权限
|
| 561 |
+
2. 工作流配置是否正确(检查fork仓库中的Actions标签页)
|
| 562 |
+
3. 查看服务器日志中的详细错误信息
|
| 563 |
+
4. 确保网络连接稳定,能够正常访问GitHub API
|
| 564 |
+
|
| 565 |
+
### 注意事项
|
| 566 |
+
|
| 567 |
+
- 请合理设置刷新频率,避免过于频繁地触发GitHub Actions
|
| 568 |
+
- 临时邮箱服务可能会被Cursor封禁,如遇注册失败,可尝试更换 `REGISTER_EMAIL_SERVER`
|
| 569 |
+
- 本功能仅用于学习和研究目的,请遵守Cursor的使用条款
|
SETUP.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Cursor-To-OpenAI 一键配置指南
|
| 2 |
+
|
| 3 |
+
本文档将指导你使用一键配置工具来设置 Cursor-To-OpenAI 环境。
|
| 4 |
+
|
| 5 |
+
## 准备工作
|
| 6 |
+
|
| 7 |
+
在开始配置前,请确保你已经:
|
| 8 |
+
|
| 9 |
+
1. Fork了 [Cursor-Register-fix](https://github.com/liuw1535/Cursor-Register-fix) 仓库到你的GitHub账号
|
| 10 |
+
2. 创建了一个GitHub个人访问令牌(Personal Access Token),且具有 `repo` 权限
|
| 11 |
+
3. 拥有至少一个Gmail账号,并启用了两步验证
|
| 12 |
+
4. 为Gmail账号创建了应用密码(Application Password)
|
| 13 |
+
|
| 14 |
+
## 配置步骤
|
| 15 |
+
|
| 16 |
+
### 1. 安装依赖
|
| 17 |
+
|
| 18 |
+
```bash
|
| 19 |
+
npm install
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
### 2. 运行配置脚本
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
npm run setup
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
或者直接运行:
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
node setup.js
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
### 3. 按照提示输入信息
|
| 35 |
+
|
| 36 |
+
脚本会引导你输入以下信息:
|
| 37 |
+
|
| 38 |
+
- GitHub用户名:你的GitHub账号用户名
|
| 39 |
+
- GitHub Token:你的个人访问令牌
|
| 40 |
+
- API Key:自定义的API Key,用于访问服务
|
| 41 |
+
- Gmail账号:用于自动注册Cursor账号的Gmail地址
|
| 42 |
+
- Gmail应用密码:对应Gmail账号的应用密码(不是邮箱密码)
|
| 43 |
+
|
| 44 |
+
### 4. 创建应用密码的步骤
|
| 45 |
+
|
| 46 |
+
如果你还没有创建Gmail应用密码,请按照以下步骤操作:
|
| 47 |
+
|
| 48 |
+
1. 访问 [Google账号安全设置](https://myaccount.google.com/security)
|
| 49 |
+
2. 在"登录Google"部分,点击"两步验证"
|
| 50 |
+
(如果未启用两步验证,需要先启用)
|
| 51 |
+
3. 在页面底部找到"应用密码",点击进入
|
| 52 |
+
4. 在"选择应用"下拉菜单中选择"其他(自定义名称)"
|
| 53 |
+
5. 输入一个名称,例如"Cursor注册"
|
| 54 |
+
6. 点击"生成"
|
| 55 |
+
7. 复制生成的16位应用密码(格式如:xxxx xxxx xxxx xxxx)
|
| 56 |
+
|
| 57 |
+
### 5. 管理邮箱配置
|
| 58 |
+
|
| 59 |
+
系统提供了一个专门的邮箱配置管理工具,可以随时添加、修改或删除邮箱:
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
npm run manage-emails
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
使用此工具可以:
|
| 66 |
+
- 查看所有已配置的邮箱
|
| 67 |
+
- 添加新的Gmail账号
|
| 68 |
+
- 修改现有Gmail账号的配置
|
| 69 |
+
- 删除不再使用的Gmail账号
|
| 70 |
+
|
| 71 |
+
## 配置完成后
|
| 72 |
+
|
| 73 |
+
配置完成后,你可以:
|
| 74 |
+
|
| 75 |
+
1. 启动服务:
|
| 76 |
+
|
| 77 |
+
```bash
|
| 78 |
+
npm start
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
2. 手动触发Cookie刷新:
|
| 82 |
+
|
| 83 |
+
```bash
|
| 84 |
+
npm run refresh-cookies:force
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
## 配置文件说明
|
| 88 |
+
|
| 89 |
+
脚本会生成`.env`文件,其中包含以下主要配置:
|
| 90 |
+
|
| 91 |
+
- `API_KEYS`:API Key到Cookie的映射关系
|
| 92 |
+
- `GITHUB_OWNER`:你的GitHub用户名
|
| 93 |
+
- `GITHUB_TOKEN`:你的GitHub个人访问令牌
|
| 94 |
+
- `REGISTER_EMAIL_CONFIGS`:Gmail账号配置,用于自动注册
|
| 95 |
+
|
| 96 |
+
## 注意事项
|
| 97 |
+
|
| 98 |
+
1. GitHub Token需要具有repo权限,用于访问你fork的仓库
|
| 99 |
+
2. Gmail应用密码不同于你的Gmail登录密码,是专门为第三方应用生成的
|
| 100 |
+
3. MIN_COOKIE_COUNT设置为1000,确保系统会尝试刷新Cookie
|
| 101 |
+
4. 配置完成后,你可以通过Web界面查看和管理Cookie状态
|
| 102 |
+
5. 始终确保至少有一个有效的Gmail账号配置,否则自动刷新功能将无法正常工作
|
add-api-key.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const fetch = require('node-fetch');
|
| 2 |
+
|
| 3 |
+
async function addApiKey() {
|
| 4 |
+
try {
|
| 5 |
+
console.log('添加API Key...');
|
| 6 |
+
const response = await fetch('http://localhost:3010/v1/api-keys', {
|
| 7 |
+
method: 'POST',
|
| 8 |
+
headers: {
|
| 9 |
+
'Content-Type': 'application/json',
|
| 10 |
+
},
|
| 11 |
+
body: JSON.stringify({
|
| 12 |
+
apiKey: 'test-key',
|
| 13 |
+
cookieValues: ['test-cookie'],
|
| 14 |
+
}),
|
| 15 |
+
});
|
| 16 |
+
|
| 17 |
+
console.log('响应状态:', response.status);
|
| 18 |
+
|
| 19 |
+
if (!response.ok) {
|
| 20 |
+
throw new Error(`HTTP错误: ${response.status} ${response.statusText}`);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
const data = await response.json();
|
| 24 |
+
console.log('响应数据:', data);
|
| 25 |
+
|
| 26 |
+
// 测试获取API Keys
|
| 27 |
+
console.log('\n测试获取API Keys...');
|
| 28 |
+
const getResponse = await fetch('http://localhost:3010/v1/api-keys');
|
| 29 |
+
|
| 30 |
+
console.log('响应状态:', getResponse.status);
|
| 31 |
+
|
| 32 |
+
if (!getResponse.ok) {
|
| 33 |
+
throw new Error(`HTTP错误: ${getResponse.status} ${getResponse.statusText}`);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
const getData = await getResponse.json();
|
| 37 |
+
console.log('获取到的数据:', getData);
|
| 38 |
+
} catch (error) {
|
| 39 |
+
console.error('操作失败:', error);
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
addApiKey();
|
auto-refresh-cookies.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// 加载环境变量
|
| 2 |
+
require('dotenv').config();
|
| 3 |
+
|
| 4 |
+
// 环境检查
|
| 5 |
+
const envChecker = require('./src/utils/envChecker');
|
| 6 |
+
console.log('启动前检查环境配置...');
|
| 7 |
+
envChecker.enforceEnvCheck();
|
| 8 |
+
|
| 9 |
+
// 已适配GitHub Actions工作流新参数 (use_config_file, email_configs)
|
| 10 |
+
console.log('环境检查通过,已适配最新GitHub Actions工作流参数');
|
| 11 |
+
|
| 12 |
+
const cookieRefresher = require('./src/utils/cookieRefresher');
|
| 13 |
+
const keyManager = require('./src/utils/keyManager');
|
| 14 |
+
const config = require('./src/config/config');
|
| 15 |
+
|
| 16 |
+
// 解析命令行参数
|
| 17 |
+
const args = process.argv.slice(2);
|
| 18 |
+
const targetApiKey = args.length > 0 ? args[0] : null;
|
| 19 |
+
const forceRefresh = args.includes('--force') || args.includes('-f');
|
| 20 |
+
|
| 21 |
+
// 最小 Cookie 数量
|
| 22 |
+
const MIN_COOKIE_COUNT = config.refresh.minCookieCount;
|
| 23 |
+
|
| 24 |
+
// 获取Cookie刷新模式
|
| 25 |
+
const COOKIE_REFRESH_MODE = process.env.COOKIE_REFRESH_MODE || 'append';
|
| 26 |
+
|
| 27 |
+
// 主函数
|
| 28 |
+
async function main() {
|
| 29 |
+
console.log('===== 自动刷新 Cookie 开始 =====');
|
| 30 |
+
console.log(`最小 Cookie 数量: ${MIN_COOKIE_COUNT}`);
|
| 31 |
+
console.log(`Cookie 刷新模式: ${COOKIE_REFRESH_MODE} (${COOKIE_REFRESH_MODE === 'replace' ? '替换现有cookie' : '追加新cookie'})`);
|
| 32 |
+
|
| 33 |
+
if (targetApiKey) {
|
| 34 |
+
console.log(`指定刷新 API Key: ${targetApiKey}`);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
if (forceRefresh) {
|
| 38 |
+
console.log('强制刷新模式: 忽略 Cookie 数量检查');
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
try {
|
| 42 |
+
// 获取所有 API Key
|
| 43 |
+
const apiKeys = keyManager.getAllApiKeys();
|
| 44 |
+
|
| 45 |
+
if (apiKeys.length === 0) {
|
| 46 |
+
console.log('警告: 系统中没有找到任何 API Key');
|
| 47 |
+
|
| 48 |
+
// 检查环境变量中是否有 API Keys
|
| 49 |
+
const envApiKeys = Object.keys(config.apiKeys);
|
| 50 |
+
if (envApiKeys.length > 0) {
|
| 51 |
+
console.log(`检测到环境变量中有 ${envApiKeys.length} 个 API Key,但尚未加载到系统中`);
|
| 52 |
+
console.log('正在重新初始化 API Keys...');
|
| 53 |
+
|
| 54 |
+
// 重新初始化 API Keys
|
| 55 |
+
keyManager.initializeApiKeys();
|
| 56 |
+
|
| 57 |
+
// 重新获取 API Keys
|
| 58 |
+
const refreshedApiKeys = keyManager.getAllApiKeys();
|
| 59 |
+
if (refreshedApiKeys.length > 0) {
|
| 60 |
+
console.log(`成功加载 ${refreshedApiKeys.length} 个 API Key,继续刷新流程`);
|
| 61 |
+
// 继续执行后续刷新逻辑
|
| 62 |
+
} else {
|
| 63 |
+
console.log('初始化后仍未找到 API Key,请检查配置');
|
| 64 |
+
console.log('===== 自动刷新 Cookie 结束 =====');
|
| 65 |
+
return;
|
| 66 |
+
}
|
| 67 |
+
} else {
|
| 68 |
+
console.log('环境变量中也没有配置 API Key,请先添加 API Key');
|
| 69 |
+
console.log('===== 自动刷新 Cookie 结束 =====');
|
| 70 |
+
return;
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
// 重新获取最新的 API Keys(可能已经通过上面的初始化更新了)
|
| 75 |
+
const updatedApiKeys = keyManager.getAllApiKeys();
|
| 76 |
+
console.log(`系统中共有 ${updatedApiKeys.length} 个 API Key`);
|
| 77 |
+
|
| 78 |
+
// 如果指定了特定的 API Key,检查它是否存在
|
| 79 |
+
if (targetApiKey && !updatedApiKeys.includes(targetApiKey)) {
|
| 80 |
+
console.error(`错误: 指定的 API Key "${targetApiKey}" 不存在`);
|
| 81 |
+
console.log('===== 自动刷新 Cookie 异常结束 =====');
|
| 82 |
+
return;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
// 过滤需要处理的 API Keys
|
| 86 |
+
const keysToProcess = targetApiKey ? [targetApiKey] : updatedApiKeys;
|
| 87 |
+
|
| 88 |
+
// 按 Cookie 数量排序,优先处理 Cookie 数量少的 API Key
|
| 89 |
+
const sortedKeys = keysToProcess.sort((a, b) => {
|
| 90 |
+
const aCount = keyManager.getAllCookiesForApiKey(a).length;
|
| 91 |
+
const bCount = keyManager.getAllCookiesForApiKey(b).length;
|
| 92 |
+
return aCount - bCount; // 升序排列,Cookie 数量少的排在前面
|
| 93 |
+
});
|
| 94 |
+
|
| 95 |
+
// 检查每个 API Key 是否需要刷新
|
| 96 |
+
let refreshedCount = 0;
|
| 97 |
+
let needRefreshCount = 0;
|
| 98 |
+
|
| 99 |
+
for (const apiKey of sortedKeys) {
|
| 100 |
+
const cookies = keyManager.getAllCookiesForApiKey(apiKey);
|
| 101 |
+
console.log(`API Key: ${apiKey}, Cookie 数量: ${cookies.length}`);
|
| 102 |
+
|
| 103 |
+
// 判断是否需要刷新:强制刷新模式或 Cookie 数量低于阈值
|
| 104 |
+
if (forceRefresh || cookies.length < MIN_COOKIE_COUNT) {
|
| 105 |
+
needRefreshCount++;
|
| 106 |
+
if (forceRefresh) {
|
| 107 |
+
console.log(`强制刷新 API Key: ${apiKey}`);
|
| 108 |
+
} else {
|
| 109 |
+
console.log(`API Key ${apiKey} 的 Cookie 数量不足,需要刷新`);
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
// 执行刷新
|
| 113 |
+
console.log(`开始自动刷新 Cookie,目标 API Key: ${apiKey},最小 Cookie 数量: ${MIN_COOKIE_COUNT},刷新模式: ${COOKIE_REFRESH_MODE}`);
|
| 114 |
+
const result = await cookieRefresher.autoRefreshCookies(apiKey, MIN_COOKIE_COUNT);
|
| 115 |
+
|
| 116 |
+
if (result.success) {
|
| 117 |
+
refreshedCount++;
|
| 118 |
+
console.log(`刷新结果: ${result.message}`);
|
| 119 |
+
|
| 120 |
+
// 根据刷新模式输出额外的信息
|
| 121 |
+
if (COOKIE_REFRESH_MODE === 'replace') {
|
| 122 |
+
console.log(`使用替换模式: 现有cookie已全部标记为无效,系统现在只使用新cookie`);
|
| 123 |
+
} else {
|
| 124 |
+
console.log(`使用追加模式: 现有cookie已保留,新cookie已添加到系统`);
|
| 125 |
+
}
|
| 126 |
+
} else {
|
| 127 |
+
console.error(`刷新失败: ${result.message}`);
|
| 128 |
+
}
|
| 129 |
+
} else {
|
| 130 |
+
console.log(`API Key ${apiKey} 的 Cookie 数量足够,不需要刷新`);
|
| 131 |
+
}
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
console.log('===== 自动刷新 Cookie 完成 =====');
|
| 135 |
+
console.log(`共有 ${needRefreshCount} 个 API Key 需要刷新,成功刷新 ${refreshedCount} 个`);
|
| 136 |
+
} catch (error) {
|
| 137 |
+
console.error('自动刷新 Cookie 失败:', error);
|
| 138 |
+
console.log('===== 自动刷新 Cookie 异常结束 =====');
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
// 执行主函数
|
| 143 |
+
main().catch(console.error);
|
cursor-to-openai-helper.sh
ADDED
|
@@ -0,0 +1,557 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Colors for better UI
|
| 4 |
+
RED='\033[0;31m'
|
| 5 |
+
GREEN='\033[0;32m'
|
| 6 |
+
YELLOW='\033[0;33m'
|
| 7 |
+
BLUE='\033[0;34m'
|
| 8 |
+
NC='\033[0m' # No Color
|
| 9 |
+
|
| 10 |
+
# Create backups directory if it doesn't exist
|
| 11 |
+
mkdir -p backups
|
| 12 |
+
|
| 13 |
+
# Function to display header
|
| 14 |
+
show_header() {
|
| 15 |
+
clear
|
| 16 |
+
echo -e "${BLUE}=======================================${NC}"
|
| 17 |
+
echo -e "${GREEN} Cursor-To-OpenAI 简易脚本 ${NC}"
|
| 18 |
+
echo -e "${BLUE}=======================================${NC}"
|
| 19 |
+
echo
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
# Function to check if Docker is installed
|
| 23 |
+
check_docker() {
|
| 24 |
+
if ! command -v docker &> /dev/null; then
|
| 25 |
+
echo -e "${RED}未安装Docker。请先安装Docker。${NC}"
|
| 26 |
+
exit 1
|
| 27 |
+
fi
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
# Function to check if Node.js is installed
|
| 31 |
+
check_nodejs() {
|
| 32 |
+
if ! command -v node &> /dev/null; then
|
| 33 |
+
echo -e "${RED}未安装Node.js。请先安装Node.js。${NC}"
|
| 34 |
+
exit 1
|
| 35 |
+
fi
|
| 36 |
+
|
| 37 |
+
if ! command -v npm &> /dev/null; then
|
| 38 |
+
echo -e "${RED}未安装npm。请先安装npm。${NC}"
|
| 39 |
+
exit 1
|
| 40 |
+
fi
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
# Function to backup configuration before update
|
| 44 |
+
backup_configs() {
|
| 45 |
+
echo -e "${YELLOW}正在备份配置文件...${NC}"
|
| 46 |
+
backup_dir="backups/update_backup_$(date +"%Y%m%d_%H%M%S")"
|
| 47 |
+
mkdir -p "$backup_dir"
|
| 48 |
+
|
| 49 |
+
# Backup important configurations
|
| 50 |
+
if [ -d data ]; then
|
| 51 |
+
cp -r data "$backup_dir/"
|
| 52 |
+
fi
|
| 53 |
+
|
| 54 |
+
if [ -f .env ]; then
|
| 55 |
+
cp .env "$backup_dir/"
|
| 56 |
+
fi
|
| 57 |
+
|
| 58 |
+
echo -e "${GREEN}配置文件已备份到 ${backup_dir}${NC}"
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
# Function to restore configuration after update
|
| 62 |
+
restore_configs() {
|
| 63 |
+
if [ -z "$1" ]; then
|
| 64 |
+
echo -e "${RED}未指定备份目录,无法恢复配置。${NC}"
|
| 65 |
+
return 1
|
| 66 |
+
fi
|
| 67 |
+
|
| 68 |
+
backup_dir="$1"
|
| 69 |
+
echo -e "${YELLOW}正在恢复配置文件...${NC}"
|
| 70 |
+
|
| 71 |
+
if [ -d "$backup_dir/data" ]; then
|
| 72 |
+
cp -r "$backup_dir/data/"* data/ 2>/dev/null
|
| 73 |
+
fi
|
| 74 |
+
|
| 75 |
+
if [ -f "$backup_dir/.env" ]; then
|
| 76 |
+
cp "$backup_dir/.env" ./ 2>/dev/null
|
| 77 |
+
fi
|
| 78 |
+
|
| 79 |
+
echo -e "${GREEN}配置文件已恢复${NC}"
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
# Function for installation tasks
|
| 83 |
+
installation_menu() {
|
| 84 |
+
show_header
|
| 85 |
+
echo -e "${YELLOW}===== 安装菜单 =====${NC}"
|
| 86 |
+
echo -e "1) 克隆仓库"
|
| 87 |
+
echo -e "2) 安装依赖"
|
| 88 |
+
echo -e "3) 创建配置文件"
|
| 89 |
+
echo -e "4) 设置管理员账户"
|
| 90 |
+
echo -e "5) 运行安装向导"
|
| 91 |
+
echo -e "6) 构建并启动Docker容器"
|
| 92 |
+
echo -e "7) 使用npm启动"
|
| 93 |
+
echo -e "8) 返回主菜单"
|
| 94 |
+
echo
|
| 95 |
+
echo -n "请输入选择 [1-8]: "
|
| 96 |
+
read -r choice
|
| 97 |
+
|
| 98 |
+
case $choice in
|
| 99 |
+
1)
|
| 100 |
+
show_header
|
| 101 |
+
echo -e "${YELLOW}正在克隆仓库...${NC}"
|
| 102 |
+
read -p "请输入您的GitHub用户名: " username
|
| 103 |
+
git clone "https://github.com/${username}/cursor-to-openai.git"
|
| 104 |
+
if [ $? -eq 0 ]; then
|
| 105 |
+
echo -e "${GREEN}仓库克隆成功!${NC}"
|
| 106 |
+
cd cursor-to-openai
|
| 107 |
+
else
|
| 108 |
+
echo -e "${RED}克隆仓库失败!${NC}"
|
| 109 |
+
fi
|
| 110 |
+
read -p "按回车键继续..."
|
| 111 |
+
installation_menu
|
| 112 |
+
;;
|
| 113 |
+
2)
|
| 114 |
+
show_header
|
| 115 |
+
echo -e "${YELLOW}正在安装依赖...${NC}"
|
| 116 |
+
npm install
|
| 117 |
+
if [ $? -eq 0 ]; then
|
| 118 |
+
echo -e "${GREEN}依赖安装成功!${NC}"
|
| 119 |
+
else
|
| 120 |
+
echo -e "${RED}依赖安装失败!${NC}"
|
| 121 |
+
fi
|
| 122 |
+
read -p "按回车键继续..."
|
| 123 |
+
installation_menu
|
| 124 |
+
;;
|
| 125 |
+
3)
|
| 126 |
+
show_header
|
| 127 |
+
echo -e "${YELLOW}正在创建配置文件...${NC}"
|
| 128 |
+
|
| 129 |
+
if [ ! -f .env ]; then
|
| 130 |
+
cp .env.example .env
|
| 131 |
+
echo -e "${GREEN}.env文件已创建。${NC}"
|
| 132 |
+
else
|
| 133 |
+
echo -e "${YELLOW}.env文件已存在。${NC}"
|
| 134 |
+
fi
|
| 135 |
+
|
| 136 |
+
mkdir -p data
|
| 137 |
+
|
| 138 |
+
if [ ! -f data/admin.json ]; then
|
| 139 |
+
cp data/admin.example.json data/admin.json
|
| 140 |
+
echo -e "${GREEN}admin.json文件已创建。${NC}"
|
| 141 |
+
else
|
| 142 |
+
echo -e "${YELLOW}admin.json文件已存在。${NC}"
|
| 143 |
+
fi
|
| 144 |
+
|
| 145 |
+
echo -e "${YELLOW}您应该编辑.env文件来配置您的环境。${NC}"
|
| 146 |
+
read -p "是否现在编辑.env文件?(y/n): " edit_env
|
| 147 |
+
if [[ $edit_env == "y" || $edit_env == "Y" ]]; then
|
| 148 |
+
if command -v nano &> /dev/null; then
|
| 149 |
+
nano .env
|
| 150 |
+
elif command -v vim &> /dev/null; then
|
| 151 |
+
vim .env
|
| 152 |
+
else
|
| 153 |
+
echo -e "${RED}未找到编辑器。请稍后手动编辑.env文件。${NC}"
|
| 154 |
+
fi
|
| 155 |
+
fi
|
| 156 |
+
|
| 157 |
+
read -p "按回车键继续..."
|
| 158 |
+
installation_menu
|
| 159 |
+
;;
|
| 160 |
+
4)
|
| 161 |
+
show_header
|
| 162 |
+
echo -e "${YELLOW}正在设置管理员账户...${NC}"
|
| 163 |
+
node scripts/create-admin.js
|
| 164 |
+
read -p "按回车键继续..."
|
| 165 |
+
installation_menu
|
| 166 |
+
;;
|
| 167 |
+
5)
|
| 168 |
+
show_header
|
| 169 |
+
echo -e "${YELLOW}正在运行安装向导...${NC}"
|
| 170 |
+
node setup.js
|
| 171 |
+
read -p "按回车键继续..."
|
| 172 |
+
installation_menu
|
| 173 |
+
;;
|
| 174 |
+
6)
|
| 175 |
+
show_header
|
| 176 |
+
echo -e "${YELLOW}正在构建并启动Docker容器...${NC}"
|
| 177 |
+
check_docker
|
| 178 |
+
docker compose up -d --build
|
| 179 |
+
if [ $? -eq 0 ]; then
|
| 180 |
+
echo -e "${GREEN}Docker容器启动成功!${NC}"
|
| 181 |
+
echo -e "${GREEN}访问管理界面: http://localhost:3010${NC}"
|
| 182 |
+
else
|
| 183 |
+
echo -e "${RED}启动Docker容器失败!${NC}"
|
| 184 |
+
fi
|
| 185 |
+
read -p "按回车键继续..."
|
| 186 |
+
installation_menu
|
| 187 |
+
;;
|
| 188 |
+
7)
|
| 189 |
+
show_header
|
| 190 |
+
echo -e "${YELLOW}正在使用npm启动...${NC}"
|
| 191 |
+
check_nodejs
|
| 192 |
+
npm start &
|
| 193 |
+
if [ $? -eq 0 ]; then
|
| 194 |
+
echo -e "${GREEN}服务启动成功!${NC}"
|
| 195 |
+
echo -e "${GREEN}访问管理界面: http://localhost:3010${NC}"
|
| 196 |
+
else
|
| 197 |
+
echo -e "${RED}启动服务失败!${NC}"
|
| 198 |
+
fi
|
| 199 |
+
read -p "按回车键继续..."
|
| 200 |
+
installation_menu
|
| 201 |
+
;;
|
| 202 |
+
8)
|
| 203 |
+
main_menu
|
| 204 |
+
;;
|
| 205 |
+
*)
|
| 206 |
+
echo -e "${RED}无效选项。请重试。${NC}"
|
| 207 |
+
read -p "按回车键继续..."
|
| 208 |
+
installation_menu
|
| 209 |
+
;;
|
| 210 |
+
esac
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
# Function for maintenance tasks
|
| 214 |
+
maintenance_menu() {
|
| 215 |
+
show_header
|
| 216 |
+
echo -e "${YELLOW}===== 维护菜单 =====${NC}"
|
| 217 |
+
echo -e "1) 查看服务状态"
|
| 218 |
+
echo -e "2) 刷新Cookie"
|
| 219 |
+
echo -e "3) 强制刷新Cookie"
|
| 220 |
+
echo -e "4) 管理邮箱"
|
| 221 |
+
echo -e "5) 管理无效Cookie"
|
| 222 |
+
echo -e "6) 查看日志"
|
| 223 |
+
echo -e "7) 重启服务"
|
| 224 |
+
echo -e "8) 停止服务"
|
| 225 |
+
echo -e "9) 更新项目代码"
|
| 226 |
+
echo -e "10) 备份项目数据"
|
| 227 |
+
echo -e "11) 持续刷新Cookie直到成功"
|
| 228 |
+
echo -e "12) 返回主菜单"
|
| 229 |
+
echo
|
| 230 |
+
echo -n "请输入选择 [1-12]: "
|
| 231 |
+
read -r choice
|
| 232 |
+
|
| 233 |
+
case $choice in
|
| 234 |
+
1)
|
| 235 |
+
show_header
|
| 236 |
+
echo -e "${YELLOW}服务状态:${NC}"
|
| 237 |
+
if docker ps | grep -q cursor-to-openai; then
|
| 238 |
+
echo -e "${GREEN}Docker容器正在运行。${NC}"
|
| 239 |
+
docker ps | grep cursor-to-openai
|
| 240 |
+
else
|
| 241 |
+
echo -e "${RED}Docker容器未运行。${NC}"
|
| 242 |
+
fi
|
| 243 |
+
|
| 244 |
+
pids=$(pgrep -f "node.*start")
|
| 245 |
+
if [ -n "$pids" ]; then
|
| 246 |
+
echo -e "${GREEN}Node.js服务正在运行,PID: $pids${NC}"
|
| 247 |
+
else
|
| 248 |
+
echo -e "${RED}Node.js服务未运行。${NC}"
|
| 249 |
+
fi
|
| 250 |
+
|
| 251 |
+
read -p "按回车键继续..."
|
| 252 |
+
maintenance_menu
|
| 253 |
+
;;
|
| 254 |
+
2)
|
| 255 |
+
show_header
|
| 256 |
+
echo -e "${YELLOW}正在刷新Cookie...${NC}"
|
| 257 |
+
npm run refresh-cookies
|
| 258 |
+
read -p "按回车键继续..."
|
| 259 |
+
maintenance_menu
|
| 260 |
+
;;
|
| 261 |
+
3)
|
| 262 |
+
show_header
|
| 263 |
+
echo -e "${YELLOW}正在强制刷新Cookie...${NC}"
|
| 264 |
+
npm run refresh-cookies -- --force
|
| 265 |
+
read -p "按回车键继续..."
|
| 266 |
+
maintenance_menu
|
| 267 |
+
;;
|
| 268 |
+
4)
|
| 269 |
+
show_header
|
| 270 |
+
echo -e "${YELLOW}正在管理邮箱...${NC}"
|
| 271 |
+
npm run manage-emails
|
| 272 |
+
read -p "按回车键继续..."
|
| 273 |
+
maintenance_menu
|
| 274 |
+
;;
|
| 275 |
+
5)
|
| 276 |
+
show_header
|
| 277 |
+
echo -e "${YELLOW}正在管理无效Cookie...${NC}"
|
| 278 |
+
node manage-invalid-cookies.js
|
| 279 |
+
read -p "按回车键继续..."
|
| 280 |
+
maintenance_menu
|
| 281 |
+
;;
|
| 282 |
+
6)
|
| 283 |
+
show_header
|
| 284 |
+
echo -e "${YELLOW}正在查看日志...${NC}"
|
| 285 |
+
if docker ps | grep -q cursor-to-openai; then
|
| 286 |
+
docker compose logs -f
|
| 287 |
+
else
|
| 288 |
+
echo -e "${RED}Docker容器未运行。${NC}"
|
| 289 |
+
echo -e "${YELLOW}正在检查npm日志...${NC}"
|
| 290 |
+
# Try to find logs in npm-debug.log or similar
|
| 291 |
+
if [ -f npm-debug.log ]; then
|
| 292 |
+
cat npm-debug.log
|
| 293 |
+
else
|
| 294 |
+
echo -e "${RED}未找到日志文件。${NC}"
|
| 295 |
+
fi
|
| 296 |
+
fi
|
| 297 |
+
read -p "按回车键继续..."
|
| 298 |
+
maintenance_menu
|
| 299 |
+
;;
|
| 300 |
+
7)
|
| 301 |
+
show_header
|
| 302 |
+
echo -e "${YELLOW}正在重启服务...${NC}"
|
| 303 |
+
if docker ps | grep -q cursor-to-openai; then
|
| 304 |
+
docker compose restart
|
| 305 |
+
echo -e "${GREEN}Docker容器已重启。${NC}"
|
| 306 |
+
else
|
| 307 |
+
pids=$(pgrep -f "node.*start")
|
| 308 |
+
if [ -n "$pids" ]; then
|
| 309 |
+
kill $pids
|
| 310 |
+
sleep 2
|
| 311 |
+
npm start &
|
| 312 |
+
echo -e "${GREEN}Node.js服务已重启。${NC}"
|
| 313 |
+
else
|
| 314 |
+
echo -e "${RED}未检测到运行中的服务。${NC}"
|
| 315 |
+
echo -e "${YELLOW}是否要启动服务?(y/n): ${NC}"
|
| 316 |
+
read -r start_service
|
| 317 |
+
if [[ $start_service == "y" || $start_service == "Y" ]]; then
|
| 318 |
+
npm start &
|
| 319 |
+
echo -e "${GREEN}服务已启动。${NC}"
|
| 320 |
+
fi
|
| 321 |
+
fi
|
| 322 |
+
fi
|
| 323 |
+
read -p "按回车键继续..."
|
| 324 |
+
maintenance_menu
|
| 325 |
+
;;
|
| 326 |
+
8)
|
| 327 |
+
show_header
|
| 328 |
+
echo -e "${YELLOW}正在停止服务...${NC}"
|
| 329 |
+
if docker ps | grep -q cursor-to-openai; then
|
| 330 |
+
docker compose down
|
| 331 |
+
echo -e "${GREEN}Docker容器已停止。${NC}"
|
| 332 |
+
else
|
| 333 |
+
pids=$(pgrep -f "node.*start")
|
| 334 |
+
if [ -n "$pids" ]; then
|
| 335 |
+
kill $pids
|
| 336 |
+
echo -e "${GREEN}Node.js服务已停止。${NC}"
|
| 337 |
+
else
|
| 338 |
+
echo -e "${RED}未检测到运行中的服务。${NC}"
|
| 339 |
+
fi
|
| 340 |
+
fi
|
| 341 |
+
read -p "按回车键继续..."
|
| 342 |
+
maintenance_menu
|
| 343 |
+
;;
|
| 344 |
+
9)
|
| 345 |
+
show_header
|
| 346 |
+
echo -e "${YELLOW}正在更新项目代码...${NC}"
|
| 347 |
+
|
| 348 |
+
# 备份配置文件
|
| 349 |
+
backup_configs
|
| 350 |
+
backup_dir=$(ls -td backups/update_backup_* | head -1)
|
| 351 |
+
|
| 352 |
+
# 检查是否存在未提交的更改
|
| 353 |
+
if [ -n "$(git status --porcelain)" ]; then
|
| 354 |
+
echo -e "${YELLOW}检测到未提交的更改。更新前请处理这些更改。${NC}"
|
| 355 |
+
echo -e "1) 查看更改"
|
| 356 |
+
echo -e "2) 备份并放弃更改"
|
| 357 |
+
echo -e "3) 取消更新"
|
| 358 |
+
echo -n "请选择操作 [1-3]: "
|
| 359 |
+
read -r update_choice
|
| 360 |
+
|
| 361 |
+
case $update_choice in
|
| 362 |
+
1)
|
| 363 |
+
git status
|
| 364 |
+
echo -e "${YELLOW}是否继续更新?(y/n): ${NC}"
|
| 365 |
+
read -r continue_update
|
| 366 |
+
if [[ $continue_update != "y" && $continue_update != "Y" ]]; then
|
| 367 |
+
echo -e "${YELLOW}更新已取消。${NC}"
|
| 368 |
+
read -p "按回车键继续..."
|
| 369 |
+
maintenance_menu
|
| 370 |
+
return
|
| 371 |
+
fi
|
| 372 |
+
;;
|
| 373 |
+
2)
|
| 374 |
+
echo -e "${YELLOW}备份更改...${NC}"
|
| 375 |
+
git diff > "$backup_dir/local_changes.patch"
|
| 376 |
+
git checkout -- .
|
| 377 |
+
echo -e "${GREEN}更改已备份到 $backup_dir/local_changes.patch${NC}"
|
| 378 |
+
;;
|
| 379 |
+
3)
|
| 380 |
+
echo -e "${YELLOW}更新已取消。${NC}"
|
| 381 |
+
read -p "按回车键继续..."
|
| 382 |
+
maintenance_menu
|
| 383 |
+
return
|
| 384 |
+
;;
|
| 385 |
+
*)
|
| 386 |
+
echo -e "${RED}无效选项。更新已取消。${NC}"
|
| 387 |
+
read -p "按回车键继续..."
|
| 388 |
+
maintenance_menu
|
| 389 |
+
return
|
| 390 |
+
;;
|
| 391 |
+
esac
|
| 392 |
+
fi
|
| 393 |
+
|
| 394 |
+
# 更新代码
|
| 395 |
+
git pull
|
| 396 |
+
update_status=$?
|
| 397 |
+
|
| 398 |
+
# 恢复配置文件
|
| 399 |
+
restore_configs "$backup_dir"
|
| 400 |
+
|
| 401 |
+
if [ $update_status -eq 0 ]; then
|
| 402 |
+
echo -e "${GREEN}项目代码更新成功!${NC}"
|
| 403 |
+
echo -e "${YELLOW}是否需要重新安装依赖?(y/n): ${NC}"
|
| 404 |
+
read -r reinstall
|
| 405 |
+
if [[ $reinstall == "y" || $reinstall == "Y" ]]; then
|
| 406 |
+
npm install
|
| 407 |
+
if [ $? -eq 0 ]; then
|
| 408 |
+
echo -e "${GREEN}依赖安装成功!${NC}"
|
| 409 |
+
else
|
| 410 |
+
echo -e "${RED}依赖安装失败!${NC}"
|
| 411 |
+
fi
|
| 412 |
+
fi
|
| 413 |
+
else
|
| 414 |
+
echo -e "${RED}项目代码更新失败!${NC}"
|
| 415 |
+
fi
|
| 416 |
+
|
| 417 |
+
read -p "按回车键继续..."
|
| 418 |
+
maintenance_menu
|
| 419 |
+
;;
|
| 420 |
+
10)
|
| 421 |
+
show_header
|
| 422 |
+
echo -e "${YELLOW}正在备份项目数据...${NC}"
|
| 423 |
+
|
| 424 |
+
# 创建备份目录
|
| 425 |
+
backup_dir="backups/backup_$(date +"%Y%m%d_%H%M%S")"
|
| 426 |
+
mkdir -p "$backup_dir"
|
| 427 |
+
|
| 428 |
+
# 备份关键文件
|
| 429 |
+
cp -r data "$backup_dir/" 2>/dev/null
|
| 430 |
+
if [ -f .env ]; then
|
| 431 |
+
cp .env "$backup_dir/"
|
| 432 |
+
fi
|
| 433 |
+
|
| 434 |
+
# 压缩备份
|
| 435 |
+
tar -czf "${backup_dir}.tar.gz" "$backup_dir"
|
| 436 |
+
rm -rf "$backup_dir"
|
| 437 |
+
|
| 438 |
+
echo -e "${GREEN}备份已创建: ${backup_dir}.tar.gz${NC}"
|
| 439 |
+
read -p "按回车键继续..."
|
| 440 |
+
maintenance_menu
|
| 441 |
+
;;
|
| 442 |
+
11)
|
| 443 |
+
show_header
|
| 444 |
+
echo -e "${YELLOW}持续刷新Cookie直到成功...${NC}"
|
| 445 |
+
read -p "请输入最大尝试时间(分钟, 默认60): " max_time
|
| 446 |
+
max_time=${max_time:-60}
|
| 447 |
+
max_seconds=$((max_time * 60))
|
| 448 |
+
|
| 449 |
+
echo -e "${YELLOW}将持续尝试刷新Cookie,最长 ${max_time} 分钟...${NC}"
|
| 450 |
+
|
| 451 |
+
start_time=$(date +%s)
|
| 452 |
+
success=false
|
| 453 |
+
attempt=0
|
| 454 |
+
|
| 455 |
+
while ! $success && [ $(($(date +%s) - start_time)) -lt $max_seconds ]; do
|
| 456 |
+
attempt=$((attempt + 1))
|
| 457 |
+
elapsed=$(($(date +%s) - start_time))
|
| 458 |
+
remaining=$((max_seconds - elapsed))
|
| 459 |
+
remaining_min=$((remaining / 60))
|
| 460 |
+
remaining_sec=$((remaining % 60))
|
| 461 |
+
|
| 462 |
+
echo -e "${YELLOW}尝试 #${attempt}...(剩余时间: ${remaining_min}分${remaining_sec}秒)${NC}"
|
| 463 |
+
|
| 464 |
+
# 运行刷新命令并检查输出
|
| 465 |
+
output=$(npm run refresh-cookies -- --force 2>&1)
|
| 466 |
+
echo "$output"
|
| 467 |
+
|
| 468 |
+
if echo "$output" | grep -q "成功添加新的Cookie" || echo "$output" | grep -q "Successfully added new cookies"; then
|
| 469 |
+
success=true
|
| 470 |
+
echo -e "${GREEN}成功添加新Cookie!${NC}"
|
| 471 |
+
else
|
| 472 |
+
wait_time=$((RANDOM % 61 + 30)) # 30-90秒随机间隔
|
| 473 |
+
echo -e "${YELLOW}等待 ${wait_time} 秒后重试...${NC}"
|
| 474 |
+
sleep $wait_time
|
| 475 |
+
fi
|
| 476 |
+
done
|
| 477 |
+
|
| 478 |
+
if $success; then
|
| 479 |
+
echo -e "${GREEN}成功刷新Cookie!${NC}"
|
| 480 |
+
else
|
| 481 |
+
echo -e "${RED}达到最大尝试时间,未能成功刷新Cookie。${NC}"
|
| 482 |
+
fi
|
| 483 |
+
|
| 484 |
+
read -p "按回车键继续..."
|
| 485 |
+
maintenance_menu
|
| 486 |
+
;;
|
| 487 |
+
12)
|
| 488 |
+
main_menu
|
| 489 |
+
;;
|
| 490 |
+
*)
|
| 491 |
+
echo -e "${RED}无效选项。请重试。${NC}"
|
| 492 |
+
read -p "按回车键继续..."
|
| 493 |
+
maintenance_menu
|
| 494 |
+
;;
|
| 495 |
+
esac
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
# Main menu function
|
| 499 |
+
main_menu() {
|
| 500 |
+
show_header
|
| 501 |
+
echo -e "${YELLOW}===== 主菜单 =====${NC}"
|
| 502 |
+
echo -e "1) 启动服务 (npm)"
|
| 503 |
+
echo -e "2) 安装配置"
|
| 504 |
+
echo -e "3) 系统维护"
|
| 505 |
+
echo -e "4) 退出"
|
| 506 |
+
echo
|
| 507 |
+
echo -n "请输入选择 [1-4]: "
|
| 508 |
+
read -r choice
|
| 509 |
+
|
| 510 |
+
case $choice in
|
| 511 |
+
1)
|
| 512 |
+
show_header
|
| 513 |
+
echo -e "${YELLOW}正在使用npm启动服务...${NC}"
|
| 514 |
+
check_nodejs
|
| 515 |
+
|
| 516 |
+
# 检查Node.js服务是否已在运行
|
| 517 |
+
pids=$(pgrep -f "node.*start")
|
| 518 |
+
if [ -n "$pids" ]; then
|
| 519 |
+
echo -e "${YELLOW}服务已在运行,PID: $pids${NC}"
|
| 520 |
+
echo -e "${YELLOW}是否要重启服务?(y/n): ${NC}"
|
| 521 |
+
read -r restart
|
| 522 |
+
if [[ $restart == "y" || $restart == "Y" ]]; then
|
| 523 |
+
kill $pids
|
| 524 |
+
sleep 2
|
| 525 |
+
npm start &
|
| 526 |
+
echo -e "${GREEN}服务已重启${NC}"
|
| 527 |
+
fi
|
| 528 |
+
else
|
| 529 |
+
npm start &
|
| 530 |
+
echo -e "${GREEN}服务已启动${NC}"
|
| 531 |
+
fi
|
| 532 |
+
|
| 533 |
+
echo -e "${GREEN}访问管理界面: http://localhost:3010${NC}"
|
| 534 |
+
read -p "按回车键继续..."
|
| 535 |
+
main_menu
|
| 536 |
+
;;
|
| 537 |
+
2)
|
| 538 |
+
installation_menu
|
| 539 |
+
;;
|
| 540 |
+
3)
|
| 541 |
+
maintenance_menu
|
| 542 |
+
;;
|
| 543 |
+
4)
|
| 544 |
+
show_header
|
| 545 |
+
echo -e "${GREEN}感谢使用Cursor-To-OpenAI简易脚本!${NC}"
|
| 546 |
+
exit 0
|
| 547 |
+
;;
|
| 548 |
+
*)
|
| 549 |
+
echo -e "${RED}无效选项。请重试。${NC}"
|
| 550 |
+
read -p "按回车键继续..."
|
| 551 |
+
main_menu
|
| 552 |
+
;;
|
| 553 |
+
esac
|
| 554 |
+
}
|
| 555 |
+
|
| 556 |
+
# Start the script
|
| 557 |
+
main_menu
|
docker-compose.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '3.8'
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
app:
|
| 5 |
+
build:
|
| 6 |
+
context: .
|
| 7 |
+
dockerfile: Dockerfile
|
| 8 |
+
image: cursor-to-openai
|
| 9 |
+
volumes:
|
| 10 |
+
- ./data:/app/data
|
| 11 |
+
ports:
|
| 12 |
+
- "3010:3010"
|
| 13 |
+
env_file:
|
| 14 |
+
- .env
|
manage-emails.js
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env node
|
| 2 |
+
|
| 3 |
+
const fs = require('fs');
|
| 4 |
+
const path = require('path');
|
| 5 |
+
const readline = require('readline');
|
| 6 |
+
const dotenv = require('dotenv');
|
| 7 |
+
|
| 8 |
+
// 创建交互式命令行界面
|
| 9 |
+
const rl = readline.createInterface({
|
| 10 |
+
input: process.stdin,
|
| 11 |
+
output: process.stdout
|
| 12 |
+
});
|
| 13 |
+
|
| 14 |
+
// 加载环境变量
|
| 15 |
+
const ENV_FILE_PATH = path.join(process.cwd(), '.env');
|
| 16 |
+
let envContent = '';
|
| 17 |
+
let emailConfigs = [];
|
| 18 |
+
|
| 19 |
+
// 应用密码说明
|
| 20 |
+
function printAppPasswordInstructions() {
|
| 21 |
+
console.log('\n===== 如何创建谷歌应用密码 =====');
|
| 22 |
+
console.log('1. 访问 https://myaccount.google.com/security');
|
| 23 |
+
console.log('2. 在"登录Google"部分,点击"两步验证"');
|
| 24 |
+
console.log(' (如果未启用两步验证,需要先启用)');
|
| 25 |
+
console.log('3. 在页面底部找到"应用密码",点击进入');
|
| 26 |
+
console.log('4. 在"选择应用"下拉菜单中选择"其他(自定义名称)"');
|
| 27 |
+
console.log('5. 输入一个名称,例如"Cursor注册"');
|
| 28 |
+
console.log('6. 点击"生成"');
|
| 29 |
+
console.log('7. 复制生成的16位应用密码(格式如:xxxx xxxx xxxx xxxx)');
|
| 30 |
+
console.log('注意: 应用密码只会显示一次,请务必保存好\n');
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
// 加载当前环境变量和邮箱配置
|
| 34 |
+
function loadEnvironment() {
|
| 35 |
+
try {
|
| 36 |
+
if (!fs.existsSync(ENV_FILE_PATH)) {
|
| 37 |
+
console.error('❌ .env文件不存在,请先运行setup.js进行初始化配置');
|
| 38 |
+
process.exit(1);
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
// 读取原始.env文件内容
|
| 42 |
+
envContent = fs.readFileSync(ENV_FILE_PATH, 'utf8');
|
| 43 |
+
|
| 44 |
+
// 解析环境变量
|
| 45 |
+
dotenv.config();
|
| 46 |
+
|
| 47 |
+
// 尝试解析当前的邮箱配置
|
| 48 |
+
try {
|
| 49 |
+
const configStr = process.env.REGISTER_EMAIL_CONFIGS;
|
| 50 |
+
if (configStr) {
|
| 51 |
+
emailConfigs = JSON.parse(configStr);
|
| 52 |
+
if (!Array.isArray(emailConfigs)) {
|
| 53 |
+
emailConfigs = [];
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
} catch (parseErr) {
|
| 57 |
+
console.warn('⚠️ 解析当前邮箱配置出错,将使用空配置');
|
| 58 |
+
emailConfigs = [];
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
return true;
|
| 62 |
+
} catch (error) {
|
| 63 |
+
console.error(`❌ 加载环境变量失败: ${error.message}`);
|
| 64 |
+
return false;
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
// 保存更新后的邮箱配置到.env文件
|
| 69 |
+
function saveEmailConfigs() {
|
| 70 |
+
try {
|
| 71 |
+
// 将邮箱配置格式化为JSON字符串
|
| 72 |
+
const configStr = JSON.stringify(emailConfigs);
|
| 73 |
+
|
| 74 |
+
// 替换.env文件中的配置
|
| 75 |
+
let newEnvContent = '';
|
| 76 |
+
|
| 77 |
+
if (envContent.includes('REGISTER_EMAIL_CONFIGS=')) {
|
| 78 |
+
// 使用正则表达式替换REGISTER_EMAIL_CONFIGS行
|
| 79 |
+
newEnvContent = envContent.replace(
|
| 80 |
+
/REGISTER_EMAIL_CONFIGS=.*/,
|
| 81 |
+
`REGISTER_EMAIL_CONFIGS=${configStr}`
|
| 82 |
+
);
|
| 83 |
+
} else {
|
| 84 |
+
// 如果不存在该配置行,添加到文件末尾
|
| 85 |
+
newEnvContent = `${envContent}\nREGISTER_EMAIL_CONFIGS=${configStr}`;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
// 同时确保USE_CONFIG_FILE设置为false
|
| 89 |
+
if (newEnvContent.includes('REGISTER_USE_CONFIG_FILE=')) {
|
| 90 |
+
newEnvContent = newEnvContent.replace(
|
| 91 |
+
/REGISTER_USE_CONFIG_FILE=.*/,
|
| 92 |
+
'REGISTER_USE_CONFIG_FILE=false'
|
| 93 |
+
);
|
| 94 |
+
} else {
|
| 95 |
+
newEnvContent = `${newEnvContent}\nREGISTER_USE_CONFIG_FILE=false`;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
// 确保EMAIL_SERVER设置为IMAP
|
| 99 |
+
if (newEnvContent.includes('REGISTER_EMAIL_SERVER=')) {
|
| 100 |
+
newEnvContent = newEnvContent.replace(
|
| 101 |
+
/REGISTER_EMAIL_SERVER=.*/,
|
| 102 |
+
'REGISTER_EMAIL_SERVER=IMAP'
|
| 103 |
+
);
|
| 104 |
+
} else {
|
| 105 |
+
newEnvContent = `${newEnvContent}\nREGISTER_EMAIL_SERVER=IMAP`;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
// 写入更新后的内容
|
| 109 |
+
fs.writeFileSync(ENV_FILE_PATH, newEnvContent, 'utf8');
|
| 110 |
+
|
| 111 |
+
console.log('✅ 邮箱配置已成功保存到.env文件');
|
| 112 |
+
return true;
|
| 113 |
+
} catch (error) {
|
| 114 |
+
console.error(`❌ 保存邮箱配置失败: ${error.message}`);
|
| 115 |
+
return false;
|
| 116 |
+
}
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
// 显示所有已配置的邮箱
|
| 120 |
+
function displayEmails() {
|
| 121 |
+
console.log('\n===== 当前已配置的邮箱 =====');
|
| 122 |
+
|
| 123 |
+
if (emailConfigs.length === 0) {
|
| 124 |
+
console.log('暂无已配置的邮箱');
|
| 125 |
+
return;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
emailConfigs.forEach((config, index) => {
|
| 129 |
+
console.log(`[${index + 1}] ${config.email}`);
|
| 130 |
+
console.log(` IMAP服务器: ${config.imap_server}`);
|
| 131 |
+
console.log(` IMAP端口: ${config.imap_port}`);
|
| 132 |
+
console.log(` 用户名: ${config.username}`);
|
| 133 |
+
console.log(` 应用密码: ${config.password}`);
|
| 134 |
+
console.log('');
|
| 135 |
+
});
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
// 添加新邮箱
|
| 139 |
+
function addEmail() {
|
| 140 |
+
console.log('\n===== 添加新邮箱 =====');
|
| 141 |
+
printAppPasswordInstructions();
|
| 142 |
+
|
| 143 |
+
rl.question('请输入Gmail地址: ', (email) => {
|
| 144 |
+
rl.question('请输入Gmail的应用密码 (不是邮箱密码): ', (password) => {
|
| 145 |
+
// 创建新配置
|
| 146 |
+
const newConfig = {
|
| 147 |
+
email: email,
|
| 148 |
+
imap_server: 'imap.gmail.com',
|
| 149 |
+
imap_port: 993,
|
| 150 |
+
username: email,
|
| 151 |
+
password: password
|
| 152 |
+
};
|
| 153 |
+
|
| 154 |
+
// 添加到配置列表
|
| 155 |
+
emailConfigs.push(newConfig);
|
| 156 |
+
|
| 157 |
+
console.log(`\n✅ 已添加邮箱: ${email}`);
|
| 158 |
+
|
| 159 |
+
// 保存到.env文件
|
| 160 |
+
if (saveEmailConfigs()) {
|
| 161 |
+
showMainMenu();
|
| 162 |
+
}
|
| 163 |
+
});
|
| 164 |
+
});
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
// 修改邮箱
|
| 168 |
+
function modifyEmail() {
|
| 169 |
+
if (emailConfigs.length === 0) {
|
| 170 |
+
console.log('\n❌ 当前没有可修改的邮箱。请先添加邮箱。');
|
| 171 |
+
showMainMenu();
|
| 172 |
+
return;
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
console.log('\n===== 修改邮箱 =====');
|
| 176 |
+
displayEmails();
|
| 177 |
+
|
| 178 |
+
rl.question('请输入要修改的邮箱序号 (1-' + emailConfigs.length + '): ', (indexStr) => {
|
| 179 |
+
const index = parseInt(indexStr) - 1;
|
| 180 |
+
|
| 181 |
+
if (isNaN(index) || index < 0 || index >= emailConfigs.length) {
|
| 182 |
+
console.log('\n❌ 无效的序号。请重新选择。');
|
| 183 |
+
modifyEmail();
|
| 184 |
+
return;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
const currentConfig = emailConfigs[index];
|
| 188 |
+
|
| 189 |
+
console.log(`\n正在修改邮箱: ${currentConfig.email}`);
|
| 190 |
+
|
| 191 |
+
rl.question(`新的Gmail地址 (当前: ${currentConfig.email},直接回车保持不变): `, (email) => {
|
| 192 |
+
const newEmail = email.trim() === '' ? currentConfig.email : email;
|
| 193 |
+
|
| 194 |
+
rl.question('新的应用密码 (直接回车保持不变): ', (password) => {
|
| 195 |
+
const newPassword = password.trim() === '' ? currentConfig.password : password;
|
| 196 |
+
|
| 197 |
+
// 更新配置
|
| 198 |
+
emailConfigs[index] = {
|
| 199 |
+
email: newEmail,
|
| 200 |
+
imap_server: 'imap.gmail.com',
|
| 201 |
+
imap_port: 993,
|
| 202 |
+
username: newEmail,
|
| 203 |
+
password: newPassword
|
| 204 |
+
};
|
| 205 |
+
|
| 206 |
+
console.log(`\n✅ 已修改邮箱配置: ${newEmail}`);
|
| 207 |
+
|
| 208 |
+
// 保存到.env文件
|
| 209 |
+
if (saveEmailConfigs()) {
|
| 210 |
+
showMainMenu();
|
| 211 |
+
}
|
| 212 |
+
});
|
| 213 |
+
});
|
| 214 |
+
});
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
// 删除邮箱
|
| 218 |
+
function deleteEmail() {
|
| 219 |
+
if (emailConfigs.length === 0) {
|
| 220 |
+
console.log('\n❌ 当前没有可删除的邮箱。');
|
| 221 |
+
showMainMenu();
|
| 222 |
+
return;
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
console.log('\n===== 删除邮箱 =====');
|
| 226 |
+
displayEmails();
|
| 227 |
+
|
| 228 |
+
rl.question('请输入要删除的邮箱序号 (1-' + emailConfigs.length + '): ', (indexStr) => {
|
| 229 |
+
const index = parseInt(indexStr) - 1;
|
| 230 |
+
|
| 231 |
+
if (isNaN(index) || index < 0 || index >= emailConfigs.length) {
|
| 232 |
+
console.log('\n❌ 无效的序号。请重新选择。');
|
| 233 |
+
deleteEmail();
|
| 234 |
+
return;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
const emailToDelete = emailConfigs[index].email;
|
| 238 |
+
|
| 239 |
+
rl.question(`确认删除邮箱 "${emailToDelete}"? (y/n): `, (answer) => {
|
| 240 |
+
if (answer.toLowerCase() === 'y') {
|
| 241 |
+
// 删除邮箱
|
| 242 |
+
emailConfigs.splice(index, 1);
|
| 243 |
+
|
| 244 |
+
console.log(`\n✅ 已删除邮箱: ${emailToDelete}`);
|
| 245 |
+
|
| 246 |
+
// 保存到.env文件
|
| 247 |
+
if (saveEmailConfigs()) {
|
| 248 |
+
showMainMenu();
|
| 249 |
+
}
|
| 250 |
+
} else {
|
| 251 |
+
console.log('\n操作已取消');
|
| 252 |
+
showMainMenu();
|
| 253 |
+
}
|
| 254 |
+
});
|
| 255 |
+
});
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
// 显示主菜单
|
| 259 |
+
function showMainMenu() {
|
| 260 |
+
console.log('\n===== 邮箱配置管理 =====');
|
| 261 |
+
console.log('1. 查看所有邮箱');
|
| 262 |
+
console.log('2. 添加新邮箱');
|
| 263 |
+
console.log('3. 修改邮箱');
|
| 264 |
+
console.log('4. 删除邮箱');
|
| 265 |
+
console.log('0. 退出');
|
| 266 |
+
|
| 267 |
+
rl.question('请选择操作 (0-4): ', (choice) => {
|
| 268 |
+
switch (choice) {
|
| 269 |
+
case '1':
|
| 270 |
+
displayEmails();
|
| 271 |
+
showMainMenu();
|
| 272 |
+
break;
|
| 273 |
+
case '2':
|
| 274 |
+
addEmail();
|
| 275 |
+
break;
|
| 276 |
+
case '3':
|
| 277 |
+
modifyEmail();
|
| 278 |
+
break;
|
| 279 |
+
case '4':
|
| 280 |
+
deleteEmail();
|
| 281 |
+
break;
|
| 282 |
+
case '0':
|
| 283 |
+
console.log('\n✅ 配置完成,退出程序');
|
| 284 |
+
rl.close();
|
| 285 |
+
break;
|
| 286 |
+
default:
|
| 287 |
+
console.log('\n❌ 无效的选择,请重新输入');
|
| 288 |
+
showMainMenu();
|
| 289 |
+
break;
|
| 290 |
+
}
|
| 291 |
+
});
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
// 主函数
|
| 295 |
+
async function main() {
|
| 296 |
+
console.log('===== Cursor-To-OpenAI 邮箱配置管理 =====');
|
| 297 |
+
|
| 298 |
+
// 加载当前配置
|
| 299 |
+
if (loadEnvironment()) {
|
| 300 |
+
// 显示主菜单
|
| 301 |
+
showMainMenu();
|
| 302 |
+
} else {
|
| 303 |
+
console.error('程序退出');
|
| 304 |
+
rl.close();
|
| 305 |
+
}
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
// 运行主函数
|
| 309 |
+
main();
|
manage-invalid-cookies.js
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|
|
|
|
|
|
|
|
|
|
| 1 |
+
// 加载环境变量
|
| 2 |
+
require('dotenv').config();
|
| 3 |
+
|
| 4 |
+
const fs = require('fs');
|
| 5 |
+
const path = require('path');
|
| 6 |
+
const readline = require('readline');
|
| 7 |
+
const keyManager = require('./src/utils/keyManager');
|
| 8 |
+
|
| 9 |
+
// 创建命令行交互界面
|
| 10 |
+
const rl = readline.createInterface({
|
| 11 |
+
input: process.stdin,
|
| 12 |
+
output: process.stdout
|
| 13 |
+
});
|
| 14 |
+
|
| 15 |
+
// 显示菜单
|
| 16 |
+
function showMenu() {
|
| 17 |
+
console.log('\n===== 无效Cookie管理工具 =====');
|
| 18 |
+
console.log('1. 查看所有无效Cookie');
|
| 19 |
+
console.log('2. 添加无效Cookie');
|
| 20 |
+
console.log('3. 删除特定无效Cookie');
|
| 21 |
+
console.log('4. 清空所有无效Cookie');
|
| 22 |
+
console.log('5. 从API Keys中移除所有无效Cookie');
|
| 23 |
+
console.log('6. 退出');
|
| 24 |
+
console.log('============================');
|
| 25 |
+
|
| 26 |
+
rl.question('请选择操作 (1-6): ', (answer) => {
|
| 27 |
+
switch(answer) {
|
| 28 |
+
case '1':
|
| 29 |
+
listInvalidCookies();
|
| 30 |
+
break;
|
| 31 |
+
case '2':
|
| 32 |
+
addInvalidCookie();
|
| 33 |
+
break;
|
| 34 |
+
case '3':
|
| 35 |
+
removeInvalidCookie();
|
| 36 |
+
break;
|
| 37 |
+
case '4':
|
| 38 |
+
clearAllInvalidCookies();
|
| 39 |
+
break;
|
| 40 |
+
case '5':
|
| 41 |
+
removeInvalidCookiesFromApiKeys();
|
| 42 |
+
break;
|
| 43 |
+
case '6':
|
| 44 |
+
console.log('退出程序');
|
| 45 |
+
rl.close();
|
| 46 |
+
break;
|
| 47 |
+
default:
|
| 48 |
+
console.log('无效的选择,请重新输入');
|
| 49 |
+
showMenu();
|
| 50 |
+
break;
|
| 51 |
+
}
|
| 52 |
+
});
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
// 查看所有无效Cookie
|
| 56 |
+
function listInvalidCookies() {
|
| 57 |
+
const invalidCookies = Array.from(keyManager.getInvalidCookies());
|
| 58 |
+
|
| 59 |
+
console.log('\n===== 所有无效Cookie =====');
|
| 60 |
+
if (invalidCookies.length === 0) {
|
| 61 |
+
console.log('没有无效Cookie');
|
| 62 |
+
} else {
|
| 63 |
+
invalidCookies.forEach((cookie, index) => {
|
| 64 |
+
console.log(`${index + 1}. ${cookie}`);
|
| 65 |
+
});
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
showMenu();
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
// 添加无效Cookie
|
| 72 |
+
function addInvalidCookie() {
|
| 73 |
+
rl.question('\n请输入要添加的无效Cookie: ', (cookie) => {
|
| 74 |
+
if (!cookie.trim()) {
|
| 75 |
+
console.log('Cookie不能为空');
|
| 76 |
+
showMenu();
|
| 77 |
+
return;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
// 将cookie添加到无效集合
|
| 81 |
+
const invalidCookies = new Set(keyManager.getInvalidCookies());
|
| 82 |
+
invalidCookies.add(cookie.trim());
|
| 83 |
+
|
| 84 |
+
// 保存到文件
|
| 85 |
+
const INVALID_COOKIES_FILE = path.join(__dirname, 'data/invalid_cookies.json');
|
| 86 |
+
try {
|
| 87 |
+
// 确保目录存在
|
| 88 |
+
const dataDir = path.join(__dirname, 'data');
|
| 89 |
+
if (!fs.existsSync(dataDir)) {
|
| 90 |
+
fs.mkdirSync(dataDir, { recursive: true });
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
fs.writeFileSync(INVALID_COOKIES_FILE, JSON.stringify(Array.from(invalidCookies), null, 2), 'utf8');
|
| 94 |
+
console.log('无效Cookie添加成功');
|
| 95 |
+
|
| 96 |
+
// 重新加载无效cookie
|
| 97 |
+
keyManager.loadInvalidCookiesFromFile();
|
| 98 |
+
} catch (err) {
|
| 99 |
+
console.error('保存无效Cookie失败:', err);
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
showMenu();
|
| 103 |
+
});
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
// 删除特定无效Cookie
|
| 107 |
+
function removeInvalidCookie() {
|
| 108 |
+
const invalidCookies = Array.from(keyManager.getInvalidCookies());
|
| 109 |
+
|
| 110 |
+
if (invalidCookies.length === 0) {
|
| 111 |
+
console.log('\n没有无效Cookie可删除');
|
| 112 |
+
showMenu();
|
| 113 |
+
return;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
console.log('\n===== 所有无效Cookie =====');
|
| 117 |
+
invalidCookies.forEach((cookie, index) => {
|
| 118 |
+
console.log(`${index + 1}. ${cookie}`);
|
| 119 |
+
});
|
| 120 |
+
|
| 121 |
+
rl.question('\n请输入要删除的Cookie编号 (1-' + invalidCookies.length + '): ', (answer) => {
|
| 122 |
+
const index = parseInt(answer) - 1;
|
| 123 |
+
|
| 124 |
+
if (isNaN(index) || index < 0 || index >= invalidCookies.length) {
|
| 125 |
+
console.log('无效的编号');
|
| 126 |
+
showMenu();
|
| 127 |
+
return;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
const cookieToRemove = invalidCookies[index];
|
| 131 |
+
const result = keyManager.clearInvalidCookie(cookieToRemove);
|
| 132 |
+
|
| 133 |
+
if (result) {
|
| 134 |
+
console.log(`成功删除无效Cookie: ${cookieToRemove}`);
|
| 135 |
+
} else {
|
| 136 |
+
console.log('删除失败');
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
showMenu();
|
| 140 |
+
});
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
// 清空所有无效Cookie
|
| 144 |
+
function clearAllInvalidCookies() {
|
| 145 |
+
rl.question('\n确定要清空所有无效Cookie吗? (y/n): ', (answer) => {
|
| 146 |
+
if (answer.toLowerCase() === 'y') {
|
| 147 |
+
keyManager.clearAllInvalidCookies();
|
| 148 |
+
console.log('所有无效Cookie已清空');
|
| 149 |
+
} else {
|
| 150 |
+
console.log('操作已取消');
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
showMenu();
|
| 154 |
+
});
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
// 从API Keys中移除所有无效Cookie
|
| 158 |
+
function removeInvalidCookiesFromApiKeys() {
|
| 159 |
+
// 重新初始化API Keys,这会自动移除无效cookie
|
| 160 |
+
keyManager.initializeApiKeys();
|
| 161 |
+
console.log('已从API Keys中移除所有无效Cookie');
|
| 162 |
+
|
| 163 |
+
showMenu();
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
// 启动程序
|
| 167 |
+
console.log('正在加载无效Cookie...');
|
| 168 |
+
keyManager.loadInvalidCookiesFromFile();
|
| 169 |
+
showMenu();
|
package-lock.json
ADDED
|
@@ -0,0 +1,2281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "cursor-to-openai",
|
| 3 |
+
"version": "1.3.0",
|
| 4 |
+
"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"": {
|
| 8 |
+
"name": "cursor-to-openai",
|
| 9 |
+
"version": "1.3.0",
|
| 10 |
+
"license": "MIT",
|
| 11 |
+
"dependencies": {
|
| 12 |
+
"@octokit/rest": "^20.0.2",
|
| 13 |
+
"adm-zip": "^0.5.16",
|
| 14 |
+
"axios": "^1.6.7",
|
| 15 |
+
"csv-parser": "^3.0.0",
|
| 16 |
+
"dotenv": "^16.4.7",
|
| 17 |
+
"express": "4.21.2",
|
| 18 |
+
"jsonwebtoken": "^9.0.2",
|
| 19 |
+
"morgan": "^1.10.0",
|
| 20 |
+
"node-cron": "^3.0.3",
|
| 21 |
+
"node-fetch": "^2.7.0",
|
| 22 |
+
"protobufjs": "^7.4.0",
|
| 23 |
+
"uuid": "11.0.5"
|
| 24 |
+
},
|
| 25 |
+
"devDependencies": {
|
| 26 |
+
"protobufjs-cli": "^1.1.3"
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
"node_modules/@babel/helper-string-parser": {
|
| 30 |
+
"version": "7.25.9",
|
| 31 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
|
| 32 |
+
"integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
|
| 33 |
+
"dev": true,
|
| 34 |
+
"license": "MIT",
|
| 35 |
+
"engines": {
|
| 36 |
+
"node": ">=6.9.0"
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
"node_modules/@babel/helper-validator-identifier": {
|
| 40 |
+
"version": "7.25.9",
|
| 41 |
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
|
| 42 |
+
"integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
|
| 43 |
+
"dev": true,
|
| 44 |
+
"license": "MIT",
|
| 45 |
+
"engines": {
|
| 46 |
+
"node": ">=6.9.0"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"node_modules/@babel/parser": {
|
| 50 |
+
"version": "7.26.7",
|
| 51 |
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.7.tgz",
|
| 52 |
+
"integrity": "sha512-kEvgGGgEjRUutvdVvZhbn/BxVt+5VSpwXz1j3WYXQbXDo8KzFOPNG2GQbdAiNq8g6wn1yKk7C/qrke03a84V+w==",
|
| 53 |
+
"dev": true,
|
| 54 |
+
"license": "MIT",
|
| 55 |
+
"dependencies": {
|
| 56 |
+
"@babel/types": "^7.26.7"
|
| 57 |
+
},
|
| 58 |
+
"bin": {
|
| 59 |
+
"parser": "bin/babel-parser.js"
|
| 60 |
+
},
|
| 61 |
+
"engines": {
|
| 62 |
+
"node": ">=6.0.0"
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"node_modules/@babel/types": {
|
| 66 |
+
"version": "7.26.7",
|
| 67 |
+
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.7.tgz",
|
| 68 |
+
"integrity": "sha512-t8kDRGrKXyp6+tjUh7hw2RLyclsW4TRoRvRHtSyAX9Bb5ldlFh+90YAYY6awRXrlB4G5G2izNeGySpATlFzmOg==",
|
| 69 |
+
"dev": true,
|
| 70 |
+
"license": "MIT",
|
| 71 |
+
"dependencies": {
|
| 72 |
+
"@babel/helper-string-parser": "^7.25.9",
|
| 73 |
+
"@babel/helper-validator-identifier": "^7.25.9"
|
| 74 |
+
},
|
| 75 |
+
"engines": {
|
| 76 |
+
"node": ">=6.9.0"
|
| 77 |
+
}
|
| 78 |
+
},
|
| 79 |
+
"node_modules/@jsdoc/salty": {
|
| 80 |
+
"version": "0.2.9",
|
| 81 |
+
"resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.9.tgz",
|
| 82 |
+
"integrity": "sha512-yYxMVH7Dqw6nO0d5NIV8OQWnitU8k6vXH8NtgqAfIa/IUqRMxRv/NUJJ08VEKbAakwxlgBl5PJdrU0dMPStsnw==",
|
| 83 |
+
"dev": true,
|
| 84 |
+
"license": "Apache-2.0",
|
| 85 |
+
"dependencies": {
|
| 86 |
+
"lodash": "^4.17.21"
|
| 87 |
+
},
|
| 88 |
+
"engines": {
|
| 89 |
+
"node": ">=v12.0.0"
|
| 90 |
+
}
|
| 91 |
+
},
|
| 92 |
+
"node_modules/@octokit/auth-token": {
|
| 93 |
+
"version": "4.0.0",
|
| 94 |
+
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz",
|
| 95 |
+
"integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==",
|
| 96 |
+
"license": "MIT",
|
| 97 |
+
"engines": {
|
| 98 |
+
"node": ">= 18"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"node_modules/@octokit/core": {
|
| 102 |
+
"version": "5.2.0",
|
| 103 |
+
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.0.tgz",
|
| 104 |
+
"integrity": "sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==",
|
| 105 |
+
"license": "MIT",
|
| 106 |
+
"dependencies": {
|
| 107 |
+
"@octokit/auth-token": "^4.0.0",
|
| 108 |
+
"@octokit/graphql": "^7.1.0",
|
| 109 |
+
"@octokit/request": "^8.3.1",
|
| 110 |
+
"@octokit/request-error": "^5.1.0",
|
| 111 |
+
"@octokit/types": "^13.0.0",
|
| 112 |
+
"before-after-hook": "^2.2.0",
|
| 113 |
+
"universal-user-agent": "^6.0.0"
|
| 114 |
+
},
|
| 115 |
+
"engines": {
|
| 116 |
+
"node": ">= 18"
|
| 117 |
+
}
|
| 118 |
+
},
|
| 119 |
+
"node_modules/@octokit/endpoint": {
|
| 120 |
+
"version": "9.0.6",
|
| 121 |
+
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.6.tgz",
|
| 122 |
+
"integrity": "sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw==",
|
| 123 |
+
"license": "MIT",
|
| 124 |
+
"dependencies": {
|
| 125 |
+
"@octokit/types": "^13.1.0",
|
| 126 |
+
"universal-user-agent": "^6.0.0"
|
| 127 |
+
},
|
| 128 |
+
"engines": {
|
| 129 |
+
"node": ">= 18"
|
| 130 |
+
}
|
| 131 |
+
},
|
| 132 |
+
"node_modules/@octokit/graphql": {
|
| 133 |
+
"version": "7.1.1",
|
| 134 |
+
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.1.tgz",
|
| 135 |
+
"integrity": "sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g==",
|
| 136 |
+
"license": "MIT",
|
| 137 |
+
"dependencies": {
|
| 138 |
+
"@octokit/request": "^8.4.1",
|
| 139 |
+
"@octokit/types": "^13.0.0",
|
| 140 |
+
"universal-user-agent": "^6.0.0"
|
| 141 |
+
},
|
| 142 |
+
"engines": {
|
| 143 |
+
"node": ">= 18"
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
"node_modules/@octokit/openapi-types": {
|
| 147 |
+
"version": "23.0.1",
|
| 148 |
+
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz",
|
| 149 |
+
"integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==",
|
| 150 |
+
"license": "MIT"
|
| 151 |
+
},
|
| 152 |
+
"node_modules/@octokit/plugin-paginate-rest": {
|
| 153 |
+
"version": "11.4.4-cjs.2",
|
| 154 |
+
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.4-cjs.2.tgz",
|
| 155 |
+
"integrity": "sha512-2dK6z8fhs8lla5PaOTgqfCGBxgAv/le+EhPs27KklPhm1bKObpu6lXzwfUEQ16ajXzqNrKMujsFyo9K2eaoISw==",
|
| 156 |
+
"license": "MIT",
|
| 157 |
+
"dependencies": {
|
| 158 |
+
"@octokit/types": "^13.7.0"
|
| 159 |
+
},
|
| 160 |
+
"engines": {
|
| 161 |
+
"node": ">= 18"
|
| 162 |
+
},
|
| 163 |
+
"peerDependencies": {
|
| 164 |
+
"@octokit/core": "5"
|
| 165 |
+
}
|
| 166 |
+
},
|
| 167 |
+
"node_modules/@octokit/plugin-request-log": {
|
| 168 |
+
"version": "4.0.1",
|
| 169 |
+
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-4.0.1.tgz",
|
| 170 |
+
"integrity": "sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA==",
|
| 171 |
+
"license": "MIT",
|
| 172 |
+
"engines": {
|
| 173 |
+
"node": ">= 18"
|
| 174 |
+
},
|
| 175 |
+
"peerDependencies": {
|
| 176 |
+
"@octokit/core": "5"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
| 180 |
+
"version": "13.3.2-cjs.1",
|
| 181 |
+
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.2-cjs.1.tgz",
|
| 182 |
+
"integrity": "sha512-VUjIjOOvF2oELQmiFpWA1aOPdawpyaCUqcEBc/UOUnj3Xp6DJGrJ1+bjUIIDzdHjnFNO6q57ODMfdEZnoBkCwQ==",
|
| 183 |
+
"license": "MIT",
|
| 184 |
+
"dependencies": {
|
| 185 |
+
"@octokit/types": "^13.8.0"
|
| 186 |
+
},
|
| 187 |
+
"engines": {
|
| 188 |
+
"node": ">= 18"
|
| 189 |
+
},
|
| 190 |
+
"peerDependencies": {
|
| 191 |
+
"@octokit/core": "^5"
|
| 192 |
+
}
|
| 193 |
+
},
|
| 194 |
+
"node_modules/@octokit/request": {
|
| 195 |
+
"version": "8.4.1",
|
| 196 |
+
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.1.tgz",
|
| 197 |
+
"integrity": "sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==",
|
| 198 |
+
"license": "MIT",
|
| 199 |
+
"dependencies": {
|
| 200 |
+
"@octokit/endpoint": "^9.0.6",
|
| 201 |
+
"@octokit/request-error": "^5.1.1",
|
| 202 |
+
"@octokit/types": "^13.1.0",
|
| 203 |
+
"universal-user-agent": "^6.0.0"
|
| 204 |
+
},
|
| 205 |
+
"engines": {
|
| 206 |
+
"node": ">= 18"
|
| 207 |
+
}
|
| 208 |
+
},
|
| 209 |
+
"node_modules/@octokit/request-error": {
|
| 210 |
+
"version": "5.1.1",
|
| 211 |
+
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.1.tgz",
|
| 212 |
+
"integrity": "sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==",
|
| 213 |
+
"license": "MIT",
|
| 214 |
+
"dependencies": {
|
| 215 |
+
"@octokit/types": "^13.1.0",
|
| 216 |
+
"deprecation": "^2.0.0",
|
| 217 |
+
"once": "^1.4.0"
|
| 218 |
+
},
|
| 219 |
+
"engines": {
|
| 220 |
+
"node": ">= 18"
|
| 221 |
+
}
|
| 222 |
+
},
|
| 223 |
+
"node_modules/@octokit/rest": {
|
| 224 |
+
"version": "20.1.2",
|
| 225 |
+
"resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-20.1.2.tgz",
|
| 226 |
+
"integrity": "sha512-GmYiltypkHHtihFwPRxlaorG5R9VAHuk/vbszVoRTGXnAsY60wYLkh/E2XiFmdZmqrisw+9FaazS1i5SbdWYgA==",
|
| 227 |
+
"license": "MIT",
|
| 228 |
+
"dependencies": {
|
| 229 |
+
"@octokit/core": "^5.0.2",
|
| 230 |
+
"@octokit/plugin-paginate-rest": "11.4.4-cjs.2",
|
| 231 |
+
"@octokit/plugin-request-log": "^4.0.0",
|
| 232 |
+
"@octokit/plugin-rest-endpoint-methods": "13.3.2-cjs.1"
|
| 233 |
+
},
|
| 234 |
+
"engines": {
|
| 235 |
+
"node": ">= 18"
|
| 236 |
+
}
|
| 237 |
+
},
|
| 238 |
+
"node_modules/@octokit/types": {
|
| 239 |
+
"version": "13.8.0",
|
| 240 |
+
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.8.0.tgz",
|
| 241 |
+
"integrity": "sha512-x7DjTIbEpEWXK99DMd01QfWy0hd5h4EN+Q7shkdKds3otGQP+oWE/y0A76i1OvH9fygo4ddvNf7ZvF0t78P98A==",
|
| 242 |
+
"license": "MIT",
|
| 243 |
+
"dependencies": {
|
| 244 |
+
"@octokit/openapi-types": "^23.0.1"
|
| 245 |
+
}
|
| 246 |
+
},
|
| 247 |
+
"node_modules/@protobufjs/aspromise": {
|
| 248 |
+
"version": "1.1.2",
|
| 249 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
| 250 |
+
"integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
|
| 251 |
+
"license": "BSD-3-Clause"
|
| 252 |
+
},
|
| 253 |
+
"node_modules/@protobufjs/base64": {
|
| 254 |
+
"version": "1.1.2",
|
| 255 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
|
| 256 |
+
"integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
|
| 257 |
+
"license": "BSD-3-Clause"
|
| 258 |
+
},
|
| 259 |
+
"node_modules/@protobufjs/codegen": {
|
| 260 |
+
"version": "2.0.4",
|
| 261 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz",
|
| 262 |
+
"integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==",
|
| 263 |
+
"license": "BSD-3-Clause"
|
| 264 |
+
},
|
| 265 |
+
"node_modules/@protobufjs/eventemitter": {
|
| 266 |
+
"version": "1.1.0",
|
| 267 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",
|
| 268 |
+
"integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",
|
| 269 |
+
"license": "BSD-3-Clause"
|
| 270 |
+
},
|
| 271 |
+
"node_modules/@protobufjs/fetch": {
|
| 272 |
+
"version": "1.1.0",
|
| 273 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",
|
| 274 |
+
"integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",
|
| 275 |
+
"license": "BSD-3-Clause",
|
| 276 |
+
"dependencies": {
|
| 277 |
+
"@protobufjs/aspromise": "^1.1.1",
|
| 278 |
+
"@protobufjs/inquire": "^1.1.0"
|
| 279 |
+
}
|
| 280 |
+
},
|
| 281 |
+
"node_modules/@protobufjs/float": {
|
| 282 |
+
"version": "1.0.2",
|
| 283 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
|
| 284 |
+
"integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
|
| 285 |
+
"license": "BSD-3-Clause"
|
| 286 |
+
},
|
| 287 |
+
"node_modules/@protobufjs/inquire": {
|
| 288 |
+
"version": "1.1.0",
|
| 289 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz",
|
| 290 |
+
"integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==",
|
| 291 |
+
"license": "BSD-3-Clause"
|
| 292 |
+
},
|
| 293 |
+
"node_modules/@protobufjs/path": {
|
| 294 |
+
"version": "1.1.2",
|
| 295 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
|
| 296 |
+
"integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
|
| 297 |
+
"license": "BSD-3-Clause"
|
| 298 |
+
},
|
| 299 |
+
"node_modules/@protobufjs/pool": {
|
| 300 |
+
"version": "1.1.0",
|
| 301 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
|
| 302 |
+
"integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
|
| 303 |
+
"license": "BSD-3-Clause"
|
| 304 |
+
},
|
| 305 |
+
"node_modules/@protobufjs/utf8": {
|
| 306 |
+
"version": "1.1.0",
|
| 307 |
+
"resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz",
|
| 308 |
+
"integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==",
|
| 309 |
+
"license": "BSD-3-Clause"
|
| 310 |
+
},
|
| 311 |
+
"node_modules/@types/linkify-it": {
|
| 312 |
+
"version": "5.0.0",
|
| 313 |
+
"resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz",
|
| 314 |
+
"integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==",
|
| 315 |
+
"dev": true,
|
| 316 |
+
"license": "MIT"
|
| 317 |
+
},
|
| 318 |
+
"node_modules/@types/markdown-it": {
|
| 319 |
+
"version": "14.1.2",
|
| 320 |
+
"resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz",
|
| 321 |
+
"integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==",
|
| 322 |
+
"dev": true,
|
| 323 |
+
"license": "MIT",
|
| 324 |
+
"dependencies": {
|
| 325 |
+
"@types/linkify-it": "^5",
|
| 326 |
+
"@types/mdurl": "^2"
|
| 327 |
+
}
|
| 328 |
+
},
|
| 329 |
+
"node_modules/@types/mdurl": {
|
| 330 |
+
"version": "2.0.0",
|
| 331 |
+
"resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz",
|
| 332 |
+
"integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==",
|
| 333 |
+
"dev": true,
|
| 334 |
+
"license": "MIT"
|
| 335 |
+
},
|
| 336 |
+
"node_modules/@types/node": {
|
| 337 |
+
"version": "22.10.5",
|
| 338 |
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.5.tgz",
|
| 339 |
+
"integrity": "sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==",
|
| 340 |
+
"license": "MIT",
|
| 341 |
+
"dependencies": {
|
| 342 |
+
"undici-types": "~6.20.0"
|
| 343 |
+
}
|
| 344 |
+
},
|
| 345 |
+
"node_modules/accepts": {
|
| 346 |
+
"version": "1.3.8",
|
| 347 |
+
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
| 348 |
+
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
| 349 |
+
"license": "MIT",
|
| 350 |
+
"dependencies": {
|
| 351 |
+
"mime-types": "~2.1.34",
|
| 352 |
+
"negotiator": "0.6.3"
|
| 353 |
+
},
|
| 354 |
+
"engines": {
|
| 355 |
+
"node": ">= 0.6"
|
| 356 |
+
}
|
| 357 |
+
},
|
| 358 |
+
"node_modules/acorn": {
|
| 359 |
+
"version": "8.14.0",
|
| 360 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz",
|
| 361 |
+
"integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==",
|
| 362 |
+
"dev": true,
|
| 363 |
+
"license": "MIT",
|
| 364 |
+
"bin": {
|
| 365 |
+
"acorn": "bin/acorn"
|
| 366 |
+
},
|
| 367 |
+
"engines": {
|
| 368 |
+
"node": ">=0.4.0"
|
| 369 |
+
}
|
| 370 |
+
},
|
| 371 |
+
"node_modules/acorn-jsx": {
|
| 372 |
+
"version": "5.3.2",
|
| 373 |
+
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
|
| 374 |
+
"integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
|
| 375 |
+
"dev": true,
|
| 376 |
+
"license": "MIT",
|
| 377 |
+
"peerDependencies": {
|
| 378 |
+
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
| 379 |
+
}
|
| 380 |
+
},
|
| 381 |
+
"node_modules/adm-zip": {
|
| 382 |
+
"version": "0.5.16",
|
| 383 |
+
"resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.16.tgz",
|
| 384 |
+
"integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==",
|
| 385 |
+
"license": "MIT",
|
| 386 |
+
"engines": {
|
| 387 |
+
"node": ">=12.0"
|
| 388 |
+
}
|
| 389 |
+
},
|
| 390 |
+
"node_modules/ansi-styles": {
|
| 391 |
+
"version": "4.3.0",
|
| 392 |
+
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
| 393 |
+
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
| 394 |
+
"dev": true,
|
| 395 |
+
"license": "MIT",
|
| 396 |
+
"dependencies": {
|
| 397 |
+
"color-convert": "^2.0.1"
|
| 398 |
+
},
|
| 399 |
+
"engines": {
|
| 400 |
+
"node": ">=8"
|
| 401 |
+
},
|
| 402 |
+
"funding": {
|
| 403 |
+
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
"node_modules/argparse": {
|
| 407 |
+
"version": "2.0.1",
|
| 408 |
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
| 409 |
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
| 410 |
+
"dev": true,
|
| 411 |
+
"license": "Python-2.0"
|
| 412 |
+
},
|
| 413 |
+
"node_modules/array-flatten": {
|
| 414 |
+
"version": "1.1.1",
|
| 415 |
+
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
| 416 |
+
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
|
| 417 |
+
"license": "MIT"
|
| 418 |
+
},
|
| 419 |
+
"node_modules/asynckit": {
|
| 420 |
+
"version": "0.4.0",
|
| 421 |
+
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
| 422 |
+
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
| 423 |
+
"license": "MIT"
|
| 424 |
+
},
|
| 425 |
+
"node_modules/axios": {
|
| 426 |
+
"version": "1.8.3",
|
| 427 |
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz",
|
| 428 |
+
"integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==",
|
| 429 |
+
"license": "MIT",
|
| 430 |
+
"dependencies": {
|
| 431 |
+
"follow-redirects": "^1.15.6",
|
| 432 |
+
"form-data": "^4.0.0",
|
| 433 |
+
"proxy-from-env": "^1.1.0"
|
| 434 |
+
}
|
| 435 |
+
},
|
| 436 |
+
"node_modules/balanced-match": {
|
| 437 |
+
"version": "1.0.2",
|
| 438 |
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
| 439 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 440 |
+
"dev": true,
|
| 441 |
+
"license": "MIT"
|
| 442 |
+
},
|
| 443 |
+
"node_modules/basic-auth": {
|
| 444 |
+
"version": "2.0.1",
|
| 445 |
+
"resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz",
|
| 446 |
+
"integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==",
|
| 447 |
+
"license": "MIT",
|
| 448 |
+
"dependencies": {
|
| 449 |
+
"safe-buffer": "5.1.2"
|
| 450 |
+
},
|
| 451 |
+
"engines": {
|
| 452 |
+
"node": ">= 0.8"
|
| 453 |
+
}
|
| 454 |
+
},
|
| 455 |
+
"node_modules/basic-auth/node_modules/safe-buffer": {
|
| 456 |
+
"version": "5.1.2",
|
| 457 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
| 458 |
+
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
|
| 459 |
+
"license": "MIT"
|
| 460 |
+
},
|
| 461 |
+
"node_modules/before-after-hook": {
|
| 462 |
+
"version": "2.2.3",
|
| 463 |
+
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
|
| 464 |
+
"integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==",
|
| 465 |
+
"license": "Apache-2.0"
|
| 466 |
+
},
|
| 467 |
+
"node_modules/bluebird": {
|
| 468 |
+
"version": "3.7.2",
|
| 469 |
+
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
|
| 470 |
+
"integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
|
| 471 |
+
"dev": true,
|
| 472 |
+
"license": "MIT"
|
| 473 |
+
},
|
| 474 |
+
"node_modules/body-parser": {
|
| 475 |
+
"version": "1.20.3",
|
| 476 |
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
|
| 477 |
+
"integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
|
| 478 |
+
"license": "MIT",
|
| 479 |
+
"dependencies": {
|
| 480 |
+
"bytes": "3.1.2",
|
| 481 |
+
"content-type": "~1.0.5",
|
| 482 |
+
"debug": "2.6.9",
|
| 483 |
+
"depd": "2.0.0",
|
| 484 |
+
"destroy": "1.2.0",
|
| 485 |
+
"http-errors": "2.0.0",
|
| 486 |
+
"iconv-lite": "0.4.24",
|
| 487 |
+
"on-finished": "2.4.1",
|
| 488 |
+
"qs": "6.13.0",
|
| 489 |
+
"raw-body": "2.5.2",
|
| 490 |
+
"type-is": "~1.6.18",
|
| 491 |
+
"unpipe": "1.0.0"
|
| 492 |
+
},
|
| 493 |
+
"engines": {
|
| 494 |
+
"node": ">= 0.8",
|
| 495 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 496 |
+
}
|
| 497 |
+
},
|
| 498 |
+
"node_modules/brace-expansion": {
|
| 499 |
+
"version": "2.0.1",
|
| 500 |
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
| 501 |
+
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
| 502 |
+
"dev": true,
|
| 503 |
+
"license": "MIT",
|
| 504 |
+
"dependencies": {
|
| 505 |
+
"balanced-match": "^1.0.0"
|
| 506 |
+
}
|
| 507 |
+
},
|
| 508 |
+
"node_modules/buffer-equal-constant-time": {
|
| 509 |
+
"version": "1.0.1",
|
| 510 |
+
"resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
|
| 511 |
+
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
|
| 512 |
+
"license": "BSD-3-Clause"
|
| 513 |
+
},
|
| 514 |
+
"node_modules/bytes": {
|
| 515 |
+
"version": "3.1.2",
|
| 516 |
+
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
| 517 |
+
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
| 518 |
+
"license": "MIT",
|
| 519 |
+
"engines": {
|
| 520 |
+
"node": ">= 0.8"
|
| 521 |
+
}
|
| 522 |
+
},
|
| 523 |
+
"node_modules/call-bind-apply-helpers": {
|
| 524 |
+
"version": "1.0.1",
|
| 525 |
+
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz",
|
| 526 |
+
"integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==",
|
| 527 |
+
"license": "MIT",
|
| 528 |
+
"dependencies": {
|
| 529 |
+
"es-errors": "^1.3.0",
|
| 530 |
+
"function-bind": "^1.1.2"
|
| 531 |
+
},
|
| 532 |
+
"engines": {
|
| 533 |
+
"node": ">= 0.4"
|
| 534 |
+
}
|
| 535 |
+
},
|
| 536 |
+
"node_modules/call-bound": {
|
| 537 |
+
"version": "1.0.3",
|
| 538 |
+
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz",
|
| 539 |
+
"integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==",
|
| 540 |
+
"license": "MIT",
|
| 541 |
+
"dependencies": {
|
| 542 |
+
"call-bind-apply-helpers": "^1.0.1",
|
| 543 |
+
"get-intrinsic": "^1.2.6"
|
| 544 |
+
},
|
| 545 |
+
"engines": {
|
| 546 |
+
"node": ">= 0.4"
|
| 547 |
+
},
|
| 548 |
+
"funding": {
|
| 549 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 550 |
+
}
|
| 551 |
+
},
|
| 552 |
+
"node_modules/catharsis": {
|
| 553 |
+
"version": "0.9.0",
|
| 554 |
+
"resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz",
|
| 555 |
+
"integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==",
|
| 556 |
+
"dev": true,
|
| 557 |
+
"license": "MIT",
|
| 558 |
+
"dependencies": {
|
| 559 |
+
"lodash": "^4.17.15"
|
| 560 |
+
},
|
| 561 |
+
"engines": {
|
| 562 |
+
"node": ">= 10"
|
| 563 |
+
}
|
| 564 |
+
},
|
| 565 |
+
"node_modules/chalk": {
|
| 566 |
+
"version": "4.1.2",
|
| 567 |
+
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
| 568 |
+
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
| 569 |
+
"dev": true,
|
| 570 |
+
"license": "MIT",
|
| 571 |
+
"dependencies": {
|
| 572 |
+
"ansi-styles": "^4.1.0",
|
| 573 |
+
"supports-color": "^7.1.0"
|
| 574 |
+
},
|
| 575 |
+
"engines": {
|
| 576 |
+
"node": ">=10"
|
| 577 |
+
},
|
| 578 |
+
"funding": {
|
| 579 |
+
"url": "https://github.com/chalk/chalk?sponsor=1"
|
| 580 |
+
}
|
| 581 |
+
},
|
| 582 |
+
"node_modules/color-convert": {
|
| 583 |
+
"version": "2.0.1",
|
| 584 |
+
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
| 585 |
+
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
| 586 |
+
"dev": true,
|
| 587 |
+
"license": "MIT",
|
| 588 |
+
"dependencies": {
|
| 589 |
+
"color-name": "~1.1.4"
|
| 590 |
+
},
|
| 591 |
+
"engines": {
|
| 592 |
+
"node": ">=7.0.0"
|
| 593 |
+
}
|
| 594 |
+
},
|
| 595 |
+
"node_modules/color-name": {
|
| 596 |
+
"version": "1.1.4",
|
| 597 |
+
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
| 598 |
+
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
| 599 |
+
"dev": true,
|
| 600 |
+
"license": "MIT"
|
| 601 |
+
},
|
| 602 |
+
"node_modules/combined-stream": {
|
| 603 |
+
"version": "1.0.8",
|
| 604 |
+
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
| 605 |
+
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
| 606 |
+
"license": "MIT",
|
| 607 |
+
"dependencies": {
|
| 608 |
+
"delayed-stream": "~1.0.0"
|
| 609 |
+
},
|
| 610 |
+
"engines": {
|
| 611 |
+
"node": ">= 0.8"
|
| 612 |
+
}
|
| 613 |
+
},
|
| 614 |
+
"node_modules/content-disposition": {
|
| 615 |
+
"version": "0.5.4",
|
| 616 |
+
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
| 617 |
+
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
| 618 |
+
"license": "MIT",
|
| 619 |
+
"dependencies": {
|
| 620 |
+
"safe-buffer": "5.2.1"
|
| 621 |
+
},
|
| 622 |
+
"engines": {
|
| 623 |
+
"node": ">= 0.6"
|
| 624 |
+
}
|
| 625 |
+
},
|
| 626 |
+
"node_modules/content-type": {
|
| 627 |
+
"version": "1.0.5",
|
| 628 |
+
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
| 629 |
+
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
| 630 |
+
"license": "MIT",
|
| 631 |
+
"engines": {
|
| 632 |
+
"node": ">= 0.6"
|
| 633 |
+
}
|
| 634 |
+
},
|
| 635 |
+
"node_modules/cookie": {
|
| 636 |
+
"version": "0.7.1",
|
| 637 |
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
|
| 638 |
+
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
|
| 639 |
+
"license": "MIT",
|
| 640 |
+
"engines": {
|
| 641 |
+
"node": ">= 0.6"
|
| 642 |
+
}
|
| 643 |
+
},
|
| 644 |
+
"node_modules/cookie-signature": {
|
| 645 |
+
"version": "1.0.6",
|
| 646 |
+
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
| 647 |
+
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
|
| 648 |
+
"license": "MIT"
|
| 649 |
+
},
|
| 650 |
+
"node_modules/csv-parser": {
|
| 651 |
+
"version": "3.2.0",
|
| 652 |
+
"resolved": "https://registry.npmjs.org/csv-parser/-/csv-parser-3.2.0.tgz",
|
| 653 |
+
"integrity": "sha512-fgKbp+AJbn1h2dcAHKIdKNSSjfp43BZZykXsCjzALjKy80VXQNHPFJ6T9Afwdzoj24aMkq8GwDS7KGcDPpejrA==",
|
| 654 |
+
"license": "MIT",
|
| 655 |
+
"bin": {
|
| 656 |
+
"csv-parser": "bin/csv-parser"
|
| 657 |
+
},
|
| 658 |
+
"engines": {
|
| 659 |
+
"node": ">= 10"
|
| 660 |
+
}
|
| 661 |
+
},
|
| 662 |
+
"node_modules/debug": {
|
| 663 |
+
"version": "2.6.9",
|
| 664 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
| 665 |
+
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
| 666 |
+
"license": "MIT",
|
| 667 |
+
"dependencies": {
|
| 668 |
+
"ms": "2.0.0"
|
| 669 |
+
}
|
| 670 |
+
},
|
| 671 |
+
"node_modules/deep-is": {
|
| 672 |
+
"version": "0.1.4",
|
| 673 |
+
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
| 674 |
+
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
|
| 675 |
+
"dev": true,
|
| 676 |
+
"license": "MIT"
|
| 677 |
+
},
|
| 678 |
+
"node_modules/delayed-stream": {
|
| 679 |
+
"version": "1.0.0",
|
| 680 |
+
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
| 681 |
+
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
| 682 |
+
"license": "MIT",
|
| 683 |
+
"engines": {
|
| 684 |
+
"node": ">=0.4.0"
|
| 685 |
+
}
|
| 686 |
+
},
|
| 687 |
+
"node_modules/depd": {
|
| 688 |
+
"version": "2.0.0",
|
| 689 |
+
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
| 690 |
+
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
| 691 |
+
"license": "MIT",
|
| 692 |
+
"engines": {
|
| 693 |
+
"node": ">= 0.8"
|
| 694 |
+
}
|
| 695 |
+
},
|
| 696 |
+
"node_modules/deprecation": {
|
| 697 |
+
"version": "2.3.1",
|
| 698 |
+
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
|
| 699 |
+
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==",
|
| 700 |
+
"license": "ISC"
|
| 701 |
+
},
|
| 702 |
+
"node_modules/destroy": {
|
| 703 |
+
"version": "1.2.0",
|
| 704 |
+
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
|
| 705 |
+
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
| 706 |
+
"license": "MIT",
|
| 707 |
+
"engines": {
|
| 708 |
+
"node": ">= 0.8",
|
| 709 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 710 |
+
}
|
| 711 |
+
},
|
| 712 |
+
"node_modules/dotenv": {
|
| 713 |
+
"version": "16.4.7",
|
| 714 |
+
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
|
| 715 |
+
"integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",
|
| 716 |
+
"license": "BSD-2-Clause",
|
| 717 |
+
"engines": {
|
| 718 |
+
"node": ">=12"
|
| 719 |
+
},
|
| 720 |
+
"funding": {
|
| 721 |
+
"url": "https://dotenvx.com"
|
| 722 |
+
}
|
| 723 |
+
},
|
| 724 |
+
"node_modules/dunder-proto": {
|
| 725 |
+
"version": "1.0.1",
|
| 726 |
+
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
| 727 |
+
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
| 728 |
+
"license": "MIT",
|
| 729 |
+
"dependencies": {
|
| 730 |
+
"call-bind-apply-helpers": "^1.0.1",
|
| 731 |
+
"es-errors": "^1.3.0",
|
| 732 |
+
"gopd": "^1.2.0"
|
| 733 |
+
},
|
| 734 |
+
"engines": {
|
| 735 |
+
"node": ">= 0.4"
|
| 736 |
+
}
|
| 737 |
+
},
|
| 738 |
+
"node_modules/ecdsa-sig-formatter": {
|
| 739 |
+
"version": "1.0.11",
|
| 740 |
+
"resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
|
| 741 |
+
"integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
|
| 742 |
+
"license": "Apache-2.0",
|
| 743 |
+
"dependencies": {
|
| 744 |
+
"safe-buffer": "^5.0.1"
|
| 745 |
+
}
|
| 746 |
+
},
|
| 747 |
+
"node_modules/ee-first": {
|
| 748 |
+
"version": "1.1.1",
|
| 749 |
+
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
| 750 |
+
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
| 751 |
+
"license": "MIT"
|
| 752 |
+
},
|
| 753 |
+
"node_modules/encodeurl": {
|
| 754 |
+
"version": "2.0.0",
|
| 755 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
| 756 |
+
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
|
| 757 |
+
"license": "MIT",
|
| 758 |
+
"engines": {
|
| 759 |
+
"node": ">= 0.8"
|
| 760 |
+
}
|
| 761 |
+
},
|
| 762 |
+
"node_modules/entities": {
|
| 763 |
+
"version": "4.5.0",
|
| 764 |
+
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
|
| 765 |
+
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
|
| 766 |
+
"dev": true,
|
| 767 |
+
"license": "BSD-2-Clause",
|
| 768 |
+
"engines": {
|
| 769 |
+
"node": ">=0.12"
|
| 770 |
+
},
|
| 771 |
+
"funding": {
|
| 772 |
+
"url": "https://github.com/fb55/entities?sponsor=1"
|
| 773 |
+
}
|
| 774 |
+
},
|
| 775 |
+
"node_modules/es-define-property": {
|
| 776 |
+
"version": "1.0.1",
|
| 777 |
+
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
| 778 |
+
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
| 779 |
+
"license": "MIT",
|
| 780 |
+
"engines": {
|
| 781 |
+
"node": ">= 0.4"
|
| 782 |
+
}
|
| 783 |
+
},
|
| 784 |
+
"node_modules/es-errors": {
|
| 785 |
+
"version": "1.3.0",
|
| 786 |
+
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
| 787 |
+
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
| 788 |
+
"license": "MIT",
|
| 789 |
+
"engines": {
|
| 790 |
+
"node": ">= 0.4"
|
| 791 |
+
}
|
| 792 |
+
},
|
| 793 |
+
"node_modules/es-object-atoms": {
|
| 794 |
+
"version": "1.0.0",
|
| 795 |
+
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz",
|
| 796 |
+
"integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==",
|
| 797 |
+
"license": "MIT",
|
| 798 |
+
"dependencies": {
|
| 799 |
+
"es-errors": "^1.3.0"
|
| 800 |
+
},
|
| 801 |
+
"engines": {
|
| 802 |
+
"node": ">= 0.4"
|
| 803 |
+
}
|
| 804 |
+
},
|
| 805 |
+
"node_modules/es-set-tostringtag": {
|
| 806 |
+
"version": "2.1.0",
|
| 807 |
+
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
|
| 808 |
+
"integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
|
| 809 |
+
"license": "MIT",
|
| 810 |
+
"dependencies": {
|
| 811 |
+
"es-errors": "^1.3.0",
|
| 812 |
+
"get-intrinsic": "^1.2.6",
|
| 813 |
+
"has-tostringtag": "^1.0.2",
|
| 814 |
+
"hasown": "^2.0.2"
|
| 815 |
+
},
|
| 816 |
+
"engines": {
|
| 817 |
+
"node": ">= 0.4"
|
| 818 |
+
}
|
| 819 |
+
},
|
| 820 |
+
"node_modules/escape-html": {
|
| 821 |
+
"version": "1.0.3",
|
| 822 |
+
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
| 823 |
+
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
|
| 824 |
+
"license": "MIT"
|
| 825 |
+
},
|
| 826 |
+
"node_modules/escape-string-regexp": {
|
| 827 |
+
"version": "2.0.0",
|
| 828 |
+
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
|
| 829 |
+
"integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
|
| 830 |
+
"dev": true,
|
| 831 |
+
"license": "MIT",
|
| 832 |
+
"engines": {
|
| 833 |
+
"node": ">=8"
|
| 834 |
+
}
|
| 835 |
+
},
|
| 836 |
+
"node_modules/escodegen": {
|
| 837 |
+
"version": "1.14.3",
|
| 838 |
+
"resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz",
|
| 839 |
+
"integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==",
|
| 840 |
+
"dev": true,
|
| 841 |
+
"license": "BSD-2-Clause",
|
| 842 |
+
"dependencies": {
|
| 843 |
+
"esprima": "^4.0.1",
|
| 844 |
+
"estraverse": "^4.2.0",
|
| 845 |
+
"esutils": "^2.0.2",
|
| 846 |
+
"optionator": "^0.8.1"
|
| 847 |
+
},
|
| 848 |
+
"bin": {
|
| 849 |
+
"escodegen": "bin/escodegen.js",
|
| 850 |
+
"esgenerate": "bin/esgenerate.js"
|
| 851 |
+
},
|
| 852 |
+
"engines": {
|
| 853 |
+
"node": ">=4.0"
|
| 854 |
+
},
|
| 855 |
+
"optionalDependencies": {
|
| 856 |
+
"source-map": "~0.6.1"
|
| 857 |
+
}
|
| 858 |
+
},
|
| 859 |
+
"node_modules/escodegen/node_modules/estraverse": {
|
| 860 |
+
"version": "4.3.0",
|
| 861 |
+
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
|
| 862 |
+
"integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
|
| 863 |
+
"dev": true,
|
| 864 |
+
"license": "BSD-2-Clause",
|
| 865 |
+
"engines": {
|
| 866 |
+
"node": ">=4.0"
|
| 867 |
+
}
|
| 868 |
+
},
|
| 869 |
+
"node_modules/eslint-visitor-keys": {
|
| 870 |
+
"version": "3.4.3",
|
| 871 |
+
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
|
| 872 |
+
"integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
|
| 873 |
+
"dev": true,
|
| 874 |
+
"license": "Apache-2.0",
|
| 875 |
+
"engines": {
|
| 876 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 877 |
+
},
|
| 878 |
+
"funding": {
|
| 879 |
+
"url": "https://opencollective.com/eslint"
|
| 880 |
+
}
|
| 881 |
+
},
|
| 882 |
+
"node_modules/espree": {
|
| 883 |
+
"version": "9.6.1",
|
| 884 |
+
"resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
|
| 885 |
+
"integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
|
| 886 |
+
"dev": true,
|
| 887 |
+
"license": "BSD-2-Clause",
|
| 888 |
+
"dependencies": {
|
| 889 |
+
"acorn": "^8.9.0",
|
| 890 |
+
"acorn-jsx": "^5.3.2",
|
| 891 |
+
"eslint-visitor-keys": "^3.4.1"
|
| 892 |
+
},
|
| 893 |
+
"engines": {
|
| 894 |
+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
| 895 |
+
},
|
| 896 |
+
"funding": {
|
| 897 |
+
"url": "https://opencollective.com/eslint"
|
| 898 |
+
}
|
| 899 |
+
},
|
| 900 |
+
"node_modules/esprima": {
|
| 901 |
+
"version": "4.0.1",
|
| 902 |
+
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
| 903 |
+
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
| 904 |
+
"dev": true,
|
| 905 |
+
"license": "BSD-2-Clause",
|
| 906 |
+
"bin": {
|
| 907 |
+
"esparse": "bin/esparse.js",
|
| 908 |
+
"esvalidate": "bin/esvalidate.js"
|
| 909 |
+
},
|
| 910 |
+
"engines": {
|
| 911 |
+
"node": ">=4"
|
| 912 |
+
}
|
| 913 |
+
},
|
| 914 |
+
"node_modules/estraverse": {
|
| 915 |
+
"version": "5.3.0",
|
| 916 |
+
"resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
|
| 917 |
+
"integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
|
| 918 |
+
"dev": true,
|
| 919 |
+
"license": "BSD-2-Clause",
|
| 920 |
+
"engines": {
|
| 921 |
+
"node": ">=4.0"
|
| 922 |
+
}
|
| 923 |
+
},
|
| 924 |
+
"node_modules/esutils": {
|
| 925 |
+
"version": "2.0.3",
|
| 926 |
+
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
|
| 927 |
+
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
|
| 928 |
+
"dev": true,
|
| 929 |
+
"license": "BSD-2-Clause",
|
| 930 |
+
"engines": {
|
| 931 |
+
"node": ">=0.10.0"
|
| 932 |
+
}
|
| 933 |
+
},
|
| 934 |
+
"node_modules/etag": {
|
| 935 |
+
"version": "1.8.1",
|
| 936 |
+
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
| 937 |
+
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
| 938 |
+
"license": "MIT",
|
| 939 |
+
"engines": {
|
| 940 |
+
"node": ">= 0.6"
|
| 941 |
+
}
|
| 942 |
+
},
|
| 943 |
+
"node_modules/express": {
|
| 944 |
+
"version": "4.21.2",
|
| 945 |
+
"resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
|
| 946 |
+
"integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
|
| 947 |
+
"license": "MIT",
|
| 948 |
+
"dependencies": {
|
| 949 |
+
"accepts": "~1.3.8",
|
| 950 |
+
"array-flatten": "1.1.1",
|
| 951 |
+
"body-parser": "1.20.3",
|
| 952 |
+
"content-disposition": "0.5.4",
|
| 953 |
+
"content-type": "~1.0.4",
|
| 954 |
+
"cookie": "0.7.1",
|
| 955 |
+
"cookie-signature": "1.0.6",
|
| 956 |
+
"debug": "2.6.9",
|
| 957 |
+
"depd": "2.0.0",
|
| 958 |
+
"encodeurl": "~2.0.0",
|
| 959 |
+
"escape-html": "~1.0.3",
|
| 960 |
+
"etag": "~1.8.1",
|
| 961 |
+
"finalhandler": "1.3.1",
|
| 962 |
+
"fresh": "0.5.2",
|
| 963 |
+
"http-errors": "2.0.0",
|
| 964 |
+
"merge-descriptors": "1.0.3",
|
| 965 |
+
"methods": "~1.1.2",
|
| 966 |
+
"on-finished": "2.4.1",
|
| 967 |
+
"parseurl": "~1.3.3",
|
| 968 |
+
"path-to-regexp": "0.1.12",
|
| 969 |
+
"proxy-addr": "~2.0.7",
|
| 970 |
+
"qs": "6.13.0",
|
| 971 |
+
"range-parser": "~1.2.1",
|
| 972 |
+
"safe-buffer": "5.2.1",
|
| 973 |
+
"send": "0.19.0",
|
| 974 |
+
"serve-static": "1.16.2",
|
| 975 |
+
"setprototypeof": "1.2.0",
|
| 976 |
+
"statuses": "2.0.1",
|
| 977 |
+
"type-is": "~1.6.18",
|
| 978 |
+
"utils-merge": "1.0.1",
|
| 979 |
+
"vary": "~1.1.2"
|
| 980 |
+
},
|
| 981 |
+
"engines": {
|
| 982 |
+
"node": ">= 0.10.0"
|
| 983 |
+
},
|
| 984 |
+
"funding": {
|
| 985 |
+
"type": "opencollective",
|
| 986 |
+
"url": "https://opencollective.com/express"
|
| 987 |
+
}
|
| 988 |
+
},
|
| 989 |
+
"node_modules/fast-levenshtein": {
|
| 990 |
+
"version": "2.0.6",
|
| 991 |
+
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
|
| 992 |
+
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
|
| 993 |
+
"dev": true,
|
| 994 |
+
"license": "MIT"
|
| 995 |
+
},
|
| 996 |
+
"node_modules/finalhandler": {
|
| 997 |
+
"version": "1.3.1",
|
| 998 |
+
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
|
| 999 |
+
"integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
|
| 1000 |
+
"license": "MIT",
|
| 1001 |
+
"dependencies": {
|
| 1002 |
+
"debug": "2.6.9",
|
| 1003 |
+
"encodeurl": "~2.0.0",
|
| 1004 |
+
"escape-html": "~1.0.3",
|
| 1005 |
+
"on-finished": "2.4.1",
|
| 1006 |
+
"parseurl": "~1.3.3",
|
| 1007 |
+
"statuses": "2.0.1",
|
| 1008 |
+
"unpipe": "~1.0.0"
|
| 1009 |
+
},
|
| 1010 |
+
"engines": {
|
| 1011 |
+
"node": ">= 0.8"
|
| 1012 |
+
}
|
| 1013 |
+
},
|
| 1014 |
+
"node_modules/follow-redirects": {
|
| 1015 |
+
"version": "1.15.9",
|
| 1016 |
+
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
|
| 1017 |
+
"integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
|
| 1018 |
+
"funding": [
|
| 1019 |
+
{
|
| 1020 |
+
"type": "individual",
|
| 1021 |
+
"url": "https://github.com/sponsors/RubenVerborgh"
|
| 1022 |
+
}
|
| 1023 |
+
],
|
| 1024 |
+
"license": "MIT",
|
| 1025 |
+
"engines": {
|
| 1026 |
+
"node": ">=4.0"
|
| 1027 |
+
},
|
| 1028 |
+
"peerDependenciesMeta": {
|
| 1029 |
+
"debug": {
|
| 1030 |
+
"optional": true
|
| 1031 |
+
}
|
| 1032 |
+
}
|
| 1033 |
+
},
|
| 1034 |
+
"node_modules/form-data": {
|
| 1035 |
+
"version": "4.0.2",
|
| 1036 |
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz",
|
| 1037 |
+
"integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==",
|
| 1038 |
+
"license": "MIT",
|
| 1039 |
+
"dependencies": {
|
| 1040 |
+
"asynckit": "^0.4.0",
|
| 1041 |
+
"combined-stream": "^1.0.8",
|
| 1042 |
+
"es-set-tostringtag": "^2.1.0",
|
| 1043 |
+
"mime-types": "^2.1.12"
|
| 1044 |
+
},
|
| 1045 |
+
"engines": {
|
| 1046 |
+
"node": ">= 6"
|
| 1047 |
+
}
|
| 1048 |
+
},
|
| 1049 |
+
"node_modules/forwarded": {
|
| 1050 |
+
"version": "0.2.0",
|
| 1051 |
+
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
| 1052 |
+
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
| 1053 |
+
"license": "MIT",
|
| 1054 |
+
"engines": {
|
| 1055 |
+
"node": ">= 0.6"
|
| 1056 |
+
}
|
| 1057 |
+
},
|
| 1058 |
+
"node_modules/fresh": {
|
| 1059 |
+
"version": "0.5.2",
|
| 1060 |
+
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
| 1061 |
+
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
| 1062 |
+
"license": "MIT",
|
| 1063 |
+
"engines": {
|
| 1064 |
+
"node": ">= 0.6"
|
| 1065 |
+
}
|
| 1066 |
+
},
|
| 1067 |
+
"node_modules/fs.realpath": {
|
| 1068 |
+
"version": "1.0.0",
|
| 1069 |
+
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
| 1070 |
+
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
|
| 1071 |
+
"dev": true,
|
| 1072 |
+
"license": "ISC"
|
| 1073 |
+
},
|
| 1074 |
+
"node_modules/function-bind": {
|
| 1075 |
+
"version": "1.1.2",
|
| 1076 |
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
| 1077 |
+
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
| 1078 |
+
"license": "MIT",
|
| 1079 |
+
"funding": {
|
| 1080 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1081 |
+
}
|
| 1082 |
+
},
|
| 1083 |
+
"node_modules/get-intrinsic": {
|
| 1084 |
+
"version": "1.2.7",
|
| 1085 |
+
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.7.tgz",
|
| 1086 |
+
"integrity": "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==",
|
| 1087 |
+
"license": "MIT",
|
| 1088 |
+
"dependencies": {
|
| 1089 |
+
"call-bind-apply-helpers": "^1.0.1",
|
| 1090 |
+
"es-define-property": "^1.0.1",
|
| 1091 |
+
"es-errors": "^1.3.0",
|
| 1092 |
+
"es-object-atoms": "^1.0.0",
|
| 1093 |
+
"function-bind": "^1.1.2",
|
| 1094 |
+
"get-proto": "^1.0.0",
|
| 1095 |
+
"gopd": "^1.2.0",
|
| 1096 |
+
"has-symbols": "^1.1.0",
|
| 1097 |
+
"hasown": "^2.0.2",
|
| 1098 |
+
"math-intrinsics": "^1.1.0"
|
| 1099 |
+
},
|
| 1100 |
+
"engines": {
|
| 1101 |
+
"node": ">= 0.4"
|
| 1102 |
+
},
|
| 1103 |
+
"funding": {
|
| 1104 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1105 |
+
}
|
| 1106 |
+
},
|
| 1107 |
+
"node_modules/get-proto": {
|
| 1108 |
+
"version": "1.0.1",
|
| 1109 |
+
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
| 1110 |
+
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
| 1111 |
+
"license": "MIT",
|
| 1112 |
+
"dependencies": {
|
| 1113 |
+
"dunder-proto": "^1.0.1",
|
| 1114 |
+
"es-object-atoms": "^1.0.0"
|
| 1115 |
+
},
|
| 1116 |
+
"engines": {
|
| 1117 |
+
"node": ">= 0.4"
|
| 1118 |
+
}
|
| 1119 |
+
},
|
| 1120 |
+
"node_modules/glob": {
|
| 1121 |
+
"version": "8.1.0",
|
| 1122 |
+
"resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
|
| 1123 |
+
"integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
|
| 1124 |
+
"deprecated": "Glob versions prior to v9 are no longer supported",
|
| 1125 |
+
"dev": true,
|
| 1126 |
+
"license": "ISC",
|
| 1127 |
+
"dependencies": {
|
| 1128 |
+
"fs.realpath": "^1.0.0",
|
| 1129 |
+
"inflight": "^1.0.4",
|
| 1130 |
+
"inherits": "2",
|
| 1131 |
+
"minimatch": "^5.0.1",
|
| 1132 |
+
"once": "^1.3.0"
|
| 1133 |
+
},
|
| 1134 |
+
"engines": {
|
| 1135 |
+
"node": ">=12"
|
| 1136 |
+
},
|
| 1137 |
+
"funding": {
|
| 1138 |
+
"url": "https://github.com/sponsors/isaacs"
|
| 1139 |
+
}
|
| 1140 |
+
},
|
| 1141 |
+
"node_modules/gopd": {
|
| 1142 |
+
"version": "1.2.0",
|
| 1143 |
+
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
| 1144 |
+
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
| 1145 |
+
"license": "MIT",
|
| 1146 |
+
"engines": {
|
| 1147 |
+
"node": ">= 0.4"
|
| 1148 |
+
},
|
| 1149 |
+
"funding": {
|
| 1150 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1151 |
+
}
|
| 1152 |
+
},
|
| 1153 |
+
"node_modules/graceful-fs": {
|
| 1154 |
+
"version": "4.2.11",
|
| 1155 |
+
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
| 1156 |
+
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
| 1157 |
+
"dev": true,
|
| 1158 |
+
"license": "ISC"
|
| 1159 |
+
},
|
| 1160 |
+
"node_modules/has-flag": {
|
| 1161 |
+
"version": "4.0.0",
|
| 1162 |
+
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
| 1163 |
+
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
| 1164 |
+
"dev": true,
|
| 1165 |
+
"license": "MIT",
|
| 1166 |
+
"engines": {
|
| 1167 |
+
"node": ">=8"
|
| 1168 |
+
}
|
| 1169 |
+
},
|
| 1170 |
+
"node_modules/has-symbols": {
|
| 1171 |
+
"version": "1.1.0",
|
| 1172 |
+
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
| 1173 |
+
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
| 1174 |
+
"license": "MIT",
|
| 1175 |
+
"engines": {
|
| 1176 |
+
"node": ">= 0.4"
|
| 1177 |
+
},
|
| 1178 |
+
"funding": {
|
| 1179 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1180 |
+
}
|
| 1181 |
+
},
|
| 1182 |
+
"node_modules/has-tostringtag": {
|
| 1183 |
+
"version": "1.0.2",
|
| 1184 |
+
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
|
| 1185 |
+
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
|
| 1186 |
+
"license": "MIT",
|
| 1187 |
+
"dependencies": {
|
| 1188 |
+
"has-symbols": "^1.0.3"
|
| 1189 |
+
},
|
| 1190 |
+
"engines": {
|
| 1191 |
+
"node": ">= 0.4"
|
| 1192 |
+
},
|
| 1193 |
+
"funding": {
|
| 1194 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1195 |
+
}
|
| 1196 |
+
},
|
| 1197 |
+
"node_modules/hasown": {
|
| 1198 |
+
"version": "2.0.2",
|
| 1199 |
+
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
| 1200 |
+
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
| 1201 |
+
"license": "MIT",
|
| 1202 |
+
"dependencies": {
|
| 1203 |
+
"function-bind": "^1.1.2"
|
| 1204 |
+
},
|
| 1205 |
+
"engines": {
|
| 1206 |
+
"node": ">= 0.4"
|
| 1207 |
+
}
|
| 1208 |
+
},
|
| 1209 |
+
"node_modules/http-errors": {
|
| 1210 |
+
"version": "2.0.0",
|
| 1211 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
| 1212 |
+
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
| 1213 |
+
"license": "MIT",
|
| 1214 |
+
"dependencies": {
|
| 1215 |
+
"depd": "2.0.0",
|
| 1216 |
+
"inherits": "2.0.4",
|
| 1217 |
+
"setprototypeof": "1.2.0",
|
| 1218 |
+
"statuses": "2.0.1",
|
| 1219 |
+
"toidentifier": "1.0.1"
|
| 1220 |
+
},
|
| 1221 |
+
"engines": {
|
| 1222 |
+
"node": ">= 0.8"
|
| 1223 |
+
}
|
| 1224 |
+
},
|
| 1225 |
+
"node_modules/iconv-lite": {
|
| 1226 |
+
"version": "0.4.24",
|
| 1227 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
| 1228 |
+
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
| 1229 |
+
"license": "MIT",
|
| 1230 |
+
"dependencies": {
|
| 1231 |
+
"safer-buffer": ">= 2.1.2 < 3"
|
| 1232 |
+
},
|
| 1233 |
+
"engines": {
|
| 1234 |
+
"node": ">=0.10.0"
|
| 1235 |
+
}
|
| 1236 |
+
},
|
| 1237 |
+
"node_modules/inflight": {
|
| 1238 |
+
"version": "1.0.6",
|
| 1239 |
+
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
| 1240 |
+
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
|
| 1241 |
+
"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.",
|
| 1242 |
+
"dev": true,
|
| 1243 |
+
"license": "ISC",
|
| 1244 |
+
"dependencies": {
|
| 1245 |
+
"once": "^1.3.0",
|
| 1246 |
+
"wrappy": "1"
|
| 1247 |
+
}
|
| 1248 |
+
},
|
| 1249 |
+
"node_modules/inherits": {
|
| 1250 |
+
"version": "2.0.4",
|
| 1251 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
| 1252 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
| 1253 |
+
"license": "ISC"
|
| 1254 |
+
},
|
| 1255 |
+
"node_modules/ipaddr.js": {
|
| 1256 |
+
"version": "1.9.1",
|
| 1257 |
+
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
| 1258 |
+
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
| 1259 |
+
"license": "MIT",
|
| 1260 |
+
"engines": {
|
| 1261 |
+
"node": ">= 0.10"
|
| 1262 |
+
}
|
| 1263 |
+
},
|
| 1264 |
+
"node_modules/js2xmlparser": {
|
| 1265 |
+
"version": "4.0.2",
|
| 1266 |
+
"resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz",
|
| 1267 |
+
"integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==",
|
| 1268 |
+
"dev": true,
|
| 1269 |
+
"license": "Apache-2.0",
|
| 1270 |
+
"dependencies": {
|
| 1271 |
+
"xmlcreate": "^2.0.4"
|
| 1272 |
+
}
|
| 1273 |
+
},
|
| 1274 |
+
"node_modules/jsdoc": {
|
| 1275 |
+
"version": "4.0.4",
|
| 1276 |
+
"resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.4.tgz",
|
| 1277 |
+
"integrity": "sha512-zeFezwyXeG4syyYHbvh1A967IAqq/67yXtXvuL5wnqCkFZe8I0vKfm+EO+YEvLguo6w9CDUbrAXVtJSHh2E8rw==",
|
| 1278 |
+
"dev": true,
|
| 1279 |
+
"license": "Apache-2.0",
|
| 1280 |
+
"dependencies": {
|
| 1281 |
+
"@babel/parser": "^7.20.15",
|
| 1282 |
+
"@jsdoc/salty": "^0.2.1",
|
| 1283 |
+
"@types/markdown-it": "^14.1.1",
|
| 1284 |
+
"bluebird": "^3.7.2",
|
| 1285 |
+
"catharsis": "^0.9.0",
|
| 1286 |
+
"escape-string-regexp": "^2.0.0",
|
| 1287 |
+
"js2xmlparser": "^4.0.2",
|
| 1288 |
+
"klaw": "^3.0.0",
|
| 1289 |
+
"markdown-it": "^14.1.0",
|
| 1290 |
+
"markdown-it-anchor": "^8.6.7",
|
| 1291 |
+
"marked": "^4.0.10",
|
| 1292 |
+
"mkdirp": "^1.0.4",
|
| 1293 |
+
"requizzle": "^0.2.3",
|
| 1294 |
+
"strip-json-comments": "^3.1.0",
|
| 1295 |
+
"underscore": "~1.13.2"
|
| 1296 |
+
},
|
| 1297 |
+
"bin": {
|
| 1298 |
+
"jsdoc": "jsdoc.js"
|
| 1299 |
+
},
|
| 1300 |
+
"engines": {
|
| 1301 |
+
"node": ">=12.0.0"
|
| 1302 |
+
}
|
| 1303 |
+
},
|
| 1304 |
+
"node_modules/jsonwebtoken": {
|
| 1305 |
+
"version": "9.0.2",
|
| 1306 |
+
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz",
|
| 1307 |
+
"integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==",
|
| 1308 |
+
"license": "MIT",
|
| 1309 |
+
"dependencies": {
|
| 1310 |
+
"jws": "^3.2.2",
|
| 1311 |
+
"lodash.includes": "^4.3.0",
|
| 1312 |
+
"lodash.isboolean": "^3.0.3",
|
| 1313 |
+
"lodash.isinteger": "^4.0.4",
|
| 1314 |
+
"lodash.isnumber": "^3.0.3",
|
| 1315 |
+
"lodash.isplainobject": "^4.0.6",
|
| 1316 |
+
"lodash.isstring": "^4.0.1",
|
| 1317 |
+
"lodash.once": "^4.0.0",
|
| 1318 |
+
"ms": "^2.1.1",
|
| 1319 |
+
"semver": "^7.5.4"
|
| 1320 |
+
},
|
| 1321 |
+
"engines": {
|
| 1322 |
+
"node": ">=12",
|
| 1323 |
+
"npm": ">=6"
|
| 1324 |
+
}
|
| 1325 |
+
},
|
| 1326 |
+
"node_modules/jsonwebtoken/node_modules/ms": {
|
| 1327 |
+
"version": "2.1.3",
|
| 1328 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 1329 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 1330 |
+
"license": "MIT"
|
| 1331 |
+
},
|
| 1332 |
+
"node_modules/jwa": {
|
| 1333 |
+
"version": "1.4.1",
|
| 1334 |
+
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
|
| 1335 |
+
"integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
|
| 1336 |
+
"license": "MIT",
|
| 1337 |
+
"dependencies": {
|
| 1338 |
+
"buffer-equal-constant-time": "1.0.1",
|
| 1339 |
+
"ecdsa-sig-formatter": "1.0.11",
|
| 1340 |
+
"safe-buffer": "^5.0.1"
|
| 1341 |
+
}
|
| 1342 |
+
},
|
| 1343 |
+
"node_modules/jws": {
|
| 1344 |
+
"version": "3.2.2",
|
| 1345 |
+
"resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
|
| 1346 |
+
"integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
|
| 1347 |
+
"license": "MIT",
|
| 1348 |
+
"dependencies": {
|
| 1349 |
+
"jwa": "^1.4.1",
|
| 1350 |
+
"safe-buffer": "^5.0.1"
|
| 1351 |
+
}
|
| 1352 |
+
},
|
| 1353 |
+
"node_modules/klaw": {
|
| 1354 |
+
"version": "3.0.0",
|
| 1355 |
+
"resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz",
|
| 1356 |
+
"integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==",
|
| 1357 |
+
"dev": true,
|
| 1358 |
+
"license": "MIT",
|
| 1359 |
+
"dependencies": {
|
| 1360 |
+
"graceful-fs": "^4.1.9"
|
| 1361 |
+
}
|
| 1362 |
+
},
|
| 1363 |
+
"node_modules/levn": {
|
| 1364 |
+
"version": "0.3.0",
|
| 1365 |
+
"resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
|
| 1366 |
+
"integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==",
|
| 1367 |
+
"dev": true,
|
| 1368 |
+
"license": "MIT",
|
| 1369 |
+
"dependencies": {
|
| 1370 |
+
"prelude-ls": "~1.1.2",
|
| 1371 |
+
"type-check": "~0.3.2"
|
| 1372 |
+
},
|
| 1373 |
+
"engines": {
|
| 1374 |
+
"node": ">= 0.8.0"
|
| 1375 |
+
}
|
| 1376 |
+
},
|
| 1377 |
+
"node_modules/linkify-it": {
|
| 1378 |
+
"version": "5.0.0",
|
| 1379 |
+
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz",
|
| 1380 |
+
"integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==",
|
| 1381 |
+
"dev": true,
|
| 1382 |
+
"license": "MIT",
|
| 1383 |
+
"dependencies": {
|
| 1384 |
+
"uc.micro": "^2.0.0"
|
| 1385 |
+
}
|
| 1386 |
+
},
|
| 1387 |
+
"node_modules/lodash": {
|
| 1388 |
+
"version": "4.17.21",
|
| 1389 |
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
| 1390 |
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
| 1391 |
+
"dev": true,
|
| 1392 |
+
"license": "MIT"
|
| 1393 |
+
},
|
| 1394 |
+
"node_modules/lodash.includes": {
|
| 1395 |
+
"version": "4.3.0",
|
| 1396 |
+
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
|
| 1397 |
+
"integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==",
|
| 1398 |
+
"license": "MIT"
|
| 1399 |
+
},
|
| 1400 |
+
"node_modules/lodash.isboolean": {
|
| 1401 |
+
"version": "3.0.3",
|
| 1402 |
+
"resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
|
| 1403 |
+
"integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==",
|
| 1404 |
+
"license": "MIT"
|
| 1405 |
+
},
|
| 1406 |
+
"node_modules/lodash.isinteger": {
|
| 1407 |
+
"version": "4.0.4",
|
| 1408 |
+
"resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
|
| 1409 |
+
"integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==",
|
| 1410 |
+
"license": "MIT"
|
| 1411 |
+
},
|
| 1412 |
+
"node_modules/lodash.isnumber": {
|
| 1413 |
+
"version": "3.0.3",
|
| 1414 |
+
"resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
|
| 1415 |
+
"integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==",
|
| 1416 |
+
"license": "MIT"
|
| 1417 |
+
},
|
| 1418 |
+
"node_modules/lodash.isplainobject": {
|
| 1419 |
+
"version": "4.0.6",
|
| 1420 |
+
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
|
| 1421 |
+
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
|
| 1422 |
+
"license": "MIT"
|
| 1423 |
+
},
|
| 1424 |
+
"node_modules/lodash.isstring": {
|
| 1425 |
+
"version": "4.0.1",
|
| 1426 |
+
"resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
|
| 1427 |
+
"integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==",
|
| 1428 |
+
"license": "MIT"
|
| 1429 |
+
},
|
| 1430 |
+
"node_modules/lodash.once": {
|
| 1431 |
+
"version": "4.1.1",
|
| 1432 |
+
"resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
|
| 1433 |
+
"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==",
|
| 1434 |
+
"license": "MIT"
|
| 1435 |
+
},
|
| 1436 |
+
"node_modules/long": {
|
| 1437 |
+
"version": "5.2.4",
|
| 1438 |
+
"resolved": "https://registry.npmjs.org/long/-/long-5.2.4.tgz",
|
| 1439 |
+
"integrity": "sha512-qtzLbJE8hq7VabR3mISmVGtoXP8KGc2Z/AT8OuqlYD7JTR3oqrgwdjnk07wpj1twXxYmgDXgoKVWUG/fReSzHg==",
|
| 1440 |
+
"license": "Apache-2.0"
|
| 1441 |
+
},
|
| 1442 |
+
"node_modules/markdown-it": {
|
| 1443 |
+
"version": "14.1.0",
|
| 1444 |
+
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz",
|
| 1445 |
+
"integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==",
|
| 1446 |
+
"dev": true,
|
| 1447 |
+
"license": "MIT",
|
| 1448 |
+
"dependencies": {
|
| 1449 |
+
"argparse": "^2.0.1",
|
| 1450 |
+
"entities": "^4.4.0",
|
| 1451 |
+
"linkify-it": "^5.0.0",
|
| 1452 |
+
"mdurl": "^2.0.0",
|
| 1453 |
+
"punycode.js": "^2.3.1",
|
| 1454 |
+
"uc.micro": "^2.1.0"
|
| 1455 |
+
},
|
| 1456 |
+
"bin": {
|
| 1457 |
+
"markdown-it": "bin/markdown-it.mjs"
|
| 1458 |
+
}
|
| 1459 |
+
},
|
| 1460 |
+
"node_modules/markdown-it-anchor": {
|
| 1461 |
+
"version": "8.6.7",
|
| 1462 |
+
"resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz",
|
| 1463 |
+
"integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==",
|
| 1464 |
+
"dev": true,
|
| 1465 |
+
"license": "Unlicense",
|
| 1466 |
+
"peerDependencies": {
|
| 1467 |
+
"@types/markdown-it": "*",
|
| 1468 |
+
"markdown-it": "*"
|
| 1469 |
+
}
|
| 1470 |
+
},
|
| 1471 |
+
"node_modules/marked": {
|
| 1472 |
+
"version": "4.3.0",
|
| 1473 |
+
"resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz",
|
| 1474 |
+
"integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==",
|
| 1475 |
+
"dev": true,
|
| 1476 |
+
"license": "MIT",
|
| 1477 |
+
"bin": {
|
| 1478 |
+
"marked": "bin/marked.js"
|
| 1479 |
+
},
|
| 1480 |
+
"engines": {
|
| 1481 |
+
"node": ">= 12"
|
| 1482 |
+
}
|
| 1483 |
+
},
|
| 1484 |
+
"node_modules/math-intrinsics": {
|
| 1485 |
+
"version": "1.1.0",
|
| 1486 |
+
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
| 1487 |
+
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
| 1488 |
+
"license": "MIT",
|
| 1489 |
+
"engines": {
|
| 1490 |
+
"node": ">= 0.4"
|
| 1491 |
+
}
|
| 1492 |
+
},
|
| 1493 |
+
"node_modules/mdurl": {
|
| 1494 |
+
"version": "2.0.0",
|
| 1495 |
+
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz",
|
| 1496 |
+
"integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==",
|
| 1497 |
+
"dev": true,
|
| 1498 |
+
"license": "MIT"
|
| 1499 |
+
},
|
| 1500 |
+
"node_modules/media-typer": {
|
| 1501 |
+
"version": "0.3.0",
|
| 1502 |
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
| 1503 |
+
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
| 1504 |
+
"license": "MIT",
|
| 1505 |
+
"engines": {
|
| 1506 |
+
"node": ">= 0.6"
|
| 1507 |
+
}
|
| 1508 |
+
},
|
| 1509 |
+
"node_modules/merge-descriptors": {
|
| 1510 |
+
"version": "1.0.3",
|
| 1511 |
+
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
|
| 1512 |
+
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
|
| 1513 |
+
"license": "MIT",
|
| 1514 |
+
"funding": {
|
| 1515 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1516 |
+
}
|
| 1517 |
+
},
|
| 1518 |
+
"node_modules/methods": {
|
| 1519 |
+
"version": "1.1.2",
|
| 1520 |
+
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
| 1521 |
+
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
| 1522 |
+
"license": "MIT",
|
| 1523 |
+
"engines": {
|
| 1524 |
+
"node": ">= 0.6"
|
| 1525 |
+
}
|
| 1526 |
+
},
|
| 1527 |
+
"node_modules/mime": {
|
| 1528 |
+
"version": "1.6.0",
|
| 1529 |
+
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
| 1530 |
+
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
| 1531 |
+
"license": "MIT",
|
| 1532 |
+
"bin": {
|
| 1533 |
+
"mime": "cli.js"
|
| 1534 |
+
},
|
| 1535 |
+
"engines": {
|
| 1536 |
+
"node": ">=4"
|
| 1537 |
+
}
|
| 1538 |
+
},
|
| 1539 |
+
"node_modules/mime-db": {
|
| 1540 |
+
"version": "1.52.0",
|
| 1541 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
| 1542 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
| 1543 |
+
"license": "MIT",
|
| 1544 |
+
"engines": {
|
| 1545 |
+
"node": ">= 0.6"
|
| 1546 |
+
}
|
| 1547 |
+
},
|
| 1548 |
+
"node_modules/mime-types": {
|
| 1549 |
+
"version": "2.1.35",
|
| 1550 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
| 1551 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
| 1552 |
+
"license": "MIT",
|
| 1553 |
+
"dependencies": {
|
| 1554 |
+
"mime-db": "1.52.0"
|
| 1555 |
+
},
|
| 1556 |
+
"engines": {
|
| 1557 |
+
"node": ">= 0.6"
|
| 1558 |
+
}
|
| 1559 |
+
},
|
| 1560 |
+
"node_modules/minimatch": {
|
| 1561 |
+
"version": "5.1.6",
|
| 1562 |
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
|
| 1563 |
+
"integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
|
| 1564 |
+
"dev": true,
|
| 1565 |
+
"license": "ISC",
|
| 1566 |
+
"dependencies": {
|
| 1567 |
+
"brace-expansion": "^2.0.1"
|
| 1568 |
+
},
|
| 1569 |
+
"engines": {
|
| 1570 |
+
"node": ">=10"
|
| 1571 |
+
}
|
| 1572 |
+
},
|
| 1573 |
+
"node_modules/minimist": {
|
| 1574 |
+
"version": "1.2.8",
|
| 1575 |
+
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
|
| 1576 |
+
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
|
| 1577 |
+
"dev": true,
|
| 1578 |
+
"license": "MIT",
|
| 1579 |
+
"funding": {
|
| 1580 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1581 |
+
}
|
| 1582 |
+
},
|
| 1583 |
+
"node_modules/mkdirp": {
|
| 1584 |
+
"version": "1.0.4",
|
| 1585 |
+
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
|
| 1586 |
+
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
|
| 1587 |
+
"dev": true,
|
| 1588 |
+
"license": "MIT",
|
| 1589 |
+
"bin": {
|
| 1590 |
+
"mkdirp": "bin/cmd.js"
|
| 1591 |
+
},
|
| 1592 |
+
"engines": {
|
| 1593 |
+
"node": ">=10"
|
| 1594 |
+
}
|
| 1595 |
+
},
|
| 1596 |
+
"node_modules/morgan": {
|
| 1597 |
+
"version": "1.10.0",
|
| 1598 |
+
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz",
|
| 1599 |
+
"integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==",
|
| 1600 |
+
"license": "MIT",
|
| 1601 |
+
"dependencies": {
|
| 1602 |
+
"basic-auth": "~2.0.1",
|
| 1603 |
+
"debug": "2.6.9",
|
| 1604 |
+
"depd": "~2.0.0",
|
| 1605 |
+
"on-finished": "~2.3.0",
|
| 1606 |
+
"on-headers": "~1.0.2"
|
| 1607 |
+
},
|
| 1608 |
+
"engines": {
|
| 1609 |
+
"node": ">= 0.8.0"
|
| 1610 |
+
}
|
| 1611 |
+
},
|
| 1612 |
+
"node_modules/morgan/node_modules/on-finished": {
|
| 1613 |
+
"version": "2.3.0",
|
| 1614 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
|
| 1615 |
+
"integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==",
|
| 1616 |
+
"license": "MIT",
|
| 1617 |
+
"dependencies": {
|
| 1618 |
+
"ee-first": "1.1.1"
|
| 1619 |
+
},
|
| 1620 |
+
"engines": {
|
| 1621 |
+
"node": ">= 0.8"
|
| 1622 |
+
}
|
| 1623 |
+
},
|
| 1624 |
+
"node_modules/ms": {
|
| 1625 |
+
"version": "2.0.0",
|
| 1626 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
| 1627 |
+
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
| 1628 |
+
"license": "MIT"
|
| 1629 |
+
},
|
| 1630 |
+
"node_modules/negotiator": {
|
| 1631 |
+
"version": "0.6.3",
|
| 1632 |
+
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
| 1633 |
+
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
| 1634 |
+
"license": "MIT",
|
| 1635 |
+
"engines": {
|
| 1636 |
+
"node": ">= 0.6"
|
| 1637 |
+
}
|
| 1638 |
+
},
|
| 1639 |
+
"node_modules/node-cron": {
|
| 1640 |
+
"version": "3.0.3",
|
| 1641 |
+
"resolved": "https://registry.npmjs.org/node-cron/-/node-cron-3.0.3.tgz",
|
| 1642 |
+
"integrity": "sha512-dOal67//nohNgYWb+nWmg5dkFdIwDm8EpeGYMekPMrngV3637lqnX0lbUcCtgibHTz6SEz7DAIjKvKDFYCnO1A==",
|
| 1643 |
+
"license": "ISC",
|
| 1644 |
+
"dependencies": {
|
| 1645 |
+
"uuid": "8.3.2"
|
| 1646 |
+
},
|
| 1647 |
+
"engines": {
|
| 1648 |
+
"node": ">=6.0.0"
|
| 1649 |
+
}
|
| 1650 |
+
},
|
| 1651 |
+
"node_modules/node-cron/node_modules/uuid": {
|
| 1652 |
+
"version": "8.3.2",
|
| 1653 |
+
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
| 1654 |
+
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
| 1655 |
+
"license": "MIT",
|
| 1656 |
+
"bin": {
|
| 1657 |
+
"uuid": "dist/bin/uuid"
|
| 1658 |
+
}
|
| 1659 |
+
},
|
| 1660 |
+
"node_modules/node-fetch": {
|
| 1661 |
+
"version": "2.7.0",
|
| 1662 |
+
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
|
| 1663 |
+
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
|
| 1664 |
+
"license": "MIT",
|
| 1665 |
+
"dependencies": {
|
| 1666 |
+
"whatwg-url": "^5.0.0"
|
| 1667 |
+
},
|
| 1668 |
+
"engines": {
|
| 1669 |
+
"node": "4.x || >=6.0.0"
|
| 1670 |
+
},
|
| 1671 |
+
"peerDependencies": {
|
| 1672 |
+
"encoding": "^0.1.0"
|
| 1673 |
+
},
|
| 1674 |
+
"peerDependenciesMeta": {
|
| 1675 |
+
"encoding": {
|
| 1676 |
+
"optional": true
|
| 1677 |
+
}
|
| 1678 |
+
}
|
| 1679 |
+
},
|
| 1680 |
+
"node_modules/object-inspect": {
|
| 1681 |
+
"version": "1.13.3",
|
| 1682 |
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz",
|
| 1683 |
+
"integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==",
|
| 1684 |
+
"license": "MIT",
|
| 1685 |
+
"engines": {
|
| 1686 |
+
"node": ">= 0.4"
|
| 1687 |
+
},
|
| 1688 |
+
"funding": {
|
| 1689 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1690 |
+
}
|
| 1691 |
+
},
|
| 1692 |
+
"node_modules/on-finished": {
|
| 1693 |
+
"version": "2.4.1",
|
| 1694 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
| 1695 |
+
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
| 1696 |
+
"license": "MIT",
|
| 1697 |
+
"dependencies": {
|
| 1698 |
+
"ee-first": "1.1.1"
|
| 1699 |
+
},
|
| 1700 |
+
"engines": {
|
| 1701 |
+
"node": ">= 0.8"
|
| 1702 |
+
}
|
| 1703 |
+
},
|
| 1704 |
+
"node_modules/on-headers": {
|
| 1705 |
+
"version": "1.0.2",
|
| 1706 |
+
"resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
|
| 1707 |
+
"integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==",
|
| 1708 |
+
"license": "MIT",
|
| 1709 |
+
"engines": {
|
| 1710 |
+
"node": ">= 0.8"
|
| 1711 |
+
}
|
| 1712 |
+
},
|
| 1713 |
+
"node_modules/once": {
|
| 1714 |
+
"version": "1.4.0",
|
| 1715 |
+
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
| 1716 |
+
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
| 1717 |
+
"license": "ISC",
|
| 1718 |
+
"dependencies": {
|
| 1719 |
+
"wrappy": "1"
|
| 1720 |
+
}
|
| 1721 |
+
},
|
| 1722 |
+
"node_modules/optionator": {
|
| 1723 |
+
"version": "0.8.3",
|
| 1724 |
+
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz",
|
| 1725 |
+
"integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==",
|
| 1726 |
+
"dev": true,
|
| 1727 |
+
"license": "MIT",
|
| 1728 |
+
"dependencies": {
|
| 1729 |
+
"deep-is": "~0.1.3",
|
| 1730 |
+
"fast-levenshtein": "~2.0.6",
|
| 1731 |
+
"levn": "~0.3.0",
|
| 1732 |
+
"prelude-ls": "~1.1.2",
|
| 1733 |
+
"type-check": "~0.3.2",
|
| 1734 |
+
"word-wrap": "~1.2.3"
|
| 1735 |
+
},
|
| 1736 |
+
"engines": {
|
| 1737 |
+
"node": ">= 0.8.0"
|
| 1738 |
+
}
|
| 1739 |
+
},
|
| 1740 |
+
"node_modules/parseurl": {
|
| 1741 |
+
"version": "1.3.3",
|
| 1742 |
+
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
| 1743 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
| 1744 |
+
"license": "MIT",
|
| 1745 |
+
"engines": {
|
| 1746 |
+
"node": ">= 0.8"
|
| 1747 |
+
}
|
| 1748 |
+
},
|
| 1749 |
+
"node_modules/path-to-regexp": {
|
| 1750 |
+
"version": "0.1.12",
|
| 1751 |
+
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
| 1752 |
+
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
|
| 1753 |
+
"license": "MIT"
|
| 1754 |
+
},
|
| 1755 |
+
"node_modules/prelude-ls": {
|
| 1756 |
+
"version": "1.1.2",
|
| 1757 |
+
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
|
| 1758 |
+
"integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==",
|
| 1759 |
+
"dev": true,
|
| 1760 |
+
"engines": {
|
| 1761 |
+
"node": ">= 0.8.0"
|
| 1762 |
+
}
|
| 1763 |
+
},
|
| 1764 |
+
"node_modules/protobufjs": {
|
| 1765 |
+
"version": "7.4.0",
|
| 1766 |
+
"resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz",
|
| 1767 |
+
"integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==",
|
| 1768 |
+
"hasInstallScript": true,
|
| 1769 |
+
"license": "BSD-3-Clause",
|
| 1770 |
+
"dependencies": {
|
| 1771 |
+
"@protobufjs/aspromise": "^1.1.2",
|
| 1772 |
+
"@protobufjs/base64": "^1.1.2",
|
| 1773 |
+
"@protobufjs/codegen": "^2.0.4",
|
| 1774 |
+
"@protobufjs/eventemitter": "^1.1.0",
|
| 1775 |
+
"@protobufjs/fetch": "^1.1.0",
|
| 1776 |
+
"@protobufjs/float": "^1.0.2",
|
| 1777 |
+
"@protobufjs/inquire": "^1.1.0",
|
| 1778 |
+
"@protobufjs/path": "^1.1.2",
|
| 1779 |
+
"@protobufjs/pool": "^1.1.0",
|
| 1780 |
+
"@protobufjs/utf8": "^1.1.0",
|
| 1781 |
+
"@types/node": ">=13.7.0",
|
| 1782 |
+
"long": "^5.0.0"
|
| 1783 |
+
},
|
| 1784 |
+
"engines": {
|
| 1785 |
+
"node": ">=12.0.0"
|
| 1786 |
+
}
|
| 1787 |
+
},
|
| 1788 |
+
"node_modules/protobufjs-cli": {
|
| 1789 |
+
"version": "1.1.3",
|
| 1790 |
+
"resolved": "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.3.tgz",
|
| 1791 |
+
"integrity": "sha512-MqD10lqF+FMsOayFiNOdOGNlXc4iKDCf0ZQPkPR+gizYh9gqUeGTWulABUCdI+N67w5RfJ6xhgX4J8pa8qmMXQ==",
|
| 1792 |
+
"dev": true,
|
| 1793 |
+
"license": "BSD-3-Clause",
|
| 1794 |
+
"dependencies": {
|
| 1795 |
+
"chalk": "^4.0.0",
|
| 1796 |
+
"escodegen": "^1.13.0",
|
| 1797 |
+
"espree": "^9.0.0",
|
| 1798 |
+
"estraverse": "^5.1.0",
|
| 1799 |
+
"glob": "^8.0.0",
|
| 1800 |
+
"jsdoc": "^4.0.0",
|
| 1801 |
+
"minimist": "^1.2.0",
|
| 1802 |
+
"semver": "^7.1.2",
|
| 1803 |
+
"tmp": "^0.2.1",
|
| 1804 |
+
"uglify-js": "^3.7.7"
|
| 1805 |
+
},
|
| 1806 |
+
"bin": {
|
| 1807 |
+
"pbjs": "bin/pbjs",
|
| 1808 |
+
"pbts": "bin/pbts"
|
| 1809 |
+
},
|
| 1810 |
+
"engines": {
|
| 1811 |
+
"node": ">=12.0.0"
|
| 1812 |
+
},
|
| 1813 |
+
"peerDependencies": {
|
| 1814 |
+
"protobufjs": "^7.0.0"
|
| 1815 |
+
}
|
| 1816 |
+
},
|
| 1817 |
+
"node_modules/proxy-addr": {
|
| 1818 |
+
"version": "2.0.7",
|
| 1819 |
+
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
| 1820 |
+
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
| 1821 |
+
"license": "MIT",
|
| 1822 |
+
"dependencies": {
|
| 1823 |
+
"forwarded": "0.2.0",
|
| 1824 |
+
"ipaddr.js": "1.9.1"
|
| 1825 |
+
},
|
| 1826 |
+
"engines": {
|
| 1827 |
+
"node": ">= 0.10"
|
| 1828 |
+
}
|
| 1829 |
+
},
|
| 1830 |
+
"node_modules/proxy-from-env": {
|
| 1831 |
+
"version": "1.1.0",
|
| 1832 |
+
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
| 1833 |
+
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
| 1834 |
+
"license": "MIT"
|
| 1835 |
+
},
|
| 1836 |
+
"node_modules/punycode.js": {
|
| 1837 |
+
"version": "2.3.1",
|
| 1838 |
+
"resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
|
| 1839 |
+
"integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==",
|
| 1840 |
+
"dev": true,
|
| 1841 |
+
"license": "MIT",
|
| 1842 |
+
"engines": {
|
| 1843 |
+
"node": ">=6"
|
| 1844 |
+
}
|
| 1845 |
+
},
|
| 1846 |
+
"node_modules/qs": {
|
| 1847 |
+
"version": "6.13.0",
|
| 1848 |
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
|
| 1849 |
+
"integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
|
| 1850 |
+
"license": "BSD-3-Clause",
|
| 1851 |
+
"dependencies": {
|
| 1852 |
+
"side-channel": "^1.0.6"
|
| 1853 |
+
},
|
| 1854 |
+
"engines": {
|
| 1855 |
+
"node": ">=0.6"
|
| 1856 |
+
},
|
| 1857 |
+
"funding": {
|
| 1858 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1859 |
+
}
|
| 1860 |
+
},
|
| 1861 |
+
"node_modules/range-parser": {
|
| 1862 |
+
"version": "1.2.1",
|
| 1863 |
+
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
| 1864 |
+
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
| 1865 |
+
"license": "MIT",
|
| 1866 |
+
"engines": {
|
| 1867 |
+
"node": ">= 0.6"
|
| 1868 |
+
}
|
| 1869 |
+
},
|
| 1870 |
+
"node_modules/raw-body": {
|
| 1871 |
+
"version": "2.5.2",
|
| 1872 |
+
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
|
| 1873 |
+
"integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
|
| 1874 |
+
"license": "MIT",
|
| 1875 |
+
"dependencies": {
|
| 1876 |
+
"bytes": "3.1.2",
|
| 1877 |
+
"http-errors": "2.0.0",
|
| 1878 |
+
"iconv-lite": "0.4.24",
|
| 1879 |
+
"unpipe": "1.0.0"
|
| 1880 |
+
},
|
| 1881 |
+
"engines": {
|
| 1882 |
+
"node": ">= 0.8"
|
| 1883 |
+
}
|
| 1884 |
+
},
|
| 1885 |
+
"node_modules/requizzle": {
|
| 1886 |
+
"version": "0.2.4",
|
| 1887 |
+
"resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz",
|
| 1888 |
+
"integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==",
|
| 1889 |
+
"dev": true,
|
| 1890 |
+
"license": "MIT",
|
| 1891 |
+
"dependencies": {
|
| 1892 |
+
"lodash": "^4.17.21"
|
| 1893 |
+
}
|
| 1894 |
+
},
|
| 1895 |
+
"node_modules/safe-buffer": {
|
| 1896 |
+
"version": "5.2.1",
|
| 1897 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
| 1898 |
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
| 1899 |
+
"funding": [
|
| 1900 |
+
{
|
| 1901 |
+
"type": "github",
|
| 1902 |
+
"url": "https://github.com/sponsors/feross"
|
| 1903 |
+
},
|
| 1904 |
+
{
|
| 1905 |
+
"type": "patreon",
|
| 1906 |
+
"url": "https://www.patreon.com/feross"
|
| 1907 |
+
},
|
| 1908 |
+
{
|
| 1909 |
+
"type": "consulting",
|
| 1910 |
+
"url": "https://feross.org/support"
|
| 1911 |
+
}
|
| 1912 |
+
],
|
| 1913 |
+
"license": "MIT"
|
| 1914 |
+
},
|
| 1915 |
+
"node_modules/safer-buffer": {
|
| 1916 |
+
"version": "2.1.2",
|
| 1917 |
+
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
| 1918 |
+
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
| 1919 |
+
"license": "MIT"
|
| 1920 |
+
},
|
| 1921 |
+
"node_modules/semver": {
|
| 1922 |
+
"version": "7.7.0",
|
| 1923 |
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.0.tgz",
|
| 1924 |
+
"integrity": "sha512-DrfFnPzblFmNrIZzg5RzHegbiRWg7KMR7btwi2yjHwx06zsUbO5g613sVwEV7FTwmzJu+Io0lJe2GJ3LxqpvBQ==",
|
| 1925 |
+
"license": "ISC",
|
| 1926 |
+
"bin": {
|
| 1927 |
+
"semver": "bin/semver.js"
|
| 1928 |
+
},
|
| 1929 |
+
"engines": {
|
| 1930 |
+
"node": ">=10"
|
| 1931 |
+
}
|
| 1932 |
+
},
|
| 1933 |
+
"node_modules/send": {
|
| 1934 |
+
"version": "0.19.0",
|
| 1935 |
+
"resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
|
| 1936 |
+
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
|
| 1937 |
+
"license": "MIT",
|
| 1938 |
+
"dependencies": {
|
| 1939 |
+
"debug": "2.6.9",
|
| 1940 |
+
"depd": "2.0.0",
|
| 1941 |
+
"destroy": "1.2.0",
|
| 1942 |
+
"encodeurl": "~1.0.2",
|
| 1943 |
+
"escape-html": "~1.0.3",
|
| 1944 |
+
"etag": "~1.8.1",
|
| 1945 |
+
"fresh": "0.5.2",
|
| 1946 |
+
"http-errors": "2.0.0",
|
| 1947 |
+
"mime": "1.6.0",
|
| 1948 |
+
"ms": "2.1.3",
|
| 1949 |
+
"on-finished": "2.4.1",
|
| 1950 |
+
"range-parser": "~1.2.1",
|
| 1951 |
+
"statuses": "2.0.1"
|
| 1952 |
+
},
|
| 1953 |
+
"engines": {
|
| 1954 |
+
"node": ">= 0.8.0"
|
| 1955 |
+
}
|
| 1956 |
+
},
|
| 1957 |
+
"node_modules/send/node_modules/encodeurl": {
|
| 1958 |
+
"version": "1.0.2",
|
| 1959 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
| 1960 |
+
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
| 1961 |
+
"license": "MIT",
|
| 1962 |
+
"engines": {
|
| 1963 |
+
"node": ">= 0.8"
|
| 1964 |
+
}
|
| 1965 |
+
},
|
| 1966 |
+
"node_modules/send/node_modules/ms": {
|
| 1967 |
+
"version": "2.1.3",
|
| 1968 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 1969 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 1970 |
+
"license": "MIT"
|
| 1971 |
+
},
|
| 1972 |
+
"node_modules/serve-static": {
|
| 1973 |
+
"version": "1.16.2",
|
| 1974 |
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
|
| 1975 |
+
"integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
|
| 1976 |
+
"license": "MIT",
|
| 1977 |
+
"dependencies": {
|
| 1978 |
+
"encodeurl": "~2.0.0",
|
| 1979 |
+
"escape-html": "~1.0.3",
|
| 1980 |
+
"parseurl": "~1.3.3",
|
| 1981 |
+
"send": "0.19.0"
|
| 1982 |
+
},
|
| 1983 |
+
"engines": {
|
| 1984 |
+
"node": ">= 0.8.0"
|
| 1985 |
+
}
|
| 1986 |
+
},
|
| 1987 |
+
"node_modules/setprototypeof": {
|
| 1988 |
+
"version": "1.2.0",
|
| 1989 |
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
| 1990 |
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
| 1991 |
+
"license": "ISC"
|
| 1992 |
+
},
|
| 1993 |
+
"node_modules/side-channel": {
|
| 1994 |
+
"version": "1.1.0",
|
| 1995 |
+
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
|
| 1996 |
+
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
|
| 1997 |
+
"license": "MIT",
|
| 1998 |
+
"dependencies": {
|
| 1999 |
+
"es-errors": "^1.3.0",
|
| 2000 |
+
"object-inspect": "^1.13.3",
|
| 2001 |
+
"side-channel-list": "^1.0.0",
|
| 2002 |
+
"side-channel-map": "^1.0.1",
|
| 2003 |
+
"side-channel-weakmap": "^1.0.2"
|
| 2004 |
+
},
|
| 2005 |
+
"engines": {
|
| 2006 |
+
"node": ">= 0.4"
|
| 2007 |
+
},
|
| 2008 |
+
"funding": {
|
| 2009 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 2010 |
+
}
|
| 2011 |
+
},
|
| 2012 |
+
"node_modules/side-channel-list": {
|
| 2013 |
+
"version": "1.0.0",
|
| 2014 |
+
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
|
| 2015 |
+
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
|
| 2016 |
+
"license": "MIT",
|
| 2017 |
+
"dependencies": {
|
| 2018 |
+
"es-errors": "^1.3.0",
|
| 2019 |
+
"object-inspect": "^1.13.3"
|
| 2020 |
+
},
|
| 2021 |
+
"engines": {
|
| 2022 |
+
"node": ">= 0.4"
|
| 2023 |
+
},
|
| 2024 |
+
"funding": {
|
| 2025 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 2026 |
+
}
|
| 2027 |
+
},
|
| 2028 |
+
"node_modules/side-channel-map": {
|
| 2029 |
+
"version": "1.0.1",
|
| 2030 |
+
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
|
| 2031 |
+
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
|
| 2032 |
+
"license": "MIT",
|
| 2033 |
+
"dependencies": {
|
| 2034 |
+
"call-bound": "^1.0.2",
|
| 2035 |
+
"es-errors": "^1.3.0",
|
| 2036 |
+
"get-intrinsic": "^1.2.5",
|
| 2037 |
+
"object-inspect": "^1.13.3"
|
| 2038 |
+
},
|
| 2039 |
+
"engines": {
|
| 2040 |
+
"node": ">= 0.4"
|
| 2041 |
+
},
|
| 2042 |
+
"funding": {
|
| 2043 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 2044 |
+
}
|
| 2045 |
+
},
|
| 2046 |
+
"node_modules/side-channel-weakmap": {
|
| 2047 |
+
"version": "1.0.2",
|
| 2048 |
+
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
|
| 2049 |
+
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
|
| 2050 |
+
"license": "MIT",
|
| 2051 |
+
"dependencies": {
|
| 2052 |
+
"call-bound": "^1.0.2",
|
| 2053 |
+
"es-errors": "^1.3.0",
|
| 2054 |
+
"get-intrinsic": "^1.2.5",
|
| 2055 |
+
"object-inspect": "^1.13.3",
|
| 2056 |
+
"side-channel-map": "^1.0.1"
|
| 2057 |
+
},
|
| 2058 |
+
"engines": {
|
| 2059 |
+
"node": ">= 0.4"
|
| 2060 |
+
},
|
| 2061 |
+
"funding": {
|
| 2062 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 2063 |
+
}
|
| 2064 |
+
},
|
| 2065 |
+
"node_modules/source-map": {
|
| 2066 |
+
"version": "0.6.1",
|
| 2067 |
+
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
| 2068 |
+
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
| 2069 |
+
"dev": true,
|
| 2070 |
+
"license": "BSD-3-Clause",
|
| 2071 |
+
"optional": true,
|
| 2072 |
+
"engines": {
|
| 2073 |
+
"node": ">=0.10.0"
|
| 2074 |
+
}
|
| 2075 |
+
},
|
| 2076 |
+
"node_modules/statuses": {
|
| 2077 |
+
"version": "2.0.1",
|
| 2078 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
| 2079 |
+
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
| 2080 |
+
"license": "MIT",
|
| 2081 |
+
"engines": {
|
| 2082 |
+
"node": ">= 0.8"
|
| 2083 |
+
}
|
| 2084 |
+
},
|
| 2085 |
+
"node_modules/strip-json-comments": {
|
| 2086 |
+
"version": "3.1.1",
|
| 2087 |
+
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
|
| 2088 |
+
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
|
| 2089 |
+
"dev": true,
|
| 2090 |
+
"license": "MIT",
|
| 2091 |
+
"engines": {
|
| 2092 |
+
"node": ">=8"
|
| 2093 |
+
},
|
| 2094 |
+
"funding": {
|
| 2095 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 2096 |
+
}
|
| 2097 |
+
},
|
| 2098 |
+
"node_modules/supports-color": {
|
| 2099 |
+
"version": "7.2.0",
|
| 2100 |
+
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
| 2101 |
+
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
| 2102 |
+
"dev": true,
|
| 2103 |
+
"license": "MIT",
|
| 2104 |
+
"dependencies": {
|
| 2105 |
+
"has-flag": "^4.0.0"
|
| 2106 |
+
},
|
| 2107 |
+
"engines": {
|
| 2108 |
+
"node": ">=8"
|
| 2109 |
+
}
|
| 2110 |
+
},
|
| 2111 |
+
"node_modules/tmp": {
|
| 2112 |
+
"version": "0.2.3",
|
| 2113 |
+
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz",
|
| 2114 |
+
"integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==",
|
| 2115 |
+
"dev": true,
|
| 2116 |
+
"license": "MIT",
|
| 2117 |
+
"engines": {
|
| 2118 |
+
"node": ">=14.14"
|
| 2119 |
+
}
|
| 2120 |
+
},
|
| 2121 |
+
"node_modules/toidentifier": {
|
| 2122 |
+
"version": "1.0.1",
|
| 2123 |
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
| 2124 |
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
| 2125 |
+
"license": "MIT",
|
| 2126 |
+
"engines": {
|
| 2127 |
+
"node": ">=0.6"
|
| 2128 |
+
}
|
| 2129 |
+
},
|
| 2130 |
+
"node_modules/tr46": {
|
| 2131 |
+
"version": "0.0.3",
|
| 2132 |
+
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
| 2133 |
+
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
|
| 2134 |
+
"license": "MIT"
|
| 2135 |
+
},
|
| 2136 |
+
"node_modules/type-check": {
|
| 2137 |
+
"version": "0.3.2",
|
| 2138 |
+
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz",
|
| 2139 |
+
"integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==",
|
| 2140 |
+
"dev": true,
|
| 2141 |
+
"license": "MIT",
|
| 2142 |
+
"dependencies": {
|
| 2143 |
+
"prelude-ls": "~1.1.2"
|
| 2144 |
+
},
|
| 2145 |
+
"engines": {
|
| 2146 |
+
"node": ">= 0.8.0"
|
| 2147 |
+
}
|
| 2148 |
+
},
|
| 2149 |
+
"node_modules/type-is": {
|
| 2150 |
+
"version": "1.6.18",
|
| 2151 |
+
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
| 2152 |
+
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
| 2153 |
+
"license": "MIT",
|
| 2154 |
+
"dependencies": {
|
| 2155 |
+
"media-typer": "0.3.0",
|
| 2156 |
+
"mime-types": "~2.1.24"
|
| 2157 |
+
},
|
| 2158 |
+
"engines": {
|
| 2159 |
+
"node": ">= 0.6"
|
| 2160 |
+
}
|
| 2161 |
+
},
|
| 2162 |
+
"node_modules/uc.micro": {
|
| 2163 |
+
"version": "2.1.0",
|
| 2164 |
+
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz",
|
| 2165 |
+
"integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==",
|
| 2166 |
+
"dev": true,
|
| 2167 |
+
"license": "MIT"
|
| 2168 |
+
},
|
| 2169 |
+
"node_modules/uglify-js": {
|
| 2170 |
+
"version": "3.19.3",
|
| 2171 |
+
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz",
|
| 2172 |
+
"integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==",
|
| 2173 |
+
"dev": true,
|
| 2174 |
+
"license": "BSD-2-Clause",
|
| 2175 |
+
"bin": {
|
| 2176 |
+
"uglifyjs": "bin/uglifyjs"
|
| 2177 |
+
},
|
| 2178 |
+
"engines": {
|
| 2179 |
+
"node": ">=0.8.0"
|
| 2180 |
+
}
|
| 2181 |
+
},
|
| 2182 |
+
"node_modules/underscore": {
|
| 2183 |
+
"version": "1.13.7",
|
| 2184 |
+
"resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.7.tgz",
|
| 2185 |
+
"integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==",
|
| 2186 |
+
"dev": true,
|
| 2187 |
+
"license": "MIT"
|
| 2188 |
+
},
|
| 2189 |
+
"node_modules/undici-types": {
|
| 2190 |
+
"version": "6.20.0",
|
| 2191 |
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
|
| 2192 |
+
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
|
| 2193 |
+
"license": "MIT"
|
| 2194 |
+
},
|
| 2195 |
+
"node_modules/universal-user-agent": {
|
| 2196 |
+
"version": "6.0.1",
|
| 2197 |
+
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz",
|
| 2198 |
+
"integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==",
|
| 2199 |
+
"license": "ISC"
|
| 2200 |
+
},
|
| 2201 |
+
"node_modules/unpipe": {
|
| 2202 |
+
"version": "1.0.0",
|
| 2203 |
+
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
| 2204 |
+
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
| 2205 |
+
"license": "MIT",
|
| 2206 |
+
"engines": {
|
| 2207 |
+
"node": ">= 0.8"
|
| 2208 |
+
}
|
| 2209 |
+
},
|
| 2210 |
+
"node_modules/utils-merge": {
|
| 2211 |
+
"version": "1.0.1",
|
| 2212 |
+
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
| 2213 |
+
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
| 2214 |
+
"license": "MIT",
|
| 2215 |
+
"engines": {
|
| 2216 |
+
"node": ">= 0.4.0"
|
| 2217 |
+
}
|
| 2218 |
+
},
|
| 2219 |
+
"node_modules/uuid": {
|
| 2220 |
+
"version": "11.0.5",
|
| 2221 |
+
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
|
| 2222 |
+
"integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
|
| 2223 |
+
"funding": [
|
| 2224 |
+
"https://github.com/sponsors/broofa",
|
| 2225 |
+
"https://github.com/sponsors/ctavan"
|
| 2226 |
+
],
|
| 2227 |
+
"license": "MIT",
|
| 2228 |
+
"bin": {
|
| 2229 |
+
"uuid": "dist/esm/bin/uuid"
|
| 2230 |
+
}
|
| 2231 |
+
},
|
| 2232 |
+
"node_modules/vary": {
|
| 2233 |
+
"version": "1.1.2",
|
| 2234 |
+
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
| 2235 |
+
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
| 2236 |
+
"license": "MIT",
|
| 2237 |
+
"engines": {
|
| 2238 |
+
"node": ">= 0.8"
|
| 2239 |
+
}
|
| 2240 |
+
},
|
| 2241 |
+
"node_modules/webidl-conversions": {
|
| 2242 |
+
"version": "3.0.1",
|
| 2243 |
+
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
|
| 2244 |
+
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
|
| 2245 |
+
"license": "BSD-2-Clause"
|
| 2246 |
+
},
|
| 2247 |
+
"node_modules/whatwg-url": {
|
| 2248 |
+
"version": "5.0.0",
|
| 2249 |
+
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
|
| 2250 |
+
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
|
| 2251 |
+
"license": "MIT",
|
| 2252 |
+
"dependencies": {
|
| 2253 |
+
"tr46": "~0.0.3",
|
| 2254 |
+
"webidl-conversions": "^3.0.0"
|
| 2255 |
+
}
|
| 2256 |
+
},
|
| 2257 |
+
"node_modules/word-wrap": {
|
| 2258 |
+
"version": "1.2.5",
|
| 2259 |
+
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
|
| 2260 |
+
"integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
|
| 2261 |
+
"dev": true,
|
| 2262 |
+
"license": "MIT",
|
| 2263 |
+
"engines": {
|
| 2264 |
+
"node": ">=0.10.0"
|
| 2265 |
+
}
|
| 2266 |
+
},
|
| 2267 |
+
"node_modules/wrappy": {
|
| 2268 |
+
"version": "1.0.2",
|
| 2269 |
+
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
| 2270 |
+
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
| 2271 |
+
"license": "ISC"
|
| 2272 |
+
},
|
| 2273 |
+
"node_modules/xmlcreate": {
|
| 2274 |
+
"version": "2.0.4",
|
| 2275 |
+
"resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz",
|
| 2276 |
+
"integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==",
|
| 2277 |
+
"dev": true,
|
| 2278 |
+
"license": "Apache-2.0"
|
| 2279 |
+
}
|
| 2280 |
+
}
|
| 2281 |
+
}
|
package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "cursor-to-openai",
|
| 3 |
+
"version": "1.3.0",
|
| 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 |
+
"@octokit/rest": "^20.0.2",
|
| 12 |
+
"adm-zip": "^0.5.16",
|
| 13 |
+
"axios": "^1.6.7",
|
| 14 |
+
"csv-parser": "^3.0.0",
|
| 15 |
+
"dotenv": "^16.4.7",
|
| 16 |
+
"express": "4.21.2",
|
| 17 |
+
"jsonwebtoken": "^9.0.2",
|
| 18 |
+
"morgan": "^1.10.0",
|
| 19 |
+
"node-cron": "^3.0.3",
|
| 20 |
+
"node-fetch": "^2.7.0",
|
| 21 |
+
"protobufjs": "^7.4.0",
|
| 22 |
+
"uuid": "11.0.5"
|
| 23 |
+
},
|
| 24 |
+
"scripts": {
|
| 25 |
+
"proto": "npx pbjs -t static-module -w commonjs -o src/proto/message.js src/proto/message.proto",
|
| 26 |
+
"start": "node src/app.js",
|
| 27 |
+
"setup": "node setup.js",
|
| 28 |
+
"manage-emails": "node manage-emails.js",
|
| 29 |
+
"refresh-cookies": "node auto-refresh-cookies.js",
|
| 30 |
+
"refresh-cookies:force": "node auto-refresh-cookies.js --force",
|
| 31 |
+
"refresh-cookies:api": "node auto-refresh-cookies.js",
|
| 32 |
+
"manage-cookies": "node manage-invalid-cookies.js"
|
| 33 |
+
},
|
| 34 |
+
"devDependencies": {
|
| 35 |
+
"protobufjs-cli": "^1.1.3"
|
| 36 |
+
}
|
| 37 |
+
}
|
project.sh
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/data/data/com.termux/files/usr/bin/bash
|
| 2 |
+
|
| 3 |
+
# 项目管理脚本(数字选择版)
|
| 4 |
+
|
| 5 |
+
echo "请选择操作:"
|
| 6 |
+
echo "1. 更新 cookie"
|
| 7 |
+
echo "2. 启动项目"
|
| 8 |
+
echo "3. 管理邮箱"
|
| 9 |
+
echo "4. 初始化配置"
|
| 10 |
+
echo "5. 更新项目代码"
|
| 11 |
+
echo "6. 备份项目"
|
| 12 |
+
echo "7. 退出"
|
| 13 |
+
|
| 14 |
+
read -p "输入数字 (1-7): " choice
|
| 15 |
+
|
| 16 |
+
case $choice in
|
| 17 |
+
1)
|
| 18 |
+
echo "正在更新 cookie..."
|
| 19 |
+
npm run refresh-cookies
|
| 20 |
+
;;
|
| 21 |
+
2)
|
| 22 |
+
echo "正在启动项目..."
|
| 23 |
+
npm start
|
| 24 |
+
;;
|
| 25 |
+
3)
|
| 26 |
+
echo "正在管理邮箱..."
|
| 27 |
+
npm run manage-emails
|
| 28 |
+
;;
|
| 29 |
+
4)
|
| 30 |
+
echo "正在初始化配置文件..."
|
| 31 |
+
npm run setup
|
| 32 |
+
;;
|
| 33 |
+
5)
|
| 34 |
+
echo "正在更新项目代码..."
|
| 35 |
+
git pull
|
| 36 |
+
;;
|
| 37 |
+
6)
|
| 38 |
+
echo "正在备份项目..."
|
| 39 |
+
DATE=$(date +%Y%m%d_%H%M%S)
|
| 40 |
+
tar -czf "backup_$DATE.tar.gz" .
|
| 41 |
+
echo "备份完成: backup_$DATE.tar.gz"
|
| 42 |
+
;;
|
| 43 |
+
7)
|
| 44 |
+
echo "退出"
|
| 45 |
+
exit 0
|
| 46 |
+
;;
|
| 47 |
+
*)
|
| 48 |
+
echo "错误:请输入 1-7 之间的数字"
|
| 49 |
+
exit 1
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env node
|
| 2 |
+
|
| 3 |
+
const fs = require('fs');
|
| 4 |
+
const path = require('path');
|
| 5 |
+
const readline = require('readline');
|
| 6 |
+
const dotenv = require('dotenv');
|
| 7 |
+
|
| 8 |
+
// 创建交互式命令行界面
|
| 9 |
+
const rl = readline.createInterface({
|
| 10 |
+
input: process.stdin,
|
| 11 |
+
output: process.stdout
|
| 12 |
+
});
|
| 13 |
+
|
| 14 |
+
// 配置模板
|
| 15 |
+
const ENV_TEMPLATE = `# 服务端口
|
| 16 |
+
PORT=3010
|
| 17 |
+
|
| 18 |
+
# 日志格式 (tiny, combined, common, dev, short)
|
| 19 |
+
MORGAN_FORMAT=tiny
|
| 20 |
+
|
| 21 |
+
# API Key与Cookie映射关系 (JSON格式)
|
| 22 |
+
# 格式: {"自定义API Key": "Cookie值"} 或 {"自定义API Key": ["Cookie值1", "Cookie值2"]}
|
| 23 |
+
API_KEYS={API_KEYS_PLACEHOLDER}
|
| 24 |
+
|
| 25 |
+
# 轮询策略 (random 或 round-robin)
|
| 26 |
+
ROTATION_STRATEGY=round-robin
|
| 27 |
+
|
| 28 |
+
# Cursor校验和 (可选)
|
| 29 |
+
# x-cursor-checksum=xxxxxxxx
|
| 30 |
+
|
| 31 |
+
# 自动刷新Cookie设置
|
| 32 |
+
# 是否启用自动刷新Cookie (true 或 false)
|
| 33 |
+
ENABLE_AUTO_REFRESH=true
|
| 34 |
+
|
| 35 |
+
# 自动刷新Cookie的定时规则 (Cron表达式)
|
| 36 |
+
# 默认每6小时执行一次
|
| 37 |
+
REFRESH_CRON=0 */6 * * *
|
| 38 |
+
|
| 39 |
+
# 每个API Key最小Cookie数量
|
| 40 |
+
# 当Cookie数量低于此值时,会自动尝试刷新
|
| 41 |
+
MIN_COOKIE_COUNT=1000
|
| 42 |
+
|
| 43 |
+
# Cookie刷新模式
|
| 44 |
+
# replace: 每次刷新都将现有cookie全部标记为无效并替换成新cookie(默认)
|
| 45 |
+
# append: 保留现有cookie,仅追加新cookie
|
| 46 |
+
COOKIE_REFRESH_MODE=replace
|
| 47 |
+
|
| 48 |
+
# GitHub 仓库信息
|
| 49 |
+
GITHUB_OWNER={GITHUB_OWNER_PLACEHOLDER}
|
| 50 |
+
GITHUB_REPO=Cursor-Register-fix
|
| 51 |
+
|
| 52 |
+
# GitHub Token (用于从GitHub Actions下载Artifact)
|
| 53 |
+
# 需要有repo权限
|
| 54 |
+
GITHUB_TOKEN={GITHUB_TOKEN_PLACEHOLDER}
|
| 55 |
+
|
| 56 |
+
# GitHub Actions 工作流ID
|
| 57 |
+
# 用于触发工作流程
|
| 58 |
+
GITHUB_WORKFLOW_ID=cursor_register.yml
|
| 59 |
+
|
| 60 |
+
# 是否自动触发工作流
|
| 61 |
+
# 设置为true时,会自动触发工作流而不是仅获取最新结果
|
| 62 |
+
TRIGGER_WORKFLOW=true
|
| 63 |
+
|
| 64 |
+
# 工作流参数设置 目前只支持gmail,outlook过于复杂,暂时不支持
|
| 65 |
+
# 注册账号数量
|
| 66 |
+
REGISTER_NUMBER=1
|
| 67 |
+
# 最大并发工作线程数
|
| 68 |
+
REGISTER_MAX_WORKERS=1
|
| 69 |
+
# 邮箱服务器类型 (TempEmail 或 IMAP)
|
| 70 |
+
REGISTER_EMAIL_SERVER=IMAP
|
| 71 |
+
# 是否将账号令牌注入到OneAPI (true 或 false)
|
| 72 |
+
REGISTER_INGEST_TO_ONEAPI=false
|
| 73 |
+
# 是否上传账号信息到Artifact (true 或 false)
|
| 74 |
+
REGISTER_UPLOAD_ARTIFACT=true
|
| 75 |
+
# 是否从config.yaml读取邮箱配置 (true 或 false)
|
| 76 |
+
REGISTER_USE_CONFIG_FILE=false
|
| 77 |
+
# 邮箱配置JSON字符串(仅在REGISTER_USE_CONFIG_FILE=false时有效)
|
| 78 |
+
# 格式例如[{"email":"[email protected]","imap_server":"imap.gmail.com","imap_port":993,"username":"[email protected]","password":"your_app_password"}]
|
| 79 |
+
REGISTER_EMAIL_CONFIGS={EMAIL_CONFIGS_PLACEHOLDER}
|
| 80 |
+
`;
|
| 81 |
+
|
| 82 |
+
// 提示信息
|
| 83 |
+
console.log('===== Cursor-To-OpenAI 环境配置助手 =====');
|
| 84 |
+
console.log('这个脚本将帮助你配置必要的环境变量\n');
|
| 85 |
+
|
| 86 |
+
// 应用密码说明
|
| 87 |
+
function printAppPasswordInstructions() {
|
| 88 |
+
console.log('\n===== 如何创建谷歌应用密码 =====');
|
| 89 |
+
console.log('1. 访问 https://myaccount.google.com/security');
|
| 90 |
+
console.log('2. 在"登录Google"部分,点击"两步验证"');
|
| 91 |
+
console.log(' (如果未启用两步验证,需要先启用)');
|
| 92 |
+
console.log('3. 在页面底部找到"应用密码",点击进入');
|
| 93 |
+
console.log('4. 在"选择应用"下拉菜单中选择"其他(自定义名称)"');
|
| 94 |
+
console.log('5. 输入一个名称,例如"Cursor注册"');
|
| 95 |
+
console.log('6. 点击"生成"');
|
| 96 |
+
console.log('7. 复制生成的16位应用密码(格式如:xxxx xxxx xxxx xxxx)');
|
| 97 |
+
console.log('8. 在下面的提示中输入这个密码');
|
| 98 |
+
console.log('注意: 应用密码只会显示一次,请务必保存好\n');
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
// 从现有.env文件加载配置
|
| 102 |
+
function loadExistingConfig() {
|
| 103 |
+
const envPath = path.join(process.cwd(), '.env');
|
| 104 |
+
let existingConfig = {
|
| 105 |
+
apiKeys: {},
|
| 106 |
+
githubOwner: '',
|
| 107 |
+
githubToken: '',
|
| 108 |
+
emailConfigs: [],
|
| 109 |
+
cookieRefreshMode: 'append'
|
| 110 |
+
};
|
| 111 |
+
|
| 112 |
+
if (fs.existsSync(envPath)) {
|
| 113 |
+
console.log('发现现有的.env配置文件,将加载现有设置作为默认值');
|
| 114 |
+
console.log('提示: 直接按回车将保留现有设置不变\n');
|
| 115 |
+
|
| 116 |
+
try {
|
| 117 |
+
// 加载.env文件
|
| 118 |
+
const envConfig = dotenv.parse(fs.readFileSync(envPath));
|
| 119 |
+
|
| 120 |
+
// 提取API Keys
|
| 121 |
+
if (envConfig.API_KEYS) {
|
| 122 |
+
try {
|
| 123 |
+
existingConfig.apiKeys = JSON.parse(envConfig.API_KEYS);
|
| 124 |
+
} catch (e) {
|
| 125 |
+
console.log('无法解析现有的API Keys配置,将使用默认设置');
|
| 126 |
+
}
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
// 提取GitHub Owner
|
| 130 |
+
if (envConfig.GITHUB_OWNER) {
|
| 131 |
+
existingConfig.githubOwner = envConfig.GITHUB_OWNER;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
// 提取GitHub Token
|
| 135 |
+
if (envConfig.GITHUB_TOKEN) {
|
| 136 |
+
existingConfig.githubToken = envConfig.GITHUB_TOKEN;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
// 提取Email配置
|
| 140 |
+
if (envConfig.REGISTER_EMAIL_CONFIGS) {
|
| 141 |
+
try {
|
| 142 |
+
existingConfig.emailConfigs = JSON.parse(envConfig.REGISTER_EMAIL_CONFIGS);
|
| 143 |
+
} catch (e) {
|
| 144 |
+
console.log('无法解析现有的Email配置,将使用默认设置');
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
// 提取Cookie刷新模式
|
| 149 |
+
if (envConfig.COOKIE_REFRESH_MODE) {
|
| 150 |
+
existingConfig.cookieRefreshMode = envConfig.COOKIE_REFRESH_MODE;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
console.log('成功加载现有配置');
|
| 154 |
+
} catch (error) {
|
| 155 |
+
console.error('加载现有配置时出错:', error.message);
|
| 156 |
+
console.log('将使用默认设置');
|
| 157 |
+
}
|
| 158 |
+
} else {
|
| 159 |
+
console.log('未找到现有的.env配置文件,将创建新的配置文件');
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
return existingConfig;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
// 提示用户输入,带有默认值
|
| 166 |
+
function promptWithDefault(question, defaultValue) {
|
| 167 |
+
return new Promise((resolve) => {
|
| 168 |
+
const defaultText = defaultValue ? ` [${defaultValue}]` : '';
|
| 169 |
+
rl.question(`${question}${defaultText}: `, (answer) => {
|
| 170 |
+
// 如果用户只按了回车,使用默认值
|
| 171 |
+
resolve(answer.trim() || defaultValue || '');
|
| 172 |
+
});
|
| 173 |
+
});
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
// 收集配置信息
|
| 177 |
+
async function collectConfig() {
|
| 178 |
+
// 加载现有配置
|
| 179 |
+
const existingConfig = loadExistingConfig();
|
| 180 |
+
|
| 181 |
+
const config = {
|
| 182 |
+
apiKeys: {},
|
| 183 |
+
githubOwner: '',
|
| 184 |
+
githubToken: '',
|
| 185 |
+
emailConfigs: [],
|
| 186 |
+
cookieRefreshMode: 'replace'
|
| 187 |
+
};
|
| 188 |
+
|
| 189 |
+
// 获取GitHub用户名
|
| 190 |
+
config.githubOwner = await promptWithDefault('请输入你的GitHub用户名', existingConfig.githubOwner);
|
| 191 |
+
|
| 192 |
+
// 获取GitHub Token
|
| 193 |
+
config.githubToken = await promptWithDefault('请输入你的GitHub Token (具有repo权限)', existingConfig.githubToken);
|
| 194 |
+
|
| 195 |
+
// 处理API Keys
|
| 196 |
+
const existingApiKeys = Object.keys(existingConfig.apiKeys);
|
| 197 |
+
if (existingApiKeys.length > 0) {
|
| 198 |
+
console.log('\n现有的API Keys:');
|
| 199 |
+
existingApiKeys.forEach(key => console.log(`- ${key}`));
|
| 200 |
+
|
| 201 |
+
const keepExistingApiKeys = await promptWithDefault('是否保留现有的API Keys? (y/n)', 'y');
|
| 202 |
+
if (keepExistingApiKeys.toLowerCase() === 'y') {
|
| 203 |
+
config.apiKeys = { ...existingConfig.apiKeys };
|
| 204 |
+
}
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
// 询问是否添加新的API Key
|
| 208 |
+
const addNewApiKey = await promptWithDefault('是否添加新的API Key? (y/n)', existingApiKeys.length === 0 ? 'y' : 'n');
|
| 209 |
+
if (addNewApiKey.toLowerCase() === 'y') {
|
| 210 |
+
const apiKey = await promptWithDefault('请输入自定义的API Key (不含sk-前缀,将自动添加)', '');
|
| 211 |
+
if (apiKey) {
|
| 212 |
+
const fullApiKey = apiKey.startsWith('sk-') ? apiKey : `sk-${apiKey}`;
|
| 213 |
+
config.apiKeys[fullApiKey] = [];
|
| 214 |
+
}
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
// 询问Cookie刷新模式
|
| 218 |
+
const refreshModePrompt = `选择Cookie刷新模式 [append/replace]`;
|
| 219 |
+
const defaultRefreshMode = existingConfig.cookieRefreshMode || 'replace';
|
| 220 |
+
config.cookieRefreshMode = await promptWithDefault(refreshModePrompt, defaultRefreshMode);
|
| 221 |
+
|
| 222 |
+
// 解释所选的刷新模式
|
| 223 |
+
if (config.cookieRefreshMode.toLowerCase() === 'replace') {
|
| 224 |
+
config.cookieRefreshMode = 'replace';
|
| 225 |
+
console.log('已选择替换模式: 每次刷新都将现有cookie全部标记为无效并替换成新cookie');
|
| 226 |
+
} else {
|
| 227 |
+
config.cookieRefreshMode = 'append';
|
| 228 |
+
console.log('已选择追加模式: 保留现有cookie,仅追加新cookie');
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
// 处理Email配置
|
| 232 |
+
if (existingConfig.emailConfigs.length > 0) {
|
| 233 |
+
console.log('\n现有的Gmail账号:');
|
| 234 |
+
existingConfig.emailConfigs.forEach((emailConfig, index) => {
|
| 235 |
+
console.log(`- ${index + 1}: ${emailConfig.email}`);
|
| 236 |
+
});
|
| 237 |
+
|
| 238 |
+
const keepExistingEmails = await promptWithDefault('是否保留现有的Gmail账号? (y/n)', 'y');
|
| 239 |
+
if (keepExistingEmails.toLowerCase() === 'y') {
|
| 240 |
+
config.emailConfigs = [...existingConfig.emailConfigs];
|
| 241 |
+
}
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
// 询问是否添加新的Gmail账号
|
| 245 |
+
const addNewGmail = await promptWithDefault('是否添加新的Gmail账号? (y/n)', existingConfig.emailConfigs.length === 0 ? 'y' : 'n');
|
| 246 |
+
if (addNewGmail.toLowerCase() === 'y') {
|
| 247 |
+
printAppPasswordInstructions();
|
| 248 |
+
await askForGmailAccount(config);
|
| 249 |
+
} else if (config.emailConfigs.length === 0 && existingConfig.emailConfigs.length === 0) {
|
| 250 |
+
console.log('\n⚠️ 警告: 未添加Gmail账号,自动刷新功能可能无法正常工作');
|
| 251 |
+
console.log('你可以稍后在.env文件中手动配置REGISTER_EMAIL_CONFIGS\n');
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
return config;
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
// 询问Gmail账号
|
| 258 |
+
async function askForGmailAccount(config) {
|
| 259 |
+
const addGmail = await promptWithDefault('\n是否添加Gmail账号用于注册? (y/n)', 'y');
|
| 260 |
+
|
| 261 |
+
if (addGmail.toLowerCase() === 'y') {
|
| 262 |
+
const email = await promptWithDefault('请输入Gmail地址', '');
|
| 263 |
+
const password = await promptWithDefault('请输入Gmail的应用密码 (不是邮箱密码)', '');
|
| 264 |
+
|
| 265 |
+
if (email && password) {
|
| 266 |
+
// 添加Email配置
|
| 267 |
+
config.emailConfigs.push({
|
| 268 |
+
email: email,
|
| 269 |
+
imap_server: "imap.gmail.com",
|
| 270 |
+
imap_port: 993,
|
| 271 |
+
username: email,
|
| 272 |
+
password: password
|
| 273 |
+
});
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
const continueAnswer = await promptWithDefault('是否继续添加另一个Gmail账号? (y/n)', 'n');
|
| 277 |
+
if (continueAnswer.toLowerCase() === 'y') {
|
| 278 |
+
await askForGmailAccount(config);
|
| 279 |
+
}
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
return config;
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
// 生成配置文件
|
| 286 |
+
function generateEnvFile(config) {
|
| 287 |
+
try {
|
| 288 |
+
// 准备API Keys
|
| 289 |
+
const apiKeysJson = JSON.stringify(config.apiKeys);
|
| 290 |
+
|
| 291 |
+
// 准备邮箱配置
|
| 292 |
+
const emailConfigsJson = JSON.stringify(config.emailConfigs);
|
| 293 |
+
|
| 294 |
+
// 替换模板中的占位符
|
| 295 |
+
let envContent = ENV_TEMPLATE
|
| 296 |
+
.replace('{API_KEYS_PLACEHOLDER}', apiKeysJson)
|
| 297 |
+
.replace('{GITHUB_OWNER_PLACEHOLDER}', config.githubOwner)
|
| 298 |
+
.replace('{GITHUB_TOKEN_PLACEHOLDER}', config.githubToken)
|
| 299 |
+
.replace('{EMAIL_CONFIGS_PLACEHOLDER}', emailConfigsJson);
|
| 300 |
+
|
| 301 |
+
// 更新Cookie刷新模式
|
| 302 |
+
envContent = envContent.replace('COOKIE_REFRESH_MODE=append', `COOKIE_REFRESH_MODE=${config.cookieRefreshMode}`);
|
| 303 |
+
|
| 304 |
+
// 写入.env文件
|
| 305 |
+
const envPath = path.join(process.cwd(), '.env');
|
| 306 |
+
|
| 307 |
+
// 检查是否存在备份文件
|
| 308 |
+
const backupPath = path.join(process.cwd(), '.env.backup');
|
| 309 |
+
if (fs.existsSync(envPath)) {
|
| 310 |
+
// 创建备份
|
| 311 |
+
fs.copyFileSync(envPath, backupPath);
|
| 312 |
+
console.log(`\n✅ 已创建原配置文件备份: ${backupPath}`);
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
fs.writeFileSync(envPath, envContent, 'utf8');
|
| 316 |
+
console.log(`\n✅ 配置文件已生成: ${envPath}`);
|
| 317 |
+
|
| 318 |
+
// 检查data目录
|
| 319 |
+
const dataDir = path.join(process.cwd(), 'data');
|
| 320 |
+
if (!fs.existsSync(dataDir)) {
|
| 321 |
+
fs.mkdirSync(dataDir, { recursive: true });
|
| 322 |
+
console.log(`✅ 创建数据目录: ${dataDir}`);
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
return true;
|
| 326 |
+
} catch (error) {
|
| 327 |
+
console.error('\n❌ 生成配置文件时出错:', error.message);
|
| 328 |
+
return false;
|
| 329 |
+
}
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
// 主函数
|
| 333 |
+
async function main() {
|
| 334 |
+
try {
|
| 335 |
+
const config = await collectConfig();
|
| 336 |
+
|
| 337 |
+
if (generateEnvFile(config)) {
|
| 338 |
+
console.log('\n===== 配置完成 =====');
|
| 339 |
+
console.log('你可以使用以下命令启动服务:');
|
| 340 |
+
console.log(' npm start');
|
| 341 |
+
console.log('\n如需手动获取cookie执行:');
|
| 342 |
+
console.log(' npm run refresh-cookies');
|
| 343 |
+
|
| 344 |
+
// 根据配置的刷新模式提供提示
|
| 345 |
+
console.log(`\n当前Cookie刷新模式为: ${config.cookieRefreshMode}`);
|
| 346 |
+
if (config.cookieRefreshMode === 'replace') {
|
| 347 |
+
console.log('每次刷新都会将现有cookie全部标记为无效并替换成新cookie');
|
| 348 |
+
} else {
|
| 349 |
+
console.log('刷新时会保留现有cookie,仅追加新cookie');
|
| 350 |
+
}
|
| 351 |
+
console.log('你可以在.env文件中修改COOKIE_REFRESH_MODE设置');
|
| 352 |
+
}
|
| 353 |
+
} catch (error) {
|
| 354 |
+
console.error('\n❌ 配置过程中出错:', error.message);
|
| 355 |
+
} finally {
|
| 356 |
+
rl.close();
|
| 357 |
+
}
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
// 运行主函数
|
| 361 |
+
main();
|
test-api.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const fetch = require('node-fetch');
|
| 2 |
+
|
| 3 |
+
async function testApiKeys() {
|
| 4 |
+
try {
|
| 5 |
+
console.log('测试获取API Keys...');
|
| 6 |
+
const response = await fetch('http://localhost:3010/v1/api-keys');
|
| 7 |
+
|
| 8 |
+
console.log('响应状态:', response.status);
|
| 9 |
+
|
| 10 |
+
if (!response.ok) {
|
| 11 |
+
throw new Error(`HTTP错误: ${response.status} ${response.statusText}`);
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
const data = await response.json();
|
| 15 |
+
console.log('获取到的数据:', data);
|
| 16 |
+
} catch (error) {
|
| 17 |
+
console.error('测试失败:', error);
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
testApiKeys();
|
test-get-cookies.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const fetch = require('node-fetch');
|
| 2 |
+
|
| 3 |
+
async function testGetCookies() {
|
| 4 |
+
try {
|
| 5 |
+
// 首先添加一个测试API Key
|
| 6 |
+
console.log('添加测试API Key...');
|
| 7 |
+
await fetch('http://localhost:3010/v1/api-keys', {
|
| 8 |
+
method: 'POST',
|
| 9 |
+
headers: {
|
| 10 |
+
'Content-Type': 'application/json',
|
| 11 |
+
},
|
| 12 |
+
body: JSON.stringify({
|
| 13 |
+
apiKey: 'test-key-for-cookies',
|
| 14 |
+
cookieValues: ['test-cookie-1', 'test-cookie-2'],
|
| 15 |
+
}),
|
| 16 |
+
});
|
| 17 |
+
|
| 18 |
+
// 然后获取这个API Key的Cookie值
|
| 19 |
+
console.log('\n测试获取特定API Key的Cookie值...');
|
| 20 |
+
const response = await fetch('http://localhost:3010/v1/api-keys/test-key-for-cookies/cookies');
|
| 21 |
+
|
| 22 |
+
console.log('响应状态:', response.status);
|
| 23 |
+
|
| 24 |
+
if (!response.ok) {
|
| 25 |
+
throw new Error(`HTTP错误: ${response.status} ${response.statusText}`);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
const data = await response.json();
|
| 29 |
+
console.log('获取到的数据:', data);
|
| 30 |
+
} catch (error) {
|
| 31 |
+
console.error('测试失败:', error);
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
testGetCookies();
|