@canonry/canonry 7.104.4 → 7.105.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 (140) hide show
  1. package/assets/agent-workspace/skills/aero/SKILL.md +11 -0
  2. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +11 -2
  3. package/assets/assets/{AccessControls-hIgRxmCY.js → AccessControls-BL5Ohk1o.js} +1 -1
  4. package/assets/assets/{AgentSetupPage-BEYkXfMI.js → AgentSetupPage-DOlYQxIa.js} +1 -1
  5. package/assets/assets/{AuditHistoryPanel-B4RSWnDd.js → AuditHistoryPanel-YeKe0CdO.js} +1 -1
  6. package/assets/assets/{BacklinksPage-CU089NxY.js → BacklinksPage--cebdWId.js} +1 -1
  7. package/assets/assets/{ChartPrimitives-DfRYjnsb.js → ChartPrimitives-DXCNvCNq.js} +1 -1
  8. package/assets/assets/{HistoryPage-CtOK4bCH.js → HistoryPage-Bv5Nsm5B.js} +1 -1
  9. package/assets/assets/{MeasurementPropertyPage-C-XeLSL1.js → MeasurementPropertyPage-Czyfi0Cy.js} +1 -1
  10. package/assets/assets/{ProjectPage-HpOMuZBk.js → ProjectPage-DJe32kjK.js} +9 -9
  11. package/assets/assets/{RunsPage-CRnzj7dU.js → RunsPage-BBMqOkFs.js} +1 -1
  12. package/assets/assets/{ServerTrafficSection-x_7QecPB.js → ServerTrafficSection-DGWMEhEc.js} +1 -1
  13. package/assets/assets/{SettingsPage-BumPFoPz.js → SettingsPage-9PzZpqL2.js} +1 -1
  14. package/assets/assets/{ToneBadge-BoscSKWW.js → ToneBadge-DRmwaKRk.js} +2 -2
  15. package/assets/assets/{TrafficPage-CxEO_Y2c.js → TrafficPage-Cejn8Fnv.js} +1 -1
  16. package/assets/assets/{TrafficSourceDetailPage-D9me5kmv.js → TrafficSourceDetailPage-DIeCgXFX.js} +1 -1
  17. package/assets/assets/{account-context-n5iq1FxI.js → account-context-CfBDR6hl.js} +1 -1
  18. package/assets/assets/{agent-trust-copy-BWQkohiR.js → agent-trust-copy-DMeyA6SQ.js} +1 -1
  19. package/assets/assets/{card-CnZ3aU1G.js → card-CtxpcVrz.js} +1 -1
  20. package/assets/assets/{index-DPz1idfn.css → index-BfcVhcae.css} +1 -1
  21. package/assets/assets/{index-BEk3rfJu.js → index-C9zbuGlp.js} +3 -3
  22. package/assets/assets/{query-client-CTKEElDQ.js → query-client-HEvA-XRl.js} +1 -1
  23. package/assets/assets/{react-query-D-G5epGz.js → react-query-D-u-W_MC.js} +1 -1
  24. package/assets/assets/{react-sigma_core.esm.min-4Kr0Zt4p.js → react-sigma_core.esm.min-nHUsVjqN.js} +1 -1
  25. package/assets/assets/{server-traffic-Deh27adW.js → server-traffic-CiE8LDtb.js} +1 -1
  26. package/assets/assets/{service-Dur_GX4q.js → service-CpuZCGWk.js} +1 -1
  27. package/assets/index.html +9 -9
  28. package/dist/{ads-LPBLEQBU.js → ads-SDMYCM7U.js} +3 -3
  29. package/dist/{agent-NUQQRFIX.js → agent-KAJ7N4K5.js} +7 -7
  30. package/dist/{agent-ask-RLIEXI6J.js → agent-ask-VRBAA3LD.js} +3 -3
  31. package/dist/{agent-conversations-HXWBYGSK.js → agent-conversations-UJKZIBTJ.js} +3 -3
  32. package/dist/{agent-journeys-DZ4OK6RG.js → agent-journeys-ZEXWTKIX.js} +3 -3
  33. package/dist/{agent-memory-QASRDHY6.js → agent-memory-ZLNG67QP.js} +3 -3
  34. package/dist/{agent-providers-UNJBT65F.js → agent-providers-DC26H7L7.js} +3 -3
  35. package/dist/{agent-transcript-IYQDRVLL.js → agent-transcript-LQ7MD25B.js} +3 -3
  36. package/dist/{analytics-TGZAZQ4V.js → analytics-ECTVTHBL.js} +3 -3
  37. package/dist/{apply-OVSQL4ND.js → apply-PU5SMSQT.js} +3 -3
  38. package/dist/{backfill-QEYMNKWT.js → backfill-UOBJ74WV.js} +10 -10
  39. package/dist/{backlinks-TAEE5NW2.js → backlinks-5ACAELA4.js} +3 -3
  40. package/dist/{bing-Y47PPL2K.js → bing-EJAYJY2Q.js} +3 -3
  41. package/dist/{bootstrap-6SVPLI2X.js → bootstrap-67SLL4TQ.js} +10 -10
  42. package/dist/{cdp-AQQZBCSJ.js → cdp-RRK6SI5J.js} +7 -7
  43. package/dist/{chunk-MXCBG4Z7.js → chunk-237UH5XU.js} +1 -1
  44. package/dist/{chunk-2P2YNCJB.js → chunk-2NIALUNF.js} +1 -1
  45. package/dist/{chunk-VFT4AFA6.js → chunk-342SRLS4.js} +4 -4
  46. package/dist/{chunk-ZGAOBFAT.js → chunk-36E6ONH7.js} +1 -1
  47. package/dist/{chunk-WMZYHYKE.js → chunk-3YWBDKEM.js} +2 -2
  48. package/dist/{chunk-T52VRYI6.js → chunk-4RSE4WVE.js} +4 -4
  49. package/dist/{chunk-7X5YFLPM.js → chunk-4ZJ5OBHI.js} +2 -2
  50. package/dist/{chunk-VZXLMIPS.js → chunk-AP6NF7XZ.js} +3 -3
  51. package/dist/{chunk-FS65HPCW.js → chunk-CIRM6CYI.js} +2 -2
  52. package/dist/{chunk-FEHIXKYR.js → chunk-DNMJVN2G.js} +3 -3
  53. package/dist/{chunk-NWOPXLH3.js → chunk-DXHZAE7B.js} +3 -3
  54. package/dist/{chunk-MUBVE7E5.js → chunk-FX2WXFRS.js} +2 -2
  55. package/dist/{chunk-34ZFWATV.js → chunk-HOBBF66T.js} +1 -1
  56. package/dist/{chunk-5NU6BWCL.js → chunk-HUOJB576.js} +5 -5
  57. package/dist/{chunk-BNSSB6H4.js → chunk-IDSJ2UL7.js} +1 -1
  58. package/dist/{chunk-BDPFPPPQ.js → chunk-ITTJLJAV.js} +1 -1
  59. package/dist/{chunk-OBDOHDDJ.js → chunk-JCRR4R6U.js} +2 -2
  60. package/dist/{chunk-GOKYM7T5.js → chunk-KNDCEG3S.js} +923 -605
  61. package/dist/{chunk-7OGHD6Z2.js → chunk-KRMQHEHA.js} +22 -22
  62. package/dist/{chunk-VBNULTRM.js → chunk-KVBHT4RM.js} +1 -1
  63. package/dist/{chunk-ANAZ6ANA.js → chunk-KWZY4DGQ.js} +366 -366
  64. package/dist/{chunk-QZKQL65D.js → chunk-LOXYLU6K.js} +1 -1
  65. package/dist/{chunk-HM25YXM4.js → chunk-NF6H2HWJ.js} +7 -7
  66. package/dist/{chunk-CPLY2O4L.js → chunk-NW7CHK4V.js} +121 -4
  67. package/dist/{chunk-W6ORSOMS.js → chunk-QWVE4LB4.js} +1 -1
  68. package/dist/{chunk-2TFDE7HA.js → chunk-RMH7VXGG.js} +5 -5
  69. package/dist/{chunk-PQ6AORS2.js → chunk-T3NIHALJ.js} +4 -4
  70. package/dist/{chunk-TXH5BMVL.js → chunk-T45PRIHN.js} +3 -3
  71. package/dist/{chunk-T6TLIZEO.js → chunk-TBJKDTRW.js} +1 -1
  72. package/dist/{chunk-N5YFWTDQ.js → chunk-UPS2WHB3.js} +1 -1
  73. package/dist/{chunk-73SA4H5D.js → chunk-VTQMKA45.js} +1 -1
  74. package/dist/{chunk-HUH6676A.js → chunk-VZS2C7IA.js} +4 -4
  75. package/dist/{chunk-5KKU3YTF.js → chunk-XDCUJC4K.js} +4 -4
  76. package/dist/{chunk-O3HY3VSN.js → chunk-XZTCLR3G.js} +1 -1
  77. package/dist/{chunk-4PLVST2T.js → chunk-YO3SECAK.js} +2 -2
  78. package/dist/{chunk-2FWYWGIR.js → chunk-YW6J3STO.js} +1 -1
  79. package/dist/{chunk-KUNOMUUG.js → chunk-ZYG7V5RY.js} +7 -7
  80. package/dist/{citations-EPWMDINT.js → citations-F5X6YTXT.js} +4 -4
  81. package/dist/{cli-catalog-LOONVW4I.js → cli-catalog-3TK244WS.js} +3 -3
  82. package/dist/{cli-commands-3GFP4QFF.js → cli-commands-PFMEKY4J.js} +7 -7
  83. package/dist/cli.js +13 -13
  84. package/dist/{competitor-XUXFF3N5.js → competitor-3BLGH7MK.js} +3 -3
  85. package/dist/{content-X4VUI6Q4.js → content-7QRCYQT6.js} +3 -3
  86. package/dist/{dashboard-B5MO4JD6.js → dashboard-C42KGKG4.js} +6 -6
  87. package/dist/{demo-QTTEHPTG.js → demo-XYLOAE34.js} +1 -1
  88. package/dist/{demo-server-NQG5YAQE.js → demo-server-PTXOU2UU.js} +65 -15
  89. package/dist/{discover-Q53AI7AP.js → discover-LYRDQHZJ.js} +4 -4
  90. package/dist/{discover-eval-72A2EKS5.js → discover-eval-DPXWK35F.js} +3 -3
  91. package/dist/{doctor-PSJW22ME.js → doctor-57L3Q4O2.js} +3 -3
  92. package/dist/{evidence-BVP2S73D.js → evidence-K6K7BVTX.js} +3 -3
  93. package/dist/{export-cmd-3LZAJ24E.js → export-cmd-LIBMZHI5.js} +3 -3
  94. package/dist/{ga-VRCCYIOW.js → ga-U56VPNRX.js} +46 -5
  95. package/dist/{gbp-OK4CJ6JF.js → gbp-MRFDJ2HK.js} +3 -3
  96. package/dist/{google-GULK767N.js → google-QQDJNZ3O.js} +4 -4
  97. package/dist/{google-marketing-TQPEDQY6.js → google-marketing-MXFKQNQF.js} +1 -1
  98. package/dist/{health-cmd-IC5IQKBN.js → health-cmd-FECKLV5E.js} +4 -4
  99. package/dist/{history-EAEYLEVG.js → history-S3UJGH7B.js} +3 -3
  100. package/dist/index.d.ts +25 -25
  101. package/dist/index.js +26 -26
  102. package/dist/{init-SXOJJUNJ.js → init-X4WUARKM.js} +12 -12
  103. package/dist/{insights-ICTSKQD6.js → insights-2UAIY4EV.js} +3 -3
  104. package/dist/intelligence-service-64ZLE37W.js +16 -0
  105. package/dist/{journeys-H2BOW42B.js → journeys-44U2W4WQ.js} +3 -3
  106. package/dist/{keys-OTJZGBGX.js → keys-JKUNWJQN.js} +3 -3
  107. package/dist/{keyword-ZZ4SPADG.js → keyword-5W3PDFCZ.js} +3 -3
  108. package/dist/{logs-IH74KKBP.js → logs-67S2VOW2.js} +3 -3
  109. package/dist/{mcp-U736ZMVE.js → mcp-RBZEEULW.js} +4 -4
  110. package/dist/mcp.js +10 -10
  111. package/dist/{measurement-plan-EJ5H5S3X.js → measurement-plan-H2WHPS6M.js} +5 -5
  112. package/dist/{notify-PVTESANP.js → notify-5MHM43II.js} +3 -3
  113. package/dist/{organic-evidence-PGDCDE7I.js → organic-evidence-PT37WD5D.js} +3 -3
  114. package/dist/{overview-3QPRHIML.js → overview-YSGLVOQL.js} +5 -5
  115. package/dist/{project-FLF4NQYK.js → project-I7VQRW4I.js} +3 -3
  116. package/dist/{project-setup-HMIMB7LA.js → project-setup-ABNKGLKM.js} +3 -3
  117. package/dist/{query-WFNBO5IA.js → query-6HCKL366.js} +3 -3
  118. package/dist/{research-NOC77N5S.js → research-4D3GNHI6.js} +3 -3
  119. package/dist/{results-export-MQ372TJX.js → results-export-CHHMZU7K.js} +3 -3
  120. package/dist/{run-KQEZAMFC.js → run-TYIRQZD6.js} +5 -5
  121. package/dist/{schedule-RXJR7S5O.js → schedule-JLTS2OH4.js} +3 -3
  122. package/dist/{search-AVPIH3SH.js → search-LRBIRDUD.js} +3 -3
  123. package/dist/{serve-Z3WLVD46.js → serve-X7MZKZ3B.js} +27 -27
  124. package/dist/{session-HEV5XBJI.js → session-F3FYX2QK.js} +14 -14
  125. package/dist/{settings-FOPSQVXA.js → settings-K5SUV5Y4.js} +3 -3
  126. package/dist/{sitemaps-GOA3STCM.js → sitemaps-YWWBI67M.js} +3 -3
  127. package/dist/{skills-XJKTJ6LH.js → skills-ECQG3MBE.js} +2 -2
  128. package/dist/{snapshot-4W4FLLRV.js → snapshot-62BXAS6C.js} +3 -3
  129. package/dist/{src-VTBSLT3E.js → src-R53436JE.js} +2 -2
  130. package/dist/{status-DMP7OCRB.js → status-TNOLPP73.js} +5 -5
  131. package/dist/{technical-aeo-IBYKY4VO.js → technical-aeo-YDVU5TWC.js} +3 -3
  132. package/dist/{telemetry-PXSA7GSQ.js → telemetry-WBO4WDQB.js} +4 -4
  133. package/dist/{tools-B3B7I7OU.js → tools-BI3B6WLL.js} +11 -11
  134. package/dist/{traffic-USZLDNGC.js → traffic-CPSRCVU7.js} +5 -5
  135. package/dist/{trends-FT5WL6EZ.js → trends-TD6UGUYE.js} +3 -3
  136. package/dist/{users-C5QGTAEE.js → users-NPOXIJ3C.js} +3 -3
  137. package/dist/{visibility-stats-FJRKQAIB.js → visibility-stats-VHU4F3VL.js} +4 -4
  138. package/dist/{wordpress-DII4DF43.js → wordpress-OLPTUY5E.js} +3 -3
  139. package/package.json +1 -1
  140. package/dist/intelligence-service-MFMPHWQM.js +0 -16
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.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-CPLY2O4L.js";
24
+ } from "./chunk-NW7CHK4V.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-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.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-CPLY2O4L.js";
17
+ } from "./chunk-NW7CHK4V.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-BNSSB6H4.js";
4
+ } from "./chunk-IDSJ2UL7.js";
5
5
  import {
6
6
  isMachineFormat
7
7
  } from "./chunk-HGMYEDAQ.js";
