@canonry/canonry 7.102.0 → 7.104.0

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-KR2NSPSE.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-DP3FE2OW.js → chunk-2QWG6HWM.js} +5 -5
  46. package/dist/{chunk-S7ZOYNW3.js → chunk-2VNQKUCW.js} +2 -2
  47. package/dist/{chunk-N7773GJW.js → chunk-3V5Y2XTA.js} +1 -1
  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-QK4IICRM.js → chunk-6AW6ONTF.js} +2 -2
  51. package/dist/{chunk-G4ODBZO7.js → chunk-7UQZCDYK.js} +1 -1
  52. package/dist/{chunk-7JJCFGL2.js → chunk-7VKVGR6X.js} +3 -3
  53. package/dist/{chunk-7I2NJ4BH.js → chunk-BYYP43Q3.js} +128 -1
  54. package/dist/{chunk-N4VEG6GB.js → chunk-C6RWAAF6.js} +4 -4
  55. package/dist/{chunk-AENOUFTF.js → chunk-CCHYRLX4.js} +2 -2
  56. package/dist/{chunk-O5AIKUW3.js → chunk-CJ55MGWI.js} +1 -1
  57. package/dist/{chunk-WNR3YQAD.js → chunk-D76TB5JS.js} +1 -1
  58. package/dist/{chunk-GLKR6C2L.js → chunk-DLZCOJCY.js} +1 -1
  59. package/dist/{chunk-66EXWVMN.js → chunk-FCUUJO3Z.js} +2 -2
  60. package/dist/{chunk-UX6XWC4F.js → chunk-FUERP5PU.js} +567 -185
  61. package/dist/{chunk-RXWD25P7.js → chunk-HLM3GYK4.js} +1 -1
  62. package/dist/{chunk-4CF5536B.js → chunk-HPFT4IKN.js} +1 -1
  63. package/dist/{chunk-AG6BTE7R.js → chunk-HTGJSXCR.js} +5 -5
  64. package/dist/{chunk-CZOGOHIN.js → chunk-K32GU473.js} +632 -462
  65. package/dist/{chunk-BDLHLE2F.js → chunk-LCZZACLE.js} +3 -3
  66. package/dist/{chunk-NAJ3ZYZ2.js → chunk-MDRAKMCV.js} +3 -3
  67. package/dist/{chunk-DRNBMKR5.js → chunk-MT2LENZA.js} +6 -6
  68. package/dist/{chunk-VH424YVI.js → chunk-PL76V2DY.js} +1587 -1516
  69. package/dist/{chunk-FHK6M4RK.js → chunk-QRR5ZW22.js} +3 -3
  70. package/dist/{chunk-ZIKPEZ3K.js → chunk-R4VAGCFW.js} +21 -21
  71. package/dist/{chunk-BG6TVNA6.js → chunk-RBAK7RQX.js} +366 -366
  72. package/dist/{chunk-YTR2S4MU.js → chunk-SFLSZXLO.js} +4 -4
  73. package/dist/{chunk-2YLTELT2.js → chunk-SZ64N26K.js} +1 -1
  74. package/dist/{chunk-ONHBQYSA.js → chunk-T3G44DHS.js} +46 -31
  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-RJX2UC5L.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-4GWISEMI.js} +6 -6
  87. package/dist/{demo-3XDVCUT5.js → demo-63JTCWN5.js} +1 -1
  88. package/dist/{demo-server-7ZJWSGE2.js → demo-server-QA5OSH45.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 +30 -11
  101. package/dist/index.js +25 -25
  102. package/dist/{init-W4LWSMCC.js → init-CLSFH5OL.js} +12 -12
  103. package/dist/{insights-HNJR7UEC.js → insights-TPNHIVNH.js} +3 -3
  104. package/dist/intelligence-service-TTDFQ2TB.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-WDUJ36KJ.js} +26 -26
  124. package/dist/{session-LRR2N6IP.js → session-M66S3VTK.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-W63YOE6T.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
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  runWithUsageTags
3
- } from "./chunk-S7ZOYNW3.js";
3
+ } from "./chunk-2VNQKUCW.js";
4
4
  import {
5
5
  CanonryMcpToolNames,
6
6
  DEPRECATED_MCP_TOOL_ALIAS_NAMES,
7
7
  canonryMcpTools
8
- } from "./chunk-AG6BTE7R.js";
8
+ } from "./chunk-HTGJSXCR.js";
9
9
  import {
10
10
  CliError
11
11
  } from "./chunk-HGMYEDAQ.js";
