@canonry/canonry 7.55.1 → 7.56.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 (145) hide show
  1. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +7 -1
  2. package/assets/assets/{AgentSetupPage-Chb7OZYo.js → AgentSetupPage-BkKw_in_.js} +3 -3
  3. package/assets/assets/{AuditHistoryPanel-CWAAzxGL.js → AuditHistoryPanel-UtRnS-sh.js} +1 -1
  4. package/assets/assets/{BacklinksPage-CfRqXLjw.js → BacklinksPage-DCSmuAOQ.js} +1 -1
  5. package/assets/assets/{ChartPrimitives-DIEeZdrs.js → ChartPrimitives-BgY3tqbD.js} +1 -1
  6. package/assets/assets/{Hint-Cn4lh0Do.js → Hint-BsfMSR5e.js} +1 -1
  7. package/assets/assets/{HistoryPage-EXS6zGfM.js → HistoryPage-DzpqCNJM.js} +1 -1
  8. package/assets/assets/{InfoTooltip-TIx9qM5h.js → InfoTooltip-COkeQYiP.js} +1 -1
  9. package/assets/assets/MeasurementPropertyPage-Dh0BJw_f.js +4 -0
  10. package/assets/assets/ProjectPage-D-9IeFap.js +7 -0
  11. package/assets/assets/{RunsPage-Ck0A8Z-B.js → RunsPage-DtllYN3I.js} +1 -1
  12. package/assets/assets/{SettingsPage-DLwUxbGB.js → SettingsPage-_p15s-OC.js} +1 -1
  13. package/assets/assets/SiteHealthSection-BEpXTW3G.js +2 -0
  14. package/assets/assets/ToneBadge-nxe12_3b.js +60 -0
  15. package/assets/assets/{TrafficPage-jPUXy6qr.js → TrafficPage-wru6cQPP.js} +2 -2
  16. package/assets/assets/{TrafficSourceDetailPage-D1ApU8pZ.js → TrafficSourceDetailPage-_XKbd-aS.js} +1 -1
  17. package/assets/assets/{account-context-W2az42JI.js → account-context-BekDho6K.js} +1 -1
  18. package/assets/assets/{card-YusVbEjF.js → card-By9JlCCv.js} +1 -1
  19. package/assets/assets/{extract-error-message-XEIEg9D6.js → extract-error-message-SMPhaAkr.js} +1 -1
  20. package/assets/assets/{format-helpers-Bb7jAdHk.js → format-helpers-CVjOUs0j.js} +1 -1
  21. package/assets/assets/index-BMD46UDb.css +1 -0
  22. package/assets/assets/index-el2M4tYf.js +56 -0
  23. package/assets/assets/{query-client-Dz-pGbg8.js → query-client-8RITTP1A.js} +1 -1
  24. package/assets/assets/react-query-BXwc1UHc.js +1 -0
  25. package/assets/assets/{react-sigma_core.esm.min--9Hr2IJs.js → react-sigma_core.esm.min-CM12VcoB.js} +1 -1
  26. package/assets/assets/{service-B6yV5DWh.js → service-B0wkGxvy.js} +1 -1
  27. package/assets/assets/vendor-lucide-CPeGWK5C.js +1 -0
  28. package/assets/assets/{vendor-markdown-DWjffpgb.js → vendor-markdown-Bdsu1JLE.js} +1 -1
  29. package/assets/assets/{vendor-radix-BU76HM0G.js → vendor-radix-3k2C0Ly9.js} +1 -1
  30. package/assets/assets/{vendor-recharts-CsHBXoK8.js → vendor-recharts-CFnqWvWF.js} +1 -1
  31. package/assets/assets/{vendor-tanstack-QhOrDhIL.js → vendor-tanstack-CXaF1vMI.js} +1 -1
  32. package/assets/index.html +15 -15
  33. package/dist/{ads-FZ7MIWXC.js → ads-SPXNKDEW.js} +3 -3
  34. package/dist/{agent-E6DBBS3U.js → agent-THPYOGXD.js} +7 -7
  35. package/dist/{agent-ask-GFG646FW.js → agent-ask-VHRA5RVU.js} +3 -3
  36. package/dist/{agent-conversations-MF3JQUBO.js → agent-conversations-5HXXVMZV.js} +3 -3
  37. package/dist/{agent-memory-AHBHISRL.js → agent-memory-SKBUFHGV.js} +3 -3
  38. package/dist/{agent-providers-GPPFRFOJ.js → agent-providers-TOIA75C6.js} +3 -3
  39. package/dist/{agent-transcript-WAFQUNNS.js → agent-transcript-DFE2PDTS.js} +3 -3
  40. package/dist/{analytics-JIMNYMK7.js → analytics-JJHPK2TK.js} +3 -3
  41. package/dist/{apply-VQGED53E.js → apply-AC36NXPF.js} +3 -3
  42. package/dist/{backfill-2Z5NQJH7.js → backfill-73XI3CEL.js} +9 -9
  43. package/dist/{backlinks-3OWR2TKF.js → backlinks-EKSQJXMS.js} +3 -3
  44. package/dist/{bing-VN5M2WTQ.js → bing-XZQ6CQM4.js} +3 -3
  45. package/dist/{bootstrap-E27HOPUD.js → bootstrap-GJUT3AVH.js} +10 -10
  46. package/dist/{cdp-DGUIUB6T.js → cdp-QROXKBXS.js} +7 -7
  47. package/dist/{chunk-SLMYLF4H.js → chunk-2Z7FALTN.js} +2 -2
  48. package/dist/{chunk-DGBFU7YE.js → chunk-37YB52NM.js} +84 -1
  49. package/dist/{chunk-BVWCQLRX.js → chunk-4J7PL5R2.js} +20 -20
  50. package/dist/{chunk-EULFLYW5.js → chunk-4QRF7TNW.js} +2 -2
  51. package/dist/{chunk-TBQTJRWL.js → chunk-A3NZOK4X.js} +4 -4
  52. package/dist/{chunk-QUMODKMN.js → chunk-ADCVXKSD.js} +1 -1
  53. package/dist/{chunk-MHG2AFWS.js → chunk-AOBMI5UM.js} +1 -1
  54. package/dist/{chunk-F3KBEYKI.js → chunk-C5LD76KR.js} +3 -3
  55. package/dist/{chunk-5XOGLDAG.js → chunk-CFGQOIXW.js} +3 -3
  56. package/dist/{chunk-E4T73OGZ.js → chunk-DDM6PVXJ.js} +3 -3
  57. package/dist/{chunk-EAE4N2VX.js → chunk-F5DLOQ3B.js} +2 -2
  58. package/dist/{chunk-4MTFV6L2.js → chunk-H4IJXVG5.js} +5 -5
  59. package/dist/{chunk-4DQFJP5E.js → chunk-JZEK26CT.js} +338 -325
  60. package/dist/{chunk-OIOHLANV.js → chunk-NSE55FZE.js} +2 -2
  61. package/dist/{chunk-JYDXICGN.js → chunk-NZ6KZLTM.js} +2 -1
  62. package/dist/{chunk-5DX7N34L.js → chunk-P2OVWQKT.js} +1 -1
  63. package/dist/{chunk-YZP6IMCC.js → chunk-PUTJ6LPE.js} +1 -1
  64. package/dist/{chunk-6ME76HJO.js → chunk-Q5ZRUA57.js} +1 -1
  65. package/dist/{chunk-L23GLMDH.js → chunk-QAGZQ2DY.js} +137 -0
  66. package/dist/{chunk-7LA7MY4D.js → chunk-RCCZ6VGK.js} +1 -1
  67. package/dist/{chunk-FZW44W5P.js → chunk-RELKG6XH.js} +2 -2
  68. package/dist/{chunk-BR4RBXLD.js → chunk-SJLCALSV.js} +3 -3
  69. package/dist/{chunk-Y7CK6NY4.js → chunk-SVLNIJS2.js} +1 -1
  70. package/dist/{chunk-M5E4ANAN.js → chunk-TJJLANDV.js} +4 -4
  71. package/dist/{chunk-TDMEFWWH.js → chunk-TPCXTUL5.js} +1 -1
  72. package/dist/{chunk-23YDBDYE.js → chunk-UDF3A2O7.js} +5 -5
  73. package/dist/{chunk-6HEDNOEF.js → chunk-UJRPQOKE.js} +8 -8
  74. package/dist/{chunk-I7V5UIUZ.js → chunk-V4V7WOHY.js} +16 -2
  75. package/dist/{chunk-T5UIEVCS.js → chunk-VRFTXW6H.js} +1292 -927
  76. package/dist/{chunk-UOHAWN66.js → chunk-VZURJP3T.js} +1 -1
  77. package/dist/{chunk-CBJ2SBKN.js → chunk-W5FAL4LJ.js} +4 -4
  78. package/dist/{chunk-JKXX6DQS.js → chunk-WRYVESRH.js} +1 -1
  79. package/dist/{chunk-BM4XREGB.js → chunk-ZNAAZHNT.js} +19 -3
  80. package/dist/{chunk-64MEDTTQ.js → chunk-ZOVL5NAP.js} +1 -1
  81. package/dist/{citations-X3ACB4BK.js → citations-5ARZ6M42.js} +3 -3
  82. package/dist/{cli-catalog-KGYSKGDJ.js → cli-catalog-XD7VY3ES.js} +3 -3
  83. package/dist/{cli-commands-KN3ZROPW.js → cli-commands-FWCI6VIN.js} +7 -7
  84. package/dist/cli.js +13 -13
  85. package/dist/{competitor-K4XKRB2A.js → competitor-XWTEIVZL.js} +3 -3
  86. package/dist/{content-K4ZF5PLU.js → content-4EVGV32G.js} +3 -3
  87. package/dist/{dashboard-IKLVLUF6.js → dashboard-QZXKGD6T.js} +6 -6
  88. package/dist/{demo-S6MCF65Z.js → demo-3DMRH7BC.js} +1 -1
  89. package/dist/{demo-server-TFPIU4E2.js → demo-server-TU3BW763.js} +113 -12
  90. package/dist/{discover-PF4CWAL3.js → discover-VQYJ4UOL.js} +3 -3
  91. package/dist/{discover-eval-GL5EN3DK.js → discover-eval-FMEMPSM3.js} +3 -3
  92. package/dist/{doctor-GGMC5LXO.js → doctor-VYES5HCM.js} +3 -3
  93. package/dist/{evidence-KLMPJDIX.js → evidence-BG45EBS3.js} +3 -3
  94. package/dist/{export-cmd-SUBBU5TK.js → export-cmd-PQZCMR7C.js} +3 -3
  95. package/dist/{ga-XTJ4272V.js → ga-ZQL2LHQA.js} +42 -4
  96. package/dist/{gbp-3XIL64BL.js → gbp-KNWDBHFM.js} +3 -3
  97. package/dist/{google-4ZVLOEO7.js → google-GOKE6J5E.js} +4 -4
  98. package/dist/{google-marketing-EKHYN6RN.js → google-marketing-7DYEKRHS.js} +1 -1
  99. package/dist/{health-cmd-AS2XVZGM.js → health-cmd-4OZ7EYWI.js} +3 -3
  100. package/dist/{history-UFO6W5MK.js → history-U2W77DIY.js} +3 -3
  101. package/dist/index.d.ts +493 -18
  102. package/dist/index.js +24 -24
  103. package/dist/{init-X6CJISQ7.js → init-LEGXLKPA.js} +11 -11
  104. package/dist/{insights-MQUSMDKL.js → insights-LWMDBEYC.js} +3 -3
  105. package/dist/intelligence-service-3JS4X4Y4.js +15 -0
  106. package/dist/{keys-SHGKOF7L.js → keys-RSKVNMJI.js} +3 -3
  107. package/dist/{keyword-PQHI62EQ.js → keyword-IM4GUM5U.js} +3 -3
  108. package/dist/{logs-GKZ3C6U7.js → logs-B35V2RPE.js} +3 -3
  109. package/dist/{mcp-II46ISJK.js → mcp-UFMKQFGP.js} +2 -2
  110. package/dist/mcp.js +9 -9
  111. package/dist/{measurement-plan-AMYXJNGA.js → measurement-plan-BOHLLJD5.js} +5 -5
  112. package/dist/{notify-HBSOBXU5.js → notify-RQIQP5ZF.js} +3 -3
  113. package/dist/{organic-evidence-B6FTSLSS.js → organic-evidence-C3OZR7UY.js} +3 -3
  114. package/dist/{overview-CMSXYEFO.js → overview-OVIPKMAY.js} +4 -4
  115. package/dist/{project-TPY5QLJB.js → project-QBUTYR6J.js} +3 -3
  116. package/dist/{query-GRI574XT.js → query-KCGET5FS.js} +3 -3
  117. package/dist/{research-XZBMLGPZ.js → research-HTURJWRL.js} +3 -3
  118. package/dist/{results-export-P2R6W24Y.js → results-export-GJNXEXV4.js} +3 -3
  119. package/dist/{run-TYVYDQSF.js → run-ZNTT7W5M.js} +4 -4
  120. package/dist/{schedule-GKMCGZUD.js → schedule-S2ODDXFB.js} +3 -3
  121. package/dist/{search-IENKPV43.js → search-UW56VG5B.js} +3 -3
  122. package/dist/{serve-GORRM5KD.js → serve-UMF32HVA.js} +25 -25
  123. package/dist/{session-JXRG3LRH.js → session-GEJOH3FN.js} +12 -12
  124. package/dist/{settings-RATO7LTH.js → settings-TGSORPVW.js} +3 -3
  125. package/dist/{skills-BQRJVV3P.js → skills-SBZZLY4T.js} +2 -2
  126. package/dist/{snapshot-5O44JQYF.js → snapshot-OMS33CN4.js} +3 -3
  127. package/dist/{src-5HJMZCHY.js → src-LKNW35M6.js} +4 -2
  128. package/dist/{status-O2JPGJ27.js → status-7D7NUW7M.js} +4 -4
  129. package/dist/{technical-aeo-7DAQZPV2.js → technical-aeo-UFDHAV7G.js} +3 -3
  130. package/dist/{telemetry-4YY5IP5A.js → telemetry-ZPVJITHJ.js} +4 -4
  131. package/dist/{tools-MQZ5KQVL.js → tools-EJ5AHYFS.js} +11 -11
  132. package/dist/{traffic-RGIEOKUQ.js → traffic-T6YAKUY5.js} +5 -5
  133. package/dist/{users-HNRMET2A.js → users-6N2YMWAP.js} +3 -3
  134. package/dist/{visibility-stats-AOQTJIWH.js → visibility-stats-GODBRQVG.js} +3 -3
  135. package/dist/{wordpress-UOAWGG7N.js → wordpress-ISFI67TH.js} +3 -3
  136. package/package.json +1 -1
  137. package/assets/assets/MeasurementPropertyPage-CnMKVlyr.js +0 -4
  138. package/assets/assets/ProjectPage-D8rNNTAJ.js +0 -7
  139. package/assets/assets/SiteHealthSection-B7-1csc8.js +0 -2
  140. package/assets/assets/ToneBadge-BcN0dkBF.js +0 -60
  141. package/assets/assets/index-B8W65ejO.css +0 -1
  142. package/assets/assets/index-Gz_0R4O6.js +0 -56
  143. package/assets/assets/react-query-DB0ftGOM.js +0 -1
  144. package/assets/assets/vendor-lucide-BjvO55Hk.js +0 -1
  145. package/dist/intelligence-service-P44IBE6G.js +0 -15
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
4
  import {
5
5
  emitJsonl
6
6
  } from "./chunk-Z7IUAJOF.js";
