Commit graph

52 commits

Author SHA1 Message Date
Max
6acea5b004 Refactor extractor to extraction provider and update related configurations
- Renamed extractor provider to extraction provider across the codebase for consistency and clarity.
- Updated references in configuration files, provider factories, and asset management to reflect the new terminology.
- Removed the extractor provider implementation and associated test files, streamlining the provider structure.
- Adjusted test cases and documentation to align with the new extraction provider framework.
2025-08-13 16:32:30 +08:00
Max
4bdd921d4c Enhance knowledge base provider management with multi-language support
- Implemented loading of providers from directories, allowing for multi-language configurations.
- Updated the KnowledgeBase struct to include a Providers field for managing provider configurations.
- Refactored GetProviders and GetProvider methods to utilize the new multi-language provider system, improving localization support.
- Added comprehensive test cases to validate provider loading and retrieval functionality across different languages.
2025-08-09 16:57:23 +08:00
Max
d653d2a51d Add uploader configuration and default value in Config
- Introduced Uploader field in the Config struct to allow optional file uploader configuration.
- Implemented logic to set a default uploader value if not explicitly configured during JSON unmarshalling.
2025-08-06 10:08:19 +08:00
Max
fcb59be5b5 Add OpenAPI and Knowledge Base configurations to Xgen settings
- Introduced OpenAPI settings to include base URL configuration.
- Added Knowledge Base settings to capture features, chunkings, embeddings, and converters.
- Enhanced the processXgen function to integrate these configurations into the Xgen settings map, improving extensibility and functionality.
2025-07-30 17:14:55 +08:00
Max
062f678e10 Add gzip option to ManagerOption struct and update app processing logic
- Introduced a new Gzip field in the ManagerOption struct to allow optional gzip compression for file uploads.
- Updated the processXgen function to include the gzip setting for chat, assets, and knowledge upload configurations, enhancing flexibility in file handling.
2025-06-27 20:03:09 +08:00
Max
5b99f3bf44 Enhance file upload functionality and authentication in neo package
- Updated the API to support dynamic storage paths for file uploads, allowing for differentiated handling of chat, knowledge, and asset uploads.
- Implemented comprehensive authentication checks to ensure only authorized users can upload files.
- Introduced new upload options to handle original filenames and improved error responses for better user feedback.
- Enhanced CORS headers to accommodate new upload requirements and improve API security.
- Initialized authentication settings in the Load function to streamline user management.
2025-05-31 16:36:02 +08:00
Max
c638d7e7c2 Refactor menu processing logic to improve error handling and streamline argument management
- Simplified argument handling for the menu process by removing unnecessary checks and directly appending locale to args.
- Enhanced error handling by ensuring that the menu process is required and throwing exceptions with appropriate status codes.
- Refactored the processMenu function to utilize a handle for executing the menu process, improving clarity and error management.
2025-05-27 12:39:39 +08:00
Max
4ab7a1056e Enhance localization support and refactor assistant functions for improved i18n handling
- Introduced locale parameter in GetAssistants and GetAssistant methods across various store implementations to support localized responses.
- Updated handleChatLatest, handleAssistantList, handleAssistantDetail, and handleAssistantTags functions to utilize the new locale handling for better user experience.
- Refactored GetPlaceholder method in the Assistant struct to accept a locale argument for dynamic placeholder translations.
- Removed redundant i18n code and centralized translation logic for cleaner implementation.
2025-05-26 11:58:48 +08:00
Max
4c026755c4 feat: Update versioning and commit information in Makefile and version command
- Added CUI commit information to the Makefile for artifact generation.
- Enhanced version command output to include Yao and CUI commit details with improved formatting.
- Updated constant names in share/const.go for clarity on versioning.
- Fixed references to CUI commit in process and app files to align with new naming conventions.
2025-05-18 16:47:32 +08:00
Max
f55fc7b374 ⚠️ BREAKING: Rename XGen to CUI and update license terms
1. Major Changes:
   - Migrate all XGen references to CUI
   - Update project naming conventions across codebase

2. License Updates:
   - Revise open source license terms
   - Update copyright and usage conditions

