@canonry/canonry 7.125.6 → 7.126.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 (149) hide show
  1. package/README.md +3 -3
  2. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +1 -1
  3. package/assets/assets/{AccessControls-CUwUDBp8.js → AccessControls-ogV5Gz4X.js} +2 -2
  4. package/assets/assets/{AgentSetupPage-vbEPb6yX.js → AgentSetupPage-DEVRQ04Z.js} +4 -4
  5. package/assets/assets/{AuditHistoryPanel-CutYGRGi.js → AuditHistoryPanel-DyXqEWpq.js} +1 -1
  6. package/assets/assets/{BacklinksPage-Cjs8Pzjw.js → BacklinksPage-B4powgfU.js} +1 -1
  7. package/assets/assets/{ChartPrimitives-Bb1-9BLv.js → ChartPrimitives-De8aCfZp.js} +1 -1
  8. package/assets/assets/{HistoryPage-CMBlL0Ms.js → HistoryPage-CN2VzZeY.js} +1 -1
  9. package/assets/assets/{MeasurementPropertyPage-C9cLyWJo.js → MeasurementPropertyPage-CP9p7C6B.js} +3 -3
  10. package/assets/assets/ProjectPage-Dq1mGFwA.js +15 -0
  11. package/assets/assets/{RunsPage-QN5bBEe4.js → RunsPage-p4FSGSzR.js} +1 -1
  12. package/assets/assets/{ServerTrafficSection-BU9Kj9MT.js → ServerTrafficSection-xzcv0S85.js} +3 -3
  13. package/assets/assets/{SettingsPage-C2wYKFF9.js → SettingsPage-C6Oh-XQT.js} +1 -1
  14. package/assets/assets/ToneBadge-CxostV9z.js +60 -0
  15. package/assets/assets/{TrafficPage-DEQ6eJUy.js → TrafficPage-D5_wyrCY.js} +1 -1
  16. package/assets/assets/{TrafficSourceDetailPage-B7sygHig.js → TrafficSourceDetailPage-CGbQlo1a.js} +1 -1
  17. package/assets/assets/{account-context-BlFU3aZm.js → account-context-Mya_uodz.js} +1 -1
  18. package/assets/assets/{agent-trust-copy-Dmj9Xp7o.js → agent-trust-copy-DjdjfF7q.js} +1 -1
  19. package/assets/assets/{card-B6QRK3vg.js → card-B20lVlLX.js} +1 -1
  20. package/assets/assets/index-rQgaFhmc.js +43 -0
  21. package/assets/assets/{preload-helper-okiXXeW4.js → preload-helper-DN5snQJ-.js} +1 -1
  22. package/assets/assets/{query-client-Dn5u8o4X.js → query-client-2aOrFPOz.js} +1 -1
  23. package/assets/assets/{react-query-CZrEo0vf.js → react-query-CEsVk5jq.js} +1 -1
  24. package/assets/assets/{react-sigma_core.esm.min-D5s2grLh.js → react-sigma_core.esm.min-DHJ5hJS1.js} +1 -1
  25. package/assets/assets/{server-traffic-Coma9CV_.js → server-traffic-Cx7fQ2OF.js} +1 -1
  26. package/assets/assets/{service-LmTWkeKI.js → service-DNaYUxv9.js} +1 -1
  27. package/assets/index.html +9 -9
  28. package/dist/activity-D5YDZLCK.js +13 -0
  29. package/dist/{ads-6ZCVMSJ2.js → ads-7JYMSESY.js} +4 -4
  30. package/dist/{agent-ZZJO7ET6.js → agent-3AIKIBOZ.js} +8 -8
  31. package/dist/{agent-ask-CPRHVULM.js → agent-ask-F7OMYKXU.js} +4 -4
  32. package/dist/{agent-conversations-NIWKSUC2.js → agent-conversations-W3WMXSDE.js} +4 -4
  33. package/dist/{agent-journeys-SHNRNV5E.js → agent-journeys-SNUC3IGG.js} +4 -4
  34. package/dist/{agent-memory-4IGCNFR5.js → agent-memory-PFVKTCZC.js} +4 -4
  35. package/dist/{agent-providers-3Q7NQS7Y.js → agent-providers-TV3SV75C.js} +4 -4
  36. package/dist/{agent-transcript-M3NYHNNV.js → agent-transcript-X6RMTVV5.js} +4 -4
  37. package/dist/{analytics-UHBUOG4T.js → analytics-U6CLZESN.js} +4 -4
  38. package/dist/{answerability-IRXQDOBX.js → answerability-YJSPCE4T.js} +4 -4
  39. package/dist/{apply-3HP75CA2.js → apply-VBX4BJCQ.js} +4 -4
  40. package/dist/{backfill-TQWXGQPQ.js → backfill-VY4PWO5A.js} +11 -11
  41. package/dist/{backlinks-O5IYHDAY.js → backlinks-U7SI3OOX.js} +4 -4
  42. package/dist/{bing-2MTKNQB2.js → bing-HONIKTUQ.js} +4 -4
  43. package/dist/{bootstrap-O7FRHURI.js → bootstrap-K7LRU624.js} +11 -11
  44. package/dist/{cdp-BTXUJFAN.js → cdp-VVETHJFO.js} +10 -9
  45. package/dist/{chunk-B3F5BMXL.js → chunk-2BSAW7H4.js} +5 -5
  46. package/dist/{chunk-PDSB34VB.js → chunk-2CRAVATO.js} +1 -1
  47. package/dist/{chunk-C5EK4TJ5.js → chunk-2RF4RB53.js} +3 -3
  48. package/dist/{chunk-U2LYHQHF.js → chunk-2WT4IQD7.js} +1 -1
  49. package/dist/{chunk-TOKRH24Q.js → chunk-3CYLLBEC.js} +172 -64
  50. package/dist/{chunk-KIO37ZVB.js → chunk-474HYXOY.js} +4 -4
  51. package/dist/{chunk-OH3HQENA.js → chunk-4IC3FHM5.js} +4 -4
  52. package/dist/{chunk-CD3XPOHP.js → chunk-5UJ5CG6J.js} +1 -1
  53. package/dist/{chunk-JTIFRAGE.js → chunk-6JQ5ZM5H.js} +3 -3
  54. package/dist/{chunk-DI5EEYDP.js → chunk-6ZJKEUGC.js} +2 -2
  55. package/dist/{chunk-QRA6GFXX.js → chunk-CF6R6DUA.js} +1 -1
  56. package/dist/{chunk-SFJCLIKB.js → chunk-CFGVH4K5.js} +425 -372
  57. package/dist/{chunk-SYRMAQVM.js → chunk-CWV3JV2S.js} +5 -5
  58. package/dist/{chunk-A75GIIWP.js → chunk-DP2SUDRW.js} +1 -1
  59. package/dist/{chunk-3OZ5WKRH.js → chunk-DRNCCGUW.js} +3362 -3284
  60. package/dist/{chunk-K7BROEPL.js → chunk-DU26WF7A.js} +3 -3
  61. package/dist/{chunk-35NITZHC.js → chunk-FVPJ5CRH.js} +1 -1
  62. package/dist/{chunk-3FQMXAES.js → chunk-GNQZBQ5X.js} +4 -4
  63. package/dist/{chunk-ML7G6NS3.js → chunk-I3MJISLF.js} +2 -2
  64. package/dist/{chunk-VUL3BACZ.js → chunk-IOXAYJ4Z.js} +4 -4
  65. package/dist/{chunk-2MDEKCDU.js → chunk-KTRRC5P4.js} +3 -3
  66. package/dist/{chunk-PAP62URW.js → chunk-LLKNKNEB.js} +6 -6
  67. package/dist/{chunk-VD6Q7ZUX.js → chunk-MVTPR7ZY.js} +1 -1
  68. package/dist/{chunk-WVNVKP4F.js → chunk-N3QGWIWL.js} +1 -1
  69. package/dist/{chunk-YYBYRAMI.js → chunk-N7NL4SCF.js} +4 -4
  70. package/dist/{chunk-MB7VQPWX.js → chunk-NCOW55N3.js} +2 -2
  71. package/dist/{chunk-AVKRYSYT.js → chunk-OU7TJX25.js} +11 -9
  72. package/dist/{chunk-VP3F4BOG.js → chunk-QQXE2GUM.js} +2 -2
  73. package/dist/{chunk-OL6HAMWW.js → chunk-RKM6YN3X.js} +2 -2
  74. package/dist/{chunk-VTOST3CL.js → chunk-SBAQZ6PY.js} +6 -6
  75. package/dist/{chunk-WAVN2EIK.js → chunk-SF2KLXZM.js} +214 -70
  76. package/dist/{chunk-QCEXADUT.js → chunk-UQG5TWLM.js} +2 -2
  77. package/dist/{chunk-BY2RGFQH.js → chunk-UQXWOIPI.js} +8 -8
  78. package/dist/{chunk-3G5FQLF7.js → chunk-V3GIVVXW.js} +2 -2
  79. package/dist/{chunk-46YT33GB.js → chunk-V7LDAQAK.js} +4 -4
  80. package/dist/{chunk-XQUGLXAN.js → chunk-VNCDWND5.js} +2 -2
  81. package/dist/{chunk-RSZ3L5FJ.js → chunk-VRBKUMA3.js} +1 -1
  82. package/dist/{chunk-QQFTJVHT.js → chunk-WCRFVAYB.js} +1 -1
  83. package/dist/{citations-5JSLIPNI.js → citations-UREMIMHU.js} +5 -5
  84. package/dist/{cli-catalog-U3DKCQC5.js → cli-catalog-JXAESW3A.js} +4 -4
  85. package/dist/cli-commands-X4XPZQZH.js +18 -0
  86. package/dist/cli.js +14 -14
  87. package/dist/{competitor-AMA7WPH4.js → competitor-DIM5OLHQ.js} +4 -4
  88. package/dist/{content-7HZ23UXM.js → content-A2V3BCU6.js} +4 -4
  89. package/dist/{dashboard-XFLFU4JL.js → dashboard-ZOBWCHMG.js} +7 -7
  90. package/dist/{demo-CPO4IUJL.js → demo-6OE36ZR7.js} +3 -3
  91. package/dist/{demo-server-KBU3NECG.js → demo-server-GIUEYO52.js} +13 -13
  92. package/dist/{discover-TJXKEHVP.js → discover-Y67SDM3U.js} +5 -5
  93. package/dist/{discover-eval-MUS46MSL.js → discover-eval-Z6DAQNRE.js} +4 -4
  94. package/dist/{doctor-5CIMYYUA.js → doctor-XBAVQYHA.js} +4 -4
  95. package/dist/{evidence-MY4Z6VNC.js → evidence-OYRYCO3J.js} +4 -4
  96. package/dist/{export-cmd-VBULRDSJ.js → export-cmd-MZRJI63B.js} +4 -4
  97. package/dist/{ga-ORQCNNJ6.js → ga-VPVM2NI3.js} +4 -4
  98. package/dist/{gbp-LWVNCHMT.js → gbp-SKZQA4E5.js} +4 -4
  99. package/dist/{google-U6LQOAQ3.js → google-6LWEJTAC.js} +5 -5
  100. package/dist/{google-marketing-6RA4AOMN.js → google-marketing-X2FOU4W2.js} +2 -2
  101. package/dist/{health-cmd-LQGRFFT3.js → health-cmd-XF5PCISV.js} +5 -5
  102. package/dist/{history-LYJAA6QI.js → history-TP6O4LMA.js} +4 -4
  103. package/dist/index.d.ts +72 -72
  104. package/dist/index.js +26 -26
  105. package/dist/{init-RWJPBYTI.js → init-YMFUF4YJ.js} +13 -13
  106. package/dist/{insights-OP7ZJLC5.js → insights-ZKTREJVG.js} +4 -4
  107. package/dist/intelligence-service-LNXDWZ3F.js +15 -0
  108. package/dist/{journeys-ENN25PA5.js → journeys-T65PNRFS.js} +4 -4
  109. package/dist/{keys-FVPHQIOM.js → keys-U54Y36FC.js} +4 -4
  110. package/dist/{keyword-ELCUWNQC.js → keyword-JHQKINGN.js} +4 -4
  111. package/dist/{logs-SVKY3HXZ.js → logs-6RH3NGMN.js} +4 -4
  112. package/dist/{mcp-W7AMWAST.js → mcp-JVJUVT3I.js} +5 -5
  113. package/dist/mcp.js +21 -15
  114. package/dist/{measurement-plan-F3ZZ4MCG.js → measurement-plan-MOBOCU7X.js} +6 -6
  115. package/dist/{notify-U253YRTY.js → notify-M3YPFBKX.js} +4 -4
  116. package/dist/{organic-evidence-4GI6HG56.js → organic-evidence-VDSGYYEB.js} +4 -4
  117. package/dist/{overview-TPZI3OKL.js → overview-FAJ5KKSI.js} +7 -7
  118. package/dist/{project-BZPMAZAH.js → project-3X4JNUQ2.js} +4 -4
  119. package/dist/{project-setup-2NSUAFXD.js → project-setup-CMIASV25.js} +9 -6
  120. package/dist/{query-4AL5P6DI.js → query-NLTDZVPT.js} +4 -4
  121. package/dist/{research-3WAJ6RWX.js → research-DATD7M5T.js} +4 -4
  122. package/dist/{results-export-VHA6BPC2.js → results-export-ONHLJT35.js} +4 -4
  123. package/dist/{run-3EEHYWIA.js → run-ZZ65W4T2.js} +6 -6
  124. package/dist/{schedule-7CXVWV75.js → schedule-L6NQQWZP.js} +4 -4
  125. package/dist/{search-EPPXH2TK.js → search-JBV4A3JB.js} +4 -4
  126. package/dist/{serve-LGXPVEMJ.js → serve-JTVUXC5V.js} +27 -27
  127. package/dist/{session-IGKCPAMH.js → session-L5ZT52AV.js} +14 -14
  128. package/dist/{settings-UKIPQVIX.js → settings-N3HNIFMB.js} +4 -4
  129. package/dist/{sitemaps-L2OOCCHX.js → sitemaps-HQV366MP.js} +4 -4
  130. package/dist/{skills-VJSJNLWC.js → skills-6MCHPZAQ.js} +3 -3
  131. package/dist/{snapshot-SYVUVM7F.js → snapshot-SJKZGC7B.js} +4 -4
  132. package/dist/{src-VYDX5USM.js → src-BUUBDKML.js} +2 -2
  133. package/dist/{status-ALZWCQ7W.js → status-T3LFFLRY.js} +6 -6
  134. package/dist/{support-XRKYBNND.js → support-BIPNOY7V.js} +2 -2
  135. package/dist/{technical-aeo-JNYI6Q7L.js → technical-aeo-APUKKLVK.js} +88 -31
  136. package/dist/{telemetry-ZENJ5BDE.js → telemetry-RGSGE6ED.js} +5 -5
  137. package/dist/{tools-LMDXNPS7.js → tools-LPL4IECG.js} +12 -12
  138. package/dist/{traffic-JXNISEMN.js → traffic-SU7KRKO3.js} +6 -6
  139. package/dist/{trends-3755UQT3.js → trends-3NJBRFXS.js} +4 -4
  140. package/dist/{users-7XCGU7BU.js → users-SU4AONBT.js} +4 -4
  141. package/dist/{visibility-stats-QJBO7HFN.js → visibility-stats-EQEBABZR.js} +5 -5
  142. package/dist/{wordpress-VC6UN5UK.js → wordpress-SNOM6ETD.js} +4 -4
  143. package/package.json +1 -1
  144. package/assets/assets/ProjectPage-CP1-aTy-.js +0 -15
  145. package/assets/assets/ToneBadge-DXhSJm1L.js +0 -60
  146. package/assets/assets/index-MwrSHGLh.js +0 -43
  147. package/dist/activity-KCUWSNHF.js +0 -13
  148. package/dist/cli-commands-6OR7VA33.js +0 -18
  149. package/dist/intelligence-service-74VHHBUU.js +0 -15
