Commit graph

2246 commits

Author SHA1 Message Date
Max
d3cc034e07
Merge pull request #914 from trheyi/main
fix: Update processRead to return string representation of table data
2025-03-31 09:19:27 +08:00
Max
13f89e8395 fix: Update processRead to return string representation of table data
- Modify processRead function to return the string output of the table read operation instead of a map.
- Update unit test for TestProcessRead to check for substring presence in the result, ensuring correct functionality.
2025-03-31 09:02:03 +08:00
Max
df5425d725
Merge pull request #913 from trheyi/main
feat: Add table listing and DSL retrieval processes
2025-03-31 08:53:08 +08:00
Max
eba6ba49c0 feat: Add table listing and DSL retrieval processes
- Implement processList to return all loaded tables and processDSL to retrieve the DSL of a specified table.
- Add unit tests for the new processes to ensure correct functionality and data integrity.
- Update process registration in exportProcess to include the new operations.
2025-03-31 08:52:25 +08:00
Max
33927699c5
Merge pull request #912 from trheyi/main
feat: Add sheet existence check to Excel module
2025-03-29 18:17:26 +08:00
Max
cae4d06373 feat: Add sheet existence check to Excel module
- Implement processSheetExists function to verify if a specified sheet exists in the workbook.
- Update README.md with usage examples for the new sheet existence check feature.
- Add unit tests for SheetExists functionality to ensure accurate detection of existing and non-existent sheets.
2025-03-29 18:16:58 +08:00
Max
4a93fef39a
Merge pull request #911 from trheyi/main
fix: Update directory creation permissions in Open function
2025-03-29 17:26:59 +08:00
Max
5d01f62a9e fix: Update directory creation permissions in Open function
- Change directory creation permissions from 0644 to 0755 in the Open function to align with standard directory permission practices, ensuring proper access for created directories.
2025-03-29 17:26:24 +08:00
Max
4990c60ce9
Merge pull request #910 from trheyi/main
refactor: Simplify data handling in processWriteAll function
2025-03-29 17:20:42 +08:00
Max
bc576f1bab refactor: Simplify data handling in processWriteAll function
- Replace individual row handling with a unified approach to convert input values into a two-dimensional slice of interfaces.
- Streamline the writing process by directly passing the constructed slice to the WriteAll method, enhancing code clarity and maintainability.
2025-03-29 17:19:58 +08:00
Max
2e051e02f0
Merge pull request #909 from trheyi/main
feat: Add sheet name validation to Excel module
2025-03-29 17:11:12 +08:00
Max
efb588bbd1 feat: Add sheet name validation to Excel module
- Implement validateSheetName function to check for invalid characters, empty names, and length restrictions for sheet names.
- Integrate validation into CreateSheet, UpdateSheet, and CopySheet methods to ensure compliance before proceeding with operations.
- Enhance WriteAll method to create a new sheet if it doesn't exist, improving robustness in sheet handling.
2025-03-29 17:10:34 +08:00
Max
059635f16b
Merge pull request #908 from trheyi/main
feat: Add sheet management operations to Excel module
2025-03-29 17:02:45 +08:00
Max
6e4b7cd59e feat: Add sheet management operations to Excel module
- Implement new process handlers for creating, reading, updating, copying, and deleting sheets in Excel files.
- Enhance the Open function to automatically create directories for file paths if they do not exist.
- Update README.md to include detailed documentation and examples for new sheet operations, improving user guidance.
2025-03-29 17:02:18 +08:00
Max
c36a5886a5
Merge pull request #907 from trheyi/main
chore: Update go-colorable dependency to v0.1.14 and refactor express…
2025-03-28 23:38:03 +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
936be1722b
Merge pull request #906 from trheyi/main
chore: Update Go module dependencies and toolchain version
2025-03-28 22:57:32 +08:00
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