@canonry/canonry 7.102.0 → 7.104.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 (141) hide show
  1. package/assets/agent-workspace/skills/aero/references/ai-traffic-tracking.md +32 -4
  2. package/assets/agent-workspace/skills/canonry/references/ai-traffic-tracking.md +32 -4
  3. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +20 -2
  4. package/assets/agent-workspace/skills/canonry/references/server-side-traffic.md +51 -15
  5. package/assets/assets/{AccessControls-CpSlWN3W.js → AccessControls-CBkDcxwx.js} +1 -1
  6. package/assets/assets/{AgentSetupPage-0le_Bx7d.js → AgentSetupPage-iGYETW-I.js} +1 -1
  7. package/assets/assets/{AuditHistoryPanel-BQH1dQ4V.js → AuditHistoryPanel-DiFMK7eE.js} +1 -1
  8. package/assets/assets/{BacklinksPage-_ffwmtrl.js → BacklinksPage-Cg9LQLMo.js} +1 -1
  9. package/assets/assets/{ChartPrimitives-6Yq_3ION.js → ChartPrimitives-DYS88Zzt.js} +1 -1
  10. package/assets/assets/{HistoryPage-DUR17GrK.js → HistoryPage-CmI5CX94.js} +1 -1
  11. package/assets/assets/{MeasurementPropertyPage-dutXSW7s.js → MeasurementPropertyPage-DshJzp9b.js} +1 -1
  12. package/assets/assets/{ProjectPage-DA-07-jJ.js → ProjectPage-DwVxUhxM.js} +9 -9
  13. package/assets/assets/{RunsPage-Bs4f0-sW.js → RunsPage-BqvrT8Xm.js} +1 -1
  14. package/assets/assets/{ServerTrafficSection-qMBbUI-0.js → ServerTrafficSection-CtFe7WDd.js} +1 -1
  15. package/assets/assets/{SettingsPage-Bccypqbr.js → SettingsPage-snu8wJ8l.js} +1 -1
  16. package/assets/assets/{ToneBadge-DvK4cIwq.js → ToneBadge-CkTo2T8d.js} +4 -4
  17. package/assets/assets/{TrafficPage-BPojOqd_.js → TrafficPage-BxiiQjwl.js} +1 -1
  18. package/assets/assets/TrafficSourceDetailPage-8BKFz7py.js +1 -0
  19. package/assets/assets/{account-context-evpXzY8L.js → account-context-BlfC71NP.js} +1 -1
  20. package/assets/assets/{agent-trust-copy-CkaSg2FT.js → agent-trust-copy-C_J3OmRg.js} +1 -1
  21. package/assets/assets/{card-01OafAPU.js → card-CeXmlLH2.js} +1 -1
  22. package/assets/assets/{index-StZErOkd.js → index-BKbmkmyo.js} +3 -3
  23. package/assets/assets/{query-client-D6xwAuZW.js → query-client-DWYnC2Lg.js} +1 -1
  24. package/assets/assets/{react-query-CdE7FNH6.js → react-query-CQhkmL4O.js} +1 -1
  25. package/assets/assets/{react-sigma_core.esm.min-DlfcmDYc.js → react-sigma_core.esm.min-YHPB9pkU.js} +1 -1
  26. package/assets/assets/{server-traffic-yEflW4RI.js → server-traffic-ChxoKQ0y.js} +1 -1
  27. package/assets/assets/{service-DfuRVpyN.js → service-u1pn5oyA.js} +1 -1
  28. package/assets/index.html +8 -8
  29. package/dist/{ads-UDJVYKHF.js → ads-ARJJACSH.js} +3 -3
  30. package/dist/{agent-EOB54XNS.js → agent-57EQMSOO.js} +7 -7
  31. package/dist/{agent-ask-5V4LX4VW.js → agent-ask-TF2WTRTO.js} +3 -3
  32. package/dist/{agent-conversations-OAF6RCFP.js → agent-conversations-5GXNREFK.js} +3 -3
  33. package/dist/{agent-journeys-GETB4UGM.js → agent-journeys-6CDPI4TE.js} +3 -3
  34. package/dist/{agent-memory-JXHPH6H5.js → agent-memory-X3FQ4YDE.js} +3 -3
  35. package/dist/{agent-providers-AAUCUOKY.js → agent-providers-32Z3YXO4.js} +3 -3
  36. package/dist/{agent-transcript-WT4QH3ZY.js → agent-transcript-2S64XPF2.js} +3 -3
  37. package/dist/{analytics-JEZWLRTZ.js → analytics-WPCHRXQZ.js} +3 -3
  38. package/dist/{apply-LDIMMO4N.js → apply-3WHRQBQB.js} +3 -3
  39. package/dist/{backfill-JOJHBVGV.js → backfill-KR2NSPSE.js} +10 -10
  40. package/dist/{backlinks-D2O3UM6F.js → backlinks-TRVNCPUB.js} +3 -3
  41. package/dist/{bing-BG7KZZPK.js → bing-F3B76XX5.js} +3 -3
  42. package/dist/{bootstrap-IXVATZLB.js → bootstrap-QOAGLWNN.js} +10 -10
  43. package/dist/{cdp-3AJG7OLP.js → cdp-4I3DNMLG.js} +7 -7
  44. package/dist/{chunk-C2YVADFC.js → chunk-2AECECUY.js} +1 -1
  45. package/dist/{chunk-DP3FE2OW.js → chunk-2QWG6HWM.js} +5 -5
  46. package/dist/{chunk-S7ZOYNW3.js → chunk-2VNQKUCW.js} +2 -2
  47. package/dist/{chunk-N7773GJW.js → chunk-3V5Y2XTA.js} +1 -1
  48. package/dist/{chunk-M25KDHD4.js → chunk-52D6WBCZ.js} +1 -1
  49. package/dist/{chunk-LGTSVS6Q.js → chunk-5FMZGO6R.js} +4 -4
  50. package/dist/{chunk-QK4IICRM.js → chunk-6AW6ONTF.js} +2 -2
  51. package/dist/{chunk-G4ODBZO7.js → chunk-7UQZCDYK.js} +1 -1
  52. package/dist/{chunk-7JJCFGL2.js → chunk-7VKVGR6X.js} +3 -3
  53. package/dist/{chunk-7I2NJ4BH.js → chunk-BYYP43Q3.js} +128 -1
  54. package/dist/{chunk-N4VEG6GB.js → chunk-C6RWAAF6.js} +4 -4
  55. package/dist/{chunk-AENOUFTF.js → chunk-CCHYRLX4.js} +2 -2
  56. package/dist/{chunk-O5AIKUW3.js → chunk-CJ55MGWI.js} +1 -1
  57. package/dist/{chunk-WNR3YQAD.js → chunk-D76TB5JS.js} +1 -1
  58. package/dist/{chunk-GLKR6C2L.js → chunk-DLZCOJCY.js} +1 -1
  59. package/dist/{chunk-66EXWVMN.js → chunk-FCUUJO3Z.js} +2 -2
  60. package/dist/{chunk-UX6XWC4F.js → chunk-FUERP5PU.js} +567 -185
  61. package/dist/{chunk-RXWD25P7.js → chunk-HLM3GYK4.js} +1 -1
  62. package/dist/{chunk-4CF5536B.js → chunk-HPFT4IKN.js} +1 -1
  63. package/dist/{chunk-AG6BTE7R.js → chunk-HTGJSXCR.js} +5 -5
  64. package/dist/{chunk-CZOGOHIN.js → chunk-K32GU473.js} +632 -462
  65. package/dist/{chunk-BDLHLE2F.js → chunk-LCZZACLE.js} +3 -3
  66. package/dist/{chunk-NAJ3ZYZ2.js → chunk-MDRAKMCV.js} +3 -3
  67. package/dist/{chunk-DRNBMKR5.js → chunk-MT2LENZA.js} +6 -6
  68. package/dist/{chunk-VH424YVI.js → chunk-PL76V2DY.js} +1587 -1516
  69. package/dist/{chunk-FHK6M4RK.js → chunk-QRR5ZW22.js} +3 -3
  70. package/dist/{chunk-ZIKPEZ3K.js → chunk-R4VAGCFW.js} +21 -21
  71. package/dist/{chunk-BG6TVNA6.js → chunk-RBAK7RQX.js} +366 -366
  72. package/dist/{chunk-YTR2S4MU.js → chunk-SFLSZXLO.js} +4 -4
  73. package/dist/{chunk-2YLTELT2.js → chunk-SZ64N26K.js} +1 -1
  74. package/dist/{chunk-ONHBQYSA.js → chunk-T3G44DHS.js} +46 -31
  75. package/dist/{chunk-EXPBZFN4.js → chunk-TCXITSDO.js} +1 -1
  76. package/dist/{chunk-NJZVDUKD.js → chunk-TFP6UJXW.js} +3 -3
  77. package/dist/{chunk-3TPHFDZN.js → chunk-WQQ4TNIY.js} +2 -2
  78. package/dist/{chunk-NHBXQWE3.js → chunk-WT22Z3I7.js} +63 -4
  79. package/dist/{chunk-IBRABPHA.js → chunk-ZJFLVXDZ.js} +2 -2
  80. package/dist/{citations-GM42U2ZH.js → citations-6CW3G5YP.js} +4 -4
  81. package/dist/{cli-catalog-EMZPMAJP.js → cli-catalog-6B2O2JQE.js} +3 -3
  82. package/dist/{cli-commands-VDMZAETM.js → cli-commands-RJX2UC5L.js} +7 -7
  83. package/dist/cli.js +13 -13
  84. package/dist/{competitor-4ZLKGNQW.js → competitor-D4BVO2KQ.js} +3 -3
  85. package/dist/{content-YJRMT4JW.js → content-H2PGFRWM.js} +3 -3
  86. package/dist/{dashboard-L4EE3C5T.js → dashboard-4GWISEMI.js} +6 -6
  87. package/dist/{demo-3XDVCUT5.js → demo-63JTCWN5.js} +1 -1
  88. package/dist/{demo-server-7ZJWSGE2.js → demo-server-QA5OSH45.js} +12 -12
  89. package/dist/{discover-SQGUDXSU.js → discover-K4GIXAN5.js} +4 -4
  90. package/dist/{discover-eval-BUNKP6EW.js → discover-eval-L4IF5XFV.js} +3 -3
  91. package/dist/{doctor-HPIGLMRX.js → doctor-OVJTEQCK.js} +3 -3
  92. package/dist/{evidence-JKEM5BYW.js → evidence-MXQK4YYL.js} +3 -3
  93. package/dist/{export-cmd-KTQM455W.js → export-cmd-Z3CWJALI.js} +3 -3
  94. package/dist/{ga-D7ZLTSSA.js → ga-347UNNJP.js} +3 -3
  95. package/dist/{gbp-OWBX2BFK.js → gbp-47MIYIQC.js} +3 -3
  96. package/dist/{google-UNAGUCXQ.js → google-7Q3FYNVP.js} +4 -4
  97. package/dist/{google-marketing-AZC7WHZR.js → google-marketing-TMKWY5AP.js} +1 -1
  98. package/dist/{health-cmd-XHEDL6CF.js → health-cmd-77TMLQ6T.js} +4 -4
  99. package/dist/{history-MKQDN6LY.js → history-Q756HPJM.js} +3 -3
  100. package/dist/index.d.ts +30 -11
  101. package/dist/index.js +25 -25
  102. package/dist/{init-W4LWSMCC.js → init-CLSFH5OL.js} +12 -12
  103. package/dist/{insights-HNJR7UEC.js → insights-TPNHIVNH.js} +3 -3
  104. package/dist/intelligence-service-TTDFQ2TB.js +16 -0
  105. package/dist/{journeys-RQBYPWHU.js → journeys-F6UAVPVI.js} +3 -3
  106. package/dist/{keys-KNZAMXJU.js → keys-Q6VMDIAH.js} +3 -3
  107. package/dist/{keyword-7SUZG7RB.js → keyword-7BH5P5P7.js} +3 -3
  108. package/dist/{logs-RTQFOKLJ.js → logs-P2J6XFVJ.js} +3 -3
  109. package/dist/{mcp-JWBPAYR4.js → mcp-RPXFNAKS.js} +4 -4
  110. package/dist/mcp.js +9 -9
  111. package/dist/{measurement-plan-AETWMIGC.js → measurement-plan-KKUB6SLB.js} +5 -5
  112. package/dist/{notify-DGFNKFVG.js → notify-2IK6NR7Y.js} +3 -3
  113. package/dist/{organic-evidence-VA47O6HU.js → organic-evidence-N4HIUIHJ.js} +3 -3
  114. package/dist/{overview-SMXNZLPG.js → overview-FSNB42W5.js} +5 -5
  115. package/dist/{project-WXEDQJLS.js → project-D5ODS46C.js} +3 -3
  116. package/dist/{project-setup-VFBTUA5W.js → project-setup-X7NGKC4R.js} +3 -3
  117. package/dist/{query-C2VIB2XW.js → query-JGCEDLI2.js} +3 -3
  118. package/dist/{research-76TYES7M.js → research-3S5FLAFX.js} +3 -3
  119. package/dist/{results-export-F4FKVOQN.js → results-export-YMX4F2K6.js} +3 -3
  120. package/dist/{run-H6GGXFKQ.js → run-MCJAGAHJ.js} +5 -5
  121. package/dist/{schedule-KTQNJGMO.js → schedule-CLWDPYZG.js} +3 -3
  122. package/dist/{search-YRFUC7SW.js → search-X7SXPESS.js} +3 -3
  123. package/dist/{serve-PWIVPUX7.js → serve-WDUJ36KJ.js} +26 -26
  124. package/dist/{session-LRR2N6IP.js → session-M66S3VTK.js} +13 -13
  125. package/dist/{settings-TLDN77K4.js → settings-UZEODHZ3.js} +3 -3
  126. package/dist/{sitemaps-BQ6JI4EW.js → sitemaps-SK2ZE5EJ.js} +3 -3
  127. package/dist/{skills-SQBKFXAN.js → skills-SI6C7MPT.js} +2 -2
  128. package/dist/{snapshot-ICGETMOY.js → snapshot-AOQUU5Q2.js} +3 -3
  129. package/dist/{src-XW5T4IQS.js → src-BXXLPHVZ.js} +2 -2
  130. package/dist/{status-VN65JTUD.js → status-TMKQNQ74.js} +5 -5
  131. package/dist/{technical-aeo-OBCWTN3M.js → technical-aeo-WBLZMCUY.js} +3 -3
  132. package/dist/{telemetry-ZU6REKKU.js → telemetry-DS22S3C3.js} +4 -4
  133. package/dist/{tools-RQDMCSZB.js → tools-W63YOE6T.js} +11 -11
  134. package/dist/{traffic-YLZSRX5P.js → traffic-6AIRXYMI.js} +24 -7
  135. package/dist/{trends-OWWELIE2.js → trends-LEAXHSM6.js} +3 -3
  136. package/dist/{users-2ICURHTW.js → users-VCNIWES5.js} +3 -3
  137. package/dist/{visibility-stats-FJK3MDYE.js → visibility-stats-4XA2YZET.js} +4 -4
  138. package/dist/{wordpress-UQFA5TFU.js → wordpress-YG3ECQXW.js} +3 -3
  139. package/package.json +1 -1
  140. package/assets/assets/TrafficSourceDetailPage-DSoQk94d.js +0 -1
  141. package/dist/intelligence-service-SWQABQ3X.js +0 -16
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-66EXWVMN.js";
3
+ } from "./chunk-FCUUJO3Z.js";
4
4
  import {
5
5
  answerServiceDescriptors
6
- } from "./chunk-M25KDHD4.js";
6
+ } from "./chunk-52D6WBCZ.js";
7
7
  import {
8
8
  outcomeFailure
9
- } from "./chunk-LGTSVS6Q.js";
9
+ } from "./chunk-5FMZGO6R.js";
10
10
  import {
11
11
  isLoopbackBindHost
12
12
  } from "./chunk-TSENU4GG.js";
