agent: add adapter for Lazada - #2673
Merged
esokullu merged 1 commit intoAug 4, 2026
Merged
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. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Lazada marketplace guidance across six Southeast Asian storefronts, including traffic-gate handling and checkout safeguards.
Changes:
- Adds matching for approved Lazada domains and consumer subdomains.
- Adds eight Lazada-specific browsing and purchasing guidance rules.
- Tests positive/negative routing and Chrome/Firefox parity.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/chrome/src/agent/adapters.js |
Adds the Chrome Lazada adapter. |
src/firefox/src/agent/adapters.js |
Mirrors the Lazada adapter for Firefox. |
test/run.js |
Tests routing, guidance, exclusions, and parity. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
_____tmd_____/punishtraffic gate or treating its empty page as an empty catalogMotivation
Lazada was one of the regional marketplaces listed in the contribution guide but had no adapter. A live anonymous browser check reached all six storefront homepages, while catalog and product navigation repeatedly redirected to a traffic-check path that exposed only
Click to feedback >. Without site guidance, that shape invites repeated reads/retries and can be misreported as no products.Design
The matcher covers the Indonesia, Philippines, Malaysia, Singapore, Thailand, and Vietnam storefront domains plus the observed consumer-facing
m,my,member, andpagessubdomains. Seller, help, careers, lookalike suffixes, and domains embedded in another URL remain excluded.The eight guidance bullets focus on Lazada-specific market separation and traffic-gate behavior, then preserve marketplace safety around variations, LazMall/seller attribution, conditional promotions, cart versus direct checkout, verification, and final order confirmation. A global marketplace preamble was rejected because it would add prompt cost to unrelated sites and could not identify Lazada's exact gate.
Testing
node --check src/chrome/src/agent/adapters.js- passednode --check src/firefox/src/agent/adapters.js- passednode test/run.js- 1437 passed, 2 inherited failures: the changelog still ends at 26.0.0 whilepackage.jsonis 26.0.10, and the randomized promotion test selected the Chinese variant while expecting English (the baseline had the same two failures at 1436 passed)npm run test:security- 60/60 checks passedCompatibility and risks
This is additive and does not change tool schemas, permissions, public APIs, or existing adapter matches. The main residual risk is normal marketplace UI drift; the volatile traffic-gate observation is dated, the matcher is an explicit host allowlist, and the notes avoid CSS selectors.
No signed-in checkout or manual challenge completion was performed.
Scope
Tokopedia, Gojek, Grab, and other regional adapters are intentionally deferred to separate PRs.