@agentshouse/mdmodel 0.1.0-cb304fd2c27f9 → 0.1.0-cbb41ab5ebbd2

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 (379) hide show
  1. package/API.md +203 -173
  2. package/README.md +26 -25
  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 +24 -11
  10. package/dist/definition.d.ts.map +1 -1
  11. package/dist/definition.js +188 -128
  12. package/dist/divide.d.ts.map +1 -1
  13. package/dist/divide.js +5 -4
  14. package/dist/document.d.ts +14 -9
  15. package/dist/document.d.ts.map +1 -1
  16. package/dist/document.js +759 -148
  17. package/dist/event.d.ts +77 -0
  18. package/dist/event.d.ts.map +1 -0
  19. package/dist/event.js +200 -0
  20. package/dist/facts.d.ts +15 -0
  21. package/dist/facts.d.ts.map +1 -0
  22. package/dist/facts.js +41 -0
  23. package/dist/fields.d.ts +1 -1
  24. package/dist/fields.d.ts.map +1 -1
  25. package/dist/fields.js +2 -2
  26. package/dist/form.d.ts +4 -0
  27. package/dist/form.d.ts.map +1 -0
  28. package/dist/form.js +153 -0
  29. package/dist/house-model.d.ts +870 -0
  30. package/dist/house-model.d.ts.map +1 -0
  31. package/dist/house-model.js +472 -0
  32. package/dist/house-references/crockford.d.ts +4 -0
  33. package/dist/house-references/crockford.d.ts.map +1 -0
  34. package/dist/house-references/crockford.js +3 -0
  35. package/dist/house-references/patterns.d.ts +9 -0
  36. package/dist/house-references/patterns.d.ts.map +1 -0
  37. package/dist/house-references/patterns.js +13 -0
  38. package/dist/index.d.ts +39 -20
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +25 -13
  41. package/dist/indexed.d.ts +9 -0
  42. package/dist/indexed.d.ts.map +1 -0
  43. package/dist/indexed.js +55 -0
  44. package/dist/kinds.d.ts +5 -2
  45. package/dist/kinds.d.ts.map +1 -1
  46. package/dist/kinds.js +80 -11
  47. package/dist/markdown.d.ts +75 -0
  48. package/dist/markdown.d.ts.map +1 -0
  49. package/dist/markdown.js +265 -0
  50. package/dist/media-type.d.ts +72 -0
  51. package/dist/media-type.d.ts.map +1 -0
  52. package/dist/media-type.js +157 -0
  53. package/dist/moment.d.ts +7 -0
  54. package/dist/moment.d.ts.map +1 -0
  55. package/dist/moment.js +18 -0
  56. package/dist/not-ready.d.ts +2 -0
  57. package/dist/not-ready.d.ts.map +1 -0
  58. package/dist/not-ready.js +5 -0
  59. package/dist/paths.d.ts +15 -1
  60. package/dist/paths.d.ts.map +1 -1
  61. package/dist/paths.js +88 -19
  62. package/dist/pattern.d.ts.map +1 -1
  63. package/dist/pattern.js +4 -3
  64. package/dist/project.d.ts.map +1 -1
  65. package/dist/project.js +33 -60
  66. package/dist/query/language.d.ts +45 -8
  67. package/dist/query/language.d.ts.map +1 -1
  68. package/dist/query/language.js +152 -58
  69. package/dist/query/match.d.ts +3 -1
  70. package/dist/query/match.d.ts.map +1 -1
  71. package/dist/query/match.js +40 -8
  72. package/dist/query/rows.d.ts +1 -1
  73. package/dist/query/rows.d.ts.map +1 -1
  74. package/dist/query/rows.js +2 -5
  75. package/dist/query/sql.d.ts +5 -1
  76. package/dist/query/sql.d.ts.map +1 -1
  77. package/dist/query/sql.js +10 -4
  78. package/dist/query/walk.d.ts +63 -0
  79. package/dist/query/walk.d.ts.map +1 -0
  80. package/dist/query/walk.js +263 -0
  81. package/dist/references.d.ts +2 -2
  82. package/dist/references.d.ts.map +1 -1
  83. package/dist/references.js +1 -1
  84. package/dist/refuse.d.ts +1 -0
  85. package/dist/refuse.d.ts.map +1 -1
  86. package/dist/refuse.js +1 -0
  87. package/dist/reserved.d.ts +1 -0
  88. package/dist/reserved.d.ts.map +1 -1
  89. package/dist/reserved.js +2 -1
  90. package/dist/room-types.d.ts +7 -0
  91. package/dist/room-types.d.ts.map +1 -0
  92. package/dist/room-types.js +136 -0
  93. package/dist/schema.d.ts +1 -3
  94. package/dist/schema.d.ts.map +1 -1
  95. package/dist/schema.js +9 -73
  96. package/dist/types.d.ts +15 -22
  97. package/dist/types.d.ts.map +1 -1
  98. package/dist/validate.d.ts +10 -5
  99. package/dist/validate.d.ts.map +1 -1
  100. package/dist/validate.js +150 -184
  101. package/dist/yaml.d.ts +4 -4
  102. package/dist/yaml.d.ts.map +1 -1
  103. package/dist/yaml.js +5 -12
  104. package/fixtures/README.md +49 -24
  105. package/fixtures/cases/absent-link-dangles/library/item.md +1 -1
  106. package/fixtures/cases/absent-link-dangles/schema.yaml +2 -3
  107. package/fixtures/cases/absent-optional-field/library/companies/acme.md +1 -1
  108. package/fixtures/cases/absent-optional-field/library/deals/lead.md +3 -3
  109. package/fixtures/cases/absent-optional-field/schema.yaml +10 -11
  110. package/fixtures/cases/absolute-link/library/item.md +1 -1
  111. package/fixtures/cases/absolute-link/schema.yaml +2 -3
  112. package/fixtures/cases/attachment-reference-any-file/library/companies/acme.md +1 -1
  113. package/fixtures/cases/attachment-reference-any-file/library/deals/renewal.md +13 -10
  114. package/fixtures/cases/attachment-reference-any-file/library/places/depot.md +1 -1
  115. package/fixtures/cases/attachment-reference-any-file/library/products/seats.md +1 -1
  116. package/fixtures/cases/attachment-reference-any-file/library/products/support.md +1 -1
  117. package/fixtures/cases/attachment-reference-dangles/library/companies/acme.md +1 -1
  118. package/fixtures/cases/attachment-reference-dangles/library/deals/renewal.md +13 -10
  119. package/fixtures/cases/attachment-reference-dangles/library/places/depot.md +1 -1
  120. package/fixtures/cases/attachment-reference-dangles/library/products/seats.md +1 -1
  121. package/fixtures/cases/attachment-reference-dangles/library/products/support.md +1 -1
  122. package/fixtures/cases/attachment-reference-outside/expected.json +2 -1
  123. package/fixtures/cases/attachment-reference-outside/library/companies/acme.md +1 -1
  124. package/fixtures/cases/attachment-reference-outside/library/deals/renewal.md +13 -10
  125. package/fixtures/cases/attachment-reference-outside/library/places/depot.md +1 -1
  126. package/fixtures/cases/attachment-reference-outside/library/products/seats.md +1 -1
  127. package/fixtures/cases/attachment-reference-outside/library/products/support.md +1 -1
  128. package/fixtures/cases/binary-any-reference/expected.json +2 -1
  129. package/fixtures/cases/binary-any-reference/library/notes/draft.md +1 -1
  130. package/fixtures/cases/binary-prototype-reference/expected.json +2 -1
  131. package/fixtures/cases/binary-prototype-reference/library/notes/draft.md +1 -1
  132. package/fixtures/cases/binary-typed-reference/expected.json +2 -1
  133. package/fixtures/cases/binary-typed-reference/library/notes/draft.md +1 -1
  134. package/fixtures/cases/boolean-field/expected.json +2 -1
  135. package/fixtures/cases/boolean-field/library/companies/acme.md +1 -1
  136. package/fixtures/cases/boolean-field/library/deals/renewal.md +49 -24
  137. package/fixtures/cases/boolean-field/schema.yaml +10 -11
  138. package/fixtures/cases/bracketed-link-definition/library/item.md +1 -1
  139. package/fixtures/cases/bracketed-link-definition/schema.yaml +2 -3
  140. package/fixtures/cases/closed-nested-object/expected.json +2 -1
  141. package/fixtures/cases/closed-nested-object/library/companies/acme.md +1 -1
  142. package/fixtures/cases/closed-nested-object/library/deals/renewal.md +50 -25
  143. package/fixtures/cases/closed-nested-object/schema.yaml +10 -11
  144. package/fixtures/cases/composed-root-reference/library/a.md +2 -2
  145. package/fixtures/cases/{conditional-section → conditional-long-text}/expected.json +3 -2
  146. package/fixtures/cases/{conditional-section → conditional-long-text}/library/questions/hosting.md +2 -2
  147. package/fixtures/cases/{conditional-section → conditional-long-text}/library/questions/payments.md +2 -2
  148. package/fixtures/cases/conditional-long-text/schema.yaml +13 -0
  149. package/fixtures/cases/cross-room-link/library/clients/acme.md +1 -1
  150. package/fixtures/cases/cross-room-reference/library/clients/acme.md +4 -4
  151. package/fixtures/cases/cross-room-reference/schema.yaml +1 -2
  152. package/fixtures/cases/date-time-format/expected.json +2 -1
  153. package/fixtures/cases/date-time-format/library/companies/acme.md +1 -1
  154. package/fixtures/cases/date-time-format/library/deals/renewal.md +49 -24
  155. package/fixtures/cases/date-time-format/schema.yaml +10 -11
  156. package/fixtures/cases/default-unfilled/library/companies/acme.md +1 -1
  157. package/fixtures/cases/default-unfilled/library/deals/renewal.md +47 -22
  158. package/fixtures/cases/default-unfilled/schema.yaml +10 -11
  159. package/fixtures/cases/defs-pattern/expected.json +2 -1
  160. package/fixtures/cases/defs-pattern/library/companies/acme.md +1 -1
  161. package/fixtures/cases/defs-pattern/library/deals/renewal.md +49 -24
  162. package/fixtures/cases/defs-pattern/schema.yaml +10 -11
  163. package/fixtures/cases/dependent-rule/library/companies/acme.md +1 -1
  164. package/fixtures/cases/dependent-rule/library/deals/renewal.md +48 -23
  165. package/fixtures/cases/dependent-rule/schema.yaml +10 -11
  166. package/fixtures/cases/duplicate-link-definition/library/item.md +1 -1
  167. package/fixtures/cases/duplicate-link-definition/schema.yaml +2 -3
  168. package/fixtures/cases/email-format/expected.json +2 -1
  169. package/fixtures/cases/email-format/library/companies/acme.md +1 -1
  170. package/fixtures/cases/email-format/library/deals/renewal.md +49 -24
  171. package/fixtures/cases/email-format/schema.yaml +10 -11
  172. package/fixtures/cases/equal-labels/expected.json +5 -0
  173. package/fixtures/cases/equal-labels/schema.yaml +4 -0
  174. package/fixtures/cases/fenced-link-definition/library/item.md +1 -1
  175. package/fixtures/cases/fenced-link-definition/schema.yaml +2 -3
  176. package/fixtures/cases/field-enum/expected.json +2 -1
  177. package/fixtures/cases/field-enum/library/item.md +2 -2
  178. package/fixtures/cases/field-enum/schema.yaml +3 -4
  179. package/fixtures/cases/integer-field/expected.json +2 -1
  180. package/fixtures/cases/integer-field/library/companies/acme.md +1 -1
  181. package/fixtures/cases/integer-field/library/deals/renewal.md +49 -24
  182. package/fixtures/cases/integer-field/schema.yaml +10 -11
  183. package/fixtures/cases/json-schema-constructs/library/companies/acme.md +1 -1
  184. package/fixtures/cases/json-schema-constructs/library/deals/renewal.md +49 -24
  185. package/fixtures/cases/json-schema-constructs/schema.yaml +10 -11
  186. package/fixtures/cases/labels-in-the-rooms-language/library/deals/atlas.md +7 -0
  187. package/fixtures/cases/labels-in-the-rooms-language/schema.yaml +9 -0
  188. package/fixtures/cases/lazy-list-item/expected.json +3 -0
  189. package/fixtures/cases/lazy-list-item/library/item.md +10 -0
  190. package/fixtures/cases/lazy-list-item/schema.yaml +3 -0
  191. package/fixtures/cases/link-into-a-reserved-name/library/notes/a.md +1 -1
  192. package/fixtures/cases/list-item-enum/expected.json +7 -0
  193. package/fixtures/cases/list-item-enum/library/task.md +7 -0
  194. package/fixtures/cases/list-item-enum/schema.yaml +3 -0
  195. package/fixtures/cases/list-item-kind/expected.json +7 -0
  196. package/fixtures/cases/list-item-kind/library/task.md +6 -0
  197. package/fixtures/cases/list-item-kind/schema.yaml +3 -0
  198. package/fixtures/cases/list-items/expected.json +1 -0
  199. package/fixtures/cases/list-items/library/page.md +26 -0
  200. package/fixtures/cases/list-items/schema.yaml +10 -0
  201. package/fixtures/cases/list-of-objects-closed/expected.json +2 -1
  202. package/fixtures/cases/list-of-objects-closed/library/companies/acme.md +1 -1
  203. package/fixtures/cases/list-of-objects-closed/library/deals/renewal.md +49 -25
  204. package/fixtures/cases/list-of-objects-closed/schema.yaml +10 -11
  205. package/fixtures/cases/list-of-objects-item/expected.json +2 -1
  206. package/fixtures/cases/list-of-objects-item/library/companies/acme.md +1 -1
  207. package/fixtures/cases/list-of-objects-item/library/deals/renewal.md +49 -24
  208. package/fixtures/cases/list-of-objects-item/schema.yaml +10 -11
  209. package/fixtures/cases/list-of-objects-reference/expected.json +2 -1
  210. package/fixtures/cases/list-of-objects-reference/library/companies/acme.md +1 -1
  211. package/fixtures/cases/list-of-objects-reference/library/deals/renewal.md +12 -9
  212. package/fixtures/cases/list-of-objects-reference/library/places/depot.md +1 -1
  213. package/fixtures/cases/list-of-objects-reference/library/products/seats.md +1 -1
  214. package/fixtures/cases/list-of-objects-reference/library/products/support.md +1 -1
  215. package/fixtures/cases/list-reference-path/expected.json +7 -0
  216. package/fixtures/cases/list-reference-path/library/page.md +5 -0
  217. package/fixtures/cases/list-reference-path/schema.yaml +3 -0
  218. package/fixtures/cases/list-reference-type/expected.json +7 -0
  219. package/fixtures/cases/list-reference-type/library/page.md +6 -0
  220. package/fixtures/cases/list-reference-type/schema.yaml +3 -0
  221. package/fixtures/cases/list-size/expected.json +2 -1
  222. package/fixtures/cases/list-size/library/companies/acme.md +1 -1
  223. package/fixtures/cases/list-size/library/deals/renewal.md +51 -24
  224. package/fixtures/cases/list-size/schema.yaml +10 -11
  225. package/fixtures/cases/long-value-past-six-levels/expected.json +5 -0
  226. package/fixtures/cases/long-value-past-six-levels/schema.yaml +15 -0
  227. package/fixtures/cases/malformed-list/context.json +1 -0
  228. package/fixtures/cases/malformed-list/expected.json +7 -0
  229. package/fixtures/cases/{structured-section → malformed-list}/library/item.md +1 -1
  230. package/fixtures/cases/malformed-list/schema.yaml +6 -0
  231. package/fixtures/cases/member-document/library/people/ana.md +2 -2
  232. package/fixtures/cases/member-on-another-type/library/note.md +1 -1
  233. package/fixtures/cases/missing-required-field/library/item.md +1 -1
  234. package/fixtures/cases/missing-required-field/schema.yaml +3 -4
  235. package/fixtures/cases/misspelled-key/expected.json +2 -1
  236. package/fixtures/cases/misspelled-key/library/companies/acme.md +1 -1
  237. package/fixtures/cases/misspelled-key/library/deals/renewal.md +50 -25
  238. package/fixtures/cases/misspelled-key/schema.yaml +10 -11
  239. package/fixtures/cases/name-not-a-string/context.json +1 -0
  240. package/fixtures/cases/name-not-a-string/expected.json +5 -0
  241. package/fixtures/cases/name-not-a-string/schema.yaml +5 -0
  242. package/fixtures/cases/nested-defs/expected.json +2 -1
  243. package/fixtures/cases/nested-defs/library/deal.md +3 -3
  244. package/fixtures/cases/nested-object-reference/expected.json +2 -1
  245. package/fixtures/cases/nested-object-reference/library/companies/acme.md +1 -1
  246. package/fixtures/cases/nested-object-reference/library/deals/renewal.md +12 -9
  247. package/fixtures/cases/nested-object-reference/library/places/depot.md +1 -1
  248. package/fixtures/cases/nested-object-reference/library/products/seats.md +1 -1
  249. package/fixtures/cases/nested-object-reference/library/products/support.md +1 -1
  250. package/fixtures/cases/nested-reference/library/companies/acme.md +1 -1
  251. package/fixtures/cases/nested-reference/library/deals/renewal.md +13 -10
  252. package/fixtures/cases/nested-reference/library/places/depot.md +1 -1
  253. package/fixtures/cases/nested-reference/library/products/seats.md +1 -1
  254. package/fixtures/cases/nested-reference/library/products/support.md +1 -1
  255. package/fixtures/cases/nested-required-field/expected.json +2 -1
  256. package/fixtures/cases/nested-required-field/library/companies/acme.md +1 -1
  257. package/fixtures/cases/nested-required-field/library/deals/renewal.md +48 -23
  258. package/fixtures/cases/nested-required-field/schema.yaml +10 -11
  259. package/fixtures/cases/numeric-range/expected.json +2 -1
  260. package/fixtures/cases/numeric-range/library/companies/acme.md +1 -1
  261. package/fixtures/cases/numeric-range/library/deals/renewal.md +49 -24
  262. package/fixtures/cases/numeric-range/schema.yaml +10 -11
  263. package/fixtures/cases/one-key-two-labels/context.json +1 -0
  264. package/fixtures/cases/one-key-two-labels/expected.json +5 -0
  265. package/fixtures/cases/one-key-two-labels/schema.yaml +5 -0
  266. package/fixtures/cases/one-key-two-types/context.json +1 -0
  267. package/fixtures/cases/one-key-two-types/expected.json +5 -0
  268. package/fixtures/cases/one-key-two-types/schema.yaml +4 -0
  269. package/fixtures/cases/one-of-variant/expected.json +2 -1
  270. package/fixtures/cases/one-of-variant/library/companies/acme.md +1 -1
  271. package/fixtures/cases/one-of-variant/library/deals/renewal.md +49 -24
  272. package/fixtures/cases/one-of-variant/schema.yaml +10 -11
  273. package/fixtures/cases/other-room-reference/expected.json +2 -1
  274. package/fixtures/cases/other-room-reference/library/companies/acme.md +1 -1
  275. package/fixtures/cases/other-room-reference/library/deals/renewal.md +12 -9
  276. package/fixtures/cases/other-room-reference/library/places/depot.md +1 -1
  277. package/fixtures/cases/other-room-reference/library/products/seats.md +1 -1
  278. package/fixtures/cases/other-room-reference/library/products/support.md +1 -1
  279. package/fixtures/cases/prototype-field/expected.json +2 -1
  280. package/fixtures/cases/prototype-field/library/item.md +2 -2
  281. package/fixtures/cases/prototype-field/schema.yaml +2 -3
  282. package/fixtures/cases/reference-into-a-reserved-name/expected.json +2 -1
  283. package/fixtures/cases/reference-into-a-reserved-name/library/notes/a.md +1 -1
  284. package/fixtures/cases/referenced-missing-file/library/a.md +2 -2
  285. package/fixtures/cases/referenced-missing-file/library/b.md +2 -2
  286. package/fixtures/cases/referenced-missing-file/schema.yaml +3 -4
  287. package/fixtures/cases/sections-keyword-refused/context.json +1 -0
  288. package/fixtures/cases/sections-keyword-refused/expected.json +5 -0
  289. package/fixtures/cases/{structured-section → sections-keyword-refused}/schema.yaml +1 -2
  290. package/fixtures/cases/shortcut-reference-link/library/item.md +1 -1
  291. package/fixtures/cases/shortcut-reference-link/schema.yaml +2 -3
  292. package/fixtures/cases/string-length/expected.json +2 -1
  293. package/fixtures/cases/string-length/library/companies/acme.md +1 -1
  294. package/fixtures/cases/string-length/library/deals/renewal.md +49 -24
  295. package/fixtures/cases/string-length/schema.yaml +10 -11
  296. package/fixtures/cases/submission-keys/library/notes/visitor.md +2 -2
  297. package/fixtures/cases/text-field-kind/expected.json +1 -4
  298. package/fixtures/cases/text-field-kind/library/page.md +1 -1
  299. package/fixtures/cases/thematic-break-ends-the-values/context.json +1 -0
  300. package/fixtures/cases/thematic-break-ends-the-values/expected.json +1 -0
  301. package/fixtures/cases/thematic-break-ends-the-values/library/item.md +10 -0
  302. package/fixtures/cases/thematic-break-ends-the-values/schema.yaml +3 -0
  303. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/one.md +1 -1
  304. package/fixtures/cases/types-folder-content/library/types/task.md +1 -1
  305. package/fixtures/cases/undeclared-field/expected.json +2 -1
  306. package/fixtures/cases/undeclared-field/library/item.md +2 -2
  307. package/fixtures/cases/undeclared-field/schema.yaml +2 -3
  308. package/fixtures/cases/unevaluated-items-closed/expected.json +2 -1
  309. package/fixtures/cases/unevaluated-items-closed/library/trip.md +13 -3
  310. package/fixtures/cases/unnamed-typed-path-checks-its-fields/library/rooms/team/tasks/plan.md +2 -1
  311. package/fixtures/cases/unnamed-typed-path-names-a-type/library/rooms/team/tasks/plan.md +3 -2
  312. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/tasks/plan.md +3 -2
  313. package/fixtures/cases/unnamed-typed-path-without-a-body/library/rooms/team/tasks/plan.md +2 -2
  314. package/fixtures/cases/unresolved-link/library/item.md +1 -1
  315. package/fixtures/cases/unresolved-link/schema.yaml +2 -3
  316. package/fixtures/cases/valid-typed-document/library/people/ada.md +1 -1
  317. package/fixtures/cases/valid-typed-document/library/tasks/one.md +11 -11
  318. package/fixtures/cases/valid-typed-document/schema.yaml +5 -6
  319. package/fixtures/division.json +86 -41
  320. package/fixtures/forms.json +347 -0
  321. package/fixtures/preamble.json +29 -8
  322. package/fixtures/projection.json +121 -18
  323. package/fixtures/queries.json +449 -3
  324. package/package.json +10 -1
  325. package/dist/blocks.d.ts +0 -11
  326. package/dist/blocks.d.ts.map +0 -1
  327. package/dist/blocks.js +0 -91
  328. package/dist/condition.d.ts +0 -179
  329. package/dist/condition.d.ts.map +0 -1
  330. package/dist/condition.js +0 -598
  331. package/dist/links.d.ts +0 -29
  332. package/dist/links.d.ts.map +0 -1
  333. package/dist/links.js +0 -831
  334. package/dist/profile.d.ts +0 -6
  335. package/dist/profile.d.ts.map +0 -1
  336. package/dist/profile.js +0 -5
  337. package/dist/sections.d.ts +0 -11
  338. package/dist/sections.d.ts.map +0 -1
  339. package/dist/sections.js +0 -57
  340. package/fixtures/cases/conditional-section/schema.yaml +0 -14
  341. package/fixtures/cases/missing-section-item-kind/expected.json +0 -5
  342. package/fixtures/cases/missing-section-item-kind/schema.yaml +0 -6
  343. package/fixtures/cases/null-refused/expected.json +0 -6
  344. package/fixtures/cases/null-refused/library/companies/acme.md +0 -4
  345. package/fixtures/cases/null-refused/library/deals/renewal.md +0 -31
  346. package/fixtures/cases/null-refused/schema.yaml +0 -56
  347. package/fixtures/cases/open-map-value/expected.json +0 -6
  348. package/fixtures/cases/open-map-value/library/companies/acme.md +0 -4
  349. package/fixtures/cases/open-map-value/library/deals/renewal.md +0 -31
  350. package/fixtures/cases/open-map-value/schema.yaml +0 -56
  351. package/fixtures/cases/section-item-enum/expected.json +0 -6
  352. package/fixtures/cases/section-item-enum/library/task.md +0 -8
  353. package/fixtures/cases/section-item-enum/schema.yaml +0 -3
  354. package/fixtures/cases/section-item-kind/expected.json +0 -6
  355. package/fixtures/cases/section-item-kind/library/task.md +0 -8
  356. package/fixtures/cases/section-item-kind/schema.yaml +0 -3
  357. package/fixtures/cases/section-items/library/page.md +0 -42
  358. package/fixtures/cases/section-items/schema.yaml +0 -10
  359. package/fixtures/cases/section-reference-path/expected.json +0 -6
  360. package/fixtures/cases/section-reference-path/library/page.md +0 -7
  361. package/fixtures/cases/section-reference-path/schema.yaml +0 -3
  362. package/fixtures/cases/section-reference-type/expected.json +0 -6
  363. package/fixtures/cases/section-reference-type/library/page.md +0 -7
  364. package/fixtures/cases/section-reference-type/schema.yaml +0 -3
  365. package/fixtures/cases/structured-section/expected.json +0 -6
  366. /package/fixtures/cases/{conditional-section → conditional-long-text}/context.json +0 -0
  367. /package/fixtures/cases/{missing-section-item-kind → equal-labels}/context.json +0 -0
  368. /package/fixtures/cases/{null-refused → labels-in-the-rooms-language}/context.json +0 -0
  369. /package/fixtures/cases/{section-items → labels-in-the-rooms-language}/expected.json +0 -0
  370. /package/fixtures/cases/{open-map-value → lazy-list-item}/context.json +0 -0
  371. /package/fixtures/cases/{section-item-enum → list-item-enum}/context.json +0 -0
  372. /package/fixtures/cases/{section-item-kind → list-item-kind}/context.json +0 -0
  373. /package/fixtures/cases/{section-items → list-items}/context.json +0 -0
  374. /package/fixtures/cases/{section-items → list-items}/library/other.md +0 -0
  375. /package/fixtures/cases/{section-reference-path → list-reference-path}/context.json +0 -0
  376. /package/fixtures/cases/{section-reference-path → list-reference-path}/library/other.md +0 -0
  377. /package/fixtures/cases/{section-reference-type → list-reference-type}/context.json +0 -0
  378. /package/fixtures/cases/{section-reference-type → list-reference-type}/library/note.md +0 -0
  379. /package/fixtures/cases/{structured-section → long-value-past-six-levels}/context.json +0 -0
@@ -1,10 +1,10 @@
1
1
  {
2
- "schema": "task:\n type: object\n properties:\n name: { type: string }\n status: { enum: [open, done] }\n required: [status]\n sections:\n Description: { kind: text, required: true }\n Acceptance: { kind: list, items: { type: string, reference: person } }\nperson: {}\n",
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
3
  "cases": [
4
4
  {
5
5
  "name": "a Document whose whole input fits the bound is one Span carrying its projection",
6
6
  "file": "tasks/one.md",
7
- "source": "---\ntype: task\nname: Ship the release\nstatus: open\n---\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n\n## Acceptance\n\n- people/ana.md\n",
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
8
  "documentTargets": [],
9
9
  "definition": "task",
10
10
  "bound": 4096,
@@ -12,16 +12,16 @@
12
12
  "ok": true,
13
13
  "spans": [
14
14
  {
15
- "text": "Ship the release\n\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n\n",
16
- "source": "Ship the release\nstatus: open\n---\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n\n"
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
17
  }
18
18
  ]
19
19
  }
20
20
  },
21
21
  {
22
- "name": "an input over the bound descends to whole heading nodes and packs adjacent siblings",
22
+ "name": "an input over the bound packs adjacent values, ranges and heading nodes into whole units",
23
23
  "file": "tasks/one.md",
24
- "source": "---\ntype: task\nname: Ship the release\nstatus: open\n---\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n\n## Notes\n\nNotes prose.\n\n## Acceptance\n\n- people/ana.md\n",
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
25
  "documentTargets": [],
26
26
  "definition": "task",
27
27
  "bound": 45,
@@ -29,16 +29,16 @@
29
29
  "ok": true,
30
30
  "spans": [
31
31
  {
32
- "text": "Ship the release\n\n\nPreamble prose.\n\n",
33
- "source": "Ship the release\nstatus: open\n---\n\nPreamble prose.\n\n"
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
34
  },
35
35
  {
36
- "text": "## Description\n\nBody of the description.\n\n",
37
- "source": "## Description\n\nBody of the description.\n\n"
36
+ "text": "Body of the description.\n\n",
37
+ "source": "Body of the description.\n\n"
38
38
  },
39
39
  {
40
- "text": "## Notes\n\nNotes prose.\n\n",
41
- "source": "## Notes\n\nNotes prose.\n\n"
40
+ "text": "## Notes\n\nNotes prose.\n",
41
+ "source": "## Notes\n\nNotes prose.\n"
42
42
  }
43
43
  ]
44
44
  }
@@ -46,7 +46,7 @@
46
46
  {
47
47
  "name": "a heading node over the bound divides into adjacent blocks carrying its own heading",
48
48
  "file": "tasks/one.md",
49
- "source": "---\ntype: task\nname: Task\nstatus: open\n---\n\n## Overview\n\nFirst paragraph of the overview.\n\nSecond paragraph of the overview.\n\n## Notes\n\nShort note.\n",
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
50
  "documentTargets": [],
51
51
  "definition": "task",
52
52
  "bound": 50,
@@ -54,8 +54,8 @@
54
54
  "ok": true,
55
55
  "spans": [
56
56
  {
57
- "text": "Task\n\n\n",
58
- "source": "Task\nstatus: open\n---\n\n"
57
+ "text": "Task\n\n",
58
+ "source": "Task"
59
59
  },
60
60
  {
61
61
  "text": "## Overview\n\nFirst paragraph of the overview.\n\n",
@@ -75,7 +75,7 @@
75
75
  {
76
76
  "name": "a node continuation and the next whole sibling stay in their own Spans",
77
77
  "file": "tasks/one.md",
78
- "source": "---\ntype: task\nname: Task\nstatus: open\n---\n\n## Overview\n\nFirst paragraph of the overview.\n\nSecond paragraph of the overview.\n\n## Notes\n\nShort note.\n",
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
79
  "documentTargets": [],
80
80
  "definition": "task",
81
81
  "bound": 75,
@@ -83,8 +83,8 @@
83
83
  "ok": true,
84
84
  "spans": [
85
85
  {
86
- "text": "Task\n\n\n",
87
- "source": "Task\nstatus: open\n---\n\n"
86
+ "text": "Task\n\n",
87
+ "source": "Task"
88
88
  },
89
89
  {
90
90
  "text": "## Overview\n\nFirst paragraph of the overview.\n\n",
@@ -104,7 +104,7 @@
104
104
  {
105
105
  "name": "a continuation Span carries its own node heading and never an ancestor heading",
106
106
  "file": "tasks/one.md",
107
- "source": "---\ntype: task\nname: Task\nstatus: open\n---\n\n## Overview\n\nIntro line.\n\n### Detail\n\nDetail paragraph one.\n\nDetail paragraph two.\n",
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
108
  "documentTargets": [],
109
109
  "definition": "task",
110
110
  "bound": 40,
@@ -112,8 +112,8 @@
112
112
  "ok": true,
113
113
  "spans": [
114
114
  {
115
- "text": "Task\n\n\n",
116
- "source": "Task\nstatus: open\n---\n\n"
115
+ "text": "Task\n\n",
116
+ "source": "Task"
117
117
  },
118
118
  {
119
119
  "text": "## Overview\n\nIntro line.\n\n",
@@ -133,7 +133,7 @@
133
133
  {
134
134
  "name": "a block over the bound divides into sentences that repeat their predecessor",
135
135
  "file": "tasks/one.md",
136
- "source": "---\ntype: task\nname: Task\nstatus: open\n---\n\n## Overview\n\nOne. Two. Three. Four.\n",
136
+ "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nOne. Two. Three. Four.\n",
137
137
  "documentTargets": [],
138
138
  "definition": "task",
139
139
  "bound": 30,
@@ -141,8 +141,8 @@
141
141
  "ok": true,
142
142
  "spans": [
143
143
  {
144
- "text": "Task\n\n\n",
145
- "source": "Task\nstatus: open\n---\n\n"
144
+ "text": "Task\n\n",
145
+ "source": "Task"
146
146
  },
147
147
  {
148
148
  "text": "## Overview\n\nOne. Two. Three. ",
@@ -158,7 +158,7 @@
158
158
  {
159
159
  "name": "a single sentence over the bound divides at a bound cut inside it",
160
160
  "file": "tasks/one.md",
161
- "source": "---\ntype: task\nname: Task\nstatus: open\n---\n\n## Overview\n\naaaa bbbb cccc dddd eeee\n",
161
+ "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\naaaa bbbb cccc dddd eeee\n",
162
162
  "documentTargets": [],
163
163
  "definition": "task",
164
164
  "bound": 20,
@@ -166,8 +166,8 @@
166
166
  "ok": true,
167
167
  "spans": [
168
168
  {
169
- "text": "Task\n\n\n",
170
- "source": "Task\nstatus: open\n---\n\n"
169
+ "text": "Task\n\n",
170
+ "source": "Task"
171
171
  },
172
172
  {
173
173
  "text": "## Overview\n\naaaa",
@@ -241,7 +241,7 @@
241
241
  {
242
242
  "name": "an internal link embeds its label and addresses the destination the author wrote",
243
243
  "file": "tasks/one.md",
244
- "source": "---\ntype: task\nname: Task\nstatus: open\n---\n\n## Overview\n\nRead [the plan](../plans/q3.md) before starting.\n\n## Notes\n\nShort note.\n",
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
245
  "documentTargets": [
246
246
  "plans/q3.md"
247
247
  ],
@@ -251,8 +251,8 @@
251
251
  "ok": true,
252
252
  "spans": [
253
253
  {
254
- "text": "Task\n\n\n",
255
- "source": "Task\nstatus: open\n---\n\n"
254
+ "text": "Task\n\n",
255
+ "source": "Task"
256
256
  },
257
257
  {
258
258
  "text": "## Overview\n\nRead the plan before starting.\n\n",
@@ -266,9 +266,9 @@
266
266
  }
267
267
  },
268
268
  {
269
- "name": "a declared structured section stays outside the text and inside the extent",
269
+ "name": "a value list that holds no prose stays outside the text and inside the extent",
270
270
  "file": "tasks/one.md",
271
- "source": "---\ntype: task\nname: Task\nstatus: open\n---\n\nPreamble prose.\n\n## Acceptance\n\n- people/ana.md\n\n## Notes\n\nShort note.\n",
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
272
  "documentTargets": [],
273
273
  "definition": "task",
274
274
  "bound": 4096,
@@ -276,8 +276,8 @@
276
276
  "ok": true,
277
277
  "spans": [
278
278
  {
279
- "text": "Task\n\n\nPreamble prose.\n\n## Notes\n\nShort note.\n",
280
- "source": "Task\nstatus: open\n---\n\nPreamble prose.\n\n## Acceptance\n\n- people/ana.md\n\n## Notes\n\nShort note.\n"
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
281
  }
282
282
  ]
283
283
  }
@@ -285,7 +285,7 @@
285
285
  {
286
286
  "name": "a Document that declares a type the caller supplies no definition for is refused",
287
287
  "file": "tasks/one.md",
288
- "source": "---\ntype: task\nname: Ship the release\nstatus: open\n---\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n\n## Acceptance\n\n- people/ana.md\n",
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
289
  "documentTargets": [],
290
290
  "definition": null,
291
291
  "bound": 4096,
@@ -293,8 +293,7 @@
293
293
  "ok": false,
294
294
  "refusal": {
295
295
  "file": "tasks/one.md",
296
- "rule": "unknown-type",
297
- "location": "type"
296
+ "rule": "unknown-type"
298
297
  }
299
298
  }
300
299
  },
@@ -314,9 +313,9 @@
314
313
  }
315
314
  },
316
315
  {
317
- "name": "a free-text value the author quoted embeds bare and addresses the quotes it was written with",
316
+ "name": "a free-text value written with an escape embeds bare and addresses the escape it was written with",
318
317
  "file": "tasks/one.md",
319
- "source": "---\ntype: task\nname: \"Ship: the release\"\nstatus: open\n---\n\nBody prose.\n",
318
+ "source": "---\ntype: task\n---\n# Ship: the release \\#\n\n- **status**: open\n\nBody prose.\n",
320
319
  "documentTargets": [],
321
320
  "definition": "task",
322
321
  "bound": 4096,
@@ -324,8 +323,8 @@
324
323
  "ok": true,
325
324
  "spans": [
326
325
  {
327
- "text": "Ship: the release\n\n\nBody prose.\n",
328
- "source": "\"Ship: the release\"\nstatus: open\n---\n\nBody prose.\n"
326
+ "text": "Ship: the release #\n\nBody prose.\n",
327
+ "source": "Ship: the release \\#\n\n- **status**: open\n\nBody prose.\n"
329
328
  }
330
329
  ]
331
330
  }
@@ -404,6 +403,52 @@
404
403
  }
405
404
  ]
406
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
+ }
407
452
  }
408
453
  ]
409
454
  }
@@ -0,0 +1,347 @@
1
+ {
2
+ "schema": "card:\n properties:\n name: { type: string, title: Name }\n status: { enum: [open, done], title: Status }\n count: { type: integer }\n done: { type: boolean, title: Done }\n owner: { type: string, reference: person, title: Owner }\n tags: { type: array, items: { type: string }, title: Tags }\n address:\n title: Address\n type: object\n properties:\n city: { type: string, title: City }\n zip: { type: string, title: ZIP }\n summary: { type: string, title: Summary }\n notes: { type: string, contentMediaType: text/markdown, title: Notes }\n lines:\n title: Lines\n type: array\n items:\n type: object\n properties:\n product: { type: string, title: Product }\n quantity: { type: integer, title: Quantity }\n gift: { type: boolean, title: Gift }\n steps:\n title: Steps\n type: array\n items:\n type: object\n properties:\n name: { type: string, title: Name }\n detail: { type: string, contentMediaType: text/markdown, title: Detail }\n values: { title: Values, type: object, additionalProperties: { type: string } }\n condition: { title: Condition, type: object, additionalProperties: true }\nperson:\n properties:\n name: { type: string, title: Name }\nmember-card:\n member_document: true\n properties:\n name: { type: string }\nmessage:\n properties:\n direction: { enum: [in, out], title: Direction }\n sent_at: { type: string, format: date-time, title: Sent at }\n",
3
+ "names": {
4
+ "../people/alice.md": "Alice"
5
+ },
6
+ "cases": [
7
+ {
8
+ "name": "every form, written in its one spelling",
9
+ "type": "card",
10
+ "source": "---\ntype: card\n---\n# Ship it\n\n- **Status**: open\n- **count**: 3\n- [x] Done\n- **Owner**: [Alice](../people/alice.md)\n- **Tags**:\n - core\n - docs\n- **Address**:\n - **City**: Paris\n - **ZIP**: 75001\n- **Summary**: One line.\n- **Values**:\n - **colour**: blue\n\n## Notes\n\nSome *notes* with [a link](../notes/more.md).\n\n### Detail of the notes\n\nKept under the notes.\n\n## Lines\n\n| Product | Quantity | Gift |\n| --- | --- | --- |\n| seats | 2 | [x] |\n| support | 1 | [ ] |\n\n## Steps\n\n### Draft\n\n#### Detail\n\nWrite it.\n\n### Review\n\n## Condition\n\n```json\n{\n \"changes\": {\n \"field\": \"/status\"\n },\n \"limit\": 3,\n \"flag\": true,\n \"none\": null\n}\n```\n",
11
+ "value": {
12
+ "type": "card",
13
+ "name": "Ship it",
14
+ "status": "open",
15
+ "count": 3,
16
+ "done": true,
17
+ "owner": "../people/alice.md",
18
+ "tags": [
19
+ "core",
20
+ "docs"
21
+ ],
22
+ "address": {
23
+ "city": "Paris",
24
+ "zip": "75001"
25
+ },
26
+ "summary": "One line.",
27
+ "notes": "Some *notes* with [a link](../notes/more.md).\n\n### Detail of the notes\n\nKept under the notes.",
28
+ "lines": [
29
+ {
30
+ "product": "seats",
31
+ "quantity": 2,
32
+ "gift": true
33
+ },
34
+ {
35
+ "product": "support",
36
+ "quantity": 1,
37
+ "gift": false
38
+ }
39
+ ],
40
+ "steps": [
41
+ {
42
+ "name": "Draft",
43
+ "detail": "Write it."
44
+ },
45
+ {
46
+ "name": "Review"
47
+ }
48
+ ],
49
+ "values": {
50
+ "colour": "blue"
51
+ },
52
+ "condition": {
53
+ "changes": {
54
+ "field": "/status"
55
+ },
56
+ "limit": 3,
57
+ "flag": true,
58
+ "none": null
59
+ }
60
+ },
61
+ "written": true,
62
+ "ranges": {
63
+ "/name": "# Ship it\n",
64
+ "/status": "- **Status**: open\n",
65
+ "/done": "- [x] Done\n",
66
+ "/address": "- **Address**:\n - **City**: Paris\n - **ZIP**: 75001\n",
67
+ "/address/zip": " - **ZIP**: 75001\n",
68
+ "/lines/1/quantity": "1",
69
+ "/condition": "## Condition\n\n```json\n{\n \"changes\": {\n \"field\": \"/status\"\n },\n \"limit\": 3,\n \"flag\": true,\n \"none\": null\n}\n```\n"
70
+ },
71
+ "after": "\n## Notes"
72
+ },
73
+ {
74
+ "name": "the bullet, bold and colon spellings GitHub reads alike, and a setext name, read alike",
75
+ "type": "card",
76
+ "source": "---\ntype: card\n---\nShip it\n=======\n\n* __Status:__ open\n* **count** : 3\n* [X] Done\n* **Owner**:[Alice](../people/alice.md)\n* **Tags**:\n + core\n + docs\n* **Address**:\n * __City__: Paris\n * **ZIP:** 75001\n* **Summary**:One line.\n",
77
+ "value": {
78
+ "type": "card",
79
+ "name": "Ship it",
80
+ "status": "open",
81
+ "count": 3,
82
+ "done": true,
83
+ "owner": "../people/alice.md",
84
+ "tags": [
85
+ "core",
86
+ "docs"
87
+ ],
88
+ "address": {
89
+ "city": "Paris",
90
+ "zip": "75001"
91
+ },
92
+ "summary": "One line."
93
+ }
94
+ },
95
+ {
96
+ "name": "free text around the values, a field heading among free sections and a thematic break",
97
+ "type": "card",
98
+ "source": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n\nAn opening paragraph, mine.\n\n## Log\n\n- 2026-11-01 started\n\n## Notes\n\nField text.\n\n## Later\n\nMore of mine.\n\n---\n\n- **Status**: done\n\n## Notes\n\nafter the break\n",
99
+ "value": {
100
+ "type": "card",
101
+ "name": "Plan",
102
+ "status": "open",
103
+ "notes": "Field text."
104
+ },
105
+ "preamble": "An opening paragraph, mine.\n\n",
106
+ "sections": {
107
+ "Log": "\n- 2026-11-01 started\n\n",
108
+ "Later": "\nMore of mine.\n\n",
109
+ "Notes": "\nafter the break\n"
110
+ },
111
+ "text": "An opening paragraph, mine.\n\n## Log\n\n- 2026-11-01 started\n\n## Later\n\nMore of mine.\n\n\n- **Status**: done\n\n## Notes\n\nafter the break\n"
112
+ },
113
+ {
114
+ "name": "House's keys read from the frontmatter as fields of the value",
115
+ "type": "member-card",
116
+ "source": "---\ntype: member-card\nmember: ada@example.com\nsite: shop\nsubmitted: 2026-11-05T10:00:00Z\n---\n# Ada\n",
117
+ "value": {
118
+ "type": "member-card",
119
+ "member": "ada@example.com",
120
+ "site": "shop",
121
+ "submitted": "2026-11-05T10:00:00Z",
122
+ "name": "Ada"
123
+ }
124
+ },
125
+ {
126
+ "name": "a message whose text, after the break, begins with a value line and holds a label's heading",
127
+ "type": "message",
128
+ "source": "---\ntype: message\n---\n- **Direction**: in\n- **Sent at**: 2026-11-05T10:00:00Z\n\n---\n\n- **Direction**: out\n\n## Sent at\n\nTomorrow.\n",
129
+ "value": {
130
+ "type": "message",
131
+ "direction": "in",
132
+ "sent_at": "2026-11-05T10:00:00Z"
133
+ },
134
+ "text": "\n- **Direction**: out\n\n## Sent at\n\nTomorrow.\n",
135
+ "written": true
136
+ },
137
+ {
138
+ "name": "values that would start block syntax, a closing hash and a pipe in a cell, escaped",
139
+ "type": "card",
140
+ "source": "---\ntype: card\n---\n# C \\#\n\n- **Tags**:\n - \\# hash\n - \\- dash\n - \\+ plus\n - 1\\. one\n - 2\\) two\n - \\[x] box\n - \\> quote\n - \\--- rule\n - \\=== under\n - \\<b>kept</b>\n - back\\slash\n\n## Lines\n\n| Product | Quantity |\n| --- | --- |\n| a \\| b | 1 |\n",
141
+ "value": {
142
+ "type": "card",
143
+ "name": "C #",
144
+ "tags": [
145
+ "# hash",
146
+ "- dash",
147
+ "+ plus",
148
+ "1. one",
149
+ "2) two",
150
+ "[x] box",
151
+ "> quote",
152
+ "--- rule",
153
+ "=== under",
154
+ "<b>kept</b>",
155
+ "back\\slash"
156
+ ],
157
+ "lines": [
158
+ {
159
+ "product": "a | b",
160
+ "quantity": 1
161
+ }
162
+ ]
163
+ },
164
+ "written": true,
165
+ "rendered": {
166
+ "/tags": [
167
+ "# hash",
168
+ "- dash",
169
+ "+ plus",
170
+ "1. one",
171
+ "2) two",
172
+ "[x] box",
173
+ "> quote",
174
+ "--- rule",
175
+ "=== under",
176
+ "<b>kept</b>",
177
+ "back\\slash"
178
+ ],
179
+ "/name": "C #",
180
+ "/lines/0/product": "a | b"
181
+ }
182
+ }
183
+ ],
184
+ "refused": [
185
+ {
186
+ "name": "a value written twice",
187
+ "type": "card",
188
+ "source": "---\ntype: card\n---\n- **Status**: open\n- **Status**: done\n",
189
+ "refusal": {
190
+ "rule": "repeated-value",
191
+ "location": "/status",
192
+ "line": 5
193
+ }
194
+ },
195
+ {
196
+ "name": "a value written as a line and under its heading",
197
+ "type": "card",
198
+ "source": "---\ntype: card\n---\n- **Summary**: one\n\n## Summary\n\ntwo\n",
199
+ "refusal": {
200
+ "rule": "repeated-value",
201
+ "location": "/summary",
202
+ "line": 6
203
+ }
204
+ },
205
+ {
206
+ "name": "a value line naming no field of a closed object",
207
+ "type": "card",
208
+ "source": "---\ntype: card\n---\n- **Status**: open\n- **Stauts**: done\n",
209
+ "refusal": {
210
+ "rule": "unknown-label",
211
+ "location": "/Stauts",
212
+ "line": 5
213
+ }
214
+ },
215
+ {
216
+ "name": "a member line naming no field of its group",
217
+ "type": "card",
218
+ "source": "---\ntype: card\n---\n- **Address**:\n - **Town**: Paris\n",
219
+ "refusal": {
220
+ "rule": "unknown-label",
221
+ "location": "/address/Town",
222
+ "line": 5
223
+ }
224
+ },
225
+ {
226
+ "name": "a number that does not read",
227
+ "type": "card",
228
+ "source": "---\ntype: card\n---\n# Plan\n\n- **count**: three\n",
229
+ "refusal": {
230
+ "rule": "malformed-value",
231
+ "location": "/count",
232
+ "line": 6
233
+ }
234
+ },
235
+ {
236
+ "name": "yes or no written as a word, not a checkbox",
237
+ "type": "card",
238
+ "source": "---\ntype: card\n---\n- **Done**: yes\n",
239
+ "refusal": {
240
+ "rule": "malformed-value",
241
+ "location": "/done",
242
+ "line": 4
243
+ }
244
+ },
245
+ {
246
+ "name": "a reference written as a bare path",
247
+ "type": "card",
248
+ "source": "---\ntype: card\n---\n- **Owner**: ../people/alice.md\n",
249
+ "refusal": {
250
+ "rule": "malformed-value",
251
+ "location": "/owner",
252
+ "line": 4
253
+ }
254
+ },
255
+ {
256
+ "name": "a value left in the frontmatter",
257
+ "type": "card",
258
+ "source": "---\ntype: card\nstatus: open\n---\n# Plan\n",
259
+ "refusal": {
260
+ "rule": "malformed-value",
261
+ "location": "/status",
262
+ "line": 3
263
+ }
264
+ },
265
+ {
266
+ "name": "a json block that does not parse",
267
+ "type": "card",
268
+ "source": "---\ntype: card\n---\n## Condition\n\n```json\n{\"changes\":\n```\n",
269
+ "refusal": {
270
+ "rule": "malformed-value",
271
+ "location": "/condition",
272
+ "line": 6
273
+ }
274
+ }
275
+ ],
276
+ "applied": [
277
+ {
278
+ "name": "a set value rewrites its own lines and nothing else",
279
+ "type": "card",
280
+ "source": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n\nAn opening paragraph, mine.\n\n## Log\n\n- 2026-11-01 started\n\n## Notes\n\nField text.\n\n## Later\n\nMore of mine.\n\n---\n\n- **Status**: done\n\n## Notes\n\nafter the break\n",
281
+ "changes": [
282
+ {
283
+ "kind": "field",
284
+ "name": "status",
285
+ "value": "done",
286
+ "prior": "open"
287
+ }
288
+ ],
289
+ "expected": "---\ntype: card\n---\n# Plan\n\n- **Status**: done\n\nAn opening paragraph, mine.\n\n## Log\n\n- 2026-11-01 started\n\n## Notes\n\nField text.\n\n## Later\n\nMore of mine.\n\n---\n\n- **Status**: done\n\n## Notes\n\nafter the break\n"
290
+ },
291
+ {
292
+ "name": "a value whose form changes moves to its heading",
293
+ "type": "card",
294
+ "source": "---\ntype: card\n---\n- **Status**: open\n- **Summary**: short\n\n## Notes\n\nKept.\n",
295
+ "changes": [
296
+ {
297
+ "kind": "field",
298
+ "name": "summary",
299
+ "value": "line one\nline two",
300
+ "prior": "short"
301
+ }
302
+ ],
303
+ "expected": "---\ntype: card\n---\n- **Status**: open\n\n## Summary\n\nline one\nline two\n\n## Notes\n\nKept.\n"
304
+ },
305
+ {
306
+ "name": "a new value goes in at its schema position",
307
+ "type": "card",
308
+ "source": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n- **Tags**:\n - core\n\n## Notes\n\nKept.\n",
309
+ "changes": [
310
+ {
311
+ "kind": "field",
312
+ "name": "count",
313
+ "value": 3
314
+ },
315
+ {
316
+ "kind": "field",
317
+ "name": "lines",
318
+ "value": [
319
+ {
320
+ "product": "seats",
321
+ "quantity": 2
322
+ }
323
+ ]
324
+ }
325
+ ],
326
+ "expected": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n- **count**: 3\n- **Tags**:\n - core\n\n## Notes\n\nKept.\n\n## Lines\n\n| Product | Quantity |\n| --- | --- |\n| seats | 2 |\n"
327
+ },
328
+ {
329
+ "name": "a removed value takes its lines with it",
330
+ "type": "card",
331
+ "source": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n- **count**: 3\n\n## Notes\n\nKept.\n",
332
+ "changes": [
333
+ {
334
+ "kind": "field",
335
+ "name": "count",
336
+ "prior": 3
337
+ },
338
+ {
339
+ "kind": "field",
340
+ "name": "notes",
341
+ "prior": "Kept."
342
+ }
343
+ ],
344
+ "expected": "---\ntype: card\n---\n# Plan\n\n- **Status**: open\n"
345
+ }
346
+ ]
347
+ }