13
13
  import {
14
14
  registeredProviderNames
15
- } from "./chunk-2YLTELT2.js";
15
+ } from "./chunk-SZ64N26K.js";
16
16
  import {
17
17
  isTelemetryEnabled,
18
18
  recordInstallRef
19
- } from "./chunk-IBRABPHA.js";
19
+ } from "./chunk-ZJFLVXDZ.js";
20
20
  import {
21
21
  createApiClient
22
- } from "./chunk-S7ZOYNW3.js";
22
+ } from "./chunk-2VNQKUCW.js";
23
23
  import {
24
24
  configExists,
25
25
  getAnswerServiceEnv,
@@ -30,7 +30,7 @@ import {
30
30
  loadConfigRaw,
31
31
  saveConfig,
32
32
  withBootstrapProviderDefaults
33
- } from "./chunk-4CF5536B.js";
33
+ } from "./chunk-HPFT4IKN.js";
34
34
  import "./chunk-AOJU5LKX.js";
35
35
  import {
36
36
  CliError,
@@ -38,17 +38,17 @@ import {
38
38
  isMachineFormat,
39
39
  systemError
40
40
  } from "./chunk-HGMYEDAQ.js";
41
- import "./chunk-EXPBZFN4.js";
41
+ import "./chunk-TCXITSDO.js";
42
42
  import {
43
43
  apiKeys,
44
44
  createClient,
45
45
  dashboardSessions,
46
46
  migrate
47
- } from "./chunk-7I2NJ4BH.js";
47
+ } from "./chunk-BYYP43Q3.js";
48
48
  import {
49
49
  ProviderNames,
50
50
  ProviderReloadErrorReasons
51
- } from "./chunk-NHBXQWE3.js";
51
+ } from "./chunk-WT22Z3I7.js";
52
52
  import "./chunk-MLKGABMK.js";
