Documentation
¶
Overview ¶
Package artifacts derives safe terminal artifact metadata and preview posture.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Previewable ¶
func Previewable(ref types.ArtifactRef) bool
Previewable reports terminal-safe textual/image metadata candidates. Actual bytes remain behind artifacts.get_ref and are never read by this package.
Types ¶
type Preview ¶
type Preview struct {
Ref types.ArtifactRef
URL string
}
Preview is safe metadata or a time-bounded external reference, never bytes.
type State ¶
type State struct {
Surface surface.State
Rows []types.ArtifactRow
TotalMatched int
Selected *Preview
SelectedID string
Filter string
Page int
PageSize int
}
State is one session's metadata-only artifact catalog.
func Derive ¶
func Derive(response types.ArtifactsListResponse) State
Derive copies a canonical list response.
func (State) Visible ¶
func (s State) Visible() []types.ArtifactRow
Visible returns metadata rows matching the local bounded filter.
Click to show internal directories.
Click to hide internal directories.