@kevisual/router 0.0.90 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js CHANGED
@@ -19582,7 +19582,7 @@ app
19582
19582
  10. **中间件找不到会返回 404**,错误信息中会包含找不到的中间件列表。
19583
19583
  `;
19584
19584
  // package.json
19585
- var version2 = "0.0.90";
19585
+ var version2 = "0.1.0";
19586
19586
 
19587
19587
  // agent/routes/route-create.ts
19588
19588
  app.route({
@@ -449,6 +449,8 @@ declare class QueryRouterServer<C extends SimpleObject = SimpleObject> extends Q
449
449
  path?: string;
450
450
  key?: string;
451
451
  payload?: any;
452
+ token?: string;
453
+ data?: any;
452
454
  }, ctx?: Partial<RouteContext<C>>): Promise<any>;
453
455
  runAction<T extends {
454
456
  id?: string;
@@ -449,6 +449,8 @@ declare class QueryRouterServer<C extends SimpleObject = SimpleObject> extends Q
449
449
  path?: string;
450
450
  key?: string;
451
451
  payload?: any;
452
+ token?: string;
453
+ data?: any;
452
454
  }, ctx?: Partial<RouteContext<C>>): Promise<any>;
453
455
  runAction<T extends {
454
456
  id?: string;
@@ -521,6 +521,8 @@ declare class QueryRouterServer<C extends SimpleObject$1 = SimpleObject$1> exten
521
521
  path?: string;
522
522
  key?: string;
523
523
  payload?: any;
524
+ token?: string;
525
+ data?: any;
524
526
  }, ctx?: Partial<RouteContext<C>>): Promise<any>;
525
527
  runAction<T extends {
526
528
  id?: string;
@@ -446,6 +446,8 @@ declare class QueryRouterServer<C extends SimpleObject$1 = SimpleObject$1> exten
446
446
  path?: string;
447
447
  key?: string;
448
448
  payload?: any;
449
+ token?: string;
450
+ data?: any;
449
451
  }, ctx?: Partial<RouteContext<C>>): Promise<any>;
450
452
  runAction<T extends {
451
453
  id?: string;
package/dist/router.d.ts CHANGED
@@ -527,6 +527,8 @@ declare class QueryRouterServer<C extends SimpleObject$1 = SimpleObject$1> exten
527
527
  path?: string;
528
528
  key?: string;
529
529
  payload?: any;
530
+ token?: string;
531
+ data?: any;
530
532
  }, ctx?: Partial<RouteContext<C>>): Promise<any>;
531
533
  runAction<T extends {
532
534
  id?: string;
package/dist/ws.d.ts CHANGED
@@ -496,6 +496,8 @@ declare class QueryRouterServer<C extends SimpleObject = SimpleObject> extends Q
496
496
  path?: string;
497
497
  key?: string;
498
498
  payload?: any;
499
+ token?: string;
500
+ data?: any;
499
501
  }, ctx?: Partial<RouteContext<C>>): Promise<any>;
500
502
  runAction<T extends {
501
503
  id?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@kevisual/router",
4
- "version": "0.0.90",
4
+ "version": "0.1.0",
5
5
  "description": "",
6
6
  "type": "module",
7
7
  "main": "./dist/router.js",
@@ -29,16 +29,16 @@
29
29
  "@kevisual/local-proxy": "^0.0.8",
30
30
  "@kevisual/query": "^0.0.53",
31
31
  "@kevisual/use-config": "^1.0.30",
32
- "@opencode-ai/plugin": "^1.2.21",
32
+ "@opencode-ai/plugin": "^1.2.24",
33
33
  "@types/bun": "^1.3.10",
34
- "@types/node": "^25.3.5",
34
+ "@types/node": "^25.4.0",
35
35
  "@types/send": "^1.2.1",
36
36
  "@types/ws": "^8.18.1",
37
37
  "@types/xml2js": "^0.4.14",
38
38
  "commander": "^14.0.3",
39
39
  "eventemitter3": "^5.0.4",
40
40
  "fast-glob": "^3.3.3",
41
- "hono": "^4.12.5",
41
+ "hono": "^4.12.7",
42
42
  "nanoid": "^5.1.6",
43
43
  "path-to-regexp": "^8.3.0",
44
44
  "send": "^1.2.1",
package/src/route.ts CHANGED
@@ -775,7 +775,7 @@ export class QueryRouterServer<C extends SimpleObject = SimpleObject> extends Qu
775
775
  * @param param0
776
776
  * @returns
777
777
  */
778
- async run(msg: { id?: string; path?: string; key?: string; payload?: any }, ctx?: Partial<RouteContext<C>>) {
778
+ async run(msg: { id?: string; path?: string; key?: string; payload?: any, token?: string, data?: any }, ctx?: Partial<RouteContext<C>>) {
779
779
  const handle = this.handle;
780
780
  if (handle) {
781
781
  return handle(msg, ctx);