53
53
 
54
54
  // src/commands/bootstrap.ts
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-66EXWVMN.js";
3
+ } from "./chunk-FCUUJO3Z.js";
4
4
  import {
5
5
  outcomeFailure
6
- } from "./chunk-LGTSVS6Q.js";
7
- import "./chunk-IBRABPHA.js";
6
+ } from "./chunk-5FMZGO6R.js";
7
+ import "./chunk-ZJFLVXDZ.js";
8
8
  import {
9
9
  createApiClient
10
- } from "./chunk-S7ZOYNW3.js";
10
+ } from "./chunk-2VNQKUCW.js";
11
11
  import {
12
12
  loadConfig,
13
13
  saveConfigPatch
14
- } from "./chunk-4CF5536B.js";
14
+ } from "./chunk-HPFT4IKN.js";
15
15
  import "./chunk-AOJU5LKX.js";
16
16
  import {
17
17
  CliError,
18
18
  isMachineFormat
19
19
  } from "./chunk-HGMYEDAQ.js";
20
- import "./chunk-EXPBZFN4.js";
20
+ import "./chunk-TCXITSDO.js";
21
21
  import {
22
22
  describeError
23
- } from "./chunk-NHBXQWE3.js";
23
+ } from "./chunk-WT22Z3I7.js";
24
24
  import "./chunk-MLKGABMK.js";
