@canonry/canonry 7.100.0 → 7.102.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 (145) hide show
  1. package/assets/agent-workspace/skills/aero/references/site-health.md +11 -1
  2. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +18 -5
  3. package/assets/assets/{AccessControls-DzO5Y8v9.js → AccessControls-CpSlWN3W.js} +1 -1
  4. package/assets/assets/{AgentSetupPage-DWWovaCw.js → AgentSetupPage-0le_Bx7d.js} +4 -4
  5. package/assets/assets/AuditHistoryPanel-BQH1dQ4V.js +1 -0
  6. package/assets/assets/{BacklinksPage-D6wdOMXt.js → BacklinksPage-_ffwmtrl.js} +1 -1
  7. package/assets/assets/{ChartPrimitives-CtKdkn64.js → ChartPrimitives-6Yq_3ION.js} +1 -1
  8. package/assets/assets/{HistoryPage-B_ReWHbL.js → HistoryPage-DUR17GrK.js} +1 -1
  9. package/assets/assets/MeasurementPropertyPage-dutXSW7s.js +4 -0
  10. package/assets/assets/ProjectPage-DA-07-jJ.js +15 -0
  11. package/assets/assets/{RunsPage-DxN0xXQh.js → RunsPage-Bs4f0-sW.js} +1 -1
  12. package/assets/assets/{ServerTrafficSection-CvISj5pf.js → ServerTrafficSection-qMBbUI-0.js} +5 -5
  13. package/assets/assets/{SettingsPage-CpRpBlMV.js → SettingsPage-Bccypqbr.js} +1 -1
  14. package/assets/assets/ToneBadge-DvK4cIwq.js +60 -0
  15. package/assets/assets/{TrafficPage-zk6zMZyz.js → TrafficPage-BPojOqd_.js} +1 -1
  16. package/assets/assets/{TrafficSourceDetailPage-DJtsI06Z.js → TrafficSourceDetailPage-DSoQk94d.js} +1 -1
  17. package/assets/assets/{account-context-CoJVqEXZ.js → account-context-evpXzY8L.js} +1 -1
  18. package/assets/assets/{agent-trust-copy-BIXDMtBm.js → agent-trust-copy-CkaSg2FT.js} +1 -1
  19. package/assets/assets/{card-Dwmc7Srx.js → card-01OafAPU.js} +1 -1
  20. package/assets/assets/{index-fh1T5JQY.css → index-DPz1idfn.css} +1 -1
  21. package/assets/assets/index-StZErOkd.js +43 -0
  22. package/assets/assets/{query-client-Tg1fZu4i.js → query-client-D6xwAuZW.js} +1 -1
  23. package/assets/assets/react-query-CdE7FNH6.js +1 -0
  24. package/assets/assets/{react-sigma_core.esm.min-D1q0DR_j.js → react-sigma_core.esm.min-DlfcmDYc.js} +1 -1
  25. package/assets/assets/{server-traffic-Djnh_9f0.js → server-traffic-yEflW4RI.js} +1 -1
  26. package/assets/assets/{service-BQjBdN4O.js → service-DfuRVpyN.js} +1 -1
  27. package/assets/index.html +9 -9
  28. package/dist/{ads-FVPZ6R6Z.js → ads-UDJVYKHF.js} +3 -3
  29. package/dist/{agent-2LPU2E5I.js → agent-EOB54XNS.js} +7 -7
  30. package/dist/{agent-ask-5ODREK6D.js → agent-ask-5V4LX4VW.js} +3 -3
  31. package/dist/{agent-conversations-SNLOOJEM.js → agent-conversations-OAF6RCFP.js} +3 -3
  32. package/dist/{agent-journeys-XDXVL6PK.js → agent-journeys-GETB4UGM.js} +3 -3
  33. package/dist/{agent-memory-NKAI2S3U.js → agent-memory-JXHPH6H5.js} +3 -3
  34. package/dist/{agent-providers-R5L7A72X.js → agent-providers-AAUCUOKY.js} +3 -3
  35. package/dist/{agent-transcript-C5WAGYVC.js → agent-transcript-WT4QH3ZY.js} +3 -3
  36. package/dist/{analytics-EJVOLIQL.js → analytics-JEZWLRTZ.js} +3 -3
  37. package/dist/{apply-I6JOM247.js → apply-LDIMMO4N.js} +3 -3
  38. package/dist/{backfill-UVUR36IB.js → backfill-JOJHBVGV.js} +10 -10
  39. package/dist/{backlinks-3VMVACWN.js → backlinks-D2O3UM6F.js} +3 -3
  40. package/dist/{bing-R5RL3PW2.js → bing-BG7KZZPK.js} +3 -3
  41. package/dist/{bootstrap-GMMSDTNO.js → bootstrap-IXVATZLB.js} +10 -10
  42. package/dist/{cdp-FJKUXHEY.js → cdp-3AJG7OLP.js} +7 -7
  43. package/dist/{chunk-COHSL6KW.js → chunk-2YLTELT2.js} +1 -1
  44. package/dist/{chunk-7SNMIXEQ.js → chunk-3TPHFDZN.js} +2 -2
  45. package/dist/{chunk-EE3QTCLS.js → chunk-4CF5536B.js} +31 -1
  46. package/dist/{chunk-O6APBEJE.js → chunk-66EXWVMN.js} +2 -2
  47. package/dist/{chunk-2DV7F6XA.js → chunk-7I2NJ4BH.js} +168 -1
  48. package/dist/{chunk-T7UDY7W3.js → chunk-7JJCFGL2.js} +3 -3
  49. package/dist/{chunk-QS5DWJDI.js → chunk-AENOUFTF.js} +2 -2
  50. package/dist/{chunk-F46TBLXK.js → chunk-AG6BTE7R.js} +23 -14
  51. package/dist/{chunk-YU2WX7RD.js → chunk-BDLHLE2F.js} +3 -3
  52. package/dist/{chunk-O5UFAXUI.js → chunk-BG6TVNA6.js} +445 -388
  53. package/dist/{chunk-J6536OL6.js → chunk-C2YVADFC.js} +1 -1
  54. package/dist/{chunk-LNVFERI4.js → chunk-CZOGOHIN.js} +1 -1
  55. package/dist/{chunk-SWZXHHAG.js → chunk-DP3FE2OW.js} +5 -5
  56. package/dist/{chunk-KVRX7YIH.js → chunk-DRNBMKR5.js} +6 -6
  57. package/dist/{chunk-LJO2BKWU.js → chunk-EXPBZFN4.js} +1 -1
  58. package/dist/{chunk-G6QN4VFS.js → chunk-FHK6M4RK.js} +3 -3
  59. package/dist/{chunk-7BH53MOB.js → chunk-G4ODBZO7.js} +4 -1
  60. package/dist/{chunk-DGDLLRS4.js → chunk-GLKR6C2L.js} +1 -1
  61. package/dist/{chunk-AMGM55CP.js → chunk-IBRABPHA.js} +2 -2
  62. package/dist/{chunk-DHIB7EIA.js → chunk-LGTSVS6Q.js} +4 -4
  63. package/dist/{chunk-HL2LGRTI.js → chunk-M25KDHD4.js} +1 -1
  64. package/dist/{chunk-RBG2QXQM.js → chunk-N4VEG6GB.js} +4 -4
  65. package/dist/{chunk-VHULVUDL.js → chunk-N7773GJW.js} +1 -1
  66. package/dist/{chunk-AYKTVQF7.js → chunk-NAJ3ZYZ2.js} +3 -3
  67. package/dist/{chunk-O7S7OHLE.js → chunk-NHBXQWE3.js} +452 -149
  68. package/dist/{chunk-NQYJHKML.js → chunk-NJZVDUKD.js} +3 -3
  69. package/dist/{chunk-HBHLYWKE.js → chunk-O5AIKUW3.js} +1 -1
  70. package/dist/{chunk-BKDRT4VS.js → chunk-ONHBQYSA.js} +7 -7
  71. package/dist/{chunk-FZ3MUTU3.js → chunk-QK4IICRM.js} +2 -2
  72. package/dist/{chunk-FBO25TA3.js → chunk-RXWD25P7.js} +1 -1
  73. package/dist/{chunk-UGO2FO6V.js → chunk-S7ZOYNW3.js} +38 -6
  74. package/dist/{chunk-YIIRS7V7.js → chunk-UX6XWC4F.js} +5 -5
  75. package/dist/{chunk-YGAQQSCL.js → chunk-VH424YVI.js} +2669 -1207
  76. package/dist/{chunk-7BEGCVVB.js → chunk-WNR3YQAD.js} +1 -1
  77. package/dist/{chunk-56VVRWJM.js → chunk-YTR2S4MU.js} +4 -4
  78. package/dist/{chunk-7J2RIIYU.js → chunk-ZIKPEZ3K.js} +370 -32
  79. package/dist/{citations-LOEQRDUB.js → citations-GM42U2ZH.js} +4 -4
  80. package/dist/{cli-catalog-5RXNUFBS.js → cli-catalog-EMZPMAJP.js} +3 -3
  81. package/dist/{cli-commands-HE2BQY3Y.js → cli-commands-VDMZAETM.js} +7 -7
  82. package/dist/cli.js +13 -13
  83. package/dist/{competitor-PIX2BHJW.js → competitor-4ZLKGNQW.js} +3 -3
  84. package/dist/{content-PJGW4WZF.js → content-YJRMT4JW.js} +3 -3
  85. package/dist/{dashboard-7OKBD4MG.js → dashboard-L4EE3C5T.js} +6 -6
  86. package/dist/{demo-SCOFAWFM.js → demo-3XDVCUT5.js} +1 -1
  87. package/dist/{demo-server-SJPI6RSL.js → demo-server-7ZJWSGE2.js} +12 -12
  88. package/dist/{discover-I3WL2QUN.js → discover-SQGUDXSU.js} +4 -4
  89. package/dist/{discover-eval-YRECOIP5.js → discover-eval-BUNKP6EW.js} +3 -3
  90. package/dist/{doctor-F4J6LILX.js → doctor-HPIGLMRX.js} +3 -3
  91. package/dist/{evidence-MYQTCY4V.js → evidence-JKEM5BYW.js} +3 -3
  92. package/dist/{export-cmd-3SUFOJM6.js → export-cmd-KTQM455W.js} +3 -3
  93. package/dist/{ga-VA6FYK4L.js → ga-D7ZLTSSA.js} +3 -3
  94. package/dist/{gbp-DI6ZVFHL.js → gbp-OWBX2BFK.js} +3 -3
  95. package/dist/{google-UVKWJCD2.js → google-UNAGUCXQ.js} +4 -4
  96. package/dist/{google-marketing-S63HN733.js → google-marketing-AZC7WHZR.js} +1 -1
  97. package/dist/{health-cmd-DOZXGI46.js → health-cmd-XHEDL6CF.js} +4 -4
  98. package/dist/{history-UTJTUDYK.js → history-MKQDN6LY.js} +3 -3
  99. package/dist/index.d.ts +920 -8
  100. package/dist/index.js +25 -25
  101. package/dist/{init-IVJSS33J.js → init-W4LWSMCC.js} +12 -12
  102. package/dist/{insights-UHCVCZ76.js → insights-HNJR7UEC.js} +3 -3
  103. package/dist/intelligence-service-SWQABQ3X.js +16 -0
  104. package/dist/{journeys-XIT7WDM2.js → journeys-RQBYPWHU.js} +3 -3
  105. package/dist/{keys-MQKW4JUI.js → keys-KNZAMXJU.js} +3 -3
  106. package/dist/{keyword-EASMKYZ3.js → keyword-7SUZG7RB.js} +3 -3
  107. package/dist/{logs-ZHZ6XM55.js → logs-RTQFOKLJ.js} +3 -3
  108. package/dist/{mcp-ECVT2YGU.js → mcp-JWBPAYR4.js} +4 -4
  109. package/dist/mcp.js +9 -9
  110. package/dist/{measurement-plan-7FQKUOMR.js → measurement-plan-AETWMIGC.js} +5 -5
  111. package/dist/{notify-TC7ARC6W.js → notify-DGFNKFVG.js} +3 -3
  112. package/dist/{organic-evidence-M34MWJXE.js → organic-evidence-VA47O6HU.js} +3 -3
  113. package/dist/{overview-P6BRMXJN.js → overview-SMXNZLPG.js} +5 -5
  114. package/dist/{project-WZ2YXFPJ.js → project-WXEDQJLS.js} +28 -5
  115. package/dist/{project-setup-WV6SPGIV.js → project-setup-VFBTUA5W.js} +3 -3
  116. package/dist/{query-WAFJKDHG.js → query-C2VIB2XW.js} +3 -3
  117. package/dist/{research-B5ZPQX7R.js → research-76TYES7M.js} +3 -3
  118. package/dist/{results-export-NIZV6R3K.js → results-export-F4FKVOQN.js} +3 -3
  119. package/dist/{run-ICLPZ7QT.js → run-H6GGXFKQ.js} +5 -5
  120. package/dist/{schedule-4C44LQ7R.js → schedule-KTQNJGMO.js} +3 -3
  121. package/dist/{search-UJM7KII3.js → search-YRFUC7SW.js} +3 -3
  122. package/dist/{serve-A6UIO6WP.js → serve-PWIVPUX7.js} +26 -26
  123. package/dist/{session-RTE22GQT.js → session-LRR2N6IP.js} +13 -13
  124. package/dist/{settings-BOF5Z7ML.js → settings-TLDN77K4.js} +3 -3
  125. package/dist/{sitemaps-BM7S76H2.js → sitemaps-BQ6JI4EW.js} +3 -3
  126. package/dist/{skills-X5SR4HRO.js → skills-SQBKFXAN.js} +2 -2
  127. package/dist/{snapshot-KLKE37VY.js → snapshot-ICGETMOY.js} +3 -3
  128. package/dist/{src-EKLG5A6O.js → src-XW5T4IQS.js} +10 -2
  129. package/dist/{status-OYG57DWU.js → status-VN65JTUD.js} +5 -5
  130. package/dist/{technical-aeo-KWVWOOTI.js → technical-aeo-OBCWTN3M.js} +27 -8
  131. package/dist/{telemetry-KGE6FF3Y.js → telemetry-ZU6REKKU.js} +4 -4
  132. package/dist/{tools-4R33AZQ3.js → tools-RQDMCSZB.js} +11 -11
  133. package/dist/{traffic-SVMOKCSS.js → traffic-YLZSRX5P.js} +5 -5
  134. package/dist/{trends-RGAKGX3L.js → trends-OWWELIE2.js} +3 -3
  135. package/dist/{users-47WKA2TO.js → users-2ICURHTW.js} +54 -4
  136. package/dist/{visibility-stats-DTGQJPNV.js → visibility-stats-FJK3MDYE.js} +4 -4
  137. package/dist/{wordpress-2CNUX4UE.js → wordpress-UQFA5TFU.js} +3 -3
  138. package/package.json +2 -2
  139. package/assets/assets/AuditHistoryPanel-BG-n1i8c.js +0 -1
  140. package/assets/assets/MeasurementPropertyPage-zdyLL-kl.js +0 -4
  141. package/assets/assets/ProjectPage-KZNKXR4w.js +0 -15
  142. package/assets/assets/ToneBadge-DcwPruHr.js +0 -60
  143. package/assets/assets/index-mqc2mWUR.js +0 -42
  144. package/assets/assets/react-query-BqcEEfEO.js +0 -1
  145. package/dist/intelligence-service-3EENJ5DS.js +0 -16
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-O6APBEJE.js";
3
+ } from "./chunk-66EXWVMN.js";
4
4
  import {
5
5
  outcomeFailure
6
- } from "./chunk-DHIB7EIA.js";
7
- import "./chunk-AMGM55CP.js";
6
+ } from "./chunk-LGTSVS6Q.js";
7
+ import "./chunk-IBRABPHA.js";
8
8
  import {
9
9
  createApiClient
10
- } from "./chunk-UGO2FO6V.js";
10
+ } from "./chunk-S7ZOYNW3.js";
11
11
  import {
12
12
  loadConfig,
13
13
  saveConfigPatch
14
- } from "./chunk-EE3QTCLS.js";
14
+ } from "./chunk-4CF5536B.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-LJO2BKWU.js";
20
+ import "./chunk-EXPBZFN4.js";
21
21
  import {
22
22
  describeError
23
- } from "./chunk-O7S7OHLE.js";
23
+ } from "./chunk-NHBXQWE3.js";
24
24
  import "./chunk-MLKGABMK.js";
25
25
 
26
26
  // src/commands/cdp.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  API_PROVIDER_NAMES,
3
3
  ProviderNames
4
- } from "./chunk-O7S7OHLE.js";
4
+ } from "./chunk-NHBXQWE3.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-LJO2BKWU.js";
3
+ } from "./chunk-EXPBZFN4.js";
4
4
  import {
5
5
  diagnosticIdentity,
6
6
  redactLogString,
7
7
  redactLogValue
8
- } from "./chunk-O7S7OHLE.js";
8
+ } from "./chunk-NHBXQWE3.js";
9
9
 
10
10
  // ../api-routes/src/runtime-logger.ts
11
11
  import { format } from "util";
@@ -14,6 +14,7 @@ import {
14
14
  SENTIMENT_OPENROUTER_MODEL,
15
15
  agentProviderIdSchema,
16
16
  isAgentProviderId,
17
+ isChatGptTokenKey,
17
18
  isRetiredAgentProviderId,
18
19
  providerBatchConfigSchema,
19
20
  providerConnectionName,
@@ -21,7 +22,7 @@ import {
21
22
  resolveProviderModel,
22
23
  schedulableRunKindSchema,
23
24
  sentimentEvaluatorProviderSchema
24
- } from "./chunk-O7S7OHLE.js";
25
+ } from "./chunk-NHBXQWE3.js";
25
26
 
26
27
  // ../config/src/index.ts
27
28
  import { z as z5 } from "zod";
@@ -1017,6 +1018,33 @@ var loadedConfigPaths = /* @__PURE__ */ new WeakMap();
1017
1018
  function loadedConfigPath(config) {
1018
1019
  return loadedConfigPaths.get(config);
1019
1020
  }
1021
+ function validateChatGptConfig(value, configPath) {
1022
+ if (value === void 0 || value === null) return;
1023
+ const invalid = (detail) => new CliError({
1024
+ code: "CONFIG_INVALID",
1025
+ message: `Invalid config at ${configPath}: ${detail}`
1026
+ });
1027
+ if (typeof value !== "object" || Array.isArray(value)) throw invalid("chatgpt must be a mapping.");
1028
+ const entry = value;
1029
+ for (const key of ["clientId", "clientSecret", "tokenKey"]) {
1030
+ if (entry[key] !== void 0 && entry[key] !== null && typeof entry[key] !== "string") throw invalid(`chatgpt.${key} must be a string.`);
1031
+ }
1032
+ for (const key of ["signIn", "planUsage", "requirePlan"]) {
1033
+ if (entry[key] !== void 0 && entry[key] !== null && typeof entry[key] !== "boolean") throw invalid(`chatgpt.${key} must be true, false, or left blank.`);
1034
+ }
1035
+ const on = entry.signIn === true || entry.planUsage === true;
1036
+ if (on && !(typeof entry.clientId === "string" && entry.clientId.trim())) {
1037
+ throw invalid("chatgpt.clientId is required when chatgpt.signIn or chatgpt.planUsage is on.");
1038
+ }
1039
+ if (entry.requirePlan === true && entry.planUsage !== true) {
1040
+ throw invalid("chatgpt.requirePlan needs chatgpt.planUsage: true.");
1041
+ }
1042
+ if (entry.planUsage === true) {
1043
+ if (!isChatGptTokenKey(process.env.CANONRY_CHATGPT_TOKEN_KEY ?? entry.tokenKey)) {
1044
+ throw invalid("chatgpt.planUsage needs chatgpt.tokenKey (or CANONRY_CHATGPT_TOKEN_KEY): 64 hex characters, e.g. from `openssl rand -hex 32`.");
1045
+ }
1046
+ }
1047
+ }
1020
1048
  function loadConfig(configPath = getConfigPath()) {
1021
1049
  if (!fs.existsSync(configPath)) {
1022
1050
  const message = `Config not found at ${configPath}.
@@ -1094,6 +1122,7 @@ Do not use "canonry init --force" for recovery. It replaces credentials without
1094
1122
  message: `Invalid config at ${configPath}: journeys.visitorKeySecret must be a string of at least 32 characters, or left blank to generate one.`
1095
1123
  });
1096
1124
  }
1125
+ validateChatGptConfig(parsed.chatgpt, configPath);
1097
1126
  if (!agentAllowViewersSchema.safeParse(parsed.agent?.allowViewers).success) {
1098
1127
  throw new CliError({
1099
1128
  code: "CONFIG_INVALID",
@@ -1349,6 +1378,7 @@ export {
1349
1378
  openRouterModels,
1350
1379
  aeroStreamFn,
1351
1380
  completeOnce,
1381
+ PROVIDER_MODELS,
1352
1382
  defaultAgentReasoning,
1353
1383
  AGENT_PROVIDERS,
1354
1384
  AgentProviders,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  trackIntegrationConnection
3
- } from "./chunk-DHIB7EIA.js";
3
+ } from "./chunk-LGTSVS6Q.js";
4
4
  import {
5
5
  cliRuntimeContext
6
- } from "./chunk-AMGM55CP.js";
6
+ } from "./chunk-IBRABPHA.js";
7
7
 
8
8
  // src/cli-connection-telemetry.ts
9
9
  function trackCliConnection(properties) {
@@ -20,7 +20,7 @@ import {
20
20
  templateLinkRatio,
21
21
  templateLinkUbiquityAvailable,
22
22
  validationError
23
- } from "./chunk-O7S7OHLE.js";
23
+ } from "./chunk-NHBXQWE3.js";
24
24
  import {
25
25
  __export
26
26
  } from "./chunk-MLKGABMK.js";
@@ -71,6 +71,8 @@ __export(schema_exports, {
71
71
  bingTrafficDaily: () => bingTrafficDaily,
72
72
  bingUrlInspections: () => bingUrlInspections,
73
73
  ccReleaseSyncs: () => ccReleaseSyncs,
74
+ chatgptLoginTransactions: () => chatgptLoginTransactions,
75
+ chatgptPlanConnections: () => chatgptPlanConnections,
74
76
  competitors: () => competitors,
75
77
  contentTargetDismissals: () => contentTargetDismissals,
76
78
  conversionTrackingContracts: () => conversionTrackingContracts,
@@ -196,6 +198,8 @@ __export(schema_exports, {
196
198
  unrecognizedAgentEventsHourly: () => unrecognizedAgentEventsHourly,
197
199
  unrecognizedAgentNotifyState: () => unrecognizedAgentNotifyState,
198
200
  usageCounters: () => usageCounters,
201
+ userExternalIdentities: () => userExternalIdentities,
202
+ userInvitations: () => userInvitations,
199
203
  userSessions: () => userSessions,
200
204
  users: () => users
201
205
  });
@@ -277,6 +281,12 @@ var projects = sqliteTable2("projects", {
277
281
  qualifiedAliases: text2("qualified_aliases", { mode: "json" }).$type().notNull().default([]),
278
282
  /** Site Health page budget for scans that set none; null means the full site (up to 50,000 pages). */
279
283
  siteAuditMaxPages: integer2("site_audit_max_pages"),
284
+ /**
285
+ * Owned domains every Agent Readiness scan covers besides the main domain,
286
+ * as bare hosts, unless a scan names its own. Each is one of `ownedDomains`;
287
+ * empty means the main domain only.
288
+ */
289
+ siteAuditDomains: text2("site_audit_domains", { mode: "json" }).$type().notNull().default([]),
280
290
  /**
281
291
  * What the unattended answer-derived competitor alias pass does
282
292
  * (`CompetitorAutoAliasMode`), queued after a completed or partial sweep, a
@@ -937,6 +947,66 @@ var userSessions = sqliteTable2("user_sessions", {
937
947
  index2("idx_user_sessions_user").on(table.userId),
938
948
  index2("idx_user_sessions_expires").on(table.expiresAt)
939
949
  ]);
950
+ var userExternalIdentities = sqliteTable2("user_external_identities", {
951
+ id: text2("id").primaryKey(),
952
+ userId: text2("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
953
+ provider: text2("provider").$type().notNull(),
954
+ issuer: text2("issuer").notNull(),
955
+ clientId: text2("client_id").notNull(),
956
+ subject: text2("subject").notNull(),
957
+ email: text2("email"),
958
+ createdAt: text2("created_at").notNull(),
959
+ lastLoginAt: text2("last_login_at")
960
+ }, (table) => [
961
+ uniqueIndex2("idx_user_external_identities_subject").on(table.issuer, table.clientId, table.subject),
962
+ uniqueIndex2("idx_user_external_identities_user_provider").on(table.userId, table.provider)
963
+ ]);
964
+ var userInvitations = sqliteTable2("user_invitations", {
965
+ id: text2("id").primaryKey(),
966
+ /** As the administrator typed it, for display. */
967
+ email: text2("email").notNull(),
968
+ /** Lower-cased, trimmed email: what a sign-in is matched against. */
969
+ emailKey: text2("email_key").notNull(),
970
+ role: text2("role").$type().notNull(),
971
+ createdById: text2("created_by_id").references(() => users.id, { onDelete: "set null" }),
972
+ createdAt: text2("created_at").notNull(),
973
+ expiresAt: text2("expires_at").notNull(),
974
+ acceptedAt: text2("accepted_at"),
975
+ acceptedUserId: text2("accepted_user_id").references(() => users.id, { onDelete: "set null" }),
976
+ revokedAt: text2("revoked_at")
977
+ }, (table) => [
978
+ index2("idx_user_invitations_email").on(table.emailKey)
979
+ ]);
980
+ var chatgptPlanConnections = sqliteTable2("chatgpt_plan_connections", {
981
+ userId: text2("user_id").primaryKey().references(() => users.id, { onDelete: "cascade" }),
982
+ /** New on every connect, so a reconnect is a fresh grant, never a resumed one. */
983
+ id: text2("id").notNull().unique(),
984
+ identityId: text2("identity_id").notNull().references(() => userExternalIdentities.id, { onDelete: "cascade" }),
985
+ status: text2("status").$type().notNull(),
986
+ /** Space-separated scopes OpenAI actually granted. */
987
+ scopes: text2("scopes").notNull(),
988
+ tokens: text2("tokens").notNull(),
989
+ accessExpiresAt: text2("access_expires_at").notNull(),
990
+ modelId: text2("model_id"),
991
+ revision: integer2("revision").notNull().default(0),
992
+ connectedAt: text2("connected_at").notNull(),
993
+ updatedAt: text2("updated_at").notNull()
994
+ });
995
+ var chatgptLoginTransactions = sqliteTable2("chatgpt_login_transactions", {
996
+ stateHash: text2("state_hash").primaryKey(),
997
+ browserHash: text2("browser_hash").notNull(),
998
+ intent: text2("intent").$type().notNull(),
999
+ /** The signed-in account a `connect` belongs to. Null for `login`. */
1000
+ userId: text2("user_id").references(() => users.id, { onDelete: "cascade" }),
1001
+ nonce: text2("nonce").notNull(),
1002
+ /** Space-separated scopes requested, to compare with what was granted. */
1003
+ scopes: text2("scopes").notNull(),
1004
+ returnTo: text2("return_to"),
1005
+ createdAt: text2("created_at").notNull(),
1006
+ expiresAt: text2("expires_at").notNull()
1007
+ }, (table) => [
1008
+ index2("idx_chatgpt_login_transactions_expires").on(table.expiresAt)
1009
+ ]);
940
1010
  var dashboardSessions = sqliteTable2("dashboard_sessions", {
941
1011
  tokenHash: text2("token_hash").primaryKey(),
942
1012
  apiKeyId: text2("api_key_id").notNull().references(() => apiKeys.id, { onDelete: "cascade" }),
@@ -1454,6 +1524,12 @@ var siteCrawlSnapshots = sqliteTable2("site_crawl_snapshots", {
1454
1524
  * backfilled: a pre-4.7.0 crawl never observed placement.
1455
1525
  */
1456
1526
  linkPlacementRulesetVersion: text2("link_placement_ruleset_version"),
1527
+ /**
1528
+ * Every site the scan covered, main domain first, with its page counts and
1529
+ * score, written at publish. NULL for a scan made before scans recorded
1530
+ * their sites: it covered the main domain only.
1531
+ */
1532
+ sites: text2("sites", { mode: "json" }).$type(),
1457
1533
  createdAt: text2("created_at").notNull(),
1458
1534
  updatedAt: text2("updated_at").notNull()
1459
1535
  }, (table) => [
@@ -1477,6 +1553,12 @@ var siteCrawlPages = sqliteTable2("site_crawl_pages", {
1477
1553
  attemptId: text2("attempt_id").notNull(),
1478
1554
  nodeKey: text2("node_key").notNull(),
1479
1555
  url: text2("url").notNull(),
1556
+ /**
1557
+ * Bare host of another owned site the scan covered (`hostOf`). NULL on the
1558
+ * main domain, which is every row of a scan made before scans covered more
1559
+ * than one site. `path` and `parentPath` never include a host.
1560
+ */
1561
+ site: text2("site"),
1480
1562
  path: text2("path").notNull(),
1481
1563
  parentPath: text2("parent_path").notNull(),
1482
1564
  discoverySource: text2("discovery_source").notNull().default("crawl"),
@@ -1526,6 +1608,7 @@ var siteCrawlPages = sqliteTable2("site_crawl_pages", {
1526
1608
  index2("idx_site_crawl_pages_parent").on(table.projectId, table.runId, table.attemptId, table.parentPath, table.path),
1527
1609
  index2("idx_site_crawl_pages_url").on(table.projectId, table.runId, table.attemptId, table.url),
1528
1610
  index2("idx_site_crawl_pages_health").on(table.projectId, table.runId, table.attemptId, table.healthState, table.path, table.nodeKey),
1611
+ index2("idx_site_crawl_pages_site").on(table.projectId, table.runId, table.attemptId, table.site, table.path),
1529
1612
  // The in-progress Page Health preview reads only completed audits below its
1530
1613
  // threshold, ordered worst-first. Keep its stable tie-breaker in the index
1531
1614
  // so a growing crawl never needs a transient sort before its small limit.
@@ -9189,6 +9272,86 @@ var MIGRATION_VERSIONS = [
9189
9272
  notified_at TEXT
9190
9273
  )`
9191
9274
  ]
9275
+ },
9276
+ {
9277
+ version: 219,
9278
+ name: "site-audit-owned-sites",
9279
+ // Agent Readiness scans of more than one owned site. The saved list
9280
+ // defaults to empty, so every project keeps scanning its main domain only.
9281
+ // A page row's `site` is null on the main domain, which is every row
9282
+ // written before, and the bare host on another site. A snapshot's `sites`
9283
+ // is null for every scan made before: it covered the main domain only.
9284
+ statements: [
9285
+ `ALTER TABLE projects ADD COLUMN site_audit_domains TEXT NOT NULL DEFAULT '[]'`,
9286
+ `ALTER TABLE site_crawl_pages ADD COLUMN site TEXT`,
9287
+ `ALTER TABLE site_crawl_snapshots ADD COLUMN sites TEXT`,
9288
+ `CREATE INDEX IF NOT EXISTS idx_site_crawl_pages_site ON site_crawl_pages(project_id, run_id, attempt_id, site, path)`
9289
+ ]
9290
+ },
9291
+ {
9292
+ version: 220,
9293
+ name: "chatgpt-sign-in",
9294
+ // Sign in with ChatGPT: linked identities, email invitations, each
9295
+ // person's plan grant for their own Aero turns, and in-flight sign-ins.
9296
+ // Additive only. Accounts created through an invitation keep the users
9297
+ // table's NOT NULL password column with a marker no password can match,
9298
+ // so the account table is not rebuilt on large installs.
9299
+ statements: [
9300
+ `CREATE TABLE IF NOT EXISTS user_external_identities (
9301
+ id TEXT PRIMARY KEY,
9302
+ user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
9303
+ provider TEXT NOT NULL CHECK (provider IN ('chatgpt')),
9304
+ issuer TEXT NOT NULL,
9305
+ client_id TEXT NOT NULL,
9306
+ subject TEXT NOT NULL,
9307
+ email TEXT,
9308
+ created_at TEXT NOT NULL,
9309
+ last_login_at TEXT
9310
+ )`,
9311
+ `CREATE UNIQUE INDEX IF NOT EXISTS idx_user_external_identities_subject
9312
+ ON user_external_identities(issuer, client_id, subject)`,
9313
+ `CREATE UNIQUE INDEX IF NOT EXISTS idx_user_external_identities_user_provider
9314
+ ON user_external_identities(user_id, provider)`,
9315
+ `CREATE TABLE IF NOT EXISTS user_invitations (
9316
+ id TEXT PRIMARY KEY,
9317
+ email TEXT NOT NULL,
9318
+ email_key TEXT NOT NULL,
9319
+ role TEXT NOT NULL CHECK (role IN ('admin', 'viewer')),
9320
+ created_by_id TEXT REFERENCES users(id) ON DELETE SET NULL,
9321
+ created_at TEXT NOT NULL,
9322
+ expires_at TEXT NOT NULL,
9323
+ accepted_at TEXT,
9324
+ accepted_user_id TEXT REFERENCES users(id) ON DELETE SET NULL,
9325
+ revoked_at TEXT
9326
+ )`,
9327
+ `CREATE INDEX IF NOT EXISTS idx_user_invitations_email ON user_invitations(email_key)`,
9328
+ `CREATE TABLE IF NOT EXISTS chatgpt_plan_connections (
9329
+ user_id TEXT PRIMARY KEY REFERENCES users(id) ON DELETE CASCADE,
9330
+ id TEXT NOT NULL UNIQUE,
9331
+ identity_id TEXT NOT NULL REFERENCES user_external_identities(id) ON DELETE CASCADE,
9332
+ status TEXT NOT NULL CHECK (status IN ('connected', 'reconnect-required')),
9333
+ scopes TEXT NOT NULL,
9334
+ tokens TEXT NOT NULL,
9335
+ access_expires_at TEXT NOT NULL,
9336
+ model_id TEXT,
9337
+ revision INTEGER NOT NULL DEFAULT 0,
9338
+ connected_at TEXT NOT NULL,
9339
+ updated_at TEXT NOT NULL
9340
+ )`,
9341
+ `CREATE TABLE IF NOT EXISTS chatgpt_login_transactions (
9342
+ state_hash TEXT PRIMARY KEY,
9343
+ browser_hash TEXT NOT NULL,
9344
+ intent TEXT NOT NULL CHECK (intent IN ('login', 'connect')),
9345
+ user_id TEXT REFERENCES users(id) ON DELETE CASCADE,
9346
+ nonce TEXT NOT NULL,
9347
+ scopes TEXT NOT NULL,
9348
+ return_to TEXT,
9349
+ created_at TEXT NOT NULL,
9350
+ expires_at TEXT NOT NULL
9351
+ )`,
9352
+ `CREATE INDEX IF NOT EXISTS idx_chatgpt_login_transactions_expires
9353
+ ON chatgpt_login_transactions(expires_at)`
9354
+ ]
9192
9355
  }
