Commit Graph

207 Commits

Author SHA1 Message Date
mlogclub 541e4c5874 refactor: replace skill code with skill ID across the application
- Updated skill handling to use skill IDs instead of skill codes in various components, services, and models.
- Modified tests to reflect changes in skill identification.
- Removed references to skill codes in favor of skill IDs for consistency and clarity.
- Updated localization files to remove skill code references and adjust error messages accordingly.
2026-06-20 20:42:07 +08:00
mlogclub 9a1ee8acff feat: add LanceDB provider support with lifecycle tests and Makefile enhancements 2026-06-07 17:46:17 +08:00
mlogclub c3387ec4a9 feat: add LanceDB vector database provider
- Implemented LanceDBProvider for managing vector collections, including methods for creating, deleting, and searching collections.
- Added support for LanceDB configuration in VectorDBConfig.
- Introduced stub for LanceDB provider when not built with the appropriate tag.
- Updated provider initialization to include LanceDB as a supported type.
- Created types and interfaces for vector operations, including Vector, SearchRequest, and SearchResult.
- Added tests for VectorDBConfig unmarshalling and for ensuring proper error handling when LanceDB is not built.
- Updated enums to include LanceDB type and labels.
- Modified frontend enums to reflect the addition of LanceDB.
2026-06-07 17:32:29 +08:00
mlogclub 3439d20537 feat(i18n): Enhance internationalization support for tool specifications and notifications
- Added TitleKey and DescriptionKey fields to ToolSpec for dynamic localization.
- Updated tool specifications to use i18nx for titles, descriptions, and appendices.
- Refactored notification messages to utilize i18nx for localization in conversation and ticket assignment events.
- Improved localization in the debug dialog component for skill definitions.
- Added new translation keys in English and Chinese for ticket and conversation assignment notifications.
- Ensured that fallback messages are properly localized based on user locale.
2026-06-03 09:36:33 +08:00
mlogclub 5b6c54de34 feat: enhance error handling with internationalized messages across services and locales 2026-06-02 21:10:17 +08:00
mlogclub 0b4a1b4594 Refactor error handling in services to use internationalized error messages
- Updated OSSStorage validation errors to use internationalized messages.
- Changed error messages in provider.go for unsupported file storage types.
- Refactored tag_service.go to replace hardcoded error messages with internationalized versions.
- Updated ticket_service.go to use internationalized error messages for various validation checks.
- Refactored ticket_tag_service.go to use internationalized error messages for tag validation.
- Changed ticket_view_service.go to use internationalized error messages for view validation.
- Updated tool_catalog_service.go to use internationalized error messages for tool code validation.
- Refactored user_service.go to replace error messages with internationalized versions.
- Updated ws_service.go to use internationalized error messages for WebSocket handling.
- Refactored wxwork_kf_inbound_service.go to use internationalized error messages for message handling.
- Updated wxwork_kf_outbound_service.go to use internationalized error messages for outbound message handling.
- Refactored wxwork_login_service.go to use internationalized error messages for login handling.
- Updated login.go in wxwork package to use internationalized error messages for login state and ticket validation.
2026-06-02 20:51:13 +08:00
mlogclub 853ae71b3d feat: add knowledge directory management for documents and FAQs
- Implemented directory validation in Create and Update knowledge document services.
- Added directory selection in document and FAQ edit dialogs with a new KnowledgeDirectoryPanel component.
- Enhanced API to support fetching, creating, updating, and deleting knowledge directories.
- Updated data models to include directory information for knowledge documents and FAQs.
- Added translations for directory-related messages in English and Chinese.
2026-06-02 15:37:50 +08:00
mlogclub c09ee0e596 refactor: replace document and FAQ chunk handling with repository methods for improved clarity and maintainability 2026-06-02 12:01:01 +08:00
mlogclub 99d5a951be refactor: improve knowledge base index removal and streamline vector handling logic 2026-06-02 11:47:35 +08:00
mlogclub c2d05863ba refactor: update knowledge base index removal method for improved clarity and efficiency 2026-06-02 11:39:24 +08:00
mlogclub 2002457492 refactor: enhance FAQ index removal logic and improve error handling in repository methods 2026-06-02 11:35:46 +08:00
mlogclub 62c55f5a47 refactor: simplify document deletion logic and remove redundant chunk handling 2026-06-02 11:33:24 +08:00
mlogclub 7a2f673a02 refactor: update document index removal methods for consistency and clarity 2026-06-02 11:29:06 +08:00
mlogclub abedafe911 refactor: streamline document and FAQ index removal methods and enhance knowledge base deletion logic 2026-06-02 11:25:30 +08:00
mlogclub b128447a7e Refactor localization strings to English across various services and UI components
- Updated titles and subtitles in channel_service.go for web channel and WeChat MP channel configurations.
- Changed handoff messages in conversation_human_dispatch_service.go to English.
- Modified notification messages in event handlers for ticket and conversation assignments to English.
- Adjusted ticket creation messages in ticket_service.go to reflect English localization.
- Updated default locale settings in i18n configuration files to English (en-US).
- Changed HTML language attribute in layout.tsx to English.
- Refactored widget locale detection logic in agent-desk-sdk.ts to prioritize English.
2026-05-31 21:57:31 +08:00
mlogclub 0b0b16abb2 refactor: update codebase references from cs-ai-agent to agent-desk 2026-05-31 18:51:22 +08:00
mlogclub 101577f163 Refactor internal services to use agent-desk package structure
- Updated import paths in multiple service files to reflect the new agent-desk module.
- Added a new configuration file for agent-desk in the Docker setup.
2026-05-31 18:43:48 +08:00
mlogclub 5d7c10aeab refactor: rename agent widget references to AI agent for consistency
- Updated runtime configuration to use __CS_AI_AGENT_WIDGET_CONFIG__ instead of __CS_AGENT_WIDGET_CONFIG__.
- Changed message types in support host bridge from "cs-agent" to "cs-ai-agent".
- Minified SDK script updated to reflect new AI agent naming conventions.
- Adjusted scrollbar styles in main.scss to use .cs-ai-agent-scrollbar instead of .cs-agent-scrollbar.
2026-05-30 21:19:36 +08:00
mlogclub c246b85a9e feat: add support for request ID tracking across services
- Implemented request ID handling in various services and handlers to improve traceability of requests.
- Added new AuthOptions endpoint to expose WxWork and OIDC configuration options.
- Updated message and event logging to include request ID for better debugging.
- Enhanced login form to dynamically show available authentication options based on server configuration.
- Introduced utility functions for normalizing and ensuring valid request IDs.
- Updated tests to verify request ID functionality in message sending and event logging.
2026-05-27 22:18:43 +08:00
mlogclub 7a9cffe21e fix: add structured graph tool results 2026-05-10 00:02:23 +08:00
mlogclub 59b3509ca9 fix: prevent repeated off-hours handoff notices 2026-05-09 23:46:56 +08:00
mlogclub af8ec71bb8 fix: continue agent flow on knowledge retrieval errors 2026-05-09 23:38:42 +08:00
mlogclub bce4c18c10 refactor: use controlled RAG no-context policy 2026-05-09 23:33:35 +08:00
mlogclub 664e418115 refactor: implement off-hours handoff logic and enhance related tests 2026-05-08 23:26:25 +08:00
mlogclub 6f4c026320 refactor: enhance event consumption logic and add graph tool completion test 2026-05-08 23:13:32 +08:00
mlogclub f2a7eb3295 refactor(ticket): simplify ticket number generation and remove SQLite lock 2026-05-06 17:40:11 +08:00
mlogclub 2f33783f7e fix(ticket): change description wrapper from div to span in TicketDetailDialog 2026-05-06 17:40:10 +08:00
mlogclub 7f867e1699 refactor(ticket): remove obsolete ai ticket fields 2026-05-02 20:09:12 +08:00
mlogclub fce0b5709d refactor(ticket): contract backend ticket core 2026-05-02 18:49:10 +08:00
mlogclub 0609ad758c fix: remove redundant human support suggestion in fallback reply 2026-05-02 15:37:04 +08:00
mlogclub a8f032d332 fix: bypass answerability gate for runtime actions 2026-05-02 15:04:17 +08:00
mlogclub 3eff8b5c3a fix: simplify fallback reply handling in knowledge guard 2026-05-02 14:51:39 +08:00
mlogclub 2737f660f7 fix: close answerability gate review gaps 2026-05-02 14:40:16 +08:00
mlogclub 8f968fe3ca feat: wire answerability gate into ai runtime 2026-05-02 14:21:49 +08:00
mlogclub 0230e05dce fix: harden rag answerability gate 2026-05-02 14:14:31 +08:00
mlogclub 9e30167eaf feat: implement rag answerability gate graph 2026-05-02 14:06:23 +08:00
mlogclub 269042b9d4 feat: add rag answerability gate types 2026-05-02 13:56:01 +08:00
mlogclub 28913ad440 feat: add answerability runtime trace fields 2026-05-02 13:51:26 +08:00
mlogclub a959477617 fix(knowledge-guard): enhance fallback logic for knowledge retrieval and add tests 2026-05-02 13:38:44 +08:00
mlogclub 3a9bc4914a refactor: remove Subject field from Conversation model and related logic, replace with CustomerName 2026-04-27 19:22:40 +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 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