Commit graph

2379 commits

Author SHA1 Message Date
Max
fd01c6d590 chore: Update Go module dependencies and toolchain version
- Bump Go version from 1.23 to 1.23.0 and set toolchain to go1.23.4.
- Upgrade github.com/expr-lang/expr from v1.16.9 to v1.17.2.
- Update golang.org/x/crypto from v0.31.0 to v0.36.0, golang.org/x/net from v0.33.0 to v0.38.0, and golang.org/x/text from v0.21.0 to v0.23.0.
- Adjust indirect dependencies for golang.org/x/sync and golang.org/x/sys to their latest versions.
2025-03-28 22:56:52 +08:00
Max
f46c445d52
Merge pull request #905 from trheyi/main
feat: Extend SchemaProperty and Parameter structures with new fields
2025-03-22 18:58:47 +08:00
Max
d67807ca2e feat: Extend SchemaProperty and Parameter structures with new fields
- Add Items field to SchemaProperty for better JSON Schema representation.
- Introduce Strict field to Parameter for enhanced parameter validation options.
- Improve data structure flexibility for future tool enhancements.
2025-03-22 18:29:27 +08:00
Max
dd13bf765a
Merge pull request #904 from trheyi/main
docs: Add style ID constants and usage examples to Excel README
2025-03-21 22:14:55 +08:00
Max
f28076f908 docs: Add style ID constants and usage examples to Excel README
- Introduce a section detailing supported style ID constants for borders and fills in the Excel module.
- Provide examples for creating and applying custom styles using the `excel.set.Style` method.
- Enhance documentation clarity for users implementing styling in Excel files.
2025-03-21 22:14:13 +08:00
Max
bbf9fa10c1
Merge pull request #903 from trheyi/main
refactor: Standardize Excel process method names to PascalCase
2025-03-21 22:10:24 +08:00
Max
6f4c2fa5c4 refactor: Standardize Excel process method names to PascalCase
- Update all Excel-related Process method calls in README.md to use PascalCase for consistency.
- Adjust method names such as "excel.open" to "excel.Open" and "excel.write.cell" to "excel.write.Cell" to align with naming conventions.
- Ensure clarity and uniformity in the documentation for better usability.
2025-03-21 22:10:03 +08:00
Max
7ed8e01875
Merge pull request #902 from trheyi/main
fix: Update processOpen to use writable flag for Excel file operations
2025-03-21 21:56:50 +08:00
Max
57fe05bed8 fix: Update processOpen to use writable flag for Excel file operations
- Change the argument from readonly to writable in the processOpen function.
- Adjust the Open function call to reflect the new writable parameter for improved clarity in file handling.
2025-03-21 21:56:22 +08:00
Max
6e0cb1d683
Merge pull request #901 from trheyi/main
feat: Enhance Excel functionality with row and column operations
2025-03-21 21:39:38 +08:00
Max
8eb434cc7a feat: Enhance Excel functionality with row and column operations
- Introduce new process handlers for reading and writing rows and columns in Excel files.
- Update existing methods to utilize absolute paths for file operations, ensuring consistency.
- Add comprehensive tests for new row and column functionalities, including iterators for both.
- Implement rich text and comment handling, along with row height and column width adjustments.
2025-03-21 21:39:03 +08:00
Max
b545f7c236
Merge pull request #900 from trheyi/main
feat: Migrate Excel plugin to built-in functionality
2025-03-21 20:58:10 +08:00
Max
f0da60f467 feat: Migrate Excel plugin to built-in functionality
Move Excel plugin from external plugin to built-in functionality, including:
- Core Excel file operations (open, close, save)
- Sheet manipulation and cell operations
- Row and column iterators
- Process handlers for Excel operations
- Comprehensive test coverage