8
8
  import {
9
9
  anyUsersExist
10
- } from "./chunk-GOKYM7T5.js";
11
- import "./chunk-O3HY3VSN.js";
12
- import "./chunk-N5YFWTDQ.js";
10
+ } from "./chunk-KNDCEG3S.js";
11
+ import "./chunk-XZTCLR3G.js";
12
+ import "./chunk-UPS2WHB3.js";
13
13
  import {
14
14
  createClient
15
- } from "./chunk-2P2YNCJB.js";
16
- import "./chunk-CPLY2O4L.js";
15
+ } from "./chunk-2NIALUNF.js";
16
+ import "./chunk-NW7CHK4V.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-NQG5YAQE.js");
43
+ const { createDemoServer } = await import("./demo-server-PTXOU2UU.js");
44
44
  const app = await createDemoServer({ trustProxy });
45
45
  let stopping = false;
46
46
  const stop = () => {
@@ -5,12 +5,12 @@ import {
5
5
  computeFactorAverages,
6
6
  layoutSiteCrawlGraphInput,
7
7
  persistSiteCrawlGraphLayout
8
- } from "./chunk-MUBVE7E5.js";
8
+ } from "./chunk-FX2WXFRS.js";
9
9
  import {
10
10
  canonryMcpTools
11
- } from "./chunk-HUH6676A.js";
12
- import "./chunk-ZGAOBFAT.js";
13
- import "./chunk-73SA4H5D.js";
11
+ } from "./chunk-VZS2C7IA.js";
12
+ import "./chunk-36E6ONH7.js";
13
+ import "./chunk-VTQMKA45.js";
14
14
  import {
15
15
  PACKAGE_VERSION
16
16
  } from "./chunk-AOJU5LKX.js";
