Commit graph

56 commits

Author SHA1 Message Date
Max
7373b0b6f7 feat(tai): enhance gRPC tunnel functionality and internal host handling
- Introduced ExpandHosts function to parse and expand comma-separated host entries, including special values like "internal" and "localhost".
- Updated gRPC server to utilize the new ExpandHosts function for improved host management.
- Added HostHasInternal function to check for "internal" in host strings, enhancing configuration flexibility.
- Implemented new gRPC endpoints for TaiTunnel registration and forwarding, improving tunnel communication capabilities.
- Refactored authentication logic to include new TaiTunnel endpoints, ensuring proper access control.

Made-with: Cursor
2026-03-12 20:35:17 +08:00
Max
6e68efaba3 Implement gRPC support in the Yao SDK
- Add gRPC server configuration to the application, allowing for gRPC communication.
- Introduce new Makefile targets for gRPC unit testing and proto code generation.
- Update CI workflows to include gRPC tests with SQLite as the transport layer.
- Refactor the sandbox design to support multi-node capabilities and improve isolation.
- Enhance the service layer to facilitate internal request forwarding for gRPC APIs.

This commit lays the groundwork for integrating gRPC into the Yao SDK, improving performance and scalability.
2026-03-04 13:17:48 +08:00
Max
44af6ba759 Enhance command structure with MCP and Robot functionalities
- Introduce new MCP and Robot command groups in the CLI, allowing for better organization of package management commands.
- Add corresponding command descriptions for MCP and Robot functionalities to improve user guidance.
- Update the agent command group to include additional commands for enhanced agent management.
- Modify .gitignore to exclude specific design markdown files from version control.
- Add environment variable for test application path in GitHub workflows to streamline testing setup.
2026-03-03 08:11:43 +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
Max
42b42e1134 feat: Add support for directory mapping from tsconfig in TypeScript import 2024-07-31 11:11:22 +08:00
Max
55ca180f7f [add] TypeScript import support (experimental)
- When YAO_RUNTIME_IMPORT is set to true, TypeScript import will be enabled.
2024-06-05 14:59:25 +08:00
yunfei.liu
fb82fcbdbd log roration 2024-05-08 20:58:09 +08:00
Max
90e05c5be2 Update Runtime Config in types.go 2023-12-27 17:37:41 +08:00
Max
f0b82721c0 [_] 2023-12-22 22:28:22 +08:00
Max
22a2770019 [add] YAO_RUNTIME_TIMEOUT Environment Variable 2023-12-20 22:19:35 +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
8b5563f697 [add] migrate runtime 2023-02-03 10:58:39 +08:00
Max
292fad2911 [add] migrate plugin 2023-02-02 19:06:42 +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
827e0f1884 [i18n] support 2022-10-16 22:23:32 +08:00
Max
9fb8ef2ab6 [add] yao studio api jwt auth support 2022-10-14 18:25:36 +08:00
Max
d74f74b5d9 [add] studio api server 2022-10-13 19:51:07 +08:00
Max
c921f24ce0 [add] fs support & golang version 1.9.2 2022-10-12 20:31:09 +08:00
Max
0f9590715c [change] production mode log level 2022-07-14 09:38:30 +08:00
Max
94a2a6d3c4 [add] Buntdb for session store 2022-05-27 14:18:59 +08:00
Max
6e9bc9b7be [add] redis session store 2022-05-25 23:38:53 +08:00
Max
098f1b53ce [add] cross domain env 2022-04-02 11:55:39 +08:00
Max
7d57145bb2 调整环境变量默认值 2022-02-09 18:06:39 +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