@canonry/canonry 7.57.1 → 7.58.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 (139) hide show
  1. package/README.md +28 -0
  2. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +6 -0
  3. package/assets/assets/{AgentSetupPage-C-kQupMX.js → AgentSetupPage-DZBjF9HP.js} +3 -3
  4. package/assets/assets/{AuditHistoryPanel-DvZk-ikR.js → AuditHistoryPanel-DAY6GbzH.js} +1 -1
  5. package/assets/assets/{BacklinksPage-TLB85t4y.js → BacklinksPage-Ci9s8osY.js} +1 -1
  6. package/assets/assets/{HistoryPage-C4nHeKDs.js → HistoryPage-BM7PM3Ow.js} +1 -1
  7. package/assets/assets/MeasurementPropertyPage-DgMIc9zm.js +4 -0
  8. package/assets/assets/ProjectPage-OOpNW437.js +9 -0
  9. package/assets/assets/RunsPage-B6dUljTT.js +1 -0
  10. package/assets/assets/{SettingsPage-BjLpSN4f.js → SettingsPage-DjhPnQNP.js} +1 -1
  11. package/assets/assets/SiteHealthSection-CQipxjCq.js +2 -0
  12. package/assets/assets/ToneBadge-Bk7cBexZ.js +60 -0
  13. package/assets/assets/{TrafficPage-BtjRPsdl.js → TrafficPage-TceTtJmu.js} +2 -2
  14. package/assets/assets/{TrafficSourceDetailPage-Bw-9JMOF.js → TrafficSourceDetailPage-BVAVo-JO.js} +1 -1
  15. package/assets/assets/{account-context-bLel7cL8.js → account-context-ChEngAKj.js} +1 -1
  16. package/assets/assets/{card-DFlbarlV.js → card-qOcJFZhl.js} +1 -1
  17. package/assets/assets/{extract-error-message-BYvs9oIt.js → extract-error-message-bWEYiDDO.js} +1 -1
  18. package/assets/assets/{format-helpers-DPVlVrlp.js → format-helpers-CvOZG1pt.js} +1 -1
  19. package/assets/assets/{index-BMD46UDb.css → index-D67dZGOY.css} +1 -1
  20. package/assets/assets/index-cRQCvw6S.js +56 -0
  21. package/assets/assets/query-client-nsJhXK9R.js +1 -0
  22. package/assets/assets/react-query-BKjNH2ek.js +1 -0
  23. package/assets/assets/{react-sigma_core.esm.min-BaR2koVY.js → react-sigma_core.esm.min-RpFcdsyW.js} +1 -1
  24. package/assets/assets/{service-DiBkOka7.js → service-DwTt-v6l.js} +1 -1
  25. package/assets/index.html +8 -8
  26. package/dist/{ads-6PCFYPZ6.js → ads-BMBXQB67.js} +3 -3
  27. package/dist/{agent-UA3J23KG.js → agent-S6CU36RL.js} +7 -7
  28. package/dist/{agent-ask-D4RWVHZX.js → agent-ask-XG7WQBX6.js} +3 -3
  29. package/dist/{agent-conversations-BSKUJF7H.js → agent-conversations-C4QBZAPC.js} +3 -3
  30. package/dist/{agent-memory-ENPPLOV7.js → agent-memory-I7UJ7MKH.js} +3 -3
  31. package/dist/{agent-providers-5NV7YEVG.js → agent-providers-YHRIYJDT.js} +3 -3
  32. package/dist/{agent-transcript-TXDTQ7Q2.js → agent-transcript-2WICUOEW.js} +3 -3
  33. package/dist/{analytics-6ITOJIGW.js → analytics-Y5AGSYWD.js} +3 -3
  34. package/dist/{apply-EPQXYQRO.js → apply-DLVLMU3O.js} +3 -3
  35. package/dist/{backfill-WHQ5PRQY.js → backfill-JAHDHVXJ.js} +9 -9
  36. package/dist/{backlinks-ECIDQQ4I.js → backlinks-TEZTPNZ5.js} +3 -3
  37. package/dist/{bing-LHTVVJK7.js → bing-IIA5HLND.js} +3 -3
  38. package/dist/{bootstrap-KHYUCFLP.js → bootstrap-AKGA3BJI.js} +10 -10
  39. package/dist/{cdp-YZWEKVRO.js → cdp-WWOFWFYU.js} +7 -7
  40. package/dist/{chunk-2R32P77U.js → chunk-27SGL3DF.js} +1 -1
  41. package/dist/{chunk-72GHLLA5.js → chunk-2DZYA62C.js} +18 -6
  42. package/dist/{chunk-S2UDQAT7.js → chunk-3U7LL3JM.js} +1 -1
  43. package/dist/{chunk-BURMKOEF.js → chunk-4P7NK7XM.js} +2 -2
  44. package/dist/{chunk-MVUYDJ7G.js → chunk-4TM4NXQR.js} +2 -2
  45. package/dist/{chunk-GT7HWKBO.js → chunk-4UGM5YV4.js} +3 -3
  46. package/dist/{chunk-ZUAXF73A.js → chunk-52NCZIAC.js} +1 -1
  47. package/dist/{chunk-TIYL4KVS.js → chunk-6IBLGQVZ.js} +1 -1
  48. package/dist/{chunk-N6P3NLEI.js → chunk-7CKJTD3Q.js} +1129 -905
  49. package/dist/{chunk-6MK426LA.js → chunk-BP5OKJIC.js} +2 -2
  50. package/dist/{chunk-SOKD3TRA.js → chunk-F6W7FCS2.js} +196 -2
  51. package/dist/{chunk-HPC3CBPI.js → chunk-G34BVUMF.js} +1 -1
  52. package/dist/{chunk-XXYBDAS2.js → chunk-IFVTHGXG.js} +2 -2
  53. package/dist/{chunk-LCC5ZJPV.js → chunk-JGRUCEL4.js} +2 -2
  54. package/dist/{chunk-OJ5IDPYY.js → chunk-KWXARGCT.js} +27 -5
  55. package/dist/{chunk-VF36TGF4.js → chunk-L7TKNHEX.js} +1 -1
  56. package/dist/{chunk-522MYBLV.js → chunk-N2HCXIQ3.js} +1 -1
  57. package/dist/{chunk-4MJYGB56.js → chunk-NCIPNVD6.js} +8 -0
  58. package/dist/{chunk-HFMRK3V3.js → chunk-NMLVLFF7.js} +5 -5
  59. package/dist/{chunk-AMN7DC25.js → chunk-NS7KRCND.js} +1140 -573
  60. package/dist/{chunk-FC2JA3FN.js → chunk-NWQQYLZV.js} +2858 -2250
  61. package/dist/{chunk-W7EX6AYN.js → chunk-PEZO3YEC.js} +4 -4
  62. package/dist/{chunk-TXBL3N46.js → chunk-Q4J3XSWE.js} +1 -1
  63. package/dist/{chunk-RNDQREJC.js → chunk-QFO7JHX2.js} +9 -4
  64. package/dist/{chunk-KRIZF753.js → chunk-QSPLYPVA.js} +1 -1
  65. package/dist/{chunk-SLN2KNEE.js → chunk-RXMGU7AF.js} +8 -8
  66. package/dist/{chunk-5AJWITKP.js → chunk-SCS7R2ND.js} +2269 -2011
  67. package/dist/{chunk-3HRHHFQM.js → chunk-TH3NNUJW.js} +17 -1
  68. package/dist/{chunk-YFUQHJRZ.js → chunk-TVANRUBO.js} +108 -83
  69. package/dist/{chunk-JWBFDZIP.js → chunk-U65LWABS.js} +7 -3
  70. package/dist/{chunk-5L2ZTXBH.js → chunk-WLIGKWVB.js} +3 -3
  71. package/dist/{chunk-TIKT62IV.js → chunk-Y7NX6EIK.js} +1803 -1456
  72. package/dist/{chunk-ULFDCKIC.js → chunk-YDSY5YJE.js} +4 -4
  73. package/dist/{chunk-F7WRZW3A.js → chunk-YJPQBJZO.js} +250 -3
  74. package/dist/{chunk-E3YBETL6.js → chunk-ZYL3LCDZ.js} +1 -1
  75. package/dist/{citations-HXVWVRDO.js → citations-4LVBHTDX.js} +3 -3
  76. package/dist/{cli-catalog-EDAH3242.js → cli-catalog-PJYR3JHX.js} +3 -3
  77. package/dist/{cli-commands-5O54JBVV.js → cli-commands-2HYNKJDJ.js} +7 -7
  78. package/dist/cli.js +13 -13
  79. package/dist/{competitor-XYPBUM4Q.js → competitor-T7UXAW4F.js} +3 -3
  80. package/dist/{content-SDTRO2XT.js → content-DFYYGGPI.js} +3 -3
  81. package/dist/{dashboard-TERSQLOV.js → dashboard-2P3TEH6S.js} +6 -6
  82. package/dist/{demo-UT5Y2RFF.js → demo-UBMNDBRF.js} +1 -1
  83. package/dist/{demo-server-5D6QLZOA.js → demo-server-F4M74FVL.js} +11 -11
  84. package/dist/{discover-I6AQJPUK.js → discover-QTC5OBQG.js} +3 -3
  85. package/dist/{discover-eval-GLGBZC7B.js → discover-eval-QQZGUPR6.js} +3 -3
  86. package/dist/{doctor-Q47J7GZI.js → doctor-VHFDL5MH.js} +3 -3
  87. package/dist/{evidence-AMLTPRHA.js → evidence-4PRFOC2I.js} +3 -3
  88. package/dist/{export-cmd-NTCX43DE.js → export-cmd-BQE7BPKZ.js} +3 -3
  89. package/dist/{ga-END6LQJW.js → ga-ULY5XDBK.js} +3 -3
  90. package/dist/{gbp-CVJXSTTB.js → gbp-4WHNZAFY.js} +3 -3
  91. package/dist/{google-4OCFGWGV.js → google-O4IVWLSG.js} +4 -4
  92. package/dist/{google-marketing-NW27PADK.js → google-marketing-DCQDTDDG.js} +1 -1
  93. package/dist/{health-cmd-2KMNASB3.js → health-cmd-I2JTACS7.js} +3 -3
  94. package/dist/{history-6LBFXVKF.js → history-LUPHO3P3.js} +3 -3
  95. package/dist/index.d.ts +1197 -4
  96. package/dist/index.js +25 -25
  97. package/dist/{init-ONIDATRC.js → init-YKMNKERW.js} +11 -11
  98. package/dist/{insights-YH7NP5LX.js → insights-GC2W45U4.js} +3 -3
  99. package/dist/intelligence-service-4PHEK5F4.js +15 -0
  100. package/dist/{keys-CJ5DTL4Y.js → keys-DXQBSOBI.js} +3 -3
  101. package/dist/{keyword-7FMLF3B7.js → keyword-2DCR2QCJ.js} +3 -3
  102. package/dist/{logs-362Y2Z55.js → logs-H45QFIEB.js} +3 -3
  103. package/dist/{mcp-RTJ3HZLY.js → mcp-NXXP6M3C.js} +2 -2
  104. package/dist/mcp.js +10 -10
  105. package/dist/{measurement-plan-ICT6U62D.js → measurement-plan-IG4JUKKW.js} +5 -5
  106. package/dist/{notify-HT7QBF3B.js → notify-BLLWXMBB.js} +3 -3
  107. package/dist/{organic-evidence-CAGEQ5OR.js → organic-evidence-73K7W7SB.js} +3 -3
  108. package/dist/{overview-Y6RVRPC7.js → overview-4TAULPUG.js} +4 -4
  109. package/dist/{project-7OBPDHLH.js → project-ANX4JTWS.js} +3 -3
  110. package/dist/{query-23GN3BC6.js → query-U3MFTLGR.js} +3 -3
  111. package/dist/{research-N7EVBN47.js → research-3YZ6QI67.js} +3 -3
  112. package/dist/{results-export-BHEYAZXQ.js → results-export-72OVLKSC.js} +3 -3
  113. package/dist/{run-KVPMLHGQ.js → run-SI6IL4FC.js} +4 -4
  114. package/dist/{schedule-EZ2TLM22.js → schedule-FYEHU2VH.js} +3 -3
  115. package/dist/{search-UHUPUGT3.js → search-MXDT3DQE.js} +3 -3
  116. package/dist/{serve-VG52MHRC.js → serve-C4FOCQEX.js} +26 -26
  117. package/dist/{session-IQKGJYKH.js → session-VTFLD3C5.js} +13 -13
  118. package/dist/{settings-QCFPNHSC.js → settings-ZGS26QOP.js} +3 -3
  119. package/dist/{skills-FXPAKCVV.js → skills-ZMMCKKSA.js} +2 -2
  120. package/dist/{snapshot-NY5PNDWR.js → snapshot-5AGGUQKE.js} +3 -3
  121. package/dist/{src-V6W5XBAI.js → src-AIM5FPLZ.js} +15 -2
  122. package/dist/{status-MYXAVPIB.js → status-HVQI4E5X.js} +4 -4
  123. package/dist/{technical-aeo-4C2EQ6C5.js → technical-aeo-S4OFCURE.js} +3 -3
  124. package/dist/{telemetry-SMY4NDD2.js → telemetry-SPSC5MUN.js} +4 -4
  125. package/dist/{tools-KKSEFA25.js → tools-LRHO7QOT.js} +11 -11
  126. package/dist/{traffic-QTHEOB5M.js → traffic-5AXVN37M.js} +5 -5
  127. package/dist/{users-FDZPHCWI.js → users-WFKSUCGV.js} +3 -3
  128. package/dist/{visibility-stats-6B3S3AIY.js → visibility-stats-5S26GC27.js} +3 -3
  129. package/dist/{wordpress-5IIA4H3G.js → wordpress-IUPZC7II.js} +3 -3
  130. package/package.json +2 -1
  131. package/assets/assets/MeasurementPropertyPage-8E17rN5d.js +0 -4
  132. package/assets/assets/ProjectPage-B4SbAE_N.js +0 -7
  133. package/assets/assets/RunsPage-Enho1Wqz.js +0 -1
  134. package/assets/assets/SiteHealthSection-BUOBO4VH.js +0 -2
  135. package/assets/assets/ToneBadge-BLQKJIMR.js +0 -60
  136. package/assets/assets/index-DWP0Oz6d.js +0 -56
  137. package/assets/assets/query-client-DLuEpFRm.js +0 -1
  138. package/assets/assets/react-query-BVY1CIRz.js +0 -1
  139. package/dist/intelligence-service-KRIDKJH2.js +0 -15
