agentplugin

package
v0.0.12-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 12 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

This section is empty.

Types

type Bundle

type Bundle struct {
	Metadata Metadata
	Files    []agentbundle.File
	Skills   []Skill
	MCP      []MCPServer
}

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 Metadata) (Bundle, error)

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

type MCPServer

type MCPServer struct {
	Name              string            `json:"-"`
	Type              string            `json:"type,omitempty"`
	URL               string            `json:"url,omitempty"`
	BearerTokenEnvVar string            `json:"bearer_token_env_var,omitempty"`
	HTTPHeaders       map[string]string `json:"http_headers,omitempty"`
	Command           string            `json:"command,omitempty"`
	Args              []string          `json:"args,omitempty"`
	EnvVars           []string          `json:"env_vars,omitempty"`
	CWD               string            `json:"cwd,omitempty"`
}

MCPServer is an inert package declaration. Environment variables are resolved from installed user configuration by Runtime, never from the parser's process.

type Metadata

type Metadata struct {
	Type        string `json:"type"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Skill

type Skill struct {
	Metadata     agentskill.Metadata `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