@canonry/canonry 7.123.3 → 7.125.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 (148) hide show
  1. package/assets/agent-workspace/skills/aero/SKILL.md +8 -0
  2. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +4 -1
  3. package/assets/assets/{AccessControls-Dta-SizF.js → AccessControls-CUwUDBp8.js} +1 -1
  4. package/assets/assets/{AgentSetupPage-BCZb2JPd.js → AgentSetupPage-vbEPb6yX.js} +1 -1
  5. package/assets/assets/{AuditHistoryPanel-CKfjkLV9.js → AuditHistoryPanel-CutYGRGi.js} +1 -1
  6. package/assets/assets/{BacklinksPage-DqonUKGQ.js → BacklinksPage-Cjs8Pzjw.js} +1 -1
  7. package/assets/assets/{ChartPrimitives-QqkNW1z_.js → ChartPrimitives-Bb1-9BLv.js} +1 -1
  8. package/assets/assets/{HistoryPage-5GKX_eTg.js → HistoryPage-CMBlL0Ms.js} +1 -1
  9. package/assets/assets/{MeasurementPropertyPage-DX2Y334y.js → MeasurementPropertyPage-C9cLyWJo.js} +1 -1
  10. package/assets/assets/{ProjectPage-CVjtoNwY.js → ProjectPage-CP1-aTy-.js} +3 -3
  11. package/assets/assets/{RunsPage-DvNIMEBR.js → RunsPage-QN5bBEe4.js} +1 -1
  12. package/assets/assets/{ServerTrafficSection-CTXgnGFO.js → ServerTrafficSection-BU9Kj9MT.js} +3 -3
  13. package/assets/assets/{SettingsPage-DNRMlgyi.js → SettingsPage-C2wYKFF9.js} +1 -1
  14. package/assets/assets/ToneBadge-DXhSJm1L.js +60 -0
  15. package/assets/assets/{TrafficPage-By1Ha68i.js → TrafficPage-DEQ6eJUy.js} +1 -1
  16. package/assets/assets/{TrafficSourceDetailPage-Dd1suSAW.js → TrafficSourceDetailPage-B7sygHig.js} +1 -1
  17. package/assets/assets/{account-context-DXPWWIHe.js → account-context-BlFU3aZm.js} +1 -1
  18. package/assets/assets/{agent-trust-copy-Co71D_rr.js → agent-trust-copy-Dmj9Xp7o.js} +1 -1
  19. package/assets/assets/{card-FKB7Bzi_.js → card-B6QRK3vg.js} +1 -1
  20. package/assets/assets/{index--sAfSMDD.js → index-MwrSHGLh.js} +3 -3
  21. package/assets/assets/{preload-helper-DPpAnfor.js → preload-helper-okiXXeW4.js} +1 -1
  22. package/assets/assets/{query-client-CfqIBFn5.js → query-client-Dn5u8o4X.js} +1 -1
  23. package/assets/assets/{react-query-DPm_HpW7.js → react-query-CZrEo0vf.js} +1 -1
  24. package/assets/assets/{react-sigma_core.esm.min-6VFVUIDW.js → react-sigma_core.esm.min-D5s2grLh.js} +1 -1
  25. package/assets/assets/{server-traffic-nohNgNs2.js → server-traffic-Coma9CV_.js} +1 -1
  26. package/assets/assets/{service-DvysKXv7.js → service-LmTWkeKI.js} +1 -1
  27. package/assets/index.html +9 -9
  28. package/dist/activity-TDCPSQZ6.js +13 -0
  29. package/dist/{ads-DDVAI7ZZ.js → ads-5EFVWQAT.js} +4 -4
  30. package/dist/{agent-OEFMVVYC.js → agent-P5WEU72Q.js} +8 -8
  31. package/dist/{agent-ask-4HETA3Z7.js → agent-ask-DQBDMPXP.js} +4 -4
  32. package/dist/{agent-conversations-CCMZJIWB.js → agent-conversations-K6IX3LQW.js} +4 -4
  33. package/dist/{agent-journeys-VXHMJ3SE.js → agent-journeys-72PYZCJH.js} +4 -4
  34. package/dist/{agent-memory-MOTZGQY6.js → agent-memory-6GVOIDFK.js} +4 -4
  35. package/dist/{agent-providers-QIPWDCAJ.js → agent-providers-TZJL475J.js} +4 -4
  36. package/dist/{agent-transcript-YIMZZF7M.js → agent-transcript-L4IIMHXD.js} +4 -4
  37. package/dist/{analytics-46CHCOBG.js → analytics-7XKDB5OX.js} +4 -4
  38. package/dist/answerability-PE6Z2QHX.js +80 -0
  39. package/dist/{apply-6YQMLMGS.js → apply-LP2QYAOJ.js} +4 -4
  40. package/dist/{backfill-UDC4DTJJ.js → backfill-WNMMJT44.js} +11 -11
  41. package/dist/{backlinks-5GE5HVBE.js → backlinks-GOQOLXYQ.js} +4 -4
  42. package/dist/{bing-YUVHQVCO.js → bing-URWLP36H.js} +4 -4
  43. package/dist/{bootstrap-MT3QPFXR.js → bootstrap-3D7WYMAK.js} +11 -11
  44. package/dist/{cdp-JMYRL3XN.js → cdp-HTUSJ3YA.js} +8 -8
  45. package/dist/{chunk-UF5MG47X.js → chunk-472IO3E7.js} +1 -1
  46. package/dist/{chunk-WQYYCJGN.js → chunk-4A2GKNEM.js} +8 -4
  47. package/dist/{chunk-NUYGUUZZ.js → chunk-4AIACGWV.js} +26 -26
  48. package/dist/{chunk-VSPGQLEH.js → chunk-4JPL2SDU.js} +16 -3
  49. package/dist/{chunk-CBYBYL7A.js → chunk-5LZJGJFF.js} +1896 -1792
  50. package/dist/{chunk-XS5OT4FV.js → chunk-5NC3F52M.js} +8 -8
  51. package/dist/{chunk-N2BYOBOL.js → chunk-5QR5GEGS.js} +1 -1
  52. package/dist/{chunk-WHJA4QYX.js → chunk-6SFT25SX.js} +2 -2
  53. package/dist/{chunk-VZLBOKGW.js → chunk-74254NLQ.js} +7 -7
  54. package/dist/{chunk-W7KF43JV.js → chunk-7M5QTA7T.js} +1 -1
  55. package/dist/{chunk-7ELQ3IH4.js → chunk-APZ4FBGH.js} +5 -5
  56. package/dist/{chunk-UH3M7XSQ.js → chunk-AVJIEIAV.js} +3 -2
  57. package/dist/{chunk-JPRWAASQ.js → chunk-BEJWFEEJ.js} +1 -1
  58. package/dist/{chunk-3SKGFNCD.js → chunk-BH4562RA.js} +2 -2
  59. package/dist/{chunk-VY3SUJWI.js → chunk-C3RTFCWV.js} +387 -371
  60. package/dist/{chunk-SGLMEEQ5.js → chunk-CQXIA6T6.js} +2 -2
  61. package/dist/{chunk-WQT37J7C.js → chunk-EXKK2O2S.js} +5 -5
  62. package/dist/{chunk-XXKC266R.js → chunk-F2TGOWIW.js} +2 -2
  63. package/dist/{chunk-CBORUOY3.js → chunk-F7ZJX5O5.js} +3 -3
  64. package/dist/{chunk-B7YR57FO.js → chunk-FHJU7QBM.js} +1 -1
  65. package/dist/{chunk-2YRIEAVO.js → chunk-FJ22V5ED.js} +38 -4
  66. package/dist/{chunk-RXDYCDE6.js → chunk-GUPHVIGW.js} +1 -1
  67. package/dist/{chunk-IA7U7XXS.js → chunk-GZHLGRVL.js} +2 -2
  68. package/dist/{chunk-QNO2KO66.js → chunk-IM3LJ45S.js} +2 -2
  69. package/dist/{chunk-K77OPDGD.js → chunk-IN7LINUI.js} +1 -1
  70. package/dist/{chunk-3MYRQB3W.js → chunk-KAFKHQCB.js} +4 -4
  71. package/dist/{chunk-XAF22QBW.js → chunk-KUO2TYF4.js} +2 -2
  72. package/dist/{chunk-WAAESDBG.js → chunk-LPQYGKS4.js} +4 -4
  73. package/dist/{chunk-LJKOYEYH.js → chunk-LUA7YIQG.js} +1 -1
  74. package/dist/{chunk-JMBAYBFO.js → chunk-NVFFBVJJ.js} +4 -4
  75. package/dist/{chunk-NLW6XEUI.js → chunk-OTMAY3N2.js} +2 -2
  76. package/dist/{chunk-LBVLZWLF.js → chunk-PDWNORKC.js} +3 -3
  77. package/dist/{chunk-FB7ZRPBD.js → chunk-PR5TQK3X.js} +3 -3
  78. package/dist/{chunk-QZMAW2K7.js → chunk-TEGTNKVN.js} +4 -4
  79. package/dist/{chunk-UEIMKBG6.js → chunk-TNV7DLA7.js} +1 -1
  80. package/dist/{chunk-MFZIEBHI.js → chunk-U73NIQKU.js} +9 -6
  81. package/dist/{chunk-X6O6Q72D.js → chunk-VKB4LFYV.js} +5 -5
  82. package/dist/{chunk-EHCH77U4.js → chunk-WG6RJDVW.js} +65368 -64766
  83. package/dist/{chunk-YA54KGF3.js → chunk-ZJ6HMVLQ.js} +1 -1
  84. package/dist/{citations-XDBO5C6Y.js → citations-M7RCHTBO.js} +5 -5
  85. package/dist/{cli-catalog-I4EVHBN3.js → cli-catalog-7WND6LOK.js} +4 -4
  86. package/dist/cli-commands-VNYJHERV.js +18 -0
  87. package/dist/cli.js +14 -14
  88. package/dist/{competitor-4AIJ4XJF.js → competitor-4J3V4SNA.js} +4 -4
  89. package/dist/{content-T3RJQQZB.js → content-LN27FEUU.js} +4 -4
  90. package/dist/{dashboard-FRSMK5KF.js → dashboard-7TRWPJFS.js} +7 -7
  91. package/dist/{demo-2EBAMJXS.js → demo-HR3FBBIS.js} +3 -3
  92. package/dist/{demo-server-BLE5KA5J.js → demo-server-PXQUQJTQ.js} +13 -13
  93. package/dist/{discover-XW7THOUJ.js → discover-AY7NU3SN.js} +5 -5
  94. package/dist/{discover-eval-B2VMAP7A.js → discover-eval-OYO6HI5F.js} +4 -4
  95. package/dist/{doctor-GWFLDP6E.js → doctor-XZOIPYYT.js} +4 -4
  96. package/dist/{evidence-3E56FTV3.js → evidence-H3VPFFOR.js} +4 -4
  97. package/dist/{export-cmd-EM7KBF7D.js → export-cmd-4SQREQZL.js} +4 -4
  98. package/dist/{ga-H67UEL5Z.js → ga-DYT6WOA4.js} +4 -4
  99. package/dist/{gbp-ZIPJARZX.js → gbp-JDFCLW5K.js} +4 -4
  100. package/dist/{google-L3GPQYBY.js → google-KQAOZ5JT.js} +5 -5
  101. package/dist/{google-marketing-STFWTVH2.js → google-marketing-HQPW42FL.js} +2 -2
  102. package/dist/{health-cmd-WGTE6GDP.js → health-cmd-LDQC4ICZ.js} +5 -5
  103. package/dist/{history-X4REKZI7.js → history-3S77KY77.js} +4 -4
  104. package/dist/index.d.ts +45 -45
  105. package/dist/index.js +28 -28
  106. package/dist/{init-ZE6F37WY.js → init-4YY4YJIP.js} +13 -13
  107. package/dist/{insights-DKIQVLF7.js → insights-GUM2MK47.js} +4 -4
  108. package/dist/intelligence-service-J7OEF2BJ.js +15 -0
  109. package/dist/{journeys-IBX6DVER.js → journeys-AG4425RQ.js} +4 -4
  110. package/dist/{keys-HC56635P.js → keys-TWC2GRJX.js} +4 -4
  111. package/dist/{keyword-XCFZ6XYF.js → keyword-WKM3BZCJ.js} +4 -4
  112. package/dist/{logs-DOBMYWEL.js → logs-7FHQF7UK.js} +4 -4
  113. package/dist/{mcp-7URS3Y35.js → mcp-NRESCMDK.js} +5 -5
  114. package/dist/mcp.js +11 -11
  115. package/dist/{measurement-plan-A5XD6GTX.js → measurement-plan-2TJFII53.js} +6 -6
  116. package/dist/{notify-WB4D7YSN.js → notify-VQJKWE7U.js} +4 -4
  117. package/dist/{organic-evidence-WNHMO6EJ.js → organic-evidence-UROWCQFB.js} +4 -4
  118. package/dist/{overview-V6VDXKGL.js → overview-6CY6EEYZ.js} +7 -7
  119. package/dist/{project-FK454CW2.js → project-6G7FIFIX.js} +4 -4
  120. package/dist/{project-setup-DU3QZQIH.js → project-setup-3MPRV226.js} +4 -4
  121. package/dist/{query-XN753RNY.js → query-CXUVUGB3.js} +4 -4
  122. package/dist/{research-SQRXT62J.js → research-5OFFBHNJ.js} +4 -4
  123. package/dist/{results-export-V2SWKZ4S.js → results-export-WQ3ZI2RN.js} +4 -4
  124. package/dist/{run-V6JJFAQX.js → run-7IWLOX3K.js} +6 -6
  125. package/dist/{schedule-THBN6G7B.js → schedule-7LTYEBTO.js} +4 -4
  126. package/dist/{search-DGNFW3LV.js → search-UIGFCJOH.js} +4 -4
  127. package/dist/{serve-O4I7EIU4.js → serve-LLVRHZCB.js} +29 -29
  128. package/dist/{session-VPC2DFWP.js → session-BZCCNFCC.js} +15 -15
  129. package/dist/{settings-J2IGFFTN.js → settings-HNL5MRNK.js} +4 -4
  130. package/dist/{sitemaps-OZBTUP7H.js → sitemaps-C6QXTFX7.js} +4 -4
  131. package/dist/{skills-HDFOPJA4.js → skills-4SATHKAZ.js} +3 -3
  132. package/dist/{snapshot-GZDMZHRT.js → snapshot-77XTVMTM.js} +4 -4
  133. package/dist/{src-Y2JHYSZX.js → src-6UWY43K7.js} +2 -2
  134. package/dist/{status-3DBBZVSJ.js → status-GK5N7DBQ.js} +6 -6
  135. package/dist/{support-MAV3J2JF.js → support-TLV5QQGD.js} +2 -2
  136. package/dist/{technical-aeo-OYXGISRF.js → technical-aeo-BY5K3WCE.js} +4 -4
  137. package/dist/{telemetry-CZEUM2S6.js → telemetry-3CK2V5EZ.js} +5 -5
  138. package/dist/{tools-2TVT5ECW.js → tools-X6JCH5AF.js} +12 -12
  139. package/dist/{traffic-NORJ3VPC.js → traffic-LVMK6SEY.js} +6 -6
  140. package/dist/{trends-DWJIK23M.js → trends-7JVT5AIN.js} +4 -4
  141. package/dist/{users-IUPRSMBK.js → users-DMCJOD2L.js} +4 -4
  142. package/dist/{visibility-stats-A7CXPJAL.js → visibility-stats-UWKATLY6.js} +5 -5
  143. package/dist/{wordpress-SEFAVNRT.js → wordpress-TRWQSNRK.js} +4 -4
  144. package/package.json +1 -1
  145. package/assets/assets/ToneBadge-BT5eyW7T.js +0 -60
  146. package/dist/activity-IHLM2J7H.js +0 -13
  147. package/dist/cli-commands-Q2OPF77S.js +0 -18
  148. package/dist/intelligence-service-WWG4RBK3.js +0 -15
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  trackIntegrationConnection
3
- } from "./chunk-WAAESDBG.js";
3
+ } from "./chunk-LPQYGKS4.js";
4
4
  import {
5
5
  cliRuntimeContext
6
- } from "./chunk-IA7U7XXS.js";
6
+ } from "./chunk-GZHLGRVL.js";
7
7
 
