@canonry/canonry 7.118.0 → 7.118.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/assets/assets/{AccessControls-CCvvzEec.js → AccessControls-Dw14Y8Zb.js} +1 -1
  2. package/assets/assets/{AgentSetupPage-B-vXoIII.js → AgentSetupPage-QCAFqYqz.js} +1 -1
  3. package/assets/assets/{AuditHistoryPanel-ClexSdME.js → AuditHistoryPanel-C06iViSe.js} +1 -1
  4. package/assets/assets/{BacklinksPage-QMPUVhzl.js → BacklinksPage-CJqWfjy1.js} +1 -1
  5. package/assets/assets/{ChartPrimitives-Dd9VFWrj.js → ChartPrimitives-DBTchs1y.js} +1 -1
  6. package/assets/assets/{HistoryPage-CzQLFEZG.js → HistoryPage-Dif-fQuy.js} +1 -1
  7. package/assets/assets/{MeasurementPropertyPage-BTgy_3-R.js → MeasurementPropertyPage-BJFfATTB.js} +1 -1
  8. package/assets/assets/{ProjectPage-DLgYLplH.js → ProjectPage-CFe_NEmJ.js} +3 -3
  9. package/assets/assets/{RunsPage-CnWXQk8q.js → RunsPage-DUnwiusE.js} +1 -1
  10. package/assets/assets/{ServerTrafficSection-DqVZznpe.js → ServerTrafficSection-CBCczz52.js} +3 -3
  11. package/assets/assets/{SettingsPage-D2j93m5Q.js → SettingsPage-BQRQYuJ9.js} +1 -1
  12. package/assets/assets/{ToneBadge-Dym1_0XC.js → ToneBadge-CViol5aK.js} +4 -4
  13. package/assets/assets/{TrafficPage-CzieybRn.js → TrafficPage-jtQlqa0x.js} +1 -1
  14. package/assets/assets/{TrafficSourceDetailPage-CtmGPXZc.js → TrafficSourceDetailPage-8p8kPet2.js} +1 -1
  15. package/assets/assets/{account-context-ClThq0Zv.js → account-context-B1G3xhE1.js} +1 -1
  16. package/assets/assets/{agent-trust-copy-C0WnWM9W.js → agent-trust-copy-CMgWNJn0.js} +1 -1
  17. package/assets/assets/{card-C-9Q2kJl.js → card-B8kjwkFR.js} +1 -1
  18. package/assets/assets/{index-CzPXJ0Qs.js → index-DxNmD1SS.js} +3 -3
  19. package/assets/assets/{preload-helper-DV4nEYWy.js → preload-helper-DzM601DW.js} +1 -1
  20. package/assets/assets/{query-client-plQHRUyr.js → query-client-3W7wQep0.js} +1 -1
  21. package/assets/assets/{react-query-Dz0xmEkM.js → react-query-B0EpSPOn.js} +1 -1
  22. package/assets/assets/{react-sigma_core.esm.min-B-tTeVwc.js → react-sigma_core.esm.min-DWNI6FGP.js} +1 -1
  23. package/assets/assets/{server-traffic-BNdX8qZ4.js → server-traffic-D6FWsQIv.js} +1 -1
  24. package/assets/assets/{service-CN4HIDuw.js → service-Cy2ZA98R.js} +1 -1
  25. package/assets/index.html +9 -9
  26. package/dist/{ads-GVOTYDS3.js → ads-BJCFT2N7.js} +4 -4
  27. package/dist/{agent-RFYMQYMN.js → agent-KJ5C5BUZ.js} +8 -8
  28. package/dist/{agent-ask-MZRUCCJO.js → agent-ask-RP2FZIWH.js} +4 -4
  29. package/dist/{agent-conversations-WBP5TI3X.js → agent-conversations-N6PJOOJG.js} +4 -4
  30. package/dist/{agent-journeys-6CR77XCZ.js → agent-journeys-XK3AXOZZ.js} +4 -4
  31. package/dist/{agent-memory-PH3Y7OKJ.js → agent-memory-RKHE5BVJ.js} +4 -4
  32. package/dist/{agent-providers-3CBKNXSW.js → agent-providers-G2WHCA5Y.js} +4 -4
  33. package/dist/{agent-transcript-BN3DCK33.js → agent-transcript-SSRB4KHV.js} +4 -4
  34. package/dist/{analytics-43UR5IMY.js → analytics-QAKMM34E.js} +4 -4
  35. package/dist/{apply-POV25FNG.js → apply-6IYX6MC6.js} +4 -4
  36. package/dist/{backfill-CWC3W72X.js → backfill-PRLYAK63.js} +11 -11
  37. package/dist/{backlinks-W3SLOIHP.js → backlinks-G52LSPEQ.js} +4 -4
  38. package/dist/{bing-HGKOR5GV.js → bing-OULTQLAJ.js} +4 -4
  39. package/dist/{bootstrap-XAKQKZCC.js → bootstrap-OATKSLBT.js} +11 -11
  40. package/dist/{cdp-WAB5BPGB.js → cdp-NVM5IFD2.js} +8 -8
  41. package/dist/{chunk-QOFWKOKD.js → chunk-25KN55WQ.js} +4 -4
  42. package/dist/{chunk-7JFPGEXQ.js → chunk-2M37UZGH.js} +4 -4
  43. package/dist/{chunk-SZSZSOXP.js → chunk-3JHLIEOY.js} +2 -2
  44. package/dist/{chunk-HQ6GLLVU.js → chunk-3MGALUWM.js} +2 -2
  45. package/dist/{chunk-UKFXP4R5.js → chunk-3QFIBU25.js} +94 -34
  46. package/dist/{chunk-7ACE6HGU.js → chunk-43QG3FYE.js} +3 -3
  47. package/dist/{chunk-O67HAPZL.js → chunk-4INTWV22.js} +6 -6
  48. package/dist/{chunk-GSQQ6VVV.js → chunk-4O5ZWHZ4.js} +1 -1
  49. package/dist/{chunk-NZZSWCNM.js → chunk-552V4T75.js} +1 -1
  50. package/dist/{chunk-V2VWIGVT.js → chunk-6WBIJWKO.js} +1 -1
  51. package/dist/{chunk-XDOP2ANX.js → chunk-7CXUZI6H.js} +3087 -3058
  52. package/dist/{chunk-6AJ4Y3QL.js → chunk-7QFB2AI4.js} +2 -2
  53. package/dist/{chunk-NJWBSLRW.js → chunk-AABZZA7S.js} +8 -8
  54. package/dist/{chunk-U3TO2MFS.js → chunk-AR2AXWZC.js} +4 -4
  55. package/dist/{chunk-LSNAMUIJ.js → chunk-ATHSMFDP.js} +2 -2
  56. package/dist/{chunk-RLDRNIB4.js → chunk-BTM2WKQL.js} +5 -5
  57. package/dist/{chunk-WKYQRF5A.js → chunk-G2IJGOVF.js} +3 -3
  58. package/dist/{chunk-6UNZDUB6.js → chunk-G4NYHN56.js} +1 -1
  59. package/dist/{chunk-OKPD7X4P.js → chunk-H5LYOND2.js} +22 -22
  60. package/dist/{chunk-IOOJ7DQ6.js → chunk-J2JJFHAM.js} +1 -1
  61. package/dist/{chunk-G2JP3KNY.js → chunk-JMYX2YJ3.js} +4 -4
  62. package/dist/{chunk-HZTKUGQ4.js → chunk-K7BPL2BY.js} +3 -3
  63. package/dist/{chunk-4A2JURHR.js → chunk-KV5I5RJ3.js} +2 -2
  64. package/dist/{chunk-CDPZTIK2.js → chunk-KWLCI5HP.js} +4 -4
  65. package/dist/{chunk-3C6A63IG.js → chunk-MUE2JCK7.js} +5 -5
  66. package/dist/{chunk-GY7YLVMD.js → chunk-PPIXSQNM.js} +4 -4
  67. package/dist/{chunk-6ORW2OUQ.js → chunk-QM37PRXI.js} +1 -1
  68. package/dist/{chunk-VU3TF5CD.js → chunk-QP7S34UT.js} +1 -1
  69. package/dist/{chunk-Q7LU7GTH.js → chunk-R6SX4KC6.js} +1 -1
  70. package/dist/{chunk-LBNJVTGN.js → chunk-RJDIAWNE.js} +2 -2
  71. package/dist/{chunk-35DM6ZZ2.js → chunk-T6ILJ2FW.js} +2 -2
  72. package/dist/{chunk-ILDAN5TW.js → chunk-TVU3SGB3.js} +1 -1
  73. package/dist/{chunk-SG7E3WTC.js → chunk-U2GFFMHS.js} +5 -5
  74. package/dist/{chunk-SBLC7FYP.js → chunk-UZBV2MFC.js} +2 -2
  75. package/dist/{chunk-HIPSMSH3.js → chunk-WHFZQMDU.js} +369 -369
  76. package/dist/{chunk-G3HBHMML.js → chunk-YB7QBOA6.js} +1 -1
  77. package/dist/{chunk-377K7XSP.js → chunk-ZTN2BG4D.js} +4 -4
  78. package/dist/{citations-IMPVSN25.js → citations-7ZI2SULG.js} +5 -5
  79. package/dist/{cli-catalog-OFMWOBCF.js → cli-catalog-RO57BEAG.js} +4 -4
  80. package/dist/cli-commands-23N5ZW76.js +18 -0
  81. package/dist/cli.js +14 -14
  82. package/dist/{competitor-2NFTABZM.js → competitor-PAILSWRL.js} +4 -4
  83. package/dist/{content-HYV3JOIS.js → content-VNVROYY3.js} +4 -4
  84. package/dist/{dashboard-DCYRYQ6M.js → dashboard-5WAAR33F.js} +7 -7
  85. package/dist/{demo-X44XG3CF.js → demo-QD55GHC7.js} +3 -3
  86. package/dist/{demo-server-SPMBNVZA.js → demo-server-KMJC4TWS.js} +13 -13
  87. package/dist/{discover-VIQMARSR.js → discover-Y4OYY55Y.js} +5 -5
  88. package/dist/{discover-eval-M5RRXWMX.js → discover-eval-DZGZH6ED.js} +4 -4
  89. package/dist/{doctor-HATXMESK.js → doctor-7BOKC4J6.js} +4 -4
  90. package/dist/{evidence-C3IBS7TO.js → evidence-RIJWDHZR.js} +4 -4
  91. package/dist/{export-cmd-F674KINC.js → export-cmd-J4LZ5GSD.js} +4 -4
  92. package/dist/{ga-AWBTXHSN.js → ga-IEY3C76P.js} +4 -4
  93. package/dist/{gbp-NAZYXN4S.js → gbp-OP7B6R6Z.js} +4 -4
  94. package/dist/{google-IYDAWLIV.js → google-G7MNB3XJ.js} +5 -5
  95. package/dist/{google-marketing-NHV7BCQM.js → google-marketing-7562CCEM.js} +2 -2
  96. package/dist/{health-cmd-ASZUPWDG.js → health-cmd-INJ5FWJ7.js} +5 -5
  97. package/dist/{history-TFLEYUHW.js → history-34NHNH4B.js} +4 -4
  98. package/dist/index.d.ts +65 -65
  99. package/dist/index.js +26 -26
  100. package/dist/{init-ZMIYUSPN.js → init-QKAAFP7Z.js} +13 -13
  101. package/dist/{insights-VMU43BJM.js → insights-TPITCFIE.js} +4 -4
  102. package/dist/intelligence-service-3ZR7CGWF.js +15 -0
  103. package/dist/{journeys-DSPUDWGM.js → journeys-AGSHRJVG.js} +4 -4
  104. package/dist/{keys-K56VXNJX.js → keys-ZGA5ZBFE.js} +4 -4
  105. package/dist/{keyword-FCMS45PF.js → keyword-XQA6K462.js} +4 -4
  106. package/dist/{logs-75HP7UD3.js → logs-D2HPGLMI.js} +4 -4
  107. package/dist/{mcp-D7P73XVO.js → mcp-UKYWUOA6.js} +5 -5
  108. package/dist/mcp.js +10 -10
  109. package/dist/{measurement-plan-AX6G3RWU.js → measurement-plan-3S2BV34R.js} +6 -6
  110. package/dist/{notify-QUOFVHKS.js → notify-PKXIBY2X.js} +4 -4
  111. package/dist/{organic-evidence-PPHL7QGS.js → organic-evidence-6WAJC7CC.js} +4 -4
  112. package/dist/{overview-C6SSTCC6.js → overview-YIMXGGQC.js} +6 -6
  113. package/dist/{project-MMQ2H6TH.js → project-WNMIV5OV.js} +4 -4
  114. package/dist/{project-setup-6DGYQAG2.js → project-setup-OSAJFEWF.js} +4 -4
  115. package/dist/{query-EJGNRC2F.js → query-GN654GYL.js} +4 -4
  116. package/dist/{research-X43RAY3W.js → research-HR67DZJE.js} +4 -4
  117. package/dist/{results-export-FOQXK6NA.js → results-export-CNAAOWQX.js} +4 -4
  118. package/dist/{run-D4CFXIFR.js → run-M7F6BMTH.js} +6 -6
  119. package/dist/{schedule-UFOJOPKA.js → schedule-LKGWXMPF.js} +4 -4
  120. package/dist/{search-6C3ZPK24.js → search-MRWOL2M3.js} +4 -4
  121. package/dist/{serve-5WZQBOXG.js → serve-YR2A6YGF.js} +27 -27
  122. package/dist/{session-3YQ2HXJW.js → session-JSZLON4Q.js} +14 -14
  123. package/dist/{settings-6AGLHMPI.js → settings-O2TJKLTN.js} +4 -4
  124. package/dist/{sitemaps-FIN5CVTH.js → sitemaps-35MYNHN6.js} +4 -4
  125. package/dist/{skills-3ZD3N6S7.js → skills-CNUBIGXM.js} +3 -3
  126. package/dist/{snapshot-EFW3B6TM.js → snapshot-G67JDGMY.js} +4 -4
  127. package/dist/{src-QSFAXHBF.js → src-T2CVI44I.js} +2 -2
  128. package/dist/{status-CLWEOZP4.js → status-EBOPJY3L.js} +6 -6
  129. package/dist/{support-P5H555LC.js → support-Q735EEZ7.js} +2 -2
  130. package/dist/{technical-aeo-IVNC26PJ.js → technical-aeo-N4WO2GSS.js} +4 -4
  131. package/dist/{telemetry-ZUFUNFST.js → telemetry-CAZH47YY.js} +5 -5
  132. package/dist/{tools-QYZRDVAH.js → tools-FCS5X36N.js} +12 -12
  133. package/dist/{traffic-CN667DLE.js → traffic-G3UAF52O.js} +25 -8
  134. package/dist/{trends-2XLTO3EN.js → trends-JEQCIQZU.js} +4 -4
  135. package/dist/{users-NXZSJ7CM.js → users-5QFNLFVU.js} +4 -4
  136. package/dist/{visibility-stats-DTJD4TEN.js → visibility-stats-MQLGIZEM.js} +5 -5
  137. package/dist/{wordpress-LE6UNQCX.js → wordpress-NMLL7F6A.js} +4 -4
  138. package/package.json +1 -1
  139. package/dist/cli-commands-HZNVXGGC.js +0 -18
  140. package/dist/intelligence-service-TGXLLDIW.js +0 -15
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-WKYQRF5A.js";
4
- import "./chunk-LBNJVTGN.js";
3
+ } from "./chunk-G2IJGOVF.js";
4
+ import "./chunk-RJDIAWNE.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -10,12 +10,12 @@ import {
10
10
  CliError,