25
25
 
26
26
  // src/commands/cdp.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CitationStates
3
- } from "./chunk-NHBXQWE3.js";
3
+ } from "./chunk-WT22Z3I7.js";
4
4
 
5
5
  // src/snapshot-cell.ts
6
6
  var SNAPSHOT_CELL_LEGEND = "(cell = [citation][mention]; C=cited c=not \xB7=not measured, M=mentioned m=not, \u2013=no data)";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pickProjectCitedDomain
3
- } from "./chunk-O5AIKUW3.js";
3
+ } from "./chunk-CJ55MGWI.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-3TPHFDZN.js";
6
+ } from "./chunk-WQQ4TNIY.js";
7
7
  import {
8
8
  GBP_INSIGHT_PROVIDER,
9
9
  PERSISTENT_GAP_THRESHOLD,
@@ -17,7 +17,7 @@ import {
17
17
  mergeGscQueryTotalsWithFallback,
18
18
  readGscQueryDailyRows,
19
19
  readLatestGscDataDate
20
- } from "./chunk-VH424YVI.js";
20
+ } from "./chunk-PL76V2DY.js";
21
21
  import {
22
22
  competitors,
23
23
  gbpDailyMetrics,
@@ -35,7 +35,7 @@ import {
35
35
  queries,
36
36
  querySnapshots,
37
37
  runs
38
- } from "./chunk-7I2NJ4BH.js";
38
+ } from "./chunk-BYYP43Q3.js";
39
39
  import {
40
40
  CitationStates,
41
41
  RunKinds,
@@ -44,7 +44,7 @@ import {
44
44
  effectiveDomains,
45
45
  isCitationStateMeasured,
46
46
  readCitationState
47
- } from "./chunk-NHBXQWE3.js";
47
+ } from "./chunk-WT22Z3I7.js";
48
48
 
