Commit graph

2337 commits

Author SHA1 Message Date
Max
18db28247c
Merge pull request #959 from trheyi/main
feat: Update versioning and commit information in Makefile and versio…
2025-05-18 16:47:58 +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
4ffc2d559b
Merge pull request #958 from trheyi/main
⚠️ BREAKING: Rename XGen to CUI and update license terms
2025-05-18 12:17:12 +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
bdd69637d9
Merge pull request #957 from trheyi/main
chore: Update Go version in CI workflows to 1.24
2025-05-18 10:20:34 +08:00
Max
42e5e5ecdb chore: Update Go version in CI workflows to 1.24
- Updated the Go version in both `pr-test.yml` and `unit-test.yml` workflows from 1.23 to 1.24 to ensure compatibility with the latest features and improvements.
2025-05-18 10:19:19 +08:00
Max
fc345da85e
Merge pull request #956 from trheyi/main
refactor: Simplify sheet dimension retrieval in Excel processing
2025-05-15 13:03:49 +08:00
Max
c357c72934 refactor: Simplify sheet dimension retrieval in Excel processing
- Replaced the previous method of calculating sheet dimensions with a more efficient approach using the `Cols` method.
- Removed commented-out code related to dimension handling, streamlining the function for better readability and maintainability.
2025-05-15 13:02:13 +08:00
Max
74db0d9a53
Merge pull request #955 from trheyi/main
feat: Add row reading and dimension retrieval functionalities for Exc…
2025-05-15 12:56:53 +08:00
Max
1cce634d24 feat: Add row reading and dimension retrieval functionalities for Excel sheets
- Implemented `excel.sheet.rows` to read specified rows from a sheet with pagination support.
- Added `excel.sheet.dimension` to retrieve the number of rows and columns in a sheet.
- Enhanced the Excel processing logic to handle new functionalities and updated related tests.
- Updated README with examples for the new features.
2025-05-15 12:56:28 +08:00
Max
a66bc2c4ca
Merge pull request #954 from trheyi/main
feat: Add support for Vision and Search in Assistant API
2025-05-14 16:03:49 +08:00
Max
aca3014167 feat: Add support for Vision and Search in Assistant API
- Introduced Vision and Search capabilities in the Assistant API, enhancing its functionality.
- Updated the Context struct to include Vision and Search fields for better context management.
- Added a new Search type to facilitate search engine integration.
- Adjusted the execute method to handle the new features appropriately.
2025-05-14 16:03:13 +08:00
Max
91883eb2f5
Merge pull request #953 from trheyi/main
fix: Correct assistant ID handling in chat methods
2025-05-13 15:20:14 +08:00
Max
51cb155d73 fix: Correct assistant ID handling in chat methods
- Updated the assignment of assistant_id to use the Default value from neo.Use, ensuring consistent behavior when the assistant_id is nil.
- Adjusted the logic for determining assistant_deleteable to compare against the Default value, improving clarity and correctness in chat functionality.
2025-05-13 15:18:25 +08:00
Max
a12378e346
Merge pull request #952 from trheyi/main
fix: Enhance loading functions to handle non-existent directories
2025-05-13 09:10:42 +08:00
Max
fabced291c fix: Enhance loading functions to handle non-existent directories
- Added checks in various loading functions to ignore processing if the respective directories do not exist, improving error handling and preventing unnecessary operations.
- Updated the Load function signature to return warnings alongside errors, allowing for better feedback on loading issues across different components.
2025-05-13 09:10:10 +08:00
Max
c3b30a018e
Merge pull request #951 from trheyi/main
fix: Add support for attachments in message mapping
2025-05-12 14:39:02 +08:00
Max
15f3f0adf8 fix: Add support for attachments in message mapping
- Implemented functionality to handle attachments in the Map method of the Message struct.
- Added JSON parsing for attachments, ensuring proper error handling and feedback during the process.
2025-05-12 14:38:37 +08:00
Max
dcad01db10
Merge pull request #950 from trheyi/main
fix: Update download URL for Yao binary in Dockerfiles
2025-05-09 15:39:45 +08:00
Max
8b7d56a83d fix: Update download URL for Yao binary in Dockerfiles
- Changed the download URL for the Yao binary in both development and production Dockerfiles to a new location.
- Ensured that the binary is still installed correctly with the appropriate permissions.
2025-05-09 15:39:00 +08:00
Max
c084e68427
Merge pull request #949 from trheyi/main
fix: Comment out Assistant metadata in error handling within Assistan…
2025-05-09 15:26:15 +08:00
Max
6934381319 fix: Comment out Assistant metadata in error handling within Assistant API
- Commented out the Assistant metadata in error handling to prevent unnecessary data exposure during error responses.
- Ensured that the output is sent to the client correctly in the streamChat method, maintaining clarity in the execution flow.
2025-05-09 15:25:39 +08:00
Max
6f615766cc
Merge pull request #948 from trheyi/main
fix: Update client type constant for Android in context management
2025-05-09 12:23:40 +08:00
Max
eb89272048 fix: Update client type constant for Android in context management
- Renamed ClientTypeSDK to ClientTypeAndroid for clarity and consistency in client type definitions.
- Updated SupportedClientTypes map to reflect the change in client type naming.
2025-05-09 12:14:41 +08:00
Max
6599a24ffb
Merge pull request #947 from trheyi/main
fix: Improve result handling in Assistant API streamChat method
2025-05-09 12:09:47 +08:00
Max
dc54d17f2b fix: Improve result handling in Assistant API streamChat method
- Refactored the result handling logic to ensure that the output is sent to the client correctly, whether a callback is provided or not.
- Simplified the flow by removing redundant callback handling when a result is available.
2025-05-09 12:09:19 +08:00
Max
3b943b25c0
Merge pull request #946 from trheyi/main
fix: Update asset metadata and improve error handling in Agent class
2025-05-09 10:51:16 +08:00
Max
4c7b1547e8 fix: Update asset metadata and improve error handling in Agent class
- Updated modification times for various asset files in bindata.go to reflect recent changes.
- Enhanced error handling in the Agent class in libsui/agent.ts by providing more descriptive error messages for rejected promises.
- Improved message parsing error handling to ensure clearer feedback on failures.
2025-05-09 10:50:49 +08:00
Max
e618de72e6
Merge pull request #945 from trheyi/main
feat: Update asset metadata and enhance Assistant API functionality
2025-05-09 10:28:33 +08:00
Max
c44c332334 feat: Update asset metadata and enhance Assistant API functionality
- Updated modification times for various asset files in bindata.go to reflect recent changes.
- Refactored the Assistant API to improve result handling and streamline message processing.
- Removed unused stream handling code in the Assistant, simplifying the execution flow.
- Enhanced the Agent class in libsui/agent.ts to better manage message states and improve error handling.
2025-05-09 10:27:31 +08:00
Max
ac55508e05
Merge pull request #944 from trheyi/main
feat: Enhance context management and update asset metadata in SUI
2025-05-08 20:06:24 +08:00
Max
712bb99ab1 feat: Enhance context management and update asset metadata in SUI
- Updated modification times for various asset files in bindata.go to reflect recent changes.
- Improved context handling in the API by adding support for silent mode, history visibility, and client type.
- Refactored assistant ID usage to ensure consistent access to the default assistant across various methods.
- Enhanced the Agent class in libsui/agent.ts to manage silent mode and history visibility settings effectively.
2025-05-08 20:05:39 +08:00
Max
dec0a7db6e
Merge pull request #943 from trheyi/main
Update asset metadata and enhance Agent class functionality in SUI
2025-05-08 12:21:36 +08:00
Max
afc2971830 Update asset metadata and enhance Agent class functionality in SUI
- Updated modification times for various asset files in bindata.go to reflect recent changes.
- Enhanced the Agent class in libsui/agent.ts by adding type tracking for message processing, improving message creation logic based on type changes.
- Improved event handling in the Agent class to streamline message processing and enhance user interactions.
2025-05-08 12:21:07 +08:00
Max
deb8d18326
Merge pull request #942 from trheyi/main
Update asset metadata and enhance Agent class functionality in SUI
2025-05-07 15:10:00 +08:00
Max
54e291b804 Update asset metadata and enhance Agent class functionality in SUI
- Updated modification times for various asset files in bindata.go to reflect recent changes.
- Enhanced the Agent class in libsui/agent.ts by adding context management and a cancel method for better resource handling.
- Improved type definitions and event handling in the Agent class to streamline message processing and enhance user interactions.
2025-05-07 15:07:52 +08:00
Max
979057ae2b
Merge pull request #941 from trheyi/main
feat: Enhance context management and agent functionality in SUI
2025-05-06 19:25:00 +08:00
Max
83bdab3499 feat: Enhance context management and agent functionality in SUI
- Added support for assistant ID in context handling to improve user-specific interactions.
- Updated asset metadata in bindata.go to reflect recent changes in modification times.
- Enhanced the Agent class in libsui/agent.ts with improved type definitions for the Call method, ensuring better type safety and clarity in asynchronous operations.
- Improved event handling in the Agent class to manage message completion more effectively.
2025-05-06 19:24:06 +08:00
Max
96cc9011a5
Merge pull request #940 from trheyi/main
Update asset metadata and enhance event handling in SUI
2025-05-06 12:43:11 +08:00
Max
3b723fbce8 Update asset metadata and enhance event handling in SUI
- Updated modification times for various asset files in bindata.go to reflect recent changes.
- Enhanced event handling in libsui/index.ts to support parent component names for event binding, improving flexibility and error handling.
2025-05-06 12:42:40 +08:00
Max
0efb57f961
Merge pull request #939 from trheyi/main
fix: Update asset metadata and enhance route handling in SUI
2025-05-05 18:13:14 +08:00
Max
01c524be54 fix: Update asset metadata and enhance route handling in SUI
- Updated modification times for various asset files in bindata.go to reflect recent changes.
- Enhanced route handling in libsui/index.ts to support optional route parameters, improving flexibility in component rendering.
- Added initialization for sub-components within the rendering process, enhancing component lifecycle management and error handling.
2025-05-05 18:11:47 +08:00
Max
dc961e7af0
Merge pull request #938 from trheyi/main
feat: Update asset metadata and enhance Agent class in SDK
2025-05-05 16:24:24 +08:00
Max
d894f0a1e9 feat: Update asset metadata and enhance Agent class in SDK
- Updated modification times for various asset files in bindata.go to reflect recent changes.
- Enhanced the Agent class in libsui/agent.ts with improved type definitions and event handling.
- Introduced new interfaces for message structures and event handlers, streamlining message processing.
- Refactored the Call method to better manage message states and improve error handling.
2025-05-05 16:18:57 +08:00
Max
d731296b94 refactor: Clean up and standardize code formatting in bindata.go
- Reorganized import statements for consistency.
- Removed unnecessary blank lines and standardized indentation for better readability.
- Updated map initialization syntax for improved clarity and uniformity.
2025-05-05 14:53:05 +08:00
Max
68b98f9f62
Merge pull request #937 from trheyi/main
# Enhanced Yao AI Agent SDK
2025-05-05 12:49:40 +08:00
Max
595709f834 # Enhanced Yao AI Agent SDK
Improved the Yao AI Agent SDK with better type definitions and error handling.

## Key Updates
- Added typed interfaces for attachments and messages
- Optimized attachment handling (only send when present)
- Enhanced error handling with specific error messages
- Improved event system for message streaming
- Added comprehensive TypeScript definitions
2025-05-05 12:48:58 +08:00
Max
6b84dc7128
Merge pull request #936 from trheyi/main
feat: Improve error handling and result processing in Assistant API
2025-04-29 20:38:07 +08:00
Max
bc13b0d83f feat: Improve error handling and result processing in Assistant API
- Update streamChat method to set a default prompt for error messages, enhancing user guidance.
- Refactor case handling in streamChat to better manage boolean and map results, improving response clarity.
- Modify HookRetry method to streamline result extraction and handle action presence more effectively, ensuring robust error handling.
2025-04-29 20:35:27 +08:00
Max
591215ca77
Merge pull request #935 from trheyi/main
feat: Enhance result handling in Assistant API and hooks
2025-04-28 12:50:14 +08:00