11
11
  isMachineFormat,
12
12
  usageError
13
- } from "./chunk-VU3TF5CD.js";
13
+ } from "./chunk-QP7S34UT.js";
14
14
  import {
15
15
  describeError,
16
16
  formatPercent,
17
17
  formatRunErrorOneLine
18
- } from "./chunk-XDOP2ANX.js";
18
+ } from "./chunk-7CXUZI6H.js";
19
19
 
20
20
  // src/commands/bing.ts
21
21
  function getClient() {
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-SZSZSOXP.js";
3
+ } from "./chunk-3JHLIEOY.js";
4
4
  import {
5
5
  answerServiceDescriptors
6
- } from "./chunk-IOOJ7DQ6.js";
6
+ } from "./chunk-J2JJFHAM.js";
7
7
  import {
8
8
  outcomeFailure
9
- } from "./chunk-GY7YLVMD.js";
9
+ } from "./chunk-PPIXSQNM.js";
10
10
  import {
11
11
  isLoopbackBindHost
12
12
  } from "./chunk-TSENU4GG.js";
13
13
  import {
14
14
  registeredProviderNames
15
- } from "./chunk-ILDAN5TW.js";
15
+ } from "./chunk-TVU3SGB3.js";
16
16
  import {
17
17
  isTelemetryEnabled,
18
18
  recordInstallRef
19
- } from "./chunk-LSNAMUIJ.js";
19
+ } from "./chunk-ATHSMFDP.js";
20
20
  import {
21
21
  createApiClient
22
- } from "./chunk-WKYQRF5A.js";
22
+ } from "./chunk-G2IJGOVF.js";
23
23
  import {
24
24
  configExists,
25
25
  getAnswerServiceEnv,
@@ -30,25 +30,25 @@ import {
30
30
  loadConfigRaw,
31
31
  saveConfig,
32
32
  withBootstrapProviderDefaults
33
- } from "./chunk-LBNJVTGN.js";
33
+ } from "./chunk-RJDIAWNE.js";
34
34
  import "./chunk-AOJU5LKX.js";