@@ -24,18 +24,18 @@ import {
24
24
  resolveConfiguredAgentProvider,
25
25
  resolveSessionProviderAndModel,
26
26
  setAeroSystemPrompt
27
- } from "./chunk-VTOST3CL.js";
27
+ } from "./chunk-SBAQZ6PY.js";
28
28
  import {
29
29
  AeroToolProfiles,
30
30
  AeroToolScopes,
31
31
  buildAeroStateTools,
32
32
  isAeroToolProfile,
33
33
  truncateToolResult
34
- } from "./chunk-SYRMAQVM.js";
34
+ } from "./chunk-CWV3JV2S.js";
35
35
  import {
36
36
  answerServiceAdapters,
37
37
  answerServiceDescriptors
38
- } from "./chunk-CD3XPOHP.js";
38
+ } from "./chunk-5UJ5CG6J.js";
39
39
  import {
40
40
  isManagedCanonryInstall
41
41
  } from "./chunk-XAJS5FH3.js";
@@ -57,7 +57,7 @@ import {
57
57
  removeCloudflareTrafficConnection,
58
58
  removeCloudflareTrafficConnectionBySourceId,
59
59
  upsertCloudflareTrafficConnection
60
- } from "./chunk-RSZ3L5FJ.js";
60
+ } from "./chunk-VRBKUMA3.js";
61
61
  import {
62
62
  claudeAdapter,
63
63
  embedQueries,
@@ -69,7 +69,7 @@ import {
69
69
  openrouterAdapter,
70
70
  perplexityAdapter,
71
71
  startTrafficReclassification
72
- } from "./chunk-AVKRYSYT.js";
72
+ } from "./chunk-OU7TJX25.js";
73
73
  import {
74
74
  classifyUsageSurface,
75
75
  createApiUsageTelemetry,
@@ -81,7 +81,7 @@ import {
81
81
  startOutcomeTimer,
82
82
  trackFeatureCompleted,
83
83
  trackInstallState
84
- } from "./chunk-OH3HQENA.js";
84
+ } from "./chunk-4IC3FHM5.js";
85
85
  import {
86
86
  isLoopbackBindHost
87
87
  } from "./chunk-TSENU4GG.js";
