#![allow(clippy::module_name_repetitions)]
mod bollard_exec;
mod container;
#[cfg(all(unix, feature = "jobserver"))]
mod container_jobserver;
mod events;
mod foreground_wait;
mod interpreter;
mod job_registry;
mod jobs;
mod limits;
mod memory;
pub mod monitor;
mod outage;
mod output;
mod output_compress;
mod output_policy;
mod output_treatment;
mod policy;
mod process_tree;
mod shell_session;
mod shell_syntax;
mod spawn;
mod ssh;
mod stdin_watch;
mod subagent;
mod terminal;
mod wording;
pub mod builtin;
#[cfg(all(unix, feature = "jobserver"))]
pub mod jobserver;
pub mod network_policy;
#[cfg(any(test, feature = "test-git"))]
pub mod test_git;
#[cfg(any(test, feature = "test-heel"))]
pub mod test_heel;
#[cfg(any(test, feature = "test-budgets"))]
pub mod test_budgets;
#[cfg(any(test, feature = "test-budgets"))]
pub mod test_wording;
#[cfg(any(test, feature = "test-util"))]
pub mod test_jobs;
#[cfg(any(test, feature = "test-ids"))]
pub mod test_ids;
pub use bollard_exec::BollardContainerExec;
pub use builtin::{
JobInputArgs, JobInputTool, JobKillArgs, JobKillTool, JobReadArgs, JobReadTool,
ShellToolSettings, ToolIdentity,
};
pub use container::{
ContainerImageSpec, ContainerLaunchSpec, ContainerPath, ContainerRuntimeKind, MountAccess,
MountRoot, MountRootError, MountSpec, RelativeContainerPath, RuntimePreference,
};
pub use events::{
DescendantsKilled, JobEnded, JobStarted, LongRunning, ShellEvent, ShellEvents, StdinBlocked,
StdinWatchFailed,
};
pub use foreground_wait::ForegroundWait;
pub use heel::NetworkAuditLog;
pub use heel::{CpuPriority, IoPriority, NiceLevel, ProcessPriority};
pub use interpreter::Interpreter;
pub use job_registry::{
Delivery, JobDelta, JobInfo, JobInputError, JobPlace, JobRead, JobStatus, KillCause,
OwedCompletion, PendingCompletion, UnchangedRead,
};
pub use jobs::{
AppendOutcome, Job, JobOutputAppender, JobWaitError, Jobs, RunOutcome, ScriptResult,
};
#[cfg(all(unix, feature = "jobserver"))]
pub use jobserver::{
CommandFifo, JobBroker, JobBrokerService, JobPool, JobserverError, job_broker_channel,
};
pub use limits::{LiveDuration, ShellLimits};
pub use memory::{
AnyContainerMemory, AnyFootprintReader, AnyFootprintRegistry, CgroupMemory, ContainerMemory,
ContainerSnapshot, FileFootprintRegistry, FootprintError, FootprintReader, FootprintRegistry,
JOB_MARKER_ENV, JobFootprint, JobMemory, MemoryDomain, MemorySize, MemorySnapshot,
ProbedContainerMemory, ResponseWindow, SystemFootprints,
};
pub use monitor::{
MonitorArgs, MonitorEnd, MonitorEnded, MonitorIncrement, MonitorRefusal, MonitorSettings,
MonitorSource, MonitorStalled, MonitorTool,
};
pub use network_policy::{
CompiledNetworkPolicy, NetworkPolicyConfig, NetworkPolicyError, NetworkPolicyMode,
NetworkVerdict,
};
pub use output::{MediaResolution, OutputFormat, OutputStore};
pub use output_policy::{MediaBounds, OutputLimits, OutputPolicy};
pub use output_treatment::{OutputTreatment, TreatOutput};
pub use policy::{
AnyScriptPolicy, Carry, SandboxMode, ScriptCheck, ScriptDecision, ScriptDir, ScriptEnd,
ScriptOrigin, ScriptOutcome, ScriptPolicies, ScriptPolicy, ScriptRefusal,
};
pub use process_tree::{
JOB_MARKER_VAR, JobProcess, KillTreeError, ProcessTableError, kill_process_tree,
};
pub use shell_session::{
AnyContainerExec, ContainerExec, ContainerExecOutcome, ContainerProbe, ContainerProbeError,
ContainerShellRuntime, ExecLifetime, ShellSessionRegistry,
};
pub use shell_syntax::{
CommandId, LineId, PipelineId, PipelineStage, ShellCommand, ShellParseError, ShellScript,
};
pub use spawn::{
AnyDomainApprover, AnyIpcProvider, ApproveAllDomains, Backend, ChildExit, ContainerLaunch,
DenyAllDomains, Descendants, DomainApprover, DomainRequest, EnvSource, GitDirAccess,
GrantSnapshot, Grants, HostLaunch, HostRoute, HostRouteError, IpcProvider, LaunchInfo, Pipe,
RemoteLaunch, Sandbox, SandboxedChild, SpawnCommand, SpawnError, SpawnGrant, SpawnSpec, Stdio,
TreeLifetime,
};
pub use ssh::{
AnyPrepareSsh, PrepareSsh, PreparedSsh, SshPlatform, SshPrepareError, SshProbeError, SshServer,
SshServerError, probe_ssh_os,
};
pub use stdin_watch::StdinWatchSignal;
pub use subagent::{
AnySubagentSpaces, CommitLedger, CommitLedgerError, CommitMark, ImportBudget, PreparedSpace,
RunSpace, SpacePreparationError, SubagentCommit, SubagentGrant, SubagentGrantError,
SubagentSpaces,
};
pub use terminal::{
CompletedCommand, DirectoryResetReason, Given, Missing, Script, Shell, ShellArgs, ShellBuilder,
ShellRunError, ShellTool, TerminalError, TimeoutKill, open_network_audit_log,
};
pub use wording::{
AnyShellWording, CallRefusal, CommandKilled, FoldedLines, JobInputSent, JobKillAsked,
JsonAsTsv, LineRange, MonitorStarted, OmittedLines, OutputSaved, Refused, RepeatedLines,
RunFailure, ShellWording, StoredBinaryPart,
};