Commit graph

41 commits

Author SHA1 Message Date
Max
9326f4b747 feat(logging): enhance logger output control and add trace diagnostics
- Updated logger methods to respect the new `config.Silent` flag, allowing suppression of console output in development mode.
- Refactored `buildTurnResponse` to utilize a shared `buildTrace` function for improved tool call association.
- Introduced JSON output capabilities in `OutputWriter` for detailed trace and duration reporting.
- Enhanced reporting mechanisms to include trace details in JSON and Markdown formats for better diagnostics.
- Added support for a new `Trace` structure to capture detailed execution information, including tool calls and completion data.
2026-04-28 10:37:04 +08:00
Max
88c55b39c0 Enhance configuration path resolution in LoadWithRoot function
- Update the LoadWithRoot function in config.go to ensure DataRoot is set correctly when it is empty, and resolve relative database paths for SQLite3 driver based on the Root directory.
- Improve handling of non-absolute paths for primary and secondary database connections, enhancing overall configuration management.
2026-02-21 16:11:26 +08:00
Max
ce137b34f5 Enhance tool inspection and remove studio configuration
- Add external tool inspection functionality in the engine, allowing detection of tools like FFmpeg, PDF converters, and Docker.
- Update the `inspect` command to include detected tools in the output.
- Remove the studio configuration from the application, simplifying the configuration structure and related code.
- Clean up unused studio-related code in various files, including login processing and configuration management.
2026-02-14 21:06:59 +08:00
Max
17013f459f Update .gitignore and Refactor Path Resolution in Config
- Added MULTI_TURN_DESIGN.md to .gitignore to prevent tracking of design documents in the test directory.
- Refactored the LoadWithRoot function in config.go for improved readability by adjusting indentation for the absolute path resolution logic.
2025-12-25 12:13:04 +08:00
Max
8223a44885 Fix Redundant Code in LoadWithRoot Function for Path Resolution
- Removed unnecessary conditional check in the LoadWithRoot function, streamlining the path resolution logic for the configuration root.
- Ensured that the function consistently resolves the absolute path of the configuration root, improving code clarity and maintainability.
2025-12-25 12:05:49 +08:00
Max
7f44e442da Enhance File Handling and Input Parsing in Test Framework
- Introduced support for file attachments in test inputs using the `file://` protocol, allowing images, audio, and documents to be loaded and converted to appropriate formats.
- Updated `ParseInput` and related functions to handle file references, ensuring seamless integration of file content into messages.
- Enhanced error handling and path resolution for file loading, considering both relative paths and the `YAO_ROOT` environment variable.
- Expanded documentation to include examples of file attachments and their usage in test cases, improving clarity for users.
2025-12-25 11:50:58 +08:00
Max
4a1c0ec100 Enhance assistant initialization and context management
- Added a new method to set store settings during assistant initialization, allowing for configuration of storage parameters such as MaxSize and TTL.
- Updated context creation methods to streamline the setup process, ensuring that essential fields are populated consistently across various test contexts.
- Revised tests to validate the new initialization behavior and context management, ensuring proper handling of assistant settings and context properties.
2025-12-11 15:17:17 +08:00
Max
c25fbb22d7 Add trace management to context and enhance configuration options
- Introduced a trace manager in the context struct for lazy initialization and management of trace operations.
- Implemented the Trace method in the context to facilitate trace object creation and management within JavaScript.
- Enhanced configuration options for trace drivers, including defaults for local and store drivers, and added path and prefix settings.
- Updated related tests to verify the functionality of the new trace management features.
2025-11-19 12:27:42 +08:00
Max
c425b74383 Refactor error handling in various components to improve logging and message formatting
- Updated error messages to use fmt.Errorf with %s for better clarity and consistency.
- Enhanced logging statements to utilize formatted strings for improved readability.
- Refactored multiple Load functions across different modules to standardize error handling practices.
2025-09-28 10:24:17 +08:00
Max
d7693a0487 Refactor startup logic to improve directory checks and enhance welcome message display 2024-11-29 17:36:45 +08:00
yunfei.liu
fb82fcbdbd log roration 2024-05-08 20:58:09 +08:00
Max
46ad1e761c [add] yao.table.Load & yao.form.Load & fix reload 2023-05-11 22:20:02 +08:00
Max
48415db96d [fix] config init 2023-04-24 17:58:06 +08:00
Max
ce4aaf667f [fix] setup & config 2023-04-24 17:38:29 +08:00
Max
0317b6558f [change] optimize the application initializer 2023-04-08 12:05:53 +08:00
Max
5d2c4349fd [add] migrate studio 2023-04-01 13:28:31 +08:00
Max
2bd41ed135 [change] start command 2023-03-26 18:21:55 +08:00
Max
5faf62a789 [add] migrate importer 2023-02-03 14:43:00 +08:00
Max
a807899f95 [*] migrate to gou v0.10.3 (50%) 2023-02-01 17:25:11 +08:00
Max
93ba063cb4 [add] setup 2022-10-28 11:58:05 +08:00
Max
9fb8ef2ab6 [add] yao studio api jwt auth support 2022-10-14 18:25:36 +08:00
Max
0f9590715c [change] production mode log level 2022-07-14 09:38:30 +08:00
Max
6e9bc9b7be [add] redis session store 2022-05-25 23:38:53 +08:00
Max
fed5069ed2 规范日志输出 2022-02-09 17:46:10 +08:00
Max
ea72f26d5e 调整环境变量 2022-02-09 00:49:57 +08:00
Max
c3fcfa857c 优化 Session 载入机制 2021-11-29 10:27:38 +08:00
Max
1fc21beeee v0.9.10 优化 process 增加 会话服务器 2021-11-29 00:27:42 +08:00
Max
ec007a0bba 保存工作流 2021-11-26 17:16:48 +08:00
Max
668b33ffb7 [add] WorkFlow 定义 2021-11-26 14:22:36 +08:00
Max
3f68510076 + JWT, Captcha, Password 校验 2021-11-21 21:15:33 +08:00
Max
80f2a001fe fix config bug 2021-11-07 19:41:35 +08:00
Max
0eb09ecaf9 fix config bug 2021-11-07 19:34:10 +08:00
Max
42262ce799 + 共享库支持 2021-11-06 15:11:53 +08:00
Max
2253a98903 v0.8.11 支持前台静态文件服务器 2021-10-20 17:51:30 +08:00
Max
3d2d97f20d + 文件上传接口 2021-10-12 09:02:49 +08:00
Max
271fdd4230 fix path bug 2021-10-08 22:50:03 +08:00
Max
6ae845c91c fix init test bug 2021-10-07 18:23:11 +08:00
Max
a342cd50b0 升级到 Gou 支持 SQLite 2021-10-07 13:24:41 +08:00
Max
91ca7476a1 v0.6.5 2021-10-01 14:50:48 +08:00
Max
ce627aedb7 用户登录 + 验证码 + 用户输出 2021-09-29 20:11:17 +08:00
Max
475de09dd0 + Login 2021-09-29 19:32:22 +08:00
Renamed from global/config.go (Browse further)