Documentation
¶
Overview ¶
Package actioncompat applies compatibility aliases and parameter normalization policies to canonical catalog action specs.
Index ¶
- Constants
- func ApplyToActionSpecs(toolName, baseDomain string, specs []toolutil.ActionSpec) []toolutil.ActionSpec
- func ApplyToGroupSpec(group actioncatalog.CatalogGroupSpec) actioncatalog.CatalogGroupSpec
- func ApplyToGroupSpecs(groups []actioncatalog.CatalogGroupSpec) []actioncatalog.CatalogGroupSpec
- func BoolStringValue(value any) (parsed, ok bool)
- func GitLabAccessLevelValue(value any) (int, bool)
- func IssueStateEventValue(value any) (string, bool)
- func NormalizeActionAlias(actionID string) (string, bool)
- func NormalizeParamsWithExplanation(actionID string, params, schema map[string]any) (map[string]any, []toolutil.ParamAliasExplanation)
- type ActionAlias
- type ParameterAlias
Constants ¶
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 ¶
func ApplyToGroupSpec(group actioncatalog.CatalogGroupSpec) actioncatalog.CatalogGroupSpec
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 ¶
BoolStringValue parses historical string booleans for bool parameters.
func GitLabAccessLevelValue ¶
GitLabAccessLevelValue normalizes GitLab access level labels and numbers.
func IssueStateEventValue ¶
IssueStateEventValue normalizes historical issue state event spellings.
func NormalizeActionAlias ¶
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.