literally-aeo 0.2.0 → 0.2.1

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 (265) hide show
  1. package/README.md +29 -1
  2. package/dist/author-tools.js +479 -397
  3. package/dist/cli.mjs +777 -382
  4. package/dist/lib/access/schema.js +6 -6
  5. package/dist/lib/agents/author-schema.js +10 -10
  6. package/dist/lib/agents/author-validation.js +18 -18
  7. package/dist/lib/agents/copy-validation.js +22 -21
  8. package/dist/lib/agents/copywriter-input.js +22 -7
  9. package/dist/lib/agents/facts.js +21 -6
  10. package/dist/lib/agents/narrative-facts.js +20 -2
  11. package/dist/lib/agents/verifier.js +25 -24
  12. package/dist/lib/analysis/domain-classifier.js +19 -20
  13. package/dist/lib/analysis/domain-labels.js +10 -10
  14. package/dist/lib/analysis/progress-schema.js +2 -2
  15. package/dist/lib/analysis/progress.js +18 -19
  16. package/dist/lib/analysis/retrieval.js +20 -3
  17. package/dist/lib/analysis/scoring.js +20 -3
  18. package/dist/lib/analysis/search-analyzer.js +19 -5
  19. package/dist/lib/analysis/sentiment.js +16 -17
  20. package/dist/lib/author/examples.js +11 -11
  21. package/dist/lib/bundle/contracts.js +14 -12
  22. package/dist/lib/bundle/export.js +27 -27
  23. package/dist/lib/bundle/isolation.js +2 -2
  24. package/dist/lib/bundle/journal.js +13 -13
  25. package/dist/lib/bundle/project-journal.js +17 -17
  26. package/dist/lib/bundle/project.js +25 -25
  27. package/dist/lib/bundle/read.js +28 -28
  28. package/dist/lib/bundle/recorder.js +15 -15
  29. package/dist/lib/bundle/redact.js +13 -13
  30. package/dist/lib/bundle/trace-coverage.js +13 -13
  31. package/dist/lib/bundle/verify-integrity.js +15 -15
  32. package/dist/lib/bundle/verify-measurement.js +21 -21
  33. package/dist/lib/bundle/verify-report.js +29 -29
  34. package/dist/lib/bundle/verify.js +37 -37
  35. package/dist/lib/capture-manifest.js +12 -12
  36. package/dist/lib/checks/crawler-access.js +4 -1
  37. package/dist/lib/checks/renderability.js +5 -1
  38. package/dist/lib/checks/run-checks.js +21 -18
  39. package/dist/lib/chunks/{chunk-BSRKN6FU.js → chunk-2FOKEIIN.js} +1 -1
  40. package/dist/lib/chunks/{chunk-JXMDOAKA.js → chunk-2KH7LNK7.js} +11 -11
  41. package/dist/lib/chunks/{chunk-HFRAHG5C.js → chunk-3GPUCXVA.js} +14 -14
  42. package/dist/lib/chunks/{chunk-TJQ5OPLQ.js → chunk-3OE4UQIB.js} +7 -7
  43. package/dist/lib/chunks/{chunk-FOCJ7HPC.js → chunk-3OWJBGQE.js} +11 -11
  44. package/dist/lib/chunks/{chunk-Y4OGZ3Q5.js → chunk-46PVVQYR.js} +1 -1
  45. package/dist/lib/chunks/{chunk-EV4DRS5M.js → chunk-4XIAXX7K.js} +1 -1
  46. package/dist/lib/chunks/{chunk-IBOWGKN7.js → chunk-52F5XYOW.js} +1 -1
  47. package/dist/lib/chunks/{chunk-OQU5IXAJ.js → chunk-66DVMLGR.js} +10 -10
  48. package/dist/lib/chunks/{chunk-FFOVLI3U.js → chunk-66T7JC57.js} +12 -10
  49. package/dist/lib/chunks/{chunk-IE7NAL6B.js → chunk-6HMHXSCS.js} +2 -2
  50. package/dist/lib/chunks/{chunk-7Z27HQWL.js → chunk-6JICXLDA.js} +3 -3
  51. package/dist/lib/chunks/chunk-75DMLOQ7.js +127 -0
  52. package/dist/lib/chunks/{chunk-6G25V4CF.js → chunk-7CW6U5WJ.js} +1 -1
  53. package/dist/lib/chunks/{chunk-622NMXN6.js → chunk-7HM6IZ3L.js} +2 -2
  54. package/dist/lib/chunks/{chunk-XR44YSHT.js → chunk-7LBSNDRR.js} +10 -8
  55. package/dist/lib/chunks/{chunk-F4W5YHDZ.js → chunk-7WO3FFPS.js} +2 -2
  56. package/dist/lib/chunks/{chunk-ULRXHSJL.js → chunk-7YDXD4MD.js} +9 -6
  57. package/dist/lib/chunks/{chunk-NGHAP2P5.js → chunk-AAFHXNLU.js} +4 -4
  58. package/dist/lib/chunks/{chunk-OBXAHX3L.js → chunk-AASWJR7Q.js} +1 -5
  59. package/dist/lib/chunks/{chunk-VPZQGND4.js → chunk-AJKV46SM.js} +3 -3
  60. package/dist/lib/chunks/{chunk-NCXSNHXX.js → chunk-AJO7XVXK.js} +12 -12
  61. package/dist/lib/chunks/{chunk-5JPYM4MD.js → chunk-AK6YNTCV.js} +1 -1
  62. package/dist/lib/chunks/{chunk-MNWO7EHC.js → chunk-BFWK3TBN.js} +2 -2
  63. package/dist/lib/chunks/{chunk-BGOIPHJZ.js → chunk-BGAHZIL3.js} +18 -12
  64. package/dist/lib/chunks/{chunk-ZCOI3HE2.js → chunk-BRENK356.js} +1 -1
  65. package/dist/lib/chunks/{chunk-KJMU5KH4.js → chunk-BXF4OC74.js} +18 -9
  66. package/dist/lib/chunks/{chunk-NCLFZOZU.js → chunk-CH7OCYDL.js} +1 -1
  67. package/dist/lib/chunks/{chunk-FUAUPNRO.js → chunk-DDS4G4DO.js} +7 -7
  68. package/dist/lib/chunks/{chunk-OKL7GN2F.js → chunk-DL6YQDTE.js} +31 -5
  69. package/dist/lib/chunks/{chunk-PDS5KWO3.js → chunk-E2YTTB6Q.js} +56 -42
  70. package/dist/lib/chunks/{chunk-UEMZYHYJ.js → chunk-E3OGPTUY.js} +1 -1
  71. package/dist/lib/chunks/{chunk-SDWYZM64.js → chunk-EDQTINTL.js} +5 -1
  72. package/dist/lib/chunks/chunk-ESEMYWUH.js +257 -0
  73. package/dist/lib/chunks/{chunk-YHS5IEVZ.js → chunk-F2NSJ6PG.js} +12 -8
  74. package/dist/lib/chunks/{chunk-BLKLPUYR.js → chunk-F7DBTXKG.js} +6 -6
  75. package/dist/lib/chunks/{chunk-EE26FNSY.js → chunk-FDM2YNQL.js} +1 -1
  76. package/dist/lib/chunks/{chunk-GESHTTSA.js → chunk-FIC7JSR4.js} +2 -2
  77. package/dist/lib/chunks/{chunk-RJ5R6YYA.js → chunk-FJL2V6P5.js} +6 -6
  78. package/dist/lib/chunks/{chunk-QSJ4IKUF.js → chunk-FL6LN2K6.js} +5 -5
  79. package/dist/lib/chunks/{chunk-663HABKP.js → chunk-HI3PD3KR.js} +8 -8
  80. package/dist/lib/chunks/{chunk-EJ655TVU.js → chunk-I3UE52ZV.js} +2 -2
  81. package/dist/lib/chunks/{chunk-ML4W6KC6.js → chunk-J5NPHPXY.js} +5 -4
  82. package/dist/lib/chunks/{chunk-V7OAPKNF.js → chunk-JBOOD6MU.js} +10 -9
  83. package/dist/lib/chunks/{chunk-YAAUWCJ4.js → chunk-JKPBXPCW.js} +3 -3
  84. package/dist/lib/chunks/{chunk-5HT55QYX.js → chunk-JQDQVG3D.js} +1 -1
  85. package/dist/lib/chunks/{chunk-YRBIC5QH.js → chunk-JXBLGCXZ.js} +1 -1
  86. package/dist/lib/chunks/{chunk-D2INDP5W.js → chunk-JYFEXVWC.js} +7 -6
  87. package/dist/lib/chunks/{chunk-W2VGLWTS.js → chunk-K2FZFESR.js} +10 -10
  88. package/dist/lib/chunks/{chunk-DC6PN7QJ.js → chunk-K4Y5NT4M.js} +11 -7
  89. package/dist/lib/chunks/chunk-K7YFL5KB.js +182 -0
  90. package/dist/lib/chunks/{chunk-ZYSPTOKK.js → chunk-KQCRJIEG.js} +1 -1
  91. package/dist/lib/chunks/{chunk-RR46EDDR.js → chunk-KSOHZKV5.js} +22 -22
  92. package/dist/lib/chunks/{chunk-R6XDZWUL.js → chunk-LR27H2HZ.js} +11 -11
  93. package/dist/lib/chunks/{chunk-KZR25REO.js → chunk-LTI2YYU3.js} +1 -1
  94. package/dist/lib/chunks/{chunk-EPQHVILQ.js → chunk-MA27TFEY.js} +5 -3
  95. package/dist/lib/chunks/{chunk-UZJSTJFP.js → chunk-MENTBQGB.js} +6 -5
  96. package/dist/lib/chunks/chunk-MPJCZN4G.js +155 -0
  97. package/dist/lib/chunks/{chunk-QHUDJVPJ.js → chunk-MTDYBJXH.js} +7 -7
  98. package/dist/lib/chunks/{chunk-BE4ENGUY.js → chunk-OQFAMKLN.js} +6 -6
  99. package/dist/lib/chunks/{chunk-SHUMCKCS.js → chunk-PWOYEIPF.js} +4 -4
  100. package/dist/lib/chunks/{chunk-4PD65FRJ.js → chunk-PXB4PWJI.js} +3 -3
  101. package/dist/lib/chunks/{chunk-7ZOJE6BH.js → chunk-QGZ4QSUE.js} +8 -7
  102. package/dist/lib/chunks/{chunk-GNMFJ2OK.js → chunk-QJZTDZMB.js} +8 -8
  103. package/dist/lib/chunks/{chunk-HQG63ZKO.js → chunk-R2AJYV6A.js} +17 -17
  104. package/dist/lib/chunks/{chunk-5B3RNVZ6.js → chunk-RK57YZKM.js} +1 -1
  105. package/dist/lib/chunks/{chunk-EBUQPCKB.js → chunk-RPTADJXD.js} +1 -1
  106. package/dist/lib/chunks/{chunk-GDKGZQ3T.js → chunk-RXSHKWZJ.js} +3 -3
  107. package/dist/lib/chunks/{chunk-CUYVHXHI.js → chunk-SD7LR26G.js} +3 -3
  108. package/dist/lib/chunks/{chunk-6GHHNPFJ.js → chunk-SIJOQRRK.js} +1 -1
  109. package/dist/lib/chunks/{chunk-2GU6CNQI.js → chunk-SLAPBFRH.js} +5 -5
  110. package/dist/lib/chunks/{chunk-2ROXN2EC.js → chunk-SMPP7B7F.js} +10 -10
  111. package/dist/lib/chunks/{chunk-L7MEIRJB.js → chunk-SQQ56UP2.js} +15 -6
  112. package/dist/lib/chunks/{chunk-WVACVWBL.js → chunk-T5XQ6NXD.js} +6 -4
  113. package/dist/lib/chunks/{chunk-EYKINDNK.js → chunk-TAPVCSCR.js} +1 -1
  114. package/dist/lib/chunks/{chunk-ISN6MBNB.js → chunk-U5USH2HB.js} +7 -7
  115. package/dist/lib/chunks/{chunk-MRL5RUP7.js → chunk-U6BW6LGX.js} +10 -3
  116. package/dist/lib/chunks/{chunk-3JO5TXBA.js → chunk-UYDQXXDQ.js} +4 -4
  117. package/dist/lib/chunks/{chunk-LOBXOZ2R.js → chunk-V5JJEEBT.js} +1 -1
  118. package/dist/lib/chunks/{chunk-OU73OUX4.js → chunk-VPXYGN4I.js} +71 -6
  119. package/dist/lib/chunks/{chunk-Z7V63UZA.js → chunk-VXDMOB7O.js} +4 -4
  120. package/dist/lib/chunks/{chunk-W5DC23OP.js → chunk-WCLKIPJV.js} +1 -1
  121. package/dist/lib/chunks/{chunk-7XO3SQAX.js → chunk-WDT2Y7D7.js} +1 -1
  122. package/dist/lib/chunks/{chunk-OVUCZLH2.js → chunk-WIBMVNIH.js} +2 -2
  123. package/dist/lib/chunks/{chunk-5T3V6XJS.js → chunk-WNIXDMJL.js} +1 -1
  124. package/dist/lib/chunks/{chunk-HTOD4W4E.js → chunk-WZGI7UVM.js} +2 -2
  125. package/dist/lib/chunks/{chunk-D3GE3OCB.js → chunk-XAKME6NM.js} +1 -1
  126. package/dist/lib/chunks/{chunk-I3XGRGXE.js → chunk-XAN4CRFP.js} +33 -41
  127. package/dist/lib/chunks/{chunk-AYY4MYTW.js → chunk-XFUYEFQP.js} +1 -1
  128. package/dist/lib/chunks/{chunk-G62E525I.js → chunk-XNTFOVCE.js} +2 -2
  129. package/dist/lib/chunks/{chunk-D7GEQVLL.js → chunk-YKJHFD64.js} +1 -1
  130. package/dist/lib/chunks/{chunk-VKM6MMA4.js → chunk-YZEZRQIG.js} +33 -2
  131. package/dist/lib/chunks/{chunk-5ZITQDVE.js → chunk-ZQ3ER7JD.js} +12 -13
  132. package/dist/lib/cli/bundle-commands.js +87 -85
  133. package/dist/lib/cli/run-commands.js +104 -100
  134. package/dist/lib/cli/status-command.js +73 -71
  135. package/dist/lib/codex-workflow/aggregate.js +21 -22
  136. package/dist/lib/codex-workflow/author-search.js +4 -3
  137. package/dist/lib/codex-workflow/author-tools.js +17 -15
  138. package/dist/lib/codex-workflow/author.js +36 -33
  139. package/dist/lib/codex-workflow/capture.js +24 -24
  140. package/dist/lib/codex-workflow/checkpoint.js +13 -13
  141. package/dist/lib/codex-workflow/checks.js +15 -16
  142. package/dist/lib/codex-workflow/copy-editor.js +30 -29
  143. package/dist/lib/codex-workflow/copy-recovery.js +11 -11
  144. package/dist/lib/codex-workflow/copy.js +27 -26
  145. package/dist/lib/codex-workflow/finish.js +34 -34
  146. package/dist/lib/codex-workflow/loop.js +62 -60
  147. package/dist/lib/codex-workflow/quality.js +11 -11
  148. package/dist/lib/codex-workflow/run-inputs.js +12 -12
  149. package/dist/lib/codex-workflow/run-source.js +26 -23
  150. package/dist/lib/codex-workflow/schemas.js +11 -11
  151. package/dist/lib/codex-workflow/session.js +14 -14
  152. package/dist/lib/codex-workflow/stage.js +43 -40
  153. package/dist/lib/codex-workflow/workdir.js +13 -13
  154. package/dist/lib/engine/audit-file.js +14 -10
  155. package/dist/lib/engine/author.js +50 -47
  156. package/dist/lib/engine/cost-estimate.js +18 -16
  157. package/dist/lib/engine/local-run.js +72 -70
  158. package/dist/lib/engine/preflight.js +11 -11
  159. package/dist/lib/engine/rejudge.js +78 -76
  160. package/dist/lib/engine/run-status.js +73 -71
  161. package/dist/lib/engine/templates.js +15 -11
  162. package/dist/lib/grounding/chromium-guard.js +13 -0
  163. package/dist/lib/grounding/controller.js +11 -10
  164. package/dist/lib/grounding/extract.js +10 -9
  165. package/dist/lib/grounding/fetch.js +4 -7
  166. package/dist/lib/grounding/file-store.js +5 -5
  167. package/dist/lib/grounding/grounding-runtime.js +32 -31
  168. package/dist/lib/grounding/guarded-request.js +18 -0
  169. package/dist/lib/grounding/model.js +9 -8
  170. package/dist/lib/grounding/profile.js +4 -4
  171. package/dist/lib/grounding/recorded-tools.js +16 -16
  172. package/dist/lib/grounding/session.js +3 -3
  173. package/dist/lib/grounding/tools.js +4 -3
  174. package/dist/lib/grounding/validation.js +2 -2
  175. package/dist/lib/harness/report/artifacts.js +11 -11
  176. package/dist/lib/harness/report/capture-coverage.js +4 -4
  177. package/dist/lib/lib/checkpoint.js +10 -10
  178. package/dist/lib/lib/progress-comparison.js +2 -2
  179. package/dist/lib/models/batching.js +3 -3
  180. package/dist/lib/models/structured.js +2 -2
  181. package/dist/lib/pipeline.js +19 -20
  182. package/dist/lib/probes/agent-clis.js +10 -10
  183. package/dist/lib/probes/probes.js +11 -11
  184. package/dist/lib/probes/web-tool-guard.js +3 -3
  185. package/dist/lib/report/contracts.js +4 -4
  186. package/dist/lib/report/core/progress-comparison.js +2 -2
  187. package/dist/lib/report/core/progress-schema.js +2 -2
  188. package/dist/lib/report/core/schema.js +2 -4
  189. package/dist/lib/report/core/surfaces.js +1 -3
  190. package/dist/lib/runner.js +23 -24
  191. package/dist/lib/schema.js +19 -13
  192. package/dist/lib/section-result.js +14 -15
  193. package/dist/lib/stores/artifacts.js +17 -17
  194. package/dist/lib/stores/files.js +31 -31
  195. package/dist/lib/stores/local-versions.js +10 -10
  196. package/dist/lib/stores/memory.js +33 -33
  197. package/dist/lib/stores/publication.js +23 -22
  198. package/dist/lib/surfaces.js +1 -3
  199. package/dist/lib/viewer/server.js +38 -38
  200. package/dist/lib/workflow/schema.js +8 -8
  201. package/dist/types/agents/author-schema.d.ts +3 -3
  202. package/dist/types/analysis/scoring.d.ts +2 -2
  203. package/dist/types/bundle/contracts.d.ts +3 -2
  204. package/dist/types/checks/crawler-access.d.ts +3 -2
  205. package/dist/types/checks/renderability.d.ts +8 -1
  206. package/dist/types/codex-workflow/author-tools.d.ts +3 -3
  207. package/dist/types/codex-workflow/run-inputs.d.ts +3 -0
  208. package/dist/types/codex-workflow/schemas.d.ts +6 -6
  209. package/dist/types/engine/audit-file.d.ts +6 -1
  210. package/dist/types/engine/preflight.d.ts +2 -0
  211. package/dist/types/grounding/chromium-guard.d.ts +41 -0
  212. package/dist/types/grounding/fetch.d.ts +0 -10
  213. package/dist/types/grounding/guarded-request.d.ts +76 -0
  214. package/dist/types/harness/report/artifacts.d.ts +1 -0
  215. package/dist/types/lib/checkpoint.d.ts +5 -6
  216. package/dist/types/pipeline.d.ts +2 -1
  217. package/dist/types/probes/probes.d.ts +2 -1
  218. package/dist/types/report/contracts.d.ts +2 -0
  219. package/dist/types/report/core/schema.d.ts +3 -1
  220. package/dist/types/report/core/surfaces.d.ts +0 -1
  221. package/dist/types/schema.d.ts +22 -0
  222. package/dist/types/section-result.d.ts +1 -1
  223. package/package.json +1 -1
  224. package/resources/guide/OPERATOR.md +12 -3
  225. package/src/agents/author-schema.ts +13 -1
  226. package/src/agents/author-validation.ts +2 -5
  227. package/src/agents/facts.ts +8 -8
  228. package/src/agents/narrative-facts.ts +9 -20
  229. package/src/agents/verifier.ts +2 -2
  230. package/src/analysis/progress.ts +1 -0
  231. package/src/analysis/scoring.ts +9 -13
  232. package/src/bundle/contracts.ts +7 -2
  233. package/src/bundle/verify.ts +3 -3
  234. package/src/capture-manifest.ts +4 -0
  235. package/src/checks/crawler-access.ts +70 -50
  236. package/src/checks/renderability.ts +113 -87
  237. package/src/checks/run-checks.ts +16 -3
  238. package/src/cli/run-commands.ts +2 -0
  239. package/src/codex-workflow/aggregate.ts +1 -0
  240. package/src/codex-workflow/author-tools.ts +39 -60
  241. package/src/codex-workflow/capture.ts +1 -0
  242. package/src/codex-workflow/copy-editor.ts +3 -3
  243. package/src/codex-workflow/loop.ts +2 -2
  244. package/src/engine/audit-file.ts +89 -2
  245. package/src/engine/guide/OPERATOR.md +12 -3
  246. package/src/engine/preflight.ts +50 -0
  247. package/src/grounding/chromium-guard.ts +273 -0
  248. package/src/grounding/controller.ts +1 -1
  249. package/src/grounding/fetch.ts +39 -276
  250. package/src/grounding/guarded-request.ts +428 -0
  251. package/src/grounding/tools.ts +2 -1
  252. package/src/grounding/validation.ts +1 -1
  253. package/src/lib/checkpoint.ts +15 -16
  254. package/src/pipeline.ts +13 -7
  255. package/src/probes/agent-clis.ts +2 -3
  256. package/src/probes/probes.ts +24 -10
  257. package/src/report/core/schema.ts +4 -1
  258. package/src/report/core/surfaces.ts +4 -8
  259. package/src/runner.ts +1 -0
  260. package/src/schema.ts +68 -4
  261. package/src/section-result.ts +6 -5
  262. package/dist/lib/chunks/chunk-6EH4N3EU.js +0 -113
  263. package/dist/lib/chunks/chunk-SWJ7KQSL.js +0 -318
  264. package/dist/lib/chunks/{chunk-CO5T6WU5.js → chunk-OD36HUXA.js} +3 -3
  265. package/dist/lib/chunks/{chunk-XI5H46DF.js → chunk-SASE7U6E.js} +3 -3