@@ -18,17 +18,17 @@ import "./chunk-HGMYEDAQ.js";
18
18
  import {
19
19
  HISTORY_WINDOW_RUNS,
20
20
  IntelligenceService
21
- } from "./chunk-2TFDE7HA.js";
21
+ } from "./chunk-RMH7VXGG.js";
22
22
  import {
23
23
  determineCitationState
24
- } from "./chunk-W6ORSOMS.js";
25
- import "./chunk-OBDOHDDJ.js";
24
+ } from "./chunk-QWVE4LB4.js";
25
+ import "./chunk-JCRR4R6U.js";
26
26
  import {
27
27
  apiRoutes,
28
28
  assessConversionTrackingIntegrity
29
- } from "./chunk-GOKYM7T5.js";
30
- import "./chunk-O3HY3VSN.js";
31
- import "./chunk-N5YFWTDQ.js";
29
+ } from "./chunk-KNDCEG3S.js";
30
+ import "./chunk-XZTCLR3G.js";
31
+ import "./chunk-UPS2WHB3.js";
32
32
  import {
33
33
  adsAdGroups,
34
34
  adsAds,
@@ -104,7 +104,7 @@ import {
104
104
  siteCrawlPages,
105
105
  siteCrawlSnapshots,
106
106
  trafficSources
107
- } from "./chunk-2P2YNCJB.js";
107
+ } from "./chunk-2NIALUNF.js";
108
108
  import {
109
109
  AI_ENGINE_DOMAINS,
110
110
  CitationStates,
@@ -153,7 +153,7 @@ import {
153
153
  siteAuditPageFactorSchema,
154
154
  wilsonInterval,
155
155
  withLegacyAgentReadinessPaths
156
- } from "./chunk-CPLY2O4L.js";
156
+ } from "./chunk-NW7CHK4V.js";
157
157
  import "./chunk-MLKGABMK.js";
