Commit graph

20 commits

Author SHA1 Message Date
Max
f2099babd9 Update Go module dependencies and enhance assistant context management
- Upgraded Go version to 1.25 and updated several dependencies, including `testify` to v1.11.1 and added new indirect dependencies for JSON schema validation.
- Refactored the assistant's context management to utilize a new `context.Uses` structure, improving the handling of vision, audio, search, and fetch configurations.
- Enhanced the assistant's request building process to support new response formats, including JSON schema validation, ensuring better integration with various tools and services.
2025-11-15 10:05:57 +08:00
Max
b2dbe7ac51 Refactor OTP tests and cleanup code
- Removed unnecessary blank lines in otp_test.go and otp.go files for improved readability.
- Ensured consistency in test assertions for alphanumeric code generation and default behavior with zero values.
- Streamlined the benchmark test for alphanumeric code generation, enhancing performance measurement clarity.
2025-10-15 17:21:52 +08:00
Max
c4ecda54e9 Refactor captcha handling in tests and core functionality
- Updated captcha test cases to utilize the new CaptchaGet function for retrieving captcha answers, improving test reliability.
- Refactored CaptchaMake and CaptchaValidate functions to leverage a new utils package for better encapsulation and maintainability.
- Enhanced error handling and logging in captcha-related processes, contributing to a more robust user experience during authentication.
- Streamlined the captcha generation process by integrating with the utils.captcha package, ensuring consistency across the codebase.
2025-10-15 15:43:16 +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
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
67de1c07cb Securely update hidden props in the DSL that are only visible to the backend 2024-11-02 17:38:37 +08:00
Max
f451eb12a8 feat: add utils.fmt.Printf and utils.fmt.ColorPrintf 2024-07-30 17:44:17 +08:00
imcode
29f8dd87d4 fix utils.env.Set bug 2024-03-18 16:56:55 +08:00
Max
14a97da330 Update API mirror URL and fix test case 2024-02-14 22:01:27 +08:00
Max
864b35ecf1 [add] pipe widget (dev 80%) 2024-02-14 21:33:04 +08:00
Max
bdc172df39 Add utils.url.* processes 2024-01-25 20:37:51 +08:00
Max
e394e75ffa fixt tests 2023-09-21 17:23:05 +08:00
Max
5a3d42a965 fix CROS bug 2023-09-21 11:32:03 +08:00
Max
2f77721d00 [add] process utils.str.UUID 2023-04-09 19:04:04 +08:00
Max
f2b31c17db [add] migrate helper & utils 2023-02-03 11:17:05 +08:00
Max
a807899f95 [*] migrate to gou v0.10.3 (50%) 2023-02-01 17:25:11 +08:00
Max
91ba4be66d [add] utils.tree.Flatten process 2022-12-07 18:32:02 +08:00
Max
319bc667e7 [add] utils.now.*, utils.time.*, utils.str.* 2022-11-14 22:22:56 +08:00
Max
2a60fe1345 [change] migrate processes 2022-11-10 11:07:52 +08:00
Max
361487b621 [change] login widget for the xgen-next (done) 2022-09-21 19:13:17 +08:00