CaptureContext
Defined in: packages/core/src/capture/pipeline.ts:302
Persistence inputs for a completed capture run.
Properties
Section titled “Properties”browsers?
Section titled “browsers?”
optionalbrowsers?:string[]
Defined in: packages/core/src/capture/pipeline.ts:316
Engines captured this run, primary first (default: chromium only).
build:
Build
Defined in: packages/core/src/capture/pipeline.ts:312
The build being captured.
captures
Section titled “captures”captures:
RenderedSnapshot[]
Defined in: packages/core/src/capture/pipeline.ts:320
Screenshot buffers produced by the capture renderer.
db:
DatabaseAdapter
Defined in: packages/core/src/capture/pipeline.ts:304
Database adapter.
freshBrowsers?
Section titled “freshBrowsers?”
optionalfreshBrowsers?:ReadonlySet<string>
Defined in: packages/core/src/capture/pipeline.ts:318
Secondary engines with no baselines yet; worked out by persistCapture, or fixed up front by a shard plan.
inherited?
Section titled “inherited?”
optionalinherited?:InheritedStory[]
Defined in: packages/core/src/capture/pipeline.ts:322
Stories inheriting their baseline without rendering (affected capture).
logger?
Section titled “logger?”
optionallogger?:Logger
Defined in: packages/core/src/capture/pipeline.ts:324
Optional logger for capture diagnostics.
progress?
Section titled “progress?”
optionalprogress?:CaptureProgress
Defined in: packages/core/src/capture/pipeline.ts:328
Called per snapshot persisted, so the job’s lease sees a long diff phase making progress.
project
Section titled “project”project:
Project
Defined in: packages/core/src/capture/pipeline.ts:310
The project being captured.
recordLog?
Section titled “recordLog?”
optionalrecordLog?:AttemptLogRecorder
Defined in: packages/core/src/capture/pipeline.ts:326
Optional per-attempt log recorder (mirrors logger lines into the DB).
secret?
Section titled “secret?”
optionalsecret?:SecretInput
Defined in: packages/core/src/capture/pipeline.ts:330
Server secret for decrypting webhook secrets at send time.
storage
Section titled “storage”storage:
StorageAdapter
Defined in: packages/core/src/capture/pipeline.ts:308
Storage adapter.
tables
Section titled “tables”tables:
PipelineTables
Defined in: packages/core/src/capture/pipeline.ts:306
Table handles.
viewports
Section titled “viewports”viewports:
Viewport[]
Defined in: packages/core/src/capture/pipeline.ts:314
Viewports at which stories were captured.