49
49
  // src/intelligence-service.ts
50
50
  import { eq, desc, asc, and, ne, or, inArray, gte, lte, isNull, sql, exists } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-4CF5536B.js";
3
+ } from "./chunk-HPFT4IKN.js";
4
4
  import {
5
5
  PACKAGE_VERSION
6
6
  } from "./chunk-AOJU5LKX.js";
@@ -36,7 +36,7 @@ import {
36
36
  sentimentSettingsReadSchema,
37
37
  sentimentSummaryReadSchema,
38
38
  upgradeCommandFor
39
- } from "./chunk-NHBXQWE3.js";
39
+ } from "./chunk-WT22Z3I7.js";
40
40
 
41
41
  // ../api-client-generated/src/generated/core/bodySerializer.gen.ts
42
42
  var jsonBodySerializer = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cloudflareQueueNameSchema
3
- } from "./chunk-NHBXQWE3.js";
3
+ } from "./chunk-WT22Z3I7.js";
4
4
 
5
5
  // src/cloudflare-traffic-config.ts
6
6
  function unsupportedDeliveryMode(deliveryMode) {
@@ -28,7 +28,7 @@ import {
28
28
  unknownUsageObservation,
29
29
  usdToMicros,
30
30
  withRetry
31
- } from "./chunk-NHBXQWE3.js";
31
+ } from "./chunk-WT22Z3I7.js";
32
32
 
33
33
  // ../provider-answer-services/src/core/http.ts
34
34
  var MAX_RESPONSE_BYTES = 8 * 1024 * 1024;
@@ -2,13 +2,13 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-IBRABPHA.js";
5
+ } from "./chunk-ZJFLVXDZ.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-4CF5536B.js";
8
+ } from "./chunk-HPFT4IKN.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
- } from "./chunk-EXPBZFN4.js";
11
+ } from "./chunk-TCXITSDO.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-NHBXQWE3.js";
22
+ } from "./chunk-WT22Z3I7.js";
23
23
 
24
24
  // src/outcome-telemetry.ts
25
25
  import fs from "fs";
@@ -5,7 +5,7 @@ import {
5
5
  siteCrawlGraphNodes,
6
6
  siteCrawlPages,
7
7
  siteCrawlSnapshots
8
- } from "./chunk-7I2NJ4BH.js";
8
+ } from "./chunk-BYYP43Q3.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-NHBXQWE3.js";
18
+ } from "./chunk-WT22Z3I7.js";
19
19
 
20
20
  // src/site-audit-factors.ts
21
21
  function recordedSharePct(factor) {
@@ -5,7 +5,7 @@ import {
5
5
  AppError,
6
6
  parseWindowIn,
7
7
  resolveDateRange
8
- } from "./chunk-NHBXQWE3.js";
8
+ } from "./chunk-WT22Z3I7.js";
9
9
 
10
10
  // src/cli-access.ts
11
11
  var CLI_ACCESS_BY_ID = Object.freeze({
@@ -3,7 +3,7 @@ import {
3
3
  resolveCliAccess,
4
4
  resolveCliAccessForInvocation,
5
5
  windowOptions
6
- } from "./chunk-G4ODBZO7.js";
6
+ } from "./chunk-7UQZCDYK.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-NHBXQWE3.js";
17
+ } from "./chunk-WT22Z3I7.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-EMZPMAJP.js");
125
+ const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-6B2O2JQE.js");
126
126
  const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
127
127
  printCliCatalog2(specs, fallbackFormat, group2, accessValue);
128
128
  return true;
@@ -20,7 +20,7 @@ import {
20
20
  templateLinkRatio,
21
21
  templateLinkUbiquityAvailable,
22
22
  validationError
23
- } from "./chunk-NHBXQWE3.js";
23
+ } from "./chunk-WT22Z3I7.js";
24
24
  import {
25
25
  __export
26
26
  } from "./chunk-MLKGABMK.js";
