blume 2.1.0 → 2.1.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 (397) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/dist/cli/{chunk-5cg2rzgf.js → chunk-073rdvgb.js} +19 -48
  3. package/dist/cli/{chunk-5cg2rzgf.js.map → chunk-073rdvgb.js.map} +4 -5
  4. package/dist/cli/{chunk-ga0pf4aj.js → chunk-0n9xkp3d.js} +12 -3
  5. package/dist/cli/{chunk-ga0pf4aj.js.map → chunk-0n9xkp3d.js.map} +3 -3
  6. package/dist/cli/chunk-150jk7km.js +52 -0
  7. package/dist/cli/chunk-150jk7km.js.map +10 -0
  8. package/dist/cli/{chunk-rekqz4qg.js → chunk-313vnn40.js} +16 -15
  9. package/dist/cli/chunk-313vnn40.js.map +10 -0
  10. package/dist/cli/{chunk-gp84za0h.js → chunk-3v3ffbrj.js} +2 -2
  11. package/dist/cli/{chunk-9xr4dgee.js → chunk-3x6x3pph.js} +29 -16
  12. package/dist/cli/chunk-3x6x3pph.js.map +10 -0
  13. package/dist/cli/{chunk-0gz36akr.js → chunk-42t4jxdx.js} +21 -5
  14. package/dist/cli/chunk-42t4jxdx.js.map +12 -0
  15. package/dist/cli/{chunk-ta27feev.js → chunk-54ztw1nj.js} +21 -2
  16. package/dist/cli/chunk-54ztw1nj.js.map +10 -0
  17. package/dist/cli/{chunk-jnwj5kjj.js → chunk-5vjtgs6e.js} +20 -7
  18. package/dist/cli/{chunk-jnwj5kjj.js.map → chunk-5vjtgs6e.js.map} +3 -3
  19. package/dist/cli/chunk-66w9j7p6.js +322 -0
  20. package/dist/cli/chunk-66w9j7p6.js.map +14 -0
  21. package/dist/cli/{chunk-nd1821sk.js → chunk-7ppf1rva.js} +32 -18
  22. package/dist/cli/chunk-7ppf1rva.js.map +10 -0
  23. package/dist/cli/{chunk-p804f3pe.js → chunk-8y2kmjv8.js} +6 -6
  24. package/dist/cli/{chunk-2f7n4qzt.js → chunk-c1y538kd.js} +1 -1
  25. package/dist/cli/{chunk-1n228xqb.js → chunk-c887fj0s.js} +2 -2
  26. package/dist/cli/{chunk-y5h4r2y0.js → chunk-cfyg47zg.js} +15 -5
  27. package/dist/cli/chunk-cfyg47zg.js.map +10 -0
  28. package/dist/cli/{chunk-cmtcnh9f.js → chunk-dzwehpy7.js} +2 -2
  29. package/dist/cli/{chunk-h2a48yhd.js → chunk-e6atmn4h.js} +119 -15
  30. package/dist/cli/{chunk-h2a48yhd.js.map → chunk-e6atmn4h.js.map} +10 -10
  31. package/dist/cli/{chunk-5ffywsmb.js → chunk-e8xw9qkh.js} +8 -6
  32. package/dist/cli/{chunk-5ffywsmb.js.map → chunk-e8xw9qkh.js.map} +3 -3
  33. package/dist/cli/{chunk-ntv4qrt7.js → chunk-e9q7a2ak.js} +14 -14
  34. package/dist/cli/{chunk-xkz5xbtv.js → chunk-ehweg4fr.js} +2366 -1114
  35. package/dist/cli/chunk-ehweg4fr.js.map +218 -0
  36. package/dist/cli/{chunk-zf748avv.js → chunk-ep6nd0rn.js} +176 -281
  37. package/dist/cli/{chunk-zf748avv.js.map → chunk-ep6nd0rn.js.map} +11 -12
  38. package/dist/cli/{chunk-yxmk4pec.js → chunk-fdrkhpjy.js} +16 -15
  39. package/dist/cli/{chunk-yxmk4pec.js.map → chunk-fdrkhpjy.js.map} +3 -3
  40. package/dist/cli/{chunk-5wj2qwn2.js → chunk-ft9vfys6.js} +4 -4
  41. package/dist/cli/{chunk-4h8z9vv5.js → chunk-gb420vvz.js} +89 -46
  42. package/dist/cli/chunk-gb420vvz.js.map +17 -0
  43. package/dist/cli/{chunk-713mngdq.js → chunk-hebn0tpx.js} +76 -10
  44. package/dist/cli/chunk-hebn0tpx.js.map +14 -0
  45. package/dist/cli/{chunk-2n4ps1b3.js → chunk-htrwgabr.js} +40 -22
  46. package/dist/cli/chunk-htrwgabr.js.map +15 -0
  47. package/dist/cli/{chunk-zhvd6adm.js → chunk-hx3xqnk9.js} +13 -13
  48. package/dist/cli/chunk-j134vrp2.js +65 -0
  49. package/dist/cli/chunk-j134vrp2.js.map +10 -0
  50. package/dist/cli/{chunk-y4ykbark.js → chunk-kma9f6sf.js} +2 -2
  51. package/dist/cli/{chunk-py62fewh.js → chunk-mrcccgnh.js} +3 -3
  52. package/dist/cli/{chunk-2f3ndkpw.js → chunk-n0v7m8ry.js} +3 -3
  53. package/dist/cli/{chunk-43zcf4gz.js → chunk-ncj7w596.js} +522 -353
  54. package/dist/cli/chunk-ncj7w596.js.map +35 -0
  55. package/dist/cli/{chunk-9geymqns.js → chunk-nq1d20w2.js} +14 -14
  56. package/dist/cli/{chunk-g2z9x01v.js → chunk-nrns10mj.js} +3 -3
  57. package/dist/cli/{chunk-e7vvk5ya.js → chunk-sds923fa.js} +3 -3
  58. package/dist/cli/{chunk-cy5bm0j0.js → chunk-t2m5j4pr.js} +2 -2
  59. package/dist/cli/{chunk-cy5bm0j0.js.map → chunk-t2m5j4pr.js.map} +1 -1
  60. package/dist/cli/{chunk-yj17vs39.js → chunk-tdqhyxfz.js} +5 -5
  61. package/dist/cli/{chunk-q3wxxq39.js → chunk-tphac74f.js} +5 -5
  62. package/dist/cli/{chunk-6bm0xpgd.js → chunk-w1r4vase.js} +2 -2
  63. package/dist/cli/index.js +24 -19
  64. package/dist/cli/index.js.map +3 -3
  65. package/dist/types/ai/ask-context.d.ts +6 -2
  66. package/dist/types/ai/component-markdown.d.ts +2 -0
  67. package/dist/types/ai/openapi-components.d.ts +4 -1
  68. package/dist/types/astro/integration.d.ts +5 -4
  69. package/dist/types/astro/markdown-negotiation.d.ts +3 -0
  70. package/dist/types/astro/pages.d.ts +10 -0
  71. package/dist/types/cli/init/scaffold.d.ts +1 -1
  72. package/dist/types/components/content/api-field.d.ts +4 -1
  73. package/dist/types/components/content/api-page.d.ts +6 -1
  74. package/dist/types/components/openapi/code-samples.d.ts +29 -0
  75. package/dist/types/components/openapi/helpers.d.ts +22 -1
  76. package/dist/types/components/openapi/security.d.ts +10 -0
  77. package/dist/types/components/openapi/snippets.d.ts +60 -0
  78. package/dist/types/core/changelog-index.d.ts +8 -0
  79. package/dist/types/core/config-input.d.ts +30 -3
  80. package/dist/types/core/data.d.ts +4 -0
  81. package/dist/types/core/i18n-ui.d.ts +2 -0
  82. package/dist/types/core/links.d.ts +8 -0
  83. package/dist/types/core/probe.d.ts +2 -0
  84. package/dist/types/core/project-graph.d.ts +6 -0
  85. package/dist/types/core/redirect-patterns.d.ts +11 -3
  86. package/dist/types/core/schema.d.ts +119 -0
  87. package/dist/types/core/sources/cache.d.ts +3 -0
  88. package/dist/types/core/sources/contentful-rich-text.d.ts +11 -2
  89. package/dist/types/core/sources/contentful.d.ts +17 -1
  90. package/dist/types/core/sources/lexical.d.ts +5 -0
  91. package/dist/types/core/sources/normalize.d.ts +20 -1
  92. package/dist/types/core/sources/remote.d.ts +37 -10
  93. package/dist/types/core/sources/sanity.d.ts +1 -1
  94. package/dist/types/core/types.d.ts +17 -0
  95. package/dist/types/deploy/adapter-output.d.ts +2 -1
  96. package/dist/types/deploy/adapters/cloudflare.d.ts +7 -5
  97. package/dist/types/deploy/adapters/node.d.ts +58 -23
  98. package/dist/types/deploy/adapters/registry.d.ts +10 -0
  99. package/dist/types/deploy/adapters/types.d.ts +3 -2
  100. package/dist/types/deploy/platforms/cloudflare.d.ts +10 -7
  101. package/dist/types/deploy/platforms/node.d.ts +3 -1
  102. package/dist/types/deploy/platforms/types.d.ts +18 -7
  103. package/dist/types/deploy/platforms/vercel.d.ts +20 -1
  104. package/dist/types/deploy/redirects.d.ts +17 -1
  105. package/dist/types/deploy/sitemap.d.ts +2 -1
  106. package/dist/types/deploy/vercel-negotiation.d.ts +42 -21
  107. package/dist/types/openapi/checks.d.ts +27 -0
  108. package/dist/types/openapi/graphql.d.ts +6 -0
  109. package/dist/types/openapi/model.d.ts +15 -4
  110. package/dist/types/openapi/parse.d.ts +3 -0
  111. package/dist/types/openapi/references.d.ts +16 -0
  112. package/dist/types/ratelimit/index.d.ts +1 -1
  113. package/dist/types/ratelimit/schema.d.ts +8 -0
  114. package/dist/types/ratelimit/upstash.d.ts +39 -14
  115. package/dist/types/reference/graphql.d.ts +76 -1
  116. package/dist/types/reference/index.d.ts +1 -1
  117. package/dist/types/reference/openapi.d.ts +2 -2
  118. package/dist/types/reference/options.d.ts +37 -1
  119. package/dist/types/reference/schema.d.ts +84 -0
  120. package/dist/types/search/adapters/registry.d.ts +3 -0
  121. package/dist/types/search/adapters/typesense.d.ts +14 -4
  122. package/dist/types/search/build.d.ts +3 -1
  123. package/dist/types/search/orama-index.d.ts +9 -9
  124. package/dist/types/search/sync/algolia.d.ts +5 -2
  125. package/dist/types/search/sync/index.d.ts +3 -1
  126. package/dist/types/search/sync/typesense.d.ts +11 -7
  127. package/dist/types/sources/contentful.d.ts +16 -0
  128. package/dist/types/sources/github-releases.d.ts +8 -1
  129. package/dist/types/sources/payload.d.ts +2 -0
  130. package/dist/types/sources/registry.d.ts +54 -0
  131. package/dist/types/sources/shared.d.ts +3 -0
  132. package/dist/types/sources/strapi.d.ts +2 -0
  133. package/docs/01-quickstart.mdx +4 -2
  134. package/docs/02-deployment.mdx +31 -13
  135. package/docs/advanced/changelog.mdx +11 -0
  136. package/docs/advanced/skills.mdx +1 -1
  137. package/docs/cli/audit.mdx +30 -7
  138. package/docs/cli/doctor.mdx +5 -1
  139. package/docs/cli/evals.mdx +4 -4
  140. package/docs/cli/translate.mdx +1 -0
  141. package/docs/cli/validate.mdx +4 -3
  142. package/docs/configuration/analytics.mdx +1 -1
  143. package/docs/configuration/assistant.mdx +6 -2
  144. package/docs/configuration/customization.mdx +4 -2
  145. package/docs/configuration/export.mdx +5 -3
  146. package/docs/configuration/index.mdx +3 -2
  147. package/docs/configuration/rate-limiting.mdx +23 -2
  148. package/docs/configuration/search.mdx +37 -14
  149. package/docs/content/components.mdx +2 -2
  150. package/docs/content/frontmatter.mdx +5 -3
  151. package/docs/content/i18n.mdx +2 -2
  152. package/docs/content/includes.mdx +1 -1
  153. package/docs/content/navigation.mdx +4 -4
  154. package/docs/content/sources/contentful.mdx +7 -4
  155. package/docs/content/sources/custom.mdx +7 -3
  156. package/docs/content/sources/github-releases.mdx +10 -2
  157. package/docs/content/sources/index.mdx +3 -3
  158. package/docs/content/sources/notion.mdx +1 -1
  159. package/docs/content/sources/obsidian.mdx +1 -1
  160. package/docs/content/sources/payload.mdx +3 -2
  161. package/docs/content/sources/remote-mdx.mdx +4 -0
  162. package/docs/content/sources/sanity.mdx +2 -2
  163. package/docs/content/sources/strapi.mdx +3 -2
  164. package/docs/content/syntax.mdx +2 -2
  165. package/docs/discoverability/agent-discovery.mdx +1 -1
  166. package/docs/discoverability/index.mdx +1 -1
  167. package/docs/discoverability/json-api.mdx +2 -0
  168. package/docs/discoverability/llms-txt.mdx +1 -1
  169. package/docs/discoverability/markdown.mdx +3 -1
  170. package/docs/discoverability/mcp.mdx +4 -0
  171. package/docs/discoverability/sitemap-and-robots.mdx +1 -1
  172. package/docs/references/api-pages.mdx +1 -1
  173. package/docs/references/asyncapi.mdx +3 -1
  174. package/docs/references/graphql.mdx +13 -1
  175. package/docs/references/openapi.mdx +50 -8
  176. package/package.json +9 -9
  177. package/skills/blume-migrate/SKILL.md +1 -1
  178. package/skills/blume-migrate/references/docusaurus.md +4 -4
  179. package/skills/blume-migrate/references/fumadocs.md +17 -13
  180. package/skills/blume-migrate/references/nextra.md +8 -5
  181. package/skills/blume-migrate/references/starlight.md +9 -7
  182. package/src/ai/ask-context.ts +33 -3
  183. package/src/ai/ask-limits.ts +13 -0
  184. package/src/ai/changelog-markdown.ts +11 -6
  185. package/src/ai/component-markdown.ts +1 -1
  186. package/src/ai/cors.ts +12 -3
  187. package/src/ai/mcp/query.ts +14 -6
  188. package/src/ai/openapi-components.ts +28 -4
  189. package/src/ai/relative-links.ts +4 -38
  190. package/src/astro/generate.ts +78 -48
  191. package/src/astro/integration.ts +16 -13
  192. package/src/astro/markdown-negotiation.ts +3 -0
  193. package/src/astro/module-types.ts +3 -1
  194. package/src/astro/pages.ts +23 -0
  195. package/src/astro/templates.ts +125 -80
  196. package/src/audit/catalog.ts +19 -3
  197. package/src/audit/checks/links.ts +14 -1
  198. package/src/audit/checks/network.ts +110 -6
  199. package/src/audit/checks/redirects.ts +6 -4
  200. package/src/audit/checks/robots.ts +58 -2
  201. package/src/audit/run.ts +3 -0
  202. package/src/audit/types.ts +2 -0
  203. package/src/audit/url.ts +14 -5
  204. package/src/blume-modules.d.ts +5 -1
  205. package/src/cli/args.ts +51 -0
  206. package/src/cli/build-failure.ts +23 -0
  207. package/src/cli/commands/audit.ts +10 -1
  208. package/src/cli/commands/dev.ts +18 -2
  209. package/src/cli/commands/doctor.ts +45 -12
  210. package/src/cli/commands/eval.ts +36 -4
  211. package/src/cli/commands/init.ts +6 -4
  212. package/src/cli/commands/validate.ts +10 -1
  213. package/src/cli/init/scaffold.ts +3 -3
  214. package/src/cli/prepare.ts +6 -3
  215. package/src/cli/required-secrets.ts +1 -1
  216. package/src/components/content/ApiPlayground.astro +6 -2
  217. package/src/components/content/api-field.ts +4 -1
  218. package/src/components/content/api-page.ts +31 -7
  219. package/src/components/content/mermaid-element.ts +15 -1
  220. package/src/components/islands/hooks.ts +27 -1
  221. package/src/components/layout/PageActions.astro +139 -24
  222. package/src/components/layout/RootLayout.astro +10 -2
  223. package/src/components/layout/Search.astro +17 -3
  224. package/src/components/layout/TableOfContents.astro +24 -17
  225. package/src/components/layout/head-scripts.ts +6 -1
  226. package/src/components/layout/search/algolia.ts +10 -1
  227. package/src/components/layout/search/analytics.ts +42 -14
  228. package/src/components/layout/search/endpoint.ts +48 -5
  229. package/src/components/layout/search/pagefind.ts +114 -5
  230. package/src/components/layout/search/types.ts +12 -0
  231. package/src/components/layout/search/typesense.ts +18 -6
  232. package/src/components/openapi/AsyncApiOperation.astro +14 -7
  233. package/src/components/openapi/Authorization.astro +10 -0
  234. package/src/components/openapi/GraphqlOperation.astro +5 -0
  235. package/src/components/openapi/Operation.astro +24 -1
  236. package/src/components/openapi/ParametersTable.astro +8 -4
  237. package/src/components/openapi/Playground.astro +7 -1
  238. package/src/components/openapi/RequestBody.astro +19 -2
  239. package/src/components/openapi/Responses.astro +1 -0
  240. package/src/components/openapi/SchemaTable.astro +15 -3
  241. package/src/components/openapi/async-snippets.ts +61 -5
  242. package/src/components/openapi/async.ts +123 -29
  243. package/src/components/openapi/graphql-helpers.ts +35 -12
  244. package/src/components/openapi/helpers.ts +36 -2
  245. package/src/components/openapi/message-model.ts +54 -11
  246. package/src/components/openapi/message.ts +14 -4
  247. package/src/components/openapi/operation-model.ts +16 -7
  248. package/src/components/openapi/playground-client.ts +24 -5
  249. package/src/components/openapi/playground-schema.ts +1 -1
  250. package/src/components/openapi/schema-tree.ts +44 -14
  251. package/src/components/openapi/security.ts +10 -0
  252. package/src/components/openapi/snippets.ts +5 -3
  253. package/src/components/openapi/validate-json.ts +4 -3
  254. package/src/core/changelog-index.ts +31 -1
  255. package/src/core/component-diagnostics.ts +53 -0
  256. package/src/core/component-overrides.ts +32 -0
  257. package/src/core/config-input.ts +31 -3
  258. package/src/core/data.ts +2 -0
  259. package/src/core/diagnostics.ts +5 -0
  260. package/src/core/i18n-ui.ts +2 -0
  261. package/src/core/includes.ts +1 -1
  262. package/src/core/links.ts +47 -17
  263. package/src/core/probe.ts +26 -6
  264. package/src/core/project-graph.ts +59 -18
  265. package/src/core/redirect-patterns.ts +36 -7
  266. package/src/core/schema.ts +21 -2
  267. package/src/core/sources/cache.ts +6 -0
  268. package/src/core/sources/contentful-rich-text.ts +29 -6
  269. package/src/core/sources/contentful.ts +135 -25
  270. package/src/core/sources/filesystem.ts +26 -4
  271. package/src/core/sources/github-releases.ts +12 -1
  272. package/src/core/sources/lexical.ts +15 -10
  273. package/src/core/sources/mdx-remote.ts +62 -10
  274. package/src/core/sources/normalize.ts +227 -41
  275. package/src/core/sources/notion.ts +7 -1
  276. package/src/core/sources/obsidian.ts +16 -3
  277. package/src/core/sources/payload.ts +38 -15
  278. package/src/core/sources/remote.ts +72 -15
  279. package/src/core/sources/resolve.ts +11 -1
  280. package/src/core/sources/sanity.ts +43 -25
  281. package/src/core/sources/strapi.ts +2 -2
  282. package/src/core/types.ts +18 -0
  283. package/src/core/ui-packs/ar.ts +1 -0
  284. package/src/core/ui-packs/bg.ts +1 -0
  285. package/src/core/ui-packs/bn.ts +1 -0
  286. package/src/core/ui-packs/ca.ts +1 -0
  287. package/src/core/ui-packs/cs.ts +1 -0
  288. package/src/core/ui-packs/da.ts +1 -0
  289. package/src/core/ui-packs/de.ts +1 -0
  290. package/src/core/ui-packs/el.ts +1 -0
  291. package/src/core/ui-packs/es.ts +1 -0
  292. package/src/core/ui-packs/fa.ts +1 -0
  293. package/src/core/ui-packs/fi.ts +1 -0
  294. package/src/core/ui-packs/fr.ts +1 -0
  295. package/src/core/ui-packs/he.ts +1 -0
  296. package/src/core/ui-packs/hi.ts +1 -0
  297. package/src/core/ui-packs/hr.ts +1 -0
  298. package/src/core/ui-packs/hu.ts +1 -0
  299. package/src/core/ui-packs/id.ts +1 -0
  300. package/src/core/ui-packs/it.ts +1 -0
  301. package/src/core/ui-packs/ja.ts +1 -0
  302. package/src/core/ui-packs/ko.ts +1 -0
  303. package/src/core/ui-packs/nl.ts +1 -0
  304. package/src/core/ui-packs/no.ts +1 -0
  305. package/src/core/ui-packs/pl.ts +1 -0
  306. package/src/core/ui-packs/pt-br.ts +1 -0
  307. package/src/core/ui-packs/pt.ts +1 -0
  308. package/src/core/ui-packs/ro.ts +1 -0
  309. package/src/core/ui-packs/ru.ts +1 -0
  310. package/src/core/ui-packs/sk.ts +1 -0
  311. package/src/core/ui-packs/sr.ts +1 -0
  312. package/src/core/ui-packs/sv.ts +1 -0
  313. package/src/core/ui-packs/th.ts +1 -0
  314. package/src/core/ui-packs/tr.ts +1 -0
  315. package/src/core/ui-packs/uk.ts +1 -0
  316. package/src/core/ui-packs/vi.ts +1 -0
  317. package/src/core/ui-packs/zh-tw.ts +1 -0
  318. package/src/core/ui-packs/zh.ts +1 -0
  319. package/src/deploy/adapter-output.ts +7 -2
  320. package/src/deploy/adapters/cloudflare.ts +7 -5
  321. package/src/deploy/adapters/node.ts +47 -9
  322. package/src/deploy/adapters/types.ts +7 -3
  323. package/src/deploy/artifacts.ts +2 -1
  324. package/src/deploy/platforms/cloudflare.ts +13 -9
  325. package/src/deploy/platforms/netlify.ts +2 -1
  326. package/src/deploy/platforms/node.ts +12 -2
  327. package/src/deploy/platforms/types.ts +21 -7
  328. package/src/deploy/platforms/vercel.ts +113 -16
  329. package/src/deploy/redirects.ts +66 -6
  330. package/src/deploy/rss.ts +3 -1
  331. package/src/deploy/sitemap.ts +39 -5
  332. package/src/deploy/vercel-negotiation.ts +290 -102
  333. package/src/eval/agents.ts +18 -1
  334. package/src/eval/prompts.ts +6 -3
  335. package/src/eval/report.ts +34 -13
  336. package/src/eval/run.ts +5 -0
  337. package/src/markdown/relative-links.ts +3 -2
  338. package/src/openapi/checks.ts +273 -0
  339. package/src/openapi/graphql-build.ts +21 -0
  340. package/src/openapi/graphql.ts +11 -0
  341. package/src/openapi/model.ts +15 -3
  342. package/src/openapi/parse.ts +127 -2
  343. package/src/openapi/references.ts +43 -3
  344. package/src/openapi/source.ts +39 -14
  345. package/src/ratelimit/index.ts +1 -1
  346. package/src/ratelimit/runtime.ts +37 -19
  347. package/src/ratelimit/upstash.ts +40 -10
  348. package/src/reference/graphql.ts +15 -1
  349. package/src/reference/index.ts +1 -0
  350. package/src/reference/openapi.ts +2 -2
  351. package/src/reference/options.ts +29 -1
  352. package/src/registry/eject.ts +3 -1
  353. package/src/search/adapters/locale-scope.ts +30 -0
  354. package/src/search/adapters/typesense.ts +14 -4
  355. package/src/search/build.ts +21 -3
  356. package/src/search/orama-index.ts +163 -31
  357. package/src/search/source-pages.ts +29 -0
  358. package/src/search/sync/algolia.ts +99 -9
  359. package/src/search/sync/index.ts +52 -13
  360. package/src/search/sync/typesense.ts +72 -27
  361. package/src/sources/contentful.ts +12 -0
  362. package/src/sources/github-releases.ts +7 -1
  363. package/src/sources/shared.ts +3 -0
  364. package/src/theme/entry.ts +29 -3
  365. package/src/translate/validate.ts +23 -1
  366. package/dist/cli/chunk-0gz36akr.js.map +0 -12
  367. package/dist/cli/chunk-2n4ps1b3.js.map +0 -15
  368. package/dist/cli/chunk-43zcf4gz.js.map +0 -36
  369. package/dist/cli/chunk-4ejxbzee.js +0 -39
  370. package/dist/cli/chunk-4ejxbzee.js.map +0 -10
  371. package/dist/cli/chunk-4h8z9vv5.js.map +0 -16
  372. package/dist/cli/chunk-713mngdq.js.map +0 -14
  373. package/dist/cli/chunk-9xr4dgee.js.map +0 -10
  374. package/dist/cli/chunk-amrb6hgh.js +0 -145
  375. package/dist/cli/chunk-amrb6hgh.js.map +0 -11
  376. package/dist/cli/chunk-nd1821sk.js.map +0 -10
  377. package/dist/cli/chunk-rekqz4qg.js.map +0 -10
  378. package/dist/cli/chunk-ta27feev.js.map +0 -10
  379. package/dist/cli/chunk-xkz5xbtv.js.map +0 -213
  380. package/dist/cli/chunk-y5h4r2y0.js.map +0 -10
  381. /package/dist/cli/{chunk-gp84za0h.js.map → chunk-3v3ffbrj.js.map} +0 -0
  382. /package/dist/cli/{chunk-p804f3pe.js.map → chunk-8y2kmjv8.js.map} +0 -0
  383. /package/dist/cli/{chunk-2f7n4qzt.js.map → chunk-c1y538kd.js.map} +0 -0
  384. /package/dist/cli/{chunk-1n228xqb.js.map → chunk-c887fj0s.js.map} +0 -0
  385. /package/dist/cli/{chunk-cmtcnh9f.js.map → chunk-dzwehpy7.js.map} +0 -0
  386. /package/dist/cli/{chunk-ntv4qrt7.js.map → chunk-e9q7a2ak.js.map} +0 -0
  387. /package/dist/cli/{chunk-5wj2qwn2.js.map → chunk-ft9vfys6.js.map} +0 -0
  388. /package/dist/cli/{chunk-zhvd6adm.js.map → chunk-hx3xqnk9.js.map} +0 -0
  389. /package/dist/cli/{chunk-y4ykbark.js.map → chunk-kma9f6sf.js.map} +0 -0
  390. /package/dist/cli/{chunk-py62fewh.js.map → chunk-mrcccgnh.js.map} +0 -0
  391. /package/dist/cli/{chunk-2f3ndkpw.js.map → chunk-n0v7m8ry.js.map} +0 -0
  392. /package/dist/cli/{chunk-9geymqns.js.map → chunk-nq1d20w2.js.map} +0 -0
  393. /package/dist/cli/{chunk-g2z9x01v.js.map → chunk-nrns10mj.js.map} +0 -0
  394. /package/dist/cli/{chunk-e7vvk5ya.js.map → chunk-sds923fa.js.map} +0 -0
  395. /package/dist/cli/{chunk-yj17vs39.js.map → chunk-tdqhyxfz.js.map} +0 -0
  396. /package/dist/cli/{chunk-q3wxxq39.js.map → chunk-tphac74f.js.map} +0 -0
  397. /package/dist/cli/{chunk-6bm0xpgd.js.map → chunk-w1r4vase.js.map} +0 -0
