feat: enhance plugin integration with hooks and context management
- Updated the `createRouterAgentPluginFn` to accept an optional `hooks` parameter for better plugin customization. - Introduced `usePluginInput` for accessing plugin input context. - Refactored `AgentPlugin` to utilize hooks and context, improving flexibility and functionality. - Cleaned up commented-out code for clarity.
This commit is contained in:
18
package.json
18
package.json
@@ -1,14 +1,13 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package",
|
||||
"name": "@kevisual/router",
|
||||
"version": "0.0.62",
|
||||
"version": "0.0.63",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"main": "./dist/router.js",
|
||||
"types": "./dist/router.d.ts",
|
||||
"scripts": {
|
||||
"build": "npm run clean && rollup -c",
|
||||
"postbuild": "bun run bun.config.ts",
|
||||
"watch": "rollup -c -w",
|
||||
"clean": "rm -rf dist"
|
||||
},
|
||||
@@ -22,20 +21,20 @@
|
||||
"keywords": [],
|
||||
"author": "abearxiong",
|
||||
"license": "MIT",
|
||||
"packageManager": "pnpm@10.28.1",
|
||||
"packageManager": "pnpm@10.28.2",
|
||||
"devDependencies": {
|
||||
"@kevisual/context": "^0.0.4",
|
||||
"@kevisual/js-filter": "^0.0.5",
|
||||
"@kevisual/local-proxy": "^0.0.8",
|
||||
"@kevisual/query": "^0.0.35",
|
||||
"@kevisual/query": "^0.0.38",
|
||||
"@kevisual/use-config": "^1.0.28",
|
||||
"@opencode-ai/plugin": "^1.1.27",
|
||||
"@opencode-ai/plugin": "^1.1.36",
|
||||
"@rollup/plugin-alias": "^6.0.0",
|
||||
"@rollup/plugin-commonjs": "29.0.0",
|
||||
"@rollup/plugin-node-resolve": "^16.0.3",
|
||||
"@rollup/plugin-typescript": "^12.3.0",
|
||||
"@types/bun": "^1.3.6",
|
||||
"@types/node": "^25.0.9",
|
||||
"@types/node": "^25.0.10",
|
||||
"@types/send": "^1.2.1",
|
||||
"@types/ws": "^8.18.1",
|
||||
"@types/xml2js": "^0.4.14",
|
||||
@@ -43,7 +42,7 @@
|
||||
"fast-glob": "^3.3.3",
|
||||
"nanoid": "^5.1.6",
|
||||
"path-to-regexp": "^8.3.0",
|
||||
"rollup": "^4.55.2",
|
||||
"rollup": "^4.57.0",
|
||||
"rollup-plugin-dts": "^6.3.0",
|
||||
"send": "^1.2.1",
|
||||
"ts-loader": "^9.5.4",
|
||||
@@ -53,14 +52,15 @@
|
||||
"typescript": "^5.9.3",
|
||||
"ws": "npm:@kevisual/ws",
|
||||
"xml2js": "^0.6.2",
|
||||
"zod": "^4.3.5"
|
||||
"zod": "^4.3.6"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/abearxiong/kevisual-router.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"hono": "^4.11.4"
|
||||
"@kevisual/dts": "^0.0.3",
|
||||
"hono": "^4.11.7"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
Reference in New Issue
Block a user