Help us shape the future of Go! Take the 2026 Go Developer Survey

plugin

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ToolManage = "plugin_manage"

Variables

This section is empty.

Functions

func InputSchema

func InputSchema(name string) (map[string]any, bool)

func OutputSchema

func OutputSchema(name string) (map[string]any, bool)

Types

type CapabilityItem

type CapabilityItem struct {
	Name        string
	Version     string
	Enabled     bool
	Description string
	SkillsCount int
	MCPCount    int
	Format      string
}

type ManageRequest

type ManageRequest struct {
	Action      string `json:"action"`
	Name        string `json:"name,omitempty"`
	Source      string `json:"source,omitempty"`
	Enabled     *bool  `json:"enabled,omitempty"`
	ReviewToken string `json:"review_token,omitempty"`
	DataPolicy  string `json:"data_policy,omitempty"`
}

type Result

type Result = toolcore.Result

type Service

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

func New

func New(cfg config.Config, manager *pluginruntime.Manager, mcpClients *mcpclient.Manager, envs *envstore.Store, ws *workspace.Workspace) *Service

func (*Service) CapabilityItems

func (s *Service) CapabilityItems() ([]CapabilityItem, error)

func (*Service) Manage

func (s *Service) Manage(ctx context.Context, request ManageRequest) (Result, error)

func (*Service) ReconcileMCP

func (s *Service) ReconcileMCP() error

func (*Service) ReleaseMCPLeases

func (s *Service) ReleaseMCPLeases()

ReleaseMCPLeases releases package references after the MCP client manager has closed the corresponding child processes/connections.

func (*Service) RuntimeList

func (s *Service) RuntimeList() (Result, error)

RuntimeList returns the read-only Plugin index used by the internal Runtime API. It is intentionally not a plugin_manage action because agentdock_context already provides the model-facing Plugin index.

Jump to

Keyboard shortcuts

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