@canonry/canonry 7.126.0 → 7.128.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 (154) hide show
  1. package/assets/agent-workspace/skills/aero/references/getting-started.md +2 -3
  2. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +6 -1
  3. package/assets/agent-workspace/skills/canonry/references/getting-started.md +2 -3
  4. package/assets/agent-workspace/skills/canonry/references/indexing.md +4 -1
  5. package/assets/assets/{AccessControls-ogV5Gz4X.js → AccessControls-QW1RtXqK.js} +2 -2
  6. package/assets/assets/{AgentSetupPage-DEVRQ04Z.js → AgentSetupPage-BFO6Jx36.js} +4 -4
  7. package/assets/assets/{AuditHistoryPanel-DyXqEWpq.js → AuditHistoryPanel-Cn9Tnnxo.js} +1 -1
  8. package/assets/assets/{BacklinksPage-B4powgfU.js → BacklinksPage-Bv12EM38.js} +1 -1
  9. package/assets/assets/{ChartPrimitives-De8aCfZp.js → ChartPrimitives-DIAAi1Eq.js} +1 -1
  10. package/assets/assets/{HistoryPage-CN2VzZeY.js → HistoryPage-Bfn3nVjo.js} +1 -1
  11. package/assets/assets/MeasurementPropertyPage-Cwyl4MS5.js +4 -0
  12. package/assets/assets/ProjectPage-JCH068IS.js +15 -0
  13. package/assets/assets/{RunsPage-p4FSGSzR.js → RunsPage-B56n3Xwl.js} +1 -1
  14. package/assets/assets/{ServerTrafficSection-xzcv0S85.js → ServerTrafficSection-JZ7tID1A.js} +3 -3
  15. package/assets/assets/{SettingsPage-C6Oh-XQT.js → SettingsPage-C1XRb6UB.js} +1 -1
  16. package/assets/assets/{ToneBadge-CxostV9z.js → ToneBadge-DSr49xyr.js} +2 -2
  17. package/assets/assets/{TrafficPage-D5_wyrCY.js → TrafficPage-BIbFPquR.js} +1 -1
  18. package/assets/assets/{TrafficSourceDetailPage-CGbQlo1a.js → TrafficSourceDetailPage-DpJyjmCY.js} +1 -1
  19. package/assets/assets/{account-context-Mya_uodz.js → account-context-CRwUczVQ.js} +1 -1
  20. package/assets/assets/{agent-trust-copy-DjdjfF7q.js → agent-trust-copy-DduiTpc0.js} +1 -1
  21. package/assets/assets/{card-B20lVlLX.js → card-DtN_FyC4.js} +1 -1
  22. package/assets/assets/index-CmdxqiD3.js +43 -0
  23. package/assets/assets/{preload-helper-DN5snQJ-.js → preload-helper-CqQPtzI4.js} +1 -1
  24. package/assets/assets/{query-client-2aOrFPOz.js → query-client-BcqjBQN8.js} +1 -1
  25. package/assets/assets/react-query-Bt-PaSFW.js +1 -0
  26. package/assets/assets/{react-sigma_core.esm.min-DHJ5hJS1.js → react-sigma_core.esm.min-BTRnvmn2.js} +1 -1
  27. package/assets/assets/{server-traffic-Cx7fQ2OF.js → server-traffic-D598cM_v.js} +1 -1
  28. package/assets/assets/service--wSlHsiA.js +1 -0
  29. package/assets/index.html +9 -9
  30. package/dist/activity-2KFFWLYN.js +13 -0
  31. package/dist/{ads-7JYMSESY.js → ads-PB3VFUPV.js} +4 -4
  32. package/dist/{agent-3AIKIBOZ.js → agent-VOL7SOEQ.js} +8 -8
  33. package/dist/{agent-ask-F7OMYKXU.js → agent-ask-F46ERE3W.js} +4 -4
  34. package/dist/{agent-conversations-W3WMXSDE.js → agent-conversations-T5Q43627.js} +4 -4
  35. package/dist/{agent-journeys-SNUC3IGG.js → agent-journeys-GVEVJ5J2.js} +4 -4
  36. package/dist/{agent-memory-PFVKTCZC.js → agent-memory-XXN7QXNM.js} +4 -4
  37. package/dist/{agent-providers-TV3SV75C.js → agent-providers-U6XIM5JI.js} +4 -4
  38. package/dist/{agent-transcript-X6RMTVV5.js → agent-transcript-ONEA6JBO.js} +4 -4
  39. package/dist/{analytics-U6CLZESN.js → analytics-XWVTM57N.js} +4 -4
  40. package/dist/{answerability-YJSPCE4T.js → answerability-GNYSELX5.js} +4 -4
  41. package/dist/{apply-VBX4BJCQ.js → apply-WXW4KWUK.js} +4 -4
  42. package/dist/{backfill-VY4PWO5A.js → backfill-SWDR5M4O.js} +11 -11
  43. package/dist/{backlinks-U7SI3OOX.js → backlinks-5LIBLUEG.js} +4 -4
  44. package/dist/{bing-HONIKTUQ.js → bing-4U4ODKGV.js} +4 -4
  45. package/dist/{bootstrap-K7LRU624.js → bootstrap-FY72AHVW.js} +11 -11
  46. package/dist/{cdp-VVETHJFO.js → cdp-H5WMBYIF.js} +8 -8
  47. package/dist/{chunk-474HYXOY.js → chunk-2PLJ4QG5.js} +4 -4
  48. package/dist/{chunk-WCRFVAYB.js → chunk-2T4OGJWP.js} +1 -1
  49. package/dist/{chunk-UQXWOIPI.js → chunk-2VDYFOKB.js} +8 -8
  50. package/dist/{chunk-2BSAW7H4.js → chunk-3GE4Z4J3.js} +5 -5
  51. package/dist/{chunk-CWV3JV2S.js → chunk-3ZNDJ4OM.js} +5 -5
  52. package/dist/{chunk-N7NL4SCF.js → chunk-425BZPKK.js} +5 -5
  53. package/dist/{chunk-SBAQZ6PY.js → chunk-5WDU7ZML.js} +7 -7
  54. package/dist/{chunk-V7LDAQAK.js → chunk-6TXHNNKW.js} +4 -4
  55. package/dist/{chunk-RKM6YN3X.js → chunk-A36PZKKS.js} +2 -2
  56. package/dist/{chunk-I3MJISLF.js → chunk-BAO3PHQP.js} +2 -2
  57. package/dist/{chunk-CFGVH4K5.js → chunk-DWFCDUE2.js} +372 -372
  58. package/dist/{chunk-VNCDWND5.js → chunk-DY2Q3VIM.js} +2 -2
  59. package/dist/{chunk-MVTPR7ZY.js → chunk-FIF4N7DP.js} +1 -1
  60. package/dist/{chunk-QQXE2GUM.js → chunk-FMS7CIEK.js} +2 -2
  61. package/dist/{chunk-6ZJKEUGC.js → chunk-G2NIO2J3.js} +2 -2
  62. package/dist/{chunk-2WT4IQD7.js → chunk-GCBFSIKI.js} +1 -1
  63. package/dist/{chunk-DRNCCGUW.js → chunk-GKQ4CYUM.js} +22 -2
  64. package/dist/{chunk-4IC3FHM5.js → chunk-GPPTW3HU.js} +4 -4
  65. package/dist/{chunk-GNQZBQ5X.js → chunk-GRX2DION.js} +4 -4
  66. package/dist/{chunk-OU7TJX25.js → chunk-GTX7C5Y5.js} +5 -5
  67. package/dist/{chunk-3CYLLBEC.js → chunk-GW4CL5ZO.js} +106 -25
  68. package/dist/{chunk-VRBKUMA3.js → chunk-HQEH4YRO.js} +1 -1
  69. package/dist/{chunk-LLKNKNEB.js → chunk-HS2HYFPX.js} +79 -4
  70. package/dist/{chunk-IOXAYJ4Z.js → chunk-IIL4NKRU.js} +4 -4
  71. package/dist/{chunk-UQG5TWLM.js → chunk-K3YHPTKL.js} +2 -2
  72. package/dist/{chunk-DP2SUDRW.js → chunk-LWRPSAVC.js} +1 -1
  73. package/dist/{chunk-6JQ5ZM5H.js → chunk-M4IAXLBT.js} +3 -3
  74. package/dist/{chunk-F2TGOWIW.js → chunk-MG4COK23.js} +2 -2
  75. package/dist/{chunk-V3GIVVXW.js → chunk-NEJEHRPT.js} +2 -2
  76. package/dist/{chunk-2CRAVATO.js → chunk-OKIAF573.js} +1 -1
  77. package/dist/{chunk-2RF4RB53.js → chunk-PWXLKW2F.js} +3 -3
  78. package/dist/{chunk-5UJ5CG6J.js → chunk-QWD3ABAW.js} +1 -1
  79. package/dist/{chunk-SF2KLXZM.js → chunk-QXRI6DRE.js} +6 -6
  80. package/dist/{chunk-DU26WF7A.js → chunk-RDCEFEXP.js} +3 -3
  81. package/dist/{chunk-N3QGWIWL.js → chunk-RMLGMB5B.js} +1 -1
  82. package/dist/{chunk-CF6R6DUA.js → chunk-RPAWPX7B.js} +1 -1
  83. package/dist/{chunk-FVPJ5CRH.js → chunk-X6DD3OIR.js} +3 -2
  84. package/dist/{chunk-KTRRC5P4.js → chunk-XONND7NT.js} +3 -3
  85. package/dist/{chunk-NCOW55N3.js → chunk-ZKIEOEUZ.js} +2 -2
  86. package/dist/{citations-UREMIMHU.js → citations-622BWQTR.js} +5 -5
  87. package/dist/{cli-catalog-JXAESW3A.js → cli-catalog-ACK3FVAX.js} +4 -4
  88. package/dist/cli-commands-IM2ISRXZ.js +18 -0
  89. package/dist/cli.js +14 -14
  90. package/dist/{competitor-DIM5OLHQ.js → competitor-QYZIWXGC.js} +4 -4
  91. package/dist/{content-A2V3BCU6.js → content-PJASAMIV.js} +4 -4
  92. package/dist/{dashboard-ZOBWCHMG.js → dashboard-FQOS3J4B.js} +7 -7
  93. package/dist/{demo-6OE36ZR7.js → demo-ZGGVSKN4.js} +3 -3
  94. package/dist/{demo-server-GIUEYO52.js → demo-server-TLXLEPOI.js} +13 -13
  95. package/dist/{discover-Y67SDM3U.js → discover-ZLDSXDRI.js} +5 -5
  96. package/dist/{discover-eval-Z6DAQNRE.js → discover-eval-7F5Q3RXS.js} +4 -4
  97. package/dist/{doctor-XBAVQYHA.js → doctor-3KSQZDZ3.js} +4 -4
  98. package/dist/{evidence-OYRYCO3J.js → evidence-BJZIRJ4U.js} +4 -4
  99. package/dist/{export-cmd-MZRJI63B.js → export-cmd-BYPGV4IU.js} +4 -4
  100. package/dist/{ga-VPVM2NI3.js → ga-A3BAZCYH.js} +4 -4
  101. package/dist/{gbp-SKZQA4E5.js → gbp-U6VCRAFN.js} +4 -4
  102. package/dist/{google-6LWEJTAC.js → google-UNQZBUGS.js} +5 -5
  103. package/dist/{google-marketing-X2FOU4W2.js → google-marketing-QSIRQAVH.js} +2 -2
  104. package/dist/{health-cmd-XF5PCISV.js → health-cmd-Z5KTTJQU.js} +5 -5
  105. package/dist/{history-TP6O4LMA.js → history-IIGUZMOM.js} +4 -4
  106. package/dist/index.d.ts +90 -70
  107. package/dist/index.js +27 -27
  108. package/dist/{init-YMFUF4YJ.js → init-GGKLWNRS.js} +13 -13
  109. package/dist/{insights-ZKTREJVG.js → insights-UQ234W6T.js} +4 -4
  110. package/dist/intelligence-service-S3GTOTGQ.js +15 -0
  111. package/dist/{journeys-T65PNRFS.js → journeys-2EZIRL7K.js} +4 -4
  112. package/dist/{keys-U54Y36FC.js → keys-NIAANGXE.js} +4 -4
  113. package/dist/{keyword-JHQKINGN.js → keyword-LHHNG3GL.js} +4 -4
  114. package/dist/{logs-6RH3NGMN.js → logs-UFOOIKTC.js} +4 -4
  115. package/dist/{mcp-JVJUVT3I.js → mcp-AZYUFL5V.js} +5 -5
  116. package/dist/mcp.js +11 -11
  117. package/dist/{measurement-plan-MOBOCU7X.js → measurement-plan-H2HIHJ3D.js} +6 -6
  118. package/dist/{notify-M3YPFBKX.js → notify-TIE2ZJ26.js} +4 -4
  119. package/dist/{organic-evidence-VDSGYYEB.js → organic-evidence-BX5MGZTK.js} +4 -4
  120. package/dist/{overview-FAJ5KKSI.js → overview-MGQE43GU.js} +7 -7
  121. package/dist/{project-3X4JNUQ2.js → project-2JL4ZW52.js} +4 -4
  122. package/dist/{project-setup-CMIASV25.js → project-setup-CXOVBRLZ.js} +4 -4
  123. package/dist/{query-NLTDZVPT.js → query-Q5BF63QF.js} +4 -4
  124. package/dist/{research-DATD7M5T.js → research-RQBZ57W5.js} +4 -4
  125. package/dist/{results-export-ONHLJT35.js → results-export-TVCBJNJN.js} +4 -4
  126. package/dist/{run-ZZ65W4T2.js → run-L6WG5WP2.js} +6 -6
  127. package/dist/{schedule-L6NQQWZP.js → schedule-3HQMG3AM.js} +4 -4
  128. package/dist/{search-JBV4A3JB.js → search-ZLQE4J66.js} +4 -4
  129. package/dist/{serve-JTVUXC5V.js → serve-VV4SVEJW.js} +34 -32
  130. package/dist/{session-L5ZT52AV.js → session-IJLUYO4T.js} +15 -15
  131. package/dist/{settings-N3HNIFMB.js → settings-T3U7TQOF.js} +4 -4
  132. package/dist/{sitemaps-HQV366MP.js → sitemaps-UZPLGN4W.js} +4 -4
  133. package/dist/{skills-6MCHPZAQ.js → skills-P4WSSFPF.js} +3 -3
  134. package/dist/{snapshot-SJKZGC7B.js → snapshot-ROJPISJE.js} +4 -4
  135. package/dist/{src-BUUBDKML.js → src-ZYWTGILQ.js} +2 -2
  136. package/dist/{status-T3LFFLRY.js → status-43XNR3NS.js} +6 -6
  137. package/dist/{support-BIPNOY7V.js → support-I7E4I3GG.js} +2 -2
  138. package/dist/{technical-aeo-APUKKLVK.js → technical-aeo-D4F2R6M3.js} +4 -4
  139. package/dist/{telemetry-RGSGE6ED.js → telemetry-5DMVDDZI.js} +5 -5
  140. package/dist/{tools-LPL4IECG.js → tools-M534GJMS.js} +12 -12
  141. package/dist/{traffic-SU7KRKO3.js → traffic-R2UA27AZ.js} +6 -6
  142. package/dist/{trends-3NJBRFXS.js → trends-BXOZIWIE.js} +4 -4
  143. package/dist/{users-SU4AONBT.js → users-X6WJV7VJ.js} +4 -4
  144. package/dist/{visibility-stats-EQEBABZR.js → visibility-stats-MCNUXUCL.js} +5 -5
  145. package/dist/{wordpress-SNOM6ETD.js → wordpress-AMGUJUZX.js} +4 -4
  146. package/package.json +1 -1
  147. package/assets/assets/MeasurementPropertyPage-CP9p7C6B.js +0 -4
  148. package/assets/assets/ProjectPage-Dq1mGFwA.js +0 -15
  149. package/assets/assets/index-rQgaFhmc.js +0 -43
  150. package/assets/assets/react-query-CEsVk5jq.js +0 -1
  151. package/assets/assets/service-DNaYUxv9.js +0 -1
  152. package/dist/activity-D5YDZLCK.js +0 -13
  153. package/dist/cli-commands-X4XPZQZH.js +0 -18
  154. package/dist/intelligence-service-LNXDWZ3F.js +0 -15
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  loadConfigRaw,
7
7
  saveConfigPatch
