[object Object]

← back to Vendor Agents Viewer

resolveScraper alias map: 23 vendor codes mapped to existing scraper files (cole_son->cole-and-son, maya->maya-romanoff, hollywood->momentum-textiles, elitis->elitis-wallcovering, etc); port conflicts resolved via registry reassign (dolce_gabbana 9736, andrew_martin 9737, DWDP 9738)

848ffce4202857bc3285d6f40d2dc326e531dbd6 · 2026-06-10 09:02:59 -0700 · SteveStudio2

Files touched

Diff

commit 848ffce4202857bc3285d6f40d2dc326e531dbd6
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed Jun 10 09:02:59 2026 -0700

    resolveScraper alias map: 23 vendor codes mapped to existing scraper files (cole_son->cole-and-son, maya->maya-romanoff, hollywood->momentum-textiles, elitis->elitis-wallcovering, etc); port conflicts resolved via registry reassign (dolce_gabbana 9736, andrew_martin 9737, DWDP 9738)
---
 server.js | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/server.js b/server.js
index a511a7d..0866634 100644
--- a/server.js
+++ b/server.js
@@ -17,9 +17,38 @@ const SSH = 'my-server'; // ~/.ssh/config alias for root@45.61.58.125
 const SCRAPERS_DIR = '/Users/stevestudio2/Projects/Designer-Wallcoverings/DW-Programming/ImportNewSkufromURL/lib/scrapers';
 const AGENT_HOST = path.join(__dirname, 'agent-host.js');
 // vendor_code (underscores) -> scraper id (hyphens); null if no scraper file exists.
+// SCRAPER_ALIASES: registry codes whose scraper file lives under a different id
+// (renames, private-label sources, brand-of-house mappings). Verified 2026-06-10.
+const SCRAPER_ALIASES = {
+  brewster_york: 'brewster',
+  elitis: 'elitis-wallcovering',
+  york_contract: 'york',
+  cole_son: 'cole-and-son',
+  maya: 'maya-romanoff',
+  w1838: '1838-wallcoverings',
+  fabricut: 'fabricut-stroheim',
+  hygge: 'hygge-west',
+  mindthegap: 'mind-the-gap',
+  osborne: 'osborne-little',
+  wallquest: 'wallquest-residential',
+  timorous: 'timorous-beasties',
+  gp_baker: 'gpj-baker',
+  baker_lifestyle: 'gpj-baker',        // Baker Lifestyle is a GP&J Baker house brand
+  gaston_daniela: 'gaston-y-daniela',
+  missoni: 'missoni-home',
+  versace: 'versace-home',
+  mulberry: 'mulberry-home',
+  newwall: 'new-wall',
+  china_seas: 'quadrille',             // China Seas is a Quadrille brand (see quadrille-core)
+  hollywood: 'momentum-textiles',      // Hollywood = Momentum private label
+  jeffrey_stevens: 'york',             // registry: "York (Jeffrey Stevens source)"
+  phillipe_romano: 'york',             // registry: "York/Brewster (Phillipe Romano source)"
+};
 function resolveScraper(vendorCode) {
   if (!vendorCode) return null;
   const cands = [vendorCode.replace(/_/g, '-'), vendorCode.replace(/_/g, ''), vendorCode];
+  const alias = SCRAPER_ALIASES[vendorCode];
+  if (alias) cands.unshift(alias);
   for (const c of cands) {
     if (fs.existsSync(path.join(SCRAPERS_DIR, `${c}-new-products-scraper.ts`))) return c;
   }

← 1e2344e Launch infra: generic agent-host.js (per-vendor, env-paramet  ·  back to Vendor Agents Viewer  ·  alias map: elitis->elitis-wallcovering, DWDP->dwdp exact-cas 6eba3c5 →