@@ -89,7 +89,7 @@ import {
89
89
  isApiProviderRegistrable,
90
90
  isCdpProviderRegistrable,
91
91
  registeredProviderNames
92
- } from "./chunk-U2LYHQHF.js";
92
+ } from "./chunk-2WT4IQD7.js";
93
93
  import {
94
94
  checkLatestVersionForServer,
95
95
  getOrCreateAnonymousId,
@@ -101,17 +101,17 @@ import {
101
101
  recordDashboardEvent,
102
102
  setTelemetryPreference,
103
103
  trackEvent
104
- } from "./chunk-XQUGLXAN.js";
104
+ } from "./chunk-VNCDWND5.js";
105
105
  import {
106
106
  createCanonryMcpServer
107
- } from "./chunk-YYBYRAMI.js";
107
+ } from "./chunk-N7NL4SCF.js";
108
108
  import {
109
109
  CANONRY_MCP_TIERS,
110
110
  CANONRY_MCP_TOOLKIT_NAMES
111
111
  } from "./chunk-F2TGOWIW.js";
112
112
  import {
113
113
  ApiClient
114
- } from "./chunk-2MDEKCDU.js";
114
+ } from "./chunk-KTRRC5P4.js";
115
115
  import {
116
116
  AGENT_PROVIDERS,
117
117
  PROVIDER_MODELS,
@@ -146,39 +146,39 @@ import {
146
146
  saveConfigPatch,
147
147
  sentimentInstallReadiness,
148
148
  updateSharedProviderExecutionGate
149
- } from "./chunk-VP3F4BOG.js";
149
+ } from "./chunk-QQXE2GUM.js";
150
150
  import {
151
151
  getBundledSkillSnapshots
152
- } from "./chunk-3G5FQLF7.js";
152
+ } from "./chunk-V3GIVVXW.js";
153
153
  import {
154
154
  computeFactorAverages,
155
155
  deleteSiteCrawlGraphLayout,
156
156
  persistSiteCrawlGraphLayout,
157
157
  prepareSiteCrawlGraphLayout,
158
158
  recordedSharePct
159
- } from "./chunk-QCEXADUT.js";
159
+ } from "./chunk-UQG5TWLM.js";
160
160
  import {
161
161
  CanonryMcpToolNames,
162
162
  canonryMcpTools
163
- } from "./chunk-PAP62URW.js";
163
+ } from "./chunk-LLKNKNEB.js";
164
164
  import {
165
165
  PACKAGE_VERSION
166
166
  } from "./chunk-AOJU5LKX.js";
