@kevisual/router 0.0.55 → 0.0.57
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/opencode.d.ts +331 -0
- package/dist/opencode.js +969 -0
- package/dist/router-browser.d.ts +5 -2
- package/dist/router-browser.js +13412 -3465
- package/dist/router.d.ts +4 -1
- package/dist/router.js +13421 -3474
- package/package.json +15 -9
- package/readme.md +164 -12
- package/src/browser.ts +4 -3
- package/src/index.ts +2 -1
- package/src/opencode.ts +72 -0
- package/src/route.ts +3 -0
- package/src/router-simple.ts +2 -0
package/dist/router.d.ts
CHANGED
|
@@ -122,6 +122,9 @@ type Skill<T = SimpleObject$1> = {
|
|
|
122
122
|
[key: string]: any;
|
|
123
123
|
};
|
|
124
124
|
} & T;
|
|
125
|
+
declare const tool: {
|
|
126
|
+
schema: typeof z;
|
|
127
|
+
};
|
|
125
128
|
/** */
|
|
126
129
|
declare const createSkill: <T = SimpleObject$1>(skill: Skill<T>) => Skill<T>;
|
|
127
130
|
type RouteInfo = Pick<Route, (typeof pickValue)[number]>;
|
|
@@ -942,5 +945,5 @@ type GlobOptions = {
|
|
|
942
945
|
};
|
|
943
946
|
declare const loadTS: (match?: string, { cwd, load }?: GlobOptions) => Promise<any[]>;
|
|
944
947
|
|
|
945
|
-
export { App, CustomError, Mini, QueryRouter, QueryRouterServer, QueryUtil, Route, ServerNode, createSchema, createSkill, define, handleServer, loadTS, util };
|
|
948
|
+
export { App, CustomError, Mini, QueryRouter, QueryRouterServer, QueryUtil, Route, ServerNode, createSchema, createSkill, define, handleServer, loadTS, tool, util };
|
|
946
949
|
export type { HttpListenerFun, Listener, OnListener, OnWebSocketFn, RouteArray, RouteContext, RouteMiddleware, RouteObject, RouteOpts, RouterReq, RouterRes, Rule, Run, Schema, Skill, WS, WebSocketListenerFun, WebSocketReq, WebSocketRes };
|