Commit Graph

136 Commits

Author SHA1 Message Date
a9cf1505ff chore: 更新版本号并添加 runAction 方法及其类型推断支持 2026-03-06 23:41:31 +08:00
9ed6e63d9e chore: 更新依赖项版本以修复兼容性问题 2026-03-05 01:02:07 +08:00
e58c99c285 ws 2026-03-05 01:01:13 +08:00
xiongxiao
2628eb3693 chore: 移除未使用的类型定义并更新 RouteOpts 类型以支持复合路由 2026-03-02 04:01:17 +08:00
46499bedc7 chore: 更新依赖项版本以保持兼容性 2026-03-01 01:10:16 +08:00
xiongxiao
ab61be4875 Add design documents for HTTP server, router, and WebSocket server
- Created `https-server.md` detailing the HTTP server design, including request normalization, routing, and built-in routes.
- Added `router.md` outlining the router system design, core components, and execution flow.
- Introduced `ws-server.md` for the WebSocket server design, covering connection handling, message protocols, and custom listener registration.
2026-02-28 14:40:20 +08:00
52b10f2f03 chore: 删除不再使用的文件并更新路由上下文以支持自定义字段 2026-02-24 01:01:43 +08:00
f8337a1216 temp 2026-02-23 23:47:59 +08:00
ad95dc0081 chore: 更新 QueryRouterServer 和 App 类以支持自定义 RouteContext 类型 2026-02-23 23:43:12 +08:00
9859c2f673 temp 2026-02-23 23:36:47 +08:00
0152d15824 chore: 在文档和代码中添加 currentId 属性,增强路由上下文信息 2026-02-23 23:11:37 +08:00
5c24e197e6 chore: 更新身份验证中间件为 'auth-admin',并简化身份验证路由定义 2026-02-21 01:04:35 +08:00
af7d809270 chore: 更新版本号至0.0.83,并在 CustomError 类中添加静态 throw 方法以增强错误处理 2026-02-21 00:26:21 +08:00
a8f409f900 chore: 更新版本号至0.0.82,并在 CustomError 类中增强构造函数以支持对象参数 2026-02-20 22:53:03 +08:00
132aa3a888 chore: 在 ServerBase 类中添加自定义错误处理逻辑 2026-02-20 22:34:48 +08:00
2e59e318bf Refactor code structure for improved readability and maintainability 2026-02-20 22:25:44 +08:00
e1a0e11052 chore: 更新版本号至0.0.80,并在 route.ts 中重构 toJSONSchema 和 fromJSONSchema 函数以使用新的 schema.ts 模块 2026-02-18 13:28:49 +08:00
058e6843b1 chore: 更新版本号至0.0.79,并在 route.ts 中修改 toJSONSchema 函数以支持可选参数 2026-02-18 11:19:58 +08:00
bf6b7ad709 chore: 更新版本号至0.0.78,并在 fromJSONSchema 函数中将返回值设为可选 2026-02-18 10:51:32 +08:00
0866f01b1e chore: 更新版本号至0.0.77,升级 @kevisual/query 至 0.0.47,重构 JSON Schema 处理函数并添加测试 2026-02-18 10:31:11 +08:00
e4e1e9abb9 chore: 更新版本号至0.0.76,并在 route.ts 中添加 extractArgs 函数 2026-02-18 10:00:26 +08:00
f72f7d6cf1 fix: temp 2026-02-18 08:58:53 +08:00
40a8825ea2 refactor: remove pnpm workspace configuration and update opencode functionality
- Deleted pnpm-workspace.yaml file.
- Modified opencode.ts to enhance skill creation and execution:
  - Updated skill title and summary for clarity.
  - Introduced a delay for router loading.
  - Improved route filtering logic.
  - Added extractArgs function to handle argument extraction from z.object types.
- Updated route.ts to ensure 'opencode' tag is added to skills if not present and improved JSON schema handling for args.
2026-02-18 04:53:32 +08:00
b2f718c492 chore: 更新版本号至0.0.74,并在 QueryRouter 中添加 metadata 字段 2026-02-18 03:25:09 +08:00
074775985e chore: 更新版本号至0.0.73,调整依赖项版本 2026-02-18 03:16:26 +08:00
a53e8c0bc3 refactor: update router import path and add random ID utility
- Changed the import path for router types from '@kevisual/router' to './route.ts' in src/router-define.ts.
- Added a new lock file (bun.lock) to manage dependencies.
- Introduced a new utility function in src/utils/random.ts to generate random IDs using the nanoid library.
2026-02-17 20:35:16 +08:00
b4f2615afa temp 2026-02-17 17:24:44 +08:00
170954ae7c fix: error 2026-02-17 16:28:50 +08:00
15db8515d6 perf: 优化监听进程 2026-02-04 02:36:12 +08:00
08696dedd8 chore: update package version to 0.0.69; modify import statements in loadTS function 2026-02-03 01:12:23 +08:00
48de44587a feat: add JSON schema conversion methods and update route handling 2026-02-03 00:18:26 +08:00
7f7ea79689 feat: update package version and dependencies; add ReconnectingWebSocket for automatic reconnection 2026-02-02 21:22:49 +08:00
b081a03399 test bun stream sse and http-stream 2026-02-01 01:26:57 +08:00
fed87eb3a1 0.0.65 2026-01-31 18:23:52 +08:00
xiongxiao
a5429f055a fix 2026-01-31 18:23:09 +08:00
7e34564516 Refactor code structure for improved readability and maintainability 2026-01-30 22:44:14 +08:00
xiongxiao
605061a60e 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.
2026-01-28 00:02:21 +08:00
e7dca513f3 feat: 添加路由描述和更新运行代码参数,优化测试用例 2026-01-26 04:20:56 +08:00
0f8986b491 update 2026-01-26 01:09:20 +08:00
911f03b4bd fix mini modules 2026-01-25 22:12:04 +08:00
8a1aff4c50 update 2026-01-25 21:19:28 +08:00
3284a06ad5 udpate 2026-01-21 19:02:30 +08:00
7dcf53fb4f feat: 更新静态资源代理文档,优化路由和插件集成,提升代码可读性和功能性 2026-01-21 01:44:58 +08:00
61add1aad1 udpate 2026-01-20 13:39:22 +08:00
2363617404 add call 2026-01-20 13:38:50 +08:00
f4372ae55f feat: add opencode plugin with router integration and TypeScript definitions
- Implemented `createRouterAgentPluginFn` in `src/opencode.ts` to create a plugin that interacts with the router and filters routes based on metadata tags.
- Added support for executing routes with error handling and response formatting.
- Updated `rollup.config.js` to include build configurations for `opencode.js` and `opencode.d.ts`.
2026-01-20 13:23:06 +08:00
xiongxiao
9b11ea5138 更新 .cnb.yml、package.json 和文档,添加新功能和示例代码 2026-01-19 04:52:14 +08:00
999397611c temp 2026-01-16 18:53:55 +08:00
730f4c6eb9 fix 2026-01-16 12:06:01 +08:00
xiongxiao
123d02f452 udpate 2026-01-15 23:44:40 +08:00