@openuji/speculator 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (610) hide show
  1. package/README.md +111 -50
  2. package/dist/file-provider/__tests__/compliance.test.d.ts +5 -0
  3. package/dist/file-provider/__tests__/compliance.test.d.ts.map +1 -0
  4. package/dist/file-provider/__tests__/compliance.test.js +52 -0
  5. package/dist/file-provider/__tests__/compliance.test.js.map +1 -0
  6. package/dist/file-provider/index.d.ts +8 -0
  7. package/dist/file-provider/index.d.ts.map +1 -0
  8. package/dist/file-provider/index.js +10 -0
  9. package/dist/file-provider/index.js.map +1 -0
  10. package/dist/file-provider/memory.d.ts +46 -0
  11. package/dist/file-provider/memory.d.ts.map +1 -0
  12. package/dist/file-provider/memory.js +99 -0
  13. package/dist/file-provider/memory.js.map +1 -0
  14. package/dist/file-provider/node.d.ts +32 -0
  15. package/dist/file-provider/node.d.ts.map +1 -0
  16. package/dist/file-provider/node.js +65 -0
  17. package/dist/file-provider/node.js.map +1 -0
  18. package/dist/file-provider/types.d.ts +69 -0
  19. package/dist/file-provider/types.d.ts.map +1 -0
  20. package/dist/file-provider/types.js +47 -0
  21. package/dist/file-provider/types.js.map +1 -0
  22. package/dist/file-provider/web.d.ts +32 -0
  23. package/dist/file-provider/web.d.ts.map +1 -0
  24. package/dist/file-provider/web.js +77 -0
  25. package/dist/file-provider/web.js.map +1 -0
  26. package/dist/index.d.ts +15 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +16 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/parse/AsideHtmlParser.d.ts +12 -0
  31. package/dist/parse/AsideHtmlParser.d.ts.map +1 -0
  32. package/dist/parse/AsideHtmlParser.js +74 -0
  33. package/dist/parse/AsideHtmlParser.js.map +1 -0
  34. package/dist/parse/BlockquoteHtmlParser.d.ts +11 -0
  35. package/dist/parse/BlockquoteHtmlParser.d.ts.map +1 -0
  36. package/dist/parse/BlockquoteHtmlParser.js +28 -0
  37. package/dist/parse/BlockquoteHtmlParser.js.map +1 -0
  38. package/dist/parse/BlockquoteMarkdownParser.d.ts +11 -0
  39. package/dist/parse/BlockquoteMarkdownParser.d.ts.map +1 -0
  40. package/dist/parse/BlockquoteMarkdownParser.js +26 -0
  41. package/dist/parse/BlockquoteMarkdownParser.js.map +1 -0
  42. package/dist/parse/CodeHtmlParser.d.ts +11 -0
  43. package/dist/parse/CodeHtmlParser.d.ts.map +1 -0
  44. package/dist/parse/CodeHtmlParser.js +38 -0
  45. package/dist/parse/CodeHtmlParser.js.map +1 -0
  46. package/dist/parse/CodeMarkdownParser.d.ts +11 -0
  47. package/dist/parse/CodeMarkdownParser.d.ts.map +1 -0
  48. package/dist/parse/CodeMarkdownParser.js +29 -0
  49. package/dist/parse/CodeMarkdownParser.js.map +1 -0
  50. package/dist/parse/DfnHtmlParser.d.ts +12 -0
  51. package/dist/parse/DfnHtmlParser.d.ts.map +1 -0
  52. package/dist/parse/DfnHtmlParser.js +53 -0
  53. package/dist/parse/DfnHtmlParser.js.map +1 -0
  54. package/dist/parse/HeadingsHtmlParser.d.ts +11 -0
  55. package/dist/parse/HeadingsHtmlParser.d.ts.map +1 -0
  56. package/dist/parse/HeadingsHtmlParser.js +30 -0
  57. package/dist/parse/HeadingsHtmlParser.js.map +1 -0
  58. package/dist/parse/HeadingsMarkdownParser.d.ts +11 -0
  59. package/dist/parse/HeadingsMarkdownParser.d.ts.map +1 -0
  60. package/dist/parse/HeadingsMarkdownParser.js +26 -0
  61. package/dist/parse/HeadingsMarkdownParser.js.map +1 -0
  62. package/dist/parse/InlinesHtmlParser.d.ts +12 -0
  63. package/dist/parse/InlinesHtmlParser.d.ts.map +1 -0
  64. package/dist/parse/InlinesHtmlParser.js +150 -0
  65. package/dist/parse/InlinesHtmlParser.js.map +1 -0
  66. package/dist/parse/InlinesMarkdownParser.d.ts +11 -0
  67. package/dist/parse/InlinesMarkdownParser.d.ts.map +1 -0
  68. package/dist/parse/InlinesMarkdownParser.js +91 -0
  69. package/dist/parse/InlinesMarkdownParser.js.map +1 -0
  70. package/dist/parse/ListsHtmlParser.d.ts +11 -0
  71. package/dist/parse/ListsHtmlParser.d.ts.map +1 -0
  72. package/dist/parse/ListsHtmlParser.js +71 -0
  73. package/dist/parse/ListsHtmlParser.js.map +1 -0
  74. package/dist/parse/ListsMarkdownParser.d.ts +11 -0
  75. package/dist/parse/ListsMarkdownParser.d.ts.map +1 -0
  76. package/dist/parse/ListsMarkdownParser.js +46 -0
  77. package/dist/parse/ListsMarkdownParser.js.map +1 -0
  78. package/dist/parse/MiscHtmlParser.d.ts +12 -0
  79. package/dist/parse/MiscHtmlParser.d.ts.map +1 -0
  80. package/dist/parse/MiscHtmlParser.js +85 -0
  81. package/dist/parse/MiscHtmlParser.js.map +1 -0
  82. package/dist/parse/MiscMarkdownParser.d.ts +11 -0
  83. package/dist/parse/MiscMarkdownParser.d.ts.map +1 -0
  84. package/dist/parse/MiscMarkdownParser.js +38 -0
  85. package/dist/parse/MiscMarkdownParser.js.map +1 -0
  86. package/dist/parse/ParagraphsHtmlParser.d.ts +11 -0
  87. package/dist/parse/ParagraphsHtmlParser.d.ts.map +1 -0
  88. package/dist/parse/ParagraphsHtmlParser.js +30 -0
  89. package/dist/parse/ParagraphsHtmlParser.js.map +1 -0
  90. package/dist/parse/ParagraphsMarkdownParser.d.ts +11 -0
  91. package/dist/parse/ParagraphsMarkdownParser.d.ts.map +1 -0
  92. package/dist/parse/ParagraphsMarkdownParser.js +25 -0
  93. package/dist/parse/ParagraphsMarkdownParser.js.map +1 -0
  94. package/dist/parse/SectionsHtmlParser.d.ts +12 -0
  95. package/dist/parse/SectionsHtmlParser.d.ts.map +1 -0
  96. package/dist/parse/SectionsHtmlParser.js +58 -0
  97. package/dist/parse/SectionsHtmlParser.js.map +1 -0
  98. package/dist/parse/TablesHtmlParser.d.ts +11 -0
  99. package/dist/parse/TablesHtmlParser.d.ts.map +1 -0
  100. package/dist/parse/TablesHtmlParser.js +81 -0
  101. package/dist/parse/TablesHtmlParser.js.map +1 -0
  102. package/dist/parse/TablesMarkdownParser.d.ts +11 -0
  103. package/dist/parse/TablesMarkdownParser.d.ts.map +1 -0
  104. package/dist/parse/TablesMarkdownParser.js +56 -0
  105. package/dist/parse/TablesMarkdownParser.js.map +1 -0
  106. package/dist/parse/XrefHtmlParser.d.ts +12 -0
  107. package/dist/parse/XrefHtmlParser.d.ts.map +1 -0
  108. package/dist/parse/XrefHtmlParser.js +124 -0
  109. package/dist/parse/XrefHtmlParser.js.map +1 -0
  110. package/dist/parse/__tests__/assembler.test.d.ts +5 -0
  111. package/dist/parse/__tests__/assembler.test.d.ts.map +1 -0
  112. package/dist/parse/__tests__/assembler.test.js +135 -0
  113. package/dist/parse/__tests__/assembler.test.js.map +1 -0
  114. package/dist/parse/__tests__/html.test.d.ts +5 -0
  115. package/dist/parse/__tests__/html.test.d.ts.map +1 -0
  116. package/dist/parse/__tests__/html.test.js +149 -0
  117. package/dist/parse/__tests__/html.test.js.map +1 -0
  118. package/dist/parse/__tests__/markdown.test.d.ts +5 -0
  119. package/dist/parse/__tests__/markdown.test.d.ts.map +1 -0
  120. package/dist/parse/__tests__/markdown.test.js +133 -0
  121. package/dist/parse/__tests__/markdown.test.js.map +1 -0
  122. package/dist/parse/__tests__/pipeline.test.d.ts +5 -0
  123. package/dist/parse/__tests__/pipeline.test.d.ts.map +1 -0
  124. package/dist/parse/__tests__/pipeline.test.js +215 -0
  125. package/dist/parse/__tests__/pipeline.test.js.map +1 -0
  126. package/dist/parse/__tests__/respec.test.d.ts +7 -0
  127. package/dist/parse/__tests__/respec.test.d.ts.map +1 -0
  128. package/dist/parse/__tests__/respec.test.js +151 -0
  129. package/dist/parse/__tests__/respec.test.js.map +1 -0
  130. package/dist/parse/assembler.d.ts +20 -0
  131. package/dist/parse/assembler.d.ts.map +1 -0
  132. package/dist/parse/assembler.js +175 -0
  133. package/dist/parse/assembler.js.map +1 -0
  134. package/dist/parse/html/AsideHtmlParser.d.ts +12 -0
  135. package/dist/parse/html/AsideHtmlParser.d.ts.map +1 -0
  136. package/dist/parse/html/AsideHtmlParser.js +74 -0
  137. package/dist/parse/html/AsideHtmlParser.js.map +1 -0
  138. package/dist/parse/html/BlockquoteHtmlParser.d.ts +11 -0
  139. package/dist/parse/html/BlockquoteHtmlParser.d.ts.map +1 -0
  140. package/dist/parse/html/BlockquoteHtmlParser.js +28 -0
  141. package/dist/parse/html/BlockquoteHtmlParser.js.map +1 -0
  142. package/dist/parse/html/CodeHtmlParser.d.ts +11 -0
  143. package/dist/parse/html/CodeHtmlParser.d.ts.map +1 -0
  144. package/dist/parse/html/CodeHtmlParser.js +38 -0
  145. package/dist/parse/html/CodeHtmlParser.js.map +1 -0
  146. package/dist/parse/html/DfnHtmlParser.d.ts +12 -0
  147. package/dist/parse/html/DfnHtmlParser.d.ts.map +1 -0
  148. package/dist/parse/html/DfnHtmlParser.js +53 -0
  149. package/dist/parse/html/DfnHtmlParser.js.map +1 -0
  150. package/dist/parse/html/HeadingsHtmlParser.d.ts +11 -0
  151. package/dist/parse/html/HeadingsHtmlParser.d.ts.map +1 -0
  152. package/dist/parse/html/HeadingsHtmlParser.js +30 -0
  153. package/dist/parse/html/HeadingsHtmlParser.js.map +1 -0
  154. package/dist/parse/html/InlinesHtmlParser.d.ts +12 -0
  155. package/dist/parse/html/InlinesHtmlParser.d.ts.map +1 -0
  156. package/dist/parse/html/InlinesHtmlParser.js +150 -0
  157. package/dist/parse/html/InlinesHtmlParser.js.map +1 -0
  158. package/dist/parse/html/ListsHtmlParser.d.ts +11 -0
  159. package/dist/parse/html/ListsHtmlParser.d.ts.map +1 -0
  160. package/dist/parse/html/ListsHtmlParser.js +71 -0
  161. package/dist/parse/html/ListsHtmlParser.js.map +1 -0
  162. package/dist/parse/html/MiscHtmlParser.d.ts +12 -0
  163. package/dist/parse/html/MiscHtmlParser.d.ts.map +1 -0
  164. package/dist/parse/html/MiscHtmlParser.js +85 -0
  165. package/dist/parse/html/MiscHtmlParser.js.map +1 -0
  166. package/dist/parse/html/ParagraphsHtmlParser.d.ts +11 -0
  167. package/dist/parse/html/ParagraphsHtmlParser.d.ts.map +1 -0
  168. package/dist/parse/html/ParagraphsHtmlParser.js +30 -0
  169. package/dist/parse/html/ParagraphsHtmlParser.js.map +1 -0
  170. package/dist/parse/html/SectionsHtmlParser.d.ts +12 -0
  171. package/dist/parse/html/SectionsHtmlParser.d.ts.map +1 -0
  172. package/dist/parse/html/SectionsHtmlParser.js +58 -0
  173. package/dist/parse/html/SectionsHtmlParser.js.map +1 -0
  174. package/dist/parse/html/TablesHtmlParser.d.ts +11 -0
  175. package/dist/parse/html/TablesHtmlParser.d.ts.map +1 -0
  176. package/dist/parse/html/TablesHtmlParser.js +81 -0
  177. package/dist/parse/html/TablesHtmlParser.js.map +1 -0
  178. package/dist/parse/html/XrefHtmlParser.d.ts +12 -0
  179. package/dist/parse/html/XrefHtmlParser.d.ts.map +1 -0
  180. package/dist/parse/html/XrefHtmlParser.js +125 -0
  181. package/dist/parse/html/XrefHtmlParser.js.map +1 -0
  182. package/dist/parse/html/handlers/blockquote.d.ts +9 -0
  183. package/dist/parse/html/handlers/blockquote.d.ts.map +1 -0
  184. package/dist/parse/html/handlers/blockquote.js +21 -0
  185. package/dist/parse/html/handlers/blockquote.js.map +1 -0
  186. package/dist/parse/html/handlers/code.d.ts +9 -0
  187. package/dist/parse/html/handlers/code.d.ts.map +1 -0
  188. package/dist/parse/html/handlers/code.js +31 -0
  189. package/dist/parse/html/handlers/code.js.map +1 -0
  190. package/dist/parse/html/handlers/containers.d.ts +16 -0
  191. package/dist/parse/html/handlers/containers.d.ts.map +1 -0
  192. package/dist/parse/html/handlers/containers.js +25 -0
  193. package/dist/parse/html/handlers/containers.js.map +1 -0
  194. package/dist/parse/html/handlers/heading.d.ts +9 -0
  195. package/dist/parse/html/handlers/heading.d.ts.map +1 -0
  196. package/dist/parse/html/handlers/heading.js +26 -0
  197. package/dist/parse/html/handlers/heading.js.map +1 -0
  198. package/dist/parse/html/handlers/index.d.ts +23 -0
  199. package/dist/parse/html/handlers/index.d.ts.map +1 -0
  200. package/dist/parse/html/handlers/index.js +47 -0
  201. package/dist/parse/html/handlers/index.js.map +1 -0
  202. package/dist/parse/html/handlers/inline.d.ts +35 -0
  203. package/dist/parse/html/handlers/inline.d.ts.map +1 -0
  204. package/dist/parse/html/handlers/inline.js +119 -0
  205. package/dist/parse/html/handlers/inline.js.map +1 -0
  206. package/dist/parse/html/handlers/list.d.ts +9 -0
  207. package/dist/parse/html/handlers/list.d.ts.map +1 -0
  208. package/dist/parse/html/handlers/list.js +63 -0
  209. package/dist/parse/html/handlers/list.js.map +1 -0
  210. package/dist/parse/html/handlers/paragraph.d.ts +9 -0
  211. package/dist/parse/html/handlers/paragraph.d.ts.map +1 -0
  212. package/dist/parse/html/handlers/paragraph.js +20 -0
  213. package/dist/parse/html/handlers/paragraph.js.map +1 -0
  214. package/dist/parse/html/handlers/section.d.ts +9 -0
  215. package/dist/parse/html/handlers/section.d.ts.map +1 -0
  216. package/dist/parse/html/handlers/section.js +53 -0
  217. package/dist/parse/html/handlers/section.js.map +1 -0
  218. package/dist/parse/html/index.d.ts +5 -0
  219. package/dist/parse/html/index.d.ts.map +1 -0
  220. package/dist/parse/html/index.js +12 -0
  221. package/dist/parse/html/index.js.map +1 -0
  222. package/dist/parse/html/parser.d.ts +51 -0
  223. package/dist/parse/html/parser.d.ts.map +1 -0
  224. package/dist/parse/html/parser.js +228 -0
  225. package/dist/parse/html/parser.js.map +1 -0
  226. package/dist/parse/index.d.ts +16 -0
  227. package/dist/parse/index.d.ts.map +1 -0
  228. package/dist/parse/index.js +19 -0
  229. package/dist/parse/index.js.map +1 -0
  230. package/dist/parse/markdown/BlockquoteMarkdownParser.d.ts +11 -0
  231. package/dist/parse/markdown/BlockquoteMarkdownParser.d.ts.map +1 -0
  232. package/dist/parse/markdown/BlockquoteMarkdownParser.js +26 -0
  233. package/dist/parse/markdown/BlockquoteMarkdownParser.js.map +1 -0
  234. package/dist/parse/markdown/CodeMarkdownParser.d.ts +11 -0
  235. package/dist/parse/markdown/CodeMarkdownParser.d.ts.map +1 -0
  236. package/dist/parse/markdown/CodeMarkdownParser.js +29 -0
  237. package/dist/parse/markdown/CodeMarkdownParser.js.map +1 -0
  238. package/dist/parse/markdown/HeadingsMarkdownParser.d.ts +11 -0
  239. package/dist/parse/markdown/HeadingsMarkdownParser.d.ts.map +1 -0
  240. package/dist/parse/markdown/HeadingsMarkdownParser.js +26 -0
  241. package/dist/parse/markdown/HeadingsMarkdownParser.js.map +1 -0
  242. package/dist/parse/markdown/InlinesMarkdownParser.d.ts +11 -0
  243. package/dist/parse/markdown/InlinesMarkdownParser.d.ts.map +1 -0
  244. package/dist/parse/markdown/InlinesMarkdownParser.js +91 -0
  245. package/dist/parse/markdown/InlinesMarkdownParser.js.map +1 -0
  246. package/dist/parse/markdown/ListsMarkdownParser.d.ts +11 -0
  247. package/dist/parse/markdown/ListsMarkdownParser.d.ts.map +1 -0
  248. package/dist/parse/markdown/ListsMarkdownParser.js +46 -0
  249. package/dist/parse/markdown/ListsMarkdownParser.js.map +1 -0
  250. package/dist/parse/markdown/MiscMarkdownParser.d.ts +11 -0
  251. package/dist/parse/markdown/MiscMarkdownParser.d.ts.map +1 -0
  252. package/dist/parse/markdown/MiscMarkdownParser.js +38 -0
  253. package/dist/parse/markdown/MiscMarkdownParser.js.map +1 -0
  254. package/dist/parse/markdown/ParagraphsMarkdownParser.d.ts +11 -0
  255. package/dist/parse/markdown/ParagraphsMarkdownParser.d.ts.map +1 -0
  256. package/dist/parse/markdown/ParagraphsMarkdownParser.js +25 -0
  257. package/dist/parse/markdown/ParagraphsMarkdownParser.js.map +1 -0
  258. package/dist/parse/markdown/TablesMarkdownParser.d.ts +11 -0
  259. package/dist/parse/markdown/TablesMarkdownParser.d.ts.map +1 -0
  260. package/dist/parse/markdown/TablesMarkdownParser.js +56 -0
  261. package/dist/parse/markdown/TablesMarkdownParser.js.map +1 -0
  262. package/dist/parse/markdown/handlers/blockquote.d.ts +9 -0
  263. package/dist/parse/markdown/handlers/blockquote.d.ts.map +1 -0
  264. package/dist/parse/markdown/handlers/blockquote.js +22 -0
  265. package/dist/parse/markdown/handlers/blockquote.js.map +1 -0
  266. package/dist/parse/markdown/handlers/code.d.ts +9 -0
  267. package/dist/parse/markdown/handlers/code.d.ts.map +1 -0
  268. package/dist/parse/markdown/handlers/code.js +25 -0
  269. package/dist/parse/markdown/handlers/code.js.map +1 -0
  270. package/dist/parse/markdown/handlers/heading.d.ts +9 -0
  271. package/dist/parse/markdown/handlers/heading.d.ts.map +1 -0
  272. package/dist/parse/markdown/handlers/heading.js +22 -0
  273. package/dist/parse/markdown/handlers/heading.js.map +1 -0
  274. package/dist/parse/markdown/handlers/index.d.ts +23 -0
  275. package/dist/parse/markdown/handlers/index.d.ts.map +1 -0
  276. package/dist/parse/markdown/handlers/index.js +47 -0
  277. package/dist/parse/markdown/handlers/index.js.map +1 -0
  278. package/dist/parse/markdown/handlers/inline.d.ts +35 -0
  279. package/dist/parse/markdown/handlers/inline.d.ts.map +1 -0
  280. package/dist/parse/markdown/handlers/inline.js +126 -0
  281. package/dist/parse/markdown/handlers/inline.js.map +1 -0
  282. package/dist/parse/markdown/handlers/list.d.ts +9 -0
  283. package/dist/parse/markdown/handlers/list.d.ts.map +1 -0
  284. package/dist/parse/markdown/handlers/list.js +42 -0
  285. package/dist/parse/markdown/handlers/list.js.map +1 -0
  286. package/dist/parse/markdown/handlers/misc.d.ts +15 -0
  287. package/dist/parse/markdown/handlers/misc.d.ts.map +1 -0
  288. package/dist/parse/markdown/handlers/misc.js +38 -0
  289. package/dist/parse/markdown/handlers/misc.js.map +1 -0
  290. package/dist/parse/markdown/handlers/paragraph.d.ts +9 -0
  291. package/dist/parse/markdown/handlers/paragraph.d.ts.map +1 -0
  292. package/dist/parse/markdown/handlers/paragraph.js +21 -0
  293. package/dist/parse/markdown/handlers/paragraph.js.map +1 -0
  294. package/dist/parse/markdown/handlers/table.d.ts +9 -0
  295. package/dist/parse/markdown/handlers/table.d.ts.map +1 -0
  296. package/dist/parse/markdown/handlers/table.js +52 -0
  297. package/dist/parse/markdown/handlers/table.js.map +1 -0
  298. package/dist/parse/markdown/index.d.ts +5 -0
  299. package/dist/parse/markdown/index.d.ts.map +1 -0
  300. package/dist/parse/markdown/index.js +12 -0
  301. package/dist/parse/markdown/index.js.map +1 -0
  302. package/dist/parse/markdown/parser.d.ts +51 -0
  303. package/dist/parse/markdown/parser.d.ts.map +1 -0
  304. package/dist/parse/markdown/parser.js +134 -0
  305. package/dist/parse/markdown/parser.js.map +1 -0
  306. package/dist/parse/normalize.d.ts +51 -0
  307. package/dist/parse/normalize.d.ts.map +1 -0
  308. package/dist/parse/normalize.js +78 -0
  309. package/dist/parse/normalize.js.map +1 -0
  310. package/dist/parse/parsers.d.ts +37 -0
  311. package/dist/parse/parsers.d.ts.map +1 -0
  312. package/dist/parse/parsers.js +86 -0
  313. package/dist/parse/parsers.js.map +1 -0
  314. package/dist/parse/pipeline.d.ts +41 -0
  315. package/dist/parse/pipeline.d.ts.map +1 -0
  316. package/dist/parse/pipeline.js +120 -0
  317. package/dist/parse/pipeline.js.map +1 -0
  318. package/dist/parse/registry.d.ts +156 -0
  319. package/dist/parse/registry.d.ts.map +1 -0
  320. package/dist/parse/registry.js +104 -0
  321. package/dist/parse/registry.js.map +1 -0
  322. package/dist/parse/types.d.ts +67 -0
  323. package/dist/parse/types.d.ts.map +1 -0
  324. package/dist/parse/types.js +19 -0
  325. package/dist/parse/types.js.map +1 -0
  326. package/dist/pipeline/__tests__/pipeline.test.d.ts +5 -0
  327. package/dist/pipeline/__tests__/pipeline.test.d.ts.map +1 -0
  328. package/dist/pipeline/__tests__/pipeline.test.js +69 -0
  329. package/dist/pipeline/__tests__/pipeline.test.js.map +1 -0
  330. package/dist/pipeline/__tests__/single-as-workspace.test.d.ts +2 -0
  331. package/dist/pipeline/__tests__/single-as-workspace.test.d.ts.map +1 -0
  332. package/dist/pipeline/__tests__/single-as-workspace.test.js +19 -0
  333. package/dist/pipeline/__tests__/single-as-workspace.test.js.map +1 -0
  334. package/dist/pipeline/__tests__/workspace-rules.test.d.ts +11 -0
  335. package/dist/pipeline/__tests__/workspace-rules.test.d.ts.map +1 -0
  336. package/dist/pipeline/__tests__/workspace-rules.test.js +54 -0
  337. package/dist/pipeline/__tests__/workspace-rules.test.js.map +1 -0
  338. package/dist/pipeline/__tests__/workspace.test.d.ts +2 -0
  339. package/dist/pipeline/__tests__/workspace.test.d.ts.map +1 -0
  340. package/dist/pipeline/__tests__/workspace.test.js +61 -0
  341. package/dist/pipeline/__tests__/workspace.test.js.map +1 -0
  342. package/dist/pipeline/index.d.ts +34 -0
  343. package/dist/pipeline/index.d.ts.map +1 -0
  344. package/dist/pipeline/index.js +45 -0
  345. package/dist/pipeline/index.js.map +1 -0
  346. package/dist/pipeline/runner.d.ts +38 -0
  347. package/dist/pipeline/runner.d.ts.map +1 -0
  348. package/dist/pipeline/runner.js +128 -0
  349. package/dist/pipeline/runner.js.map +1 -0
  350. package/dist/pipeline/types.d.ts +106 -0
  351. package/dist/pipeline/types.d.ts.map +1 -0
  352. package/dist/pipeline/types.js +9 -0
  353. package/dist/pipeline/types.js.map +1 -0
  354. package/dist/pipeline/workspace-index.d.ts +11 -0
  355. package/dist/pipeline/workspace-index.d.ts.map +1 -0
  356. package/dist/pipeline/workspace-index.js +57 -0
  357. package/dist/pipeline/workspace-index.js.map +1 -0
  358. package/dist/plugins/__tests__/citation-transform.test.d.ts +7 -0
  359. package/dist/plugins/__tests__/citation-transform.test.d.ts.map +1 -0
  360. package/dist/plugins/__tests__/citation-transform.test.js +89 -0
  361. package/dist/plugins/__tests__/citation-transform.test.js.map +1 -0
  362. package/dist/plugins/__tests__/dfn-parsing.test.d.ts +2 -0
  363. package/dist/plugins/__tests__/dfn-parsing.test.d.ts.map +1 -0
  364. package/dist/plugins/__tests__/dfn-parsing.test.js +65 -0
  365. package/dist/plugins/__tests__/dfn-parsing.test.js.map +1 -0
  366. package/dist/plugins/__tests__/dfn-resolve.test.d.ts +5 -0
  367. package/dist/plugins/__tests__/dfn-resolve.test.d.ts.map +1 -0
  368. package/dist/plugins/__tests__/dfn-resolve.test.js +152 -0
  369. package/dist/plugins/__tests__/dfn-resolve.test.js.map +1 -0
  370. package/dist/plugins/__tests__/xref-parsing.test.d.ts +2 -0
  371. package/dist/plugins/__tests__/xref-parsing.test.d.ts.map +1 -0
  372. package/dist/plugins/__tests__/xref-parsing.test.js +66 -0
  373. package/dist/plugins/__tests__/xref-parsing.test.js.map +1 -0
  374. package/dist/plugins/aside.d.ts +12 -0
  375. package/dist/plugins/aside.d.ts.map +1 -0
  376. package/dist/plugins/aside.js +78 -0
  377. package/dist/plugins/aside.js.map +1 -0
  378. package/dist/plugins/blockquote.d.ts +11 -0
  379. package/dist/plugins/blockquote.d.ts.map +1 -0
  380. package/dist/plugins/blockquote.js +47 -0
  381. package/dist/plugins/blockquote.js.map +1 -0
  382. package/dist/plugins/citation-transform.d.ts +19 -0
  383. package/dist/plugins/citation-transform.d.ts.map +1 -0
  384. package/dist/plugins/citation-transform.js +176 -0
  385. package/dist/plugins/citation-transform.js.map +1 -0
  386. package/dist/plugins/citation.d.ts +21 -0
  387. package/dist/plugins/citation.d.ts.map +1 -0
  388. package/dist/plugins/citation.js +131 -0
  389. package/dist/plugins/citation.js.map +1 -0
  390. package/dist/plugins/code.d.ts +11 -0
  391. package/dist/plugins/code.d.ts.map +1 -0
  392. package/dist/plugins/code.js +60 -0
  393. package/dist/plugins/code.js.map +1 -0
  394. package/dist/plugins/core-html.d.ts +27 -0
  395. package/dist/plugins/core-html.d.ts.map +1 -0
  396. package/dist/plugins/core-html.js +53 -0
  397. package/dist/plugins/core-html.js.map +1 -0
  398. package/dist/plugins/core-markdown.d.ts +26 -0
  399. package/dist/plugins/core-markdown.d.ts.map +1 -0
  400. package/dist/plugins/core-markdown.js +55 -0
  401. package/dist/plugins/core-markdown.js.map +1 -0
  402. package/dist/plugins/data-cite.d.ts +12 -0
  403. package/dist/plugins/data-cite.d.ts.map +1 -0
  404. package/dist/plugins/data-cite.js +50 -0
  405. package/dist/plugins/data-cite.js.map +1 -0
  406. package/dist/plugins/dfn-resolve.d.ts +15 -0
  407. package/dist/plugins/dfn-resolve.d.ts.map +1 -0
  408. package/dist/plugins/dfn-resolve.js +257 -0
  409. package/dist/plugins/dfn-resolve.js.map +1 -0
  410. package/dist/plugins/dfn.d.ts +12 -0
  411. package/dist/plugins/dfn.d.ts.map +1 -0
  412. package/dist/plugins/dfn.js +57 -0
  413. package/dist/plugins/dfn.js.map +1 -0
  414. package/dist/plugins/directives.d.ts +8 -0
  415. package/dist/plugins/directives.d.ts.map +1 -0
  416. package/dist/plugins/directives.js +34 -0
  417. package/dist/plugins/directives.js.map +1 -0
  418. package/dist/plugins/heading.d.ts +11 -0
  419. package/dist/plugins/heading.d.ts.map +1 -0
  420. package/dist/plugins/heading.js +49 -0
  421. package/dist/plugins/heading.js.map +1 -0
  422. package/dist/plugins/index.d.ts +12 -0
  423. package/dist/plugins/index.d.ts.map +1 -0
  424. package/dist/plugins/index.js +26 -0
  425. package/dist/plugins/index.js.map +1 -0
  426. package/dist/plugins/inline.d.ts +12 -0
  427. package/dist/plugins/inline.d.ts.map +1 -0
  428. package/dist/plugins/inline.js +234 -0
  429. package/dist/plugins/inline.js.map +1 -0
  430. package/dist/plugins/list.d.ts +11 -0
  431. package/dist/plugins/list.d.ts.map +1 -0
  432. package/dist/plugins/list.js +110 -0
  433. package/dist/plugins/list.js.map +1 -0
  434. package/dist/plugins/misc.d.ts +12 -0
  435. package/dist/plugins/misc.d.ts.map +1 -0
  436. package/dist/plugins/misc.js +116 -0
  437. package/dist/plugins/misc.js.map +1 -0
  438. package/dist/plugins/paragraph.d.ts +11 -0
  439. package/dist/plugins/paragraph.d.ts.map +1 -0
  440. package/dist/plugins/paragraph.js +48 -0
  441. package/dist/plugins/paragraph.js.map +1 -0
  442. package/dist/plugins/section.d.ts +12 -0
  443. package/dist/plugins/section.d.ts.map +1 -0
  444. package/dist/plugins/section.js +62 -0
  445. package/dist/plugins/section.js.map +1 -0
  446. package/dist/plugins/table.d.ts +11 -0
  447. package/dist/plugins/table.d.ts.map +1 -0
  448. package/dist/plugins/table.js +130 -0
  449. package/dist/plugins/table.js.map +1 -0
  450. package/dist/plugins/xref.d.ts +12 -0
  451. package/dist/plugins/xref.d.ts.map +1 -0
  452. package/dist/plugins/xref.js +92 -0
  453. package/dist/plugins/xref.js.map +1 -0
  454. package/dist/postprocess/__tests__/citation-transform.test.d.ts +7 -0
  455. package/dist/postprocess/__tests__/citation-transform.test.d.ts.map +1 -0
  456. package/dist/postprocess/__tests__/citation-transform.test.js +89 -0
  457. package/dist/postprocess/__tests__/citation-transform.test.js.map +1 -0
  458. package/dist/postprocess/__tests__/dfn-resolve.test.d.ts +5 -0
  459. package/dist/postprocess/__tests__/dfn-resolve.test.d.ts.map +1 -0
  460. package/dist/postprocess/__tests__/dfn-resolve.test.js +160 -0
  461. package/dist/postprocess/__tests__/dfn-resolve.test.js.map +1 -0
  462. package/dist/postprocess/__tests__/section-id.test.d.ts +5 -0
  463. package/dist/postprocess/__tests__/section-id.test.d.ts.map +1 -0
  464. package/dist/postprocess/__tests__/section-id.test.js +222 -0
  465. package/dist/postprocess/__tests__/section-id.test.js.map +1 -0
  466. package/dist/postprocess/citation-transform.d.ts +19 -0
  467. package/dist/postprocess/citation-transform.d.ts.map +1 -0
  468. package/dist/postprocess/citation-transform.js +176 -0
  469. package/dist/postprocess/citation-transform.js.map +1 -0
  470. package/dist/postprocess/dfn-index.d.ts +16 -0
  471. package/dist/postprocess/dfn-index.d.ts.map +1 -0
  472. package/dist/postprocess/dfn-index.js +72 -0
  473. package/dist/postprocess/dfn-index.js.map +1 -0
  474. package/dist/postprocess/dfn-resolve.d.ts +15 -0
  475. package/dist/postprocess/dfn-resolve.d.ts.map +1 -0
  476. package/dist/postprocess/dfn-resolve.js +257 -0
  477. package/dist/postprocess/dfn-resolve.js.map +1 -0
  478. package/dist/postprocess/index.d.ts +15 -0
  479. package/dist/postprocess/index.d.ts.map +1 -0
  480. package/dist/postprocess/index.js +36 -0
  481. package/dist/postprocess/index.js.map +1 -0
  482. package/dist/postprocess/plugins/citation-transform.d.ts +19 -0
  483. package/dist/postprocess/plugins/citation-transform.d.ts.map +1 -0
  484. package/dist/postprocess/plugins/citation-transform.js +179 -0
  485. package/dist/postprocess/plugins/citation-transform.js.map +1 -0
  486. package/dist/postprocess/plugins/dfn-index.d.ts +16 -0
  487. package/dist/postprocess/plugins/dfn-index.d.ts.map +1 -0
  488. package/dist/postprocess/plugins/dfn-index.js +76 -0
  489. package/dist/postprocess/plugins/dfn-index.js.map +1 -0
  490. package/dist/postprocess/plugins/reference-resolve.d.ts +19 -0
  491. package/dist/postprocess/plugins/reference-resolve.d.ts.map +1 -0
  492. package/dist/postprocess/plugins/reference-resolve.js +103 -0
  493. package/dist/postprocess/plugins/reference-resolve.js.map +1 -0
  494. package/dist/postprocess/plugins/section-id.d.ts +16 -0
  495. package/dist/postprocess/plugins/section-id.d.ts.map +1 -0
  496. package/dist/postprocess/plugins/section-id.js +116 -0
  497. package/dist/postprocess/plugins/section-id.js.map +1 -0
  498. package/dist/postprocess/plugins/walk-ast.d.ts +38 -0
  499. package/dist/postprocess/plugins/walk-ast.d.ts.map +1 -0
  500. package/dist/postprocess/plugins/walk-ast.js +92 -0
  501. package/dist/postprocess/plugins/walk-ast.js.map +1 -0
  502. package/dist/postprocess/reference-resolve.d.ts +19 -0
  503. package/dist/postprocess/reference-resolve.d.ts.map +1 -0
  504. package/dist/postprocess/reference-resolve.js +105 -0
  505. package/dist/postprocess/reference-resolve.js.map +1 -0
  506. package/dist/postprocess/walk-ast.d.ts +38 -0
  507. package/dist/postprocess/walk-ast.d.ts.map +1 -0
  508. package/dist/postprocess/walk-ast.js +94 -0
  509. package/dist/postprocess/walk-ast.js.map +1 -0
  510. package/dist/preprocess/__tests__/pipeline.test.d.ts +5 -0
  511. package/dist/preprocess/__tests__/pipeline.test.d.ts.map +1 -0
  512. package/dist/preprocess/__tests__/pipeline.test.js +188 -0
  513. package/dist/preprocess/__tests__/pipeline.test.js.map +1 -0
  514. package/dist/preprocess/__tests__/resolver.test.d.ts +5 -0
  515. package/dist/preprocess/__tests__/resolver.test.d.ts.map +1 -0
  516. package/dist/preprocess/__tests__/resolver.test.js +165 -0
  517. package/dist/preprocess/__tests__/resolver.test.js.map +1 -0
  518. package/dist/preprocess/__tests__/scan-html.test.d.ts +5 -0
  519. package/dist/preprocess/__tests__/scan-html.test.d.ts.map +1 -0
  520. package/dist/preprocess/__tests__/scan-html.test.js +99 -0
  521. package/dist/preprocess/__tests__/scan-html.test.js.map +1 -0
  522. package/dist/preprocess/__tests__/scan-markdown.test.d.ts +5 -0
  523. package/dist/preprocess/__tests__/scan-markdown.test.d.ts.map +1 -0
  524. package/dist/preprocess/__tests__/scan-markdown.test.js +92 -0
  525. package/dist/preprocess/__tests__/scan-markdown.test.js.map +1 -0
  526. package/dist/preprocess/config/doc-config.d.ts +30 -0
  527. package/dist/preprocess/config/doc-config.d.ts.map +1 -0
  528. package/dist/preprocess/config/doc-config.js +85 -0
  529. package/dist/preprocess/config/doc-config.js.map +1 -0
  530. package/dist/preprocess/config/index.d.ts +9 -0
  531. package/dist/preprocess/config/index.d.ts.map +1 -0
  532. package/dist/preprocess/config/index.js +7 -0
  533. package/dist/preprocess/config/index.js.map +1 -0
  534. package/dist/preprocess/config/loader.d.ts +61 -0
  535. package/dist/preprocess/config/loader.d.ts.map +1 -0
  536. package/dist/preprocess/config/loader.js +40 -0
  537. package/dist/preprocess/config/loader.js.map +1 -0
  538. package/dist/preprocess/config/normalize.d.ts +19 -0
  539. package/dist/preprocess/config/normalize.d.ts.map +1 -0
  540. package/dist/preprocess/config/normalize.js +106 -0
  541. package/dist/preprocess/config/normalize.js.map +1 -0
  542. package/dist/preprocess/config/types.d.ts +40 -0
  543. package/dist/preprocess/config/types.d.ts.map +1 -0
  544. package/dist/preprocess/config/types.js +8 -0
  545. package/dist/preprocess/config/types.js.map +1 -0
  546. package/dist/preprocess/include/index.d.ts +7 -0
  547. package/dist/preprocess/include/index.d.ts.map +1 -0
  548. package/dist/preprocess/include/index.js +7 -0
  549. package/dist/preprocess/include/index.js.map +1 -0
  550. package/dist/preprocess/include/resolver.d.ts +40 -0
  551. package/dist/preprocess/include/resolver.d.ts.map +1 -0
  552. package/dist/preprocess/include/resolver.js +187 -0
  553. package/dist/preprocess/include/resolver.js.map +1 -0
  554. package/dist/preprocess/include/scan-html.d.ts +31 -0
  555. package/dist/preprocess/include/scan-html.d.ts.map +1 -0
  556. package/dist/preprocess/include/scan-html.js +100 -0
  557. package/dist/preprocess/include/scan-html.js.map +1 -0
  558. package/dist/preprocess/include/scan-markdown.d.ts +31 -0
  559. package/dist/preprocess/include/scan-markdown.d.ts.map +1 -0
  560. package/dist/preprocess/include/scan-markdown.js +83 -0
  561. package/dist/preprocess/include/scan-markdown.js.map +1 -0
  562. package/dist/preprocess/index.d.ts +16 -0
  563. package/dist/preprocess/index.d.ts.map +1 -0
  564. package/dist/preprocess/index.js +16 -0
  565. package/dist/preprocess/index.js.map +1 -0
  566. package/dist/preprocess/pipeline.d.ts +57 -0
  567. package/dist/preprocess/pipeline.d.ts.map +1 -0
  568. package/dist/preprocess/pipeline.js +100 -0
  569. package/dist/preprocess/pipeline.js.map +1 -0
  570. package/dist/preprocess/types.d.ts +197 -0
  571. package/dist/preprocess/types.d.ts.map +1 -0
  572. package/dist/preprocess/types.js +22 -0
  573. package/dist/preprocess/types.js.map +1 -0
  574. package/dist/types/ast.generated.d.ts +517 -0
  575. package/dist/types/ast.generated.d.ts.map +1 -0
  576. package/dist/types/ast.generated.js +66 -0
  577. package/dist/types/ast.generated.js.map +1 -0
  578. package/dist/validation/validate.d.ts +86 -0
  579. package/dist/validation/validate.d.ts.map +1 -0
  580. package/dist/validation/validate.js +162 -0
  581. package/dist/validation/validate.js.map +1 -0
  582. package/dist/workspace/__tests__/sort.test.d.ts +2 -0
  583. package/dist/workspace/__tests__/sort.test.d.ts.map +1 -0
  584. package/dist/workspace/__tests__/sort.test.js +122 -0
  585. package/dist/workspace/__tests__/sort.test.js.map +1 -0
  586. package/dist/workspace/index.d.ts +8 -0
  587. package/dist/workspace/index.d.ts.map +1 -0
  588. package/dist/workspace/index.js +7 -0
  589. package/dist/workspace/index.js.map +1 -0
  590. package/dist/workspace/sort.d.ts +49 -0
  591. package/dist/workspace/sort.d.ts.map +1 -0
  592. package/dist/workspace/sort.js +114 -0
  593. package/dist/workspace/sort.js.map +1 -0
  594. package/package.json +46 -81
  595. package/schema/spec-ast.schema.json +1440 -0
  596. package/bin/speculator.mjs +0 -76
  597. package/dist/browser.cjs +0 -1690
  598. package/dist/browser.d.cts +0 -418
  599. package/dist/browser.d.ts +0 -418
  600. package/dist/browser.js +0 -36
  601. package/dist/chunk-H7C7MOU6.js +0 -28
  602. package/dist/chunk-V4GSFQE7.js +0 -1646
  603. package/dist/cli/export-assertions.cjs +0 -1710
  604. package/dist/cli/export-assertions.d.cts +0 -25
  605. package/dist/cli/export-assertions.d.ts +0 -25
  606. package/dist/cli/export-assertions.js +0 -107
  607. package/dist/node.cjs +0 -1712
  608. package/dist/node.d.cts +0 -17
  609. package/dist/node.d.ts +0 -17
  610. package/dist/node.js +0 -40