167
167
  import {
168
168
  CliError
169
- } from "./chunk-QQFTJVHT.js";
169
+ } from "./chunk-WCRFVAYB.js";
170
170
  import {
171
171
  IntelligenceService
172
- } from "./chunk-B3F5BMXL.js";
172
+ } from "./chunk-2BSAW7H4.js";
173
173
  import {
174
174
  computeCitedCompetitorDomains,
175
175
  determineCitationState
176
- } from "./chunk-QRA6GFXX.js";
176
+ } from "./chunk-CF6R6DUA.js";
177
177
  import {
178
178
  addLogListener,
179
179
  createFastifyLogger,
180
180
  createLogger
181
- } from "./chunk-DI5EEYDP.js";
181
+ } from "./chunk-6ZJKEUGC.js";
182
182
  import {
183
183
  BING_THROTTLE_COOLDOWN_MS,
184
184
  BingApiError,
@@ -334,7 +334,7 @@ import {
334
334
  webhookTargetRefusalReason,
335
335
  webhookUserAgent,
336
336
  writeAuditLog
337
- } from "./chunk-WAVN2EIK.js";
337
+ } from "./chunk-SF2KLXZM.js";
338
338
  import {
339
339
  OperationalLogStore,
340
340
  SentimentIdempotencyConflict,
@@ -436,7 +436,7 @@ import {
436
436
  unrecognizedAgentEventsHourly,
437
437
  unrecognizedAgentNotifyState,
438
438
  usageCounters
439
- } from "./chunk-35NITZHC.js";
439
+ } from "./chunk-FVPJ5CRH.js";
440
440
  import {
441
441
  AGENT_MEMORY_VALUE_MAX_BYTES,
442
442
  AI_ENGINE_DOMAINS,
@@ -533,6 +533,7 @@ import {
533
533
  SeoProviders,
534
534
  SeoRunStatuses,
535
535
  SeoTargetKinds,
536
+ SiteAuditSetupFailureReasons,
536
537
  SiteHealthLinkClassificationSources,
537
538
  SnapshotProviderModes,
538
539
  TrafficSourceStatuses,
@@ -569,6 +570,7 @@ import {
569
570
  canonicalizeGtmAccountId,
570
571
  canonicalizeGtmContainerId,
571
572
  canonicalizeGtmResourceSelection,
573
+ cdpChromeLaunchHint,
572
574
  classifyOutcomeError,
573
575
  classifyProviderErrorMessage,
574
576
  classifyProviderOutcomeError,
@@ -635,6 +637,7 @@ import {
635
637
  isCitationMeasurable,
636
638
  isCitationStateMeasured,
637
639
  isEligibleFor,
640
+ isLocationRedirectStatus,
638
641
  isNegativeReviewRating,
639
642
  isOpenRouterRoute,
640
643
  isReadOnlyKey,
@@ -719,7 +722,7 @@ import {
719
722
  winnabilityClassLabel,
720
723
  withRetry,
721
724
  withSkippedProviders
722
- } from "./chunk-3OZ5WKRH.js";
725
+ } from "./chunk-DRNCCGUW.js";
723
726
 
724
727
  // src/google-marketing-runtime.ts
725
728
  import crypto2 from "crypto";
@@ -5647,7 +5650,7 @@ var cdpChatgptAdapter = {
5647
5650
  return {
5648
5651
  ok: false,
5649
5652
  provider: "cdp:chatgpt",
5650
- message: `Chrome not reachable at ${config.cdpEndpoint}. Ensure Chrome is running with --remote-debugging-port=${port}`
5653
+ message: `Chrome not reachable at ${config.cdpEndpoint}. ${cdpChromeLaunchHint(port)}`
5651
5654
  };
5652
5655
  }
5653
5656
  return {
@@ -6471,7 +6474,7 @@ function nonBlank(value) {
6471
6474
  return trimmed ? trimmed : void 0;
6472
6475
  }
6473
6476
  function resolveBuildCommit(env = process.env) {
6474
- const embedded = true ? "97cee05ff8586f2081bfa1b396e3c69f3d5d8584" : void 0;
6477
+ const embedded = true ? "b426e6353288e7259b3e865251e9e3250fd3422f" : void 0;
6475
6478
  return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
6476
6479
  }
6477
6480
  function resolveInstanceIdentity(env = process.env) {
@@ -12922,6 +12925,58 @@ import { runSiteCrawl } from "@canonry/agent-readiness";
12922
12925
  // src/site-audit-root.ts
12923
12926
  import http from "http";
12924
12927
  import https from "https";
12928
+
12929
+ // src/site-audit-setup-error.ts
12930
+ var SiteAuditSetupError = class extends Error {
12931
+ constructor(reason, message) {
12932
+ super(message);
12933
+ this.reason = reason;
12934
+ }
12935
+ reason;
12936
+ };
12937
+ var DNS_CODES = /* @__PURE__ */ new Set(["ENOTFOUND", "ENODATA", "EAI_AGAIN"]);
12938
+ var CERT_CODES = /* @__PURE__ */ new Set([
12939
+ "CERT_HAS_EXPIRED",
12940
+ "CERT_NOT_YET_VALID",
12941
+ "CERT_REVOKED",
12942
+ "CERT_UNTRUSTED",
12943
+ "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
12944
+ "UNABLE_TO_GET_ISSUER_CERT",
12945
+ "UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
12946
+ "SELF_SIGNED_CERT_IN_CHAIN",
12947
+ "DEPTH_ZERO_SELF_SIGNED_CERT"
12948
+ ]);
12949
+ var NETWORK_CODES = /* @__PURE__ */ new Set(["ECONNREFUSED", "ECONNRESET", "ECONNABORTED", "EHOSTUNREACH", "ENETUNREACH", "EPIPE"]);
12950
+ function siteAuditSetupFailureReason(error) {
12951
+ for (let depth = 0; depth < 5 && error instanceof Error; depth++, error = error.cause) {
12952
+ if (error instanceof SiteAuditSetupError) return error.reason;
12953
+ const code = "code" in error ? error.code : void 0;
12954
+ if (typeof code !== "string") continue;
12955
+ if (DNS_CODES.has(code)) return SiteAuditSetupFailureReasons.dns;
12956
+ if (code === "ETIMEDOUT" || code === "ESOCKETTIMEDOUT") return SiteAuditSetupFailureReasons.timeout;
12957
+ if (CERT_CODES.has(code) || code.startsWith("ERR_TLS_") || code.startsWith("ERR_SSL_")) return SiteAuditSetupFailureReasons.tls;
12958
+ if (NETWORK_CODES.has(code)) return SiteAuditSetupFailureReasons.network;
12959
+ }
12960
+ return SiteAuditSetupFailureReasons.unknown;
12961
+ }
12962
+ var SETUP_ACTION = {
12963
+ project_missing: "Check that the project still exists and start the audit from that project.",
12964
+ invalid_root: "Enter the public site address without credentials.",
12965
+ dns: "Check that the domain has a public DNS record and resolves from the Canonry server.",
12966
+ tls: "Check the TLS certificate\u2019s expiry date, hostname and certificate chain.",
12967
+ timeout: "The homepage request timed out. Check its response time from the Canonry server, then retry.",
12968
+ redirect: "Check that the homepage redirects to the intended public domain.",
12969
+ target_rejected: "Use the address of the intended public website. Exclude private sites from the audit.",
12970
+ sitemap_rejected: "Check the custom sitemap URL or remove it to use automatic sitemap discovery.",
12971
+ network: "Check that the site is reachable from the Canonry server, then retry.",
12972
+ unknown: "Check the Canonry server logs for this audit run before retrying."
12973
+ };
12974
+ function describeSiteAuditSetupError(error) {
12975
+ return `${describeError(error)}
12976
+ ${SETUP_ACTION[siteAuditSetupFailureReason(error)]}`;
12977
+ }
12978
+
12979
+ // src/site-audit-root.ts
12925
12980
  var DEFAULT_TIMEOUT_MS = 1e4;
12926
12981
  var MAX_REDIRECTS = 5;
12927
12982
  var USER_AGENT = "Canonry/1.0 (site-health)";
@@ -12941,10 +12996,13 @@ async function resolveSiteAuditRootUrl(rawUrl, options) {
12941
12996
  timeoutMs,
12942
12997
  options.signal
12943
12998
  );
12944
- if (!checked.ok) throw new Error(`Site audit root URL rejected: ${checked.message}`);
12999
+ if (!checked.ok) {
13000
+ const reason = checked.unresolved ? SiteAuditSetupFailureReasons.dns : checked.blocked ? SiteAuditSetupFailureReasons.target_rejected : SiteAuditSetupFailureReasons.unknown;
13001
+ throw new SiteAuditSetupError(reason, `Site audit root URL rejected: ${checked.message}`);
13002
+ }
12945
13003
  const checkedUrl = parseHttpUrl2(checked.target.url.href);
12946
13004
  if (checkedUrl.href !== current.href) {
12947
- throw new Error("Site audit root target resolver returned a different URL than it validated");
13005
+ throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.target_rejected, "Site audit root target resolver returned a different URL than it validated");
12948
13006
  }
12949
13007
  const response = await beforeDeadline(
12950
13008
  () => transport(checked.target, { timeoutMs: remainingTime(deadlineAt, timeoutMs), signal: options.signal }),
@@ -12952,19 +13010,19 @@ async function resolveSiteAuditRootUrl(rawUrl, options) {
12952
13010
  timeoutMs,
12953
13011
  options.signal
12954
13012
  );
12955
- if (!isRedirect(response.status)) {
13013
+ const location = firstHeader(response.headers.location);
13014
+ if (!isRedirect(response.status) || !location && !isLocationRedirectStatus(response.status)) {
12956
13015
  return { requestedUrl: requested.href, effectiveUrl: current.href, redirects };
12957
13016
  }
12958
13017
  if (redirects.length >= MAX_REDIRECTS) {
12959
- throw new Error(`Site audit root has more than ${MAX_REDIRECTS} redirects`);
13018
+ throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.redirect, `Site audit root has more than ${MAX_REDIRECTS} redirects`);
12960
13019
  }
12961
- const location = firstHeader(response.headers.location);
12962
- if (!location) throw new Error("Site audit root redirect response has no Location header");
13020
+ if (!location) throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.redirect, "Site audit root redirect response has no Location header");
12963
13021
  let next;
12964
13022
  try {
12965
13023
  next = parseHttpUrl2(new URL(location, current).href);
12966
13024
  } catch {
12967
- throw new Error("Site audit root redirect has an invalid Location header");
13025
+ throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.redirect, "Site audit root redirect has an invalid Location header");
12968
13026
  }
12969
13027
  assertAllowedRedirect(current, next);
12970
13028
  redirects.push({ status: response.status, from: current.href, to: next.href });
@@ -12976,12 +13034,12 @@ function parseHttpUrl2(rawUrl) {
12976
13034
  try {
12977
13035
  url = new URL(rawUrl);
12978
13036
  } catch {
12979
- throw new Error("Site audit root must be a valid URL");
13037
+ throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.invalid_root, "Site audit root must be a valid URL");
12980
13038
  }
12981
13039
  if (url.protocol !== "http:" && url.protocol !== "https:") {
12982
- throw new Error("Site audit root must use HTTP or HTTPS");
13040
+ throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.invalid_root, "Site audit root must use HTTP or HTTPS");
12983
13041
  }
12984
- if (url.username || url.password) throw new Error("Site audit root must not include credentials");
13042
+ if (url.username || url.password) throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.invalid_root, "Site audit root must not include credentials");
12985
13043
  url.hash = "";
12986
13044
  return url;
12987
13045
  }
