Commit graph

2280 commits

Author SHA1 Message Date
Max
91cf52632f
Merge pull request #931 from trheyi/main
refactor: Update message handling to ignore progress messages
2025-04-19 15:38:52 +08:00
Max
57e8389afd refactor: Update message handling to ignore progress messages
- Modify message handling logic to include "progress" in the list of ignored message types alongside "loading", "error", and "action".
- Comment out the loading message sending logic in the Execute method to streamline the process and improve clarity in message flow.
2025-04-19 15:38:12 +08:00
Max
e4b76a9a08
Merge pull request #930 from trheyi/main
feat: Enhance message structure with ToolID for improved context
2025-04-16 16:53:01 +08:00
Max
6203b5ccf2 feat: Enhance message structure with ToolID for improved context
- Add ToolID field to Message struct to associate messages with specific tools.
- Update streamChat method to include ToolID in message handling for better tracking.
- Modify message properties to incorporate ToolID, enhancing clarity in message processing.
2025-04-16 16:52:32 +08:00
Max
492645b378
Merge pull request #929 from trheyi/main
refactor: Rename BeginAt and EndAt fields for consistency in message …
2025-04-16 16:41:05 +08:00
Max
f1de4c07f8 refactor: Rename BeginAt and EndAt fields for consistency in message handling
- Change BeginAt and EndAt fields to Begin and End in Message struct for improved clarity.
- Update related methods and parameters across the codebase to reflect the new naming convention.
- Ensure consistency in timestamp handling within the ScanTokens function and message processing methods.
2025-04-16 16:40:45 +08:00
Max
ac22599865
Merge pull request #928 from trheyi/main
feat: Refactor token management and enhance message scanning
2025-04-16 16:23:34 +08:00
Max
712c8ade62 feat: Refactor token management and enhance message scanning
- Update ScanTokens function to utilize ScanCallbackParams for improved clarity and structure in token processing.
- Modify ClearToken method to accept an ID parameter, enhancing token stack management.
- Refactor GenerateWithAI and streamChat methods to leverage new token handling features, improving message flow and context.
- Introduce BeginAt and EndAt fields in message processing for better timing accuracy.
2025-04-16 16:23:00 +08:00
Max
9182a96bb6
Merge pull request #927 from trheyi/main
feat: Upgrade JWT library and enhance token validation
2025-04-16 14:43:42 +08:00
Max
77b991ed20 feat: Upgrade JWT library and enhance token validation
- Update JWT library from v3.2.2 to v4.5.2 for improved security and features.
- Refactor JwtClaims to use RegisteredClaims for better compliance with the latest JWT standards.
- Introduce token length and format validation in JwtValidate function to enhance security.
- Modify JwtMake function to utilize time.Duration for timeout settings, improving clarity and usability.
2025-04-16 14:43:09 +08:00
Max
17686a77c6
Merge pull request #926 from trheyi/main
feat: Enhance message handling with timestamps and token management
2025-04-16 14:30:38 +08:00
Max
14f447c782 feat: Enhance message handling with timestamps and token management
- Introduce BeginAt and EndAt fields in Message struct to track message timing.
- Update NewText and NewType methods in Contents to accept Extra struct for better metadata handling.
- Modify ScanTokens function to manage token IDs and beginning timestamps, improving token processing accuracy.
- Refactor GenerateWithAI and streamChat methods to utilize new timestamp features, enhancing message context and flow.
2025-04-16 14:29:50 +08:00
Max
0073e249ba
Merge pull request #925 from trheyi/main
feat: Add current time message to formatMessages function
2025-04-10 10:52:34 +08:00
Max
1fadfe0882 feat: Add current time message to formatMessages function
- Introduce a system message containing the current time formatted in RFC3339 to the beginning of the filtered messages in the formatMessages function, enhancing message context for users.
2025-04-10 10:50:29 +08:00
Max
caa529dc58
Merge pull request #924 from trheyi/main
feat: Enhance getTimestamp function to support time.Time type
2025-04-10 10:46:51 +08:00
Max
1e047a86eb feat: Enhance getTimestamp function to support time.Time type
- Add case for time.Time in getTimestamp function to return Unix timestamp in nanoseconds, improving versatility in timestamp handling.
2025-04-10 10:46:19 +08:00
Max
951da60267
Merge pull request #923 from trheyi/main
feat: Add Developer information to AppInfo structure and update proce…
2025-04-09 23:07:08 +08:00
Max
645861d7a1 feat: Add Developer information to AppInfo structure and update processXgen
- Introduce Developer struct to encapsulate developer details such as ID, Name, Info, Email, and Homepage.
- Update processXgen to include developer information in the generated settings map, enhancing app metadata.
2025-04-09 23:05:45 +08:00
Max
52c128529c
Merge pull request #922 from trheyi/main
feat: Enhance SchemaProperty and Parameter structures with additional…
2025-04-09 16:25:09 +08:00
Max
5965460c3f feat: Enhance SchemaProperty and Parameter structures with additional fields
- Add OneOf and Enum fields to SchemaProperty for improved schema flexibility.
- Update Parameter structure to include optional description, OneOf, and Enum fields.
- Modify generateExampleValue function to handle new OneOf and Enum logic for generating example values.
2025-04-09 16:24:46 +08:00
Max
8551bdfdf6
Merge pull request #921 from trheyi/main
Refactor: Remove deprecated retry logic from objectCall, use the retr…
2025-04-08 12:30:24 +08:00
Max
55e3bb4387 Refactor: Remove deprecated retry logic from objectCall, use the retry hook instead.
- Comment out the retry function and related logic in the run method to streamline the codebase.
- Update the options structure to remove unused retry parameters, enhancing clarity and maintainability.
- Ensure that error handling remains intact while simplifying the execution flow of the assistant.
2025-04-08 12:29:48 +08:00
Max
fed99ab7d9
Merge pull request #920 from trheyi/main
feat: Add ConsoleMode configuration to runtime settings
2025-04-04 18:27:34 +08:00
Max
c59e12434a feat: Add ConsoleMode configuration to runtime settings
- Introduce ConsoleMode parameter in the Start function to allow configuration based on the provided runtime settings.
- Enhance runtime initialization by incorporating the new ConsoleMode option from the configuration.
2025-04-04 18:26:35 +08:00
Max
5d18e12999
Merge pull request #919 from trheyi/main
feat: Enhance Pinyin processing with additional options and tests
2025-04-04 16:35:59 +08:00
Max
f2882c3cbb feat: Enhance Pinyin processing with additional options and tests
- Update ProcessPinyin function to support tone as a string ("mark" for tone marks, "number" for numeric tones) and add heteronym functionality for multiple pronunciations.
- Modify README.md to include examples for new tone options and heteronym mode.
- Expand unit tests to cover various configurations for tone and heteronym, ensuring comprehensive validation of Pinyin conversion scenarios.
2025-04-04 16:35:34 +08:00
Max
3bf0cd8d61
Merge pull request #918 from trheyi/main
feat: Add Pinyin processing functionality to string utilities
2025-04-04 16:23:21 +08:00
Max
efb9da57c1 feat: Add Pinyin processing functionality to string utilities
- Introduce ProcessPinyin function to convert Chinese characters to Pinyin with customizable options for tone and separator.
- Register the new Pinyin process in the utils package for easy access.
- Add comprehensive unit tests for various Pinyin conversion scenarios to ensure accuracy and reliability.
2025-04-04 16:22:39 +08:00
Max
2e74595ad0
Merge pull request #917 from trheyi/main
fix: Update Assistant API to handle arguments and improve error logging
2025-04-03 14:38:02 +08:00
Max
46b0947dfd fix: Update Assistant API to handle arguments and improve error logging
- Modify APIPayload structure to include Args field for passing arguments.
- Enhance error handling in Call method by adding logging for method not found scenarios.
- Adjust Call method to handle cases with and without arguments, ensuring flexibility in API usage.
2025-04-03 14:36:39 +08:00
Max
8ace21a617
Merge pull request #916 from trheyi/main
fix: Enhance message role handling in Assistant API and object
2025-04-02 09:14:50 +08:00
Max
af002aa396 fix: Enhance message role handling in Assistant API and object
- Add logging for empty message roles in requestMessages function to aid debugging.
- Default message role to "assistant" if not provided in jsSend function, ensuring consistent message handling.
- Clean up error handling in jsReplace function for improved clarity.
2025-04-02 09:14:09 +08:00
Max
bf7901021f
Merge pull request #915 from trheyi/main
fix: Correct processRead output format and enhance unit tests
2025-03-31 09:54:43 +08:00
Max
547b880ca5 fix: Correct processRead output format and enhance unit tests
- Adjust processRead function to ensure it returns the correct string representation of table data.
- Refine unit test for TestProcessRead to validate substring presence in the output, confirming the function's accuracy.
2025-03-31 09:54:07 +08:00
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