agentprocess

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package agentprocess provides the shared bridge-backed stdio process used by direct External Agent drivers. Protocol framing and lifecycle stay with each Driver; this package only owns byte transport, stderr capture, and shutdown.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	// contains filtered or unexported fields
}

Process is one long-lived command running through a workspace bridge exec stream and exposed as an io.ReadWriter.

func Start

func Start(ctx context.Context, client *bridge.Client, command, workDir string, env []string) (*Process, error)

Start launches command without a bridge-side timeout. Closing the returned process cancels the exec stream and terminates the command.

func (*Process) Close

func (p *Process) Close() error

Close terminates the process and waits briefly for the stream to settle.

func (*Process) CloseStdin

func (p *Process) CloseStdin()

CloseStdin ends input without stopping the process.

func (*Process) Done

func (p *Process) Done() <-chan struct{}

Done is closed when the process exits.

func (*Process) Err

func (p *Process) Err() error

Err reports a transport failure or nonzero exit after Done closes.

func (*Process) Read

func (p *Process) Read(b []byte) (int, error)

func (*Process) StderrTail

func (p *Process) StderrTail() string

StderrTail returns the most recent stderr output for diagnostics.

func (*Process) Write

func (p *Process) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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