Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions hub/scripts/compile-manifests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,42 @@ export const VALID_HTML_MODES = new Set([
'smb_ats_full_html',
'edu_job_boards_html',
'healthcare_careers_html',
// Wave 3 B2 Category D (Universal Schema.org #237-#241, deduplicated with #140)
'schema_vehicle_html',
'schema_faq_howto_html',
'schema_dataset_html',
'schema_software_app_html',
'schema_medical_html',
// Wave 3 B2 Category E (Community #243-#250, deduplicated with #140)
'wild_apricot_html',
'association_ams_html',
'runsignup_html',
'bikereg_usacycling_html',
'race_results_pack_html',
'lemmy_html',
'peertube_html',
'fediverse_pack_html',
// Wave 3 B2 Categories F/G/H (Property, Restaurant & IR/Newsrooms #251-#261)
'appfolio_listings_html',
'pm_listing_widgets_html',
'multifamily_portals_html',
'idx_broker_showcase_html',
'popmenu_html',
'bentobox_html',
'square_toast_menu_html',
'schema_menu_html',
'q4_ir_html',
'ir_portal_pack_html',
'company_newsrooms_html',
// Wave 3 B2 Category I (Store Add-Ons #263-#270, deduplicated with #140)
'shopify_hydrogen_html',
'recharge_bold_subscriptions_html',
'shopify_filter_apps_html',
'rebuy_searchanise_html',
'aftership_tracking_html',
'branded_tracking_pack_html',
'gorgias_reamaze_html',
'klaviyo_attentive_forms_html',
]);

const pslDatPath = join(manifestsDir, 'public_suffix_list.dat');
Expand Down Expand Up @@ -457,6 +493,31 @@ const APPROVED_WILDCARD_DOMAIN_PATTERNS = new Set([
'*.freshteam.com',
'*.homerun.co',
'*.healthcaresource.com',
// Wave 3 B2 Category E
'*.chambermaster.com',
'*.growthzoneapp.com',
'*.wildapricot.org',
'*.memberclicks.net',
'*.site-ym.com',
// Wave 3 B2 Categories F/G/H
'*.appfolio.com',
'*.managebuilding.com',
'*.propertyware.com',
'*.rentmanager.com',
'*.rentcafe.com',
'*.entrata.com',
'*.realpage.com',
'*.idxbroker.com',
'*.popmenu.com',
'*.getbento.com',
'*.q4web.com',
'*.prowly.com',
'*.prezly.com',
// Wave 3 B2 Category I
'*.aftership.com',
'*.narvar.com',
'*.gorgias.help',
'*.reamaze.com',
]);

