Skip to main content

acyclic_harness/
lib.rs

1#![deny(unsafe_code)]
2#![doc = include_str!("../README.md")]
3
4extern crate self as acyclic_harness;
5
6#[cfg(feature = "host")]
7pub mod bundle;
8#[cfg(feature = "host")]
9pub mod context;
10mod contract;
11pub mod core;
12#[cfg(feature = "host")]
13pub mod distributed;
14#[cfg(feature = "host")]
15pub mod effects;
16#[cfg(feature = "host")]
17pub mod executor;
18#[cfg(feature = "filesystem")]
19pub mod filesystem;
20pub mod fork;
21#[cfg(feature = "grpc")]
22pub mod grpc;
23#[cfg(feature = "host")]
24mod handles;
25#[cfg(feature = "http")]
26pub mod http;
27pub mod interaction;
28#[cfg(feature = "host")]
29pub mod live;
30#[cfg(feature = "machines")]
31pub mod machines;
32#[cfg(feature = "host")]
33pub mod model;
34#[cfg(feature = "models")]
35pub mod models;
36#[cfg(feature = "host")]
37pub mod registry;
38pub mod resources;
39pub mod scheduler;
40pub mod speculation;
41#[cfg(feature = "host")]
42pub mod store;
43#[cfg(feature = "host")]
44pub mod tool;
45#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
46mod wasm;
47#[cfg(feature = "host")]
48pub mod wire_api;
49#[cfg(any(feature = "host", feature = "wasm"))]
50mod wire_codec;
51#[cfg(any(feature = "host", feature = "wasm"))]
52pub use wire_codec::encode_error;
53pub mod workflow;
54
55/// Generated Protobuf envelopes shared by every transport.
56#[allow(missing_docs, clippy::pedantic, clippy::too_many_lines)]
57pub mod wire {
58    include!(concat!(env!("OUT_DIR"), "/acyclic.harness.v1.rs"));
59}
60
61/// Canonical harness descriptor set used for transport compatibility.
62pub const FILE_DESCRIPTOR_SET: &[u8] =
63    include_bytes!(concat!(env!("OUT_DIR"), "/harness_descriptor.bin"));
64
65pub use contract::{
66    Admission, AgentId, AuthorityLevel, AuthorityPolicy, Capabilities, ConversationId,
67    EffectAttemptId, EffectId, Error, IdempotencyKey, InteractionId, OperationId, Outcome,
68    PolicyLayer, ProtocolIdentity, Result, SessionId, TaskId, TurnId, resolve_policies,
69    resolve_policy_layers,
70};
71#[cfg(feature = "host")]
72pub use handles::{Agent, Conversation, Session, Task, Turn};
73#[cfg(feature = "host")]
74pub use live::{
75    TaskGroup, TaskHandle, completion_stream, first_success, join_all, quorum, recursive_sum,
76};