Commit Graph

375 Commits

Author SHA1 Message Date
mlogclub fbabb174d2 feat: add WeChat MP channel support and enhance widget configuration
- Updated output path for generated enums to reflect new structure.
- Enhanced ChannelController to handle WeChat MP OAuth authorization and callback.
- Introduced WechatMPChannelConfig DTO for WeChat MP specific configurations.
- Modified WidgetConfigResponse to include channel type and external source.
- Added enums for WeChat MP channel type and external source.
- Implemented OAuth flow for WeChat MP, including state signing and verification.
- Updated frontend forms to accommodate WeChat MP configurations.
- Enhanced API interactions to support WeChat MP external ID and source.
- Updated generated enums to include WeChat MP external source.
2026-04-27 15:42:04 +08:00
mlogclub 12f66bcf27 add wxwork kf account management functionality 2026-04-27 11:43:34 +08:00
mlogclub e0b15c23d9 update gorm log config 2026-04-26 20:52:22 +08:00
mlogclub 96fde7aaab refactor: enhance realtime message handling and conversation state management 2026-04-25 17:24:26 +08:00
mlogclub 323db62512 refactor: reorganize WebSocket API route configuration for improved clarity 2026-04-25 10:51:41 +08:00
mlogclub 2c884c13cf refactor: update WebSocket API routes for improved clarity and structure 2026-04-25 10:50:23 +08:00
mlogclub 270bb83fdb refactor: remove commented-out API route configuration for clarity 2026-04-25 10:35:18 +08:00
mlogclub 1b3fc8159c feat: implement ExternalInfoMiddleware and update routing for improved context handling 2026-04-25 10:31:35 +08:00
mlogclub 96168dc6fb Refactor API routes and controllers for improved structure and clarity
- Updated API route structure to remove versioning and consolidate endpoints.
- Refactored routing in `server.go` to use a unified `/api` prefix for all controllers.
- Added new `ChannelController`, `ConversationController`, and `MessageController` to handle specific API functionalities.
- Removed deprecated `OpenImContextMiddleware` and related logic.
- Enhanced channel validation logic in `ChannelService` and `ChannelRepository`.
- Updated frontend API calls to align with new endpoint structure.
2026-04-25 10:27:43 +08:00
mlogclub f5da8de49d refactor: remove welcomeText field from WebChannelConfig and related components 2026-04-24 22:27:30 +08:00
mlogclub ea94837db2 feat: add web channel configuration support and update widget response structure 2026-04-24 22:24:19 +08:00
mlogclub a262a865a0 refactor: move WxWorkKFChannelConfig to dto package and update references 2026-04-24 21:43:39 +08:00
mlogclub f55ff09db3 Remove widget 2026-04-24 21:24:24 +08:00
mlogclub 6616b66e72 refactor(Makefile): update targets and directory references for web app integration 2026-04-24 12:04:05 +08:00
mlogclub 7889ecb0d2 feat(auth): update login routes and add WxWork login callback handling 2026-04-24 11:35:29 +08:00
mlogclub eb353cbbc8 refactor(migration): remove is_system field update and clean up imports in permission sync 2026-04-23 14:43:59 +08:00
mlogclub 155e9173a7 feat(ai-agent): add permissions for AI Agent management and update related logic 2026-04-23 14:26:10 +08:00
mlogclub 06b9c58e55 refactor(role): remove sortNo from role creation and update related logic 2026-04-23 14:06:10 +08:00
mlogclub 4d45d7f037 feat(wxwork): refactor truncateRunes function to be a method of wxWorkNotifyService 2026-04-21 18:08:03 +08:00
mlogclub beebf131c8 feat(wxwork): update toUsers field type to int64 and enhance comments for clarity 2026-04-21 17:57:53 +08:00
mlogclub 22e1c2e395 feat(wxwork): refactor recipient handling to use slices instead of structs 2026-04-21 17:51:35 +08:00
mlogclub 179c01c0e4 feat(wxwork): update default recipients to remove duplicates and include all users 2026-04-21 17:36:33 +08:00
mlogclub 8c31a9c444 feat(wxwork): remove unused recipient fields from wxWorkNotifyConfig 2026-04-21 17:36:05 +08:00
mlogclub e5c9eba497 feat(wxwork): refactor recipient handling and replace unique functions with arrs.Distinct 2026-04-21 17:31:33 +08:00
mlogclub 64e75dcdf6 feat(eventbus): implement conversation and ticket assignment event handlers with notifications 2026-04-21 17:11:50 +08:00
mlogclub 6789a8dee0 feat(eventbus): refactor handler storage to use a slice and add tests for handler order 2026-04-21 16:42:29 +08:00
mlogclub 6c005d5daa feat(eventbus): implement event handling for ticket and conversation assignments 2026-04-21 16:41:12 +08:00
mlogclub df13d5ced5 feat(eventbus): enhance event handling with error propagation and global bus management 2026-04-21 11:50:43 +08:00
mlogclub 964b2ed6ce event bus 2026-04-20 22:58:54 +08:00
mlogclub c5bef3bd4f 企微通知功能对接 2026-04-19 18:11:34 +08:00
mlogclub 60956488e0 refactor(rag): update loadDocumentByID and loadFAQByID to return pointers and simplify error handling 2026-04-19 11:56:03 +08:00
mlogclub 700ec2a38b refactor(runtime): remove nil checks for receiver in RuntimeTraceCollector methods
refactor(factory): enforce skill middleware requirement in NewAgentHandlerService
refactor(reply_interrupt): improve error handling for pending interrupts
2026-04-19 11:40:17 +08:00
mlogclub 3e98e9379c refactor(runtime): update function signatures to use value receivers for models 2026-04-19 11:38:05 +08:00
mlogclub 680793f527 refactor(runtime): streamline request handling and improve tool preparation methods 2026-04-19 11:19:51 +08:00
mlogclub 92712d882a feat(tool-filter): implement runtime tool filtering middleware and associated tests 2026-04-19 10:28:18 +08:00
mlogclub 42077c1aab Refactor skill handling and improve runtime trace capabilities
- Removed the selectSkill method from prepareService and adjusted related logic in the Run method of Service.
- Updated tool catalog to parse agent allowed tool codes directly.
- Simplified Request and RunInput structures by removing unnecessary fields.
- Enhanced the RuntimeTraceCollector to manage skill activation and visibility.
- Introduced a new databaseSkillBackend to manage skill definitions and their metadata.
- Added tests for skill backend functionalities to ensure correct behavior.
- Updated various factory methods to accommodate changes in skill handling.
- Improved documentation and descriptions for better clarity.
2026-04-19 09:57:34 +08:00
mlogclub ad83d1dfda feat(utils): add BuildRuntimeMessageText function for message formatting 2026-04-18 22:24:30 +08:00
mlogclub c84870b968 feat: add fallback mode for AI agents and update knowledge base handling
- Introduced AIAgentFallbackMode with options for NoAnswer and SuggestRetry.
- Updated AI agent edit component to include fallback mode selection.
- Modified API types and payloads to accommodate fallback mode.
- Removed deprecated KnowledgeFallbackMode and related logic from knowledge base.
- Adjusted knowledge retrieval and response handling to utilize new fallback logic.
- Updated tests to reflect changes in fallback mode handling for AI agents.
2026-04-18 13:36:44 +08:00
mlogclub 797bee65f9 refactor: remove remark field from AIAgent and related components 2026-04-18 13:03:59 +08:00
mlogclub f166caa11c refactor(instruction): remove governance instruction handling and update related tests 2026-04-18 11:25:48 +08:00
mlogclub 9756780aec refactor(instruction): simplify NewService initialization and update import paths 2026-04-18 11:09:05 +08:00
mlogclub 023ec7373b refactor(instruction): remove default governance instruction and update related tests 2026-04-18 11:05:41 +08:00
mlogclub 9a677a6265 refactor(instruction): remove project instruction handling and related tests 2026-04-18 10:54:36 +08:00
mlogclub 19848d031b refactor(skills): update routeSkillWithLLM to use RuntimeContext and streamline user message handling 2026-04-17 18:57:34 +08:00
mlogclub 51884f1bdf refactor: change pointer receivers to value types for Conversation and UserMessage in various structs and functions 2026-04-17 18:48:45 +08:00
mlogclub 976b9defde Refactor AI Agent and AI Config handling across multiple files
- Updated function signatures to accept AI Agent and AI Config as non-pointer types for better clarity and safety.
- Modified instances where AI Agent and AI Config were dereferenced to improve code readability.
- Removed unnecessary nil checks for AI Agent and AI Config, simplifying the logic.
- Adjusted related tests and services to align with the new function signatures.
- Cleaned up code in runtime, skills, and executor packages to ensure consistency in handling AI configurations.
2026-04-17 17:57:01 +08:00
mlogclub 3b062c327c feat(skill): refactor RuntimeContext to use AIAgent and AIConfig directly, removing contextLoader 2026-04-17 17:37:36 +08:00
mlogclub d5d1956964 refactor(runtime): replace RuntimeExecutor with direct use of executor.Service 2026-04-17 17:31:28 +08:00
mlogclub 81056a61a1 feat(skill): optimize loadCandidateSkills to use batch retrieval for skill definitions 2026-04-17 17:27:33 +08:00
mlogclub c396a4a5e3 feat(skill): refactor candidateLoader and update loadCandidateSkills to use getSkillByID 2026-04-17 17:23:29 +08:00