@@ -342,6 +342,9 @@ export type SidebarItemConfig = string | {
342
342
  };
343
343
  /** The object form of `search`: the adapter plus its adapter-independent settings. */
344
344
  declare const searchOptionsSchema: z.ZodObject<{
345
+ analytics: z.ZodPrefault<z.ZodObject<{
346
+ queries: z.ZodDefault<z.ZodBoolean>;
347
+ }, z.core.$strict>>;
345
348
  indexing: z.ZodPrefault<z.ZodObject<{
346
349
  includeCodeBlocks: z.ZodDefault<z.ZodBoolean>;
347
350
  includeHiddenPages: z.ZodDefault<z.ZodBoolean>;
@@ -407,6 +410,7 @@ declare const searchOptionsSchema: z.ZodObject<{
407
410
  apiKey: string;
408
411
  collection: string;
409
412
  host: string;
413
+ locale?: string | undefined;
410
414
  port?: number | undefined;
411
415
  protocol?: "http" | "https" | undefined;
412
416
  };
@@ -465,6 +469,7 @@ declare const searchOptionsSchema: z.ZodObject<{
465
469
  apiKey: z.ZodString;
466
470
  collection: z.ZodString;
467
471
  host: z.ZodString;
472
+ locale: z.ZodOptional<z.ZodString>;
468
473
  port: z.ZodOptional<z.ZodNumber>;
469
474
  protocol: z.ZodOptional<z.ZodEnum<{
470
475
  http: "http";
@@ -536,6 +541,7 @@ declare const searchOptionsSchema: z.ZodObject<{
536
541
  apiKey: string;
537
542
  collection: string;
538
543
  host: string;
544
+ locale?: string | undefined;
539
545
  port?: number | undefined;
540
546
  protocol?: "http" | "https" | undefined;
541
547
  };
@@ -1337,6 +1343,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
1337
1343
  }, z.core.$strict>>;
1338
1344
  }, z.core.$strict>]>>;
1339
1345
  basePath: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string, string | undefined>>;
1346
+ changelog: z.ZodOptional<z.ZodObject<{
1347
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1348
+ title: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1349
+ }, z.core.$strict>>;
1340
1350
  consent: z.ZodPipe<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1341
1351
  kind: z.ZodLiteral<"ethyca">;
1342
1352
  options: z.ZodObject<{
@@ -1451,6 +1461,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1451
1461
  repo: string;
1452
1462
  pollInterval?: number | undefined;
1453
1463
  prefix?: string | undefined;
1464
+ baseUrl?: string | undefined;
1454
1465
  drafts?: boolean | undefined;
1455
1466
  limit?: number | undefined;
1456
1467
  prereleases?: boolean | undefined;
@@ -1506,11 +1517,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
1506
1517
  body?: string | undefined;
1507
1518
  description?: string | undefined;
1508
1519
  lastModified?: string | undefined;
1520
+ order?: string | undefined;
1509
1521
  slug?: string | undefined;
1510
1522
  title?: string | undefined;
1511
1523
  } | undefined;
1524
+ host?: string | undefined;
1512
1525
  locale?: string | undefined;
1513
1526
  params?: Record<string, string> | undefined;
1527
+ previewHost?: string | undefined;
1514
1528
  };
