@agentshouse/mdmodel 0.1.0-cbce4f1da228f → 0.1.0-cbd3c46de90bf

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 (461) hide show
  1. package/API.md +287 -278
  2. package/README.md +28 -29
  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 +26 -11
  10. package/dist/definition.d.ts.map +1 -1
  11. package/dist/definition.js +259 -93
  12. package/dist/document.d.ts +16 -9
  13. package/dist/document.d.ts.map +1 -1
  14. package/dist/document.js +996 -254
  15. package/dist/event.d.ts +77 -0
  16. package/dist/event.d.ts.map +1 -0
  17. package/dist/event.js +200 -0
  18. package/dist/facts.d.ts +15 -0
  19. package/dist/facts.d.ts.map +1 -0
  20. package/dist/facts.js +41 -0
  21. package/dist/fields.d.ts +1 -1
  22. package/dist/fields.d.ts.map +1 -1
  23. package/dist/fields.js +2 -2
  24. package/dist/form.d.ts +4 -0
  25. package/dist/form.d.ts.map +1 -0
  26. package/dist/form.js +153 -0
  27. package/dist/house-model.d.ts +920 -0
  28. package/dist/house-model.d.ts.map +1 -0
  29. package/dist/house-model.js +504 -0
  30. package/dist/house-references/crockford.d.ts +4 -0
  31. package/dist/house-references/crockford.d.ts.map +1 -0
  32. package/dist/house-references/crockford.js +3 -0
  33. package/dist/house-references/patterns.d.ts +9 -0
  34. package/dist/house-references/patterns.d.ts.map +1 -0
  35. package/dist/house-references/patterns.js +13 -0
  36. package/dist/index.d.ts +45 -16
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +27 -11
  39. package/dist/indexed.d.ts +9 -0
  40. package/dist/indexed.d.ts.map +1 -0
  41. package/dist/indexed.js +55 -0
  42. package/dist/kinds.d.ts +21 -0
  43. package/dist/kinds.d.ts.map +1 -0
  44. package/dist/kinds.js +210 -0
  45. package/dist/markdown.d.ts +71 -0
  46. package/dist/markdown.d.ts.map +1 -0
  47. package/dist/markdown.js +232 -0
  48. package/dist/media-type.d.ts +72 -0
  49. package/dist/media-type.d.ts.map +1 -0
  50. package/dist/media-type.js +157 -0
  51. package/dist/moment.d.ts +7 -0
  52. package/dist/moment.d.ts.map +1 -0
  53. package/dist/moment.js +18 -0
  54. package/dist/not-ready.d.ts +2 -0
  55. package/dist/not-ready.d.ts.map +1 -0
  56. package/dist/not-ready.js +5 -0
  57. package/dist/paths.d.ts +25 -2
  58. package/dist/paths.d.ts.map +1 -1
  59. package/dist/paths.js +129 -18
  60. package/dist/pattern.d.ts +10 -0
  61. package/dist/pattern.d.ts.map +1 -0
  62. package/dist/pattern.js +356 -0
  63. package/dist/query/language.d.ts +257 -0
  64. package/dist/query/language.d.ts.map +1 -0
  65. package/dist/query/language.js +621 -0
  66. package/dist/query/match.d.ts +14 -0
  67. package/dist/query/match.d.ts.map +1 -0
  68. package/dist/query/match.js +129 -0
  69. package/dist/query/rows.d.ts +36 -0
  70. package/dist/query/rows.d.ts.map +1 -0
  71. package/dist/query/rows.js +179 -0
  72. package/dist/query/sql.d.ts +45 -0
  73. package/dist/query/sql.d.ts.map +1 -0
  74. package/dist/query/sql.js +296 -0
  75. package/dist/query/walk.d.ts +69 -0
  76. package/dist/query/walk.d.ts.map +1 -0
  77. package/dist/query/walk.js +274 -0
  78. package/dist/references.d.ts +2 -2
  79. package/dist/references.d.ts.map +1 -1
  80. package/dist/references.js +7 -2
  81. package/dist/refuse.d.ts +1 -0
  82. package/dist/refuse.d.ts.map +1 -1
  83. package/dist/refuse.js +1 -0
  84. package/dist/reserved.d.ts +7 -0
  85. package/dist/reserved.d.ts.map +1 -0
  86. package/dist/reserved.js +32 -0
  87. package/dist/room-types.d.ts +8 -0
  88. package/dist/room-types.d.ts.map +1 -0
  89. package/dist/room-types.js +144 -0
  90. package/dist/schema.d.ts +1 -2
  91. package/dist/schema.d.ts.map +1 -1
  92. package/dist/schema.js +10 -23
  93. package/dist/types.d.ts +44 -34
  94. package/dist/types.d.ts.map +1 -1
  95. package/dist/validate.d.ts +34 -5
  96. package/dist/validate.d.ts.map +1 -1
  97. package/dist/validate.js +345 -151
  98. package/dist/view.d.ts +5 -0
  99. package/dist/view.d.ts.map +1 -0
  100. package/dist/view.js +27 -0
  101. package/dist/yaml.d.ts +7 -5
  102. package/dist/yaml.d.ts.map +1 -1
  103. package/dist/yaml.js +190 -43
  104. package/fixtures/README.md +93 -65
  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/block-scalar-frontmatter/library/notes/literal.md +17 -0
  135. package/fixtures/cases/block-scalar-frontmatter/library/skills/notes/SKILL.md +10 -0
  136. package/fixtures/cases/boolean-field/expected.json +2 -1
  137. package/fixtures/cases/boolean-field/library/companies/acme.md +1 -1
  138. package/fixtures/cases/boolean-field/library/deals/renewal.md +49 -24
  139. package/fixtures/cases/boolean-field/schema.yaml +10 -11
  140. package/fixtures/cases/bracketed-link-definition/library/item.md +1 -1
  141. package/fixtures/cases/bracketed-link-definition/schema.yaml +2 -3
  142. package/fixtures/cases/closed-nested-object/expected.json +2 -1
  143. package/fixtures/cases/closed-nested-object/library/companies/acme.md +1 -1
  144. package/fixtures/cases/closed-nested-object/library/deals/renewal.md +50 -25
  145. package/fixtures/cases/closed-nested-object/schema.yaml +10 -11
  146. package/fixtures/cases/composed-root-reference/library/a.md +2 -2
  147. package/fixtures/cases/conditional-long-text/expected.json +7 -0
  148. package/fixtures/cases/conditional-long-text/library/questions/hosting.md +9 -0
  149. package/fixtures/cases/conditional-long-text/library/questions/payments.md +12 -0
  150. package/fixtures/cases/conditional-long-text/schema.yaml +13 -0
  151. package/fixtures/cases/cross-room-link/expected.json +1 -0
  152. package/fixtures/cases/cross-room-link/library/clients/acme.md +6 -0
  153. package/fixtures/cases/cross-room-link/schema.yaml +3 -0
  154. package/fixtures/cases/cross-room-reference/expected.json +1 -0
  155. package/fixtures/cases/cross-room-reference/library/clients/acme.md +9 -0
  156. package/fixtures/cases/cross-room-reference/schema.yaml +8 -0
  157. package/fixtures/cases/date-time-format/expected.json +2 -1
  158. package/fixtures/cases/date-time-format/library/companies/acme.md +1 -1
  159. package/fixtures/cases/date-time-format/library/deals/renewal.md +49 -24
  160. package/fixtures/cases/date-time-format/schema.yaml +10 -11
  161. package/fixtures/cases/default-unfilled/library/companies/acme.md +1 -1
  162. package/fixtures/cases/default-unfilled/library/deals/renewal.md +47 -22
  163. package/fixtures/cases/default-unfilled/schema.yaml +10 -11
  164. package/fixtures/cases/defs-pattern/expected.json +2 -1
  165. package/fixtures/cases/defs-pattern/library/companies/acme.md +1 -1
  166. package/fixtures/cases/defs-pattern/library/deals/renewal.md +49 -24
  167. package/fixtures/cases/defs-pattern/schema.yaml +10 -11
  168. package/fixtures/cases/dependent-rule/library/companies/acme.md +1 -1
  169. package/fixtures/cases/dependent-rule/library/deals/renewal.md +48 -23
  170. package/fixtures/cases/dependent-rule/schema.yaml +10 -11
  171. package/fixtures/cases/duplicate-link-definition/library/item.md +1 -1
  172. package/fixtures/cases/duplicate-link-definition/schema.yaml +2 -3
  173. package/fixtures/cases/email-format/expected.json +2 -1
  174. package/fixtures/cases/email-format/library/companies/acme.md +1 -1
  175. package/fixtures/cases/email-format/library/deals/renewal.md +49 -24
  176. package/fixtures/cases/email-format/schema.yaml +10 -11
  177. package/fixtures/cases/equal-labels/expected.json +5 -0
  178. package/fixtures/cases/equal-labels/schema.yaml +4 -0
  179. package/fixtures/cases/fenced-link-definition/library/item.md +1 -1
  180. package/fixtures/cases/fenced-link-definition/schema.yaml +2 -3
  181. package/fixtures/cases/field-enum/expected.json +2 -1
  182. package/fixtures/cases/field-enum/library/item.md +2 -2
  183. package/fixtures/cases/field-enum/schema.yaml +3 -4
  184. package/fixtures/cases/frontmatter-construct/expected.json +7 -0
  185. package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
  186. package/fixtures/cases/integer-field/expected.json +2 -1
  187. package/fixtures/cases/integer-field/library/companies/acme.md +1 -1
  188. package/fixtures/cases/integer-field/library/deals/renewal.md +49 -24
  189. package/fixtures/cases/integer-field/schema.yaml +10 -11
  190. package/fixtures/cases/json-schema-constructs/library/companies/acme.md +1 -1
  191. package/fixtures/cases/json-schema-constructs/library/deals/renewal.md +49 -24
  192. package/fixtures/cases/json-schema-constructs/schema.yaml +10 -11
  193. package/fixtures/cases/labels-in-the-rooms-language/expected.json +1 -0
  194. package/fixtures/cases/labels-in-the-rooms-language/library/deals/atlas.md +7 -0
  195. package/fixtures/cases/labels-in-the-rooms-language/schema.yaml +9 -0
  196. package/fixtures/cases/lazy-list-item/expected.json +3 -0
  197. package/fixtures/cases/lazy-list-item/library/item.md +10 -0
  198. package/fixtures/cases/lazy-list-item/schema.yaml +3 -0
  199. package/fixtures/cases/link-into-a-reserved-name/context.json +1 -0
  200. package/fixtures/cases/link-into-a-reserved-name/expected.json +5 -0
  201. package/fixtures/cases/link-into-a-reserved-name/library/notes/a.md +6 -0
  202. package/fixtures/cases/link-into-a-reserved-name/schema.yaml +3 -0
  203. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/expected.json +5 -0
  204. package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/library/notes/b.md +5 -0
  205. package/fixtures/cases/list-item-enum/context.json +1 -0
  206. package/fixtures/cases/list-item-enum/expected.json +7 -0
  207. package/fixtures/cases/list-item-enum/library/task.md +7 -0
  208. package/fixtures/cases/list-item-enum/schema.yaml +3 -0
  209. package/fixtures/cases/list-item-kind/context.json +1 -0
  210. package/fixtures/cases/list-item-kind/expected.json +7 -0
  211. package/fixtures/cases/list-item-kind/library/task.md +6 -0
  212. package/fixtures/cases/list-item-kind/schema.yaml +3 -0
  213. package/fixtures/cases/list-items/context.json +1 -0
  214. package/fixtures/cases/list-items/expected.json +1 -0
  215. package/fixtures/cases/list-items/library/page.md +26 -0
  216. package/fixtures/cases/list-items/schema.yaml +10 -0
  217. package/fixtures/cases/list-of-objects-closed/expected.json +2 -1
  218. package/fixtures/cases/list-of-objects-closed/library/companies/acme.md +1 -1
  219. package/fixtures/cases/list-of-objects-closed/library/deals/renewal.md +49 -25
  220. package/fixtures/cases/list-of-objects-closed/schema.yaml +10 -11
  221. package/fixtures/cases/list-of-objects-item/expected.json +2 -1
  222. package/fixtures/cases/list-of-objects-item/library/companies/acme.md +1 -1
  223. package/fixtures/cases/list-of-objects-item/library/deals/renewal.md +49 -24
  224. package/fixtures/cases/list-of-objects-item/schema.yaml +10 -11
  225. package/fixtures/cases/list-of-objects-reference/expected.json +2 -1
  226. package/fixtures/cases/list-of-objects-reference/library/companies/acme.md +1 -1
  227. package/fixtures/cases/list-of-objects-reference/library/deals/renewal.md +12 -9
  228. package/fixtures/cases/list-of-objects-reference/library/places/depot.md +1 -1
  229. package/fixtures/cases/list-of-objects-reference/library/products/seats.md +1 -1
  230. package/fixtures/cases/list-of-objects-reference/library/products/support.md +1 -1
  231. package/fixtures/cases/list-reference-path/context.json +1 -0
  232. package/fixtures/cases/list-reference-path/expected.json +7 -0
  233. package/fixtures/cases/list-reference-path/library/page.md +5 -0
  234. package/fixtures/cases/list-reference-path/schema.yaml +3 -0
  235. package/fixtures/cases/list-reference-type/context.json +1 -0
  236. package/fixtures/cases/list-reference-type/expected.json +7 -0
  237. package/fixtures/cases/list-reference-type/library/page.md +6 -0
  238. package/fixtures/cases/list-reference-type/schema.yaml +3 -0
  239. package/fixtures/cases/list-size/expected.json +2 -1
  240. package/fixtures/cases/list-size/library/companies/acme.md +1 -1
  241. package/fixtures/cases/list-size/library/deals/renewal.md +51 -24
  242. package/fixtures/cases/list-size/schema.yaml +10 -11
  243. package/fixtures/cases/long-value-past-six-levels/context.json +1 -0
  244. package/fixtures/cases/long-value-past-six-levels/expected.json +5 -0
  245. package/fixtures/cases/long-value-past-six-levels/schema.yaml +15 -0
  246. package/fixtures/cases/malformed-list/context.json +1 -0
  247. package/fixtures/cases/malformed-list/expected.json +7 -0
  248. package/fixtures/cases/{structured-section → malformed-list}/library/item.md +1 -1
  249. package/fixtures/cases/malformed-list/schema.yaml +6 -0
  250. package/fixtures/cases/member-document/library/people/ana.md +2 -2
  251. package/fixtures/cases/member-on-an-untyped-document/context.json +1 -0
  252. package/fixtures/cases/member-on-an-untyped-document/expected.json +6 -0
  253. package/fixtures/cases/member-on-an-untyped-document/library/note.md +4 -0
  254. package/fixtures/cases/member-on-another-type/context.json +1 -0
  255. package/fixtures/cases/member-on-another-type/expected.json +6 -0
  256. package/fixtures/cases/member-on-another-type/library/note.md +4 -0
  257. package/fixtures/cases/member-on-another-type/schema.yaml +7 -0
  258. package/fixtures/cases/missing-required-field/library/item.md +1 -1
  259. package/fixtures/cases/missing-required-field/schema.yaml +3 -4
  260. package/fixtures/cases/misspelled-key/expected.json +2 -1
  261. package/fixtures/cases/misspelled-key/library/companies/acme.md +1 -1
  262. package/fixtures/cases/misspelled-key/library/deals/renewal.md +50 -25
  263. package/fixtures/cases/misspelled-key/schema.yaml +10 -11
  264. package/fixtures/cases/name-not-a-string/context.json +1 -0
  265. package/fixtures/cases/name-not-a-string/expected.json +5 -0
  266. package/fixtures/cases/name-not-a-string/schema.yaml +5 -0
  267. package/fixtures/cases/nested-defs/expected.json +2 -1
  268. package/fixtures/cases/nested-defs/library/deal.md +3 -3
  269. package/fixtures/cases/nested-object-reference/expected.json +2 -1
  270. package/fixtures/cases/nested-object-reference/library/companies/acme.md +1 -1
  271. package/fixtures/cases/nested-object-reference/library/deals/renewal.md +12 -9
  272. package/fixtures/cases/nested-object-reference/library/places/depot.md +1 -1
  273. package/fixtures/cases/nested-object-reference/library/products/seats.md +1 -1
  274. package/fixtures/cases/nested-object-reference/library/products/support.md +1 -1
  275. package/fixtures/cases/nested-reference/library/companies/acme.md +1 -1
  276. package/fixtures/cases/nested-reference/library/deals/renewal.md +13 -10
  277. package/fixtures/cases/nested-reference/library/places/depot.md +1 -1
  278. package/fixtures/cases/nested-reference/library/products/seats.md +1 -1
  279. package/fixtures/cases/nested-reference/library/products/support.md +1 -1
  280. package/fixtures/cases/nested-required-field/expected.json +2 -1
  281. package/fixtures/cases/nested-required-field/library/companies/acme.md +1 -1
  282. package/fixtures/cases/nested-required-field/library/deals/renewal.md +48 -23
  283. package/fixtures/cases/nested-required-field/schema.yaml +10 -11
  284. package/fixtures/cases/numeric-range/expected.json +2 -1
  285. package/fixtures/cases/numeric-range/library/companies/acme.md +1 -1
  286. package/fixtures/cases/numeric-range/library/deals/renewal.md +49 -24
  287. package/fixtures/cases/numeric-range/schema.yaml +10 -11
  288. package/fixtures/cases/one-key-two-labels/context.json +1 -0
  289. package/fixtures/cases/one-key-two-labels/expected.json +5 -0
  290. package/fixtures/cases/one-key-two-labels/schema.yaml +5 -0
  291. package/fixtures/cases/one-key-two-types/context.json +1 -0
  292. package/fixtures/cases/one-key-two-types/expected.json +5 -0
  293. package/fixtures/cases/one-key-two-types/schema.yaml +4 -0
  294. package/fixtures/cases/one-of-variant/expected.json +2 -1
  295. package/fixtures/cases/one-of-variant/library/companies/acme.md +1 -1
  296. package/fixtures/cases/one-of-variant/library/deals/renewal.md +49 -24
  297. package/fixtures/cases/one-of-variant/schema.yaml +10 -11
  298. package/fixtures/cases/other-room-reference/expected.json +2 -1
  299. package/fixtures/cases/other-room-reference/library/companies/acme.md +1 -1
  300. package/fixtures/cases/other-room-reference/library/deals/renewal.md +12 -9
  301. package/fixtures/cases/other-room-reference/library/places/depot.md +1 -1
  302. package/fixtures/cases/other-room-reference/library/products/seats.md +1 -1
  303. package/fixtures/cases/other-room-reference/library/products/support.md +1 -1
  304. package/fixtures/cases/prototype-field/expected.json +2 -1
  305. package/fixtures/cases/prototype-field/library/item.md +2 -2
  306. package/fixtures/cases/prototype-field/schema.yaml +2 -3
  307. package/fixtures/cases/reference-into-a-reserved-name/context.json +1 -0
  308. package/fixtures/cases/reference-into-a-reserved-name/expected.json +7 -0
  309. package/fixtures/cases/reference-into-a-reserved-name/library/notes/a.md +4 -0
  310. package/fixtures/cases/reference-into-a-reserved-name/library/settings/brief.md +1 -0
  311. package/fixtures/cases/reference-into-a-reserved-name/schema.yaml +3 -0
  312. package/fixtures/cases/reference-to-any-file-name/context.json +1 -0
  313. package/fixtures/cases/reference-to-any-file-name/expected.json +1 -0
  314. package/fixtures/cases/reference-to-any-file-name/library/people/100%.md +4 -0
  315. package/fixtures/cases/reference-to-any-file-name/library/people/C#.md +4 -0
  316. package/fixtures/cases/reference-to-any-file-name/library/people/My notes.md +4 -0
  317. package/fixtures/cases/reference-to-any-file-name/library/people/[draft].md +4 -0
  318. package/fixtures/cases/reference-to-any-file-name/library/people/c (d).md +4 -0
  319. package/fixtures/cases/reference-to-any-file-name/library/people/caf/303/251.md +4 -0
  320. package/fixtures/cases/reference-to-any-file-name/library/people//320/236/321/202/321/207/321/221/321/202.md +4 -0
  321. package/fixtures/cases/reference-to-any-file-name/library/tasks/bracket.md +9 -0
  322. package/fixtures/cases/reference-to-any-file-name/library/tasks/cyrillic.md +9 -0
  323. package/fixtures/cases/reference-to-any-file-name/library/tasks/decomposed.md +9 -0
  324. package/fixtures/cases/reference-to-any-file-name/library/tasks/hash.md +9 -0
  325. package/fixtures/cases/reference-to-any-file-name/library/tasks/parenthesis.md +9 -0
  326. package/fixtures/cases/reference-to-any-file-name/library/tasks/percent.md +9 -0
  327. package/fixtures/cases/reference-to-any-file-name/library/tasks/spaced.md +9 -0
  328. package/fixtures/cases/reference-to-any-file-name/schema.yaml +10 -0
  329. package/fixtures/cases/referenced-missing-file/library/a.md +2 -2
  330. package/fixtures/cases/referenced-missing-file/library/b.md +2 -2
  331. package/fixtures/cases/referenced-missing-file/schema.yaml +3 -4
  332. package/fixtures/cases/referenced-missing-non-latin-file/context.json +1 -0
  333. package/fixtures/cases/referenced-missing-non-latin-file/expected.json +6 -0
  334. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/a.md +9 -0
  335. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/b.md +9 -0
  336. package/fixtures/cases/referenced-missing-non-latin-file/schema.yaml +10 -0
  337. package/fixtures/cases/room-md-declares-a-type/context.json +1 -0
  338. package/fixtures/cases/room-md-declares-a-type/expected.json +6 -0
  339. package/fixtures/cases/room-md-declares-a-type/library/ROOM.md +5 -0
  340. package/fixtures/cases/sections-keyword-refused/context.json +1 -0
  341. package/fixtures/cases/sections-keyword-refused/expected.json +5 -0
  342. package/fixtures/cases/{structured-section → sections-keyword-refused}/schema.yaml +1 -2
  343. package/fixtures/cases/shortcut-reference-link/library/item.md +1 -1
  344. package/fixtures/cases/shortcut-reference-link/schema.yaml +2 -3
  345. package/fixtures/cases/string-length/expected.json +2 -1
  346. package/fixtures/cases/string-length/library/companies/acme.md +1 -1
  347. package/fixtures/cases/string-length/library/deals/renewal.md +49 -24
  348. package/fixtures/cases/string-length/schema.yaml +10 -11
  349. package/fixtures/cases/submission-keys/library/notes/visitor.md +2 -2
  350. package/fixtures/cases/text-field-kind/expected.json +1 -4
  351. package/fixtures/cases/text-field-kind/library/page.md +1 -1
  352. package/fixtures/cases/thematic-break-ends-the-values/context.json +1 -0
  353. package/fixtures/cases/thematic-break-ends-the-values/expected.json +1 -0
  354. package/fixtures/cases/thematic-break-ends-the-values/library/item.md +10 -0
  355. package/fixtures/cases/thematic-break-ends-the-values/schema.yaml +3 -0
  356. package/fixtures/cases/typed-path-names-another-type/context.json +11 -0
  357. package/fixtures/cases/typed-path-names-another-type/expected.json +6 -0
  358. package/fixtures/cases/typed-path-names-another-type/library/settings/prefs/one.md +3 -0
  359. package/fixtures/cases/typed-path-names-another-type/schema.yaml +6 -0
  360. package/fixtures/cases/typed-path-names-its-type/context.json +11 -0
  361. package/fixtures/cases/typed-path-names-its-type/expected.json +3 -0
  362. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/deeper/two.md +1 -0
  363. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/one.md +4 -0
  364. package/fixtures/cases/typed-path-names-its-type/schema.yaml +6 -0
  365. package/fixtures/cases/typed-path-names-no-type/context.json +11 -0
  366. package/fixtures/cases/typed-path-names-no-type/expected.json +6 -0
  367. package/fixtures/cases/typed-path-names-no-type/library/settings/prefs/one.md +1 -0
  368. package/fixtures/cases/typed-path-names-no-type/schema.yaml +6 -0
  369. package/fixtures/cases/types-folder-content/library/types/task.md +1 -1
  370. package/fixtures/cases/undeclared-field/expected.json +2 -1
  371. package/fixtures/cases/undeclared-field/library/item.md +2 -2
  372. package/fixtures/cases/undeclared-field/schema.yaml +2 -3
  373. package/fixtures/cases/unevaluated-items-closed/expected.json +2 -1
  374. package/fixtures/cases/unevaluated-items-closed/library/trip.md +13 -3
  375. package/fixtures/cases/unnamed-typed-path-checks-its-fields/context.json +11 -0
  376. package/fixtures/cases/unnamed-typed-path-checks-its-fields/expected.json +6 -0
  377. package/fixtures/cases/unnamed-typed-path-checks-its-fields/library/rooms/team/tasks/plan.md +5 -0
  378. package/fixtures/cases/unnamed-typed-path-checks-its-fields/schema.yaml +5 -0
  379. package/fixtures/cases/unnamed-typed-path-names-a-type/context.json +11 -0
  380. package/fixtures/cases/unnamed-typed-path-names-a-type/expected.json +6 -0
  381. package/fixtures/cases/unnamed-typed-path-names-a-type/library/rooms/team/tasks/plan.md +7 -0
  382. package/fixtures/cases/unnamed-typed-path-names-a-type/schema.yaml +5 -0
  383. package/fixtures/cases/unnamed-typed-path-reads-its-type/context.json +11 -0
  384. package/fixtures/cases/unnamed-typed-path-reads-its-type/expected.json +3 -0
  385. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/plan.md +1 -0
  386. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/tasks/plan.md +6 -0
  387. package/fixtures/cases/unnamed-typed-path-reads-its-type/schema.yaml +5 -0
  388. package/fixtures/cases/unnamed-typed-path-without-a-body/context.json +11 -0
  389. package/fixtures/cases/unnamed-typed-path-without-a-body/expected.json +5 -0
  390. package/fixtures/cases/unnamed-typed-path-without-a-body/library/rooms/team/tasks/plan.md +5 -0
  391. package/fixtures/cases/unnamed-typed-path-without-a-body/schema.yaml +5 -0
  392. package/fixtures/cases/unresolved-link/library/item.md +1 -1
  393. package/fixtures/cases/unresolved-link/schema.yaml +2 -3
  394. package/fixtures/cases/valid-typed-document/library/people/ada.md +1 -1
  395. package/fixtures/cases/valid-typed-document/library/tasks/one.md +11 -11
  396. package/fixtures/cases/valid-typed-document/schema.yaml +5 -6
  397. package/fixtures/forms.json +371 -0
  398. package/fixtures/preamble.json +29 -8
  399. package/fixtures/queries.json +1562 -0
  400. package/package.json +16 -2
  401. package/dist/blocks.d.ts +0 -11
  402. package/dist/blocks.d.ts.map +0 -1
  403. package/dist/blocks.js +0 -69
  404. package/dist/condition.d.ts +0 -149
  405. package/dist/condition.d.ts.map +0 -1
  406. package/dist/condition.js +0 -500
  407. package/dist/divide.d.ts +0 -3
  408. package/dist/divide.d.ts.map +0 -1
  409. package/dist/divide.js +0 -320
  410. package/dist/links.d.ts +0 -28
  411. package/dist/links.d.ts.map +0 -1
  412. package/dist/links.js +0 -785
  413. package/dist/profile.d.ts +0 -6
  414. package/dist/profile.d.ts.map +0 -1
  415. package/dist/profile.js +0 -5
  416. package/dist/project.d.ts +0 -22
  417. package/dist/project.d.ts.map +0 -1
  418. package/dist/project.js +0 -128
  419. package/dist/sections.d.ts +0 -11
  420. package/dist/sections.d.ts.map +0 -1
  421. package/dist/sections.js +0 -57
  422. package/fixtures/cases/missing-section-item-kind/expected.json +0 -5
  423. package/fixtures/cases/missing-section-item-kind/schema.yaml +0 -6
  424. package/fixtures/cases/null-refused/expected.json +0 -6
  425. package/fixtures/cases/null-refused/library/companies/acme.md +0 -4
  426. package/fixtures/cases/null-refused/library/deals/renewal.md +0 -31
  427. package/fixtures/cases/null-refused/schema.yaml +0 -56
  428. package/fixtures/cases/open-map-value/expected.json +0 -6
  429. package/fixtures/cases/open-map-value/library/companies/acme.md +0 -4
  430. package/fixtures/cases/open-map-value/library/deals/renewal.md +0 -31
  431. package/fixtures/cases/open-map-value/schema.yaml +0 -56
  432. package/fixtures/cases/section-item-enum/expected.json +0 -6
  433. package/fixtures/cases/section-item-enum/library/task.md +0 -8
  434. package/fixtures/cases/section-item-enum/schema.yaml +0 -3
  435. package/fixtures/cases/section-item-kind/expected.json +0 -6
  436. package/fixtures/cases/section-item-kind/library/task.md +0 -8
  437. package/fixtures/cases/section-item-kind/schema.yaml +0 -3
  438. package/fixtures/cases/section-items/library/page.md +0 -42
  439. package/fixtures/cases/section-items/schema.yaml +0 -10
  440. package/fixtures/cases/section-reference-path/expected.json +0 -6
  441. package/fixtures/cases/section-reference-path/library/page.md +0 -7
  442. package/fixtures/cases/section-reference-path/schema.yaml +0 -3
  443. package/fixtures/cases/section-reference-type/expected.json +0 -6
  444. package/fixtures/cases/section-reference-type/library/page.md +0 -7
  445. package/fixtures/cases/section-reference-type/schema.yaml +0 -3
  446. package/fixtures/cases/structured-section/expected.json +0 -6
  447. package/fixtures/division.json +0 -409
  448. package/fixtures/projection.json +0 -255
  449. /package/fixtures/cases/{missing-section-item-kind → block-scalar-frontmatter}/context.json +0 -0
  450. /package/fixtures/cases/{section-items → block-scalar-frontmatter}/expected.json +0 -0
  451. /package/fixtures/cases/{null-refused → conditional-long-text}/context.json +0 -0
  452. /package/fixtures/cases/{open-map-value → cross-room-link}/context.json +0 -0
  453. /package/fixtures/cases/{section-item-enum → cross-room-reference}/context.json +0 -0
  454. /package/fixtures/cases/{section-item-kind → equal-labels}/context.json +0 -0
  455. /package/fixtures/cases/{section-items → frontmatter-construct}/context.json +0 -0
  456. /package/fixtures/cases/{section-reference-path → labels-in-the-rooms-language}/context.json +0 -0
  457. /package/fixtures/cases/{section-reference-type → lazy-list-item}/context.json +0 -0
  458. /package/fixtures/cases/{structured-section → link-into-a-reserved-name-from-an-untyped-document}/context.json +0 -0
  459. /package/fixtures/cases/{section-items → list-items}/library/other.md +0 -0
  460. /package/fixtures/cases/{section-reference-path → list-reference-path}/library/other.md +0 -0
  461. /package/fixtures/cases/{section-reference-type → list-reference-type}/library/note.md +0 -0