@@ -19,7 +19,7 @@ import {
19
19
  formatMicros,
20
20
  formatRunErrorOneLine,
21
21
  resolveProviderInput
22
- } from "./chunk-L23GLMDH.js";
22
+ } from "./chunk-QAGZQ2DY.js";
23
23
 
24
24
  // src/commands/run.ts
25
25
  function getClient() {
@@ -5,7 +5,7 @@ import {
5
5
  AppError,
6
6
  parseWindowIn,
7
7
  resolveDateRange
8
- } from "./chunk-L23GLMDH.js";
8
+ } from "./chunk-QAGZQ2DY.js";
9
9
 
10
10
  // src/cli-access.ts
11
11
  var CLI_ACCESS_BY_ID = Object.freeze({
@@ -149,6 +149,7 @@ var CLI_ACCESS_BY_ID = Object.freeze({
149
149
  "ga.measurement-analysis": "stored",
150
150
  "ga.properties": "live",
151
151
  "ga.search-landing-pages": "stored",
152
+ "ga.overview": "stored",
152
153
  "ga.session-history": "stored",
153
154
  "ga.social-referral-history": "stored",
154
155
  "ga.social-referral-summary": "stored",
@@ -7,7 +7,7 @@ import {
7
7
  classifyAiReferralTrafficClass,
8
8
  hostMatchesDomain,
9
9
  hostOf
10
- } from "./chunk-L23GLMDH.js";
10
+ } from "./chunk-QAGZQ2DY.js";
11
11
 
12
12
  // ../integration-traffic/src/ip-ranges/amazonbot.json
13
13
  var amazonbot_default = {
@@ -20,7 +20,7 @@ import {
20
20
  resolveProviderModel,
21
21
  schedulableRunKindSchema,
22
22
  sentimentEvaluatorProviderSchema
23
- } from "./chunk-L23GLMDH.js";
23
+ } from "./chunk-QAGZQ2DY.js";
24
24
 
25
25
  // ../config/src/index.ts
26
26
  import { z as z3 } from "zod";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  API_PROVIDER_NAMES,
3
3
  ProviderNames
4
- } from "./chunk-L23GLMDH.js";
4
+ } from "./chunk-QAGZQ2DY.js";
5
5
 
6
6
  // src/provider-registration.ts
7
7
  function isApiProviderRegistrable(name, entry) {
@@ -3529,6 +3529,7 @@ function percentOf(part, whole) {
3529
3529
  var WINDOW_SETS = {
3530
3530
  metrics: ["7d", "30d", "90d", "all"],
3531
3531
  gaMeasurementAnalysis: ["30d", "60d", "90d"],
3532
+ gaOverview: ["7d", "30d", "90d"],
3532
3533
  gaSearchLanding: ["7d", "28d", "90d"],
3533
3534
  googleAdsMetrics: ["7d", "14d", "30d"],
3534
3535
  trafficAnalytics: ["7d", "14d", "30d", "90d"],
@@ -9346,6 +9347,14 @@ function formatNumber(value) {
9346
9347
  if (Math.abs(value) >= 1e3) return `${(value / 1e3).toFixed(1)}K`;
9347
9348
  return value.toLocaleString("en-US");
9348
9349
  }
9350
+ function formatDurationSeconds(seconds) {
9351
+ if (!Number.isFinite(seconds) || seconds < 0) return "\u2014";
9352
+ const total = Math.round(seconds);
9353
+ if (total < 60) return `${total}s`;
9354
+ const minutes = Math.floor(total / 60);
9355
+ if (minutes < 60) return `${minutes}m ${String(total % 60).padStart(2, "0")}s`;
9356
+ return `${Math.floor(minutes / 60)}h ${String(minutes % 60).padStart(2, "0")}m`;
9357
+ }
9349
9358
  var MONTH_NAMES = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
9350
9359
  function formatCalendarDay(day, now = /* @__PURE__ */ new Date()) {
9351
9360
  const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(day);
@@ -13262,6 +13271,7 @@ var STORED_READ_OPERATIONS = /* @__PURE__ */ new Set([
13262
13271
  "GET /api/v1/projects/{name}/ga/social-referral-history",
13263
13272
  "GET /api/v1/projects/{name}/ga/social-referral-trend",
13264
13273
  "GET /api/v1/projects/{name}/ga/attribution-trend",
13274
+ "GET /api/v1/projects/{name}/ga/overview",
13265
13275
  "GET /api/v1/projects/{name}/ga/session-history",
13266
13276
  "GET /api/v1/projects/{name}/ga/coverage",
13267
13277
  "GET /api/v1/projects/{name}/content/targets",
@@ -17326,6 +17336,115 @@ var gaAttributionTrendResponseSchema = z49.object({
17326
17336
  /** Social source with the largest session change in the last 7 days against the 7 before. Null when no source moved. */
17327
17337
  socialBiggestMover: gaSourceMoverSchema.nullable()
17328
17338
  });
17339
+ var gaOverviewValuesSchema = z49.object({
17340
+ activeUsers: z49.number().int().nonnegative().nullable(),
17341
+ newUsers: z49.number().int().nonnegative().nullable(),
17342
+ totalUsers: z49.number().int().nonnegative().nullable(),
17343
+ sessions: z49.number().int().nonnegative().nullable(),
17344
+ organicSessions: z49.number().int().nonnegative().nullable(),
17345
+ views: z49.number().int().nonnegative().nullable(),
17346
+ eventCount: z49.number().int().nonnegative().nullable(),
17347
+ /** GA4 counts a key event once per session when the property says so, so this can be a decimal. */
17348
+ keyEvents: z49.number().nonnegative().nullable(),
17349
+ engagementRate: fraction().nullable(),
17350
+ bounceRate: fraction().nullable(),
17351
+ averageEngagementTimeSeconds: z49.number().nonnegative().nullable()
17352
+ });
17353
+ var gaOverviewMetricKeySchema = gaOverviewValuesSchema.keyof();
17354
+ var GaOverviewMetricKeys = gaOverviewMetricKeySchema.enum;
17355
+ var gaOverviewChangeSchema = z49.object({
17356
+ activeUsers: percent().nullable(),
17357
+ newUsers: percent().nullable(),
17358
+ totalUsers: percent().nullable(),
17359
+ sessions: percent().nullable(),
17360
+ organicSessions: percent().nullable(),
17361
+ views: percent().nullable(),
17362
+ eventCount: percent().nullable(),
17363
+ keyEvents: percent().nullable(),
17364
+ engagementRate: percent().nullable(),
17365
+ bounceRate: percent().nullable(),
17366
+ averageEngagementTimeSeconds: percent().nullable()
17367
+ });
17368
+ var GA_OVERVIEW_WINDOW_DAYS = { "7d": 7, "30d": 30, "90d": 90 };
17369
+ var GA_OVERVIEW_WINDOWS = WINDOW_SETS.gaOverview;
17370
+ function isGaOverviewWindow(value) {
17371
+ return GA_OVERVIEW_WINDOWS.some((window) => window === value);
17372
+ }
17373
+ var GA_OVERVIEW_HISTORY_DAYS = 2 * GA_OVERVIEW_WINDOW_DAYS["90d"];
17374
+ function gaOverviewComparisonDaysAgo(window) {
17375
+ const days = GA_OVERVIEW_WINDOW_DAYS[window];
17376
+ return {
17377
+ current: { start: days, end: 1 },
17378
+ previous: { start: 2 * days, end: days + 1 }
17379
+ };
17380
+ }
17381
+ function gaOverviewComparisonRanges(window, now = /* @__PURE__ */ new Date(), timeZone = "UTC") {
17382
+ const daysAgo = gaOverviewComparisonDaysAgo(window);
17383
+ const date = (days) => isoDateDaysBeforeInTimeZone(now.toISOString(), days, timeZone);
17384
+ return {
17385
+ current: { startDate: date(daysAgo.current.start), endDate: date(daysAgo.current.end) },
17386
+ previous: { startDate: date(daysAgo.previous.start), endDate: date(daysAgo.previous.end) }
17387
+ };
17388
+ }
17389
+ var GaOverviewPeriods = { current: "current", previous: "previous" };
17390
+ var gaOverviewPeriodSchema = z49.object({
17391
+ /** Inclusive. Null when the window has never been synced with the overview metrics. */
17392
+ startDate: z49.string().nullable(),
17393
+ endDate: z49.string().nullable()
17394
+ });
17395
+ var gaOverviewDaySchema = z49.object({
17396
+ date: z49.string(),
17397
+ /** The day of the previous period in the same position: the window's first day lines up with its first. */
17398
+ previousDate: z49.string(),
17399
+ values: gaOverviewValuesSchema,
17400
+ previousValues: gaOverviewValuesSchema
17401
+ });
17402
+ var gaOverviewResponseSchema = z49.object({
17403
+ window: metricsWindowSchema,
17404
+ current: gaOverviewPeriodSchema,
17405
+ /** The period just before `current`, of the same length. */
17406
+ previous: gaOverviewPeriodSchema,
17407
+ totals: gaOverviewValuesSchema,
17408
+ previousTotals: gaOverviewValuesSchema,
17409
+ /**
17410
+ * `deltaPercent(totals[key], previousTotals[key])`: relative for rates too
17411
+ * (55% to 60% engagement reads +9.1), as GA4 shows it. Null when either total
17412
+ * is missing or the previous one is not positive.
17413
+ */
17414
+ changePct: gaOverviewChangeSchema,
17415
+ /** One entry per day of `current`, oldest first. */
17416
+ days: z49.array(gaOverviewDaySchema),
17417
+ /** When GA4 last reported this window's totals. Null when it never has. */
17418
+ syncedAt: z49.string().nullable()
17419
+ });
17420
+ var GaOverviewUnits = { count: "count", fraction: "fraction", seconds: "seconds" };
17421
+ var GaOverviewBetter = { higher: "higher", lower: "lower" };
17422
+ var GA_OVERVIEW_METRICS = {
17423
+ activeUsers: { label: "Users", unit: GaOverviewUnits.count, better: GaOverviewBetter.higher },
17424
+ newUsers: { label: "New users", unit: GaOverviewUnits.count, better: GaOverviewBetter.higher },
17425
+ sessions: { label: "Sessions", unit: GaOverviewUnits.count, better: GaOverviewBetter.higher },
17426
+ engagementRate: { label: "Engagement rate", unit: GaOverviewUnits.fraction, better: GaOverviewBetter.higher },
17427
+ averageEngagementTimeSeconds: { label: "Average engagement time", unit: GaOverviewUnits.seconds, better: GaOverviewBetter.higher },
17428
+ views: { label: "Views", unit: GaOverviewUnits.count, better: GaOverviewBetter.higher },
17429
+ bounceRate: { label: "Bounce rate", unit: GaOverviewUnits.fraction, better: GaOverviewBetter.lower },
17430
+ eventCount: { label: "Event count", unit: GaOverviewUnits.count, better: GaOverviewBetter.higher },
17431
+ keyEvents: { label: "Key events", unit: GaOverviewUnits.count, better: GaOverviewBetter.higher },
17432
+ organicSessions: { label: "Organic sessions", unit: GaOverviewUnits.count, better: GaOverviewBetter.higher },
17433
+ totalUsers: { label: "Total users", unit: GaOverviewUnits.count, better: GaOverviewBetter.higher }
17434
+ };
17435
+ var GA_OVERVIEW_METRIC_ORDER = [
17436
+ "activeUsers",
17437
+ "newUsers",
17438
+ "sessions",
17439
+ "engagementRate",
17440
+ "averageEngagementTimeSeconds",
17441
+ "views",
17442
+ "bounceRate",
17443
+ "eventCount",
17444
+ "keyEvents",
17445
+ "organicSessions",
17446
+ "totalUsers"
17447
+ ];
17329
17448
  var gaTrafficResponseSchema = ga4TrafficSummaryDtoSchema.extend({
17330
17449
  /**
17331
17450
  * Inclusive start (YYYY-MM-DD) of the window EVERY figure in this response
@@ -17457,6 +17576,14 @@ var gaAcquisitionResponseSchema = z49.object({
17457
17576
  offset: z49.number().int(),
17458
17577
  rows: z49.array(gaAcquisitionRowSchema)
17459
17578
  });
17579
+ function formatGaOverviewValue(key, value, options = {}) {
17580
+ if (value === null) return "\u2014";
17581
+ const unit = GA_OVERVIEW_METRICS[key].unit;
17582
+ if (unit === GaOverviewUnits.fraction) return formatPercent(value, RatioUnits.fraction);
17583
+ if (unit === GaOverviewUnits.seconds) return formatDurationSeconds(value);
17584
+ if (options.compact) return formatNumber(value);
17585
+ return value.toLocaleString("en-US", { maximumFractionDigits: 1 });
17586
+ }
17460
17587
 
17461
17588
  // ../contracts/src/competitor-matching.ts
17462
17589
  function computeCompetitorOverlap(normalized, competitorDomains, competitorAliases = /* @__PURE__ */ new Map()) {
@@ -25885,6 +26012,15 @@ export {
25885
26012
  GaMoverChangeBases,
25886
26013
  gaSocialReferralTrendResponseSchema,
25887
26014
  gaAttributionTrendResponseSchema,
26015
+ GA_OVERVIEW_WINDOWS,
26016
+ isGaOverviewWindow,
26017
+ GA_OVERVIEW_HISTORY_DAYS,
26018
+ gaOverviewComparisonDaysAgo,
26019
+ gaOverviewComparisonRanges,
26020
+ GaOverviewPeriods,
26021
+ gaOverviewResponseSchema,
26022
+ GA_OVERVIEW_METRICS,
26023
+ GA_OVERVIEW_METRIC_ORDER,
25888
26024
  gaTrafficResponseSchema,
25889
26025
  ga4AiReferralHistoryEntrySchema,
25890
26026
  ga4AiReferralDailyDtoSchema,
@@ -25894,6 +26030,7 @@ export {
25894
26030
  GaAcquisitionDimensions,
25895
26031
  gaAcquisitionQuerySchema,
25896
26032
  gaAcquisitionResponseSchema,
26033
+ formatGaOverviewValue,
25897
26034
  computeCompetitorOverlap,
25898
26035
  extractRecommendedCompetitors,
25899
26036
  competitorSuggestionsQuerySchema,
@@ -28,7 +28,7 @@ import {
28
28
  unknownUsageObservation,
29
29
  usdToMicros,
30
30
  withRetry
31
- } from "./chunk-L23GLMDH.js";
31
+ } from "./chunk-QAGZQ2DY.js";
32
32
 
33
33
  // ../provider-answer-services/src/core/http.ts
34
34
  var MAX_RESPONSE_BYTES = 8 * 1024 * 1024;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseJsonColumn
3
- } from "./chunk-DGBFU7YE.js";
3
+ } from "./chunk-37YB52NM.js";
4
4
  import {
5
5
  AI_ENGINE_DOMAINS,
6
6
  AI_ENGINE_SELF_DOMAINS,
@@ -26,7 +26,7 @@ import {
26
26
  retryAfterDelayMs,
27
27
  usageCount,
28
28
  withRetry
29
- } from "./chunk-L23GLMDH.js";
29
+ } from "./chunk-QAGZQ2DY.js";
30
30
 
31
31
  // ../provider-openai/src/normalize.ts
32
32
  import OpenAI from "openai";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
3
+ } from "./chunk-V4V7WOHY.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-QUMODKMN.js";
10
+ } from "./chunk-ADCVXKSD.js";
11
11
  import {
12
12
  isMachineFormat,
13
13
  systemError
@@ -37,7 +37,7 @@ import {
37
37
  unattributedAnswersLabel,
38
38
  uncheckedSourcesLabel,
39
39
  visibilityReportRequestSchema
40
- } from "./chunk-L23GLMDH.js";
40
+ } from "./chunk-QAGZQ2DY.js";
41
41
 
42
42
  // src/commands/measurement-plan.ts
43
43
  import crypto from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cloudflareQueueNameSchema
3
- } from "./chunk-L23GLMDH.js";
3
+ } from "./chunk-QAGZQ2DY.js";
4
4
 
5
5
  // src/cloudflare-traffic-config.ts
6
6
  function unsupportedDeliveryMode(deliveryMode) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  registeredProviderNames
3
- } from "./chunk-6ME76HJO.js";
3
+ } from "./chunk-Q5ZRUA57.js";
4
4
  import {
5
5
  configExists,
6
6
  loadConfigRaw
7
- } from "./chunk-YZP6IMCC.js";
7
+ } from "./chunk-PUTJ6LPE.js";
8
8
 
9
9
  // src/setup-state.ts
10
10
  import fs from "fs";
@@ -28,7 +28,7 @@ async function buildSetupState() {
28
28
  }
29
29
  if (dbPath && fs.existsSync(dbPath)) {
30
30
  try {
31
- const { createClient, projects, queries: queriesTable } = await import("./src-5HJMZCHY.js");
31
+ const { createClient, projects, queries: queriesTable } = await import("./src-LKNW35M6.js");
32
32
  const db = createClient(dbPath);
33
33
  project_count = db.select({ id: projects.id }).from(projects).all().length;
34
34
  const firstQuery = db.select({ id: queriesTable.id }).from(queriesTable).limit(1).all();
@@ -47,7 +47,7 @@ function queueServeHandoff() {
47
47
  async function runPendingServeHandoff(format) {
48
48
  if (!pendingServeHandoff) return;
49
49
  pendingServeHandoff = false;
50
- const { serveCommand } = await import("./serve-GORRM5KD.js");
50
+ const { serveCommand } = await import("./serve-UMF32HVA.js");
51
51
  await serveCommand(format);
52
52
  }
53
53
 
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-HGMYEDAQ.js";
9
9
  import {
10
10
  describeError
11
- } from "./chunk-L23GLMDH.js";
11
+ } from "./chunk-QAGZQ2DY.js";
12
12
 
13
13
  // src/commands/mcp.ts
14
14
  import fs from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pickProjectCitedDomain
3
- } from "./chunk-64MEDTTQ.js";
3
+ } from "./chunk-ZOVL5NAP.js";
4
4
  import {
5
5
  GBP_INSIGHT_PROVIDER,
6
6
  PERSISTENT_GAP_THRESHOLD,
@@ -14,10 +14,10 @@ import {
14
14
  mergeGscQueryTotalsWithFallback,
15
15
  readGscQueryDailyRows,
16
16
  readLatestGscDataDate
17
- } from "./chunk-T5UIEVCS.js";
17
+ } from "./chunk-VRFTXW6H.js";
18
18
  import {
19
19
  getRequestContext
20
- } from "./chunk-MHG2AFWS.js";
20
+ } from "./chunk-AOBMI5UM.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-DGBFU7YE.js";
38
+ } from "./chunk-37YB52NM.js";
39
39
  import {
40
40
  CitationStates,
41
41
  RunKinds,
@@ -45,7 +45,7 @@ import {
45
45
  effectiveDomains,
46
46
  redactLogString,
47
47
  redactLogValue
48
- } from "./chunk-L23GLMDH.js";
48
+ } from "./chunk-QAGZQ2DY.js";
49
49
 