1515
1529
  requiredSecrets: string[];
1516
1530
  runtimeDeps: string[];
@@ -1527,6 +1541,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1527
1541
  body?: string | undefined;
1528
1542
  description?: string | undefined;
1529
1543
  lastModified?: string | undefined;
1544
+ order?: string | undefined;
1530
1545
  slug?: string | undefined;
1531
1546
  title?: string | undefined;
1532
1547
  } | undefined;
@@ -1545,6 +1560,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1545
1560
  body?: string | undefined;
1546
1561
  description?: string | undefined;
1547
1562
  lastModified?: string | undefined;
1563
+ order?: string | undefined;
1548
1564
  slug?: string | undefined;
1549
1565
  title?: string | undefined;
1550
1566
  } | undefined;
@@ -1604,6 +1620,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1604
1620
  repo: string;
1605
1621
  pollInterval?: number | undefined;
1606
1622
  prefix?: string | undefined;
1623
+ baseUrl?: string | undefined;
1607
1624
  drafts?: boolean | undefined;
1608
1625
  limit?: number | undefined;
1609
1626
  prereleases?: boolean | undefined;
@@ -1659,11 +1676,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
1659
1676
  body?: string | undefined;
1660
1677
  description?: string | undefined;
1661
1678
  lastModified?: string | undefined;