8
- } from "./chunk-QQXE2GUM.js";
8
+ } from "./chunk-FMS7CIEK.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-DRNCCGUW.js";
21
+ } from "./chunk-GKQ4CYUM.js";
22
22
 
23
23
  // src/runtime-context.ts
24
24
  function cliRuntimeContext(env = process.env, stdio = process) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CitationStates
3
- } from "./chunk-DRNCCGUW.js";
3
+ } from "./chunk-GKQ4CYUM.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)";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CliError
3
- } from "./chunk-WCRFVAYB.js";
3
+ } from "./chunk-2T4OGJWP.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-DRNCCGUW.js";
25
+ } from "./chunk-GKQ4CYUM.js";
26
26
 
27
27
  // ../config/src/index.ts
28
28
  import { z as z5 } from "zod";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getRequestContext
3
- } from "./chunk-DP2SUDRW.js";
3
+ } from "./chunk-LWRPSAVC.js";
4
4
  import {
5
5
  diagnosticIdentity,
6
6
  redactLogString,
7
7
  redactLogValue
8
- } from "./chunk-DRNCCGUW.js";
8
+ } from "./chunk-GKQ4CYUM.js";
9
9
 
10
10
  // ../api-routes/src/runtime-logger.ts
11
11
  import { format } from "util";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  API_PROVIDER_NAMES,