35
35
  import {
36
36
  CliError,
37
37
  isEndpointMissing,
38
38
  isMachineFormat,
39
39
  systemError
40
- } from "./chunk-VU3TF5CD.js";
41
- import "./chunk-GSQQ6VVV.js";
40
+ } from "./chunk-QP7S34UT.js";
41
+ import "./chunk-4O5ZWHZ4.js";
42
42
  import {
43
43
  apiKeys,
44
44
  createClient,
45
45
  dashboardSessions,
46
46
  migrate
47
- } from "./chunk-G3HBHMML.js";
47
+ } from "./chunk-YB7QBOA6.js";
48
48
  import {
49
49
  ProviderNames,
50
50
  ProviderReloadErrorReasons
51
- } from "./chunk-XDOP2ANX.js";
51
+ } from "./chunk-7CXUZI6H.js";
52
52
 
53
53
  // src/commands/bootstrap.ts
54
54
  import crypto from "crypto";
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-SZSZSOXP.js";
3
+ } from "./chunk-3JHLIEOY.js";
4
4
  import {
5
5
  outcomeFailure
6
- } from "./chunk-GY7YLVMD.js";
7
- import "./chunk-LSNAMUIJ.js";
6
+ } from "./chunk-PPIXSQNM.js";
7
+ import "./chunk-ATHSMFDP.js";
8
8
  import {
9
9
  createApiClient
10
- } from "./chunk-WKYQRF5A.js";
10
+ } from "./chunk-G2IJGOVF.js";
11
11
  import {
12
12
  loadConfig,
13
13
  saveConfigPatch
14
- } from "./chunk-LBNJVTGN.js";
14
+ } from "./chunk-RJDIAWNE.js";
15
15
  import "./chunk-AOJU5LKX.js";
