@canonry/canonry 7.111.0 → 7.112.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/README.md +1 -1
  2. package/assets/agent-workspace/skills/aero/references/ai-traffic-tracking.md +5 -3
  3. package/assets/agent-workspace/skills/canonry/references/ai-traffic-tracking.md +5 -3
  4. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +3 -0
  5. package/assets/agent-workspace/skills/canonry/references/server-side-traffic.md +4 -0
  6. package/assets/assets/{AccessControls-CJMIWtDc.js → AccessControls-BxtFDXYH.js} +1 -1
  7. package/assets/assets/{AgentSetupPage-DR8w0A9t.js → AgentSetupPage-q1Ku1PAd.js} +1 -1
  8. package/assets/assets/{AuditHistoryPanel-BLF2-WSw.js → AuditHistoryPanel-6EnlABwM.js} +1 -1
  9. package/assets/assets/{BacklinksPage-BCuEkphC.js → BacklinksPage-BaHCJEuK.js} +1 -1
  10. package/assets/assets/{ChartPrimitives-Dxr7b1zf.js → ChartPrimitives-C3lJj3eO.js} +1 -1
  11. package/assets/assets/{HistoryPage-C3UcNB4C.js → HistoryPage-B_NVeDCn.js} +1 -1
  12. package/assets/assets/{MeasurementPropertyPage-BKDciQn4.js → MeasurementPropertyPage-DxCRxoIF.js} +1 -1
  13. package/assets/assets/{ProjectPage-BwkFGMs_.js → ProjectPage-BjGsilZJ.js} +3 -3
  14. package/assets/assets/{RunsPage-BqteFByy.js → RunsPage-9T1OrQw3.js} +1 -1
  15. package/assets/assets/{ServerTrafficSection-CqHfSvux.js → ServerTrafficSection-iUdFKWEc.js} +1 -1
  16. package/assets/assets/{SettingsPage-BORbl6fR.js → SettingsPage-BswQYkkB.js} +1 -1
  17. package/assets/assets/{ToneBadge-Cu25HdVj.js → ToneBadge-CWufDJgM.js} +2 -2
  18. package/assets/assets/{TrafficPage-xqJU4CR4.js → TrafficPage-DN9DxoWm.js} +1 -1
  19. package/assets/assets/{TrafficSourceDetailPage-CVHyU3Za.js → TrafficSourceDetailPage-D6TdTyP-.js} +1 -1
  20. package/assets/assets/{account-context-DR0diETl.js → account-context-CyE8qMvH.js} +1 -1
  21. package/assets/assets/{agent-trust-copy-DX06JhNj.js → agent-trust-copy-CinW-f_8.js} +1 -1
  22. package/assets/assets/{card-BG4pD6H7.js → card-CI9gz2Hb.js} +1 -1
  23. package/assets/assets/{index-CggAFvBE.js → index-DshFRkPM.js} +3 -3
  24. package/assets/assets/{query-client-DiID-orC.js → query-client-BlAtm9zS.js} +1 -1
  25. package/assets/assets/{react-query-gPYNMl8L.js → react-query-DE_LaZkX.js} +1 -1
  26. package/assets/assets/{react-sigma_core.esm.min-CaAAyMHy.js → react-sigma_core.esm.min-CZkN6sL0.js} +1 -1
  27. package/assets/assets/{server-traffic-DGkceMij.js → server-traffic-Ci9JbS2U.js} +1 -1
  28. package/assets/assets/{service-DqtXV3A5.js → service-CiYDMju_.js} +1 -1
  29. package/assets/index.html +8 -8
  30. package/dist/{ads-MA5UHDSK.js → ads-WRMNYPJ7.js} +3 -3
  31. package/dist/{agent-QBDESRUX.js → agent-V4PAGAPZ.js} +7 -7
  32. package/dist/{agent-ask-DVUWIY4T.js → agent-ask-3LAAT4WN.js} +3 -3
  33. package/dist/{agent-conversations-Q7SE57ZA.js → agent-conversations-TVNDZY54.js} +3 -3
  34. package/dist/{agent-journeys-OWNSW6GR.js → agent-journeys-UB7ZGAKP.js} +3 -3
  35. package/dist/{agent-memory-YIVRBUPS.js → agent-memory-RWF2WODB.js} +3 -3
  36. package/dist/{agent-providers-UDILAU6B.js → agent-providers-77A45KZD.js} +3 -3
  37. package/dist/{agent-transcript-KU7ELEEC.js → agent-transcript-K5WZJHJX.js} +3 -3
  38. package/dist/{analytics-WFMI7N5Y.js → analytics-RNSYOGUP.js} +3 -3
  39. package/dist/{apply-2WHADGXD.js → apply-UU6GFYIJ.js} +3 -3
  40. package/dist/{backfill-ZNGMPK7N.js → backfill-DOYPYZJL.js} +10 -10
  41. package/dist/{backlinks-LH77XWHZ.js → backlinks-UKRILGDJ.js} +3 -3
  42. package/dist/{bing-5OCPBLYU.js → bing-P6GTLGIP.js} +3 -3
  43. package/dist/{bootstrap-SCTHOCSM.js → bootstrap-BRXDKCNB.js} +10 -10
  44. package/dist/{cdp-6OEBXRAY.js → cdp-CPGVPWTU.js} +7 -7
  45. package/dist/{chunk-PPOHDQ3T.js → chunk-2LXLJXTG.js} +2 -2
  46. package/dist/{chunk-IU26JPKH.js → chunk-4ALKLWSQ.js} +619 -384
  47. package/dist/{chunk-DR4QNC2H.js → chunk-4PMS7CAF.js} +2 -2
  48. package/dist/{chunk-4EWCBHGV.js → chunk-4WXNCSYL.js} +2 -2
  49. package/dist/{chunk-VXOZUCH4.js → chunk-7IF576RC.js} +5 -5
  50. package/dist/{chunk-QKEBSO3T.js → chunk-AZPWF42S.js} +7 -3
  51. package/dist/{chunk-BZMIVLRX.js → chunk-B27F7C6S.js} +5 -5
  52. package/dist/{chunk-S7TL4SCS.js → chunk-C44S7EE7.js} +4 -4
  53. package/dist/{chunk-YQ5NFMQB.js → chunk-DZCJNSBY.js} +1 -1
  54. package/dist/{chunk-LPW2TRLI.js → chunk-F6CYO37C.js} +6 -6
  55. package/dist/{chunk-44JAOWMT.js → chunk-I4YRKF6G.js} +3 -3
  56. package/dist/{chunk-EUARY2OX.js → chunk-JCK5TDIU.js} +71 -4
  57. package/dist/{chunk-A2VDUQB2.js → chunk-JHAG6DEG.js} +3 -3
  58. package/dist/{chunk-XAS6ARPI.js → chunk-KYZ5A7AX.js} +1 -1
  59. package/dist/{chunk-KMES74KU.js → chunk-LGAQXH3L.js} +1 -1
  60. package/dist/{chunk-BNHQ55UD.js → chunk-M2RTTCLC.js} +3 -3
  61. package/dist/{chunk-WK6SPZG4.js → chunk-N5K35MDQ.js} +1 -1
  62. package/dist/{chunk-LGPITEEE.js → chunk-NICTKJ3O.js} +1 -1
  63. package/dist/{chunk-GHNEC23U.js → chunk-NLU2MMFA.js} +1 -1
  64. package/dist/{chunk-MQU5QBUQ.js → chunk-OBDRDAIK.js} +1 -1
  65. package/dist/{chunk-TSQG2PNH.js → chunk-PT3VROG7.js} +376 -368
  66. package/dist/{chunk-H5LL4HMB.js → chunk-Q4XHWZDT.js} +1 -1
  67. package/dist/{chunk-IBTMJA76.js → chunk-R4PQ7D32.js} +7 -7
  68. package/dist/{chunk-5IX4ZOSU.js → chunk-S6ULO6H5.js} +1 -1
  69. package/dist/{chunk-U4YVA2A2.js → chunk-SJD3ZAEH.js} +2 -2
  70. package/dist/{chunk-LGPJMBH2.js → chunk-SNL4C4BV.js} +2 -2
  71. package/dist/{chunk-YOQQUG7C.js → chunk-TDRPVIUB.js} +1 -1
  72. package/dist/{chunk-ORX3X7P5.js → chunk-TDSISMOJ.js} +21 -21
  73. package/dist/{chunk-CJRL5BT3.js → chunk-W3UYVNYQ.js} +1 -1
  74. package/dist/{chunk-46HRC23F.js → chunk-WHBLQJGZ.js} +1 -1
  75. package/dist/{chunk-3SCJOPT5.js → chunk-Y6D7K63F.js} +3 -3
  76. package/dist/{chunk-N5U474SX.js → chunk-YN7OV22K.js} +4 -4
  77. package/dist/{chunk-UKQPA7NT.js → chunk-YWKALX6A.js} +4 -4
  78. package/dist/{chunk-523WBUKU.js → chunk-YXCMVHYJ.js} +3 -3
  79. package/dist/{chunk-ZKYOGC7O.js → chunk-ZMCRVQ6Q.js} +1 -1
  80. package/dist/{chunk-EQ6RZE7U.js → chunk-ZVDUBOE4.js} +16 -6
  81. package/dist/{citations-27ENEGJM.js → citations-GW2ELWME.js} +4 -4
  82. package/dist/{cli-catalog-PAZQB7WG.js → cli-catalog-PDU4Z4IO.js} +3 -3
  83. package/dist/{cli-commands-L6G5AQG2.js → cli-commands-XWIWF4VG.js} +7 -7
  84. package/dist/cli.js +13 -13
  85. package/dist/{competitor-EK5UX6W6.js → competitor-MS4P6GJ4.js} +3 -3
  86. package/dist/{content-3MBCVYMR.js → content-3QQRT3Q4.js} +3 -3
  87. package/dist/{dashboard-5LZMYX52.js → dashboard-FDVY7CMI.js} +6 -6
  88. package/dist/{demo-2NB2BVZO.js → demo-WRF3ZSQ5.js} +1 -1
  89. package/dist/{demo-server-MUJ566YQ.js → demo-server-Q77EUE5A.js} +12 -12
  90. package/dist/{discover-VMPF4CLS.js → discover-BAKAHH5X.js} +4 -4
  91. package/dist/{discover-eval-EK5ZAJKW.js → discover-eval-KMYMVZVX.js} +3 -3
  92. package/dist/{doctor-2KY5SS4O.js → doctor-OAYNGBBT.js} +3 -3
  93. package/dist/{evidence-OXYY666S.js → evidence-FEDSZTLW.js} +3 -3
  94. package/dist/{export-cmd-5Q6TNXN6.js → export-cmd-OYQVBE5C.js} +3 -3
  95. package/dist/{ga-CG3KAWEE.js → ga-MWJQ2S4D.js} +3 -3
  96. package/dist/{gbp-F555XC4I.js → gbp-K4FXHF6N.js} +3 -3
  97. package/dist/{google-44XHCXOZ.js → google-B6VUPLQN.js} +4 -4
  98. package/dist/{google-marketing-MSJVMCMQ.js → google-marketing-3KKTACAA.js} +1 -1
  99. package/dist/{health-cmd-KXCY4527.js → health-cmd-YEHYFXEN.js} +4 -4
  100. package/dist/{history-Y6PMRNUA.js → history-5EYU4PQT.js} +3 -3
  101. package/dist/index.d.ts +32 -32
  102. package/dist/index.js +25 -25
  103. package/dist/{init-CCVUPSZZ.js → init-2HLTEB5Y.js} +12 -12
  104. package/dist/{insights-FGR5AU5D.js → insights-MW5VTF7N.js} +3 -3
  105. package/dist/intelligence-service-PTAA5WJB.js +16 -0
  106. package/dist/{journeys-2V4KIVDF.js → journeys-YW2IWDMN.js} +3 -3
  107. package/dist/{keys-2EOH2M22.js → keys-RRT26LGV.js} +3 -3
  108. package/dist/{keyword-XFHVSN3B.js → keyword-KSN3JTCX.js} +3 -3
  109. package/dist/{logs-WJU66NI5.js → logs-IPAE4F4W.js} +3 -3
  110. package/dist/{mcp-23HANPN3.js → mcp-WJR6RKYK.js} +4 -4
  111. package/dist/mcp.js +9 -9
  112. package/dist/{measurement-plan-VQIG5UCP.js → measurement-plan-DGLUEK7M.js} +5 -5
  113. package/dist/{notify-E33IOGRC.js → notify-3QOG6NWS.js} +3 -3
  114. package/dist/{organic-evidence-3YJ3WTF5.js → organic-evidence-M3VSSLQR.js} +3 -3
  115. package/dist/{overview-66VPXGSA.js → overview-7RRCHUWZ.js} +5 -5
  116. package/dist/{project-SHXJFR3K.js → project-T3JZJPVK.js} +3 -3
  117. package/dist/{project-setup-SMTRU7UG.js → project-setup-Y6DSDF4V.js} +3 -3
  118. package/dist/{query-UNCXNQLZ.js → query-24JZPB3M.js} +3 -3
  119. package/dist/{research-C5JIOYGU.js → research-ERVKTKMV.js} +3 -3
  120. package/dist/{results-export-WZZDWAQB.js → results-export-KSGIWPAM.js} +3 -3
  121. package/dist/{run-NRBLHGT3.js → run-XX6YUJRI.js} +5 -5
  122. package/dist/{schedule-BOBKSQAN.js → schedule-JBZENJ2V.js} +3 -3
  123. package/dist/{search-26B4UX3P.js → search-V67KUYIZ.js} +3 -3
  124. package/dist/{serve-3TN2RDHE.js → serve-HTQ76BFW.js} +26 -26
  125. package/dist/{session-PTB4UBY3.js → session-AJ6R6K4B.js} +13 -13
  126. package/dist/{settings-25JAM5MJ.js → settings-KVKWFTJZ.js} +3 -3
  127. package/dist/{sitemaps-YXJIIT52.js → sitemaps-UDIC4YUU.js} +3 -3
  128. package/dist/{skills-HAYPXHWH.js → skills-35CPSNXM.js} +2 -2
  129. package/dist/{snapshot-V6D4W4MF.js → snapshot-OHGM7JBF.js} +3 -3
  130. package/dist/{src-ENRBRVV2.js → src-GNBUAHT7.js} +2 -2
  131. package/dist/{status-35RGWHEQ.js → status-GKWSTMUV.js} +5 -5
  132. package/dist/{technical-aeo-YG7Q3554.js → technical-aeo-IHQYV4TT.js} +3 -3
  133. package/dist/{telemetry-LUT6F4HJ.js → telemetry-AA2CONG2.js} +4 -4
  134. package/dist/{tools-NPGGINFO.js → tools-CWNRV7PQ.js} +11 -11
  135. package/dist/{traffic-CKYSAD4T.js → traffic-F7WR32VB.js} +55 -13
  136. package/dist/{trends-NQZD7X67.js → trends-YB2GNT75.js} +3 -3
  137. package/dist/{users-6FPNRCXJ.js → users-PXTIUGXI.js} +3 -3
  138. package/dist/{visibility-stats-S2FXH3NH.js → visibility-stats-KSPE4GHQ.js} +4 -4
  139. package/dist/{wordpress-BN62WUII.js → wordpress-YGSH5MSK.js} +3 -3
  140. package/package.json +1 -1
  141. package/dist/intelligence-service-NOZAMR73.js +0 -16
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  loadConfigRaw,
7
7
  saveConfigPatch