1679
+ order?: string | undefined;
1662
1680
  slug?: string | undefined;
1663
1681
  title?: string | undefined;
1664
1682
  } | undefined;
1683
+ host?: string | undefined;
1665
1684
  locale?: string | undefined;
1666
1685
  params?: Record<string, string> | undefined;
1686
+ previewHost?: string | undefined;
1667
1687
  };
1668
1688
  requiredSecrets: string[];
1669
1689
  runtimeDeps: string[];
@@ -1680,6 +1700,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1680
1700
  body?: string | undefined;
1681
1701
  description?: string | undefined;
1682
1702
  lastModified?: string | undefined;
1703
+ order?: string | undefined;
1683
1704
  slug?: string | undefined;
1684
1705
  title?: string | undefined;
1685
1706
  } | undefined;
@@ -1698,6 +1719,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1698
1719
  body?: string | undefined;
1699
1720
  description?: string | undefined;
1700
1721
  lastModified?: string | undefined;
1722
+ order?: string | undefined;
1701
1723
  slug?: string | undefined;
1702
1724
  title?: string | undefined;
1703
1725
  } | undefined;
@@ -1755,6 +1777,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1755
1777
  options: z.ZodObject<{
1756
1778
  pollInterval: z.ZodOptional<z.ZodNumber>;
1757
1779
  prefix: z.ZodOptional<z.ZodString>;
1780
+ baseUrl: z.ZodOptional<z.ZodString>;
1758
1781
  drafts: z.ZodOptional<z.ZodBoolean>;
1759
1782
  limit: z.ZodOptional<z.ZodNumber>;
1760
1783
  owner: z.ZodString;
@@ -1811,11 +1834,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
1811
1834
  body: z.ZodOptional<z.ZodString>;
1812
1835
  description: z.ZodOptional<z.ZodString>;
1813
1836
  lastModified: z.ZodOptional<z.ZodString>;
1837
+ order: z.ZodOptional<z.ZodString>;
1814
1838
  slug: z.ZodOptional<z.ZodString>;
1815
1839
  title: z.ZodOptional<z.ZodString>;
1816
1840
  }, z.core.$strict>>;
