agent-team-mail-core 1.3.1

Core library for local agent team mail workflows.
Documentation
/// Acknowledgement workflows for ack-required mailbox messages.
pub mod ack;
/// Public agent-address parsing and normalization helpers.
pub mod address;
/// Phase R boundary traits and placeholder contract types.
pub mod boundary;
/// Hidden daemon-private ingress/export helpers used by concrete boundary
/// adapter crates.
#[doc(hidden)]
pub mod boundary_support;
/// Shared caller-context resolution and ATM-owned environment parsing helpers.
pub mod caller_context;
/// Mailbox cleanup workflows for read and acknowledged messages.
pub mod clear;
/// Internal configuration discovery and resolution helpers.
pub(crate) mod config;
/// Internal shared delivery-plan execution helpers for message-path unification.
pub(crate) mod delivery_execution;
/// Internal typed delivery-plan contracts owned by the message state machines.
pub(crate) mod delivery_plan;
/// Internal delivery-policy coordinator and event-family state machines.
pub(crate) mod delivery_policy;
/// Hidden daemon-facing wrapper surface over crate-private boundary helpers.
#[doc(hidden)]
pub mod direct_boundaries;
/// Doctor-report types and health checks for the CLI surface.
pub mod doctor;
/// Shared ATM error types and recovery-oriented error helpers.
pub mod error;
/// Stable ATM-owned error-code registry used by core and CLI layers.
pub mod error_codes;
/// Thin graft-facing daemon client traits.
pub mod graft;
/// Public ATM home and team-path resolution helpers.
pub mod home;
/// Internal identity resolution and hook lookup helpers.
pub(crate) mod identity;
/// Bounded metadata queue query workflows and output models.
pub mod list;
/// Log query and filtering types for the CLI log surface.
pub mod log;
/// Internal mailbox persistence and parsing helpers.
pub(crate) mod mailbox;
/// Internal model-registry plumbing reserved for follow-on work.
pub(crate) mod model_registry;
/// Observability adapter traits and event payload types.
pub mod observability;
/// Internal atomic persistence helpers for shared mutable state files.
pub(crate) mod persistence;
/// Hidden process-liveness helpers shared across lock implementations.
#[doc(hidden)]
pub mod process;
/// Shared protocol DTOs used by boundary transport and adapter contracts.
pub mod protocol;
/// Mailbox read/query workflows and output models.
pub mod read;
/// Reserved production role constants shared across runtime and tests.
pub mod roles;
/// Hidden bounded installation hooks for daemon composition/bootstrap and test
/// support crates.
#[doc(hidden)]
pub mod runtime_install_hooks;
/// Public mailbox and team schema types shared with CLI tests and adapters.
pub mod schema;
/// Mailbox send workflows and request/response models.
pub mod send;
/// Internal service-owned seams that isolate retained command orchestration
/// from direct helper/path access.
pub(crate) mod service_runtime;
/// Transitional legacy store adapters used by the retained service runtime.
pub(crate) mod service_runtime_store;
/// Retained local team discovery, roster repair, and backup/restore workflows.
pub mod team_admin;
/// Shared synthetic test identities and role constants used across crate tests.
#[doc(hidden)]
#[cfg(any(test, feature = "test-utils"))]
pub mod test_support;
/// Internal text-formatting helpers used by ATM core surfaces.
pub(crate) mod text;
/// Internal linear-thread helpers shared by send/read/ack workflow logic.
pub(crate) mod threading;
/// Hidden transport test utilities shared by CLI-layer tests.
#[doc(hidden)]
#[cfg(feature = "test-utils")]
pub mod transport;
/// Shared enums and semantic newtypes used across ATM core workflows.
pub mod types;

pub use config::load_claude_team_config_document;

pub use atm_storage::derive_ack_requirement;
#[allow(deprecated)]
pub use boundary::{
    AckTransition, AtmProtocol, BuiltInNudgeSinkTarget, BuiltInNudgeTemplateKind, ClientTransport,
    ConfigDoctor, ConfigDoctorReport, ConfigIngress, ConfigLoadRequest, ConfigLoadResponse,
    DoctorFinding, InternalNudgeEnvelope, LoadMailMessageStateRequest,
    LoadMailMessageStateResponse, MailMessageState, MailStore, MailStoreDoctor,
    MailStoreDoctorReport, MailStoreHealthSnapshot, MailStoreIngestReplayState,
    MailStoreMailboxMetadataCounts, MailStoreMailboxMetadataRow, Message, MessageFingerprint,
    MessageKey, NotificationEvent, NudgeTemplateOverrideStore, PostSendHookEmitter,
    PostSendHookEvent, RemoteReplayStateRecord, RemoteReplayStore, RequestDispatcher,
    ResolvedBuiltInNudgeTemplate, RosterEntry, RosterHarness, RosterMemberKind, RosterStore,
    RosterStoreDoctor, RosterStoreDoctorReport, RosterStoreHealthSnapshot, RuntimeStatusSnapshot,
    RuntimeStorageFinalizer, ServerTransport, StatusSource, TaskState,
    TeamNudgeTemplateOverrideMode, TeamNudgeTemplateOverrideRow, UpsertMailMessageStateRequest,
    UpsertMailMessageStateResponse,
};
pub use config::AtmConfig;
pub use config::load_config as load_atm_config;
pub use config::types::GraftConfig;
/// Canonical stable import path for the retained thin graft-facing client
/// boundary. Shared advisory/session protocol DTOs are not part of the
/// accepted `atm-core` surface.
pub use graft::AtmGraftClient;
pub use protocol::{FramePayload, RequestEnvelope, ResponseEnvelope};
pub use service_runtime::{
    LocalFileNonClaudeOutbound, LocalServiceRuntime, with_default_local_service_runtime,
};