12
12
  import {
13
13
  buildOpenApiDocument
14
- } from "./chunk-VH424YVI.js";
14
+ } from "./chunk-PL76V2DY.js";
15
15
  import {
16
16
  DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
17
17
  MeasurementPortfolioLists,
@@ -24,7 +24,7 @@ import {
24
24
  seoDatasetWithoutVendor,
25
25
  seoProviderSchema,
26
26
  truncateUtf16
27
- } from "./chunk-NHBXQWE3.js";
27
+ } from "./chunk-WT22Z3I7.js";
28
28
 
29
29
  // src/agent/tools.ts
30
30
  import { Type as Type2 } from "@earendil-works/pi-ai";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  API_PROVIDER_NAMES,
3
3
  ProviderNames
4
- } from "./chunk-NHBXQWE3.js";
4
+ } from "./chunk-WT22Z3I7.js";
5
5
 
6
6
  // src/provider-registration.ts
7
7
  function isApiProviderRegistrable(name, entry) {
@@ -8,23 +8,24 @@ import {
8
8
  reparseStoredResult4,
9
9
  reparseStoredResult5,
10
10
  resolveStoredApiResponse
11
- } from "./chunk-UX6XWC4F.js";
11
+ } from "./chunk-FUERP5PU.js";
12
12
  import {
13
13
  loadConfig
14
- } from "./chunk-4CF5536B.js";
14
+ } from "./chunk-HPFT4IKN.js";
15
15
  import {
16
+ CliError,
16
17
  isMachineFormat
17
18
  } from "./chunk-HGMYEDAQ.js";
18
19
  import {
19
20
  determineCitationState
20
- } from "./chunk-O5AIKUW3.js";
21
+ } from "./chunk-CJ55MGWI.js";
21
22
  import {
22
23
  backfillProjectAnswerMentions,
23
24
  competitorIdentityColumns,
24
25
  createRunCompetitorResolver,
25
26
  readMarketCompetitorNames,
26
27
  refreshSnapshotMentionIdentity
27
- } from "./chunk-VH424YVI.js";
28
+ } from "./chunk-PL76V2DY.js";
28
29
  import {
29
30
  RawEventSampleEventTypes,
30
31
  auditLog,
@@ -38,7 +39,7 @@ import {
38
39
  querySnapshots,
39
40
  rawEventSamples,
40
41
  runs
41
- } from "./chunk-7I2NJ4BH.js";
42
+ } from "./chunk-BYYP43Q3.js";
42
43
  import {
43
44
  ProviderNames,
44
45
  RetrievalContracts,
@@ -51,7 +52,7 @@ import {
51
52
  extractRecommendedCompetitors,
52
53
  normalizeUrlPath,
53
54
  openRouterRouteModel
54
- } from "./chunk-NHBXQWE3.js";
55
+ } from "./chunk-WT22Z3I7.js";
55
56
 
56
57
  // src/commands/backfill.ts
57
58
  import { setImmediate as yieldToEventLoop } from "timers/promises";
@@ -429,7 +430,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
429
430
  }
430
431
  }
