@canonry/canonry 7.55.1 → 7.56.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 (145) hide show
  1. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +6 -0
  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-HMP43HMJ.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-6HEDNOEF.js → chunk-3BHGEP3O.js} +8 -8
  50. package/dist/{chunk-4MTFV6L2.js → chunk-3HZZ2XZD.js} +5 -5
  51. package/dist/{chunk-EULFLYW5.js → chunk-4QRF7TNW.js} +2 -2
  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-M5E4ANAN.js → chunk-BALZYIFH.js} +4 -4
  55. package/dist/{chunk-F3KBEYKI.js → chunk-C5LD76KR.js} +3 -3
  56. package/dist/{chunk-5XOGLDAG.js → chunk-CFGQOIXW.js} +3 -3
  57. package/dist/{chunk-E4T73OGZ.js → chunk-DDM6PVXJ.js} +3 -3
  58. package/dist/{chunk-T5UIEVCS.js → chunk-DOP5QNPM.js} +364 -37
  59. package/dist/{chunk-EAE4N2VX.js → chunk-F5DLOQ3B.js} +2 -2
  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-4DQFJP5E.js → chunk-RWYKUCPF.js} +338 -325
  69. package/dist/{chunk-BVWCQLRX.js → chunk-S4H7KMIH.js} +20 -20
  70. package/dist/{chunk-BR4RBXLD.js → chunk-SJLCALSV.js} +3 -3
  71. package/dist/{chunk-Y7CK6NY4.js → chunk-SVLNIJS2.js} +1 -1
  72. package/dist/{chunk-23YDBDYE.js → chunk-T7A46CVU.js} +5 -5
  73. package/dist/{chunk-TDMEFWWH.js → chunk-TPCXTUL5.js} +1 -1
  74. package/dist/{chunk-I7V5UIUZ.js → chunk-V4V7WOHY.js} +16 -2
  75. package/dist/{chunk-UOHAWN66.js → chunk-VZURJP3T.js} +1 -1
  76. package/dist/{chunk-CBJ2SBKN.js → chunk-W5FAL4LJ.js} +4 -4
  77. package/dist/{chunk-JKXX6DQS.js → chunk-WRYVESRH.js} +1 -1
  78. package/dist/{chunk-TBQTJRWL.js → chunk-XUW5SU24.js} +4 -4
  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-KGTXEDAZ.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-YEYFINMF.js} +6 -6
  88. package/dist/{demo-S6MCF65Z.js → demo-RK5OKZIY.js} +1 -1
  89. package/dist/{demo-server-TFPIU4E2.js → demo-server-JL4JLKMG.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 +485 -10
  102. package/dist/index.js +24 -24
  103. package/dist/{init-X6CJISQ7.js → init-WTLTEYSB.js} +11 -11
  104. package/dist/{insights-MQUSMDKL.js → insights-LWMDBEYC.js} +3 -3
  105. package/dist/intelligence-service-PY6QR36M.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-BIWTUO6A.js} +25 -25
  123. package/dist/{session-JXRG3LRH.js → session-T4Q6NH3K.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-PDV6BJ5Y.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
@@ -5,12 +5,12 @@ import {
5
5
  computeFactorAverages,
6
6
  layoutSiteCrawlGraphInput,
7
7
  persistSiteCrawlGraphLayout
8
- } from "./chunk-EAE4N2VX.js";
8
+ } from "./chunk-F5DLOQ3B.js";
9
9
  import {
10
10
  canonryMcpTools
11
- } from "./chunk-BM4XREGB.js";
12
- import "./chunk-JKXX6DQS.js";
13
- import "./chunk-QUMODKMN.js";
11
+ } from "./chunk-ZNAAZHNT.js";
12
+ import "./chunk-WRYVESRH.js";
13
+ import "./chunk-ADCVXKSD.js";
14
14
  import {
15
15
  PACKAGE_VERSION
16
16
  } from "./chunk-AOJU5LKX.js";