3
3
  ProviderNames
4
- } from "./chunk-DRNCCGUW.js";
4
+ } from "./chunk-GKQ4CYUM.js";
5
5
 
6
6
  // src/provider-registration.ts
7
7
  function isApiProviderRegistrable(name, entry) {
@@ -7742,7 +7742,26 @@ var cloudflareQueueDrainSummarySchema = z21.object({
7742
7742
  backlogAtLastPull: count.nullable(),
7743
7743
  elapsedMs: count
7744
7744
  });
7745
- var runSyncSummarySchema = z21.discriminatedUnion("type", [cloudflareQueueDrainSummarySchema]);
7745
+ var gscSyncSummarySchema = z21.object({
7746
+ type: z21.literal("gsc"),
7747
+ /** Days of history the sync asked for: the request's `days` (30 by default), or 480 for a full sync. */
7748
+ days: count,
7749
+ /** First day asked of Google: `days` plus Google's 3-day reporting lag before `endDate`. */
7750
+ startDate: z21.string(),
7751
+ /** Last day asked of Google: today. Google returns only the days it has published. */
7752
+ endDate: z21.string(),
7753
+ /** Search rows stored (one per day, query, page, country and device), replacing the window's earlier rows. */
7754
+ searchRows: count,
7755
+ /** Days of property totals stored. Google leaves out days with no data. */
7756
+ dailyTotals: count,
7757
+ /** Per-query daily totals stored. */
7758
+ queryTotals: count,
7759
+ /** Sitemaps stored, top level and the files inside indexes. Null when the list could not be read; the previous list stays. */
7760
+ sitemaps: count.nullable(),
7761
+ /** Last day the project's stored Search Console data covers after the sync. Null when none is stored. */
7762
+ dataThroughDate: z21.string().nullable()
7763
+ });
7764
+ var runSyncSummarySchema = z21.discriminatedUnion("type", [cloudflareQueueDrainSummarySchema, gscSyncSummarySchema]);
7746
7765
 
7747
7766
  // ../contracts/src/run.ts
7748
7767
  var runStatusSchema = z22.enum(["queued", "running", "completed", "partial", "failed", "cancelled"]);
@@ -7937,7 +7956,8 @@ var runDtoSchema = z22.object({
7937
7956
  skippedProviders: z22.record(z22.string(), providerAccountStreakSchema).optional(),
7938
7957
  /**
7939
7958
  * What a sync run did and why it stopped, for syncs that record one (a
7940
- * Cloudflare Queue traffic sync). Omitted on every other run.
7959
+ * Cloudflare Queue traffic sync, a completed Search Console sync). Omitted
7960
+ * on every other run.
7941
7961
  */
7942
7962
  syncSummary: runSyncSummarySchema.optional(),
7943
7963
  createdAt: z22.string()
@@ -2,13 +2,13 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-VNCDWND5.js";
5
+ } from "./chunk-DY2Q3VIM.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-QQXE2GUM.js";
8
+ } from "./chunk-FMS7CIEK.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
- } from "./chunk-DP2SUDRW.js";
11
+ } from "./chunk-LWRPSAVC.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-DRNCCGUW.js";
22
+ } from "./chunk-GKQ4CYUM.js";
23
23
 
