@canonry/canonry 7.120.2 → 7.121.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 (143) hide show
  1. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +4 -0
  2. package/assets/assets/{AccessControls-D9u5mHZy.js → AccessControls-CP27J4pe.js} +1 -1
  3. package/assets/assets/{AgentSetupPage-sxobNnR4.js → AgentSetupPage-Cr4N8PtT.js} +1 -1
  4. package/assets/assets/{AuditHistoryPanel-B-br1Rgm.js → AuditHistoryPanel-DLQzK10v.js} +1 -1
  5. package/assets/assets/{BacklinksPage-DBncT_in.js → BacklinksPage-DQL-PEeM.js} +1 -1
  6. package/assets/assets/{ChartPrimitives-BVl_On4G.js → ChartPrimitives-C-1eZmHk.js} +1 -1
  7. package/assets/assets/{HistoryPage-DLzXIHGd.js → HistoryPage-BBzUc2Ba.js} +1 -1
  8. package/assets/assets/{MeasurementPropertyPage-C2RXn2iP.js → MeasurementPropertyPage-BQorimIL.js} +1 -1
  9. package/assets/assets/{ProjectPage-CUGvozZu.js → ProjectPage-5TzCjfke.js} +3 -3
  10. package/assets/assets/{RunsPage-CGdstDkz.js → RunsPage-D4ul_xdH.js} +1 -1
  11. package/assets/assets/{ServerTrafficSection-DsmN-vR2.js → ServerTrafficSection-Dbg74DP1.js} +3 -3
  12. package/assets/assets/{SettingsPage-DAnYQBff.js → SettingsPage-BlCcsRj8.js} +1 -1
  13. package/assets/assets/ToneBadge-co0skd0y.js +60 -0
  14. package/assets/assets/{TrafficPage-HQMcIXhQ.js → TrafficPage-DXjB09Mc.js} +1 -1
  15. package/assets/assets/{TrafficSourceDetailPage-BXQX0fyG.js → TrafficSourceDetailPage-Bs-C93Kj.js} +1 -1
  16. package/assets/assets/{account-context-BNo2KFA7.js → account-context-DtBBZ6kn.js} +1 -1
  17. package/assets/assets/{agent-trust-copy-B3Dw_M_3.js → agent-trust-copy-KHOU1_xL.js} +1 -1
  18. package/assets/assets/{card-h-mmYzMc.js → card-Cky0yiDz.js} +1 -1
  19. package/assets/assets/{index-DpBLjU4G.js → index-KAuh2d07.js} +3 -3
  20. package/assets/assets/{preload-helper-D2o-5DDv.js → preload-helper-BzmljT8n.js} +1 -1
  21. package/assets/assets/{query-client-gk-fhrrc.js → query-client-BGk_rgH_.js} +1 -1
  22. package/assets/assets/{react-query-hUdNgz2a.js → react-query-DOCVYs22.js} +1 -1
  23. package/assets/assets/{react-sigma_core.esm.min-CbMudrIV.js → react-sigma_core.esm.min-DY78Y3sE.js} +1 -1
  24. package/assets/assets/{server-traffic-CL5cYldZ.js → server-traffic-CqU3z6oz.js} +1 -1
  25. package/assets/assets/{service-CxbxBFUX.js → service-BNdGdFA8.js} +1 -1
  26. package/assets/index.html +9 -9
  27. package/dist/{ads-PMDSTHUC.js → ads-RVWK3WOT.js} +4 -4
  28. package/dist/{agent-5EL5AECW.js → agent-OSSTIYD5.js} +8 -8
  29. package/dist/{agent-ask-VAZUSWFA.js → agent-ask-2SPA6RIE.js} +4 -4
  30. package/dist/{agent-conversations-KOBHBQS6.js → agent-conversations-36UMFQY6.js} +4 -4
  31. package/dist/{agent-journeys-Q5J6K76M.js → agent-journeys-TW2CF6JI.js} +4 -4
  32. package/dist/{agent-memory-UTZWNL5K.js → agent-memory-GD2X65LE.js} +4 -4
  33. package/dist/{agent-providers-TBMKTIJT.js → agent-providers-A4E2TUJ7.js} +4 -4
  34. package/dist/{agent-transcript-4MIMLCSN.js → agent-transcript-JLHXL72N.js} +4 -4
  35. package/dist/{analytics-VGPQ3P7U.js → analytics-BZ7FJTK4.js} +4 -4
  36. package/dist/{apply-AL52P3BT.js → apply-BJDXDQXK.js} +4 -4
  37. package/dist/{backfill-AE23XODQ.js → backfill-F2OC7F22.js} +11 -11
  38. package/dist/{backlinks-T5ZWICGA.js → backlinks-IGSJG4TC.js} +4 -4
  39. package/dist/{bing-DFU4M6P2.js → bing-HHWCD5QU.js} +4 -4
  40. package/dist/{bootstrap-VBGDPCJ4.js → bootstrap-5LOT7HNU.js} +11 -11
  41. package/dist/{cdp-WHDGSGRE.js → cdp-5XNSVSBE.js} +8 -8
  42. package/dist/{chunk-OO4RE44D.js → chunk-3CT756HO.js} +1 -1
  43. package/dist/{chunk-AOD35IKL.js → chunk-3LJH6WL6.js} +1 -1
  44. package/dist/{chunk-QC4MPO7E.js → chunk-6TKNNXDP.js} +423 -372
  45. package/dist/{chunk-AHVF5OE5.js → chunk-BB2KXNOG.js} +2 -2
  46. package/dist/{chunk-TTQBEFSU.js → chunk-CCFEMZI5.js} +1 -1
  47. package/dist/{chunk-R2CBQPN6.js → chunk-D4G3FP7N.js} +13 -6
  48. package/dist/{chunk-FYTSSBV7.js → chunk-E6WE5AZN.js} +23 -23
  49. package/dist/{chunk-5KINLLTJ.js → chunk-E6WLCHXT.js} +4 -4
  50. package/dist/{chunk-ZCRUXUHU.js → chunk-EGH7MBFI.js} +5 -5
  51. package/dist/{chunk-6KH4XZLA.js → chunk-F5UUN6UB.js} +1 -1
  52. package/dist/{chunk-6WG3PZUR.js → chunk-G56TRFKC.js} +7 -7
  53. package/dist/{chunk-PM4GX6FP.js → chunk-GDAL3L25.js} +4 -4
  54. package/dist/{chunk-3Q2D53KV.js → chunk-HGXAKSRX.js} +1 -1
  55. package/dist/{chunk-XTR3KSV2.js → chunk-IQGRGJFP.js} +1 -1
  56. package/dist/{chunk-VCXKSGZF.js → chunk-LJ3MSVVW.js} +1 -1
  57. package/dist/{chunk-2FNWSHOE.js → chunk-LNBJ3ZEK.js} +17 -3
  58. package/dist/{chunk-AOYSK6D2.js → chunk-LZSY5GNZ.js} +2 -2
  59. package/dist/{chunk-FTPGW2WX.js → chunk-M2OSHVTB.js} +2 -2
  60. package/dist/{chunk-OXYZQJLV.js → chunk-NGTWSJSP.js} +1 -1
  61. package/dist/{chunk-WLG476HL.js → chunk-NJTIZSBH.js} +5 -5
  62. package/dist/{chunk-WVZR3J7X.js → chunk-NZQWQK4N.js} +4 -4
  63. package/dist/{chunk-FYL67YEU.js → chunk-QE3PIF67.js} +8 -8
  64. package/dist/{chunk-NQFBIMS4.js → chunk-QFPQIPX3.js} +2 -2
  65. package/dist/{chunk-RDISN2CO.js → chunk-REDBG2JO.js} +5 -5
  66. package/dist/{chunk-EZOBUXLP.js → chunk-RHWKLRLF.js} +3 -3
  67. package/dist/{chunk-TS477DBZ.js → chunk-RVRQJ2SA.js} +2 -2
  68. package/dist/{chunk-47Y5UAYA.js → chunk-S6GBOBNO.js} +2 -2
  69. package/dist/{chunk-ZDYWXTNN.js → chunk-SPNDMTXM.js} +42 -4
  70. package/dist/{chunk-3N2MSPPU.js → chunk-TAFIB6LC.js} +3 -2
  71. package/dist/{chunk-QCXKLTVC.js → chunk-TH6JFDUI.js} +4 -4
  72. package/dist/{chunk-VOK62VGC.js → chunk-UYRC244Y.js} +11 -0
  73. package/dist/{chunk-VK6SYZAH.js → chunk-VXBYTMSM.js} +87 -4
  74. package/dist/{chunk-GDRZPBPF.js → chunk-WKYQ7255.js} +2 -2
  75. package/dist/{chunk-J4FMWPEM.js → chunk-X2WJ563G.js} +3 -3
  76. package/dist/{chunk-HFNLWW3Z.js → chunk-XDCXC6DL.js} +1 -1
  77. package/dist/{chunk-QT475Y6O.js → chunk-XXKC266R.js} +2 -2
  78. package/dist/{chunk-RLLYGXNA.js → chunk-YETOLZWJ.js} +4 -4
  79. package/dist/{chunk-IWQFTZ75.js → chunk-ZA44DK2O.js} +1 -1
  80. package/dist/{citations-JOM2DJX3.js → citations-BJKMX32Y.js} +5 -5
  81. package/dist/{cli-catalog-4ZCK2TFK.js → cli-catalog-VK4DK55E.js} +4 -4
  82. package/dist/cli-commands-RQU2FMPV.js +18 -0
  83. package/dist/cli.js +14 -14
  84. package/dist/{competitor-FQH7LNR2.js → competitor-ONXSUUEJ.js} +4 -4
  85. package/dist/{content-KEZJJEV2.js → content-U276NS4F.js} +4 -4
  86. package/dist/{dashboard-7I6A2XHW.js → dashboard-SVYP4JIF.js} +7 -7
  87. package/dist/{demo-JGVDDJYC.js → demo-CJEZXMD7.js} +3 -3
  88. package/dist/{demo-server-YOMJIFPD.js → demo-server-ASS76Y3T.js} +13 -13
  89. package/dist/{discover-ZB6I2A65.js → discover-O6MXXTQP.js} +5 -5
  90. package/dist/{discover-eval-XXRA3XDQ.js → discover-eval-RWCDKTW2.js} +4 -4
  91. package/dist/{doctor-KTGY5L57.js → doctor-LDHRSYBN.js} +4 -4
  92. package/dist/{evidence-BEBTLKK4.js → evidence-HCQ3XGR3.js} +4 -4
  93. package/dist/{export-cmd-VIQGUL7N.js → export-cmd-FCD27XDA.js} +4 -4
  94. package/dist/{ga-YEQKHEN2.js → ga-DNE32K5T.js} +4 -4
  95. package/dist/{gbp-NFTRCNGZ.js → gbp-BD6N5ZNR.js} +4 -4
  96. package/dist/{google-MBQW2EGU.js → google-JGLRBRDJ.js} +5 -5
  97. package/dist/{google-marketing-KIGW7ZGN.js → google-marketing-VGDUCHDK.js} +2 -2
  98. package/dist/{health-cmd-6B6VSAX3.js → health-cmd-SSUFVJXH.js} +5 -5
  99. package/dist/{history-DX2QSPL2.js → history-FPNPI3FR.js} +4 -4
  100. package/dist/index.d.ts +76 -76
  101. package/dist/index.js +27 -27
  102. package/dist/{init-BK6GYDZP.js → init-VSXHQ7IH.js} +13 -13
  103. package/dist/{insights-ZJD3KUA7.js → insights-JXWPCIKX.js} +4 -4
  104. package/dist/intelligence-service-XCADQRDI.js +15 -0
  105. package/dist/{journeys-E4FC7PCM.js → journeys-ULUM5VHN.js} +4 -4
  106. package/dist/{keys-TD6NBRRY.js → keys-K7LFSZEV.js} +4 -4
  107. package/dist/{keyword-FEOQSKMZ.js → keyword-FEVMF4GU.js} +4 -4
  108. package/dist/{logs-YV5JPJH3.js → logs-IFSEC6EG.js} +4 -4
  109. package/dist/{mcp-S3YNKUQQ.js → mcp-GEHAKVJQ.js} +5 -5
  110. package/dist/mcp.js +11 -11
  111. package/dist/{measurement-plan-VVDLIBQO.js → measurement-plan-P3VN75M2.js} +6 -6
  112. package/dist/{notify-GUJ6PLRU.js → notify-J4FVK5NC.js} +21 -5
  113. package/dist/{organic-evidence-A66B5BWS.js → organic-evidence-X53DBTMQ.js} +4 -4
  114. package/dist/{overview-JKW5LARL.js → overview-F3LYI5W4.js} +6 -6
  115. package/dist/{project-XUYBPKWJ.js → project-RXT5IJKZ.js} +4 -4
  116. package/dist/{project-setup-YO6R26JG.js → project-setup-ATO24GGB.js} +4 -4
  117. package/dist/{query-YOTYGF4K.js → query-LGPJDI56.js} +4 -4
  118. package/dist/{research-QVG5XZDF.js → research-BHOCLEHN.js} +4 -4
  119. package/dist/{results-export-4TMA6DJT.js → results-export-PFKBOBPA.js} +4 -4
  120. package/dist/{run-HGYYDS6S.js → run-ASLSXRUQ.js} +6 -6
  121. package/dist/{schedule-RR6OUMKT.js → schedule-SQOLIVNL.js} +4 -4
  122. package/dist/{search-KO7PIUMR.js → search-3ZHHJHIN.js} +4 -4
  123. package/dist/{serve-GLPKVWZE.js → serve-63VQPOQF.js} +28 -28
  124. package/dist/{session-RJ5AYV6Q.js → session-KZJB4SN3.js} +15 -15
  125. package/dist/{settings-HDENU4PV.js → settings-JOPGFAZS.js} +4 -4
  126. package/dist/{sitemaps-GTHH2RP3.js → sitemaps-AAEYPCF3.js} +4 -4
  127. package/dist/{skills-U3MDHCWF.js → skills-IWK7KYBF.js} +3 -3
  128. package/dist/{snapshot-SWFUS4D2.js → snapshot-N45FCZO3.js} +4 -4
  129. package/dist/{src-R74K2NOZ.js → src-D5YFNRUG.js} +2 -2
  130. package/dist/{status-ACUIXSLV.js → status-O4GQAJV5.js} +6 -6
  131. package/dist/{support-3IFWJF3E.js → support-RNNKG6QY.js} +2 -2
  132. package/dist/{technical-aeo-NWE56UCG.js → technical-aeo-IMGI4ST7.js} +4 -4
  133. package/dist/{telemetry-CHW3LG5A.js → telemetry-ELCKZQGI.js} +5 -5
  134. package/dist/{tools-BCDSJTKK.js → tools-7NYNPJTI.js} +12 -12
  135. package/dist/{traffic-MHCGXV2V.js → traffic-NJ476WXB.js} +6 -6
  136. package/dist/{trends-5IEV52XW.js → trends-ULBZCMKS.js} +4 -4
  137. package/dist/{users-KRY5MKJ4.js → users-TFQRXDHF.js} +4 -4
  138. package/dist/{visibility-stats-JF3SXXKS.js → visibility-stats-Q3F5ORLR.js} +5 -5
  139. package/dist/{wordpress-TV2NSQPK.js → wordpress-JPDUJ7ZW.js} +4 -4
  140. package/package.json +1 -1
  141. package/assets/assets/ToneBadge-BCQPh7t2.js +0 -60
  142. package/dist/cli-commands-Z7Q5HLBB.js +0 -18
  143. package/dist/intelligence-service-7S4ZFNB6.js +0 -15
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pickProjectCitedDomain
3
- } from "./chunk-AOD35IKL.js";
3
+ } from "./chunk-3LJH6WL6.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-AHVF5OE5.js";
6
+ } from "./chunk-BB2KXNOG.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-VK6SYZAH.js";
21
+ } from "./chunk-VXBYTMSM.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-VCXKSGZF.js";
39
+ } from "./chunk-LJ3MSVVW.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-VOK62VGC.js";
48
+ } from "./chunk-UYRC244Y.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";
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-VJWDBFSL.js";
5
5
  import {
6
6
  createApiClient
7
- } from "./chunk-2FNWSHOE.js";
7
+ } from "./chunk-LNBJ3ZEK.js";
8
8
  import {
9
9
  CliError,
10
10
  isMachineFormat
11
- } from "./chunk-IWQFTZ75.js";
11
+ } from "./chunk-ZA44DK2O.js";
12
12
  import {
13
13
  describeError
14
- } from "./chunk-VOK62VGC.js";
14
+ } from "./chunk-UYRC244Y.js";
15
15
 