1841
+ host: z.ZodOptional<z.ZodString>;
1817
1842
  locale: z.ZodOptional<z.ZodString>;
1818
1843
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1844
+ previewHost: z.ZodOptional<z.ZodString>;
1819
1845
  space: z.ZodString;
1820
1846
  }, z.core.$strict>;
1821
1847
  requiredSecrets: z.ZodArray<z.ZodString>;
@@ -1832,6 +1858,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1832
1858
  body: z.ZodOptional<z.ZodString>;
1833
1859
  description: z.ZodOptional<z.ZodString>;
1834
1860
  lastModified: z.ZodOptional<z.ZodString>;
1861
+ order: z.ZodOptional<z.ZodString>;
1835
1862
  slug: z.ZodOptional<z.ZodString>;
1836
1863
  title: z.ZodOptional<z.ZodString>;
1837
1864
  }, z.core.$strict>>;
@@ -1850,6 +1877,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1850
1877
  body: z.ZodOptional<z.ZodString>;
1851
1878
  description: z.ZodOptional<z.ZodString>;
1852
1879
  lastModified: z.ZodOptional<z.ZodString>;
1880
+ order: z.ZodOptional<z.ZodString>;
1853
1881
  slug: z.ZodOptional<z.ZodString>;
1854
1882
  title: z.ZodOptional<z.ZodString>;
1855
1883
  }, z.core.$strict>>;
@@ -1910,6 +1938,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1910
1938
  repo: string;
1911
1939
  pollInterval?: number | undefined;
1912
1940
  prefix?: string | undefined;
1941
+ baseUrl?: string | undefined;
1913
1942
  drafts?: boolean | undefined;
1914
1943
  limit?: number | undefined;
1915
1944
  prereleases?: boolean | undefined;
@@ -1965,11 +1994,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
1965
1994
  body?: string | undefined;
1966
1995
  description?: string | undefined;
1967
1996
  lastModified?: string | undefined;
1997
+ order?: string | undefined;
1968
1998
  slug?: string | undefined;
1969
1999
  title?: string | undefined;
1970
2000
  } | undefined;
2001
+ host?: string | undefined;
1971
2002
  locale?: string | undefined;
1972
2003
  params?: Record<string, string> | undefined;
2004
+ previewHost?: string | undefined;
1973
2005
  };
1974
2006
  requiredSecrets: string[];
1975
2007
  runtimeDeps: string[];
@@ -1986,6 +2018,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
1986
2018
  body?: string | undefined;
1987
2019
  description?: string | undefined;
1988
2020
  lastModified?: string | undefined;
2021
+ order?: string | undefined;
1989
2022
  slug?: string | undefined;
1990
2023
  title?: string | undefined;
1991
2024
  } | undefined;
@@ -2004,6 +2037,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2004
2037
  body?: string | undefined;
2005
2038
  description?: string | undefined;
2006
2039
  lastModified?: string | undefined;
2040
+ order?: string | undefined;
2007
2041
  slug?: string | undefined;
2008
2042
  title?: string | undefined;
2009
2043
  } | undefined;
@@ -2063,6 +2097,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2063
2097
  repo: string;
