Commit Graph

8 Commits

Author SHA1 Message Date
xiongxiao
ef905af1b8 chore: 更新版本号至 0.2.2,修改路由相关属性为 rid,重构认证中间件,添加 README 文档 2026-03-23 18:35:57 +08:00
9859c2f673 temp 2026-02-23 23:36:47 +08:00
5c24e197e6 chore: 更新身份验证中间件为 'auth-admin',并简化身份验证路由定义 2026-02-21 01:04:35 +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
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
7dcf53fb4f feat: 更新静态资源代理文档,优化路由和插件集成,提升代码可读性和功能性 2026-01-21 01:44:58 +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