Commit graph

297 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
77efc03582 feat: Enhance global build context and component handling
- Update NewGlobalBuildContext to accept a template parameter for improved context management.
- Refactor component handling in Compile method to include JIT components, enhancing dynamic component loading.
- Modify TemplateRender to utilize the updated global context, improving template processing.
- Adjust component attribute parsing to use "s:route" for better clarity in component identification.
2025-04-23 16:08:10 +08:00
Max
8371a8959f chore: Update go-colorable dependency to v0.1.14 and refactor expression execution
- Bump github.com/mattn/go-colorable from v0.1.13 to v0.1.14 in go.mod and go.sum.
- Refactor expression execution in pipe and core data handling to use a map for improved type safety.
2025-03-28 23:37:13 +08:00
Max
e59dacefa2 Improve error handling in request value execution
- Modify request value execution to log errors when method calls fail
- Prevent propagation of errors during value resolution
- Update error message in data merging to be more descriptive
2025-03-06 10:48:27 +08:00
Max
68a97a48e6 Update URL handling in request data to use mapped URL 2024-12-03 16:21:52 +08:00
Max
35911de0ea Enhance SEO metadata handling by adding keywords support and fixing og:title attribute syntax 2024-11-29 11:12:37 +08:00
Max
3074a8e432 libsui $Query class to support multiple elements in constructor 2024-10-09 11:26:37 +08:00
Max
ce4d775981 Optimize libsui error reporting 2024-10-01 07:41:21 +08:00
Max
574c2aad82 fix sui dynamic components render bug 2024-09-30 18:42:42 +08:00
Max
371490360e fix misspelling 2024-09-30 17:07:29 +08:00
Max
369d6cc4d8 fix sui dynamic components import bug 2024-09-30 17:02:24 +08:00
Max
896e52a52a Fix PublicRoot bug and get Sid from request 2024-09-25 08:25:37 +08:00
Max
ddb337847e Refactor request guard to include page backend script execution 2024-09-24 08:00:05 +08:00
Max
67ad169bf5 Refactor dynamic component parsing in SUI core 2024-09-11 09:24:34 +08:00
Max
fb6518e91f Fix the bug in real-time rendering mode 2024-09-10 16:29:15 +08:00
Max
0a21780473 Refactor component attribute handling to support spread operator and real-time rendering mode 2024-09-10 09:23:10 +08:00
Max
72542dab79 chore: Merge user data into payload in SUI libsui index.ts 2024-09-03 18:15:12 +08:00
Max
07353d0084 Add s:route attribute to real time render components 2024-09-03 17:40:31 +08:00
Max
d00b62caf1 Refactor event binding in SUI core to support just-in-time mode 2024-09-02 18:28:16 +08:00
Max
db033a10fd [add] SUI real-time rendering mode supports event binding (page event only) 2024-09-02 17:04:22 +08:00
Max
a3d2baef40 Refactor component attribute handling to support spread operator 2024-08-30 10:42:25 +08:00
Max
219f71b00e chore: Refactor TemplateRender to handle optional request parameters 2024-08-23 12:20:33 +08:00
Max
02651085d7 Improve SUI TemplateRender 2024-08-10 19:34:36 +08:00
Max
ce96d89c31 Improve SUI TemplateRender 2024-08-10 18:12:32 +08:00
Max
0f6bc06172 fix render public root bug 2024-08-10 17:18:35 +08:00
Max
80779bb0fc [feat] add SUI template.render process 2024-08-10 16:58:38 +08:00
Max
f531b32634 Improve SUI Component element manipulation methods and add queryAll method 2024-08-08 18:57:47 +08:00
Max
38884a7b0c Improve SUI Component element manipulation methods and add queryAll method 2024-08-07 17:42:16 +08:00
Max
ae5e60aefa chore: Improve SUI Component element manipulation methods and add empty expression helper 2024-08-07 15:52:58 +08:00
Max
252e1793ac chore: Add empty expression helper and improve SUI Component element manipulation methods 2024-08-07 11:11:11 +08:00
Max
f6ae0cef47 [add] Empty expression helper 2024-08-07 11:08:25 +08:00
Max
c5cf0babf9 Refactor component initialization script to include injected code 2024-08-07 11:02:43 +08:00
Max
f44021d582 chore: improve SUI Component element manipulation methods 2024-08-06 20:10:48 +08:00
Max
d61ebadf43 chore: improve SUI Component element manipulation methods 2024-08-06 18:49:21 +08:00
Max
3bacc297cf chore: Fix error handling in Run function and improve page config loading 2024-08-06 16:31:56 +08:00
Max
fba0a865dc chore: Update __Query class to return null when no element is found 2024-08-06 16:03:00 +08:00
Max
ad7954dbb2 chore: Update cacheStore field name in PageSetting struct 2024-08-06 14:48:12 +08:00
Max
2a19ef857b chore: Update __Query class to accept both string and Element types for selector 2024-08-06 09:31:36 +08:00
Max
197b155280 chore: Update __Query class to accept both string and Element types for selector 2024-08-05 16:29:45 +08:00
Max
bd6999745d chore: Refactor __Query class to improve element manipulation methods 2024-08-05 15:21:55 +08:00
Max
e0dd59c180 chore: Add new methods to __Query class for element manipulation 2024-08-05 15:19:57 +08:00