@@ -2,13 +2,13 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-XXYBDAS2.js";
5
+ } from "./chunk-IFVTHGXG.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-YFUQHJRZ.js";
8
+ } from "./chunk-TVANRUBO.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
- } from "./chunk-2R32P77U.js";
11
+ } from "./chunk-27SGL3DF.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-TIKT62IV.js";
22
+ } from "./chunk-Y7NX6EIK.js";
23
23
 
24
24
  // src/outcome-telemetry.ts
25
25
  import fs from "fs";
@@ -2,11 +2,11 @@ import {
2
2
  dedupeGscSitemapUrls,
3
3
  resolveDiscoveredGscSitemapUrls,
4
4
  submitGscSitemapBatches
5
- } from "./chunk-KRIZF753.js";
5
+ } from "./chunk-QSPLYPVA.js";
6
6
  import {
7
7
  measurementDraftOperationSchema,
8
8
  runMeasurementDraftAction
9
- } from "./chunk-522MYBLV.js";
9
+ } from "./chunk-N2HCXIQ3.js";
10
10
  import {
11
11
  CliError
12
12
  } from "./chunk-HGMYEDAQ.js";
@@ -26,6 +26,8 @@ import {
26
26
  SENTIMENT_ATTEMPT_PAGE_DEFAULT,
27
27
  SENTIMENT_QUERY_PAGE_DEFAULT,
28
28
  SENTIMENT_QUERY_PAGE_MAX,
29
+ SEO_RUN_SCOPE,
30
+ SEO_WRITE_SCOPE,
29
31
  WINDOW_SETS,
30
32
  adsActivateTreeRequestSchema,
31
33
  adsAdCreateRequestSchema,
@@ -132,6 +134,25 @@ import {
132
134
  sentimentSettingsUpdateSchema,
133
135
  sentimentSummaryIncludeSchema,
134
136
  sentimentSummaryReadSchema,
137
+ seoContextSchema,
138
+ seoDomainIntelligenceListSchema,
139
+ seoEvidenceQuerySchema,
140
+ seoKeywordMetricsListSchema,
141
+ seoOperatorTaskSchema,
142
+ seoOverviewSchema,
143
+ seoProfileInputSchema,
144
+ seoProfileListSchema,
145
+ seoProfileSchema,
146
+ seoQuoteSchema,
147
+ seoRankedKeywordListSchema,
148
+ seoReconcileInputSchema,
149
+ seoReconcileResultSchema,
150
+ seoRefreshIntentInputSchema,
151
+ seoRunDetailSchema,
152
+ seoRunListSchema,
153
+ seoRunSchema,
154
+ seoStatusSchema,
155
+ seoSyncInputSchema,
135
156
  settingsDtoSchema,
136
157
  siteAuditIssueListQuerySchema,
137
158
  siteAuditIssuePagesResponseSchema,
@@ -149,7 +170,7 @@ import {
149
170
  trafficSeriesGranularitySchema,
150
171
  visibilityCompareSelectionSchema,
151
172
  visibilityReportRequestSchema
152
- } from "./chunk-TIKT62IV.js";
173
+ } from "./chunk-Y7NX6EIK.js";
153
174
 
154
175
  // src/mcp/tool-registry.ts
155
176
  import { z as z2 } from "zod";
@@ -161,6 +182,19 @@ var runIdSchema = z.string().min(1).describe("Canonry run ID.");
161
182
  var insightIdSchema = z.string().min(1).describe("Canonry insight ID.");
162
183
  var analyticsWindowSchema = z.enum(["7d", "30d", "90d", "all"]).describe("Analytics time window.");
163
184
  var emptyInputSchema = z.object({});
185
+ var mcpErrorEnvelopeSchema = z.object({
186
+ error: z.object({ code: z.string(), message: z.string(), details: z.unknown().optional() }).strict()
187
+ }).strict();
188
+ function mcpOutputSchema(success) {
189
+ const outcomes = z.union([success, mcpErrorEnvelopeSchema]);
190
+ return z.looseObject({}).superRefine((value, context) => {
191
+ const parsed = outcomes.safeParse(value);
192
+ if (!parsed.success) context.addIssue({ code: "custom", message: "Expected the declared success response or a Canonry error envelope." });
193
+ }).meta({ anyOf: [
194
+ z.toJSONSchema(success, { target: "draft-7" }),
195
+ z.toJSONSchema(mcpErrorEnvelopeSchema, { target: "draft-7" })
196
+ ] });
197
+ }
164
198
  var projectInputSchema = z.object({
165
199
  project: projectNameSchema
166
200
  });
@@ -1079,7 +1113,219 @@ var sentimentPreviewInputSchema = sentimentBackfillSelectionSchema.safeExtend({
1079
1113
  if (input.from && input.to && Date.parse(input.from) > Date.parse(input.to)) ctx.addIssue({ code: "custom", message: "from must be at or before to" });
1080
1114
  });
1081
1115
  var sentimentBackfillInputSchema = sentimentBackfillRequestSchema.extend({ project: projectNameSchema });
1116
+ var seoIdInputSchema = projectInputSchema.extend({ id: z2.string().min(1) });
1117
+ var seoEvidenceInputSchema = seoEvidenceQuerySchema.extend({ project: projectNameSchema });
1082
1118
  var rawCanonryMcpTools = [
1119
+ defineTool({
1120
+ name: "canonry_seo_operator_task",
1121
+ title: "Inspect private SEO receipt",
1122
+ description: "Host operator only. Inspect the reserved cost and upstream receipt of an exact task. Customer admin scope does not authorize this tool.",
1123
+ access: "read",
1124
+ tier: "seo",
1125
+ requiresOperator: true,
1126
+ inputSchema: z2.object({ id: z2.string().min(1) }),
1127
+ outputSchema: seoOperatorTaskSchema,
1128
+ annotations: readAnnotations(),
1129
+ openApiOperations: ["GET /api/v1/seo/operator/tasks/{id}"],
1130
+ handler: (client, input) => client.getSeoOperatorTask(input.id)
1131
+ }),
1132
+ defineTool({
1133
+ name: "canonry_seo_operator_reconcile",
1134
+ title: "Reconcile private SEO receipt",
1135
+ description: "Host operator and seo.run only. Submit an independently verified upstream receipt to resolve an unknown outcome. Never guess a cost or assume a timeout was free. Does not retry the provider request.",
1136
+ access: "write",
1137
+ tier: "seo",
1138
+ requiresOperator: true,
1139
+ requiredScope: SEO_RUN_SCOPE,
1140
+ inputSchema: z2.object({ id: z2.string().min(1), receipt: seoReconcileInputSchema }),
1141
+ outputSchema: seoReconcileResultSchema,
1142
+ annotations: writeAnnotations({ idempotentHint: true }),
1143
+ openApiOperations: ["POST /api/v1/seo/operator/tasks/{id}/reconcile"],
1144
+ handler: (client, input) => client.reconcileSeoTask(input.id, input.receipt)
1145
+ }),
1146
+ defineTool({
1147
+ name: "canonry_seo_context",
1148
+ title: "SEO context",
1149
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1150
+ access: "read",
1151
+ tier: "seo",
1152
+ inputSchema: projectInputSchema,
1153
+ outputSchema: seoContextSchema,
1154
+ annotations: readAnnotations(),
1155
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/context"],
1156
+ handler: (client, input) => client.getSeoContext(input.project)
1157
+ }),
1158
+ defineTool({
1159
+ name: "canonry_seo_status",
1160
+ title: "SEO status",
1161
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1162
+ access: "read",
1163
+ tier: "seo",
1164
+ inputSchema: projectInputSchema,
1165
+ outputSchema: seoStatusSchema,
1166
+ annotations: readAnnotations(),
1167
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/status"],
1168
+ handler: (client, input) => client.getSeoStatus(input.project)
1169
+ }),
1170
+ defineTool({
1171
+ name: "canonry_seo_profiles",
1172
+ title: "SEO profiles",
1173
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1174
+ access: "read",
1175
+ tier: "seo",
1176
+ inputSchema: projectInputSchema,
1177
+ outputSchema: seoProfileListSchema,
1178
+ annotations: readAnnotations(),
1179
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/profiles"],
1180
+ handler: (client, input) => client.listSeoProfiles(input.project)
1181
+ }),
1182
+ defineTool({
1183
+ name: "canonry_seo_profile",
1184
+ title: "SEO profile",
1185
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1186
+ access: "read",
1187
+ tier: "seo",
1188
+ inputSchema: seoIdInputSchema,
1189
+ outputSchema: seoProfileSchema,
1190
+ annotations: readAnnotations(),
1191
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/profiles/{id}"],
1192
+ handler: (client, input) => client.getSeoProfile(input.project, input.id)
1193
+ }),
1194
+ defineTool({
1195
+ name: "canonry_seo_profile_set",
1196
+ title: "SEO profile set",
1197
+ description: "Create or replace a complete project-scoped SEO profile. Requires seo.write. Pins exact scope and Advanced plan revision, source, targets, locale, capabilities, keyword basket and row limit. Never starts provider work. Credentials and financial controls remain host configuration.",
1198
+ access: "write",
1199
+ tier: "seo",
1200
+ requiredScope: SEO_WRITE_SCOPE,
1201
+ inputSchema: projectInputSchema.extend({ id: z2.string().min(1), profile: seoProfileInputSchema }),
1202
+ outputSchema: seoProfileSchema,
1203
+ annotations: writeAnnotations({ idempotentHint: true }),
1204
+ openApiOperations: ["PUT /api/v1/projects/{name}/seo/profiles/{id}"],
1205
+ handler: (client, input) => client.putSeoProfile(input.project, input.id, input.profile)
1206
+ }),
1207
+ defineTool({
1208
+ name: "canonry_seo_refresh_intent",
1209
+ title: "SEO refresh intent",
1210
+ description: "Prepare an opaque, expiring intent for a saved profile without a provider call or reservation. Submit the token explicitly with canonry_seo_sync. No internal cost or policy data is returned.",
1211
+ access: "read",
1212
+ tier: "seo",
1213
+ inputSchema: seoRefreshIntentInputSchema.extend({ project: projectNameSchema }),
1214
+ outputSchema: seoQuoteSchema,
1215
+ annotations: readAnnotations(),
1216
+ openApiOperations: ["POST /api/v1/projects/{name}/seo/refresh-intents"],
1217
+ handler: (client, input) => client.createSeoRefreshIntent(input.project, { profileId: input.profileId })
1218
+ }),
1219
+ defineTool({
1220
+ name: "canonry_seo_sync",
1221
+ title: "SEO sync",
1222
+ description: "Explicitly start a saved SEO refresh. Requires seo.run. May call a paid provider under private host controls. Reuse quoteToken and idempotencyKey for an exact retry; changed input conflicts. Poll canonry_seo_run. Never call merely to answer a stored-evidence question.",
1223
+ access: "write",
1224
+ tier: "seo",
1225
+ requiredScope: SEO_RUN_SCOPE,
1226
+ inputSchema: seoSyncInputSchema.extend({ project: projectNameSchema }),
1227
+ outputSchema: seoRunSchema,
1228
+ annotations: writeAnnotations({ idempotentHint: true, openWorldHint: true }),
1229
+ openApiOperations: ["POST /api/v1/projects/{name}/seo/sync"],
1230
+ handler: (client, input) => client.syncSeo(input.project, { quoteToken: input.quoteToken, idempotencyKey: input.idempotencyKey })
1231
+ }),
1232
+ defineTool({
1233
+ name: "canonry_seo_runs",
1234
+ title: "SEO runs",
1235
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1236
+ access: "read",
1237
+ tier: "seo",
1238
+ inputSchema: projectInputSchema.extend({ profileId: z2.string().min(1).optional() }),
1239
+ outputSchema: seoRunListSchema,
1240
+ annotations: readAnnotations(),
1241
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/runs"],
1242
+ handler: (client, input) => client.listSeoRuns(input.project, { profileId: input.profileId })
1243
+ }),
1244
+ defineTool({
1245
+ name: "canonry_seo_run",
1246
+ title: "SEO run",
1247
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1248
+ access: "read",
1249
+ tier: "seo",
1250
+ inputSchema: seoIdInputSchema,
1251
+ outputSchema: seoRunDetailSchema,
1252
+ annotations: readAnnotations(),
1253
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/runs/{id}"],
1254
+ handler: (client, input) => client.getSeoRun(input.project, input.id)
1255
+ }),
1256
+ defineTool({
1257
+ name: "canonry_seo_run_cancel",
1258
+ title: "SEO run cancel",
1259
+ description: "Stop undispatched work for an exact SEO run. Requires seo.run. Already accepted requests can still finish; inspect the terminal outcome.",
1260
+ access: "write",
1261
+ tier: "seo",
1262
+ requiredScope: SEO_RUN_SCOPE,
1263
+ inputSchema: seoIdInputSchema,
1264
+ outputSchema: seoRunSchema,
1265
+ annotations: writeAnnotations({ idempotentHint: true }),
1266
+ openApiOperations: ["POST /api/v1/projects/{name}/seo/runs/{id}/cancel"],
1267
+ handler: (client, input) => client.cancelSeoRun(input.project, input.id)
1268
+ }),
1269
+ defineTool({
1270
+ name: "canonry_seo_overview",
1271
+ title: "SEO overview",
1272
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1273
+ access: "read",
1274
+ tier: "seo",
1275
+ inputSchema: seoEvidenceInputSchema,
1276
+ outputSchema: seoOverviewSchema,
1277
+ annotations: readAnnotations(),
1278
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/overview"],
1279
+ handler: (client, input) => {
1280
+ const { project, ...query } = input;
1281
+ return client.getSeoOverview(project, query);
1282
+ }
1283
+ }),
1284
+ defineTool({
1285
+ name: "canonry_seo_keyword_metrics",
1286
+ title: "SEO keyword metrics",
1287
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1288
+ access: "read",
1289
+ tier: "seo",
1290
+ inputSchema: seoEvidenceInputSchema,
1291
+ outputSchema: seoKeywordMetricsListSchema,
1292
+ annotations: readAnnotations(),
1293
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/keyword-metrics"],
1294
+ handler: (client, input) => {
1295
+ const { project, ...query } = input;
1296
+ return client.getSeoKeywordMetrics(project, query);
1297
+ }
1298
+ }),
1299
+ defineTool({
1300
+ name: "canonry_seo_domain_intelligence",
1301
+ title: "SEO domain intelligence",
1302
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1303
+ access: "read",
1304
+ tier: "seo",
1305
+ inputSchema: seoEvidenceInputSchema,
1306
+ outputSchema: seoDomainIntelligenceListSchema,
1307
+ annotations: readAnnotations(),
1308
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/domain-intelligence"],
1309
+ handler: (client, input) => {
1310
+ const { project, ...query } = input;
1311
+ return client.getSeoDomainIntelligence(project, query);
1312
+ }
1313
+ }),
1314
+ defineTool({
1315
+ name: "canonry_seo_ranked_keywords",
1316
+ title: "SEO ranked keywords",
1317
+ description: "Read stored SEO data only. No provider calls. Preserve profile, target, locale, source date, missing values and partial states. Third-party traffic estimates are not analytics or AI citation and mention coverage. Keep runId fixed while paging evidence.",
1318
+ access: "read",
1319
+ tier: "seo",
1320
+ inputSchema: seoEvidenceInputSchema,
1321
+ outputSchema: seoRankedKeywordListSchema,
1322
+ annotations: readAnnotations(),
1323
+ openApiOperations: ["GET /api/v1/projects/{name}/seo/ranked-keywords"],
1324
+ handler: (client, input) => {
1325
+ const { project, ...query } = input;
1326
+ return client.getSeoRankedKeywords(project, query);
1327
+ }
1328
+ }),
1083
1329
  defineTool({
1084
1330
  name: "canonry_sentiment_settings",
1085
1331
  title: "Read sentiment readiness and settings",
@@ -4421,6 +4667,7 @@ var CanonryMcpToolNames = Object.freeze(
4421
4667
  );
4422
4668
 
4423
4669
  export {
4670
+ mcpOutputSchema,
4424
4671
  toolOperationAccess,
4425
4672
  canonryMcpTools,
4426
4673
  CanonryMcpToolNames
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-HGMYEDAQ.js";
9
9
  import {
10
10
  describeError
11
- } from "./chunk-TIKT62IV.js";
11
+ } from "./chunk-Y7NX6EIK.js";
12
12
 
13
13
  // src/commands/mcp.ts
14
14
  import fs from "fs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-SOKD3TRA.js";
4
- import "./chunk-YFUQHJRZ.js";
3
+ } from "./chunk-F6W7FCS2.js";
4
+ import "./chunk-TVANRUBO.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import "./chunk-HGMYEDAQ.js";
7
- import "./chunk-TIKT62IV.js";
7
+ import "./chunk-Y7NX6EIK.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
 
10
10
  // src/commands/citations.ts
@@ -3,11 +3,11 @@ import {
3
3
  buildCliCatalog,
4
4
  printCliCatalog,
5
5
  renderTopLevelHelp
6
- } from "./chunk-JWBFDZIP.js";
7
- import "./chunk-3HRHHFQM.js";
6
+ } from "./chunk-U65LWABS.js";
7
+ import "./chunk-TH3NNUJW.js";
8
8
  import "./chunk-Z7IUAJOF.js";
9
9
  import "./chunk-HGMYEDAQ.js";
10
- import "./chunk-TIKT62IV.js";
10
+ import "./chunk-Y7NX6EIK.js";
11
11
  import "./chunk-MLKGABMK.js";
12
12
  export {
13
13
  CLI_ROOT_SUMMARIES,
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  REGISTERED_CLI_COMMANDS
3
- } from "./chunk-N6P3NLEI.js";
3
+ } from "./chunk-7CKJTD3Q.js";
4
4
  import "./chunk-6GO5VVAC.js";
5
- import "./chunk-5L2ZTXBH.js";
5
+ import "./chunk-WLIGKWVB.js";
6
6
  import "./chunk-VJWDBFSL.js";
7
7
  import "./chunk-TSENU4GG.js";
8
- import "./chunk-SOKD3TRA.js";
9
- import "./chunk-YFUQHJRZ.js";
10
- import "./chunk-3HRHHFQM.js";
8
+ import "./chunk-F6W7FCS2.js";
9
+ import "./chunk-TVANRUBO.js";
10
+ import "./chunk-TH3NNUJW.js";
11
11
  import "./chunk-Z7IUAJOF.js";
12
- import "./chunk-522MYBLV.js";
12
+ import "./chunk-N2HCXIQ3.js";
13
13
  import "./chunk-AOJU5LKX.js";
14
14
  import "./chunk-HGMYEDAQ.js";
15
- import "./chunk-TIKT62IV.js";
15
+ import "./chunk-Y7NX6EIK.js";
16
16
  import "./chunk-MLKGABMK.js";
17
17
  export {
18
18
  REGISTERED_CLI_COMMANDS
package/dist/cli.js CHANGED
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node --import tsx
2
2
  import {
3
3
  REGISTERED_CLI_COMMANDS
4
- } from "./chunk-N6P3NLEI.js";
4
+ } from "./chunk-7CKJTD3Q.js";
5
5
  import "./chunk-6GO5VVAC.js";
6
6
  import {
7
7
  buildSetupState,
8
8
  runPendingServeHandoff
9
- } from "./chunk-W7EX6AYN.js";
10
- import "./chunk-5L2ZTXBH.js";
9
+ } from "./chunk-PEZO3YEC.js";
10
+ import "./chunk-WLIGKWVB.js";
11
11
  import "./chunk-VJWDBFSL.js";