This change internalizes Excel manipulation capabilities:
- Read/write operations on cells, rows and columns
- Sheet management and styling
- Cell merging and formula handling
- Coordinate conversion utilities
2025-03-21 20:56:35 +08:00
Max
431a6236aa
Merge pull request #899 from trheyi/main
Implement built-in assistant deletion and loading improvements
2025-03-21 19:59:13 +08:00
Max
211e523759 Implement built-in assistant deletion and loading improvements
- Retrieve existing built-in assistants before deletion to ensure accurate removal.
- Update LoadBuiltIn function to track and delete assistants that are no longer present.
- Enhance error handling during the deletion process for better reliability.
2025-03-21 19:57:46 +08:00
Max
c5f636df04
Merge pull request #898 from trheyi/main
Update error message for missing assistant data in GetAssistant method
2025-03-21 18:57:49 +08:00
Max
6edaa712df Update error message for missing assistant data in GetAssistant method
- Change error message from "assistant not found" to "the assistant is empty" for improved clarity in the Xun store.
2025-03-21 18:36:59 +08:00
Max
4ca0e40ad0
Merge pull request #897 from trheyi/main
Refactor assistant save and delete methods for cache management
2025-03-18 15:41:41 +08:00
Max
f820e376ab Refactor assistant save and delete methods for cache management
- Rename variable for clarity in handleAssistantSave method.
- Implement cache removal and reloading for assistants after save and delete operations to ensure data consistency.
- Add GetCache method to retrieve the loaded cache for better cache management.
2025-03-18 15:36:44 +08:00
Max
7a7bca5f9d
Merge pull request #896 from trheyi/main
Enhance assistant loading and ID generation
2025-03-17 18:28:40 +08:00
Max
586ad9866c Enhance assistant loading and ID generation
- Update loadMap function to handle prompts as both string and array types, improving flexibility in data loading.
- Refactor assistant ID generation in SaveAssistant method to use a dedicated GenerateAssistantID function, ensuring unique IDs are created with error handling.
- Add GenerateAssistantID method to create a random 6-digit ID while checking for uniqueness in the database.
2025-03-17 18:28:02 +08:00
Max
b83ff0325b
Merge pull request #895 from trheyi/main
Add connector support for AI assistants in processXgen
2025-03-16 11:50:16 +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
ae3fba4a0b
Merge pull request #894 from trheyi/main
Add type filtering for assistants in API and data loading
2025-03-15 17:58:45 +08:00
Max
97a469bc03 Add type filtering for assistants in API and data loading
- Introduce 'Type' field in AssistantFilter for filtering assistant lists
- Update handleAssistantList and handleAssistantDetail methods to set 'Type' to 'assistant'
- Modify LoadPath function to ensure 'type' is set if not already present
- Adjust GetAssistants and GetAssistantTags methods to apply type filtering in queries
2025-03-15 17:57:35 +08:00
Max
e107f7b3c0
Merge pull request #893 from trheyi/main
Add support for passing arguments in assistant method calls
2025-03-12 17:25:07 +08:00
Max
d3734cf1d0 Add support for passing arguments in assistant method calls
- Extend Context struct to include Args field for storing call arguments
- Modify objectCall.run to capture and store arguments in chat context
- Update context mapping to include arguments when present
2025-03-12 17:24:36 +08:00
Max
902d63e7f2
Merge pull request #892 from trheyi/main
Refactor error handling and logging in chat streaming and API methods
2025-03-07 16:58:35 +08:00
Max
b89a39b192 Refactor error handling and logging in chat streaming and API methods
- Update error handling in handleChat to return and log errors
- Modify streamChat to remove explicit error logging and improve retry mechanism
- Adjust HookRetry method to return nil for more flexible error handling
- Improve error handling in retryMessages method with better index tracking
- Remove redundant error logging in requestMessages method
2025-03-07 16:57:58 +08:00
Max
7e571adeb7
Merge pull request #891 from trheyi/main
Improve error handling in request value execution
2025-03-06 10:48:58 +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
1a7d54040c
Merge pull request #890 from trheyi/main
Handle null return for non-existent shared space keys
2025-03-04 17:32:13 +08:00
Max
47da72bbee Handle null return for non-existent shared space keys
- Modify jsGet method to return null when key is not found
- Add string-based error checking to differentiate between missing keys and other errors
- Improve shared space key retrieval error handling in JavaScript bridge
2025-03-04 17:31:07 +08:00
Max
59d7f469c1
Merge pull request #889 from trheyi/main
Improved Request Context Handling and Enhanced Retry Mechanism
2025-03-04 15:29:36 +08:00
Max
dafd6b029b Enhance retry mechanism with flexible action handling
- Modify HookRetry to support returning NextAction
- Update streamChat to handle different retry response types
- Add type switching for retry hook return values
- Implement execution of NextAction in retry flow
- Improve error handling and response processing during retry
2025-03-04 15:27:40 +08:00
Max
f469568d85 Improve request context handling in chat streaming
- Use request context for client connection tracking
- Replace CloseNotify with context cancellation
- Enhance streaming method to handle request context termination
2025-03-04 12:03:19 +08:00
Max
7164eddaba
Merge pull request #888 from trheyi/main
Add optional options handling in objectCall.run method
2025-03-03 18:14:29 +08:00
Max
709c7ec738 Add optional options handling in objectCall.run method
- Modify options unmarshaling to handle undefined JavaScript options
- Add null check to prevent unmarshaling errors when no options are provided
- Improve robustness of method call argument processing
2025-03-03 18:13:10 +08:00
Max
c412e5d896
Merge pull request #887 from trheyi/main
Handle empty prompt in chat streaming with error callback
2025-03-03 15:27:14 +08:00
Max
48d65c0e39 Handle empty prompt in chat streaming with error callback
- Add error handling for empty prompts in streamChat method
- Ensure proper error message generation and callback invocation
- Improve error propagation in chat streaming scenarios
2025-03-03 15:26:24 +08:00
Max
20e8a14e79
Merge pull request #886 from trheyi/main
Add retry mechanism for chat streaming with error handling
2025-03-03 15:00:18 +08:00
Max
c74d32390c Add retry mechanism for chat streaming with error handling
- Implement HookRetry method to handle retry scenarios in chat streaming
- Add retry tracking with RetryTimes and Retry flag in context
- Create retryMessages method to modify messages for retry attempts
- Enhance error handling and logging for retry scenarios
- Add color-coded error output for retry failures
2025-03-03 14:49:31 +08:00
Max
6256a9c196
Merge pull request #885 from trheyi/main
Add silent mode support for chat history and filtering
2025-03-01 16:58:08 +08:00
Max
392676f2cb Add silent mode support for chat history and filtering
- Implement silent flag in chat and history storage
- Add filter options to retrieve chats and messages with silent mode
- Update store interfaces to support silent message filtering
- Enhance GetChats, GetHistory, and related methods to handle silent messages
- Add comprehensive test cases for silent mode functionality
2025-03-01 16:08:56 +08:00
Max
25a5683e56
Merge pull request #884 from trheyi/main
Implement retry mechanism for assistant method calls
2025-03-01 12:21:15 +08:00
Max
dcc126ef95 Implement retry mechanism for assistant method calls
- Add comprehensive retry handling in objectCall.run method
- Support configurable retry times, delay, and custom retry prompts
- Enhance error handling and input processing during retry attempts
- Modify method signatures to return interface{} for more flexible result handling
- Implement retry event hook for custom retry logic in JavaScript
2025-03-01 12:20:02 +08:00
Max
2c35cbe507
Merge pull request #883 from trheyi/main
Enhance input handling and message processing in assistant methods
2025-02-28 20:14:29 +08:00
Max
86dd04728d Enhance input handling and message processing in assistant methods
- Modify Execute and withHistory methods to support multiple input types
- Add flexible type conversion for input messages using jsoniter
- Implement robust handling of string, map, and slice input formats
- Update method signatures to accept interface{} for more dynamic input processing
- Improve error handling during input marshaling and unmarshaling
2025-02-28 20:13:59 +08:00
Max
24bccc1a89
Merge pull request #882 from trheyi/main
Add shared space methods to JavaScript bridge
2025-02-27 16:35:13 +08:00
Max
ca6d075a22 Add shared space methods to JavaScript bridge
- Implement Set, Get, Del, and Clear methods for shared space interactions
- Add error handling and validation for shared space method calls
- Enhance context management with Release method to clear shared space
- Update context initialization to create a default memory shared space
2025-02-27 16:32:25 +08:00