"""
TVP — Trust Verification Protocol
Reference implementation by Market2Agent.

    pip install market2agent

    from market2agent import tvp

    result = tvp.verify("stripe.com")
    if result:
        proceed()

TVP is to trust what HTTP is to documents and MCP is to tool use.
"""
from trustchain.core import (
    verify,
    verify_async,
    guard,
    configure,
    TrustResult,
    TrustClient,
    AsyncTrustClient,
    TrustGate,
    TrustCheckError,
    Untrusted,
    RateLimited,
)
from trustchain.federation import (
    TrustNode,
    SpokeResult,
)

__all__ = [
    # Protocol verbs
    "verify",
    "verify_async",
    "guard",
    "configure",

    # Results
    "TrustResult",
    "SpokeResult",

    # Federation
    "TrustNode",

    # Middleware
    "TrustGate",

    # Clients
    "TrustClient",
    "AsyncTrustClient",

    # Errors
    "TrustCheckError",
    "Untrusted",
    "RateLimited",

    # Protocol info
    "PROTOCOL",
    "VERSION",
    "SPEC_URL",
]

PROTOCOL = "TVP"
VERSION = "1.0.0"
SPEC_URL = "https://market2agent.ai/docs/tvp"