8
- } from "./chunk-ZKYOGC7O.js";
8
+ } from "./chunk-ZMCRVQ6Q.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-EUARY2OX.js";
21
+ } from "./chunk-JCK5TDIU.js";
22
22
 
23
23
  // src/runtime-context.ts
24
24
  function cliRuntimeContext(env = process.env, stdio = process) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  trackIntegrationConnection
3
- } from "./chunk-S7TL4SCS.js";
3
+ } from "./chunk-C44S7EE7.js";
4
4
  import {
5
5
  cliRuntimeContext
6
- } from "./chunk-DR4QNC2H.js";
6
+ } from "./chunk-4PMS7CAF.js";
7
7
 
8
8
  // src/cli-connection-telemetry.ts
9
9
  function trackCliConnection(properties) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-LGPJMBH2.js";
3
+ } from "./chunk-SNL4C4BV.js";
4
4
  import {
5
5
  addLikelyFakeAgentHits,
6
6
  correctBackgroundCallJourneys,
7
7
  mergeSplitJourneyVisitors,
8
8
  repairAiReferralArrivalsOnStartup,
9
9
  writeUnrecognizedAgentBuckets
10
- } from "./chunk-IU26JPKH.js";
10
+ } from "./chunk-4ALKLWSQ.js";
11
11
  import {
12
12
  AGENT_TRUST_RULES_VERSION,
13
13
  BROWSER_AGENT_BOT_IDS,
@@ -31,7 +31,7 @@ import {
31
31
  normalizeTrafficPathPattern,
32
32
  rulesShareVerificationList,
33
33
  unrecognizedAgentName
34
- } from "./chunk-5IX4ZOSU.js";
34
+ } from "./chunk-S6ULO6H5.js";
35
35
  import {
36
36
  RawEventSampleEventTypes,
37
37
  agentJourneyCaptureDays,
@@ -48,7 +48,7 @@ import {
48
48
  trafficReclassificationState,
49
49
  trafficSources,
50
50
  unrecognizedAgentEventsHourly
51
- } from "./chunk-MQU5QBUQ.js";
51
+ } from "./chunk-OBDRDAIK.js";
52
52
  import {
53
53
  AI_ENGINE_DOMAINS,
54
54
  AI_ENGINE_SELF_DOMAINS,
@@ -84,7 +84,7 @@ import {
84
84
  sortedUnique,
85
85
  usageCount,
86
86
  withRetry
87
- } from "./chunk-EUARY2OX.js";
87
+ } from "./chunk-JCK5TDIU.js";
88
88
 