@@ -12990,11 +13048,11 @@ function canonicalHostAlias(hostname) {
12990
13048
  }
12991
13049
  function assertAllowedRedirect(current, next) {
12992
13050
  if (current.protocol === "https:" && next.protocol === "http:") {
12993
- throw new Error("Site audit root redirect would downgrade HTTPS to HTTP");
13051
+ throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.redirect, "Site audit root redirect would downgrade HTTPS to HTTP");
12994
13052
  }
12995
- if (current.port !== next.port) throw new Error("Site audit root redirect changes port");
13053
+ if (current.port !== next.port) throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.redirect, "Site audit root redirect changes port");
12996
13054
  if (canonicalHostAlias(current.hostname) !== canonicalHostAlias(next.hostname)) {
12997
- throw new Error("Site audit root redirect points outside the approved site");
13055
+ throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.redirect, "Site audit root redirect points outside the approved site");
12998
13056
  }
12999
13057
  }
13000
13058
  function isRedirect(status) {
@@ -13005,7 +13063,7 @@ function firstHeader(value) {
13005
13063
  }
13006
13064
  function remainingTime(deadlineAt, timeoutMs) {
13007
13065
  const remaining = deadlineAt - Date.now();
13008
- if (remaining <= 0) throw new Error(`Site audit root resolution exceeded its ${timeoutMs}ms deadline`);
13066
+ if (remaining <= 0) throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.timeout, `Site audit root resolution exceeded its ${timeoutMs}ms deadline`);
13009
13067
  return remaining;
13010
13068
  }
