Conversation
Collaborator
|
@md322613 thanks for the PR, will have a look |
Author
|
Anything I can do to move this along? Happy to rebase, split it up, or adjust to conventions I have missed. If workspace sandbox providers are not something you are taking right now, that is a fine answer and I would rather know than leave it open. |
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.
Adds
@vibe-kit/opsen, following the structure ofpackages/e2b.opsen runs agent sandboxes and proxies their model calls, so machine, model and tool spend land under one task id.
Why another provider. Every sandbox in the current list bills for the machine and leaves the model bill with a different vendor — VibeKit's agent config takes a separate model provider and API key, so a team running Grok on a sandbox holds two bills with no shared identifier. Here
instance.cost()returns machine, model and tool spend under one task id, andbudgetUsdis a ceiling enforced mid-run rather than a number found on an invoice.Agent attribution. VibeKit runs grok, claude, codex, gemini and opencode through one provider, so
agentTypeis written as a label at session creation. "Which agent cost what" is only answerable if it is recorded when the session starts.Interface. Implements
SandboxProviderandSandboxInstance, with the interfaces declared locally as the other providers do. Typechecks clean against the published@opsendev/opsenclient.One limitation, stated plainly.
getHost(port)depends on the runtime underneath. It works on E2B, works on Modal when the port was declared at sandbox creation, and throws with a message naming the limitation where unavailable, rather than returning a URL that does not answer.Also adds
docs/supported-sandboxes/opsen.mdxand itsdocs.jsonnav entry, followinge2b.mdx.Happy to restructure to match house conventions.