8
8
  // src/cli-connection-telemetry.ts
9
9
  function trackCliConnection(properties) {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  runWithUsageTags
3
- } from "./chunk-VSPGQLEH.js";
3
+ } from "./chunk-4JPL2SDU.js";
4
4
  import {
5
5
  CanonryMcpToolNames,
6
6
  DEPRECATED_MCP_TOOL_ALIAS_NAMES,
7
7
  canonryMcpTools
8
- } from "./chunk-2YRIEAVO.js";
8
+ } from "./chunk-FJ22V5ED.js";
9
9
  import {
10
10
  CliError
11
- } from "./chunk-B7YR57FO.js";
11
+ } from "./chunk-FHJU7QBM.js";
12
12
  import {
13
13
  buildOpenApiDocument
14
- } from "./chunk-EHCH77U4.js";
14
+ } from "./chunk-WG6RJDVW.js";
15
15
  import {
16
16
  DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
17
17
  MeasurementPortfolioLists,
@@ -24,7 +24,7 @@ import {
24
24
  seoDatasetWithoutVendor,
25
25
  seoProviderSchema,
26
26
  truncateUtf16
27
- } from "./chunk-CBYBYL7A.js";
27
+ } from "./chunk-5LZJGJFF.js";
28
28
 
29
29
  // src/agent/tools.ts
