#![allow(clippy::module_name_repetitions)]
mod bollard_exec;
mod command;
mod command_set;
mod container;
#[cfg(all(unix, feature = "jobserver"))]
mod container_jobserver;
mod foreground_wait;
mod grants;
mod heel_binary;
mod memory;
pub mod monitor;
mod naming;
mod notices;
mod outage;
mod output;
mod output_compress;
mod policy;
mod process_tree;
mod script_language;
mod session_policy;
mod shell_session;
mod shell_syntax;
mod stdin_watch;
mod subagent;
mod terminal;
mod tool_distribution;
mod tool_environment;
mod tool_python;
mod tool_runtime;
mod tool_transport;
pub mod builtin;
pub mod job_registry;
#[cfg(all(unix, feature = "jobserver"))]
pub mod jobserver;
pub mod network_policy;
pub mod permission;
#[cfg(any(test, feature = "test-git"))]
pub mod test_git;
pub use bollard_exec::BollardContainerExec;
pub use command::{
AnyCommandGate, AnyCommandObserver, CommandCall, CommandEnvelope, CommandGate, CommandObserver,
CommandPayload, CommandRole, CommandUsage, DynTerminalTool, DynToolHandler, GateDecision,
IpcToolCommand, KeptExchangeReceiver, POSITIONAL_KEYWORD, PositionalLayoutError,
ToolCallCommand, ToolCommand, ToolRegistry, ToolRegistryBuilder, cli_to_json,
output_saved_text, register_ipc_gateway_command, register_tool_command, register_tool_direct,
schema_to_help, tool_output_to_payload, validate_positional_layout,
};
pub use command_set::{AnyCommandSet, CommandSet};
pub use container::{
ContainerImageSpec, ContainerLaunchSpec, ContainerPath, ContainerRuntimeKind, MountAccess,
MountRoot, MountRootError, MountSpec, RelativeContainerPath, RuntimePreference,
};
pub use foreground_wait::ForegroundWait;
pub use grants::{GitDirAccess, GrantSet, TerminalGrants};
pub use heel::NetworkAuditLog;
pub use heel::{CpuPriority, IoPriority, NiceLevel, ProcessPriority};
pub use job_registry::{
Delivery, JobInfo, JobPlace, JobRegistry, JobRegistryService, JobStatus, KillCause,
OwedCompletion, PendingCompletion, TerminalDelta, TerminalReadError, UnchangedTaskRead,
job_registry_channel,
};
#[cfg(all(unix, feature = "jobserver"))]
pub use jobserver::{
CommandFifo, JobBroker, JobBrokerService, JobPool, JobserverError, job_broker_channel,
};
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, MonitorSource,
MonitorStalled, MonitorTool,
};
pub use network_policy::{
CompiledNetworkPolicy, NetworkPolicyConfig, NetworkPolicyError, NetworkPolicyMode,
};
pub use notices::{
AnySandboxNotices, CommandKilled, DefaultSandboxNotices, MonitorStarted, Refused,
ReservedForMain, SandboxNotices,
};
pub use output::{MediaResolution, OutputFormat, OutputStore};
pub use permission::{PermissionHandler, PermissionRequest, Review, TerminalMode};
pub use policy::{
AnyCommandPolicy, CommandPolicy, PolicyDecision, PolicyRefusal, ScriptCheck, ScriptEnd,
ScriptOrigin, ScriptOutcome,
};
pub use process_tree::{
JOB_MARKER_VAR, JobProcess, KillTreeError, ProcessTableError, kill_process_tree,
};
pub use script_language::ScriptLanguage;
pub use session_policy::SessionSandboxPolicy;
pub use shell_session::{
AnyContainerExec, AnySshSessionAuthorizer, BridgeAddress, BridgeAddressError, ContainerExec,
ContainerExecOutcome, ContainerIpcRoute, ContainerProbe, ContainerProbeError,
ContainerShellRuntime, ExecLifetime, ShellBackend, ShellRuntimeAvailability,
ShellSessionRegistry, SshAuthorizationError, SshRuntimeProfile, SshServer,
SshSessionAuthorizer, bootstrap_ssh_runtime,
};
pub use shell_syntax::{
CommandId, LineId, PipelineId, PipelineStage, ShellCommand, ShellParseError, ShellScript,
};
pub use stdin_watch::StdinWatchSignal;
pub use subagent::{
AnySubagentSpaces, CommitLedger, CommitLedgerError, CommitMark, ImportBudget, PreparedSpace,
RunSpace, SpacePreparationError, SubagentCommit, SubagentGrant, SubagentGrantError,
SubagentSpaces,
};
pub use terminal::{
BackgroundTaskEvent, BackgroundTaskReceiver, BackgroundTaskSender, CompletedCommand,
CompletedTask, Configured, DEFAULT_FOREGROUND_WAIT, DEFAULT_LONG_JOB_ALERT_AFTER,
DEFAULT_RESPONSE_WINDOW, DEFAULT_SUBAGENT_IMPORT_LIMIT, DEFAULT_TIMEOUT_CAP, DescendantsKilled,
DirectoryReset, DirectoryResetReason, JobAlert, LongRunningJob, PermissionEvent,
PermissionEventReceiver, PermissionEventStage, StartedBackgroundTask, StdinBlockedJob,
StdinProbeFailedJob, TerminalArgs, TerminalBinding, TerminalEnvSource, TerminalError,
TerminalExecutionMode, TerminalRunError, TerminalRunner, TerminalScript, TerminalTool,
TerminalToolFactory, TerminalToolFactoryError, TimeoutKill, Unconfigured,
background_task_channel, open_network_audit_log,
};
pub use tool_distribution::{
HostProgramArtifact, PinnedArtifact, ToolArtifact, ToolArtifactFormat, ToolArtifactLocation,
ToolDistribution,
};
pub use tool_runtime::{
DistributedTool, HostProgram, HostProgramPath, ImageTool, ImageToolDefect, ImageTools,
ManagedTool, PreparedEnvironment, PreparedTools, PythonPin, PythonRuntime, ToolBinary,
ToolBundle, ToolCatalog, ToolRuntimeError, ToolTarget,
};
pub use tool_transport::{
ContainerToolTransport, SshToolTransport, ToolEnvironmentInfo, ToolTransport,
probe_tool_environment,
};