@@ -18,16 +18,16 @@ import "./chunk-HGMYEDAQ.js";
18
18
  import {
19
19
  HISTORY_WINDOW_RUNS,
20
20
  IntelligenceService
21
- } from "./chunk-23YDBDYE.js";
21
+ } from "./chunk-T7A46CVU.js";
22
22
  import {
23
23
  determineCitationState
24
- } from "./chunk-64MEDTTQ.js";
24
+ } from "./chunk-ZOVL5NAP.js";
25
25
  import {
26
26
  apiRoutes,
27
27
  assessConversionTrackingIntegrity
28
- } from "./chunk-T5UIEVCS.js";
29
- import "./chunk-5DX7N34L.js";
30
- import "./chunk-MHG2AFWS.js";
28
+ } from "./chunk-DOP5QNPM.js";
29
+ import "./chunk-P2OVWQKT.js";
30
+ import "./chunk-AOBMI5UM.js";
31
31
  import {
32
32
  adsAdGroups,
33
33
  adsAds,
@@ -61,6 +61,7 @@ import {
61
61
  gaTrafficSnapshots,
62
62
  gaTrafficSummaries,
63
63
  gaTrafficWindowSummaries,
64
+ gaWindowMetrics,
64
65
  gbpDailyMetrics,
65
66
  gbpKeywordImpressions,
66
67
  gbpKeywordMonthly,
@@ -99,9 +100,12 @@ import {
99
100
  siteCrawlPages,
100
101
  siteCrawlSnapshots,
101
102
  trafficSources
102
- } from "./chunk-DGBFU7YE.js";
103
+ } from "./chunk-37YB52NM.js";
103
104
  import {
104
105
  AI_ENGINE_DOMAINS,
106
+ GA_OVERVIEW_HISTORY_DAYS,
107
+ GA_OVERVIEW_WINDOWS,
108
+ GaOverviewPeriods,
105
109
  RunKinds,
106
110
  SiteCrawlFetchStates,
107
111
  SiteCrawlIndexabilityReasons,
@@ -123,6 +127,7 @@ import {
123
127
  extractRecommendedCompetitors,
124
128
  factorStatusFromScore,
125
129
  formatPercent,
130
+ gaOverviewComparisonRanges,
126
131
  measurementPlanV2ChecksumJson,
127
132
  measurementPlanV2Schema,
128
133
  parseStoredMeasurementPlanAnyVersion,
@@ -131,7 +136,7 @@ import {
131
136
  roundPreservingTotal,
132
137
  siteAuditPageFactorSchema,
133
138
  wilsonInterval
134
- } from "./chunk-L23GLMDH.js";
139
+ } from "./chunk-QAGZQ2DY.js";
135
140
  import "./chunk-MLKGABMK.js";
136
141
 
137
142
  // src/demo-server.ts
@@ -1190,6 +1195,7 @@ var DEMO_READ_ROUTES = /* @__PURE__ */ new Set([
1190
1195
  "/api/v1/projects/:name/ga/attribution-trend",
1191
1196
  "/api/v1/projects/:name/ga/coverage",
1192
1197
  "/api/v1/projects/:name/ga/measurement-analysis",
1198
+ "/api/v1/projects/:name/ga/overview",
1193
1199
  "/api/v1/projects/:name/ga/search-landing-pages",
1194
1200
  "/api/v1/projects/:name/ga/session-history",
1195
1201
  "/api/v1/projects/:name/ga/social-referral-history",
@@ -2551,6 +2557,101 @@ function seedGaReferrals(db, input) {
2551
2557
  }
2552
2558
  }
2553
2559
 
2560
+ // src/demo/seed-ga-overview.ts
2561
+ var DISTINCT_USER_SHARE = { "7d": 0.86, "30d": 0.71, "90d": 0.62 };
2562
+ function jitter(seed) {
2563
+ const value = Math.sin(seed * 12.9898) * 43758.5453;
2564
+ return value - Math.floor(value);
2565
+ }
2566
+ function isoDaysAgo(now, days) {
2567
+ const value = new Date(now);
2568
+ value.setUTCDate(value.getUTCDate() - days);
2569
+ return value.toISOString().slice(0, 10);
2570
+ }
2571
+ function demoDay(now, daysAgo, variant) {
2572
+ const date = isoDaysAgo(now, daysAgo);
2573
+ const age = GA_OVERVIEW_HISTORY_DAYS - daysAgo;
2574
+ const seed = age * 31 + variant * 977;
2575
+ const weekday = (/* @__PURE__ */ new Date(`${date}T00:00:00Z`)).getUTCDay();
2576
+ const rhythm = weekday === 0 || weekday === 6 ? 0.72 : weekday === 5 ? 0.95 : 1.07;
2577
+ const spike = daysAgo === 15 ? 2.3 : daysAgo === 14 ? 1.45 : daysAgo === 47 ? 1.9 : daysAgo === 46 ? 1.25 : 1;
2578
+ const sessions = Math.round((118 + variant * 14) * (1 + age * 16e-4) * rhythm * spike * (0.9 + 0.2 * jitter(seed)));
2579
+ const activeUsers = Math.round(sessions * (0.76 + 0.04 * jitter(seed + 1)));
2580
+ const engagementRate = Math.min(0.9, 0.55 + age * 2e-4 + 0.06 * jitter(seed + 2));
2581
+ return {
2582
+ date,
2583
+ sessions,
2584
+ users: activeUsers + Math.round(activeUsers * 0.03),
2585
+ activeUsers,
2586
+ newUsers: Math.round(activeUsers * (0.44 + 0.06 * jitter(seed + 3))),
2587
+ organicSessions: Math.round(sessions * (0.58 + 0.05 * jitter(seed + 4))),
2588
+ views: Math.round(sessions * (2.05 + 0.3 * jitter(seed + 5))),
2589
+ eventCount: Math.round(sessions * (7.2 + 0.8 * jitter(seed + 6))),
2590
+ keyEvents: Math.round(sessions * (0.028 + 0.01 * jitter(seed + 7))),
2591
+ engagementRate,
2592
+ bounceRate: 1 - engagementRate,
2593
+ engagementSeconds: activeUsers * (58 + 14 * jitter(seed + 8))
2594
+ };
2595
+ }
2596
+ function seedGaOverview(db, input) {
2597
+ const { projectId, prefix, syncRunId, now, variant } = input;
2598
+ const nowIso = now.toISOString();
2599
+ const days = [];
2600
+ for (let daysAgo = GA_OVERVIEW_HISTORY_DAYS; daysAgo >= 1; daysAgo--) days.push(demoDay(now, daysAgo, variant));
2601
+ for (const row of days) {
2602
+ db.insert(gaDailyTotals).values({
2603
+ id: `${prefix}-ga-total-${row.date}`,
2604
+ projectId,
2605
+ date: row.date,
2606
+ sessions: row.sessions,
2607
+ users: row.users,
2608
+ engagementRate: row.engagementRate,
2609
+ newUsers: row.newUsers,
2610
+ activeUsers: row.activeUsers,
2611
+ organicSessions: row.organicSessions,
2612
+ views: row.views,
2613
+ eventCount: row.eventCount,
2614
+ keyEvents: row.keyEvents,
2615
+ engagementSeconds: row.engagementSeconds,
2616
+ bounceRate: row.bounceRate,
2617
+ syncedAt: nowIso,
2618
+ syncRunId,
2619
+ createdAt: `${row.date}T12:00:00.000Z`
2620
+ }).run();
2621
+ }
2622
+ for (const windowKey of GA_OVERVIEW_WINDOWS) {
2623
+ const ranges = gaOverviewComparisonRanges(windowKey, now);
2624
+ for (const [period, range] of [[GaOverviewPeriods.current, ranges.current], [GaOverviewPeriods.previous, ranges.previous]]) {
2625
+ const inRange = days.filter((row) => row.date >= range.startDate && row.date <= range.endDate);
2626
+ const sum = (pick) => inRange.reduce((total, row) => total + pick(row), 0);
2627
+ const sessions = sum((row) => row.sessions);
2628
+ const activeUsers = Math.round(sum((row) => row.activeUsers) * DISTINCT_USER_SHARE[windowKey]);
2629
+ const engagementRate = sessions > 0 ? sum((row) => row.engagementRate * row.sessions) / sessions : 0;
2630
+ db.insert(gaWindowMetrics).values({
2631
+ id: `${prefix}-ga-window-metrics-${windowKey}-${period}`,
2632
+ projectId,
2633
+ windowKey,
2634
+ period,
2635
+ startDate: range.startDate,
2636
+ endDate: range.endDate,
2637
+ activeUsers,
2638
+ newUsers: sum((row) => row.newUsers),
2639
+ totalUsers: activeUsers + Math.round(activeUsers * 0.03),
2640
+ sessions,
2641
+ organicSessions: sum((row) => row.organicSessions),
2642
+ views: sum((row) => row.views),
2643
+ eventCount: sum((row) => row.eventCount),
2644
+ keyEvents: sum((row) => row.keyEvents),
2645
+ engagementRate,
2646
+ bounceRate: 1 - engagementRate,
2647
+ engagementSeconds: sum((row) => row.engagementSeconds),
2648
+ syncedAt: nowIso,
2649
+ syncRunId
2650
+ }).run();
2651
+ }
2652
+ }
2653
+ }
2654
+
2554
2655
  // src/demo/site-inventories/harbor-resorts.ts
2555
2656
  var SECTIONS = [
2556
2657
  ["rooms", ["ocean-suite", "family-suite", "garden-studio", "accessible-suite", "penthouse", "two-bedroom-villa", "king-room", "connecting-rooms"]],
@@ -3012,13 +3113,13 @@ async function seedProjectSignals(db, project, now, variant) {
3012
3113
  db.insert(gscQueryDailyTotals).values({ id: `${prefix}-gsc-query-${i}-${termIndex}`, projectId: project.id, date, query, clicks: queryClicks, impressions: queryImpressions, position: (7.1 + termIndex + i * 0.03).toFixed(2), syncedAt: nowIso, syncRunId, createdAt: at(date) }).run();
3013
3114
  db.insert(gscSearchData).values({ id: `${prefix}-gsc-page-${i}-${termIndex}`, projectId: project.id, syncRunId, date, query, page: termIndex === 0 ? root : `${root}services/`, country: "usa", device: "DESKTOP", clicks: queryClicks, impressions: queryImpressions, ctr: (queryClicks / queryImpressions).toFixed(4), position: (7.1 + termIndex).toFixed(2), createdAt: at(date) }).run();
3014
3115
  }
3015
- db.insert(gaDailyTotals).values({ id: `${prefix}-ga-total-${date}`, projectId: project.id, date, sessions: 92 + i * 4 + variant * 11, users: 71 + i * 3 + variant * 8, engagementRate: 0.58 + i * 4e-3, newUsers: 29 + i, syncedAt: nowIso, syncRunId, createdAt: at(date) }).run();
3016
3116
  db.insert(gaTrafficSnapshots).values({ id: `${prefix}-ga-page-${date}`, projectId: project.id, date, landingPage: "/", landingPageNormalized: "/", sessions: 62 + i * 3, organicSessions: 39 + i * 2, directSessions: 14 + i, users: 48 + i * 2, syncedAt: nowIso, syncRunId }).run();
3017
3117
  db.insert(gaAcquisitionDaily).values({ id: `${prefix}-ga-acquisition-${date}`, projectId: project.id, date, channelGroup: "Organic Search", source: "google", medium: "organic", hostName: project.domain, landingPage: "/", landingPageNormalized: "/", sessions: 39 + i * 2, syncedAt: nowIso, syncRunId, createdAt: at(date) }).run();
3018
3118
  db.insert(gaLeadEventsDaily).values({ id: `${prefix}-ga-lead-${date}`, projectId: project.id, date, eventName: "generate_lead", channelGroup: "Organic Search", source: "google", medium: "organic", hostName: project.domain, landingPage: "/", landingPageNormalized: "/", attributionScope: "landing-page", eventCount: 3 + i % 4, syncedAt: nowIso, syncRunId, createdAt: at(date) }).run();
3019
3119
  db.insert(bingCoverageSnapshots).values({ id: `${prefix}-bing-coverage-${date}`, projectId: project.id, syncRunId, date, indexed: 48 + i, notIndexed: 3, unknown: 2, createdAt: at(date) }).run();
3020
3120
  }
3021
3121
  seedGaReferrals(db, { projectId: project.id, prefix, syncRunId, nowIso, dates });
3122
+ seedGaOverview(db, { projectId: project.id, prefix, syncRunId, now, variant });
3022
3123
  db.insert(gscDataWatermarks).values({ projectId: project.id, dataThroughDate: dates.at(-1), syncedThroughDate: dates.at(-1), updatedAt: nowIso }).run();
3023
3124
  db.insert(gscCoverageSnapshots).values({ id: `${prefix}-gsc-coverage`, projectId: project.id, syncRunId, date: dates.at(-1), indexed: 1, notIndexed: 0, unknownPages: 0, verifiedByInspection: 1, derivedFromImpressions: 0, reasonBreakdown: {}, createdAt: nowIso }).run();
3024
3125
  db.insert(gscUrlInspections).values({ id: `${prefix}-gsc-inspection`, projectId: project.id, syncRunId, url: `${root}services/`, indexingState: "INDEXING_ALLOWED", verdict: "PASS", coverageState: "Submitted and indexed", pageFetchState: "SUCCESSFUL", robotsTxtState: "ALLOWED", crawlTime: nowIso, lastCrawlResult: "SUCCESSFUL", isMobileFriendly: true, richResults: ["Sample FAQ"], referringUrls: [root], inspectedAt: nowIso, createdAt: nowIso }).run();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -14,7 +14,7 @@ import {
14
14
  CitationStates,
15
15
  DiscoveryPromoteCompetitorSkipReasons,
16
16
  describeError
17
- } from "./chunk-L23GLMDH.js";
17
+ } from "./chunk-QAGZQ2DY.js";
18
18
  import "./chunk-MLKGABMK.js";
19
19
 
20
20
  // src/commands/discover.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
8
8
  EXIT_USER_ERROR
9
9
  } from "./chunk-HGMYEDAQ.js";
10
- import "./chunk-L23GLMDH.js";
10
+ import "./chunk-QAGZQ2DY.js";
11
11
  import "./chunk-MLKGABMK.js";
12
12
 
13
13
  // src/commands/discover-eval.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  CheckScopes,
15
15
  CheckStatuses
16
- } from "./chunk-L23GLMDH.js";
16
+ } from "./chunk-QAGZQ2DY.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
19
19
  // src/commands/doctor.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -9,7 +9,7 @@ import "./chunk-AOJU5LKX.js";