16
16
  import {
17
17
  CliError,
18
18
  isMachineFormat
19
- } from "./chunk-VU3TF5CD.js";
20
- import "./chunk-GSQQ6VVV.js";
19
+ } from "./chunk-QP7S34UT.js";
20
+ import "./chunk-4O5ZWHZ4.js";
21
21
  import {
22
22
  describeError
23
- } from "./chunk-XDOP2ANX.js";
23
+ } from "./chunk-7CXUZI6H.js";
24
24
 
25
25
  // src/commands/cdp.ts
26
26
  function getClient() {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-WKYQRF5A.js";
3
+ } from "./chunk-G2IJGOVF.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-V2VWIGVT.js";
10
+ } from "./chunk-6WBIJWKO.js";
11
11
  import {
12
12
  isMachineFormat,
13
13
  systemError
14
- } from "./chunk-VU3TF5CD.js";
14
+ } from "./chunk-QP7S34UT.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-XDOP2ANX.js";
42
+ } from "./chunk-7CXUZI6H.js";
43
43
 
44
44
  // src/commands/measurement-plan.ts
45
45
  import crypto from "crypto";
@@ -7,25 +7,25 @@ import {
7
7
  import {
8
8
  createApiClient,
9
9
  runWithUsageTags
10
- } from "./chunk-WKYQRF5A.js";
10
+ } from "./chunk-G2IJGOVF.js";
11
11
  import {
12
12
  canonryMcpTools,
13
13
  mcpOutputSchema,
14
14
  toolOperationAccess
15
- } from "./chunk-377K7XSP.js";
15
+ } from "./chunk-ZTN2BG4D.js";
16
16
  import {
17
17
  PACKAGE_VERSION
18
18
  } from "./chunk-AOJU5LKX.js";
19
19
  import {
20
20
  CliError
21
- } from "./chunk-VU3TF5CD.js";
21
+ } from "./chunk-QP7S34UT.js";
22
22
  import {
23
23
  OperationAccesses,
24
24
  RESEARCH_RUN_SCOPE,
25
25
  isReadOnlyKey,
26
26
  restrictedWriteScopes,
27
27
  upgradeCaveatFor
28
- } from "./chunk-XDOP2ANX.js";
28
+ } from "./chunk-7CXUZI6H.js";
29
29
 
30
30
  // src/mcp/server.ts
31
31
  import { randomUUID } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  trackIntegrationConnection
3
- } from "./chunk-GY7YLVMD.js";
3
+ } from "./chunk-PPIXSQNM.js";
4
4
  import {
5
5
  cliRuntimeContext
6
- } from "./chunk-LSNAMUIJ.js";
6
+ } from "./chunk-ATHSMFDP.js";
7
7
 
8
8
  // src/cli-connection-telemetry.ts
9
9
  function trackCliConnection(properties) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  usageError
3
- } from "./chunk-VU3TF5CD.js";
3
+ } from "./chunk-QP7S34UT.js";
4
4
  import {
5
5
  AppError,
6
6
  parseWindowIn,
7
7
  resolveDateRange
8
- } from "./chunk-XDOP2ANX.js";
8
+ } from "./chunk-7CXUZI6H.js";
9
9
 
10
10
  // src/cli-access.ts
