pluginwire

package
v1.5.167 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 1 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 pluginwire defines the host-side wire types for the legacy stdio plugin v1 protocol. Process lifecycle, trust and tool adaptation live in internal/extensions; this package is deliberately data-only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallParams

type CallParams struct {
	Name      string          `json:"name"`
	Arguments json.RawMessage `json:"arguments"`
}

type CallResult

type CallResult struct {
	Content string `json:"content"`
	IsError bool   `json:"isError,omitempty"`
}

type CommandSpec

type CommandSpec struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Prompt      string `json:"prompt,omitempty"`
}

type EventParams

type EventParams struct {
	Type string          `json:"type"`
	Data json.RawMessage `json:"data,omitempty"`
}

type Manifest

type Manifest struct {
	Name     string        `json:"name"`
	Version  string        `json:"version,omitempty"`
	Tools    []ToolSpec    `json:"tools,omitempty"`
	Commands []CommandSpec `json:"commands,omitempty"`
	Events   []string      `json:"events,omitempty"`
}

Manifest is returned by a legacy plugin's initialize call. Commands remain visible for compatibility diagnostics but are not invoked directly: business operations must be exposed as gated tools.

type ToolSpec

type ToolSpec struct {
	Name        string          `json:"name"`
	Description string          `json:"description"`
	Schema      json.RawMessage `json:"schema"`
}

Jump to

Keyboard shortcuts

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