2064
2098
  pollInterval?: number | undefined;
2065
2099
  prefix?: string | undefined;
2100
+ baseUrl?: string | undefined;
2066
2101
  drafts?: boolean | undefined;
2067
2102
  limit?: number | undefined;
2068
2103
  prereleases?: boolean | undefined;
@@ -2118,11 +2153,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
2118
2153
  body?: string | undefined;
2119
2154
  description?: string | undefined;
2120
2155
  lastModified?: string | undefined;
2156
+ order?: string | undefined;
2121
2157
  slug?: string | undefined;
2122
2158
  title?: string | undefined;
2123
2159
  } | undefined;
2160
+ host?: string | undefined;
2124
2161
  locale?: string | undefined;
2125
2162
  params?: Record<string, string> | undefined;
2163
+ previewHost?: string | undefined;
2126
2164
  };
2127
2165
  requiredSecrets: string[];
2128
2166
  runtimeDeps: string[];
@@ -2139,6 +2177,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2139
2177
  body?: string | undefined;
2140
2178
  description?: string | undefined;
2141
2179
  lastModified?: string | undefined;
2180
+ order?: string | undefined;
2142
2181
  slug?: string | undefined;
2143
2182
  title?: string | undefined;
2144
2183
  } | undefined;
@@ -2157,6 +2196,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2157
2196
  body?: string | undefined;
2158
2197
  description?: string | undefined;
2159
2198
  lastModified?: string | undefined;
2199
+ order?: string | undefined;
2160
2200
  slug?: string | undefined;
2161
2201
  title?: string | undefined;
2162
2202
  } | undefined;
@@ -2222,6 +2262,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2222
2262
  repo: string;
2223
2263
  pollInterval?: number | undefined;
2224
2264
  prefix?: string | undefined;
2265
+ baseUrl?: string | undefined;
2225
2266
  drafts?: boolean | undefined;
2226
2267
  limit?: number | undefined;
2227
2268
  prereleases?: boolean | undefined;
@@ -2277,11 +2318,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
2277
2318
  body?: string | undefined;
2278
2319
  description?: string | undefined;
2279
2320
  lastModified?: string | undefined;
2321
+ order?: string | undefined;
2280
2322
  slug?: string | undefined;
2281
2323
  title?: string | undefined;
2282
2324
  } | undefined;
2325
+ host?: string | undefined;
2283
2326
  locale?: string | undefined;
2284
2327
  params?: Record<string, string> | undefined;
2328
+ previewHost?: string | undefined;
2285
2329
  };
2286
2330
  requiredSecrets: string[];
2287
2331
  runtimeDeps: string[];
@@ -2298,6 +2342,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2298
2342
  body?: string | undefined;
2299
2343
  description?: string | undefined;
2300
2344
  lastModified?: string | undefined;
2345
+ order?: string | undefined;
2301
2346
  slug?: string | undefined;
2302
2347
  title?: string | undefined;
2303
2348
  } | undefined;
@@ -2316,6 +2361,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2316
2361
  body?: string | undefined;
2317
2362
  description?: string | undefined;
2318
2363
  lastModified?: string | undefined;
2364
+ order?: string | undefined;
2319
2365
  slug?: string | undefined;
2320
2366
  title?: string | undefined;
2321
2367
  } | undefined;
@@ -2392,6 +2438,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2392
2438
  repo: string;
2393
2439
  pollInterval?: number | undefined;
2394
2440
  prefix?: string | undefined;
2441
+ baseUrl?: string | undefined;
2395
2442
  drafts?: boolean | undefined;
2396
2443
  limit?: number | undefined;
2397
2444
  prereleases?: boolean | undefined;
@@ -2447,11 +2494,14 @@ export declare const blumeConfigSchema: z.ZodObject<{
2447
2494
  body?: string | undefined;
2448
2495
  description?: string | undefined;
2449
2496
  lastModified?: string | undefined;
2497
+ order?: string | undefined;
2450
2498
  slug?: string | undefined;
2451
2499
  title?: string | undefined;
2452
2500
  } | undefined;
2501
+ host?: string | undefined;
2453
2502
  locale?: string | undefined;
2454
2503
  params?: Record<string, string> | undefined;
2504
+ previewHost?: string | undefined;
2455
2505
  };
2456
2506
  requiredSecrets: string[];
2457
2507
  runtimeDeps: string[];
@@ -2468,6 +2518,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2468
2518
  body?: string | undefined;
2469
2519
  description?: string | undefined;
2470
2520
  lastModified?: string | undefined;
2521
+ order?: string | undefined;
2471
2522
  slug?: string | undefined;
2472
2523
  title?: string | undefined;
2473
2524
  } | undefined;
@@ -2486,6 +2537,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
2486
2537
  body?: string | undefined;
2487
2538
  description?: string | undefined;
2488
2539
  lastModified?: string | undefined;
2540
+ order?: string | undefined;
2489
2541
  slug?: string | undefined;
2490
2542
  title?: string | undefined;
2491
2543
  } | undefined;
@@ -2601,6 +2653,11 @@ export declare const blumeConfigSchema: z.ZodObject<{
2601
2653
  server: "server";
2602
2654
  }>>;
2603
2655
  site: z.ZodOptional<z.ZodURL>;
2656
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodObject<{
2657
+ hostname: z.ZodOptional<z.ZodString>;
2658
+ port: z.ZodOptional<z.ZodString>;
2659
+ protocol: z.ZodOptional<z.ZodString>;
2660
+ }, z.core.$strict>>>;
2604
2661
  }, z.core.$catchall<z.ZodJSONSchema>>;
2605
2662
  requiredSecrets: z.ZodArray<z.ZodString>;
2606
2663
  runtimeDeps: z.ZodArray<z.ZodString>;
@@ -2647,6 +2704,11 @@ export declare const blumeConfigSchema: z.ZodObject<{
2647
2704
  base?: string | undefined;
2648
2705
  output?: "static" | "server" | undefined;
2649
2706
  site?: string | undefined;
2707
+ allowedDomains?: {
2708
+ hostname?: string | undefined;
2709
+ port?: string | undefined;
2710
+ protocol?: string | undefined;
2711
+ }[] | undefined;
2650
2712
  };
2651
2713
  requiredSecrets: string[];
2652
2714
  runtimeDeps: string[];
