mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-19 09:36:59 +03:00
Carry native comp capture and completion integrity fixes into the reviewed component workflow. Bump the skill to 4.4.0 and engine/platform pins to 0.1.6; keep publication separate from this release candidate. AI assistance: implemented and validated with OpenAI Codex.
17 lines
593 B
Rust
17 lines
593 B
Rust
//! Browser adapters return fresh in-process evidence; producer JSON is never capture authority.
|
|
use serde_json::Value;
|
|
use std::collections::BTreeMap;
|
|
pub struct CapturedPreviews {
|
|
pub files: BTreeMap<String, Vec<u8>>,
|
|
pub evidence: Value,
|
|
}
|
|
pub trait ComponentCapturer {
|
|
/// Replace preview URLs in a frozen packet with native captures. Only pinned
|
|
/// input bytes may be rendered; output files use reserved capture paths.
|
|
fn capture(
|
|
&mut self,
|
|
packet: &mut Value,
|
|
inputs: &BTreeMap<String, Vec<u8>>,
|
|
) -> Result<CapturedPreviews, String>;
|
|
}
|