vscodeagent

package
v0.32.7 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 35 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ErrParseError     = -32700
	ErrInvalidRequest = -32600
	ErrMethodNotFound = -32601
	ErrInvalidParams  = -32602
	ErrInternal       = -32603
)
View Source
const Identity = "vscode"
View Source
const ProtocolVersion = 1

Variables

View Source
var ErrSetupRequired = errors.New("vscodeagent: setup required")

Functions

This section is empty.

Types

type ApprovalBroker

type ApprovalBroker struct {
	// contains filtered or unexported fields
}

func NewApprovalBroker

func NewApprovalBroker(
	request func(context.Context, libacp.RequestPermissionRequest) (libacp.RequestPermissionResponse, error),
	activePolicy func(context.Context) hitlPolicyRef,
	sessionID func(context.Context) string,
) *ApprovalBroker

func (*ApprovalBroker) AskApproval

func (b *ApprovalBroker) AskApproval(ctx context.Context, req hitlservice.ApprovalRequest) (bool, error)

type Runtime

type Runtime struct {
	Engine       *enginesvc.Engine
	Agent        agentservice.Agent
	Chain        *taskengine.TaskChainDefinition
	FIMChain     *taskengine.TaskChainDefinition
	CompactChain *taskengine.TaskChainDefinition
	Close        func()
}

type RuntimeBuilder

type RuntimeBuilder func(ctx context.Context, hooks RuntimeHooks) (*Runtime, error)

type RuntimeHooks

type RuntimeHooks struct {
	AskApproval localtools.AskApproval
	EventSink   taskengine.TaskEventSink
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(cfg ServerConfig) (*Server, error)

func (*Server) Run

func (s *Server) Run(ctx context.Context, r io.Reader, w io.Writer) error

type ServerConfig

type ServerConfig struct {
	DB             libdb.DBManager
	StateDir       string
	WorkspaceID    string
	WorkspaceCWD   string
	Version        string
	RuntimeBuilder RuntimeBuilder
	PolicyNames    []string
}

Jump to

Keyboard shortcuts

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