12
12
  import "./chunk-TSENU4GG.js";
13
- import "./chunk-S2UDQAT7.js";
13
+ import "./chunk-3U7LL3JM.js";
14
14
  import {
15
15
  checkLatestVersionForCli,
16
16
  cliRuntimeContext,
@@ -24,24 +24,24 @@ import {
24
24
  showFirstRunNotice,
25
25
  trackCliCommandFinished,
26
26
  trackEvent
27
- } from "./chunk-XXYBDAS2.js";
27
+ } from "./chunk-IFVTHGXG.js";
28
28
  import {
29
29
  autoSyncSkills,
30
30
  formatAutoSyncNotice
31
- } from "./chunk-GT7HWKBO.js";
32
- import "./chunk-SOKD3TRA.js";
33
- import "./chunk-YFUQHJRZ.js";
31
+ } from "./chunk-4UGM5YV4.js";
32
+ import "./chunk-F6W7FCS2.js";
33
+ import "./chunk-TVANRUBO.js";
34
34
  import {
35
35
  accessFilterFromArgs,
36
36
  dispatchRegisteredCommand,
37
37
  printCliCatalog
38
- } from "./chunk-JWBFDZIP.js";
38
+ } from "./chunk-U65LWABS.js";
39
39
  import {
40
40
  resolveCliAccess
41
- } from "./chunk-3HRHHFQM.js";
41
+ } from "./chunk-TH3NNUJW.js";
42
42
  import "./chunk-Z7IUAJOF.js";
