feat(web-fetch): add OmniRoute web fetch provider - #77
Merged
Merged
Conversation
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.
Summary
POST /v1/web/fetchurl,extractMode, and host-ownedmaxChars) without inventing provider-specific fallback behaviorCloses #16
Contract and safety notes
OmniRoute is always requested in markdown because its endpoint does not accept OpenClaw's plain-text mode. Plain text is projected with OpenClaw's public
markdownToTexthelper. OpenClaw owns finalmaxCharsnormalization; the adapter does not truncate before host normalization. Private, loopback, and other special-use target hostnames are rejected before forwarding. Provider selection, depth, selector wait, links, descriptions, and screenshots remain deferred because they are not representable in the current public OpenClaw web-fetch contract.No provider fallback is added: OmniRoute retains ownership of its configured web-fetch routing and quota policy.
Validation
pnpm test— 150 tests passedpnpm buildgit diff --exit-code -- dist/git diff --checknode .github/scripts/upstream-compatibility-probe.mjs --source-contract2026.7.1; all nine registrations passed exactly once, including web fetch, withenvVarslimited toOMNIROUTE_API_KEY192.168.1.254:20128; the gateway returned its explicit400that no web-fetch provider credentials are configured, so no live success is claimedClawSweeper is not installed in this checkout, so that local gate was unavailable.