9
9
  import "./chunk-HGMYEDAQ.js";
10
10
  import {
11
11
  CitationStates
12
- } from "./chunk-L23GLMDH.js";
12
+ } from "./chunk-QAGZQ2DY.js";
13
13
  import "./chunk-MLKGABMK.js";
14
14
 
15
15
  // src/commands/evidence.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  isEndpointMissing,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-HGMYEDAQ.js";
10
10
  import {
11
11
  isRedactedNotificationUrl
12
- } from "./chunk-L23GLMDH.js";
12
+ } from "./chunk-QAGZQ2DY.js";
13
13
  import "./chunk-MLKGABMK.js";
14
14
 
15
15
  // src/commands/export-cmd.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -12,15 +12,21 @@ import {
12
12
  usageError
13
13
  } from "./chunk-HGMYEDAQ.js";
14
14
  import {
15
+ GA_OVERVIEW_METRICS,
16
+ GA_OVERVIEW_METRIC_ORDER,
15
17
  GA_SEARCH_LANDING_WINDOW_DAYS,
16
18
  GaMoverChangeBases,
19
+ RatioUnits,
17
20
  describeError,
21
+ formatGaOverviewValue,
18
22
  formatPercent,
23
+ formatSignedPercent,
19
24
  formatValidationIssues,
20
25
  gaAcquisitionQuerySchema,
21
26
  gaSearchLandingHasSearchData,
22
- gaSearchLandingPageLabel
23
- } from "./chunk-L23GLMDH.js";
27
+ gaSearchLandingPageLabel,
28
+ isGaOverviewWindow
29
+ } from "./chunk-QAGZQ2DY.js";
24
30
  import "./chunk-MLKGABMK.js";