43
- import "./chunk-HPC3CBPI.js";
44
- import "./chunk-522MYBLV.js";
43
+ import "./chunk-G34BVUMF.js";
44
+ import "./chunk-N2HCXIQ3.js";
45
45
  import "./chunk-AOJU5LKX.js";
46
46
  import {
47
47
  CliError,
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-HGMYEDAQ.js";
53
53
  import {
54
54
  OperationAccesses
55
- } from "./chunk-TIKT62IV.js";
55
+ } from "./chunk-Y7NX6EIK.js";
56
56
  import "./chunk-MLKGABMK.js";
57
57
 
58
58
  // src/cli.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-SOKD3TRA.js";
4
- import "./chunk-YFUQHJRZ.js";
3
+ } from "./chunk-F6W7FCS2.js";
4
+ import "./chunk-TVANRUBO.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-TIKT62IV.js";
24
+ } from "./chunk-Y7NX6EIK.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-SOKD3TRA.js";
4
- import "./chunk-YFUQHJRZ.js";
3
+ } from "./chunk-F6W7FCS2.js";
4
+ import "./chunk-TVANRUBO.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-TIKT62IV.js";
17
+ } from "./chunk-Y7NX6EIK.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-YFUQHJRZ.js";
4
+ } from "./chunk-TVANRUBO.js";
5
5
  import {
6
6
  isMachineFormat
7
7
  } from "./chunk-HGMYEDAQ.js";
