use super::EventKind;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum WindowClass {
InWindow,
RecordOnly,
}
impl EventKind {
pub fn window_class(&self) -> WindowClass {
match self {
EventKind::PromptAssembled
| EventKind::ModelCalled
| EventKind::ModelReturned
| EventKind::ToolCalled
| EventKind::ToolResult
| EventKind::ResultOffloaded
| EventKind::SteerReceived
| EventKind::SignalConsumed
| EventKind::AdviserAnswered
| EventKind::RunPolicyChanged
| EventKind::SignalWaitStarted
| EventKind::SignalWaitEnded => WindowClass::InWindow,
EventKind::CityInitialized
| EventKind::BuildingCreated
| EventKind::BuildingConfigured
| EventKind::BuildingRemoved
| EventKind::RunStarted
| EventKind::SessionOpened
| EventKind::PromptShapeCompared
| EventKind::RunForked
| EventKind::GateChecked
| EventKind::GateDenied
| EventKind::CheckpointCommitted
| EventKind::HandoffWritten
| EventKind::CancelReceived
| EventKind::WatchdogFired
| EventKind::BudgetLimit
| EventKind::RunFrozen
| EventKind::LogTruncated
| EventKind::SignalEnqueued
| EventKind::DraftHeld
| EventKind::DraftResolved
| EventKind::GoalRegistered
| EventKind::GoalConflict
| EventKind::ArbitrationVerdict
| EventKind::RepairStarted
| EventKind::RepairReused
| EventKind::WorktreeOpened
| EventKind::PrOpened
| EventKind::PrMerged
| EventKind::PrRejected
| EventKind::RoadmapClaimed
| EventKind::RoadmapFinished
| EventKind::RoadmapReleased
| EventKind::RoadmapSplit
| EventKind::RoadmapBlocked
| EventKind::PursuitChanged
| EventKind::ApprovalRequested
| EventKind::ApprovalResolved
| EventKind::PolicyCreated
| EventKind::PolicyRevoked
| EventKind::TaintPromoted
| EventKind::CrossBuildingTransfer
| EventKind::CityHalted
| EventKind::BackpressureShed
| EventKind::DigestInvalidated
| EventKind::EndpointAttached
| EventKind::EndpointProbed
| EventKind::EndpointLost
| EventKind::ModelSelected
| EventKind::ProviderDegraded
| EventKind::LoginStarted
| EventKind::EvalRun
| EventKind::AssetArchived
| EventKind::CredentialLent
| EventKind::SecretCaptured
| EventKind::SecretEgressBlocked
| EventKind::FileDiscarded
| EventKind::DiscardRestored
| EventKind::AutonomyChanged
| EventKind::WentBack
| EventKind::FileRestored
| EventKind::ToolkitLinkOpened
| EventKind::EmbeddingCalled
| EventKind::RerankCalled
| EventKind::AdviserAsked
| EventKind::AdviserFellBack
| EventKind::GovernedDocumentWritten
| EventKind::SpineDocumentWritten
| EventKind::RulesChanged
| EventKind::CacheRenewed
| EventKind::HarnessReported
| EventKind::HarnessAnswered
| EventKind::RemoteOpened
| EventKind::RemoteClosed
| EventKind::DevicePaired
| EventKind::DeviceRevoked
| EventKind::RemoteSessionStarted
| EventKind::DocumentWritten
| EventKind::ProposalOffered
| EventKind::ProposalDecided
| EventKind::ProposalWithdrawn
| EventKind::SessionNamed
| EventKind::SkillAudited
| EventKind::SignalLanded
| EventKind::SkillShelved => WindowClass::RecordOnly,
}
}
}