@@ -2673,6 +2673,19 @@ var trafficSources = sqliteTable2("traffic_sources", {
2673
2673
  * back to where journeys began, or clears it when no older hour is left.
2674
2674
  */
2675
2675
  aiReferralOlderCountUntil: text2("ai_referral_older_count_until"),
2676
+ /**
2677
+ * The exclusive end of the last hour whose hosted browser agent (Google-Agent,
2678
+ * Claude-Agent) AI user fetches this source counted under older rules; hours
2679
+ * from it on count those agents' page loads only. Older hours were counted
2680
+ * differently and can read high (every file, data call and beacon counted)
2681
+ * or low (whole visits judged likely fake); they were not recounted
2682
+ * (hourly rows keep no method or query). NULL when the source holds no such
2683
+ * hour. Set by migration v222 and by the stored traffic pass; a replace-mode
2684
+ * backfill moves it back to the end of the last browser-agent hour before
2685
+ * its window, or clears it when none remains. Trend fits and comparisons
2686
+ * leave earlier hours out.
2687
+ */
2688
+ aiUserFetchOlderCountUntil: text2("ai_user_fetch_older_count_until"),
2676
2689
  archivedAt: text2("archived_at"),
2677
2690
  configJson: text2("config_json", { mode: "json" }).$type().notNull().default({}),
2678
2691
  // sha256 hex of the per-source bearer token issued at connect time. Only
@@ -9352,8 +9365,119 @@ var MIGRATION_VERSIONS = [
9352
9365
  `CREATE INDEX IF NOT EXISTS idx_chatgpt_login_transactions_expires
9353
9366
  ON chatgpt_login_transactions(expires_at)`
9354
9367
  ]
9368
+ },
9369
+ {
9370
+ version: 221,
9371
+ name: "claude-searchbot-own-bot",
9372
+ // Claude-SearchBot, Anthropic's search crawler, now has its own classifier
9373
+ // rule (`claude-searchbot`, purpose search). The `anthropic-claudebot` rule
9374
+ // (purpose training) used to match it too, so its hits were stored as
9375
+ // ClaudeBot. This moves the crawler rows whose sampled user agent is
9376
+ // Claude-SearchBot to the new bot, with their manifest provenance, and
9377
+ // relabels the crawler samples the old rule classified.
9378
+ //
9379
+ // Best effort, as v65's Mistral split: an hourly row is one (project,
9380
+ // source, hour, bot, verification, path, status) and keeps one sampled
9381
+ // user agent, the latest batch's, so a row that counted both bots in the
9382
+ // same hour moves or stays whole by that sample. New traffic splits
9383
+ // exactly. Both rules verify against Anthropic's one crawler manifest, so
9384
+ // a moved row keeps its verification status and provenance.
9385
+ //
9386
+ // A run hook because the statement allowlist is schema-shaped, and because
9387
+ // a legacy database that resumes past the migrations creating these tables
9388
+ // must skip the move rather than fail on a missing table.
9389
+ statements: [],
9390
+ run: (tx) => {
9391
+ moveClaudeSearchBotRows(tx);
9392
+ }
9393
+ },
9394
+ {
9395
+ version: 222,
9396
+ name: "ai-user-fetch-older-count-until",
9397
+ // Hosted browser agents (Google-Agent, Claude-Agent) now count only their
9398
+ // page loads as AI user fetches. Hours a source wrote before were counted
9399
+ // under older rules: every file, data call and beacon their pages made
9400
+ // counted (high), or the older trust rules judged whole visits likely fake
9401
+ // (low). They were not recounted (hourly rows keep no method or query).
9402
+ // Stamp where the older count ended on sources holding such hours: the end
9403
+ // of the last one, or the upgrade time if that is earlier. A fresh install
9404
+ // holds none and stamps nothing.
9405
+ //
9406
+ // A run hook because the statement allowlist is schema-shaped, and because
9407
+ // a legacy database that resumes past the migrations creating the hourly
9408
+ // tables must skip the stamp rather than fail on a missing table.
9409
+ statements: [
9410
+ `ALTER TABLE traffic_sources ADD COLUMN ai_user_fetch_older_count_until TEXT`
9411
+ ],
9412
+ run: (tx) => {
9413
+ stampBrowserAgentOlderCount(tx, (/* @__PURE__ */ new Date()).toISOString());
9414
+ }
9355
9415
  }
9356
9416
  ];