89
89
  // ../provider-openai/src/normalize.ts
90
90
  import OpenAI from "openai";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-ZKYOGC7O.js";
3
+ } from "./chunk-ZMCRVQ6Q.js";
4
4
  import {
5
5
  PACKAGE_VERSION
6
6
  } from "./chunk-AOJU5LKX.js";
@@ -36,7 +36,7 @@ import {
36
36
  sentimentSettingsReadSchema,
37
37
  sentimentSummaryReadSchema,
38
38
  upgradeCommandFor
39
- } from "./chunk-EUARY2OX.js";
39
+ } from "./chunk-JCK5TDIU.js";
40
40
 
41
41
  // ../api-client-generated/src/generated/core/bodySerializer.gen.ts
42
42
  var jsonBodySerializer = {
@@ -6375,7 +6375,11 @@ var ApiClient = class {
6375
6375
  kind: params?.kind,
6376
6376
  limit: params?.limit !== void 0 ? String(params.limit) : void 0,
6377
6377
  sourceId: params?.sourceId,
6378
- granularity: params?.granularity
6378
+ granularity: params?.granularity,
6379
+ path: params?.path,
6380
+ agent: params?.agent,
6381
+ cursor: params?.cursor,
6382
+ groupBy: params?.groupBy
6379
6383
  }
6380
6384
  })
