Skip to main content

CommandSessionStructcopyContext

Trait CommandSessionStructcopyContext 

Source
pub trait CommandSessionStructcopyContext {
    // Required methods
    fn transcript_item(
        &self,
        index: usize,
    ) -> Result<StructcopyTranscript, StructcopyError>;
    fn tool_pair(
        &self,
        call_id: &str,
    ) -> Result<StructcopyToolPair, StructcopyError>;
    fn plan_snapshot(&self) -> Result<StructcopyPlan, StructcopyError>;
    fn workflow_projection(
        &self,
        run_id: &str,
    ) -> Result<StructcopyWorkflow, StructcopyError>;
    fn path_roots(&self) -> StructcopyPathRoots;
    fn write_clipboard(&self, text: &str) -> Result<StructcopyTransport, String>;
}
Expand description

Exact authority for /structcopy, independent of session export/recovery. Observations do not mutate the session. Clipboard is the sole side effect; the caller chooses it only after successful rendering and never for stdout.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§