431
432
  async function backfillInsightsCommand(project, opts) {
432
- const { IntelligenceService } = await import("./intelligence-service-SWQABQ3X.js");
433
+ const { IntelligenceService } = await import("./intelligence-service-TTDFQ2TB.js");
433
434
  const config = loadConfig();
434
435
  const db = createClient(config.database);
435
436
  migrate(db);
@@ -777,53 +778,60 @@ async function backfillTrafficClassificationCommand(opts) {
777
778
  const projectFilter = opts?.project?.trim();
778
779
  const isDryRun = opts?.dryRun === true;
779
780
  const isJson = isMachineFormat(opts?.format);
780
- const scopedProjects = projectFilter ? db.select().from(projects).where(eq(projects.name, projectFilter)).all() : db.select().from(projects).all();
781
- if (scopedProjects.length === 0) {
782
- if (projectFilter && !isJson) {
783
- process.stderr.write(`No project named "${projectFilter}".
784
- `);
781
+ let projectIds;
782
+ if (projectFilter) {
783
+ const project = db.select({ id: projects.id }).from(projects).where(eq(projects.name, projectFilter)).get();
784
+ if (!project) {
785
+ throw new CliError({
786
+ code: "NOT_FOUND",
787
+ message: `Project "${projectFilter}" not found`,
788
+ displayMessage: `Error: no project named "${projectFilter}".`,
789
+ details: { project: projectFilter }
790
+ });
785
791
  }
786
- if (isJson) console.log(JSON.stringify({ project: projectFilter ?? null, examined: 0, reclassified: 0 }));
787
- return;
792
+ projectIds = [project.id];
788
793
  }
789
794
  if (!isJson) {
790
795
  const mode = isDryRun ? " [DRY RUN \u2014 no writes]" : "";
791
796
  const scope = projectFilter ? `"${projectFilter}"` : "all projects";
792
- process.stderr.write(`Re-classifying stored unknown traffic for ${scope}${mode}...
797
+ process.stderr.write(`Re-classifying stored traffic under today's rules for ${scope}${mode}...
793
798
  `);
794
799
  }
795
- const projectIds = scopedProjects.map((p) => p.id);
796
800
  const countUnknown = () => Number(db.select({ n: sql`count(*)` }).from(rawEventSamples).where(and(
797
801
  eq(rawEventSamples.eventType, RawEventSampleEventTypes.unknown),
798
- inArray(rawEventSamples.projectId, projectIds)
802
+ projectIds ? inArray(rawEventSamples.projectId, projectIds) : void 0
799
803
  )).get()?.n ?? 0);
800
804
  const unknownBefore = countUnknown();
801
- const stored = await reclassifyStoredTraffic(db, { projectIds, dryRun: isDryRun });
802
- const byBot = { ...stored.samples.byBot };
803
- for (const [bot, hits] of Object.entries(stored.unrecognized.byBot)) byBot[bot] = (byBot[bot] ?? 0) + hits;
805
+ const stored = await reclassifyStoredTraffic(db, { projectIds, dryRun: isDryRun, allowVerificationLoss: true });
806
+ const { samples, dryRun, ...sections } = stored;
807
+ const byBot = { ...samples.byBot };
808
+ for (const moved of [sections.unrecognized.byBot, sections.crawlers.byBot]) {
809
+ for (const [bot, hits] of Object.entries(moved)) byBot[bot] = (byBot[bot] ?? 0) + hits;
810
+ }
804
811
  emitTrafficClassificationReport({
805
812
  project: projectFilter ?? null,
806
- examined: stored.samples.examined,
807
- reclassified: stored.samples.reclassified,
813
+ examined: samples.examined,
814
+ reclassified: samples.reclassified,
808
815
  unknownBefore,
809
- unknownAfter: isDryRun ? unknownBefore - stored.samples.reclassified - stored.samples.removed : countUnknown(),
810
- samplesCounted: stored.samples.counted,
811
- samplesRemoved: stored.samples.removed,
812
- dryRun: isDryRun,
816
+ // A dry run writes nothing, so its count after is what the pass found.
817
+ unknownAfter: dryRun ? unknownBefore - samples.reclassified - samples.removed + sections.crawlers.samplesNowUnknown : countUnknown(),
818
+ samplesCounted: samples.counted,
819
+ samplesRemoved: samples.removed,
820
+ dryRun,
813
821
  byBot,
814
- unrecognized: stored.unrecognized,
815
- agentHits: stored.agentHits,
816
- agentRequests: stored.agentRequests,
817
- journeys: stored.journeys,
818
- journeyMerges: stored.journeyMerges
822
+ ...sections
819
823
  }, isJson);
820
824
  }
825
+ function formatHitsByBot(byBot) {
826
+ return Object.entries(byBot).sort(([, a], [, b]) => b - a).map(([bot, hits]) => `${bot} ${hits}`).join(", ");
827
+ }
821
828
  function emitTrafficClassificationReport(result, isJson) {
822
829
  if (isJson) {
823
830
  console.log(JSON.stringify(result, null, 2));
824
831
  return;
825
832
  }
826
833
  const verb = result.dryRun ? "Would re-classify" : "Re-classified";
834
+ const indent = " ";
827
835
  console.log(`
828
836
  Traffic classification ${result.dryRun ? "preview" : "recovery"} complete.`);
829
837
  console.log(` Examined unknowns: ${result.examined}`);
@@ -831,10 +839,17 @@ Traffic classification ${result.dryRun ? "preview" : "recovery"} complete.`);
831
839
  console.log(` Unknown before: ${result.unknownBefore}`);
832
840
  console.log(` Unknown after: ${result.unknownAfter}`);
833
841
  console.log(` Unrecognized rows: ${result.unrecognized.examined} examined, ${result.unrecognized.moved} moved to a bot (${result.unrecognized.movedHits} hits), ${result.unrecognized.renamed} renamed, ${result.unrecognized.removed} removed`);
842
+ const { crawlers } = result;
843
+ console.log(` Crawler rows: ${crawlers.examined} examined; ${crawlers.moved} moved to the crawler their user agent names today (${crawlers.movedHits} hits), ${crawlers.toUserFetch} to AI user fetch (${crawlers.toUserFetchHits} hits), ${crawlers.toUnrecognized} back to unrecognized agents (${crawlers.toUnrecognizedHits} hits), ${crawlers.removed} of Canonry's own tools removed (${crawlers.removedHits} hits)`);
844
+ if (Object.keys(crawlers.byBot).length > 0) console.log(`${indent}Hits moved to: ${formatHitsByBot(crawlers.byBot)}`);
845
+ console.log(`${indent}${crawlers.unverifiedHits} verified hits no longer verified; ${crawlers.samplesRelabeled} samples relabeled (${crawlers.samplesNowUnknown} now unknown), ${crawlers.samplesRemoved} removed`);
846
+ if (crawlers.unknownBot > 0) console.log(`${indent}${crawlers.unknownBot} rows under a bot this version has no rule for (a newer release wrote them) left as they are`);
834
847
  console.log(` Fake agent hits: ${result.agentHits.moved} hourly rows moved to likely fake (${result.agentHits.movedHits} hits)`);
835
848
  console.log(` Agent requests: ${result.agentRequests.removed} removed (${result.agentRequests.probes} asked for a scanner path)`);
849
+ console.log(` Browser agent files: ${result.agentRequests.pageResources} stored requests its pages made by themselves removed`);
836
850
  console.log(` Journeys: ${result.journeys.visitorsRemoved} visitors and ${result.journeys.visitsRemoved} visits removed, ${result.journeys.visitsRelanded} visits now start at a different page`);
837
851
  console.log(` Split visitors: ${result.journeyMerges.visitorsMerged} joined to the same person's first visitor, seen from another IP (${result.journeyMerges.visitsJoined} visits merged)`);
852
+ if (result.orphans > 0) console.log(` Orphaned rows: ${result.orphans} left as they are: their project or traffic source no longer exists`);
838
853
  if (Object.keys(result.byBot).length > 0) {
839
854
  console.log(` By bot:`);
840
855
  const sorted = Object.entries(result.byBot).sort(([, a], [, b]) => b - a);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  USAGE_TELEMETRY_HEADERS,
3
3
  redactLogString
4
- } from "./chunk-NHBXQWE3.js";
4
+ } from "./chunk-WT22Z3I7.js";
5
5
 
6
6
  // ../api-routes/src/request-context.ts
7
7
  import { AsyncLocalStorage } from "async_hooks";
@@ -2,10 +2,10 @@ import {
2
2
  SNAPSHOT_CELL_LEGEND,
3
3
  citationGlyph,
4
4
  mentionGlyph
5
- } from "./chunk-C2YVADFC.js";
5
+ } from "./chunk-2AECECUY.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-S7ZOYNW3.js";
8
+ } from "./chunk-2VNQKUCW.js";
9
9
  import {
10
10
  emitJsonl
11
11
  } from "./chunk-Z7IUAJOF.js";
@@ -23,7 +23,7 @@ import {
23
23
  formatMicros,
24
24
  formatRunErrorOneLine,
25
25
  resolveProviderInput
26
- } from "./chunk-NHBXQWE3.js";
26
+ } from "./chunk-WT22Z3I7.js";
27
27
 
28
28
  // src/commands/run.ts
29
29
  function getClient() {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getRequestContext
3
- } from "./chunk-EXPBZFN4.js";
3
+ } from "./chunk-TCXITSDO.js";
4
4
  import {
5
5
  diagnosticIdentity,
6
6
  redactLogString,
7
7
  redactLogValue
8
- } from "./chunk-NHBXQWE3.js";
8
+ } from "./chunk-WT22Z3I7.js";
9
9
 