@@ -0,0 +1,1562 @@
1
+ {
2
+ "schema": "task:\n type: object\n properties:\n title: { type: string }\n status: { enum: [open, done] }\n due: { type: string, format: date }\n at: { type: string, format: date-time }\n ends: { type: [string, \"null\"], format: date-time }\n place:\n type: object\n properties:\n city: { type: string }\n starts: { type: string, format: time }\n points: { type: number }\n count: { type: integer }\n done: { type: boolean }\n priority: { type: integer, enum: [1, 2, 3] }\n flagged: { enum: [true, false] }\n tier: { enum: [1, 2, null] }\n rank: { enum: [1, high] }\n code: { type: string, maxLength: 12 }\n owner: { type: string, reference: person }\n blocked_by: { type: array, items: { type: string, reference: task } }\n labels: { type: array, items: { type: string } }\n times: { type: array, items: { type: string, format: date-time } }\n steps:\n type: array\n items:\n type: object\n properties:\n name: { type: string }\n at: { type: string, format: date-time }\n indexed: [status, due, at, ends, starts, points, count, done, tier, code]\nperson:\n type: object\n properties:\n name: { type: string }\n",
3
+ "documents": {
4
+ "task": {
5
+ "path": "tasks/one.md",
6
+ "type": "task",
7
+ "fileId": "file-one",
8
+ "text": "# One\n\nShip the release on Friday.\n",
9
+ "fields": {
10
+ "title": "Ship the release",
11
+ "status": "open",
12
+ "due": "2026-10-30",
13
+ "at": "2026-10-30T10:00:00+02:00",
14
+ "starts": "09:30:00Z",
15
+ "points": 3,
16
+ "count": 2,
17
+ "done": false,
18
+ "owner": "../people/ada.md",
19
+ "blocked_by": [
20
+ "two.md",
21
+ "three.md"
22
+ ],
23
+ "labels": [
24
+ "urgent",
25
+ "home"
26
+ ],
27
+ "times": [
28
+ "2026-10-30T07:00:00Z",
29
+ "2026-10-31T09:00:00+01:00"
30
+ ],
31
+ "steps": [
32
+ {
33
+ "name": "draft",
34
+ "at": "2026-10-29T23:30:00-01:00"
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ "bare-task": {
40
+ "path": "tasks/two.md",
41
+ "type": "task",
42
+ "fileId": "file-two",
43
+ "text": null,
44
+ "fields": {
45
+ "title": "Two",
46
+ "status": "done",
47
+ "ends": null,
48
+ "labels": [],
49
+ "blocked_by": [],
50
+ "code": "Zeta"
51
+ }
52
+ },
53
+ "spaced-task": {
54
+ "path": "tasks/three.md",
55
+ "type": "task",
56
+ "fileId": "file-three",
57
+ "text": null,
58
+ "fields": {
59
+ "title": "Three",
60
+ "status": "open",
61
+ "at": "2026-10-30 08:00:00Z",
62
+ "times": [
63
+ "2026-10-30T09:00:00+0100",
64
+ "2026-10-30T12:00:00+02",
65
+ "2026-12-31T23:59:60Z"
66
+ ]
67
+ }
68
+ },
69
+ "note": {
70
+ "path": "notes/loose.md",
71
+ "type": "any",
72
+ "fileId": null,
73
+ "text": "Loose note\n",
74
+ "fields": {
75
+ "at": "2026-10-30T10:00:00+02:00",
76
+ "title": "Loose"
77
+ }
78
+ },
79
+ "export": {
80
+ "path": "data/export.csv",
81
+ "type": null,
82
+ "fileId": null,
83
+ "text": "path,status\n",
84
+ "fields": {}
85
+ },
86
+ "task-four": {
87
+ "path": "tasks/four.md",
88
+ "type": "task",
89
+ "fileId": "file-four",
90
+ "text": null,
91
+ "fields": {
92
+ "title": "Four",
93
+ "blocked_by": [
94
+ "two.md"
95
+ ],
96
+ "status": "done",
97
+ "due": "2025-12-31",
98
+ "at": "2026-10-29T23:30:00-10:00",
99
+ "ends": "2026-10-30T07:00:00Z",
100
+ "starts": "09:30:00+01:00",
101
+ "points": -0,
102
+ "count": 2,
103
+ "done": true,
104
+ "tier": 2,
105
+ "code": "\ufffd"
106
+ }
107
+ },
108
+ "task-five": {
109
+ "path": "tasks/five.md",
110
+ "type": "task",
111
+ "fileId": "file-five",
112
+ "text": null,
113
+ "fields": {
114
+ "title": "Five",
115
+ "blocked_by": [
116
+ "three.md"
117
+ ],
118
+ "status": "open",
119
+ "due": "2026-01-05",
120
+ "at": "2026-10-30T07:59:59.999999999Z",
121
+ "ends": "2026-10-30T09:00:00+01:00",
122
+ "starts": "08:00:00Z",
123
+ "points": 0,
124
+ "count": -1,
125
+ "done": false,
126
+ "tier": null,
127
+ "code": "alpha"
128
+ }
129
+ },
130
+ "task-six": {
131
+ "path": "tasks/six.md",
132
+ "type": "task",
133
+ "fileId": "file-six",
134
+ "text": null,
135
+ "fields": {
136
+ "title": "Six",
137
+ "blocked_by": [
138
+ "gone.md"
139
+ ],
140
+ "status": "done",
141
+ "due": "2026-10-30",
142
+ "at": "2026-10-30T09:00:00Z",
143
+ "ends": null,
144
+ "starts": "23:59:60Z",
145
+ "points": 2.5,
146
+ "count": 10,
147
+ "done": null,
148
+ "tier": 1,
149
+ "code": "\ud835\udc9c"
150
+ }
151
+ },
152
+ "task-seven": {
153
+ "path": "tasks/seven.md",
154
+ "type": "task",
155
+ "fileId": "file-seven",
156
+ "text": null,
157
+ "fields": {
158
+ "title": "Seven",
159
+ "ends": "2026-10-30T08:00:00.000000001Z",
160
+ "starts": "09:30:00Z",
161
+ "points": null,
162
+ "count": -1000000,
163
+ "done": true,
164
+ "tier": 2,
165
+ "code": "alpha"
166
+ }
167
+ }
168
+ },
169
+ "cases": [
170
+ {
171
+ "name": "a type names its Documents",
172
+ "query": {
173
+ "types": [
174
+ "task"
175
+ ]
176
+ },
177
+ "document": "task",
178
+ "matches": true
179
+ },
180
+ {
181
+ "name": "a type leaves an untyped Document out",
182
+ "query": {
183
+ "types": [
184
+ "task"
185
+ ]
186
+ },
187
+ "document": "note",
188
+ "matches": false
189
+ },
190
+ {
191
+ "name": "any names an untyped Markdown Document",
192
+ "query": {
193
+ "types": [
194
+ "any"
195
+ ]
196
+ },
197
+ "document": "note",
198
+ "matches": true
199
+ },
200
+ {
201
+ "name": "any leaves a non-Markdown Document out",
202
+ "query": {
203
+ "types": [
204
+ "any"
205
+ ]
206
+ },
207
+ "document": "export",
208
+ "matches": false
209
+ },
210
+ {
211
+ "name": "a string equals itself",
212
+ "query": {
213
+ "where": {
214
+ "/title": "Ship the release"
215
+ }
216
+ },
217
+ "document": "task",
218
+ "matches": true
219
+ },
220
+ {
221
+ "name": "a string never equals its own prefix",
222
+ "query": {
223
+ "where": {
224
+ "/title": "Ship"
225
+ }
226
+ },
227
+ "document": "task",
228
+ "matches": false
229
+ },
230
+ {
231
+ "name": "a date-time equals the same instant in another offset",
232
+ "query": {
233
+ "where": {
234
+ "/at": "2026-10-30T08:00:00Z"
235
+ }
236
+ },
237
+ "document": "task",
238
+ "matches": true
239
+ },
240
+ {
241
+ "name": "an untyped value equals text, not an instant",
242
+ "query": {
243
+ "where": {
244
+ "/at": "2026-10-30T08:00:00Z"
245
+ }
246
+ },
247
+ "document": "note",
248
+ "matches": false
249
+ },
250
+ {
251
+ "name": "an untyped value equals its own text",
252
+ "query": {
253
+ "where": {
254
+ "/at": "2026-10-30T10:00:00+02:00"
255
+ }
256
+ },
257
+ "document": "note",
258
+ "matches": true
259
+ },
260
+ {
261
+ "name": "a date-time written with a space equals the same instant",
262
+ "query": {
263
+ "where": {
264
+ "/at": "2026-10-30T10:00:00+02:00"
265
+ }
266
+ },
267
+ "document": "spaced-task",
268
+ "matches": true
269
+ },
270
+ {
271
+ "name": "a date-time with a space orders as an instant, not as its text",
272
+ "query": {
273
+ "where": {
274
+ "/at": {
275
+ "$gt": "2026-10-30T09:59:00+02:00"
276
+ }
277
+ }
278
+ },
279
+ "document": "spaced-task",
280
+ "matches": true
281
+ },
282
+ {
283
+ "name": "a date-time whose offset has no colon equals the same instant",
284
+ "query": {
285
+ "where": {
286
+ "/times": "2026-10-30T08:00:00Z"
287
+ }
288
+ },
289
+ "document": "spaced-task",
290
+ "matches": true
291
+ },
292
+ {
293
+ "name": "a date-time whose offset is hours alone equals the same instant",
294
+ "query": {
295
+ "where": {
296
+ "/times": "2026-10-30T10:00:00Z"
297
+ }
298
+ },
299
+ "document": "spaced-task",
300
+ "matches": true
301
+ },
302
+ {
303
+ "name": "a query may write the instant with a space",
304
+ "query": {
305
+ "where": {
306
+ "/at": "2026-10-30 08:00:00Z"
307
+ }
308
+ },
309
+ "document": "task",
310
+ "matches": true
311
+ },
312
+ {
313
+ "name": "a query may write the offset with no colon",
314
+ "query": {
315
+ "where": {
316
+ "/at": "2026-10-30T09:00:00+0100"
317
+ }
318
+ },
319
+ "document": "task",
320
+ "matches": true
321
+ },
322
+ {
323
+ "name": "a query may write the offset as hours alone",
324
+ "query": {
325
+ "where": {
326
+ "/at": "2026-10-30T09:00:00+01"
327
+ }
328
+ },
329
+ "document": "task",
330
+ "matches": true
331
+ },
332
+ {
333
+ "name": "a leap second is the instant after it",
334
+ "query": {
335
+ "where": {
336
+ "/times": "2027-01-01T00:00:00Z"
337
+ }
338
+ },
339
+ "document": "spaced-task",
340
+ "matches": true
341
+ },
342
+ {
343
+ "name": "an explicit null equals null",
344
+ "query": {
345
+ "where": {
346
+ "/ends": null
347
+ }
348
+ },
349
+ "document": "bare-task",
350
+ "matches": true
351
+ },
352
+ {
353
+ "name": "a missing value does not equal null",
354
+ "query": {
355
+ "where": {
356
+ "/ends": null
357
+ }
358
+ },
359
+ "document": "task",
360
+ "matches": false
361
+ },
362
+ {
363
+ "name": "an explicit null exists",
364
+ "query": {
365
+ "where": {
366
+ "/ends": {
367
+ "$exists": true
368
+ }
369
+ }
370
+ },
371
+ "document": "bare-task",
372
+ "matches": true
373
+ },
374
+ {
375
+ "name": "an explicit null fails not-equal to null",
376
+ "query": {
377
+ "where": {
378
+ "/ends": {
379
+ "$ne": null
380
+ }
381
+ }
382
+ },
383
+ "document": "bare-task",
384
+ "matches": false
385
+ },
386
+ {
387
+ "name": "a missing value passes not-equal to null",
388
+ "query": {
389
+ "where": {
390
+ "/ends": {
391
+ "$ne": null
392
+ }
393
+ }
394
+ },
395
+ "document": "task",
396
+ "matches": true
397
+ },
398
+ {
399
+ "name": "an explicit null passes not-equal to a value",
400
+ "query": {
401
+ "where": {
402
+ "/ends": {
403
+ "$ne": "2026-10-30T08:00:00Z"
404
+ }
405
+ }
406
+ },
407
+ "document": "bare-task",
408
+ "matches": true
409
+ },
410
+ {
411
+ "name": "an explicit null fails a range",
412
+ "query": {
413
+ "where": {
414
+ "/ends": {
415
+ "$gte": "2026-01-01T00:00:00Z"
416
+ }
417
+ }
418
+ },
419
+ "document": "bare-task",
420
+ "matches": false
421
+ },
422
+ {
423
+ "name": "an explicit null is in a list naming null",
424
+ "query": {
425
+ "where": {
426
+ "/ends": {
427
+ "$in": [
428
+ null,
429
+ "2026-10-30T08:00:00Z"
430
+ ]
431
+ }
432
+ }
433
+ },
434
+ "document": "bare-task",
435
+ "matches": true
436
+ },
437
+ {
438
+ "name": "a date-time one nanosecond later is another instant",
439
+ "query": {
440
+ "where": {
441
+ "/at": "2026-10-30T08:00:00.000000001Z"
442
+ }
443
+ },
444
+ "document": "task",
445
+ "matches": false
446
+ },
447
+ {
448
+ "name": "a date-time orders as an instant, not as its text",
449
+ "query": {
450
+ "where": {
451
+ "/at": {
452
+ "$lt": "2026-10-30T09:00:00Z"
453
+ }
454
+ }
455
+ },
456
+ "document": "task",
457
+ "matches": true
458
+ },
459
+ {
460
+ "name": "an untyped value orders as text",
461
+ "query": {
462
+ "where": {
463
+ "/at": {
464
+ "$lt": "2026-10-30T09:00:00Z"
465
+ }
466
+ }
467
+ },
468
+ "document": "note",
469
+ "matches": false
470
+ },
471
+ {
472
+ "name": "a later instant written earlier as text is later",
473
+ "query": {
474
+ "where": {
475
+ "/at": {
476
+ "$gt": "2026-10-30T07:59:59-00:30"
477
+ }
478
+ }
479
+ },
480
+ "document": "task",
481
+ "matches": false
482
+ },
483
+ {
484
+ "name": "a closed range holds its one instant",
485
+ "query": {
486
+ "where": {
487
+ "/at": {
488
+ "$gte": "2026-10-30T08:00:00Z",
489
+ "$lte": "2026-10-30T08:00:00Z"
490
+ }
491
+ }
492
+ },
493
+ "document": "task",
494
+ "matches": true
495
+ },
496
+ {
497
+ "name": "a list of date-times holds an item at the same instant",
498
+ "query": {
499
+ "where": {
500
+ "/times": "2026-10-31T08:00:00Z"
501
+ }
502
+ },
503
+ "document": "task",
504
+ "matches": true
505
+ },
506
+ {
507
+ "name": "a list of date-times holds every instant named",
508
+ "query": {
509
+ "where": {
510
+ "/times": {
511
+ "$all": [
512
+ "2026-10-30T07:00:00Z",
513
+ "2026-10-31T08:00:00Z"
514
+ ]
515
+ }
516
+ }
517
+ },
518
+ "document": "task",
519
+ "matches": true
520
+ },
521
+ {
522
+ "name": "a date-time reached through a list orders as an instant",
523
+ "query": {
524
+ "where": {
525
+ "/steps/at": {
526
+ "$gt": "2026-10-30T00:00:00Z"
527
+ }
528
+ }
529
+ },
530
+ "document": "task",
531
+ "matches": true
532
+ },
533
+ {
534
+ "name": "a date orders within its month",
535
+ "query": {
536
+ "where": {
537
+ "/due": {
538
+ "$gte": "2026-10-01",
539
+ "$lt": "2026-11-01"
540
+ }
541
+ }
542
+ },
543
+ "document": "task",
544
+ "matches": true
545
+ },
546
+ {
547
+ "name": "a missing value does not exist",
548
+ "query": {
549
+ "where": {
550
+ "/due": {
551
+ "$exists": false
552
+ }
553
+ }
554
+ },
555
+ "document": "bare-task",
556
+ "matches": true
557
+ },
558
+ {
559
+ "name": "a missing value fails exists",
560
+ "query": {
561
+ "where": {
562
+ "/due": {
563
+ "$exists": true
564
+ }
565
+ }
566
+ },
567
+ "document": "bare-task",
568
+ "matches": false
569
+ },
570
+ {
571
+ "name": "a missing value fails equality",
572
+ "query": {
573
+ "where": {
574
+ "/due": "2026-10-30"
575
+ }
576
+ },
577
+ "document": "bare-task",
578
+ "matches": false
579
+ },
580
+ {
581
+ "name": "a missing value passes not-equal",
582
+ "query": {
583
+ "where": {
584
+ "/due": {
585
+ "$ne": "2026-10-30"
586
+ }
587
+ }
588
+ },
589
+ "document": "bare-task",
590
+ "matches": true
591
+ },
592
+ {
593
+ "name": "a missing value passes not-in",
594
+ "query": {
595
+ "where": {
596
+ "/due": {
597
+ "$nin": [
598
+ "2026-10-30"
599
+ ]
600
+ }
601
+ }
602
+ },
603
+ "document": "bare-task",
604
+ "matches": true
605
+ },
606
+ {
607
+ "name": "a missing value fails a range",
608
+ "query": {
609
+ "where": {
610
+ "/at": {
611
+ "$lt": "2027-01-01T00:00:00Z"
612
+ }
613
+ }
614
+ },
615
+ "document": "bare-task",
616
+ "matches": false
617
+ },
618
+ {
619
+ "name": "a missing value fails a prefix",
620
+ "query": {
621
+ "where": {
622
+ "/owner": {
623
+ "$prefix": "people/"
624
+ }
625
+ }
626
+ },
627
+ "document": "bare-task",
628
+ "matches": false
629
+ },
630
+ {
631
+ "name": "a present value fails not-equal to itself",
632
+ "query": {
633
+ "where": {
634
+ "/status": {
635
+ "$ne": "open"
636
+ }
637
+ }
638
+ },
639
+ "document": "task",
640
+ "matches": false
641
+ },
642
+ {
643
+ "name": "a present value passes not-equal to another",
644
+ "query": {
645
+ "where": {
646
+ "/status": {
647
+ "$ne": "open"
648
+ }
649
+ }
650
+ },
651
+ "document": "bare-task",
652
+ "matches": true
653
+ },
654
+ {
655
+ "name": "a date-time fails not-equal to the same instant",
656
+ "query": {
657
+ "where": {
658
+ "/at": {
659
+ "$ne": "2026-10-30T08:00:00Z"
660
+ }
661
+ }
662
+ },
663
+ "document": "task",
664
+ "matches": false
665
+ },
666
+ {
667
+ "name": "a list holds one of the values named",
668
+ "query": {
669
+ "where": {
670
+ "/labels": {
671
+ "$in": [
672
+ "home",
673
+ "away"
674
+ ]
675
+ }
676
+ }
677
+ },
678
+ "document": "task",
679
+ "matches": true
680
+ },
681
+ {
682
+ "name": "a list holding a value fails not-in it",
683
+ "query": {
684
+ "where": {
685
+ "/labels": {
686
+ "$nin": [
687
+ "home"
688
+ ]
689
+ }
690
+ }
691
+ },
692
+ "document": "task",
693
+ "matches": false
694
+ },
695
+ {
696
+ "name": "a list lacking a value passes not-in it",
697
+ "query": {
698
+ "where": {
699
+ "/labels": {
700
+ "$nin": [
701
+ "away"
702
+ ]
703
+ }
704
+ }
705
+ },
706
+ "document": "task",
707
+ "matches": true
708
+ },
709
+ {
710
+ "name": "a list must hold every value of all",
711
+ "query": {
712
+ "where": {
713
+ "/labels": {
714
+ "$all": [
715
+ "urgent",
716
+ "away"
717
+ ]
718
+ }
719
+ }
720
+ },
721
+ "document": "task",
722
+ "matches": false
723
+ },
724
+ {
725
+ "name": "an empty list has size zero",
726
+ "query": {
727
+ "where": {
728
+ "/labels": {
729
+ "$size": 0
730
+ }
731
+ }
732
+ },
733
+ "document": "bare-task",
734
+ "matches": true
735
+ },
736
+ {
737
+ "name": "a list of two has no size zero",
738
+ "query": {
739
+ "where": {
740
+ "/labels": {
741
+ "$size": 0
742
+ }
743
+ }
744
+ },
745
+ "document": "task",
746
+ "matches": false
747
+ },
748
+ {
749
+ "name": "a number orders against a fraction",
750
+ "query": {
751
+ "where": {
752
+ "/points": {
753
+ "$gt": 2.5
754
+ }
755
+ }
756
+ },
757
+ "document": "task",
758
+ "matches": true
759
+ },
760
+ {
761
+ "name": "an integer equals itself",
762
+ "query": {
763
+ "where": {
764
+ "/count": 2
765
+ }
766
+ },
767
+ "document": "task",
768
+ "matches": true
769
+ },
770
+ {
771
+ "name": "a boolean equals itself",
772
+ "query": {
773
+ "where": {
774
+ "/done": false
775
+ }
776
+ },
777
+ "document": "task",
778
+ "matches": true
779
+ },
780
+ {
781
+ "name": "a string starts with its prefix",
782
+ "query": {
783
+ "where": {
784
+ "/title": {
785
+ "$prefix": "Ship"
786
+ }
787
+ }
788
+ },
789
+ "document": "task",
790
+ "matches": true
791
+ },
792
+ {
793
+ "name": "a prefix compares case",
794
+ "query": {
795
+ "where": {
796
+ "/title": {
797
+ "$prefix": "ship"
798
+ }
799
+ }
800
+ },
801
+ "document": "task",
802
+ "matches": false
803
+ },
804
+ {
805
+ "name": "a list item starts with a prefix",
806
+ "query": {
807
+ "where": {
808
+ "/labels": {
809
+ "$prefix": "urg"
810
+ }
811
+ }
812
+ },
813
+ "document": "task",
814
+ "matches": true
815
+ },
816
+ {
817
+ "name": "a reference starts with the folder of its target",
818
+ "query": {
819
+ "where": {
820
+ "/owner": {
821
+ "$prefix": "people/"
822
+ }
823
+ }
824
+ },
825
+ "document": "task",
826
+ "matches": true
827
+ },
828
+ {
829
+ "name": "a date starts with its month",
830
+ "query": {
831
+ "where": {
832
+ "/due": {
833
+ "$prefix": "2026-10"
834
+ }
835
+ }
836
+ },
837
+ "document": "task",
838
+ "matches": true
839
+ },
840
+ {
841
+ "name": "a reference equals the Path of its target",
842
+ "query": {
843
+ "where": {
844
+ "/owner": "people/ada.md"
845
+ }
846
+ },
847
+ "document": "task",
848
+ "matches": true
849
+ },
850
+ {
851
+ "name": "a time equals its text",
852
+ "query": {
853
+ "where": {
854
+ "/starts": "09:30:00Z"
855
+ }
856
+ },
857
+ "document": "task",
858
+ "matches": true
859
+ },
860
+ {
861
+ "name": "a file ID names its Document",
862
+ "query": {
863
+ "fileIds": [
864
+ "file-one"
865
+ ]
866
+ },
867
+ "document": "task",
868
+ "matches": true
869
+ },
870
+ {
871
+ "name": "a file ID names no other Document",
872
+ "query": {
873
+ "fileIds": [
874
+ "file-one"
875
+ ]
876
+ },
877
+ "document": "bare-task",
878
+ "matches": false
879
+ },
880
+ {
881
+ "name": "a file ID names no Document without one",
882
+ "query": {
883
+ "fileIds": [
884
+ "file-one"
885
+ ]
886
+ },
887
+ "document": "note",
888
+ "matches": false
889
+ },
890
+ {
891
+ "name": "a named Path is read",
892
+ "query": {
893
+ "paths": [
894
+ "tasks/one.md"
895
+ ]
896
+ },
897
+ "document": "task",
898
+ "matches": true
899
+ },
900
+ {
901
+ "name": "a folder holds its own Documents",
902
+ "query": {
903
+ "folder": "tasks"
904
+ },
905
+ "document": "task",
906
+ "matches": true
907
+ },
908
+ {
909
+ "name": "a folder holds no other folder's Documents",
910
+ "query": {
911
+ "folder": "tasks"
912
+ },
913
+ "document": "note",
914
+ "matches": false
915
+ },
916
+ {
917
+ "name": "a Path prefix holds what lies beneath it",
918
+ "query": {
919
+ "pathPrefix": "tasks"
920
+ },
921
+ "document": "task",
922
+ "matches": true
923
+ },
924
+ {
925
+ "name": "a Path prefix is a whole directory",
926
+ "query": {
927
+ "pathPrefix": "task"
928
+ },
929
+ "document": "task",
930
+ "matches": false
931
+ },
932
+ {
933
+ "name": "a Document outside a named directory is read",
934
+ "query": {
935
+ "outside": [
936
+ "notes"
937
+ ]
938
+ },
939
+ "document": "task",
940
+ "matches": true
941
+ },
942
+ {
943
+ "name": "a Document under a named directory is left out",
944
+ "query": {
945
+ "outside": [
946
+ "tasks"
947
+ ]
948
+ },
949
+ "document": "task",
950
+ "matches": false
951
+ },
952
+ {
953
+ "name": "a Document that is not Markdown is left out under a named directory",
954
+ "query": {
955
+ "outside": [
956
+ "data"
957
+ ]
958
+ },
959
+ "document": "export",
960
+ "matches": false
961
+ },
962
+ {
963
+ "name": "a directory left out is a whole directory",
964
+ "query": {
965
+ "outside": [
966
+ "task"
967
+ ]
968
+ },
969
+ "document": "task",
970
+ "matches": true
971
+ },
972
+ {
973
+ "name": "a Document under any of the directories named is left out",
974
+ "query": {
975
+ "outside": [
976
+ "data",
977
+ "tasks"
978
+ ]
979
+ },
980
+ "document": "task",
981
+ "matches": false
982
+ },
983
+ {
984
+ "name": "a phrase is found ignoring case",
985
+ "query": {
986
+ "text": "FRIDAY"
987
+ },
988
+ "document": "task",
989
+ "matches": true
990
+ },
991
+ {
992
+ "name": "a phrase is never found in a document holding no text",
993
+ "query": {
994
+ "text": "friday"
995
+ },
996
+ "document": "bare-task",
997
+ "matches": false
998
+ },
999
+ {
1000
+ "name": "or holds when one part holds",
1001
+ "query": {
1002
+ "where": {
1003
+ "$or": [
1004
+ {
1005
+ "/status": "done"
1006
+ },
1007
+ {
1008
+ "/points": {
1009
+ "$gt": 2
1010
+ }
1011
+ }
1012
+ ]
1013
+ }
1014
+ },
1015
+ "document": "task",
1016
+ "matches": true
1017
+ },
1018
+ {
1019
+ "name": "and fails when one part fails",
1020
+ "query": {
1021
+ "where": {
1022
+ "$and": [
1023
+ {
1024
+ "/status": "open"
1025
+ },
1026
+ {
1027
+ "/due": {
1028
+ "$exists": false
1029
+ }
1030
+ }
1031
+ ]
1032
+ }
1033
+ },
1034
+ "document": "task",
1035
+ "matches": false
1036
+ },
1037
+ {
1038
+ "name": "a type, a Path prefix and a field test hold together",
1039
+ "query": {
1040
+ "types": [
1041
+ "task"
1042
+ ],
1043
+ "pathPrefix": "tasks",
1044
+ "where": {
1045
+ "/status": "done"
1046
+ }
1047
+ },
1048
+ "document": "bare-task",
1049
+ "matches": true
1050
+ },
1051
+ {
1052
+ "name": "a list holds the value an indexed field holds",
1053
+ "query": {
1054
+ "where": {
1055
+ "/status": {
1056
+ "$in": [
1057
+ "done",
1058
+ "open"
1059
+ ]
1060
+ }
1061
+ }
1062
+ },
1063
+ "document": "task",
1064
+ "matches": true
1065
+ },
1066
+ {
1067
+ "name": "a list naming null holds an explicit null",
1068
+ "query": {
1069
+ "where": {
1070
+ "/tier": {
1071
+ "$in": [
1072
+ 2,
1073
+ null
1074
+ ]
1075
+ }
1076
+ }
1077
+ },
1078
+ "document": "task-five",
1079
+ "matches": true
1080
+ },
1081
+ {
1082
+ "name": "a list naming only null leaves a missing value out",
1083
+ "query": {
1084
+ "where": {
1085
+ "/tier": {
1086
+ "$in": [
1087
+ null
1088
+ ]
1089
+ }
1090
+ }
1091
+ },
1092
+ "document": "task",
1093
+ "matches": false
1094
+ },
1095
+ {
1096
+ "name": "a list holds a date-time at the same instant in another offset",
1097
+ "query": {
1098
+ "where": {
1099
+ "/at": {
1100
+ "$in": [
1101
+ "2026-10-30T08:00:00Z",
1102
+ "2026-10-31T00:00:00Z"
1103
+ ]
1104
+ }
1105
+ }
1106
+ },
1107
+ "document": "task",
1108
+ "matches": true
1109
+ },
1110
+ {
1111
+ "name": "a list of booleans holds true",
1112
+ "query": {
1113
+ "where": {
1114
+ "/done": {
1115
+ "$in": [
1116
+ true
1117
+ ]
1118
+ }
1119
+ }
1120
+ },
1121
+ "document": "task-four",
1122
+ "matches": true
1123
+ },
1124
+ {
1125
+ "name": "an explicit null boolean equals null",
1126
+ "query": {
1127
+ "where": {
1128
+ "/done": null
1129
+ }
1130
+ },
1131
+ "document": "task-six",
1132
+ "matches": true
1133
+ },
1134
+ {
1135
+ "name": "a range holds its inclusive lower bound",
1136
+ "query": {
1137
+ "where": {
1138
+ "/count": {
1139
+ "$gte": -1,
1140
+ "$lt": 2
1141
+ }
1142
+ }
1143
+ },
1144
+ "document": "task-five",
1145
+ "matches": true
1146
+ },
1147
+ {
1148
+ "name": "a range leaves its exclusive upper bound out",
1149
+ "query": {
1150
+ "where": {
1151
+ "/count": {
1152
+ "$gte": -1,
1153
+ "$lt": 2
1154
+ }
1155
+ }
1156
+ },
1157
+ "document": "task",
1158
+ "matches": false
1159
+ },
1160
+ {
1161
+ "name": "an exclusive lower bound leaves its own value out",
1162
+ "query": {
1163
+ "where": {
1164
+ "/count": {
1165
+ "$gt": -1000000
1166
+ }
1167
+ }
1168
+ },
1169
+ "document": "task-seven",
1170
+ "matches": false
1171
+ },
1172
+ {
1173
+ "name": "a negative zero lies in a range closed at zero",
1174
+ "query": {
1175
+ "where": {
1176
+ "/points": {
1177
+ "$gte": 0,
1178
+ "$lte": 0
1179
+ }
1180
+ }
1181
+ },
1182
+ "document": "task-four",
1183
+ "matches": true
1184
+ },
1185
+ {
1186
+ "name": "a date range leaves its exclusive upper day out",
1187
+ "query": {
1188
+ "where": {
1189
+ "/due": {
1190
+ "$gte": "2025-12-31",
1191
+ "$lt": "2026-01-05"
1192
+ }
1193
+ }
1194
+ },
1195
+ "document": "task-five",
1196
+ "matches": false
1197
+ },
1198
+ {
1199
+ "name": "a time orders as its text",
1200
+ "query": {
1201
+ "where": {
1202
+ "/starts": {
1203
+ "$gte": "23:59:60Z"
1204
+ }
1205
+ }
1206
+ },
1207
+ "document": "task-six",
1208
+ "matches": true
1209
+ },
1210
+ {
1211
+ "name": "a date-time one nanosecond past an inclusive upper bound lies outside it",
1212
+ "query": {
1213
+ "where": {
1214
+ "/ends": {
1215
+ "$lte": "2026-10-30T08:00:00Z"
1216
+ }
1217
+ }
1218
+ },
1219
+ "document": "task-seven",
1220
+ "matches": false
1221
+ },
1222
+ {
1223
+ "name": "text past U+FFFD holds a letter beyond the Basic Multilingual Plane",
1224
+ "query": {
1225
+ "where": {
1226
+ "/code": {
1227
+ "$gt": "\ufffd"
1228
+ }
1229
+ }
1230
+ },
1231
+ "document": "task-six",
1232
+ "matches": true
1233
+ },
1234
+ {
1235
+ "name": "a closed text range holds its one value",
1236
+ "query": {
1237
+ "where": {
1238
+ "/code": {
1239
+ "$gte": "alpha",
1240
+ "$lte": "alpha"
1241
+ }
1242
+ }
1243
+ },
1244
+ "document": "task-five",
1245
+ "matches": true
1246
+ },
1247
+ {
1248
+ "name": "an equality and a range on two indexed fields hold together",
1249
+ "query": {
1250
+ "where": {
1251
+ "/status": "open",
1252
+ "/points": {
1253
+ "$gt": 2
1254
+ }
1255
+ }
1256
+ },
1257
+ "document": "task",
1258
+ "matches": true
1259
+ },
1260
+ {
1261
+ "name": "a hop keeps a Document whose reference names a matching Document",
1262
+ "query": {
1263
+ "hop": {
1264
+ "field": "/blocked_by",
1265
+ "where": {
1266
+ "/status": "open"
1267
+ }
1268
+ }
1269
+ },
1270
+ "document": "task-five",
1271
+ "matches": true,
1272
+ "refusedInMemory": "hop"
1273
+ },
1274
+ {
1275
+ "name": "a hop leaves out a Document whose references name no matching Document",
1276
+ "query": {
1277
+ "hop": {
1278
+ "field": "/blocked_by",
1279
+ "where": {
1280
+ "/status": "open"
1281
+ }
1282
+ }
1283
+ },
1284
+ "document": "task-four",
1285
+ "matches": false,
1286
+ "refusedInMemory": "hop"
1287
+ },
1288
+ {
1289
+ "name": "a hop keeps a list naming one matching Document and one that is not",
1290
+ "query": {
1291
+ "hop": {
1292
+ "field": "/blocked_by",
1293
+ "where": {
1294
+ "/status": "open"
1295
+ }
1296
+ }
1297
+ },
1298
+ "document": "task",
1299
+ "matches": true,
1300
+ "refusedInMemory": "hop"
1301
+ },
1302
+ {
1303
+ "name": "a hop leaves out an empty reference list",
1304
+ "query": {
1305
+ "hop": {
1306
+ "field": "/blocked_by",
1307
+ "where": {
1308
+ "/status": "open"
1309
+ }
1310
+ }
1311
+ },
1312
+ "document": "bare-task",
1313
+ "matches": false,
1314
+ "refusedInMemory": "hop"
1315
+ },
1316
+ {
1317
+ "name": "a hop leaves out a missing reference field",
1318
+ "query": {
1319
+ "hop": {
1320
+ "field": "/blocked_by",
1321
+ "where": {
1322
+ "/status": "open"
1323
+ }
1324
+ }
1325
+ },
1326
+ "document": "spaced-task",
1327
+ "matches": false,
1328
+ "refusedInMemory": "hop"
1329
+ },
1330
+ {
1331
+ "name": "a hop leaves out a reference to no Document",
1332
+ "query": {
1333
+ "hop": {
1334
+ "field": "/blocked_by",
1335
+ "where": {
1336
+ "/status": "open"
1337
+ }
1338
+ }
1339
+ },
1340
+ "document": "task-six",
1341
+ "matches": false,
1342
+ "refusedInMemory": "hop"
1343
+ },
1344
+ {
1345
+ "name": "none leaves out a Document whose reference names a matching Document",
1346
+ "query": {
1347
+ "hop": {
1348
+ "field": "/blocked_by",
1349
+ "where": {
1350
+ "/status": "open"
1351
+ },
1352
+ "none": true
1353
+ }
1354
+ },
1355
+ "document": "task-five",
1356
+ "matches": false,
1357
+ "refusedInMemory": "hop"
1358
+ },
1359
+ {
1360
+ "name": "none keeps a Document whose references name no matching Document",
1361
+ "query": {
1362
+ "hop": {
1363
+ "field": "/blocked_by",
1364
+ "where": {
1365
+ "/status": "open"
1366
+ },
1367
+ "none": true
1368
+ }
1369
+ },
1370
+ "document": "task-four",
1371
+ "matches": true,
1372
+ "refusedInMemory": "hop"
1373
+ },
1374
+ {
1375
+ "name": "none leaves out a list naming one matching Document and one that is not",
1376
+ "query": {
1377
+ "hop": {
1378
+ "field": "/blocked_by",
1379
+ "where": {
1380
+ "/status": "open"
1381
+ },
1382
+ "none": true
1383
+ }
1384
+ },
1385
+ "document": "task",
1386
+ "matches": false,
1387
+ "refusedInMemory": "hop"
1388
+ },
1389
+ {
1390
+ "name": "none keeps an empty reference list",
1391
+ "query": {
1392
+ "hop": {
1393
+ "field": "/blocked_by",
1394
+ "where": {
1395
+ "/status": "open"
1396
+ },
1397
+ "none": true
1398
+ }
1399
+ },
1400
+ "document": "bare-task",
1401
+ "matches": true,
1402
+ "refusedInMemory": "hop"
1403
+ },
1404
+ {
1405
+ "name": "none keeps a missing reference field",
1406
+ "query": {
1407
+ "hop": {
1408
+ "field": "/blocked_by",
1409
+ "where": {
1410
+ "/status": "open"
1411
+ },
1412
+ "none": true
1413
+ }
1414
+ },
1415
+ "document": "spaced-task",
1416
+ "matches": true,
1417
+ "refusedInMemory": "hop"
1418
+ },
1419
+ {
1420
+ "name": "none keeps a reference to no Document",
1421
+ "query": {
1422
+ "hop": {
1423
+ "field": "/blocked_by",
1424
+ "where": {
1425
+ "/status": "open"
1426
+ },
1427
+ "none": true
1428
+ }
1429
+ },
1430
+ "document": "task-six",
1431
+ "matches": true,
1432
+ "refusedInMemory": "hop"
1433
+ },
1434
+ {
1435
+ "name": "none keeps a Document whose referenced Document is of a type the hop does not name",
1436
+ "query": {
1437
+ "hop": {
1438
+ "field": "/blocked_by",
1439
+ "types": [
1440
+ "person"
1441
+ ],
1442
+ "none": true
1443
+ }
1444
+ },
1445
+ "document": "task-five",
1446
+ "matches": true,
1447
+ "refusedInMemory": "hop"
1448
+ }
1449
+ ],
1450
+ "orders": [
1451
+ {
1452
+ "name": "numbers ascend with nulls first, a negative zero tied with zero by Path",
1453
+ "orderBy": { "by": { "field": "/points" }, "direction": "asc", "nulls": "first" },
1454
+ "order": ["task-seven", "spaced-task", "bare-task", "task-five", "task-four", "task-six", "task"]
1455
+ },
1456
+ {
1457
+ "name": "numbers descend with nulls first, ties still by Path",
1458
+ "orderBy": { "by": { "field": "/points" }, "direction": "desc", "nulls": "first" },
1459
+ "order": ["task-seven", "spaced-task", "bare-task", "task", "task-six", "task-five", "task-four"]
1460
+ },
1461
+ {
1462
+ "name": "numbers ascend with nulls last",
1463
+ "orderBy": { "by": { "field": "/points" }, "direction": "asc", "nulls": "last" },
1464
+ "order": ["task-five", "task-four", "task-six", "task", "task-seven", "spaced-task", "bare-task"]
1465
+ },
1466
+ {
1467
+ "name": "numbers descend with nulls last",
1468
+ "orderBy": { "by": { "field": "/points" }, "direction": "desc", "nulls": "last" },
1469
+ "order": ["task", "task-six", "task-five", "task-four", "task-seven", "spaced-task", "bare-task"]
1470
+ },
1471
+ {
1472
+ "name": "integers ascend through negatives, ties by Path",
1473
+ "orderBy": { "by": { "field": "/count" }, "direction": "asc", "nulls": "first" },
1474
+ "order": ["spaced-task", "bare-task", "task-seven", "task-five", "task-four", "task", "task-six"]
1475
+ },
1476
+ {
1477
+ "name": "integers descend, ties by Path",
1478
+ "orderBy": { "by": { "field": "/count" }, "direction": "desc", "nulls": "first" },
1479
+ "order": ["spaced-task", "bare-task", "task-six", "task-four", "task", "task-five", "task-seven"]
1480
+ },
1481
+ {
1482
+ "name": "booleans ascend false before true, null with the missing",
1483
+ "orderBy": { "by": { "field": "/done" }, "direction": "asc", "nulls": "first" },
1484
+ "order": ["task-six", "spaced-task", "bare-task", "task-five", "task", "task-four", "task-seven"]
1485
+ },
1486
+ {
1487
+ "name": "booleans descend with nulls last",
1488
+ "orderBy": { "by": { "field": "/done" }, "direction": "desc", "nulls": "last" },
1489
+ "order": ["task-four", "task-seven", "task-five", "task", "task-six", "spaced-task", "bare-task"]
1490
+ },
1491
+ {
1492
+ "name": "a choice ascends by code point",
1493
+ "orderBy": { "by": { "field": "/status" }, "direction": "asc", "nulls": "first", "stringSort": "lexical" },
1494
+ "order": ["task-seven", "task-four", "task-six", "bare-task", "task-five", "task", "spaced-task"]
1495
+ },
1496
+ {
1497
+ "name": "a choice descends by code point",
1498
+ "orderBy": { "by": { "field": "/status" }, "direction": "desc", "nulls": "first", "stringSort": "lexical" },
1499
+ "order": ["task-seven", "task-five", "task", "spaced-task", "task-four", "task-six", "bare-task"]
1500
+ },
1501
+ {
1502
+ "name": "a choice of integers ascends with its null among the missing",
1503
+ "orderBy": { "by": { "field": "/tier" }, "direction": "asc", "nulls": "first" },
1504
+ "order": ["task-five", "task", "spaced-task", "bare-task", "task-six", "task-four", "task-seven"]
1505
+ },
1506
+ {
1507
+ "name": "a choice of integers descends with nulls last",
1508
+ "orderBy": { "by": { "field": "/tier" }, "direction": "desc", "nulls": "last" },
1509
+ "order": ["task-four", "task-seven", "task-six", "task-five", "task", "spaced-task", "bare-task"]
1510
+ },
1511
+ {
1512
+ "name": "dates ascend, ties by Path",
1513
+ "orderBy": { "by": { "field": "/due" }, "direction": "asc", "nulls": "first", "stringSort": "lexical" },
1514
+ "order": ["task-seven", "spaced-task", "bare-task", "task-four", "task-five", "task", "task-six"]
1515
+ },
1516
+ {
1517
+ "name": "dates descend, ties by Path",
1518
+ "orderBy": { "by": { "field": "/due" }, "direction": "desc", "nulls": "first", "stringSort": "lexical" },
1519
+ "order": ["task-seven", "spaced-task", "bare-task", "task", "task-six", "task-five", "task-four"]
1520
+ },
1521
+ {
1522
+ "name": "date-times ascend by instant whatever their offset, the same instant tied by Path",
1523
+ "orderBy": { "by": { "field": "/at" }, "direction": "asc", "nulls": "first", "stringSort": "lexical" },
1524
+ "order": ["task-seven", "bare-task", "task-five", "task", "spaced-task", "task-six", "task-four"]
1525
+ },
1526
+ {
1527
+ "name": "date-times descend by instant",
1528
+ "orderBy": { "by": { "field": "/at" }, "direction": "desc", "nulls": "first", "stringSort": "lexical" },
1529
+ "order": ["task-seven", "bare-task", "task-four", "task-six", "task", "spaced-task", "task-five"]
1530
+ },
1531
+ {
1532
+ "name": "nullable date-times ascend by instant with nulls last",
1533
+ "orderBy": { "by": { "field": "/ends" }, "direction": "asc", "nulls": "last", "stringSort": "lexical" },
1534
+ "order": ["task-four", "task-five", "task-seven", "task", "task-six", "spaced-task", "bare-task"]
1535
+ },
1536
+ {
1537
+ "name": "nullable date-times descend by instant with nulls first",
1538
+ "orderBy": { "by": { "field": "/ends" }, "direction": "desc", "nulls": "first", "stringSort": "lexical" },
1539
+ "order": ["task", "task-six", "spaced-task", "bare-task", "task-seven", "task-five", "task-four"]
1540
+ },
1541
+ {
1542
+ "name": "times ascend as text, ties by Path",
1543
+ "orderBy": { "by": { "field": "/starts" }, "direction": "asc", "nulls": "first", "stringSort": "lexical" },
1544
+ "order": ["spaced-task", "bare-task", "task-five", "task-four", "task", "task-seven", "task-six"]
1545
+ },
1546
+ {
1547
+ "name": "times descend as text, ties by Path",
1548
+ "orderBy": { "by": { "field": "/starts" }, "direction": "desc", "nulls": "first", "stringSort": "lexical" },
1549
+ "order": ["spaced-task", "bare-task", "task-six", "task", "task-seven", "task-four", "task-five"]
1550
+ },
1551
+ {
1552
+ "name": "bounded text ascends by code point, upper case first and past the basic plane last",
1553
+ "orderBy": { "by": { "field": "/code" }, "direction": "asc", "nulls": "first", "stringSort": "lexical" },
1554
+ "order": ["task", "spaced-task", "bare-task", "task-five", "task-seven", "task-four", "task-six"]
1555
+ },
1556
+ {
1557
+ "name": "bounded text descends by code point with nulls last",
1558
+ "orderBy": { "by": { "field": "/code" }, "direction": "desc", "nulls": "last", "stringSort": "lexical" },
1559
+ "order": ["task-six", "task-four", "task-five", "task-seven", "bare-task", "task", "spaced-task"]
1560
+ }
1561
+ ]
1562
+ }