- Added supportsTools field to LLM models in various API endpoints.
- Updated model creation and update functions to handle supportsTools.
- Modified chat and agent APIs to utilize supportsTools for tool management.
- Enhanced error handling and validation for new field in relevant endpoints.
- Updated migration journal to include new model version for supportsTools.
- Added hasPendingApproval prop to AgentChatArea for managing tool approval state.
- Updated AgentInput to show a placeholder when disabled due to pending approvals.
- Modified AgentMessageItem to handle feedback and actions based on approval status.
- Enhanced AgentMessageList to manage scrolling behavior during loading states.
- Introduced cleanup-approvals API to handle stale tool approvals.
- Updated useAgentChat composable to manage tool approval logic and state.
- Enhanced chat API to support tool approval responses and continue conversation after approval.
- Refactored agent tool fetching logic to remove unnecessary approval configurations.
- Improved session message handling to support new message parts structure.
- Added adminOnly field to CreateAgentToolInput and UpdateAgentToolInput interfaces.
- Updated API endpoints to handle adminOnly field in agent tools.
- Modified getEnabledToolInfos and getEnabledToolsForLlm functions to filter tools based on user role.
- Enhanced the chat tools API to retrieve enabled tools considering user roles.
- Updated migration journal to include new patch for adminOnly feature.
- Implemented datetime executor with operations for current time retrieval, formatting, parsing, time difference calculation, time addition, and timezone conversion.
- Added json formatter executor supporting formatting, minifying, validating, and extracting fields from JSON strings.
- Introduced regex tester executor for matching, testing, replacing, and extracting matches from input text using regular expressions.
- Created uuid executor for generating UUIDs, random strings, and random integers with configurable options.
- Updated agent tool registration to include new executors and their configurations.
- Enhanced input validation and error handling across all new executors.
- Added @ai-sdk/openai dependency to package.json and bun.lock
- Implemented chat index endpoint to handle user messages and stream responses from OpenAI
- Created models endpoint to retrieve active LLM providers and their models for the authenticated user
- Updated drizzle-pkg database with a new SQLite file
- Implemented GET, POST, PUT, and DELETE endpoints for managing LLM models and providers.
- Added user authorization checks to ensure only authorized users can access or modify resources.
- Enhanced provider and model retrieval functions to include user-specific data.
- Updated database service functions to handle user IDs for better data isolation.
- Introduced error handling for invalid inputs and unauthorized actions.