9417
+ var V222_BROWSER_AGENT_HOURLY_TABLES = ["ai_user_fetch_events_hourly", "ai_user_fetch_likely_fake_hourly"];
9418
+ function stampBrowserAgentOlderCount(tx, upgradedAt) {
9419
+ const lastHours = V222_BROWSER_AGENT_HOURLY_TABLES.filter((table) => tableExists(tx, table)).map((table) => `SELECT source_id, MAX(ts_hour) AS ts_hour FROM ${table}
9420
+ WHERE bot_id IN ('google-agent', 'claude-agent') GROUP BY source_id`);
9421
+ if (lastHours.length === 0) return;
9422
+ tx.run(sql2`UPDATE traffic_sources
9423
+ SET ai_user_fetch_older_count_until = min(${upgradedAt}, last_hour.hour_end)
9424
+ FROM (
9425
+ SELECT source_id, strftime('%Y-%m-%dT%H:%M:%fZ', MAX(ts_hour), '+1 hour') AS hour_end
9426
+ FROM (${sql2.raw(lastHours.join(" UNION ALL "))})
9427
+ GROUP BY source_id
9428
+ ) AS last_hour
9429
+ WHERE traffic_sources.id = last_hour.source_id
9430
+ AND traffic_sources.ai_user_fetch_older_count_until IS NULL`);
9431
+ }
9432
+ function moveClaudeSearchBotRows(tx) {
9433
+ if (tableExists(tx, "crawler_events_hourly")) {
9434
+ tx.run(sql2.raw("DROP TABLE IF EXISTS temp.v221_moved"));
9435
+ tx.run(sql2.raw(
9436
+ `CREATE TEMP TABLE v221_moved AS
9437
+ SELECT rowid AS rid, project_id, source_id, ts_hour, verification_status, path_normalized, status
9438
+ FROM crawler_events_hourly
9439
+ WHERE bot_id = 'anthropic-claudebot' AND sampled_user_agent LIKE '%Claude-SearchBot/%'`
9440
+ ));
9441
+ tx.run(sql2.raw(
9442
+ `INSERT INTO crawler_events_hourly (project_id, source_id, ts_hour, bot_id, operator, verification_status, path_normalized, status, hits, sampled_user_agent, created_at, updated_at)
9443
+ SELECT c.project_id, c.source_id, c.ts_hour, 'claude-searchbot', c.operator, c.verification_status, c.path_normalized, c.status, c.hits, c.sampled_user_agent, c.created_at, c.updated_at
9444
+ FROM v221_moved t JOIN crawler_events_hourly c ON c.rowid = t.rid
9445
+ WHERE true
9446
+ ON CONFLICT (project_id, source_id, ts_hour, bot_id, verification_status, path_normalized, status)
9447
+ DO UPDATE SET hits = crawler_events_hourly.hits + excluded.hits,
9448
+ updated_at = max(crawler_events_hourly.updated_at, excluded.updated_at)`
9449
+ ));
9450
+ if (tableExists(tx, "crawler_verification_manifests_hourly")) {
9451
+ tx.run(sql2.raw(
9452
+ `INSERT INTO crawler_verification_manifests_hourly (project_id, source_id, ts_hour, bot_id, verification_status, path_normalized, status, manifest_id, manifest_json, hits, created_at, updated_at)
9453
+ SELECT m.project_id, m.source_id, m.ts_hour, 'claude-searchbot', m.verification_status, m.path_normalized, m.status, m.manifest_id, m.manifest_json, m.hits, m.created_at, m.updated_at
9454
+ FROM v221_moved t JOIN crawler_verification_manifests_hourly m
9455
+ ON m.project_id = t.project_id AND m.source_id = t.source_id AND m.ts_hour = t.ts_hour
9456
+ AND m.bot_id = 'anthropic-claudebot' AND m.verification_status = t.verification_status
9457
+ AND m.path_normalized = t.path_normalized AND m.status = t.status
9458
+ WHERE true
9459
+ ON CONFLICT (project_id, source_id, ts_hour, bot_id, verification_status, path_normalized, status, manifest_id)
9460
+ DO UPDATE SET hits = crawler_verification_manifests_hourly.hits + excluded.hits,
9461
+ updated_at = max(crawler_verification_manifests_hourly.updated_at, excluded.updated_at)`
9462
+ ));
9463
+ }
9464
+ tx.run(sql2.raw("DELETE FROM crawler_events_hourly WHERE rowid IN (SELECT rid FROM v221_moved)"));
9465
+ tx.run(sql2.raw("DROP TABLE v221_moved"));
9466
+ }
9467
+ if (tableExists(tx, "raw_event_samples")) {
9468
+ tx.run(sql2.raw(
9469
+ `UPDATE raw_event_samples
9470
+ SET classifier_details_json = json_set(classifier_details_json,
9471
+ '$.crawler.botId', 'claude-searchbot',
9472
+ '$.crawler.product', 'Claude-SearchBot',
9473
+ '$.crawler.purpose', 'search')
9474
+ WHERE event_type = 'crawler'
9475
+ AND user_agent LIKE '%Claude-SearchBot/%'
9476
+ AND CASE WHEN json_valid(classifier_details_json)
9477
+ THEN json_extract(classifier_details_json, '$.crawler.botId') END = 'anthropic-claudebot'`
9478
+ ));
9479
+ }
9480
+ }
9357
9481
  var AERO_LEDGER_REBUILDS = [
9358
9482
  {
9359
9483
  table: "llm_usage_events",
@@ -9689,6 +9813,7 @@ function migrate(db, versions = MIGRATION_VERSIONS) {
9689
9813
  db.run(sql2.raw(statement));
9690
9814
  }
9691
9815
  const appliedVersion = getAppliedVersion(db);
9816
+ let appliedAny = false;
9692
9817
  for (const mv of versions) {
9693
9818
  if (mv.version <= appliedVersion) continue;
9694
9819
  if (mv.disableForeignKeys) db.run(sql2.raw("PRAGMA foreign_keys = OFF"));
@@ -9705,10 +9830,12 @@ function migrate(db, versions = MIGRATION_VERSIONS) {
9705
9830
  mv.run?.(tx);
9706
9831
  recordMigration(tx, mv.version, mv.name);
9707
9832
  });
9833
+ appliedAny = true;
9708
9834
  } finally {
9709
9835
  if (mv.disableForeignKeys) db.run(sql2.raw("PRAGMA foreign_keys = ON"));
9710
9836
  }
9711
9837
  }