158
158
 
159
159
  // src/demo-server.ts
@@ -2532,6 +2532,16 @@ var SOCIAL_ROWS = [
2532
2532
  { source: "l.facebook.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 7 },
2533
2533
  { source: "nextdoor.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 7 }
2534
2534
  ];
2535
+ var NON_SOCIAL_CHANNEL_PLATFORM_ROWS = [
2536
+ { source: "FB_Ads", medium: "paidsocial", channelGroup: "Paid Other", daily: 6 },
2537
+ { source: "shopmy", medium: "(not set)", channelGroup: "Unassigned", daily: 2 }
2538
+ ];
2539
+ var PLATFORM_LEAD_ROWS = [
2540
+ { source: "FB_Ads", medium: "paidsocial", channelGroup: "Paid Other", leadEvery: 3 },
2541
+ { source: "shopmy", medium: "(not set)", channelGroup: "Unassigned", leadEvery: 2 },
2542
+ { source: "ig", medium: "social", channelGroup: "Organic Social", leadEvery: 4 },
2543
+ { source: "Pinterest", medium: "PaidSocial", channelGroup: "Paid Social", leadEvery: 7 }
2544
+ ];
2535
2545
  var AI_ROWS = [
2536
2546
  { source: AI_ENGINE_DOMAINS.chatgpt, medium: "ai-assistant", channelGroup: "AI Assistant", daily: 3 },
2537
2547
  { source: AI_ENGINE_DOMAINS.perplexity, medium: "ai-assistant", channelGroup: "AI Assistant", daily: 1 },
@@ -2547,10 +2557,26 @@ var AI_ROWS = [
2547
2557
  ];
2548
2558
  var AI_LANDING_PAGES = ["/", "/services/", "/guides/"];
2549
2559
  function seedGaReferrals(db, input) {
2550
- const { projectId, prefix, syncRunId, nowIso, dates } = input;
2560
+ const { projectId, prefix, syncRunId, nowIso, dates, hostName } = input;
2561
+ const acquisition = (id, date, row, sessions) => db.insert(gaAcquisitionDaily).values({
2562
+ id,
2563
+ projectId,
2564
+ date,
2565
+ channelGroup: row.channelGroup,
2566
+ source: row.source,
2567
+ medium: row.medium,
2568
+ hostName,
2569
+ landingPage: "/",
2570
+ landingPageNormalized: "/",
2571
+ sessions,
2572
+ syncedAt: nowIso,
2573
+ syncRunId,
2574
+ createdAt: nowIso
2575
+ }).run();
2551
2576
  for (const [day2, date] of dates.entries()) {
2552
2577
  for (const [index, row] of SOCIAL_ROWS.entries()) {
2553
2578
  if (day2 % (row.every ?? 1) !== 0) continue;
2579
+ const sessions = row.daily + (day2 % 3 === 0 ? 1 : 0);
2554
2580
  db.insert(gaSocialReferrals).values({
2555
2581
  id: `${prefix}-ga-social-${day2}-${index}`,
2556
2582
  projectId,
@@ -2558,11 +2584,35 @@ function seedGaReferrals(db, input) {
2558
2584
  source: row.source,
2559
2585
  medium: row.medium,
2560
2586
  channelGroup: row.channelGroup,
2561
- sessions: row.daily + (day2 % 3 === 0 ? 1 : 0),
2587
+ sessions,
2562
2588
  users: row.daily,
2563
2589
  syncedAt: nowIso,
2564
2590
  syncRunId
2565
2591
  }).run();
2592
+ acquisition(`${prefix}-ga-acquisition-social-${day2}-${index}`, date, row, sessions);
2593
+ }
2594
+ for (const [index, row] of NON_SOCIAL_CHANNEL_PLATFORM_ROWS.entries()) {
2595
+ acquisition(`${prefix}-ga-acquisition-platform-${day2}-${index}`, date, row, row.daily + day2 % 2);
2596
+ }
2597
+ for (const [index, row] of PLATFORM_LEAD_ROWS.entries()) {
2598
+ if (day2 % row.leadEvery !== 0) continue;
2599
+ db.insert(gaLeadEventsDaily).values({
2600
+ id: `${prefix}-ga-lead-platform-${day2}-${index}`,
2601
+ projectId,
2602
+ date,
2603
+ eventName: "generate_lead",
2604
+ channelGroup: row.channelGroup,
2605
+ source: row.source,
2606
+ medium: row.medium,
2607
+ hostName,
2608
+ landingPage: "/",
2609
+ landingPageNormalized: "/",
2610
+ attributionScope: "landing-page",
2611
+ eventCount: 1,
2612
+ syncedAt: nowIso,
2613
+ syncRunId,
2614
+ createdAt: nowIso
2615
+ }).run();
2566
2616
  }
2567
2617
  for (const [index, row] of AI_ROWS.entries()) {
2568
2618
  if (day2 % (row.every ?? 1) !== 0) continue;
@@ -3157,7 +3207,7 @@ async function seedProjectSignals(db, project, now, variant) {
3157
3207
  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: gaRunId, createdAt: at(date) }).run();
3158
3208
  db.insert(bingCoverageSnapshots).values({ id: `${prefix}-bing-coverage-${date}`, projectId: project.id, syncRunId: bingRunId, date, indexed: 48 + i, notIndexed: 3, unknown: 2, createdAt: at(date) }).run();
3159
3209
  }
3160
- seedGaReferrals(db, { projectId: project.id, prefix, syncRunId: gaRunId, nowIso, dates });
3210
+ seedGaReferrals(db, { projectId: project.id, prefix, syncRunId: gaRunId, nowIso, dates, hostName: project.domain });
3161
3211
  seedGaOverview(db, { projectId: project.id, prefix, syncRunId: gaRunId, now, variant });
3162
3212
  db.insert(gscDataWatermarks).values({ projectId: project.id, dataThroughDate: dates.at(-1), syncedThroughDate: dates.at(-1), updatedAt: nowIso }).run();
3163
3213
  db.insert(gscCoverageSnapshots).values({ id: `${prefix}-gsc-coverage`, projectId: project.id, syncRunId: gscRunId, date: dates.at(-1), indexed: 1, notIndexed: 0, unknownPages: 0, verifiedByInspection: 1, derivedFromImpressions: 0, reasonBreakdown: {}, createdAt: nowIso }).run();
@@ -2,11 +2,11 @@ import {
2
2
  SNAPSHOT_CELL_LEGEND,
3
3
  citationGlyph,
4
4
  mentionGlyph
5
- } from "./chunk-BDPFPPPQ.js";
5
+ } from "./chunk-ITTJLJAV.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-4PLVST2T.js";
9
- import "./chunk-BNSSB6H4.js";
8
+ } from "./chunk-YO3SECAK.js";
9
+ import "./chunk-IDSJ2UL7.js";
10
10
  import {
11
11
  emitJsonl
12
12
  } from "./chunk-Z7IUAJOF.js";
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  DiscoveryPromoteCompetitorSkipReasons,
20
20
  describeError
21
- } from "./chunk-CPLY2O4L.js";
21
+ } from "./chunk-NW7CHK4V.js";
22
22
  import "./chunk-MLKGABMK.js";
23
23
 
24
24
  // src/commands/discover.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.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-CPLY2O4L.js";
10
+ import "./chunk-NW7CHK4V.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-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.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-CPLY2O4L.js";
16
+ } from "./chunk-NW7CHK4V.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-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -11,7 +11,7 @@ import {
11
11
  CitationStates,