@@ -1,6 +1,3 @@
1
- import {
2
- getGoogleAIOverview
3
- } from "./chunk-IB6RROHE.js";
4
1
  import {
5
2
  extractAnthropicRetrieval,
6
3
  extractGeminiRetrieval,
@@ -8,6 +5,9 @@ import {
8
5
  retrievalResultUrls,
9
6
  rewriteRetrievalUrls
10
7
  } from "./chunk-S2SFHTJD.js";
8
+ import {
9
+ getGoogleAIOverview
10
+ } from "./chunk-IB6RROHE.js";
11
11
  import {
12
12
  ProbeTraceError,
13
13
  endAttempt,
@@ -36,6 +36,9 @@ import {
36
36
  import {
37
37
  isObject
38
38
  } from "./chunk-7PLK6VGC.js";
39
+ import {
40
+ chatRunsPerPrompt
41
+ } from "./chunk-DL6YQDTE.js";
39
42
  import {
40
43
  sleep,
41
44
  unlimited
@@ -44,9 +47,8 @@ import {
44
47
  surfaceRetrievalExposure
45
48
  } from "./chunk-HXHFMFQU.js";
46
49
  import {
47
- chatSurfaces,
48
- surfaceRunCounts
49
- } from "./chunk-OBXAHX3L.js";
50
+ chatSurfaces
51
+ } from "./chunk-AASWJR7Q.js";
50
52
 
51
53
  // src/probes/probes.ts
52
54
  import { streamText } from "ai";
@@ -225,10 +227,13 @@ var unexposedRetrieval = (surface) => {
225
227
  return { exposure: surfaceRetrievalExposure[surface], calls: [] };
226
228
  };
227
229
  var buildProbeModels = (args) => {
230
+ const runsOn = (surface) => {
231
+ return chatRunsPerPrompt(surface, args.chatProbes);
232
+ };
228
233
  const all = [
229
234
  {
230
235
  name: "chatgpt",
231
- runs: surfaceRunCounts.chatgpt,
236
+ runs: runsOn("chatgpt"),
232
237
  provider: "gateway",
233
238
  probe: async (promptText) => {
234
239
  return runSearchRequiredProbe({
@@ -242,7 +247,7 @@ var buildProbeModels = (args) => {
242
247
  },
243
248
  {
244
249
  name: "gemini",
245
- runs: surfaceRunCounts.gemini,
250
+ runs: runsOn("gemini"),
246
251
  provider: "gateway",
247
252
  probe: async (promptText) => {
248
253
  return runSearchRequiredProbe({
@@ -256,7 +261,7 @@ var buildProbeModels = (args) => {
256
261
  },
257
262
  {
258
263
  name: "claude",
259
- runs: surfaceRunCounts.claude,
264
+ runs: runsOn("claude"),
260
265
  provider: "gateway",
261
266
  probe: async (promptText) => {
262
267
  return runSearchRequiredProbe({
@@ -272,7 +277,7 @@ var buildProbeModels = (args) => {
272
277
  },
273
278
  {
274
279
  name: "perplexity",
275
- runs: surfaceRunCounts.perplexity,
280
+ runs: runsOn("perplexity"),
276
281
  provider: "gateway",
277
282
  probe: async (promptText) => {
278
283
  let streamFailure;
@@ -319,7 +324,7 @@ var buildProbeModels = (args) => {
319
324
  },
320
325
  {
321
326
  name: "google_ai_overview",
322
- runs: surfaceRunCounts.google_ai_overview,
327
+ runs: runsOn("google_ai_overview"),
323
328
  provider: "dataforseo",
324
329
  probe: async (promptText) => {
325
330
  const retrieval = unexposedRetrieval("google_ai_overview");
@@ -370,7 +375,8 @@ var runProbesForPrompts = async (job, opts = {}) => {
370
375
  const probeModels = buildProbeModels({
371
376
  geography: job.geography,
372
377
  language: job.language,
373
- surfaces: job.surfaces ?? chatSurfaces
378
+ surfaces: job.surfaces ?? chatSurfaces,
379
+ chatProbes: job.chatProbes
374
380
  });
375
381
  const limiter = job.limiter ?? unlimited();
376
382
  const tasks = [];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sourceCategories
3
- } from "./chunk-SDWYZM64.js";
3
+ } from "./chunk-EDQTINTL.js";
4
4
 
5
5
  // src/analysis/domain-labels.ts
6
6
  import { z } from "zod";
@@ -4,23 +4,26 @@ import {
4
4
  import {
5
5
  aiSearchProbeModels,
6
6
  runProbesForPrompts
7
- } from "./chunk-BGOIPHJZ.js";
7
+ } from "./chunk-BGAHZIL3.js";
8
8
  import {
9
9
  runAgentProbesForPrompts
10
- } from "./chunk-HTOD4W4E.js";
10
+ } from "./chunk-WZGI7UVM.js";
11
11
  import {
12
12
  withSection
13
13
  } from "./chunk-GVOF5ZUG.js";
14
+ import {
15
+ createLog
16
+ } from "./chunk-ZSEY7AHQ.js";
14
17
  import {
15
18
  plannedProbeUnitsForSection,
16
19
  probeUnitKey
17
- } from "./chunk-ULRXHSJL.js";
20
+ } from "./chunk-7YDXD4MD.js";
18
21
  import {
19
- createLog
20
- } from "./chunk-ZSEY7AHQ.js";
22
+ agentProbedPrompts
23
+ } from "./chunk-DL6YQDTE.js";
21
24
  import {
22
25
  isAgentSurface
23
- } from "./chunk-OBXAHX3L.js";
26
+ } from "./chunk-AASWJR7Q.js";
24
27
 
25
28
  // src/pipeline.ts
26
29
  var log = createLog("AeoPipeline");
@@ -49,13 +52,13 @@ var captureSectionProbes = async (args) => {
49
52
  category: p.category
50
53
  }));
51
54
  const agentRunsPerPrompt = args.agentProbes.runsPerPrompt;
52
- const agentPrompts = args.agentProbes.maxPromptsPerSection ? args.prompts.slice(0, args.agentProbes.maxPromptsPerSection) : args.prompts;
53
- const agentPromptInputs = promptInputs.slice(0, agentPrompts.length);
55
+ const agentPromptInputs = agentProbedPrompts(promptInputs, args.agentProbes);
54
56
  const plannedUnits = plannedProbeUnitsForSection({
55
57
  sectionKey: args.sectionKey,
56
58
  prompts: args.prompts,
57
59
  surfaces: args.surfaces,
58
- agentProbes: args.agentProbes
60
+ agentProbes: args.agentProbes,
61
+ chatProbes: args.chatProbes
59
62
  });
60
63
  const unitByKey = /* @__PURE__ */ new Map();
61
64
  for (const unit of plannedUnits) {
@@ -107,6 +110,11 @@ var captureSectionProbes = async (args) => {
107
110
  captureMetadata: {
108
111
  requestedModel: requestedModelOf(probe),
109
112
  reportedModel: probe.reportedModel ?? null,
113
+ // Progress comparisons hash these into each answer's collection
114
+ // method, so they stay as earlier releases recorded them. Chat
115
+ // depth is left out: it does not change how one answer is
116
+ // collected, and a depth difference already shows as a scope
117
+ // change.
110
118
  parameters: {
111
119
  geography: args.geography,
112
120
  language: args.language,
@@ -135,6 +143,7 @@ var captureSectionProbes = async (args) => {
135
143
  language: args.language,
136
144
  prompts: promptInputs,
137
145
  surfaces: selectedChatSurfaces,
146
+ chatProbes: args.chatProbes,
138
147
  filter: shouldRun,
139
148
  onResult: bank,
140
149
  trace,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  maxReviewRounds
3
- } from "./chunk-SDWYZM64.js";
3
+ } from "./chunk-EDQTINTL.js";
4
4
 
5
5
  // src/codex-workflow/quality.ts
6
6
  import { readFile } from "node:fs/promises";
@@ -11,10 +11,10 @@ import {
11
11
  } from "./chunk-GEFKDW7X.js";
12
12
  import {
13
13
  readRunInputs
14
- } from "./chunk-GDKGZQ3T.js";
14
+ } from "./chunk-RXSHKWZJ.js";
15
15
  import {
16
16
  stageVersions
17
- } from "./chunk-6GHHNPFJ.js";
17
+ } from "./chunk-SIJOQRRK.js";
18
18
  import {
19
19
  predecessorDir,
20
20
  readDerivedFrom
@@ -24,13 +24,13 @@ import {
24
24
  } from "./chunk-SREGO3PU.js";
25
25
  import {
26
26
  projectJournal
27
- } from "./chunk-2GU6CNQI.js";
27
+ } from "./chunk-SLAPBFRH.js";
28
28
  import {
29
29
  capturedAnswerOf
30
- } from "./chunk-5JPYM4MD.js";
30
+ } from "./chunk-AK6YNTCV.js";
31
31
  import {
32
32
  isolationLimitations
33
- } from "./chunk-BSRKN6FU.js";
33
+ } from "./chunk-2FOKEIIN.js";
34
34
  import {
35
35
  hasErrorCode
36
36
  } from "./chunk-2QLAFBCG.js";
@@ -39,14 +39,14 @@ import {
39
39
  calculationVersion,
40
40
  measurementDigest,
41
41
  predecessorPrefix
42
- } from "./chunk-WVACVWBL.js";
42
+ } from "./chunk-T5XQ6NXD.js";
43
43
  import {
44
44
  canonicalDigest,
45
45
  encodeBundleJson
46
46
  } from "./chunk-E6NQQU6V.js";
47
47
  import {
48
48
  capturePlan
49
- } from "./chunk-YHS5IEVZ.js";
49
+ } from "./chunk-F2NSJ6PG.js";
50
50
  import {
51
51
  credentialDetected
52
52
  } from "./chunk-NZFMOQHU.js";
@@ -10,18 +10,22 @@ import {
10
10
  import {
11
11
  modelBudgetLimitsSchema
12
12
  } from "./chunk-TNL2GWYR.js";
13
+ import {
14
+ groundingBundleSchema
15
+ } from "./chunk-6RAKXYSR.js";
13
16
  import {
14
17
  aeoPromptSchema,
15
18
  aeoSurfaceSchema,
16
19
  brandSchema,
17
20
  sourceCategorySchema
18
- } from "./chunk-SDWYZM64.js";
21
+ } from "./chunk-EDQTINTL.js";
19
22
  import {
20
23
  questionSetNameSchema
21
- } from "./chunk-D7GEQVLL.js";
24
+ } from "./chunk-YKJHFD64.js";
22
25
  import {
23
- groundingBundleSchema
24
- } from "./chunk-6RAKXYSR.js";
26
+ isAgentSurface,
27
+ surfaceRunCounts
28
+ } from "./chunk-AASWJR7Q.js";
25
29
 
26
30
  // src/schema.ts
27
31
  import { z } from "zod";
@@ -33,14 +37,29 @@ var aeoSectionConfigSchema = z.object({
33
37
  // markets. Omitted → the report-level set (the union shown on the page).
34
38
  competitors: z.array(brandSchema).optional()
35
39
  });
40
+ var maxRunsPerPrompt = 25;
41
+ var runsPerPromptSchema = z.number().int().min(1).max(maxRunsPerPrompt);
36
42
  var agentProbeConfigSchema = z.object({
37
43
  // Runs per prompt per agent surface.
38
- runsPerPrompt: z.number().int().min(1).max(2).default(2),
44
+ runsPerPrompt: runsPerPromptSchema.default(2),
39
45
  // Cap on how many of each section's prompts get agent probes — the FIRST N
40
46
  // prompts in config order, so the subset is stable across runs. Omitted =
41
47
  // all prompts.
42
48
  maxPromptsPerSection: z.number().int().min(1).optional()
43
49
  });
50
+ var agentProbedPrompts = (prompts, agentProbes) => {
51
+ return prompts.slice(0, agentProbes.maxPromptsPerSection ?? prompts.length);
52
+ };
53
+ var chatProbeConfigSchema = z.object({ runsPerPrompt: runsPerPromptSchema }).strict();
54
+ var chatRunsPerPrompt = (surface, chatProbes) => {
55
+ return chatProbes?.runsPerPrompt ?? surfaceRunCounts[surface];
56
+ };
57
+ var runsPerPromptOn = (surface, depth) => {
58
+ if (isAgentSurface(surface)) {
59
+ return depth.agentProbes.runsPerPrompt;
60
+ }
61
+ return chatRunsPerPrompt(surface, depth.chatProbes);
62
+ };
44
63
  var ownedCompetitorDomainSchema = z.string().trim().regex(
45
64
  /^(?=.{1,253}$)(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\.)+[A-Za-z](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\.?$/,
46
65
  "Expected a domain name without a URL, path or port"
@@ -63,6 +82,9 @@ var aeoAuditConfigSchema = z.object({
63
82
  // the schema — consumers read config.agentProbes directly, no fallbacks.
64
83
  // prefault({}) runs {} through the inner schema so its own defaults fill.
65
84
  agentProbes: agentProbeConfigSchema.prefault({}),
85
+ // Read through runsPerPromptOn or chatRunsPerPrompt, which own the
86
+ // fallback to the canonical counts.
87
+ chatProbes: chatProbeConfigSchema.optional(),
66
88
  // Renderability targets — docs, pricing, comparison pages (§7.4).
67
89
  moneyPages: z.array(z.string().url()),
68
90
  // Grounds accuracy flagging (§7.2): claims contradicting this brief are
@@ -134,6 +156,10 @@ var partialFailureSchema = z.object({
134
156
  export {
135
157
  aeoSectionConfigSchema,
136
158
  agentProbeConfigSchema,
159
+ agentProbedPrompts,
160
+ chatProbeConfigSchema,
161
+ chatRunsPerPrompt,
162
+ runsPerPromptOn,
137
163
  aeoAuditConfigSchema,
138
164
  checkpointMatchSchema,
139
165
  defaultMaxPlannedUnits,
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  createLog
3
3
  } from "./chunk-ZSEY7AHQ.js";
4
+ import {
5
+ describeSiteError
6
+ } from "./chunk-ESEMYWUH.js";
4
7
 
5
8
  // src/checks/crawler-access.ts
6
9
  var log = createLog("CrawlerAccess");
@@ -42,14 +45,12 @@ var aiBotRoster = [
42
45
  { bot: "Bytespider", kind: "training" },
43
46
  { bot: "CCBot", kind: "training" }
44
47
  ];
45
- var fetchTimeoutMs = 15e3;
46
- var probeIntervalMs = 1e3;
48
+ var requestTimeoutInMs = 15e3;
49
+ var auditUserAgent = "literally-aeo-audit/1.0";
47
50
  var controlUserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36";
48
- var sleep = (ms) => {
49
- return new Promise((resolve) => {
50
- setTimeout(resolve, ms);
51
- });
52
- };
51
+ var robotsRedirects = 5;
52
+ var robotsMaxBytes = 500 * 1024;
53
+ var pageRedirects = 5;
53
54
  var isRefused = (code) => {
54
55
  return code === 403 || code === 429;
55
56
  };
@@ -59,40 +60,55 @@ var getLiveVerdict = (liveStatus, controlStatus) => {
59
60
  }
60
61
  return isRefused(liveStatus) ? "refused_as_bot" : "ok";
61
62
  };
62
- var describeError = (error) => {
63
- return error instanceof Error ? error.message : String(error);
63
+ var getOrigin = (brandDomain) => {
64
+ return `https://${brandDomain.replace(/^https?:\/\//, "").replace(/\/.*$/, "")}`;
64
65
  };
65
- var runCrawlerAccessCheck = async (brandDomain) => {
66
- const origin = `https://${brandDomain.replace(/^https?:\/\//, "").replace(/\/.*$/, "")}`;
66
+ var runCrawlerAccessCheck = async (brandDomain, request) => {
67
+ const origin = getOrigin(brandDomain);
67
68
  const robotsUrl = `${origin}/robots.txt`;
68
69
  let robotsBody = null;
69
70
  let robotsFetchError = null;
71
+ let robotsTruncated = false;
70
72
  try {
71
- const response = await fetch(robotsUrl, {
72
- signal: AbortSignal.timeout(fetchTimeoutMs),
73
- headers: { "user-agent": "literally-aeo-audit/1.0" }
73
+ const response = await request({
74
+ url: robotsUrl,
75
+ timeoutInMs: requestTimeoutInMs,
76
+ userAgent: auditUserAgent,
77
+ accept: "*/*",
78
+ redirects: robotsRedirects,
79
+ body: {
80
+ contentTypes: "any",
81
+ maxBytes: robotsMaxBytes,
82
+ oversize: "truncate"
83
+ }
74
84
  });
75
- if (response.ok) {
76
- robotsBody = await response.text();
85
+ if (response.status >= 200 && response.status < 300) {
86
+ robotsBody = response.body?.toString("utf8") ?? "";
87
+ robotsTruncated = response.isTruncated;
77
88
  } else if (response.status === 404) {
78
89
  robotsBody = "";
79
90
  } else {
80
91
  robotsFetchError = `HTTP ${response.status}`;
81
92
  }
82
93
  } catch (error) {
83
- robotsFetchError = describeError(error);
94
+ robotsFetchError = describeSiteError(error);
84
95
  }
85
96
  const groups = robotsBody !== null ? parseRobotsTxt(robotsBody) : null;
86
- const status = async (userAgent) => {
97
+ const getStatus = async (userAgent) => {
87
98
  try {
88
- const response = await fetch(origin, {
89
- signal: AbortSignal.timeout(fetchTimeoutMs),
90
- headers: { "user-agent": userAgent },
91
- redirect: "follow"
99
+ const response = await request({
100
+ url: origin,
101
+ timeoutInMs: requestTimeoutInMs,
102
+ userAgent,
103
+ accept: "*/*",
104
+ redirects: pageRedirects
92
105
  });
93
106
  return response.status;
94
107
  } catch (error) {
95
- log.warn("Live UA probe failed", { userAgent, error: String(error) });
108
+ log.warn("Live UA probe failed", {
109
+ userAgent,
110
+ error: describeSiteError(error)
111
+ });
96
112
  return null;
97
113
  }
98
114
  };
@@ -101,15 +117,9 @@ var runCrawlerAccessCheck = async (brandDomain) => {
101
117
  if (!bot.liveProbeUa) {
102
118
  continue;
103
119
  }
104
- if (probed.length > 0) {
105
- await sleep(probeIntervalMs);
106
- }
107
- probed.push({ bot, liveStatus: await status(bot.liveProbeUa) });
108
- }
109
- if (probed.length > 0) {
110
- await sleep(probeIntervalMs);
120
+ probed.push({ bot, liveStatus: await getStatus(bot.liveProbeUa) });
111
121
  }
112
- const controlStatus = probed.length > 0 ? await status(controlUserAgent) : null;
122
+ const controlStatus = probed.length > 0 ? await getStatus(controlUserAgent) : null;
113
123
  const bots = aiBotRoster.map((bot) => {
114
124
  const robotsAllowed = groups ? isRootAllowed(groups, bot.bot) : null;
115
125
  const probe = probed.find((entry) => entry.bot === bot);
@@ -139,6 +149,7 @@ var runCrawlerAccessCheck = async (brandDomain) => {
139
149
  log.info("Crawler access check completed", {
140
150
  robotsUrl,
141
151
  robotsFetchError,
152
+ robotsTruncated,
142
153
  controlStatus,
143
154
  bots: bots.length,
144
155
  robotsBlocked: bots.filter((b) => b.robotsAllowed === false).length,
@@ -149,30 +160,33 @@ var runCrawlerAccessCheck = async (brandDomain) => {
149
160
  robotsUrl,
150
161
  fetchedAt: (/* @__PURE__ */ new Date()).toISOString(),
151
162
  robotsFetchError,
163
+ robotsTruncated,
152
164
  controlStatus,
153
165
  bots
154
166
  };
155
167
  };
156
- var checkLlmsTxt = async (brandDomain) => {
157
- const origin = `https://${brandDomain.replace(/^https?:\/\//, "").replace(/\/.*$/, "")}`;
168
+ var checkLlmsTxt = async (brandDomain, request) => {
169
+ const origin = getOrigin(brandDomain);
158
170
  const [llmsTxt, llmsFullTxt] = await Promise.all([
159
- urlExists(`${origin}/llms.txt`),
160
- urlExists(`${origin}/llms-full.txt`)
171
+ isTextFileServed(`${origin}/llms.txt`, request),
172
+ isTextFileServed(`${origin}/llms-full.txt`, request)
161
173
  ]);
162
174
  log.debug("llms.txt check completed", { origin, llmsTxt, llmsFullTxt });
163
175
  return { llmsTxt, llmsFullTxt };
164
176
  };
165
- var urlExists = async (url) => {
177
+ var isTextFileServed = async (url, request) => {
166
178
  try {
167
- const response = await fetch(url, {
168
- signal: AbortSignal.timeout(fetchTimeoutMs),
169
- headers: { "user-agent": "literally-aeo-audit/1.0" }
179
+ const response = await request({
180
+ url,
181
+ timeoutInMs: requestTimeoutInMs,
182
+ userAgent: auditUserAgent,
183
+ accept: "text/plain,text/markdown,*/*",
184
+ redirects: pageRedirects
170
185
  });
171
- if (!response.ok) {
186
+ if (response.status < 200 || response.status >= 300) {
172
187
  return false;
173
188
  }
174
- const contentType = response.headers.get("content-type") ?? "";
175
- return !contentType.includes("text/html");
189
+ return !response.contentType.includes("text/html");
176
190
  } catch {
177
191
  return false;
178
192
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  auditFileVersion
3
- } from "./chunk-OU73OUX4.js";
3
+ } from "./chunk-VPXYGN4I.js";
4
4
  import {
5
5
  recommendedModelId
6
6
  } from "./chunk-W5X7WJYL.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-HXHFMFQU.js";
5
5
  import {
6
6
  allSurfaces
7
- } from "./chunk-OBXAHX3L.js";
7
+ } from "./chunk-AASWJR7Q.js";
8
8
 
9
9
  // src/report/core/schema.ts
10
10
  import { z } from "zod";
@@ -202,6 +202,10 @@ var aeoTechnicalChecksSchema = z.object({
202
202
  robotsUrl: z.string(),
203
203
  fetchedAt: z.string(),
204
204
  robotsFetchError: z.string().nullable(),
205
+ // True when robots.txt ran past the 500 KiB RFC 9309 asks a reader to
206
+ // parse: the verdicts rest on that prefix. Absent on snapshots written
207
+ // before the bound existed.
208
+ robotsTruncated: z.boolean().optional(),
205
209
  bots: z.array(
206
210
  z.object({
207
211
  bot: z.string(),