Skip to content

agent: add adapter for Qunar - #2650

Merged
esokullu merged 1 commit into
webbrain-one:mainfrom
alectimison-maker:agent/qunar-adapter
Aug 2, 2026
Merged

agent: add adapter for Qunar#2650
esokullu merged 1 commit into
webbrain-one:mainfrom
alectimison-maker:agent/qunar-adapter

Conversation

@alectimison-maker

Copy link
Copy Markdown
Contributor

Summary

Adds a mirrored Qunar / 去哪儿 adapter for Chrome and Firefox.

  • Cover flight, hotel, train, ticket, holiday, account, order, mobile, and nested product hosts while excluding asset/announcement/security hosts.
  • Recover from the current footer-only www.qunar.com shell by using the requested business surface.
  • Verify itinerary/product, supplier, update time, inclusions, restrictions, and final total.
  • Distinguish search, supplier handoff, order creation, payment, and confirmed/issued states.
  • Require explicit confirmation for order creation and payment and preserve supplier/order details.
  • Add trusted-host, nested-host, lookalike-host, product-state, action-boundary, and browser-parity tests.

Validation

  • Test-first assertion failed before implementation, then passed.
  • Anonymous Playwright check: flight.qunar.com returned HTTP 200 with current one-way/round-trip inputs, order links, and product navigation; www.qunar.com returned HTTP 200 but rendered only its footer.
  • Targeted assertions: passed.
  • node test/run.js: 1404/1405 passed; the sole pre-existing failure is package.json 26.0.4 versus CHANGELOG.md 26.0.0.
  • Security corpus: 60/60 passed.
  • git diff --check: passed.

Compatibility and risks

Prompt-only and mirrored across browser builds. No authenticated identity, order, supplier redirect, or payment action was performed; consequential steps require explicit confirmation and final order-status evidence.

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a mirrored Qunar travel adapter with host matching, booking guidance, and action safeguards.

Changes:

  • Supports Qunar product, account, order, and mobile hosts.
  • Adds booking-state and confirmation guidance.
  • Tests trusted/excluded hosts and browser 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 Qunar adapter.
src/firefox/src/agent/adapters.js Mirrors the adapter for Firefox.
test/run.js Tests matching, guidance, exclusions, and parity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@esokullu
esokullu merged commit cc6aaef into webbrain-one:main Aug 2, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants