@canonry/canonry 7.53.0 → 7.55.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 (146) hide show
  1. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +13 -0
  2. package/assets/assets/AgentSetupPage-Dr7UsGcq.js +17 -0
  3. package/assets/assets/AuditHistoryPanel-Dg9ZNNQw.js +1 -0
  4. package/assets/assets/BacklinksPage-DSgwyFCi.js +1 -0
  5. package/assets/assets/{HistoryPage-D2DOk7ms.js → HistoryPage-DaX20IWP.js} +1 -1
  6. package/assets/assets/MeasurementPropertyPage-FGhKdZAP.js +4 -0
  7. package/assets/assets/ProjectPage-BTJYS9gc.js +7 -0
  8. package/assets/assets/RunsPage-D06GJ47B.js +1 -0
  9. package/assets/assets/SettingsPage-MSgC8Zrc.js +1 -0
  10. package/assets/assets/SiteHealthSection-4PXTNjon.js +2 -0
  11. package/assets/assets/ToneBadge-AoUA_EpE.js +60 -0
  12. package/assets/assets/TrafficPage-DikPWmaU.js +40 -0
  13. package/assets/assets/TrafficSourceDetailPage-C1hfimWW.js +1 -0
  14. package/assets/assets/account-context-CHtJm4fz.js +1 -0
  15. package/assets/assets/card-BO6dtEV9.js +1 -0
  16. package/assets/assets/extract-error-message-Q9pkEqUE.js +1 -0
  17. package/assets/assets/{format-helpers-B_2jkVGI.js → format-helpers-Gj1ekh6p.js} +1 -1
  18. package/assets/assets/{index-DgS5TTSb.css → index-B8W65ejO.css} +1 -1
  19. package/assets/assets/index-BBfEsbxI.js +56 -0
  20. package/assets/assets/query-client-C22j0Z7h.js +1 -0
  21. package/assets/assets/react-query-BLKqSvlU.js +1 -0
  22. package/assets/assets/{react-sigma_core.esm.min-Bjux3j_1.js → react-sigma_core.esm.min-j5DWE8Rk.js} +1 -1
  23. package/assets/assets/service-2DEngBCR.js +1 -0
  24. package/assets/demo-og.png +0 -0
  25. package/assets/index.html +8 -7
  26. package/dist/{ads-S4S74OXM.js → ads-A5S2NQBZ.js} +3 -3
  27. package/dist/{agent-JZWKCI5V.js → agent-BV7G7QN7.js} +7 -7
  28. package/dist/{agent-ask-N2DG5ZLZ.js → agent-ask-5ALAHZ6T.js} +3 -3
  29. package/dist/{agent-conversations-7UDNE7YI.js → agent-conversations-MJPQCJYR.js} +3 -3
  30. package/dist/{agent-memory-I74OWTU7.js → agent-memory-Z3VPA5KH.js} +3 -3
  31. package/dist/{agent-providers-MEMCZPGE.js → agent-providers-FP3LAZPG.js} +3 -3
  32. package/dist/{agent-transcript-Z7VTL7PY.js → agent-transcript-4GXCOC73.js} +3 -3
  33. package/dist/{analytics-4NUSNTKT.js → analytics-TOLSUYSN.js} +3 -3
  34. package/dist/{apply-OZKQK3YF.js → apply-EU5JAFVZ.js} +3 -3
  35. package/dist/{backfill-PLY2NOOY.js → backfill-3263IYJH.js} +9 -9
  36. package/dist/{backlinks-2CMRJFWO.js → backlinks-XQ5JTN6W.js} +3 -3
  37. package/dist/{bing-RD3DDESD.js → bing-LYHRD7BF.js} +3 -3
  38. package/dist/{bootstrap-JOYV4SWM.js → bootstrap-AKWTIMMH.js} +17 -9
  39. package/dist/{cdp-LUGL3CT6.js → cdp-N4PQJWGQ.js} +7 -7
  40. package/dist/{chunk-QNU7IIO7.js → chunk-2OB7YQEZ.js} +324 -324
  41. package/dist/{chunk-U7JJKXLA.js → chunk-4LVJFSPH.js} +5 -5
  42. package/dist/{chunk-C5GCRQ66.js → chunk-6WTSWWP6.js} +2 -2
  43. package/dist/{chunk-LGU3O5YP.js → chunk-75CFTTBF.js} +2 -2
  44. package/dist/{chunk-NKSASP4U.js → chunk-B37SDIGU.js} +1 -1
  45. package/dist/{chunk-N3WQHLDI.js → chunk-BQKKAPMW.js} +13 -1
  46. package/dist/{chunk-BQT7VLGM.js → chunk-D234NBWI.js} +1 -1
  47. package/dist/{chunk-DFQHGWPB.js → chunk-EIG2V6UI.js} +1 -1
  48. package/dist/{chunk-3DO3CS7Y.js → chunk-F5XONXGH.js} +4 -4
  49. package/dist/{chunk-BH274VEO.js → chunk-GFRIXUDK.js} +36 -2
  50. package/dist/{chunk-LYCYSM6O.js → chunk-H6EQMYGT.js} +1 -1
  51. package/dist/{chunk-23UZNTF4.js → chunk-J7VN3FZ3.js} +1 -1
  52. package/dist/{chunk-IWQGZQHE.js → chunk-K5MBEK4S.js} +8 -8
  53. package/dist/{chunk-6VSKBVB3.js → chunk-LCTYTGSE.js} +3 -3
  54. package/dist/{chunk-ZXH5IFIA.js → chunk-MARVEIWH.js} +4 -4
  55. package/dist/{chunk-SZG7S7TE.js → chunk-OHVXKFQI.js} +1 -1
  56. package/dist/{chunk-2GAXZAQJ.js → chunk-OMXWBR2R.js} +7227 -6562
  57. package/dist/{chunk-JZARXJV6.js → chunk-PRNO5TLE.js} +456 -249
  58. package/dist/{chunk-6ZCZRZ66.js → chunk-QFKDFU73.js} +2 -2
  59. package/dist/chunk-R4AFXPM4.js +959 -0
  60. package/dist/{chunk-O3OTW7F4.js → chunk-RHCDUPD6.js} +2 -2
  61. package/dist/{chunk-P4SXRRB4.js → chunk-RHO7UNXA.js} +298 -110
  62. package/dist/{chunk-N6MS4VG2.js → chunk-SKZVEZZK.js} +7 -2
  63. package/dist/{chunk-2XDGFHPM.js → chunk-T63KVDWY.js} +3 -3
  64. package/dist/{chunk-F55ER5RQ.js → chunk-VB47PTY7.js} +3 -3
  65. package/dist/{chunk-QARV5HVI.js → chunk-VCTP2RG6.js} +5 -5
  66. package/dist/{chunk-RVBGFWJ3.js → chunk-VF7XGX2I.js} +1 -1
  67. package/dist/{chunk-QXJ356KK.js → chunk-VMCVLESK.js} +4 -4
  68. package/dist/{chunk-WNXKW3NS.js → chunk-WDJMIIY2.js} +1 -1
  69. package/dist/{chunk-2HWY4NRQ.js → chunk-XJVCTI2N.js} +3 -3
  70. package/dist/{chunk-XTIP5WSA.js → chunk-Y2YBRLSS.js} +3 -3
  71. package/dist/{chunk-VEH4YLWR.js → chunk-YOZ35ZTT.js} +1 -1
  72. package/dist/{chunk-2EYBZYDG.js → chunk-ZA7D7CCN.js} +2 -2
  73. package/dist/{chunk-BGZL5RCP.js → chunk-ZILJZNMQ.js} +1 -1
  74. package/dist/{citations-GMLBTNLW.js → citations-JK3ZMAR7.js} +3 -3
  75. package/dist/{cli-catalog-WKUCQEWA.js → cli-catalog-P2I6IYNI.js} +3 -3
  76. package/dist/{cli-commands-YCHQWUNK.js → cli-commands-U6NDGGK2.js} +7 -7
  77. package/dist/cli.js +13 -13
  78. package/dist/{competitor-QNPVJFEI.js → competitor-5CJPM36M.js} +3 -3
  79. package/dist/{content-NFTC74HD.js → content-5FEDXNHR.js} +3 -3
  80. package/dist/{dashboard-TMUQT5H5.js → dashboard-ME7MBJTX.js} +6 -6
  81. package/dist/{demo-O5SPVLZZ.js → demo-J3QCDV43.js} +1 -1
  82. package/dist/{demo-server-WKZ53RGK.js → demo-server-FJLSYQXZ.js} +49 -16
  83. package/dist/{discover-LTTO7KHN.js → discover-EAISVTA6.js} +3 -3
  84. package/dist/{discover-eval-QRDNMDUE.js → discover-eval-JIBKK44Q.js} +3 -3
  85. package/dist/{doctor-SFL5FOW4.js → doctor-HSQYOZ4C.js} +3 -3
  86. package/dist/{evidence-J6WZ767P.js → evidence-PSYAWKPP.js} +3 -3
  87. package/dist/{export-cmd-D3JDTBDV.js → export-cmd-MWJN6H7W.js} +3 -3
  88. package/dist/{ga-N56LXQUN.js → ga-WSQWECYY.js} +3 -3
  89. package/dist/{gbp-7WVJYWDR.js → gbp-OD26AEPF.js} +3 -3
  90. package/dist/{google-YLRVXYVJ.js → google-FMJ7IWAF.js} +4 -4
  91. package/dist/{google-marketing-4DGX3RBB.js → google-marketing-66JL4V24.js} +1 -1
  92. package/dist/{health-cmd-PK3BASF6.js → health-cmd-2RO5LAI4.js} +3 -3
  93. package/dist/{history-UWTEZ626.js → history-X6CNPW7G.js} +3 -3
  94. package/dist/index.d.ts +449 -14
  95. package/dist/index.js +24 -23
  96. package/dist/{init-RBI2IOBY.js → init-EDSKLFUY.js} +11 -11
  97. package/dist/{insights-ZUC5XHFD.js → insights-6IWWA6JU.js} +3 -3
  98. package/dist/intelligence-service-N334P6FH.js +15 -0
  99. package/dist/{keys-NOG3M76V.js → keys-ABXAPISY.js} +3 -3
  100. package/dist/{keyword-HD57L76I.js → keyword-LERAVMI3.js} +3 -3
  101. package/dist/{logs-VAB7ITBS.js → logs-BTAB5SNZ.js} +3 -3
  102. package/dist/{mcp-HYHIL5FB.js → mcp-5E42RT6R.js} +2 -2
  103. package/dist/mcp.js +9 -9
  104. package/dist/{measurement-plan-GEHOHCH3.js → measurement-plan-MRZRNBJG.js} +5 -5
  105. package/dist/{notify-VQ2ZDGN4.js → notify-YQYGC5UZ.js} +3 -3
  106. package/dist/{organic-evidence-6TX627YW.js → organic-evidence-6QT4YT3K.js} +3 -3
  107. package/dist/{overview-XBO7WYAV.js → overview-EHZ3FTS2.js} +4 -4
  108. package/dist/{project-DR6744WZ.js → project-RNLV2ARE.js} +3 -3
  109. package/dist/{query-OGVTCPG5.js → query-IM2RXI4L.js} +3 -3
  110. package/dist/{research-B2TGKSMC.js → research-4FALR336.js} +25 -10
  111. package/dist/{results-export-K7PAYPWQ.js → results-export-4ETSRUGO.js} +3 -3
  112. package/dist/{run-Y6LUMCVL.js → run-QL7226N7.js} +4 -4
  113. package/dist/{schedule-PNAUJ5FX.js → schedule-GJE634VO.js} +3 -3
  114. package/dist/{search-PMVOGL4U.js → search-7OQL67R6.js} +3 -3
  115. package/dist/{serve-PQHXSS5T.js → serve-VJ3M7FAT.js} +25 -24
  116. package/dist/{session-S5NDMMKF.js → session-5M54TVY5.js} +12 -12
  117. package/dist/{settings-AL7E7QUK.js → settings-2QOL7YBM.js} +15 -3
  118. package/dist/{skills-GQOOTDR7.js → skills-GPLAAU3I.js} +2 -2
  119. package/dist/{snapshot-W3FXRTZM.js → snapshot-5YMJFRJS.js} +8 -6
  120. package/dist/{src-WZLTQFCH.js → src-YF3JLURF.js} +2 -2
  121. package/dist/{status-MBJVN4W5.js → status-WGWC6FLN.js} +33 -5
  122. package/dist/{technical-aeo-Y4RFST72.js → technical-aeo-RNMLD7OL.js} +3 -3
  123. package/dist/{telemetry-VK6F5QSZ.js → telemetry-7U3ZICU4.js} +4 -4
  124. package/dist/{tools-W3AQY5TY.js → tools-CSKTZTKT.js} +11 -11
  125. package/dist/{traffic-ER4I6V3B.js → traffic-QIAXLW6J.js} +5 -5
  126. package/dist/{users-KZK2OF4L.js → users-I6X5P5AO.js} +3 -3
  127. package/dist/{visibility-stats-CR7BUG5G.js → visibility-stats-33OUKQQL.js} +3 -3
  128. package/dist/{wordpress-DG5JUCAC.js → wordpress-3IO3O27D.js} +3 -3
  129. package/package.json +2 -1
  130. package/assets/assets/AccessControls-B-5YUuLE.js +0 -1
  131. package/assets/assets/AuditHistoryPanel-BkCUPvPv.js +0 -1
  132. package/assets/assets/BacklinksPage-BMgHZKuw.js +0 -1
  133. package/assets/assets/MeasurementPropertyPage-Bwv8nKS7.js +0 -4
  134. package/assets/assets/ProjectPage-CsJfGPx3.js +0 -7
  135. package/assets/assets/RunsPage-DSHDuj9b.js +0 -1
  136. package/assets/assets/SettingsPage-BDRdWk5X.js +0 -1
  137. package/assets/assets/SiteHealthSection-DV06NTxC.js +0 -2
  138. package/assets/assets/TrafficPage-CBMMwRfw.js +0 -40
  139. package/assets/assets/TrafficSourceDetailPage-Czpt0S7j.js +0 -1
  140. package/assets/assets/card-CVejjbhs.js +0 -60
  141. package/assets/assets/extract-error-message-Co6zPipR.js +0 -1
  142. package/assets/assets/index-BnS2Vuv0.js +0 -40
  143. package/assets/assets/query-client-BKJLgjJd.js +0 -1
  144. package/assets/assets/react-query-ltP1RErY.js +0 -1
  145. package/assets/assets/service-CDsqgNrS.js +0 -1
  146. package/dist/intelligence-service-JXXB43RB.js +0 -15
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  parseJsonColumn
3
- } from "./chunk-BH274VEO.js";
3
+ } from "./chunk-GFRIXUDK.js";
4
4
  import {
5
5
  AI_ENGINE_DOMAINS,
6
6
  AI_ENGINE_SELF_DOMAINS,
7
7
  AnchoredSpanSources,
8
8
  OPENROUTER_MODEL_PATTERN,
9
+ OPENROUTER_ROUTE_FAMILY,
9
10
  ProviderBatchSubmitError,
11
+ ProviderKinds,
10
12
  ProviderNames,
11
13
  RetrievalContracts,
12
14
  RetrievalStatuses,
@@ -24,7 +26,7 @@ import {
24
26
  retryAfterDelayMs,
25
27
  usageCount,
26
28
  withRetry
27
- } from "./chunk-2GAXZAQJ.js";
29
+ } from "./chunk-OMXWBR2R.js";
28
30
 
29
31
  // ../provider-openai/src/normalize.ts
30
32
  import OpenAI from "openai";
@@ -2800,6 +2802,9 @@ var openrouterAdapter = {
2800
2802
  displayName: "OpenRouter",
2801
2803
  mode: "api",
2802
2804
  supportsLocationContext: false,
2805
+ // One connection, many pinned model routes; the bare connection is never a sweep target.
2806
+ kind: ProviderKinds["model-gateway"],
2807
+ routes: OPENROUTER_ROUTE_FAMILY,
2803
2808
  keyUrl: "https://openrouter.ai/keys",
2804
2809
  modelRegistry: { defaultModel: "", validationPattern: OPENROUTER_MODEL_PATTERN, validationHint: "a concrete text model ID, publisher/model", knownModels: [] },
2805
2810
  validateConfig(config) {
@@ -2,11 +2,11 @@ import {
2
2
  dedupeGscSitemapUrls,
3
3
  resolveDiscoveredGscSitemapUrls,
4
4
  submitGscSitemapBatches
5
- } from "./chunk-23UZNTF4.js";
5
+ } from "./chunk-J7VN3FZ3.js";
6
6
  import {
7
7
  measurementDraftOperationSchema,
8
8
  runMeasurementDraftAction
9
- } from "./chunk-BQT7VLGM.js";
9
+ } from "./chunk-D234NBWI.js";
10
10
  import {
11
11
  CliError
12
12
  } from "./chunk-HGMYEDAQ.js";
@@ -147,7 +147,7 @@ import {
147
147
  trafficSeriesGranularitySchema,
148
148
  visibilityCompareSelectionSchema,
149
149
  visibilityReportRequestSchema
150
- } from "./chunk-2GAXZAQJ.js";
150
+ } from "./chunk-OMXWBR2R.js";
151
151
 
152
152
  // src/mcp/tool-registry.ts
153
153
  import { z as z2 } from "zod";
@@ -2,18 +2,18 @@ import {
2
2
  configExists,
3
3
  loadConfigRaw,
4
4
  saveConfigPatch
5
- } from "./chunk-N3WQHLDI.js";
5
+ } from "./chunk-BQKKAPMW.js";
6
6
  import {
7
7
  BUNDLED_SKILL_NAMES,
8
8
  installSkills
9
- } from "./chunk-NKSASP4U.js";
9
+ } from "./chunk-B37SDIGU.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-2GAXZAQJ.js";
16
+ } from "./chunk-OMXWBR2R.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-ZXH5IFIA.js";
8
+ } from "./chunk-MARVEIWH.js";
9
9
  import {
10
10
  CANONRY_MCP_TOOLKITS
11
11
  } from "./chunk-4MJYGB56.js";
@@ -22,15 +22,15 @@ import {
22
22
  resolveApiKeyFor,
23
23
  resolveModelForProvider,
24
24
  validateAgentProviderRegistry
25
- } from "./chunk-N3WQHLDI.js";
25
+ } from "./chunk-BQKKAPMW.js";
26
26
  import {
27
27
  CanonryMcpToolNames,
28
28
  canonryMcpTools
29
- } from "./chunk-2XDGFHPM.js";
29
+ } from "./chunk-T63KVDWY.js";
30
30
  import {
31
31
  agentToolEvents,
32
32
  llmUsageEvents
33
- } from "./chunk-BH274VEO.js";
33
+ } from "./chunk-GFRIXUDK.js";
34
34
  import {
35
35
  MeasurementPortfolioLists,
36
36
  agentTurnLimitsSchema,
@@ -38,7 +38,7 @@ import {
38
38
  describeError,
39
39
  validationError,
40
40
  visibilityReportRequestSchema
41
- } from "./chunk-2GAXZAQJ.js";
41
+ } from "./chunk-OMXWBR2R.js";
42
42
 
43
43
  // src/agent/session.ts
44
44
  import fs3 from "fs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  API_PROVIDER_NAMES,
3
3
  ProviderNames
4
- } from "./chunk-2GAXZAQJ.js";
4
+ } from "./chunk-OMXWBR2R.js";
5
5
 
6
6
  // src/provider-registration.ts
7
7
  function isApiProviderRegistrable(name, entry) {
@@ -2,13 +2,13 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-6ZCZRZ66.js";
5
+ } from "./chunk-QFKDFU73.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-N3WQHLDI.js";
8
+ } from "./chunk-BQKKAPMW.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
- } from "./chunk-DFQHGWPB.js";
11
+ } from "./chunk-EIG2V6UI.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-2GAXZAQJ.js";
22
+ } from "./chunk-OMXWBR2R.js";
23
23
 
24
24
  // src/outcome-telemetry.ts
25
25
  import fs from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cloudflareQueueNameSchema
3
- } from "./chunk-2GAXZAQJ.js";
3
+ } from "./chunk-OMXWBR2R.js";
4
4
 
5
5
  // src/cloudflare-traffic-config.ts
6
6
  function unsupportedDeliveryMode(deliveryMode) {
@@ -3,7 +3,7 @@ import {
3
3
  resolveCliAccess,
4
4
  resolveCliAccessForInvocation,
5
5
  windowOptions
6
- } from "./chunk-LYCYSM6O.js";
6
+ } from "./chunk-H6EQMYGT.js";
7
7
  import {
8
8
  emitJsonl
9
9
  } from "./chunk-Z7IUAJOF.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-HGMYEDAQ.js";
