@canonry/canonry 7.114.0 → 7.116.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 (137) hide show
  1. package/assets/assets/{AccessControls-CZ9e8JQj.js → AccessControls-BTEv8WEG.js} +1 -1
  2. package/assets/assets/{AgentSetupPage-GAYSye6c.js → AgentSetupPage-CgZuonLM.js} +1 -1
  3. package/assets/assets/{AuditHistoryPanel-B8Nvxw1T.js → AuditHistoryPanel-BzSIEL75.js} +1 -1
  4. package/assets/assets/{BacklinksPage-DYDrtPvl.js → BacklinksPage-ChKIJpMB.js} +1 -1
  5. package/assets/assets/{ChartPrimitives-D5jY1n81.js → ChartPrimitives-IodrWRFV.js} +1 -1
  6. package/assets/assets/{HistoryPage-oWlfgq2q.js → HistoryPage-C3iaKueQ.js} +1 -1
  7. package/assets/assets/{MeasurementPropertyPage-8_IMBhbd.js → MeasurementPropertyPage-Dd7B-Ixb.js} +1 -1
  8. package/assets/assets/{ProjectPage-mopnzPrl.js → ProjectPage-Ce4gBiK_.js} +3 -3
  9. package/assets/assets/{RunsPage-BQVy2FfY.js → RunsPage-DRGUFx7X.js} +1 -1
  10. package/assets/assets/{ServerTrafficSection-rxO0hr0U.js → ServerTrafficSection-CrPHSAa5.js} +1 -1
  11. package/assets/assets/{SettingsPage-DNd1rljp.js → SettingsPage-D6iGHRSV.js} +1 -1
  12. package/assets/assets/ToneBadge-D3F2fbxC.js +60 -0
  13. package/assets/assets/{TrafficPage-DS7e2HJF.js → TrafficPage-DtUjNJ9U.js} +1 -1
  14. package/assets/assets/{TrafficSourceDetailPage-GM_NYof2.js → TrafficSourceDetailPage-o-I_uVwZ.js} +1 -1
  15. package/assets/assets/{account-context-DPSUr6ab.js → account-context-CBRGXimz.js} +1 -1
  16. package/assets/assets/{agent-trust-copy-CzC0CyvN.js → agent-trust-copy-Bfe0oX0J.js} +1 -1
  17. package/assets/assets/{card-BuGARNWu.js → card-Biwv3_aH.js} +1 -1
  18. package/assets/assets/{index-7gTTbr2Y.js → index-CWI3NboX.js} +5 -5
  19. package/assets/assets/{query-client-20-WKWRF.js → query-client-CsLay1me.js} +1 -1
  20. package/assets/assets/{react-query-BcbS-PEL.js → react-query-DNgX0alO.js} +1 -1
  21. package/assets/assets/{react-sigma_core.esm.min-BPHKUIql.js → react-sigma_core.esm.min-BN4etdK8.js} +1 -1
  22. package/assets/assets/{server-traffic-k9hvgv11.js → server-traffic-CvK4BAVZ.js} +1 -1
  23. package/assets/assets/{service-CNCw9nYd.js → service-DxCuciCi.js} +1 -1
  24. package/assets/index.html +8 -8
  25. package/dist/{ads-MBUYUCIO.js → ads-JE6P76GB.js} +3 -3
  26. package/dist/{agent-H4TXDFUY.js → agent-BFX6GSRF.js} +7 -7
  27. package/dist/{agent-ask-VYCPGN7W.js → agent-ask-SKR5ZR3S.js} +3 -3
  28. package/dist/{agent-conversations-HOAJSJ2V.js → agent-conversations-AI6UIDDB.js} +3 -3
  29. package/dist/{agent-journeys-GCN2DMNW.js → agent-journeys-PBVXSG4K.js} +3 -3
  30. package/dist/{agent-memory-5ZY5GMXL.js → agent-memory-MUPLQMXZ.js} +3 -3
  31. package/dist/{agent-providers-3BFMXJZZ.js → agent-providers-56SGYO6F.js} +3 -3
  32. package/dist/{agent-transcript-BMGQADZ2.js → agent-transcript-W2TCKZHU.js} +3 -3
  33. package/dist/{analytics-4OBHR4V2.js → analytics-E5DJUXYW.js} +3 -3
  34. package/dist/{apply-JQHWDI43.js → apply-4BBHEPRB.js} +3 -3
  35. package/dist/{backfill-XU4QLLNT.js → backfill-WNCUA5QU.js} +10 -10
  36. package/dist/{backlinks-LFDFDL4X.js → backlinks-F7KVYHNP.js} +3 -3
  37. package/dist/{bing-HSZ2HYX4.js → bing-BKM3V5KY.js} +3 -3
  38. package/dist/{bootstrap-5M3WJOHV.js → bootstrap-CJ4T6WIR.js} +10 -10
  39. package/dist/{cdp-3L2UFZ6G.js → cdp-4DP7RUMV.js} +7 -7
  40. package/dist/{chunk-RFJM6G7L.js → chunk-3BMWBXHZ.js} +1 -1
  41. package/dist/{chunk-WW7XJXSQ.js → chunk-3MUJYDIH.js} +4 -4
  42. package/dist/{chunk-K3H67IQZ.js → chunk-3NUSGD54.js} +1 -1
  43. package/dist/{chunk-PPM2ZLVN.js → chunk-64EMWVEP.js} +3 -3
  44. package/dist/{chunk-BRAUKTBG.js → chunk-A2SB6EMM.js} +1 -1
  45. package/dist/{chunk-UK2WX3PM.js → chunk-BBMZ6534.js} +103 -1
  46. package/dist/{chunk-M5C7R7OF.js → chunk-BBVTNECC.js} +5 -5
  47. package/dist/{chunk-4UZR7UUC.js → chunk-BGIH54A3.js} +1 -1
  48. package/dist/{chunk-WMMIMZHL.js → chunk-D7XW5LNC.js} +4 -4
  49. package/dist/{chunk-ODFPL6P5.js → chunk-F44DLEKZ.js} +1 -1
  50. package/dist/{chunk-ZWWEWFCM.js → chunk-G5O4D7I6.js} +1 -1
  51. package/dist/{chunk-AP7ZGBXF.js → chunk-GNXQMAHP.js} +2 -2
  52. package/dist/{chunk-WBGBCRVH.js → chunk-GXMQORTQ.js} +2 -2
  53. package/dist/{chunk-EUQ6F4FY.js → chunk-IIIBDDAR.js} +4 -4
  54. package/dist/{chunk-MHNMMFON.js → chunk-IOMPGPSF.js} +1 -1
  55. package/dist/{chunk-HDCBIMFZ.js → chunk-JU3KGXW6.js} +5 -5
  56. package/dist/{chunk-X5ITRJ5N.js → chunk-KWAAPYTA.js} +21 -21
  57. package/dist/{chunk-CD5JEVPS.js → chunk-L6TNLBXW.js} +2 -2
  58. package/dist/{chunk-HK72OBW5.js → chunk-LA42RIFU.js} +2 -2
  59. package/dist/{chunk-B4CKWKSX.js → chunk-LABWX26D.js} +240 -168
  60. package/dist/{chunk-HNHJ7HQK.js → chunk-LK6KW5JN.js} +1 -1
  61. package/dist/{chunk-SGQGEKBN.js → chunk-LLKXFSCH.js} +7 -7
  62. package/dist/{chunk-VTT4VYJC.js → chunk-LSYMN3XT.js} +2 -2
  63. package/dist/{chunk-CHDPNIRF.js → chunk-OSATM2GX.js} +3 -3
  64. package/dist/{chunk-MSBSKTO2.js → chunk-P5EFITKV.js} +3 -3
  65. package/dist/{chunk-QDBKBXC7.js → chunk-PSP56PWY.js} +1 -1
  66. package/dist/{chunk-FXMIX2BP.js → chunk-QFIUKE5K.js} +3 -3
  67. package/dist/{chunk-Y2ZQFWH2.js → chunk-QMNM2YWF.js} +367 -367
  68. package/dist/{chunk-KOMFBAUK.js → chunk-QNWN7VRZ.js} +1 -1
  69. package/dist/{chunk-3T6YDOJX.js → chunk-RRBIKOMI.js} +1 -1
  70. package/dist/{chunk-TJGGK6IQ.js → chunk-T2AF4QN7.js} +4 -4
  71. package/dist/{chunk-GLAOBAJP.js → chunk-TKD5RVLL.js} +2 -2
  72. package/dist/{chunk-TCCGE2WF.js → chunk-WAFH2X45.js} +6 -6
  73. package/dist/{chunk-D7KVKYYT.js → chunk-X3ZK4A2L.js} +1 -1
  74. package/dist/{chunk-4IB3LHZV.js → chunk-YNWBNADZ.js} +3 -3
  75. package/dist/{chunk-RSTJWK3S.js → chunk-ZPHDPDLL.js} +3 -3
  76. package/dist/{citations-KLOXXIX5.js → citations-4FVSVZT2.js} +4 -4
  77. package/dist/{cli-catalog-SPUYWLST.js → cli-catalog-SAUMPDAU.js} +3 -3
  78. package/dist/{cli-commands-4WVVOSGO.js → cli-commands-3P4EFKQC.js} +7 -7
  79. package/dist/cli.js +13 -13
  80. package/dist/{competitor-TVOPWBTO.js → competitor-MJZ2BYYY.js} +3 -3
  81. package/dist/{content-FOHOEMPN.js → content-GRWRFY7N.js} +3 -3
  82. package/dist/{dashboard-Y2MWS75I.js → dashboard-SWAO3TZZ.js} +6 -6
  83. package/dist/{demo-KKYQOGOL.js → demo-QIIAAUSK.js} +1 -1
  84. package/dist/{demo-server-7W7G3WBF.js → demo-server-UUENUNWU.js} +12 -12
  85. package/dist/{discover-NEFL3GNJ.js → discover-KFWFOOT5.js} +4 -4
  86. package/dist/{discover-eval-5UTXVZN2.js → discover-eval-DOUPPY2M.js} +3 -3
  87. package/dist/{doctor-IPEY4PEU.js → doctor-ZGZ2VEAR.js} +3 -3
  88. package/dist/{evidence-2I55I5RU.js → evidence-27V4BDDW.js} +3 -3
  89. package/dist/{export-cmd-CMCUOJY4.js → export-cmd-HCS5ILVI.js} +3 -3
  90. package/dist/{ga-HBFR7YAV.js → ga-MP2CGERV.js} +3 -3
  91. package/dist/{gbp-6KGE44C3.js → gbp-OLZAMOYH.js} +3 -3
  92. package/dist/{google-PFQMLRET.js → google-QB5MVADA.js} +4 -4
  93. package/dist/{google-marketing-DKZPDKSJ.js → google-marketing-LWQPSXDT.js} +1 -1
  94. package/dist/{health-cmd-YQ2CYZJF.js → health-cmd-YITDAMGQ.js} +4 -4
  95. package/dist/{history-GC6KSYLZ.js → history-UUSJUU64.js} +3 -3
  96. package/dist/index.d.ts +638 -12
  97. package/dist/index.js +25 -25
  98. package/dist/{init-YOI6WNXX.js → init-2K3C2O27.js} +12 -12
  99. package/dist/{insights-M5H3P2VD.js → insights-Y2CVUEG7.js} +3 -3
  100. package/dist/intelligence-service-R7ZGIFFP.js +16 -0
  101. package/dist/{journeys-EXIVMEY7.js → journeys-DJ7VEJHO.js} +3 -3
  102. package/dist/{keys-VFAC5KWZ.js → keys-DLI7ZAYO.js} +3 -3
  103. package/dist/{keyword-I5TY67XC.js → keyword-VXU2JWZW.js} +3 -3
  104. package/dist/{logs-3LEGAI5D.js → logs-WINF42ZW.js} +3 -3
  105. package/dist/{mcp-6TETRXJ2.js → mcp-OBWG4O3Z.js} +4 -4
  106. package/dist/mcp.js +9 -9
  107. package/dist/{measurement-plan-76O3EEXW.js → measurement-plan-MFZD2EVF.js} +5 -5
  108. package/dist/{notify-KIUJJX7L.js → notify-UXPTKXDA.js} +3 -3
  109. package/dist/{organic-evidence-R7TA4MZM.js → organic-evidence-7L6ZTSAH.js} +3 -3
  110. package/dist/{overview-PMD3GYMJ.js → overview-M3OFICCH.js} +5 -5
  111. package/dist/{project-R7AAYKYH.js → project-54O4VABG.js} +3 -3
  112. package/dist/{project-setup-VDEHXJ6V.js → project-setup-KQBXILOX.js} +3 -3
  113. package/dist/{query-QPPVYE6C.js → query-QAX5GMLH.js} +3 -3
  114. package/dist/{research-UZCT66YL.js → research-5FO3VMLG.js} +3 -3
  115. package/dist/{results-export-YITLJ6QN.js → results-export-75SDUK5R.js} +3 -3
  116. package/dist/{run-6WWMQSYW.js → run-ZYFBIQJ4.js} +5 -5
  117. package/dist/{schedule-ZZ4N4NWR.js → schedule-5MXMD6MZ.js} +3 -3
  118. package/dist/{search-PFNLSSB2.js → search-AVVB33MS.js} +3 -3
  119. package/dist/{serve-7OKBRXOG.js → serve-233RXB4F.js} +26 -26
  120. package/dist/{session-UOJNPN2F.js → session-QLNH3YT4.js} +13 -13
  121. package/dist/{settings-J5DVHHRL.js → settings-LJ4W7KYC.js} +3 -3
  122. package/dist/{sitemaps-E4EEEB2G.js → sitemaps-E26UGDHB.js} +3 -3
  123. package/dist/{skills-XOEQIEV6.js → skills-KDKO76BH.js} +2 -2
  124. package/dist/{snapshot-MHNO5GFX.js → snapshot-H6ESNKUI.js} +3 -3
  125. package/dist/{src-TWXSURXK.js → src-SS2AAYBS.js} +6 -2
  126. package/dist/{status-CASSB3RI.js → status-RTXJFACN.js} +5 -5
  127. package/dist/{technical-aeo-WNNXAOVE.js → technical-aeo-KMN7F4ZM.js} +3 -3
  128. package/dist/{telemetry-5PJFKHDT.js → telemetry-GKKKHJSB.js} +4 -4
  129. package/dist/{tools-OACYTLJ5.js → tools-HDZAXBXJ.js} +11 -11
  130. package/dist/{traffic-Q5QRTBKR.js → traffic-H57O776E.js} +5 -5
  131. package/dist/{trends-4X5EDJAA.js → trends-JD5DR6AW.js} +3 -3
  132. package/dist/{users-5FZLNPXR.js → users-TEDPJX74.js} +3 -3
  133. package/dist/{visibility-stats-AKIM3332.js → visibility-stats-UQLDR4QJ.js} +4 -4
  134. package/dist/{wordpress-CO6XLP53.js → wordpress-NQGK7CYA.js} +3 -3
  135. package/package.json +1 -1
  136. package/assets/assets/ToneBadge-ClBoU45-.js +0 -60
  137. package/dist/intelligence-service-ODVPS6D6.js +0 -16
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-CD5JEVPS.js";
3
+ } from "./chunk-L6TNLBXW.js";
4
4
  import {
5
5
  answerServiceDescriptors
6
- } from "./chunk-D7KVKYYT.js";
6
+ } from "./chunk-X3ZK4A2L.js";
7
7
  import {
8
8
  outcomeFailure
9
- } from "./chunk-TJGGK6IQ.js";
9
+ } from "./chunk-T2AF4QN7.js";
10
10
  import {
11
11
  isLoopbackBindHost
12
12
  } from "./chunk-TSENU4GG.js";
13
13
  import {
14
14
  registeredProviderNames
15
- } from "./chunk-ZWWEWFCM.js";
15
+ } from "./chunk-G5O4D7I6.js";
16
16
  import {
17
17
  isTelemetryEnabled,
18
18
  recordInstallRef
19
- } from "./chunk-HK72OBW5.js";
19
+ } from "./chunk-LA42RIFU.js";
20
20
  import {
21
21
  createApiClient
22
- } from "./chunk-WBGBCRVH.js";
22
+ } from "./chunk-GXMQORTQ.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-RFJM6G7L.js";
33
+ } from "./chunk-3BMWBXHZ.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-4UZR7UUC.js";
41
+ import "./chunk-BGIH54A3.js";
42
42
  import {
43
43
  apiKeys,
44
44
  createClient,
45
45
  dashboardSessions,
46
46
  migrate
47
- } from "./chunk-UK2WX3PM.js";
47
+ } from "./chunk-BBMZ6534.js";
48
48
  import {
49
49
  ProviderNames,
50
50
  ProviderReloadErrorReasons
51
- } from "./chunk-B4CKWKSX.js";
51
+ } from "./chunk-LABWX26D.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-CD5JEVPS.js";
3
+ } from "./chunk-L6TNLBXW.js";
4
4
  import {
5
5
  outcomeFailure
6
- } from "./chunk-TJGGK6IQ.js";
7
- import "./chunk-HK72OBW5.js";
6
+ } from "./chunk-T2AF4QN7.js";
7
+ import "./chunk-LA42RIFU.js";
8
8
  import {
9
9
  createApiClient
10
- } from "./chunk-WBGBCRVH.js";
10
+ } from "./chunk-GXMQORTQ.js";
11
11
  import {
12
12
  loadConfig,
13
13
  saveConfigPatch
14
- } from "./chunk-RFJM6G7L.js";
14
+ } from "./chunk-3BMWBXHZ.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-4UZR7UUC.js";
20
+ import "./chunk-BGIH54A3.js";
21
21
  import {
22
22
  describeError
23
- } from "./chunk-B4CKWKSX.js";
23
+ } from "./chunk-LABWX26D.js";
24
24
  import "./chunk-MLKGABMK.js";
