actioncompat

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package actioncompat applies compatibility aliases and parameter normalization policies to canonical catalog action specs.

Index

Constants

View Source
const (
	SourceCompatibility = "compatibility"
	SourceStandalone    = "standalone"
)

Variables

This section is empty.

Functions

func ApplyToActionSpecs

func ApplyToActionSpecs(toolName, baseDomain string, specs []toolutil.ActionSpec) []toolutil.ActionSpec

ApplyToActionSpecs projects compatibility policies into specs for one group.

func ApplyToGroupSpec

ApplyToGroupSpec projects compatibility policies into one catalog group spec.

func ApplyToGroupSpecs

func ApplyToGroupSpecs(groups []actioncatalog.CatalogGroupSpec) []actioncatalog.CatalogGroupSpec

ApplyToGroupSpecs projects compatibility policies into matching ActionSpecs.

func BoolStringValue

func BoolStringValue(value any) (parsed, ok bool)

BoolStringValue parses historical string booleans for bool parameters.

func GitLabAccessLevelValue

func GitLabAccessLevelValue(value any) (int, bool)

GitLabAccessLevelValue normalizes GitLab access level labels and numbers.

func IssueStateEventValue

func IssueStateEventValue(value any) (string, bool)

IssueStateEventValue normalizes historical issue state event spellings.

func NormalizeActionAlias

func NormalizeActionAlias(actionID string) (string, bool)

NormalizeActionAlias canonicalizes an unambiguous historical action alias.

func NormalizeParamsWithExplanation

func NormalizeParamsWithExplanation(actionID string, params, schema map[string]any) (map[string]any, []toolutil.ParamAliasExplanation)

NormalizeParamsWithExplanation applies action-scoped compatibility aliases and coercions for Dynamic execute.

Types

type ActionAlias

type ActionAlias struct {
	Alias          string
	Canonical      string
	Source         string
	Searchable     bool
	Deprecated     bool
	RemovalVersion string
	Reason         string
}

ActionAlias describes one historical action ID alias and its canonical action.

func ActionAliases

func ActionAliases() []ActionAlias

ActionAliases returns historical action ID aliases that are projected into ActionSpec compatibility metadata before the catalog is built.

type ParameterAlias

type ParameterAlias struct {
	ActionID       string
	Alias          string
	Target         string
	Source         string
	Searchable     bool
	Deprecated     bool
	RemovalVersion string
	Reason         string
	SpecMetadata   bool
}

ParameterAlias describes one historical action-scoped parameter alias or coercion policy.

func ParameterAliases

func ParameterAliases() []ParameterAlias

ParameterAliases returns historical action-scoped parameter aliases and coercion policies used by Dynamic execute compatibility normalization.

Jump to

Keyboard shortcuts

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