Commit graph

136 commits

Author SHA1 Message Date
Max
b63f3fe246 Refactor KB Search Handler and Update Test Cases
- Enhanced the KB search handler to utilize the KB API for executing search queries, improving search accuracy and performance.
- Implemented authorization checks for collections in the search requests, ensuring only accessible collections are queried.
- Updated the search request structure to include metadata filtering capabilities, allowing for more refined search results.
- Refactored unit tests to validate new search functionalities, including threshold handling and collection initialization checks, ensuring robust test coverage.
- Adjusted the Makefile to streamline test coverage reporting and updated GitHub Actions workflows to include Codecov integration for better visibility on test coverage metrics.
2025-12-20 14:43:00 +08:00
Max
09d368dae7 Add KB Tests and Update Makefile for Test Management
- Introduced a new unit test target for KB tests in the Makefile, allowing for dedicated testing of the KB module.
- Updated the test folder selection logic to exclude additional AI-related components, ensuring focused testing.
- Enhanced the GitHub Actions workflows to include KB tests, setting up necessary services like Qdrant, Neo4j, and MongoDB for a comprehensive testing environment.
- Refactored search test functions to improve data existence checks and streamline test setup processes, enhancing test reliability and maintainability.
2025-12-20 11:44:09 +08:00
Max
069d183b35 Update Makefile for Enhanced Test Timeout Management
- Increased the timeout for AI unit tests from 20 minutes to 20 minutes and for memory leak tests from 60 seconds to 5 minutes, improving test execution reliability.
- Adjusted test commands to ensure proper handling of long-running tests, enhancing overall testing efficiency.
2025-12-15 10:37:23 +08:00
Max
4f417d4d6e Enhance CI Workflows and Makefile for Testing and Benchmarking
- Added additional failure checks in the Makefile for unit tests to improve error handling.
- Updated GitHub Actions workflows to include a new benchmark and memory leak testing job, enhancing performance validation.
- Modified environment setup in workflows to ensure correct database paths for SQLite, improving test reliability.
- Streamlined the core test execution process by removing redundant commands, focusing on unit tests only.
2025-12-15 09:55:31 +08:00
Max
4a47b92156 Implement Core and AI Unit Testing in Makefile and CI Workflows
- Added separate unit test targets for core tests and AI-related tests in the Makefile, allowing for more granular testing.
- Updated GitHub Actions workflows to include dedicated jobs for running AI tests with SQLite and core tests, enhancing CI capabilities.
- Modified existing test commands to ensure proper execution of unit tests while excluding AI-related tests where necessary.
- Updated test paths in the agent's search tests to reflect changes in the test assistant being used, ensuring accurate test execution.
2025-12-15 09:34:53 +08:00
Max
3a46d98663 Enhance trace package functionality and improve concurrency handling
- Updated benchmark and memory leak detection commands in the Makefile to include both agent and trace components.
- Refactored the manager struct in `manager.go` to support cancellable contexts and added per-space locks for improved concurrency safety.
- Enhanced subscription handling in `subscription.go` to only broadcast updates if there are active subscribers, preventing unnecessary operations.
- Implemented comprehensive disk operations in `local/driver.go` and `store/driver.go` for managing trace nodes, spaces, and logs, including loading, saving, and deleting functionalities.
- Improved README documentation to clarify driver configurations and usage examples for trace management.
2025-11-18 15:47:44 +08:00
Max
889fba942a Enhance testing and context management in assistant operations
- Refactored the Makefile to include new benchmark and memory leak detection tests, improving test coverage.
- Introduced context adjustments in the Create method, allowing hooks to modify context fields such as AssistantID, Connector, Locale, Theme, Route, and Metadata.
- Added a new test scenario to validate context field adjustments, ensuring proper updates during assistant operations.
- Updated test preparation to support optional V8 mode configuration for improved performance during benchmarks.
2025-11-14 12:38:03 +08:00
Max
ddf8fd7a32 Refactor test utilities and enhance access token handling
- Introduced ObtainAccessTokenWithRootPermission function to streamline the creation of test users with root permissions, ensuring consistent access token generation for tests.
- Updated various test cases to utilize the new function, improving clarity and reducing redundancy in access token acquisition.
- Enhanced team configuration retrieval to expose public settings while hiding sensitive information, improving security in API responses.
2025-10-25 13:26:51 +08:00
Max
f0d56b91ad Update Makefile to exclude 'twilio' from test folder and clean up whitespace in mailer and mailgun provider files 2025-09-28 16:13:29 +08:00
Max
eeac6bbf96 chore: Update .gitignore and Makefile for improved artifact management
- Added backup entries for bindata.go and const.go in .gitignore to prevent accidental commits.
- Refactored Makefile to streamline CUI commit retrieval and ensure consistent versioning in artifact generation.
- Implemented backup and restoration of bindata.go and const.go during the release process for better safety.
2025-05-18 17:37:28 +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
79f77618d3 Remove setup package and related functionality from the project 2024-11-29 16:44:31 +08:00
Max
39bbdbd1b7 Refactor Makefile to include MacOS Application Signing 2024-09-28 08:13:15 +08:00
Max
b25ddd6a53 Update Makefile to include sui/libsui in artifact generation 2024-08-05 09:13:34 +08:00
Max
5f5af44018 Optimize libsui js-sdk loading logic 2024-08-03 08:37:54 +08:00
Max
f2a9598c5c refactor: Update Docker image versions and artifact upload actions 2024-07-04 11:44:09 +08:00
Max
8c4b46fb70 Add Yao Build Environment Docker Image 2024-01-18 13:47:43 +08:00
Max
99b41959f0 Makefile: Update download method for Yao Builder 2023-12-10 21:01:13 +08:00
Max
d75ef3a434 [add] Integrate page builder 2023-12-10 20:42:36 +08:00
Max
06c73e5f1c [add] Integrate page builder ui 2023-12-10 13:59:04 +08:00
Max
b332929300 [_] 2023-09-21 19:58:19 +08:00
Max
6414b2ea67 [_] 2023-09-21 19:44:10 +08:00
Max
3ec4ea2db2 [_] build tests 2023-09-21 18:27:41 +08:00
Max
047eff9e45 [_] 2023-09-01 13:10:11 +08:00
Max
d9b6910227 fix yao-init & get command 2023-05-18 10:58:27 +08:00
Max
60ef6c1e5c [add] neo (50%) 2023-04-29 16:48:37 +08:00
Max
7dc6aad559 [_] 2023-04-27 22:55:22 +08:00
Max
a35ec6bb85 [_] 2023-04-26 19:45:39 +08:00
Max
9530ee60e5 [fix] CI 2023-04-13 01:23:51 +08:00
Max
0ff7fccc55 [change] bindata: update generated bindata 2023-04-02 16:06:02 +08:00
Max
e6919426ee [change] artifact name 2023-04-01 14:55:21 +08:00
Max
424c387dbc [_] 2023-04-01 14:39:24 +08:00
Max
5d2c4349fd [add] migrate studio 2023-04-01 13:28:31 +08:00
Max
c062c6f8ee [change] action workflow & dockerfile 2023-04-01 09:26:18 +08:00
Max
2bd41ed135 [change] start command 2023-03-26 18:21:55 +08:00
Max
8761a26d52 [change] refactor the app engine load func 2023-03-26 15:59:05 +08:00
Max
d43da2ff5c [remove] unused code 2023-03-25 22:11:19 +08:00
Max
f1f58cc99f [add] migrate widgets.table api 2023-03-25 17:46:57 +08:00
Max
5de550781c [add] migrate widgets.table 2023-03-25 13:37:35 +08:00
Max
083232b27e [add] tests 2023-02-03 17:30:47 +08:00
Max
a9e865ff41 [add] migrate store 2023-02-03 15:21:31 +08:00
Max
5faf62a789 [add] migrate importer 2023-02-03 14:43:00 +08:00
Max
a9d5e8dd42 [add] migrate widget 2023-02-03 11:35:48 +08:00
Max
f2b31c17db [add] migrate helper & utils 2023-02-03 11:17:05 +08:00
Max
8b5563f697 [add] migrate runtime 2023-02-03 10:58:39 +08:00
Max
65e80fc737 [add] migrate task & schedule 2023-02-03 10:25:17 +08:00
Max
c3e74b7964 [add] remove system 2023-02-02 19:38:22 +08:00
Max
92920d5d02 [add] migrate cert 2023-02-02 19:25:35 +08:00
Max
292fad2911 [add] migrate plugin 2023-02-02 19:06:42 +08:00