24
24
  // src/outcome-telemetry.ts
25
25
  import fs from "fs";
@@ -2,10 +2,10 @@ import {
2
2
  SNAPSHOT_CELL_LEGEND,
3
3
  citationGlyph,
4
4
  mentionGlyph
5
- } from "./chunk-MVTPR7ZY.js";
5
+ } from "./chunk-FIF4N7DP.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-KTRRC5P4.js";
8
+ } from "./chunk-XONND7NT.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-WCRFVAYB.js";
16
+ } from "./chunk-2T4OGJWP.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-DRNCCGUW.js";
26
+ } from "./chunk-GKQ4CYUM.js";
27
27
 
28
28
  // src/commands/run.ts
29
29
  function getClient() {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-6ZJKEUGC.js";
3
+ } from "./chunk-G2NIO2J3.js";
4
4
  import {
5
5
  addLikelyFakeAgentHits,
6
6
  correctBackgroundCallJourneys,
7
7
  mergeSplitJourneyVisitors,
8
8
  repairAiReferralArrivalsOnStartup,
9
9
  writeUnrecognizedAgentBuckets
10
- } from "./chunk-SF2KLXZM.js";
10
+ } from "./chunk-QXRI6DRE.js";
11
11
  import {
12
12
  AGENT_TRUST_RULES_VERSION,
13
13
  BROWSER_AGENT_BOT_IDS,
@@ -31,7 +31,7 @@ import {
31
31
  normalizeTrafficPathPattern,
32
32
  rulesShareVerificationList,
33
33
  unrecognizedAgentName
34
- } from "./chunk-N3QGWIWL.js";
34
+ } from "./chunk-RMLGMB5B.js";
35
35
  import {
36
36
  RawEventSampleEventTypes,
37
37
  agentJourneyCaptureDays,
@@ -48,7 +48,7 @@ import {
48
48
  trafficReclassificationState,
49
49
  trafficSources,
50
50
  unrecognizedAgentEventsHourly
51
- } from "./chunk-FVPJ5CRH.js";
51
+ } from "./chunk-X6DD3OIR.js";
52
52
  import {
53
53
  AI_ENGINE_DOMAINS,
54
54
  AI_ENGINE_SELF_DOMAINS,
@@ -84,7 +84,7 @@ import {
84
84
  sortedUnique,
85
85
  usageCount,
86
86
  withRetry
87
- } from "./chunk-DRNCCGUW.js";
87
+ } from "./chunk-GKQ4CYUM.js";
88
88
 
89
89
  // ../provider-openai/src/normalize.ts
90
90
  import OpenAI from "openai";
@@ -24,18 +24,18 @@ import {
24
24
  resolveConfiguredAgentProvider,
25
25
  resolveSessionProviderAndModel,
26
26
  setAeroSystemPrompt
27
- } from "./chunk-SBAQZ6PY.js";
27
+ } from "./chunk-5WDU7ZML.js";
28
28
  import {
29
29
  AeroToolProfiles,
30
30
  AeroToolScopes,
31
31
  buildAeroStateTools,
32
32
  isAeroToolProfile,
33
33
  truncateToolResult
34
- } from "./chunk-CWV3JV2S.js";
34
+ } from "./chunk-3ZNDJ4OM.js";
35
35
  import {
36
36
  answerServiceAdapters,
37
37
  answerServiceDescriptors
38
- } from "./chunk-5UJ5CG6J.js";
38
+ } from "./chunk-QWD3ABAW.js";
39
39
  import {
40
40
  isManagedCanonryInstall
41
41
  } from "./chunk-XAJS5FH3.js";
