Labs preview. Artifacts are not part of the stable Durable Sessions API. Large event bodies can already spill to a
content_ref.Artifact kinds
file/link: snapshotted to storage at publish; fetchable after the machine is gone.preview: a durable entry for a live URL into the session machine. The served app depends on machine state, so it carries astatus(live/cold).
Publish from the runtime
The runtime publishes artifacts through two tools:oc.preview(port)— expose a port of the session’s machine as a preview URL.oc.publish(path)— snapshot a file as a durable artifact.
user-level event and upserts the artifact, so it reaches your UI as soon as it’s produced.