peat-protocol 0.9.0-rc.7

Peat Coordination Protocol — hierarchical capability composition over CRDTs for heterogeneous mesh networks
//! # Cursor-on-Target (CoT) Translation Layer
//!
//! This module provides bidirectional translation between Peat messages and
//! CoT XML format for tactical-mapping consumer integration.
//!
//! ## Architecture (ADR-020, ADR-028)
//!
//! ```text
//! ┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
//! │  Peat Messages  │ ──▶│   CoT Encoder   │ ──▶│   CoT Consumer  │
//! │                 │    │                 │    │                 │
//! │  TrackUpdate    │    │  XML Generation │    │  Situational    │
//! │  Capability     │    │  _peat_ Ext     │    │  Awareness      │
//! │  Handoff        │    │  MIL-STD-2525   │    │                 │
//! └─────────────────┘    └─────────────────┘    └─────────────────┘
//! ```
//!
//! ## Components
//!
//! - [`types`]: Peat message types for CoT integration (TrackUpdate, etc.)
//! - [`event`]: CoT Event structure and XML encoding
//! - [`type_mapper`]: MIL-STD-2525 symbol type mappings
//! - [`peat_extension`]: `<_peat_>` custom detail extension schema
//! - [`encoder`]: Peat → CoT message encoding

pub mod encoder;
pub mod event;
pub mod peat_extension;
pub mod type_mapper;
pub mod types;

// Re-export main types
pub use encoder::CotEncoder;
pub use event::{CotDetail, CotEvent, CotEventBuilder, CotLink, CotPoint, CotTrack};
pub use peat_extension::{PeatConfidence, PeatExtension, PeatHierarchy, PeatSource, PeatStatus};
pub use type_mapper::{Affiliation, CotType, CotTypeMapper, EntityClassification};
pub use types::{
    CapabilityAdvertisement, FormationCapabilitySummary, HandoffMessage, HandoffState,
    MissionBoundary, MissionPriority, MissionTarget, MissionTask, MissionTaskType,
    OperationalStatus, Position, TrackUpdate, Velocity,
};