6381
6385
  );
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pickProjectCitedDomain
3
- } from "./chunk-XAS6ARPI.js";
3
+ } from "./chunk-KYZ5A7AX.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-LGPJMBH2.js";
6
+ } from "./chunk-SNL4C4BV.js";
7
7
  import {
8
8
  GBP_INSIGHT_PROVIDER,
9
9
  PERSISTENT_GAP_THRESHOLD,
@@ -17,7 +17,7 @@ import {
17
17
  mergeGscQueryTotalsWithFallback,
18
18
  readGscQueryDailyRows,
19
19
  readLatestGscDataDate
20
- } from "./chunk-IU26JPKH.js";
20
+ } from "./chunk-4ALKLWSQ.js";
21
21
  import {
22
22
  competitors,
23
23
  gbpDailyMetrics,
@@ -35,7 +35,7 @@ import {
35
35
  queries,
36
36
  querySnapshots,
37
37
  runs
38
- } from "./chunk-MQU5QBUQ.js";
38
+ } from "./chunk-OBDRDAIK.js";
39
39
  import {
40
40
  CitationStates,
41
41
  RunKinds,
@@ -44,7 +44,7 @@ import {
44
44
  effectiveDomains,
45
45
  isCitationStateMeasured,
46
46
  readCitationState
47
- } from "./chunk-EUARY2OX.js";
47
+ } from "./chunk-JCK5TDIU.js";
48
48
 