50
50
  // src/intelligence-service.ts
51
51
  import { eq, desc, asc, and, ne, or, inArray, gte, lte, isNull, sql, exists } from "drizzle-orm";
@@ -7,27 +7,27 @@ import {
7
7
  reparseStoredResult4,
8
8
  reparseStoredResult5,
9
9
  resolveStoredApiResponse
10
- } from "./chunk-FZW44W5P.js";
10
+ } from "./chunk-RELKG6XH.js";
11
11
  import {
12
12
  loadConfig
13
- } from "./chunk-YZP6IMCC.js";
13
+ } from "./chunk-PUTJ6LPE.js";
14
14
  import {
15
15
  isMachineFormat
16
16
  } from "./chunk-HGMYEDAQ.js";
17
17
  import {
18
18
  determineCitationState
19
- } from "./chunk-64MEDTTQ.js";
19
+ } from "./chunk-ZOVL5NAP.js";
20
20
  import {
21
21
  backfillProjectAnswerMentions,
22
22
  competitorIdentityColumns,
23
23
  createRunCompetitorResolver,
24
24
  readMarketCompetitorNames,
25
25
  refreshSnapshotMentionIdentity
26
- } from "./chunk-T5UIEVCS.js";
26
+ } from "./chunk-VRFTXW6H.js";
27
27
  import {
28
28
  classifyAiUserFetch,
29
29
  classifyCrawler
30
- } from "./chunk-5DX7N34L.js";
30
+ } from "./chunk-P2OVWQKT.js";
31
31
  import {
32
32
  aiUserFetchEventsHourly,
33
33
  auditLog,
@@ -42,7 +42,7 @@ import {
42
42
  querySnapshots,
43
43
  rawEventSamples,
44
44
  runs
45
- } from "./chunk-DGBFU7YE.js";
45
+ } from "./chunk-37YB52NM.js";
46
46
  import {
47
47
  ProviderNames,
48
48
  RetrievalContracts,
@@ -59,7 +59,7 @@ import {
59
59
  extractRecommendedCompetitors,
60
60
  normalizeUrlPath,
61
61
  openRouterRouteModel
62
- } from "./chunk-L23GLMDH.js";
62
+ } from "./chunk-QAGZQ2DY.js";
63
63
 
