first
Showing
.dockerignore
0 → 100644
.eslintignore
0 → 100644
.eslintrc.js
0 → 100644
.gitignore
0 → 100644
.gitlab-ci.yml
0 → 100644
.npmignore
0 → 100644
.prettierrc
0 → 100644
LICENSE
0 → 100644
dev/extras.tsx
0 → 100644
dev/index.tsx
0 → 100644
install-npm.sh
0 → 100755
package-lock.json
0 → 100644
This diff is collapsed.
package.json
0 → 100644
| { | |||
| "name": "koishi-plugin-chatgpt-api", | |||
| "description": "ChatGPT API 插件,使用官方 API。", | |||
| "version": "1.0.0", | |||
| "main": "dist/index.js", | |||
| "types": "dist/src/index.d.ts", | |||
| "scripts": { | |||
| "lint": "eslint --fix .", | |||
| "build": "webpack", | |||
| "start": "ts-node ./dev", | |||
| "test": "jest --passWithNoTests" | |||
| }, | |||
| "repository": { | |||
| "type": "git", | |||
| "url": "https://code.mycard.moe/3rdeye/koishi-plugin-chatgpt-api.git" | |||
| }, | |||
| "author": "Nanahira <nanahira@momobako.com>", | |||
| "license": "MIT", | |||
| "keywords": [ | |||
| "Koishi.js", | |||
| "qqbot", | |||
| "cqhttp", | |||
| "onebot" | |||
| ], | |||
| "bugs": { | |||
| "url": "https://code.mycard.moe/3rdeye/koishi-plugin-chatgpt-api/issues" | |||
| }, | |||
| "homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-chatgpt-api", | |||
| "jest": { | |||
| "moduleFileExtensions": [ | |||
| "js", | |||
| "json", | |||
| "ts" | |||
| ], | |||
| "rootDir": "tests", | |||
| "testRegex": ".*\\.spec\\.ts$", | |||
| "transform": { | |||
| "^.+\\.(t|j)s$": "ts-jest" | |||
| }, | |||
| "collectCoverageFrom": [ | |||
| "**/*.(t|j)s" | |||
| ], | |||
| "coverageDirectory": "../coverage", | |||
| "testEnvironment": "node" | |||
| }, | |||
| "dependencies": { | |||
| "@koishijs/cache": "^0.1.3", | |||
| "chatgpt": "^4.2.0", | |||
| "koishi-thirdeye": "^11.1.23", | |||
| "marked": "^4.2.12", | |||
| "node-fetch": "^3.3.0" | |||
| }, | |||
| "peerDependencies": { | |||
| "koishi": "^4.11.5" | |||
| }, | |||
| "devDependencies": { | |||
| "@koishijs/plugin-console": "^5.2.3", | |||
| "@koishijs/plugin-database-memory": "^2.3.0", | |||
| "@koishijs/plugin-help": "^2.0.2", | |||
| "@koishijs/plugin-sandbox": "^2.6.1", | |||
| "@types/jest": "^29.4.0", | |||
| "@types/marked": "^4.0.8", | |||
| "@types/node": "^18.13.0", | |||
| "@typescript-eslint/eslint-plugin": "^5.51.0", | |||
| "@typescript-eslint/parser": "^5.51.0", | |||
| "eslint": "8.22.0", | |||
| "eslint-config-prettier": "^8.6.0", | |||
| "eslint-plugin-prettier": "^4.2.1", | |||
| "jest": "^29.4.2", | |||
| "koishi-plugin-cache-aragami": "^2.6.0", | |||
| "prettier": "^2.8.4", | |||
| "raw-loader": "^4.0.2", | |||
| "ts-jest": "^29.0.5", | |||
| "ts-loader": "^9.4.2", | |||
| "ts-node": "^10.9.1", | |||
| "typescript": "^4.9.5", | |||
| "webpack": "^5.75.0", | |||
| "webpack-cli": "^5.0.1", | |||
| "ws": "^8.12.0" | |||
| }, | |||
| "koishi": { | |||
| "service": { | |||
| "required": [ | |||
| "cache" | |||
| ] | |||
| } | |||
| } | |||
| } |
src/config.tsx
0 → 100644
src/index.tsx
0 → 100644
src/transform.ts
0 → 100644
tests/sample.spec.ts
0 → 100644
tsconfig.json
0 → 100644
webpack.config.js
0 → 100644
Please register or sign in to comment