Commit 9726ae8
committed
feat(builtin): add AIOToolSet with Playwright integration and enhance error logging
This commit introduces a new AIOToolSet class that provides comprehensive browser automation capabilities through Playwright integration. The new toolset supports various browser operations including navigation, interaction, page info, advanced JavaScript evaluation, tab management, and file/code execution. It also includes enhanced error logging for Playwright installation issues and improved type safety across the sandbox integration.
The changes also remove the templateType parameter from the sandbox function in mastra integration, update the version check warning to reflect Python SDK, adjust test cases accordingly, and add playwright to the build externals.
build: add playwright to externals in tsup config
feat(builtin): 添加具有 Playwright 集成的 AIOToolSet 并增强错误日志记录
此提交引入了一个新的 AIOToolSet 类,通过 Playwright 集成为浏览器自动化提供全面的功能。新工具集支持各种浏览器操作,包括导航、交互、页面信息、高级 JavaScript 评估、标签页管理和文件/代码执行。它还包括对 Playwright 安装问题的增强错误日志记录,以及在整个沙箱集成中改进的类型安全性。
更改还从 mastra 集成中的 sandbox 函数中移除了 templateType 参数,更新版本检查警告以反映 Python SDK,相应调整测试用例,并在构建外部依赖中添加 playwright。
build: 在 tsup 配置中将 playwright 添加到外部依赖
Signed-off-by: OhYee <oyohyee@oyohyee.com>
Change-Id: I9485e0df19ea33f96792644eb38e2c16af9a31b41 parent 32a6e13 commit 9726ae8
5 files changed
Lines changed: 1179 additions & 83 deletions
File tree
- src
- integration
- builtin
- mastra
- utils
- tests/unittests/integration
0 commit comments