25
31
 
26
32
  // src/commands/ga.ts
@@ -561,6 +567,37 @@ async function gaSocialReferralHistory(project, opts) {
561
567
  );
562
568
  }
563
569
  }
570
+ async function gaOverview(project, opts) {
571
+ const window = opts?.window;
572
+ if (window !== void 0 && !isGaOverviewWindow(window)) {
573
+ throw usageError(`Invalid --window "${window}": the GA4 overview supports 7d, 30d or 90d.`);
574
+ }
575
+ const client = getClient();
576
+ const result = await client.gaOverview(project, window);
577
+ if (opts?.format === "json") {
578
+ console.log(JSON.stringify(result, null, 2));
579
+ return;
580
+ } else if (opts?.format === "jsonl") {
581
+ console.log(JSON.stringify(result));
582
+ return;
583
+ }
584
+ const span = (period) => period.startDate && period.endDate ? `${period.startDate} to ${period.endDate}` : "not synced";
585
+ console.log(`GA4 overview for "${project}", ${span(result.current)} vs ${span(result.previous)}:
586
+ `);
587
+ if (result.syncedAt === null) {
588
+ console.log('No GA4 overview figures yet. Run "canonry ga sync <project>" to fetch them.');
589
+ return;
590
+ }
591
+ const labelWidth = Math.max(...GA_OVERVIEW_METRIC_ORDER.map((key) => GA_OVERVIEW_METRICS[key].label.length)) + 2;
592
+ console.log(` ${"METRIC".padEnd(labelWidth)}${"THIS PERIOD".padStart(14)}${"PREVIOUS".padStart(14)}${"CHANGE".padStart(10)}`);
593
+ console.log(` ${"\u2500".repeat(labelWidth)}${"\u2500".repeat(14)}${"\u2500".repeat(14)}${"\u2500".repeat(10)}`);
594
+ for (const key of GA_OVERVIEW_METRIC_ORDER) {
595
+ const change = result.changePct[key];
596
+ console.log(
597
+ ` ${GA_OVERVIEW_METRICS[key].label.padEnd(labelWidth)}${formatGaOverviewValue(key, result.totals[key]).padStart(14)}${formatGaOverviewValue(key, result.previousTotals[key]).padStart(14)}${(change === null ? "\u2014" : formatSignedPercent(change, RatioUnits.percent)).padStart(10)}`
598
+ );
599
+ }
600
+ }
564
601
  async function gaSessionHistory(project, opts) {
565
602
  const client = getClient();
566
603
  const result = await client.gaSessionHistory(project, rangeParams(opts));
@@ -900,6 +937,7 @@ export {
900
937
  gaCoverage,
901
938
  gaDisconnect,
902
939
  gaMeasurementAnalysis,
940
+ gaOverview,
903
941
  gaProperties,
904
942
  gaSearchLandingPages,
905
943
  gaSessionHistory,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  isMachineFormat
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  formatGbpMetricLabel,
11
11
  formatPercent
12
- } from "./chunk-L23GLMDH.js";
12
+ } from "./chunk-QAGZQ2DY.js";
13
13
  import "./chunk-MLKGABMK.js";
