agentplugin

package
v0.0.14-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 13 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

Overview

Package agentplugin validates the supported inert Agents API Plugin format.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid or unsupported Plugin bundle")

Functions

func ValidHTTPHeaders added in v0.0.12

func ValidHTTPHeaders(headers map[string]string) bool

ValidHTTPHeaders reports whether every MCP header has a valid HTTP name and value, with names unique ignoring case.

Types

type Bundle

type Bundle struct {
	Metadata proto.PluginMetadata
	Files    []agentbundle.File
	Skills   []Skill
	MCP      []proto.PluginMCPServer
}

func Inspect

func Inspect(files []agentbundle.File) (Bundle, error)

Inspect consumes files already bounded and rooted by the archive reader or Runtime snapshotter. It never executes or imports the native Plugin manifest.

func Read

func Read(archive []byte, expected proto.PluginMetadata) (Bundle, error)

Read validates the archive and its declared identity without native loading.

type Skill

type Skill struct {
	Metadata     proto.SkillMetadata `json:"metadata"`
	RelativeRoot string              `json:"relative_root"`
}

Skill identifies a validated root inside its preserved Plugin package.

Jump to

Keyboard shortcuts

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