Documentation
¶
Overview ¶
Package server exposes wingman as an ACP server. External clients (Zed, other IDEs) speak the ACP protocol over the subprocess stdio; this adapter translates each ACP RPC into a call on a *coder.Agent.
One coder.Agent is held per cwd (workspace) and refcounted by session. Inside a workspace, all sessions share model + effort — wingman's design — even though ACP clients expect per-session selection. The wider design picks "shared" over per-session because the wingman UX has always been agent-wide.
Index ¶
- func Run(ctx context.Context, in io.Reader, out io.Writer) error
- type Server
- func (s *Server) Authenticate(_ context.Context, _ acpsdk.AuthenticateRequest) (acpsdk.AuthenticateResponse, error)
- func (s *Server) Cancel(_ context.Context, params acpsdk.CancelNotification) error
- func (s *Server) CloseSession(_ context.Context, params acpsdk.CloseSessionRequest) (acpsdk.CloseSessionResponse, error)
- func (s *Server) Initialize(_ context.Context, _ acpsdk.InitializeRequest) (acpsdk.InitializeResponse, error)
- func (s *Server) ListSessions(ctx context.Context, params acpsdk.ListSessionsRequest) (acpsdk.ListSessionsResponse, error)
- func (s *Server) LoadSession(ctx context.Context, params acpsdk.LoadSessionRequest) (acpsdk.LoadSessionResponse, error)
- func (s *Server) NewSession(ctx context.Context, params acpsdk.NewSessionRequest) (acpsdk.NewSessionResponse, error)
- func (s *Server) Prompt(ctx context.Context, params acpsdk.PromptRequest) (acpsdk.PromptResponse, error)
- func (s *Server) ResumeSession(ctx context.Context, params acpsdk.ResumeSessionRequest) (acpsdk.ResumeSessionResponse, error)
- func (s *Server) SetSessionConfigOption(ctx context.Context, params acpsdk.SetSessionConfigOptionRequest) (acpsdk.SetSessionConfigOptionResponse, error)
- func (s *Server) SetSessionMode(_ context.Context, _ acpsdk.SetSessionModeRequest) (acpsdk.SetSessionModeResponse, error)
- func (s *Server) UnstableSetSessionModel(ctx context.Context, params acpsdk.UnstableSetSessionModelRequest) (acpsdk.UnstableSetSessionModelResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Authenticate ¶
func (s *Server) Authenticate(_ context.Context, _ acpsdk.AuthenticateRequest) (acpsdk.AuthenticateResponse, error)
func (*Server) CloseSession ¶
func (s *Server) CloseSession(_ context.Context, params acpsdk.CloseSessionRequest) (acpsdk.CloseSessionResponse, error)
func (*Server) Initialize ¶
func (s *Server) Initialize(_ context.Context, _ acpsdk.InitializeRequest) (acpsdk.InitializeResponse, error)
func (*Server) ListSessions ¶
func (s *Server) ListSessions(ctx context.Context, params acpsdk.ListSessionsRequest) (acpsdk.ListSessionsResponse, error)
func (*Server) LoadSession ¶
func (s *Server) LoadSession(ctx context.Context, params acpsdk.LoadSessionRequest) (acpsdk.LoadSessionResponse, error)
func (*Server) NewSession ¶
func (s *Server) NewSession(ctx context.Context, params acpsdk.NewSessionRequest) (acpsdk.NewSessionResponse, error)
func (*Server) Prompt ¶
func (s *Server) Prompt(ctx context.Context, params acpsdk.PromptRequest) (acpsdk.PromptResponse, error)
func (*Server) ResumeSession ¶
func (s *Server) ResumeSession(ctx context.Context, params acpsdk.ResumeSessionRequest) (acpsdk.ResumeSessionResponse, error)
func (*Server) SetSessionConfigOption ¶
func (s *Server) SetSessionConfigOption(ctx context.Context, params acpsdk.SetSessionConfigOptionRequest) (acpsdk.SetSessionConfigOptionResponse, error)
func (*Server) SetSessionMode ¶
func (s *Server) SetSessionMode(_ context.Context, _ acpsdk.SetSessionModeRequest) (acpsdk.SetSessionModeResponse, error)
func (*Server) UnstableSetSessionModel ¶
func (s *Server) UnstableSetSessionModel(ctx context.Context, params acpsdk.UnstableSetSessionModelRequest) (acpsdk.UnstableSetSessionModelResponse, error)
Click to show internal directories.
Click to hide internal directories.