Centralize request routing, enforce feature parity in CI, add request cancellation#21
Draft
Centralize request routing, enforce feature parity in CI, add request cancellation#21
Conversation
… support, expand CI matrix Co-authored-by: numbers-official <181934381+numbers-official@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Centralize request routing and improve error handling
Centralize request routing, enforce feature parity in CI, add request cancellation
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four API methods bypassed the centralized
request()/_request()methods, duplicating auth/error handling and excluding themselves from future retry/observability hooks. The feature parity CI check always exited 0. The CI matrix only covered Python 3.14-pre and Node 20.Centralized request routing
getHistory,getAssetTree,searchAsset,searchNftnow route throughrequest()instead of callingfetch()directly. Body type widened toFormData | Record<string, unknown> | unknown[]to support array payloads (getAssetTree).get_history,get_asset_tree,search_asset,search_nftnow route through_request().json_bodytype widened todict[str, Any] | list[Any] | None.Request cancellation + custom fetch (TypeScript)
Two new optional fields on
CaptureOptionsapplied to every request automatically:Feature parity CI enforcement
print_report()now returnsbool;main()callssys.exit(1)on violations.CI matrix & Python compatibility
3.11 / 3.12 / 3.13(was3.14-only);requires-pythonlowered to>=3.1118 / 20 / 22(was20-only)--cov-fail-under=75added to pytestpermissions: contents: readadded to workflowOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.