49
49
  // src/intelligence-service.ts
50
50
  import { eq, desc, asc, and, ne, or, inArray, gte, lte, isNull, sql, exists } from "drizzle-orm";
@@ -2,13 +2,13 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-DR4QNC2H.js";
5
+ } from "./chunk-4PMS7CAF.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-ZKYOGC7O.js";
8
+ } from "./chunk-ZMCRVQ6Q.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
- } from "./chunk-WK6SPZG4.js";
11
+ } from "./chunk-N5K35MDQ.js";
12
12
  import {
13
13
  AGENT_NONE,
14
14
  OutcomeSurfaces,
@@ -19,7 +19,7 @@ import {
19
19
  integrationConnectionPropertiesSchema,
20
20
  normalizeAgentSlug,
21
21
  usageSurfaceSchema
22
- } from "./chunk-EUARY2OX.js";
22
+ } from "./chunk-JCK5TDIU.js";
23
23
 
24
24
  // src/outcome-telemetry.ts
25
25
  import fs from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CitationStates
3
- } from "./chunk-EUARY2OX.js";
3
+ } from "./chunk-JCK5TDIU.js";
4
4
 
5
5
  // src/snapshot-cell.ts
6
6
  var SNAPSHOT_CELL_LEGEND = "(cell = [citation][mention]; C=cited c=not \xB7=not measured, M=mentioned m=not, \u2013=no data)";
