Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentContainer ¶
AgentContainer runs an agent container interactively.
func DetectIDE ¶ added in v0.1.9
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
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
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
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.