30
30
  import { Type as Type2 } from "@earendil-works/pi-ai";
@@ -86,8 +86,8 @@ var CANONRY_MCP_TOOLKITS = [
86
86
  {
87
87
  name: "ga",
88
88
  title: "Google Analytics 4",
89
- description: "Read GA traffic (with social and creator platforms ranked by conversions per 1,000 sessions), AI/social referral history, attribution trend, session history, and GA4's Search Console landing-page report (Google organic clicks, impressions, CTR, position and active users per landing page).",
90
- whenToLoad: "Load to connect Google Analytics 4, select a property, or read traffic, referral and attribution data."
89
+ description: "Read GA traffic (with social and creator platforms ranked by conversions per 1,000 sessions), AI/social referral history, attribution trend, session history, and GA4's Search Console landing-page report (Google organic clicks, impressions, CTR, position and active users per landing page), and run a GA4 sync when stored data is stale.",
90
+ whenToLoad: "Load to connect Google Analytics 4, select a property, read traffic, referral and attribution data, or refresh it with a GA4 sync."
91
91
  },
92
92
  {
93
93
  name: "gbp",
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VSPGQLEH.js";
3
+ } from "./chunk-4JPL2SDU.js";
4
4
  import {
5
5
  isMachineFormat
6
- } from "./chunk-B7YR57FO.js";
6
+ } from "./chunk-FHJU7QBM.js";
7
7
  import {
8
8
  formatRunErrorOneLine
9
- } from "./chunk-CBYBYL7A.js";
9
+ } from "./chunk-5LZJGJFF.js";
10
10
 