@@ -5,7 +5,7 @@ import {
5
5
  isStoredPageReadTool,
6
6
  isStoredReadTool,
7
7
  truncateToolResult
8
- } from "./chunk-UKQPA7NT.js";
8
+ } from "./chunk-YWKALX6A.js";
9
9
  import {
10
10
  CANONRY_MCP_TOOLKITS,
11
11
  resolveAeroSkillDir
@@ -23,18 +23,18 @@ import {
23
23
  resolveApiKeyFor,
24
24
  resolveModelForProvider,
25
25
  validateAgentProviderRegistry
26
- } from "./chunk-ZKYOGC7O.js";
26
+ } from "./chunk-ZMCRVQ6Q.js";
27
27
  import {
28
28
  CanonryMcpToolNames,
29
29
  canonryMcpTools
30
- } from "./chunk-EQ6RZE7U.js";
30
+ } from "./chunk-ZVDUBOE4.js";
31
31
  import {
32
32
  createLogger
33
- } from "./chunk-LGPJMBH2.js";
33
+ } from "./chunk-SNL4C4BV.js";
34
34
  import {
35
35
  agentToolEvents,
36
36
  llmUsageEvents
37
- } from "./chunk-MQU5QBUQ.js";
37
+ } from "./chunk-OBDRDAIK.js";
38
38
  import {
39
39
  MeasurementPortfolioLists,
40
40
  SEO_TREND_METRICS_BY_KIND,
@@ -45,7 +45,7 @@ import {
45
45
  describeError,
46
46
  validationError,
47
47
  visibilityReportRequestSchema
48
- } from "./chunk-EUARY2OX.js";
48
+ } from "./chunk-JCK5TDIU.js";
49
49
 
50
50
  // src/agent/session.ts
51
51
  import fs2 from "fs";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-QKEBSO3T.js";
3
+ } from "./chunk-AZPWF42S.js";
4
4
  import {
5
5
  emitJsonl
6
6
  } from "./chunk-Z7IUAJOF.js";
7
7
  import {
8
8
  measurementDraftOperationSchema,
9
9
  runMeasurementDraftAction
10
- } from "./chunk-46HRC23F.js";
10
+ } from "./chunk-WHBLQJGZ.js";
11
11
  import {
12
12
  isMachineFormat,
13
13
  systemError
@@ -39,7 +39,7 @@ import {
39
39
  unattributedAnswersLabel,
40
40
  uncheckedSourcesLabel,
41
41
  visibilityReportRequestSchema
42
- } from "./chunk-EUARY2OX.js";
42
+ } from "./chunk-JCK5TDIU.js";
43
43
 
44
44
  // src/commands/measurement-plan.ts
45
45
  import crypto from "crypto";
@@ -21152,6 +21152,35 @@ function parseTrafficEventKindFilter(value) {
21152
21152
  }
21153
21153
  return kinds.length > 0 ? kinds : null;
21154
21154
  }
21155
+ var trafficEventGroupFieldSchema = z62.enum(["agent", "path", "status", "source"]);
21156
+ var TrafficEventGroupFields = trafficEventGroupFieldSchema.enum;
21157
+ var TRAFFIC_EVENT_GROUP_BY_HINT = `one or more (comma-separated) of: ${trafficEventGroupFieldSchema.options.join(", ")}`;
21158
+ function parseTrafficEventGroupBy(value) {
21159
+ const fields = [];
21160
+ for (const member of value.split(",").map((part) => part.trim()).filter(Boolean)) {
21161
+ const parsed = trafficEventGroupFieldSchema.safeParse(member);
21162
+ if (!parsed.success) return null;
21163
+ if (!fields.includes(parsed.data)) fields.push(parsed.data);
21164
+ }
21165
+ return fields.length > 0 ? fields : null;
21166
+ }
21167
+ var trafficEventGroupSchema = z62.object({
21168
+ kind: trafficEventKindSchema,
21169
+ /** Present when grouped by agent: bot ID, or the AI product on AI-referral rows. */
21170
+ agent: z62.string().optional(),
21171
+ /** Present when grouped by path: fetched path, or the landing path on AI-referral rows. */
21172
+ path: z62.string().optional(),
21173
+ /** Present when grouped by status. */
21174
+ status: z62.number().int().optional(),
21175
+ /** Present when grouped by source. */
21176
+ sourceId: z62.string().optional(),
21177
+ /** Sum of `hits` over the group's rows, the same count the detail rows carry. */
21178
+ hits: z62.number().int().nonnegative(),
21179
+ /** Hourly detail rows in the group. */
21180
+ rows: z62.number().int().nonnegative(),
21181
+ firstHour: z62.string(),
21182
+ lastHour: z62.string()
21183
+ });
21155
21184
  var trafficSeriesGranularitySchema = z62.enum(["hour", "day", "month"]);
