Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions agentscore_commerce/discovery/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
from dataclasses import dataclass, field
from datetime import UTC, datetime, timedelta
from typing import Any, Literal, Protocol
from typing import Any, Literal

from agentscore_commerce.payment.directive import (
build_payment_request_blob,
Expand Down Expand Up @@ -171,14 +171,6 @@ def build_discovery_probe_response(opts: DiscoveryProbeOptions) -> DiscoveryProb
)


class _RequestLike(Protocol):
method: str

def headers_get(self, name: str) -> str | None: ...

async def body_text(self) -> str: ...


async def is_discovery_probe_request(method: str, authorization: str | None, body_text: str) -> bool:
"""Return True for an empty-body POST without a Payment Authorization header — the MPP crawler probe pattern.

Expand Down