11
11
  // src/commands/activity.ts
12
12
  function activityLines(activity) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CANONRY_COMMUNITY_LINKS
3
- } from "./chunk-CBYBYL7A.js";
3
+ } from "./chunk-5LZJGJFF.js";
4
4
 
5
5
  // src/cli-error.ts
6
6
  function isMachineFormat(format) {
@@ -5,14 +5,14 @@ import {
5
5
  dedupeGscSitemapUrls,
6
6
  resolveDiscoveredGscSitemapUrls,
7
7
  submitGscSitemapBatches
8
- } from "./chunk-3SKGFNCD.js";
8
+ } from "./chunk-BH4562RA.js";
9
9
  import {
10
10
  measurementDraftOperationSchema,
11
11
  runMeasurementDraftAction
12
- } from "./chunk-UF5MG47X.js";
12
+ } from "./chunk-472IO3E7.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-B7YR57FO.js";
15
+ } from "./chunk-FHJU7QBM.js";
16
16
  import {
17
17
  AGENT_MEMORY_KEY_MAX_LENGTH,
18
18
  AGENT_MEMORY_VALUE_MAX_BYTES,
@@ -50,6 +50,8 @@ import {
50
50
  adsUnresolvedOperationListQuerySchema,
51
51
  agentConversationCreateSchema,
52
52
  agentJourneysQuerySchema,
53
+ answerabilityDtoSchema,
54
+ answerabilityQuerySchema,
53
55
  apiKeyDtoSchema,
54
56
  auditHistoryQuerySchema,
55
57
  backlinkSourceSchema,
@@ -79,6 +81,7 @@ import {
79
81
  gaMeasurementAnalysisWindowSchema,
80
82
  gaMeasurementHostScopeSchema,
81
83
  gaSearchLandingWindowSchema,
84
+ gaSyncOnlySchema,
82
85
  googleAdsMetricsWindowSchema,
83
86
  googleConnectionDtoSchema,
84
87
  googleOAuthStartResponseSchema,
@@ -215,7 +218,7 @@ import {
215
218
  trendSurfaceSchema,
216
219
  visibilityCompareSelectionSchema,
217
220
  visibilityReportRequestSchema
218
- } from "./chunk-CBYBYL7A.js";
221
+ } from "./chunk-5LZJGJFF.js";
219
222
 
220
223
  // src/mcp/tool-registry.ts
221
224
  import { z as z2 } from "zod";
@@ -677,6 +680,11 @@ var gbpLocationSelectionInputSchema = z2.object({
677
680
  locationName: z2.string().min(1).regex(/^locations\//, 'locationName must be a Google resource name like "locations/12345"'),
678
681
  selected: z2.boolean()
679
682
  });
683
+ var gaSyncInputSchema = z2.object({
684
+ project: projectNameSchema,
685
+ days: z2.number().int().positive().max(180).optional().describe("Days of history to refresh, 1 to 180. Defaults to 30. Days an earlier sync already settled are reused, not fetched again."),
686
+ only: gaSyncOnlySchema.optional().describe("Refresh traffic plus one breakdown: ai, social or search-landing (traffic alone with traffic). Omit for the full sync.")
687
+ });
680
688
  var gbpSyncInputSchema = z2.object({
681
689
  project: projectNameSchema,
682
690
  locationNames: z2.array(z2.string()).optional(),
@@ -1920,6 +1928,21 @@ var rawCanonryMcpTools = [
1920
1928
  openApiOperations: ["GET /api/v1/status"],
1921
1929
  handler: (client, input) => client.getStatus({ project: input.project, problems: input.problems })
1922
1930
  }),
1931
+ defineTool({
1932
+ name: "canonry_answerability",
1933
+ title: "Check which data can answer a question",
1934
+ description: "Read this before answering a question that may need data Canonry does not have. Lists each evidence signal for the project (AI answers, sentiment, Search Console, GA4, Bing, server-side traffic, Business Profile, Agent Readiness, SEO estimates, backlinks, ChatGPT ads, Google Ads, Tag Manager) with what it answers, its state (ready, stale, failing, empty, not-set-up), the dates it holds, the tools that read it and the next step when it is not ready. Pass from and to (YYYY-MM-DD) to see how much of a period each signal covers. Answer only from signals that are ready and cover the period; when none covers the question, say what is missing instead of estimating. Stored data only: no provider call.",
1935
+ access: "read",
1936
+ tier: "core",
1937
+ inputSchema: answerabilityQuerySchema.safeExtend({ project: projectNameSchema }),
1938
+ outputSchema: answerabilityDtoSchema,
1939
+ annotations: readAnnotations(),
1940
+ openApiOperations: ["GET /api/v1/projects/{name}/answerability"],
1941
+ handler: (client, input) => {
1942
+ const { project, ...query } = input;
1943
+ return client.getAnswerability(project, query);
1944
+ }
1945
+ }),
1923
1946
  defineTool({
1924
1947
  name: "canonry_project_export",
1925
1948
  title: "Export project config",
@@ -2990,6 +3013,17 @@ var rawCanonryMcpTools = [
2990
3013
  openApiOperations: ["GET /api/v1/projects/{name}/ga/status"],
2991
3014
  handler: (client, input) => client.gaStatus(input.project)
2992
3015
  }),
3016
+ defineTool({
3017
+ name: "canonry_ga_sync",
3018
+ title: "Sync GA4 data",
3019
+ description: "Run a GA4 sync for a project now and wait for it to finish: traffic by landing page, daily totals, the overview windows, AI and social referrals, acquisition, lead events and the Search Console landing-page report, stored for every GA read. Calls GA4 for several reports; usually under a minute, a few minutes when GA4 is slow. It also runs daily as part of the data refresh, so trigger it when stored data is missing or stale (canonry_ga_status lastSyncedAt, or canonry_doctor ga.data.recent-data). Returns rows written, the effective days, and each measurement component's status; keptWindows names overview windows GA4 did not answer, whose earlier totals stay stored with their own dates.",
3020
+ access: "write",
3021
+ tier: "ga",
3022
+ inputSchema: gaSyncInputSchema,
3023
+ annotations: writeAnnotations({ idempotentHint: true, openWorldHint: true }),
3024
+ openApiOperations: ["POST /api/v1/projects/{name}/ga/sync"],
3025
+ handler: (client, input) => client.gaSync(input.project, { days: input.days, only: input.only })
3026
+ }),
2993
3027
  defineTool({
2994
3028
  name: "canonry_ga_oauth_start",
2995
3029
  title: "Authorize Google Analytics 4",
@@ -2,7 +2,7 @@ import {
2
2
  CitationStates,
3
3
  hostMatchesDomain,
4
4
  isCitationMeasurable
5
- } from "./chunk-CBYBYL7A.js";
5
+ } from "./chunk-5LZJGJFF.js";
6
6
 
7
7
  // src/citation-utils.ts
8
8
  function pickProjectCitedDomain(citedDomains, projectDomains) {
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  loadConfigRaw,
7
7
  saveConfigPatch
8
- } from "./chunk-NLW6XEUI.js";
8
+ } from "./chunk-OTMAY3N2.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-CBYBYL7A.js";
21
+ } from "./chunk-5LZJGJFF.js";
22
22
 
23
23
  // src/runtime-context.ts
24
24
  function cliRuntimeContext(env = process.env, stdio = process) {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  CliError,
6
6
  isMachineFormat
7
- } from "./chunk-B7YR57FO.js";
7
+ } from "./chunk-FHJU7QBM.js";
8
8
  import {
9
9
  CodingAgents,
10
10
  SKILL_MANIFEST_FILENAME,
@@ -15,7 +15,7 @@ import {
15
15
  formatCanonryPluginUpdateHint,
16
16
  formatCanonryPluginVersionMismatch,
17
17
  skillsClientSchema
18
- } from "./chunk-CBYBYL7A.js";
18
+ } from "./chunk-5LZJGJFF.js";
19
19
 
20
20
  // src/commands/skills.ts
21
21
  import crypto from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cloudflareQueueNameSchema
3
- } from "./chunk-CBYBYL7A.js";
3
+ } from "./chunk-5LZJGJFF.js";
4
4
 
5
5
  // src/cloudflare-traffic-config.ts
6
6
  function unsupportedDeliveryMode(deliveryMode) {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VSPGQLEH.js";
3
+ } from "./chunk-4JPL2SDU.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-UF5MG47X.js";
10
+ } from "./chunk-472IO3E7.js";
11
11
  import {
12
12
  isMachineFormat,
13
13
  systemError
14
- } from "./chunk-B7YR57FO.js";
14
+ } from "./chunk-FHJU7QBM.js";
15
15
  import {
16
16
  CITATION_NOT_MEASURED_REASON,
17
17
  MeasurementEvidenceShapes,
@@ -39,7 +39,7 @@ import {
39
39
  unattributedAnswersLabel,
40
40
  uncheckedSourcesLabel,
41
41
  visibilityReportRequestSchema
42
- } from "./chunk-CBYBYL7A.js";
42
+ } from "./chunk-5LZJGJFF.js";
43
43
 
