Skip to content

Commit

Permalink
feat(router): support @koishijs/plugin-router-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Nov 6, 2023
1 parent e20587e commit 08cf837
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 4 deletions.
2 changes: 2 additions & 0 deletions plugins/router-proxy/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
tsconfig.tsbuildinfo
47 changes: 47 additions & 0 deletions plugins/router-proxy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@koishijs/plugin-router-proxy",
"description": "Proxy service for Koishi",
"version": "1.0.0",
"main": "lib/index.js",
"module": "lib/index.mjs",
"typings": "lib/index.d.ts",
"files": [
"lib",
"src"
],
"author": "Shigma <shigma10826@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/satorijs/satori.git",
"directory": "packages/proxy"
},
"bugs": {
"url": "https://github.com/satorijs/satori/issues"
},
"homepage": "https://koishi.chat/plugins/develop/proxy.html",
"keywords": [
"bot",
"adapter",
"protocol",
"chatbot",
"koishi",
"proxy",
"router"
],
"koishi": {
"description": {
"en": "Router Proxy Service",
"zh": "路由代理服务"
}
},
"peerDependencies": {
"koishi": "^4.15.4"
},
"devDependencies": {
"koishi": "^4.15.4"
},
"dependencies": {
"@satorijs/router-proxy": "^1.0.0"
}
}
5 changes: 5 additions & 0 deletions plugins/router-proxy/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# [@koishijs/plugin-router-proxy](https://koishi.chat/plugins/develop/router-proxy.html)

Proxy service for [Koishi](https://koishi.chat).

- [Documentation](https://koishi.chat/plugins/develop/router-proxy.html)
4 changes: 4 additions & 0 deletions plugins/router-proxy/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import ProxyService from '@satorijs/router-proxy'

export default ProxyService
export * from '@satorijs/router-proxy'
10 changes: 10 additions & 0 deletions plugins/router-proxy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base",
"compilerOptions": {
"outDir": "lib",
"rootDir": "src",
},
"include": [
"src",
],
}
2 changes: 1 addition & 1 deletion plugins/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@koishijs/plugin-server",
"description": "Satori Protocol Adapter for Koishi",
"description": "Satori Server for Koishi",
"version": "2.2.2",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down
6 changes: 3 additions & 3 deletions plugins/server/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [@koishijs/plugin-adapter-satori](https://koishi.chat/plugins/adapter/satori.html)
# [@koishijs/plugin-server](https://koishi.chat/plugins/develop/server.html)

Satori protocol adapter for [Koishi](https://koishi.chat).
Satori server for [Koishi](https://koishi.chat).

- [Documentation](https://koishi.chat/plugins/adapter/satori.html)
- [Documentation](https://koishi.chat/plugins/develop/server.html)

0 comments on commit 08cf837

Please sign in to comment.