agent-first-data 0.19.1

A naming convention that lets AI agents understand your data without being told what it means, plus a CLI and library for reading and safely editing structured JSON, TOML, YAML, dotenv, and INI documents.
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,
    redact_url_secrets,
    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,
    cli_handle_version_or_continue,
)

__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",
    "redact_url_secrets",
    "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",
    "cli_handle_version_or_continue",
]