44
44
  // src/commands/measurement-plan.ts
45
45
  import crypto from "crypto";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getRequestContext
3
- } from "./chunk-UEIMKBG6.js";
3
+ } from "./chunk-TNV7DLA7.js";
4
4
  import {
5
5
  diagnosticIdentity,
6
6
  redactLogString,
7
7
  redactLogValue
8
- } from "./chunk-CBYBYL7A.js";
8
+ } from "./chunk-5LZJGJFF.js";
9
9
 
10
10
  // ../api-routes/src/runtime-logger.ts
11
11
  import { format } from "util";
@@ -2,13 +2,13 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-IA7U7XXS.js";
5
+ } from "./chunk-GZHLGRVL.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-NLW6XEUI.js";
8
+ } from "./chunk-OTMAY3N2.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
- } from "./chunk-UEIMKBG6.js";
11
+ } from "./chunk-TNV7DLA7.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-CBYBYL7A.js";
22
+ } from "./chunk-5LZJGJFF.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-CBYBYL7A.js";
3
+ } from "./chunk-5LZJGJFF.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)";
@@ -2,10 +2,10 @@ import {
2
2
  SNAPSHOT_CELL_LEGEND,
3
3
  citationGlyph,
4
4
  mentionGlyph
5
- } from "./chunk-LJKOYEYH.js";
5
+ } from "./chunk-LUA7YIQG.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-VSPGQLEH.js";
8
+ } from "./chunk-4JPL2SDU.js";
9
9
  import {
10
10
  emitJsonl
11
11
  } from "./chunk-Z7IUAJOF.js";