11
11
  var CLI_ACCESS_BY_ID = Object.freeze({
@@ -19,14 +19,14 @@ import {
19
19
  normalizeTrafficPathPattern,
20
20
  sessionizeJourneyRequests,
21
21
  verifyRequestSignature
22
- } from "./chunk-NZZSWCNM.js";
22
+ } from "./chunk-552V4T75.js";
23
23
  import {
24
24
  currentOutcomeAttribution,
25
25
  getRequestContext,
26
26
  registerRequestContext,
27
27
  requestAuditIdentity,
28
28
  sanitizeRequestContext
29
- } from "./chunk-GSQQ6VVV.js";
29
+ } from "./chunk-4O5ZWHZ4.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-G3HBHMML.js";
193
+ } from "./chunk-YB7QBOA6.js";
194
194
  import {
195
195
  ADS_ACTIVATE_SCOPE,
196
196
  ADS_ACTIVATION_ABSOLUTE_MAX_ENTITIES,
@@ -712,6 +712,7 @@ import {
712
712
  createUserInvitationRequestSchema,
713
713
  createUserRequestSchema,
714
714
  createdApiKeyDtoSchema,
715
+ credentialRedactionValues,
715
716
  deduplicateResearchQueries,
716
717
  deliveryFailed,
717
718
  deltaPercent,
@@ -1138,6 +1139,7 @@ import {
1138
1139
  recommendationBriefDtoSchema,
1139
1140
  recommendationExplainRequestSchema,
1140
1141
  recommendationExplanationDtoSchema,
1142
+ redactKnownSecrets,
1141
1143
  redactLogString,
1142
1144
  referralAssessmentQuerySchema,
1143
1145
  referralAssessmentSchema,
@@ -1388,7 +1390,7 @@ import {
1388
1390
  wordpressSchemaDeployResultDtoSchema,
1389
1391
  wordpressSchemaStatusResultDtoSchema,
1390
1392
  wordpressStatusDtoSchema
1391
- } from "./chunk-XDOP2ANX.js";
1393
+ } from "./chunk-7CXUZI6H.js";
1392
1394
 
1393
1395
  // ../api-routes/src/user-session.ts
1394
1396
  import crypto2 from "crypto";
@@ -2816,8 +2818,7 @@ function detectRegressions(currentRun, previousRun) {
2816
2818
  for (const snap of previousRun.snapshots) {
2817
2819
  if (snap.cited === true) {
2818
2820
  previousCited.set(snapshotKey(snap), {
2819
- citationUrl: snap.citationUrl,
2820
- position: snap.position
2821
+ citationUrl: snap.citationUrl
2821
2822
  });
2822
2823
  }
2823
2824
  }
@@ -2829,7 +2830,6 @@ function detectRegressions(currentRun, previousRun) {
2829
2830
  query: snap.query,
2830
2831
  provider: snap.provider,
2831
2832
  previousCitationUrl: prev.citationUrl,
2832
- previousPosition: prev.position,
2833
2833
  currentRunId: currentRun.runId,
2834
2834
  previousRunId: previousRun.runId
2835
2835
  });
@@ -2867,7 +2867,6 @@ function detectGains(currentRun, previousRun) {
2867
2867
  query: snap.query,
2868
2868
  provider: snap.provider,
2869
2869
  citationUrl: snap.citationUrl,
2870
- position: snap.position,
2871
2870
  snippet: snap.snippet,
2872
2871
  runId: currentRun.runId
2873
2872
  });
@@ -2896,7 +2895,6 @@ function detectFirstCitations(currentRun, previousRun) {
2896
2895
  query: snap.query,
2897
2896
  provider: snap.provider,
2898
2897
  citationUrl: snap.citationUrl,
2899
- position: snap.position,
2900
2898
  runId: currentRun.runId
2901
2899
  });
2902
2900
  }
@@ -2927,7 +2925,6 @@ function detectProviderPickups(currentRun, previousRun) {
2927
2925
  query: snap.query,
2928
2926
  provider: snap.provider,
2929
2927
  citationUrl: snap.citationUrl,
2930
- position: snap.position,
2931
2928
  runId: currentRun.runId
2932
2929
  });
2933
2930
  }
@@ -3093,7 +3090,7 @@ function generateInsights(input) {
3093
3090
  recommendation: {
3094
3091
  action: "audit",
3095
3092
  target: reg.previousCitationUrl,
3096
- reason: `Page was previously cited at position ${reg.previousPosition ?? "unknown"}. Run agent-readiness to check for content or schema issues.`
3093
+ reason: `${reg.provider} cited ${reg.previousCitationUrl ?? "your domain"} for "${reg.query}" in the previous run but not in this one. Run agent-readiness to check for content or schema issues.`
3097
3094
  },
3098
3095
  cause,
3099
3096
  createdAt: now
@@ -3110,7 +3107,7 @@ function generateInsights(input) {
3110
3107
  recommendation: {
3111
3108
  action: "monitor",
3112
3109
  target: gain.citationUrl,
3113
- reason: `New citation appeared at position ${gain.position ?? "unknown"}. Monitor to confirm it persists.`
3110
+ reason: `${gain.provider} now cites ${gain.citationUrl ?? "your domain"} for "${gain.query}"; the previous run did not. Monitor to confirm the citation persists.`
3114
3111
  },
3115
3112
  createdAt: now
3116
3113
  });
@@ -71557,6 +71554,23 @@ function trimRequired2(name, value) {
71557
71554
  }
71558
71555
  return trimmed;
71559
71556
  }