16
16
  // src/commands/mcp.ts
17
17
  import fs from "fs";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  CliError,
6
6
  isMachineFormat
7
- } from "./chunk-IWQFTZ75.js";
7
+ } from "./chunk-ZA44DK2O.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-VOK62VGC.js";
18
+ } from "./chunk-UYRC244Y.js";
19
19
 
20
20
  // src/commands/skills.ts
21
21
  import crypto from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  trackIntegrationConnection
3
- } from "./chunk-5KINLLTJ.js";
3
+ } from "./chunk-E6WLCHXT.js";
4
4
  import {
5
5
  cliRuntimeContext
6
- } from "./chunk-AOYSK6D2.js";
6
+ } from "./chunk-LZSY5GNZ.js";
7
7
 
8
8
  // src/cli-connection-telemetry.ts
9
9
  function trackCliConnection(properties) {
@@ -5,14 +5,14 @@ import {
5
5
  dedupeGscSitemapUrls,
6
6
  resolveDiscoveredGscSitemapUrls,
7
7
  submitGscSitemapBatches
8
- } from "./chunk-NQFBIMS4.js";
8
+ } from "./chunk-QFPQIPX3.js";
9
9
  import {
10
10
  measurementDraftOperationSchema,
11
11
  runMeasurementDraftAction
12
- } from "./chunk-XTR3KSV2.js";
12
+ } from "./chunk-IQGRGJFP.js";
13
13
  import {
14
14
  CliError
15
- } from "./chunk-IWQFTZ75.js";
15
+ } from "./chunk-ZA44DK2O.js";
16
16
  import {
17
17
  AGENT_MEMORY_KEY_MAX_LENGTH,
18
18
  AGENT_MEMORY_VALUE_MAX_BYTES,
@@ -113,7 +113,9 @@ import {
113
113
  measurementQuestionResultQuerySchema,
114
114
  metricsWindowSchema,
115
115
  notificationCreateRequestSchema,
116
+ notificationDtoSchema,
116
117
  notificationEventSchema,
118
+ notificationUpdateRequestSchema,
117
119
  operationAccess,
118
120
  operationalLogListReadSchema,
119
121
  organicEvidencePeriodSchema,
@@ -213,7 +215,7 @@ import {
213
215
  trendSurfaceSchema,
214
216
  visibilityCompareSelectionSchema,
215
217
  visibilityReportRequestSchema
216
- } from "./chunk-VOK62VGC.js";
218
+ } from "./chunk-UYRC244Y.js";
217
219
 
218
220
  // src/mcp/tool-registry.ts
219
221
  import { z as z2 } from "zod";
@@ -894,6 +896,15 @@ var scheduleReadInputSchema = z2.object({
894
896
  });
895
897
  var scheduleListOutputSchema = z2.object({ items: z2.array(scheduleDtoSchema) });
896
898
  var notificationEventsOutputSchema = z2.object({ items: z2.array(notificationEventSchema) });
899
+ var notificationListOutputSchema = z2.object({ items: z2.array(notificationDtoSchema) });
900
+ var notificationUpdateInputSchema = z2.object({
901
+ project: projectNameSchema,
902
+ id: z2.string().min(1).describe("Webhook ID, from canonry_notifications_list."),
903
+ events: notificationUpdateRequestSchema.shape.events.describe("Replace the whole event list. Do not combine with addEvents or removeEvents."),
904
+ addEvents: notificationUpdateRequestSchema.shape.addEvents.describe("Events to add to the stored list."),
905
+ removeEvents: notificationUpdateRequestSchema.shape.removeEvents.describe("Events to remove from the stored list."),
906
+ enabled: notificationUpdateRequestSchema.shape.enabled.describe("Turn the webhook on (true) or off (false).")
907
+ });
897
908
  var agentWebhookAttachInputSchema = z2.object({
898
909
  project: projectNameSchema,
899
910
  url: z2.string().url()
@@ -2378,6 +2389,33 @@ var rawCanonryMcpTools = [
2378
2389
  openApiOperations: ["GET /api/v1/notifications/events"],
2379
2390
  handler: (client) => client.listNotificationEvents()
2380
2391
  }),
2392
+ defineTool({
2393
+ name: "canonry_notifications_list",
2394
+ title: "List project webhooks",
2395
+ description: "List a project's notification webhooks: id, events, enabled, and the destination host. URLs are redacted; the signing secret is never returned. Use the id with canonry_notification_update.",
2396
+ access: "read",
2397
+ tier: "setup",
2398
+ inputSchema: projectInputSchema,
2399
+ outputSchema: notificationListOutputSchema,
2400
+ annotations: readAnnotations(),
2401
+ openApiOperations: ["GET /api/v1/projects/{name}/notifications"],
2402
+ handler: (client, input) => client.listNotifications(input.project)
2403
+ }),
2404
+ defineTool({
2405
+ name: "canonry_notification_update",
2406
+ title: "Update a project webhook",
2407
+ description: "Change an existing webhook in place: replace its events, add or remove events, or turn it on or off. The URL and signing secret stay the same. A webhook made before an event existed (for example mention.lost / mention.gained) only receives it once it is added here.",
2408
+ access: "write",
2409
+ tier: "setup",
2410
+ inputSchema: notificationUpdateInputSchema,
2411
+ outputSchema: notificationDtoSchema,
2412
+ annotations: writeAnnotations({ idempotentHint: true }),
2413
+ openApiOperations: ["PATCH /api/v1/projects/{name}/notifications/{id}"],
2414
+ handler: (client, input) => {
2415
+ const { project, id, ...update } = input;
2416
+ return client.updateNotification(project, id, update);
2417
+ }
2418
+ }),
2381
2419
  defineTool({
2382
2420
  name: "canonry_backlinks_latest_release",
2383
2421
  title: "Discover latest Common Crawl release",
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  usageError
3
- } from "./chunk-IWQFTZ75.js";
3
+ } from "./chunk-ZA44DK2O.js";
4
4
  import {
5
5
  AppError,
6
6
  parseWindowIn,
7
7
  resolveDateRange
8
- } from "./chunk-VOK62VGC.js";
8
+ } from "./chunk-UYRC244Y.js";
9
9
 
10
10
  // src/cli-access.ts
11
11
  var CLI_ACCESS_BY_ID = Object.freeze({
@@ -302,6 +302,7 @@ var CLI_ACCESS_BY_ID = Object.freeze({
302
302
  "notify.list": "stored",
303
303
  "notify.remove": "write",
304
304
  "notify.test": "write",
305
+ "notify.update": "write",
305
306
  "organic-evidence": "stored",
306
307
  "overview": "stored",
307
308
  "project": "write",
@@ -2,10 +2,10 @@ import {
2
2
  SNAPSHOT_CELL_LEGEND,
3
3
  citationGlyph,
4
4
  mentionGlyph
5
- } from "./chunk-HFNLWW3Z.js";
5
+ } from "./chunk-XDCXC6DL.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-2FNWSHOE.js";
8
+ } from "./chunk-LNBJ3ZEK.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-IWQFTZ75.js";
16
+ } from "./chunk-ZA44DK2O.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-VOK62VGC.js";
26
+ } from "./chunk-UYRC244Y.js";
27
27
 
28
28
  // src/commands/run.ts
29
29
  function getClient() {
@@ -604,6 +604,12 @@ var notificationCreateRequestSchema = z6.object({
604
604
  events: z6.array(notificationEventSchema).min(1),
605
605
  source: z6.string().optional()
606
606
  });
607
+ var notificationUpdateRequestSchema = z6.object({
608
+ events: z6.array(notificationEventSchema).min(1).optional(),
609
+ addEvents: z6.array(notificationEventSchema).min(1).optional(),
610
+ removeEvents: z6.array(notificationEventSchema).min(1).optional(),
611
+ enabled: z6.boolean().optional()
612
+ }).strict();
607
613
  var HEALTH_NO_LONGER_URGENT = "No longer urgent.";
608
614
  var ReviewDeliveryStates = Object.freeze({
609
615
  Pending: "pending",
@@ -25844,13 +25850,17 @@ var CLAUDE_SEARCH_AND_BATCH = {
25844
25850
  };
25845
25851
  var DEFAULT_MODEL_PRICES = {
25846
25852
  claude: {
25853
+ "claude-fable-5-2": { inputPerMTok: 8, outputPerMTok: 40, cachedInputPerMTok: 0.2, ...CLAUDE_SEARCH_AND_BATCH },
25854
+ "claude-mythos-5-2": { inputPerMTok: 8, outputPerMTok: 40, cachedInputPerMTok: 0.2, ...CLAUDE_SEARCH_AND_BATCH },
25847
25855
  "claude-opus-5-5": { inputPerMTok: 4, outputPerMTok: 20, cachedInputPerMTok: 0.2, ...CLAUDE_SEARCH_AND_BATCH },
25848
25856
  "claude-fable-5-1": { inputPerMTok: 10, outputPerMTok: 50, cachedInputPerMTok: 0.25, ...CLAUDE_SEARCH_AND_BATCH },
25857
+ "claude-mythos-5-1": { inputPerMTok: 10, outputPerMTok: 50, cachedInputPerMTok: 0.25, ...CLAUDE_SEARCH_AND_BATCH },
25849
25858
  "claude-fable-5": { inputPerMTok: 10, outputPerMTok: 50, ...CLAUDE_SEARCH_AND_BATCH },
25850
25859
  "claude-opus-5": { inputPerMTok: 5, outputPerMTok: 25, ...CLAUDE_SEARCH_AND_BATCH },
25851
25860
  "claude-opus-4-8": { inputPerMTok: 5, outputPerMTok: 25, ...CLAUDE_SEARCH_AND_BATCH },
25852
25861
  "claude-opus-4-7": { inputPerMTok: 5, outputPerMTok: 25, ...CLAUDE_SEARCH_AND_BATCH },
25853
25862
  "claude-opus-4-6": { inputPerMTok: 5, outputPerMTok: 25, ...CLAUDE_SEARCH_AND_BATCH },
25863
+ "claude-sonnet-5-5": { inputPerMTok: 2, outputPerMTok: 10, cachedInputPerMTok: 0.1, ...CLAUDE_SEARCH_AND_BATCH },
25854
25864
  "claude-sonnet-5": { inputPerMTok: 2, outputPerMTok: 10, ...CLAUDE_SEARCH_AND_BATCH },
25855
25865
  "claude-sonnet-4-6": { inputPerMTok: 3, outputPerMTok: 15, ...CLAUDE_SEARCH_AND_BATCH },
25856
25866
  "claude-haiku-4-5": { inputPerMTok: 1, outputPerMTok: 5, ...CLAUDE_SEARCH_AND_BATCH }
@@ -29572,6 +29582,7 @@ export {
29572
29582
  NOTIFICATION_EVENT_DESCRIPTIONS,
29573
29583
  notificationDtoSchema,
29574
29584
  notificationCreateRequestSchema,
29585
+ notificationUpdateRequestSchema,
29575
29586
  HEALTH_NO_LONGER_URGENT,
29576
29587
  ReviewDeliveryStates,
29577
29588
  googleBusinessReviewUrl,
@@ -19,14 +19,14 @@ import {
19
19
  normalizeTrafficPathPattern,
20
20
  sessionizeJourneyRequests,
21
21
  verifyRequestSignature
22
- } from "./chunk-3Q2D53KV.js";
22
+ } from "./chunk-HGXAKSRX.js";
23
23
  import {
24
24
  currentOutcomeAttribution,
25
25
  getRequestContext,
26
26
  registerRequestContext,
27
27
  requestAuditIdentity,
28
28
  sanitizeRequestContext
29
- } from "./chunk-TTQBEFSU.js";
29
+ } from "./chunk-CCFEMZI5.js";
30
30
  import {
31
31
  RawEventSampleEventTypes,
32
32
  SentimentIdempotencyConflict,
@@ -190,7 +190,7 @@ import {
190
190
  userSessions,
191
191
  users,
192
192
  writeNegativeReviewMaxStars
193
- } from "./chunk-VCXKSGZF.js";
193
+ } from "./chunk-LJ3MSVVW.js";
194
194
  import {
195
195
  ADS_ACTIVATE_SCOPE,
196
196
  ADS_ACTIVATION_ABSOLUTE_MAX_ENTITIES,
@@ -1064,6 +1064,7 @@ import {
1064
1064
  notImplemented,
1065
1065
  notificationDtoSchema,
1066
1066
  notificationEventSchema,
1067
+ notificationUpdateRequestSchema,
1067
1068
  onboardingTelemetryEventSchema,
1068
1069
  openRouterRouteModel,
1069
1070
  operationAccess,
@@ -1390,7 +1391,7 @@ import {
1390
1391
  wordpressSchemaDeployResultDtoSchema,
1391
1392
  wordpressSchemaStatusResultDtoSchema,
1392
1393
  wordpressStatusDtoSchema
1393
- } from "./chunk-VOK62VGC.js";
1394
+ } from "./chunk-UYRC244Y.js";
1394
1395
 
1395
1396
  // ../api-routes/src/user-session.ts
1396
1397
  import crypto2 from "crypto";
@@ -40789,6 +40790,7 @@ var SCHEMA_TABLE = {
40789
40790
  MeasurementSegmentRetirementResponse: measurementSegmentRetirementResponseSchema,
40790
40791
  MeasurementSetupResponse: measurementSetupResponseSchema,
40791
40792
  NotificationDto: notificationDtoSchema,
40793
+ NotificationUpdateRequest: notificationUpdateRequestSchema,
40792
40794
  OnboardingTelemetryEvent: onboardingTelemetryEventSchema,
40793
40795
  UiTelemetryEvent: uiTelemetryEventSchema,
40794
40796
  OrganicEvidenceDto: organicEvidenceDtoSchema,
@@ -44792,6 +44794,27 @@ var routeCatalog = [
44792
44794
  404: errorResponse("Notification not found.")
44793
44795
  }
44794
44796
  },
44797
+ {
44798
+ method: "patch",
44799
+ path: "/api/v1/projects/{name}/notifications/{id}",
44800
+ summary: "Update a notification",
44801
+ description: "Changes an existing webhook in place: replaces its event list and/or turns it on or off. The URL and signing secret stay as they are; to send somewhere else, add a new webhook. Name at least one field.",
44802
+ tags: ["notifications"],
44803
+ parameters: [nameParameter, notificationIdParameter],
44804
+ requestBody: {
44805
+ required: true,
44806
+ content: {
44807
+ "application/json": {
44808
+ schema: { $ref: "#/components/schemas/NotificationUpdateRequest" }
44809
+ }
44810
+ }
44811
+ },
44812
+ responses: {
44813
+ 200: jsonResponse("Notification updated.", "NotificationDto"),
44814
+ 400: errorResponse("Invalid notification update."),
44815
+ 404: errorResponse("Notification not found.")
44816
+ }
44817
+ },
44795
44818
  {
44796
44819
  method: "post",
44797
44820
  path: "/api/v1/projects/{name}/notifications/{id}/test",
@@ -51808,6 +51831,61 @@ async function notificationRoutes(app, opts = {}) {
51808
51831
  });
51809
51832
  return reply.status(204).send();
51810
51833
  }));
51834
+ app.patch("/projects/:name/notifications/:id", async (request, reply) => {
51835
+ const body = request.body;
51836
+ const fields = body && typeof body === "object" ? body : {};
51837
+ const eventLists = [fields.events, fields.addEvents, fields.removeEvents];
51838
+ const invalid = eventLists.flatMap((list) => Array.isArray(list) ? list.filter((e) => !VALID_EVENTS.includes(e)) : []);
51839
+ if (invalid.length) {
51840
+ throw validationError(`Invalid event(s): ${invalid.join(", ")}. Must be one of: ${VALID_EVENTS.join(", ")}`);
51841
+ }
51842
+ const parsed = notificationUpdateRequestSchema.safeParse(body ?? {});
51843
+ if (!parsed.success) {
51844
+ throw validationError("Invalid notification update", {
51845
+ issues: parsed.error.issues.map((issue) => ({
51846
+ path: issue.path.join(".") || ("keys" in issue && Array.isArray(issue.keys) ? issue.keys.join(".") : ""),
51847
+ message: issue.message
51848
+ }))
51849
+ });
51850
+ }
51851
+ const update = parsed.data;
51852
+ if (update.events !== void 0 && (update.addEvents !== void 0 || update.removeEvents !== void 0)) {
51853
+ throw validationError('"events" replaces the whole list; send it alone, or use "addEvents" / "removeEvents" without it');
51854
+ }
51855
+ if (update.events === void 0 && update.addEvents === void 0 && update.removeEvents === void 0 && update.enabled === void 0) {
51856
+ throw validationError('Name at least one field to change: "events", "addEvents", "removeEvents" or "enabled"');
51857
+ }
51858
+ const project = resolveProject(app.db, request.params.name);
51859
+ const notification = app.db.select().from(notifications).where(eq85(notifications.id, request.params.id)).get();
51860
+ if (!notification || notification.projectId !== project.id) {
51861
+ throw notFound("Notification", request.params.id);
51862
+ }
51863
+ const config = notification.config;
51864
+ const events = nextNotificationEvents(config.events, update);
51865
+ if (events.length === 0) {
51866
+ throw validationError("A webhook needs at least one event; remove the webhook instead of removing all of its events");
51867
+ }
51868
+ const enabled = update.enabled ?? notification.enabled;
51869
+ const eventsChanged = events.length !== config.events.length || events.some((event, i) => event !== config.events[i]);
51870
+ const enabledChanged = enabled !== notification.enabled;
51871
+ if (eventsChanged || enabledChanged) {
51872
+ app.db.transaction((tx) => {
51873
+ tx.update(notifications).set({ config: { ...config, events }, enabled, updatedAt: (/* @__PURE__ */ new Date()).toISOString() }).where(eq85(notifications.id, notification.id)).run();
51874
+ writeAuditLog(tx, {
51875
+ projectId: project.id,
51876
+ actor: "api",
51877
+ action: "notification.updated",
51878
+ entityType: "notification",
51879
+ entityId: notification.id,
51880
+ diff: {
51881
+ ...eventsChanged ? { events: { from: config.events, to: events } } : {},
51882
+ ...enabledChanged ? { enabled: { from: notification.enabled, to: enabled } } : {}
51883
+ }
51884
+ });
51885
+ });
51886
+ }
51887
+ return reply.send(formatNotification(app.db.select().from(notifications).where(eq85(notifications.id, notification.id)).get()));
51888
+ });
51811
51889
  app.post("/projects/:name/notifications/:id/test", connectionRoute(app, (request) => {
51812
51890
  const stored = app.db.select({ config: notifications.config }).from(notifications).where(eq85(notifications.id, request.params.id)).get();
51813
51891
  const config = stored?.config;
@@ -51859,6 +51937,11 @@ async function notificationRoutes(app, opts = {}) {
51859
51937
  return reply.send({ status, ok: status >= 200 && status < 300 });
51860
51938
  }));
51861
51939
  }
51940
+ function nextNotificationEvents(stored, update) {
51941
+ if (update.events) return [...new Set(update.events)];
51942
+ const removed = new Set(update.removeEvents ?? []);
51943
+ return [.../* @__PURE__ */ new Set([...stored, ...update.addEvents ?? []])].filter((event) => !removed.has(event));
51944
+ }
51862
51945
  function formatNotification(row) {
51863
51946
  const config = row.config;
51864
51947
  const redacted = redactNotificationUrl(config.url);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CliError
3
- } from "./chunk-IWQFTZ75.js";
3
+ } from "./chunk-ZA44DK2O.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-VOK62VGC.js";
25
+ } from "./chunk-UYRC244Y.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-GDRZPBPF.js";
5
+ } from "./chunk-WKYQ7255.js";
6
6
  import {
7
7
  BUNDLED_SKILL_NAMES,
8
8
  installSkills
9
- } from "./chunk-TS477DBZ.js";
9
+ } from "./chunk-RVRQJ2SA.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-VOK62VGC.js";
16
+ } from "./chunk-UYRC244Y.js";
17
17
 