@@ -13,7 +13,7 @@ import {
13
13
  CliError,
14
14
  EXIT_SYSTEM_ERROR,
15
15
  isMachineFormat
16
- } from "./chunk-B7YR57FO.js";
16
+ } from "./chunk-FHJU7QBM.js";
17
17
  import {
18
18
  MentionIdentities,
19
19
  OUTSTANDING_PROVIDER_BATCH_STATUSES,
@@ -23,7 +23,7 @@ import {
23
23
  formatMicros,
24
24
  formatRunErrorOneLine,
25
25
  resolveProviderInput
26
- } from "./chunk-CBYBYL7A.js";
26
+ } from "./chunk-5LZJGJFF.js";
27
27
 
28
28
  // src/commands/run.ts
29
29
  function getClient() {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CliError
3
- } from "./chunk-B7YR57FO.js";
3
+ } from "./chunk-FHJU7QBM.js";
4
4
  import {
5
5
  AGENT_PROVIDER_IDS,
6
6
  AgentProviderIds,
@@ -22,7 +22,7 @@ import {
22
22
  resolveProviderModel,
23
23
  schedulableRunKindSchema,
24
24
  sentimentEvaluatorProviderSchema
25
- } from "./chunk-CBYBYL7A.js";
25
+ } from "./chunk-5LZJGJFF.js";
26
26
 