13011
13069
  async function beforeDeadline(operation, deadlineAt, timeoutMs, signal) {
@@ -13018,7 +13076,7 @@ async function beforeDeadline(operation, deadlineAt, timeoutMs, signal) {
13018
13076
  operation(),
13019
13077
  new Promise((_resolve, reject) => {
13020
13078
  timer = setTimeout(
13021
- () => reject(new Error(`Site audit root resolution exceeded its ${timeoutMs}ms deadline`)),
13079
+ () => reject(new SiteAuditSetupError(SiteAuditSetupFailureReasons.timeout, `Site audit root resolution exceeded its ${timeoutMs}ms deadline`)),
13022
13080
  remaining
13023
13081
  );
13024
13082
  }),
@@ -13090,7 +13148,7 @@ async function requestPinnedSiteAuditRoot(target, options) {
13090
13148
  succeed({ status: response.statusCode ?? 0, headers: response.headers });
13091
13149
  });
13092
13150
  const timer = setTimeout(
13093
- () => request.destroy(new Error(`Site audit root request timed out after ${options.timeoutMs}ms`)),
13151
+ () => request.destroy(new SiteAuditSetupError(SiteAuditSetupFailureReasons.timeout, `Site audit root request timed out after ${options.timeoutMs}ms`)),
13094
13152
  options.timeoutMs
13095
13153
  );
13096
13154
  if (options.signal) {
@@ -13202,6 +13260,69 @@ function classifySiteCrawlTemplateLinks(db, scope, pagesFetched, placementRulese
13202
13260
  };
13203
13261
  }
13204
13262
 
13263
+ // src/site-audit-no-score.ts
13264
+ function httpAction(status) {
13265
+ if (status === 401 || status === 403) return "Check public access to the pages you want to audit.";
13266
+ if (status === 404 || status === 410) return "Update links or sitemap entries that point to missing pages.";
13267
+ if (status === 429) return "Wait for the site\u2019s rate limit to reset before retrying.";
13268
+ if (status >= 500) return "Check the site\u2019s server logs and retry once it responds normally.";
13269
+ return "Check the requested page addresses and the site\u2019s HTTP response.";
13270
+ }
13271
+ function pageEvidence(page) {
13272
+ if (page.state === "robots-blocked") return "robots.txt blocked a crawl request. Review the rules for pages you intend crawlers to visit.";
13273
+ if (page.state === "non-html") return "A response contained no usable HTML. Check that the homepage or sitemap leads to a public HTML page.";
13274
+ if (page.state === "html" && page.error) return "An HTML page could not be analyzed. Retry the audit. If it fails again, include the run ID when reporting the issue.";
13275
+ if (page.state !== "fetch-error") return null;
13276
+ switch (page.errorCode) {
13277
+ case "TIMEOUT":
13278
+ return "A page request timed out. Check the site\u2019s response time and retry.";
13279
+ case "BLOCKED_HOST":
13280
+ case "BLOCKED_IP":
13281
+ return "A page target was blocked by the public-address check. Verify that the intended site resolves to a public address.";
13282
+ case "REDIRECT_LIMIT":
13283
+ return "A page exceeded the redirect limit. Check its redirect chain for loops.";
13284
+ case "BODY_TOO_LARGE":
13285
+ return "A page exceeded the download size limit. Check the size of its response.";
13286
+ case "INVALID_URL":
13287
+ case "UNSUPPORTED_PROTOCOL":
13288
+ return "A page address could not be fetched. Check the site links and sitemap for valid HTTP or HTTPS addresses.";
13289
+ default:
13290
+ return page.statusCode === null ? "No HTTP status was recorded for a page request. Check that the site is reachable from the Canonry server." : null;
13291
+ }
13292
+ }
13293
+ function describeUnscoredSiteAudit(summary, pages, hasUrlVersions) {
13294
+ const evidence = /* @__PURE__ */ new Set();
13295
+ const redirect = summary.warnings.find((warning) => warning.code === "root-host-redirect");
13296
+ if (redirect || summary.terminationReason === "root-host-redirect") {
13297
+ const from = URL.parse(redirect?.from ?? summary.rootUrl);
13298
+ const destination = redirect?.to ?? summary.finalRootUrl;
13299
+ const to = destination && URL.parse(destination);
13300
+ const detail = from && to ? ` from ${from.host} to ${to.host} (${destination})` : "";
13301
+ evidence.add(`The root URL redirected off-host${detail}. Check the project domain and the homepage redirect.`);
13302
+ }
13303
+ if (hasUrlVersions) evidence.add("The crawl found alternate URLs for canonical pages. Include the canonical page addresses in the sitemap.");
13304
+ const statusesByAction = /* @__PURE__ */ new Map();
13305
+ for (const page of pages) {
13306
+ if (page.state === "fetch-error" && page.statusCode !== null && page.statusCode >= 400) {
13307
+ const action = httpAction(page.statusCode);
13308
+ const statuses = statusesByAction.get(action) ?? /* @__PURE__ */ new Set();
13309
+ statuses.add(page.statusCode);
13310
+ statusesByAction.set(action, statuses);
13311
+ } else {
13312
+ const detail = pageEvidence(page);
13313
+ if (detail) evidence.add(detail);
13314
+ }
13315
+ }
13316
+ for (const [action, statuses] of statusesByAction) {
13317
+ const observed2 = [...statuses].sort((a, b) => a - b).map((status) => `HTTP ${status}`);
13318
+ evidence.add(`The crawler received ${observed2.join(", ")}. ${action}`);
13319
+ }
13320
+ const stoppedAtLimit = !summary.complete && summary.terminationReason !== null && summary.terminationReason !== "root-host-redirect";
13321
+ if (evidence.size === 0 && !stoppedAtLimit) evidence.add("Check that the homepage and sitemap lead to public HTML pages, then retry.");
13322
+ const observed = `No pages were scored (${summary.pagesObserved} observed)`;
13323
+ return [stoppedAtLimit ? `${observed} before the scan stopped.` : `${observed}.`, ...evidence].join(" ");
13324
+ }
13325
+
13205
13326
  // src/site-audit-issues.ts
13206
13327
  import { createHash as createHash5 } from "crypto";
13207
13328
  var GROUP_IDENTITY_VERSION = "duplicate-metadata-v1";
@@ -13288,7 +13409,7 @@ function toHomepageUrl(canonicalDomain) {
13288
13409
  }
13289
13410
  async function assertSiteAuditUrlAllowed(rawUrl, field) {
13290
13411
  const check = await resolveWebhookTarget(rawUrl);
13291
- if (!check.ok) throw new Error(`${field} ${check.message.replace(/^"url" /, "")}`);
13412
+ if (!check.ok) throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.sitemap_rejected, `${field} ${check.message.replace(/^"url" /, "")}`);
13292
13413
  }