8
8
  import {
9
9
  anyUsersExist
10
- } from "./chunk-FC2JA3FN.js";
11
- import "./chunk-TXBL3N46.js";
12
- import "./chunk-2R32P77U.js";
10
+ } from "./chunk-NWQQYLZV.js";
11
+ import "./chunk-Q4J3XSWE.js";
12
+ import "./chunk-27SGL3DF.js";
13
13
  import {
14
14
  createClient
15
- } from "./chunk-5AJWITKP.js";
16
- import "./chunk-TIKT62IV.js";
15
+ } from "./chunk-SCS7R2ND.js";
16
+ import "./chunk-Y7NX6EIK.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-5D6QLZOA.js");
43
+ const { createDemoServer } = await import("./demo-server-F4M74FVL.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-MVUYDJ7G.js";
8
+ } from "./chunk-4TM4NXQR.js";
9
9
  import {
10
10
  canonryMcpTools
11
- } from "./chunk-F7WRZW3A.js";
12
- import "./chunk-KRIZF753.js";
13
- import "./chunk-522MYBLV.js";
11
+ } from "./chunk-YJPQBJZO.js";
12
+ import "./chunk-QSPLYPVA.js";
13
+ import "./chunk-N2HCXIQ3.js";
14
14
  import {
15
15
  PACKAGE_VERSION
16
16
  } from "./chunk-AOJU5LKX.js";
