Skip to main content

Module content_type

Module content_type 

Source
Expand description

Content type system — extends Lit from SWE-only VCS to a universal versioning system for CAD, EDA, manuscripts, databases, scientific data, media assets, and arbitrary domain content.

Each content type carries diff/merge strategy hints, metadata schemas, and size/storage policies so that Lit can handle domain-specific files without requiring external plugins.

Structs§

ContentType
A registered content type with domain-specific handling policies

Enums§

ContentDomain
Domain classification
DiffStrategy
How a content type should be diffed
MergeStrategy
How a content type should be merged
StorageTier
Storage tier hint

Functions§

detect
Detect content type for a file by extension, then magic bytes
execute_detect
Detect the content type(s) of one or more files
execute_list
List all registered content types, optionally filtered by domain
execute_register
Register a custom content type
execute_show
Show a specific content type