@agentshouse/mdmodel 0.1.0-alpha.9 → 0.1.0-c001b4068d4dc

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 (563) hide show
  1. package/API.md +434 -0
  2. package/README.md +42 -197
  3. package/dist/body.d.ts +85 -0
  4. package/dist/body.d.ts.map +1 -0
  5. package/dist/body.js +1083 -0
  6. package/dist/built-in.d.ts +4 -0
  7. package/dist/built-in.d.ts.map +1 -0
  8. package/dist/built-in.js +19 -0
  9. package/dist/definition.d.ts +91 -34
  10. package/dist/definition.d.ts.map +1 -1
  11. package/dist/definition.js +862 -144
  12. package/dist/divide.d.ts +3 -0
  13. package/dist/divide.d.ts.map +1 -0
  14. package/dist/divide.js +321 -0
  15. package/dist/document.d.ts +19 -3
  16. package/dist/document.d.ts.map +1 -1
  17. package/dist/document.js +1033 -188
  18. package/dist/event.d.ts +77 -0
  19. package/dist/event.d.ts.map +1 -0
  20. package/dist/event.js +200 -0
  21. package/dist/facts.d.ts +15 -0
  22. package/dist/facts.d.ts.map +1 -0
  23. package/dist/facts.js +41 -0
  24. package/dist/fields.d.ts +6 -0
  25. package/dist/fields.d.ts.map +1 -0
  26. package/dist/fields.js +10 -0
  27. package/dist/form.d.ts +4 -0
  28. package/dist/form.d.ts.map +1 -0
  29. package/dist/form.js +153 -0
  30. package/dist/house-model.d.ts +870 -0
  31. package/dist/house-model.d.ts.map +1 -0
  32. package/dist/house-model.js +472 -0
  33. package/dist/house-references/crockford.d.ts +4 -0
  34. package/dist/house-references/crockford.d.ts.map +1 -0
  35. package/dist/house-references/crockford.js +3 -0
  36. package/dist/house-references/patterns.d.ts +9 -0
  37. package/dist/house-references/patterns.d.ts.map +1 -0
  38. package/dist/house-references/patterns.js +13 -0
  39. package/dist/index.d.ts +47 -4
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +29 -5
  42. package/dist/indexed.d.ts +9 -0
  43. package/dist/indexed.d.ts.map +1 -0
  44. package/dist/indexed.js +55 -0
  45. package/dist/kinds.d.ts +21 -0
  46. package/dist/kinds.d.ts.map +1 -0
  47. package/dist/kinds.js +210 -0
  48. package/dist/markdown.d.ts +75 -0
  49. package/dist/markdown.d.ts.map +1 -0
  50. package/dist/markdown.js +265 -0
  51. package/dist/media-type.d.ts +72 -0
  52. package/dist/media-type.d.ts.map +1 -0
  53. package/dist/media-type.js +157 -0
  54. package/dist/moment.d.ts +7 -0
  55. package/dist/moment.d.ts.map +1 -0
  56. package/dist/moment.js +18 -0
  57. package/dist/not-ready.d.ts +2 -0
  58. package/dist/not-ready.d.ts.map +1 -0
  59. package/dist/not-ready.js +5 -0
  60. package/dist/paths.d.ts +30 -5
  61. package/dist/paths.d.ts.map +1 -1
  62. package/dist/paths.js +220 -35
  63. package/dist/pattern.d.ts +10 -0
  64. package/dist/pattern.d.ts.map +1 -0
  65. package/dist/pattern.js +356 -0
  66. package/dist/project.d.ts +20 -1
  67. package/dist/project.d.ts.map +1 -1
  68. package/dist/project.js +80 -101
  69. package/dist/query/language.d.ts +255 -0
  70. package/dist/query/language.d.ts.map +1 -0
  71. package/dist/query/language.js +620 -0
  72. package/dist/query/match.d.ts +14 -0
  73. package/dist/query/match.d.ts.map +1 -0
  74. package/dist/query/match.js +150 -0
  75. package/dist/query/rows.d.ts +32 -0
  76. package/dist/query/rows.d.ts.map +1 -0
  77. package/dist/query/rows.js +158 -0
  78. package/dist/query/sql.d.ts +39 -0
  79. package/dist/query/sql.d.ts.map +1 -0
  80. package/dist/query/sql.js +285 -0
  81. package/dist/query/walk.d.ts +57 -0
  82. package/dist/query/walk.d.ts.map +1 -0
  83. package/dist/query/walk.js +183 -0
  84. package/dist/references.d.ts +4 -0
  85. package/dist/references.d.ts.map +1 -0
  86. package/dist/references.js +30 -0
  87. package/dist/refuse.d.ts +1 -0
  88. package/dist/refuse.d.ts.map +1 -1
  89. package/dist/refuse.js +3 -10
  90. package/dist/reserved.d.ts +6 -0
  91. package/dist/reserved.d.ts.map +1 -0
  92. package/dist/reserved.js +21 -0
  93. package/dist/room-types.d.ts +7 -0
  94. package/dist/room-types.d.ts.map +1 -0
  95. package/dist/room-types.js +136 -0
  96. package/dist/schema.d.ts +6 -5
  97. package/dist/schema.d.ts.map +1 -1
  98. package/dist/schema.js +143 -41
  99. package/dist/types.d.ts +101 -3
  100. package/dist/types.d.ts.map +1 -1
  101. package/dist/types.js +1 -3
  102. package/dist/validate.d.ts +37 -2
  103. package/dist/validate.d.ts.map +1 -1
  104. package/dist/validate.js +392 -158
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.d.ts.map +1 -1
  107. package/dist/version.js +1 -3
  108. package/dist/yaml.d.ts +9 -3
  109. package/dist/yaml.d.ts.map +1 -1
  110. package/dist/yaml.js +326 -201
  111. package/fixtures/README.md +136 -56
  112. package/fixtures/cases/absent-link-dangles/library/item.md +8 -0
  113. package/fixtures/cases/absent-link-dangles/schema.yaml +5 -0
  114. package/fixtures/cases/absent-optional-field/expected.json +1 -0
  115. package/fixtures/cases/absent-optional-field/library/companies/acme.md +4 -0
  116. package/fixtures/cases/absent-optional-field/library/deals/lead.md +6 -0
  117. package/fixtures/cases/absent-optional-field/schema.yaml +55 -0
  118. package/fixtures/cases/absolute-link/expected.json +5 -0
  119. package/fixtures/cases/absolute-link/library/item.md +8 -0
  120. package/fixtures/cases/absolute-link/schema.yaml +5 -0
  121. package/fixtures/cases/attachment-reference-any-file/context.json +1 -0
  122. package/fixtures/cases/attachment-reference-any-file/expected.json +1 -0
  123. package/fixtures/cases/attachment-reference-any-file/library/companies/acme.md +4 -0
  124. package/fixtures/cases/attachment-reference-any-file/library/deals/renewal.md +18 -0
  125. package/fixtures/cases/attachment-reference-any-file/library/places/depot.md +4 -0
  126. package/fixtures/cases/attachment-reference-any-file/library/products/seats.md +4 -0
  127. package/fixtures/cases/attachment-reference-any-file/library/products/support.md +4 -0
  128. package/fixtures/cases/attachment-reference-any-file/schema.yaml +32 -0
  129. package/fixtures/cases/attachment-reference-dangles/context.json +1 -0
  130. package/fixtures/cases/attachment-reference-dangles/expected.json +1 -0
  131. package/fixtures/cases/attachment-reference-dangles/library/companies/acme.md +4 -0
  132. package/fixtures/cases/attachment-reference-dangles/library/deals/renewal.md +18 -0
  133. package/fixtures/cases/attachment-reference-dangles/library/places/depot.md +4 -0
  134. package/fixtures/cases/attachment-reference-dangles/library/products/seats.md +4 -0
  135. package/fixtures/cases/attachment-reference-dangles/library/products/support.md +4 -0
  136. package/fixtures/cases/attachment-reference-dangles/schema.yaml +32 -0
  137. package/fixtures/cases/attachment-reference-outside/context.json +1 -0
  138. package/fixtures/cases/attachment-reference-outside/expected.json +7 -0
  139. package/fixtures/cases/attachment-reference-outside/library/companies/acme.md +4 -0
  140. package/fixtures/cases/attachment-reference-outside/library/deals/renewal.md +18 -0
  141. package/fixtures/cases/attachment-reference-outside/library/places/depot.md +4 -0
  142. package/fixtures/cases/attachment-reference-outside/library/products/seats.md +4 -0
  143. package/fixtures/cases/attachment-reference-outside/library/products/support.md +4 -0
  144. package/fixtures/cases/attachment-reference-outside/schema.yaml +32 -0
  145. package/fixtures/cases/binary-any-reference/expected.json +2 -2
  146. package/fixtures/cases/binary-any-reference/library/notes/draft.md +1 -1
  147. package/fixtures/cases/binary-any-reference/schema.yaml +4 -0
  148. package/fixtures/cases/binary-document-collision/expected.json +1 -2
  149. package/fixtures/cases/binary-document-collision/schema.yaml +1 -0
  150. package/fixtures/cases/binary-image-dangles/expected.json +1 -0
  151. package/fixtures/cases/binary-image-dangles/schema.yaml +1 -0
  152. package/fixtures/cases/binary-link-dangles/expected.json +1 -0
  153. package/fixtures/cases/binary-link-dangles/schema.yaml +1 -0
  154. package/fixtures/cases/binary-link-outside-collection/expected.json +1 -2
  155. package/fixtures/cases/binary-link-outside-collection/schema.yaml +1 -0
  156. package/fixtures/cases/binary-prototype-reference/expected.json +2 -2
  157. package/fixtures/cases/binary-prototype-reference/library/notes/draft.md +1 -1
  158. package/fixtures/cases/binary-prototype-reference/schema.yaml +4 -0
  159. package/fixtures/cases/binary-typed-reference/expected.json +2 -2
  160. package/fixtures/cases/binary-typed-reference/library/notes/draft.md +1 -1
  161. package/fixtures/cases/binary-typed-reference/schema.yaml +5 -0
  162. package/fixtures/cases/boolean-field/context.json +1 -0
  163. package/fixtures/cases/boolean-field/expected.json +7 -0
  164. package/fixtures/cases/boolean-field/library/companies/acme.md +4 -0
  165. package/fixtures/cases/boolean-field/library/deals/renewal.md +56 -0
  166. package/fixtures/cases/boolean-field/schema.yaml +55 -0
  167. package/fixtures/cases/bracketed-link-definition/library/item.md +1 -1
  168. package/fixtures/cases/bracketed-link-definition/schema.yaml +5 -0
  169. package/fixtures/cases/closed-nested-object/context.json +1 -0
  170. package/fixtures/cases/closed-nested-object/expected.json +7 -0
  171. package/fixtures/cases/closed-nested-object/library/companies/acme.md +4 -0
  172. package/fixtures/cases/closed-nested-object/library/deals/renewal.md +57 -0
  173. package/fixtures/cases/closed-nested-object/schema.yaml +55 -0
  174. package/fixtures/cases/composed-root-reference/context.json +1 -0
  175. package/fixtures/cases/composed-root-reference/expected.json +6 -0
  176. package/fixtures/cases/composed-root-reference/library/a.md +5 -0
  177. package/fixtures/cases/composed-root-reference/schema.yaml +13 -0
  178. package/fixtures/cases/conditional-long-text/context.json +1 -0
  179. package/fixtures/cases/conditional-long-text/expected.json +7 -0
  180. package/fixtures/cases/conditional-long-text/library/questions/hosting.md +9 -0
  181. package/fixtures/cases/conditional-long-text/library/questions/payments.md +12 -0
  182. package/fixtures/cases/conditional-long-text/schema.yaml +13 -0
  183. package/fixtures/cases/cross-room-link/context.json +1 -0
  184. package/fixtures/cases/cross-room-link/expected.json +1 -0
  185. package/fixtures/cases/cross-room-link/library/clients/acme.md +6 -0
  186. package/fixtures/cases/cross-room-link/schema.yaml +3 -0
  187. package/fixtures/cases/cross-room-reference/context.json +1 -0
  188. package/fixtures/cases/cross-room-reference/expected.json +1 -0
  189. package/fixtures/cases/cross-room-reference/library/clients/acme.md +9 -0
  190. package/fixtures/cases/cross-room-reference/schema.yaml +8 -0
  191. package/fixtures/cases/date-time-format/context.json +1 -0
  192. package/fixtures/cases/date-time-format/expected.json +7 -0
  193. package/fixtures/cases/date-time-format/library/companies/acme.md +4 -0
  194. package/fixtures/cases/date-time-format/library/deals/renewal.md +56 -0
  195. package/fixtures/cases/date-time-format/schema.yaml +55 -0
  196. package/fixtures/cases/declared-binary-links/schema.yaml +1 -0
  197. package/fixtures/cases/default-unfilled/context.json +1 -0
  198. package/fixtures/cases/default-unfilled/expected.json +6 -0
  199. package/fixtures/cases/default-unfilled/library/companies/acme.md +4 -0
  200. package/fixtures/cases/default-unfilled/library/deals/renewal.md +54 -0
  201. package/fixtures/cases/default-unfilled/schema.yaml +55 -0
  202. package/fixtures/cases/defs-pattern/context.json +1 -0
  203. package/fixtures/cases/defs-pattern/expected.json +7 -0
  204. package/fixtures/cases/defs-pattern/library/companies/acme.md +4 -0
  205. package/fixtures/cases/defs-pattern/library/deals/renewal.md +56 -0
  206. package/fixtures/cases/defs-pattern/schema.yaml +55 -0
  207. package/fixtures/cases/dependent-rule/context.json +1 -0
  208. package/fixtures/cases/dependent-rule/expected.json +6 -0
  209. package/fixtures/cases/dependent-rule/library/companies/acme.md +4 -0
  210. package/fixtures/cases/dependent-rule/library/deals/renewal.md +55 -0
  211. package/fixtures/cases/dependent-rule/schema.yaml +55 -0
  212. package/fixtures/cases/duplicate-link-definition/library/item.md +1 -1
  213. package/fixtures/cases/duplicate-link-definition/schema.yaml +5 -0
  214. package/fixtures/cases/email-format/context.json +1 -0
  215. package/fixtures/cases/email-format/expected.json +7 -0
  216. package/fixtures/cases/email-format/library/companies/acme.md +4 -0
  217. package/fixtures/cases/email-format/library/deals/renewal.md +56 -0
  218. package/fixtures/cases/email-format/schema.yaml +55 -0
  219. package/fixtures/cases/equal-labels/context.json +1 -0
  220. package/fixtures/cases/equal-labels/expected.json +5 -0
  221. package/fixtures/cases/equal-labels/schema.yaml +4 -0
  222. package/fixtures/cases/fenced-link-definition/library/item.md +1 -1
  223. package/fixtures/cases/fenced-link-definition/schema.yaml +5 -0
  224. package/fixtures/cases/field-enum/expected.json +3 -3
  225. package/fixtures/cases/field-enum/library/item.md +2 -2
  226. package/fixtures/cases/field-enum/schema.yaml +6 -0
  227. package/fixtures/cases/frontmatter-schema/context.json +1 -0
  228. package/fixtures/cases/frontmatter-schema/expected.json +5 -0
  229. package/fixtures/cases/frontmatter-schema/schema.yaml +5 -0
  230. package/fixtures/cases/integer-field/context.json +1 -0
  231. package/fixtures/cases/integer-field/expected.json +7 -0
  232. package/fixtures/cases/integer-field/library/companies/acme.md +4 -0
  233. package/fixtures/cases/integer-field/library/deals/renewal.md +56 -0
  234. package/fixtures/cases/integer-field/schema.yaml +55 -0
  235. package/fixtures/cases/interrupted-link-definition/schema.yaml +1 -0
  236. package/fixtures/cases/json-schema-constructs/context.json +1 -0
  237. package/fixtures/cases/json-schema-constructs/expected.json +1 -0
  238. package/fixtures/cases/json-schema-constructs/library/companies/acme.md +4 -0
  239. package/fixtures/cases/json-schema-constructs/library/deals/renewal.md +56 -0
  240. package/fixtures/cases/json-schema-constructs/schema.yaml +55 -0
  241. package/fixtures/cases/labels-in-the-rooms-language/context.json +1 -0
  242. package/fixtures/cases/labels-in-the-rooms-language/expected.json +1 -0
  243. package/fixtures/cases/labels-in-the-rooms-language/library/deals/atlas.md +7 -0
  244. package/fixtures/cases/labels-in-the-rooms-language/schema.yaml +9 -0
  245. package/fixtures/cases/lazy-list-item/context.json +1 -0
  246. package/fixtures/cases/lazy-list-item/expected.json +3 -0
  247. package/fixtures/cases/lazy-list-item/library/item.md +10 -0
  248. package/fixtures/cases/lazy-list-item/schema.yaml +3 -0
  249. package/fixtures/cases/link-into-a-reserved-name/context.json +1 -0
  250. package/fixtures/cases/link-into-a-reserved-name/expected.json +5 -0
  251. package/fixtures/cases/link-into-a-reserved-name/library/notes/a.md +6 -0
  252. package/fixtures/cases/link-into-a-reserved-name/schema.yaml +3 -0
  253. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/context.json +1 -0
  254. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/expected.json +5 -0
  255. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/library/notes/b.md +5 -0
  256. package/fixtures/cases/list-item-enum/context.json +1 -0
  257. package/fixtures/cases/list-item-enum/expected.json +7 -0
  258. package/fixtures/cases/list-item-enum/library/task.md +7 -0
  259. package/fixtures/cases/list-item-enum/schema.yaml +3 -0
  260. package/fixtures/cases/list-item-kind/context.json +1 -0
  261. package/fixtures/cases/list-item-kind/expected.json +7 -0
  262. package/fixtures/cases/list-item-kind/library/task.md +6 -0
  263. package/fixtures/cases/list-item-kind/schema.yaml +3 -0
  264. package/fixtures/cases/list-items/context.json +1 -0
  265. package/fixtures/cases/list-items/expected.json +1 -0
  266. package/fixtures/cases/list-items/library/other.md +3 -0
  267. package/fixtures/cases/list-items/library/page.md +26 -0
  268. package/fixtures/cases/list-items/schema.yaml +10 -0
  269. package/fixtures/cases/list-of-objects-closed/context.json +1 -0
  270. package/fixtures/cases/list-of-objects-closed/expected.json +7 -0
  271. package/fixtures/cases/list-of-objects-closed/library/companies/acme.md +4 -0
  272. package/fixtures/cases/list-of-objects-closed/library/deals/renewal.md +56 -0
  273. package/fixtures/cases/list-of-objects-closed/schema.yaml +55 -0
  274. package/fixtures/cases/list-of-objects-item/context.json +1 -0
  275. package/fixtures/cases/list-of-objects-item/expected.json +7 -0
  276. package/fixtures/cases/list-of-objects-item/library/companies/acme.md +4 -0
  277. package/fixtures/cases/list-of-objects-item/library/deals/renewal.md +56 -0
  278. package/fixtures/cases/list-of-objects-item/schema.yaml +55 -0
  279. package/fixtures/cases/list-of-objects-reference/context.json +1 -0
  280. package/fixtures/cases/list-of-objects-reference/expected.json +7 -0
  281. package/fixtures/cases/list-of-objects-reference/library/companies/acme.md +4 -0
  282. package/fixtures/cases/list-of-objects-reference/library/deals/renewal.md +17 -0
  283. package/fixtures/cases/list-of-objects-reference/library/places/depot.md +4 -0
  284. package/fixtures/cases/list-of-objects-reference/library/products/seats.md +4 -0
  285. package/fixtures/cases/list-of-objects-reference/library/products/support.md +4 -0
  286. package/fixtures/cases/list-of-objects-reference/schema.yaml +32 -0
  287. package/fixtures/cases/list-reference-path/context.json +1 -0
  288. package/fixtures/cases/list-reference-path/expected.json +7 -0
  289. package/fixtures/cases/list-reference-path/library/other.md +3 -0
  290. package/fixtures/cases/list-reference-path/library/page.md +5 -0
  291. package/fixtures/cases/list-reference-path/schema.yaml +3 -0
  292. package/fixtures/cases/list-reference-type/context.json +1 -0
  293. package/fixtures/cases/list-reference-type/expected.json +7 -0
  294. package/fixtures/cases/list-reference-type/library/note.md +1 -0
  295. package/fixtures/cases/list-reference-type/library/page.md +6 -0
  296. package/fixtures/cases/list-reference-type/schema.yaml +3 -0
  297. package/fixtures/cases/list-size/context.json +1 -0
  298. package/fixtures/cases/list-size/expected.json +7 -0
  299. package/fixtures/cases/list-size/library/companies/acme.md +4 -0
  300. package/fixtures/cases/list-size/library/deals/renewal.md +58 -0
  301. package/fixtures/cases/list-size/schema.yaml +55 -0
  302. package/fixtures/cases/long-fence-link-definition/schema.yaml +1 -0
  303. package/fixtures/cases/long-value-past-six-levels/context.json +1 -0
  304. package/fixtures/cases/long-value-past-six-levels/expected.json +5 -0
  305. package/fixtures/cases/long-value-past-six-levels/schema.yaml +15 -0
  306. package/fixtures/cases/malformed-definition/expected.json +2 -4
  307. package/fixtures/cases/malformed-definition/schema.yaml +3 -0
  308. package/fixtures/cases/malformed-list/context.json +1 -0
  309. package/fixtures/cases/malformed-list/expected.json +7 -0
  310. package/fixtures/cases/{structured-section → malformed-list}/library/item.md +1 -1
  311. package/fixtures/cases/malformed-list/schema.yaml +6 -0
  312. package/fixtures/cases/member-document/context.json +1 -0
  313. package/fixtures/cases/member-document/expected.json +1 -0
  314. package/fixtures/cases/member-document/library/people/ana.md +5 -0
  315. package/fixtures/cases/member-document/schema.yaml +5 -0
  316. package/fixtures/cases/member-on-an-untyped-document/context.json +1 -0
  317. package/fixtures/cases/member-on-an-untyped-document/expected.json +6 -0
  318. package/fixtures/cases/member-on-an-untyped-document/library/note.md +4 -0
  319. package/fixtures/cases/member-on-another-type/context.json +1 -0
  320. package/fixtures/cases/member-on-another-type/expected.json +6 -0
  321. package/fixtures/cases/member-on-another-type/library/note.md +4 -0
  322. package/fixtures/cases/member-on-another-type/schema.yaml +7 -0
  323. package/fixtures/cases/missing-required-field/expected.json +2 -3
  324. package/fixtures/cases/missing-required-field/library/item.md +1 -1
  325. package/fixtures/cases/missing-required-field/schema.yaml +6 -0
  326. package/fixtures/cases/misspelled-key/context.json +1 -0
  327. package/fixtures/cases/misspelled-key/expected.json +7 -0
  328. package/fixtures/cases/misspelled-key/library/companies/acme.md +4 -0
  329. package/fixtures/cases/misspelled-key/library/deals/renewal.md +57 -0
  330. package/fixtures/cases/misspelled-key/schema.yaml +55 -0
  331. package/fixtures/cases/name-not-a-string/context.json +1 -0
  332. package/fixtures/cases/name-not-a-string/expected.json +5 -0
  333. package/fixtures/cases/name-not-a-string/schema.yaml +5 -0
  334. package/fixtures/cases/nested-defs/context.json +1 -0
  335. package/fixtures/cases/nested-defs/expected.json +7 -0
  336. package/fixtures/cases/nested-defs/library/deal.md +6 -0
  337. package/fixtures/cases/nested-defs/schema.yaml +11 -0
  338. package/fixtures/cases/nested-object-reference/context.json +1 -0
  339. package/fixtures/cases/nested-object-reference/expected.json +7 -0
  340. package/fixtures/cases/nested-object-reference/library/companies/acme.md +4 -0
  341. package/fixtures/cases/nested-object-reference/library/deals/renewal.md +17 -0
  342. package/fixtures/cases/nested-object-reference/library/places/depot.md +4 -0
  343. package/fixtures/cases/nested-object-reference/library/products/seats.md +4 -0
  344. package/fixtures/cases/nested-object-reference/library/products/support.md +4 -0
  345. package/fixtures/cases/nested-object-reference/schema.yaml +32 -0
  346. package/fixtures/cases/nested-reference/context.json +1 -0
  347. package/fixtures/cases/nested-reference/expected.json +1 -0
  348. package/fixtures/cases/nested-reference/library/companies/acme.md +4 -0
  349. package/fixtures/cases/nested-reference/library/deals/renewal.md +18 -0
  350. package/fixtures/cases/nested-reference/library/places/depot.md +4 -0
  351. package/fixtures/cases/nested-reference/library/products/seats.md +4 -0
  352. package/fixtures/cases/nested-reference/library/products/support.md +4 -0
  353. package/fixtures/cases/nested-reference/schema.yaml +32 -0
  354. package/fixtures/cases/nested-required-field/context.json +1 -0
  355. package/fixtures/cases/nested-required-field/expected.json +7 -0
  356. package/fixtures/cases/nested-required-field/library/companies/acme.md +4 -0
  357. package/fixtures/cases/nested-required-field/library/deals/renewal.md +55 -0
  358. package/fixtures/cases/nested-required-field/schema.yaml +55 -0
  359. package/fixtures/cases/numeric-range/context.json +1 -0
  360. package/fixtures/cases/numeric-range/expected.json +7 -0
  361. package/fixtures/cases/numeric-range/library/companies/acme.md +4 -0
  362. package/fixtures/cases/numeric-range/library/deals/renewal.md +56 -0
  363. package/fixtures/cases/numeric-range/schema.yaml +55 -0
  364. package/fixtures/cases/one-key-two-labels/context.json +1 -0
  365. package/fixtures/cases/one-key-two-labels/expected.json +5 -0
  366. package/fixtures/cases/one-key-two-labels/schema.yaml +5 -0
  367. package/fixtures/cases/one-key-two-types/context.json +1 -0
  368. package/fixtures/cases/one-key-two-types/expected.json +5 -0
  369. package/fixtures/cases/one-key-two-types/schema.yaml +4 -0
  370. package/fixtures/cases/one-of-variant/context.json +1 -0
  371. package/fixtures/cases/one-of-variant/expected.json +7 -0
  372. package/fixtures/cases/one-of-variant/library/companies/acme.md +4 -0
  373. package/fixtures/cases/one-of-variant/library/deals/renewal.md +56 -0
  374. package/fixtures/cases/one-of-variant/schema.yaml +55 -0
  375. package/fixtures/cases/other-room-reference/context.json +1 -0
  376. package/fixtures/cases/other-room-reference/expected.json +7 -0
  377. package/fixtures/cases/other-room-reference/library/companies/acme.md +4 -0
  378. package/fixtures/cases/other-room-reference/library/deals/renewal.md +17 -0
  379. package/fixtures/cases/other-room-reference/library/places/depot.md +4 -0
  380. package/fixtures/cases/other-room-reference/library/products/seats.md +4 -0
  381. package/fixtures/cases/other-room-reference/library/products/support.md +4 -0
  382. package/fixtures/cases/other-room-reference/schema.yaml +32 -0
  383. package/fixtures/cases/paragraph-link-definition/schema.yaml +1 -0
  384. package/fixtures/cases/prototype-field/expected.json +3 -3
  385. package/fixtures/cases/prototype-field/library/item.md +2 -2
  386. package/fixtures/cases/prototype-field/schema.yaml +5 -0
  387. package/fixtures/cases/quoted-link-definition/expected.json +1 -2
  388. package/fixtures/cases/quoted-link-definition/library/notes/draft.md +1 -1
  389. package/fixtures/cases/quoted-link-definition/schema.yaml +1 -0
  390. package/fixtures/cases/reference-into-a-reserved-name/context.json +1 -0
  391. package/fixtures/cases/reference-into-a-reserved-name/expected.json +7 -0
  392. package/fixtures/cases/reference-into-a-reserved-name/library/notes/a.md +4 -0
  393. package/fixtures/cases/reference-into-a-reserved-name/library/settings/brief.md +1 -0
  394. package/fixtures/cases/reference-into-a-reserved-name/schema.yaml +3 -0
  395. package/fixtures/cases/referenced-missing-file/expected.json +0 -1
  396. package/fixtures/cases/referenced-missing-file/library/a.md +2 -2
  397. package/fixtures/cases/referenced-missing-file/library/b.md +2 -2
  398. package/fixtures/cases/referenced-missing-file/schema.yaml +10 -0
  399. package/fixtures/cases/remote-ref/context.json +1 -0
  400. package/fixtures/cases/remote-ref/expected.json +5 -0
  401. package/fixtures/cases/remote-ref/schema.yaml +3 -0
  402. package/fixtures/cases/room-md-declares-a-type/context.json +1 -0
  403. package/fixtures/cases/room-md-declares-a-type/expected.json +6 -0
  404. package/fixtures/cases/room-md-declares-a-type/library/ROOM.md +5 -0
  405. package/fixtures/cases/second-member-document/context.json +1 -0
  406. package/fixtures/cases/second-member-document/expected.json +5 -0
  407. package/fixtures/cases/second-member-document/schema.yaml +4 -0
  408. package/fixtures/cases/sections-keyword-refused/context.json +1 -0
  409. package/fixtures/cases/sections-keyword-refused/expected.json +5 -0
  410. package/fixtures/cases/sections-keyword-refused/schema.yaml +6 -0
  411. package/fixtures/cases/shortcut-reference-link/context.json +1 -0
  412. package/fixtures/cases/shortcut-reference-link/expected.json +5 -0
  413. package/fixtures/cases/shortcut-reference-link/library/item.md +10 -0
  414. package/fixtures/cases/shortcut-reference-link/schema.yaml +5 -0
  415. package/fixtures/cases/string-length/context.json +1 -0
  416. package/fixtures/cases/string-length/expected.json +7 -0
  417. package/fixtures/cases/string-length/library/companies/acme.md +4 -0
  418. package/fixtures/cases/string-length/library/deals/renewal.md +56 -0
  419. package/fixtures/cases/string-length/schema.yaml +55 -0
  420. package/fixtures/cases/submission-keys/context.json +1 -0
  421. package/fixtures/cases/submission-keys/expected.json +1 -0
  422. package/fixtures/cases/submission-keys/library/notes/visitor.md +8 -0
  423. package/fixtures/cases/submission-keys/schema.yaml +4 -0
  424. package/fixtures/cases/text-field-kind/context.json +1 -0
  425. package/fixtures/cases/text-field-kind/expected.json +3 -0
  426. package/fixtures/cases/text-field-kind/library/page.md +4 -0
  427. package/fixtures/cases/text-field-kind/schema.yaml +4 -0
  428. package/fixtures/cases/thematic-break-ends-the-values/context.json +1 -0
  429. package/fixtures/cases/thematic-break-ends-the-values/expected.json +1 -0
  430. package/fixtures/cases/thematic-break-ends-the-values/library/item.md +10 -0
  431. package/fixtures/cases/thematic-break-ends-the-values/schema.yaml +3 -0
  432. package/fixtures/cases/truncated-link-definition/expected.json +1 -2
  433. package/fixtures/cases/truncated-link-definition/library/notes/draft.md +1 -1
  434. package/fixtures/cases/truncated-link-definition/schema.yaml +1 -0
  435. package/fixtures/cases/typed-path-names-another-type/context.json +11 -0
  436. package/fixtures/cases/typed-path-names-another-type/expected.json +6 -0
  437. package/fixtures/cases/typed-path-names-another-type/library/settings/prefs/one.md +3 -0
  438. package/fixtures/cases/typed-path-names-another-type/schema.yaml +6 -0
  439. package/fixtures/cases/typed-path-names-its-type/context.json +11 -0
  440. package/fixtures/cases/typed-path-names-its-type/expected.json +3 -0
  441. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/deeper/two.md +1 -0
  442. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/one.md +4 -0
  443. package/fixtures/cases/typed-path-names-its-type/schema.yaml +6 -0
  444. package/fixtures/cases/typed-path-names-no-type/context.json +11 -0
  445. package/fixtures/cases/typed-path-names-no-type/expected.json +6 -0
  446. package/fixtures/cases/typed-path-names-no-type/library/settings/prefs/one.md +1 -0
  447. package/fixtures/cases/typed-path-names-no-type/schema.yaml +6 -0
  448. package/fixtures/cases/types-folder-content/context.json +1 -0
  449. package/fixtures/cases/types-folder-content/expected.json +1 -0
  450. package/fixtures/cases/types-folder-content/library/types/task.md +4 -0
  451. package/fixtures/cases/types-folder-content/schema.yaml +4 -0
  452. package/fixtures/cases/unclosed-frontmatter/expected.json +1 -2
  453. package/fixtures/cases/undeclared-field/expected.json +3 -3
  454. package/fixtures/cases/undeclared-field/library/item.md +2 -2
  455. package/fixtures/cases/undeclared-field/schema.yaml +5 -0
  456. package/fixtures/cases/unevaluated-items-closed/context.json +1 -0
  457. package/fixtures/cases/unevaluated-items-closed/expected.json +7 -0
  458. package/fixtures/cases/unevaluated-items-closed/library/trip.md +16 -0
  459. package/fixtures/cases/unevaluated-items-closed/schema.yaml +10 -0
  460. package/fixtures/cases/unknown-type/context.json +1 -0
  461. package/fixtures/cases/unknown-type/expected.json +6 -0
  462. package/fixtures/cases/unknown-type/library/item.md +3 -0
  463. package/fixtures/cases/unknown-type/schema.yaml +3 -0
  464. package/fixtures/cases/unlisted-reference-type/context.json +1 -0
  465. package/fixtures/cases/unlisted-reference-type/expected.json +5 -0
  466. package/fixtures/cases/unlisted-reference-type/schema.yaml +3 -0
  467. package/fixtures/cases/unnamed-typed-path-checks-its-fields/context.json +11 -0
  468. package/fixtures/cases/unnamed-typed-path-checks-its-fields/expected.json +6 -0
  469. package/fixtures/cases/unnamed-typed-path-checks-its-fields/library/rooms/team/tasks/plan.md +5 -0
  470. package/fixtures/cases/unnamed-typed-path-checks-its-fields/schema.yaml +5 -0
  471. package/fixtures/cases/unnamed-typed-path-names-a-type/context.json +11 -0
  472. package/fixtures/cases/unnamed-typed-path-names-a-type/expected.json +6 -0
  473. package/fixtures/cases/unnamed-typed-path-names-a-type/library/rooms/team/tasks/plan.md +7 -0
  474. package/fixtures/cases/unnamed-typed-path-names-a-type/schema.yaml +5 -0
  475. package/fixtures/cases/unnamed-typed-path-reads-its-type/context.json +11 -0
  476. package/fixtures/cases/unnamed-typed-path-reads-its-type/expected.json +3 -0
  477. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/plan.md +1 -0
  478. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/tasks/plan.md +6 -0
  479. package/fixtures/cases/unnamed-typed-path-reads-its-type/schema.yaml +5 -0
  480. package/fixtures/cases/unnamed-typed-path-without-a-body/context.json +11 -0
  481. package/fixtures/cases/unnamed-typed-path-without-a-body/expected.json +5 -0
  482. package/fixtures/cases/unnamed-typed-path-without-a-body/library/rooms/team/tasks/plan.md +5 -0
  483. package/fixtures/cases/unnamed-typed-path-without-a-body/schema.yaml +5 -0
  484. package/fixtures/cases/unresolved-link/expected.json +1 -2
  485. package/fixtures/cases/unresolved-link/library/item.md +2 -2
  486. package/fixtures/cases/unresolved-link/schema.yaml +5 -0
  487. package/fixtures/cases/valid-typed-document/library/people/ada.md +1 -1
  488. package/fixtures/cases/valid-typed-document/library/tasks/one.md +11 -11
  489. package/fixtures/cases/valid-typed-document/schema.yaml +15 -0
  490. package/fixtures/cases/wide-item-fence-link/schema.yaml +1 -0
  491. package/fixtures/division.json +454 -0
  492. package/fixtures/forms.json +347 -0
  493. package/fixtures/preamble.json +29 -8
  494. package/fixtures/projection.json +204 -32
  495. package/fixtures/queries.json +1359 -0
  496. package/package.json +20 -13
  497. package/dist/definition.js.map +0 -1
  498. package/dist/document.js.map +0 -1
  499. package/dist/index.js.map +0 -1
  500. package/dist/links.d.ts +0 -25
  501. package/dist/links.d.ts.map +0 -1
  502. package/dist/links.js +0 -380
  503. package/dist/links.js.map +0 -1
  504. package/dist/paths.js.map +0 -1
  505. package/dist/profile.d.ts +0 -6
  506. package/dist/profile.d.ts.map +0 -1
  507. package/dist/profile.js +0 -7
  508. package/dist/profile.js.map +0 -1
  509. package/dist/project.js.map +0 -1
  510. package/dist/refuse.js.map +0 -1
  511. package/dist/schema.js.map +0 -1
  512. package/dist/sections.d.ts +0 -10
  513. package/dist/sections.d.ts.map +0 -1
  514. package/dist/sections.js +0 -79
  515. package/dist/sections.js.map +0 -1
  516. package/dist/types.js.map +0 -1
  517. package/dist/validate.js.map +0 -1
  518. package/dist/version.js.map +0 -1
  519. package/dist/yaml.js.map +0 -1
  520. package/fixtures/cases/binary-any-reference/library/types/note.md +0 -5
  521. package/fixtures/cases/binary-document-collision/library/types/note.md +0 -3
  522. package/fixtures/cases/binary-link-outside-collection/library/types/note.md +0 -3
  523. package/fixtures/cases/binary-prototype-reference/library/types/note.md +0 -5
  524. package/fixtures/cases/binary-typed-reference/library/types/note.md +0 -5
  525. package/fixtures/cases/binary-typed-reference/library/types/person.md +0 -3
  526. package/fixtures/cases/bracketed-link-definition/library/types/task.md +0 -7
  527. package/fixtures/cases/declared-binary-links/library/types/note.md +0 -3
  528. package/fixtures/cases/duplicate-link-definition/library/types/task.md +0 -7
  529. package/fixtures/cases/fenced-link-definition/library/types/task.md +0 -7
  530. package/fixtures/cases/field-enum/library/types/task.md +0 -8
  531. package/fixtures/cases/interrupted-link-definition/library/types/note.md +0 -3
  532. package/fixtures/cases/long-fence-link-definition/library/types/note.md +0 -3
  533. package/fixtures/cases/malformed-definition/library/types/task.md +0 -5
  534. package/fixtures/cases/missing-binary-image/expected.json +0 -6
  535. package/fixtures/cases/missing-binary-image/library/types/note.md +0 -3
  536. package/fixtures/cases/missing-binary-link/expected.json +0 -6
  537. package/fixtures/cases/missing-binary-link/library/types/note.md +0 -3
  538. package/fixtures/cases/missing-required-field/library/types/task.md +0 -8
  539. package/fixtures/cases/missing-section-item-kind/expected.json +0 -7
  540. package/fixtures/cases/missing-section-item-kind/library/types/task.md +0 -7
  541. package/fixtures/cases/paragraph-link-definition/library/types/note.md +0 -3
  542. package/fixtures/cases/prd-definition/library/types/task.md +0 -16
  543. package/fixtures/cases/prototype-field/library/types/task.md +0 -7
  544. package/fixtures/cases/quoted-link-definition/library/types/note.md +0 -3
  545. package/fixtures/cases/referenced-missing-file/library/types/person.md +0 -5
  546. package/fixtures/cases/referenced-missing-file/library/types/task.md +0 -8
  547. package/fixtures/cases/structured-section/expected.json +0 -7
  548. package/fixtures/cases/structured-section/library/types/task.md +0 -8
  549. package/fixtures/cases/truncated-link-definition/library/types/note.md +0 -3
  550. package/fixtures/cases/undeclared-field/library/types/task.md +0 -7
  551. package/fixtures/cases/unresolved-link/library/types/task.md +0 -7
  552. package/fixtures/cases/valid-typed-document/library/types/person.md +0 -5
  553. package/fixtures/cases/valid-typed-document/library/types/task.md +0 -13
  554. package/fixtures/cases/wide-item-fence-link/library/types/note.md +0 -3
  555. package/markdown-syntax-profile.md +0 -9
  556. /package/fixtures/cases/{missing-section-item-kind → absent-link-dangles}/context.json +0 -0
  557. /package/fixtures/cases/{prd-definition → absent-link-dangles}/expected.json +0 -0
  558. /package/fixtures/cases/{prd-definition → absent-optional-field}/context.json +0 -0
  559. /package/fixtures/cases/{structured-section → absolute-link}/context.json +0 -0
  560. /package/fixtures/cases/{missing-binary-image → binary-image-dangles}/context.json +0 -0
  561. /package/fixtures/cases/{missing-binary-image → binary-image-dangles}/library/notes/draft.md +0 -0
  562. /package/fixtures/cases/{missing-binary-link → binary-link-dangles}/context.json +0 -0
  563. /package/fixtures/cases/{missing-binary-link → binary-link-dangles}/library/notes/draft.md +0 -0