9193
9356
  ];
9194
9357
  var AERO_LEDGER_REBUILDS = [
@@ -10631,6 +10794,10 @@ export {
10631
10794
  apiKeys,
10632
10795
  users,
10633
10796
  userSessions,
10797
+ userExternalIdentities,
10798
+ userInvitations,
10799
+ chatgptPlanConnections,
10800
+ chatgptLoginTransactions,
10634
10801
  dashboardSessions,
10635
10802
  oauthClients,
10636
10803
  oauthGrants,
@@ -3,7 +3,7 @@ import {
3
3
  resolveCliAccess,
4
4
  resolveCliAccessForInvocation,
5
5
  windowOptions
6
- } from "./chunk-7BH53MOB.js";
6
+ } from "./chunk-G4ODBZO7.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-O7S7OHLE.js";
17
+ } from "./chunk-NHBXQWE3.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-5RXNUFBS.js");
125
+ const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-EMZPMAJP.js");
126
126
  const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
127
127
  printCliCatalog2(specs, fallbackFormat, group2, accessValue);
128
128
  return true;
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-VJWDBFSL.js";
5
5
  import {
6
6
  createApiClient
7
- } from "./chunk-UGO2FO6V.js";
7
+ } from "./chunk-S7ZOYNW3.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-O7S7OHLE.js";
14
+ } from "./chunk-NHBXQWE3.js";
15
15
 