25
25
 
26
26
  // src/commands/cdp.ts
@@ -22,7 +22,7 @@ import {
22
22
  resolveProviderModel,
23
23
  schedulableRunKindSchema,
24
24
  sentimentEvaluatorProviderSchema
25
- } from "./chunk-B4CKWKSX.js";
25
+ } from "./chunk-LABWX26D.js";
26
26
 
27
27
  // ../config/src/index.ts
28
28
  import { z as z5 } from "zod";
@@ -19,14 +19,14 @@ import {
19
19
  normalizeTrafficPathPattern,
20
20
  sessionizeJourneyRequests,
21
21
  verifyRequestSignature
22
- } from "./chunk-K3H67IQZ.js";
22
+ } from "./chunk-3NUSGD54.js";
23
23
  import {
24
24
  currentOutcomeAttribution,
25
25
  getRequestContext,
26
26
  registerRequestContext,
27
27
  requestAuditIdentity,
28
28
  sanitizeRequestContext
29
- } from "./chunk-4UZR7UUC.js";
29
+ } from "./chunk-BGIH54A3.js";
30
30
  import {
31
31
  RawEventSampleEventTypes,
32
32
  SentimentIdempotencyConflict,
@@ -190,7 +190,7 @@ import {
190
190
  userSessions,
191
191
  users,
192
192
  writeNegativeReviewMaxStars
193
- } from "./chunk-UK2WX3PM.js";
193
+ } from "./chunk-BBMZ6534.js";
194
194
  import {
195
195
  ADS_ACTIVATE_SCOPE,
196
196
  ADS_ACTIVATION_ABSOLUTE_MAX_ENTITIES,
@@ -1383,7 +1383,7 @@ import {
1383
1383
  wordpressSchemaDeployResultDtoSchema,
1384
1384
  wordpressSchemaStatusResultDtoSchema,
1385
1385
  wordpressStatusDtoSchema
1386
- } from "./chunk-B4CKWKSX.js";
1386
+ } from "./chunk-LABWX26D.js";
1387
1387
 
