agent-first-data 0.41.0

Self-describing data and structured CLI contracts for AI agents — field-name suffixes for units and secrets, the afdata CLI for rendering, validation, path guards, and reading or editing structured documents (JSON, TOML, YAML, dotenv, INI, Markdown), plus libraries for Rust, Go, Python, TypeScript, and Bash.
Documentation
"""Agent-First Data (AFDATA) — suffix-driven output formatting and protocol templates."""

from agent_first_data.format import (
    LogLevel,
    Event,
    EventBuildError,
    json_result,
    json_error,
    json_progress,
    json_log,
    ResultBuilder,
    ErrorBuilder,
    ProgressBuilder,
    LogBuilder,
    validate_protocol_event,
    validate_protocol_stream,
    EventDecodeError,
    DecodedResult,
    DecodedError,
    DecodedProgress,
    DecodedLog,
    decode_protocol_event,
    RedactionPolicy,
    PlainStyle,
    OutputOptions,
    redacted_value,
    redacted_value_at,
    is_secret_path,
    redact_argv,
    redact_url_secrets,
    redact_urls_in_text,
    normalize_utc_offset,
    is_valid_bcp47,
    is_valid_rfc3339,
    is_valid_rfc3339_date,
    is_valid_rfc3339_time,
)

from agent_first_data.cli import (
    OutputFormat,
    OutputTo,
    LogFilters,
    CliEmitter,
    cli_parse_output,
    cli_parse_log_filters,
    render,
    build_cli_error,
    build_cli_version,
    cli_render_version,
)

__all__ = [
    "LogLevel",
    "Event",
    "EventBuildError",
    "json_result",
    "json_error",
    "json_progress",
    "json_log",
    "ResultBuilder",
    "ErrorBuilder",
    "ProgressBuilder",
    "LogBuilder",
    "validate_protocol_event",
    "validate_protocol_stream",
    "EventDecodeError",
    "DecodedResult",
    "DecodedError",
    "DecodedProgress",
    "DecodedLog",
    "decode_protocol_event",
    "RedactionPolicy",
    "PlainStyle",
    "OutputOptions",
    "redacted_value",
    "redacted_value_at",
    "is_secret_path",
    "redact_argv",
    "redact_url_secrets",
    "redact_urls_in_text",
    "normalize_utc_offset",
    "is_valid_bcp47",
    "is_valid_rfc3339",
    "is_valid_rfc3339_date",
    "is_valid_rfc3339_time",
    "OutputFormat",
    "OutputTo",
    "LogFilters",
    "CliEmitter",
    "cli_parse_output",
    "cli_parse_log_filters",
    "render",
    "build_cli_error",
    "build_cli_version",
    "cli_render_version",
]