plugins

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 16 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 plugins discovers and calls aitk-<name> executables (ADR-0007, docs/spec/integrations.md).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifest

func Manifest(cfg project.Config, p *Plugin) error

Manifest asks a plugin for its manifest.

Types

type Plugin

type Plugin struct {
	Name    string   `json:"name"`
	Path    string   `json:"path"`
	Enabled bool     `json:"enabled"`
	Version string   `json:"version,omitempty"`
	Hooks   []string `json:"hooks,omitempty"`
	Error   string   `json:"error,omitempty"`
}

Plugin is a discovered executable.

func Discover

func Discover(cfg project.Config) []Plugin

Discover lists aitk-* executables on PATH (first match wins, like the shell).

type Result

type Result struct {
	Plugin string          `json:"plugin"`
	Data   json.RawMessage `json:"data,omitempty"`
	Err    string          `json:"error,omitempty"`
}

Result of one hook call.

func Call

func Call(p *project.Project, hook string, payload map[string]any, task any) []Result

Call invokes hook on every enabled plugin that declares it. Failures become Result.Err.

Jump to

Keyboard shortcuts

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