feat: 支持 skills 使用可自动恢复的 Cube sandbox runtime#72
Open
raychen911 wants to merge 1 commit into
Open
Conversation
Contributor
raychen911
commented
May 26, 2026
- 新增 CubeClientConfig 和 create_cube_sandbox_client,统一 Cube sandbox client 创建入口。
- 在 CubeSandboxClient 中支持可选 auto_recover,sandbox 过期或不存在时自动创建新 sandbox,并重试当前失败操作一次。
- 将 Cube 返回的 “requested resource does not exist” 识别为 sandbox 失效信号,用于触发自动恢复。
- 支持通过 CubeSandboxClient 直接创建 CubeWorkspaceRuntime,并暴露 sandbox 生命周期辅助方法。
- 新增共享 workspace runtime resolver helper,并通过 repository.get_workspace_runtime(ctx) 统一获取 skill repository 的 runtime。
- 更新 skill load/run/exec/stager 路径,统一使用 repository 级 workspace runtime,确保同一 repository 下的工具共享同一个 workspace runtime 上下文。
- 新增 CubeClientConfig 和 create_cube_sandbox_client,统一 Cube sandbox client 创建入口。 - 在 CubeSandboxClient 中支持可选 auto_recover,sandbox 过期或不存在时自动创建新 sandbox,并重试当前失败操作一次。 - 将 Cube 返回的 “requested resource does not exist” 识别为 sandbox 失效信号,用于触发自动恢复。 - 支持通过 CubeSandboxClient 直接创建 CubeWorkspaceRuntime,并暴露 sandbox 生命周期辅助方法。 - 新增共享 workspace runtime resolver helper,并通过 repository.get_workspace_runtime(ctx) 统一获取 skill repository 的 runtime。 - 更新 skill load/run/exec/stager 路径,统一使用 repository 级 workspace runtime,确保同一 repository 下的工具共享同一个 workspace runtime 上下文。
9173399 to
1995baf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.