@@ -18,16 +18,16 @@ import "./chunk-HGMYEDAQ.js";
18
18
  import {
19
19
  HISTORY_WINDOW_RUNS,
20
20
  IntelligenceService
21
- } from "./chunk-HFMRK3V3.js";
21
+ } from "./chunk-NMLVLFF7.js";
22
22
  import {
23
23
  determineCitationState
24
- } from "./chunk-VF36TGF4.js";
24
+ } from "./chunk-L7TKNHEX.js";
25
25
  import {
26
26
  apiRoutes,
27
27
  assessConversionTrackingIntegrity
28
- } from "./chunk-FC2JA3FN.js";
29
- import "./chunk-TXBL3N46.js";
30
- import "./chunk-2R32P77U.js";
28
+ } from "./chunk-NWQQYLZV.js";
29
+ import "./chunk-Q4J3XSWE.js";
30
+ import "./chunk-27SGL3DF.js";
31
31
  import {
32
32
  adsAdGroups,
33
33
  adsAds,
@@ -100,7 +100,7 @@ import {
100
100
  siteCrawlPages,
101
101
  siteCrawlSnapshots,
102
102
  trafficSources
103
- } from "./chunk-5AJWITKP.js";
103
+ } from "./chunk-SCS7R2ND.js";
104
104
  import {
105
105
  AI_ENGINE_DOMAINS,
106
106
  GA_OVERVIEW_HISTORY_DAYS,
@@ -136,7 +136,7 @@ import {
136
136
  roundPreservingTotal,
137
137
  siteAuditPageFactorSchema,
138
138
  wilsonInterval
139
- } from "./chunk-TIKT62IV.js";
139
+ } from "./chunk-Y7NX6EIK.js";
140
140
  import "./chunk-MLKGABMK.js";