14
14
 
15
15
  // src/commands/gbp.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -10,7 +10,7 @@ import {
10
10
  requireGscSitemapUrls,
11
11
  resolveDiscoveredGscSitemapUrls,
12
12
  submitGscSitemapBatches
13
- } from "./chunk-JKXX6DQS.js";
13
+ } from "./chunk-WRYVESRH.js";
14
14
  import "./chunk-AOJU5LKX.js";
15
15
  import {
16
16
  CliError,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-HGMYEDAQ.js";
19
19
  import {
20
20
  formatPercent
21
- } from "./chunk-L23GLMDH.js";
21
+ } from "./chunk-QAGZQ2DY.js";
22
22
  import "./chunk-MLKGABMK.js";
23
23
 
24
24
  // src/commands/google.ts
@@ -12,7 +12,7 @@ import {
12
12
  describeError,
13
13
  formatMicros,
14
14
  formatPercent
15
- } from "./chunk-L23GLMDH.js";
15
+ } from "./chunk-QAGZQ2DY.js";
16
16
  import "./chunk-MLKGABMK.js";
17
17
 
18
18
  // src/commands/google-marketing.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -9,7 +9,7 @@ import "./chunk-AOJU5LKX.js";
9
9
  import "./chunk-HGMYEDAQ.js";
10
10
  import {
11
11
  formatPercent
12
- } from "./chunk-L23GLMDH.js";
12
+ } from "./chunk-QAGZQ2DY.js";
13
13
  import "./chunk-MLKGABMK.js";
14
14
 
15
15
  // src/commands/health-cmd.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-I7V5UIUZ.js";
4
- import "./chunk-YZP6IMCC.js";
3
+ } from "./chunk-V4V7WOHY.js";
4
+ import "./chunk-PUTJ6LPE.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -15,7 +15,7 @@ import {
15
15
  describeError,
16
16
  formatValidationIssues,
17
17
  resultsClearRequestSchema
18
- } from "./chunk-L23GLMDH.js";
18
+ } from "./chunk-QAGZQ2DY.js";
19
19
  import "./chunk-MLKGABMK.js";
20
20
 
21
21
  // src/commands/history.ts