21156
21185
  var TrafficSeriesGranularities = trafficSeriesGranularitySchema.enum;
21157
21186
  var trafficSeriesPointSchema = z62.object({
@@ -21334,14 +21363,50 @@ var trafficEventsResponseSchema = z62.object({
21334
21363
  /** LANDED sessions ingested before the classifier shipped; unresolvable, never organic. */
21335
21364
  aiReferralUnknownHits: z62.number().int().nonnegative()
21336
21365
  }),
21366
+ /**
21367
+ * The filters every part of this response honors: totals, series, detail
21368
+ * rows and groups. Optional so a newer client reads an older API.
21369
+ */
21370
+ filters: z62.object({
21371
+ kinds: z62.array(trafficEventKindSchema),
21372
+ sourceId: z62.string().nullable(),
21373
+ /** A page and the pages under it (`/faq` matches `/faq/x`, never `/faqs`): fetched path, or landing path on AI-referral rows. */
21374
+ path: z62.string().nullable(),
21375
+ /** Bot ID, or AI product on AI-referral rows. */
21376
+ agent: z62.string().nullable()
21377
+ }).optional(),
21337
21378
  eventRows: z62.object({
21338
- /** Total detail rows matching the window/source/kind filters before `limit`. */
21379
+ /** Total detail rows matching every filter, across all pages. */
21339
21380
  total: z62.number().int().nonnegative(),
21340
- /** Number of newest detail rows included in `events`. */
21381
+ /** Detail rows included in `events` on this page. */
21341
21382
  returned: z62.number().int().nonnegative(),
21342
- truncated: z62.boolean()
21383
+ /** True when another page follows; read it with `nextCursor`. */
21384
+ truncated: z62.boolean(),
21385
+ /**
21386
+ * Pass as `cursor` to read the next page, with the same filters; null on
21387
+ * the last page. Rows are newest hour first, in a fixed order, and the
21388
+ * cursor keeps the first page's window, so pages never repeat a row and
21389
+ * newer hours never shift a page. A row written between pages into an hour
21390
+ * the read has already passed (the current hour, or a late delivery) is not
21391
+ * returned: end the window at a finished hour for an exact read. Optional
21392
+ * so a newer client reads an older API.
21393
+ */
21394
+ nextCursor: z62.string().nullable().optional()
21343
21395
  }),
21344
- events: z62.array(trafficEventEntrySchema)
21396
+ events: z62.array(trafficEventEntrySchema),
21397
+ /**
21398
+ * Present only when `groupBy` was asked for: totals over the whole filtered
21399
+ * window, most hits first, capped by `limit`.
21400
+ */
21401
+ groups: z62.object({
21402
+ by: z62.array(trafficEventGroupFieldSchema),
21403
+ /** Groups that match, before `limit`. */
21404
+ total: z62.number().int().nonnegative(),
21405
+ returned: z62.number().int().nonnegative(),
21406
+ /** True when more groups match than `limit` let through. Narrow the filters or raise `limit` (max 5000). */
21407
+ truncated: z62.boolean(),
21408
+ entries: z62.array(trafficEventGroupSchema)
21409
+ }).optional()
21345
21410
  });
21346
21411
  var trafficSampleKindSchema = z62.enum(["crawler", "ai-user-fetch", "ai-referral", "unknown"]);
21347
21412
  var TrafficSampleKinds = trafficSampleKindSchema.enum;
