Documentation
¶
Overview ¶
Package devserver hosts the HTTP surface the agent IDE talks to. Every endpoint is read-only — code is canon, the IDE never writes back through this server. The shape mirrors what the frontend's `lib/agent-api.ts` consumes: list skills, fetch a skill's parsed graph, subscribe to file-watcher events, scaffold a starter project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server bundles the parser + watcher into the HTTP routes the IDE consumes. One Server is constructed per `gridctl agent dev` invocation; tests build it with NewServer(root, nil) to skip the watcher subscription.
func NewServer ¶
NewServer constructs a Server rooted at the given directory. A nil watcher disables the SSE endpoint — useful for unit tests that want only the parser surface.