Commit Graph

375 Commits

Author SHA1 Message Date
mlogclub b3f5824fd6 feat: add QuickReplyGetBy route and builder functions for quick replies 2026-05-28 09:11:48 +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 498932de61 refactor: simplify cors and maxBodySize middleware by removing parameters 2026-05-27 22:06:32 +08:00
mlogclub 4d816182ee feat: implement CORS support with configurable allowed origins 2026-05-27 22:05:02 +08:00
mlogclub 988f55c80d refactor: support i18n 2026-05-25 12:06:15 +08:00
mlogclub eac039bba4 feat: add OIDC login support
- Introduced OIDC configuration options in config.example.yaml.
- Added OIDC client initialization and routes for OIDC login, callback, and exchange.
- Implemented OIDC login service to handle user authentication via OIDC.
- Created frontend components for OIDC login and callback handling.
- Updated user creation logic to support OIDC users and their identities.
- Enhanced error handling for OIDC login processes.
2026-05-24 20:49:10 +08:00
mlogclub c9ad978da6 feat: add banner printing functionality to server startup 2026-05-24 20:13:18 +08:00
mlogclub 8bbd6c9414 feat: set Gin to release mode in NewServer function 2026-05-24 20:10:20 +08:00
mlogclub 467759d547 feat: update AIConfig route handler and add validation utility function with tests 2026-05-24 19:57:36 +08:00
mlogclub c80bae5106 feat: enhance Makefile commands and update README for improved development workflow
refactor: separate API and SPA handling in server routes and add static file serving options

test: add tests for SPA handling and static file serving

feat: implement embedded SPA support for production and development environments
2026-05-23 22:44:06 +08:00
mlogclub c6c1c00141 feat: add dashboard handlers for roles, sessions, skill definitions, tags, tickets, users, and WeChat integration
- Implement role management endpoints including listing, creating, updating, and deleting roles.
- Add session management endpoints for viewing and revoking sessions.
- Create skill definition management endpoints for CRUD operations and status updates.
- Introduce tag management endpoints for handling tags with sorting and status updates.
- Develop ticket management endpoints for viewing, creating, updating, and managing ticket progress.
- Implement user management endpoints for CRUD operations, role assignments, and password resets.
- Add WeChat callback handlers for verifying and processing messages.
2026-05-23 22:30:30 +08:00
mlogclub f9ddf39c83 refactor: simplify route handlers by removing redundant ID parsing logic 2026-05-23 22:28:21 +08:00
mlogclub 1852f9df8b Refactor controllers to remove unnecessary return statements after JSON responses
- Removed redundant return statements in various controller functions across the dashboard module.
- This change improves code readability and maintains the same functionality.
2026-05-23 22:23:44 +08:00
mlogclub e9d2e41f9e Refactor controllers to use httpx for JSON responses and eliminate context dependency
- Updated TagController methods to use httpx.WriteJSON for consistent JSON response handling.
- Refactored TicketController to replace context-dependent methods with standalone functions using httpx.
- Modified UserController to utilize httpx for error handling and response formatting.
- Adjusted WechatController to remove context dependency and standardize response handling.
2026-05-23 22:22:18 +08:00
mlogclub 7fdf96dd9d feat: implement httpx response utilities and refactor API controllers to use them 2026-05-23 22:18:40 +08:00
mlogclub d21b420765 feat: restructure API routing and remove ginx package
- Added new routing functions for API and dashboard endpoints in controller_routes.go.
- Replaced previous ginx.HandleController calls with explicit route registrations.
- Removed the ginx package as it is no longer needed for handling controllers.
- Improved organization and readability of route definitions.
2026-05-23 22:12:13 +08:00
mlogclub 79614b2d07 Refactor import paths to use internal/pkg/httpx/params
- Updated multiple repository and service files to replace imports from "github.com/mlogclub/simple/web/params" with "cs-agent/internal/pkg/httpx/params".
- Adjusted context handling in auth_service and ws_service to use gin.Context instead of iris.Context.
- Ensured consistent usage of HTTP status responses across websocket handlers.
2026-05-23 22:10:20 +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 d30e211996 refactor: enhance conversation handling and websocket integration with new team ID support 2026-05-09 22:05:34 +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 1a2550a089 refactor: streamline conversation ID usage in message service methods 2026-05-08 21:54:08 +08:00
mlogclub 33b4caab03 refactor: update alert links and simplify buildAlerts parameters in dashboard service 2026-05-08 20:08:28 +08:00
mlogclub aef72ed6cc test: cover ticket rich text persistence 2026-05-06 17:40:11 +08:00
mlogclub 2447efab33 feat: record ticket assignment progress 2026-05-06 17:40:11 +08:00
mlogclub f2a7eb3295 refactor(ticket): simplify ticket number generation and remove SQLite lock 2026-05-06 17:40:11 +08:00
mlogclub dba175b0fa feat(ticket): add customer linking functionality to tickets 2026-05-06 17:40:11 +08:00
mlogclub ac0f25f10c refactor(ticket): rename TicketNoService to TicketNoSequenceService and update references 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 d181ff4947 fix(ticket): remove batch assign and restructure detail dialog 2026-05-06 17:40:10 +08:00
mlogclub d10c6cee67 fix(ticket): align progress routes 2026-05-02 21:05:11 +08:00
mlogclub 6d75ea9988 fix(ticket): close final integration gaps 2026-05-02 21:00:00 +08:00
mlogclub d9130d6d56 fix(ticket): remove obsolete ticket permissions 2026-05-02 20:48:44 +08:00
mlogclub 872f28fd3f fix(ticket): complete stale request guards 2026-05-02 20:23:32 +08:00
mlogclub 8102f89308 fix(ticket): guard stale responses and stale hours 2026-05-02 20:20:30 +08:00
mlogclub 7f867e1699 refactor(ticket): remove obsolete ai ticket fields 2026-05-02 20:09:12 +08:00
mlogclub 3130d4f14d fix(ticket): filter stale ticket list 2026-05-02 20:05:35 +08:00
mlogclub 5ccee6f714 fix(ticket): align lightweight frontend API 2026-05-02 19:53:18 +08:00
mlogclub 0fed6dc144 fix(ticket): close ticket number concurrency gap 2026-05-02 19:29:04 +08:00
mlogclub fa9d431cbe fix(ticket): harden lightweight backend core 2026-05-02 19:19:18 +08:00
mlogclub a06ce7074e fix(ticket): close backend core review gaps 2026-05-02 18:57:40 +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