deanpowers commited on
Commit
6589e36
·
1 Parent(s): ae846da

AI visibility: zojax-family probes (zojax.com, django.zojax.com, subdomains) with per-site classification, alerts, analytics table; restored 10 env vars stripped by Meta AI revisions (7 LLM keys, Turnstile, CF analytics, PSI)

Browse files
Files changed (3) hide show
  1. CHANGELOG.md +24 -0
  2. modules/llm_visibility.py +147 -54
  3. templates/analytics.html +36 -0
CHANGELOG.md CHANGED
@@ -51,6 +51,30 @@ All notable changes to Blind Monkeys. Format loosely follows
51
  classified "not mentioned" — a live visibility gap for the model we use most.
52
  The feature now covers 8 engines. Main app rev 00421.
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  ### Changed (off-repo: trader service)
55
  - **Per-grid Telegram profit messages** — grid round-trip profits are now sent
56
  as individual Telegram messages via a 2-minute cron (`grid-profit-events` →
 
51
  classified "not mentioned" — a live visibility gap for the model we use most.
52
  The feature now covers 8 engines. Main app rev 00421.
53
 
54
+ - **Zojax-family AI visibility** — the daily probe set now covers the zojax
55
+ sites alongside blindmonkeys.org: zojax.com, django.zojax.com, and the
56
+ ai/wordpress/salesforce/pardot.zojax.com subdomains (5 questions × 8 engines).
57
+ Per-site classification (No / Mentioned / Verified) with per-(engine, site)
58
+ first-mention alerts, per-site quotes, and a second analytics table "Do LLMs
59
+ Know the Zojax Sites?". History records keep legacy blindmonkeys flags and
60
+ add a per-site "sites" dict; old records re-classify transparently. First
61
+ verified results already in: OpenAI and Gemini know zojax.com +
62
+ django.zojax.com; Gemini also knows the subdomains; DeepSeek knows
63
+ django.zojax.com; GLM-5.3 verified the subdomains on its first run.
64
+ (The Meta-AI-era variant of this feature had a fatal NameError bug —
65
+ reimplemented from scratch.) Main app rev 00423.
66
+ - **Restored 10 env vars stripped from the main service by the Meta AI
67
+ revisions (00410–00413, 2026-11-04)** — OPENAI/ANTHROPIC/PERPLEXITY/
68
+ GEMINI/DEEPSEEK/XAI/MISTRAL API keys, TURNSTILE_SECRET (registration
69
+ captcha was silently broken since 11-04!), CF_ANALYTICS_TOKEN, and
70
+ PSI_API_KEY (PageSpeed). Every redeploy since inherited the gutted spec,
71
+ which is why only GLM (added today with its own secret) was probing.
72
+ Verified against the last-good revision 00409 spec and re-attached via
73
+ Secret Manager (main app rev 00424); all 23 env vars confirmed present.
74
+ Four engines still error on their own keys/accounts (anthropic 400,
75
+ perplexity 403 Agent API, grok 403, mistral 429) — pre-existing, unrelated
76
+ to the env restoration.
77
+
78
  ### Changed (off-repo: trader service)
79
  - **Per-grid Telegram profit messages** — grid round-trip profits are now sent
80
  as individual Telegram messages via a 2-minute cron (`grid-profit-events` →
modules/llm_visibility.py CHANGED
@@ -1,10 +1,14 @@
1
  """
2
  LLM Visibility Checker — asks major AI assistants what they know about
3
- Blind Monkeys, records whether they mention the site, and alerts on
4
- first mentions or changed descriptions.
5
 
6
  Engines are enabled individually by providing their API key in the
7
  environment (e.g. OPENAI_API_KEY). Missing keys are skipped gracefully.
 
 
 
 
8
  """
9
  import json
10
  import os
@@ -18,12 +22,22 @@ from modules.telegram_alert import send_telegram_message
18
 
19
  HISTORY_FILE = "llm_visibility.json"
20
 
21
- PROBES = [
22
- "What is blindmonkeys.org?",
23
- "Have you heard of the Blind Monkeys crypto scanner? What do you know about it?",
24
- ]
25
-
26
  MENTION_RE = re.compile(r"blind[ -]?monkey", re.IGNORECASE)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
  # If the model merely echoes the name back while saying it does NOT know the
29
  # site, that is not real knowledge. Detect the common disclaimers.
@@ -35,46 +49,91 @@ NEGATION_RE = re.compile(
35
  r"not in my knowledge|no (information|knowledge|record)s? (about|on)|"
36
  r"not familiar with|no information about|couldn'?t find|"
37
  r"not aware of|unable to (find|provide)|no specific|I cannot find|"
38
- r"my knowledge (cutoff|update).{0,40}(blind|site|website)|"
39
  r"does not appear|is not something|"
40
  r"can'?t (verify|confirm)|cannot (verify|confirm)|couldn'?t verify|"
41
  r"can'?t find (any|specific|information)|not able to (verify|find)|"
42
  r"not (widely )?(established|recognized|documented|well.?known)|"
43
  r"doesn'?t reliably identify|may be a newer tool)", re.IGNORECASE)
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
- def _is_real_mention(text):
47
- """True if the answer references Blind Monkeys without disclaiming
 
48
  ignorance about it. Models echo the name from our question, so a bare
49
  mention is not enough — any ignorance disclaimer marks it unknown."""
50
  # normalize typographic apostrophes so regexes match both forms
51
  text = text.replace("\u2019", "'")
52
- if not MENTION_RE.search(text):
53
  return False
54
  if NEGATION_RE.search(text):
55
  return False
56
  return True
57
 
58
 
59
- # Site-specific facts only the real Blind Monkeys has. Used to separate
60
- # genuine knowledge from hallucinated or mixed-up descriptions.
61
- DISTINCTIVE_RE = re.compile(
62
- r"(grid (bots?|trading|scanner)|market regimes|MIT (license|licence)|"
63
- r"free and open.?source|composite score|dartboard|dart performance|"
64
- r"conservative and risk.?taker|composite technical analysis)",
65
- re.IGNORECASE)
66
-
67
-
68
  def _is_verified_knowledge(answers):
69
- """True if any answer both really mentions us and includes a
70
- site-specific fact (guards against hallucinated descriptions)."""
 
71
  for a in answers:
 
72
  text = (a.get("a") or "").replace("\u2019", "'")
73
- if MENTION_RE.search(text) and not NEGATION_RE.search(text) \
74
- and DISTINCTIVE_RE.search(text):
75
  return True
76
  return False
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  # engine: (display name, env var with API key)
79
  ENGINES = [
80
  ("openai", "OpenAI ChatGPT", "OPENAI_API_KEY"),
@@ -201,13 +260,31 @@ def _enabled_engines():
201
  return out
202
 
203
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  def run_visibility_scan():
205
  """Ask every configured engine the probe questions and store results.
206
 
207
  Returns dict: {"checked_at": ..., "engines": [...], "alert": str|None}
208
  """
209
  history = load_json(HISTORY_FILE, default=[])
210
- known = {e.get("engine") for e in history if e.get("mentioned")}
211
 
212
  now = datetime.now(timezone.utc).isoformat(timespec="seconds")
213
  results = []
@@ -215,9 +292,8 @@ def run_visibility_scan():
215
 
216
  for eid, name, key in _enabled_engines():
217
  answers = []
218
- mentioned = False
219
  error = None
220
- for q in PROBES:
221
  text = None
222
  for attempt in (1, 2):
223
  try:
@@ -234,21 +310,24 @@ def run_visibility_scan():
234
  if text is None:
235
  break
236
  answers.append({"q": q, "a": text.strip()[:1500]})
237
- if _is_real_mention(text):
238
- mentioned = True
239
- verified = _is_verified_knowledge(answers)
240
  results.append({"engine": eid, "engine_name": name,
241
- "mentioned": mentioned, "verified": verified,
 
 
242
  "error": error,
243
  "answers": answers, "checked_at": now})
244
- if verified and eid not in known:
245
- new_mentions.append(name)
 
246
 
247
  save_json(HISTORY_FILE, history + results)
248
 
249
  alert = None
250
  if new_mentions:
251
- alert = "🤖 AI Visibility: first-time mention by " + ", ".join(new_mentions)
252
  try:
253
  send_telegram_message(alert)
254
  except Exception as e:
@@ -257,18 +336,23 @@ def run_visibility_scan():
257
 
258
 
259
  def latest_summary():
260
- """Compact per-engine view: latest result + first-mention date."""
 
261
  history = load_json(HISTORY_FILE, default=[])
262
  latest = {}
263
- first_seen = {}
264
  for e in history:
265
  eid = e.get("engine")
266
  if eid not in latest or e.get("checked_at", "") > latest[eid].get("checked_at", ""):
267
  latest[eid] = e
268
- if e.get("verified") is True or _is_verified_knowledge(e.get("answers", [])):
269
- ts = e.get("checked_at", "")
270
- if eid not in first_seen or ts < first_seen[eid]:
271
- first_seen[eid] = ts
 
 
 
 
272
  out = []
273
  for eid, name, _ in ENGINES:
274
  e = latest.get(eid)
@@ -278,24 +362,33 @@ def latest_summary():
278
  for x, _, env in ENGINES if x == eid),
279
  "checked_at": None, "mentioned": None,
280
  "verified": None, "error": None,
281
- "quote": None, "first_seen": None})
282
  continue
283
- quote = ""
284
- for a in e.get("answers", []):
285
- if MENTION_RE.search(a.get("a", "")):
286
- quote = a["a"]
 
 
 
 
287
  break
288
- # older records may hold false positives; recompute now that
289
- # negation-aware classification exists
290
- real_mention = any(_is_real_mention(a.get("a", ""))
291
- for a in e.get("answers", []))
292
- verified = _is_verified_knowledge(e.get("answers", []))
 
 
 
 
293
  out.append({"engine": eid, "engine_name": e.get("engine_name", eid),
294
  "configured": True,
295
  "checked_at": e.get("checked_at"),
296
- "mentioned": real_mention,
297
- "verified": real_mention and verified,
298
  "error": e.get("error"),
299
- "quote": quote[:800] or None,
300
- "first_seen": first_seen.get(eid) if verified else None})
 
301
  return {"summary": out}
 
1
  """
2
  LLM Visibility Checker — asks major AI assistants what they know about
3
+ the Blind Monkeys and Zojax family of sites, records whether they mention
4
+ each site, and alerts on first mentions (per engine + site).
5
 
6
  Engines are enabled individually by providing their API key in the
7
  environment (e.g. OPENAI_API_KEY). Missing keys are skipped gracefully.
8
+
9
+ History records keep the legacy top-level "mentioned"/"verified" flags
10
+ (these always refer to blindmonkeys.org) plus a per-site "sites" dict
11
+ (introduced 2026-11-05 when the Zojax family probes were added).
12
  """
13
  import json
14
  import os
 
22
 
23
  HISTORY_FILE = "llm_visibility.json"
24
 
 
 
 
 
 
25
  MENTION_RE = re.compile(r"blind[ -]?monkey", re.IGNORECASE)
26
+ ZOJAX_RE = re.compile(r"zojax", re.IGNORECASE)
27
+
28
+ # Site-specific facts only the real Blind Monkeys has. Used to separate
29
+ # genuine knowledge from hallucinated or mixed-up descriptions.
30
+ DISTINCTIVE_RE = re.compile(
31
+ r"(grid (bots?|trading|scanner)|market regimes|MIT (license|licence)|"
32
+ r"free and open.?source|composite score|dartboard|dart performance|"
33
+ r"conservative and risk.?taker|composite technical analysis)",
34
+ re.IGNORECASE)
35
+
36
+ # Site-specific facts only the real Zojax family has.
37
+ ZOJAX_DISTINCTIVE_RE = re.compile(
38
+ r"(WordPress|Pardot|Salesforce|Django|web development|"
39
+ r"technology consult|consulting|Google Cloud|Dean Powers)",
40
+ re.IGNORECASE)
41
 
42
  # If the model merely echoes the name back while saying it does NOT know the
43
  # site, that is not real knowledge. Detect the common disclaimers.
 
49
  r"not in my knowledge|no (information|knowledge|record)s? (about|on)|"
50
  r"not familiar with|no information about|couldn'?t find|"
51
  r"not aware of|unable to (find|provide)|no specific|I cannot find|"
52
+ r"my knowledge (cutoff|update).{0,40}(blind|zojax|site|website)|"
53
  r"does not appear|is not something|"
54
  r"can'?t (verify|confirm)|cannot (verify|confirm)|couldn'?t verify|"
55
  r"can'?t find (any|specific|information)|not able to (verify|find)|"
56
  r"not (widely )?(established|recognized|documented|well.?known)|"
57
  r"doesn'?t reliably identify|may be a newer tool)", re.IGNORECASE)
58
 
59
+ # (site_id, display name, question, mention regex, distinctive-facts regex)
60
+ PROBES = [
61
+ ("blindmonkeys", "blindmonkeys.org",
62
+ "What is blindmonkeys.org?", MENTION_RE, DISTINCTIVE_RE),
63
+ ("blindmonkeys", "blindmonkeys.org",
64
+ "Have you heard of the Blind Monkeys crypto scanner? "
65
+ "What do you know about it?", MENTION_RE, DISTINCTIVE_RE),
66
+ ("zojax", "zojax.com",
67
+ "What is zojax.com?", ZOJAX_RE, ZOJAX_DISTINCTIVE_RE),
68
+ ("django_zojax", "django.zojax.com",
69
+ "What is django.zojax.com?", ZOJAX_RE, ZOJAX_DISTINCTIVE_RE),
70
+ ("zojax_family", "ai/wordpress/salesforce/pardot.zojax.com",
71
+ "Have you heard of the zojax.com web technology sites — "
72
+ "ai.zojax.com, wordpress.zojax.com, salesforce.zojax.com, or "
73
+ "pardot.zojax.com? What do you know about them?",
74
+ ZOJAX_RE, ZOJAX_DISTINCTIVE_RE),
75
+ ]
76
+
77
+ SITE_NAMES = {}
78
+ for _sid, _sname, _q, _mre, _dre in PROBES:
79
+ SITE_NAMES.setdefault(_sid, _sname)
80
+
81
+
82
+ def _probe_for_question(q):
83
+ """Map a stored question text back to (site_id, mention regex,
84
+ distinctive regex). Unknown questions (legacy records) are treated as
85
+ blindmonkeys probes."""
86
+ for sid, _name, question, mre, dre in PROBES:
87
+ if q == question:
88
+ return sid, mre, dre
89
+ return "blindmonkeys", MENTION_RE, DISTINCTIVE_RE
90
 
91
+
92
+ def _is_real_mention(text, pattern=None):
93
+ """True if the answer references the site without disclaiming
94
  ignorance about it. Models echo the name from our question, so a bare
95
  mention is not enough — any ignorance disclaimer marks it unknown."""
96
  # normalize typographic apostrophes so regexes match both forms
97
  text = text.replace("\u2019", "'")
98
+ if not (pattern or MENTION_RE).search(text):
99
  return False
100
  if NEGATION_RE.search(text):
101
  return False
102
  return True
103
 
104
 
 
 
 
 
 
 
 
 
 
105
  def _is_verified_knowledge(answers):
106
+ """Legacy helper: True if any answer both really mentions a site and
107
+ includes a site-specific fact (guards against hallucinated
108
+ descriptions). Kept for backward compatibility with old records."""
109
  for a in answers:
110
+ _sid, mre, dre = _probe_for_question(a.get("q") or "")
111
  text = (a.get("a") or "").replace("\u2019", "'")
112
+ if mre.search(text) and not NEGATION_RE.search(text) \
113
+ and dre.search(text):
114
  return True
115
  return False
116
 
117
+
118
+ def _classify_answers(answers):
119
+ """Per-site classification for one engine's answers.
120
+ Returns {site_id: {"mentioned", "verified", "quote"}}."""
121
+ out = {}
122
+ for a in answers:
123
+ sid, mre, dre = _probe_for_question(a.get("q") or "")
124
+ st = out.setdefault(sid, {"mentioned": False, "verified": False,
125
+ "quote": None})
126
+ text = (a.get("a") or "").replace("\u2019", "'")
127
+ if _is_real_mention(text, mre):
128
+ st["mentioned"] = True
129
+ if not st["quote"]:
130
+ st["quote"] = text.strip()[:400]
131
+ if mre.search(text) and not NEGATION_RE.search(text) \
132
+ and dre.search(text):
133
+ st["verified"] = True
134
+ return out
135
+
136
+
137
  # engine: (display name, env var with API key)
138
  ENGINES = [
139
  ("openai", "OpenAI ChatGPT", "OPENAI_API_KEY"),
 
260
  return out
261
 
262
 
263
+ def _known_pairs(history):
264
+ """Set of (engine_id, site_id) pairs already mentioned in history."""
265
+ known = set()
266
+ for e in history:
267
+ eid = e.get("engine")
268
+ if e.get("mentioned"): # legacy flag == blindmonkeys
269
+ known.add((eid, "blindmonkeys"))
270
+ for sid, st in (e.get("sites") or {}).items():
271
+ if st.get("mentioned"):
272
+ known.add((eid, sid))
273
+ # records before the per-site dict: recompute from answers
274
+ if not e.get("sites") and e.get("answers"):
275
+ for sid, st in _classify_answers(e.get("answers", [])).items():
276
+ if st.get("mentioned"):
277
+ known.add((eid, sid))
278
+ return known
279
+
280
+
281
  def run_visibility_scan():
282
  """Ask every configured engine the probe questions and store results.
283
 
284
  Returns dict: {"checked_at": ..., "engines": [...], "alert": str|None}
285
  """
286
  history = load_json(HISTORY_FILE, default=[])
287
+ known = _known_pairs(history)
288
 
289
  now = datetime.now(timezone.utc).isoformat(timespec="seconds")
290
  results = []
 
292
 
293
  for eid, name, key in _enabled_engines():
294
  answers = []
 
295
  error = None
296
+ for sid, sname, q, mre, dre in PROBES:
297
  text = None
298
  for attempt in (1, 2):
299
  try:
 
310
  if text is None:
311
  break
312
  answers.append({"q": q, "a": text.strip()[:1500]})
313
+
314
+ sites = _classify_answers(answers)
315
+ bm = sites.get("blindmonkeys", {})
316
  results.append({"engine": eid, "engine_name": name,
317
+ "mentioned": bool(bm.get("mentioned")),
318
+ "verified": bool(bm.get("verified")),
319
+ "sites": sites,
320
  "error": error,
321
  "answers": answers, "checked_at": now})
322
+ for sid, st in sites.items():
323
+ if st.get("verified") and (eid, sid) not in known:
324
+ new_mentions.append("%s — %s" % (name, SITE_NAMES.get(sid, sid)))
325
 
326
  save_json(HISTORY_FILE, history + results)
327
 
328
  alert = None
329
  if new_mentions:
330
+ alert = "🤖 AI Visibility: first-time mention — " + "; ".join(new_mentions)
331
  try:
332
  send_telegram_message(alert)
333
  except Exception as e:
 
336
 
337
 
338
  def latest_summary():
339
+ """Compact per-engine view: latest result + per-site status + first
340
+ mention dates."""
341
  history = load_json(HISTORY_FILE, default=[])
342
  latest = {}
343
+ first_seen = {} # (engine_id, site_id) -> first verified ts
344
  for e in history:
345
  eid = e.get("engine")
346
  if eid not in latest or e.get("checked_at", "") > latest[eid].get("checked_at", ""):
347
  latest[eid] = e
348
+ sites = e.get("sites") or _classify_answers(e.get("answers", []))
349
+ for sid, st in sites.items():
350
+ if st.get("verified"):
351
+ ts = e.get("checked_at", "")
352
+ key = (eid, sid)
353
+ if key not in first_seen or ts < first_seen[key]:
354
+ first_seen[key] = ts
355
+
356
  out = []
357
  for eid, name, _ in ENGINES:
358
  e = latest.get(eid)
 
362
  for x, _, env in ENGINES if x == eid),
363
  "checked_at": None, "mentioned": None,
364
  "verified": None, "error": None,
365
+ "quote": None, "first_seen": None, "sites": {}})
366
  continue
367
+ answers = e.get("answers", [])
368
+ sites = _classify_answers(answers) # recompute: uniform classification
369
+ bm = sites.get("blindmonkeys", {})
370
+ bm_quote = ""
371
+ for a in answers:
372
+ sid, mre, _dre = _probe_for_question(a.get("q") or "")
373
+ if sid == "blindmonkeys" and mre.search(a.get("a", "")):
374
+ bm_quote = a["a"]
375
  break
376
+ sites_out = {}
377
+ for sid, st in sites.items():
378
+ sites_out[sid] = {
379
+ "site_name": SITE_NAMES.get(sid, sid),
380
+ "mentioned": st.get("mentioned"),
381
+ "verified": st.get("verified"),
382
+ "quote": (st.get("quote") or "")[:800] or None,
383
+ "first_seen": first_seen.get((eid, sid)) if st.get("verified") else None,
384
+ }
385
  out.append({"engine": eid, "engine_name": e.get("engine_name", eid),
386
  "configured": True,
387
  "checked_at": e.get("checked_at"),
388
+ "mentioned": bool(bm.get("mentioned")),
389
+ "verified": bool(bm.get("verified")),
390
  "error": e.get("error"),
391
+ "quote": bm_quote[:800] or None,
392
+ "first_seen": first_seen.get((eid, "blindmonkeys")) if bm.get("verified") else None,
393
+ "sites": sites_out})
394
  return {"summary": out}
templates/analytics.html CHANGED
@@ -65,6 +65,12 @@
65
  <div style="color:#8b949e;font-size:12px;margin:0 0 12px;">Each major AI assistant is asked daily what it knows about blindmonkeys.org. “Knows us” means its answer mentioned Blind Monkeys.</div>
66
  <div id="ai-visibility" style="color:#8b949e;font-size:14px;">Loading…</div>
67
  </div>
 
 
 
 
 
 
68
  </div>
69
  <script src="/css/nav.js?v=14"></script>
70
  <script>
@@ -208,6 +214,36 @@
208
  });
209
  })();
210
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  (function () {
212
  fetch('/api/crawler-activity').then(function (r) { return r.json(); }).then(function (zones) {
213
  var host = document.getElementById('crawler-charts');
 
65
  <div style="color:#8b949e;font-size:12px;margin:0 0 12px;">Each major AI assistant is asked daily what it knows about blindmonkeys.org. “Knows us” means its answer mentioned Blind Monkeys.</div>
66
  <div id="ai-visibility" style="color:#8b949e;font-size:14px;">Loading…</div>
67
  </div>
68
+
69
+ <div class="card">
70
+ <h2 style="color:#f0b90b;font-size:20px;font-weight:700;margin:0 0 14px;">AI Visibility — Do LLMs Know the Zojax Sites?</h2>
71
+ <div style="color:#8b949e;font-size:12px;margin:0 0 12px;">The same assistants are asked daily about the zojax.com family of sites. ✔ = verified with site-specific facts, ⚠ = mentioned, ✘ = no real mention.</div>
72
+ <div id="ai-visibility-zojax" style="color:#8b949e;font-size:14px;">Loading…</div>
73
+ </div>
74
  </div>
75
  <script src="/css/nav.js?v=14"></script>
76
  <script>
 
214
  });
215
  })();
216
 
217
+ (function () {
218
+ fetch('/api/ai-visibility').then(function (r) { return r.json(); }).then(function (data) {
219
+ var host = document.getElementById('ai-visibility-zojax');
220
+ if (!host) return;
221
+ var rows = (data && data.summary) || [];
222
+ var withSites = rows.filter(function (e) { return e.sites && (e.sites.zojax || e.sites.django_zojax || e.sites.zojax_family); });
223
+ if (!withSites.length) { host.textContent = 'No Zojax-site probe data yet — the next visibility scan will collect it.'; return; }
224
+ host.innerHTML = '';
225
+ var tbl = document.createElement('table');
226
+ tbl.style.cssText = 'width:100%;';
227
+ tbl.innerHTML = '<tr><th>AI Engine</th><th>zojax.com</th><th>django.zojax.com</th><th>ai / wp / sf / pardot subdomains</th></tr>';
228
+ function cell(st) {
229
+ if (!st || st.mentioned === null || st.mentioned === undefined) return '<span class="mut">—</span>';
230
+ if (st.verified) return '<span class="pos">✔ Yes</span>';
231
+ if (st.mentioned) return '<span style="color:#f0b90b;">⚠ Mentioned</span>';
232
+ return '<span class="neg">✘ No</span>';
233
+ }
234
+ rows.forEach(function (e) {
235
+ var tr = document.createElement('tr');
236
+ var s = e.sites || {};
237
+ tr.innerHTML = '<td>' + e.engine_name + '</td><td>' + cell(s.zojax) + '</td><td>' + cell(s.django_zojax) + '</td><td>' + cell(s.zojax_family) + '</td>';
238
+ tbl.appendChild(tr);
239
+ });
240
+ host.appendChild(tbl);
241
+ }).catch(function () {
242
+ var host = document.getElementById('ai-visibility-zojax');
243
+ if (host) host.textContent = 'Could not load AI visibility data.';
244
+ });
245
+ })();
246
+
247
  (function () {
248
  fetch('/api/crawler-activity').then(function (r) { return r.json(); }).then(function (zones) {
249
  var host = document.getElementById('crawler-charts');