1388
1388
  // ../api-routes/src/user-session.ts
1389
1389
  import crypto2 from "crypto";
@@ -17,7 +17,7 @@ import {
17
17
  hostOf,
18
18
  isLocationRedirectStatus,
19
19
  pathWithoutQuery
20
- } from "./chunk-B4CKWKSX.js";
20
+ } from "./chunk-LABWX26D.js";
21
21
 
22
22
  // ../integration-traffic/src/agent-trust.ts
23
23
  var AGENT_TRUST_RULES_VERSION = 3;
@@ -3,7 +3,7 @@ import {
3
3
  resolveCliAccess,
4
4
  resolveCliAccessForInvocation,
5
5
  windowOptions
6
- } from "./chunk-KOMFBAUK.js";
6
+ } from "./chunk-QNWN7VRZ.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-B4CKWKSX.js";
17
+ } from "./chunk-LABWX26D.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-SPUYWLST.js");
125
+ const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-SAUMPDAU.js");
126
126
  const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
127
127
  printCliCatalog2(specs, fallbackFormat, group2, accessValue);
128
128
  return true;
@@ -15,7 +15,7 @@ import {
15
15
  formatCanonryPluginUpdateHint,
16
16
  formatCanonryPluginVersionMismatch,
17
17
  skillsClientSchema
18
- } from "./chunk-B4CKWKSX.js";
18
+ } from "./chunk-LABWX26D.js";
19
19
 