const RESERVED_CORE_ATS_DOMAINS = new Set([
Expand Down
1 change: 1 addition & 0 deletions hub/scripts/run-tests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const suiteSpecs = [
['test/wave2d-local.test.ts', 'wave2d-local.test.mjs'],
['test/wave2d-sports-misc.test.ts', 'wave2d-sports-misc.test.mjs'],
['test/wave3-b1-gov-edu-jobs.test.ts', 'wave3-b1-gov-edu-jobs.test.mjs'],
['test/wave3-b2-schema-community-store.test.ts', 'wave3-b2-schema-community-store.test.mjs'],
['test/mcp-part2-wave2e.test.ts', 'mcp-part2-wave2e.test.mjs'],
['test/wave2-security-fixes.test.ts', 'wave2-security-fixes.test.mjs'],
['test/hub-secrets-policy.test.ts', 'hub-secrets-policy.test.mjs'],
Expand Down
53 changes: 50 additions & 3 deletions hub/src/extractors/declarative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,15 @@ export type DeclarativeJsonMode =
| 'bullhorn_joborder_json'
| 'staffing_ats_json'
| 'manatal_jobs_json'
| 'smb_ats_json';
| 'smb_ats_json'
| 'runsignup_json'
| 'bikereg_json'
| 'lemmy_json'
| 'peertube_json'
| 'fediverse_pack_json'
| 'q4_ir_json'
| 'shopify_filter_apps_json'
| 'rebuy_searchanise_json';

export interface DeclarativeExtractSpec {
commerceMode?: DeclarativeCommerceMode;
Expand Down Expand Up @@ -622,7 +630,9 @@ export interface DeclarativeExtractSpec {
| 'edge_cloud_changelog_xml'
| 'fhfa_hpi_csv'
| 'public_share_csv'
| 'boarddocs_text';
| 'boarddocs_text'
| 'ir_portal_rss_xml'
| 'company_newsroom_rss_xml';
pathParam?: string;
codeByPath?: DeclarativeCodeByPathSpec;
xml?: DeclarativeXmlSpec;
Expand Down Expand Up @@ -921,7 +931,44 @@ export type DeclarativeHtmlMode =
| 'staffing_ats_pack_html'
| 'smb_ats_full_html'
| 'edu_job_boards_html'
| 'healthcare_careers_html';
| 'healthcare_careers_html'
| 'schema_recipe_html'
| 'schema_event_html'
| 'schema_localbusiness_html'
| 'schema_vehicle_html'
| 'schema_faq_howto_html'
| 'schema_dataset_html'
| 'schema_software_app_html'
| 'schema_medical_html'
| 'chambermaster_growthzone_html'
| 'wild_apricot_html'
| 'association_ams_html'
| 'runsignup_html'
| 'bikereg_usacycling_html'
| 'race_results_pack_html'
| 'lemmy_html'
| 'peertube_html'
| 'fediverse_pack_html'
| 'appfolio_listings_html'
| 'pm_listing_widgets_html'
| 'multifamily_portals_html'
| 'idx_broker_showcase_html'
| 'popmenu_html'
| 'bentobox_html'
| 'square_toast_menu_html'
| 'schema_menu_html'
| 'q4_ir_html'
| 'ir_portal_pack_html'
| 'company_newsrooms_html'
| 'shopify_storefront_graphql_html'
| 'shopify_hydrogen_html'
| 'recharge_bold_subscriptions_html'
| 'shopify_filter_apps_html'
| 'rebuy_searchanise_html'
| 'aftership_tracking_html'
| 'branded_tracking_pack_html'
| 'gorgias_reamaze_html'
| 'klaviyo_attentive_forms_html';

export interface DeclarativeHtmlRouteSpec {
id?: string;
Expand Down
41 changes: 41 additions & 0 deletions hub/test/fixtures/adapters/aftership-tracking-page.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"adapterId": "aftership-tracking-page",
"mode": "html",
"inputUrl": "https://nealsyardremedies.aftership.com/",
"mockPayload": "<!doctype html><html><head><title>Track Your Order | Neal's Yard Remedies</title><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"organization\":{\"name\":\"Neal's Yard Remedies\"},\"tracking\":{\"tracking_number\":\"1Z999AA10123456784\",\"courier_name\":\"UPS\",\"tag\":\"Delivered\",\"subtag_message\":\"Delivered to Front Porch\",\"expected_delivery\":\"2026-11-28\",\"checkpoints\":[{\"checkpoint_time\":\"2026-11-28T14:20:00Z\",\"location\":\"Boston, MA\",\"tag\":\"Delivered\",\"message\":\"Delivered at front door\"}]}}}}</script></head><body><h1>Track Your Order</h1><div id=\"__next\"></div></body></html>",
"expectTitleIncludes": "Track Your Order",
"expectMarkdownIncludes": [
"Neal's Yard Remedies",
"1Z999AA10123456784",
"UPS",
"Boston, MA"
],
"negativeCases": [
{
"name": "http-404",
"status": 404,
"payload": "<!doctype html><html><head><title>404 Not Found</title></head><body><h1>Tracking Not Found</h1></body></html>"
},
{
"name": "redirect-to-error",
"status": 200,
"finalUrl": "https://nealsyardremedies.aftership.com/error",
"payload": "<!doctype html><html><head><title>Error</title></head><body><h1>Application Error</h1></body></html>"
},
{
"name": "maintenance-shell",
"status": 503,
"payload": "<!doctype html><html><head><title>503 Service Unavailable</title></head><body><h1>Scheduled Maintenance</h1><p>AfterShip portal is under maintenance.</p></body></html>"
},
{
"name": "empty-spa-shell",
"status": 200,
"payload": "<!doctype html><html><head><title>Loading...</title></head><body><div id=\"__next\"></div><script src=\"/_next/static/app.js\"></script></body></html>"
},
{
"name": "cf-challenge",
"status": 403,
"payload": "<!doctype html><html><head><title>Just a moment...</title></head><body><div class=\"cf-turnstile\">Enable JavaScript and cookies to continue</div></body></html>"
}
]
}
35 changes: 35 additions & 0 deletions hub/test/fixtures/adapters/appfolio-listings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"adapterId": "appfolio-listings",
"mode": "html",
"inputUrl": "https://lapmg.appfolio.com/listings",
"mockPayload": "<!doctype html><html><head><title>Rental Listings</title><meta property=\"og:site_name\" content=\"Los Angeles Property Management Group\"></head><body><h1>Available Rental Listings</h1><div class=\"js-listing-item listing-item\"><h2 class=\"listing-item__title\"><a class=\"js-link-to-detail\" href=\"/listings/detail/11111111-2222-3333-4444-555555555555\">1234 Sunset Blvd #204, Los Angeles, CA 90026</a></h2><div class=\"listing-item__info\">$2,450/mo | 2 bd | 1 ba | 920 sq ft</div></div></body></html>",
"expectTitleIncludes": "Rental Listings",
"expectMarkdownIncludes": [
"Los Angeles Property Management Group",
"1234 Sunset Blvd #204",
"$2,450"
],
"negativeCases": [
{
"name": "http-404",
"status": 404,
"payload": "<!doctype html><html><head><title>404 Not Found</title></head><body><h1>Page Not Found</h1></body></html>"
},
{
"name": "redirect-to-page-not-found-sub",
"status": 200,
"finalUrl": "https://www.appfolio.com/page-not-found-sub",
"payload": "<!doctype html><html><head><title>Page not found | AppFolio</title></head><body><h1>Page not found</h1><p>The page you requested could not be found.</p></body></html>"
},
{
"name": "maintenance-shell",
"status": 503,
"payload": "<!doctype html><html><head><title>503 Service Unavailable</title></head><body><h1>Scheduled Maintenance</h1><p>This site is down for maintenance. Please check back soon.</p></body></html>"
},
{
"name": "empty-spa-shell",
"status": 200,
"payload": "<!doctype html><html><head><title>Loading...</title></head><body><div id=\"root\"></div><script src=\"/app.js\"></script></body></html>"
}
]
}
35 changes: 35 additions & 0 deletions hub/test/fixtures/adapters/association-ams-pack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"adapterId": "association-ams-pack",
"mode": "html",
"inputUrl": "https://www.austinaptassoc.com/events",
"mockPayload": "<!doctype html><html><head><title>Events - Austin Apartment Association</title><meta property=\"og:site_name\" content=\"Austin Apartment Association\"><link rel=\"stylesheet\" href=\"/novi-core-assets/site.css\"></head><body><h1>Events</h1><div class=\"novi-content-wrapper\"><div class=\"event-list-container\"><a href=\"/events/2026-annual-trade-show\">2026 Annual Trade Show &amp; Expo</a><p>Connect with multifamily property managers and suppliers across Central Texas.</p></div></div></body></html>",
"expectTitleIncludes": "Austin Apartment Association",
"expectMarkdownIncludes": [
"Novi AMS",
"2026 Annual Trade Show",
"multifamily property managers"
],
"negativeCases": [
{
"name": "http-404",
"status": 404,
"payload": "<!doctype html><html><head><title>404 - Page Not Found</title></head><body><h1>Page Not Found</h1></body></html>"
},
{
"name": "redirect-to-error",
"status": 200,
"finalUrl": "https://www.austinaptassoc.com/error",
"payload": "<!doctype html><html><head><title>Error</title></head><body><div class=\"novi-content-wrapper\">Error</div></body></html>"
},
{
"name": "maintenance-shell",
"status": 503,
"payload": "<!doctype html><html><head><title>Scheduled Maintenance</title></head><body><h1>Site Maintenance</h1><p>This portal is temporarily unavailable due to scheduled maintenance.</p></body></html>"
},
{
"name": "empty-spa-shell",
"status": 200,
"payload": "<!doctype html><html><head><title>Loading...</title></head><body><div id=\"root\"></div><script src=\"/app.js\"></script></body></html>"
}
]
}
35 changes: 35 additions & 0 deletions hub/test/fixtures/adapters/bentobox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"adapterId": "bentobox",
"mode": "html",
"inputUrl": "https://www.gramercytavern.com/dining-room-menu/",
"mockPayload": "<!doctype html><html><head><title>Menu | Gramercy Tavern</title><meta property=\"og:site_name\" content=\"Gramercy Tavern\"><script src=\"https://assets.getbento.com/bento-analytics.js\"></script></head><body><h1>Dining Room Menu</h1><section class=\"menu-section\"><h2 class=\"menu-section__header\">First Courses</h2><div class=\"menu-item\"><p class=\"menu-item__heading--name\">Roasted Maitake Mushrooms</p><p class=\"menu-item__details--description\">Brioche, egg yolk, smoked bone marrow</p><p class=\"menu-item__details--price\">$28</p></div></section></body></html>",
"expectTitleIncludes": "Dining Room Menu",
"expectMarkdownIncludes": [
"First Courses",
"Roasted Maitake Mushrooms",
"$28"
],
"negativeCases": [
{
"name": "http-404",
"status": 404,
"payload": "<!doctype html><html><head><title>Page Not Found</title></head><body><h1>Page Not Found</h1></body></html>"
},
{
"name": "redirect-to-error",
"status": 200,
"finalUrl": "https://www.gramercytavern.com/error",
"payload": "<!doctype html><html><head><title>Page Not Found</title></head><body><h1>Page Not Found</h1></body></html>"
},
{
"name": "maintenance-shell",
"status": 503,
"payload": "<!doctype html><html><head><title>503 Service Unavailable</title></head><body><h1>Scheduled Maintenance</h1><p>This site is down for maintenance. Please check back soon.</p></body></html>"
},
{
"name": "empty-spa-shell",
"status": 200,
"payload": "<!doctype html><html><head><title>Loading...</title></head><body><div id=\"root\"></div><script src=\"/app.js\"></script></body></html>"
}
]
}
37 changes: 37 additions & 0 deletions hub/test/fixtures/adapters/bikereg-usacycling.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"adapterId": "bikereg-usacycling",
"mode": "twin",
"inputUrl": "https://www.bikereg.com/api/search?name=Hush%20Money",
"expectedFetchUrl": "https://www.bikereg.com/api/search?name=Hush%20Money",
"mockPayload": "{\"CompletionTime\":0,\"MatchingEvents\":[{\"EventId\":77778,\"EventName\":\"Hush Money Gravel Classic\",\"EventUrl\":\"https://www.bikereg.com/hush-money\",\"EventAddress\":\"414 N Mary St\",\"EventCity\":\"Lancaster\",\"EventState\":\"PA\",\"EventDate\":\"/Date(1795755600000-0500)/\",\"Categories\":[{\"CategoryID\":980084,\"CategoryName\":\"Both Distances - Open\",\"Distance\":\"55 miles\",\"EntryFee\":25.0,\"StartTime\":\"10:00:00\",\"CategoryDates\":[\"/Date(1795755600000-0500)/\"]}]}]}",
"expectTitleIncludes": "Hush Money Gravel Classic",
"expectMarkdownIncludes": [
"BikeReg",
"2026-11-27",
"Lancaster, PA",
"$25.00"
],
"negativeCases": [
{
"name": "http-404",
"status": 404,
"payload": "{\"error\":\"Event not found\"}"
},
{
"name": "redirect-to-error",
"status": 200,
"finalUrl": "https://www.bikereg.com/error",
"payload": "{\"error\":\"Redirected to error\"}"
},
{
"name": "maintenance-shell",
"status": 503,
"payload": "<!doctype html><html><head><title>503 Service Unavailable</title></head><body><h1>Down for Maintenance</h1><p>BikeReg is temporarily unavailable.</p></body></html>"
},
{
"name": "empty-events-json",
"status": 200,
"payload": "{\"MatchingEvents\":[]}"
}
]
}
36 changes: 36 additions & 0 deletions hub/test/fixtures/adapters/branded-tracking-pack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"adapterId": "branded-tracking-pack",
"mode": "html",
"inputUrl": "https://tracking.narvar.com/asics/tracking",
"mockPayload": "<!doctype html><html><head><title>ASICS Order Tracking | Narvar</title><script src=\"https://sutro-cdn.domain-track.prod20.narvar.com/_next/static/app.js\"></script><script id=\"__NEXT_DATA__\" type=\"application/json\">{\"props\":{\"pageProps\":{\"retailerName\":\"ASICS\",\"trackingNumber\":\"9400111899223344556677\",\"carrier\":\"USPS\",\"status\":\"In Transit\",\"tracking\":{\"checkpoints\":[{\"time\":\"2026-11-27\",\"location\":\"Newark, NJ\",\"message\":\"Departed USPS Regional Facility\"}]}}}}</script></head><body><h1>ASICS Order Tracking</h1></body></html>",
"expectTitleIncludes": "ASICS Order Tracking",
"expectMarkdownIncludes": [
"Narvar",
"ASICS",
"9400111899223344556677",
"Newark, NJ"
],
"negativeCases": [
{
"name": "http-404",
"status": 404,
"payload": "<!doctype html><html><head><title>404 Not Found</title></head><body><h1>Tracking Not Found</h1></body></html>"
},
{
"name": "redirect-to-error",
"status": 200,
"finalUrl": "https://tracking.narvar.com/error",
"payload": "<!doctype html><html><head><title>Error</title></head><body><h1>Error</h1></body></html>"
},
{
"name": "maintenance-shell",
"status": 503,
"payload": "<!doctype html><html><head><title>503 Service Unavailable</title></head><body><h1>Down for Maintenance</h1></body></html>"
},
{
"name": "route-empty-csr-shell",
"status": 200,
"payload": "<!doctype html><html><head><title>Route Tracking</title><script defer src=\"https://tracking.route.com/static/js/main.js\"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id=\"root\"></div></body></html>"
}
]
}
Loading
Loading