15
15
  import {
16
16
  OperationAccesses
17
- } from "./chunk-2GAXZAQJ.js";
17
+ } from "./chunk-OMXWBR2R.js";
18
18
 
19
19
  // src/cli-catalog.ts
20
20
  import { createRequire } from "module";
@@ -111,7 +111,7 @@ async function dispatchRegisteredCommand(args, fallbackFormat, specs) {
111
111
  const accessValue = accessFilterFromArgs(argsWithoutHelp);
112
112
  validateAccessFilter(accessValue);
113
113
  if (fallbackFormat !== "text") {
114
- const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-WKUCQEWA.js");
114
+ const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-P2I6IYNI.js");
115
115
  const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
116
116
  printCliCatalog2(specs, fallbackFormat, group2, accessValue);
117
117
  return true;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-O3OTW7F4.js";
3
+ } from "./chunk-RHCDUPD6.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-BQT7VLGM.js";
10
+ } from "./chunk-D234NBWI.js";
11
11
  import {
12
12
  isMachineFormat,
13
13
  systemError
@@ -37,7 +37,7 @@ import {
37
37
  unattributedAnswersLabel,
38
38
  uncheckedSourcesLabel,
39
39
  visibilityReportRequestSchema
40
- } from "./chunk-2GAXZAQJ.js";
40
+ } from "./chunk-OMXWBR2R.js";
41
41
 
42
42
  // src/commands/measurement-plan.ts
43
43
  import crypto from "crypto";
@@ -7,7 +7,7 @@ import {
7
7
  classifyAiReferralTrafficClass,
8
8
  hostMatchesDomain,
9
9
  hostOf
10
- } from "./chunk-2GAXZAQJ.js";
10
+ } from "./chunk-OMXWBR2R.js";
11
11
 
12
12
  // ../integration-traffic/src/ip-ranges/amazonbot.json
13
13
  var amazonbot_default = {
@@ -5,7 +5,7 @@ import {
5
5
  siteCrawlGraphNodes,
6
6
  siteCrawlPages,
7
7
  siteCrawlSnapshots
8
- } from "./chunk-BH274VEO.js";
8
+ } from "./chunk-GFRIXUDK.js";
9
9
  import {
10
10
  SITE_CRAWL_GRAPH_MAX_EDGES,
11
11
  SITE_CRAWL_GRAPH_MAX_NODES,
@@ -15,7 +15,7 @@ import {
15
15
  factorStatusFromDistribution,
16
16
  factorStatusFromScore,
17
17
  roundPreservingTotal
18
- } from "./chunk-2GAXZAQJ.js";
18
+ } from "./chunk-OMXWBR2R.js";
19
19
 
20
20
  // src/site-audit-factors.ts
21
21
  function recordedSharePct(factor) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hostMatchesDomain
3
- } from "./chunk-2GAXZAQJ.js";
3
+ } from "./chunk-OMXWBR2R.js";
4
4
 
5
5
  // src/citation-utils.ts
6
6
  function pickProjectCitedDomain(citedDomains, projectDomains) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-O3OTW7F4.js";
4
- import "./chunk-N3WQHLDI.js";
3
+ } from "./chunk-RHCDUPD6.js";
4
+ import "./chunk-BQKKAPMW.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import "./chunk-HGMYEDAQ.js";
7
- import "./chunk-2GAXZAQJ.js";
7
+ import "./chunk-OMXWBR2R.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-2HWY4NRQ.js";
7
- import "./chunk-LYCYSM6O.js";
6
+ } from "./chunk-XJVCTI2N.js";
7
+ import "./chunk-H6EQMYGT.js";
8
8
  import "./chunk-Z7IUAJOF.js";
9
9
  import "./chunk-HGMYEDAQ.js";