20
20
  // src/commands/skills.ts
21
21
  import crypto from "crypto";
@@ -20,7 +20,7 @@ import {
20
20
  templateLinkRatio,
21
21
  templateLinkUbiquityAvailable,
22
22
  validationError
23
- } from "./chunk-B4CKWKSX.js";
23
+ } from "./chunk-LABWX26D.js";
24
24
  import {
25
25
  __export
26
26
  } from "./chunk-MLKGABMK.js";
@@ -194,6 +194,8 @@ __export(schema_exports, {
194
194
  siteHealthNotifyState: () => siteHealthNotifyState,
195
195
  siteLivenessState: () => siteLivenessState,
196
196
  sitemapListSyncs: () => sitemapListSyncs,
197
+ socialConnections: () => socialConnections,
198
+ socialMentions: () => socialMentions,
197
199
  trafficEventReceipts: () => trafficEventReceipts,
198
200
  trafficReclassificationState: () => trafficReclassificationState,
199
201
  trafficSources: () => trafficSources,
@@ -330,6 +332,8 @@ var projects = sqliteTable2("projects", {
330
332
  configSource: text2("config_source").$type().notNull().default("cli"),
331
333
  configRevision: integer2("config_revision").notNull().default(1),
332
334
  icpDescription: text2("icp_description"),
335
+ /** The social platforms this project monitors (`SocialMonitorPlatform` values, each at most once); default `[]`, none. */
336
+ socialPlatforms: text2("social_platforms", { mode: "json" }).$type().notNull().default([]),
333
337
  createdAt: text2("created_at").notNull(),
334
338
  updatedAt: text2("updated_at").notNull()
335
339
  });
@@ -3962,6 +3966,53 @@ var sentimentAttempts = sqliteTable2("sentiment_attempts", {
3962
3966
  index2("idx_sentiment_attempt_dispatch").on(table.dispatchedAt),
3963
3967
  foreignKey({ columns: [table.projectId, table.workItemId], foreignColumns: [sentimentWorkItems.projectId, sentimentWorkItems.id] }).onDelete("cascade")
3964
3968
  ]);
3969
+ var socialMentions = sqliteTable2("social_mentions", {
3970
+ id: text2("id").primaryKey(),
3971
+ projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
3972
+ runId: text2("run_id").notNull(),
3973
+ platform: text2("platform").$type().notNull(),
3974
+ /** The platform's own post id. */
3975
+ externalId: text2("external_id").notNull(),
3976
+ externalUrl: text2("external_url").notNull(),
3977
+ /** The search term that found the post; null for a post found by a domain-only search, never an invented query. */
3978
+ matchedQuery: text2("matched_query"),
3979
+ authorHandle: text2("author_handle"),
3980
+ authorName: text2("author_name"),
3981
+ authorFollowers: integer2("author_followers"),
3982
+ /** The post title where the platform has one (a Reddit submission). */
3983
+ contentTitle: text2("content_title"),
3984
+ /** The post body; empty for a post with only a title. */
3985
+ contentText: text2("content_text").notNull(),
3986
+ /** The project URLs the post links to, as full URLs; `[]` when it links to none. */
3987
+ linkedUrls: text2("linked_urls", { mode: "json" }).$type().notNull().default([]),
3988
+ sentiment: text2("sentiment"),
3989
+ likes: integer2("likes"),
3990
+ shares: integer2("shares"),
3991
+ comments: integer2("comments"),
3992
+ /** The community the post was made in (a subreddit on Reddit). */
3993
+ community: text2("community"),
3994
+ hashtags: text2("hashtags", { mode: "json" }).$type().notNull().default([]),
3995
+ /** Platform-specific fields that have no column of their own (a platform's own score). */
3996
+ metadata: text2("metadata", { mode: "json" }).$type().notNull().default({}),
3997
+ postedAt: text2("posted_at").notNull(),
3998
+ createdAt: text2("created_at").notNull()
3999
+ }, (table) => [
4000
+ index2("idx_social_mentions_run").on(table.runId),
4001
+ uniqueIndex2("idx_social_mentions_project_platform_external").on(table.projectId, table.platform, table.externalId),
4002
+ foreignKey({ columns: [table.projectId, table.runId], foreignColumns: [runs.projectId, runs.id] }).onDelete("cascade")
4003
+ ]);
4004
+ var socialConnections = sqliteTable2("social_connections", {
4005
+ id: text2("id").primaryKey(),
4006
+ platform: text2("platform").$type().notNull(),
4007
+ projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
4008
+ tokenExpiresAt: text2("token_expires_at"),
4009
+ scopes: text2("scopes", { mode: "json" }).$type().notNull().default([]),
4010
+ metadata: text2("metadata", { mode: "json" }).$type().notNull().default({}),
4011
+ createdAt: text2("created_at").notNull(),
4012
+ updatedAt: text2("updated_at").notNull()
4013
+ }, (table) => [
4014
+ uniqueIndex2("idx_social_connections_platform_project").on(table.platform, table.projectId)
4015
+ ]);
3965
4016
 
3966
4017
  // ../db/src/client.ts
3967
4018
  function createClient(databasePath) {
@@ -9461,6 +9512,55 @@ var MIGRATION_VERSIONS = [
9461
9512
  )`,
9462
9513
  `CREATE INDEX IF NOT EXISTS idx_sentiment_alert_runs_run ON sentiment_alert_runs(run_id)`
9463
9514
  ]
9515
+ },
9516
+ {
9517
+ version: 225,
9518
+ name: "social-monitoring-tables",
9519
+ // Social monitoring: the posts a run found, which platforms each project
9520
+ // has connected (metadata only; secrets live in config.yaml), and the
9521
+ // platforms a project monitors. Every existing project reads `[]`, so none
9522
+ // starts monitoring on upgrade.
9523
+ statements: [
9524
+ `CREATE TABLE IF NOT EXISTS social_mentions (
9525
+ id TEXT PRIMARY KEY,
9526
+ project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
9527
+ run_id TEXT NOT NULL,
9528
+ platform TEXT NOT NULL,
9529
+ external_id TEXT NOT NULL,
9530
+ external_url TEXT NOT NULL,
9531
+ matched_query TEXT,
9532
+ author_handle TEXT,
9533
+ author_name TEXT,
9534
+ author_followers INTEGER,
9535
+ content_title TEXT,
9536
+ content_text TEXT NOT NULL,
9537
+ linked_urls TEXT NOT NULL DEFAULT '[]',
9538
+ sentiment TEXT,
9539
+ likes INTEGER,
9540
+ shares INTEGER,
9541
+ comments INTEGER,
9542
+ community TEXT,
9543
+ hashtags TEXT NOT NULL DEFAULT '[]',
9544
+ metadata TEXT NOT NULL DEFAULT '{}',
9545
+ posted_at TEXT NOT NULL,
9546
+ created_at TEXT NOT NULL,
9547
+ FOREIGN KEY (project_id, run_id) REFERENCES runs(project_id, id) ON DELETE CASCADE
9548
+ )`,
9549
+ `CREATE INDEX IF NOT EXISTS idx_social_mentions_run ON social_mentions(run_id)`,
9550
+ `CREATE UNIQUE INDEX IF NOT EXISTS idx_social_mentions_project_platform_external ON social_mentions(project_id, platform, external_id)`,
9551
+ `CREATE TABLE IF NOT EXISTS social_connections (
9552
+ id TEXT PRIMARY KEY,
9553
+ platform TEXT NOT NULL,
9554
+ project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
9555
+ token_expires_at TEXT,
9556
+ scopes TEXT NOT NULL DEFAULT '[]',
9557
+ metadata TEXT NOT NULL DEFAULT '{}',
9558
+ created_at TEXT NOT NULL,
9559
+ updated_at TEXT NOT NULL
9560
+ )`,
9561
+ `CREATE UNIQUE INDEX IF NOT EXISTS idx_social_connections_platform_project ON social_connections(platform, project_id)`,
9562
+ `ALTER TABLE projects ADD COLUMN social_platforms TEXT NOT NULL DEFAULT '[]'`
9563
+ ]
9464
9564
  }
9465
9565
  ];
9466
9566
  var V222_BROWSER_AGENT_HOURLY_TABLES = ["ai_user_fetch_events_hourly", "ai_user_fetch_likely_fake_hourly"];
@@ -11108,6 +11208,8 @@ export {
11108
11208
  sentimentJobItems,
11109
11209
  sentimentResults,
11110
11210
  sentimentAttempts,
11211
+ socialMentions,
11212
+ socialConnections,
11111
11213
  createClient,
11112
11214
  readNegativeReviewMaxStars,
11113
11215
  readAllNegativeReviewMaxStars,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createLogger
3
- } from "./chunk-AP7ZGBXF.js";
3
+ } from "./chunk-GNXQMAHP.js";
4
4
  import {
5
5
  addLikelyFakeAgentHits,
6
6
  correctBackgroundCallJourneys,
7
7
  mergeSplitJourneyVisitors,
8
8
  repairAiReferralArrivalsOnStartup,
9
9
  writeUnrecognizedAgentBuckets
10
- } from "./chunk-WW7XJXSQ.js";
10
+ } from "./chunk-3MUJYDIH.js";
11
11
  import {
12
12
  AGENT_TRUST_RULES_VERSION,
13
13
  BROWSER_AGENT_BOT_IDS,
@@ -31,7 +31,7 @@ import {
31
31
  normalizeTrafficPathPattern,
32
32
  rulesShareVerificationList,
33
33
  unrecognizedAgentName
34
- } from "./chunk-K3H67IQZ.js";
34
+ } from "./chunk-3NUSGD54.js";
35
35
  import {
36
36
  RawEventSampleEventTypes,
37
37
  agentJourneyCaptureDays,
@@ -48,7 +48,7 @@ import {
48
48
  trafficReclassificationState,
49
49
  trafficSources,
50
50
  unrecognizedAgentEventsHourly
51
- } from "./chunk-UK2WX3PM.js";
51
+ } from "./chunk-BBMZ6534.js";
52
52
  import {
53
53
  AI_ENGINE_DOMAINS,
54
54
  AI_ENGINE_SELF_DOMAINS,
@@ -84,7 +84,7 @@ import {
84
84
  sortedUnique,
85
85
  usageCount,
86
86
  withRetry
87
- } from "./chunk-B4CKWKSX.js";
87
+ } from "./chunk-LABWX26D.js";
88
88
 
89
89
  // ../provider-openai/src/normalize.ts
90
90
  import OpenAI from "openai";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  USAGE_TELEMETRY_HEADERS,
3
3
  redactLogString
4
- } from "./chunk-B4CKWKSX.js";
4
+ } from "./chunk-LABWX26D.js";
5
5
 
6
6
  // ../api-routes/src/request-context.ts
7
7
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  runWithUsageTags
3
- } from "./chunk-WBGBCRVH.js";
3
+ } from "./chunk-GXMQORTQ.js";
4
4
  import {
5
5
  CanonryMcpToolNames,
6
6
  DEPRECATED_MCP_TOOL_ALIAS_NAMES,
7
7
  canonryMcpTools
8
- } from "./chunk-FXMIX2BP.js";
8
+ } from "./chunk-QFIUKE5K.js";
9
9
  import {
10
10
  CliError
11
11
  } from "./chunk-HGMYEDAQ.js";
12
12
  import {
13
13
  buildOpenApiDocument
14
- } from "./chunk-WW7XJXSQ.js";
14
+ } from "./chunk-3MUJYDIH.js";
15
15
  import {
16
16
  DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
17
17
  MeasurementPortfolioLists,
@@ -24,7 +24,7 @@ import {
24
24
  seoDatasetWithoutVendor,
25
25
  seoProviderSchema,
26
26
  truncateUtf16
27
- } from "./chunk-B4CKWKSX.js";
27
+ } from "./chunk-LABWX26D.js";
28
28
 
29
29
  // src/agent/tools.ts
30
30
  import { Type as Type2 } from "@earendil-works/pi-ai";
@@ -23,7 +23,7 @@ import {
23
23
  measurementDraftUpsertGroupRequestSchema,
24
24
  measurementDraftUpsertMarketRequestSchema,
25
25
  measurementDraftUpsertTargetRequestSchema
26
- } from "./chunk-B4CKWKSX.js";
26
+ } from "./chunk-LABWX26D.js";
27
27
 
28
28
  // src/measurement-draft-actions.ts
29
29
  import { z } from "zod";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  API_PROVIDER_NAMES,
3
3
  ProviderNames
4
- } from "./chunk-B4CKWKSX.js";
4
+ } from "./chunk-LABWX26D.js";
5
5
 
6
6
  // src/provider-registration.ts
7
7
  function isApiProviderRegistrable(name, entry) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getRequestContext
3
- } from "./chunk-4UZR7UUC.js";
3
+ } from "./chunk-BGIH54A3.js";
4
4
  import {
5
5
  diagnosticIdentity,
6
6
  redactLogString,
7
7
  redactLogValue
8
- } from "./chunk-B4CKWKSX.js";
8
+ } from "./chunk-LABWX26D.js";
9
9
 
10
10
  // ../api-routes/src/runtime-logger.ts
11
11
  import { format } from "util";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-RFJM6G7L.js";
3
+ } from "./chunk-3BMWBXHZ.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-B4CKWKSX.js";
39
+ } from "./chunk-LABWX26D.js";
40
40
 
41
41
  // ../api-client-generated/src/generated/core/bodySerializer.gen.ts
42
42
  var jsonBodySerializer = {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  registeredProviderNames
3
- } from "./chunk-ZWWEWFCM.js";
3
+ } from "./chunk-G5O4D7I6.js";
4
4
  import {
5
5
  configExists,
6
6
  loadConfigRaw
7
- } from "./chunk-RFJM6G7L.js";
7
+ } from "./chunk-3BMWBXHZ.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-TWXSURXK.js");
31
+ const { createClient, projects, queries: queriesTable } = await import("./src-SS2AAYBS.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-7OKBRXOG.js");
50
+ const { serveCommand } = await import("./serve-233RXB4F.js");
51
51
  await serveCommand(format);
52
52
  }
53
53
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cloudflareQueueNameSchema
3
- } from "./chunk-B4CKWKSX.js";
3
+ } from "./chunk-LABWX26D.js";
4
4
 
5
5
  // src/cloudflare-traffic-config.ts
6
6
  function unsupportedDeliveryMode(deliveryMode) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pickProjectCitedDomain
3
- } from "./chunk-QDBKBXC7.js";
3
+ } from "./chunk-PSP56PWY.js";
4
4
  import {
5
5
  createLogger
6
- } from "./chunk-AP7ZGBXF.js";
6
+ } from "./chunk-GNXQMAHP.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-WW7XJXSQ.js";
20
+ } from "./chunk-3MUJYDIH.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-UK2WX3PM.js";
38
+ } from "./chunk-BBMZ6534.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-B4CKWKSX.js";
47
+ } from "./chunk-LABWX26D.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";