@@ -0,0 +1,1440 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://speculator.dev/schema/spec-ast.schema.json",
4
+ "title": "Speculator AST Schema",
5
+ "version": "1.0.0",
6
+ "x-schema-version": "1.0.0",
7
+ "description": "AST-first schema for Speculator workspace. A workspace contains one or more specification documents. Semantic marker nodes are introduced during parse and may be refined during resolve. Global indexing aggregates definitions across documents.",
8
+ "type": "object",
9
+ "definitions": {
10
+ "SourcePos": {
11
+ "type": "object",
12
+ "description": "Source position for bidirectional AST-to-source mapping",
13
+ "properties": {
14
+ "file": {
15
+ "type": "string",
16
+ "description": "Canonical file path (preserves include origins)"
17
+ },
18
+ "line": {
19
+ "type": "integer",
20
+ "minimum": 1,
21
+ "description": "1-indexed line number"
22
+ },
23
+ "column": {
24
+ "type": "integer",
25
+ "minimum": 1,
26
+ "description": "1-indexed column number"
27
+ },
28
+ "offset": {
29
+ "type": "integer",
30
+ "minimum": 0,
31
+ "description": "0-indexed byte offset from file start"
32
+ },
33
+ "endLine": {
34
+ "type": "integer",
35
+ "minimum": 1
36
+ },
37
+ "endColumn": {
38
+ "type": "integer",
39
+ "minimum": 1
40
+ },
41
+ "endOffset": {
42
+ "type": "integer",
43
+ "minimum": 0
44
+ }
45
+ },
46
+ "required": [
47
+ "file",
48
+ "line",
49
+ "column"
50
+ ]
51
+ },
52
+ "BaseNode": {
53
+ "type": "object",
54
+ "properties": {
55
+ "sourcePos": {
56
+ "$ref": "#/definitions/SourcePos"
57
+ }
58
+ }
59
+ },
60
+ "InlineText": {
61
+ "allOf": [
62
+ {
63
+ "$ref": "#/definitions/BaseNode"
64
+ },
65
+ {
66
+ "type": "object",
67
+ "properties": {
68
+ "type": {
69
+ "const": "text"
70
+ },
71
+ "value": {
72
+ "type": "string"
73
+ }
74
+ },
75
+ "required": [
76
+ "type",
77
+ "value"
78
+ ]
79
+ }
80
+ ]
81
+ },
82
+ "InlineEmphasis": {
83
+ "allOf": [
84
+ {
85
+ "$ref": "#/definitions/BaseNode"
86
+ },
87
+ {
88
+ "type": "object",
89
+ "properties": {
90
+ "type": {
91
+ "const": "emphasis"
92
+ },
93
+ "children": {
94
+ "type": "array",
95
+ "items": {
96
+ "$ref": "#/definitions/Inline"
97
+ }
98
+ }
99
+ },
100
+ "required": [
101
+ "type",
102
+ "children"
103
+ ]
104
+ }
105
+ ]
106
+ },
107
+ "InlineStrong": {
108
+ "allOf": [
109
+ {
110
+ "$ref": "#/definitions/BaseNode"
111
+ },
112
+ {
113
+ "type": "object",
114
+ "properties": {
115
+ "type": {
116
+ "const": "strong"
117
+ },
118
+ "children": {
119
+ "type": "array",
120
+ "items": {
121
+ "$ref": "#/definitions/Inline"
122
+ }
123
+ }
124
+ },
125
+ "required": [
126
+ "type",
127
+ "children"
128
+ ]
129
+ }
130
+ ]
131
+ },
132
+ "InlineCode": {
133
+ "allOf": [
134
+ {
135
+ "$ref": "#/definitions/BaseNode"
136
+ },
137
+ {
138
+ "type": "object",
139
+ "properties": {
140
+ "type": {
141
+ "const": "inlineCode"
142
+ },
143
+ "value": {
144
+ "type": "string"
145
+ }
146
+ },
147
+ "required": [
148
+ "type",
149
+ "value"
150
+ ]
151
+ }
152
+ ]
153
+ },
154
+ "InlineLink": {
155
+ "allOf": [
156
+ {
157
+ "$ref": "#/definitions/BaseNode"
158
+ },
159
+ {
160
+ "type": "object",
161
+ "properties": {
162
+ "type": {
163
+ "const": "link"
164
+ },
165
+ "url": {
166
+ "type": "string"
167
+ },
168
+ "title": {
169
+ "type": [
170
+ "string",
171
+ "null"
172
+ ]
173
+ },
174
+ "children": {
175
+ "type": "array",
176
+ "items": {
177
+ "$ref": "#/definitions/Inline"
178
+ }
179
+ }
180
+ },
181
+ "required": [
182
+ "type",
183
+ "url",
184
+ "children"
185
+ ]
186
+ }
187
+ ]
188
+ },
189
+ "InlineImage": {
190
+ "allOf": [
191
+ {
192
+ "$ref": "#/definitions/BaseNode"
193
+ },
194
+ {
195
+ "type": "object",
196
+ "properties": {
197
+ "type": {
198
+ "const": "image"
199
+ },
200
+ "url": {
201
+ "type": "string"
202
+ },
203
+ "alt": {
204
+ "type": [
205
+ "string",
206
+ "null"
207
+ ]
208
+ },
209
+ "title": {
210
+ "type": [
211
+ "string",
212
+ "null"
213
+ ]
214
+ }
215
+ },
216
+ "required": [
217
+ "type",
218
+ "url"
219
+ ]
220
+ }
221
+ ]
222
+ },
223
+ "InlineDefinition": {
224
+ "allOf": [
225
+ {
226
+ "$ref": "#/definitions/BaseNode"
227
+ },
228
+ {
229
+ "type": "object",
230
+ "description": "Inline definition marker (dfn). The term and children are parse-level requirements. The canonical id may be author-specified or assigned/refined during resolve. Indexed during the indexing phase.",
231
+ "properties": {
232
+ "type": {
233
+ "const": "definition"
234
+ },
235
+ "explicitId": {
236
+ "type": "string",
237
+ "description": "Author-specified definition identifier, if provided."
238
+ },
239
+ "id": {
240
+ "type": "string",
241
+ "description": "Canonical unique identifier for this definition. May be assigned/refined during resolve."
242
+ },
243
+ "term": {
244
+ "type": "string",
245
+ "description": "The term being defined (normalized)"
246
+ },
247
+ "linkTexts": {
248
+ "type": "array",
249
+ "items": {
250
+ "type": "string"
251
+ },
252
+ "description": "Alternative link texts from data-lt attribute. Parse fills from data-lt or [term]."
253
+ },
254
+ "forContexts": {
255
+ "type": "array",
256
+ "items": {
257
+ "type": [
258
+ "string",
259
+ "null"
260
+ ]
261
+ },
262
+ "description": "For-contexts from data-dfn-for attribute (e.g., owning interface). Parse fills from data-dfn-for or [null]."
263
+ },
264
+ "dfnType": {
265
+ "type": "string",
266
+ "description": "Definition type from data-dfn-type (e.g., dfn, attribute, method). Defaults to 'dfn'."
267
+ },
268
+ "children": {
269
+ "type": "array",
270
+ "items": {
271
+ "$ref": "#/definitions/Inline"
272
+ }
273
+ }
274
+ },
275
+ "required": [
276
+ "type",
277
+ "term",
278
+ "children"
279
+ ]
280
+ }
281
+ ]
282
+ },
283
+ "InlineReference": {
284
+ "allOf": [
285
+ {
286
+ "$ref": "#/definitions/BaseNode"
287
+ },
288
+ {
289
+ "type": "object",
290
+ "description": "Cross-reference marker. Parse requires targetTerm and children. Resolve may bind targetId after global dfn collection. Indexed during the indexing phase.",
291
+ "properties": {
292
+ "type": {
293
+ "const": "reference"
294
+ },
295
+ "targetTerm": {
296
+ "type": "string",
297
+ "description": "Primary reference term used to resolve a target definition."
298
+ },
299
+ "candidateTerms": {
300
+ "type": "array",
301
+ "items": {
302
+ "type": "string"
303
+ },
304
+ "description": "Alternative term candidates from data-lt. Parse fills from data-lt or [targetTerm]."
305
+ },
306
+ "forContexts": {
307
+ "type": "array",
308
+ "items": {
309
+ "type": [
310
+ "string",
311
+ "null"
312
+ ]
313
+ },
314
+ "description": "For-contexts from data-xref-for (e.g., owning interface). Parse fills from data-xref-for or [null]."
315
+ },
316
+ "preferredType": {
317
+ "type": [
318
+ "string",
319
+ "null"
320
+ ],
321
+ "description": "Preferred definition type from data-link-type."
322
+ },
323
+ "xrefSpec": {
324
+ "type": [
325
+ "string",
326
+ "null"
327
+ ],
328
+ "description": "Explicit spec to search from data-xref-spec. Restricts external search."
329
+ },
330
+ "allowExternal": {
331
+ "type": "boolean",
332
+ "description": "Whether external lookup is allowed. False if data-allow-external='no'.",
333
+ "default": true
334
+ },
335
+ "targetId": {
336
+ "type": "string",
337
+ "description": "Resolved ID of the referenced definition. Filled during resolve phase."
338
+ },
339
+ "children": {
340
+ "type": "array",
341
+ "items": {
342
+ "$ref": "#/definitions/Inline"
343
+ }
344
+ }
345
+ },
346
+ "required": [
347
+ "type",
348
+ "targetTerm",
349
+ "children"
350
+ ]
351
+ }
352
+ ]
353
+ },
354
+ "InlineRequirement": {
355
+ "allOf": [
356
+ {
357
+ "$ref": "#/definitions/BaseNode"
358
+ },
359
+ {
360
+ "type": "object",
361
+ "description": "RFC 2119 requirement keyword. Indexed during the indexing phase.",
362
+ "properties": {
363
+ "type": {
364
+ "const": "requirement"
365
+ },
366
+ "keyword": {
367
+ "type": "string",
368
+ "enum": [
369
+ "MUST",
370
+ "MUST NOT",
371
+ "REQUIRED",
372
+ "SHALL",
373
+ "SHALL NOT",
374
+ "SHOULD",
375
+ "SHOULD NOT",
376
+ "RECOMMENDED",
377
+ "MAY",
378
+ "OPTIONAL"
379
+ ]
380
+ },
381
+ "id": {
382
+ "type": "string",
383
+ "description": "Optional requirement identifier"
384
+ }
385
+ },
386
+ "required": [
387
+ "type",
388
+ "keyword"
389
+ ]
390
+ }
391
+ ]
392
+ },
393
+ "InlineIssue": {
394
+ "allOf": [
395
+ {
396
+ "$ref": "#/definitions/BaseNode"
397
+ },
398
+ {
399
+ "type": "object",
400
+ "description": "Open issue or TODO marker. Indexed during the indexing phase.",
401
+ "properties": {
402
+ "type": {
403
+ "const": "issue"
404
+ },
405
+ "id": {
406
+ "type": "string"
407
+ },
408
+ "status": {
409
+ "type": "string",
410
+ "enum": [
411
+ "open",
412
+ "closed",
413
+ "wontfix"
414
+ ],
415
+ "default": "open"
416
+ },
417
+ "children": {
418
+ "type": "array",
419
+ "items": {
420
+ "$ref": "#/definitions/Inline"
421
+ }
422
+ }
423
+ },
424
+ "required": [
425
+ "type",
426
+ "children"
427
+ ]
428
+ }
429
+ ]
430
+ },
431
+ "InlineCite": {
432
+ "allOf": [
433
+ {
434
+ "$ref": "#/definitions/BaseNode"
435
+ },
436
+ {
437
+ "type": "object",
438
+ "description": "Citation marker. The key is parse-level; resolve may link to a bibliography entry and validate presence/ambiguity. Indexed during the indexing phase.",
439
+ "properties": {
440
+ "type": {
441
+ "const": "cite"
442
+ },
443
+ "key": {
444
+ "type": "string",
445
+ "description": "Citation key (e.g., RFC2119, WHATWG-URL, etc.)"
446
+ },
447
+ "kind": {
448
+ "type": "string",
449
+ "enum": [
450
+ "normative",
451
+ "informative"
452
+ ],
453
+ "description": "Final citation kind. Determined by forcing or section context."
454
+ },
455
+ "expanded": {
456
+ "type": "boolean",
457
+ "description": "True for [[[FOO]]] form - displays full title."
458
+ },
459
+ "forcedNormative": {
460
+ "type": "boolean",
461
+ "description": "True if [[!FOO]] or data-cite starts with !."
462
+ },
463
+ "forcedInformative": {
464
+ "type": "boolean",
465
+ "description": "True if [[?FOO]] form."
466
+ },
467
+ "specId": {
468
+ "type": [
469
+ "string",
470
+ "null"
471
+ ],
472
+ "description": "Spec shortname from data-cite (e.g., 'html', 'dom')."
473
+ },
474
+ "path": {
475
+ "type": [
476
+ "string",
477
+ "null"
478
+ ],
479
+ "description": "Path component from data-cite (e.g., '/section-2')."
480
+ },
481
+ "fragment": {
482
+ "type": [
483
+ "string",
484
+ "null"
485
+ ],
486
+ "description": "Fragment identifier from data-cite (e.g., 'the-a-element')."
487
+ },
488
+ "children": {
489
+ "type": "array",
490
+ "items": {
491
+ "$ref": "#/definitions/Inline"
492
+ },
493
+ "description": "Optional inline content that represents the cite text."
494
+ }
495
+ },
496
+ "required": [
497
+ "type",
498
+ "key"
499
+ ]
500
+ }
501
+ ]
502
+ },
503
+ "Inline": {
504
+ "oneOf": [
505
+ {
506
+ "$ref": "#/definitions/InlineText"
507
+ },
508
+ {
509
+ "$ref": "#/definitions/InlineEmphasis"
510
+ },
511
+ {
512
+ "$ref": "#/definitions/InlineStrong"
513
+ },
514
+ {
515
+ "$ref": "#/definitions/InlineCode"
516
+ },
517
+ {
518
+ "$ref": "#/definitions/InlineLink"
519
+ },
520
+ {
521
+ "$ref": "#/definitions/InlineImage"
522
+ },
523
+ {
524
+ "$ref": "#/definitions/InlineDefinition"
525
+ },
526
+ {
527
+ "$ref": "#/definitions/InlineReference"
528
+ },
529
+ {
530
+ "$ref": "#/definitions/InlineRequirement"
531
+ },
532
+ {
533
+ "$ref": "#/definitions/InlineIssue"
534
+ },
535
+ {
536
+ "$ref": "#/definitions/InlineCite"
537
+ }
538
+ ]
539
+ },
540
+ "BlockParagraph": {
541
+ "allOf": [
542
+ {
543
+ "$ref": "#/definitions/BaseNode"
544
+ },
545
+ {
546
+ "type": "object",
547
+ "properties": {
548
+ "type": {
549
+ "const": "paragraph"
550
+ },
551
+ "id": {
552
+ "type": "string"
553
+ },
554
+ "children": {
555
+ "type": "array",
556
+ "items": {
557
+ "$ref": "#/definitions/Inline"
558
+ }
559
+ }
560
+ },
561
+ "required": [
562
+ "type",
563
+ "children"
564
+ ]
565
+ }
566
+ ]
567
+ },
568
+ "BlockHeading": {
569
+ "allOf": [
570
+ {
571
+ "$ref": "#/definitions/BaseNode"
572
+ },
573
+ {
574
+ "type": "object",
575
+ "properties": {
576
+ "type": {
577
+ "const": "heading"
578
+ },
579
+ "depth": {
580
+ "type": "integer",
581
+ "minimum": 1,
582
+ "maximum": 6
583
+ },
584
+ "id": {
585
+ "type": "string",
586
+ "description": "Optional explicit heading ID"
587
+ },
588
+ "children": {
589
+ "type": "array",
590
+ "items": {
591
+ "$ref": "#/definitions/Inline"
592
+ }
593
+ }
594
+ },
595
+ "required": [
596
+ "type",
597
+ "depth",
598
+ "children"
599
+ ]
600
+ }
601
+ ]
602
+ },
603
+ "BlockCodeBlock": {
604
+ "allOf": [
605
+ {
606
+ "$ref": "#/definitions/BaseNode"
607
+ },
608
+ {
609
+ "type": "object",
610
+ "properties": {
611
+ "type": {
612
+ "const": "codeBlock"
613
+ },
614
+ "id": {
615
+ "type": "string"
616
+ },
617
+ "lang": {
618
+ "type": [
619
+ "string",
620
+ "null"
621
+ ]
622
+ },
623
+ "meta": {
624
+ "type": [
625
+ "string",
626
+ "null"
627
+ ]
628
+ },
629
+ "value": {
630
+ "type": "string"
631
+ }
632
+ },
633
+ "required": [
634
+ "type",
635
+ "value"
636
+ ]
637
+ }
638
+ ]
639
+ },
640
+ "BlockExample": {
641
+ "allOf": [
642
+ {
643
+ "$ref": "#/definitions/BaseNode"
644
+ },
645
+ {
646
+ "type": "object",
647
+ "description": "Example block. Indexed during the indexing phase.",
648
+ "properties": {
649
+ "type": {
650
+ "const": "example"
651
+ },
652
+ "id": {
653
+ "type": "string"
654
+ },
655
+ "title": {
656
+ "type": [
657
+ "string",
658
+ "null"
659
+ ]
660
+ },
661
+ "children": {
662
+ "type": "array",
663
+ "items": {
664
+ "$ref": "#/definitions/Block"
665
+ }
666
+ }
667
+ },
668
+ "required": [
669
+ "type",
670
+ "children"
671
+ ]
672
+ }
673
+ ]
674
+ },
675
+ "BlockQuote": {
676
+ "allOf": [
677
+ {
678
+ "$ref": "#/definitions/BaseNode"
679
+ },
680
+ {
681
+ "type": "object",
682
+ "properties": {
683
+ "type": {
684
+ "const": "blockquote"
685
+ },
686
+ "id": {
687
+ "type": "string"
688
+ },
689
+ "children": {
690
+ "type": "array",
691
+ "items": {
692
+ "$ref": "#/definitions/Block"
693
+ }
694
+ }
695
+ },
696
+ "required": [
697
+ "type",
698
+ "children"
699
+ ]
700
+ }
701
+ ]
702
+ },
703
+ "ListItem": {
704
+ "allOf": [
705
+ {
706
+ "$ref": "#/definitions/BaseNode"
707
+ },
708
+ {
709
+ "type": "object",
710
+ "properties": {
711
+ "type": {
712
+ "const": "listItem"
713
+ },
714
+ "checked": {
715
+ "type": [
716
+ "boolean",
717
+ "null"
718
+ ],
719
+ "description": "For task lists: true/false/null"
720
+ },
721
+ "children": {
722
+ "type": "array",
723
+ "items": {
724
+ "$ref": "#/definitions/Block"
725
+ }
726
+ }
727
+ },
728
+ "required": [
729
+ "type",
730
+ "children"
731
+ ]
732
+ }
733
+ ]
734
+ },
735
+ "BlockList": {
736
+ "allOf": [
737
+ {
738
+ "$ref": "#/definitions/BaseNode"
739
+ },
740
+ {
741
+ "type": "object",
742
+ "properties": {
743
+ "type": {
744
+ "const": "list"
745
+ },
746
+ "ordered": {
747
+ "type": "boolean"
748
+ },
749
+ "id": {
750
+ "type": "string"
751
+ },
752
+ "start": {
753
+ "type": [
754
+ "integer",
755
+ "null"
756
+ ],
757
+ "description": "Starting number for ordered lists"
758
+ },
759
+ "children": {
760
+ "type": "array",
761
+ "items": {
762
+ "$ref": "#/definitions/ListItem"
763
+ }
764
+ }
765
+ },
766
+ "required": [
767
+ "type",
768
+ "ordered",
769
+ "children"
770
+ ]
771
+ }
772
+ ]
773
+ },
774
+ "TableCell": {
775
+ "allOf": [
776
+ {
777
+ "$ref": "#/definitions/BaseNode"
778
+ },
779
+ {
780
+ "type": "object",
781
+ "properties": {
782
+ "type": {
783
+ "const": "tableCell"
784
+ },
785
+ "header": {
786
+ "type": "boolean",
787
+ "default": false
788
+ },
789
+ "align": {
790
+ "type": [
791
+ "string",
792
+ "null"
793
+ ],
794
+ "enum": [
795
+ "left",
796
+ "center",
797
+ "right",
798
+ null
799
+ ]
800
+ },
801
+ "children": {
802
+ "type": "array",
803
+ "items": {
804
+ "$ref": "#/definitions/Inline"
805
+ }
806
+ }
807
+ },
808
+ "required": [
809
+ "type",
810
+ "children"
811
+ ]
812
+ }
813
+ ]
814
+ },
815
+ "TableRow": {
816
+ "allOf": [
817
+ {
818
+ "$ref": "#/definitions/BaseNode"
819
+ },
820
+ {
821
+ "type": "object",
822
+ "properties": {
823
+ "type": {
824
+ "const": "tableRow"
825
+ },
826
+ "children": {
827
+ "type": "array",
828
+ "items": {
829
+ "$ref": "#/definitions/TableCell"
830
+ }
831
+ }
832
+ },
833
+ "required": [
834
+ "type",
835
+ "children"
836
+ ]
837
+ }
838
+ ]
839
+ },
840
+ "BlockTable": {
841
+ "allOf": [
842
+ {
843
+ "$ref": "#/definitions/BaseNode"
844
+ },
845
+ {
846
+ "type": "object",
847
+ "properties": {
848
+ "type": {
849
+ "const": "table"
850
+ },
851
+ "children": {
852
+ "type": "array",
853
+ "items": {
854
+ "$ref": "#/definitions/TableRow"
855
+ }
856
+ },
857
+ "id": {
858
+ "type": "string"
859
+ }
860
+ },
861
+ "required": [
862
+ "type",
863
+ "children"
864
+ ]
865
+ }
866
+ ]
867
+ },
868
+ "BlockThematicBreak": {
869
+ "allOf": [
870
+ {
871
+ "$ref": "#/definitions/BaseNode"
872
+ },
873
+ {
874
+ "type": "object",
875
+ "properties": {
876
+ "type": {
877
+ "const": "thematicBreak"
878
+ },
879
+ "id": {
880
+ "type": "string"
881
+ }
882
+ },
883
+ "required": [
884
+ "type"
885
+ ]
886
+ }
887
+ ]
888
+ },
889
+ "BlockHtml": {
890
+ "allOf": [
891
+ {
892
+ "$ref": "#/definitions/BaseNode"
893
+ },
894
+ {
895
+ "type": "object",
896
+ "properties": {
897
+ "type": {
898
+ "const": "html"
899
+ },
900
+ "id": {
901
+ "type": "string"
902
+ },
903
+ "value": {
904
+ "type": "string"
905
+ }
906
+ },
907
+ "required": [
908
+ "type",
909
+ "value"
910
+ ]
911
+ }
912
+ ]
913
+ },
914
+ "BlockNote": {
915
+ "allOf": [
916
+ {
917
+ "$ref": "#/definitions/BaseNode"
918
+ },
919
+ {
920
+ "type": "object",
921
+ "description": "Note or aside block. Content is informative (non-normative). Used for <aside>, <div class='note'>, etc.",
922
+ "properties": {
923
+ "type": {
924
+ "const": "note"
925
+ },
926
+ "id": {
927
+ "type": "string"
928
+ },
929
+ "noteType": {
930
+ "type": "string",
931
+ "enum": [
932
+ "note",
933
+ "warning",
934
+ "example",
935
+ "issue"
936
+ ],
937
+ "description": "Type of note, derived from class or element semantics."
938
+ },
939
+ "informative": {
940
+ "type": "boolean",
941
+ "const": true,
942
+ "description": "Always true - marks content scope as informative for citation classification."
943
+ },
944
+ "children": {
945
+ "type": "array",
946
+ "items": {
947
+ "$ref": "#/definitions/Block"
948
+ }
949
+ }
950
+ },
951
+ "required": [
952
+ "type",
953
+ "informative",
954
+ "children"
955
+ ]
956
+ }
957
+ ]
958
+ },
959
+ "Block": {
960
+ "oneOf": [
961
+ {
962
+ "$ref": "#/definitions/BlockParagraph"
963
+ },
964
+ {
965
+ "$ref": "#/definitions/BlockHeading"
966
+ },
967
+ {
968
+ "$ref": "#/definitions/BlockCodeBlock"
969
+ },
970
+ {
971
+ "$ref": "#/definitions/BlockExample"
972
+ },
973
+ {
974
+ "$ref": "#/definitions/BlockQuote"
975
+ },
976
+ {
977
+ "$ref": "#/definitions/BlockList"
978
+ },
979
+ {
980
+ "$ref": "#/definitions/BlockTable"
981
+ },
982
+ {
983
+ "$ref": "#/definitions/BlockThematicBreak"
984
+ },
985
+ {
986
+ "$ref": "#/definitions/BlockHtml"
987
+ },
988
+ {
989
+ "$ref": "#/definitions/BlockNote"
990
+ }
991
+ ]
992
+ },
993
+ "Section": {
994
+ "allOf": [
995
+ {
996
+ "$ref": "#/definitions/BaseNode"
997
+ },
998
+ {
999
+ "type": "object",
1000
+ "description": "A section groups related content. Supports in-place authoring without includes.",
1001
+ "properties": {
1002
+ "type": {
1003
+ "const": "section"
1004
+ },
1005
+ "id": {
1006
+ "type": "string",
1007
+ "description": "Optional explicit section identifier"
1008
+ },
1009
+ "heading": {
1010
+ "$ref": "#/definitions/BlockHeading",
1011
+ "description": "Optional section heading"
1012
+ },
1013
+ "children": {
1014
+ "type": "array",
1015
+ "items": {
1016
+ "oneOf": [
1017
+ {
1018
+ "$ref": "#/definitions/Section"
1019
+ },
1020
+ {
1021
+ "$ref": "#/definitions/Block"
1022
+ }
1023
+ ]
1024
+ }
1025
+ }
1026
+ },
1027
+ "required": [
1028
+ "type",
1029
+ "children"
1030
+ ]
1031
+ }
1032
+ ]
1033
+ },
1034
+ "IndexDefinitionEntry": {
1035
+ "type": "object",
1036
+ "description": "Entry in the definitions index, extracted from InlineDefinition nodes",
1037
+ "properties": {
1038
+ "id": {
1039
+ "type": "string"
1040
+ },
1041
+ "term": {
1042
+ "type": "string"
1043
+ },
1044
+ "linkTexts": {
1045
+ "type": "array",
1046
+ "items": {
1047
+ "type": "string"
1048
+ },
1049
+ "description": "Alternative link texts (aliases)"
1050
+ },
1051
+ "forContexts": {
1052
+ "type": "array",
1053
+ "items": {
1054
+ "type": [
1055
+ "string",
1056
+ "null"
1057
+ ]
1058
+ },
1059
+ "description": "Contexts this definition applies to"
1060
+ },
1061
+ "dfnType": {
1062
+ "type": "string",
1063
+ "description": "Type of definition (e.g. 'interface', 'dfn')"
1064
+ },
1065
+ "sourcePos": {
1066
+ "$ref": "#/definitions/SourcePos"
1067
+ }
1068
+ },
1069
+ "required": [
1070
+ "id",
1071
+ "term",
1072
+ "sourcePos"
1073
+ ]
1074
+ },
1075
+ "IndexReferenceEntry": {
1076
+ "type": "object",
1077
+ "description": "Entry in the references index, extracted from InlineReference nodes",
1078
+ "properties": {
1079
+ "targetId": {
1080
+ "type": "string"
1081
+ },
1082
+ "targetTerm": {
1083
+ "type": "string"
1084
+ },
1085
+ "sourcePos": {
1086
+ "$ref": "#/definitions/SourcePos"
1087
+ }
1088
+ },
1089
+ "required": [
1090
+ "targetTerm",
1091
+ "sourcePos"
1092
+ ]
1093
+ },
1094
+ "IndexRequirementEntry": {
1095
+ "type": "object",
1096
+ "description": "Entry in the requirements index, extracted from InlineRequirement nodes",
1097
+ "properties": {
1098
+ "id": {
1099
+ "type": "string"
1100
+ },
1101
+ "keyword": {
1102
+ "type": "string"
1103
+ },
1104
+ "sourcePos": {
1105
+ "$ref": "#/definitions/SourcePos"
1106
+ }
1107
+ },
1108
+ "required": [
1109
+ "keyword",
1110
+ "sourcePos"
1111
+ ]
1112
+ },
1113
+ "IndexIssueEntry": {
1114
+ "type": "object",
1115
+ "description": "Entry in the issues index, extracted from InlineIssue nodes",
1116
+ "properties": {
1117
+ "id": {
1118
+ "type": "string"
1119
+ },
1120
+ "status": {
1121
+ "type": "string"
1122
+ },
1123
+ "sourcePos": {
1124
+ "$ref": "#/definitions/SourcePos"
1125
+ }
1126
+ },
1127
+ "required": [
1128
+ "sourcePos"
1129
+ ]
1130
+ },
1131
+ "IndexExampleEntry": {
1132
+ "type": "object",
1133
+ "description": "Entry in the examples index, extracted from BlockExample nodes",
1134
+ "properties": {
1135
+ "id": {
1136
+ "type": "string"
1137
+ },
1138
+ "title": {
1139
+ "type": [
1140
+ "string",
1141
+ "null"
1142
+ ]
1143
+ },
1144
+ "sourcePos": {
1145
+ "$ref": "#/definitions/SourcePos"
1146
+ }
1147
+ },
1148
+ "required": [
1149
+ "sourcePos"
1150
+ ]
1151
+ },
1152
+ "IndexCiteEntry": {
1153
+ "type": "object",
1154
+ "description": "Entry in the citations index, extracted from InlineCite nodes",
1155
+ "properties": {
1156
+ "key": {
1157
+ "type": "string"
1158
+ },
1159
+ "kind": {
1160
+ "type": "string",
1161
+ "enum": [
1162
+ "normative",
1163
+ "informative"
1164
+ ]
1165
+ },
1166
+ "sourcePos": {
1167
+ "$ref": "#/definitions/SourcePos"
1168
+ }
1169
+ },
1170
+ "required": [
1171
+ "key",
1172
+ "sourcePos"
1173
+ ]
1174
+ },
1175
+ "IndexBiblioEntry": {
1176
+ "type": "object",
1177
+ "description": "Entry in the bibliography index, merged from config and/or authored biblio sources during resolve/index phases",
1178
+ "properties": {
1179
+ "key": {
1180
+ "type": "string"
1181
+ },
1182
+ "title": {
1183
+ "type": "string"
1184
+ },
1185
+ "url": {
1186
+ "type": "string"
1187
+ },
1188
+ "status": {
1189
+ "type": "string",
1190
+ "description": "Optional status or classification for the reference (e.g., 'standard', 'draft')"
1191
+ },
1192
+ "sourcePos": {
1193
+ "$ref": "#/definitions/SourcePos"
1194
+ }
1195
+ },
1196
+ "required": [
1197
+ "key"
1198
+ ]
1199
+ },
1200
+ "Indexes": {
1201
+ "type": "object",
1202
+ "description": "Indexes extracted from AST marker nodes during indexing. Not computed fields.",
1203
+ "properties": {
1204
+ "definitions": {
1205
+ "type": "array",
1206
+ "items": {
1207
+ "$ref": "#/definitions/IndexDefinitionEntry"
1208
+ }
1209
+ },
1210
+ "references": {
1211
+ "type": "array",
1212
+ "items": {
1213
+ "$ref": "#/definitions/IndexReferenceEntry"
1214
+ }
1215
+ },
1216
+ "requirements": {
1217
+ "type": "array",
1218
+ "items": {
1219
+ "$ref": "#/definitions/IndexRequirementEntry"
1220
+ }
1221
+ },
1222
+ "issues": {
1223
+ "type": "array",
1224
+ "items": {
1225
+ "$ref": "#/definitions/IndexIssueEntry"
1226
+ }
1227
+ },
1228
+ "examples": {
1229
+ "type": "array",
1230
+ "items": {
1231
+ "$ref": "#/definitions/IndexExampleEntry"
1232
+ }
1233
+ },
1234
+ "citations": {
1235
+ "type": "array",
1236
+ "items": {
1237
+ "$ref": "#/definitions/IndexCiteEntry"
1238
+ }
1239
+ },
1240
+ "bibliography": {
1241
+ "type": "array",
1242
+ "items": {
1243
+ "$ref": "#/definitions/IndexBiblioEntry"
1244
+ }
1245
+ }
1246
+ }
1247
+ },
1248
+ "TocEntry": {
1249
+ "type": "object",
1250
+ "description": "Table of contents entry",
1251
+ "x-computed": true,
1252
+ "properties": {
1253
+ "id": {
1254
+ "type": "string"
1255
+ },
1256
+ "depth": {
1257
+ "type": "integer"
1258
+ },
1259
+ "text": {
1260
+ "type": "string"
1261
+ },
1262
+ "number": {
1263
+ "type": "string",
1264
+ "description": "Hierarchical number like '1.2.3'"
1265
+ },
1266
+ "children": {
1267
+ "type": "array",
1268
+ "items": {
1269
+ "$ref": "#/definitions/TocEntry"
1270
+ }
1271
+ }
1272
+ },
1273
+ "required": [
1274
+ "depth",
1275
+ "text"
1276
+ ]
1277
+ },
1278
+ "ComputedFields": {
1279
+ "type": "object",
1280
+ "description": "Optional computed fields. Marked x-computed for semantic/full AST distinction.",
1281
+ "x-computed": true,
1282
+ "properties": {
1283
+ "toc": {
1284
+ "type": "array",
1285
+ "description": "Table of contents derived from headings",
1286
+ "x-computed": true,
1287
+ "items": {
1288
+ "$ref": "#/definitions/TocEntry"
1289
+ }
1290
+ },
1291
+ "headingNumbers": {
1292
+ "type": "object",
1293
+ "description": "Map of heading ID to hierarchical number string",
1294
+ "x-computed": true,
1295
+ "additionalProperties": {
1296
+ "type": "string"
1297
+ }
1298
+ },
1299
+ "wordCount": {
1300
+ "type": "integer",
1301
+ "description": "Total word count",
1302
+ "x-computed": true
1303
+ },
1304
+ "readingTime": {
1305
+ "type": "integer",
1306
+ "description": "Estimated reading time in minutes",
1307
+ "x-computed": true
1308
+ }
1309
+ }
1310
+ },
1311
+ "DocumentMetadata": {
1312
+ "type": "object",
1313
+ "description": "Document-level metadata from frontmatter or config",
1314
+ "properties": {
1315
+ "title": {
1316
+ "type": "string"
1317
+ },
1318
+ "subtitle": {
1319
+ "type": "string"
1320
+ },
1321
+ "shortName": {
1322
+ "type": "string"
1323
+ },
1324
+ "status": {
1325
+ "type": "string"
1326
+ },
1327
+ "version": {
1328
+ "type": "string"
1329
+ },
1330
+ "editors": {
1331
+ "type": "array",
1332
+ "items": {
1333
+ "type": "object",
1334
+ "properties": {
1335
+ "name": {
1336
+ "type": "string"
1337
+ },
1338
+ "url": {
1339
+ "type": "string"
1340
+ },
1341
+ "company": {
1342
+ "type": "string"
1343
+ }
1344
+ }
1345
+ }
1346
+ },
1347
+ "authors": {
1348
+ "type": "array",
1349
+ "items": {
1350
+ "type": "object",
1351
+ "properties": {
1352
+ "name": {
1353
+ "type": "string"
1354
+ },
1355
+ "url": {
1356
+ "type": "string"
1357
+ },
1358
+ "company": {
1359
+ "type": "string"
1360
+ }
1361
+ }
1362
+ }
1363
+ },
1364
+ "publishDate": {
1365
+ "type": "string",
1366
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
1367
+ "description": "ISO 8601 date format (YYYY-MM-DD)"
1368
+ },
1369
+ "abstract": {
1370
+ "type": "string"
1371
+ }
1372
+ }
1373
+ },
1374
+ "Document": {
1375
+ "type": "object",
1376
+ "description": "A single specification document",
1377
+ "properties": {
1378
+ "type": {
1379
+ "const": "document"
1380
+ },
1381
+ "metadata": {
1382
+ "$ref": "#/definitions/DocumentMetadata"
1383
+ },
1384
+ "children": {
1385
+ "type": "array",
1386
+ "items": {
1387
+ "oneOf": [
1388
+ {
1389
+ "$ref": "#/definitions/Section"
1390
+ },
1391
+ {
1392
+ "$ref": "#/definitions/Block"
1393
+ }
1394
+ ]
1395
+ }
1396
+ },
1397
+ "indexes": {
1398
+ "$ref": "#/definitions/Indexes",
1399
+ "description": "Indexes extracted from marker nodes during indexing"
1400
+ },
1401
+ "computed": {
1402
+ "$ref": "#/definitions/ComputedFields",
1403
+ "description": "Optional computed fields (x-computed: true)"
1404
+ },
1405
+ "sourcePos": {
1406
+ "$ref": "#/definitions/SourcePos"
1407
+ }
1408
+ },
1409
+ "required": [
1410
+ "type",
1411
+ "children"
1412
+ ]
1413
+ }
1414
+ },
1415
+ "properties": {
1416
+ "schemaVersion": {
1417
+ "type": "string",
1418
+ "const": "1.1.0",
1419
+ "description": "Schema version for this AST format"
1420
+ },
1421
+ "type": {
1422
+ "const": "workspace"
1423
+ },
1424
+ "documents": {
1425
+ "type": "array",
1426
+ "items": {
1427
+ "$ref": "#/definitions/Document"
1428
+ },
1429
+ "description": "Collection of documents in the workspace"
1430
+ },
1431
+ "globalIndex": {
1432
+ "$ref": "#/definitions/Indexes",
1433
+ "description": "Aggregated global index across all documents"
1434
+ }
1435
+ },
1436
+ "required": [
1437
+ "type",
1438
+ "documents"
1439
+ ]
1440
+ }