blume 0.0.0 → 0.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 (330) hide show
  1. package/bin/blume.mjs +18 -0
  2. package/dist/cli/index.js +12696 -0
  3. package/dist/cli/index.js.map +145 -0
  4. package/dist/types/core/bridge.d.ts +24 -0
  5. package/dist/types/core/config.d.ts +35 -0
  6. package/dist/types/core/data.d.ts +129 -0
  7. package/dist/types/core/define-components.d.ts +27 -0
  8. package/dist/types/core/define-meta.d.ts +16 -0
  9. package/dist/types/core/deployment-env.d.ts +9 -0
  10. package/dist/types/core/diagnostics.d.ts +17 -0
  11. package/dist/types/core/i18n-ui.d.ts +500 -0
  12. package/dist/types/core/load-module.d.ts +7 -0
  13. package/dist/types/core/package-root.d.ts +17 -0
  14. package/dist/types/core/project.d.ts +9 -0
  15. package/dist/types/core/schema.d.ts +3451 -0
  16. package/dist/types/core/sources/types.d.ts +107 -0
  17. package/dist/types/core/types.d.ts +245 -0
  18. package/dist/types/core/ui-packs/ar.d.ts +3 -0
  19. package/dist/types/core/ui-packs/bg.d.ts +3 -0
  20. package/dist/types/core/ui-packs/bn.d.ts +3 -0
  21. package/dist/types/core/ui-packs/ca.d.ts +3 -0
  22. package/dist/types/core/ui-packs/cs.d.ts +3 -0
  23. package/dist/types/core/ui-packs/da.d.ts +3 -0
  24. package/dist/types/core/ui-packs/de.d.ts +3 -0
  25. package/dist/types/core/ui-packs/el.d.ts +3 -0
  26. package/dist/types/core/ui-packs/es.d.ts +3 -0
  27. package/dist/types/core/ui-packs/fa.d.ts +3 -0
  28. package/dist/types/core/ui-packs/fi.d.ts +3 -0
  29. package/dist/types/core/ui-packs/fr.d.ts +3 -0
  30. package/dist/types/core/ui-packs/he.d.ts +3 -0
  31. package/dist/types/core/ui-packs/hi.d.ts +3 -0
  32. package/dist/types/core/ui-packs/hr.d.ts +3 -0
  33. package/dist/types/core/ui-packs/hu.d.ts +3 -0
  34. package/dist/types/core/ui-packs/id.d.ts +3 -0
  35. package/dist/types/core/ui-packs/index.d.ts +13 -0
  36. package/dist/types/core/ui-packs/it.d.ts +3 -0
  37. package/dist/types/core/ui-packs/ja.d.ts +3 -0
  38. package/dist/types/core/ui-packs/ko.d.ts +3 -0
  39. package/dist/types/core/ui-packs/nl.d.ts +3 -0
  40. package/dist/types/core/ui-packs/no.d.ts +3 -0
  41. package/dist/types/core/ui-packs/pl.d.ts +3 -0
  42. package/dist/types/core/ui-packs/pt-br.d.ts +3 -0
  43. package/dist/types/core/ui-packs/pt.d.ts +3 -0
  44. package/dist/types/core/ui-packs/ro.d.ts +3 -0
  45. package/dist/types/core/ui-packs/ru.d.ts +3 -0
  46. package/dist/types/core/ui-packs/sk.d.ts +3 -0
  47. package/dist/types/core/ui-packs/sr.d.ts +3 -0
  48. package/dist/types/core/ui-packs/sv.d.ts +3 -0
  49. package/dist/types/core/ui-packs/th.d.ts +3 -0
  50. package/dist/types/core/ui-packs/tr.d.ts +3 -0
  51. package/dist/types/core/ui-packs/uk.d.ts +3 -0
  52. package/dist/types/core/ui-packs/vi.d.ts +3 -0
  53. package/dist/types/core/ui-packs/zh-tw.d.ts +3 -0
  54. package/dist/types/core/ui-packs/zh.d.ts +3 -0
  55. package/dist/types/core/version.d.ts +8 -0
  56. package/dist/types/index.d.ts +10 -0
  57. package/dist/types/migrate/mintlify/config.d.ts +2 -0
  58. package/dist/types/migrate/mintlify/i18n.d.ts +7 -0
  59. package/dist/types/theme/fonts.d.ts +163 -0
  60. package/docs/01-quickstart.mdx +99 -0
  61. package/docs/02-deployment.mdx +129 -0
  62. package/docs/advanced/api-reference.mdx +114 -0
  63. package/docs/advanced/blog.mdx +121 -0
  64. package/docs/advanced/changelog.mdx +113 -0
  65. package/docs/advanced/custom-pages.mdx +268 -0
  66. package/docs/advanced/meta.ts +7 -0
  67. package/docs/changelog/v0-1-0.mdx +12 -0
  68. package/docs/changelog/v0-2-0.mdx +16 -0
  69. package/docs/configuration/ai.mdx +228 -0
  70. package/docs/configuration/analytics.mdx +98 -0
  71. package/docs/configuration/customization.mdx +91 -0
  72. package/docs/configuration/export.mdx +70 -0
  73. package/docs/configuration/index.mdx +290 -0
  74. package/docs/configuration/meta.ts +15 -0
  75. package/docs/configuration/search.mdx +172 -0
  76. package/docs/configuration/seo.mdx +196 -0
  77. package/docs/configuration/theming.mdx +178 -0
  78. package/docs/content/components.mdx +651 -0
  79. package/docs/content/i18n.mdx +205 -0
  80. package/docs/content/index.mdx +161 -0
  81. package/docs/content/islands.mdx +94 -0
  82. package/docs/content/meta.mdx +119 -0
  83. package/docs/content/meta.ts +15 -0
  84. package/docs/content/navigation.mdx +168 -0
  85. package/docs/content/sources.mdx +216 -0
  86. package/docs/content/syntax.mdx +445 -0
  87. package/docs/index.mdx +112 -0
  88. package/docs/reference/cli.mdx +43 -0
  89. package/docs/reference/frontmatter.mdx +74 -0
  90. package/docs/reference/meta.ts +7 -0
  91. package/package.json +150 -6
  92. package/src/ai/ask.ts +93 -0
  93. package/src/ai/llms.ts +64 -0
  94. package/src/ai/markdown.ts +31 -0
  95. package/src/ai/mcp/data.ts +74 -0
  96. package/src/ai/mcp/discovery.ts +49 -0
  97. package/src/ai/mcp/server.ts +225 -0
  98. package/src/ai/mcp/tools.ts +47 -0
  99. package/src/assets/icon.png +0 -0
  100. package/src/astro/examples.ts +104 -0
  101. package/src/astro/generate.ts +1006 -0
  102. package/src/astro/index.ts +4 -0
  103. package/src/astro/integration.ts +74 -0
  104. package/src/astro/islands.ts +131 -0
  105. package/src/astro/markdown-negotiation.ts +68 -0
  106. package/src/astro/pages.ts +87 -0
  107. package/src/astro/templates.ts +1326 -0
  108. package/src/cli/commands/add.ts +81 -0
  109. package/src/cli/commands/build.ts +103 -0
  110. package/src/cli/commands/dev.ts +108 -0
  111. package/src/cli/commands/doctor.ts +74 -0
  112. package/src/cli/commands/eject.ts +57 -0
  113. package/src/cli/commands/init.ts +98 -0
  114. package/src/cli/commands/migrate.ts +39 -0
  115. package/src/cli/commands/preview.ts +39 -0
  116. package/src/cli/commands/sync.ts +52 -0
  117. package/src/cli/commands/validate.ts +61 -0
  118. package/src/cli/index.ts +35 -0
  119. package/src/cli/log.ts +37 -0
  120. package/src/cli/prepare.ts +80 -0
  121. package/src/components/Icon.astro +99 -0
  122. package/src/components/content/Accordion.astro +8 -0
  123. package/src/components/content/AccordionItem.astro +121 -0
  124. package/src/components/content/AutoTypeTable.astro +51 -0
  125. package/src/components/content/Badge.astro +124 -0
  126. package/src/components/content/Callout.astro +73 -0
  127. package/src/components/content/Card.astro +104 -0
  128. package/src/components/content/CardGroup.astro +14 -0
  129. package/src/components/content/CodeBlock.astro +28 -0
  130. package/src/components/content/CodeGroup.astro +13 -0
  131. package/src/components/content/Color.astro +15 -0
  132. package/src/components/content/ColorItem.astro +87 -0
  133. package/src/components/content/ColorRow.astro +10 -0
  134. package/src/components/content/Column.astro +6 -0
  135. package/src/components/content/Columns.astro +9 -0
  136. package/src/components/content/Component.astro +65 -0
  137. package/src/components/content/Diff.astro +44 -0
  138. package/src/components/content/Expandable.astro +11 -0
  139. package/src/components/content/FileTree.astro +8 -0
  140. package/src/components/content/Frame.astro +70 -0
  141. package/src/components/content/GithubInfo.astro +110 -0
  142. package/src/components/content/Math.astro +24 -0
  143. package/src/components/content/Panel.astro +20 -0
  144. package/src/components/content/Prompt.astro +129 -0
  145. package/src/components/content/Step.astro +34 -0
  146. package/src/components/content/Steps.astro +20 -0
  147. package/src/components/content/Tab.astro +46 -0
  148. package/src/components/content/Tabs.astro +273 -0
  149. package/src/components/content/Tile.astro +42 -0
  150. package/src/components/content/Tooltip.astro +68 -0
  151. package/src/components/content/Tree.astro +300 -0
  152. package/src/components/content/TreeFile.astro +15 -0
  153. package/src/components/content/TreeFolder.astro +62 -0
  154. package/src/components/content/TypeTable.astro +106 -0
  155. package/src/components/content/Update.astro +66 -0
  156. package/src/components/content/Visibility.astro +12 -0
  157. package/src/components/content/Warning.astro +9 -0
  158. package/src/components/content/auto-type-table.ts +141 -0
  159. package/src/components/content/diff.ts +95 -0
  160. package/src/components/content/github-info.ts +79 -0
  161. package/src/components/content/mermaid-element.ts +68 -0
  162. package/src/components/github-mark.ts +9 -0
  163. package/src/components/index.ts +14 -0
  164. package/src/components/islands/AskAI.astro +12 -0
  165. package/src/components/islands/ask-ai.tsx +156 -0
  166. package/src/components/layout/Analytics.astro +63 -0
  167. package/src/components/layout/Banner.astro +50 -0
  168. package/src/components/layout/Breadcrumbs.astro +31 -0
  169. package/src/components/layout/Favicon.astro +22 -0
  170. package/src/components/layout/Fonts.astro +14 -0
  171. package/src/components/layout/Header.astro +188 -0
  172. package/src/components/layout/LanguageSwitcher.astro +56 -0
  173. package/src/components/layout/NavTree.astro +462 -0
  174. package/src/components/layout/PageActions.astro +438 -0
  175. package/src/components/layout/PageFeedback.astro +58 -0
  176. package/src/components/layout/PageLayout.astro +173 -0
  177. package/src/components/layout/Pagination.astro +56 -0
  178. package/src/components/layout/ReferenceLayout.astro +107 -0
  179. package/src/components/layout/RootLayout.astro +537 -0
  180. package/src/components/layout/Search.astro +608 -0
  181. package/src/components/layout/TableOfContents.astro +68 -0
  182. package/src/components/layout/analytics-client.ts +38 -0
  183. package/src/components/layout/head-scripts.ts +19 -0
  184. package/src/components/layout/nav-utils.ts +87 -0
  185. package/src/components/layout/overrides.ts +32 -0
  186. package/src/components/layout/search/algolia.ts +43 -0
  187. package/src/components/layout/search/endpoint.ts +22 -0
  188. package/src/components/layout/search/flexsearch.ts +52 -0
  189. package/src/components/layout/search/orama-cloud.ts +41 -0
  190. package/src/components/layout/search/orama.ts +26 -0
  191. package/src/components/layout/search/pagefind.ts +43 -0
  192. package/src/components/layout/search/types.ts +163 -0
  193. package/src/components/layout/search/typesense.ts +60 -0
  194. package/src/components/layout/toc-element.ts +108 -0
  195. package/src/core/bridge.ts +92 -0
  196. package/src/core/config.ts +112 -0
  197. package/src/core/content.ts +50 -0
  198. package/src/core/data.ts +128 -0
  199. package/src/core/define-components.ts +34 -0
  200. package/src/core/define-meta.ts +20 -0
  201. package/src/core/deployment-env.ts +73 -0
  202. package/src/core/diagnostics.ts +104 -0
  203. package/src/core/frontmatter.ts +43 -0
  204. package/src/core/graph.ts +128 -0
  205. package/src/core/i18n-ui.ts +171 -0
  206. package/src/core/i18n.ts +169 -0
  207. package/src/core/last-modified.ts +88 -0
  208. package/src/core/links.ts +352 -0
  209. package/src/core/load-module.ts +15 -0
  210. package/src/core/manifest.ts +126 -0
  211. package/src/core/meta.ts +97 -0
  212. package/src/core/navigation.ts +392 -0
  213. package/src/core/package-root.ts +37 -0
  214. package/src/core/project-graph.ts +153 -0
  215. package/src/core/project.ts +56 -0
  216. package/src/core/schema.ts +1057 -0
  217. package/src/core/server-features.ts +23 -0
  218. package/src/core/sources/assets.ts +77 -0
  219. package/src/core/sources/cache.ts +122 -0
  220. package/src/core/sources/filesystem.ts +99 -0
  221. package/src/core/sources/mdx-remote.ts +215 -0
  222. package/src/core/sources/mintlify.ts +161 -0
  223. package/src/core/sources/normalize.ts +243 -0
  224. package/src/core/sources/notion.ts +440 -0
  225. package/src/core/sources/portable-text.ts +143 -0
  226. package/src/core/sources/read.ts +36 -0
  227. package/src/core/sources/resolve.ts +158 -0
  228. package/src/core/sources/sanity.ts +218 -0
  229. package/src/core/sources/types.ts +105 -0
  230. package/src/core/tsconfig-aliases.ts +201 -0
  231. package/src/core/types.ts +261 -0
  232. package/src/core/ui-packs/ar.ts +47 -0
  233. package/src/core/ui-packs/bg.ts +47 -0
  234. package/src/core/ui-packs/bn.ts +47 -0
  235. package/src/core/ui-packs/ca.ts +47 -0
  236. package/src/core/ui-packs/cs.ts +47 -0
  237. package/src/core/ui-packs/da.ts +47 -0
  238. package/src/core/ui-packs/de.ts +47 -0
  239. package/src/core/ui-packs/el.ts +47 -0
  240. package/src/core/ui-packs/es.ts +47 -0
  241. package/src/core/ui-packs/fa.ts +47 -0
  242. package/src/core/ui-packs/fi.ts +47 -0
  243. package/src/core/ui-packs/fr.ts +47 -0
  244. package/src/core/ui-packs/he.ts +47 -0
  245. package/src/core/ui-packs/hi.ts +47 -0
  246. package/src/core/ui-packs/hr.ts +47 -0
  247. package/src/core/ui-packs/hu.ts +47 -0
  248. package/src/core/ui-packs/id.ts +47 -0
  249. package/src/core/ui-packs/index.ts +87 -0
  250. package/src/core/ui-packs/it.ts +47 -0
  251. package/src/core/ui-packs/ja.ts +47 -0
  252. package/src/core/ui-packs/ko.ts +47 -0
  253. package/src/core/ui-packs/nl.ts +47 -0
  254. package/src/core/ui-packs/no.ts +47 -0
  255. package/src/core/ui-packs/pl.ts +47 -0
  256. package/src/core/ui-packs/pt-br.ts +47 -0
  257. package/src/core/ui-packs/pt.ts +47 -0
  258. package/src/core/ui-packs/ro.ts +47 -0
  259. package/src/core/ui-packs/ru.ts +47 -0
  260. package/src/core/ui-packs/sk.ts +47 -0
  261. package/src/core/ui-packs/sr.ts +47 -0
  262. package/src/core/ui-packs/sv.ts +47 -0
  263. package/src/core/ui-packs/th.ts +47 -0
  264. package/src/core/ui-packs/tr.ts +47 -0
  265. package/src/core/ui-packs/uk.ts +47 -0
  266. package/src/core/ui-packs/vi.ts +47 -0
  267. package/src/core/ui-packs/zh-tw.ts +47 -0
  268. package/src/core/ui-packs/zh.ts +47 -0
  269. package/src/core/version.ts +23 -0
  270. package/src/deploy/robots.ts +20 -0
  271. package/src/deploy/rss.ts +128 -0
  272. package/src/deploy/sitemap.ts +28 -0
  273. package/src/index.ts +39 -0
  274. package/src/markdown/code-title.ts +71 -0
  275. package/src/markdown/directives.ts +83 -0
  276. package/src/markdown/heading-anchors.ts +137 -0
  277. package/src/markdown/index.ts +228 -0
  278. package/src/markdown/inline-code.ts +108 -0
  279. package/src/markdown/language-icon.ts +172 -0
  280. package/src/markdown/math.ts +32 -0
  281. package/src/markdown/mdast.ts +48 -0
  282. package/src/markdown/mermaid.ts +37 -0
  283. package/src/markdown/package-commands.ts +159 -0
  284. package/src/markdown/package-install.ts +40 -0
  285. package/src/migrate/fumadocs/config.ts +155 -0
  286. package/src/migrate/fumadocs/content.ts +365 -0
  287. package/src/migrate/fumadocs/frontmatter.ts +18 -0
  288. package/src/migrate/fumadocs/groups.ts +230 -0
  289. package/src/migrate/fumadocs/index.ts +337 -0
  290. package/src/migrate/fumadocs/meta.ts +244 -0
  291. package/src/migrate/migrate.ts +53 -0
  292. package/src/migrate/mintlify/config.ts +1040 -0
  293. package/src/migrate/mintlify/content.ts +98 -0
  294. package/src/migrate/mintlify/frontmatter.ts +126 -0
  295. package/src/migrate/mintlify/i18n.ts +51 -0
  296. package/src/migrate/mintlify/icons.ts +128 -0
  297. package/src/migrate/mintlify/index.ts +266 -0
  298. package/src/migrate/mintlify/snippets.ts +306 -0
  299. package/src/migrate/mintlify/transform.ts +80 -0
  300. package/src/migrate/nextra/content.ts +46 -0
  301. package/src/migrate/nextra/frontmatter.ts +40 -0
  302. package/src/migrate/nextra/index.ts +374 -0
  303. package/src/migrate/nextra/meta.ts +266 -0
  304. package/src/migrate/shared.ts +720 -0
  305. package/src/migrate/starlight/config.ts +459 -0
  306. package/src/migrate/starlight/content.ts +78 -0
  307. package/src/migrate/starlight/frontmatter.ts +111 -0
  308. package/src/migrate/starlight/i18n.ts +54 -0
  309. package/src/migrate/starlight/index.ts +131 -0
  310. package/src/og/card.ts +92 -0
  311. package/src/og/index.ts +2 -0
  312. package/src/openapi/scalar.ts +246 -0
  313. package/src/registry/eject.ts +310 -0
  314. package/src/registry/registry.ts +100 -0
  315. package/src/registry/rewrite-imports.ts +39 -0
  316. package/src/runtime/index.ts +14 -0
  317. package/src/search/build.ts +23 -0
  318. package/src/search/documents.ts +164 -0
  319. package/src/search/orama-index.ts +66 -0
  320. package/src/search/providers.ts +91 -0
  321. package/src/search/sync/algolia.ts +30 -0
  322. package/src/search/sync/index.ts +50 -0
  323. package/src/search/sync/orama-cloud.ts +40 -0
  324. package/src/search/sync/typesense.ts +65 -0
  325. package/src/seo/jsonld.ts +113 -0
  326. package/src/theme/entry.ts +637 -0
  327. package/src/theme/fonts.ts +198 -0
  328. package/src/theme/icons.ts +184 -0
  329. package/src/theme/palette.ts +143 -0
  330. package/src/theme/twoslash.ts +81 -0
