Skip to content

Commit

Permalink
Merge pull request #89 from conneroisu/feature/simple
Browse files Browse the repository at this point in the history
feature/simple
  • Loading branch information
conneroisu authored Nov 7, 2024
2 parents 915b3b4 + 3c8352d commit 6f45411
Show file tree
Hide file tree
Showing 28 changed files with 2,861 additions and 288 deletions.
63 changes: 0 additions & 63 deletions agents.go

This file was deleted.

68 changes: 0 additions & 68 deletions extensions/e2b/model.go

This file was deleted.

12 changes: 12 additions & 0 deletions extensions/e2b/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,20 @@ func WithCwd(cwd string) Option {
}

// WithWsURL sets the websocket url resolving function for the e2b sandbox.
//
// This is useful for testing.
func WithWsURL(wsURL func(s *Sandbox) string) Option {
return func(s *Sandbox) { s.wsURL = wsURL }
}

// Process Options

// ProcessWithEnv sets the environment variables for the process.
func ProcessWithEnv(env map[string]string) ProcessOption {
return func(p *Process) { p.Env = env }
}

// ProcessWithCwd sets the current working directory for the process.
func ProcessWithCwd(cwd string) ProcessOption {
return func(p *Process) { p.Cwd = cwd }
}
Loading

0 comments on commit 6f45411

Please sign in to comment.