Open-source AI browser agent for Chrome and Firefox (monorepo) ðŸ§
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
fix: cover OLX mobile and Despegar Chile
Barack Sokulluec93616e9752
diff --git a/src/chrome/src/agent/adapters.js b/src/chrome/src/agent/adapters.jsindex a821b6c1c..0a36df1b1 100644--- a/src/chrome/src/agent/adapters.js+++ b/src/chrome/src/agent/adapters.js@@ -17728,7 +17728,7 @@ const ADAPTERS = [{name: 'olx',category: 'general',- matches: (url) => /^https?:\/\/(www\.)?olx\.com\.br\//.test(url),+ matches: (url) => /^https?:\/\/(?:www\.|m\.)?olx\.com\.br\//.test(url),notes: `- OLX Brasil (olx.com.br) is Brazil's largest CLASSIFIEDS site (like sahibinden: vehicles, real estate, goods, jobs, services). Most listings are "Fale com o vendedor" / "Chat" / "Mostrar telefone" — NOT a cart checkout. Do NOT hunt for "Adicionar ao carrinho" on a typical listing; read the listing and surface the seller contact path.- Contact trap: "Mostrar telefone" or "Conversar por chat" often needs login; phone may be partially masked or require a reveal click. Never promise a revealed number without clicking through and reporting what the page actually shows — masked vs revealed.@@ -17739,7 +17739,7 @@ const ADAPTERS = [{name: 'despegar',category: 'general',- matches: (url) => /^https?:\/\/(www\.)?(?:despegar\.com(?:\.(?:ar|mx|co|cl|pe|uy|ec|ve))?|decolar\.com)\//.test(url),+ matches: (url) => /^https?:\/\/(www\.)?(?:despegar\.cl|despegar\.com(?:\.(?:ar|mx|co|pe|uy|ec|ve))?|decolar\.com)\//.test(url),notes: `- Despegar (despegar.com / decolar.com in Brazil) is LATAM's largest OTA — flights, packages (Voo+Hôtel), hotels, cars. Tabs "Passagens"/"Pacotes"/"Hotéis" are SEPARATE flows with separate carts — do not mix a flight search with a hotel add.- Search trap: dates, passengers, origem/destino, and cabin class are chosen via the header form. Results URL carries encoded params — set filters via the left rail (escalas, horário, cia aérea, bagagem) and sort ("Menor preço", "Menor duração") instead of editing URL params.diff --git a/src/firefox/src/agent/adapters.js b/src/firefox/src/agent/adapters.jsindex 120bee86f..62f29b081 100644--- a/src/firefox/src/agent/adapters.js+++ b/src/firefox/src/agent/adapters.js@@ -17726,7 +17726,7 @@ const ADAPTERS = [{name: 'olx',category: 'general',- matches: (url) => /^https?:\/\/(www\.)?olx\.com\.br\//.test(url),+ matches: (url) => /^https?:\/\/(?:www\.|m\.)?olx\.com\.br\//.test(url),notes: `- OLX Brasil (olx.com.br) is Brazil's largest CLASSIFIEDS site (like sahibinden: vehicles, real estate, goods, jobs, services). Most listings are "Fale com o vendedor" / "Chat" / "Mostrar telefone" — NOT a cart checkout. Do NOT hunt for "Adicionar ao carrinho" on a typical listing; read the listing and surface the seller contact path.- Contact trap: "Mostrar telefone" or "Conversar por chat" often needs login; phone may be partially masked or require a reveal click. Never promise a revealed number without clicking through and reporting what the page actually shows — masked vs revealed.@@ -17737,7 +17737,7 @@ const ADAPTERS = [{name: 'despegar',category: 'general',- matches: (url) => /^https?:\/\/(www\.)?(?:despegar\.com(?:\.(?:ar|mx|co|cl|pe|uy|ec|ve))?|decolar\.com)\//.test(url),+ matches: (url) => /^https?:\/\/(www\.)?(?:despegar\.cl|despegar\.com(?:\.(?:ar|mx|co|pe|uy|ec|ve))?|decolar\.com)\//.test(url),notes: `- Despegar (despegar.com / decolar.com in Brazil) is LATAM's largest OTA — flights, packages (Voo+Hôtel), hotels, cars. Tabs "Passagens"/"Pacotes"/"Hotéis" are SEPARATE flows with separate carts — do not mix a flight search with a hotel add.- Search trap: dates, passengers, origem/destino, and cabin class are chosen via the header form. Results URL carries encoded params — set filters via the left rail (escalas, horário, cia aérea, bagagem) and sort ("Menor preço", "Menor duração") instead of editing URL params.diff --git a/test/run.js b/test/run.jsindex dc5573c72..f073a13d9 100644--- a/test/run.js+++ b/test/run.js@@ -10265,6 +10265,18 @@ test('Noon adapter covers its primary and Supermall storefronts without trusting}});+test('LATAM adapters cover OLX mobile and the real Despegar Chile domain', () => {+ for (const getAdapter of [getActiveAdapter, getActiveAdapterFx]) {+ assert.equal(getAdapter('https://m.olx.com.br/anuncio/123')?.name, 'olx');+ assert.equal(getAdapter('https://www.olx.com.br/autos-e-pecas')?.name, 'olx');+ assert.notEqual(getAdapter('https://m.olx.com.br.evil.example/anuncio/123')?.name, 'olx');++ assert.equal(getAdapter('https://www.despegar.cl/vuelos/')?.name, 'despegar');+ assert.equal(getAdapter('https://www.despegar.com.ar/hoteles/')?.name, 'despegar');+ assert.notEqual(getAdapter('https://www.despegar.cl.evil.example/vuelos/')?.name, 'despegar');+ }+});+test('India payment and Tatkal guidance keeps finance, timing, and authentication safety signals', () => {for (const getAdapter of [getActiveAdapter, getActiveAdapterFx]) {const paytm = getAdapter('https://paytm.com/recharge');