@@ -0,0 +1,6 @@
1
+ {
2
+ "verdict": "refuse",
3
+ "file": "rooms/team/tasks/plan.md",
4
+ "rule": "required",
5
+ "location": "/owner"
6
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ ---
3
+ - **title**: Plan
4
+
5
+ Write the plan.
@@ -0,0 +1,5 @@
1
+ task:
2
+ properties:
3
+ title: { type: string, maxLength: 20 }
4
+ owner: { type: string, format: uuid }
5
+ required: [title, owner]
@@ -0,0 +1,11 @@
1
+ {
2
+ "binaryTargets": [],
3
+ "typedPaths": [
4
+ {
5
+ "path": "rooms/*/tasks/*.md",
6
+ "type": "task",
7
+ "named": false,
8
+ "body": true
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "verdict": "refuse",
3
+ "file": "rooms/team/tasks/plan.md",
4
+ "rule": "unknown-type",
5
+ "location": "/type"
6
+ }
@@ -0,0 +1,7 @@
1
+ ---
2
+ type: task
3
+ ---
4
+ - **title**: Plan
5
+ - **owner**: 019a0000-0000-7000-8000-000000000001
6
+
7
+ Write the plan.
@@ -0,0 +1,5 @@
1
+ task:
2
+ properties:
3
+ title: { type: string, maxLength: 20 }
4
+ owner: { type: string, format: uuid }
5
+ required: [title, owner]
@@ -0,0 +1,11 @@
1
+ {
2
+ "binaryTargets": [],
3
+ "typedPaths": [
4
+ {
5
+ "path": "rooms/*/tasks/*.md",
6
+ "type": "task",
7
+ "named": false,
8
+ "body": true
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "verdict": "accept"
3
+ }
@@ -0,0 +1,6 @@
1
+ ---
2
+ ---
3
+ - **title**: Plan
4
+ - **owner**: 019a0000-0000-7000-8000-000000000001
5
+
6
+ Write the plan.
@@ -0,0 +1,5 @@
1
+ task:
2
+ properties:
3
+ title: { type: string, maxLength: 20 }
4
+ owner: { type: string, format: uuid }
5
+ required: [title, owner]
@@ -0,0 +1,11 @@
1
+ {
2
+ "binaryTargets": [],
3
+ "typedPaths": [
4
+ {
5
+ "path": "rooms/*/tasks/*.md",
6
+ "type": "task",
7
+ "named": false,
8
+ "body": true
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "verdict": "refuse",
3
+ "file": "rooms/team/tasks/plan.md",
4
+ "rule": "required-body"
5
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ ---
3
+ - **title**: Plan
4
+ - **owner**: 019a0000-0000-7000-8000-000000000001
5
+
@@ -0,0 +1,5 @@
1
+ task:
2
+ properties:
3
+ title: { type: string, maxLength: 20 }
4
+ owner: { type: string, format: uuid }
5
+ required: [title, owner]
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "verdict": "refuse",
3
3
  "file": "item.md",
4
- "rule": "unresolved-link",
5
- "version": "<package-version>"
4
+ "rule": "unresolved-link"
6
5
  }
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  type: task
3
- title: Ship
4
3
  ---
4
+ - **title**: Ship
5
5
 
6
6
  ## Description
7
7
 
8
- See [nope](missing.md).
8
+ See [outside](../outside.md).
@@ -0,0 +1,5 @@
1
+ task:
2
+ properties:
3
+ title: { type: string }
4
+ description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
5
+ required: [ title, description ]
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: person
3
- name: Ada
4
3
  ---
4
+ # Ada
@@ -1,18 +1,18 @@
1
1
  ---
2
2
  type: task
3
- name: Ship the first release
4
- title: Ship
5
- status: open
6
- due: 2026-09-06
7
- owner: ../people/ada.md
8
- labels: [core]
9
3
  ---
4
+ # Ship the first release
5
+
6
+ - **title**: Ship
7
+ - **status**: open
8
+ - **due**: 2026-09-06
9
+ - **owner**: [Ada](../people/ada.md)
10
+ - **labels**:
11
+ - core
12
+ - **Acceptance**:
13
+ - packaged
14
+ - tested
10
15
 
11
16
  ## Description
12
17
 
13
18
  Do the work.
14
-
15
- ## Acceptance
16
-
17
- - packaged
18
- - tested
@@ -0,0 +1,15 @@
1
+ person:
2
+ properties:
3
+ name: { type: string }
4
+ required: [ name ]
5
+ task:
6
+ properties:
7
+ name: { type: string }
8
+ title: { type: string, minLength: 1 }
9
+ status: { enum: [ open, in-progress, done ] }
10
+ due: { type: string, format: date }
11
+ owner: { type: string, reference: person }
12
+ labels: { type: array, items: { type: string } }
13
+ description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
14
+ acceptance: { type: array, items: { type: string }, title: Acceptance }
15
+ required: [ title, status, description ]
@@ -0,0 +1 @@
1
+ note: {}
@@ -0,0 +1,454 @@
1
+ {
2
+ "schema": "task:\n type: object\n properties:\n name: { type: string }\n status: { enum: [open, done] }\n description: { type: string, contentMediaType: text/markdown, title: Description }\n acceptance: { type: array, items: { type: string, reference: person }, title: Acceptance }\n required: [status]\nperson: {}\n",
3
+ "cases": [
4
+ {
5
+ "name": "a Document whose whole input fits the bound is one Span carrying its projection",
6
+ "file": "tasks/one.md",
7
+ "source": "---\ntype: task\n---\n# Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n",
8
+ "documentTargets": [],
9
+ "definition": "task",
10
+ "bound": 4096,
11
+ "expected": {
12
+ "ok": true,
13
+ "spans": [
14
+ {
15
+ "text": "Ship the release\n\nPreamble prose.\n\nBody of the description.\n",
16
+ "source": "Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n"
17
+ }
18
+ ]
19
+ }
20
+ },
21
+ {
22
+ "name": "an input over the bound packs adjacent values, ranges and heading nodes into whole units",
23
+ "file": "tasks/one.md",
24
+ "source": "---\ntype: task\n---\n# Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n\n## Notes\n\nNotes prose.\n",
25
+ "documentTargets": [],
26
+ "definition": "task",
27
+ "bound": 45,
28
+ "expected": {
29
+ "ok": true,
30
+ "spans": [
31
+ {
32
+ "text": "Ship the release\n\nPreamble prose.\n\n",
33
+ "source": "Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n"
34
+ },
35
+ {
36
+ "text": "Body of the description.\n\n",
37
+ "source": "Body of the description.\n\n"
38
+ },
39
+ {
40
+ "text": "## Notes\n\nNotes prose.\n",
41
+ "source": "## Notes\n\nNotes prose.\n"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "name": "a heading node over the bound divides into adjacent blocks carrying its own heading",
48
+ "file": "tasks/one.md",
49
+ "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nFirst paragraph of the overview.\n\nSecond paragraph of the overview.\n\n## Notes\n\nShort note.\n",
50
+ "documentTargets": [],
51
+ "definition": "task",
52
+ "bound": 50,
53
+ "expected": {
54
+ "ok": true,
55
+ "spans": [
56
+ {
57
+ "text": "Task\n\n",
58
+ "source": "Task"
59
+ },
60
+ {
61
+ "text": "## Overview\n\nFirst paragraph of the overview.\n\n",
62
+ "source": "## Overview\n\nFirst paragraph of the overview.\n\n"
63
+ },
64
+ {
65
+ "text": "## Overview\n\nSecond paragraph of the overview.\n\n",
66
+ "source": "Second paragraph of the overview.\n\n"
67
+ },
68
+ {
69
+ "text": "## Notes\n\nShort note.\n",
70
+ "source": "## Notes\n\nShort note.\n"
71
+ }
72
+ ]
73
+ }
74
+ },
75
+ {
76
+ "name": "a node continuation and the next whole sibling stay in their own Spans",
77
+ "file": "tasks/one.md",
78
+ "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nFirst paragraph of the overview.\n\nSecond paragraph of the overview.\n\n## Notes\n\nShort note.\n",
79
+ "documentTargets": [],
80
+ "definition": "task",
81
+ "bound": 75,
82
+ "expected": {
83
+ "ok": true,
84
+ "spans": [
85
+ {
86
+ "text": "Task\n\n",
87
+ "source": "Task"
88
+ },
89
+ {
90
+ "text": "## Overview\n\nFirst paragraph of the overview.\n\n",
91
+ "source": "## Overview\n\nFirst paragraph of the overview.\n\n"
92
+ },
93
+ {
94
+ "text": "## Overview\n\nSecond paragraph of the overview.\n\n",
95
+ "source": "Second paragraph of the overview.\n\n"
96
+ },
97
+ {
98
+ "text": "## Notes\n\nShort note.\n",
99
+ "source": "## Notes\n\nShort note.\n"
100
+ }
101
+ ]
102
+ }
103
+ },
104
+ {
105
+ "name": "a continuation Span carries its own node heading and never an ancestor heading",
106
+ "file": "tasks/one.md",
107
+ "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nIntro line.\n\n### Detail\n\nDetail paragraph one.\n\nDetail paragraph two.\n",
108
+ "documentTargets": [],
109
+ "definition": "task",
110
+ "bound": 40,
111
+ "expected": {
112
+ "ok": true,
113
+ "spans": [
114
+ {
115
+ "text": "Task\n\n",
116
+ "source": "Task"
117
+ },
118
+ {
119
+ "text": "## Overview\n\nIntro line.\n\n",
120
+ "source": "## Overview\n\nIntro line.\n\n"
121
+ },
122
+ {
123
+ "text": "### Detail\n\nDetail paragraph one.\n\n",
124
+ "source": "### Detail\n\nDetail paragraph one.\n\n"
125
+ },
126
+ {
127
+ "text": "### Detail\n\nDetail paragraph two.\n",
128
+ "source": "Detail paragraph two.\n"
129
+ }
130
+ ]
131
+ }
132
+ },
133
+ {
134
+ "name": "a block over the bound divides into sentences that repeat their predecessor",
135
+ "file": "tasks/one.md",
136
+ "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nOne. Two. Three. Four.\n",
137
+ "documentTargets": [],
138
+ "definition": "task",
139
+ "bound": 30,
140
+ "expected": {
141
+ "ok": true,
142
+ "spans": [
143
+ {
144
+ "text": "Task\n\n",
145
+ "source": "Task"
146
+ },
147
+ {
148
+ "text": "## Overview\n\nOne. Two. Three. ",
149
+ "source": "## Overview\n\nOne. Two. Three. "
150
+ },
151
+ {
152
+ "text": "## Overview\n\nThree. Four.\n",
153
+ "source": "Three. Four.\n"
154
+ }
155
+ ]
156
+ }
157
+ },
158
+ {
159
+ "name": "a single sentence over the bound divides at a bound cut inside it",
160
+ "file": "tasks/one.md",
161
+ "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\naaaa bbbb cccc dddd eeee\n",
162
+ "documentTargets": [],
163
+ "definition": "task",
164
+ "bound": 20,
165
+ "expected": {
166
+ "ok": true,
167
+ "spans": [
168
+ {
169
+ "text": "Task\n\n",
170
+ "source": "Task"
171
+ },
172
+ {
173
+ "text": "## Overview\n\naaaa",
174
+ "source": "## Overview\n\naaaa"
175
+ },
176
+ {
177
+ "text": "## Overview\n\n bbbb",
178
+ "source": " bbbb"
179
+ },
180
+ {
181
+ "text": "## Overview\n\n cccc",
182
+ "source": " cccc"
183
+ },
184
+ {
185
+ "text": "## Overview\n\n dddd",
186
+ "source": " dddd"
187
+ },
188
+ {
189
+ "text": "## Overview\n\n eeee\n",
190
+ "source": " eeee\n"
191
+ }
192
+ ]
193
+ }
194
+ },
195
+ {
196
+ "name": "an untyped input with no definition descends the same ladder",
197
+ "file": "notes/one.md",
198
+ "source": "# Title\n\nIntro paragraph about the whole thing.\n\n## Alpha\n\nAlpha one. Alpha two.\n\n### Deep\n\nDeep prose here.\n\n## Beta\n\nBeta prose.\n",
199
+ "documentTargets": [],
200
+ "definition": null,
201
+ "bound": 60,
202
+ "expected": {
203
+ "ok": true,
204
+ "spans": [
205
+ {
206
+ "text": "# Title\n\nIntro paragraph about the whole thing.\n\n",
207
+ "source": "# Title\n\nIntro paragraph about the whole thing.\n\n"
208
+ },
209
+ {
210
+ "text": "## Alpha\n\nAlpha one. Alpha two.\n\n",
211
+ "source": "## Alpha\n\nAlpha one. Alpha two.\n\n"
212
+ },
213
+ {
214
+ "text": "### Deep\n\nDeep prose here.\n\n",
215
+ "source": "### Deep\n\nDeep prose here.\n\n"
216
+ },
217
+ {
218
+ "text": "## Beta\n\nBeta prose.\n",
219
+ "source": "## Beta\n\nBeta prose.\n"
220
+ }
221
+ ]
222
+ }
223
+ },
224
+ {
225
+ "name": "a Document that declares the built-in any type divides its body after the fence",
226
+ "file": "notes/two.md",
227
+ "source": "---\ntype: any\ntitle: Note\n---\n\n## Notes\n\nRead it.\n",
228
+ "documentTargets": [],
229
+ "definition": null,
230
+ "bound": 4096,
231
+ "expected": {
232
+ "ok": true,
233
+ "spans": [
234
+ {
235
+ "text": "\n## Notes\n\nRead it.\n",
236
+ "source": "\n## Notes\n\nRead it.\n"
237
+ }
238
+ ]
239
+ }
240
+ },
241
+ {
242
+ "name": "an internal link embeds its label and addresses the destination the author wrote",
243
+ "file": "tasks/one.md",
244
+ "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nRead [the plan](../plans/q3.md) before starting.\n\n## Notes\n\nShort note.\n",
245
+ "documentTargets": [
246
+ "plans/q3.md"
247
+ ],
248
+ "definition": "task",
249
+ "bound": 50,
250
+ "expected": {
251
+ "ok": true,
252
+ "spans": [
253
+ {
254
+ "text": "Task\n\n",
255
+ "source": "Task"
256
+ },
257
+ {
258
+ "text": "## Overview\n\nRead the plan before starting.\n\n",
259
+ "source": "## Overview\n\nRead [the plan](../plans/q3.md) before starting.\n\n"
260
+ },
261
+ {
262
+ "text": "## Notes\n\nShort note.\n",
263
+ "source": "## Notes\n\nShort note.\n"
264
+ }
265
+ ]
266
+ }
267
+ },
268
+ {
269
+ "name": "a value list that holds no prose stays outside the text and inside the extent",
270
+ "file": "tasks/one.md",
271
+ "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Notes\n\nShort note.\n",
272
+ "documentTargets": [],
273
+ "definition": "task",
274
+ "bound": 4096,
275
+ "expected": {
276
+ "ok": true,
277
+ "spans": [
278
+ {
279
+ "text": "Task\n\nPreamble prose.\n\n## Notes\n\nShort note.\n",
280
+ "source": "Task\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Notes\n\nShort note.\n"
281
+ }
282
+ ]
283
+ }
284
+ },
285
+ {
286
+ "name": "a Document that declares a type the caller supplies no definition for is refused",
287
+ "file": "tasks/one.md",
288
+ "source": "---\ntype: task\n---\n# Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n",
289
+ "documentTargets": [],
290
+ "definition": null,
291
+ "bound": 4096,
292
+ "expected": {
293
+ "ok": false,
294
+ "refusal": {
295
+ "file": "tasks/one.md",
296
+ "rule": "unknown-type"
297
+ }
298
+ }
299
+ },
300
+ {
301
+ "name": "a bound that cannot hold one whole character is refused before any division",
302
+ "file": "notes/one.md",
303
+ "source": "## Notes\n\nShort note.\n",
304
+ "documentTargets": [],
305
+ "definition": null,
306
+ "bound": 1,
307
+ "expected": {
308
+ "ok": false,
309
+ "refusal": {
310
+ "file": "notes/one.md",
311
+ "rule": "division-bound"
312
+ }
313
+ }
314
+ },
315
+ {
316
+ "name": "a free-text value written with an escape embeds bare and addresses the escape it was written with",
317
+ "file": "tasks/one.md",
318
+ "source": "---\ntype: task\n---\n# Ship: the release \\#\n\n- **status**: open\n\nBody prose.\n",
319
+ "documentTargets": [],
320
+ "definition": "task",
321
+ "bound": 4096,
322
+ "expected": {
323
+ "ok": true,
324
+ "spans": [
325
+ {
326
+ "text": "Ship: the release #\n\nBody prose.\n",
327
+ "source": "Ship: the release \\#\n\n- **status**: open\n\nBody prose.\n"
328
+ }
329
+ ]
330
+ }
331
+ },
332
+ {
333
+ "name": "sentence division reads every terminator and closer and drops a carry the bound cannot hold",
334
+ "file": "notes/three.md",
335
+ "source": "## Ask\n\nReady? Go! He said \"no.\" Then (silence.) Done.\n",
336
+ "documentTargets": [],
337
+ "definition": null,
338
+ "bound": 30,
339
+ "expected": {
340
+ "ok": true,
341
+ "spans": [
342
+ {
343
+ "text": "## Ask\n\nReady? Go! ",
344
+ "source": "## Ask\n\nReady? Go! "
345
+ },
346
+ {
347
+ "text": "## Ask\n\nGo! He said \"no.\" ",
348
+ "source": "Go! He said \"no.\" "
349
+ },
350
+ {
351
+ "text": "## Ask\n\nThen (silence.) Done.\n",
352
+ "source": "Then (silence.) Done.\n"
353
+ }
354
+ ]
355
+ }
356
+ },
357
+ {
358
+ "name": "a heading with no body of its own leads the first child node instead of standing alone",
359
+ "file": "notes/four.md",
360
+ "source": "## Part\n\n### Alpha\n\nAlpha prose that is long enough to matter.\n\n### Beta\n\nBeta prose.\n",
361
+ "documentTargets": [],
362
+ "definition": null,
363
+ "bound": 70,
364
+ "expected": {
365
+ "ok": true,
366
+ "spans": [
367
+ {
368
+ "text": "## Part\n\n### Alpha\n\nAlpha prose that is long enough to matter.\n\n",
369
+ "source": "## Part\n\n### Alpha\n\nAlpha prose that is long enough to matter.\n\n"
370
+ },
371
+ {
372
+ "text": "### Beta\n\nBeta prose.\n",
373
+ "source": "### Beta\n\nBeta prose.\n"
374
+ }
375
+ ]
376
+ }
377
+ },
378
+ {
379
+ "name": "a heading the bound cannot hold beside any text is not repeated",
380
+ "file": "notes/five.md",
381
+ "source": "## An overview of the release\n\nFirst paragraph here.\n\nSecond paragraph here.\n",
382
+ "documentTargets": [],
383
+ "definition": null,
384
+ "bound": 25,
385
+ "expected": {
386
+ "ok": true,
387
+ "spans": [
388
+ {
389
+ "text": "## An overview of the",
390
+ "source": "## An overview of the"
391
+ },
392
+ {
393
+ "text": " release\n\nFirst paragraph",
394
+ "source": " release\n\nFirst paragraph"
395
+ },
396
+ {
397
+ "text": " here.\n\n",
398
+ "source": " here.\n\n"
399
+ },
400
+ {
401
+ "text": "Second paragraph here.\n",
402
+ "source": "Second paragraph here.\n"
403
+ }
404
+ ]
405
+ }
406
+ },
407
+ {
408
+ "name": "a loose list is one block of its heading node",
409
+ "file": "notes/list.md",
410
+ "source": "## L\n\nIntro.\n\n- one\n\n- two\n\nAfter.\n",
411
+ "documentTargets": [],
412
+ "definition": null,
413
+ "bound": 22,
414
+ "expected": {
415
+ "ok": true,
416
+ "spans": [
417
+ {
418
+ "text": "## L\n\nIntro.\n\n",
419
+ "source": "## L\n\nIntro.\n\n"
420
+ },
421
+ {
422
+ "text": "## L\n\n- one\n\n- two\n\n",
423
+ "source": "- one\n\n- two\n\n"
424
+ },
425
+ {
426
+ "text": "## L\n\nAfter.\n",
427
+ "source": "After.\n"
428
+ }
429
+ ]
430
+ }
431
+ },
432
+ {
433
+ "name": "a list right after a paragraph is a block of its own",
434
+ "file": "notes/list.md",
435
+ "source": "## L\n\nIntro.\n- one\n- two\n",
436
+ "documentTargets": [],
437
+ "definition": null,
438
+ "bound": 20,
439
+ "expected": {
440
+ "ok": true,
441
+ "spans": [
442
+ {
443
+ "text": "## L\n\nIntro.\n",
444
+ "source": "## L\n\nIntro.\n"
445
+ },
446
+ {
447
+ "text": "## L\n\n- one\n- two\n",
448
+ "source": "- one\n- two\n"
449
+ }
450
+ ]
451
+ }
452
+ }
453
+ ]
454
+ }