@@ -57,7 +57,7 @@ import {
57
57
  removeCloudflareTrafficConnection,
58
58
  removeCloudflareTrafficConnectionBySourceId,
59
59
  upsertCloudflareTrafficConnection
60
- } from "./chunk-VRBKUMA3.js";
60
+ } from "./chunk-HQEH4YRO.js";
61
61
  import {
62
62
  claudeAdapter,
63
63
  embedQueries,
@@ -69,7 +69,7 @@ import {
69
69
  openrouterAdapter,
70
70
  perplexityAdapter,
71
71
  startTrafficReclassification
72
- } from "./chunk-OU7TJX25.js";
72
+ } from "./chunk-GTX7C5Y5.js";
73
73
  import {
74
74
  classifyUsageSurface,
75
75
  createApiUsageTelemetry,
@@ -81,7 +81,7 @@ import {
81
81
  startOutcomeTimer,
82
82
  trackFeatureCompleted,
83
83
  trackInstallState
84
- } from "./chunk-4IC3FHM5.js";
84
+ } from "./chunk-GPPTW3HU.js";
85
85
  import {
86
86
  isLoopbackBindHost
87
87
  } from "./chunk-TSENU4GG.js";
@@ -89,7 +89,7 @@ import {
89
89
  isApiProviderRegistrable,
90
90
  isCdpProviderRegistrable,
91
91
  registeredProviderNames
92
- } from "./chunk-2WT4IQD7.js";
92
+ } from "./chunk-GCBFSIKI.js";
93
93
  import {
94
94
  checkLatestVersionForServer,
95
95
  getOrCreateAnonymousId,
@@ -101,17 +101,17 @@ import {
101
101
  recordDashboardEvent,
102
102
  setTelemetryPreference,
103
103
  trackEvent
104
- } from "./chunk-VNCDWND5.js";
104
+ } from "./chunk-DY2Q3VIM.js";
105
105
  import {
106
106
  createCanonryMcpServer
107
- } from "./chunk-N7NL4SCF.js";
107
+ } from "./chunk-425BZPKK.js";
108
108
  import {
109
109
  CANONRY_MCP_TIERS,
110
110
  CANONRY_MCP_TOOLKIT_NAMES
111
- } from "./chunk-F2TGOWIW.js";
111
+ } from "./chunk-MG4COK23.js";
112
112
  import {
113
113
  ApiClient
114
- } from "./chunk-KTRRC5P4.js";
114
+ } from "./chunk-XONND7NT.js";
115
115
  import {
116
116
  AGENT_PROVIDERS,
117
117
  PROVIDER_MODELS,
@@ -146,39 +146,39 @@ import {
146
146
  saveConfigPatch,
147
147
  sentimentInstallReadiness,
148
148
  updateSharedProviderExecutionGate
149
- } from "./chunk-QQXE2GUM.js";
149
+ } from "./chunk-FMS7CIEK.js";
150
150
  import {
151
151
  getBundledSkillSnapshots
152
- } from "./chunk-V3GIVVXW.js";
152
+ } from "./chunk-NEJEHRPT.js";
153
153
  import {
154
154
  computeFactorAverages,
155
155
  deleteSiteCrawlGraphLayout,
156
156
  persistSiteCrawlGraphLayout,
157
157
  prepareSiteCrawlGraphLayout,
158
158
  recordedSharePct
159
- } from "./chunk-UQG5TWLM.js";
159
+ } from "./chunk-K3YHPTKL.js";
160
160
  import {
161
161
  CanonryMcpToolNames,
162
162
  canonryMcpTools
163
- } from "./chunk-LLKNKNEB.js";
163
+ } from "./chunk-HS2HYFPX.js";
164
164
  import {
165
165
  PACKAGE_VERSION
166
166
  } from "./chunk-AOJU5LKX.js";
167
167
  import {
168
168
  CliError
169
- } from "./chunk-WCRFVAYB.js";
169
+ } from "./chunk-2T4OGJWP.js";
170
170
  import {
171
171
  IntelligenceService
172
- } from "./chunk-2BSAW7H4.js";
172
+ } from "./chunk-3GE4Z4J3.js";
173
173
  import {
174
174
  computeCitedCompetitorDomains,
175
175
  determineCitationState
176
- } from "./chunk-CF6R6DUA.js";
176
+ } from "./chunk-RPAWPX7B.js";
177
177
  import {
178
178
  addLogListener,
179
179
  createFastifyLogger,
180
180
  createLogger
181
- } from "./chunk-6ZJKEUGC.js";
181
+ } from "./chunk-G2NIO2J3.js";
182
182
  import {
183
183
  BING_THROTTLE_COOLDOWN_MS,
184
184
  BingApiError,
@@ -334,7 +334,7 @@ import {
334
334
  webhookTargetRefusalReason,
335
335
  webhookUserAgent,
336
336
  writeAuditLog
337
- } from "./chunk-SF2KLXZM.js";
337
+ } from "./chunk-QXRI6DRE.js";
338
338
  import {
339
339
  OperationalLogStore,
340
340
  SentimentIdempotencyConflict,
@@ -436,7 +436,7 @@ import {
436
436
  unrecognizedAgentEventsHourly,
437
437
  unrecognizedAgentNotifyState,
438
438
  usageCounters
439
- } from "./chunk-FVPJ5CRH.js";
439
+ } from "./chunk-X6DD3OIR.js";
440
440
  import {
441
441
  AGENT_MEMORY_VALUE_MAX_BYTES,
442
442
  AI_ENGINE_DOMAINS,
@@ -722,7 +722,7 @@ import {
722
722
  winnabilityClassLabel,
723
723
  withRetry,
724
724
  withSkippedProviders
725
- } from "./chunk-DRNCCGUW.js";
725
+ } from "./chunk-GKQ4CYUM.js";
726
726
 
727
727
  // src/google-marketing-runtime.ts
728
728
  import crypto2 from "crypto";
@@ -6474,7 +6474,7 @@ function nonBlank(value) {
6474
6474
  return trimmed ? trimmed : void 0;
6475
6475
  }
6476
6476
  function resolveBuildCommit(env = process.env) {
6477
- const embedded = true ? "b426e6353288e7259b3e865251e9e3250fd3422f" : void 0;
6477
+ const embedded = true ? "d1babf027e3b812a15308249c2daaa7c1b081fd4" : void 0;
6478
6478
  return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
6479
6479
  }
