vtcode-exec-events 0.188.0

Structured execution telemetry event schema used across VT Code crates.
Documentation
//! Transcript-visibility classification for harness events.

use crate::HarnessEventKind;

/// Whether a harness event deserves a transcript row.
///
/// Conversational surfaces (CLI transcript, desktop transcript) filter
/// through this; forensic surfaces (log viewers, event exports) keep the
/// complete stream.
#[must_use]
pub fn harness_is_user_visible(kind: &HarnessEventKind) -> bool {
    use crate::HarnessEventKind::*;
    match kind {
        ToolLatencyRecorded
        | PlanningStarted
        | PlanningCompleted
        | ContinuationStarted
        | ContinuationSkipped
        | EvaluationStarted
        | EvaluationPassed
        | RevisionStarted
        | VerificationStarted
        | VerificationPassed
        | SnapshotCreated
        | DelegatedAgentStatus
        | SessionMessageSent
        | SessionMessageReceived
        // The command already rendered its own result or error line.
        | SkillCommandCompleted => false,
        SessionMessageExpired
        | TurnBlocked
        | BlockedRecoveryStarted
        | BlockedRecoveryFinished
        | BlockedHandoffWritten
        | BlockedHandoffResolved
        | EvaluationFailed
        | EscalationTriggered
        | EscalationBypassed
        | VerificationFailed
        | ErrorRecovered
        | ToolRetryAttempted
        | SnapshotRestored
        | SessionToolLimitIncreased
        | ToolLoopLimitIncreased
        | BackgroundSubprocessCompleted => true,
    }
}