71557
+ function assertSingleLineToken(token) {
71558
+ if (/[\s\u0000-\u001F\u007F]/.test(token)) {
71559
+ throw new VercelLogsApiError(
71560
+ "The Vercel token must be a single line with no spaces. Reconnect the source with the token alone.",
71561
+ 400
71562
+ );
71563
+ }
71564
+ }
71565
+ function transportFailure(error) {
71566
+ const name = error instanceof Error ? error.name : "";
71567
+ if (name === "TimeoutError" || name === "AbortError") {
71568
+ return new VercelLogsApiError("Vercel request-logs request timed out", 504);
71569
+ }
71570
+ const cause = error instanceof Error ? error.cause : void 0;
71571
+ const code = typeof cause?.code === "string" && /^[A-Z][A-Z0-9_]{1,40}$/.test(cause.code) ? cause.code : null;
71572
+ return new VercelLogsApiError(`Vercel request-logs request failed${code ? ` (${code})` : ""}`, 503);
71573
+ }
71560
71574
  function normalizeMaxPages3(maxPages) {
71561
71575
  if (maxPages === void 0) return DEFAULT_MAX_PAGES3;
71562
71576
  if (!Number.isInteger(maxPages) || maxPages < 1) {
@@ -71596,6 +71610,7 @@ async function withVercelRetry(attempt, maxRetries, initialDelayMs) {
71596
71610
  }
71597
71611
  async function listVercelTrafficEvents(options) {
71598
71612
  const token = trimRequired2("token", options.token);
71613
+ assertSingleLineToken(token);
71599
71614
  const projectId = trimRequired2("projectId", options.projectId);
71600
71615
  const teamId = trimRequired2("teamId", options.teamId);
71601
71616
  const environment = options.environment ?? DEFAULT_ENVIRONMENT;
@@ -71619,14 +71634,19 @@ async function listVercelTrafficEvents(options) {
71619
71634
  url.searchParams.set("endDate", endDate);
71620
71635
  url.searchParams.set("environment", environment);
71621
71636
  const body = await withVercelRetry(async () => {
71622
- const response = await fetch(url, {
71623
- method: "GET",
71624
- headers: {
71625
- Authorization: `Bearer ${token}`,
71626
- Accept: "application/json"
71627
- },
71628
- signal: AbortSignal.timeout(timeoutMs)
71629
- });
71637
+ let response;
71638
+ try {
71639
+ response = await fetch(url, {
71640
+ method: "GET",
71641
+ headers: {
71642
+ Authorization: `Bearer ${token}`,
71643
+ Accept: "application/json"
71644
+ },
71645
+ signal: AbortSignal.timeout(timeoutMs)
71646
+ });
71647
+ } catch (error) {
71648
+ throw transportFailure(error);
71649
+ }
71630
71650
  if (!response.ok) {
71631
71651
  const errorBody = await readErrorBody3(response);
71632
71652
  const retryAfterSeconds2 = parseRetryAfter2(response.headers.get("retry-after"));
@@ -72777,6 +72797,14 @@ function aiUserFetchVerificationProvenance(db, projectId, events) {
72777
72797
  )`).orderBy(aiUserFetchVerificationManifestsHourly.manifestId).all();
72778
72798
  return buildVerificationProvenance(events, rows);
72779
72799
  }
72800
+ function wordpressRedactionValues(username, applicationPassword) {
72801
+ return [
72802
+ ...credentialRedactionValues(applicationPassword),
72803
+ // WordPress accepts the password with or without its group spaces.
72804
+ applicationPassword.replace(/\s+/g, ""),
72805
+ Buffer.from(`${username.trim()}:${applicationPassword.trim()}`, "utf8").toString("base64")
72806
+ ];
72807
+ }
72780
72808
  function parseSourceConfig(row) {
72781
72809
  return row.configJson;
72782
72810
  }
@@ -72958,7 +72986,7 @@ async function runBackfillTaskHoldingLease(options, signal) {
72958
72986
  return;
72959
72987
  }
72960
72988
  markFailed(
72961
- `${pullErrorPrefix}: ${describeError(e)}`,
72989
+ `${pullErrorPrefix}: ${redactKnownSecrets(describeError(e), options.pullSecrets ?? [])}`,
72962
72990
  e instanceof VercelRetentionClampError
72963
72991
  );
72964
72992
  reportBackfill(failedOutcome(e, e instanceof VercelRetentionClampError ? OutcomeReasonCodes.NO_DATA : void 0));
@@ -73584,13 +73612,15 @@ async function trafficRoutes(app, opts) {
73584
73612
  });
73585
73613
  } catch (e) {
73586
73614
  attempt.failed(e, e instanceof EgressRefusedError ? "BLOCKED_UNSAFE_URL" : e instanceof EgressFailedError ? "NETWORK" : void 0);
73615
+ const secrets = wordpressRedactionValues(username, applicationPassword);
73587
73616
  if (e instanceof WordpressTrafficApiError) {
73588
- throw providerError(
73589
- `WordPress traffic probe failed (HTTP ${e.status}): ${e.message}${e.body ? ` \u2014 ${e.body}` : ""}`
73590
- );
73617
+ throw providerError(redactKnownSecrets(
73618
+ `WordPress traffic probe failed (HTTP ${e.status}): ${e.message}${e.body ? ` \u2014 ${e.body}` : ""}`,
73619
+ secrets
73620
+ ));
73591
73621
  }
73592
73622
  if (e instanceof EgressRefusedError && !e.redirected) throw validationError(`WordPress baseUrl rejected: ${e.message}`);
73593
- const msg = describeError(e);
73623
+ const msg = redactKnownSecrets(describeError(e), secrets);
73594
73624
  throw providerError(`WordPress traffic probe failed: ${msg}`);
73595
73625
  }
73596
73626
  const now = (/* @__PURE__ */ new Date()).toISOString();
@@ -73685,12 +73715,14 @@ async function trafficRoutes(app, opts) {
73685
73715
  });
73686
73716
  } catch (e) {
73687
73717
  attempt.failed(e);
73718
+ const secrets = credentialRedactionValues(token);
73688
73719
  if (e instanceof VercelLogsApiError) {
73689
- throw providerError(
73690
- `Vercel traffic probe failed (HTTP ${e.status}): ${e.message}${e.body ? ` \u2014 ${e.body}` : ""}`
73691
- );
73720
+ throw providerError(redactKnownSecrets(
73721
+ `Vercel traffic probe failed (HTTP ${e.status}): ${e.message}${e.body ? ` \u2014 ${e.body}` : ""}`,
73722
+ secrets
73723
+ ));
73692
73724
  }
73693
- const msg = describeError(e);
73725
+ const msg = redactKnownSecrets(describeError(e), secrets);
73694
73726
  throw providerError(`Vercel traffic probe failed: ${msg}`);
73695
73727
  }
73696
73728
  const now = (/* @__PURE__ */ new Date()).toISOString();
@@ -74867,7 +74899,7 @@ async function trafficRoutes(app, opts) {
74867
74899
  allEvents = collected;
74868
74900
  nextCursor = cursor;
74869
74901
  } catch (e) {
74870
- const msg = describeError(e);
74902
+ const msg = redactKnownSecrets(describeError(e), wordpressRedactionValues(credential.username, credential.applicationPassword));
74871
74903
  markFailed(msg, "PROVIDER_PULL");
74872
74904
  if (e instanceof EgressRefusedError && !e.redirected) throw validationError(`WordPress baseUrl rejected: ${msg}`);
74873
74905
  throw providerError(`WordPress pull failed: ${msg}`);
@@ -74967,7 +74999,7 @@ async function trafficRoutes(app, opts) {
74967
74999
  }
74968
75000
  allEvents = drained.events;
74969
75001
  } catch (e) {
74970
- const msg = describeError(e);
75002
+ const msg = redactKnownSecrets(describeError(e), credentialRedactionValues(credential.token));
74971
75003
  const credentialRefused = e instanceof VercelLogsApiError && (e.status === 401 || e.status === 403);
74972
75004
  markFailed(msg, credentialRefused ? "PROVIDER_AUTH" : "PROVIDER_PULL");
74973
75005
  throw providerError(`Vercel pull failed: ${msg}`);
@@ -75389,6 +75421,7 @@ async function trafficRoutes(app, opts) {
75389
75421
  windowStart.setUTCMinutes(0, 0, 0);
75390
75422
  let pullForBackfill;
75391
75423
  let pullErrorPrefix;
75424
+ let pullSecrets = [];
75392
75425
  if (sourceRow2.sourceType === TrafficSourceTypes["cloud-run"]) {
75393
75426
  const credential = requireCloudRunSourceCredential(sourceRow2, project.name);
75394
75427
  const { gcpProjectId, serviceName, location } = credential;
@@ -75429,6 +75462,7 @@ async function trafficRoutes(app, opts) {
75429
75462
  const vercelTeamId = config.teamId ?? credential.teamId;
75430
75463
  const vercelEnvironment = config.environment ?? credential.environment;
75431
75464
  pullErrorPrefix = "Vercel pull failed";
75465
+ pullSecrets = credentialRedactionValues(credential.token);
75432
75466
  pullForBackfill = async (signal) => {
75433
75467
  const collected = [];
75434
75468
  const seenEventIds = /* @__PURE__ */ new Set();
@@ -75504,7 +75538,8 @@ async function trafficRoutes(app, opts) {
75504
75538
  windowStart,
75505
75539
  windowEnd,
75506
75540
  pullForBackfill,
75507
- pullErrorPrefix
75541
+ pullErrorPrefix,
75542
+ pullSecrets
75508
75543
  }).catch(() => {
75509
75544
  });
75510
75545
  recordOutcome(null);
@@ -79591,6 +79626,13 @@ function unrecoveredAlert(projectName, unrecovered) {
79591
79626
  next
79592
79627
  };
79593
79628
  }
79629
+ var CREDENTIALS_REJECTED = /\bHTTP 40[13]\b/;
79630
+ function failingSourceNext(project, failing) {
79631
+ if (failing.some((s) => s.lastError && CREDENTIALS_REJECTED.test(s.lastError))) {
79632
+ return `The provider rejected the saved token or key, so every sync will fail until it is replaced. Reconnect the source with a new one (\`cnry traffic sources ${project}\` shows its settings), then run a backfill for the missing days before the provider stops keeping those logs.`;
79633
+ }
79634
+ return `Check the source with \`cnry traffic sources ${project}\`, then reconnect it if needed.`;
79635
+ }
79594
79636
  var sourceConnectedCheck = {
79595
79637
  id: "traffic.source.connected",
79596
79638
  category: CheckCategories.integrations,
@@ -79628,6 +79670,9 @@ var sourceConnectedCheck = {
79628
79670
  return {
79629
79671
  status: recovering ? CheckStatuses.warn : CheckStatuses.fail,
79630
79672
  code: recovering ? "traffic.source.all-errored-recently" : "traffic.source.all-errored",
79673
+ // No server-side data arrives at all, and the gap is lost for good once
79674
+ // the provider's log retention passes it: someone has to act.
79675
+ ...recovering ? {} : { urgent: true },
79631
79676
  summary: recovering ? `The latest sync failed for all ${activeSources.length} active traffic source(s) (${failuresInARow} in a row; this fails at ${SYNC_FAILURE_WINDOW}). ${sinceText}` : `All ${activeSources.length} active traffic source(s) are in error state. ${sinceText}`,
79632
79677
  remediation: errored[0].lastError ? `Latest error: "${errored[0].lastError}". Re-connect the source or run \`canonry traffic sync <project> --source <id>\` to retry.` : "Run `canonry traffic sources <project>` to inspect the failing source(s) and re-connect.",
79633
79678
  details: {
@@ -79644,17 +79689,32 @@ var sourceConnectedCheck = {
79644
79689
  } : {
79645
79690
  label: "Traffic sync failing",
79646
79691
  line: `Traffic syncs for ${errored.map((s) => s.displayName).join(", ")} failed ${failuresInARow} times in a row${lastDataAt ? `, with no new data since ${formatCalendarDay(lastDataAt.slice(0, 10))}` : ""}.`,
79647
- next: `Check the source with \`cnry traffic sources ${ctx.project.name}\`, then reconnect it if needed.`
79692
+ next: failingSourceNext(ctx.project.name, errored)
79648
79693
  }
79649
79694
  };
79650
79695
  }
79651
79696
  if (errored.length > 0) {
79697
+ const failing = errored.filter((s) => readSyncRunState(ctx.db, ctx.project.id, RunKinds["traffic-sync"], { sourceId: s.id }).repeatedFailure);
79698
+ const lastDataAt = failing.map((s) => s.lastSyncedAt).filter((at) => !!at).sort()[0] ?? null;
79652
79699
  return {
79653
79700
  status: CheckStatuses.warn,
79654
79701
  code: "traffic.source.partially-errored",
79702
+ ...failing.length > 0 ? { urgent: true } : {},
79655
79703
  summary: `${errored.length} of ${activeSources.length} active traffic source(s) are in error state.`,
79656
79704
  remediation: "Run `canonry traffic sources <project>` to inspect the failing sources individually.",
79657
- details: { sourceCount: activeSources.length, pausedCount: sources.length - activeSources.length, erroredIds: errored.map((s) => s.id) }
79705
+ details: {
79706
+ sourceCount: activeSources.length,
79707
+ pausedCount: sources.length - activeSources.length,
79708
+ erroredIds: errored.map((s) => s.id),
79709
+ failingIds: failing.map((s) => s.id)
79710
+ },
79711
+ ...failing.length > 0 ? {
79712
+ alert: {
79713
+ label: "Traffic sync failing",
79714
+ line: `Traffic syncs for ${failing.map((s) => s.displayName).join(", ")} failed ${SYNC_FAILURE_WINDOW} or more times in a row${lastDataAt ? `, with no new data since ${formatCalendarDay(lastDataAt.slice(0, 10))}` : ""}. Other sources are still reporting.`,
79715
+ next: failingSourceNext(ctx.project.name, failing)
79716
+ }
79717
+ } : {}
79658
79718
  };
79659
79719
  }
79660
79720
  return {
@@ -2,18 +2,18 @@ import {
2
2
  configExists,
3
3
  loadConfigRaw,
4
4
  saveConfigPatch
5
- } from "./chunk-LBNJVTGN.js";
5
+ } from "./chunk-RJDIAWNE.js";
6
6
  import {
7
7
  BUNDLED_SKILL_NAMES,
8
8
  installSkills
9
- } from "./chunk-6AJ4Y3QL.js";
9
+ } from "./chunk-7QFB2AI4.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-XDOP2ANX.js";
16
+ } from "./chunk-7CXUZI6H.js";
17
17
 
18
18
  // src/skills-autosync.ts
19
19
  import fs from "fs";
@@ -5,7 +5,7 @@ import {
5
5
  isStoredPageReadTool,
6
6
  isStoredReadTool,
7
7
  truncateToolResult
8
- } from "./chunk-3C6A63IG.js";
8
+ } from "./chunk-MUE2JCK7.js";
9
9
  import {
10
10
  CANONRY_MCP_TOOLKITS,
11
11
  resolveAeroSkillDir
@@ -23,18 +23,18 @@ import {
23
23
  resolveApiKeyFor,
24
24
  resolveModelForProvider,
25
25
  validateAgentProviderRegistry
26
- } from "./chunk-LBNJVTGN.js";
26
+ } from "./chunk-RJDIAWNE.js";
27
27
  import {
28
28
  CanonryMcpToolNames,
29
29
  canonryMcpTools
30
- } from "./chunk-377K7XSP.js";
30
+ } from "./chunk-ZTN2BG4D.js";
31
31
  import {
32
32
  createLogger
33
- } from "./chunk-35DM6ZZ2.js";
33
+ } from "./chunk-T6ILJ2FW.js";
34
34
  import {
35
35
  agentToolEvents,
36
36
  llmUsageEvents
37
- } from "./chunk-G3HBHMML.js";
37
+ } from "./chunk-YB7QBOA6.js";
38
38
  import {
39
39
  MeasurementPortfolioLists,
40
40
  SEO_TREND_METRICS_BY_KIND,
@@ -45,7 +45,7 @@ import {
45
45
  describeError,
46
46
  validationError,
47
47
  visibilityReportRequestSchema
48
- } from "./chunk-XDOP2ANX.js";
48
+ } from "./chunk-7CXUZI6H.js";
49
49
 
50
50
  // src/agent/session.ts
51
51
  import fs2 from "fs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  USAGE_TELEMETRY_HEADERS,
3
3
  redactLogString
4
- } from "./chunk-XDOP2ANX.js";
4
+ } from "./chunk-7CXUZI6H.js";
5
5
 
6
6
  // ../api-routes/src/request-context.ts
7
7
  import { AsyncLocalStorage } from "async_hooks";
@@ -17,7 +17,7 @@ import {
17
17
  hostOf,
18
18
  isLocationRedirectStatus,
19
19
  pathWithoutQuery
20
- } from "./chunk-XDOP2ANX.js";
20
+ } from "./chunk-7CXUZI6H.js";
21
21
 
22
22
  // ../integration-traffic/src/agent-trust.ts
23
23
  var AGENT_TRUST_RULES_VERSION = 3;
@@ -23,7 +23,7 @@ import {
23
23
  measurementDraftUpsertGroupRequestSchema,
24
24
  measurementDraftUpsertMarketRequestSchema,
25
25
  measurementDraftUpsertTargetRequestSchema
26
- } from "./chunk-XDOP2ANX.js";
26
+ } from "./chunk-7CXUZI6H.js";
27
27
 
28
28
  // src/measurement-draft-actions.ts
29
29
  import { z } from "zod";