6480
6480
  function resolveInstanceIdentity(env = process.env) {
@@ -9355,9 +9355,11 @@ async function executeGscSync(db, runId, projectId, opts) {
9355
9355
  }).run();
9356
9356
  }
9357
9357
  const observedThrough = totalRows.map((row) => row.keys[0] ?? "").filter((date) => date !== "").reduce((max2, date) => max2 === null || date > max2 ? date : max2, null);
9358
+ let dataThroughDate = null;
9358
9359
  if (observedThrough !== null || endDate) {
9359
9360
  const existing = db.select().from(gscDataWatermarks).where(eq8(gscDataWatermarks.projectId, projectId)).get();
9360
9361
  const nextThrough = [existing?.dataThroughDate ?? null, observedThrough].filter((d) => d !== null).reduce((max2, d) => max2 === null || d > max2 ? d : max2, null);
9362
+ dataThroughDate = nextThrough;
9361
9363
  if (nextThrough !== null) {
9362
9364
  db.insert(gscDataWatermarks).values({
9363
9365
  projectId,
@@ -9390,9 +9392,11 @@ async function executeGscSync(db, runId, projectId, opts) {
9390
9392
  )
9391
9393
  ).run();
9392
9394
  const queryTotalsNow = (/* @__PURE__ */ new Date()).toISOString();
9395
+ let queryTotalsStored = 0;
9393
9396
  for (const row of queryTotalRows) {
9394
9397
  const [date, query] = row.keys;
9395
9398
  if (!date || !query) continue;
9399
+ queryTotalsStored += 1;
9396
9400
  db.insert(gscQueryDailyTotals).values({
9397
9401
  id: crypto10.randomUUID(),
9398
9402
  projectId,
@@ -9407,14 +9411,27 @@ async function executeGscSync(db, runId, projectId, opts) {
9407
9411
  }).run();
9408
9412
  }
9409
9413
  log4.info("query-totals.complete", { runId, projectId, rowCount: queryTotalRows.length });
9414
+ let sitemapsStored = null;
9410
9415
  try {
9411
9416
  const stored = await syncGscSitemaps(db, projectId, runId, accessToken, propertyId);
9417
+ sitemapsStored = stored.sitemaps;
9412
9418
  log4.info("sitemaps.complete", { runId, projectId, ...stored });
9413
9419
  } catch (err) {
9414
9420
  log4.warn("sitemaps.failed", { runId, projectId, error: describeError(err) });
9415
9421
  }
9416
9422
  const coverage = writeCoverageSnapshot(db, projectId, runId);
9417
- db.update(runs).set({ status: "completed", finishedAt: (/* @__PURE__ */ new Date()).toISOString() }).where(eq8(runs.id, runId)).run();
9423
+ const syncSummary = {
9424
+ type: "gsc",
9425
+ days,
9426
+ startDate,
9427
+ endDate,
9428
+ searchRows: rows.length,
9429
+ dailyTotals: totalRows.length,
9430
+ queryTotals: queryTotalsStored,
9431
+ sitemaps: sitemapsStored,
9432
+ dataThroughDate
9433
+ };
9434
+ db.update(runs).set({ status: "completed", finishedAt: (/* @__PURE__ */ new Date()).toISOString(), syncSummary }).where(eq8(runs.id, runId)).run();
9418
9435
  log4.info("sync.completed", { runId, projectId, searchDataRows: rows.length, indexed: coverage.indexed, notIndexed: coverage.notIndexed, unknown: coverage.unknown, verifiedByInspection: coverage.verifiedByInspection });
9419
9436
  const counts = { rows: rows.length, urls: new Set(rows.map((row) => row.keys[1] ?? "")).size };
9420
9437
  reportOutcome(rows.length === 0 ? { status: OutcomeStatuses.skipped, reasonCode: OutcomeReasonCodes.NO_DATA, counts } : { status: OutcomeStatuses.succeeded, counts });
@@ -21455,6 +21472,10 @@ var keylessFirstRunSetupByServer = /* @__PURE__ */ new WeakMap();
21455
21472
  function allowsKeylessFirstRunSetup(app) {
21456
21473
  return keylessFirstRunSetupByServer.get(app) ?? false;
21457
21474
  }
21475
+ var firstRunSetupTokenByServer = /* @__PURE__ */ new WeakMap();
21476
+ function getFirstRunSetupToken(app) {
21477
+ return firstRunSetupTokenByServer.get(app)?.token ?? null;
21478
+ }
21458
21479
  var DEFAULT_QUOTA = DEFAULT_PROVIDER_QUOTA;
21459
21480
  var SESSION_COOKIE_NAME = "canonry_session";
21460
21481
  var SESSION_TTL_MS = 12 * 60 * 60 * 1e3;
@@ -22941,11 +22962,19 @@ async function createServer(opts) {
22941
22962
  const namedAccountsInUse = () => anyUsersExist(opts.db);
22942
22963
  const NAMED_ACCOUNTS_MESSAGE = "This install uses named accounts. Sign in with your name and password.";
22943
22964
  const serverApiKeyMissing = () => new AppError("AUTH_INVALID", "Server API key not found \u2014 run canonry bootstrap", 401);
22965
+ const firstRunSetupToken = keylessLocalSetup && dashboardRequirePassword && !opts.config.dashboardPasswordHash && !namedAccountsInUse() ? crypto30.randomBytes(32).toString("hex") : null;
22966
+ if (firstRunSetupToken !== null) {
22967
+ firstRunSetupTokenByServer.set(app, {
22968
+ token: firstRunSetupToken,
22969
+ tokenHash: hashSessionToken(firstRunSetupToken),
22970
+ consumed: false
22971
+ });
22972
+ }
22944
22973
  const rejectLegacySessionStoredOnly = async (request, reply) => {
22945
22974
  const header = request.headers[STORED_ONLY_HEADER];
22946
22975
  if (header !== "1" && header !== "true") return;
22947
22976
  const route = request.routeOptions.url ?? request.url;
22948
- const operation = route.endsWith("/session/setup") ? "POST /api/v1/session/setup" : `${request.method.toUpperCase()} /api/v1/session`;
22977
+ const operation = route.endsWith("/session/setup") ? "POST /api/v1/session/setup" : route.endsWith("/session/setup-token") ? "POST /api/v1/session/setup-token" : `${request.method.toUpperCase()} /api/v1/session`;
22949
22978
  const error = storedOnlyRefused("Stored-only mode refuses this operation", { operation, access: OperationAccesses.write });
22950
22979
  return reply.status(error.statusCode).send(error.toJSON());
22951
22980
  };
@@ -23024,6 +23053,57 @@ async function createServer(opts) {
23024
23053
  setSessionCookie(reply, sessionId);
23025
23054
  return reply.send({ authenticated: true });
23026
23055
  });
23056
+ app.post(apiPrefix + "/session/setup-token", { ...legacySessionRouteOptions, config: { skipInstanceAuth: true } }, async (request, reply) => {
23057
+ if (namedAccountsInUse()) {
23058
+ const err = forbidden(NAMED_ACCOUNTS_MESSAGE);
23059
+ return reply.status(err.statusCode).send(err.toJSON());
23060
+ }
23061
+ if (!dashboardRequirePassword) {
23062
+ return reply.send({ authenticated: true, setupRequired: false });
23063
+ }
23064
+ if (!(keylessLocalSetup && isDirectLocalRequest(request))) {
23065
+ const err = authRequired(
23066
+ "Setting up with the first-run token requires a request made directly from this machine to a loopback-bound server that has no external URL, base path, or trusted proxy configured."
23067
+ );
23068
+ return reply.status(err.statusCode).send(err.toJSON());
23069
+ }
23070
+ if (opts.config.dashboardPasswordHash) {
23071
+ const err = validationError("Dashboard password is already configured");
23072
+ return reply.status(err.statusCode).send(err.toJSON());
23073
+ }
23074
+ const stored = firstRunSetupTokenByServer.get(app);
23075
+ if (stored === void 0 || stored.consumed) {
23076
+ return reply.status(401).send({
23077
+ error: { code: "AUTH_INVALID", message: "Invalid or expired setup token" }
23078
+ });
23079
+ }
23080
+ const presented = request.body?.token?.trim() ?? "";
23081
+ const presentedHash = presented ? hashSessionToken(presented) : "";
23082
+ if (presentedHash.length !== stored.tokenHash.length || !crypto30.timingSafeEqual(Buffer.from(presentedHash, "hex"), Buffer.from(stored.tokenHash, "hex"))) {
23083
+ return reply.status(401).send({
23084
+ error: { code: "AUTH_INVALID", message: "Invalid or expired setup token" }
23085
+ });
23086
+ }
23087
+ const defaultKey = getDefaultApiKey();
23088
+ if (!defaultKey || defaultKey.revokedAt) {
23089
+ const err = serverApiKeyMissing();
23090
+ return reply.status(err.statusCode).send(err.toJSON());
23091
+ }
23092
+ const sessionId = opts.db.transaction((tx) => {
23093
+ writeAuditLog(tx, auditFromRequest(request, {
23094
+ actor: `api-key:${defaultKey.id}`,
23095
+ credentialId: null,
23096
+ requestId: request.id,
23097
+ action: "dashboard-session.created",
23098
+ entityType: "dashboard-session",
23099
+ diff: { authorizedBy: "setup-token" }
23100
+ }));
23101
+ return createSession(defaultKey, true, tx);
23102
+ });
23103
+ stored.consumed = true;
23104
+ setSessionCookie(reply, sessionId);
23105
+ return reply.send({ authenticated: true });
23106
+ });
23027
23107
  app.post(apiPrefix + "/session", legacySessionRouteOptions, async (request, reply) => {
23028
23108
  if (namedAccountsInUse()) {
23029
23109
  const err2 = forbidden(NAMED_ACCOUNTS_MESSAGE);
@@ -24289,5 +24369,6 @@ export {
24289
24369
  createGoogleMarketingRuntime,
24290
24370
  waitForServerRuntimeStartup,
24291
24371
  allowsKeylessFirstRunSetup,
24372
+ getFirstRunSetupToken,
24292
24373
  createServer
24293
24374
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cloudflareQueueNameSchema
3
- } from "./chunk-DRNCCGUW.js";
3
+ } from "./chunk-GKQ4CYUM.js";
4
4
 
5
5
  // src/cloudflare-traffic-config.ts
6
6
  function unsupportedDeliveryMode(deliveryMode) {
@@ -5,14 +5,14 @@ import {
5
5
  dedupeGscSitemapUrls,
6
6
  resolveDiscoveredGscSitemapUrls,
7
7
  submitGscSitemapBatches
8
- } from "./chunk-NCOW55N3.js";
8
+ } from "./chunk-ZKIEOEUZ.js";
9
9
  import {
10
10
  measurementDraftOperationSchema,
11
11
  runMeasurementDraftAction
12
- } from "./chunk-2CRAVATO.js";
12
+ } from "./chunk-OKIAF573.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-WCRFVAYB.js";
15
+ } from "./chunk-2T4OGJWP.js";
16
16
  import {
17
17
  AGENT_MEMORY_KEY_MAX_LENGTH,
18
18
  AGENT_MEMORY_VALUE_MAX_BYTES,
@@ -28,6 +28,7 @@ import {
28
28
  PROVIDER_ACCOUNT_FAILURE_STREAK,
29
29
  PROVIDER_ACCOUNT_RETRY_HOURS,
30
30
  RESEARCH_RUN_SCOPE,
31
+ RunStatuses,
31
32
  SENTIMENT_ATTEMPT_PAGE_DEFAULT,
32
33
  SENTIMENT_QUERY_PAGE_DEFAULT,
33
34
  SENTIMENT_QUERY_PAGE_MAX,
@@ -218,7 +219,7 @@ import {
218
219
  trendSurfaceSchema,
219
220
  visibilityCompareSelectionSchema,
220
221
  visibilityReportRequestSchema
221
- } from "./chunk-DRNCCGUW.js";
222
+ } from "./chunk-GKQ4CYUM.js";
222
223
 
223
224
  // src/mcp/tool-registry.ts
224
225
  import { z as z2 } from "zod";
@@ -631,6 +632,69 @@ async function submitGscSitemapsFromMcp(client, input) {
631
632
  }
632
633
  return submitGscSitemapBatches(client, input.project, sitemapUrls);
633
634
  }
635
+ var gscSyncInputSchema = z2.object({
636
+ project: projectNameSchema,
637
+ days: z2.number().int().positive().max(180).optional().describe("Days of history to refresh, 1 to 180. Defaults to 30. For more, use full."),
638
+ full: z2.boolean().optional().describe("Re-read the 16 months Search Console keeps (480 days), the backfill after connecting a site. Do not combine with days.")
639
+ });
640
+ var GSC_SYNC_WAIT_MS = 10 * 60 * 1e3;
641
+ var GSC_SYNC_POLL_DELAYS_MS = [250, 1e3, 2e3];
642
+ var FINISHED_RUN_STATUSES = /* @__PURE__ */ new Set([RunStatuses.completed, RunStatuses.partial, RunStatuses.failed, RunStatuses.cancelled]);
643
+ async function syncGscFromMcp(client, input) {
644
+ const { project, days, full } = input;
645
+ if (full === true && days !== void 0) {
646
+ throw new CliError({
647
+ code: "VALIDATION_ERROR",
648
+ message: "Pass days or full, not both: full re-reads all 16 months and ignores days.",
649
+ details: { project, days, full }
650
+ });
651
+ }
652
+ let run;
653
+ try {
654
+ run = await client.gscSync(project, { days, full });
655
+ } catch (error) {
656
+ if (error instanceof CliError && error.code === "INTEGRATION_NOT_CONNECTED") {
657
+ throw new CliError({
658
+ code: error.code,
659
+ message: `Search Console is not connected for project "${project}". Connect it with canonry_gsc_connect, then select its site with canonry_gsc_properties and canonry_gsc_set_property.`,
660
+ details: { ...error.details, project }
661
+ });
662
+ }
663
+ throw error;
664
+ }
665
+ const runId = run.id;
666
+ const deadline = Date.now() + GSC_SYNC_WAIT_MS;
667
+ for (let poll = 0; !FINISHED_RUN_STATUSES.has(run.status); poll += 1) {
668
+ if (Date.now() >= deadline) {
669
+ throw new CliError({
670
+ code: "GOOGLE_SYNC_TIMEOUT",
671
+ message: `Search Console sync ${runId} is still ${run.status} after ${GSC_SYNC_WAIT_MS / 6e4} minutes. It keeps running on the server: read it with canonry_run_get rather than starting another sync.`,
672
+ details: { project, runId, status: run.status }
673
+ });
674
+ }
675
+ const delay = GSC_SYNC_POLL_DELAYS_MS[Math.min(poll, GSC_SYNC_POLL_DELAYS_MS.length - 1)];
676
+ await new Promise((resolve) => setTimeout(resolve, delay));
677
+ run = await client.getRun(runId);
678
+ }
679
+ if (run.status !== RunStatuses.completed) {
680
+ throw new CliError({
681
+ code: "GOOGLE_SYNC_FAILED",
682
+ message: `Search Console sync ${run.status}: ${run.error?.message ?? "no reason was recorded."}`,
683
+ details: { project, runId, status: run.status }
684
+ });
685
+ }
686
+ return {
687
+ id: run.id,
688
+ projectId: run.projectId,
689
+ kind: run.kind,
690
+ status: run.status,
691
+ trigger: run.trigger,
692
+ createdAt: run.createdAt,
693
+ startedAt: run.startedAt ?? null,
694
+ finishedAt: run.finishedAt ?? null,
695
+ syncSummary: run.syncSummary ?? null
696
+ };
697
+ }
634
698
  var gaWindowInputSchema = z2.object({
635
699
  project: projectNameSchema,
636
700
  window: z2.enum(WINDOW_SETS.gaTraffic).optional(),
@@ -2670,6 +2734,17 @@ var rawCanonryMcpTools = [
2670
2734
  openApiOperations: ["PUT /api/v1/projects/{name}/google/connections/{type}/property"],
2671
2735
  handler: (client, input) => client.googleSetProperty(input.project, "gsc", input.siteUrl)
2672
2736
  }),
2737
+ defineTool({
2738
+ name: "canonry_gsc_sync",
2739
+ title: "Sync Search Console data",
2740
+ description: "Run a Search Console sync for a project now and wait for it to finish (up to 10 minutes): search rows by query, page, country and device, property daily totals, per-query daily totals and the sitemap list, stored for every GSC read. Calls Google for three reports and the sitemap list; usually seconds, longer with full. It also runs daily as part of the data refresh, so trigger it when stored data is missing or stale (canonry_answerability search-console, or canonry_doctor gsc.data.recent-data). days refreshes 1 to 180 days (default 30); full re-reads the 16 months Google keeps, the backfill after connecting. A completed sync also queues the index-coverage refresh (URL Inspection over the sitemap, its own run) unless one is running or just ran. Returns the finished run with syncSummary, what it stored: days, startDate, endDate, searchRows, dailyTotals, queryTotals, sitemaps (null when the list could not be read) and dataThroughDate. syncSummary is null from a server too old to record it, which is not a sync that stored nothing. GOOGLE_SYNC_FAILED carries the run's reason; GOOGLE_SYNC_TIMEOUT means the run is still going, so read it with canonry_run_get instead of starting another. Without a Search Console connection it returns INTEGRATION_NOT_CONNECTED: connect with canonry_gsc_connect.",
2741
+ access: "write",
2742
+ tier: "gsc",
2743
+ inputSchema: gscSyncInputSchema,
2744
+ annotations: writeAnnotations({ idempotentHint: true, openWorldHint: true }),
2745
+ openApiOperations: ["POST /api/v1/projects/{name}/google/gsc/sync", "GET /api/v1/runs/{id}"],
2746
+ handler: syncGscFromMcp
2747
+ }),
2673
2748
  defineTool({
2674
2749
  name: "canonry_gsc_performance",
2675
2750
  title: "Get GSC performance",
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-KTRRC5P4.js";
3
+ } from "./chunk-XONND7NT.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-2CRAVATO.js";
10
+ } from "./chunk-OKIAF573.js";
11
11
  import {
12
12
  isMachineFormat,
13
13
  systemError
14
- } from "./chunk-WCRFVAYB.js";
14
+ } from "./chunk-2T4OGJWP.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-DRNCCGUW.js";
42
+ } from "./chunk-GKQ4CYUM.js";
43
43
 
44
44
  // src/commands/measurement-plan.ts
45
45
  import crypto from "crypto";