#![forbid(unsafe_code)]
pub mod engine;
pub mod host;
pub mod journal;
pub mod meta;
pub mod run;
pub mod store;
pub mod validate;
pub use engine::{WorkflowRunParams, run_workflow};
pub use host::{AgentOpts, AgentResult, BudgetState, HostError, WorkflowHostRequest};
pub use journal::{
HOST_ERROR_KEY, JOURNAL_VERSION_HEADER, Journal, JournalEntry, JournalError, MAX_JOURNAL_BYTES,
MAX_JOURNAL_ENTRIES, canonical_json, host_error_message, host_error_sentinel,
is_host_error_sentinel, request_hash,
};
pub use meta::{MetaError, WorkflowMeta, extract_meta};
pub use run::{PauseKind, WorkflowOutcome};
pub use store::{
FileWorkflowRunStore, MemoryWorkflowRunStore, StoreError, WorkflowRunRecord, WorkflowRunStatus,
WorkflowRunStore,
};
pub use validate::{
ValidationError, ValidationReport, default_probe_args, validate_script,
validate_script_with_agent_budget,
};
pub const DEFAULT_AGENT_BUDGET: u64 = 128;
pub const MAX_AGENT_BUDGET: u64 = 1_024;
pub const MAX_PARALLEL: usize = 1_024;
pub const MAX_HOST_CALLS: u64 = 10_000;