agent: add adapter for Coupang - #2618
Open
alectimison-maker wants to merge 1 commit into
Open
Conversation
|
@alectimison-maker is attempting to deploy a commit to the esokullu's projects Team on Vercel. A member of the Team first needs to authorize it. |
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
Motivation
CONTRIBUTING.mdlists Coupang as a high-priority East Asia adapter, but WebBrain currently falls back to generic commerce behavior there. Current official search, product, and cart pages expose several non-obvious traps:바로구매sits next to장바구니 담기but skips the cart쿠팡 랭킹순results include sponsoredADitems, while shipping-inclusive price comparison requires배송비 포함and낮은가격순Access Deniedresponse even when the active shopping tab remains usableWithout site guidance, these behaviors can lead to unsafe buy-now clicks, incorrect cheapest-price claims, seller/review conflation, or repeated failed fetches.
Design
The adapter matches only the Korean customer shopping surfaces at the apex,
www,m, andcarthosts. It deliberately excludes the Wing seller portal, the separately localized Taiwan storefront, unresearched subdomains, and suffix/path lookalikes.Six dated, imperative notes tell the agent to:
This follows the existing regional-adapter shape without adding APIs, permissions, dependencies, or network calls.
Testing
node --check src/chrome/src/agent/adapters.js— passednode --check src/firefox/src/agent/adapters.js— passednpm run test:security— passed, 60/60 checksnpm run test:webmcp— passed with real Chromenode test/run.js— 1,354 passed; one unchanged baseline failure remains becausepackage.jsonis26.0.1while the newestCHANGELOG.mdentry is26.0.0Compatibility and risks
This is additive prompt metadata with no public API or configuration changes. The main residual risk is UI drift; the notes are dated
2026-07, use stable visible labels rather than selectors, and prescribe the Akamai fallback only after an actual blocked request.Scope
Taiwan Coupang localization, seller-side Wing guidance, and unknown checkout/subdomain flows are intentionally deferred until they can be researched independently.