@@ -2917,6 +2979,8 @@ export declare const blumeConfigSchema: z.ZodObject<{
2917
2979
  options: z.ZodObject<{
2918
2980
  requests: z.ZodOptional<z.ZodNumber>;
2919
2981
  window: z.ZodOptional<z.ZodNumber>;
2982
+ tokenEnv: z.ZodOptional<z.ZodString>;
2983
+ urlEnv: z.ZodOptional<z.ZodString>;
2920
2984
  }, z.core.$strict>;
2921
2985
  requiredSecrets: z.ZodArray<z.ZodString>;
2922
2986
  runtimeDeps: z.ZodArray<z.ZodString>;
@@ -2942,6 +3006,8 @@ export declare const blumeConfigSchema: z.ZodObject<{
2942
3006
  options: {
2943
3007
  requests?: number | undefined;
2944
3008
  window?: number | undefined;
3009
+ tokenEnv?: string | undefined;
3010
+ urlEnv?: string | undefined;
2945
3011
  };
2946
3012
  requiredSecrets: string[];
2947
3013
  runtimeDeps: string[];
@@ -2967,6 +3033,8 @@ export declare const blumeConfigSchema: z.ZodObject<{
2967
3033
  options: {
2968
3034
  requests?: number | undefined;
2969
3035
  window?: number | undefined;
3036
+ tokenEnv?: string | undefined;
3037
+ urlEnv?: string | undefined;
2970
3038
  };
2971
3039
  requiredSecrets: string[];
2972
3040
  runtimeDeps: string[];
@@ -3047,6 +3115,15 @@ export declare const blumeConfigSchema: z.ZodObject<{
3047
3115
  }, z.core.$strict>, z.ZodObject<{
3048
3116
  kind: z.ZodLiteral<"graphql">;
3049
3117
  options: z.ZodPipe<z.ZodObject<{
3118
+ auth: z.ZodOptional<z.ZodObject<{
3119
+ method: z.ZodEnum<{
3120
+ none: "none";
3121
+ key: "key";
3122
+ bearer: "bearer";
3123
+ basic: "basic";
3124
+ }>;
3125
+ name: z.ZodOptional<z.ZodString>;
3126
+ }, z.core.$strict>>;
3050
3127
  endpoint: z.ZodOptional<z.ZodString>;
3051
3128
  sources: z.ZodDefault<z.ZodArray<z.ZodObject<{
3052
3129
  includeInLlms: z.ZodDefault<z.ZodBoolean>;
@@ -3056,6 +3133,15 @@ export declare const blumeConfigSchema: z.ZodObject<{
3056
3133
  route: z.ZodOptional<z.ZodString>;
3057
3134
  seoDescriptionSuffix: z.ZodDefault<z.ZodBoolean>;
3058
3135
  spec: z.ZodString;
3136
+ auth: z.ZodOptional<z.ZodObject<{
3137
+ method: z.ZodEnum<{
3138
+ none: "none";
3139
+ key: "key";
3140
+ bearer: "bearer";
3141
+ basic: "basic";
3142
+ }>;
3143
+ name: z.ZodOptional<z.ZodString>;
3144
+ }, z.core.$strict>>;
3059
3145
  endpoint: z.ZodOptional<z.ZodString>;
3060
3146
  }, z.core.$strict>>>;
3061
3147
  codeSamples: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodArray<z.ZodString>]>>;
@@ -3080,6 +3166,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
3080
3166
  spec: string;
3081
3167
  label?: string | undefined;
3082
3168
  route?: string | undefined;
3169
+ auth?: {
3170
+ method: "none" | "key" | "bearer" | "basic";
3171
+ name?: string | undefined;
3172
+ } | undefined;
3083
3173
  endpoint?: string | undefined;
3084
3174
  }[];
3085
3175
  codeSamples: false | string[];
@@ -3088,6 +3178,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
3088
3178
  proxy: string | boolean;
3089
3179
  };
3090
3180
  route: string;
3181
+ auth?: {
3182
+ method: "none" | "key" | "bearer" | "basic";
3183
+ name?: string | undefined;
3184
+ } | undefined;
3091
3185
  endpoint?: string | undefined;
3092
3186
  spec?: string | undefined;
3093
3187
  }, "spec" | "overlays">, {
@@ -3099,6 +3193,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
3099
3193
  spec: string;
3100
3194
  label?: string | undefined;
3101
3195
  route?: string | undefined;
3196
+ auth?: {
3197
+ method: "none" | "key" | "bearer" | "basic";
3198
+ name?: string | undefined;
3199
+ } | undefined;
3102
3200
  endpoint?: string | undefined;
3103
3201
  }[];
3104
3202
  codeSamples: false | string[];
@@ -3107,6 +3205,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
3107
3205
  proxy: string | boolean;
3108
3206
  };
3109
3207
  route: string;
3208
+ auth?: {
3209
+ method: "none" | "key" | "bearer" | "basic";
3210
+ name?: string | undefined;
3211
+ } | undefined;
3110
3212
  endpoint?: string | undefined;
3111
3213
  spec?: string | undefined;
3112
3214
  }>>;
@@ -3252,6 +3354,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
3252
3354
  spec: string;
3253
3355
  label?: string | undefined;
3254
3356
  route?: string | undefined;
3357
+ auth?: {
3358
+ method: "none" | "key" | "bearer" | "basic";
3359
+ name?: string | undefined;
3360
+ } | undefined;
3255
3361
  endpoint?: string | undefined;
3256
3362
  }[];
3257
3363
  codeSamples: false | string[];
@@ -3260,6 +3366,10 @@ export declare const blumeConfigSchema: z.ZodObject<{
3260
3366
  proxy: string | boolean;
3261
3367
  };
3262
3368
  route: string;
3369
+ auth?: {
3370
+ method: "none" | "key" | "bearer" | "basic";
3371
+ name?: string | undefined;
3372
+ } | undefined;
3263
3373
  endpoint?: string | undefined;
3264
3374
  spec?: string | undefined;
3265
3375
  }, "spec" | "overlays">;
@@ -3292,6 +3402,9 @@ export declare const blumeConfigSchema: z.ZodObject<{
3292
3402
  runtimeDeps: string[];
3293
3403
  }>>>>;
