multicast-codemode 1.0.0

Portable durable Code Mode runtime for multicast tools
Documentation
//! Portable durable Code Mode runtime for multicast tools.
//!
//! This crate owns connector discovery, model-facing type generation, approval
//! policy, deterministic replay, snippets, and lifecycle state. Sandbox
//! execution and durable persistence are supplied through traits so the same
//! runtime can run through local or remote executors.

mod checkpoint;
mod codec;
mod codemode;
mod connector;
mod dispatch;
mod engine;
mod normalize;
mod program;
mod runtime;
mod search;
mod service;
mod telemetry;
mod typescript;
mod workflow_api;
/// Bounded input and output validation shared with workflow command adapters.
pub mod workflow_schema;
mod workflows;
pub use workflows::{
    WorkflowChild, WorkflowDefinition, WorkflowLimits, WorkflowReference, WorkflowWait,
};

pub use checkpoint::ExecutionCheckpoint;
pub use codec::{CodeValue, decode_value, encode_value};
pub use codemode::{CodeMode, CodeModeRunOptions};
pub use connector::{
    CALL_NOT_SENT, CallAttempt, CallRecovery, Connector, ConnectorDescription, ConnectorExample,
    ConnectorTool, DefaultToolPolicyResolver, MAX_CALL_ATTEMPTS, McpClient, McpConnector, McpTool,
    MulticastConnector, OpenApiClient, OpenApiConnector, OpenApiRequest, ReplayPolicy, RetryPolicy,
    ToolAnnotations, ToolContext, ToolOrigin, ToolPolicy, ToolPolicyResolver, sanitize_namespace,
};
pub use dispatch::{DispatchResponse, DispatchSession, StepResponse};
pub use engine::{Clock, CodeExecutor, DispatchRequest, ExecuteResult, ExecutionHost, SystemClock};
pub use normalize::normalize_code;
pub use program::{ProgramSourceOptions, build_checkpoint_source, build_program_source};
pub use runtime::{
    ArtifactRef, ArtifactStore, CapabilitySnapshot, CodeModeRuntime, DEFAULT_AUTO_PRUNE_GRACE_MS,
    DEFAULT_MAX_EVENTS, DEFAULT_MAX_EXECUTIONS, DEFAULT_PAUSED_TTL_MS, ExecutionEvent,
    ExecutionState, ExecutionStatus, LogEntry, LogEntryState, MAX_DURABLE_VALUE_BYTES,
    MemoryArtifactStore, MemoryStore, PendingAction, RuntimeError, RuntimeStore, Snippet,
    ToolDecision,
};
pub use search::{DescribeOutput, SearchOutput, SearchResult, describe, search};
pub use service::CodeModeService;
pub use telemetry::{ExecutionTrace, WorkflowIdentity};
pub use typescript::{generate_types, json_schema_to_type, sanitize_identifier};

/// OpenTelemetry API shared by Code Mode hosts and the command runtime.
pub use multicast::telemetry::opentelemetry;