10
10
  // ../api-routes/src/runtime-logger.ts
11
11
  import { format } from "util";
@@ -19978,6 +19978,8 @@ var agentTrustReasonSchema = z60.enum([
19978
19978
  "scanner-burst"
19979
19979
  ]);
19980
19980
  var AgentTrustReasons = agentTrustReasonSchema.enum;
19981
+ var browserAgentRequestKindSchema = z60.enum(["page", "action", "resource"]);
19982
+ var BrowserAgentRequestKinds = browserAgentRequestKindSchema.enum;
19981
19983
  var trafficVerificationManifestSchema = z60.object({
19982
19984
  /** Stable identity: source + publisher version + canonical prefix-content digest. */
19983
19985
  id: z60.string().min(1),
@@ -20198,7 +20200,14 @@ var cloudflareWorkerIngestResponseSchema = z60.object({
20198
20200
  crawlerBucketRows: z60.number().int(),
20199
20201
  aiUserFetchBucketRows: z60.number().int(),
20200
20202
  aiReferralBucketRows: z60.number().int(),
20201
- sampleRows: z60.number().int()
20203
+ sampleRows: z60.number().int(),
20204
+ /**
20205
+ * Requests from browser agents (Google-Agent, Claude-Agent) other than page
20206
+ * loads: the files, data calls, prefetches and beacons their pages made, and
20207
+ * their actions (form posts, checkouts, API writes). No bucket holds them,
20208
+ * so the push reports them as a sync does.
20209
+ */
20210
+ aiUserFetchBrowserNonPageHits: z60.number().int().nonnegative()
20202
20211
  });
20203
20212
  var trafficSyncResponseSchema = z60.object({
20204
20213
  sourceId: z60.string(),
@@ -20211,6 +20220,13 @@ var trafficSyncResponseSchema = z60.object({
20211
20220
  aiUserFetchHits: z60.number().int().nonnegative(),
20212
20221
  /** Requests that claimed a user-triggered agent but were judged likely fake; never in `aiUserFetchHits`. */
20213
20222
  aiUserFetchLikelyFakeHits: z60.number().int().nonnegative(),
20223
+ /**
20224
+ * Requests from browser agents (Google-Agent, Claude-Agent) other than page
20225
+ * loads: the files, data calls, prefetches and beacons their pages made, and
20226
+ * their actions (form posts, checkouts, API writes). Never in
20227
+ * `aiUserFetchHits`. Optional so a newer client reads an older API.
20228
+ */
20229
+ aiUserFetchBrowserNonPageHits: z60.number().int().nonnegative().optional(),
20214
20230
  aiReferralHits: z60.number().int().nonnegative(),
20215
20231
  unknownHits: z60.number().int().nonnegative(),
20216
20232
  crawlerBucketRows: z60.number().int().nonnegative(),
@@ -20440,6 +20456,18 @@ var trafficEventsResponseSchema = z60.object({
20440
20456
  * or after it. Optional so a newer client reads an older API.
20441
20457
  */
20442
20458
  aiReferralCountingChangedAt: z60.string().nullable().optional(),
20459
+ /**
20460
+ * The end of the last hour, on the selected sources, whose hosted browser
20461
+ * agent (Google-Agent, Claude-Agent) AI user fetches were counted under
20462
+ * older rules, or null when none holds such an hour. From it on, those
20463
+ * agents count their page loads only. Earlier hours were counted
20464
+ * differently and can read high (every file, data call and beacon counted)
20465
+ * or low (whole visits judged likely fake); they were not recounted
20466
+ * (stored hourly rows keep no method or query). Not bound to the window.
20467
+ * `trends.aiUserFetchHits` is fitted only over buckets that begin at or
20468
+ * after it. Optional so a newer client reads an older API.
20469
+ */
20470
+ aiUserFetchCountingChangedAt: z60.string().nullable().optional(),
20443
20471
  /**
20444
20472
  * Buckets holding only part of their period: the one recording began
20445
20473
  * inside, and the newest while it is still running. Trend fits leave them
@@ -20552,7 +20580,19 @@ var sampleUserFetchSchema = z60.object({
20552
20580
  });
20553
20581
  var trafficSampleClassifierSchema = z60.object({
20554
20582
  crawler: sampleUserFetchSchema.extend({ purpose: z60.string().nullish() }).nullable().default(null),
20555
- aiUserFetch: sampleUserFetchSchema.nullable().default(null),
20583
+ aiUserFetch: sampleUserFetchSchema.extend({
20584
+ /** Whether the agent is a hosted browser (Google-Agent, Claude-Agent); absent on samples stored before browsers were told apart. */
20585
+ browser: z60.boolean().nullish().catch(null),
20586
+ /**
20587
+ * A browser agent's request kind, read at ingest from its method, path and
20588
+ * query, or from the path alone when the stored-traffic pass relabeled the
20589
+ * sample. Unless the sample is likely fake, only a `page` sample was
20590
+ * counted as an AI user fetch hit; ingest counted `action` and `resource`
20591
+ * requests only in the write's `aiUserFetchBrowserNonPageHits`. Absent for
20592
+ * link fetchers and on samples stored before it was recorded.
20593
+ */
20594
+ requestKind: browserAgentRequestKindSchema.nullish().catch(null)
20595
+ }).nullable().default(null),
20556
20596
  aiReferral: z60.object({
20557
20597
  operator: z60.string().nullish(),
20558
20598
  product: z60.string().nullish(),
@@ -22615,6 +22655,17 @@ var trafficActivitySummarySchema = z69.object({
22615
22655
  * before it. Not window-bound. Optional so a newer client reads an older API.
22616
22656
  */
22617
22657
  aiReferralCountingChangedAt: z69.string().nullable().optional(),
22658
+ /**
22659
+ * The end of the last hour, on any of the project's sources, whose hosted
22660
+ * browser agent (Google-Agent, Claude-Agent) AI user fetches were counted
22661
+ * under older rules, or null when none holds such an hour. From it on, those
22662
+ * agents count their page loads only. Earlier hours were counted differently
22663
+ * and can read high (every file, data call and beacon counted) or low (whole
22664
+ * visits judged likely fake); they were not recounted, so the AI user fetch
22665
+ * delta is null while the prior window starts before it. Not window-bound.
22666
+ * Optional so a newer client reads an older API.
22667
+ */
22668
+ aiUserFetchCountingChangedAt: z69.string().nullable().optional(),
22618
22669
  hasData: z69.boolean().describe("True when the selected or prior window has stored crawler, user-fetch, countable referral or operator evidence, or the selected window has referral redirects. False means no qualifying stored evidence; it can occur with no, paused, errored or never-synced ingestion and out-of-window observations. It does not establish measured zero traffic or source health."),
22619
22670
  /** Verified crawler hits during the selected period and the equal preceding period. */
22620
22671
  verifiedCrawlerHits: trafficActivityCountSchema,
@@ -22626,7 +22677,9 @@ var trafficActivitySummarySchema = z69.object({
22626
22677
  * `unverifiedCrawlerHits` — those measure bulk crawl; this measures human
22627
22678
  * users asking an AI to read a URL. Counts verified + unverified together
22628
22679
  * because the operational question for user-fetch is "is this happening?"
22629
- * not "is this a confirmed bot identity?"
22680
+ * not "is this a confirmed bot identity?" A hosted browser agent
22681
+ * (Google-Agent, Claude-Agent) counts its page loads only, never the files,
22682
+ * data calls and beacons its pages made (see `aiUserFetchCountingChangedAt`).
22630
22683
  */
22631
22684
  aiUserFetchHits: trafficActivityCountSchema,
22632
22685
  /**
@@ -27104,7 +27157,8 @@ var ASSET_EXTENSIONS = /* @__PURE__ */ new Set([
27104
27157
  "ogg",
27105
27158
  "flac",
27106
27159
  "m4a",
27107
- "wasm"
27160
+ "wasm",
27161
+ "webmanifest"
27108
27162
  ]);
27109
27163
  var DOCUMENT_EXTENSIONS = /* @__PURE__ */ new Set([
27110
27164
  "html",
@@ -27159,6 +27213,9 @@ var DOWNLOAD_EXTENSIONS = /* @__PURE__ */ new Set([
27159
27213
  ]);
27160
27214
  var SITEMAP_BASENAME = /^sitemap(?:[-_]index)?$/;
27161
27215
  var UNRECORDED_TRAFFIC_PATH = "(path not recorded)";
27216
+ function pathWithoutQuery(path) {
27217
+ return path.split(/[?#]/)[0] || "/";
27218
+ }
27162
27219
  function classifyTrafficPath(pathNormalized) {
27163
27220
  const raw = (pathNormalized ?? "").trim();
27164
27221
  if (!raw || raw === UNRECORDED_TRAFFIC_PATH) return TrafficPathClasses.other;
@@ -29834,6 +29891,7 @@ export {
29834
29891
  VerificationStatuses,
29835
29892
  AgentTrustLevels,
29836
29893
  AgentTrustReasons,
29894
+ BrowserAgentRequestKinds,
29837
29895
  trafficSourceDtoSchema,
29838
29896
  trafficConnectCloudRunRequestSchema,
29839
29897
  trafficConnectWordpressRequestSchema,
@@ -29895,6 +29953,7 @@ export {
29895
29953
  agentJourneyDetailResponseSchema,
29896
29954
  TrafficPathClasses,
29897
29955
  UNRECORDED_TRAFFIC_PATH,
29956
+ pathWithoutQuery,
29898
29957
  classifyTrafficPath,
29899
29958
  segmentCrawlerHits,
29900
29959
  sumInfraHits,
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  loadConfigRaw,
7
7
  saveConfigPatch
8
- } from "./chunk-4CF5536B.js";
8
+ } from "./chunk-HPFT4IKN.js";
9
9
  import {
10
10
  CANONRY_NPM_PACKAGE_URL,
11
11
  compareSemver,
@@ -18,7 +18,7 @@ import {
18
18
  updateCheckEnvOptOut,
19
19
  upgradeCaveatFor,
20
20
  upgradeCommandFor
21
- } from "./chunk-NHBXQWE3.js";
21
+ } from "./chunk-WT22Z3I7.js";
22
22
 
23
23
  // src/runtime-context.ts
24
24
  function cliRuntimeContext(env = process.env, stdio = process) {
@@ -3,14 +3,14 @@ import {
3
3
  citationGlyph,
4
4
  citedBase,
5
5
  mentionGlyph
6
- } from "./chunk-C2YVADFC.js";
6
+ } from "./chunk-2AECECUY.js";
7
7
  import {
8
8
  createApiClient
9
- } from "./chunk-S7ZOYNW3.js";
10
- import "./chunk-4CF5536B.js";
9
+ } from "./chunk-2VNQKUCW.js";
10
+ import "./chunk-HPFT4IKN.js";
11
11
  import "./chunk-AOJU5LKX.js";
12
12
  import "./chunk-HGMYEDAQ.js";
13
- import "./chunk-NHBXQWE3.js";
13
+ import "./chunk-WT22Z3I7.js";
14
14
  import "./chunk-MLKGABMK.js";
15
15
 
16
16
  // src/commands/citations.ts
@@ -3,11 +3,11 @@ import {
3
3
  buildCliCatalog,
4
4
  printCliCatalog,
5
5
  renderTopLevelHelp
6
- } from "./chunk-7JJCFGL2.js";
7
- import "./chunk-G4ODBZO7.js";
6
+ } from "./chunk-7VKVGR6X.js";
7
+ import "./chunk-7UQZCDYK.js";
8
8
  import "./chunk-Z7IUAJOF.js";
9
9
  import "./chunk-HGMYEDAQ.js";
10
- import "./chunk-NHBXQWE3.js";
10
+ import "./chunk-WT22Z3I7.js";
11
11
  import "./chunk-MLKGABMK.js";
12
12
  export {
13
13
  CLI_ROOT_SUMMARIES,
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  REGISTERED_CLI_COMMANDS
3
- } from "./chunk-BG6TVNA6.js";
3
+ } from "./chunk-RBAK7RQX.js";
4
4
  import "./chunk-6GO5VVAC.js";
5
5
  import "./chunk-VJWDBFSL.js";
6
- import "./chunk-NAJ3ZYZ2.js";
6
+ import "./chunk-MDRAKMCV.js";
7
7
  import "./chunk-TSENU4GG.js";
8
- import "./chunk-S7ZOYNW3.js";
9
- import "./chunk-4CF5536B.js";
10
- import "./chunk-G4ODBZO7.js";
8
+ import "./chunk-2VNQKUCW.js";
9
+ import "./chunk-HPFT4IKN.js";
10
+ import "./chunk-7UQZCDYK.js";
11
11
  import "./chunk-Z7IUAJOF.js";
12
- import "./chunk-WNR3YQAD.js";
12
+ import "./chunk-D76TB5JS.js";
13
13
  import "./chunk-AOJU5LKX.js";
14
14
  import "./chunk-HGMYEDAQ.js";
15
- import "./chunk-NHBXQWE3.js";
15
+ import "./chunk-WT22Z3I7.js";
16
16
  import "./chunk-MLKGABMK.js";
17
17
  export {
18
18
  REGISTERED_CLI_COMMANDS
package/dist/cli.js CHANGED
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node --import tsx
2
2
  import {
3
3
  REGISTERED_CLI_COMMANDS
4
- } from "./chunk-BG6TVNA6.js";
4
+ } from "./chunk-RBAK7RQX.js";
5
5
  import "./chunk-6GO5VVAC.js";
6
6
  import {
7
7
  buildSetupState,
8
8
  runPendingServeHandoff
9
- } from "./chunk-N4VEG6GB.js";
9
+ } from "./chunk-C6RWAAF6.js";
10
10
  import "./chunk-VJWDBFSL.js";
11
- import "./chunk-NAJ3ZYZ2.js";
11
+ import "./chunk-MDRAKMCV.js";
12
12
  import "./chunk-TSENU4GG.js";
13
- import "./chunk-2YLTELT2.js";
13
+ import "./chunk-SZ64N26K.js";
14
14
  import {
15
15
  checkLatestVersionForCli,
16
16
  cliRuntimeContext,
@@ -24,24 +24,24 @@ import {
24
24
  showFirstRunNotice,
25
25
  trackCliCommandFinished,
26
26
  trackEvent
27
- } from "./chunk-IBRABPHA.js";
27
+ } from "./chunk-ZJFLVXDZ.js";
28
28
  import {
29
29
  autoSyncSkills,
30
30
  formatAutoSyncNotice
31
- } from "./chunk-BDLHLE2F.js";
32
- import "./chunk-S7ZOYNW3.js";
33
- import "./chunk-4CF5536B.js";
31
+ } from "./chunk-LCZZACLE.js";
32
+ import "./chunk-2VNQKUCW.js";
33
+ import "./chunk-HPFT4IKN.js";
34
34
  import {
35
35
  accessFilterFromArgs,
36
36
  dispatchRegisteredCommand,
37
37
  printCliCatalog
38
- } from "./chunk-7JJCFGL2.js";
38
+ } from "./chunk-7VKVGR6X.js";
39
39
  import {
40
40
  resolveCliAccess
41
- } from "./chunk-G4ODBZO7.js";
41
+ } from "./chunk-7UQZCDYK.js";
42
42
  import "./chunk-Z7IUAJOF.js";
43
- import "./chunk-RXWD25P7.js";
44
- import "./chunk-WNR3YQAD.js";
43
+ import "./chunk-HLM3GYK4.js";
44
+ import "./chunk-D76TB5JS.js";
45
45
  import "./chunk-AOJU5LKX.js";
46
46
  import {
47
47
  CliError,
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-HGMYEDAQ.js";
53
53
  import {
54
54
  OperationAccesses
55
- } from "./chunk-NHBXQWE3.js";
55
+ } from "./chunk-WT22Z3I7.js";
56
56
  import "./chunk-MLKGABMK.js";
57
57
 
58
58
  // src/cli.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-S7ZOYNW3.js";
4
- import "./chunk-4CF5536B.js";
3
+ } from "./chunk-2VNQKUCW.js";
4
+ import "./chunk-HPFT4IKN.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -21,7 +21,7 @@ import {
21
21
  normalizeCompetitorDomain,
22
22
  shareOfVoiceLabel,
23
23
  shareOfVoiceReason
24
- } from "./chunk-NHBXQWE3.js";
24
+ } from "./chunk-WT22Z3I7.js";
25
25
  import "./chunk-MLKGABMK.js";
26
26
 
27
27
  // src/commands/competitor.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-S7ZOYNW3.js";
4
- import "./chunk-4CF5536B.js";
3
+ } from "./chunk-2VNQKUCW.js";
4
+ import "./chunk-HPFT4IKN.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  contentTargetDismissRequestSchema,
16
16
  formatPercent
17
- } from "./chunk-NHBXQWE3.js";
17
+ } from "./chunk-WT22Z3I7.js";
18
18
  import "./chunk-MLKGABMK.js";
19
19
 
20
20
  // src/commands/content.ts
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  clearDashboardPassword,
3
3
  loadConfigRaw
4
- } from "./chunk-4CF5536B.js";
4
+ } from "./chunk-HPFT4IKN.js";
5
5
  import {
6
6
  isMachineFormat
7
7
  } from "./chunk-HGMYEDAQ.js";
8
8
  import {
9
9
  anyUsersExist
10
- } from "./chunk-VH424YVI.js";
11
- import "./chunk-CZOGOHIN.js";
12
- import "./chunk-EXPBZFN4.js";
10
+ } from "./chunk-PL76V2DY.js";
11
+ import "./chunk-K32GU473.js";
12
+ import "./chunk-TCXITSDO.js";
13
13
  import {
14
14
  createClient
15
- } from "./chunk-7I2NJ4BH.js";
16
- import "./chunk-NHBXQWE3.js";
15
+ } from "./chunk-BYYP43Q3.js";
16
+ import "./chunk-WT22Z3I7.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
19
19
  // src/commands/dashboard.ts
@@ -40,7 +40,7 @@ function parseDemoTrustedProxies(values) {
40
40
  async function demoCommand(options) {
41
41
  const { host, port } = parseDemoListenOptions(options);
42
42
  const trustProxy = parseDemoTrustedProxies(options.trustProxy);
43
- const { createDemoServer } = await import("./demo-server-7ZJWSGE2.js");
43
+ const { createDemoServer } = await import("./demo-server-QA5OSH45.js");
44
44
  const app = await createDemoServer({ trustProxy });
45
45
  let stopping = false;
46
46
  const stop = () => {