agent

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package agent implements the in-sandbox agent, a small HTTP server exposing shell, code, and file operations over JSON. All file operations are confined to a single workspace root; resolve rejects ".." traversal and absolute-path escapes.

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 exposes shell, code, and file operations over HTTP, with file access confined to root.

func New

func New(root string) *Server

New constructs a Server whose file operations are confined to root.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the mux wiring every agent endpoint.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL