@canonry/canonry 7.102.0 → 7.104.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/assets/agent-workspace/skills/aero/references/ai-traffic-tracking.md +32 -4
  2. package/assets/agent-workspace/skills/canonry/references/ai-traffic-tracking.md +32 -4
  3. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +20 -2
  4. package/assets/agent-workspace/skills/canonry/references/server-side-traffic.md +51 -15
  5. package/assets/assets/{AccessControls-CpSlWN3W.js → AccessControls-CBkDcxwx.js} +1 -1
  6. package/assets/assets/{AgentSetupPage-0le_Bx7d.js → AgentSetupPage-iGYETW-I.js} +1 -1
  7. package/assets/assets/{AuditHistoryPanel-BQH1dQ4V.js → AuditHistoryPanel-DiFMK7eE.js} +1 -1
  8. package/assets/assets/{BacklinksPage-_ffwmtrl.js → BacklinksPage-Cg9LQLMo.js} +1 -1
  9. package/assets/assets/{ChartPrimitives-6Yq_3ION.js → ChartPrimitives-DYS88Zzt.js} +1 -1
  10. package/assets/assets/{HistoryPage-DUR17GrK.js → HistoryPage-CmI5CX94.js} +1 -1
  11. package/assets/assets/{MeasurementPropertyPage-dutXSW7s.js → MeasurementPropertyPage-DshJzp9b.js} +1 -1
  12. package/assets/assets/{ProjectPage-DA-07-jJ.js → ProjectPage-DwVxUhxM.js} +9 -9
  13. package/assets/assets/{RunsPage-Bs4f0-sW.js → RunsPage-BqvrT8Xm.js} +1 -1
  14. package/assets/assets/{ServerTrafficSection-qMBbUI-0.js → ServerTrafficSection-CtFe7WDd.js} +1 -1
  15. package/assets/assets/{SettingsPage-Bccypqbr.js → SettingsPage-snu8wJ8l.js} +1 -1
  16. package/assets/assets/{ToneBadge-DvK4cIwq.js → ToneBadge-CkTo2T8d.js} +4 -4
  17. package/assets/assets/{TrafficPage-BPojOqd_.js → TrafficPage-BxiiQjwl.js} +1 -1
  18. package/assets/assets/TrafficSourceDetailPage-8BKFz7py.js +1 -0
  19. package/assets/assets/{account-context-evpXzY8L.js → account-context-BlfC71NP.js} +1 -1
  20. package/assets/assets/{agent-trust-copy-CkaSg2FT.js → agent-trust-copy-C_J3OmRg.js} +1 -1
  21. package/assets/assets/{card-01OafAPU.js → card-CeXmlLH2.js} +1 -1
  22. package/assets/assets/{index-StZErOkd.js → index-BKbmkmyo.js} +3 -3
  23. package/assets/assets/{query-client-D6xwAuZW.js → query-client-DWYnC2Lg.js} +1 -1
  24. package/assets/assets/{react-query-CdE7FNH6.js → react-query-CQhkmL4O.js} +1 -1
  25. package/assets/assets/{react-sigma_core.esm.min-DlfcmDYc.js → react-sigma_core.esm.min-YHPB9pkU.js} +1 -1
  26. package/assets/assets/{server-traffic-yEflW4RI.js → server-traffic-ChxoKQ0y.js} +1 -1
  27. package/assets/assets/{service-DfuRVpyN.js → service-u1pn5oyA.js} +1 -1
  28. package/assets/index.html +8 -8
  29. package/dist/{ads-UDJVYKHF.js → ads-ARJJACSH.js} +3 -3
  30. package/dist/{agent-EOB54XNS.js → agent-57EQMSOO.js} +7 -7
  31. package/dist/{agent-ask-5V4LX4VW.js → agent-ask-TF2WTRTO.js} +3 -3
  32. package/dist/{agent-conversations-OAF6RCFP.js → agent-conversations-5GXNREFK.js} +3 -3
  33. package/dist/{agent-journeys-GETB4UGM.js → agent-journeys-6CDPI4TE.js} +3 -3
  34. package/dist/{agent-memory-JXHPH6H5.js → agent-memory-X3FQ4YDE.js} +3 -3
  35. package/dist/{agent-providers-AAUCUOKY.js → agent-providers-32Z3YXO4.js} +3 -3
  36. package/dist/{agent-transcript-WT4QH3ZY.js → agent-transcript-2S64XPF2.js} +3 -3
  37. package/dist/{analytics-JEZWLRTZ.js → analytics-WPCHRXQZ.js} +3 -3
  38. package/dist/{apply-LDIMMO4N.js → apply-3WHRQBQB.js} +3 -3
  39. package/dist/{backfill-JOJHBVGV.js → backfill-QD3I5MYX.js} +10 -10
  40. package/dist/{backlinks-D2O3UM6F.js → backlinks-TRVNCPUB.js} +3 -3
  41. package/dist/{bing-BG7KZZPK.js → bing-F3B76XX5.js} +3 -3
  42. package/dist/{bootstrap-IXVATZLB.js → bootstrap-QOAGLWNN.js} +10 -10
  43. package/dist/{cdp-3AJG7OLP.js → cdp-4I3DNMLG.js} +7 -7
  44. package/dist/{chunk-C2YVADFC.js → chunk-2AECECUY.js} +1 -1
  45. package/dist/{chunk-S7ZOYNW3.js → chunk-2VNQKUCW.js} +2 -2
  46. package/dist/{chunk-N7773GJW.js → chunk-3V5Y2XTA.js} +1 -1
  47. package/dist/{chunk-DP3FE2OW.js → chunk-47QPY6Y3.js} +5 -5
  48. package/dist/{chunk-M25KDHD4.js → chunk-52D6WBCZ.js} +1 -1
  49. package/dist/{chunk-LGTSVS6Q.js → chunk-5FMZGO6R.js} +4 -4
  50. package/dist/{chunk-N4VEG6GB.js → chunk-5UHNDYUH.js} +4 -4
  51. package/dist/{chunk-QK4IICRM.js → chunk-6AW6ONTF.js} +2 -2
  52. package/dist/{chunk-YTR2S4MU.js → chunk-756RPVYB.js} +4 -4
  53. package/dist/{chunk-G4ODBZO7.js → chunk-7UQZCDYK.js} +1 -1
  54. package/dist/{chunk-7JJCFGL2.js → chunk-7VKVGR6X.js} +3 -3
  55. package/dist/{chunk-BG6TVNA6.js → chunk-7XJG2OTB.js} +366 -366
  56. package/dist/{chunk-7I2NJ4BH.js → chunk-BYYP43Q3.js} +128 -1
  57. package/dist/{chunk-AENOUFTF.js → chunk-CCHYRLX4.js} +2 -2
  58. package/dist/{chunk-O5AIKUW3.js → chunk-CJ55MGWI.js} +1 -1
  59. package/dist/{chunk-WNR3YQAD.js → chunk-D76TB5JS.js} +1 -1
  60. package/dist/{chunk-GLKR6C2L.js → chunk-DLZCOJCY.js} +1 -1
  61. package/dist/{chunk-66EXWVMN.js → chunk-FCUUJO3Z.js} +2 -2
  62. package/dist/{chunk-ONHBQYSA.js → chunk-FYRNKI3A.js} +46 -31
  63. package/dist/{chunk-RXWD25P7.js → chunk-HLM3GYK4.js} +1 -1
  64. package/dist/{chunk-4CF5536B.js → chunk-HPFT4IKN.js} +1 -1
  65. package/dist/{chunk-AG6BTE7R.js → chunk-HTGJSXCR.js} +5 -5
  66. package/dist/{chunk-UX6XWC4F.js → chunk-IHY4Q74C.js} +567 -185
  67. package/dist/{chunk-CZOGOHIN.js → chunk-K32GU473.js} +632 -462
  68. package/dist/{chunk-BDLHLE2F.js → chunk-LCZZACLE.js} +3 -3
  69. package/dist/{chunk-NAJ3ZYZ2.js → chunk-MDRAKMCV.js} +3 -3
  70. package/dist/{chunk-VH424YVI.js → chunk-NGGMSNF6.js} +1714 -1714
  71. package/dist/{chunk-ZIKPEZ3K.js → chunk-NI2JFXIS.js} +21 -21
  72. package/dist/{chunk-DRNBMKR5.js → chunk-PU5OA57Z.js} +6 -6
  73. package/dist/{chunk-FHK6M4RK.js → chunk-QRR5ZW22.js} +3 -3
  74. package/dist/{chunk-2YLTELT2.js → chunk-SZ64N26K.js} +1 -1
  75. package/dist/{chunk-EXPBZFN4.js → chunk-TCXITSDO.js} +1 -1
  76. package/dist/{chunk-NJZVDUKD.js → chunk-TFP6UJXW.js} +3 -3
  77. package/dist/{chunk-3TPHFDZN.js → chunk-WQQ4TNIY.js} +2 -2
  78. package/dist/{chunk-NHBXQWE3.js → chunk-WT22Z3I7.js} +63 -4
  79. package/dist/{chunk-IBRABPHA.js → chunk-ZJFLVXDZ.js} +2 -2
  80. package/dist/{citations-GM42U2ZH.js → citations-6CW3G5YP.js} +4 -4
  81. package/dist/{cli-catalog-EMZPMAJP.js → cli-catalog-6B2O2JQE.js} +3 -3
  82. package/dist/{cli-commands-VDMZAETM.js → cli-commands-O46WFSHZ.js} +7 -7
  83. package/dist/cli.js +13 -13
  84. package/dist/{competitor-4ZLKGNQW.js → competitor-D4BVO2KQ.js} +3 -3
  85. package/dist/{content-YJRMT4JW.js → content-H2PGFRWM.js} +3 -3
  86. package/dist/{dashboard-L4EE3C5T.js → dashboard-4KP7KKMY.js} +6 -6
  87. package/dist/{demo-3XDVCUT5.js → demo-NKCOCN6Z.js} +1 -1
  88. package/dist/{demo-server-7ZJWSGE2.js → demo-server-RQB6VRBH.js} +12 -12
  89. package/dist/{discover-SQGUDXSU.js → discover-K4GIXAN5.js} +4 -4
  90. package/dist/{discover-eval-BUNKP6EW.js → discover-eval-L4IF5XFV.js} +3 -3
  91. package/dist/{doctor-HPIGLMRX.js → doctor-OVJTEQCK.js} +3 -3
  92. package/dist/{evidence-JKEM5BYW.js → evidence-MXQK4YYL.js} +3 -3
  93. package/dist/{export-cmd-KTQM455W.js → export-cmd-Z3CWJALI.js} +3 -3
  94. package/dist/{ga-D7ZLTSSA.js → ga-347UNNJP.js} +3 -3
  95. package/dist/{gbp-OWBX2BFK.js → gbp-47MIYIQC.js} +3 -3
  96. package/dist/{google-UNAGUCXQ.js → google-7Q3FYNVP.js} +4 -4
  97. package/dist/{google-marketing-AZC7WHZR.js → google-marketing-TMKWY5AP.js} +1 -1
  98. package/dist/{health-cmd-XHEDL6CF.js → health-cmd-77TMLQ6T.js} +4 -4
  99. package/dist/{history-MKQDN6LY.js → history-Q756HPJM.js} +3 -3
  100. package/dist/index.d.ts +89 -70
  101. package/dist/index.js +25 -25
  102. package/dist/{init-W4LWSMCC.js → init-WDRQTCKK.js} +12 -12
  103. package/dist/{insights-HNJR7UEC.js → insights-TPNHIVNH.js} +3 -3
  104. package/dist/intelligence-service-DAUXHAOP.js +16 -0
  105. package/dist/{journeys-RQBYPWHU.js → journeys-F6UAVPVI.js} +3 -3
  106. package/dist/{keys-KNZAMXJU.js → keys-Q6VMDIAH.js} +3 -3
  107. package/dist/{keyword-7SUZG7RB.js → keyword-7BH5P5P7.js} +3 -3
  108. package/dist/{logs-RTQFOKLJ.js → logs-P2J6XFVJ.js} +3 -3
  109. package/dist/{mcp-JWBPAYR4.js → mcp-RPXFNAKS.js} +4 -4
  110. package/dist/mcp.js +9 -9
  111. package/dist/{measurement-plan-AETWMIGC.js → measurement-plan-KKUB6SLB.js} +5 -5
  112. package/dist/{notify-DGFNKFVG.js → notify-2IK6NR7Y.js} +3 -3
  113. package/dist/{organic-evidence-VA47O6HU.js → organic-evidence-N4HIUIHJ.js} +3 -3
  114. package/dist/{overview-SMXNZLPG.js → overview-FSNB42W5.js} +5 -5
  115. package/dist/{project-WXEDQJLS.js → project-D5ODS46C.js} +3 -3
  116. package/dist/{project-setup-VFBTUA5W.js → project-setup-X7NGKC4R.js} +3 -3
  117. package/dist/{query-C2VIB2XW.js → query-JGCEDLI2.js} +3 -3
  118. package/dist/{research-76TYES7M.js → research-3S5FLAFX.js} +3 -3
  119. package/dist/{results-export-F4FKVOQN.js → results-export-YMX4F2K6.js} +3 -3
  120. package/dist/{run-H6GGXFKQ.js → run-MCJAGAHJ.js} +5 -5
  121. package/dist/{schedule-KTQNJGMO.js → schedule-CLWDPYZG.js} +3 -3
  122. package/dist/{search-YRFUC7SW.js → search-X7SXPESS.js} +3 -3
  123. package/dist/{serve-PWIVPUX7.js → serve-UHEE443J.js} +26 -26
  124. package/dist/{session-LRR2N6IP.js → session-AS2VQ7VL.js} +13 -13
  125. package/dist/{settings-TLDN77K4.js → settings-UZEODHZ3.js} +3 -3
  126. package/dist/{sitemaps-BQ6JI4EW.js → sitemaps-SK2ZE5EJ.js} +3 -3
  127. package/dist/{skills-SQBKFXAN.js → skills-SI6C7MPT.js} +2 -2
  128. package/dist/{snapshot-ICGETMOY.js → snapshot-AOQUU5Q2.js} +3 -3
  129. package/dist/{src-XW5T4IQS.js → src-BXXLPHVZ.js} +2 -2
  130. package/dist/{status-VN65JTUD.js → status-TMKQNQ74.js} +5 -5
  131. package/dist/{technical-aeo-OBCWTN3M.js → technical-aeo-WBLZMCUY.js} +3 -3
  132. package/dist/{telemetry-ZU6REKKU.js → telemetry-DS22S3C3.js} +4 -4
  133. package/dist/{tools-RQDMCSZB.js → tools-YGKVGB5M.js} +11 -11
  134. package/dist/{traffic-YLZSRX5P.js → traffic-6AIRXYMI.js} +24 -7
  135. package/dist/{trends-OWWELIE2.js → trends-LEAXHSM6.js} +3 -3
  136. package/dist/{users-2ICURHTW.js → users-VCNIWES5.js} +3 -3
  137. package/dist/{visibility-stats-FJK3MDYE.js → visibility-stats-4XA2YZET.js} +4 -4
  138. package/dist/{wordpress-UQFA5TFU.js → wordpress-YG3ECQXW.js} +3 -3
  139. package/package.json +1 -1
  140. package/assets/assets/TrafficSourceDetailPage-DSoQk94d.js +0 -1
  141. package/dist/intelligence-service-SWQABQ3X.js +0 -16
@@ -3,6 +3,7 @@ import {
3
3
  AgentTrustLevels,
4
4
  AgentTrustReasons,
5
5
  AiReferralTrafficClasses,
6
+ BrowserAgentRequestKinds,
6
7
  JOURNEY_LOOKBACK_DAYS,
7
8
  JOURNEY_VISIT_IDLE_MINUTES,
8
9
  TrafficEventConfidences,
@@ -14,11 +15,12 @@ import {
14
15
  classifyTrafficPath,
15
16
  hostMatchesDomain,
16
17
  hostOf,
17
- isLocationRedirectStatus
18
- } from "./chunk-NHBXQWE3.js";
18
+ isLocationRedirectStatus,
19
+ pathWithoutQuery
20
+ } from "./chunk-WT22Z3I7.js";
19
21
 
20
22
  // ../integration-traffic/src/agent-trust.ts
21
- var AGENT_TRUST_RULES_VERSION = 2;
23
+ var AGENT_TRUST_RULES_VERSION = 3;
22
24
  var SCANNER_SEGMENTS = /* @__PURE__ */ new Set([
23
25
  "wp-login.php",
24
26
  "xmlrpc.php",
@@ -69,6 +71,8 @@ var SECRET_FILES = /* @__PURE__ */ new Set([
69
71
  "env.js"
70
72
  ]);
71
73
  var ENVIRONMENT_CONFIG = /^(?:production|prod|development|dev|staging|default|local|test)\.(?:json|ya?ml|js|toml)$/;
74
+ var BROWSER_APP_ROOT_FILE = /^(?:appsettings(?:\.[\w-]+)?\.json|env\.js|env\.json)$/;
75
+ var BROWSER_APP_ENDPOINT = /^(?:\.auth\/(?:me|refresh|logout(?:\/complete)?|login\/[^/]+(?:\/callback)?|purge\/[^/]+)|\.netlify\/(?:identity|git)(?:\/.*)?)$/;
72
76
  var REASON_ORDER = [
73
77
  AgentTrustReasons["scanner-path"],
74
78
  AgentTrustReasons["scanner-burst"],
@@ -95,8 +99,9 @@ function isSecretFile(folders, file) {
95
99
  const extension = dot > 0 ? file.slice(dot + 1) : "";
96
100
  return SECRET_EXTENSIONS.has(extension) || SECRET_FILES.has(file) || SSH_KEY_FILE.test(file) || CREDENTIAL_FILE.test(file) || /^appsettings\.[\w-]+\.json$/.test(file);
97
101
  }
98
- function isScannerPath(rawPath) {
99
- const pathOnly = (rawPath.split(/[?#]/)[0] ?? "").toLowerCase();
102
+ function isScannerPath(rawPath, options = {}) {
103
+ const browser = options.browser === true;
104
+ const pathOnly = pathWithoutQuery(rawPath).toLowerCase();
100
105
  if (ENCODED_TRAVERSAL.test(pathOnly)) return true;
101
106
  let decoded = pathOnly;
102
107
  try {
@@ -104,17 +109,19 @@ function isScannerPath(rawPath) {
104
109
  } catch {
105
110
  }
106
111
  const segments = decoded.split(/[\\/]+/).filter(Boolean);
112
+ const appEndpoint = browser && BROWSER_APP_ENDPOINT.test(segments.join("/"));
107
113
  for (const [index, segment] of segments.entries()) {
108
114
  if (segment === ".." || segment.endsWith("..")) return true;
109
115
  if (SCANNER_SEGMENTS.has(segment) || segment.startsWith("wp-config") || segment.endsWith(".env")) return true;
110
- if (isHiddenSegment(segment, segments[index + 1])) return true;
116
+ if (!(appEndpoint && index === 0) && isHiddenSegment(segment, segments[index + 1])) return true;
111
117
  if (segment === "proc" && segments[index + 1] === "self") return true;
112
118
  if (segment === "var" && segments[index + 1] === "run" && segments[index + 2] === "secrets") return true;
113
119
  }
114
120
  const file = segments.at(-1);
115
121
  if (file === void 0) return false;
116
122
  if (segments[0] === "userfiles" && !file.includes(".")) return true;
117
- return isSecretFile(segments.slice(0, -1), file);
123
+ if (browser && segments.length === 1 && BROWSER_APP_ROOT_FILE.test(file)) return false;
124
+ return isSecretFile(appEndpoint ? [] : segments.slice(0, -1), file);
118
125
  }
119
126
  function sortAgentTrustReasons(reasons) {
120
127
  const present = new Set(reasons);
@@ -139,7 +146,7 @@ function assessAgentTrust(input) {
139
146
  if (documented && documented.length > 0) {
140
147
  reasons.add(documented.some((pattern) => pattern.test(input.userAgent.trim())) ? AgentTrustReasons["documented-user-agent"] : AgentTrustReasons["unusual-user-agent"]);
141
148
  }
142
- if (isScannerPath(input.path)) reasons.add(AgentTrustReasons["scanner-path"]);
149
+ if (isScannerPath(input.path, { browser: input.rule.browser === true })) reasons.add(AgentTrustReasons["scanner-path"]);
143
150
  return { trust: trustFor(reasons), trustReasons: sortAgentTrustReasons(reasons) };
144
151
  }
145
152
  function trustFor(reasons) {
@@ -149,443 +156,6 @@ function trustFor(reasons) {
149
156
  return unchecked && reasons.has(AgentTrustReasons["documented-user-agent"]) ? AgentTrustLevels.likely_real : AgentTrustLevels.unknown;
150
157
  }
151
158
 
152
- // ../integration-traffic/src/rules.ts
153
- var SELF_TRAFFIC_USER_AGENT_PATTERNS = [
154
- /AINYC-AEO-Audit\//i,
155
- // The site-liveness check (api-routes site-reachability.ts).
156
- /^Canonry site-liveness \(/i,
157
- // The content engine checking that a post it published went live.
158
- /CanonryPublicationVerifier\//i,
159
- // Agency operations fetching a client's WordPress media and posts.
160
- /canonry-agency-ops\//i
161
- ];
162
- var DEFAULT_AI_CRAWLER_RULES = [
163
- {
164
- id: "openai-gptbot",
165
- operator: "OpenAI",
166
- product: "GPTBot",
167
- purpose: "training",
168
- userAgentPatterns: [/GPTBot\//i]
169
- },
170
- {
171
- id: "openai-searchbot",
172
- operator: "OpenAI",
173
- product: "OAI-SearchBot",
174
- purpose: "search",
175
- userAgentPatterns: [/OAI-SearchBot\//i]
176
- },
177
- {
178
- // OpenAI's ads landing-page crawler. It has a dedicated publisher range
179
- // manifest and is neither GPTBot training traffic nor a per-user fetch.
180
- id: "openai-adsbot",
181
- operator: "OpenAI",
182
- product: "OAI-AdsBot",
183
- purpose: "ad-validation",
184
- userAgentPatterns: [/OAI-AdsBot\//i]
185
- },
186
- {
187
- id: "openai-chatgpt-user",
188
- operator: "OpenAI",
189
- product: "ChatGPT-User",
190
- purpose: "user-agent",
191
- userAgentPatterns: [/ChatGPT-User\//i],
192
- // OpenAI's published "full user-agent string". The version may move.
193
- // src: https://developers.openai.com/api/docs/bots
194
- documentedUserAgents: [/^Mozilla\/5\.0 AppleWebKit\/537\.36 \(KHTML, like Gecko\); compatible; ChatGPT-User\/\d+(?:\.\d+)*; \+https:\/\/openai\.com\/bot$/]
195
- },
196
- {
197
- // Observed MCP requests from ChatGPT integrations use this UA. OpenAI's
198
- // official IP guide publishes a shared integrations range list (plugins,
199
- // connectors, GPT Actions, and agentic commerce), but does not establish
200
- // the UA as an authentication contract; UA + range is analytics evidence.
201
- id: "openai-chatgpt-connector",
202
- operator: "OpenAI",
203
- product: "ChatGPT Integrations",
204
- purpose: "user-agent",
205
- userAgentPatterns: [/openai-mcp\//i]
206
- },
207
- {
208
- id: "anthropic-claudebot",
209
- operator: "Anthropic",
210
- product: "ClaudeBot",
211
- purpose: "training",
212
- // Anthropic ships several Claude-* crawlers (ClaudeBot for training,
213
- // Claude-Web for chat fetches, Claude-SearchBot for search). The
214
- // `Claude-` prefix + `Bot/` suffix is the stable shape — pattern is
215
- // permissive enough to catch new Claude-*Bot variants as Anthropic
216
- // adds them, without matching unrelated UAs that happen to mention
217
- // "claude". The per-user fetcher `Claude-User` has no `Bot/` suffix
218
- // and is intentionally NOT matched here — it routes through the
219
- // separate `claude-user` rule below (purpose: 'user-agent').
220
- userAgentPatterns: [
221
- /ClaudeBot\//i,
222
- /Claude-Web\//i,
223
- /Claude-SearchBot\//i,
224
- /Claude-[A-Z]+Bot\//i,
225
- /anthropic-ai/i
226
- ]
227
- },
228
- {
229
- // Anthropic's on-behalf-of-user fetcher: Claude fetches a URL when
230
- // a person asks about it mid-conversation (citation click, "read
231
- // this page" prompt). Distinct from ClaudeBot (training crawl) —
232
- // same operator, opposite operational signal, mirroring OpenAI's
233
- // GPTBot vs. ChatGPT-User split. The `anthropic-claudebot` rule
234
- // above does not match `Claude-User/` (its `Claude-[A-Z]+Bot/`
235
- // pattern needs a `Bot/` suffix), so this is the only rule that
236
- // routes it — into the user-fetch bucket, not bulk crawl.
237
- id: "claude-user",
238
- operator: "Anthropic",
239
- product: "Claude-User",
240
- purpose: "user-agent",
241
- userAgentPatterns: [/Claude-User\//i]
242
- },
243
- {
244
- id: "perplexity-bot",
245
- operator: "Perplexity",
246
- product: "PerplexityBot",
247
- purpose: "search",
248
- userAgentPatterns: [/PerplexityBot\//i]
249
- },
250
- {
251
- // On-demand fetches performed while answering a Perplexity user's query.
252
- // Separate from PerplexityBot (crawl) — different ranges and a different
253
- // operational signal.
254
- id: "perplexity-user",
255
- operator: "Perplexity",
256
- product: "Perplexity-User",
257
- purpose: "user-agent",
258
- userAgentPatterns: [/Perplexity-User\//i]
259
- },
260
- {
261
- // Parallel's search/index crawler. The user-triggered Shap-User surface
262
- // is a distinct rule because Parallel publishes a range list only for
263
- // ShapBot today.
264
- id: "parallel-shapbot",
265
- operator: "Parallel",
266
- product: "ShapBot",
267
- purpose: "search",
268
- userAgentPatterns: [/ShapBot\//i]
269
- },
270
- {
271
- id: "parallel-shap-user",
272
- operator: "Parallel",
273
- product: "Shap-User",
274
- purpose: "user-agent",
275
- userAgentPatterns: [/Shap-User\//i]
276
- },
277
- {
278
- // Google-Agent navigates the web and acts upon a user's request (for
279
- // example, Project Mariner), so it belongs in the user-fetch channel. Its
280
- // browser-like UA carries a `compatible; Google-Agent;` token. This is
281
- // distinct from the Gemini Notebook fetcher below; Google-Extended is only
282
- // a robots.txt control token and never makes an HTTP request.
283
- id: "google-agent",
284
- operator: "Google",
285
- product: "Google-Agent",
286
- purpose: "user-agent",
287
- userAgentPatterns: [/Google-Agent/i]
288
- },
289
- {
290
- // NotebookLM/Gemini notebook fetches happen on a user's request. Google
291
- // renamed the UA and documents both tokens during the transition.
292
- id: "google-gemini-notebook",
293
- operator: "Google",
294
- product: "Google-GeminiNotebook",
295
- purpose: "user-agent",
296
- userAgentPatterns: [/Google-GeminiNotebook/i, /Google-NotebookLM/i]
297
- },
298
- {
299
- // Vertex AI's crawler uses Google's common crawler ranges, but has its own
300
- // UA so it remains distinguishable from Googlebot in traffic reporting.
301
- id: "google-cloudvertexbot",
302
- operator: "Google",
303
- product: "Google-CloudVertexBot",
304
- purpose: "crawl",
305
- userAgentPatterns: [/Google-CloudVertexBot/i]
306
- },
307
- {
308
- id: "bytespider",
309
- operator: "ByteDance",
310
- product: "Bytespider",
311
- purpose: "training",
312
- userAgentPatterns: [/Bytespider/i]
313
- },
314
- {
315
- // Applebot-Extended is a robots.txt data-use token and never makes HTTP
316
- // requests, so only the actual Applebot crawler belongs in this list.
317
- id: "applebot",
318
- operator: "Apple",
319
- product: "Applebot",
320
- purpose: "crawl",
321
- userAgentPatterns: [/Applebot\//i]
322
- },
323
- {
324
- id: "meta-externalagent",
325
- operator: "Meta",
326
- product: "meta-externalagent",
327
- purpose: "training",
328
- userAgentPatterns: [/meta-externalagent/i]
329
- },
330
- {
331
- // Indexes pages for Meta AI search, which cites and links them in
332
- // Meta AI answers. Meta publishes no IP list for its crawlers.
333
- id: "meta-webindexer",
334
- operator: "Meta",
335
- product: "meta-webindexer",
336
- purpose: "search",
337
- userAgentPatterns: [/meta-webindexer/i]
338
- },
339
- {
340
- // Fetches a link a person asked Meta AI about, so Meta says it may
341
- // bypass robots.txt.
342
- id: "meta-externalfetcher",
343
- operator: "Meta",
344
- product: "meta-externalfetcher",
345
- purpose: "user-agent",
346
- userAgentPatterns: [/meta-externalfetcher/i]
347
- },
348
- {
349
- id: "ccbot",
350
- operator: "Common Crawl",
351
- product: "CCBot",
352
- purpose: "crawl",
353
- userAgentPatterns: [/CCBot\//i]
354
- },
355
- {
356
- id: "cohere-ai",
357
- operator: "Cohere",
358
- product: "cohere-ai",
359
- purpose: "training",
360
- userAgentPatterns: [/cohere-ai/i]
361
- },
362
- {
363
- id: "diffbot",
364
- operator: "Diffbot",
365
- product: "Diffbot",
366
- purpose: "crawl",
367
- userAgentPatterns: [/Diffbot/i]
368
- },
369
- {
370
- // Per-user, on-demand fetches initiated by a Mistral user (citation
371
- // click, "read this URL" prompt). Separate from MistralBot (crawl)
372
- // so the dashboard's user-fetch vs. bulk-crawl split stays honest.
373
- id: "mistral-ai-user",
374
- operator: "Mistral AI",
375
- product: "MistralAI-User",
376
- purpose: "user-agent",
377
- userAgentPatterns: [/MistralAI-User\//i],
378
- // Mistral's published "full user-agent string". The version may move.
379
- // src: https://docs.mistral.ai/robots
380
- documentedUserAgents: [/^Mozilla\/5\.0 AppleWebKit\/537\.36 \(KHTML, like Gecko; compatible; MistralAI-User\/\d+(?:\.\d+)*; \+https:\/\/docs\.mistral\.ai\/robots\)$/]
381
- },
382
- {
383
- // Mistral's search-index crawler. Unlike the legacy MistralBot UA below,
384
- // Mistral publishes a dedicated range manifest for this current token.
385
- id: "mistral-ai-index",
386
- operator: "Mistral AI",
387
- product: "MistralAI-Index",
388
- purpose: "search",
389
- userAgentPatterns: [/MistralAI-Index\//i]
390
- },
391
- {
392
- // Mistral documents this training crawler but does not publish an IP
393
- // manifest for it, so matching requests remain claimed_unverified.
394
- id: "mistral-ai-training",
395
- operator: "Mistral AI",
396
- product: "MistralAI-Training",
397
- purpose: "training",
398
- userAgentPatterns: [/MistralAI-Training\//i]
399
- },
400
- {
401
- // Preserve classification for the older MistralBot token observed in
402
- // historical traffic. It is not covered by Mistral's current manifests.
403
- id: "mistral-bot",
404
- operator: "Mistral AI",
405
- product: "MistralBot",
406
- purpose: "crawl",
407
- userAgentPatterns: [/MistralBot\//i]
408
- },
409
- {
410
- id: "deepseek",
411
- operator: "DeepSeek",
412
- product: "DeepSeekBot",
413
- purpose: "training",
414
- userAgentPatterns: [/DeepSeekBot/i]
415
- },
416
- {
417
- id: "xai-grok-bot",
418
- operator: "xAI",
419
- product: "xAI-Bot",
420
- purpose: "crawl",
421
- // xAI documents its crawler at https://x.ai/bots/ as `xAI-Bot/<version>`.
422
- // Operators have also observed `Grok-Bot/...` in production logs. xAI
423
- // has been less consistent than OpenAI/Anthropic about publishing every
424
- // UA variant they ship, so the pattern is intentionally permissive
425
- // across the xAI/Grok family — better to over-match the operator than
426
- // leave real hits in the `unknown` bucket. A separate `purpose:
427
- // 'user-agent'` Grok rule can be added later if xAI ships a citation
428
- // user-fetcher UA (the way OpenAI ships ChatGPT-User alongside GPTBot).
429
- userAgentPatterns: [/xAI-Bot\//i, /Grok-Bot\//i, /GrokBot\//i]
430
- },
431
- {
432
- // You.com authenticates YouBot with HTTP Message Signatures rather than a
433
- // publisher IP manifest. Canonry does not verify signatures yet, so this
434
- // official UA is classified but remains claimed_unverified.
435
- id: "you-youbot",
436
- operator: "You.com",
437
- product: "YouBot",
438
- purpose: "search",
439
- userAgentPatterns: [/YouBot\//i]
440
- },
441
- {
442
- // Exa's search index for AI applications. Like YouBot it signs requests
443
- // (Web Bot Auth) instead of publishing an IP list, so hits stay
444
- // claimed_unverified.
445
- id: "exa-searchbot",
446
- operator: "Exa",
447
- product: "ExaSearchBot",
448
- purpose: "search",
449
- userAgentPatterns: [/ExaSearchBot\//i]
450
- },
451
- // Classic search-engine crawlers. Not strictly "AI" by training origin,
452
- // but the same audience: machine traffic indexing the site for query
453
- // surfaces. Operators tracking AI visibility want this signal too —
454
- // SERP indexing is the upstream that feeds AI answer engines (Bing
455
- // powers ChatGPT search; Google powers Gemini grounding). Classified
456
- // alongside LLM crawlers; the dashboard's "AI crawler hits" label is
457
- // imprecise here but functionally correct (these are still bots, not
458
- // humans).
459
- {
460
- id: "googlebot",
461
- operator: "Google",
462
- product: "Googlebot",
463
- purpose: "search",
464
- // Googlebot has Smartphone / Desktop / Image / News / Video variants.
465
- // All match the `Googlebot/` prefix on first appearance in the UA.
466
- // Excludes `Googlebot-Image` etc. that ride a `Googlebot-` prefix —
467
- // they also match `Googlebot/` in their UA strings.
468
- userAgentPatterns: [/Googlebot[/-]/i]
469
- },
470
- {
471
- id: "bingbot",
472
- operator: "Microsoft",
473
- product: "bingbot",
474
- purpose: "search",
475
- userAgentPatterns: [/bingbot\//i]
476
- },
477
- {
478
- id: "duckduckbot",
479
- operator: "DuckDuckGo",
480
- product: "DuckDuckBot",
481
- purpose: "search",
482
- userAgentPatterns: [/DuckDuckBot/i]
483
- },
484
- {
485
- // DuckDuckGo's crawler for cited AI-assisted answers. It shares ranges
486
- // with DuckDuckBot today, but the publisher exposes a separate manifest.
487
- id: "duckassistbot",
488
- operator: "DuckDuckGo",
489
- product: "DuckAssistBot",
490
- purpose: "search",
491
- userAgentPatterns: [/DuckAssistBot/i]
492
- },
493
- {
494
- id: "yandexbot",
495
- operator: "Yandex",
496
- product: "YandexBot",
497
- purpose: "search",
498
- userAgentPatterns: [/YandexBot\//i]
499
- },
500
- {
501
- id: "baiduspider",
502
- operator: "Baidu",
503
- product: "Baiduspider",
504
- purpose: "search",
505
- userAgentPatterns: [/Baiduspider/i]
506
- },
507
- {
508
- id: "amazonbot",
509
- operator: "Amazon",
510
- product: "Amazonbot",
511
- purpose: "training",
512
- userAgentPatterns: [/Amazonbot\//i]
513
- },
514
- {
515
- id: "amzn-searchbot",
516
- operator: "Amazon",
517
- product: "Amzn-SearchBot",
518
- purpose: "search",
519
- userAgentPatterns: [/Amzn-SearchBot\//i]
520
- },
521
- {
522
- id: "amzn-user",
523
- operator: "Amazon",
524
- product: "Amzn-User",
525
- purpose: "user-agent",
526
- userAgentPatterns: [/Amzn-User\//i]
527
- }
528
- ];
529
- var DEFAULT_AI_CRAWLER_USER_AGENT_SUBSTRINGS = [
530
- "GPTBot/",
531
- "OAI-SearchBot/",
532
- "OAI-AdsBot/",
533
- "ChatGPT-User/",
534
- "openai-mcp/",
535
- "ClaudeBot/",
536
- "Claude-Web/",
537
- "Claude-SearchBot/",
538
- "Claude-User/",
539
- "anthropic-ai",
540
- "PerplexityBot/",
541
- "Perplexity-User/",
542
- "ShapBot/",
543
- "Shap-User/",
544
- "Google-Agent",
545
- "Google-GeminiNotebook",
546
- "Google-NotebookLM",
547
- "Google-CloudVertexBot",
548
- "Bytespider",
549
- "Applebot/",
550
- "meta-externalagent",
551
- "meta-webindexer",
552
- "meta-externalfetcher",
553
- "CCBot/",
554
- "cohere-ai",
555
- "Diffbot",
556
- "MistralAI-User/",
557
- "MistralAI-Index/",
558
- "MistralAI-Training/",
559
- "MistralBot/",
560
- "DeepSeekBot",
561
- "xAI-Bot/",
562
- "Grok-Bot/",
563
- "GrokBot/",
564
- "YouBot/",
565
- "ExaSearchBot/",
566
- "Googlebot",
567
- "bingbot/",
568
- "DuckDuckBot",
569
- "DuckAssistBot",
570
- "YandexBot/",
571
- "Baiduspider",
572
- "Amazonbot/",
573
- "Amzn-SearchBot/",
574
- "Amzn-User/"
575
- ];
576
- var DEFAULT_AI_REFERRER_RULES = [
577
- { domain: AI_ENGINE_DOMAINS.chatgpt, operator: "OpenAI", product: "ChatGPT" },
578
- { domain: AI_ENGINE_DOMAINS.chatgptLegacy, operator: "OpenAI", product: "ChatGPT" },
579
- { domain: AI_ENGINE_DOMAINS.perplexity, operator: "Perplexity", product: "Perplexity" },
580
- { domain: AI_ENGINE_DOMAINS.claude, operator: "Anthropic", product: "Claude" },
581
- { domain: AI_ENGINE_DOMAINS.gemini, operator: "Google", product: "Gemini" },
582
- { domain: AI_ENGINE_DOMAINS.copilotMicrosoft, operator: "Microsoft", product: "Copilot" },
583
- { domain: AI_ENGINE_DOMAINS.grok, operator: "xAI", product: "Grok" },
584
- { domain: AI_ENGINE_DOMAINS.phind, operator: "Phind", product: "Phind" },
585
- { domain: AI_ENGINE_DOMAINS.you, operator: "You.com", product: "You.com" },
586
- { domain: AI_ENGINE_DOMAINS.metaAi, operator: "Meta", product: "Meta AI" }
587
- ];
588
-
589
159
  // ../integration-traffic/src/ip-ranges/amazonbot.json
590
160
  var amazonbot_default = {
591
161
  _source: "https://developer.amazon.com/amazonbot/ip-addresses/",
@@ -11845,6 +11415,41 @@ var chatgpt_user_default = {
11845
11415
  ]
11846
11416
  };
11847
11417
 
11418
+ // ../integration-traffic/src/ip-ranges/claude-agent.json
11419
+ var claude_agent_default = {
11420
+ _source: "https://claude.com/.well-known/sail",
11421
+ creationTime: "2026-10-22T18:36:00Z",
11422
+ prefixes: [
11423
+ {
11424
+ ipv4Prefix: "136.71.21.147/32"
11425
+ },
11426
+ {
11427
+ ipv4Prefix: "34.171.207.92/32"
11428
+ },
11429
+ {
11430
+ ipv4Prefix: "34.31.25.14/32"
11431
+ },
11432
+ {
11433
+ ipv4Prefix: "34.60.73.195/32"
11434
+ },
11435
+ {
11436
+ ipv4Prefix: "34.66.255.143/32"
11437
+ },
11438
+ {
11439
+ ipv4Prefix: "34.67.187.248/32"
11440
+ },
11441
+ {
11442
+ ipv4Prefix: "34.68.65.207/32"
11443
+ },
11444
+ {
11445
+ ipv4Prefix: "34.70.177.231/32"
11446
+ },
11447
+ {
11448
+ ipv4Prefix: "34.71.122.171/32"
11449
+ }
11450
+ ]
11451
+ };
11452
+
11848
11453
  // ../integration-traffic/src/ip-ranges/duckassistbot.json
11849
11454
  var duckassistbot_default = {
11850
11455
  _source: "https://duckduckgo.com/duckassistbot.json",
@@ -17880,11 +17485,16 @@ var RULE_ID_TO_RANGES = {
17880
17485
  "amzn-user": amzn_user_default,
17881
17486
  // Anthropic publishes one shared crawler-origin manifest. It confirms
17882
17487
  // Anthropic origin but does not attribute a prefix to ClaudeBot,
17883
- // Claude-SearchBot, or Claude-User individually, so both classifier rules
17884
- // map to the same file and the UA remains the product discriminator.
17488
+ // Claude-SearchBot, or Claude-User individually, so all three classifier
17489
+ // rules map to the same file and the UA remains the product discriminator.
17885
17490
  // src: https://claude.com/crawling/bots.json
17886
17491
  "anthropic-claudebot": anthropic_default,
17887
- "claude-user": anthropic_default
17492
+ "claude-searchbot": anthropic_default,
17493
+ "claude-user": anthropic_default,
17494
+ // Claude-Agent (Anthropic-hosted browsers) egresses from its own list,
17495
+ // published as a SAIL file the refresh script converts to this shape.
17496
+ // src: https://claude.com/.well-known/sail
17497
+ "claude-agent": claude_agent_default
17888
17498
  };
17889
17499
  function manifestMetadata(raw) {
17890
17500
  if (typeof raw !== "object" || raw === null || Array.isArray(raw)) return null;
@@ -17923,16 +17533,490 @@ var CACHE = (() => {
17923
17533
  for (const [ruleId, raw] of Object.entries(RULE_ID_TO_RANGES)) {
17924
17534
  cache.set(ruleId, verificationDataFromRaw(raw));
17925
17535
  }
17926
- return cache;
17927
- })();
17928
- function verifyIpForRuleDecision(ip, ruleId) {
17929
- const data = CACHE.get(ruleId);
17930
- return data ? decideIpVerification(ip, data) : { verified: false, manifest: null };
17931
- }
17932
- function hasVerificationDataFor(ruleId) {
17933
- const data = CACHE.get(ruleId);
17934
- return !!data && data.ranges.length > 0;
17935
- }
17536
+ return cache;
17537
+ })();
17538
+ function verifyIpForRuleDecision(ip, ruleId) {
17539
+ const data = CACHE.get(ruleId);
17540
+ return data ? decideIpVerification(ip, data) : { verified: false, manifest: null };
17541
+ }
17542
+ function hasVerificationDataFor(ruleId) {
17543
+ const data = CACHE.get(ruleId);
17544
+ return !!data && data.ranges.length > 0;
17545
+ }
17546
+ function rulesShareVerificationList(ruleA, ruleB) {
17547
+ const a = CACHE.get(ruleA);
17548
+ const b = CACHE.get(ruleB);
17549
+ if (!a?.manifest || !b?.manifest || a.ranges.length === 0 || b.ranges.length === 0) return false;
17550
+ return a.manifest.id === b.manifest.id;
17551
+ }
17552
+
17553
+ // ../integration-traffic/src/rules.ts
17554
+ var SELF_TRAFFIC_USER_AGENT_PATTERNS = [
17555
+ /AINYC-AEO-Audit\//i,
17556
+ // The site-liveness check (api-routes site-reachability.ts).
17557
+ /^Canonry site-liveness \(/i,
17558
+ // The content engine checking that a post it published went live.
17559
+ /CanonryPublicationVerifier\//i,
17560
+ // Agency operations fetching a client's WordPress media and posts.
17561
+ /canonry-agency-ops\//i
17562
+ ];
17563
+ var DEFAULT_AI_CRAWLER_RULES = [
17564
+ {
17565
+ id: "openai-gptbot",
17566
+ operator: "OpenAI",
17567
+ product: "GPTBot",
17568
+ purpose: "training",
17569
+ userAgentPatterns: [/GPTBot\//i]
17570
+ },
17571
+ {
17572
+ id: "openai-searchbot",
17573
+ operator: "OpenAI",
17574
+ product: "OAI-SearchBot",
17575
+ purpose: "search",
17576
+ userAgentPatterns: [/OAI-SearchBot\//i]
17577
+ },
17578
+ {
17579
+ // OpenAI's ads landing-page crawler. It has a dedicated publisher range
17580
+ // manifest and is neither GPTBot training traffic nor a per-user fetch.
17581
+ id: "openai-adsbot",
17582
+ operator: "OpenAI",
17583
+ product: "OAI-AdsBot",
17584
+ purpose: "ad-validation",
17585
+ userAgentPatterns: [/OAI-AdsBot\//i]
17586
+ },
17587
+ {
17588
+ id: "openai-chatgpt-user",
17589
+ operator: "OpenAI",
17590
+ product: "ChatGPT-User",
17591
+ purpose: "user-agent",
17592
+ userAgentPatterns: [/ChatGPT-User\//i],
17593
+ // OpenAI's published "full user-agent string". The version may move.
17594
+ // src: https://developers.openai.com/api/docs/bots
17595
+ documentedUserAgents: [/^Mozilla\/5\.0 AppleWebKit\/537\.36 \(KHTML, like Gecko\); compatible; ChatGPT-User\/\d+(?:\.\d+)*; \+https:\/\/openai\.com\/bot$/]
17596
+ },
17597
+ {
17598
+ // Observed MCP requests from ChatGPT integrations use this UA. OpenAI's
17599
+ // official IP guide publishes a shared integrations range list (plugins,
17600
+ // connectors, GPT Actions, and agentic commerce), but does not establish
17601
+ // the UA as an authentication contract; UA + range is analytics evidence.
17602
+ id: "openai-chatgpt-connector",
17603
+ operator: "OpenAI",
17604
+ product: "ChatGPT Integrations",
17605
+ purpose: "user-agent",
17606
+ userAgentPatterns: [/openai-mcp\//i]
17607
+ },
17608
+ {
17609
+ // Anthropic's search crawler, which indexes pages so Claude can find them
17610
+ // when it searches the web. Mirrors OAI-SearchBot vs. GPTBot.
17611
+ // src: https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler
17612
+ id: "claude-searchbot",
17613
+ operator: "Anthropic",
17614
+ product: "Claude-SearchBot",
17615
+ purpose: "search",
17616
+ userAgentPatterns: [/Claude-SearchBot\//i]
17617
+ },
17618
+ {
17619
+ id: "anthropic-claudebot",
17620
+ operator: "Anthropic",
17621
+ product: "ClaudeBot",
17622
+ purpose: "training",
17623
+ // ClaudeBot is Anthropic's training crawler. `Claude-Web/` and
17624
+ // `anthropic-ai` are older Anthropic tokens it no longer documents.
17625
+ // There is deliberately no Claude-*Bot family pattern: a Claude bot
17626
+ // Anthropic adds later is not training traffic by default, so until it
17627
+ // gets its own rule it is stored as an unrecognized agent, which keeps
17628
+ // its GET and HEAD requests for anything but a static file (the rest
17629
+ // count only in `unknownHits`). Only `canonry serve` alerts on such a
17630
+ // name (`traffic.agent.discovered`), and only under the conditions in
17631
+ // this package's AGENTS.md ("Rule order").
17632
+ userAgentPatterns: [
17633
+ /ClaudeBot\//i,
17634
+ /Claude-Web\//i,
17635
+ /anthropic-ai/i
17636
+ ]
17637
+ },
17638
+ {
17639
+ // Anthropic's on-behalf-of-user fetcher: Claude fetches a URL when
17640
+ // a person asks about it mid-conversation (citation click, "read
17641
+ // this page" prompt). Distinct from ClaudeBot (training crawl) —
17642
+ // same operator, opposite operational signal, mirroring OpenAI's
17643
+ // GPTBot vs. ChatGPT-User split, so it goes to the user-fetch bucket,
17644
+ // not bulk crawl.
17645
+ id: "claude-user",
17646
+ operator: "Anthropic",
17647
+ product: "Claude-User",
17648
+ purpose: "user-agent",
17649
+ userAgentPatterns: [/Claude-User\//i]
17650
+ },
17651
+ {
17652
+ // Anthropic-hosted browsers that browse and act for a person. They send
17653
+ // a real Chrome user agent with `compatible; Claude-Agent/<version>`
17654
+ // added; Anthropic says to match the token, since the rest changes.
17655
+ // Like Google-Agent, a full browser also loads a page's assets, so only
17656
+ // its page loads count (`browser`).
17657
+ // The token must follow whitespace, `;` or `(` and end at a non-name
17658
+ // character, so a version-less `Claude-Agent` still matches but
17659
+ // third-party tools that lead with their own name (`claude-agent/0.3`,
17660
+ // `claude-agent-sdk/0.1`) or embed it (`my-claude-agent/1.0`) do not.
17661
+ // src: https://support.claude.com/en/articles/18234133-how-do-anthropic-hosted-browsers-identify-themselves-when-they-browse-the-web-on-a-user-s-behalf
17662
+ id: "claude-agent",
17663
+ operator: "Anthropic",
17664
+ product: "Claude-Agent",
17665
+ purpose: "user-agent",
17666
+ userAgentPatterns: [/(?<=[\s;(])Claude-Agent(?![\w-])/i],
17667
+ browser: true
17668
+ },
17669
+ {
17670
+ id: "perplexity-bot",
17671
+ operator: "Perplexity",
17672
+ product: "PerplexityBot",
17673
+ purpose: "search",
17674
+ userAgentPatterns: [/PerplexityBot\//i]
17675
+ },
17676
+ {
17677
+ // On-demand fetches performed while answering a Perplexity user's query.
17678
+ // Separate from PerplexityBot (crawl) — different ranges and a different
17679
+ // operational signal.
17680
+ id: "perplexity-user",
17681
+ operator: "Perplexity",
17682
+ product: "Perplexity-User",
17683
+ purpose: "user-agent",
17684
+ userAgentPatterns: [/Perplexity-User\//i]
17685
+ },
17686
+ {
17687
+ // Parallel's search/index crawler. The user-triggered Shap-User surface
17688
+ // is a distinct rule because Parallel publishes a range list only for
17689
+ // ShapBot today.
17690
+ id: "parallel-shapbot",
17691
+ operator: "Parallel",
17692
+ product: "ShapBot",
17693
+ purpose: "search",
17694
+ userAgentPatterns: [/ShapBot\//i]
17695
+ },
17696
+ {
17697
+ id: "parallel-shap-user",
17698
+ operator: "Parallel",
17699
+ product: "Shap-User",
17700
+ purpose: "user-agent",
17701
+ userAgentPatterns: [/Shap-User\//i]
17702
+ },
17703
+ {
17704
+ // Google-Agent navigates the web and acts upon a user's request (for
17705
+ // example, Project Mariner), so it belongs in the user-fetch channel. Its
17706
+ // browser-like UA carries a `compatible; Google-Agent;` token. A full
17707
+ // browser, it also loads each page's assets, so only its page loads count
17708
+ // (`browser`). This is distinct from the Gemini Notebook fetcher below;
17709
+ // Google-Extended is only a robots.txt control token and never makes an
17710
+ // HTTP request.
17711
+ id: "google-agent",
17712
+ operator: "Google",
17713
+ product: "Google-Agent",
17714
+ purpose: "user-agent",
17715
+ userAgentPatterns: [/Google-Agent/i],
17716
+ browser: true
17717
+ },
17718
+ {
17719
+ // NotebookLM/Gemini notebook fetches happen on a user's request. Google
17720
+ // renamed the UA and documents both tokens during the transition.
17721
+ id: "google-gemini-notebook",
17722
+ operator: "Google",
17723
+ product: "Google-GeminiNotebook",
17724
+ purpose: "user-agent",
17725
+ userAgentPatterns: [/Google-GeminiNotebook/i, /Google-NotebookLM/i]
17726
+ },
17727
+ {
17728
+ // Vertex AI's crawler uses Google's common crawler ranges, but has its own
17729
+ // UA so it remains distinguishable from Googlebot in traffic reporting.
17730
+ id: "google-cloudvertexbot",
17731
+ operator: "Google",
17732
+ product: "Google-CloudVertexBot",
17733
+ purpose: "crawl",
17734
+ userAgentPatterns: [/Google-CloudVertexBot/i]
17735
+ },
17736
+ {
17737
+ id: "bytespider",
17738
+ operator: "ByteDance",
17739
+ product: "Bytespider",
17740
+ purpose: "training",
17741
+ userAgentPatterns: [/Bytespider/i]
17742
+ },
17743
+ {
17744
+ // Applebot-Extended is a robots.txt data-use token and never makes HTTP
17745
+ // requests, so only the actual Applebot crawler belongs in this list.
17746
+ id: "applebot",
17747
+ operator: "Apple",
17748
+ product: "Applebot",
17749
+ purpose: "crawl",
17750
+ userAgentPatterns: [/Applebot\//i]
17751
+ },
17752
+ {
17753
+ id: "meta-externalagent",
17754
+ operator: "Meta",
17755
+ product: "meta-externalagent",
17756
+ purpose: "training",
17757
+ userAgentPatterns: [/meta-externalagent/i]
17758
+ },
17759
+ {
17760
+ // Indexes pages for Meta AI search, which cites and links them in
17761
+ // Meta AI answers. Meta publishes no IP list for its crawlers.
17762
+ id: "meta-webindexer",
17763
+ operator: "Meta",
17764
+ product: "meta-webindexer",
17765
+ purpose: "search",
17766
+ userAgentPatterns: [/meta-webindexer/i]
17767
+ },
17768
+ {
17769
+ // Fetches a link a person asked Meta AI about, so Meta says it may
17770
+ // bypass robots.txt.
17771
+ id: "meta-externalfetcher",
17772
+ operator: "Meta",
17773
+ product: "meta-externalfetcher",
17774
+ purpose: "user-agent",
17775
+ userAgentPatterns: [/meta-externalfetcher/i]
17776
+ },
17777
+ {
17778
+ id: "ccbot",
17779
+ operator: "Common Crawl",
17780
+ product: "CCBot",
17781
+ purpose: "crawl",
17782
+ userAgentPatterns: [/CCBot\//i]
17783
+ },
17784
+ {
17785
+ id: "cohere-ai",
17786
+ operator: "Cohere",
17787
+ product: "cohere-ai",
17788
+ purpose: "training",
17789
+ userAgentPatterns: [/cohere-ai/i]
17790
+ },
17791
+ {
17792
+ id: "diffbot",
17793
+ operator: "Diffbot",
17794
+ product: "Diffbot",
17795
+ purpose: "crawl",
17796
+ userAgentPatterns: [/Diffbot/i]
17797
+ },
17798
+ {
17799
+ // Per-user, on-demand fetches initiated by a Mistral user (citation
17800
+ // click, "read this URL" prompt). Separate from MistralBot (crawl)
17801
+ // so the dashboard's user-fetch vs. bulk-crawl split stays honest.
17802
+ id: "mistral-ai-user",
17803
+ operator: "Mistral AI",
17804
+ product: "MistralAI-User",
17805
+ purpose: "user-agent",
17806
+ userAgentPatterns: [/MistralAI-User\//i],
17807
+ // Mistral's published "full user-agent string". The version may move.
17808
+ // src: https://docs.mistral.ai/robots
17809
+ documentedUserAgents: [/^Mozilla\/5\.0 AppleWebKit\/537\.36 \(KHTML, like Gecko; compatible; MistralAI-User\/\d+(?:\.\d+)*; \+https:\/\/docs\.mistral\.ai\/robots\)$/]
17810
+ },
17811
+ {
17812
+ // Mistral's search-index crawler. Unlike the legacy MistralBot UA below,
17813
+ // Mistral publishes a dedicated range manifest for this current token.
17814
+ id: "mistral-ai-index",
17815
+ operator: "Mistral AI",
17816
+ product: "MistralAI-Index",
17817
+ purpose: "search",
17818
+ userAgentPatterns: [/MistralAI-Index\//i]
17819
+ },
17820
+ {
17821
+ // Mistral documents this training crawler but does not publish an IP
17822
+ // manifest for it, so matching requests remain claimed_unverified.
17823
+ id: "mistral-ai-training",
17824
+ operator: "Mistral AI",
17825
+ product: "MistralAI-Training",
17826
+ purpose: "training",
17827
+ userAgentPatterns: [/MistralAI-Training\//i]
17828
+ },
17829
+ {
17830
+ // Preserve classification for the older MistralBot token observed in
17831
+ // historical traffic. It is not covered by Mistral's current manifests.
17832
+ id: "mistral-bot",
17833
+ operator: "Mistral AI",
17834
+ product: "MistralBot",
17835
+ purpose: "crawl",
17836
+ userAgentPatterns: [/MistralBot\//i]
17837
+ },
17838
+ {
17839
+ id: "deepseek",
17840
+ operator: "DeepSeek",
17841
+ product: "DeepSeekBot",
17842
+ purpose: "training",
17843
+ userAgentPatterns: [/DeepSeekBot/i]
17844
+ },
17845
+ {
17846
+ id: "xai-grok-bot",
17847
+ operator: "xAI",
17848
+ product: "xAI-Bot",
17849
+ purpose: "crawl",
17850
+ // xAI documents its crawler at https://x.ai/bots/ as `xAI-Bot/<version>`.
17851
+ // Operators have also observed `Grok-Bot/...` and `GrokBot/...` in
17852
+ // production logs. xAI has been less consistent than OpenAI/Anthropic
17853
+ // about publishing every UA variant they ship, so the rule lists each
17854
+ // token seen, as a literal: any other xAI or Grok name arrives as an
17855
+ // unrecognized agent until it is added here. A separate `purpose:
17856
+ // 'user-agent'` Grok rule can be added later if xAI ships a citation
17857
+ // user-fetcher UA (the way OpenAI ships ChatGPT-User alongside GPTBot).
17858
+ userAgentPatterns: [/xAI-Bot\//i, /Grok-Bot\//i, /GrokBot\//i]
17859
+ },
17860
+ {
17861
+ // You.com authenticates YouBot with HTTP Message Signatures rather than a
17862
+ // publisher IP manifest. Canonry does not verify signatures yet, so this
17863
+ // official UA is classified but remains claimed_unverified.
17864
+ id: "you-youbot",
17865
+ operator: "You.com",
17866
+ product: "YouBot",
17867
+ purpose: "search",
17868
+ userAgentPatterns: [/YouBot\//i]
17869
+ },
17870
+ {
17871
+ // Exa's search index for AI applications. Like YouBot it signs requests
17872
+ // (Web Bot Auth) instead of publishing an IP list, so hits stay
17873
+ // claimed_unverified.
17874
+ id: "exa-searchbot",
17875
+ operator: "Exa",
17876
+ product: "ExaSearchBot",
17877
+ purpose: "search",
17878
+ userAgentPatterns: [/ExaSearchBot\//i]
17879
+ },
17880
+ // Classic search-engine crawlers. Not strictly "AI" by training origin,
17881
+ // but the same audience: machine traffic indexing the site for query
17882
+ // surfaces. Operators tracking AI visibility want this signal too —
17883
+ // SERP indexing is the upstream that feeds AI answer engines (Bing
17884
+ // powers ChatGPT search; Google powers Gemini grounding). Classified
17885
+ // alongside LLM crawlers; the dashboard's "AI crawler hits" label is
17886
+ // imprecise here but functionally correct (these are still bots, not
17887
+ // humans).
17888
+ {
17889
+ id: "googlebot",
17890
+ operator: "Google",
17891
+ product: "Googlebot",
17892
+ purpose: "search",
17893
+ // Googlebot has Smartphone / Desktop / Image / News / Video variants.
17894
+ // All match the `Googlebot/` prefix on first appearance in the UA.
17895
+ // Excludes `Googlebot-Image` etc. that ride a `Googlebot-` prefix —
17896
+ // they also match `Googlebot/` in their UA strings.
17897
+ userAgentPatterns: [/Googlebot[/-]/i]
17898
+ },
17899
+ {
17900
+ id: "bingbot",
17901
+ operator: "Microsoft",
17902
+ product: "bingbot",
17903
+ purpose: "search",
17904
+ userAgentPatterns: [/bingbot\//i]
17905
+ },
17906
+ {
17907
+ id: "duckduckbot",
17908
+ operator: "DuckDuckGo",
17909
+ product: "DuckDuckBot",
17910
+ purpose: "search",
17911
+ userAgentPatterns: [/DuckDuckBot/i]
17912
+ },
17913
+ {
17914
+ // DuckDuckGo's crawler for cited AI-assisted answers. It shares ranges
17915
+ // with DuckDuckBot today, but the publisher exposes a separate manifest.
17916
+ id: "duckassistbot",
17917
+ operator: "DuckDuckGo",
17918
+ product: "DuckAssistBot",
17919
+ purpose: "search",
17920
+ userAgentPatterns: [/DuckAssistBot/i]
17921
+ },
17922
+ {
17923
+ id: "yandexbot",
17924
+ operator: "Yandex",
17925
+ product: "YandexBot",
17926
+ purpose: "search",
17927
+ userAgentPatterns: [/YandexBot\//i]
17928
+ },
17929
+ {
17930
+ id: "baiduspider",
17931
+ operator: "Baidu",
17932
+ product: "Baiduspider",
17933
+ purpose: "search",
17934
+ userAgentPatterns: [/Baiduspider/i]
17935
+ },
17936
+ {
17937
+ id: "amazonbot",
17938
+ operator: "Amazon",
17939
+ product: "Amazonbot",
17940
+ purpose: "training",
17941
+ userAgentPatterns: [/Amazonbot\//i]
17942
+ },
17943
+ {
17944
+ id: "amzn-searchbot",
17945
+ operator: "Amazon",
17946
+ product: "Amzn-SearchBot",
17947
+ purpose: "search",
17948
+ userAgentPatterns: [/Amzn-SearchBot\//i]
17949
+ },
17950
+ {
17951
+ id: "amzn-user",
17952
+ operator: "Amazon",
17953
+ product: "Amzn-User",
17954
+ purpose: "user-agent",
17955
+ userAgentPatterns: [/Amzn-User\//i]
17956
+ }
17957
+ ];
17958
+ var DEFAULT_AI_CRAWLER_USER_AGENT_SUBSTRINGS = [
17959
+ "GPTBot/",
17960
+ "OAI-SearchBot/",
17961
+ "OAI-AdsBot/",
17962
+ "ChatGPT-User/",
17963
+ "openai-mcp/",
17964
+ "ClaudeBot/",
17965
+ "Claude-Web/",
17966
+ "Claude-SearchBot/",
17967
+ "Claude-User/",
17968
+ // No slash: Anthropic says to match the token, which may come without a
17969
+ // version. The edge list stays broad; the server rule is the strict match.
17970
+ "Claude-Agent",
17971
+ "anthropic-ai",
17972
+ "PerplexityBot/",
17973
+ "Perplexity-User/",
17974
+ "ShapBot/",
17975
+ "Shap-User/",
17976
+ "Google-Agent",
17977
+ "Google-GeminiNotebook",
17978
+ "Google-NotebookLM",
17979
+ "Google-CloudVertexBot",
17980
+ "Bytespider",
17981
+ "Applebot/",
17982
+ "meta-externalagent",
17983
+ "meta-webindexer",
17984
+ "meta-externalfetcher",
17985
+ "CCBot/",
17986
+ "cohere-ai",
17987
+ "Diffbot",
17988
+ "MistralAI-User/",
17989
+ "MistralAI-Index/",
17990
+ "MistralAI-Training/",
17991
+ "MistralBot/",
17992
+ "DeepSeekBot",
17993
+ "xAI-Bot/",
17994
+ "Grok-Bot/",
17995
+ "GrokBot/",
17996
+ "YouBot/",
17997
+ "ExaSearchBot/",
17998
+ "Googlebot",
17999
+ "bingbot/",
18000
+ "DuckDuckBot",
18001
+ "DuckAssistBot",
18002
+ "YandexBot/",
18003
+ "Baiduspider",
18004
+ "Amazonbot/",
18005
+ "Amzn-SearchBot/",
18006
+ "Amzn-User/"
18007
+ ];
18008
+ var DEFAULT_AI_REFERRER_RULES = [
18009
+ { domain: AI_ENGINE_DOMAINS.chatgpt, operator: "OpenAI", product: "ChatGPT" },
18010
+ { domain: AI_ENGINE_DOMAINS.chatgptLegacy, operator: "OpenAI", product: "ChatGPT" },
18011
+ { domain: AI_ENGINE_DOMAINS.perplexity, operator: "Perplexity", product: "Perplexity" },
18012
+ { domain: AI_ENGINE_DOMAINS.claude, operator: "Anthropic", product: "Claude" },
18013
+ { domain: AI_ENGINE_DOMAINS.gemini, operator: "Google", product: "Gemini" },
18014
+ { domain: AI_ENGINE_DOMAINS.copilotMicrosoft, operator: "Microsoft", product: "Copilot" },
18015
+ { domain: AI_ENGINE_DOMAINS.grok, operator: "xAI", product: "Grok" },
18016
+ { domain: AI_ENGINE_DOMAINS.phind, operator: "Phind", product: "Phind" },
18017
+ { domain: AI_ENGINE_DOMAINS.you, operator: "You.com", product: "You.com" },
18018
+ { domain: AI_ENGINE_DOMAINS.metaAi, operator: "Meta", product: "Meta AI" }
18019
+ ];
17936
18020
 
17937
18021
  // ../integration-traffic/src/classifier.ts
17938
18022
  var USER_FETCH_PURPOSE = "user-agent";
@@ -18038,6 +18122,7 @@ function classifyAiUserFetch(event) {
18038
18122
  verificationStatus: decision.verified ? "verified" : "claimed_unverified",
18039
18123
  verificationManifest: decision.manifest,
18040
18124
  matchedUserAgent: userAgent,
18125
+ browser: rule.browser === true,
18041
18126
  ...trust
18042
18127
  };
18043
18128
  }
@@ -18088,6 +18173,74 @@ function classifyAiReferral(event) {
18088
18173
  return null;
18089
18174
  }
18090
18175
 
18176
+ // ../integration-traffic/src/browser-agents.ts
18177
+ var RESOURCE_QUERY_PARAMETERS = ["_rsc", "_data", "section_id", "sections", "wc-ajax"];
18178
+ var DOCUMENT_FILE = /\.(?:pdf|docx?|xlsx?|pptx?|od[pst]|rtf|csv|tsv|txt|epub|mobi|zip|html?)$/;
18179
+ var RESOURCE_FOLDERS = /* @__PURE__ */ new Set([
18180
+ "_next",
18181
+ "_nuxt",
18182
+ "_ipx",
18183
+ "_astro",
18184
+ "_framework",
18185
+ "_vercel",
18186
+ "cdn-cgi",
18187
+ ".netlify",
18188
+ "wp-content",
18189
+ "wp-includes",
18190
+ "wp-json"
18191
+ ]);
18192
+ var RESOURCE_ENDPOINTS = ["/_image", "/wp-admin/admin-ajax.php"];
18193
+ var API_ROOT_FOLDERS = /* @__PURE__ */ new Set(["api", "graphql"]);
18194
+ var AZURE_AUTH_CALLS = /* @__PURE__ */ new Set(["/.auth/me", "/.auth/refresh"]);
18195
+ var ROUTE_DATA_FILE = /\.data$/;
18196
+ var VERCEL_BEACON_FOLDERS = /* @__PURE__ */ new Set(["insights", "speed-insights"]);
18197
+ var WOOCOMMERCE_BACKGROUND_CALLS = /* @__PURE__ */ new Set(["get_refreshed_fragments", "update_order_review", "get_variation"]);
18198
+ function comparablePath(path) {
18199
+ const lower = pathWithoutQuery(path).toLowerCase();
18200
+ return lower.length > 1 ? lower.replace(/\/+$/, "") || "/" : lower;
18201
+ }
18202
+ function isBackgroundWrite(path, segments, query) {
18203
+ for (const [index, segment] of segments.entries()) {
18204
+ if (segment === "cdn-cgi") return true;
18205
+ if (segment === "_vercel" && VERCEL_BEACON_FOLDERS.has(segments[index + 1] ?? "")) return true;
18206
+ }
18207
+ const wooCommerceCall = query?.get("wc-ajax");
18208
+ if (wooCommerceCall && WOOCOMMERCE_BACKGROUND_CALLS.has(wooCommerceCall)) return true;
18209
+ return path.endsWith("/wp-admin/admin-ajax.php") && query?.get("action") === "heartbeat";
18210
+ }
18211
+ function isResourcePath(path, segments) {
18212
+ if (AZURE_AUTH_CALLS.has(path) || API_ROOT_FOLDERS.has(segments[0] ?? "")) return true;
18213
+ if (segments.some((segment) => RESOURCE_FOLDERS.has(segment))) return true;
18214
+ if (RESOURCE_ENDPOINTS.some((endpoint) => path.endsWith(endpoint))) return true;
18215
+ return ROUTE_DATA_FILE.test(path) || classifyTrafficPath(path) === TrafficPathClasses.asset;
18216
+ }
18217
+ function browserAgentRequestKind(request) {
18218
+ const method = request.method?.trim().toUpperCase() || "GET";
18219
+ if (method === "HEAD" || method === "OPTIONS") return BrowserAgentRequestKinds.resource;
18220
+ const path = comparablePath(request.path);
18221
+ const segments = path.split("/").filter(Boolean);
18222
+ const query = request.queryString ? new URLSearchParams(request.queryString) : null;
18223
+ if (method !== "GET") {
18224
+ return isBackgroundWrite(path, segments, query) ? BrowserAgentRequestKinds.resource : BrowserAgentRequestKinds.action;
18225
+ }
18226
+ if (query && RESOURCE_QUERY_PARAMETERS.some((name) => query.has(name))) return BrowserAgentRequestKinds.resource;
18227
+ if (DOCUMENT_FILE.test(path)) return BrowserAgentRequestKinds.page;
18228
+ return isResourcePath(path, segments) ? BrowserAgentRequestKinds.resource : BrowserAgentRequestKinds.page;
18229
+ }
18230
+ var BROWSER_AGENT_REQUEST_RULES_VERSION = 1;
18231
+ function countsAsAiUserFetchHit(fetch, request) {
18232
+ return !fetch.browser || browserAgentRequestKind(request) === BrowserAgentRequestKinds.page;
18233
+ }
18234
+ function keepsBrowserAgentJourneyRequest(request) {
18235
+ if (request.status !== null && request.status >= 400) return true;
18236
+ return browserAgentRequestKind(request) !== BrowserAgentRequestKinds.resource;
18237
+ }
18238
+ var BROWSER_AGENT_BOT_IDS = DEFAULT_AI_CRAWLER_RULES.filter((rule) => rule.browser === true).map((rule) => rule.id);
18239
+ var BROWSER_AGENT_BOT_ID_SET = new Set(BROWSER_AGENT_BOT_IDS);
18240
+ function isBrowserAgentId(botId) {
18241
+ return BROWSER_AGENT_BOT_ID_SET.has(botId);
18242
+ }
18243
+
18091
18244
  // ../integration-traffic/src/journey.ts
18092
18245
  var JOURNEY_RULES_VERSION = 2;
18093
18246
  var ASSET_EXTENSION_PATTERN = /\.(?:avif|bmp|css|gif|ico|jpe?g|js|map|mjs|mp3|mp4|otf|png|svg|ttf|txt|webm|webmanifest|webp|woff2?|xml)$/i;
@@ -18763,6 +18916,7 @@ function buildTrafficProbeReport(events, options = {}) {
18763
18916
  let crawlerHits = 0;
18764
18917
  let aiUserFetchHits = 0;
18765
18918
  let aiUserFetchLikelyFakeHits = 0;
18919
+ let aiUserFetchBrowserNonPageHits = 0;
18766
18920
  let aiReferralHits = 0;
18767
18921
  let aiReferralPaidSessions = 0;
18768
18922
  let aiReferralOrganicSessions = 0;
@@ -18815,6 +18969,8 @@ function buildTrafficProbeReport(events, options = {}) {
18815
18969
  const existing = likelyFakeBuckets.get(key);
18816
18970
  if (existing) existing.hits += 1;
18817
18971
  else likelyFakeBuckets.set(key, { tsHour, botId: aiUserFetch.botId, operator: aiUserFetch.operator, reason, hits: 1 });
18972
+ } else if (aiUserFetch && !countsAsAiUserFetchHit(aiUserFetch, event)) {
18973
+ aiUserFetchBrowserNonPageHits += 1;
18818
18974
  } else if (aiUserFetch) {
18819
18975
  aiUserFetchHits += 1;
18820
18976
  const key = [
@@ -18892,7 +19048,9 @@ function buildTrafficProbeReport(events, options = {}) {
18892
19048
  userAgent: event.userAgent,
18893
19049
  referer: event.referer,
18894
19050
  crawler,
18895
- aiUserFetch,
19051
+ // A browser agent's sample says what its request was: only its page
19052
+ // loads count, and samples keep no method or query to tell them apart.
19053
+ aiUserFetch: aiUserFetch?.browser ? { ...aiUserFetch, requestKind: browserAgentRequestKind(event) } : aiUserFetch,
18896
19054
  aiReferral
18897
19055
  });
18898
19056
  if (samples.length > sampleLimit) samples.shift();
@@ -18939,6 +19097,7 @@ function buildTrafficProbeReport(events, options = {}) {
18939
19097
  crawlerHits,
18940
19098
  aiUserFetchHits,
18941
19099
  aiUserFetchLikelyFakeHits,
19100
+ aiUserFetchBrowserNonPageHits,
18942
19101
  aiReferralSessions: aiReferralSessions.size,
18943
19102
  aiReferralPaidSessions,
18944
19103
  aiReferralOrganicSessions,
@@ -18984,8 +19143,12 @@ function extractAgentJourneyRequests(events, options = {}) {
18984
19143
  if (!agent || agent.trust === AgentTrustLevels.likely_fake) continue;
18985
19144
  const timestamp = Date.parse(event.observedAt);
18986
19145
  if (!Number.isFinite(timestamp)) continue;
18987
- const path = event.path.split(/[?#]/)[0] || "/";
18988
- if (classifyTrafficPath(path) === TrafficPathClasses.asset && !/\.json\/?$/i.test(path)) continue;
19146
+ const path = pathWithoutQuery(event.path);
19147
+ if (agent.browser) {
19148
+ if (!keepsBrowserAgentJourneyRequest(event)) continue;
19149
+ } else if (classifyTrafficPath(path) === TrafficPathClasses.asset && !/\.json\/?$/i.test(path)) {
19150
+ continue;
19151
+ }
18989
19152
  const maskedPath = maskJourneyPath(path);
18990
19153
  const retainedPath = maskedPath.length > 512 ? `${maskedPath.slice(0, 505)}/:token` : maskedPath;
18991
19154
  requests.push({
@@ -19057,7 +19220,7 @@ function canonicalizeCloudflareJson(value) {
19057
19220
 
19058
19221
  // ../integration-cloudflare-worker/src/script.ts
19059
19222
  var DEFAULT_BOT_LIST = {
19060
- version: "2026-11-01",
19223
+ version: "2026-11-11",
19061
19224
  uaKeywords: [
19062
19225
  ...DEFAULT_AI_CRAWLER_USER_AGENT_SUBSTRINGS,
19063
19226
  // Preserve a small forward-looking machine-traffic net. The shared
@@ -19612,6 +19775,7 @@ function verifyRequestSignature(opts) {
19612
19775
  export {
19613
19776
  AGENT_TRUST_RULES_VERSION,
19614
19777
  isScannerPath,
19778
+ rulesShareVerificationList,
19615
19779
  SELF_TRAFFIC_USER_AGENT_PATTERNS,
19616
19780
  DEFAULT_AI_CRAWLER_RULES,
19617
19781
  DEFAULT_AI_REFERRER_RULES,
@@ -19619,6 +19783,12 @@ export {
19619
19783
  classifyCrawler,
19620
19784
  classifyAiUserFetch,
19621
19785
  classifyAiReferral,
19786
+ browserAgentRequestKind,
19787
+ BROWSER_AGENT_REQUEST_RULES_VERSION,
19788
+ countsAsAiUserFetchHit,
19789
+ keepsBrowserAgentJourneyRequest,
19790
+ BROWSER_AGENT_BOT_IDS,
19791
+ isBrowserAgentId,
19622
19792
  JOURNEY_RULES_VERSION,
19623
19793
  extractJourneyRequests,
19624
19794
  sessionizeJourneyRequests,