9838
+ if (appliedAny) db.all(sql2.raw("PRAGMA wal_checkpoint(TRUNCATE)"));
9712
9839
  }
9713
9840
 
9714
9841
  // ../db/src/operational-logs.ts
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  registeredProviderNames
3
- } from "./chunk-2YLTELT2.js";
3
+ } from "./chunk-SZ64N26K.js";
4
4
  import {
5
5
  configExists,
6
6
  loadConfigRaw
7
- } from "./chunk-4CF5536B.js";
7
+ } from "./chunk-HPFT4IKN.js";
8
8
 
9
9
  // src/setup-state.ts
10
10
  import fs from "fs";
@@ -28,7 +28,7 @@ async function buildSetupState() {
28
28
  }
29
29
  if (dbPath && fs.existsSync(dbPath)) {
30
30
  try {
31
- const { createClient, projects, queries: queriesTable } = await import("./src-XW5T4IQS.js");
31
+ const { createClient, projects, queries: queriesTable } = await import("./src-BXXLPHVZ.js");
32
32
  const db = createClient(dbPath);
33
33
  project_count = db.select({ id: projects.id }).from(projects).all().length;
34
34
  const firstQuery = db.select({ id: queriesTable.id }).from(queriesTable).limit(1).all();
@@ -47,7 +47,7 @@ function queueServeHandoff() {
47
47
  async function runPendingServeHandoff(format) {
48
48
  if (!pendingServeHandoff) return;
49
49
  pendingServeHandoff = false;
50
- const { serveCommand } = await import("./serve-PWIVPUX7.js");
50
+ const { serveCommand } = await import("./serve-WDUJ36KJ.js");
51
51
  await serveCommand(format);
52
52
  }
53
53
 
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-VJWDBFSL.js";
5
5
  import {
6
6
  createApiClient
7
- } from "./chunk-S7ZOYNW3.js";
7
+ } from "./chunk-2VNQKUCW.js";
8
8
  import {
9
9
  CliError,
10
10
  isMachineFormat
11
11
  } from "./chunk-HGMYEDAQ.js";
12
12
  import {
13
13
  describeError
14
- } from "./chunk-NHBXQWE3.js";
14
+ } from "./chunk-WT22Z3I7.js";
15
15
 
16
16
  // src/commands/mcp.ts
17
17
  import fs from "fs";
@@ -2,7 +2,7 @@ import {
2
2
  CitationStates,
3
3
  hostMatchesDomain,
4
4
  isCitationMeasurable
5
- } from "./chunk-NHBXQWE3.js";
5
+ } from "./chunk-WT22Z3I7.js";
6
6
 
7
7
  // src/citation-utils.ts
8
8
  function pickProjectCitedDomain(citedDomains, projectDomains) {
@@ -23,7 +23,7 @@ import {
23
23
  measurementDraftUpsertGroupRequestSchema,
24
24
  measurementDraftUpsertMarketRequestSchema,
25
25
  measurementDraftUpsertTargetRequestSchema
26
- } from "./chunk-NHBXQWE3.js";
26
+ } from "./chunk-WT22Z3I7.js";
27
27
 
28
28
  // src/measurement-draft-actions.ts
29
29
  import { z } from "zod";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-HGMYEDAQ.js";
5
5
  import {
6
6
  describeError
7
- } from "./chunk-NHBXQWE3.js";
7
+ } from "./chunk-WT22Z3I7.js";
8
8
 
9
9
  // src/gsc-sitemap-submission.ts
10
10
  function dedupeGscSitemapUrls(urls) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  trackIntegrationConnection
3
- } from "./chunk-LGTSVS6Q.js";
3
+ } from "./chunk-5FMZGO6R.js";
4
4
  import {
5
5
  cliRuntimeContext
6
- } from "./chunk-IBRABPHA.js";
6
+ } from "./chunk-ZJFLVXDZ.js";
7
7
 
8
8
  // src/cli-connection-telemetry.ts
9
9
  function trackCliConnection(properties) {