Documentation
¶
Overview ¶
Package acp implements an Agent Client Protocol (ACP) server for hawk, exposing the agent over newline-delimited JSON-RPC 2.0 on stdio so editors (e.g. Zed) can drive it. It mirrors the framing of internal/mcp and the session-driving pattern of internal/daemon.
Scope (first cut): the core agent-side methods (initialize, session/new, session/prompt, session/cancel), streamed session/update notifications, and client-routed tool approvals via session/request_permission. File reads/writes use hawk's local tools; client fs routing is intentionally out of scope.
Index ¶
Constants ¶
const ProtocolVersion = 1
ProtocolVersion is the ACP protocol version this server implements.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an ACP server bound to a single stdio peer.
func NewServer ¶
func NewServer(factory SessionFactory) *Server
NewServer creates an ACP server that builds sessions via factory.
type SessionFactory ¶
SessionFactory creates a fresh, configured engine session for a new ACP session.