Skip to main content

deepstrike_core/runtime/
mod.rs

1//! Runtime event types shared across SDK bindings.
2//! I/O (append/read) lives in each language SDK — the kernel stays pure.
3
4pub mod event_log;
5pub mod kernel;
6pub mod repair;
7pub mod replay;
8pub mod session;
9
10pub use kernel::{
11    CancellationReason, KERNEL_ABI_VERSION, KERNEL_SNAPSHOT_VERSION, KernelAction, KernelEffect,
12    KernelFault, KernelFaultCode, KernelInput, KernelInputEvent, KernelLifecycle,
13    KernelObservation, KernelPreparationStatus, KernelPreparedStep, KernelPressureAction,
14    KernelRuntime, KernelSnapshotPolicy, KernelSnapshot, KernelStep,
15};
16
17pub use event_log::{KernelEventCategory, Primitive, category_for_kind, primitive_for_kind};
18pub use repair::{
19    pending_tool_calls_from_messages, reconstruct_messages_with_fallback, repair_events,
20    repair_events_with_cap, repair_llm_completed, repair_llm_completed_with_cap,
21    sanitize_recovery_text, sanitize_recovery_text_bounded,
22};
23pub use replay::{
24    BudgetExceededRecord, BudgetUsageRecord, CancellationRecord, OsSnapshot, ProcessRecord,
25    SignalDeliveryDisposedRecord, SuspendRecord, rebuild_os_snapshot_from_events,
26};
27pub use session::{ProviderReplay, SessionEvent};