18
18
  // src/skills-autosync.ts
19
19
  import fs from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CitationStates
3
- } from "./chunk-VOK62VGC.js";
3
+ } from "./chunk-UYRC244Y.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)";
@@ -68,8 +68,8 @@ var CANONRY_MCP_TOOLKITS = [
68
68
  {
69
69
  name: "setup",
70
70
  title: "Project setup and measurement",
71
- description: "Manage project configuration, Advanced Measurement drafts, query assets, competitors, and schedules.",
72
- whenToLoad: "Load when onboarding a project, editing its measurement plan, or managing tracked queries, competitors, or schedules."
71
+ description: "Manage project configuration, Advanced Measurement drafts, query assets, competitors, schedules, and notification webhooks.",
72
+ whenToLoad: "Load when onboarding a project, editing its measurement plan, or managing tracked queries, competitors, schedules, or which events a webhook receives."
73
73
  },
74
74
  {
75
75
  name: "gsc",
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-2FNWSHOE.js";
3
+ } from "./chunk-LNBJ3ZEK.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-XTR3KSV2.js";
10
+ } from "./chunk-IQGRGJFP.js";
11
11
  import {
12
12
  isMachineFormat,
13
13
  systemError
14
- } from "./chunk-IWQFTZ75.js";
14
+ } from "./chunk-ZA44DK2O.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-VOK62VGC.js";
42
+ } from "./chunk-UYRC244Y.js";
43
43
 