13293
13414
  function clampSiteAuditLimit(limit) {
13294
13415
  if (limit == null || !Number.isFinite(limit)) return SITE_AUDIT_DEFAULT_PAGE_LIMIT;
@@ -13406,20 +13527,6 @@ function siteRollups(input) {
13406
13527
  }
13407
13528
  return sites;
13408
13529
  }
13409
- function emptyCompleteCrawlError(rootUrl, finalRootUrl, pagesObserved) {
13410
- if (!finalRootUrl) return new Error(`Agent Readiness audit scan could not successfully audit any of ${pagesObserved} observed page(s).`);
13411
- try {
13412
- const rootHost = new URL(rootUrl).hostname;
13413
- const finalRootHost = new URL(finalRootUrl).hostname;
13414
- if (rootHost !== finalRootHost) {
13415
- return new Error(
13416
- `Agent Readiness audit scan could not successfully audit any of ${pagesObserved} observed page(s): root URL redirected off-host from ${rootHost} to ${finalRootHost} (${finalRootUrl}).`
13417
- );
13418
- }
13419
- } catch {
13420
- }
13421
- return new Error(`Agent Readiness audit scan could not successfully audit any of ${pagesObserved} observed page(s).`);
13422
- }
13423
13530
  function toLegacyIssue(summary, totalPages) {
13424
13531
  const affected = summary.pagesPartial + summary.pagesFailing;
13425
13532
  if (affected === 0 || summary.avgScore >= 70) return null;
@@ -13462,6 +13569,7 @@ function trackSiteAuditOutcome(db, input) {
13462
13569
  operationKind: OutcomeOperationKinds["site-audit"],
13463
13570
  diagnostics: buildOutcomeDiagnostics(input.error, { phase: input.phase }),
13464
13571
  ...input.observedPageCount !== void 0 ? { observedPages: input.observedPageCount, observedPageErrors: input.observedPageErrors } : {},
13572
+ ...input.status === "failed" && input.phase === OutcomePhases.setup ? { setupFailureReason: siteAuditSetupFailureReason(input.error) } : {},
13465
13573
  ...input.status === "failed" ? describeRunFailure(input.error) : {}
13466
13574
  },
13467
13575
  errorCode ? { errorCode } : void 0
@@ -13775,7 +13883,7 @@ async function executeSiteAudit(db, runId, projectId, opts = {}) {
13775
13883
  };
13776
13884
  try {
13777
13885
  const project = db.select().from(projects).where(eq22(projects.id, projectId)).get();
13778
- if (!project) throw new Error(`Project not found: ${projectId}`);
13886
+ if (!project) throw new SiteAuditSetupError(SiteAuditSetupFailureReasons.project_missing, `Project not found: ${projectId}`);
13779
13887
  canonicalDomain = project.canonicalDomain;
13780
13888
  const homepageUrl = toHomepageUrl(project.canonicalDomain);
13781
13889
  const maxPages = clampSiteAuditLimit(opts.maxPages ?? opts.limit);
@@ -13798,7 +13906,7 @@ async function executeSiteAudit(db, runId, projectId, opts = {}) {
13798
13906
  } catch (error) {
13799
13907
  if (isCancelled(error, opts.signal)) throw error;
13800
13908
  log17.warn("extra-site.unreachable", { runId, projectId, host, error: describeError(error) });
13801
- return { host, rootUrl: null, error: describeError(error) };
13909
+ return { host, rootUrl: null, error: describeSiteAuditSetupError(error) };
13802
13910
  }
13803
13911
  })
13804
13912
  );
@@ -13843,9 +13951,11 @@ async function executeSiteAudit(db, runId, projectId, opts = {}) {
13843
13951
  }
13844
13952
  });
13845
13953
  const crawlSummary = report.summary;
13846
- if (crawlSummary.complete && crawlSummary.auditRollup.auditedPages === 0) {
13847
- throw emptyCompleteCrawlError(crawlSummary.rootUrl, crawlSummary.finalRootUrl, crawlSummary.pagesObserved);
13848
- }
13954
+ const pageObservations = [...observedPages.values()].filter((page) => urlVersionOf(page) === null);
13955
+ const scoredPages = pageObservations.filter(isScoredPage);
13956
+ const pagesAudited = scoredPages.length;
13957
+ const noScoreMessage = pagesAudited === 0 ? describeUnscoredSiteAudit(crawlSummary, pageObservations, observedPages.size > pageObservations.length) : null;
13958
+ if (crawlSummary.complete && crawlSummary.auditRollup.auditedPages === 0 && noScoreMessage) throw new Error(noScoreMessage);
13849
13959
  phase = OutcomePhases.persistence;
13850
13960
  const placementRulesetVersion = crawlSummary.linkPlacementRulesetVersion ?? null;
13851
13961
  const templateLinks = classifySiteCrawlTemplateLinks(
@@ -13869,9 +13979,6 @@ async function executeSiteAudit(db, runId, projectId, opts = {}) {
13869
13979
  rootUrl: crawlSummary.finalRootUrl ?? crawlSummary.rootUrl
13870
13980
  }, { signal: opts.signal, timeoutMs: opts.graphLayoutTimeoutMs });
