Documentation
¶
Index ¶
- Constants
- func InputSchema(name string) (map[string]any, bool)
- func OutputSchema(name string) (map[string]any, bool)
- type CapabilityItem
- type ManageRequest
- type Result
- type Service
- func (s *Service) CapabilityItems() ([]CapabilityItem, error)
- func (s *Service) InstallReviewedArchive(ctx context.Context, archive string, enabled bool, reviewToken string) (Result, error)
- func (s *Service) InstalledPackage(name string) (pluginruntime.Installed, error)
- func (s *Service) Manage(ctx context.Context, request ManageRequest) (Result, error)
- func (s *Service) ReconcileMCP() error
- func (s *Service) ReleaseMCPLeases()
- func (s *Service) RuntimeCount() (int, error)
- func (s *Service) RuntimeList() (Result, error)
- func (s *Service) UpdateReviewedArchive(ctx context.Context, archive string, reviewToken string) (Result, error)
- func (s *Service) ValidateLocalArchive(ctx context.Context, archive string) (pluginruntime.Review, error)
Constants ¶
View Source
const ToolManage = "plugin_manage"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CapabilityItem ¶
type ManageRequest ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CapabilityItems ¶
func (s *Service) CapabilityItems() ([]CapabilityItem, error)
func (*Service) InstallReviewedArchive ¶ added in v1.1.0
func (s *Service) InstallReviewedArchive(ctx context.Context, archive string, enabled bool, reviewToken string) (Result, error)
InstallReviewedArchive 安装设备已经暂存的候选 ZIP。 资源库下载的包不在用户工作区,不能走 plugin_manage 的 sourcePath; 审核令牌、激活和版本冲突仍使用与普通安装相同的 installResolved。
func (*Service) InstalledPackage ¶ added in v1.1.0
func (s *Service) InstalledPackage(name string) (pluginruntime.Installed, error)
InstalledPackage 读取已安装 Plugin 的受管快照。资源库只按名称导出,不接受外部路径。
func (*Service) ReconcileMCP ¶
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) RuntimeCount ¶ added in v1.0.0
func (*Service) RuntimeList ¶
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.
func (*Service) UpdateReviewedArchive ¶ added in v1.1.0
func (s *Service) UpdateReviewedArchive(ctx context.Context, archive string, reviewToken string) (Result, error)
UpdateReviewedArchive 升级设备已经暂存的候选 ZIP,确认语义与普通 update 相同。
func (*Service) ValidateLocalArchive ¶ added in v1.1.0
func (s *Service) ValidateLocalArchive(ctx context.Context, archive string) (pluginruntime.Review, error)
ValidateLocalArchive 只产生原生审核报告,不安装。
Click to show internal directories.
Click to hide internal directories.