vscodeagent

package
v0.31.1 Latest Latest
Warning

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

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

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