@iksnerd/blazon 0.0.0-stage → 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 (503) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +259 -2
  3. package/THIRD-PARTY-NOTICES.md +60 -0
  4. package/bin/blazon.js +4 -0
  5. package/dist/builder/site-builder.d.ts +10 -0
  6. package/dist/builder/site-builder.d.ts.map +1 -0
  7. package/dist/chunks/site-builder-CPfjBOmR.js +13804 -0
  8. package/dist/cli/commands/approvals.d.ts +8 -0
  9. package/dist/cli/commands/approvals.d.ts.map +1 -0
  10. package/dist/cli/commands/build.d.ts +8 -0
  11. package/dist/cli/commands/build.d.ts.map +1 -0
  12. package/dist/cli/commands/check.d.ts +33 -0
  13. package/dist/cli/commands/check.d.ts.map +1 -0
  14. package/dist/cli/commands/cwd.d.ts +14 -0
  15. package/dist/cli/commands/cwd.d.ts.map +1 -0
  16. package/dist/cli/commands/dev.d.ts +5 -0
  17. package/dist/cli/commands/dev.d.ts.map +1 -0
  18. package/dist/cli/commands/doctor.d.ts +34 -0
  19. package/dist/cli/commands/doctor.d.ts.map +1 -0
  20. package/dist/cli/commands/drift.d.ts +11 -0
  21. package/dist/cli/commands/drift.d.ts.map +1 -0
  22. package/dist/cli/commands/explain.d.ts +5 -0
  23. package/dist/cli/commands/explain.d.ts.map +1 -0
  24. package/dist/cli/commands/init.d.ts +46 -0
  25. package/dist/cli/commands/init.d.ts.map +1 -0
  26. package/dist/cli/commands/mcp-check.d.ts +57 -0
  27. package/dist/cli/commands/mcp-check.d.ts.map +1 -0
  28. package/dist/cli/commands/mcp.d.ts +13 -0
  29. package/dist/cli/commands/mcp.d.ts.map +1 -0
  30. package/dist/cli/commands/pin.d.ts +7 -0
  31. package/dist/cli/commands/pin.d.ts.map +1 -0
  32. package/dist/cli/commands/plugin.d.ts +32 -0
  33. package/dist/cli/commands/plugin.d.ts.map +1 -0
  34. package/dist/cli/commands/preview.d.ts +5 -0
  35. package/dist/cli/commands/preview.d.ts.map +1 -0
  36. package/dist/cli/commands/tokens.d.ts +5 -0
  37. package/dist/cli/commands/tokens.d.ts.map +1 -0
  38. package/dist/cli/errors.d.ts +53 -0
  39. package/dist/cli/errors.d.ts.map +1 -0
  40. package/dist/cli/handlers/brand.d.ts +7 -0
  41. package/dist/cli/handlers/brand.d.ts.map +1 -0
  42. package/dist/cli/handlers/can.d.ts +7 -0
  43. package/dist/cli/handlers/can.d.ts.map +1 -0
  44. package/dist/cli/handlers/fonts.d.ts +4 -0
  45. package/dist/cli/handlers/fonts.d.ts.map +1 -0
  46. package/dist/cli/handlers/get.d.ts +7 -0
  47. package/dist/cli/handlers/get.d.ts.map +1 -0
  48. package/dist/cli/handlers/index.d.ts +8 -0
  49. package/dist/cli/handlers/index.d.ts.map +1 -0
  50. package/dist/cli/handlers/list.d.ts +7 -0
  51. package/dist/cli/handlers/list.d.ts.map +1 -0
  52. package/dist/cli/handlers/logo.d.ts +4 -0
  53. package/dist/cli/handlers/logo.d.ts.map +1 -0
  54. package/dist/cli/handlers/rules.d.ts +10 -0
  55. package/dist/cli/handlers/rules.d.ts.map +1 -0
  56. package/dist/cli/handlers/types.d.ts +17 -0
  57. package/dist/cli/handlers/types.d.ts.map +1 -0
  58. package/dist/cli/help.d.ts +18 -0
  59. package/dist/cli/help.d.ts.map +1 -0
  60. package/dist/cli/index.d.ts +2 -0
  61. package/dist/cli/index.d.ts.map +1 -0
  62. package/dist/cli/index.js +3850 -0
  63. package/dist/cli/init-flow.d.ts +24 -0
  64. package/dist/cli/init-flow.d.ts.map +1 -0
  65. package/dist/cli/init-ui.d.ts +20 -0
  66. package/dist/cli/init-ui.d.ts.map +1 -0
  67. package/dist/cli/json.d.ts +18 -0
  68. package/dist/cli/json.d.ts.map +1 -0
  69. package/dist/cli/operations.d.ts +11 -0
  70. package/dist/cli/operations.d.ts.map +1 -0
  71. package/dist/cli/options.d.ts +8 -0
  72. package/dist/cli/options.d.ts.map +1 -0
  73. package/dist/cli/project.d.ts +8 -0
  74. package/dist/cli/project.d.ts.map +1 -0
  75. package/dist/cli/read.d.ts +13 -0
  76. package/dist/cli/read.d.ts.map +1 -0
  77. package/dist/cli/where.d.ts +10 -0
  78. package/dist/cli/where.d.ts.map +1 -0
  79. package/dist/core/assets/categories.d.ts +47 -0
  80. package/dist/core/assets/categories.d.ts.map +1 -0
  81. package/dist/core/assets/fields.d.ts +12 -0
  82. package/dist/core/assets/fields.d.ts.map +1 -0
  83. package/dist/core/assets/image-size.d.ts +10 -0
  84. package/dist/core/assets/image-size.d.ts.map +1 -0
  85. package/dist/core/assets/measure.d.ts +22 -0
  86. package/dist/core/assets/measure.d.ts.map +1 -0
  87. package/dist/core/assets/scanner.d.ts +26 -0
  88. package/dist/core/assets/scanner.d.ts.map +1 -0
  89. package/dist/core/assets/sidecar.d.ts +22 -0
  90. package/dist/core/assets/sidecar.d.ts.map +1 -0
  91. package/dist/core/blazon-pin.d.ts +36 -0
  92. package/dist/core/blazon-pin.d.ts.map +1 -0
  93. package/dist/core/brand/export.d.ts +128 -0
  94. package/dist/core/brand/export.d.ts.map +1 -0
  95. package/dist/core/brand/schema.d.ts +1000 -0
  96. package/dist/core/brand/schema.d.ts.map +1 -0
  97. package/dist/core/brand-theme.d.ts +16 -0
  98. package/dist/core/brand-theme.d.ts.map +1 -0
  99. package/dist/core/checker/approvals.d.ts +15 -0
  100. package/dist/core/checker/approvals.d.ts.map +1 -0
  101. package/dist/core/checker/cascade.d.ts +8 -0
  102. package/dist/core/checker/cascade.d.ts.map +1 -0
  103. package/dist/core/checker/catalogue.d.ts +609 -0
  104. package/dist/core/checker/catalogue.d.ts.map +1 -0
  105. package/dist/core/checker/contrast.d.ts +30 -0
  106. package/dist/core/checker/contrast.d.ts.map +1 -0
  107. package/dist/core/checker/duplicates.d.ts +3 -0
  108. package/dist/core/checker/duplicates.d.ts.map +1 -0
  109. package/dist/core/checker/fixes.d.ts +6 -0
  110. package/dist/core/checker/fixes.d.ts.map +1 -0
  111. package/dist/core/checker/font-meta.d.ts +8 -0
  112. package/dist/core/checker/font-meta.d.ts.map +1 -0
  113. package/dist/core/checker/index.d.ts +23 -0
  114. package/dist/core/checker/index.d.ts.map +1 -0
  115. package/dist/core/checker/location.d.ts +7 -0
  116. package/dist/core/checker/location.d.ts.map +1 -0
  117. package/dist/core/checker/logo-rules.d.ts +19 -0
  118. package/dist/core/checker/logo-rules.d.ts.map +1 -0
  119. package/dist/core/checker/logo-surfaces.d.ts +7 -0
  120. package/dist/core/checker/logo-surfaces.d.ts.map +1 -0
  121. package/dist/core/checker/page-tokens.d.ts +5 -0
  122. package/dist/core/checker/page-tokens.d.ts.map +1 -0
  123. package/dist/core/checker/print.d.ts +9 -0
  124. package/dist/core/checker/print.d.ts.map +1 -0
  125. package/dist/core/checker/proportion.d.ts +3 -0
  126. package/dist/core/checker/proportion.d.ts.map +1 -0
  127. package/dist/core/checker/review.d.ts +40 -0
  128. package/dist/core/checker/review.d.ts.map +1 -0
  129. package/dist/core/checker/source.d.ts +4 -0
  130. package/dist/core/checker/source.d.ts.map +1 -0
  131. package/dist/core/checker/spdx.d.ts +8 -0
  132. package/dist/core/checker/spdx.d.ts.map +1 -0
  133. package/dist/core/checker/tier.d.ts +3 -0
  134. package/dist/core/checker/tier.d.ts.map +1 -0
  135. package/dist/core/checker/usage.d.ts +4 -0
  136. package/dist/core/checker/usage.d.ts.map +1 -0
  137. package/dist/core/checker/variables.d.ts +8 -0
  138. package/dist/core/checker/variables.d.ts.map +1 -0
  139. package/dist/core/colors.d.ts +10 -0
  140. package/dist/core/colors.d.ts.map +1 -0
  141. package/dist/core/config/defaults.d.ts +3 -0
  142. package/dist/core/config/defaults.d.ts.map +1 -0
  143. package/dist/core/config/index.d.ts +15 -0
  144. package/dist/core/config/index.d.ts.map +1 -0
  145. package/dist/core/config/validate.d.ts +21 -0
  146. package/dist/core/config/validate.d.ts.map +1 -0
  147. package/dist/core/config/vocabulary.d.ts +10 -0
  148. package/dist/core/config/vocabulary.d.ts.map +1 -0
  149. package/dist/core/confine.d.ts +25 -0
  150. package/dist/core/confine.d.ts.map +1 -0
  151. package/dist/core/docs/directives.d.ts +161 -0
  152. package/dist/core/docs/directives.d.ts.map +1 -0
  153. package/dist/core/docs/parser.d.ts +7 -0
  154. package/dist/core/docs/parser.d.ts.map +1 -0
  155. package/dist/core/docs/sections.d.ts +11 -0
  156. package/dist/core/docs/sections.d.ts.map +1 -0
  157. package/dist/core/drift/compare.d.ts +30 -0
  158. package/dist/core/drift/compare.d.ts.map +1 -0
  159. package/dist/core/drift/read.d.ts +22 -0
  160. package/dist/core/drift/read.d.ts.map +1 -0
  161. package/dist/core/email-signature.d.ts +35 -0
  162. package/dist/core/email-signature.d.ts.map +1 -0
  163. package/dist/core/emit.d.ts +22 -0
  164. package/dist/core/emit.d.ts.map +1 -0
  165. package/dist/core/fonts.d.ts +43 -0
  166. package/dist/core/fonts.d.ts.map +1 -0
  167. package/dist/core/icons/icon-sets.d.ts +22 -0
  168. package/dist/core/icons/icon-sets.d.ts.map +1 -0
  169. package/dist/core/index.d.ts +9 -0
  170. package/dist/core/index.d.ts.map +1 -0
  171. package/dist/core/init/answers.d.ts +45 -0
  172. package/dist/core/init/answers.d.ts.map +1 -0
  173. package/dist/core/init/from-site/apply.d.ts +7 -0
  174. package/dist/core/init/from-site/apply.d.ts.map +1 -0
  175. package/dist/core/init/from-site/clean-colors.d.ts +21 -0
  176. package/dist/core/init/from-site/clean-colors.d.ts.map +1 -0
  177. package/dist/core/init/from-site/colors.d.ts +10 -0
  178. package/dist/core/init/from-site/colors.d.ts.map +1 -0
  179. package/dist/core/init/from-site/context.d.ts +24 -0
  180. package/dist/core/init/from-site/context.d.ts.map +1 -0
  181. package/dist/core/init/from-site/fonts.d.ts +10 -0
  182. package/dist/core/init/from-site/fonts.d.ts.map +1 -0
  183. package/dist/core/init/from-site/html.d.ts +10 -0
  184. package/dist/core/init/from-site/html.d.ts.map +1 -0
  185. package/dist/core/init/from-site/index.d.ts +6 -0
  186. package/dist/core/init/from-site/index.d.ts.map +1 -0
  187. package/dist/core/init/from-site/inspect.d.ts +4 -0
  188. package/dist/core/init/from-site/inspect.d.ts.map +1 -0
  189. package/dist/core/init/from-site/logo.d.ts +20 -0
  190. package/dist/core/init/from-site/logo.d.ts.map +1 -0
  191. package/dist/core/init/from-site/sections/colors.d.ts +4 -0
  192. package/dist/core/init/from-site/sections/colors.d.ts.map +1 -0
  193. package/dist/core/init/from-site/sections/config.d.ts +10 -0
  194. package/dist/core/init/from-site/sections/config.d.ts.map +1 -0
  195. package/dist/core/init/from-site/sections/directives.d.ts +3 -0
  196. package/dist/core/init/from-site/sections/directives.d.ts.map +1 -0
  197. package/dist/core/init/from-site/sections/fonts.d.ts +8 -0
  198. package/dist/core/init/from-site/sections/fonts.d.ts.map +1 -0
  199. package/dist/core/init/from-site/sections/intro.d.ts +4 -0
  200. package/dist/core/init/from-site/sections/intro.d.ts.map +1 -0
  201. package/dist/core/init/from-site/sections/logo.d.ts +9 -0
  202. package/dist/core/init/from-site/sections/logo.d.ts.map +1 -0
  203. package/dist/core/init/from-site/sections/placeholder.d.ts +5 -0
  204. package/dist/core/init/from-site/sections/placeholder.d.ts.map +1 -0
  205. package/dist/core/init/from-site/tree.d.ts +14 -0
  206. package/dist/core/init/from-site/tree.d.ts.map +1 -0
  207. package/dist/core/init/from-site/types.d.ts +37 -0
  208. package/dist/core/init/from-site/types.d.ts.map +1 -0
  209. package/dist/core/init/palette.d.ts +34 -0
  210. package/dist/core/init/palette.d.ts.map +1 -0
  211. package/dist/core/init/prompts.d.ts +78 -0
  212. package/dist/core/init/prompts.d.ts.map +1 -0
  213. package/dist/core/init/shared/google-fonts.d.ts +4 -0
  214. package/dist/core/init/shared/google-fonts.d.ts.map +1 -0
  215. package/dist/core/init/shared/hex.d.ts +6 -0
  216. package/dist/core/init/shared/hex.d.ts.map +1 -0
  217. package/dist/core/init/shared/svg.d.ts +3 -0
  218. package/dist/core/init/shared/svg.d.ts.map +1 -0
  219. package/dist/core/init/vocabulary.d.ts +42 -0
  220. package/dist/core/init/vocabulary.d.ts.map +1 -0
  221. package/dist/core/inputs.d.ts +25 -0
  222. package/dist/core/inputs.d.ts.map +1 -0
  223. package/dist/core/logo/lockup.d.ts +54 -0
  224. package/dist/core/logo/lockup.d.ts.map +1 -0
  225. package/dist/core/logo.d.ts +23 -0
  226. package/dist/core/logo.d.ts.map +1 -0
  227. package/dist/core/mcp-config.d.ts +65 -0
  228. package/dist/core/mcp-config.d.ts.map +1 -0
  229. package/dist/core/operations/check.d.ts +8 -0
  230. package/dist/core/operations/check.d.ts.map +1 -0
  231. package/dist/core/operations/index.d.ts +7 -0
  232. package/dist/core/operations/index.d.ts.map +1 -0
  233. package/dist/core/operations/limits.d.ts +6 -0
  234. package/dist/core/operations/limits.d.ts.map +1 -0
  235. package/dist/core/operations/list.d.ts +8 -0
  236. package/dist/core/operations/list.d.ts.map +1 -0
  237. package/dist/core/operations/project.d.ts +10 -0
  238. package/dist/core/operations/project.d.ts.map +1 -0
  239. package/dist/core/operations/types.d.ts +96 -0
  240. package/dist/core/operations/types.d.ts.map +1 -0
  241. package/dist/core/operations/validate.d.ts +4 -0
  242. package/dist/core/operations/validate.d.ts.map +1 -0
  243. package/dist/core/order.d.ts +9 -0
  244. package/dist/core/order.d.ts.map +1 -0
  245. package/dist/core/outputs.d.ts +22 -0
  246. package/dist/core/outputs.d.ts.map +1 -0
  247. package/dist/core/package-name.d.ts +3 -0
  248. package/dist/core/package-name.d.ts.map +1 -0
  249. package/dist/core/package-root.d.ts +3 -0
  250. package/dist/core/package-root.d.ts.map +1 -0
  251. package/dist/core/plugin-name.d.ts +27 -0
  252. package/dist/core/plugin-name.d.ts.map +1 -0
  253. package/dist/core/preflight.d.ts +10 -0
  254. package/dist/core/preflight.d.ts.map +1 -0
  255. package/dist/core/read/can.d.ts +44 -0
  256. package/dist/core/read/can.d.ts.map +1 -0
  257. package/dist/core/read/fonts.d.ts +47 -0
  258. package/dist/core/read/fonts.d.ts.map +1 -0
  259. package/dist/core/read/index.d.ts +8 -0
  260. package/dist/core/read/index.d.ts.map +1 -0
  261. package/dist/core/read/list.d.ts +28 -0
  262. package/dist/core/read/list.d.ts.map +1 -0
  263. package/dist/core/read/logo.d.ts +34 -0
  264. package/dist/core/read/logo.d.ts.map +1 -0
  265. package/dist/core/read/lookup.d.ts +9 -0
  266. package/dist/core/read/lookup.d.ts.map +1 -0
  267. package/dist/core/read/rules.d.ts +80 -0
  268. package/dist/core/read/rules.d.ts.map +1 -0
  269. package/dist/core/read/token.d.ts +46 -0
  270. package/dist/core/read/token.d.ts.map +1 -0
  271. package/dist/core/shipped-names.d.ts +9 -0
  272. package/dist/core/shipped-names.d.ts.map +1 -0
  273. package/dist/core/starter.d.ts +31 -0
  274. package/dist/core/starter.d.ts.map +1 -0
  275. package/dist/core/suggest.d.ts +7 -0
  276. package/dist/core/suggest.d.ts.map +1 -0
  277. package/dist/core/tokens/alias.d.ts +18 -0
  278. package/dist/core/tokens/alias.d.ts.map +1 -0
  279. package/dist/core/tokens/contexts.d.ts +10 -0
  280. package/dist/core/tokens/contexts.d.ts.map +1 -0
  281. package/dist/core/tokens/formatters/css.d.ts +15 -0
  282. package/dist/core/tokens/formatters/css.d.ts.map +1 -0
  283. package/dist/core/tokens/formatters/json.d.ts +4 -0
  284. package/dist/core/tokens/formatters/json.d.ts.map +1 -0
  285. package/dist/core/tokens/formatters/tailwind.d.ts +37 -0
  286. package/dist/core/tokens/formatters/tailwind.d.ts.map +1 -0
  287. package/dist/core/tokens/formatters/ts.d.ts +6 -0
  288. package/dist/core/tokens/formatters/ts.d.ts.map +1 -0
  289. package/dist/core/tokens/groups.d.ts +44 -0
  290. package/dist/core/tokens/groups.d.ts.map +1 -0
  291. package/dist/core/tokens/key-lines.d.ts +8 -0
  292. package/dist/core/tokens/key-lines.d.ts.map +1 -0
  293. package/dist/core/tokens/load.d.ts +12 -0
  294. package/dist/core/tokens/load.d.ts.map +1 -0
  295. package/dist/core/tokens/merge.d.ts +17 -0
  296. package/dist/core/tokens/merge.d.ts.map +1 -0
  297. package/dist/core/tokens/names.d.ts +5 -0
  298. package/dist/core/tokens/names.d.ts.map +1 -0
  299. package/dist/core/tokens/resolve.d.ts +8 -0
  300. package/dist/core/tokens/resolve.d.ts.map +1 -0
  301. package/dist/core/tokens/resolver/compile.d.ts +17 -0
  302. package/dist/core/tokens/resolver/compile.d.ts.map +1 -0
  303. package/dist/core/tokens/resolver/inputs.d.ts +7 -0
  304. package/dist/core/tokens/resolver/inputs.d.ts.map +1 -0
  305. package/dist/core/tokens/resolver/parse.d.ts +34 -0
  306. package/dist/core/tokens/resolver/parse.d.ts.map +1 -0
  307. package/dist/core/tokens/resolver/sources.d.ts +17 -0
  308. package/dist/core/tokens/resolver/sources.d.ts.map +1 -0
  309. package/dist/core/tokens/shadcn.d.ts +43 -0
  310. package/dist/core/tokens/shadcn.d.ts.map +1 -0
  311. package/dist/core/tokens/theme.d.ts +17 -0
  312. package/dist/core/tokens/theme.d.ts.map +1 -0
  313. package/dist/core/tokens/values/color.d.ts +2 -0
  314. package/dist/core/tokens/values/color.d.ts.map +1 -0
  315. package/dist/core/tokens/values/composite.d.ts +7 -0
  316. package/dist/core/tokens/values/composite.d.ts.map +1 -0
  317. package/dist/core/tokens/values/font.d.ts +3 -0
  318. package/dist/core/tokens/values/font.d.ts.map +1 -0
  319. package/dist/core/tokens/values/index.d.ts +9 -0
  320. package/dist/core/tokens/values/index.d.ts.map +1 -0
  321. package/dist/core/tokens/values/shared.d.ts +5 -0
  322. package/dist/core/tokens/values/shared.d.ts.map +1 -0
  323. package/dist/core/tokens/values/simple.d.ts +3 -0
  324. package/dist/core/tokens/values/simple.d.ts.map +1 -0
  325. package/dist/core/tokens/values/units.d.ts +3 -0
  326. package/dist/core/tokens/values/units.d.ts.map +1 -0
  327. package/dist/core/tokens/walk.d.ts +30 -0
  328. package/dist/core/tokens/walk.d.ts.map +1 -0
  329. package/dist/core/version.d.ts +3 -0
  330. package/dist/core/version.d.ts.map +1 -0
  331. package/dist/index.d.ts +27 -0
  332. package/dist/index.d.ts.map +1 -0
  333. package/dist/index.js +40 -0
  334. package/dist/plugins/host/admit.d.ts +35 -0
  335. package/dist/plugins/host/admit.d.ts.map +1 -0
  336. package/dist/plugins/host/call.d.ts +59 -0
  337. package/dist/plugins/host/call.d.ts.map +1 -0
  338. package/dist/plugins/host/check.d.ts +54 -0
  339. package/dist/plugins/host/check.d.ts.map +1 -0
  340. package/dist/plugins/host/scrub.d.ts +17 -0
  341. package/dist/plugins/host/scrub.d.ts.map +1 -0
  342. package/dist/plugins/index.d.ts +14 -0
  343. package/dist/plugins/index.d.ts.map +1 -0
  344. package/dist/plugins/pins/interpreter.d.ts +49 -0
  345. package/dist/plugins/pins/interpreter.d.ts.map +1 -0
  346. package/dist/plugins/pins/lock.d.ts +47 -0
  347. package/dist/plugins/pins/lock.d.ts.map +1 -0
  348. package/dist/plugins/pins/pin.d.ts +65 -0
  349. package/dist/plugins/pins/pin.d.ts.map +1 -0
  350. package/dist/plugins/pins/shipped.d.ts +40 -0
  351. package/dist/plugins/pins/shipped.d.ts.map +1 -0
  352. package/dist/plugins/roles/breaker.d.ts +18 -0
  353. package/dist/plugins/roles/breaker.d.ts.map +1 -0
  354. package/dist/plugins/roles/check-cases.d.ts +4 -0
  355. package/dist/plugins/roles/check-cases.d.ts.map +1 -0
  356. package/dist/plugins/roles/dev.d.ts +35 -0
  357. package/dist/plugins/roles/dev.d.ts.map +1 -0
  358. package/dist/plugins/roles/fixes.d.ts +24 -0
  359. package/dist/plugins/roles/fixes.d.ts.map +1 -0
  360. package/dist/plugins/roles/gate.d.ts +26 -0
  361. package/dist/plugins/roles/gate.d.ts.map +1 -0
  362. package/dist/plugins/roles/integrate.d.ts +12 -0
  363. package/dist/plugins/roles/integrate.d.ts.map +1 -0
  364. package/dist/plugins/roles/roles.d.ts +73 -0
  365. package/dist/plugins/roles/roles.d.ts.map +1 -0
  366. package/dist/plugins/wire/environment.d.ts +9 -0
  367. package/dist/plugins/wire/environment.d.ts.map +1 -0
  368. package/dist/plugins/wire/forms.d.ts +13 -0
  369. package/dist/plugins/wire/forms.d.ts.map +1 -0
  370. package/dist/plugins/wire/limits.d.ts +11 -0
  371. package/dist/plugins/wire/limits.d.ts.map +1 -0
  372. package/dist/plugins/wire/manifest.d.ts +31 -0
  373. package/dist/plugins/wire/manifest.d.ts.map +1 -0
  374. package/dist/plugins/wire/profile.d.ts +36 -0
  375. package/dist/plugins/wire/profile.d.ts.map +1 -0
  376. package/dist/plugins/wire/text.d.ts +14 -0
  377. package/dist/plugins/wire/text.d.ts.map +1 -0
  378. package/dist/server/assets.d.ts +13 -0
  379. package/dist/server/assets.d.ts.map +1 -0
  380. package/dist/server/coalesce.d.ts +12 -0
  381. package/dist/server/coalesce.d.ts.map +1 -0
  382. package/dist/server/data-script.d.ts +8 -0
  383. package/dist/server/data-script.d.ts.map +1 -0
  384. package/dist/server/dev-server.d.ts +34 -0
  385. package/dist/server/dev-server.d.ts.map +1 -0
  386. package/dist/server/editor-guard.d.ts +13 -0
  387. package/dist/server/editor-guard.d.ts.map +1 -0
  388. package/dist/server/error-reporter.d.ts +11 -0
  389. package/dist/server/error-reporter.d.ts.map +1 -0
  390. package/dist/server/icon-sets.d.ts +9 -0
  391. package/dist/server/icon-sets.d.ts.map +1 -0
  392. package/dist/server/plugin.d.ts +4 -0
  393. package/dist/server/plugin.d.ts.map +1 -0
  394. package/dist/server/preview-guard.d.ts +11 -0
  395. package/dist/server/preview-guard.d.ts.map +1 -0
  396. package/dist/types/assets.d.ts +130 -0
  397. package/dist/types/assets.d.ts.map +1 -0
  398. package/dist/types/catalog.d.ts +95 -0
  399. package/dist/types/catalog.d.ts.map +1 -0
  400. package/dist/types/config.d.ts +97 -0
  401. package/dist/types/config.d.ts.map +1 -0
  402. package/dist/types/data.d.ts +38 -0
  403. package/dist/types/data.d.ts.map +1 -0
  404. package/dist/types/docs.d.ts +47 -0
  405. package/dist/types/docs.d.ts.map +1 -0
  406. package/dist/types/findings.d.ts +18 -0
  407. package/dist/types/findings.d.ts.map +1 -0
  408. package/dist/types/index.d.ts +13 -0
  409. package/dist/types/index.d.ts.map +1 -0
  410. package/dist/types/parsed.d.ts +86 -0
  411. package/dist/types/parsed.d.ts.map +1 -0
  412. package/dist/types/theme.d.ts +19 -0
  413. package/dist/types/theme.d.ts.map +1 -0
  414. package/dist/types/tokens.d.ts +101 -0
  415. package/dist/types/tokens.d.ts.map +1 -0
  416. package/dist/ui/assets/geist-OFL.txt +93 -0
  417. package/dist/ui/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  418. package/dist/ui/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  419. package/dist/ui/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  420. package/dist/ui/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  421. package/dist/ui/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  422. package/dist/ui/assets/index-D0WCUmtA.css +2 -0
  423. package/dist/ui/assets/index-DhSc0Zxv.js +75 -0
  424. package/dist/ui/index.html +14 -0
  425. package/package.json +151 -4
  426. package/plugins/blazon.brand-deck/README.md +38 -0
  427. package/plugins/blazon.brand-deck/bin/blazon-blazon.brand-deck./360/237/224/214 +2695 -0
  428. package/plugins/blazon.brand-deck/package.json +3 -0
  429. package/plugins/blazon.copy/README.md +29 -0
  430. package/plugins/blazon.copy/bin/blazon-blazon.copy./360/237/224/214 +438 -0
  431. package/plugins/blazon.copy/package.json +3 -0
  432. package/plugins/blazon.favicons/README.md +13 -0
  433. package/plugins/blazon.favicons/bin/blazon-blazon.favicons./360/237/224/214 +8816 -0
  434. package/plugins/blazon.favicons/package.json +3 -0
  435. package/plugins/blazon.logo-geometry/README.md +5 -0
  436. package/plugins/blazon.logo-geometry/bin/blazon-blazon.logo-geometry./360/237/224/214 +1522 -0
  437. package/plugins/blazon.logo-geometry/package.json +3 -0
  438. package/plugins/blazon.logo-kit/README.md +5 -0
  439. package/plugins/blazon.logo-kit/bin/blazon-blazon.logo-kit./360/237/224/214 +617 -0
  440. package/plugins/blazon.logo-kit/package.json +3 -0
  441. package/plugins/blazon.office-template/README.md +29 -0
  442. package/plugins/blazon.office-template/bin/blazon-blazon.office-template./360/237/224/214 +1788 -0
  443. package/plugins/blazon.office-template/package.json +3 -0
  444. package/plugins/blazon.platform-tokens/README.md +22 -0
  445. package/plugins/blazon.platform-tokens/bin/blazon-blazon.platform-tokens./360/237/224/214 +8418 -0
  446. package/plugins/blazon.platform-tokens/package.json +3 -0
  447. package/plugins/blazon.press-kit/README.md +17 -0
  448. package/plugins/blazon.press-kit/bin/blazon-blazon.press-kit./360/237/224/214 +897 -0
  449. package/plugins/blazon.press-kit/package.json +3 -0
  450. package/plugins/blazon.print-book/README.md +40 -0
  451. package/plugins/blazon.print-book/bin/blazon-blazon.print-book./360/237/224/214 +9268 -0
  452. package/plugins/blazon.print-book/package.json +3 -0
  453. package/plugins/blazon.social-cards/README.md +5 -0
  454. package/plugins/blazon.social-cards/bin/blazon-blazon.social-cards./360/237/224/214 +1165 -0
  455. package/plugins/blazon.social-cards/package.json +3 -0
  456. package/plugins/shipped.lock +75 -0
  457. package/template/AGENTS.md +55 -0
  458. package/template/CLAUDE.md +1 -0
  459. package/template/assets/backgrounds/aurora.json +5 -0
  460. package/template/assets/backgrounds/aurora.svg +39 -0
  461. package/template/assets/construction/blazon-mark.json +9 -0
  462. package/template/assets/construction/blazon-mark.svg +54 -0
  463. package/template/assets/icons/arrow-right.json +5 -0
  464. package/template/assets/icons/arrow-right.svg +1 -0
  465. package/template/assets/icons/check.json +5 -0
  466. package/template/assets/icons/check.svg +1 -0
  467. package/template/assets/icons/download.json +5 -0
  468. package/template/assets/icons/download.svg +1 -0
  469. package/template/assets/icons/file.json +5 -0
  470. package/template/assets/icons/file.svg +1 -0
  471. package/template/assets/icons/token.json +5 -0
  472. package/template/assets/icons/token.svg +1 -0
  473. package/template/assets/icons/warning.json +5 -0
  474. package/template/assets/icons/warning.svg +1 -0
  475. package/template/assets/logos/blazon-bone.json +6 -0
  476. package/template/assets/logos/blazon-bone.svg +1 -0
  477. package/template/assets/logos/blazon-graphite.json +6 -0
  478. package/template/assets/logos/blazon-graphite.svg +1 -0
  479. package/template/assets/logos/blazon-mark.json +6 -0
  480. package/template/assets/logos/blazon-mark.svg +1 -0
  481. package/template/blazon.json +104 -0
  482. package/template/blazon.resolver.json +46 -0
  483. package/template/docs/01-principles.md +47 -0
  484. package/template/docs/02-logo.md +43 -0
  485. package/template/docs/03-color.md +79 -0
  486. package/template/docs/04-type.md +36 -0
  487. package/template/docs/05-form.md +80 -0
  488. package/template/docs/06-layout.md +28 -0
  489. package/template/docs/07-icons.md +22 -0
  490. package/template/docs/08-diagrams.md +20 -0
  491. package/template/docs/09-social.md +21 -0
  492. package/template/docs/10-applications.md +20 -0
  493. package/template/docs/11-voice.md +74 -0
  494. package/template/docs/12-web.md +167 -0
  495. package/template/fonts/IBMPlexMono-Regular-latin.woff2 +0 -0
  496. package/template/fonts/IBMPlexMono-SemiBold-latin.woff2 +0 -0
  497. package/template/fonts/OFL.txt +93 -0
  498. package/template/tokens/colors.json +257 -0
  499. package/template/tokens/form.json +199 -0
  500. package/template/tokens/social.json +26 -0
  501. package/template/tokens/spacing.json +65 -0
  502. package/template/tokens/theme/dark.json +121 -0
  503. package/template/tokens/typography.json +233 -0
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Prints every token and asset marked `review.status: ok` with the fingerprint of its value today and whether `review.value` holds
3
+ * it, so a person who has confirmed a value can copy the fingerprint into the review. It writes nothing. Returns the exit status.
4
+ */
5
+ export declare function runApprovals(dir?: string, options?: {
6
+ json?: boolean;
7
+ }): Promise<number>;
8
+ //# sourceMappingURL=approvals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/approvals.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,wBAAsB,YAAY,CAAC,GAAG,GAAE,MAAsB,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAyBjH"}
@@ -0,0 +1,8 @@
1
+ import { Finding } from '../../types/index.js';
2
+ import { PluginOptions } from './check.js';
3
+ /** Builds the site. Returns the findings of the check and of the build plugins; throws CheckFailed when either has errors. */
4
+ /** `outDirOverride` is a path from the book, as `outDir` is in the config; the command line turns what a person typed into a path from where they are. */
5
+ export declare function runBuild(cwd?: string, outDirOverride?: string, options?: PluginOptions): Promise<{
6
+ findings: Finding[];
7
+ }>;
8
+ //# sourceMappingURL=build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAA0E,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAExH,8HAA8H;AAC9H,0JAA0J;AAC1J,wBAAsB,QAAQ,CAAC,GAAG,GAAE,MAAsB,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC,CAyB9I"}
@@ -0,0 +1,33 @@
1
+ import { CheckResult } from '../../core/checker/index.js';
2
+ import { Finding, BlazonData } from '../../types/index.js';
3
+ import { BlazonError, ErrorCode } from '../errors.js';
4
+ /** A check found errors. The findings travel with it, for `--json`, which prints them before the command ends. */
5
+ export declare class CheckFailed extends BlazonError {
6
+ readonly findings: Finding[];
7
+ constructor(message: string, findings: Finding[], fix?: string, code?: ErrorCode);
8
+ }
9
+ /** What a command may be told about plugins: programs named on the command line, which run unpinned, once, with a warning. */
10
+ export interface PluginOptions {
11
+ plugin?: string | string[];
12
+ /** `--no-plugins`: false when given, so no plugin runs at all, whatever the config lists. */
13
+ plugins?: boolean;
14
+ }
15
+ /** Whether `--no-plugins` was given. */
16
+ export declare const pluginsOff: (options?: PluginOptions) => boolean;
17
+ export declare const namedPlugins: (options?: PluginOptions) => string[];
18
+ /** Every command that reports findings in text (check, tokens, build) prints them here. `dir` is the project as shownDir gives it. */
19
+ export declare function printFindings(result: CheckResult, dir?: string): void;
20
+ export declare function printNext(result: CheckResult, dir?: string): void;
21
+ /** After a failed check: what to do about each kind of error found, so the next step is on the screen. Two findings of one code with different causes (plugin-failed) each give their own fix. */
22
+ export declare function printFailed(result: CheckResult, dir?: string): void;
23
+ /**
24
+ * Runs before `blazon tokens` and `blazon build`: prints findings and throws if any are errors.
25
+ * Uses the compiled findings, which cover every resolver context and the theme and logo config.
26
+ */
27
+ export declare function assertTokensPass(data: BlazonData, cwd?: string): void;
28
+ /** Prints what it found. Returns the findings and whether the check passed; the caller sets the exit status. */
29
+ export declare function runCheck(cwd?: string, strict?: boolean, options?: PluginOptions): Promise<{
30
+ findings: Finding[];
31
+ passed: boolean;
32
+ }>;
33
+ //# sourceMappingURL=check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGhE,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG3D,kHAAkH;AAClH,qBAAa,WAAY,SAAQ,WAAW;IAGxC,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE;gBAD5B,OAAO,EAAE,MAAM,EACN,QAAQ,EAAE,OAAO,EAAE,EAC5B,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,GAAE,SAA0B;CAInC;AAED,8HAA8H;AAC9H,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,6FAA6F;IAC7F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wCAAwC;AACxC,eAAO,MAAM,UAAU,GAAI,UAAU,aAAa,KAAG,OAAqC,CAAC;AAE3F,eAAO,MAAM,YAAY,GAAI,UAAU,aAAa,KAAG,MAAM,EAAoE,CAAC;AA4DlI,sIAAsI;AACtI,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,GAAE,MAAW,GAAG,IAAI,CAIzE;AAKD,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,GAAE,MAAW,GAAG,IAAI,CAOrE;AAID,kMAAkM;AAClM,wBAAgB,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,GAAE,MAAW,GAAG,IAAI,CAWvE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,GAAE,MAAsB,GAAG,IAAI,CAUpF;AAED,gHAAgH;AAChH,wBAAsB,QAAQ,CAAC,GAAG,GAAE,MAAsB,EAAE,MAAM,GAAE,OAAe,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC,CAqC/J"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * `--cwd <dir>`: the folder every command works from, the same as running blazon from it. It is resolved here, once, before a command
3
+ * runs, and blazon moves into it, so each `process.cwd()` after it (a command's default folder, `-o`, the plugin host's cwd) is that
4
+ * folder and a positional folder is relative to it. A folder that is not there is a wrong use of the command line (exit 2).
5
+ * `value` is what the parser read: undefined when the option was not typed.
6
+ */
7
+ export declare function applyCwd(value: unknown): void;
8
+ /**
9
+ * `--allow-dir <folder>` (repeatable) and BLAZON_ALLOW_DIRS: the folders outside the project that the person running blazon lets a compile
10
+ * read, for an `assets.<key>.dir` that names a shared folder. Set once, before `--cwd` moves the process, so a relative folder is relative to
11
+ * where blazon was started. `value` is what the parser read: a string, a list or undefined. The config has no say in it (core/confine.ts).
12
+ */
13
+ export declare function applyAllowDirs(value: unknown, env?: NodeJS.ProcessEnv): void;
14
+ //# sourceMappingURL=cwd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cwd.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/cwd.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAM7C;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,IAAI,CAIzF"}
@@ -0,0 +1,5 @@
1
+ export declare function runDev(cwd?: string, portOverride?: number, options?: {
2
+ strictPort?: boolean;
3
+ host?: string | boolean;
4
+ }): Promise<void>;
5
+ //# sourceMappingURL=dev.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/dev.ts"],"names":[],"mappings":"AAIA,wBAAsB,MAAM,CAAC,GAAG,GAAE,MAAsB,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAO,iBAS/I"}
@@ -0,0 +1,34 @@
1
+ import { BlazonIdentity } from '../../core/blazon-pin.js';
2
+ export type DoctorStatus = 'ok' | 'warn' | 'fail';
3
+ export interface DoctorCheck {
4
+ id: 'node' | 'brand' | 'plugin-host' | 'chrome' | 'lock';
5
+ status: DoctorStatus;
6
+ message: string;
7
+ /** What to do about it; present when the status is not ok */
8
+ fix?: string;
9
+ }
10
+ /** What the checks look at outside the folder, so a test can set each one. */
11
+ export interface DoctorEnv {
12
+ nodeVersion: string;
13
+ /** The `engines.node` range of blazon's package.json */
14
+ engine: string | undefined;
15
+ /** Why the plugin host would refuse to run a plugin from this folder, or undefined */
16
+ hostProblem: (cwd: string) => string | undefined;
17
+ /** Whether a Chrome that the drawing plugins can start is on this computer */
18
+ chrome: () => boolean;
19
+ identity: BlazonIdentity | null;
20
+ }
21
+ /**
22
+ * The shipped plugins that start a browser to draw (their source calls `launchChrome`, src/shipped/shared/chrome.ts). A test holds this list
23
+ * to the source, so a plugin that starts to draw cannot be left out.
24
+ */
25
+ export declare const CHROME_PLUGINS: readonly string[];
26
+ /** The check the drawing plugins make: BLAZON_CHROME names a program, else Google Chrome is installed where the browser driver looks. Nothing is started. */
27
+ export declare function chromeFound(env?: NodeJS.ProcessEnv): boolean;
28
+ /** Every check, in a fixed order. Reads files and the environment; runs no plugin and writes nothing. */
29
+ export declare function doctorChecks(cwd: string, env?: DoctorEnv): Promise<DoctorCheck[]>;
30
+ /** `blazon doctor`: one line per check, the fix under each that is not ok. Returns the exit status: 1 when a check fails, else 0. */
31
+ export declare function runDoctor(cwd?: string, options?: {
32
+ json?: boolean;
33
+ }): Promise<number>;
34
+ //# sourceMappingURL=doctor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/doctor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqC,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAWlG,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC;IACzD,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,8EAA8E;AAC9E,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,sFAAsF;IACtF,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACjD,8EAA8E;IAC9E,MAAM,EAAE,MAAM,OAAO,CAAC;IACtB,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;CACjC;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAQ3C,CAAC;AAWF,6JAA6J;AAC7J,wBAAgB,WAAW,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAezE;AAiFD,yGAAyG;AACzG,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,SAAwB,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAGrG;AAID,qIAAqI;AACrI,wBAAsB,SAAS,CAAC,GAAG,GAAE,MAAsB,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAc9G"}
@@ -0,0 +1,11 @@
1
+ export interface DriftOptions {
2
+ /** The project folder; the current folder by default */
3
+ cwd?: string;
4
+ /** Print the findings as JSON */
5
+ json?: boolean;
6
+ /** The tokens folder, instead of the one the config names */
7
+ tokens?: string;
8
+ }
9
+ /** Compares every token that names a `cssVar` with the live CSS. Returns the exit status: 0 no drift, 1 drift or missing, 2 usage or fetch error. */
10
+ export declare function runDrift(target: string | undefined, options?: DriftOptions): Promise<number>;
11
+ //# sourceMappingURL=drift.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drift.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/drift.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qJAAqJ;AACrJ,wBAAsB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAoDtG"}
@@ -0,0 +1,5 @@
1
+ /** `blazon explain [code]`: one code in full, or every code with its severity and summary. Exit 2 for a code that does not exist. */
2
+ export declare function runExplain(code: string | undefined, options?: {
3
+ json?: boolean;
4
+ }): number;
5
+ //# sourceMappingURL=explain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explain.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/explain.ts"],"names":[],"mappings":"AA2CA,qIAAqI;AACrI,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,MAAM,CA0B7F"}
@@ -0,0 +1,46 @@
1
+ import { Prompter } from '../../core/init/prompts.js';
2
+ import { Look } from '../init-ui.js';
3
+ import { ErrorCode } from '../errors.js';
4
+ export interface InitOptions {
5
+ /** An http(s) address to read the first colors, fonts and logo from */
6
+ from?: string;
7
+ /** The config title, as given */
8
+ name?: string;
9
+ /** One sentence on the brand */
10
+ description?: string;
11
+ /** The primary color, hex */
12
+ color?: string;
13
+ /** A font family name */
14
+ font?: string;
15
+ /** A logo file to copy in */
16
+ logo?: string;
17
+ /** Start `blazon dev` in the folder when init is done */
18
+ dev?: boolean;
19
+ /** Accept every default and never ask */
20
+ yes?: boolean;
21
+ /** cac sets this to false for `--no-input`, an alias of `yes` */
22
+ input?: boolean;
23
+ /** The prompter; a test passes a scripted one. Without it a terminal session uses @clack/prompts */
24
+ prompter?: Prompter;
25
+ /** Whether stdin and stdout are a terminal; defaults to the process's own */
26
+ tty?: boolean;
27
+ /** How the output may look; defaults to what the environment allows */
28
+ look?: Look;
29
+ /** Starts the dev server; defaults to `blazon dev` */
30
+ startDev?: (dir: string) => Promise<void>;
31
+ /** Told what was made, once the starter is in place: the folder, the files written and those that were already there (relative paths) */
32
+ report?: (made: InitReport) => void;
33
+ /** Told why init ended with a status other than 0, as the code and the sentence `--json` carries */
34
+ failure?: (failure: {
35
+ code: ErrorCode;
36
+ message: string;
37
+ }) => void;
38
+ }
39
+ export interface InitReport {
40
+ dir: string;
41
+ created: string[];
42
+ kept: string[];
43
+ }
44
+ /** Returns the exit status: 0; 2 when a flag is not valid or the site cannot be read; 130 when the questions are cancelled. */
45
+ export declare function runInit(targetDir?: string, options?: InitOptions): Promise<number>;
46
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAOA,OAAO,EAAkC,KAAK,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3F,OAAO,EAAW,KAAK,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAgC9C,MAAM,WAAW,WAAW;IAC1B,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,yCAAyC;IACzC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oGAAoG;IACpG,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,6EAA6E;IAC7E,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,uEAAuE;IACvE,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,sDAAsD;IACtD,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,yIAAyI;IACzI,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACpC,oGAAoG;IACpG,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACnE;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAUD,+HAA+H;AAC/H,wBAAsB,OAAO,CAAC,SAAS,GAAE,MAAY,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CA2KjG"}
@@ -0,0 +1,57 @@
1
+ import { McpClient } from '../../core/mcp-config.js';
2
+ /** The longest the whole handshake may take before the server is killed. */
3
+ export declare const HANDSHAKE_TIMEOUT_MS = 30000;
4
+ /** What the check says before anything else. The server runs no plugin (`check_brand` passes `--no-plugins`, and the read commands never run one), so the risk is the brand's text reaching the agent. */
5
+ export declare const TRUST_NOTICE = "This check starts blazon-mcp on the brand folder. The server runs blazon with no plugin and a limited environment, and reads the brand files as data. What the brand says reaches your agent as tool results, so check only a brand folder you trust.";
6
+ /** One line of the answer. `advisory` marks a finding that does not make the check fail. */
7
+ export interface McpCheck {
8
+ name: 'built' | 'blazon' | 'handshake' | 'registered';
9
+ passed: boolean;
10
+ detail: string;
11
+ /** A command the agent can run when the check did not pass. */
12
+ fix?: string;
13
+ advisory?: true;
14
+ [extra: string]: unknown;
15
+ }
16
+ /** The tool names the server must list: every operation that has a tool. */
17
+ export declare const expectedTools: () => string[];
18
+ /** (a) The server is built: `mcp/dist/index.js` exists beside this blazon. */
19
+ export declare function checkBuilt(root: string): McpCheck & {
20
+ entry: string;
21
+ };
22
+ /** (b) The blazon program the server runs: `BLAZON_BIN` when set, else `blazon` on PATH. The server runs it in the brand folder, so a relative BLAZON_BIN is read from there. */
23
+ export declare function checkBlazon(env: NodeJS.ProcessEnv, brand: string, root: string): McpCheck;
24
+ export interface HandshakeOptions {
25
+ /** The server's entry point, `mcp/dist/index.js`. */
26
+ entry: string;
27
+ brand: string;
28
+ env?: NodeJS.ProcessEnv;
29
+ timeoutMs?: number;
30
+ /** The tool names that must be listed. */
31
+ expect?: string[];
32
+ }
33
+ /**
34
+ * (c) A real MCP handshake over stdio: starts the server on the brand, sends `initialize` and `tools/list`, expects the tools by name,
35
+ * calls `check_brand` with a limit of 1, and stops the server. The server runs in its own process group where there is one, so the blazon
36
+ * command it started goes with it. Whatever happens, the process is gone when this returns; a hang is killed at `timeoutMs`.
37
+ */
38
+ export declare function handshake(options: HandshakeOptions): Promise<McpCheck>;
39
+ /**
40
+ * (d) Whether the client's config has an entry named `blazon`. It reads server names only: nothing else in a file (a command, an
41
+ * argument, an environment value, a token) is kept or printed, and nothing is written. Not being registered is a finding, not a
42
+ * failure of the server.
43
+ */
44
+ export declare function checkRegistered(client: McpClient, folders: string[], brand: string, home?: string): McpCheck;
45
+ export interface McpCheckOptions {
46
+ client: McpClient;
47
+ brand: string;
48
+ json?: boolean;
49
+ /** Where the project-level config files are looked for besides the brand folder. */
50
+ cwd?: string;
51
+ env?: NodeJS.ProcessEnv;
52
+ home?: string;
53
+ timeoutMs?: number;
54
+ }
55
+ /** `blazon mcp --check`: runs the four checks, prints the answer, and returns the exit status: 0 when the server is ready, 1 when not. Writes no file. */
56
+ export declare function runMcpCheck(options: McpCheckOptions): Promise<number>;
57
+ //# sourceMappingURL=mcp-check.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-check.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/mcp-check.ts"],"names":[],"mappings":"AAKA,OAAO,EAAkC,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAK1F,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAE3C,0MAA0M;AAC1M,eAAO,MAAM,YAAY,0PACgO,CAAC;AAE1P,4FAA4F;AAC5F,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,CAAC;IACtD,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAKD,4EAA4E;AAC5E,eAAO,MAAM,aAAa,QAAO,MAAM,EAAqD,CAAC;AAE7F,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAMrE;AAoBD,iLAAiL;AACjL,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAgBzF;AAED,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAkBD;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAuG5E;AA2BD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,SAAe,GAAG,QAAQ,CAiClH;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,oFAAoF;IACpF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,0JAA0J;AAC1J,wBAAsB,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CA2B3E"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * `blazon mcp --print-config [--client c] [--brand dir]`: prints what registers blazon-mcp (stdio) in a client. Writes no file.
3
+ * `blazon mcp --check [--client c] [--brand dir]`: says whether the server is built, can find blazon, answers a real MCP handshake and is registered.
4
+ * Exits 0, or 2 for an unknown client, both flags or neither. `--check` exits 1 when the server is not ready.
5
+ */
6
+ export declare function runMcp(options?: {
7
+ printConfig?: boolean;
8
+ check?: boolean;
9
+ client?: string;
10
+ brand?: string;
11
+ json?: boolean;
12
+ }): Promise<number>;
13
+ //# sourceMappingURL=mcp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/mcp.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,wBAAsB,MAAM,CAAC,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CA2BvJ"}
@@ -0,0 +1,7 @@
1
+ import { BlazonIdentity } from '../../core/blazon-pin.js';
2
+ /** `blazon pin [dir]`: write blazon.lock naming the blazon that runs it. Returns the exit status: 0, or 1 when this blazon is not a commit that can be named. `identity` is for tests. */
3
+ export declare function runPin(cwd?: string, options?: {
4
+ json?: boolean;
5
+ identity?: BlazonIdentity | null;
6
+ }): number;
7
+ //# sourceMappingURL=pin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pin.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/pin.ts"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG5F,0LAA0L;AAC1L,wBAAgB,MAAM,CAAC,GAAG,GAAE,MAAsB,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CAAO,GAAG,MAAM,CAa9H"}
@@ -0,0 +1,32 @@
1
+ /** The flags of `blazon plugin pin`: with `name`, the pin is recorded in the lock. */
2
+ export interface PinOptions {
3
+ name?: string;
4
+ /** A digest the operator vouches for: the bytes must be those */
5
+ digest?: string;
6
+ /** The program inside a directory, when it is not blazon-<name> */
7
+ entry?: string;
8
+ }
9
+ /**
10
+ * Start the plugin the way blazon does and run the core cases of section 9, then blazon's cases for each role the manifest
11
+ * declares (6 to 9). With `core`, only the core cases run: no role cases and no layout line, so a plugin that does not follow blazon's own
12
+ * rules (the code prefix, the layout of a shipped plugin) can still be checked against the protocol. Prints the host and what it adopts first, so the output says which members of the family it covers.
13
+ * Returns the exit status: 0 when every case passed (a warning is a pass), 1 when one failed; bad arguments throw a UsageError (exit 2).
14
+ */
15
+ export declare function runPluginCheck(program?: string, options?: {
16
+ json?: boolean;
17
+ core?: boolean;
18
+ }): Promise<number>;
19
+ /**
20
+ * Print the digest of a file (`sha256:`) or a directory (`t1:`) that a pin names. With `--name`, record it in
21
+ * blazon.plugins.lock as computed, or as vouched when `--digest` says what the bytes must be. Returns the exit status:
22
+ * 0, 1 for a path a host must refuse or a digest that does not match; bad arguments throw a UsageError (exit 2).
23
+ */
24
+ export declare function runPluginPin(target?: string, options?: PinOptions, cwd?: string): number;
25
+ /** Print the profile blazon enforces, as the document RFC 0005 section 2 describes: the same for every install, with no secret and no path of the operator. */
26
+ export declare function runPluginProfile(): number;
27
+ /** `blazon plugin <action> [target]`. Returns the exit status; an action that does not exist is a bad argument. */
28
+ export declare function runPlugin(action?: string, target?: string, options?: PinOptions & {
29
+ json?: boolean;
30
+ core?: boolean;
31
+ }): Promise<number>;
32
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/plugin.ts"],"names":[],"mappings":"AAoBA,sFAAsF;AACtF,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AASD;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAsCxH;AAeD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,UAAe,EAAE,GAAG,GAAE,MAAsB,GAAG,MAAM,CAqB3G;AAED,+JAA+J;AAC/J,wBAAgB,gBAAgB,IAAI,MAAM,CAGzC;AAED,mHAAmH;AACnH,wBAAsB,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,UAAU,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAKhJ"}
@@ -0,0 +1,5 @@
1
+ export declare function runPreview(cwd?: string, portOverride?: number, options?: {
2
+ strictPort?: boolean;
3
+ host?: string | boolean;
4
+ }): Promise<import('vite').PreviewServer>;
5
+ //# sourceMappingURL=preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/preview.ts"],"names":[],"mappings":"AAWA,wBAAsB,UAAU,CAAC,GAAG,GAAE,MAAsB,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAO,yCAoCnJ"}
@@ -0,0 +1,5 @@
1
+ import { PluginOptions } from './check.js';
2
+ export declare function runTokens(cwd?: string, options?: PluginOptions): Promise<{
3
+ findings: import('../../index.js').Finding[];
4
+ }>;
5
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/tokens.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8C,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAE5F,wBAAsB,SAAS,CAAC,GAAG,GAAE,MAAsB,EAAE,OAAO,CAAC,EAAE,aAAa;;GAcnF"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * The closed list of `error.code` values a `--json` error carries, one per kind of error. A script matches on the code, never on the
3
+ * message. `error` is the code of an error with no kind of its own. Each code is described in the manual, chapter 3.
4
+ */
5
+ export declare const ERROR_CODES: readonly ["check-failed", "conflicting-options", "empty-value", "error", "invalid-option-value", "invalid-port", "missing-argument", "no-built-site", "no-file", "no-folder", "no-tokens-folder", "not-a-token", "plugin-failed", "port-in-use", "site-unreadable", "unknown-command", "unknown-finding-code", "unknown-key", "unknown-option", "unknown-token"];
6
+ export type ErrorCode = (typeof ERROR_CODES)[number];
7
+ /**
8
+ * An error blazon can explain: what happened (the message) and, when blazon knows it, what to do about it (`fix`). Every error
9
+ * a command ends with is printed in one shape by `errorText`: `blazon <command>: <what happened>`, then the fix on its own line.
10
+ */
11
+ export declare class BlazonError extends Error {
12
+ readonly fix?: string | undefined;
13
+ readonly code: ErrorCode;
14
+ constructor(message: string, fix?: string | undefined, code?: ErrorCode);
15
+ }
16
+ /** A command was pointed at something that is not there (a folder, a tokens folder): the command line was used wrongly, so exit 2. */
17
+ export declare class UsageError extends BlazonError {
18
+ }
19
+ /** What `--strict-port` turns a busy port into: a wrong use of the command line, with the way out. */
20
+ export declare const busyPort: (port: number) => UsageError;
21
+ /** The status a command ends with when it was used wrongly, so a caller can tell that from a failed check (1). */
22
+ export declare const USAGE_STATUS = 2;
23
+ /** The one text shape of an error: `blazon <command>: <what happened>`, and the fix, when there is one, indented on the next line. */
24
+ export declare function errorText(command: string, what: string, fix?: string): string;
25
+ /** The same error as the one sentence `--json` carries in `error.message`: what happened, then the fix after a semicolon. */
26
+ export declare const jsonMessage: (what: string, fix?: string) => string;
27
+ /** Under --json a command that ends in an error says so on standard output as well, as one JSON object, so a script always gets JSON. */
28
+ export declare function jsonErrors(command: string | undefined): void;
29
+ /** The error as the object `--json` prints: a stable `code`, the `message` for people (fix folded in), and the `fix` on its own when there is one. */
30
+ export declare const jsonError: (code: ErrorCode, message: string, fix?: string) => {
31
+ fix?: string | undefined;
32
+ code: "error" | "plugin-failed" | "check-failed" | "conflicting-options" | "empty-value" | "invalid-option-value" | "invalid-port" | "missing-argument" | "no-built-site" | "no-file" | "no-folder" | "no-tokens-folder" | "not-a-token" | "port-in-use" | "site-unreadable" | "unknown-command" | "unknown-finding-code" | "unknown-key" | "unknown-option" | "unknown-token";
33
+ message: string;
34
+ };
35
+ /**
36
+ * One error on standard error and exit 2: a wrong use of the command line. Nothing has run. `stack` follows it, for --debug.
37
+ * `fix` is the next step, as `error.fix` under --json; the text already says it, so the message stays what a person reads.
38
+ */
39
+ export declare function refuse(text: string, code: ErrorCode, extra?: {
40
+ fix?: string;
41
+ stack?: string;
42
+ json?: string;
43
+ }): never;
44
+ /** The parser's own sentence, as one line that starts with a lower-case word: "Unused args: `x`" becomes `unused args: "x"`. */
45
+ export declare const sentence: (message: string) => string;
46
+ /** Whether `error` is the command-line parser's complaint about what was typed, as opposed to a command that failed. */
47
+ export declare const isUsageError: (error: unknown) => error is Error;
48
+ /**
49
+ * A command that threw, in the one shape, and exit 1. An error blazon raised on purpose carries its fix; any other is unexpected,
50
+ * so its fix line is the way to its stack, which `--debug` prints in its place.
51
+ */
52
+ export declare function failed(command: string, error: unknown, debug: boolean): never;
53
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/cli/errors.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,WAAW,kWAqBd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,KAAK;IAGlC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM;IACrB,QAAQ,CAAC,IAAI,EAAE,SAAS;gBAFxB,OAAO,EAAE,MAAM,EACN,GAAG,CAAC,EAAE,MAAM,YAAA,EACZ,IAAI,GAAE,SAAmB;CAIrC;AAED,sIAAsI;AACtI,qBAAa,UAAW,SAAQ,WAAW;CAAG;AAE9C,sGAAsG;AACtG,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,UACoG,CAAC;AAE7I,kHAAkH;AAClH,eAAO,MAAM,YAAY,IAAI,CAAC;AAK9B,sIAAsI;AACtI,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAE7E;AAED,6HAA6H;AAC7H,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,MAAM,MAAM,KAAG,MAAkD,CAAC;AAI5G,yIAAyI;AACzI,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAE5D;AAOD,sJAAsJ;AACtJ,eAAO,MAAM,SAAS,GAAI,MAAM,SAAS,EAAE,SAAS,MAAM,EAAE,MAAM,MAAM;;;;CAA2D,CAAC;AAMpI;;;GAGG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,KAAK,CAKxH;AAED,gIAAgI;AAChI,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM,KAAG,MAA6F,CAAC;AAEzI,wHAAwH;AACxH,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,KAA4D,CAAC;AAEpH;;;GAGG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,CAU7E"}
@@ -0,0 +1,7 @@
1
+ import { Handler } from './types.js';
2
+ /**
3
+ * `get_brand`, `blazon brand`: the brand as brand.json holds it, compiled now and printed to standard output, so nothing is written and
4
+ * nothing is stale. `--key theme.shadcn` prints only that part. Always JSON; exits 2 for a key the document does not have.
5
+ */
6
+ export declare const getBrandHandler: Handler;
7
+ //# sourceMappingURL=brand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/brand.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAY1C;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,OAO7B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Handler } from './types.js';
2
+ /**
3
+ * `can_use`, `blazon can <fg> <bg>`: whether the foreground token may be text (`--role ui`: a non-text element) on the background token, by the brand's own rules. Prints the answer and the rule
4
+ * behind it. Exit status: 0 allowed, 1 denied, 2 an unknown token or one that is not a color.
5
+ */
6
+ export declare const canUseHandler: Handler;
7
+ //# sourceMappingURL=can.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"can.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/can.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,OAI3B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Handler } from './types.js';
2
+ /** `get_fonts`, `blazon fonts`: the stylesheets and font files the brand loads, and the families its tokens name. Prints only; exits 0. */
3
+ export declare const getFontsHandler: Handler;
4
+ //# sourceMappingURL=fonts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/fonts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,2IAA2I;AAC3I,eAAO,MAAM,eAAe,EAAE,OAS7B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Handler } from './types.js';
2
+ /**
3
+ * `get_token`, `blazon get <path>`: one token, as the brand states it. A group path is a list, and `blazon list` prints those.
4
+ * Prints only; exits 0, or 2 when there is no such token or the path is a group.
5
+ */
6
+ export declare const getTokenHandler: Handler;
7
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/get.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,OAM7B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Handler } from './types.js';
2
+ /**
3
+ * One handler for each operation of the list that has a command (src/core/operations/list.ts), by the operation's name. `check_brand` and
4
+ * `get_shadcn` have none: the first is `blazon check`, which runs plugins and is not an operation yet, and the second is `blazon brand --key`.
5
+ */
6
+ export declare const HANDLERS: Record<string, Handler>;
7
+ export type { Context, Handler, Outcome } from './types.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAS1C;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAQ5C,CAAC;AAEF,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Handler } from './types.js';
2
+ /**
3
+ * `list_tokens`, `blazon list [group]`: the tokens of the brand, or of one group, to choose a path from. `blazon get <path>` describes one.
4
+ * Prints only; exits 0, or 2 when there is no such group or type.
5
+ */
6
+ export declare const listTokensHandler: Handler;
7
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/list.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAK/B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Handler } from './types.js';
2
+ /** `get_logo`, `blazon logo`: the configured logo variants and the rules each logo asset's sidecar states. Prints only; exits 0. */
3
+ export declare const getLogoHandler: Handler;
4
+ //# sourceMappingURL=logo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/logo.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAU1C,oIAAoI;AACpI,eAAO,MAAM,cAAc,EAAE,OAI5B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { TokenRules } from '../../core/read/index.js';
2
+ import { Handler } from './types.js';
3
+ /** One line a rule: what it says and where it is written. */
4
+ export declare function ruleLines(rules: TokenRules): string[];
5
+ /**
6
+ * `get_rules`, `blazon rules [path]`: the usage, pairs and logo rules of a token (the ones that apply to it, with where each is written), of a group
7
+ * (the rules written at and under it, and the groups above it that pass theirs down), or of the whole brand. Prints only; exits 0, or 2 when there is no such path.
8
+ */
9
+ export declare const getRulesHandler: Handler;
10
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAiE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE1H,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,6DAA6D;AAC7D,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,CAerD;AAaD;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,OA0B7B,CAAC"}
@@ -0,0 +1,17 @@
1
+ /** What a handler is given: the brand folder (the command line's `dir`, or the current folder), and the arguments the operation declares. */
2
+ export interface Context {
3
+ dir: string;
4
+ }
5
+ /**
6
+ * What a handler found. `body` is the result as data (`--json` prints it after `command` and `passed`), `text` prints it for a person,
7
+ * and `status` is the exit status of an answer: 1 for a denied `can`. A question the brand cannot answer throws a UsageError (exit 2).
8
+ */
9
+ export interface Outcome {
10
+ command: string;
11
+ passed: boolean;
12
+ status: number;
13
+ body: object;
14
+ text(): void;
15
+ }
16
+ export type Handler = (args: Record<string, unknown>, context: Context) => Promise<Outcome>;
17
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/types.ts"],"names":[],"mappings":"AAAA,6IAA6I;AAC7I,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,IAAI,IAAI,CAAC;CACd;AAED,MAAM,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ interface Section {
2
+ title?: string;
3
+ body: string;
4
+ }
5
+ /** What the exit status of `blazon` means, for the help of the whole tool. */
6
+ export declare const EXIT_STATUS: string;
7
+ /** Where the help of the whole tool says how to look up a finding code. */
8
+ export declare const CODES_HELP: string;
9
+ /** What `--cwd` does and what `blazon doctor` checks, for the help of the whole tool. */
10
+ export declare const WORKING_FOLDER: string;
11
+ /**
12
+ * The help text, changed in three ways: `blazon plugin <action> --help` says what that action does and returns, the help of the
13
+ * whole tool ends with how to look up a finding code and what each exit status means, and `--no-input` is not shown as on by default (it is only implied
14
+ * when there is no terminal).
15
+ */
16
+ export declare function helpSections(sections: Section[], command: string | undefined, action: string | undefined): Section[];
17
+ export {};
18
+ //# sourceMappingURL=help.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,8EAA8E;AAC9E,eAAO,MAAM,WAAW,QAIZ,CAAC;AAEb,2EAA2E;AAC3E,eAAO,MAAM,UAAU,QAAkJ,CAAC;AAE1K,yFAAyF;AACzF,eAAO,MAAM,cAAc,QAIf,CAAC;AAoCb;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,EAAE,CAMpH"}
@@ -0,0 +1,2 @@
1
+ export declare function runCli(rawArgv?: string[]): Promise<void>;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAsEA,wBAAsB,MAAM,CAAC,OAAO,GAAE,MAAM,EAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiS5E"}