Documentation
¶
Index ¶
- Constants
- func New() runtime.Provider
- func NewWithOptions(opts runtime.StartOptions) runtime.Provider
- func ParseTranscriptEvent(line []byte) (events.Event, error)
- func RunProbe(ctx context.Context, dir string) ([]events.Event, error)
- func RunProbeWithPrompt(ctx context.Context, dir, prompt string) ([]events.Event, error)
- type Client
- func (c *Client) Close() error
- func (c *Client) Events() <-chan events.Event
- func (c *Client) Initialize(ctx context.Context) (json.RawMessage, error)
- func (c *Client) LoadSession(ctx context.Context, sessionID string) (*Session, error)
- func (c *Client) NewSession(ctx context.Context) (*Session, error)
- func (c *Client) ResumeSession(ctx context.Context, sessionID string) (*Session, error)
- type ClientOptions
- type Provider
- func (p *Provider) AnswerPermission(ctx context.Context, sessionID string, requestID string, ...) error
- func (p *Provider) Cancel(ctx context.Context, sessionID string) error
- func (p *Provider) Capabilities(ctx context.Context) (runtime.Capabilities, error)
- func (p *Provider) Close() error
- func (p *Provider) Events(ctx context.Context, sessionID string) (<-chan events.Event, error)
- func (p *Provider) Prompt(ctx context.Context, sessionID string, prompt string) error
- func (p *Provider) Resume(ctx context.Context, sessionID string) (runtime.Session, error)
- func (p *Provider) Start(ctx context.Context, opts runtime.StartOptions) (runtime.Session, error)
- type Session
Constants ¶
View Source
const ProbePrompt = "List the files in this directory and exit."
Variables ¶
This section is empty.
Functions ¶
func NewWithOptions ¶ added in v0.1.0
func NewWithOptions(opts runtime.StartOptions) runtime.Provider
func ParseTranscriptEvent ¶ added in v0.1.0
ParseTranscriptEvent maps either a raw ACP JSON-RPC line or an already normalized Avenor event line into an Event.
Types ¶
type Client ¶ added in v0.1.0
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithOptions ¶ added in v0.1.0
func NewClientWithOptions(ctx context.Context, opts ClientOptions) (*Client, error)
func (*Client) Initialize ¶ added in v0.1.0
func (*Client) LoadSession ¶ added in v0.1.0
func (*Client) NewSession ¶ added in v0.1.0
type ClientOptions ¶ added in v0.1.0
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements runtime.Provider for opencode's ACP stdio transport.
func (*Provider) AnswerPermission ¶
func (*Provider) Capabilities ¶
Click to show internal directories.
Click to hide internal directories.