/zap/media. It is provided by the mediafs.core plugin and available at boot on zap-med and heavier templates.
Layout
kind is image | audio | video | 3d; the extension derives from the sidecar MIME type. Same bytes → same path: put hashes the content (SHA-256), writes once, and is idempotent on re-puts of identical bytes.
Sidecars
Every object has a JSON sidecar validated bymediaSidecarSchema (@wzrdtech/zap-runtime/mediafs): schema version, sha256, kind, mime, bytes, createdAt, and optional provenance — runId, stepId, provider, model, prompt, parents (input hashes), ffmpegPreset, usd, dimensions, and duration. Sidecars never contain secrets.
API
listfilters onkind,provider,model, andrunId.linkhardlinks (same inode) into project directories under/zap/fs, so projects reference media without copying bytes.- FFmpeg preset outputs are recorded with
ffmpegPresetset; gateway media results are recorded withprovider/model/usd.