141
141
 
142
142
  // src/demo-server.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-SOKD3TRA.js";
4
- import "./chunk-YFUQHJRZ.js";
3
+ } from "./chunk-F6W7FCS2.js";
4
+ import "./chunk-TVANRUBO.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -14,7 +14,7 @@ import {
14
14
  CitationStates,
15
15
  DiscoveryPromoteCompetitorSkipReasons,
16
16
  describeError
17
- } from "./chunk-TIKT62IV.js";
17
+ } from "./chunk-Y7NX6EIK.js";
18
18
  import "./chunk-MLKGABMK.js";
19
19
 
20
20
  // src/commands/discover.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-SOKD3TRA.js";
4
- import "./chunk-YFUQHJRZ.js";
3
+ } from "./chunk-F6W7FCS2.js";
4
+ import "./chunk-TVANRUBO.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-TIKT62IV.js";
10
+ import "./chunk-Y7NX6EIK.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-SOKD3TRA.js";
4
- import "./chunk-YFUQHJRZ.js";
3
+ } from "./chunk-F6W7FCS2.js";
4
+ import "./chunk-TVANRUBO.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-TIKT62IV.js";
16
+ } from "./chunk-Y7NX6EIK.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-SOKD3TRA.js";
4
- import "./chunk-YFUQHJRZ.js";
3
+ } from "./chunk-F6W7FCS2.js";
4
+ import "./chunk-TVANRUBO.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -9,7 +9,7 @@ import "./chunk-AOJU5LKX.js";
9
9
  import "./chunk-HGMYEDAQ.js";
10
10
  import {
11
11
  CitationStates
12
- } from "./chunk-TIKT62IV.js";
12
+ } from "./chunk-Y7NX6EIK.js";
13
13
  import "./chunk-MLKGABMK.js";
14
14
 
15
15
  // src/commands/evidence.ts