27
27
  // ../config/src/index.ts
28
28
  import { z as z5 } from "zod";
@@ -2,18 +2,18 @@ import {
2
2
  configExists,
3
3
  loadConfigRaw,
4
4
  saveConfigPatch
5
- } from "./chunk-NLW6XEUI.js";
5
+ } from "./chunk-OTMAY3N2.js";
6
6
  import {
7
7
  BUNDLED_SKILL_NAMES,
8
8
  installSkills
9
- } from "./chunk-QNO2KO66.js";
9
+ } from "./chunk-IM3LJ45S.js";
10
10
  import {
11
11
  PACKAGE_VERSION
12
12
  } from "./chunk-AOJU5LKX.js";
13
13
  import {
14
14
  SKILL_MANIFEST_FILENAME,
15
15
  SkillsClients
16
- } from "./chunk-CBYBYL7A.js";
16
+ } from "./chunk-5LZJGJFF.js";
17
17
 
18
18
  // src/skills-autosync.ts
19
19
  import fs from "fs";
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-VJWDBFSL.js";
5
5
  import {
6
6
  createApiClient
7
- } from "./chunk-VSPGQLEH.js";
7
+ } from "./chunk-4JPL2SDU.js";
8
8
  import {
9
9
  CliError,
10
10
  isMachineFormat
11
- } from "./chunk-B7YR57FO.js";
11
+ } from "./chunk-FHJU7QBM.js";
12
12
  import {
13
13
  describeError
14
- } from "./chunk-CBYBYL7A.js";
14
+ } from "./chunk-5LZJGJFF.js";
15
15
 
16
16
  // src/commands/mcp.ts
17
17
  import fs from "fs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  registeredProviderNames
3
- } from "./chunk-JPRWAASQ.js";
3
+ } from "./chunk-BEJWFEEJ.js";
4
4
  import {
5
5
  configExists,
6
6
  loadConfigRaw
7
- } from "./chunk-NLW6XEUI.js";
7
+ } from "./chunk-OTMAY3N2.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-Y2JHYSZX.js");
31
+ const { createClient, projects, queries: queriesTable } = await import("./src-6UWY43K7.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-O4I7EIU4.js");
50
+ const { serveCommand } = await import("./serve-LLVRHZCB.js");
51
51
  await serveCommand(format);
52
52
  }
53
53
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  USAGE_TELEMETRY_HEADERS,
3
3
  redactLogString
