Versions in this module Expand all Collapse all v1 v1.0.0 Oct 7, 2026 Changes in this version + type EditorFS struct + func NewEditorFS() *EditorFS + func (w *EditorFS) Open(ctx context.Context, path string) (io.ReadCloser, error) + func (w *EditorFS) ReadFile(ctx context.Context, path string) ([]byte, error) + func (w *EditorFS) Stat(ctx context.Context, path string) (agentcoretools.FileInfo, error) + func (w *EditorFS) WriteFile(ctx context.Context, path string, data []byte, perm fs.FileMode) error + type Server struct + func NewServer(version string) *Server + func (s *Server) Approve(ctx context.Context, p interact.Approval) (interact.Verdict, error) + func (s *Server) Ask(context.Context, []interact.Question) (interact.Answers, error) + func (s *Server) Authenticate(context.Context, acp.AuthenticateRequest) (acp.AuthenticateResponse, error) + func (s *Server) Cancel(context.Context, acp.CancelNotification) error + func (s *Server) CloseSession(context.Context, acp.CloseSessionRequest) (acp.CloseSessionResponse, error) + func (s *Server) FS() agentcoretools.FS + func (s *Server) Initialize(_ context.Context, req acp.InitializeRequest) (acp.InitializeResponse, error) + func (s *Server) ListSessions(context.Context, acp.ListSessionsRequest) (acp.ListSessionsResponse, error) + func (s *Server) Logout(context.Context, acp.LogoutRequest) (acp.LogoutResponse, error) + func (s *Server) NewSession(_ context.Context, req acp.NewSessionRequest) (acp.NewSessionResponse, error) + func (s *Server) Prompt(ctx context.Context, req acp.PromptRequest) (acp.PromptResponse, error) + func (s *Server) ResumeSession(context.Context, acp.ResumeSessionRequest) (acp.ResumeSessionResponse, error) + func (s *Server) Serve(a *app.App) error + func (s *Server) SetSessionConfigOption(context.Context, acp.SetSessionConfigOptionRequest) (acp.SetSessionConfigOptionResponse, error) + func (s *Server) SetSessionMode(_ context.Context, req acp.SetSessionModeRequest) (acp.SetSessionModeResponse, error)