44
44
  // src/commands/measurement-plan.ts
45
45
  import crypto from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CANONRY_COMMUNITY_LINKS
3
- } from "./chunk-VOK62VGC.js";
3
+ } from "./chunk-UYRC244Y.js";
4
4
 
5
5
  // src/cli-error.ts
6
6
  function isMachineFormat(format) {
@@ -3,19 +3,19 @@ import {
3
3
  citationGlyph,
4
4
  citedBase,
5
5
  mentionGlyph
6
- } from "./chunk-HFNLWW3Z.js";
6
+ } from "./chunk-XDCXC6DL.js";
7
7
  import {
8
8
  createApiClient
9
- } from "./chunk-2FNWSHOE.js";
10
- import "./chunk-GDRZPBPF.js";
9
+ } from "./chunk-LNBJ3ZEK.js";
10
+ import "./chunk-WKYQ7255.js";
11
11
  import {
12
12
  emitJsonl
13
13
  } from "./chunk-Z7IUAJOF.js";
14
14
  import "./chunk-AOJU5LKX.js";
15
15
  import {
16
16
  isMachineFormat
17
- } from "./chunk-IWQFTZ75.js";
18
- import "./chunk-VOK62VGC.js";
17
+ } from "./chunk-ZA44DK2O.js";
18
+ import "./chunk-UYRC244Y.js";
19
19
 
