process

package
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SandboxTypeNone = "none"
	SandboxTypeShai = "shai"

	DefaultShaiWorkdir      = "/src"
	DefaultShaiWorktreePath = "/src/git"
	DefaultShaiInbox        = "/src/inbox"
	DefaultShaiOutbox       = "/src/outbox"
)

Variables

This section is empty.

Functions

func BuildProcessEnv

func BuildProcessEnv(env map[string]string) []string

func BuildProcessEnvMap

func BuildProcessEnvMap(env map[string]string) map[string]string

func ContainsOpVisibleSentinel

func ContainsOpVisibleSentinel(value interface{}) bool

func ExecuteProcess

func ExecuteProcess(ctx context.Context, req RunRequest) ([]byte, []byte, error)

func SandboxType

func SandboxType(sandbox *SandboxInput) string

func TransformOperationPaths

func TransformOperationPaths(_ context.Context, rawSandbox interface{}, host ops.OperationPaths) (ops.OperationPathTransformResult, error)

Types

type RunRequest

type RunRequest struct {
	WorkspaceRoot  string
	WorkingDir     string
	ConfigFile     string
	Shell          string
	Run            string
	Command        []string
	Env            map[string]string
	Stdin          []byte
	Sandbox        *SandboxInput
	RequiredMounts []ops.RequiredMount
}

type SandboxInput

type SandboxInput struct {
	Type  string             `json:"type,omitempty" yaml:"type,omitempty"`
	Paths *SandboxPathConfig `json:"paths,omitempty" yaml:"paths,omitempty"`
}

func ParseSandboxInput

func ParseSandboxInput(raw interface{}) (*SandboxInput, error)

type SandboxPathConfig

type SandboxPathConfig struct {
	Workdir      SandboxPathMapping `json:"workdir,omitempty" yaml:"workdir,omitempty"`
	WorktreePath SandboxPathMapping `json:"worktree_path,omitempty" yaml:"worktree_path,omitempty"`
	Inbox        SandboxPathMapping `json:"inbox,omitempty" yaml:"inbox,omitempty"`
	Outbox       SandboxPathMapping `json:"outbox,omitempty" yaml:"outbox,omitempty"`
}

type SandboxPathMapping

type SandboxPathMapping struct {
	Host    string `json:"host,omitempty" yaml:"host,omitempty"`
	Sandbox string `json:"sandbox,omitempty" yaml:"sandbox,omitempty"`
	Mode    string `json:"mode,omitempty" yaml:"mode,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL