- 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.
- 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.
- 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.
- 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`.