@@ -0,0 +1,500 @@
1
+ import { z } from "zod";
2
+ import { UI_PACKS } from "./ui-packs/index.ts";
3
+ /**
4
+ * Translatable UI chrome strings.
5
+ *
6
+ * The schema is the single source of truth: each field's `.default()` is the
7
+ * English baseline, so `EN_UI = uiStringsSchema.parse({})`. Shipped packs and
8
+ * user overrides merge on top (see {@link resolveUIStrings}). Grouped by surface
9
+ * to keep the runtime payload and component props readable.
10
+ */
11
+ declare const uiStringsObject: z.ZodObject<{
12
+ actions: z.ZodDefault<z.ZodObject<{
13
+ addToCursor: z.ZodDefault<z.ZodString>;
14
+ addToVscode: z.ZodDefault<z.ZodString>;
15
+ askAI: z.ZodDefault<z.ZodString>;
16
+ connectMcp: z.ZodDefault<z.ZodString>;
17
+ copied: z.ZodDefault<z.ZodString>;
18
+ copyClaudeCode: z.ZodDefault<z.ZodString>;
19
+ copyMarkdown: z.ZodDefault<z.ZodString>;
20
+ copyServerUrl: z.ZodDefault<z.ZodString>;
21
+ edit: z.ZodDefault<z.ZodString>;
22
+ openInChat: z.ZodDefault<z.ZodString>;
23
+ scrollToTop: z.ZodDefault<z.ZodString>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ addToCursor: string;
26
+ addToVscode: string;
27
+ askAI: string;
28
+ connectMcp: string;
29
+ copied: string;
30
+ copyClaudeCode: string;
31
+ copyMarkdown: string;
32
+ copyServerUrl: string;
33
+ edit: string;
34
+ openInChat: string;
35
+ scrollToTop: string;
36
+ }, {
37
+ addToCursor?: string | undefined;
38
+ addToVscode?: string | undefined;
39
+ askAI?: string | undefined;
40
+ connectMcp?: string | undefined;
41
+ copied?: string | undefined;
42
+ copyClaudeCode?: string | undefined;
43
+ copyMarkdown?: string | undefined;
44
+ copyServerUrl?: string | undefined;
45
+ edit?: string | undefined;
46
+ openInChat?: string | undefined;
47
+ scrollToTop?: string | undefined;
48
+ }>>;
49
+ ask: z.ZodDefault<z.ZodObject<{
50
+ empty: z.ZodDefault<z.ZodString>;
51
+ error: z.ZodDefault<z.ZodString>;
52
+ label: z.ZodDefault<z.ZodString>;
53
+ placeholder: z.ZodDefault<z.ZodString>;
54
+ send: z.ZodDefault<z.ZodString>;
55
+ title: z.ZodDefault<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ empty: string;
58
+ error: string;
59
+ label: string;
60
+ placeholder: string;
61
+ send: string;
62
+ title: string;
63
+ }, {
64
+ empty?: string | undefined;
65
+ error?: string | undefined;
66
+ label?: string | undefined;
67
+ placeholder?: string | undefined;
68
+ send?: string | undefined;
69
+ title?: string | undefined;
70
+ }>>;
71
+ feedback: z.ZodDefault<z.ZodObject<{
72
+ no: z.ZodDefault<z.ZodString>;
73
+ question: z.ZodDefault<z.ZodString>;
74
+ thanks: z.ZodDefault<z.ZodString>;
75
+ yes: z.ZodDefault<z.ZodString>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ no: string;
78
+ question: string;
79
+ thanks: string;
80
+ yes: string;
81
+ }, {
82
+ no?: string | undefined;
83
+ question?: string | undefined;
84
+ thanks?: string | undefined;
85
+ yes?: string | undefined;
86
+ }>>;
87
+ languageSwitcher: z.ZodDefault<z.ZodObject<{
88
+ label: z.ZodDefault<z.ZodString>;
89
+ untranslated: z.ZodDefault<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ label: string;
92
+ untranslated: string;
93
+ }, {
94
+ label?: string | undefined;
95
+ untranslated?: string | undefined;
96
+ }>>;
97
+ page: z.ZodDefault<z.ZodObject<{
98
+ lastUpdated: z.ZodDefault<z.ZodString>;
99
+ next: z.ZodDefault<z.ZodString>;
100
+ previous: z.ZodDefault<z.ZodString>;
101
+ skipToContent: z.ZodDefault<z.ZodString>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ lastUpdated: string;
104
+ next: string;
105
+ previous: string;
106
+ skipToContent: string;
107
+ }, {
108
+ lastUpdated?: string | undefined;
109
+ next?: string | undefined;
110
+ previous?: string | undefined;
111
+ skipToContent?: string | undefined;
112
+ }>>;
113
+ search: z.ZodDefault<z.ZodObject<{
114
+ allLanguages: z.ZodDefault<z.ZodString>;
115
+ button: z.ZodDefault<z.ZodString>;
116
+ devOnly: z.ZodDefault<z.ZodString>;
117
+ label: z.ZodDefault<z.ZodString>;
118
+ noResults: z.ZodDefault<z.ZodString>;
119
+ placeholder: z.ZodDefault<z.ZodString>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ label: string;
122
+ placeholder: string;
123
+ button: string;
124
+ devOnly: string;
125
+ noResults: string;
126
+ allLanguages: string;
127
+ }, {
128
+ label?: string | undefined;
129
+ placeholder?: string | undefined;
130
+ button?: string | undefined;
131
+ devOnly?: string | undefined;
132
+ noResults?: string | undefined;
133
+ allLanguages?: string | undefined;
134
+ }>>;
135
+ toc: z.ZodDefault<z.ZodObject<{
136
+ title: z.ZodDefault<z.ZodString>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ title: string;
139
+ }, {
140
+ title?: string | undefined;
141
+ }>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ actions: {
144
+ addToCursor: string;
145
+ addToVscode: string;
146
+ askAI: string;
147
+ connectMcp: string;
148
+ copied: string;
149
+ copyClaudeCode: string;
150
+ copyMarkdown: string;
151
+ copyServerUrl: string;
152
+ edit: string;
153
+ openInChat: string;
154
+ scrollToTop: string;
155
+ };
156
+ ask: {
157
+ empty: string;
158
+ error: string;
159
+ label: string;
160
+ placeholder: string;
161
+ send: string;
162
+ title: string;
163
+ };
164
+ feedback: {
165
+ no: string;
166
+ question: string;
167
+ thanks: string;
168
+ yes: string;
169
+ };
170
+ languageSwitcher: {
171
+ label: string;
172
+ untranslated: string;
173
+ };
174
+ page: {
175
+ lastUpdated: string;
176
+ next: string;
177
+ previous: string;
178
+ skipToContent: string;
179
+ };
180
+ search: {
181
+ label: string;
182
+ placeholder: string;
183
+ button: string;
184
+ devOnly: string;
185
+ noResults: string;
186
+ allLanguages: string;
187
+ };
188
+ toc: {
189
+ title: string;
190
+ };
191
+ }, {
192
+ actions?: {
193
+ addToCursor?: string | undefined;
194
+ addToVscode?: string | undefined;
195
+ askAI?: string | undefined;
196
+ connectMcp?: string | undefined;
197
+ copied?: string | undefined;
198
+ copyClaudeCode?: string | undefined;
199
+ copyMarkdown?: string | undefined;
200
+ copyServerUrl?: string | undefined;
201
+ edit?: string | undefined;
202
+ openInChat?: string | undefined;
203
+ scrollToTop?: string | undefined;
204
+ } | undefined;
205
+ ask?: {
206
+ empty?: string | undefined;
207
+ error?: string | undefined;
208
+ label?: string | undefined;
209
+ placeholder?: string | undefined;
210
+ send?: string | undefined;
211
+ title?: string | undefined;
212
+ } | undefined;
213
+ feedback?: {
214
+ no?: string | undefined;
215
+ question?: string | undefined;
216
+ thanks?: string | undefined;
217
+ yes?: string | undefined;
218
+ } | undefined;
219
+ languageSwitcher?: {
220
+ label?: string | undefined;
221
+ untranslated?: string | undefined;
222
+ } | undefined;
223
+ page?: {
224
+ lastUpdated?: string | undefined;
225
+ next?: string | undefined;
226
+ previous?: string | undefined;
227
+ skipToContent?: string | undefined;
228
+ } | undefined;
229
+ search?: {
230
+ label?: string | undefined;
231
+ placeholder?: string | undefined;
232
+ button?: string | undefined;
233
+ devOnly?: string | undefined;
234
+ noResults?: string | undefined;
235
+ allLanguages?: string | undefined;
236
+ } | undefined;
237
+ toc?: {
238
+ title?: string | undefined;
239
+ } | undefined;
240
+ }>;
241
+ export declare const uiStringsSchema: z.ZodDefault<z.ZodObject<{
242
+ actions: z.ZodDefault<z.ZodObject<{
243
+ addToCursor: z.ZodDefault<z.ZodString>;
244
+ addToVscode: z.ZodDefault<z.ZodString>;
245
+ askAI: z.ZodDefault<z.ZodString>;
246
+ connectMcp: z.ZodDefault<z.ZodString>;
247
+ copied: z.ZodDefault<z.ZodString>;
248
+ copyClaudeCode: z.ZodDefault<z.ZodString>;
249
+ copyMarkdown: z.ZodDefault<z.ZodString>;
250
+ copyServerUrl: z.ZodDefault<z.ZodString>;
251
+ edit: z.ZodDefault<z.ZodString>;
252
+ openInChat: z.ZodDefault<z.ZodString>;
253
+ scrollToTop: z.ZodDefault<z.ZodString>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ addToCursor: string;
256
+ addToVscode: string;
257
+ askAI: string;
258
+ connectMcp: string;
259
+ copied: string;
260
+ copyClaudeCode: string;
261
+ copyMarkdown: string;
262
+ copyServerUrl: string;
263
+ edit: string;
264
+ openInChat: string;
265
+ scrollToTop: string;
266
+ }, {
267
+ addToCursor?: string | undefined;
268
+ addToVscode?: string | undefined;
269
+ askAI?: string | undefined;
270
+ connectMcp?: string | undefined;
271
+ copied?: string | undefined;
272
+ copyClaudeCode?: string | undefined;
273
+ copyMarkdown?: string | undefined;
274
+ copyServerUrl?: string | undefined;
275
+ edit?: string | undefined;
276
+ openInChat?: string | undefined;
277
+ scrollToTop?: string | undefined;
278
+ }>>;
279
+ ask: z.ZodDefault<z.ZodObject<{
280
+ empty: z.ZodDefault<z.ZodString>;
281
+ error: z.ZodDefault<z.ZodString>;
282
+ label: z.ZodDefault<z.ZodString>;
283
+ placeholder: z.ZodDefault<z.ZodString>;
284
+ send: z.ZodDefault<z.ZodString>;
285
+ title: z.ZodDefault<z.ZodString>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ empty: string;
288
+ error: string;
289
+ label: string;
290
+ placeholder: string;
291
+ send: string;
292
+ title: string;
293
+ }, {
294
+ empty?: string | undefined;
295
+ error?: string | undefined;
296
+ label?: string | undefined;
297
+ placeholder?: string | undefined;
298
+ send?: string | undefined;
299
+ title?: string | undefined;
300
+ }>>;
301
+ feedback: z.ZodDefault<z.ZodObject<{
302
+ no: z.ZodDefault<z.ZodString>;
303
+ question: z.ZodDefault<z.ZodString>;
304
+ thanks: z.ZodDefault<z.ZodString>;
305
+ yes: z.ZodDefault<z.ZodString>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ no: string;
308
+ question: string;
309
+ thanks: string;
310
+ yes: string;
311
+ }, {
312
+ no?: string | undefined;
313
+ question?: string | undefined;
314
+ thanks?: string | undefined;
315
+ yes?: string | undefined;
316
+ }>>;
317
+ languageSwitcher: z.ZodDefault<z.ZodObject<{
318
+ label: z.ZodDefault<z.ZodString>;
319
+ untranslated: z.ZodDefault<z.ZodString>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ label: string;
322
+ untranslated: string;
323
+ }, {
324
+ label?: string | undefined;
325
+ untranslated?: string | undefined;
326
+ }>>;
327
+ page: z.ZodDefault<z.ZodObject<{
328
+ lastUpdated: z.ZodDefault<z.ZodString>;
329
+ next: z.ZodDefault<z.ZodString>;
330
+ previous: z.ZodDefault<z.ZodString>;
331
+ skipToContent: z.ZodDefault<z.ZodString>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ lastUpdated: string;
334
+ next: string;
335
+ previous: string;
336
+ skipToContent: string;
337
+ }, {
338
+ lastUpdated?: string | undefined;
339
+ next?: string | undefined;
340
+ previous?: string | undefined;
341
+ skipToContent?: string | undefined;
342
+ }>>;
343
+ search: z.ZodDefault<z.ZodObject<{
344
+ allLanguages: z.ZodDefault<z.ZodString>;
345
+ button: z.ZodDefault<z.ZodString>;
346
+ devOnly: z.ZodDefault<z.ZodString>;
347
+ label: z.ZodDefault<z.ZodString>;
348
+ noResults: z.ZodDefault<z.ZodString>;
349
+ placeholder: z.ZodDefault<z.ZodString>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ label: string;
352
+ placeholder: string;
353
+ button: string;
354
+ devOnly: string;
355
+ noResults: string;
356
+ allLanguages: string;
357
+ }, {
358
+ label?: string | undefined;
359
+ placeholder?: string | undefined;
360
+ button?: string | undefined;
361
+ devOnly?: string | undefined;
362
+ noResults?: string | undefined;
363
+ allLanguages?: string | undefined;
364
+ }>>;
365
+ toc: z.ZodDefault<z.ZodObject<{
366
+ title: z.ZodDefault<z.ZodString>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ title: string;
369
+ }, {
370
+ title?: string | undefined;
371
+ }>>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ actions: {
374
+ addToCursor: string;
375
+ addToVscode: string;
376
+ askAI: string;
377
+ connectMcp: string;
378
+ copied: string;
379
+ copyClaudeCode: string;
380
+ copyMarkdown: string;
381
+ copyServerUrl: string;
382
+ edit: string;
383
+ openInChat: string;
384
+ scrollToTop: string;
385
+ };
386
+ ask: {
387
+ empty: string;
388
+ error: string;
389
+ label: string;
390
+ placeholder: string;
391
+ send: string;
392
+ title: string;
393
+ };
394
+ feedback: {
395
+ no: string;
396
+ question: string;
397
+ thanks: string;
398
+ yes: string;
399
+ };
400
+ languageSwitcher: {
401
+ label: string;
402
+ untranslated: string;
403
+ };
404
+ page: {
405
+ lastUpdated: string;
406
+ next: string;
407
+ previous: string;
408
+ skipToContent: string;
409
+ };
410
+ search: {
411
+ label: string;
412
+ placeholder: string;
413
+ button: string;
414
+ devOnly: string;
415
+ noResults: string;
416
+ allLanguages: string;
417
+ };
418
+ toc: {
419
+ title: string;
420
+ };
421
+ }, {
422
+ actions?: {
423
+ addToCursor?: string | undefined;
424
+ addToVscode?: string | undefined;
425
+ askAI?: string | undefined;
426
+ connectMcp?: string | undefined;
427
+ copied?: string | undefined;
428
+ copyClaudeCode?: string | undefined;
429
+ copyMarkdown?: string | undefined;
430
+ copyServerUrl?: string | undefined;
431
+ edit?: string | undefined;
432
+ openInChat?: string | undefined;
433
+ scrollToTop?: string | undefined;
434
+ } | undefined;
435
+ ask?: {
436
+ empty?: string | undefined;
437
+ error?: string | undefined;
438
+ label?: string | undefined;
439
+ placeholder?: string | undefined;
440
+ send?: string | undefined;
441
+ title?: string | undefined;
442
+ } | undefined;
443
+ feedback?: {
444
+ no?: string | undefined;
445
+ question?: string | undefined;
446
+ thanks?: string | undefined;
447
+ yes?: string | undefined;
448
+ } | undefined;
449
+ languageSwitcher?: {
450
+ label?: string | undefined;
451
+ untranslated?: string | undefined;
452
+ } | undefined;
453
+ page?: {
454
+ lastUpdated?: string | undefined;
455
+ next?: string | undefined;
456
+ previous?: string | undefined;
457
+ skipToContent?: string | undefined;
458
+ } | undefined;
459
+ search?: {
460
+ label?: string | undefined;
461
+ placeholder?: string | undefined;
462
+ button?: string | undefined;
463
+ devOnly?: string | undefined;
464
+ noResults?: string | undefined;
465
+ allLanguages?: string | undefined;
466
+ } | undefined;
467
+ toc?: {
468
+ title?: string | undefined;
469
+ } | undefined;
470
+ }>>;
471
+ /** A fully-resolved dictionary; every key present. */
472
+ export type UIStrings = z.infer<typeof uiStringsObject>;
473
+ /** The English baseline, derived from the schema defaults. */
474
+ export declare const EN_UI: UIStrings;
475
+ /**
476
+ * A partial override: `{ group: { key: "translation" } }`. Validated loosely
477
+ * (object of objects of strings) so packs and user config can supply only the
478
+ * keys they translate. Unknown groups/keys merge harmlessly.
479
+ */
480
+ export declare const uiStringsOverrideSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
481
+ export type UIStringsOverride = z.infer<typeof uiStringsOverrideSchema>;
482
+ /** Per-locale UI overrides supplied in `i18n.ui`. */
483
+ export declare const uiLocaleOverridesSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
484
+ /**
485
+ * Built-in translation packs, one module per locale under {@link ./ui-packs}.
486
+ * English is the schema baseline (no pack); every other locale ships a starter
487
+ * pack so adopters get translated chrome out of the box. Re-exported here so the
488
+ * resolver and existing imports keep a single entry point.
489
+ */
490
+ export { UI_PACKS };
491
+ /**
492
+ * Resolve the active dictionary for a locale. Layers, in order:
493
+ * English baseline ← default-locale pack ← default-locale override ←
494
+ * locale pack ← locale override. So a missing key falls back to the default
495
+ * locale's translation, then to English.
496
+ */
497
+ export declare const resolveUIStrings: (locale: string, options: {
498
+ defaultLocale: string;
499
+ overrides?: Record<string, UIStringsOverride>;
500
+ }) => UIStrings;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Create a loader for user-authored ESM/TS modules (`blume.config.ts`,
3
+ * `meta.ts`). One jiti instance is reused across every file the returned loader
4
+ * is called with. `moduleCache: false` ensures edits are picked up on each load,
5
+ * which is what makes dev-server regeneration reflect config/meta changes.
6
+ */
7
+ export declare const createModuleLoader: () => ((file: string) => Promise<unknown>);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Walk up from `start` until a directory containing a `package.json` is found.
3
+ *
4
+ * Exported for testing; call sites should use {@link packageRoot}.
5
+ */
6
+ export declare const findPackageRoot: (start: string) => string;
7
+ /**
8
+ * Absolute path to the installed Blume package root (the directory holding its
9
+ * `package.json`), found by walking up from this module.
10
+ *
11
+ * Anchoring here — rather than at a fixed offset from `import.meta` — keeps the
12
+ * package's own `src/`, assets, and `node_modules` locatable whether the code
13
+ * runs from source under Bun (`src/...`) or from the published, bundled CLI
14
+ * (`dist/cli/index.js`). The two layouts sit at different depths, so a relative
15
+ * `../..` resolves to different places; locating `package.json` does not.
16
+ */
17
+ export declare const packageRoot: () => string;
@@ -0,0 +1,9 @@
1
+ import type { ResolvedConfig } from "./schema.ts";
2
+ import type { ProjectContext } from "./types.ts";
3
+ /** Locate the Blume config file for a project root, if any. */
4
+ export declare const findConfigFile: (root: string) => string | null;
5
+ /**
6
+ * Resolve every path Blume needs from a project root and its resolved config.
7
+ * Paths are absolute and normalized.
8
+ */
9
+ export declare const resolveProjectContext: (root: string, config: ResolvedConfig) => ProjectContext;