Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.
TypeScript aeoai-agentai-searchanswer-engine-optimizationbrand-monitoringchatgptclaudecopilotdockergeminigeogoogle-ai-overviewsgrokmcpnextjsopen-sourceperplexityseosupabasetypescript
feat(tracking): ask Google AI Overview and AI Mode from a US state, by its name (#1730)
Cihan3809f50317f0
diff --git a/docs/guides/prompts.mdx b/docs/guides/prompts.mdxindex 8c3bb73a5..da9cd3465 100644--- a/docs/guides/prompts.mdx+++ b/docs/guides/prompts.mdx@@ -69,6 +69,8 @@ Click a cell to open the prompt's Positions panel for that location. A location2. Choose which prompts to ask there: the one you clicked, the selected ones, a topic, or every prompt shown.3. Check **Plan usage**. Every prompt in every location counts once on your plan's prompt locations; for example, 50 prompts in two more places use 100 more. Paused prompts don't count.+**US states** are asked by every engine from the state itself: ChatGPT, Perplexity, Copilot and Gemini through the provider's state setting, Google AI Mode and Google AI Overview by the state's name as Google knows it ("California, United States"), and the API models (OpenAI, Claude) by its region. Google's engines asked a state country-wide until October 2026: their answers from before then stay in the country's column.+**Cities** are asked by the engines that can answer from a city: Google AI Mode, Google AI Overview and the API models (OpenAI, Claude). ChatGPT, Perplexity, Copilot, Gemini and Grok answer per country, so they skip a city, and their answers stay in the country's column; track the country too to see them. A city column in the Locations view says *AI Mode · AIO · APIs*. A city counts as one location on your plan, like a country, on every plan. If none of the chosen prompts runs one of those engines, the dialog says so and adds nothing.If the choice would pass your plan's limit, the dialog says how many it needs and how many are left, and saves nothing. Pick fewer prompts or places, or:diff --git a/server/src/lib/cities.test.js b/server/src/lib/cities.test.jsindex 71d543fac..929f1c8b0 100644--- a/server/src/lib/cities.test.js+++ b/server/src/lib/cities.test.js@@ -1,7 +1,7 @@import { readFileSync } from 'node:fs';import { describe, expect, it } from 'vitest';import { CITIES, cityFor } from './cities.js';-import { CITY_SCRAPERS, COUNTRY_ONLY_SCRAPERS } from './locations.js';+import { CITY_SCRAPERS, locationsForScraper } from './locations.js';/*** The cities and the engines that ask from them (PROMPT-015d) are listed on@@ -38,11 +38,10 @@ describe('cities on both sides (PROMPT-015d)', () => {expect([...CITY_SCRAPERS].sort()).toEqual(quoted(web[1]).sort());});- it('runs country-wide the engines the location picker says have no states', () => {- const web = read('web/src/components/dashboard/location-picker.tsx').match(- /COUNTRY_ONLY_PLATFORMS\s*=\s*new Set\(\[([^\]]*)\]\)/,+ it('runs a US state on every engine, as the location picker no longer says otherwise', () => {+ for (const id of CITY_SCRAPERS) expect(locationsForScraper(['US-CA'], id)).toEqual(['US-CA']);+ expect(read('web/src/components/dashboard/location-picker.tsx')).not.toMatch(+ /COUNTRY_ONLY_PLATFORMS/,);- expect(web).not.toBeNull();- expect([...COUNTRY_ONLY_SCRAPERS].sort()).toEqual(quoted(web[1]).sort());});});diff --git a/server/src/lib/cloro-countries.js b/server/src/lib/cloro-countries.jsindex 2f99daef7..155ec9e61 100644--- a/server/src/lib/cloro-countries.js+++ b/server/src/lib/cloro-countries.js@@ -188,8 +188,7 @@ export function supportsCountry(supported, scraperId, country) {/*** The locations a scraper is asked from: locationsForScraper's (cities only- * for Google's engines, states collapsed where they can't be targeted),- * less the countries the scraper doesn't answer from.+ * for Google's engines), less the countries the scraper doesn't answer from.*/export function supportedLocations(locations, scraperId, supported) {return locationsForScraper(locations, scraperId).filter((code) =>diff --git a/server/src/lib/cloro-countries.test.js b/server/src/lib/cloro-countries.test.jsindex e567c2cc0..8d9c451db 100644--- a/server/src/lib/cloro-countries.test.js+++ b/server/src/lib/cloro-countries.test.js@@ -7,7 +7,7 @@ vi.mock('../config/supabase.js', () => ({ default: {} }));import { fakeDb } from './catalog/__fixtures__/fake-db.js';import { logger } from './logger.js';-import { CITY_SCRAPERS, COUNTRY_ONLY_SCRAPERS } from './locations.js';+import { CITY_SCRAPERS } from './locations.js';import {CLORO_COUNTRY_MODELS,countryCodesIn,@@ -191,10 +191,12 @@ describe('supportsCountry and supportedLocations', () => {it('skips a country an engine does not support, cities and states included', () => {const codes = ['US', 'KE', 'TR~ISTANBUL', 'US-CA'];expect(supportedLocations(codes, 'copilot-web', supported)).toEqual(['US', 'US-CA']);+ // Google's engines ask from the state too.expect(supportedLocations(codes, 'google-aimode', supported)).toEqual(['US','KE','TR~ISTANBUL',+ 'US-CA',]);expect(supportedLocations([], 'copilot-web', supported)).toEqual([null]);});@@ -229,13 +231,8 @@ describe('the provider models on both sides (PROMPT-015e)', () => {expect(pairs).toEqual(CLORO_COUNTRY_MODELS);});- it('leaves a US state to the models of the engines the API runs country-wide', () => {- const countryOnly = web.match(/COUNTRY_ONLY_MODELS[^=]*=\s*new Set\(\[([^\]]*)\]\)/);- expect(countryOnly).not.toBeNull();- const webModels = [...countryOnly[1].matchAll(/'([^']+)'/g)].map((m) => m[1]);- expect(webModels.sort()).toEqual(- [...new Set([...COUNTRY_ONLY_SCRAPERS].map((id) => CLORO_COUNTRY_MODELS[id]))].sort(),- );+ it('leaves a US state to every model, as the API runs a state on every engine', () => {+ expect(web).not.toMatch(/COUNTRY_ONLY_MODELS/);});it("takes a city on the models of the API's city engines", () => {diff --git a/server/src/lib/cloro-scraper.js b/server/src/lib/cloro-scraper.jsindex 8c03f0d5e..55921be65 100644--- a/server/src/lib/cloro-scraper.js+++ b/server/src/lib/cloro-scraper.js@@ -34,15 +34,15 @@ function getApiKey() {export function buildRequestBody(promptText, scraperId, region, state, location) {const country = region || 'US';- // A city (PROMPT-015d): Google's canonical name, which the Google- // endpoints take as `location` beside the country. Only they get it.+ // A city (PROMPT-015d) or a US state: Google's canonical name+ // (googleLocationFor), which the Google endpoints take as `location` beside+ // the country. Only they get it.const locationField = location ? { location } : {};// State-level geo-targeting (#554): the AI endpoints accept a USPS state// code alongside country US and route through an in-state proxy. Google- // AIO / AI Mode use location/uule for sub-country targeting instead and- // must never receive it — their branches below skip this spread, and since- // #691 the caller never even submits a per-state task for them.+ // AIO / AI Mode ask from a state through `location` instead and must never+ // receive `state` too: their branches below skip this spread.const stateField = country === 'US' && state ? { state } : {};if (scraperId === 'chatgpt-shopping') {@@ -266,8 +266,9 @@ export function parseScraperResponse(result, scraperId) {* @param {string} [region]* @param {{ webhookUrl?: string, state?: string, location?: string }} [opts] - `state` is the* USPS code of the location this task targets (#554, per-prompt since- * #691); only forwarded on US AI-endpoint tasks. `location` is a city's- * Google canonical name (PROMPT-015d), forwarded on Google tasks only.+ * #691); only forwarded on US AI-endpoint tasks. `location` is a city's or+ * a US state's Google canonical name (googleLocationFor), forwarded on+ * Google tasks only.* @returns {Promise<{ taskId: string, scraperId: string }>}*/export async function submitScraperTask(promptText, scraperId, region, opts = {}) {diff --git a/server/src/lib/cloro-scraper.test.js b/server/src/lib/cloro-scraper.test.jsindex 9a7a0cfd0..6a39253a3 100644--- a/server/src/lib/cloro-scraper.test.js+++ b/server/src/lib/cloro-scraper.test.js@@ -495,6 +495,19 @@ describe('cloro-scraper – buildRequestBody city targeting (PROMPT-015d)', () =expect(buildRequestBody('p', 'google-aio', 'TR')).not.toHaveProperty('location');});+ it("sends a US state's Google name the same way, and never as `state` too", () => {+ const location = 'California,United States';+ for (const id of ['google-aimode', 'google-aio']) {+ const body = buildRequestBody('p', id, 'US', 'CA', location);+ expect(body).toMatchObject({ country: 'US', location });+ expect(body).not.toHaveProperty('state');+ }+ // The AI endpoints take the state as `state`, and no `location`.+ const chat = buildRequestBody('p', 'chatgpt-web', 'US', 'CA', location);+ expect(chat).toMatchObject({ country: 'US', state: 'CA' });+ expect(chat).not.toHaveProperty('location');+ });+it('never sends it to the other engines', () => {expect(buildRequestBody('p', 'chatgpt-web', 'TR', undefined, 'Istanbul,Istanbul,Turkiye'),diff --git a/server/src/lib/locations.js b/server/src/lib/locations.jsindex b265ffb0c..9cda3e56f 100644--- a/server/src/lib/locations.js+++ b/server/src/lib/locations.js@@ -72,20 +72,12 @@ export const US_STATE_NAMES = {DC: 'District of Columbia',};-/**- * Scrapers with no sub-country targeting mechanism. Google AIO / AI Mode- * locate through location/uule parameters Cloro's AI endpoints don't accept,- * so a state code means nothing to them: they can only be run country-wide- * (#691, carried over from #554). The web's location picker lists the same- * engines (cities.test.js keeps them together).- */-export const COUNTRY_ONLY_SCRAPERS = new Set(['google-aio', 'google-aimode']);-/*** Scrapers that can ask from a city (PROMPT-015d): Google's, through the* provider's `location`. The others answer per country (or US state), so a* city code is skipped for them rather than run again country-wide. The- * web's CITY_PLATFORMS is the same list (cities.test.js).+ * web's CITY_PLATFORMS is the same list (cities.test.js). A US state they+ * ask from through `location` too (googleLocationFor).*/export const CITY_SCRAPERS = new Set(['google-aio', 'google-aimode']);@@ -137,36 +129,31 @@ export function isUnknownCity(code) {* a city (CITY_SCRAPERS) and dropped for the rest: they answer per country,* and the prompt's country, when tracked, already runs them.*- * Every code a state-capable engine can use survives as-is. For the- * country-only engines the list collapses to its distinct countries, so a- * prompt targeting California and Texas submits ONE country-wide Google task- * instead of two identical ones — which would have doubled the spend and- * written two rows differing only in a state label neither run honoured.+ * Every other code survives as-is, a US state included: the AI endpoints+ * take it as `state`, Google's engines as `location` (googleLocationFor).+ * Until 2026-10 Google's engines ran a state country-wide, once per country.** Order is preserved so task submission stays deterministic.*/export function locationsForScraper(locations, scraperId) {const given = locationsForModels(locations);// A city is run only by the engines that can ask from one (PROMPT-015d).- const list = CITY_SCRAPERS.has(scraperId) ? given : given.filter((code) => !isCityCode(code));- if (!COUNTRY_ONLY_SCRAPERS.has(scraperId)) return list;+ return CITY_SCRAPERS.has(scraperId) ? given : given.filter((code) => !isCityCode(code));+}- const seen = new Set();- const collapsed = [];- for (const code of list) {- // A city is asked from the city itself; only states collapse to their country.- if (isCityCode(code)) {- if (!seen.has(code)) collapsed.push(code);- seen.add(code);- continue;- }- const { country } = parseLocation(code);- const key = country ?? '';- if (seen.has(key)) continue;- seen.add(key);- collapsed.push(country);- }- return collapsed;+/**+ * Where Google's engines (CITY_SCRAPERS) ask from, as the provider's+ * `location` takes it: Google's canonical name of a city+ * ("Los Angeles,California,United States", cities.js) or of a US state+ * ("California,United States"); undefined for a country, which goes as+ * `country` alone. Never sent with `state`: the Google endpoints take one+ * place, and the AI endpoints' `state` isn't theirs.+ */+export function googleLocationFor(code) {+ const { state, city } = parseLocation(code);+ if (city) return city.google;+ if (state) return `${US_STATE_NAMES[state]},United States`;+ return undefined;}/**diff --git a/server/src/lib/locations.test.js b/server/src/lib/locations.test.jsindex c5c8e4701..d7b0ba56f 100644--- a/server/src/lib/locations.test.js+++ b/server/src/lib/locations.test.js@@ -1,5 +1,6 @@import { describe, it, expect } from 'vitest';import {+ googleLocationFor,isUnknownCity,locationsForModels,locationsForScraper,@@ -42,12 +43,14 @@ describe('locationsForScraper', () => {]);});- it('collapses states to one country-wide run for Google engines', () => {- // Two states of the same country would otherwise submit two identical- // country-wide tasks — double spend, and two rows that differ only by a- // state label neither run honoured.- expect(locationsForScraper(['US-CA', 'US-TX', 'DE'], 'google-aio')).toEqual(['US', 'DE']);- expect(locationsForScraper(['US-CA', 'US-TX'], 'google-aimode')).toEqual(['US']);+ it('keeps every US state for Google engines too, each asked from the state', () => {+ // Until 2026-10 they ran a state country-wide, once per country.+ expect(locationsForScraper(['US-CA', 'US-TX', 'DE'], 'google-aio')).toEqual([+ 'US-CA',+ 'US-TX',+ 'DE',+ ]);+ expect(locationsForScraper(['US', 'US-CA'], 'google-aimode')).toEqual(['US', 'US-CA']);});it('leaves country-only targeting untouched for Google engines', () => {@@ -60,6 +63,22 @@ describe('locationsForScraper', () => {});});+describe('googleLocationFor', () => {+ it('names a US state as Google does, beside its country', () => {+ expect(googleLocationFor('US-CA')).toBe('California,United States');+ expect(googleLocationFor('us-ny')).toBe('New York,United States');+ expect(googleLocationFor('US-DC')).toBe('District of Columbia,United States');+ });++ it('names a city by its Google name, and a country not at all', () => {+ expect(googleLocationFor('TR~ISTANBUL')).toBe('Istanbul,Istanbul,Turkiye');+ expect(googleLocationFor('US')).toBeUndefined();+ expect(googleLocationFor('DE')).toBeUndefined();+ expect(googleLocationFor(null)).toBeUndefined();+ expect(googleLocationFor('TR~NOWHERE')).toBeUndefined();+ });+});+describe('userLocationFor', () => {it('sends country only for a country location, exactly as before states', () => {expect(userLocationFor('DE')).toEqual({ type: 'approximate', country: 'DE' });@@ -95,7 +114,7 @@ describe('cities (PROMPT-015d)', () => {expect(locationsForScraper(codes, 'chatgpt-web')).toEqual(['TR']);expect(locationsForScraper(codes, 'google-aimode')).toEqual(['TR', 'TR~ISTANBUL', 'TR~ANKARA']);expect(locationsForScraper(['US-CA', 'US~NEW_YORK'], 'google-aio')).toEqual([- 'US',+ 'US-CA','US~NEW_YORK',]);// A prompt tracked only in cities: nothing for the engines that can't ask from one.diff --git a/server/src/workers/tracking-worker.js b/server/src/workers/tracking-worker.jsindex 2c0e96d48..ca80ffa20 100644--- a/server/src/workers/tracking-worker.js+++ b/server/src/workers/tracking-worker.js@@ -17,6 +17,7 @@ import { persistCitationRows } from '../lib/citation-rows.js';import {isUnknownCity,locationsForModels,+ googleLocationFor,locationsForScraper,parseLocation,} from '../lib/locations.js';@@ -336,9 +337,7 @@ export async function processTrackingJob({ brandId, promptId, promptIds, source,supportedLocations(locationsFor(prompt), scraperId, supportedCountries);// 4. Count total tasks: one per prompt × engine × location that engine can- // actually run. Google AIO / AI Mode have no sub-country mechanism, so- // their state locations collapse to one country-wide task — counting them- // per state would promise the progress bar work that is never submitted.+ // actually run: a city only by Google's engines, a US state by every one.let totalTasks = 0;let unsupported = 0;for (const prompt of prompts) {@@ -428,11 +427,13 @@ export async function processTrackingJob({ brandId, promptId, promptIds, source,// brand's single state column (#691): different prompts can target// different places, and a brand-wide override would silently win// over them.- const { country, state, city } = parseLocation(t.region);+ // Google's engines take a city or a US state as `location`, the AI+ // endpoints a state as `state`; buildRequestBody gives each its own.+ const { country, state } = parseLocation(t.region);return submitScraperTask(t.prompt.text, t.scraperId, country, {webhookUrl,state,- location: city?.google,+ location: googleLocationFor(t.region),}).then((res) => ({...res,meta: t,diff --git a/web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/prompts/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/prompts/page.tsxindex 2811cd9b8..5976bb557 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/prompts/page.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/prompts/page.tsx@@ -458,15 +458,6 @@ export default function PromptsPage() {[allPrompts, bulkPromptIds, bulkAction, bulkLocations],);- // Every engine the selection spans: the state-targeting caveat applies if- // any selected prompt runs a country-only engine.- const bulkSelectedPlatforms = useMemo(- () => [- ...new Set(allPrompts.filter((p) => bulkPromptIds.has(p.id)).flatMap((p) => p.platforms)),- ],- [allPrompts, bulkPromptIds],- );-const openBulkDialog = useCallback(() => {setBulkAction('add');setBulkLocations([]);@@ -1196,7 +1187,6 @@ export default function PromptsPage() {allowEmptylabel={bulkAction === 'add' ? 'Locations to add' : 'Locations to remove'}countNoun="selected"- platforms={bulkSelectedPlatforms}/><div>diff --git a/web/src/app/[locale]/(dashboard)/dashboard/prompts/_location-matrix.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/prompts/_location-matrix.test.tsxindex b5d419f84..5acdde90d 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/prompts/_location-matrix.test.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/prompts/_location-matrix.test.tsx@@ -282,14 +282,14 @@ describe('a location with no answers yet', () => {);});- it("says no engine answers from a US state when only Google's, run country-wide, would", async () => {+ it("waits for Google's engines in a US state: they ask from the state now", async () => {getTrackingCountries.mockResolvedValue([{ code: 'US', models: ['aimode', 'aioverview'] }]);getPromptLocationMatrix.mockResolvedValue({ p1: { US: cell(62) } });await renderRows([prompt('p1', 'google only', ['US', 'US-CA'], 'Coffee', { platforms: ['google-aio'] }),]);- // US, then US-CA.- expect(bodyRows()[1].slice(2, 4)).toEqual(['62', 'No engine here']);+ // US, then US-CA: answers elsewhere in the window, so the state's come with the next run.+ expect(bodyRows()[1].slice(2, 4)).toEqual(['62', 'Within 24h']);});it('shows Limit reached instead of + Track once the plan’s locations are used up', async () => {diff --git a/web/src/components/dashboard/location-picker.tsx b/web/src/components/dashboard/location-picker.tsxindex 7a0b85e59..64da24beb 100644--- a/web/src/components/dashboard/location-picker.tsx+++ b/web/src/components/dashboard/location-picker.tsx@@ -44,8 +44,6 @@ export interface LocationPickerProps {* fail afterwards.*/maxSelectable: number | null;- /** Engines the prompt runs, to warn where state targeting doesn't apply. */- platforms?: string[];/** Field label. Defaults to the per-prompt wording. */label?: string;/** What the count describes, when the plan is unlimited. */@@ -61,9 +59,6 @@ export interface LocationPickerProps {/** The brand regions first, as people look for them, then every other country by name. */const POPULAR = TRACKING_COUNTRIES.slice(0, 18).map((c) => c.code);-/** Engines with no sub-country mechanism — mirrors the worker's collapse. */-const COUNTRY_ONLY_PLATFORMS = new Set(['google-aio', 'google-aimode']);-/*** Per-prompt tracking locations (#691).*@@ -72,17 +67,14 @@ const COUNTRY_ONLY_PLATFORMS = new Set(['google-aio', 'google-aimode']);* than a Select because the list is about 50 countries plus 50 states — long* enough that scrolling to a known name is worse than typing it.*- * Two things this picker must say out loud, because both cost money or- * mislead if left implicit: every location is a plan-quota unit (the trigger- * carries the count, and picks stop at the cap with the reason on screen),- * and Google's engines have no state targeting, so a state pick runs them- * country-wide instead of twice.+ * One thing this picker must say out loud, because it costs money if left+ * implicit: every location is a plan-quota unit (the trigger carries the+ * count, and picks stop at the cap with the reason on screen).*/export function LocationPicker({value,onChange,maxSelectable,- platforms,label = 'Locations',countNoun = 'tracked',allowEmpty = false,@@ -143,10 +135,7 @@ export function LocationPicker({// remove control hidden rather than failing server-side.const canRemove = allowEmpty || value.length > 1;- const hasStatePick = value.some((code) => parseLocation(code)?.state);const hasCityPick = value.some((code) => parseLocation(code)?.city);- const countryOnlyEngines = (platforms ?? []).filter((id) => COUNTRY_ONLY_PLATFORMS.has(id));- const showCountryOnlyNote = hasStatePick && countryOnlyEngines.length > 0;const add = (option: LocationOption | null) => {if (!option || selected.has(option.value) || atCap) return;@@ -224,13 +213,6 @@ export function LocationPicker({Copilot, Gemini and Grok answer per country, so track the country too to see them.</p>)}-- {showCountryOnlyNote && (- <p className="mt-1.5 text-[11px] text-muted-foreground">- Google AI Overviews and AI Mode have no state-level targeting — they run once per country,- so your state picks cost one location each but are answered country-wide there.- </p>- )}</div>);}diff --git a/web/src/components/dashboard/prompt-suggestion-card.tsx b/web/src/components/dashboard/prompt-suggestion-card.tsxindex 265f06ccc..cd6948052 100644--- a/web/src/components/dashboard/prompt-suggestion-card.tsx+++ b/web/src/components/dashboard/prompt-suggestion-card.tsx@@ -355,7 +355,6 @@ export const PromptSuggestionCard = memo(function PromptSuggestionCard({value={editRegions}onChange={setEditRegions}maxSelectable={maxLocations ?? null}- platforms={editPlatforms}/>)}</div>diff --git a/web/src/lib/tracking-countries.test.ts b/web/src/lib/tracking-countries.test.tsindex 3c6e5251f..bafe3fbc6 100644--- a/web/src/lib/tracking-countries.test.ts+++ b/web/src/lib/tracking-countries.test.ts@@ -51,19 +51,14 @@ describe('answersFrom', () => {).toBe(true);});- it("doesn't count Google's engines in a US state: the run asks them country-wide", () => {+ it("counts Google's engines in a US state: the run asks them from the state", () => {const california = { country: 'US', state: 'CA' };expect(answersFrom({ platforms: ['google-aio', 'google-aimode'] }, california, countries)).toBe(- false,- );- expect(answersFrom({ platforms: ['google-aio', 'chatgpt-web'] }, california, countries)).toBe(true,);- expect(answersFrom({ platforms: [], models: ['gpt-5'] }, california, countries)).toBe(true);- // In the country itself they answer.+ expect(answersFrom({ platforms: ['google-aimode'] }, california, null)).toBe(true);+ // As in the country itself.expect(answersFrom({ platforms: ['google-aio'] }, country('US'), countries)).toBe(true);- // Without the lists, the state still isn't theirs.- expect(answersFrom({ platforms: ['google-aimode'] }, california, null)).toBe(false);});it('restricts nothing without the lists, or for an engine the provider does not list', () => {diff --git a/web/src/lib/tracking-countries.ts b/web/src/lib/tracking-countries.tsindex 257f56923..1c30fe30c 100644--- a/web/src/lib/tracking-countries.ts+++ b/web/src/lib/tracking-countries.ts@@ -30,13 +30,6 @@ export const PLATFORM_MODELS: Record<string, string> = {/** Engines that answer from a city, by the provider's model name (PROMPT-015d). */export const CITY_MODELS: ReadonlySet<string> = new Set(['aimode', 'aioverview']);-/**- * Engines that can't ask from a US state, by the provider's model name: the- * API runs them country-wide and records their answers as the country's- * (COUNTRY_ONLY_SCRAPERS, #691), so a state's column never gets them.- */-export const COUNTRY_ONLY_MODELS: ReadonlySet<string> = new Set(['aimode', 'aioverview']);-export interface TrackingCountry {code: string;/** The provider's engines that answer from it. */@@ -84,8 +77,8 @@ export function missingEngines(/*** Whether any of a prompt's engines gets answers recorded for a location, as* the tracking run asks them: a city only of the engines that ask from one,- * a US state only of those that don't run country-wide, and either only- * where the engine answers from the country. The API models answer from+ * a US state of every engine (Google's through its `location`), and either+ * only where the engine answers from the country. The API models answer from* anywhere. An engine the provider doesn't list, or has no list read for, is* given the benefit of the doubt, as the run gives it; with no lists read,* all are.@@ -102,7 +95,6 @@ export function answersFrom(const model = PLATFORM_MODELS[platform];if (!model) return true;if (location.city && !CITY_MODELS.has(model)) return false;- if (location.state && COUNTRY_ONLY_MODELS.has(model)) return false;return !listed.has(model) || Boolean(entry?.models.includes(model));});}