Skip to main content

task_runs/
lib.rs

1//! @arch:layer(kg_store)
2//! @arch:role(substrate)
3//! @arch:see(.yah/docs/working/yah-task-runs.md)
4//!
5//! `task-runs` — lossless command-output capture with a tiered observation
6//! model (bytes → beholders → triage → shims).
7//!
8//! **Tier 1 (this crate):** core types + per-camp SQLite store.
9//! Higher tiers (beholders, pruner, shims) build on top.
10
11pub mod beholders;
12pub mod driver;
13pub mod rule_filter;
14pub mod store;
15pub mod types;
16pub mod user_beholders;
17
18pub use driver::{DriverChannels, DriverError, SpawnOpts, StaleRunPolicy, TaskDriver};
19pub use beholders::{
20    AttachResult, Beholder, BeholderFactory, BeholderMode, BeholderRegistry, BeholderSelect,
21    CargoBeholder, CargoBeholderFactory, ToolVersionRange, default_registry,
22    registry_with_user_beholders, resolve_argv,
23};
24pub use user_beholders::load_user_beholders;
25pub use store::{
26    AggregateBucket, AggregateFilter, AggregateGroupBy, ChunkFilter, EventFilter, FieldFilter,
27    FieldIndexInfo, GcConfig, GcResult, RunFilter, StoreError, TaskStore, TimelineTick,
28    validate_field_path,
29};
30pub use rule_filter::{EventsRuleFilter, FieldPredicate, ParseError, ScopeSpec, TaskEventsRuleFilter};
31pub use types::{
32    BeholderStatus, ChunkRef, Diagnostic, Event, EventScope, EventSource, Initiator, KeepRange,
33    Level, OutputChunk, RunStatus, SeqRange, Stream, TaskRunId, TaskRunMeta, Triage,
34    RESERVED_FIELD_PATHS,
35};