10
- import "./chunk-2GAXZAQJ.js";
10
+ import "./chunk-OMXWBR2R.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-QNU7IIO7.js";
3
+ } from "./chunk-2OB7YQEZ.js";
4
4
  import "./chunk-6GO5VVAC.js";
5
- import "./chunk-XTIP5WSA.js";
5
+ import "./chunk-Y2YBRLSS.js";
6
6
  import "./chunk-VJWDBFSL.js";
7
7
  import "./chunk-TSENU4GG.js";
8
- import "./chunk-O3OTW7F4.js";
9
- import "./chunk-N3WQHLDI.js";
10
- import "./chunk-LYCYSM6O.js";
8
+ import "./chunk-RHCDUPD6.js";
9
+ import "./chunk-BQKKAPMW.js";
10
+ import "./chunk-H6EQMYGT.js";
11
11
  import "./chunk-Z7IUAJOF.js";
12
- import "./chunk-BQT7VLGM.js";
12
+ import "./chunk-D234NBWI.js";
13
13
  import "./chunk-AOJU5LKX.js";
14
14
  import "./chunk-HGMYEDAQ.js";
15
- import "./chunk-2GAXZAQJ.js";
15
+ import "./chunk-OMXWBR2R.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-QNU7IIO7.js";
4
+ } from "./chunk-2OB7YQEZ.js";
5
5
  import "./chunk-6GO5VVAC.js";
6
6
  import {
7
7
  buildSetupState,
8
8
  runPendingServeHandoff
9
- } from "./chunk-3DO3CS7Y.js";
10
- import "./chunk-XTIP5WSA.js";
9
+ } from "./chunk-F5XONXGH.js";
10
+ import "./chunk-Y2YBRLSS.js";
11
11
  import "./chunk-VJWDBFSL.js";
12
12
  import "./chunk-TSENU4GG.js";
13
- import "./chunk-RVBGFWJ3.js";
13
+ import "./chunk-VF7XGX2I.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-6ZCZRZ66.js";
27
+ } from "./chunk-QFKDFU73.js";
28
28
  import {
29
29
  autoSyncSkills,
30
30
  formatAutoSyncNotice
31
- } from "./chunk-F55ER5RQ.js";
32
- import "./chunk-O3OTW7F4.js";
33
- import "./chunk-N3WQHLDI.js";
31
+ } from "./chunk-VB47PTY7.js";
32
+ import "./chunk-RHCDUPD6.js";
33
+ import "./chunk-BQKKAPMW.js";
34
34
  import {
35
35
  accessFilterFromArgs,
36
36
  dispatchRegisteredCommand,
37
37
  printCliCatalog
38
- } from "./chunk-2HWY4NRQ.js";
38
+ } from "./chunk-XJVCTI2N.js";
39
39
  import {
40
40
  resolveCliAccess
41
- } from "./chunk-LYCYSM6O.js";
41
+ } from "./chunk-H6EQMYGT.js";
42
42
  import "./chunk-Z7IUAJOF.js";
43
- import "./chunk-NKSASP4U.js";
44
- import "./chunk-BQT7VLGM.js";
43
+ import "./chunk-B37SDIGU.js";
44
+ import "./chunk-D234NBWI.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-2GAXZAQJ.js";
55
+ } from "./chunk-OMXWBR2R.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-O3OTW7F4.js";
4
- import "./chunk-N3WQHLDI.js";
3
+ } from "./chunk-RHCDUPD6.js";
4
+ import "./chunk-BQKKAPMW.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-2GAXZAQJ.js";
24
+ } from "./chunk-OMXWBR2R.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-O3OTW7F4.js";
4
- import "./chunk-N3WQHLDI.js";
3
+ } from "./chunk-RHCDUPD6.js";
4
+ import "./chunk-BQKKAPMW.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-2GAXZAQJ.js";
17
+ } from "./chunk-OMXWBR2R.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-N3WQHLDI.js";
4
+ } from "./chunk-BQKKAPMW.js";
5
5
  import {
6
6
  isMachineFormat
7
7
  } from "./chunk-HGMYEDAQ.js";