20
20
  // src/commands/citations.ts
21
21
  async function showCitationVisibility(project, opts) {
@@ -3,11 +3,11 @@ import {
3
3
  buildCliCatalog,
4
4
  printCliCatalog,
5
5
  renderTopLevelHelp
6
- } from "./chunk-WVZR3J7X.js";
7
- import "./chunk-3N2MSPPU.js";
6
+ } from "./chunk-NZQWQK4N.js";
7
+ import "./chunk-TAFIB6LC.js";
8
8
  import "./chunk-Z7IUAJOF.js";
9
- import "./chunk-IWQFTZ75.js";
10
- import "./chunk-VOK62VGC.js";
9
+ import "./chunk-ZA44DK2O.js";
10
+ import "./chunk-UYRC244Y.js";
11
11
  export {
12
12
  CLI_ROOT_SUMMARIES,
13
13
  buildCliCatalog,
@@ -0,0 +1,18 @@
1
+ import {
2
+ REGISTERED_CLI_COMMANDS
3
+ } from "./chunk-6TKNNXDP.js";
4
+ import "./chunk-6GO5VVAC.js";
5
+ import "./chunk-VJWDBFSL.js";
6
+ import "./chunk-YETOLZWJ.js";
7
+ import "./chunk-TSENU4GG.js";
8
+ import "./chunk-LNBJ3ZEK.js";
9
+ import "./chunk-WKYQ7255.js";
10
+ import "./chunk-TAFIB6LC.js";
11
+ import "./chunk-Z7IUAJOF.js";
12
+ import "./chunk-IQGRGJFP.js";
13
+ import "./chunk-AOJU5LKX.js";
14
+ import "./chunk-ZA44DK2O.js";
15
+ import "./chunk-UYRC244Y.js";
16
+ export {
17
+ REGISTERED_CLI_COMMANDS
18
+ };
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-QC4MPO7E.js";
4
+ } from "./chunk-6TKNNXDP.js";
5
5
  import "./chunk-6GO5VVAC.js";