12
12
  citationStateToCited,
13
13
  isCitationStateMeasured
14
- } from "./chunk-CPLY2O4L.js";
14
+ } from "./chunk-NW7CHK4V.js";
15
15
  import "./chunk-MLKGABMK.js";
16
16
 
17
17
  // src/commands/evidence.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.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-CPLY2O4L.js";
12
+ } from "./chunk-NW7CHK4V.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-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -26,7 +26,7 @@ import {
26
26
  gaSearchLandingHasSearchData,
27
27
  gaSearchLandingPageLabel,
28
28
  isGaOverviewWindow
29
- } from "./chunk-CPLY2O4L.js";
29
+ } from "./chunk-NW7CHK4V.js";
30
30
  import "./chunk-MLKGABMK.js";
31
31
 
32
32
  // src/commands/ga.ts
@@ -298,7 +298,8 @@ async function gaTraffic(project, opts) {
298
298
  console.log(JSON.stringify(result, null, 2));
299
299
  return;
300
300
  }
301
- if (result.topPages.length === 0 && result.aiReferrals.length === 0 && result.aiReferralLandingPages.length === 0 && result.socialReferrals.length === 0) {
301
+ const platformBlock = result.socialPlatformPerformance?.status === "ready" && result.socialPlatformPerformance.platforms.length > 0 ? result.socialPlatformPerformance : null;
302
+ if (result.topPages.length === 0 && result.aiReferrals.length === 0 && result.aiReferralLandingPages.length === 0 && result.socialReferrals.length === 0 && !platformBlock) {
302
303
  if (!result.lastSyncedAt) {
303
304
  console.log('No GA4 traffic data. Run "canonry ga sync <project>" first.');
304
305
  } else {
@@ -374,6 +375,9 @@ async function gaTraffic(project, opts) {
374
375
  }
375
376
  console.log();
376
377
  }
378
+ if (platformBlock) {
379
+ printSocialPlatformRanking(platformBlock);
380
+ }
377
381
  if (result.topPages.length > 0) {
378
382
  const pageWidth = Math.min(60, Math.max(15, ...result.topPages.map((r) => r.landingPage.length)));
379
383
  console.log(` TOP LANDING PAGES`);
@@ -397,7 +401,8 @@ var AI_ENGINE_LEAD_RATE_NOTES = {
397
401
  "channel-leads-unfiltered": "lead events are channel-level here, so host and path filters narrow sessions but not leads; rerun with --host-scope all and no --path-prefix for lead rates.",
398
402
  "paid-split-needs-landing-page": "lead events are channel-level here, so the paid/organic split cannot read landing-page utm tags, and some AI sessions were paid only by those tags (counted as organic above); tag paid AI links with a paid utm_medium such as cpc for lead rates.",
399
403
  "sessions-behind-leads": "stored lead events run past the last stored session date, so recent leads have no sessions to divide by; rerun the GA sync for lead rates.",
400
- "sessions-missing-on-lead-days": "some days in this window have stored lead events but no stored sessions, so those leads have no sessions to divide by; rerun the GA sync with --days covering the window for lead rates."
404
+ "sessions-missing-on-lead-days": "some days in this window have stored lead events but no stored sessions, so those leads have no sessions to divide by; rerun the GA sync with --days covering the window for lead rates.",
405
+ "sessions-before-leads": "this window starts before the first stored lead event, so sessions on the earlier days have no conversions to count; pick a window inside the lead history for rates."
401
406
  };
402
407
  function hasAiEngineLeadRows(block) {
403
408
  return block.engines.length > 0 || block.unattributed.sources.length > 0;
@@ -518,6 +523,42 @@ async function gaAiReferralHistory(project, opts) {
518
523
  );
519
524
  }
520
525
  }
526
+ var SOCIAL_PLATFORM_RATE_NOTES = {
527
+ "no-data": "no conversion events are measured for this project, so platforms are not ranked.",
528
+ "sync-not-ready": "the latest GA4 sessions or conversions sync did not succeed, so rates are hidden until both are current; rerun the GA sync.",
529
+ "channel-leads-unfiltered": "conversions cannot follow a host or path filter here, so rates are hidden.",
530
+ "paid-split-needs-landing-page": "the paid and organic split needs landing pages GA4 did not report, so rates are hidden.",
531
+ "sessions-behind-leads": "stored conversions run past the last stored sessions, so rates are hidden until the GA4 sync catches up.",
532
+ "sessions-missing-on-lead-days": "some days have conversions but no stored sessions, so rates are hidden; rerun the GA sync with --days covering the window.",
533
+ "sessions-before-leads": "this window starts before conversions were first stored, so rates are hidden; pick a shorter window."
534
+ };
535
+ function printSocialPlatformRanking(block) {
536
+ const rows = [
537
+ ...block.platforms.filter((row) => row.rank !== null).sort((a, b) => a.rank - b.rank),
538
+ ...block.platforms.filter((row) => row.rank === null)
539
+ ];
540
+ const labelWidth = Math.min(30, Math.max("PLATFORM".length, "Whole site".length, ...rows.map((row) => row.label.length)));
541
+ const count = (value) => value === null ? "\u2014" : String(value);
542
+ console.log(" SOCIAL PLATFORMS BY CONVERSIONS (every GA4 channel)");
543
+ console.log(` Counted events: ${block.countedEventNames.length > 0 ? block.countedEventNames.join(", ") : "none"}. Ranked from ${block.minSessions.toLocaleString("en-US")} sessions.`);
544
+ console.log(` ${"RANK".padEnd(6)}${"PLATFORM".padEnd(labelWidth)} ${"SESSIONS".padEnd(10)}${"PAID".padEnd(9)}${"CONVERSIONS".padEnd(13)}PER 1K`);
545
+ console.log(` ${"\u2500".repeat(4)} ${"\u2500".repeat(labelWidth)} ${"\u2500".repeat(10)}${"\u2500".repeat(9)}${"\u2500".repeat(13)}${"\u2500".repeat(6)}`);
546
+ for (const row of rows) {
547
+ const label = row.label.length > labelWidth ? row.label.slice(0, labelWidth - 3) + "..." : row.label;
548
+ const rank = row.rank === null ? "-" : String(row.rank);
549
+ const note = !row.enoughSessions && block.conversionRateAvailable ? " too few sessions" : "";
550
+ console.log(
551
+ ` ${rank.padEnd(6)}${label.padEnd(labelWidth)} ${String(row.sessions).padEnd(10)}${String(row.paidSessions).padEnd(9)}${count(row.conversions).padEnd(13)}${row.conversionsPerThousandSessionsDisplay}${note}`
552
+ );
553
+ }
554
+ console.log(
555
+ ` ${"".padEnd(6)}${"Whole site".padEnd(labelWidth)} ${count(block.site.sessions).padEnd(10)}${"".padEnd(9)}${count(block.site.conversions).padEnd(13)}${block.site.conversionsPerThousandSessionsDisplay}`
556
+ );
557
+ if (block.conversionRateUnavailableReason) {
558
+ console.log(` Note: ${SOCIAL_PLATFORM_RATE_NOTES[block.conversionRateUnavailableReason]}`);
559
+ }
560
+ console.log();
561
+ }
521
562
  function printReferralGroups(heading, column, groups) {
522
563
  const labelWidth = Math.min(30, Math.max(column.length, ...groups.map((group) => group.label.length)));
523
564
  console.log(` ${heading}`);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  isMachineFormat
@@ -11,7 +11,7 @@ import {
11
11
  formatPercent,
12
12
  gbpLocalPostCreateSchema,
13
13
  validationError
14
- } from "./chunk-CPLY2O4L.js";
14
+ } from "./chunk-NW7CHK4V.js";
15
15
  import "./chunk-MLKGABMK.js";
16
16
 
17
17
  // src/commands/gbp.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.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-ZGAOBFAT.js";
13
+ } from "./chunk-36E6ONH7.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-CPLY2O4L.js";
21
+ } from "./chunk-NW7CHK4V.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-CPLY2O4L.js";
15
+ } from "./chunk-NW7CHK4V.js";
16
16
  import "./chunk-MLKGABMK.js";