8
8
  import {
9
9
  anyUsersExist
10
- } from "./chunk-JZARXJV6.js";
11
- import "./chunk-VEH4YLWR.js";
12
- import "./chunk-DFQHGWPB.js";
10
+ } from "./chunk-PRNO5TLE.js";
11
+ import "./chunk-YOZ35ZTT.js";
12
+ import "./chunk-EIG2V6UI.js";
13
13
  import {
14
14
  createClient
15
- } from "./chunk-BH274VEO.js";
16
- import "./chunk-2GAXZAQJ.js";
15
+ } from "./chunk-GFRIXUDK.js";
16
+ import "./chunk-OMXWBR2R.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-WKZ53RGK.js");
43
+ const { createDemoServer } = await import("./demo-server-FJLSYQXZ.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-2EYBZYDG.js";
8
+ } from "./chunk-ZA7D7CCN.js";
9
9
  import {
10
10
  canonryMcpTools
11
- } from "./chunk-2XDGFHPM.js";
12
- import "./chunk-23UZNTF4.js";
13
- import "./chunk-BQT7VLGM.js";
11
+ } from "./chunk-T63KVDWY.js";
12
+ import "./chunk-J7VN3FZ3.js";
13
+ import "./chunk-D234NBWI.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-U7JJKXLA.js";
21
+ } from "./chunk-4LVJFSPH.js";
22
22
  import {
23
23
  determineCitationState
24
- } from "./chunk-BGZL5RCP.js";
24
+ } from "./chunk-ZILJZNMQ.js";
25
25
  import {
26
26
  apiRoutes,
27
27
  assessConversionTrackingIntegrity
28
- } from "./chunk-JZARXJV6.js";
29
- import "./chunk-VEH4YLWR.js";
30
- import "./chunk-DFQHGWPB.js";
28
+ } from "./chunk-PRNO5TLE.js";
29
+ import "./chunk-YOZ35ZTT.js";
30
+ import "./chunk-EIG2V6UI.js";
31
31
  import {
32
32
  adsAdGroups,
33
33
  adsAds,
@@ -99,7 +99,7 @@ import {
99
99
  siteCrawlPages,
100
100
  siteCrawlSnapshots,
101
101
  trafficSources
102
- } from "./chunk-BH274VEO.js";
102
+ } from "./chunk-GFRIXUDK.js";
103
103
  import {
104
104
  AI_ENGINE_DOMAINS,
105
105
  RunKinds,
@@ -131,7 +131,7 @@ import {
131
131
  roundPreservingTotal,
132
132
  siteAuditPageFactorSchema,
133
133
  wilsonInterval
134
- } from "./chunk-2GAXZAQJ.js";
134
+ } from "./chunk-OMXWBR2R.js";
135
135
  import "./chunk-MLKGABMK.js";
136
136
 
137
137
  // src/demo-server.ts
@@ -1302,6 +1302,14 @@ var DEMO_CLIENT_CONFIG = {
1302
1302
  };
1303
1303
  var INLINE_SCRIPT = /<script(?<attributes>[^>]*)>(?<body>[\s\S]*?)<\/script>/gi;
1304
1304
  var DEMO_DOCUMENT_PATH = /^\/(?:projects(?:\/[^/.]+(?:\/(?:portfolio|discovery|search-console|activity|technical-aeo|conversions|local|queries|backlinks|report|history|settings|properties)(?:\/[^/.]+)*)?)?|runs|history|traffic(?:\/[^/.]+(?:\/[^/.]+)?)?)\/?$/;
1305
+ var DEMO_TITLE = "Canonry live demo";
1306
+ var DEMO_DESCRIPTION = "The open-source AEO operating platform. Sample data, no sign-in.";
1307
+ var DEMO_PREVIEW_IMAGE = "demo-og.png";
1308
+ var DEMO_PREVIEW_IMAGE_ALT = "Canonry dashboard with sample data";
1309
+ var DEMO_PREVIEW_SLOT = "<!--canonry-demo-preview-->";
1310
+ var PLAIN_HOST = /^[a-z0-9.-]+(?::\d{1,5})?$/i;
1311
+ var LINK_PREVIEW_AGENTS = ["Twitterbot", "facebookexternalhit", "LinkedInBot", "Slackbot-LinkExpanding", "Discordbot", "TelegramBot", "WhatsApp"];
1312
+ var DEMO_ROBOTS = [...LINK_PREVIEW_AGENTS.map((agent) => `User-agent: ${agent}`), "Allow: /", "", "User-agent: *", "Disallow: /", ""].join("\n");
1305
1313
  var UNDECODABLE_PATH = "/.undecodable-path";
1306
1314
  function demoContentSecurityPolicy(document) {
1307
1315
  const inlineHashes = [...document.matchAll(INLINE_SCRIPT)].filter((match) => !/\ssrc\s*=/i.test(match.groups?.attributes ?? "")).map((match) => `'sha256-${createHash("sha256").update(match.groups?.body ?? "", "utf8").digest("base64")}'`);
@@ -1319,6 +1327,31 @@ function demoContentSecurityPolicy(document) {
1319
1327
  "frame-ancestors 'self'"
1320
1328
  ].join("; ");
1321
1329
  }
