- 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`.
- Introduced `ServerNode` and `BunServer` classes to handle server logic for Node and Bun respectively.
- Updated `App` class to initialize the appropriate server based on the runtime environment.
- Enhanced `parseBody` function to handle request body parsing for both environments.
- Modified WebSocket handling to support Bun's WebSocket upgrade mechanism.
- Improved error handling and response structure across the server implementation.
- Added support for custom middleware in the server's request handling.
- Refactored server base functionality into `ServerBase` for better code organization.
- Updated type definitions to reflect changes in server options and listener handling.
- Added a new demo for testing the server functionality with various request types.
- Bump version from 0.0.39 to 0.0.40 in package.json
- Update @kevisual/query from ^0.0.31 to ^0.0.32
- Update @types/node from ^24.10.2 to ^25.0.3
- Update rollup from ^4.53.3 to ^4.53.5
- Update zod from ^4.1.13 to ^4.2.1
- Update send from ^1.2.0 to ^1.2.1
refactor: improve error handling in CustomError class
- Refactor isError method to use type guard for better type checking
fix: change cookie import path in server.ts
- Update cookie import from 'cookie' to './cookie.ts'
feat: implement cookie parsing and stringifying functionality
- Add cookie.ts with functions for parsing and stringifying cookies
- Implement cookie name, value, domain, path, max-age, and other attributes handling
- Updated RouteOpts to accept an additional generic parameter for metadata type.
- Modified Route class to utilize the new generic parameter for metadata.
- Adjusted the run method in QueryRouterServer for consistent type definitions.
- Improved getList method in QueryRouter to allow filtering of routes.
- Simplified Route class by removing validator functionality
- Added AppRouteContext type for better type safety
- Added forward method to RouteContext for response handling
- Replaced queryRoute with run method for consistency
- Improved Server class with proper cleanup methods
- Updated Mini class to extend QueryRouterServer properly
- Removed lodash-es dependency and nanoid random import
- Added deprecation warnings for older methods
- Enhanced route handling and middleware execution
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>