共享核心保障跨语言功能一致
通过将状态管理(目标处理、帧跟踪、CDP 派发)迁移至浏览器扩展中,Stagehand v4 将各语言 SDK 简化为轻量级 RPC 客户端,从而支持 TypeScript、Python 和 Go 版本同步发布,并借助单一核心更新即可维持跨语言功能一致性。
支持这项说法
Stagehand v4 介绍:面向浏览器代理的 SDK。
将实现逻辑移入扩展后,每个 SDK 都成为一个轻量级客户端,其调用跨越单一 RPC 边界。我们只需在核心实现中发布一次新功能,所有语言的 SDK 就能立即获得该功能——TypeScript、Python 和 Go 版本因此可同步上线,并在后续持续保持功能一致。
原始摘录
By putting it in the extension, each SDK becomes a thin client over one RPC boundary. We ship a feature to the core implementation once and every language has it immediately, which is what made launching TypeScript, Python, and Go together possible and what keeps them at parity afterward.