1330
+ function escapeAttribute(value) {
1331
+ return value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1332
+ }
1333
+ function demoPreviewTags(request) {
1334
+ const origin = PLAIN_HOST.test(request.host) ? `${request.protocol}://${request.host}` : "";
1335
+ const image = `${origin}/${DEMO_PREVIEW_IMAGE}`;
1336
+ const page = `${origin}${request.url.split("?")[0] ?? "/"}`;
1337
+ const tags = [
1338
+ ["property", "og:type", "website"],
1339
+ ["property", "og:site_name", "Canonry"],
1340
+ ["property", "og:title", DEMO_TITLE],
1341
+ ["property", "og:description", DEMO_DESCRIPTION],
1342
+ ["property", "og:url", page],
1343
+ ["property", "og:image", image],
1344
+ ["property", "og:image:width", "1200"],
1345
+ ["property", "og:image:height", "630"],
1346
+ ["property", "og:image:alt", DEMO_PREVIEW_IMAGE_ALT],
1347
+ ["name", "twitter:card", "summary_large_image"],
1348
+ ["name", "twitter:title", DEMO_TITLE],
1349
+ ["name", "twitter:description", DEMO_DESCRIPTION],
1350
+ ["name", "twitter:image", image],
1351
+ ["name", "twitter:image:alt", DEMO_PREVIEW_IMAGE_ALT]
1352
+ ];
1353
+ return tags.map(([attribute, key, value]) => `<meta ${attribute}="${key}" content="${escapeAttribute(value)}">`).join("");
1354
+ }
1322
1355
  function isDemoDocumentRequest(request) {
1323
1356
  return (request.method === "GET" || request.method === "HEAD") && DEMO_DOCUMENT_PATH.test(request.url.split("?")[0] ?? "");
1324
1357
  }
@@ -1328,7 +1361,7 @@ function isOutsideDemoApiBudget(request) {
1328
1361
  }
1329
1362
  async function createDemoHttpServer(options) {
1330
1363
  const { db, assetsDir, now } = options;
1331
- const html = readFileSync(join(assetsDir, "index.html"), "utf8").replace("<head>", '<head><base href="/">').replace("</head>", `<script>window.__CANONRY_CONFIG__=${JSON.stringify(DEMO_CLIENT_CONFIG)}</script></head>`);
1364
+ const html = readFileSync(join(assetsDir, "index.html"), "utf8").replace("<head>", '<head><base href="/">').replace(/<title>[^<]*<\/title>/, `<title>${DEMO_TITLE}</title>`).replace(/<meta\s+name="description"\s+content="[^"]*"\s*\/?>/, `<meta name="description" content="${DEMO_DESCRIPTION}" />`).replace("</head>", `${DEMO_PREVIEW_SLOT}<script>window.__CANONRY_CONFIG__=${JSON.stringify(DEMO_CLIENT_CONFIG)}</script></head>`);
1332
1365
  const contentSecurityPolicy = demoContentSecurityPolicy(html);
1333
1366
  db.insert(apiKeys).values({
1334
1367
  ...DEMO_VIEWER,
@@ -1433,10 +1466,10 @@ async function createDemoHttpServer(options) {
1433
1466
  index: false,
1434
1467
  dotfiles: "deny"
1435
1468
  });
1436
- const sendDocument = (_request, reply) => {
1437
- return reply.header("Cache-Control", "no-cache").type("text/html").send(html);
1469
+ const sendDocument = (request, reply) => {
1470
+ return reply.header("Cache-Control", "no-cache").type("text/html").send(html.replace(DEMO_PREVIEW_SLOT, demoPreviewTags(request)));
1438
1471
  };
1439
- for (const [filename, contentType] of [["favicon.svg", "image/svg+xml"], ["favicon-32.png", "image/png"], ["apple-touch-icon.png", "image/png"]]) {
1472
+ for (const [filename, contentType] of [["favicon.svg", "image/svg+xml"], ["favicon-32.png", "image/png"], ["apple-touch-icon.png", "image/png"], [DEMO_PREVIEW_IMAGE, "image/png"]]) {
1440
1473
  const path = join(assetsDir, filename);
1441
1474
  if (existsSync(path)) {
1442
1475
  const icon = readFileSync(path);
@@ -1444,7 +1477,7 @@ async function createDemoHttpServer(options) {
1444
1477
  }
1445
1478
  }
1446
1479
  app.get("/", sendDocument);
1447
- app.get("/robots.txt", async (_request, reply) => reply.type("text/plain").send("User-agent: *\nDisallow: /\n"));
1480
+ app.get("/robots.txt", async (_request, reply) => reply.type("text/plain").send(DEMO_ROBOTS));
1448
1481
  app.setNotFoundHandler(async (request, reply) => {
1449
1482
  if (undecodable.has(request.raw)) {
1450
1483
  return reply.code(400).send({ error: { code: "VALIDATION_ERROR", message: "The request path is not a valid URL." } });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-O3OTW7F4.js";
4
- import "./chunk-N3WQHLDI.js";
3
+ } from "./chunk-RHCDUPD6.js";
4
+ import "./chunk-BQKKAPMW.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-2GAXZAQJ.js";
17
+ } from "./chunk-OMXWBR2R.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-O3OTW7F4.js";
4
- import "./chunk-N3WQHLDI.js";
3
+ } from "./chunk-RHCDUPD6.js";
4
+ import "./chunk-BQKKAPMW.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-2GAXZAQJ.js";
10
+ import "./chunk-OMXWBR2R.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-O3OTW7F4.js";
4
- import "./chunk-N3WQHLDI.js";
3
+ } from "./chunk-RHCDUPD6.js";
4
+ import "./chunk-BQKKAPMW.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-2GAXZAQJ.js";
16
+ } from "./chunk-OMXWBR2R.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
19
19
  // src/commands/doctor.ts