Documentation
¶
Index ¶
- type Backend
- func (b *Backend) ClaimIdle() string
- func (b *Backend) CreateSandbox(ctx context.Context, opts mcpserver.SandboxOpts) (string, error)
- func (b *Backend) DeleteSandbox(ctx context.Context, name string) error
- func (b *Backend) ExecStream(ctx context.Context, name string, command []string) (mcpserver.ExecResult, error)
- func (b *Backend) IdleCount(_ context.Context) (int, error)
- func (b *Backend) ListSandboxes(ctx context.Context) ([]mcpserver.SandboxStatus, error)
- func (b *Backend) Release(name string)
- type Engine
- type LaunchOpts
- type LaunchResult
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements backend.Backend using agent-compose.
func NewBackend ¶
NewBackend creates a Backend wrapping a compose Engine.
func (*Backend) CreateSandbox ¶
func (*Backend) DeleteSandbox ¶
func (*Backend) ExecStream ¶
func (*Backend) ListSandboxes ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine wraps agent-compose's Engine with aimux-specific defaults.
func (*Engine) Inner ¶
func (e *Engine) Inner() *pkgcompose.Engine
Inner returns the underlying agent-compose Engine for direct access.
func (*Engine) KillSandbox ¶
KillSandbox stops a sandbox by name.
func (*Engine) LaunchInSandbox ¶
func (e *Engine) LaunchInSandbox(provider, dir string, opts LaunchOpts) (*LaunchResult, error)
LaunchInSandbox provisions an OpenShell sandbox (create, inject OTEL env, set egress policy) and returns its name. It does not open the interactive terminal; the caller does that via terminal.NewOpenShellExec(SandboxName), which runs "openshell sandbox connect" in a real PTY.
type LaunchOpts ¶
LaunchOpts configures a sandbox launch.
type LaunchResult ¶
LaunchResult carries information about a successfully provisioned sandbox. The interactive terminal is established separately by the caller via terminal.NewOpenShellExec(SandboxName, ...).
type Options ¶
type Options struct {
Binary string // openshell binary path (default: "openshell")
Gateway string // gateway endpoint
Insecure bool // skip TLS verification
Image string // default sandbox image
Executor pkgcompose.Executor // optional: inject for testing
}
Options configures the compose Engine adapter.