@@ -30278,6 +30343,8 @@ export {
30278
30343
  TrafficEventKinds,
30279
30344
  TRAFFIC_EVENT_KIND_FILTER_HINT,
30280
30345
  parseTrafficEventKindFilter,
30346
+ TRAFFIC_EVENT_GROUP_BY_HINT,
30347
+ parseTrafficEventGroupBy,
30281
30348
  trafficSeriesGranularitySchema,
30282
30349
  TrafficSeriesGranularities,
30283
30350
  trafficEventsResponseSchema,
@@ -3,7 +3,7 @@ import {
3
3
  resolveCliAccess,
4
4
  resolveCliAccessForInvocation,
5
5
  windowOptions
6
- } from "./chunk-KMES74KU.js";
6
+ } from "./chunk-LGAQXH3L.js";
7
7
  import {
8
8
  emitJsonl
9
9
  } from "./chunk-Z7IUAJOF.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-HGMYEDAQ.js";
15
15
  import {
16
16
  OperationAccesses
17
- } from "./chunk-EUARY2OX.js";
17
+ } from "./chunk-JCK5TDIU.js";
18
18
 
19
19
  // src/cli-catalog.ts
20
20
  import { createRequire } from "module";
@@ -122,7 +122,7 @@ async function dispatchRegisteredCommand(args, fallbackFormat, specs) {
122
122
  const accessValue = accessFilterFromArgs(argsWithoutHelp);
123
123
  validateAccessFilter(accessValue);
124
124
  if (fallbackFormat !== "text") {
125
- const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-PAZQB7WG.js");
125
+ const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-PDU4Z4IO.js");
126
126
  const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
127
127
  printCliCatalog2(specs, fallbackFormat, group2, accessValue);
128
128
  return true;
@@ -2,7 +2,7 @@ import {
2
2
  CitationStates,
3
3
  hostMatchesDomain,
4
4
  isCitationMeasurable
5
- } from "./chunk-EUARY2OX.js";
5
+ } from "./chunk-JCK5TDIU.js";
6
6
 
7
7
  // src/citation-utils.ts
8
8
  function pickProjectCitedDomain(citedDomains, projectDomains) {
@@ -5,7 +5,7 @@ import {
5
5
  AppError,
6
6
  parseWindowIn,
7
7
  resolveDateRange
8
- } from "./chunk-EUARY2OX.js";
8
+ } from "./chunk-JCK5TDIU.js";
9
9
 
10
10
  // src/cli-access.ts
11
11
  var CLI_ACCESS_BY_ID = Object.freeze({
@@ -2,10 +2,10 @@ import {
2
2
  SNAPSHOT_CELL_LEGEND,
3
3
  citationGlyph,
4
4
  mentionGlyph
5
- } from "./chunk-YQ5NFMQB.js";
5
+ } from "./chunk-DZCJNSBY.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-QKEBSO3T.js";
8
+ } from "./chunk-AZPWF42S.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-EUARY2OX.js";
26
+ } from "./chunk-JCK5TDIU.js";
27
27
 
28
28
  // src/commands/run.ts
29
29
  function getClient() {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  USAGE_TELEMETRY_HEADERS,
3
3
  redactLogString
4
- } from "./chunk-EUARY2OX.js";
4
+ } from "./chunk-JCK5TDIU.js";
5
5
 
6
6
  // ../api-routes/src/request-context.ts
7
7
  import { AsyncLocalStorage } from "async_hooks";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-HGMYEDAQ.js";
5
5
  import {
6
6
  describeError
7
- } from "./chunk-EUARY2OX.js";
7
+ } from "./chunk-JCK5TDIU.js";
8
8
 
9
9
  // src/gsc-sitemap-submission.ts
10
10
  function dedupeGscSitemapUrls(urls) {
@@ -28,7 +28,7 @@ import {
28
28
  unknownUsageObservation,
29
29
  usdToMicros,
30
30
  withRetry
31
- } from "./chunk-EUARY2OX.js";
31
+ } from "./chunk-JCK5TDIU.js";
32
32
 
33
33
  // ../provider-answer-services/src/core/http.ts
34
34
  var MAX_RESPONSE_BYTES = 8 * 1024 * 1024;
@@ -20,7 +20,7 @@ import {
20
20
  templateLinkRatio,
21
21
  templateLinkUbiquityAvailable,
22
22
  validationError
23
- } from "./chunk-EUARY2OX.js";
23
+ } from "./chunk-JCK5TDIU.js";
24
24
  import {
25
25
  __export
26
26
  } from "./chunk-MLKGABMK.js";