3294
3404
  search: z.ZodPrefault<z.ZodPipe<z.ZodPipe<z.ZodCustom<SearchConfigInput, SearchConfigInput>, z.ZodTransform<{
3405
+ analytics?: {
3406
+ queries?: boolean | undefined;
3407
+ } | undefined;
3295
3408
  indexing?: {
3296
3409
  includeCodeBlocks?: boolean | undefined;
3297
3410
  includeHiddenPages?: boolean | undefined;
@@ -3303,6 +3416,9 @@ export declare const blumeConfigSchema: z.ZodObject<{
3303
3416
  }[] | undefined;
3304
3417
  provider?: false | SearchAdapterInput | undefined;
3305
3418
  }, SearchConfigInput>>, z.ZodObject<{
3419
+ analytics: z.ZodPrefault<z.ZodObject<{
3420
+ queries: z.ZodDefault<z.ZodBoolean>;
3421
+ }, z.core.$strict>>;
3306
3422
  indexing: z.ZodPrefault<z.ZodObject<{
3307
3423
  includeCodeBlocks: z.ZodDefault<z.ZodBoolean>;
3308
3424
  includeHiddenPages: z.ZodDefault<z.ZodBoolean>;
@@ -3368,6 +3484,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
3368
3484
  apiKey: string;
3369
3485
  collection: string;
3370
3486
  host: string;
3487
+ locale?: string | undefined;
3371
3488
  port?: number | undefined;
3372
3489
  protocol?: "http" | "https" | undefined;
3373
3490
  };
@@ -3426,6 +3543,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
3426
3543
  apiKey: z.ZodString;
3427
3544
  collection: z.ZodString;
3428
3545
  host: z.ZodString;
3546
+ locale: z.ZodOptional<z.ZodString>;
3429
3547
  port: z.ZodOptional<z.ZodNumber>;
3430
3548
  protocol: z.ZodOptional<z.ZodEnum<{
3431
3549
  http: "http";
@@ -3497,6 +3615,7 @@ export declare const blumeConfigSchema: z.ZodObject<{
3497
3615
  apiKey: string;
3498
3616
  collection: string;
3499
3617
  host: string;
3618
+ locale?: string | undefined;
3500
3619
  port?: number | undefined;
3501
3620
  protocol?: "http" | "https" | undefined;
3502
3621
  };
@@ -33,5 +33,8 @@ export declare const snapshotCache: (cacheDir: string) => SnapshotCache;
33
33
  * snapshot exists, serve it without fetching (cache-first dev). On fetch failure,
34
34
  * serve the last-known-good snapshot with a warning so a CMS/network outage
35
35
  * doesn't fail the build; if there is no snapshot either, surface a hard error.
36
+ * A `BlumeError` from the source (a missing SDK or token, checked before any
37
+ * request, or a misconfiguration) already names its cause, so without a
38
+ * snapshot it surfaces as itself rather than as a fetch failure.
36
39
  */
37
40
  export declare const loadWithCache: (name: string, cache: SnapshotCache, fetchEntries: () => Promise<SourceEntry[]>, refresh?: boolean) => Promise<SourceLoadResult>;
@@ -1,20 +1,29 @@
1
1
  /**
2
2
  * Contentful rich text → Markdown. Covers the block, inline, and mark types
3
3
  * the Rich Text editor emits; embedded entries fall through to a serializer
4
- * keyed by content type or are noted in a comment. Links to assets and
4
+ * keyed by content type or are noted in a comment, and a link to an entry
5
+ * points at its page when the source says it has one. Links to assets and
5
6
  * entries arrive unresolved from the Delivery API (`data.target` is a
6
7
  * `sys` link), so the source hands in resolvers over the response's
7
8
  * `includes`; a document the SDK already resolved (with `fields` inline)
8
9
  * lowers the same way.
9
10
  */
10
11
  import type { JsonObject } from "./json.ts";
11
- /** An asset's file as a Markdown image needs it. */
12
+ /** An asset's file as a Markdown image or link needs it. */
12
13
  export interface ContentfulAsset {
14
+ /** The file's MIME type; an asset that isn't an image renders as a link. */
15
+ contentType?: string;
13
16
  description?: string;
17
+ fileName?: string;
14
18
  title?: string;
15
19
  url: string;
16
20
  }
17
21
  export interface ContentfulRichTextOptions {
22
+ /**
23
+ * The route of a linked entry's page; an entry hyperlink to an entry with
24
+ * none keeps only its text.
25
+ */
26
+ entryHref?: (entry: JsonObject) => string | undefined;
18
27
  /** Resolve an asset link (`data.target.sys.id`) to its file. */
19
28
  resolveAsset?: (id: string) => ContentfulAsset | null;
20
29
  /** Resolve an entry link to the entry (`sys` plus `fields`). */
@@ -1,3 +1,4 @@
1
+ import type { ResolvedI18nConfig, ResolvedVersionsConfig } from "../schema.ts";
1
2
  import type { JsonObject } from "./json.ts";
2
3
  import type { RemoteFieldMap } from "./remote.ts";
3
4
  import type { ContentSource, SourceContext } from "./types.ts";
@@ -8,10 +9,24 @@ export interface ContentfulSourceOptions {
8
9
  space: string;
9
10
  /** Environment id; default `master`. */
10
11
  environment?: string;
12
+ /**
13
+ * Delivery API host name; default `cdn.contentful.com`. A space with EU
14
+ * data residency reads from `cdn.eu.contentful.com`.
15
+ */
16
+ host?: string;
17
+ /**
18
+ * Preview API host name for `--preview`; default `preview.contentful.com`
19
+ * (`preview.eu.contentful.com` for EU data residency).
20
+ */
21
+ previewHost?: string;
11
22
  /** The content type id whose entries become pages. */
12
23
  contentType: string;
13
24
  /** Locale code to fetch; omit for the space's default locale. */
14
25
  locale?: string;
26
+ /** The project's i18n config, which places an entry's route by its slug. */
27
+ i18n?: ResolvedI18nConfig;
28
+ /** The project's versions config, which places an entry's route by its slug. */
29
+ versions?: ResolvedVersionsConfig;
15
30
  /**
16
31
  * Field ids mapping an entry onto Blume meta + body. Paths resolve against
17
32
  * the entry's `fields`, with `sys` reachable as `sys.<key>`. Defaults:
@@ -35,6 +50,7 @@ export interface ContentfulSourceOptions {
35
50
  * Contentful content source. Pages through the Delivery API (the Preview API
36
51
  * under `--preview`), maps each entry's fields to frontmatter, and lowers its
37
52
  * rich text body to Markdown with the page's `includes` resolving asset and
38
- * entry links.
53
+ * entry links. An entry hyperlink to another of the source's entries links
54
+ * to that entry's page.
39
55
  */
40
56
  export declare const contentfulSource: (options: ContentfulSourceOptions, ctx?: SourceContext) => ContentSource;
@@ -9,6 +9,11 @@ import type { JsonObject } from "./json.ts";
9
9
  export interface LexicalOptions {
10
10
  /** The CMS origin a relative upload URL (`/media/x.png`) resolves against. */
11
11
  baseUrl?: string;
12
+ /**
13
+ * Called with the label of each node left out as a comment (a block with
14
+ * no serializer, a node type with no Markdown), so the source can warn.
15
+ */
16
+ onUnsupported?: (what: string) => void;
12
17
  /** Serializers for `block`/`inlineBlock` nodes, keyed by `fields.blockType`. */
13
18
  serializers?: Record<string, (fields: JsonObject) => string>;
14
19
  }
@@ -1,5 +1,6 @@
1
+ import type { YAMLException } from "js-yaml";
1
2
  import type { ResolvedI18nConfig } from "../schema.ts";
2
- import type { Diagnostic, Heading, PageLink, PageRecord } from "../types.ts";
3
+ import type { Diagnostic, ExampleUse, Heading, PageLink, PageRecord } from "../types.ts";
3
4
  import type { NormalizeContext, SourceEntry } from "./types.ts";
4
5
  /**
5
6
  * Slugify a content/route slug (Sanity, Notion, frontmatter `slug`). Heading
@@ -30,6 +31,16 @@ export declare const slugifyPath: (text: string) => string;
30
31
  * reports this instead of publishing a route that can never render.
31
32
  */
32
33
  export declare const unloadablePathDiagnostic: (path: string, file: string) => Diagnostic | undefined;
34
+ /**
35
+ * The error for a content file whose front matter isn't valid YAML — most
36
+ * often an unquoted value holding `: `, which YAML reads as a nested mapping.
37
+ * Thrown out of a source's scan, it would fail every command with
38
+ * BLUME_INTERNAL; a source leaves the file out and reports this instead, like
39
+ * a page whose front matter fails the schema. js-yaml counts lines from the
40
+ * text after the opening `---`, which starts with the rest of that fence
41
+ * line, so its 0-based line is already the file's line minus one.
42
+ */
43
+ export declare const frontmatterYamlDiagnostic: (error: YAMLException, file: string) => Diagnostic;
33
44
  export declare const HTML_COMMENT: RegExp;
34
45
  export declare const INLINE_CODE: RegExp;
35
46
  /** A heading whose trailing `{#id}` marker is unescaped — see `BARE_CURLY_MARKER`. */
@@ -37,6 +48,8 @@ export interface CurlyMarker {
37
48
  id: string;
38
49
  /** 1-based line of the heading (a setext heading's first text line) in the body. */
39
50
  line: number;
51
+ /** The braces as written (`{#id}`, `{ #id }`, `{: #id }`). */
52
+ marker: string;
40
53
  }
41
54
  /** Where a heading's text ends in the scanned text, for appending a marker. */
42
55
  export interface HeadingSite {
@@ -74,6 +87,12 @@ export declare const MD_IMAGE: RegExp;
74
87
  /** Column (0-based, within `matched`) where a link/image match's target starts. */
75
88
  export declare const targetOffsetIn: (matched: string, target: string, title: string | undefined) => number;
76
89
  export declare const extractLinks: (body: string, lineOffset?: number) => PageLink[];
90
+ /**
91
+ * Every `<Component path>` in an `.mdx` body, with the 1-based position of its
92
+ * value; lines are shifted by `lineOffset`, as {@link extractLinks} does. Code
93
+ * blocks and inline code are skipped.
94
+ */
95
+ export declare const extractExampleUses: (body: string, lineOffset?: number) => ExampleUse[];
77
96
  export declare const extractComponentTags: (body: string) => string[];
78
97
  /**
79
98
  * Height of the frontmatter block stripped from `raw` to produce `body` (0