Documentation
¶
Overview ¶
Package objects provides immutable, typed checkpoints backed by JobDB artifacts.
Index ¶
- Constants
- func ExpandSchema(schema map[string]any) (map[string]any, error)
- func IsInternalArtifact(name string) bool
- func JSONValue(value any) (any, error)
- func Transform(value any, fn func(Ref) (any, error)) (any, error)
- func ValidationRef(objectType string) map[string]any
- type Config
- type Ref
- type Snapshot
- type Store
Constants ¶
const ArtifactPrefix = "__c2j_objects__/"
const Marker = "$c2j_object"
const Version = "v1"
Variables ¶
This section is empty.
Functions ¶
func ExpandSchema ¶
ExpandSchema translates the object annotation into ordinary JSON Schema so nested properties, items, unions and local $refs use the same validator. Only schema-valued keywords are visited; defaults/examples remain data.
func IsInternalArtifact ¶
func Transform ¶
Transform walks nested inputs/outputs, retaining native scalar values. References are leaves: their storage descriptors are not walked as inputs.
func ValidationRef ¶
ValidationRef is a shape-only placeholder for recipe validation, never execution.
Types ¶
type Ref ¶
type Ref struct {
Format string `json:"$c2j_object"`
Type string `json:"type"`
TenantID string `json:"tenant_id"`
Artifact jobdb.ArtifactKey `json:"artifact"`
SHA256 string `json:"sha256"`
}
Ref identifies an exact checkpoint. Metadata and files live in its artifact, never in the recipe value. The type includes its contract version, e.g. c2ops.codex.session/v1, independently of this reference format's version.