ExportArtefactWire
Defined in: packages/client/src/worker/protocol.ts:364
worker → tab: the wire form of ANY local-store export (ADR-0035) — the store backup’s tarball OR the
diagnostic dump’s SQL — carried as the value of an RpcResultPayload. The artefact crosses as a
transferred ArrayBuffer (zero-copy — the sender lists buffer in postMessage’s transfer list) plus
the metadata to rebuild it; the tab reconstructs a File from buffer/fileName/mimeType. A File
cannot itself be transferred, so it is decomposed here and reassembled tab-side, exactly the pattern the
codec’s transferable seam anticipates for a zero-copy live-diff payload. report is the discriminated
ExportReport union, so the tab knows which export it round-tripped.
Properties
Section titled “Properties”buffer
Section titled “buffer”buffer:
ArrayBuffer
Defined in: packages/client/src/worker/protocol.ts:366
The artefact bytes (tarball or SQL) — transferred, not copied.
fileName
Section titled “fileName”fileName:
string
Defined in: packages/client/src/worker/protocol.ts:368
The generated (or caller-supplied) artefact file name.
mimeType
Section titled “mimeType”mimeType:
string
Defined in: packages/client/src/worker/protocol.ts:370
The artefact MIME type (application/x-gzip / application/x-tar for a backup, application/sql for a dump).
report
Section titled “report”report:
ExportReport
Defined in: packages/client/src/worker/protocol.ts:372
The export report (ADR-0035), structured-cloned as a plain object — the kind-discriminated union.