17
17
 
18
18
  // src/commands/google-marketing.ts
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  citedBase
3
- } from "./chunk-BDPFPPPQ.js";
3
+ } from "./chunk-ITTJLJAV.js";
4
4
  import {
5
5
  createApiClient
6
- } from "./chunk-4PLVST2T.js";
7
- import "./chunk-BNSSB6H4.js";
6
+ } from "./chunk-YO3SECAK.js";
7
+ import "./chunk-IDSJ2UL7.js";
8
8
  import {
9
9
  emitJsonl
10
10
  } from "./chunk-Z7IUAJOF.js";
@@ -12,7 +12,7 @@ import "./chunk-AOJU5LKX.js";
12
12
  import "./chunk-HGMYEDAQ.js";
13
13
  import {
14
14
  formatPercent
15
- } from "./chunk-CPLY2O4L.js";
15
+ } from "./chunk-NW7CHK4V.js";
16
16
  import "./chunk-MLKGABMK.js";
17
17
 
18
18
  // src/commands/health-cmd.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-4PLVST2T.js";
4
- import "./chunk-BNSSB6H4.js";
3
+ } from "./chunk-YO3SECAK.js";
4
+ import "./chunk-IDSJ2UL7.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-CPLY2O4L.js";
18
+ } from "./chunk-NW7CHK4V.js";
19
19
  import "./chunk-MLKGABMK.js";
20
20
 
21
21
  // src/commands/history.ts