Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
ClientInfo acp.Implementation
Logger *slog.Logger
}
Runner launches a local ACP-capable subprocess and runs a single prompt turn.
func (Runner) Start ¶
func (r Runner) Start(ctx context.Context, req shared.RunRequest) (*RunningSession, error)
Start launches the subprocess and begins the ACP initialize/session/prompt flow.
type RunningSession ¶
type RunningSession struct {
// contains filtered or unexported fields
}
RunningSession represents one in-flight ACP turn.
func (*RunningSession) Cancel ¶
func (s *RunningSession) Cancel() error
Cancel terminates the running subprocess.
func (*RunningSession) Done ¶
func (s *RunningSession) Done() <-chan struct{}
Done is closed when the prompt turn finishes.
func (*RunningSession) Events ¶
func (s *RunningSession) Events() <-chan shared.Event
Events returns the translated local ACP event stream.
func (*RunningSession) Wait ¶
func (s *RunningSession) Wait() shared.RunResult
Wait blocks until the turn completes and returns the final result.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package claudecode provides an ACP client for Claude Code via the @agentclientprotocol/claude-agent-acp subprocess adapter.
|
Package claudecode provides an ACP client for Claude Code via the @agentclientprotocol/claude-agent-acp subprocess adapter. |
|
Package cursor provides an ACP client for Cursor CLI via its `agent acp` subprocess (https://cursor.com/docs/cli/acp).
|
Package cursor provides an ACP client for Cursor CLI via its `agent acp` subprocess (https://cursor.com/docs/cli/acp). |
|
Package gemini provides an ACP client for Google Gemini CLI via the Gemini CLI subprocess adapter.
|
Package gemini provides an ACP client for Google Gemini CLI via the Gemini CLI subprocess adapter. |
Click to show internal directories.
Click to hide internal directories.