This is a breaking change that requires updates in dependent projects.
2025-05-18 12:16:45 +08:00
Max
645861d7a1 feat: Add Developer information to AppInfo structure and update processXgen
- Introduce Developer struct to encapsulate developer details such as ID, Name, Info, Email, and Homepage.
- Update processXgen to include developer information in the generated settings map, enhancing app metadata.
2025-04-09 23:05:45 +08:00
Max
38b910108b Add connector support for AI assistants in processXgen
- Import connector package to access AIConnectors
- Update processXgen function to include 'connectors' field in agent map
- Add 'placeholder' field to the assistant data structure for enhanced context
2025-03-16 11:49:22 +08:00
Max
8f57c38b26 Refactor assistant type assertion in Xgen processing
- Improve type safety when accessing Neo's assistant
- Use type assertion with ok check to handle potential nil or incorrect type
- Simplify assistant context retrieval in Xgen settings
2025-02-09 18:26:51 +08:00
Max
ccb1c54927 Add default assistant details to Xgen settings
- Include default assistant information in Xgen settings
- Retrieve assistant details from Neo when available
- Add agent configuration with assistant ID, name, avatar, and deleteable status
- Enhance Xgen settings to support assistant metadata
2025-02-09 17:58:23 +08:00
Max
044338f971 Add version to xgenSetting 2024-03-11 12:45:12 +08:00
Max
dd05336443 [add] app setting token option 2023-07-27 16:05:16 +08:00
Max
6d15f1abcb [fix] misspelling 2023-05-16 20:56:05 +08:00
Max
e722144329 [add] __neo.ExecCommand service 2023-05-16 20:45:25 +08:00
Max
46ad1e761c [add] yao.table.Load & yao.form.Load & fix reload 2023-05-11 22:20:02 +08:00
Max
a42792e9ed [add] migrate widgets.app & widgets.login 2023-02-03 17:30:02 +08:00
Max
a807899f95 [*] migrate to gou v0.10.3 (50%) 2023-02-01 17:25:11 +08:00
Max
1921e5982d [change] Replace adminRoot name 2023-01-12 20:00:05 +08:00
Max
d9f7159101 [add] third-party login 2022-12-16 18:39:47 +08:00
Max
4698784efb [change] the permission session data format 2022-12-13 10:36:37 +08:00
Max
ef96535b41 [add] widget table permission support 2022-12-11 02:26:22 +08:00
Max
647dbb2deb [fix] tests 2022-12-02 12:25:20 +08:00
Max
507d39e011 [add] http.* processes & http JSAPI 2022-11-10 00:10:38 +08:00
Max
53c11fb256 [fix] unit tests 2022-10-24 07:40:17 +08:00
Max
409b449f85 [change] optimize table widget default values 2022-10-22 13:08:52 +08:00
Max
3ee29a057a [fix] test data 2022-10-21 12:11:37 +08:00
Max
d1034f7e7e [fix] misspelling 2022-10-21 11:57:58 +08:00
Max
8ce40a2bfe [fix] login page i18n bug 2022-10-20 08:59:08 +08:00
Max
5ca46024c4 [change] setting 2022-10-20 04:27:12 +08:00
Max
6137b3fe42 [change] app setting api 2022-10-19 19:31:02 +08:00
Max
84279e9bfc [fix] unit-test 2022-10-18 23:12:35 +08:00
Max
355ae10dcf [change] i18n Trans 2022-10-18 22:36:32 +08:00
Max
c37f5b8fd7 [_] 2022-10-17 23:00:42 +08:00
Max
a5e260f43f [add] app check, setup, service API 2022-10-17 22:18:44 +08:00
Max
585aa873a3 [add] yao.env.* 2022-10-17 19:36:14 +08:00
Max
b1ad89290b [_] 2022-10-16 23:18:33 +08:00
Max
dafe256d53 [add] default lang 2022-10-16 23:14:40 +08:00
Max
256912f5e8 [add] app setting api 2022-10-16 23:08:28 +08:00
Max
827e0f1884 [i18n] support 2022-10-16 22:23:32 +08:00
Max
9db84db7cc [fix] unit tests data 2022-10-12 20:59:07 +08:00
Max
a57220859e [add] app icons 2022-09-29 20:17:05 +08:00
Max
f6987c5e85 [change] app menu & yao.login.admin process 2022-09-29 18:13:57 +08:00
Max
800ae72e8b
[add] app custom admin route support (#176)
* [add] app custom admin route support

* [fix] bindata fmt

* [fix] adminRoot replace bug

* [fix] admin root replace bug

* [fix] bindata fmt
2022-09-29 13:31:28 +08:00
Max
32e69cbcc0 [add] widget form 2022-09-27 21:08:31 +08:00
Max
d012aac872 [add] new table widget ( 60% ) 2022-09-24 22:37:18 +08:00
Max
bab6ca51b5 [fix] widgets tests 2022-09-21 19:24:40 +08:00