Versions in this module Expand all Collapse all v0 v0.4.10 Jul 30, 2026 Changes in this version + const MaxFrameSize + const ProtocolName + const ProtocolVersion + var ErrFrameTooLarge = errors.New("extension host: frame exceeds 4 MiB") + var ErrIncompleteFrame = errors.New("extension host: unterminated JSONL frame") + var ErrNotRunning = errors.New("extension host is not running") + var ErrRestarting = errors.New("extension host is restarting") + var ErrUIDialogHostRestarted = &UIDialogCancellationError + func Discover(options DiscoveryOptions) []string + type AgentInfo struct + AgentDir string + CWD string + Name string + Version string + type DiscoveryOptions struct + AgentDir string + CWD string + ConfiguredPaths []string + ExplicitPaths []string + NoDiscovery bool + ProjectConfiguredPaths []string + ProjectResolvedPackagePaths []string + ProjectTrusted bool + ResolvedPackagePaths []string + type LoadError struct + Error string + Path string + type LoadResult struct + Diagnostics []extensions.Diagnostic + Errors []LoadError + Paths []string + Runtime *Runtime + type Manager struct + func NewManager(options Options) *Manager + func (manager *Manager) Close() error + func (manager *Manager) RegisterInto(ctx context.Context, registry *extensions.Registry, paths []string) LoadResult + func (manager *Manager) Reload(ctx context.Context) error + func (manager *Manager) RestartCount() int64 + func (manager *Manager) Runtime() *Runtime + type Options struct + AgentDir string + BackoffBase time.Duration + BackoffMax time.Duration + CWD string + MaxRestarts int + OnDiagnostic func(extensions.Diagnostic) + OrbExecutable string + ProjectTrusted bool + RequestTimeout time.Duration + Runtime *Runtime + SDKVersion string + ShutdownTimeout time.Duration + Stderr io.Writer + Version string + type ProviderInvokeError struct + CanRetry bool + Cause error + ExtensionID string + Method string + ProviderID string + func (err *ProviderInvokeError) Error() string + func (err *ProviderInvokeError) Retryable() bool + func (err *ProviderInvokeError) Unwrap() error + type Runtime struct + Args []string + Name string + Path string + Version string + func DiscoverRuntime(ctx context.Context) (Runtime, error) + type RuntimeUnavailableError struct + NodeVersion string + func (*RuntimeUnavailableError) Error() string + func (err *RuntimeUnavailableError) Diagnostic() extensions.Diagnostic + type UIDialogCancellationError struct + Reason UIDialogCancellationReason + func (err *UIDialogCancellationError) Error() string + type UIDialogCancellationReason string + const UIDialogCancellationHostRestarted