run

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentContainer

func AgentContainer(rt container.Runtime, opts Options) (int, error)

AgentContainer runs an agent container interactively.

func DetectIDE added in v0.1.9

func DetectIDE(agent string) (string, bool)

DetectIDE checks whether IDE integration should be enabled. It returns the port and true only when the agent is "claude" and the CLAUDE_CODE_SSE_PORT env var contains a valid port number.

func PrepareIDELockFile added in v0.1.9

func PrepareIDELockFile(port string) string

PrepareIDELockFile reads the IDE lock file from the host, rewrites the PID to 1 (the container init process, always valid due to --init), and writes the modified file to a temp directory. Returns the temp directory path, or "" on failure.

func StopIDERelay added in v0.1.9

func StopIDERelay(r *IDERelay)

StopIDERelay safely shuts down the relay. It is nil-safe.

Types

type IDERelay added in v0.1.9

type IDERelay struct {
	Port       string
	SocketPath string
	LockDir    string // temp dir with rewritten lock file
	// contains filtered or unexported fields
}

IDERelay bridges a Unix domain socket to the host IDE's TCP WebSocket port.

func StartIDERelay added in v0.1.9

func StartIDERelay(ipcSocketDir, port string) *IDERelay

StartIDERelay creates ide.sock in the IPC socket directory and starts a goroutine that accepts Unix connections and relays them to the IDE's TCP port on the host (127.0.0.1:<port>).

func (*IDERelay) ContainerArgs added in v0.1.9

func (r *IDERelay) ContainerArgs() []string

ContainerArgs returns the container engine flags needed to enable IDE integration inside the container.

type Options

type Options struct {
	Agent             string
	ProjectDir        string
	WorkspaceHash     string
	WorkspaceOverride string
	NoFirewall        bool
	ReadOnly          bool
	NoEnv             bool
	Resume            bool
	ResumeToken       string
	SessionName       string
	EnvVars           []string
	IncludeDirs       []string
	AllowURLs         []string
	Passthrough       []string
	Verbose           bool
	StatusBar         bool
	Version           string
	Ollama            bool
	Memory            string
	CPUs              string
	Keybindings       string
	FullGitSupport    bool
	RTK               bool
}

Options holds all the flags for running a container.

Jump to

Keyboard shortcuts

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