4
- } from "./chunk-CBYBYL7A.js";
4
+ } from "./chunk-5LZJGJFF.js";
5
5
 
6
6
  // ../api-routes/src/request-context.ts
7
7
  import { AsyncLocalStorage } from "async_hooks";
@@ -3,29 +3,29 @@ import {
3
3
  CANONRY_MCP_TOOLKIT_NAMES,
4
4
  isCanonryMcpToolkitName,
5
5
  resolveAeroSkillDir
6
- } from "./chunk-XXKC266R.js";
6
+ } from "./chunk-F2TGOWIW.js";
7
7
  import {
8
8
  createApiClient,
9
9
  runWithUsageTags
10
- } from "./chunk-VSPGQLEH.js";
10
+ } from "./chunk-4JPL2SDU.js";
11
11
  import {
12
12
  canonryMcpTools,
13
13
  mcpOutputSchema,
14
14
  toolOperationAccess
15
- } from "./chunk-2YRIEAVO.js";
15
+ } from "./chunk-FJ22V5ED.js";
16
16
  import {
17
17
  PACKAGE_VERSION
18
18
  } from "./chunk-AOJU5LKX.js";
19
19
  import {
20
20
  CliError
21
- } from "./chunk-B7YR57FO.js";
21
+ } from "./chunk-FHJU7QBM.js";
22
22
  import {
23
23
  OperationAccesses,
24
24
  RESEARCH_RUN_SCOPE,
25
25
  isReadOnlyKey,
26
26
  restrictedWriteScopes,
27
27
  upgradeCaveatFor
28
- } from "./chunk-CBYBYL7A.js";
28
+ } from "./chunk-5LZJGJFF.js";
29
29
 
30
30
  // src/mcp/server.ts
31
31
  import { randomUUID } from "crypto";
@@ -324,6 +324,7 @@ var OPERATIONS_GUIDE = {
324
324
  ],
325
325
  "next": [
326
326
  "canonry_status",
327
+ "canonry_answerability",
327
328
  "canonry_projects_list",
328
329
  "canonry_project_overview"
329
330
  ],
@@ -343,6 +344,7 @@ var OPERATIONS_GUIDE = {
343
344
  ],
344
345
  "next": [
345
346
  "canonry_projects_list",
347
+ "canonry_answerability",
346
348
  "canonry_project_overview",
347
349
  "canonry_project_history"
348
350
  ],
@@ -423,6 +425,7 @@ var OPERATIONS_GUIDE = {
423
425
  ],
424
426
  "next": [
425
427
  "canonry_projects_list",
428
+ "canonry_answerability",
426
429
  "canonry_project_overview",
427
430
  "canonry_organic_evidence"
428
431
  ],
@@ -430,7 +433,7 @@ var OPERATIONS_GUIDE = {
430
433
  "aero",
431
434
  "reporting"
432
435
  ],
433
- "guidance": "Build the requested summary from stored project overview, organic evidence, and the relevant visibility, measurement, integration, or traffic reads. Retain evidence dates, scope, sample sizes, missing data, and separate mention/citation signals; do not generate fresh runs implicitly."
436
+ "guidance": "Read canonry_answerability for the report's period first, so the summary names any source that is missing or behind. Build the requested summary from stored project overview, organic evidence, and the relevant visibility, measurement, integration, or traffic reads. Retain evidence dates, scope, sample sizes, missing data, and separate mention/citation signals; do not generate fresh runs implicitly."
434
437
  },
435
438
  "start": {
436
439
  "keywords": [
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pickProjectCitedDomain
3
- } from "./chunk-RXDYCDE6.js";
3
+ } from "./chunk-GUPHVIGW.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-XAF22QBW.js";
6
+ } from "./chunk-KUO2TYF4.js";
7
7
  import {
8
8
  GBP_INSIGHT_PROVIDER,
9
9
  PERSISTENT_GAP_THRESHOLD,
@@ -18,7 +18,7 @@ import {
18
18
  notScopedRun,
19
19
  readGscQueryDailyRows,
20
20
  readLatestGscDataDate
21
- } from "./chunk-EHCH77U4.js";
21
+ } from "./chunk-WG6RJDVW.js";
22
22
  import {
23
23
  competitors,
24
24
  gbpDailyMetrics,
@@ -36,7 +36,7 @@ import {
36
36
  queries,
37
37
  querySnapshots,
38
38
  runs
39
- } from "./chunk-W7KF43JV.js";
39
+ } from "./chunk-7M5QTA7T.js";
40
40
  import {
41
41
  CitationStates,
42
42
  RunKinds,
@@ -45,7 +45,7 @@ import {
45
45
  effectiveDomains,
46
46
  isCitationStateMeasured,
47
47
  readCitationState
48
- } from "./chunk-CBYBYL7A.js";
48
+ } from "./chunk-5LZJGJFF.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";