Repository navigation
chore: move remaining api.thisisatest.tech references to api.agentmiddleware.dev #222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
6c74ba5
8bcdb51
bbeb46c
c4f73b1
900bb6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ def __init__( | |
| self, | ||
| api_key: str, | ||
| wallet_id: str, | ||
| base_url: str = "https://api.thisisatest.tech", | ||
| base_url: str = "https://api.agentmiddleware.dev", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔎 Supported by static analysis
Confirm the new origin before shipping this default. If
|
||
| permit_budget: Decimal = Decimal(100), | ||
| permit_ttl_minutes: int = 30, | ||
| ): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -458,7 +458,10 @@ async def handler(request: httpx.Request) -> httpx.Response: | |
|
|
||
| class _CaptureClient(real_client): | ||
| def __init__( | ||
| self, api_key: str, base_url: str = "https://api.thisisatest.tech", **kwargs | ||
| self, | ||
| api_key: str, | ||
| base_url: str = "https://api.agentmiddleware.dev", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔎 Supported by static analysis
Exercise the new default in this test. The test passes
|
||
| **kwargs, | ||
| ): | ||
| captured["constructed_key"] = api_key | ||
| captured["constructed_url"] = base_url | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normalize the blocked hostname before comparison.
urlsplit()preserves a trailing dot inparsed_url.hostname. Therefore,https://api.agentmiddleware.dev./bookdoes not match this exact set entry and passesvalidated_public_contact. The provider manifest can then expose the equivalent API host as the website.Normalize the parsed hostname with
.casefold().rstrip(".")before the membership check. Add a negative-path test for the trailing-dot form.Proposed fix