Commit Graph

24 Commits

Author SHA1 Message Date
t 18c9354095 refactor: 将客服后端重构为宿主可嵌入模块
- 注入数据库、运行时配置、统一响应、文件存储和平台 AI 能力,补充业务读写工具与客户快捷操作契约。

- 移除模块内重复的组织、客户、工单、标签、技能、旧工作流、MCP 和迁移实现,将身份权限与业务主体交由宿主管理。

- 使用 libSQL 重构向量存储,并完善图片消息、访客身份、排队调度、企业微信和支持聊天页面。

- 统一 HTTP、DTO 与 WebSocket 的 snake_case 协议,补齐模块初始化、业务动作和公共载荷等回归测试。
2026-08-28 22:23:13 +08:00
t 2bbf42b741 refactor(auth): delegate access control to be-system
Remove Agent Desk users, roles, login sessions, tokens, and local permission persistence. Expose the backend as an embeddable ai-agent module with host-provided subject lookup and operation authorization callbacks, and complete the frontend/backend repository split.
2026-08-21 00:41:07 +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 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 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 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 fce0b5709d refactor(ticket): contract backend ticket core 2026-05-02 18:49:10 +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 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 3cdd31786a feat: enhance event consumption logic and add success reply handling 2026-04-14 19:05:05 +08:00
mlogclub a5b0ddc760 feat: refactor HandoffGraph to use structured arguments and add unit tests for buildReason method 2026-04-14 11:08:02 +08:00
mlogclub 2211f29da7 feat: remove deprecated service and types, and refactor tool search request handling 2026-04-14 11:07:26 +08:00
mlogclub 89227c02c4 feat: add TriageServiceRequest tool and related graph for analyzing service requests and drafting tickets 2026-04-12 13:39:16 +08:00
mlogclub e42c77c8ae feat: add AnalyzeConversation tool and related graph for analyzing conversation risks and summaries 2026-04-12 13:36:01 +08:00
mlogclub a66b78eecc feat: add PrepareTicketDraft tool and related graph for drafting ticket information 2026-04-12 13:32:07 +08:00
mlogclub 47a99a4372 feat: refactor confirmation handling and add new constants for ticket creation and handoff processes 2026-04-10 16:24:49 +08:00
mlogclub 15afa10c7d feat: implement Handoff Graph Tool for managing AI to human transitions 2026-04-10 16:00:10 +08:00
mlogclub 3db7bec662 feat: refactor ticket creation process to use Graph Tool for confirmation and state management 2026-04-10 15:45:51 +08:00