16
16
  // src/commands/mcp.ts
17
17
  import fs from "fs";
@@ -2,11 +2,11 @@ import {
2
2
  dedupeGscSitemapUrls,
3
3
  resolveDiscoveredGscSitemapUrls,
4
4
  submitGscSitemapBatches
5
- } from "./chunk-DGDLLRS4.js";
5
+ } from "./chunk-GLKR6C2L.js";
6
6
  import {
7
7
  measurementDraftOperationSchema,
8
8
  runMeasurementDraftAction
9
- } from "./chunk-7BEGCVVB.js";
9
+ } from "./chunk-WNR3YQAD.js";
10
10
  import {
11
11
  CliError
12
12
  } from "./chunk-HGMYEDAQ.js";
@@ -195,7 +195,7 @@ import {
195
195
  trendSurfaceSchema,
196
196
  visibilityCompareSelectionSchema,
197
197
  visibilityReportRequestSchema
198
- } from "./chunk-O7S7OHLE.js";
198
+ } from "./chunk-NHBXQWE3.js";
199
199
 
200
200
  // src/mcp/tool-registry.ts
201
201
  import { z as z2 } from "zod";
@@ -1057,7 +1057,8 @@ var technicalAeoCrawlInputSchema = z2.object({
1057
1057
  var siteHealthIssuesInputSchema = siteAuditIssueListQuerySchema.extend({
1058
1058
  project: projectNameSchema,
1059
1059
  runId: siteAuditIssueListQuerySchema.shape.runId.describe("Select an exact saved scan. Omit for the default scan; use its returned runId for subsequent pages and issue details."),
1060
- cursor: siteAuditIssueListQuerySchema.shape.cursor.describe("Opaque nextCursor from this same scan and issue feed.")
1060
+ cursor: siteAuditIssueListQuerySchema.shape.cursor.describe("Opaque nextCursor from this same scan and issue feed."),
1061
+ site: siteAuditIssueListQuerySchema.shape.site.describe("Limit issues and their pages to one site the scan covered: the main domain or an included owned domain (canonry_agent_readiness_overview lists them in sites). Omit for every site. Keep it unchanged while following nextCursor.")
1061
1062
  });
1062
1063
  var siteHealthIssuePagesInputSchema = siteHealthIssuesInputSchema.extend({
1063
1064
  issueId: z2.string().min(1).describe("Exact issue ID from canonry_agent_readiness_issues. Keep the returned runId when inspecting affected pages.")
@@ -1125,12 +1126,14 @@ var technicalAeoCrawlPagesInputSchema = z2.object({
1125
1126
  auditState: z2.string().min(1).optional().describe("Filter audit state. url-version marks a URL version: fetched and classified, not scored."),
1126
1127
  urlVersions: z2.enum(["include", "exclude", "only"]).optional().describe("URL versions are parameter addresses whose canonical names the same path, so the site marks them as copies of that page; the audit does not score them or count them in fixes. include (default) keeps every address, exclude lists pages only (the dashboard view), only lists the URL versions with urlVersionOf. Once a few addresses with one parameter pattern prove to be copies, the crawl stops fetching that pattern; those have no rows and inventorySummary.urlVersionsNotFetched counts them."),
1127
1128
  sort: z2.enum(["url", "path", "score-asc", "score-desc"]).optional(),
1129
+ site: z2.string().min(1).max(253).optional().describe("List one site the scan covered: the main domain or an included owned domain (canonry_agent_readiness_overview lists them in sites). Omit for every site; each page carries its site. A site the scan did not cover is an error naming the ones it did."),
1128
1130
  cursor: z2.string().min(1).optional().describe("Opaque cursor from the previous crawl-pages result."),
1129
1131
  limit: z2.number().int().positive().max(200).optional()
1130
1132
  });
1131
1133
  var technicalAeoStructureInputSchema = z2.object({
1132
1134
  project: projectNameSchema,
1133
1135
  runId: runIdSchema.optional(),
1136
+ site: z2.string().min(1).max(253).optional().describe("The site whose folders to list: an owned domain the scan included, or the main domain (the default). Paths never carry a host, so each site is read separately."),
1134
1137
  parentPath: z2.string().min(1).optional().describe("Path whose immediate children to list. Defaults to /. This never returns a whole site tree."),
1135
1138
  cursor: z2.string().min(1).optional().describe("Opaque cursor from the previous structure result."),
1136
1139
  limit: z2.number().int().positive().max(100).optional()
@@ -1174,7 +1177,8 @@ var technicalAeoRunInputSchema = z2.object({
1174
1177
  maxDepth: z2.number().int().min(0).max(100).optional().describe("Maximum internal-link depth from the root page."),
1175
1178
  checkDeadLinks: z2.boolean().optional().describe("Opt in to internal dead-link checks. Omitted and false both disable checks."),
1176
1179
  includeGeo: siteAuditRunRequestSchema.shape.includeGeo.removeDefault().optional().describe("Opt in to geographic signals for a location or service-area business."),
1177
- includeAgentSkills: siteAuditRunRequestSchema.shape.includeAgentSkills.removeDefault().optional().describe("Check discoverable actions, forms, and agent integrations by default. Set false to disable.")
1180
+ includeAgentSkills: siteAuditRunRequestSchema.shape.includeAgentSkills.removeDefault().optional().describe("Check discoverable actions, forms, and agent integrations by default. Set false to disable."),
1181
+ sites: siteAuditRunRequestSchema.shape.sites.describe("Owned domains this scan covers besides the main domain, which every scan covers, at most 20. Each must be one of the project's owned domains. Omitted uses the project's saved siteAuditDomains (set with canonry_project_update); [] scans the main domain only. The page budget is shared across every site.")
1178
1182
  });
1179
1183
  var AGENT_WEBHOOK_EVENTS = [
1180
1184
  notificationEventSchema.enum["run.completed"],
@@ -3435,7 +3439,7 @@ var rawCanonryMcpTools = [
3435
3439
  defineTool({
3436
3440
  name: "canonry_project_upsert",
3437
3441
  title: "Create or replace project",
3438
- description: "Create or replace a Canonry project. PUT semantics: fields not in the request are reset to their defaults. Provide the full intended project shape. Exceptions: an omitted providerDispatchModes (provider \u2192 sync|batch for scheduled sweeps) keeps the stored preference; send {} to clear it. An omitted qualifiedAliases (the aliases Simple sentiment treats as this brand's own names) keeps the stored list, minus names that no longer qualify (a removed alias, a spelling of the display name, or a competitor's name); send [] to clear it. Competitors are not part of this request, but a new identity (display name, aliases, domains) that claims a tracked competitor's curated alias drops that alias, and the drop is audited. An omitted siteAuditMaxPages (the Agent Readiness page budget for scans that set none, 1 to 50,000) keeps the stored budget; send null for the full site. An omitted competitorAutoAliases keeps the stored answer-derived competitor alias mode: `off` (no unattended detection pass), `preview` (the default: detect and log, store nothing) or `apply` (store the detected names, which restates history).",
3442
+ description: "Create or replace a Canonry project. PUT semantics: fields not in the request are reset to their defaults. Provide the full intended project shape. Exceptions: an omitted providerDispatchModes (provider \u2192 sync|batch for scheduled sweeps) keeps the stored preference; send {} to clear it. An omitted qualifiedAliases (the aliases Simple sentiment treats as this brand's own names) keeps the stored list, minus names that no longer qualify (a removed alias, a spelling of the display name, or a competitor's name); send [] to clear it. Competitors are not part of this request, but a new identity (display name, aliases, domains) that claims a tracked competitor's curated alias drops that alias, and the drop is audited. An omitted siteAuditMaxPages (the Agent Readiness page budget for scans that set none, 1 to 50,000) keeps the stored budget; send null for the full site. An omitted siteAuditDomains (owned domains every Agent Readiness scan covers besides the main domain) keeps the stored list, minus domains no longer owned; send [] for the main domain only. An omitted competitorAutoAliases keeps the stored answer-derived competitor alias mode: `off` (no unattended detection pass), `preview` (the default: detect and log, store nothing) or `apply` (store the detected names, which restates history).",
3439
3443
  access: "write",
3440
3444
  tier: "setup",
3441
3445
  inputSchema: projectUpsertInputSchema,
@@ -3446,7 +3450,7 @@ var rawCanonryMcpTools = [
3446
3450
  defineTool({
3447
3451
  name: "canonry_project_update",
3448
3452
  title: "Update project fields",
3449
- description: "Update named fields on an existing Canonry project with PATCH semantics. Omitted fields keep their stored values, measurement merges one level, and expectedConfigRevision prevents overwriting a newer edit. Prefer this for targeted changes over canonry_project_upsert.",
3453
+ description: "Update named fields on an existing Canonry project with PATCH semantics. Omitted fields keep their stored values, measurement merges one level, and expectedConfigRevision prevents overwriting a newer edit. siteAuditDomains lists the owned domains every Agent Readiness scan covers besides the main domain; each must be in ownedDomains, so send both when adding a new site. Prefer this for targeted changes over canonry_project_upsert.",
3450
3454
  access: "write",
3451
3455
  tier: "setup",
3452
3456
  inputSchema: projectPatchInputSchema,
@@ -3457,7 +3461,7 @@ var rawCanonryMcpTools = [
3457
3461
  defineTool({
3458
3462
  name: "canonry_apply_config",
3459
3463
  title: "Apply project config",
3460
- description: "Apply one Canonry config-as-code project document. Replaces the project to match the config; fields omitted from the spec are reset to defaults, with these exceptions: a spec with neither queries nor keywords leaves the tracked-query basket unchanged (to clear the basket, pass an explicit empty queries list); an omitted providerDispatchModes keeps the stored preference; an omitted qualifiedAliases keeps the stored list, minus names that no longer qualify (a removed alias, a spelling of the display name, or a competitor's name); send [] to clear it; and a competitor given as a plain domain keeps its stored curated aliases, while `{ domain, aliases }` sets them exactly (`[]` clears). A spec identity that claims a competitor's alias drops that alias (audited); a new competitor whose name overlaps another competitor's alias (one brand key contains the other) or that is the project's own site fails the apply. An omitted siteAuditMaxPages keeps the stored Agent Readiness page budget (null means the full site). An omitted competitorAutoAliases keeps the stored answer-derived competitor alias mode (off, preview or apply). For multi-document YAML, call this tool once per project document. Call canonry_apply_config_preview first.",
3464
+ description: "Apply one Canonry config-as-code project document. Replaces the project to match the config; fields omitted from the spec are reset to defaults, with these exceptions: a spec with neither queries nor keywords leaves the tracked-query basket unchanged (to clear the basket, pass an explicit empty queries list); an omitted providerDispatchModes keeps the stored preference; an omitted qualifiedAliases keeps the stored list, minus names that no longer qualify (a removed alias, a spelling of the display name, or a competitor's name); send [] to clear it; and a competitor given as a plain domain keeps its stored curated aliases, while `{ domain, aliases }` sets them exactly (`[]` clears). A spec identity that claims a competitor's alias drops that alias (audited); a new competitor whose name overlaps another competitor's alias (one brand key contains the other) or that is the project's own site fails the apply. An omitted siteAuditMaxPages keeps the stored Agent Readiness page budget (null means the full site). An omitted siteAuditDomains keeps the stored list of owned domains each Agent Readiness scan covers, minus domains the spec no longer owns. An omitted competitorAutoAliases keeps the stored answer-derived competitor alias mode (off, preview or apply). For multi-document YAML, call this tool once per project document. Call canonry_apply_config_preview first.",
3461
3465
  access: "write",
3462
3466
  tier: "core",
3463
3467
  inputSchema: applyConfigInputSchema,
@@ -4404,7 +4408,7 @@ var rawCanonryMcpTools = [
4404
4408
  defineTool({
4405
4409
  name: "canonry_agent_readiness_overview",
4406
4410
  title: "Get Agent Readiness overview",
4407
- description: "For a requested scan date pass date=YYYY-MM-DD. If the year was omitted and that date has no data, use availableScanDates.matchingMonthDayDates to resolve the year and request the exact returned date before concluding the historical scan is missing. recentDates and matchingMonthDayDates are bounded; totalDates and matchingMonthDayTotal report their full counts. No automatic date fallback. inventorySummary provides complete eligibility counts and disjoint excluded reasons, including terminal redirects; unknown indexability is not canonical-away. Start an Agent Readiness investigation with the latest or selected scan summary: root URL, completeness, crawl and link counts, budgets, versions, termination, and dead-link check state. An older scorecard-only scan has no crawl, and this never fabricates one. Follow with a focused subgraph (canonry_agent_readiness_subgraph), shortest path (canonry_agent_readiness_path), or scan changes (canonry_agent_readiness_changes); never request the interactive graph projection through MCP.",
4411
+ description: "For a requested scan date pass date=YYYY-MM-DD. If the year was omitted and that date has no data, use availableScanDates.matchingMonthDayDates to resolve the year and request the exact returned date before concluding the historical scan is missing. recentDates and matchingMonthDayDates are bounded; totalDates and matchingMonthDayTotal report their full counts. No automatic date fallback. inventorySummary provides complete eligibility counts and disjoint excluded reasons, including terminal redirects; unknown indexability is not canonical-away. Start an Agent Readiness investigation with the latest or selected scan summary: root URL, completeness, crawl and link counts, budgets, versions, termination, and dead-link check state. sites lists every site the scan covered (main domain first) with its page counts, score and, when it could not be reached, the reason; pass one as site to the pages, structure and issues reads. An older scorecard-only scan has no crawl, and this never fabricates one. Follow with a focused subgraph (canonry_agent_readiness_subgraph), shortest path (canonry_agent_readiness_path), or scan changes (canonry_agent_readiness_changes); never request the interactive graph projection through MCP.",
4408
4412
  access: "read",
4409
4413
  tier: "monitoring",
4410
4414
  inputSchema: technicalAeoCrawlInputSchema,
@@ -4425,7 +4429,8 @@ var rawCanonryMcpTools = [
4425
4429
  handler: (client, input) => client.getSiteAuditIssues(input.project, {
4426
4430
  runId: input.runId,
4427
4431
  cursor: input.cursor,
4428
- limit: input.limit
4432
+ limit: input.limit,
4433
+ site: input.site
4429
4434
  })
4430
4435
  }),
4431
4436
  defineTool({
@@ -4441,7 +4446,8 @@ var rawCanonryMcpTools = [
4441
4446
  handler: (client, input) => client.getSiteAuditIssuePages(input.project, input.issueId, {
4442
4447
  runId: input.runId,
4443
4448
  cursor: input.cursor,
4444
- limit: input.limit
4449
+ limit: input.limit,
4450
+ site: input.site
4445
4451
  })
4446
4452
  }),
4447
4453
  defineTool({
@@ -4516,7 +4522,7 @@ var rawCanonryMcpTools = [
4516
4522
  defineTool({
4517
4523
  name: "canonry_agent_readiness_score",
4518
4524
  title: "Get Agent Readiness score",
4519
- description: "pagesFailing and pagesPartial are independent counts; their sum is the number of audited pages below pass for that factor. Any failing page makes a factor fail, independently of its average score or affected-page count. These counts use the audited-page population; crawl eligibility is a separate inventory population. affectedPageRanking orders recorded per-factor below-pass counts from largest to smallest; this is affected-page breadth, not a prediction of mention or citation lift. Factor cohorts overlap, so do not add their counts together. runSelection flags same-date ambiguity and prefers a complete run on the latest scan date, otherwise the largest page sample. Get the Agent Readiness scorecard for a project: the aggregate 0\u2013100 score of the latest scan, per-factor site-level averages (with pass/partial/fail distribution), cross-cutting issues, prioritized fixes, and the delta vs the previous audit. A factor's share of the site score is `sharePct` (0\u2013100, the shares add up to 100; null for a scan that did not record it); its `weight` is relative and never a percentage. When `hasData` is false, no scored audit is available for the selected scan; a stored crawl may still exist. Inspect the stored crawl with canonry_agent_readiness_overview before proposing a new scan.",
4525
+ description: "pagesFailing and pagesPartial are independent counts; their sum is the number of audited pages below pass for that factor. Any failing page makes a factor fail, independently of its average score or affected-page count. These counts use the audited-page population; crawl eligibility is a separate inventory population. affectedPageRanking orders recorded per-factor below-pass counts from largest to smallest; this is affected-page breadth, not a prediction of mention or citation lift. Factor cohorts overlap, so do not add their counts together. runSelection flags same-date ambiguity and prefers a complete run on the latest scan date, otherwise the largest page sample. Get the Agent Readiness scorecard for a project: the aggregate 0\u2013100 score of the latest scan, per-factor site-level averages (with pass/partial/fail distribution), cross-cutting issues, prioritized fixes, and the delta vs the previous audit. A factor's share of the site score is `sharePct` (0\u2013100, the shares add up to 100; null for a scan that did not record it); its `weight` is relative and never a percentage. When `hasData` is false, no scored audit is available for the selected scan; a stored crawl may still exist. When the scan covered more than one site, `sites` gives each site's score (the same rounded mean of its pages) and pages scored; `aggregateScore` stays the score over every page. `deltaUnavailableReason: sites-changed` means the previous scan scored a different set of sites (one added, removed or not reached), so `deltaScore` and `trend` are null rather than a change between unlike scores. Inspect the stored crawl with canonry_agent_readiness_overview before proposing a new scan.",
4520
4526
  access: "read",
4521
4527
  tier: "monitoring",
4522
4528
  inputSchema: technicalAeoScoreInputSchema,
@@ -4597,6 +4603,7 @@ var rawCanonryMcpTools = [
4597
4603
  auditState: input.auditState,
4598
4604
  urlVersions: input.urlVersions,
4599
4605
  sort: input.sort,
4606
+ site: input.site,
4600
4607
  cursor: input.cursor,
4601
4608
  limit: input.limit
4602
4609
  })
@@ -4612,6 +4619,7 @@ var rawCanonryMcpTools = [
4612
4619
  openApiOperations: ["GET /api/v1/projects/{name}/agent-readiness/structure"],
4613
4620
  handler: (client, input) => client.getTechnicalAeoStructure(input.project, {
4614
4621
  runId: input.runId,
4622
+ site: input.site,
4615
4623
  parentPath: input.parentPath,
4616
4624
  cursor: input.cursor,
4617
4625
  limit: input.limit
@@ -4671,7 +4679,7 @@ var rawCanonryMcpTools = [
4671
4679
  defineTool({
4672
4680
  name: "canonry_agent_readiness_run",
4673
4681
  title: "Run Agent Readiness audit scan",
4674
- description: "Start an Agent Readiness audit scan (a site-audit run). The scan discovers root, sitemap, and linked pages. Without maxPages it uses the project's saved page budget (siteAuditMaxPages), else the full site (up to 50,000 pages), and the engine derives the link-observation budget from that page count with a 100,000 floor, so raising maxPages raises it too. An explicit maxEdges is a ceiling that replaces the derivation and can sit below it. It returns {runId, status} and continues in the background. If an active run has identical effective options, this tool returns it; different options are refused. Poll canonry_run_get, then read canonry_agent_readiness_overview and canonry_agent_readiness_score.",
4682
+ description: "Start an Agent Readiness audit scan (a site-audit run). The scan discovers root, sitemap, and linked pages, on the main domain and on each owned domain it includes (sites, else the project's saved siteAuditDomains), with links between them counted as internal. Without maxPages it uses the project's saved page budget (siteAuditMaxPages), else the full site (up to 50,000 pages), and the engine derives the link-observation budget from that page count with a 100,000 floor, so raising maxPages raises it too. An explicit maxEdges is a ceiling that replaces the derivation and can sit below it. It returns {runId, status} and continues in the background. If an active run has identical effective options, this tool returns it; different options are refused. Poll canonry_run_get, then read canonry_agent_readiness_overview and canonry_agent_readiness_score.",
4675
4683
  access: "write",
4676
4684
  tier: "monitoring",
4677
4685
  inputSchema: technicalAeoRunInputSchema,
@@ -4685,7 +4693,8 @@ var rawCanonryMcpTools = [
4685
4693
  maxDepth: input.maxDepth,
4686
4694
  checkDeadLinks: input.checkDeadLinks,
4687
4695
  includeGeo: input.includeGeo,
4688
- includeAgentSkills: input.includeAgentSkills
4696
+ includeAgentSkills: input.includeAgentSkills,
4697
+ ...input.sites !== void 0 ? { sites: input.sites } : {}
4689
4698
  })
4690
4699
  }),
4691
4700
  // ----- Google Marketing: Google Ads + Google Tag Manager -----
@@ -2,18 +2,18 @@ import {
2
2
  configExists,
3
3
  loadConfigRaw,
4
4
  saveConfigPatch
5
- } from "./chunk-EE3QTCLS.js";
5
+ } from "./chunk-4CF5536B.js";
6
6
  import {
7
7
  BUNDLED_SKILL_NAMES,
8
8
  installSkills
9
- } from "./chunk-FBO25TA3.js";
9
+ } from "./chunk-RXWD25P7.js";
10
10
  import {
11
11
  PACKAGE_VERSION
12
12
  } from "./chunk-AOJU5LKX.js";
13
13
  import {
14
14
  SKILL_MANIFEST_FILENAME,
15
15
  SkillsClients
16
- } from "./chunk-O7S7OHLE.js";
16
+ } from "./chunk-NHBXQWE3.js";
17
17
 
18
18
  // src/skills-autosync.ts
19
19
  import fs from "fs";