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) 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) StderrTail ¶
StderrTail returns the most recent stderr output for diagnostics.