64
64
  // src/commands/backfill.ts
65
65
  import { setImmediate as yieldToEventLoop } from "timers/promises";
@@ -437,7 +437,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
437
437
  }
438
438
  }
439
439
  async function backfillInsightsCommand(project, opts) {
440
- const { IntelligenceService } = await import("./intelligence-service-P44IBE6G.js");
440
+ const { IntelligenceService } = await import("./intelligence-service-3JS4X4Y4.js");
441
441
  const config = loadConfig();
442
442
  const db = createClient(config.database);
443
443
  migrate(db);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-PUTJ6LPE.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-L23GLMDH.js";
39
+ } from "./chunk-QAGZQ2DY.js";
40
40
 
41
41
  // ../api-client-generated/src/generated/core/bodySerializer.gen.ts
42
42
  var jsonBodySerializer = {
@@ -2777,6 +2777,11 @@ var getApiV1ProjectsByNameGaAttributionTrend = (options) => (options.client ?? c
2777
2777
  url: "/api/v1/projects/{name}/ga/attribution-trend",
2778
2778
  ...options
2779
2779
  });
2780
+ var getApiV1ProjectsByNameGaOverview = (options) => (options.client ?? client).get({
2781
+ security: [{ scheme: "bearer", type: "http" }],
2782
+ url: "/api/v1/projects/{name}/ga/overview",
2783
+ ...options
2784
+ });
2780
2785
  var getApiV1ProjectsByNameGaSessionHistory = (options) => (options.client ?? client).get({
2781
2786
  security: [{ scheme: "bearer", type: "http" }],
2782
2787
  url: "/api/v1/projects/{name}/ga/session-history",
@@ -5693,6 +5698,15 @@ var ApiClient = class {
5693
5698
  () => getApiV1ProjectsByNameGaAttributionTrend({ client: this.heyClient, path: { name: project } })
5694
5699
  );
5695
5700
  }
5701
+ async gaOverview(project, window) {
5702
+ return this.invoke(
5703
+ () => getApiV1ProjectsByNameGaOverview({
5704
+ client: this.heyClient,
5705
+ path: { name: project },
5706
+ query: window ? { window } : void 0
5707
+ })
5708
+ );
5709
+ }
5696
5710
  async gaSessionHistory(project, params) {
5697
5711
  return this.invoke(
5698
5712
  () => getApiV1ProjectsByNameGaSessionHistory({