13871
13981
  const finishedAt = (/* @__PURE__ */ new Date()).toISOString();
13872
- const pageObservations = [...observedPages.values()].filter((page) => urlVersionOf(page) === null);
13873
- const scoredPages = pageObservations.filter(isScoredPage);
13874
- const pagesAudited = scoredPages.length;
13875
13982
  const aggregateScore = pagesAudited > 0 ? Math.round(scoredPages.reduce((total, page) => total + page.audit.overallScore, 0) / pagesAudited) : null;
13876
13983
  const factors = computeFactorAverages(pageObservations);
13877
13984
  const errorCount = observedErrorCount(observedPages.values());
@@ -13919,7 +14026,7 @@ async function executeSiteAudit(db, runId, projectId, opts = {}) {
13919
14026
  }
13920
14027
  }
13921
14028
  const published = db.transaction((tx) => {
13922
- const claim2 = tx.update(runs).set({ status: terminalStatus, finishedAt }).where(and17(eq22(runs.id, runId), eq22(runs.status, "running"))).run();
14029
+ const claim2 = tx.update(runs).set({ status: terminalStatus, error: noScoreMessage, finishedAt }).where(and17(eq22(runs.id, runId), eq22(runs.status, "running"))).run();
13923
14030
  if (claim2.changes === 0) return false;
13924
14031
  if (aggregateScore !== null) {
13925
14032
  tx.insert(siteAuditSnapshots).values({
@@ -14027,6 +14134,7 @@ async function executeSiteAudit(db, runId, projectId, opts = {}) {
14027
14134
  }
14028
14135
  tx.update(siteCrawlAttempts).set({
14029
14136
  state: terminalStatus,
14137
+ error: noScoreMessage,
14030
14138
  pagesDiscovered: crawlSummary.pagesDiscovered,
14031
14139
  pagesFetched: crawlSummary.pagesFetched,
14032
14140
  pagesEligible: [...observedPages.values()].filter(isInventoryEligible).length,
@@ -14091,7 +14199,7 @@ async function executeSiteAudit(db, runId, projectId, opts = {}) {
14091
14199
  } catch (error) {
14092
14200
  const finishedAt = (/* @__PURE__ */ new Date()).toISOString();
14093
14201
  const cancelled = isCancelled(error, opts.signal);
14094
- const message = describeError(error);
14202
+ const message = !cancelled && phase === OutcomePhases.setup ? describeSiteAuditSetupError(error) : describeError(error);
14095
14203
  db.transaction((tx) => {
14096
14204
  tx.update(siteCrawlAttempts).set({
14097
14205
  state: cancelled ? "cancelled" : "failed",
@@ -3,7 +3,7 @@ import {
3
3
  resolveCliAccess,
4
4
  resolveCliAccessForInvocation,
5
5
  windowOptions
6
- } from "./chunk-ML7G6NS3.js";
6
+ } from "./chunk-I3MJISLF.js";
7
7
  import {
8
8
  emitJsonl
9
9
  } from "./chunk-Z7IUAJOF.js";
@@ -11,10 +11,10 @@ import {
11
11
  CliError,
12
12
  EXIT_USER_ERROR,
13
13
  usageError
14
- } from "./chunk-QQFTJVHT.js";
14
+ } from "./chunk-WCRFVAYB.js";
15
15
  import {
16
16
  OperationAccesses
17
- } from "./chunk-3OZ5WKRH.js";
17
+ } from "./chunk-DRNCCGUW.js";
18
18
 
19
19
  // src/cli-catalog.ts
20
20
  import { createRequire } from "module";
@@ -122,7 +122,7 @@ async function dispatchRegisteredCommand(args, fallbackFormat, specs) {
122
122
  const accessValue = accessFilterFromArgs(argsWithoutHelp);
123
123
  validateAccessFilter(accessValue);
124
124
  if (fallbackFormat !== "text") {
125
- const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-U3DKCQC5.js");
125
+ const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-JXAESW3A.js");
126
126
  const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
127
127
  printCliCatalog2(specs, fallbackFormat, group2, accessValue);
128
128
  return true;
@@ -2,13 +2,13 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-XQUGLXAN.js";
5
+ } from "./chunk-VNCDWND5.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-VP3F4BOG.js";
8
+ } from "./chunk-QQXE2GUM.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
- } from "./chunk-A75GIIWP.js";
11
+ } from "./chunk-DP2SUDRW.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-3OZ5WKRH.js";
22
+ } from "./chunk-DRNCCGUW.js";
23
23
 
24
24
  // src/outcome-telemetry.ts
25
25
  import fs from "fs";
@@ -28,7 +28,7 @@ import {
28
28
  unknownUsageObservation,
29
29
  usdToMicros,
30
30
  withRetry
31
- } from "./chunk-3OZ5WKRH.js";
31
+ } from "./chunk-DRNCCGUW.js";
32
32
 
33
33
  // ../provider-answer-services/src/core/http.ts
34
34
  var MAX_RESPONSE_BYTES = 8 * 1024 * 1024;
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-VJWDBFSL.js";
5
5
  import {
6
6
  createApiClient
7
- } from "./chunk-2MDEKCDU.js";
7
+ } from "./chunk-KTRRC5P4.js";
8
8
  import {
9
9
  CliError,
10
10
  isMachineFormat
11
- } from "./chunk-QQFTJVHT.js";
11
+ } from "./chunk-WCRFVAYB.js";
12
12
  import {
13
13
  describeError
14
- } from "./chunk-3OZ5WKRH.js";
14
+ } from "./chunk-DRNCCGUW.js";
15
15
 
16
16
  // src/commands/mcp.ts
17
17
  import fs from "fs";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getRequestContext
3
- } from "./chunk-A75GIIWP.js";
3
+ } from "./chunk-DP2SUDRW.js";
4
4
  import {
5
5
  diagnosticIdentity,
6
6
  redactLogString,
7
7
  redactLogValue
8
- } from "./chunk-3OZ5WKRH.js";
8
+ } from "./chunk-DRNCCGUW.js";
9
9
 
10
10
  // ../api-routes/src/runtime-logger.ts
11
11
  import { format } from "util";
@@ -2,7 +2,7 @@ import {
2
2
  CitationStates,
3
3
  hostMatchesDomain,
4
4
  isCitationMeasurable
5
- } from "./chunk-3OZ5WKRH.js";
5
+ } from "./chunk-DRNCCGUW.js";
6
6
 
7
7
  // src/citation-utils.ts
8
8
  function pickProjectCitedDomain(citedDomains, projectDomains) {