Help us shape the future of Go! Take the 2026 Go Developer Survey

cardcompat

package
v0.4.45 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cardcompat translates legacy application card conventions at the boundary. Platform renderers only consume the generic card elements it emits.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreLegacyToggle

func IgnoreLegacyToggle(action string) bool

IgnoreLegacyToggle keeps old single-toggle callbacks from becoming agent turns. Native form cards commit their complete selection on the submit action.

func Normalize

func Normalize(card *common.Card) *common.Card

Normalize preserves legacy session-delete cards supplied by downstream hosts. It leaves unrelated cards untouched and never mutates the source card.

func NormalizeAction

func NormalizeAction(name, action string, form map[string]any) string

NormalizeAction preserves callback tokens expected by existing delete commands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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