6
6
  import {
7
7
  buildSetupState,
8
8
  runPendingServeHandoff
9
- } from "./chunk-PM4GX6FP.js";
9
+ } from "./chunk-GDAL3L25.js";
10
10
  import "./chunk-VJWDBFSL.js";
11
- import "./chunk-RLLYGXNA.js";
11
+ import "./chunk-YETOLZWJ.js";
12
12
  import "./chunk-TSENU4GG.js";
13
- import "./chunk-6KH4XZLA.js";
13
+ import "./chunk-F5UUN6UB.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-AOYSK6D2.js";
27
+ } from "./chunk-LZSY5GNZ.js";
28
28
  import {
29
29
  autoSyncSkills,
30
30
  formatAutoSyncNotice
31
- } from "./chunk-J4FMWPEM.js";
32
- import "./chunk-2FNWSHOE.js";
33
- import "./chunk-GDRZPBPF.js";
31
+ } from "./chunk-X2WJ563G.js";
32
+ import "./chunk-LNBJ3ZEK.js";
33
+ import "./chunk-WKYQ7255.js";
34
34
  import {
35
35
  accessFilterFromArgs,
36
36
  dispatchRegisteredCommand,
37
37
  printCliCatalog
38
- } from "./chunk-WVZR3J7X.js";
38
+ } from "./chunk-NZQWQK4N.js";
39
39
  import {
40
40
  resolveCliAccess
41
- } from "./chunk-3N2MSPPU.js";
41
+ } from "./chunk-TAFIB6LC.js";
42
42
  import "./chunk-Z7IUAJOF.js";
43
- import "./chunk-TS477DBZ.js";
44
- import "./chunk-XTR3KSV2.js";
43
+ import "./chunk-RVRQJ2SA.js";
44
+ import "./chunk-IQGRGJFP.js";
45
45
  import "./chunk-AOJU5LKX.js";
46
46
  import {
47
47
  CliError,
@@ -49,10 +49,10 @@ import {
49
49
  isMachineFormat,
50
50
  printCliError,
51
51
  usageError
52
- } from "./chunk-IWQFTZ75.js";
52
+ } from "./chunk-ZA44DK2O.js";
53
53
  import {
54
54
  OperationAccesses
55
- } from "./chunk-VOK62VGC.js";
55
+ } from "./chunk-UYRC244Y.js";
56
56
 
57
57
  // src/cli.ts
58
58
  import { pathToFileURL } from "url";