Documentation
¶
Overview ¶
Package castplan defines declarative recordings independently of their language binding.
Index ¶
Constants ¶
View Source
const MarkerPrefix = "atmos:cast:v1:"
MarkerPrefix distinguishes recording metadata from legacy screenshot paths.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Kind string `json:"kind"`
Fields map[string]any `json:"fields,omitempty"`
Children []Action `json:"children,omitempty"`
Expect []Matcher `json:"expect,omitempty"`
Reject []Matcher `json:"reject,omitempty"`
ExitCode int `json:"exit_code,omitempty"`
}
Action describes a command, registered step, presentation action, or nested group.
type Marker ¶
type Marker struct {
Kind string `json:"kind"`
ID string `json:"id,omitempty"`
Fingerprint string `json:"fingerprint,omitempty"`
ExitCode int `json:"exit_code,omitempty"`
}
Marker identifies a declaration boundary without exposing command text or environment values.
type Plan ¶
type Plan struct {
// Replacements normalize machine-specific output; source paths are not part of the portable fingerprint.
Replacements map[string]string `json:"-"`
Configuration map[string]any `json:"configuration"`
Setup []Action `json:"setup,omitempty"`
Actions []Action `json:"actions"`
Cleanup []Action `json:"cleanup,omitempty"`
}
Plan is an ordered recording declaration. Configuration uses existing cast step fields.
func (*Plan) Fingerprint ¶
Fingerprint binds saved evidence to the complete declaration, including hidden actions.
Click to show internal directories.
Click to hide internal directories.