@agentshouse/mdmodel 0.1.0-ca3c1be3cd1a3 → 0.1.0-caaa5bad9995d

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 (247) hide show
  1. package/API.md +56 -104
  2. package/README.md +0 -1
  3. package/dist/definition.d.ts +2 -1
  4. package/dist/definition.d.ts.map +1 -1
  5. package/dist/definition.js +48 -9
  6. package/dist/document.d.ts +3 -1
  7. package/dist/document.d.ts.map +1 -1
  8. package/dist/document.js +69 -17
  9. package/dist/facts.d.ts.map +1 -1
  10. package/dist/facts.js +3 -2
  11. package/dist/house-model.d.ts +67 -25
  12. package/dist/house-model.d.ts.map +1 -1
  13. package/dist/house-model.js +44 -14
  14. package/dist/house-references/patterns.d.ts +5 -1
  15. package/dist/house-references/patterns.d.ts.map +1 -1
  16. package/dist/house-references/patterns.js +8 -1
  17. package/dist/index.d.ts +10 -10
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +8 -9
  20. package/dist/indexed.d.ts +1 -0
  21. package/dist/indexed.d.ts.map +1 -1
  22. package/dist/indexed.js +8 -0
  23. package/dist/kinds.d.ts +7 -1
  24. package/dist/kinds.d.ts.map +1 -1
  25. package/dist/kinds.js +19 -0
  26. package/dist/markdown.d.ts +0 -4
  27. package/dist/markdown.d.ts.map +1 -1
  28. package/dist/markdown.js +1 -34
  29. package/dist/paths.d.ts +1 -0
  30. package/dist/paths.d.ts.map +1 -1
  31. package/dist/paths.js +20 -4
  32. package/dist/query/language.d.ts +4 -1
  33. package/dist/query/language.d.ts.map +1 -1
  34. package/dist/query/language.js +4 -3
  35. package/dist/query/match.d.ts.map +1 -1
  36. package/dist/query/match.js +3 -24
  37. package/dist/query/rows.d.ts +4 -0
  38. package/dist/query/rows.d.ts.map +1 -1
  39. package/dist/query/rows.js +21 -0
  40. package/dist/query/sql.d.ts +7 -1
  41. package/dist/query/sql.d.ts.map +1 -1
  42. package/dist/query/sql.js +14 -3
  43. package/dist/query/walk.d.ts +69 -0
  44. package/dist/query/walk.d.ts.map +1 -0
  45. package/dist/query/walk.js +274 -0
  46. package/dist/reserved.d.ts +1 -0
  47. package/dist/reserved.d.ts.map +1 -1
  48. package/dist/reserved.js +15 -4
  49. package/dist/room-types.d.ts +2 -1
  50. package/dist/room-types.d.ts.map +1 -1
  51. package/dist/room-types.js +8 -0
  52. package/dist/types.d.ts +10 -21
  53. package/dist/types.d.ts.map +1 -1
  54. package/dist/validate.d.ts +2 -0
  55. package/dist/validate.d.ts.map +1 -1
  56. package/dist/validate.js +41 -12
  57. package/dist/view.d.ts +5 -0
  58. package/dist/view.d.ts.map +1 -0
  59. package/dist/view.js +27 -0
  60. package/dist/yaml.d.ts +3 -1
  61. package/dist/yaml.d.ts.map +1 -1
  62. package/dist/yaml.js +153 -32
  63. package/fixtures/README.md +53 -56
  64. package/fixtures/cases/absent-link-dangles/{schema.yaml → schema.md} +2 -0
  65. package/fixtures/cases/absent-optional-field/{schema.yaml → schema.md} +2 -0
  66. package/fixtures/cases/absolute-link/{schema.yaml → schema.md} +2 -0
  67. package/fixtures/cases/attachment-reference-any-file/{schema.yaml → schema.md} +2 -0
  68. package/fixtures/cases/attachment-reference-dangles/{schema.yaml → schema.md} +2 -0
  69. package/fixtures/cases/attachment-reference-outside/{schema.yaml → schema.md} +2 -0
  70. package/fixtures/cases/binary-any-reference/{schema.yaml → schema.md} +2 -0
  71. package/fixtures/cases/binary-document-collision/{schema.yaml → schema.md} +2 -0
  72. package/fixtures/cases/binary-image-dangles/{schema.yaml → schema.md} +2 -0
  73. package/fixtures/cases/binary-link-dangles/{schema.yaml → schema.md} +2 -0
  74. package/fixtures/cases/binary-link-outside-collection/{schema.yaml → schema.md} +2 -0
  75. package/fixtures/cases/binary-prototype-reference/{schema.yaml → schema.md} +2 -0
  76. package/fixtures/cases/binary-typed-reference/{schema.yaml → schema.md} +2 -0
  77. package/fixtures/cases/block-scalar-frontmatter/expected.json +1 -0
  78. package/fixtures/cases/block-scalar-frontmatter/library/notes/literal.md +17 -0
  79. package/fixtures/cases/block-scalar-frontmatter/library/skills/notes/SKILL.md +10 -0
  80. package/fixtures/cases/boolean-field/{schema.yaml → schema.md} +2 -0
  81. package/fixtures/cases/{duplicate-link-definition/schema.yaml → bracketed-link-definition/schema.md} +2 -0
  82. package/fixtures/cases/closed-nested-object/{schema.yaml → schema.md} +2 -0
  83. package/fixtures/cases/composed-root-reference/{schema.yaml → schema.md} +2 -0
  84. package/fixtures/cases/conditional-long-text/{schema.yaml → schema.md} +2 -0
  85. package/fixtures/cases/cross-room-link/{schema.yaml → schema.md} +2 -0
  86. package/fixtures/cases/cross-room-reference/{schema.yaml → schema.md} +2 -0
  87. package/fixtures/cases/date-time-format/{schema.yaml → schema.md} +2 -0
  88. package/fixtures/cases/declared-binary-links/schema.md +3 -0
  89. package/fixtures/cases/default-unfilled/schema.md +57 -0
  90. package/fixtures/cases/defs-pattern/schema.md +57 -0
  91. package/fixtures/cases/dependent-rule/schema.md +57 -0
  92. package/fixtures/cases/{bracketed-link-definition/schema.yaml → duplicate-link-definition/schema.md} +2 -0
  93. package/fixtures/cases/email-format/schema.md +57 -0
  94. package/fixtures/cases/equal-labels/{schema.yaml → schema.md} +2 -0
  95. package/fixtures/cases/fenced-link-definition/schema.md +7 -0
  96. package/fixtures/cases/field-enum/{schema.yaml → schema.md} +2 -0
  97. package/fixtures/cases/frontmatter-construct/context.json +1 -0
  98. package/fixtures/cases/frontmatter-construct/expected.json +7 -0
  99. package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
  100. package/fixtures/cases/integer-field/schema.md +57 -0
  101. package/fixtures/cases/interrupted-link-definition/schema.md +3 -0
  102. package/fixtures/cases/json-schema-constructs/schema.md +57 -0
  103. package/fixtures/cases/labels-in-the-rooms-language/{schema.yaml → schema.md} +2 -0
  104. package/fixtures/cases/lazy-list-item/{schema.yaml → schema.md} +2 -0
  105. package/fixtures/cases/link-into-a-reserved-name/{schema.yaml → schema.md} +2 -0
  106. package/fixtures/cases/list-item-enum/{schema.yaml → schema.md} +2 -0
  107. package/fixtures/cases/list-item-kind/{schema.yaml → schema.md} +2 -0
  108. package/fixtures/cases/list-items/{schema.yaml → schema.md} +2 -0
  109. package/fixtures/cases/list-of-objects-closed/schema.md +57 -0
  110. package/fixtures/cases/list-of-objects-item/schema.md +57 -0
  111. package/fixtures/cases/list-of-objects-reference/{schema.yaml → schema.md} +2 -0
  112. package/fixtures/cases/list-reference-path/{schema.yaml → schema.md} +2 -0
  113. package/fixtures/cases/list-reference-type/{schema.yaml → schema.md} +2 -0
  114. package/fixtures/cases/list-size/schema.md +57 -0
  115. package/fixtures/cases/long-fence-link-definition/schema.md +3 -0
  116. package/fixtures/cases/long-value-past-six-levels/{schema.yaml → schema.md} +2 -0
  117. package/fixtures/cases/malformed-definition/{schema.yaml → schema.md} +2 -0
  118. package/fixtures/cases/malformed-list/{schema.yaml → schema.md} +2 -0
  119. package/fixtures/cases/member-document/{schema.yaml → schema.md} +2 -0
  120. package/fixtures/cases/member-on-another-type/{schema.yaml → schema.md} +2 -0
  121. package/fixtures/cases/missing-required-field/{schema.yaml → schema.md} +2 -0
  122. package/fixtures/cases/misspelled-key/schema.md +57 -0
  123. package/fixtures/cases/name-not-a-string/{schema.yaml → schema.md} +2 -0
  124. package/fixtures/cases/nested-defs/{schema.yaml → schema.md} +2 -0
  125. package/fixtures/cases/nested-object-reference/schema.md +34 -0
  126. package/fixtures/cases/nested-reference/schema.md +34 -0
  127. package/fixtures/cases/nested-required-field/schema.md +57 -0
  128. package/fixtures/cases/numeric-range/schema.md +57 -0
  129. package/fixtures/cases/one-key-two-labels/{schema.yaml → schema.md} +2 -0
  130. package/fixtures/cases/one-key-two-types/{schema.yaml → schema.md} +2 -0
  131. package/fixtures/cases/one-of-variant/schema.md +57 -0
  132. package/fixtures/cases/other-room-reference/schema.md +34 -0
  133. package/fixtures/cases/paragraph-link-definition/schema.md +3 -0
  134. package/fixtures/cases/prototype-field/schema.md +7 -0
  135. package/fixtures/cases/quoted-link-definition/schema.md +3 -0
  136. package/fixtures/cases/reference-into-a-reserved-name/{schema.yaml → schema.md} +2 -0
  137. package/fixtures/cases/reference-to-any-file-name/context.json +1 -0
  138. package/fixtures/cases/reference-to-any-file-name/expected.json +1 -0
  139. package/fixtures/cases/reference-to-any-file-name/library/people/100%.md +4 -0
  140. package/fixtures/cases/reference-to-any-file-name/library/people/C#.md +4 -0
  141. package/fixtures/cases/reference-to-any-file-name/library/people/My notes.md +4 -0
  142. package/fixtures/cases/reference-to-any-file-name/library/people/[draft].md +4 -0
  143. package/fixtures/cases/reference-to-any-file-name/library/people/c (d).md +4 -0
  144. package/fixtures/cases/reference-to-any-file-name/library/people/caf/303/251.md +4 -0
  145. package/fixtures/cases/reference-to-any-file-name/library/people//320/236/321/202/321/207/321/221/321/202.md +4 -0
  146. package/fixtures/cases/reference-to-any-file-name/library/tasks/bracket.md +9 -0
  147. package/fixtures/cases/reference-to-any-file-name/library/tasks/cyrillic.md +9 -0
  148. package/fixtures/cases/reference-to-any-file-name/library/tasks/decomposed.md +9 -0
  149. package/fixtures/cases/reference-to-any-file-name/library/tasks/hash.md +9 -0
  150. package/fixtures/cases/reference-to-any-file-name/library/tasks/parenthesis.md +9 -0
  151. package/fixtures/cases/reference-to-any-file-name/library/tasks/percent.md +9 -0
  152. package/fixtures/cases/reference-to-any-file-name/library/tasks/spaced.md +9 -0
  153. package/fixtures/cases/{referenced-missing-file/schema.yaml → reference-to-any-file-name/schema.md} +2 -0
  154. package/fixtures/cases/referenced-missing-file/schema.md +12 -0
  155. package/fixtures/cases/referenced-missing-non-latin-file/context.json +1 -0
  156. package/fixtures/cases/referenced-missing-non-latin-file/expected.json +6 -0
  157. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/a.md +9 -0
  158. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/b.md +9 -0
  159. package/fixtures/cases/referenced-missing-non-latin-file/schema.md +12 -0
  160. package/fixtures/cases/remote-ref/{schema.yaml → schema.md} +2 -0
  161. package/fixtures/cases/schema-body-ignored/context.json +1 -0
  162. package/fixtures/cases/schema-body-ignored/expected.json +1 -0
  163. package/fixtures/cases/schema-body-ignored/schema.md +9 -0
  164. package/fixtures/cases/schema-type-named-folders/context.json +1 -0
  165. package/fixtures/cases/schema-type-named-folders/expected.json +5 -0
  166. package/fixtures/cases/schema-type-named-folders/schema.md +5 -0
  167. package/fixtures/cases/schema-type-named-type/context.json +1 -0
  168. package/fixtures/cases/schema-type-named-type/expected.json +5 -0
  169. package/fixtures/cases/{unknown-type/schema.yaml → schema-type-named-type/schema.md} +3 -1
  170. package/fixtures/cases/second-member-document/{schema.yaml → schema.md} +2 -0
  171. package/fixtures/cases/sections-keyword-refused/{schema.yaml → schema.md} +2 -0
  172. package/fixtures/cases/shortcut-reference-link/schema.md +7 -0
  173. package/fixtures/cases/string-length/schema.md +57 -0
  174. package/fixtures/cases/submission-keys/{schema.yaml → schema.md} +2 -0
  175. package/fixtures/cases/text-field-kind/{schema.yaml → schema.md} +2 -0
  176. package/fixtures/cases/thematic-break-ends-the-values/{schema.yaml → schema.md} +2 -0
  177. package/fixtures/cases/truncated-link-definition/schema.md +3 -0
  178. package/fixtures/cases/typed-path-names-another-type/{schema.yaml → schema.md} +2 -0
  179. package/fixtures/cases/typed-path-names-its-type/{schema.yaml → schema.md} +2 -0
  180. package/fixtures/cases/typed-path-names-no-type/{schema.yaml → schema.md} +2 -0
  181. package/fixtures/cases/types-folder-content/{schema.yaml → schema.md} +2 -0
  182. package/fixtures/cases/undeclared-field/schema.md +7 -0
  183. package/fixtures/cases/unevaluated-items-closed/{schema.yaml → schema.md} +2 -0
  184. package/fixtures/cases/unique-in-app-schema/context.json +1 -0
  185. package/fixtures/cases/unique-in-app-schema/expected.json +5 -0
  186. package/fixtures/cases/unique-in-app-schema/schema.yaml +7 -0
  187. package/fixtures/cases/unique-indexed-field/context.json +1 -0
  188. package/fixtures/cases/unique-indexed-field/expected.json +1 -0
  189. package/fixtures/cases/unique-indexed-field/library/tickets/first.md +8 -0
  190. package/fixtures/cases/unique-indexed-field/library/tickets/second.md +8 -0
  191. package/fixtures/cases/unique-indexed-field/schema.md +9 -0
  192. package/fixtures/cases/unique-off-indexed-field/context.json +1 -0
  193. package/fixtures/cases/unique-off-indexed-field/expected.json +5 -0
  194. package/fixtures/cases/unique-off-indexed-field/schema.md +9 -0
  195. package/fixtures/cases/unlisted-reference-type/{schema.yaml → schema.md} +2 -0
  196. package/fixtures/cases/unnamed-typed-path-checks-its-fields/{schema.yaml → schema.md} +2 -0
  197. package/fixtures/cases/unnamed-typed-path-names-a-type/{schema.yaml → schema.md} +2 -0
  198. package/fixtures/cases/unnamed-typed-path-reads-its-type/{schema.yaml → schema.md} +2 -0
  199. package/fixtures/cases/unnamed-typed-path-without-a-body/{schema.yaml → schema.md} +2 -0
  200. package/fixtures/cases/unresolved-link/schema.md +7 -0
  201. package/fixtures/cases/valid-typed-document/{schema.yaml → schema.md} +2 -0
  202. package/fixtures/cases/wide-item-fence-link/schema.md +3 -0
  203. package/fixtures/forms.json +24 -0
  204. package/fixtures/preamble.json +4 -4
  205. package/fixtures/queries.json +413 -1
  206. package/fixtures/references.json +15 -0
  207. package/package.json +1 -1
  208. package/dist/divide.d.ts +0 -3
  209. package/dist/divide.d.ts.map +0 -1
  210. package/dist/divide.js +0 -321
  211. package/dist/project.d.ts +0 -22
  212. package/dist/project.d.ts.map +0 -1
  213. package/dist/project.js +0 -101
  214. package/fixtures/cases/declared-binary-links/schema.yaml +0 -1
  215. package/fixtures/cases/default-unfilled/schema.yaml +0 -55
  216. package/fixtures/cases/defs-pattern/schema.yaml +0 -55
  217. package/fixtures/cases/dependent-rule/schema.yaml +0 -55
  218. package/fixtures/cases/email-format/schema.yaml +0 -55
  219. package/fixtures/cases/fenced-link-definition/schema.yaml +0 -5
  220. package/fixtures/cases/frontmatter-schema/expected.json +0 -5
  221. package/fixtures/cases/integer-field/schema.yaml +0 -55
  222. package/fixtures/cases/interrupted-link-definition/schema.yaml +0 -1
  223. package/fixtures/cases/json-schema-constructs/schema.yaml +0 -55
  224. package/fixtures/cases/list-of-objects-closed/schema.yaml +0 -55
  225. package/fixtures/cases/list-of-objects-item/schema.yaml +0 -55
  226. package/fixtures/cases/list-size/schema.yaml +0 -55
  227. package/fixtures/cases/long-fence-link-definition/schema.yaml +0 -1
  228. package/fixtures/cases/misspelled-key/schema.yaml +0 -55
  229. package/fixtures/cases/nested-object-reference/schema.yaml +0 -32
  230. package/fixtures/cases/nested-reference/schema.yaml +0 -32
  231. package/fixtures/cases/nested-required-field/schema.yaml +0 -55
  232. package/fixtures/cases/numeric-range/schema.yaml +0 -55
  233. package/fixtures/cases/one-of-variant/schema.yaml +0 -55
  234. package/fixtures/cases/other-room-reference/schema.yaml +0 -32
  235. package/fixtures/cases/paragraph-link-definition/schema.yaml +0 -1
  236. package/fixtures/cases/prototype-field/schema.yaml +0 -5
  237. package/fixtures/cases/quoted-link-definition/schema.yaml +0 -1
  238. package/fixtures/cases/shortcut-reference-link/schema.yaml +0 -5
  239. package/fixtures/cases/string-length/schema.yaml +0 -55
  240. package/fixtures/cases/truncated-link-definition/schema.yaml +0 -1
  241. package/fixtures/cases/undeclared-field/schema.yaml +0 -5
  242. package/fixtures/cases/unresolved-link/schema.yaml +0 -5
  243. package/fixtures/cases/wide-item-fence-link/schema.yaml +0 -1
  244. package/fixtures/division.json +0 -454
  245. package/fixtures/projection.json +0 -358
  246. /package/fixtures/cases/{frontmatter-schema → block-scalar-frontmatter}/context.json +0 -0
  247. /package/fixtures/cases/{frontmatter-schema/schema.yaml → unknown-type/schema.md} +0 -0
@@ -1,5 +0,0 @@
1
- task:
2
- properties:
3
- title: { type: string }
4
- description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
5
- required: [ title, description ]
@@ -1 +0,0 @@
1
- note: {}
@@ -1,454 +0,0 @@
1
- {
2
- "schema": "task:\n type: object\n properties:\n name: { type: string }\n status: { enum: [open, done] }\n description: { type: string, contentMediaType: text/markdown, title: Description }\n acceptance: { type: array, items: { type: string, reference: person }, title: Acceptance }\n required: [status]\nperson: {}\n",
3
- "cases": [
4
- {
5
- "name": "a Document whose whole input fits the bound is one Span carrying its projection",
6
- "file": "tasks/one.md",
7
- "source": "---\ntype: task\n---\n# Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n",
8
- "documentTargets": [],
9
- "definition": "task",
10
- "bound": 4096,
11
- "expected": {
12
- "ok": true,
13
- "spans": [
14
- {
15
- "text": "Ship the release\n\nPreamble prose.\n\nBody of the description.\n",
16
- "source": "Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n"
17
- }
18
- ]
19
- }
20
- },
21
- {
22
- "name": "an input over the bound packs adjacent values, ranges and heading nodes into whole units",
23
- "file": "tasks/one.md",
24
- "source": "---\ntype: task\n---\n# Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n\n## Notes\n\nNotes prose.\n",
25
- "documentTargets": [],
26
- "definition": "task",
27
- "bound": 45,
28
- "expected": {
29
- "ok": true,
30
- "spans": [
31
- {
32
- "text": "Ship the release\n\nPreamble prose.\n\n",
33
- "source": "Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n"
34
- },
35
- {
36
- "text": "Body of the description.\n\n",
37
- "source": "Body of the description.\n\n"
38
- },
39
- {
40
- "text": "## Notes\n\nNotes prose.\n",
41
- "source": "## Notes\n\nNotes prose.\n"
42
- }
43
- ]
44
- }
45
- },
46
- {
47
- "name": "a heading node over the bound divides into adjacent blocks carrying its own heading",
48
- "file": "tasks/one.md",
49
- "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nFirst paragraph of the overview.\n\nSecond paragraph of the overview.\n\n## Notes\n\nShort note.\n",
50
- "documentTargets": [],
51
- "definition": "task",
52
- "bound": 50,
53
- "expected": {
54
- "ok": true,
55
- "spans": [
56
- {
57
- "text": "Task\n\n",
58
- "source": "Task"
59
- },
60
- {
61
- "text": "## Overview\n\nFirst paragraph of the overview.\n\n",
62
- "source": "## Overview\n\nFirst paragraph of the overview.\n\n"
63
- },
64
- {
65
- "text": "## Overview\n\nSecond paragraph of the overview.\n\n",
66
- "source": "Second paragraph of the overview.\n\n"
67
- },
68
- {
69
- "text": "## Notes\n\nShort note.\n",
70
- "source": "## Notes\n\nShort note.\n"
71
- }
72
- ]
73
- }
74
- },
75
- {
76
- "name": "a node continuation and the next whole sibling stay in their own Spans",
77
- "file": "tasks/one.md",
78
- "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nFirst paragraph of the overview.\n\nSecond paragraph of the overview.\n\n## Notes\n\nShort note.\n",
79
- "documentTargets": [],
80
- "definition": "task",
81
- "bound": 75,
82
- "expected": {
83
- "ok": true,
84
- "spans": [
85
- {
86
- "text": "Task\n\n",
87
- "source": "Task"
88
- },
89
- {
90
- "text": "## Overview\n\nFirst paragraph of the overview.\n\n",
91
- "source": "## Overview\n\nFirst paragraph of the overview.\n\n"
92
- },
93
- {
94
- "text": "## Overview\n\nSecond paragraph of the overview.\n\n",
95
- "source": "Second paragraph of the overview.\n\n"
96
- },
97
- {
98
- "text": "## Notes\n\nShort note.\n",
99
- "source": "## Notes\n\nShort note.\n"
100
- }
101
- ]
102
- }
103
- },
104
- {
105
- "name": "a continuation Span carries its own node heading and never an ancestor heading",
106
- "file": "tasks/one.md",
107
- "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nIntro line.\n\n### Detail\n\nDetail paragraph one.\n\nDetail paragraph two.\n",
108
- "documentTargets": [],
109
- "definition": "task",
110
- "bound": 40,
111
- "expected": {
112
- "ok": true,
113
- "spans": [
114
- {
115
- "text": "Task\n\n",
116
- "source": "Task"
117
- },
118
- {
119
- "text": "## Overview\n\nIntro line.\n\n",
120
- "source": "## Overview\n\nIntro line.\n\n"
121
- },
122
- {
123
- "text": "### Detail\n\nDetail paragraph one.\n\n",
124
- "source": "### Detail\n\nDetail paragraph one.\n\n"
125
- },
126
- {
127
- "text": "### Detail\n\nDetail paragraph two.\n",
128
- "source": "Detail paragraph two.\n"
129
- }
130
- ]
131
- }
132
- },
133
- {
134
- "name": "a block over the bound divides into sentences that repeat their predecessor",
135
- "file": "tasks/one.md",
136
- "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nOne. Two. Three. Four.\n",
137
- "documentTargets": [],
138
- "definition": "task",
139
- "bound": 30,
140
- "expected": {
141
- "ok": true,
142
- "spans": [
143
- {
144
- "text": "Task\n\n",
145
- "source": "Task"
146
- },
147
- {
148
- "text": "## Overview\n\nOne. Two. Three. ",
149
- "source": "## Overview\n\nOne. Two. Three. "
150
- },
151
- {
152
- "text": "## Overview\n\nThree. Four.\n",
153
- "source": "Three. Four.\n"
154
- }
155
- ]
156
- }
157
- },
158
- {
159
- "name": "a single sentence over the bound divides at a bound cut inside it",
160
- "file": "tasks/one.md",
161
- "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\naaaa bbbb cccc dddd eeee\n",
162
- "documentTargets": [],
163
- "definition": "task",
164
- "bound": 20,
165
- "expected": {
166
- "ok": true,
167
- "spans": [
168
- {
169
- "text": "Task\n\n",
170
- "source": "Task"
171
- },
172
- {
173
- "text": "## Overview\n\naaaa",
174
- "source": "## Overview\n\naaaa"
175
- },
176
- {
177
- "text": "## Overview\n\n bbbb",
178
- "source": " bbbb"
179
- },
180
- {
181
- "text": "## Overview\n\n cccc",
182
- "source": " cccc"
183
- },
184
- {
185
- "text": "## Overview\n\n dddd",
186
- "source": " dddd"
187
- },
188
- {
189
- "text": "## Overview\n\n eeee\n",
190
- "source": " eeee\n"
191
- }
192
- ]
193
- }
194
- },
195
- {
196
- "name": "an untyped input with no definition descends the same ladder",
197
- "file": "notes/one.md",
198
- "source": "# Title\n\nIntro paragraph about the whole thing.\n\n## Alpha\n\nAlpha one. Alpha two.\n\n### Deep\n\nDeep prose here.\n\n## Beta\n\nBeta prose.\n",
199
- "documentTargets": [],
200
- "definition": null,
201
- "bound": 60,
202
- "expected": {
203
- "ok": true,
204
- "spans": [
205
- {
206
- "text": "# Title\n\nIntro paragraph about the whole thing.\n\n",
207
- "source": "# Title\n\nIntro paragraph about the whole thing.\n\n"
208
- },
209
- {
210
- "text": "## Alpha\n\nAlpha one. Alpha two.\n\n",
211
- "source": "## Alpha\n\nAlpha one. Alpha two.\n\n"
212
- },
213
- {
214
- "text": "### Deep\n\nDeep prose here.\n\n",
215
- "source": "### Deep\n\nDeep prose here.\n\n"
216
- },
217
- {
218
- "text": "## Beta\n\nBeta prose.\n",
219
- "source": "## Beta\n\nBeta prose.\n"
220
- }
221
- ]
222
- }
223
- },
224
- {
225
- "name": "a Document that declares the built-in any type divides its body after the fence",
226
- "file": "notes/two.md",
227
- "source": "---\ntype: any\ntitle: Note\n---\n\n## Notes\n\nRead it.\n",
228
- "documentTargets": [],
229
- "definition": null,
230
- "bound": 4096,
231
- "expected": {
232
- "ok": true,
233
- "spans": [
234
- {
235
- "text": "\n## Notes\n\nRead it.\n",
236
- "source": "\n## Notes\n\nRead it.\n"
237
- }
238
- ]
239
- }
240
- },
241
- {
242
- "name": "an internal link embeds its label and addresses the destination the author wrote",
243
- "file": "tasks/one.md",
244
- "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n\n## Overview\n\nRead [the plan](../plans/q3.md) before starting.\n\n## Notes\n\nShort note.\n",
245
- "documentTargets": [
246
- "plans/q3.md"
247
- ],
248
- "definition": "task",
249
- "bound": 50,
250
- "expected": {
251
- "ok": true,
252
- "spans": [
253
- {
254
- "text": "Task\n\n",
255
- "source": "Task"
256
- },
257
- {
258
- "text": "## Overview\n\nRead the plan before starting.\n\n",
259
- "source": "## Overview\n\nRead [the plan](../plans/q3.md) before starting.\n\n"
260
- },
261
- {
262
- "text": "## Notes\n\nShort note.\n",
263
- "source": "## Notes\n\nShort note.\n"
264
- }
265
- ]
266
- }
267
- },
268
- {
269
- "name": "a value list that holds no prose stays outside the text and inside the extent",
270
- "file": "tasks/one.md",
271
- "source": "---\ntype: task\n---\n# Task\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Notes\n\nShort note.\n",
272
- "documentTargets": [],
273
- "definition": "task",
274
- "bound": 4096,
275
- "expected": {
276
- "ok": true,
277
- "spans": [
278
- {
279
- "text": "Task\n\nPreamble prose.\n\n## Notes\n\nShort note.\n",
280
- "source": "Task\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Notes\n\nShort note.\n"
281
- }
282
- ]
283
- }
284
- },
285
- {
286
- "name": "a Document that declares a type the caller supplies no definition for is refused",
287
- "file": "tasks/one.md",
288
- "source": "---\ntype: task\n---\n# Ship the release\n\n- **status**: open\n- **Acceptance**:\n - [Ana](people/ana.md)\n\nPreamble prose.\n\n## Description\n\nBody of the description.\n",
289
- "documentTargets": [],
290
- "definition": null,
291
- "bound": 4096,
292
- "expected": {
293
- "ok": false,
294
- "refusal": {
295
- "file": "tasks/one.md",
296
- "rule": "unknown-type"
297
- }
298
- }
299
- },
300
- {
301
- "name": "a bound that cannot hold one whole character is refused before any division",
302
- "file": "notes/one.md",
303
- "source": "## Notes\n\nShort note.\n",
304
- "documentTargets": [],
305
- "definition": null,
306
- "bound": 1,
307
- "expected": {
308
- "ok": false,
309
- "refusal": {
310
- "file": "notes/one.md",
311
- "rule": "division-bound"
312
- }
313
- }
314
- },
315
- {
316
- "name": "a free-text value written with an escape embeds bare and addresses the escape it was written with",
317
- "file": "tasks/one.md",
318
- "source": "---\ntype: task\n---\n# Ship: the release \\#\n\n- **status**: open\n\nBody prose.\n",
319
- "documentTargets": [],
320
- "definition": "task",
321
- "bound": 4096,
322
- "expected": {
323
- "ok": true,
324
- "spans": [
325
- {
326
- "text": "Ship: the release #\n\nBody prose.\n",
327
- "source": "Ship: the release \\#\n\n- **status**: open\n\nBody prose.\n"
328
- }
329
- ]
330
- }
331
- },
332
- {
333
- "name": "sentence division reads every terminator and closer and drops a carry the bound cannot hold",
334
- "file": "notes/three.md",
335
- "source": "## Ask\n\nReady? Go! He said \"no.\" Then (silence.) Done.\n",
336
- "documentTargets": [],
337
- "definition": null,
338
- "bound": 30,
339
- "expected": {
340
- "ok": true,
341
- "spans": [
342
- {
343
- "text": "## Ask\n\nReady? Go! ",
344
- "source": "## Ask\n\nReady? Go! "
345
- },
346
- {
347
- "text": "## Ask\n\nGo! He said \"no.\" ",
348
- "source": "Go! He said \"no.\" "
349
- },
350
- {
351
- "text": "## Ask\n\nThen (silence.) Done.\n",
352
- "source": "Then (silence.) Done.\n"
353
- }
354
- ]
355
- }
356
- },
357
- {
358
- "name": "a heading with no body of its own leads the first child node instead of standing alone",
359
- "file": "notes/four.md",
360
- "source": "## Part\n\n### Alpha\n\nAlpha prose that is long enough to matter.\n\n### Beta\n\nBeta prose.\n",
361
- "documentTargets": [],
362
- "definition": null,
363
- "bound": 70,
364
- "expected": {
365
- "ok": true,
366
- "spans": [
367
- {
368
- "text": "## Part\n\n### Alpha\n\nAlpha prose that is long enough to matter.\n\n",
369
- "source": "## Part\n\n### Alpha\n\nAlpha prose that is long enough to matter.\n\n"
370
- },
371
- {
372
- "text": "### Beta\n\nBeta prose.\n",
373
- "source": "### Beta\n\nBeta prose.\n"
374
- }
375
- ]
376
- }
377
- },
378
- {
379
- "name": "a heading the bound cannot hold beside any text is not repeated",
380
- "file": "notes/five.md",
381
- "source": "## An overview of the release\n\nFirst paragraph here.\n\nSecond paragraph here.\n",
382
- "documentTargets": [],
383
- "definition": null,
384
- "bound": 25,
385
- "expected": {
386
- "ok": true,
387
- "spans": [
388
- {
389
- "text": "## An overview of the",
390
- "source": "## An overview of the"
391
- },
392
- {
393
- "text": " release\n\nFirst paragraph",
394
- "source": " release\n\nFirst paragraph"
395
- },
396
- {
397
- "text": " here.\n\n",
398
- "source": " here.\n\n"
399
- },
400
- {
401
- "text": "Second paragraph here.\n",
402
- "source": "Second paragraph here.\n"
403
- }
404
- ]
405
- }
406
- },
407
- {
408
- "name": "a loose list is one block of its heading node",
409
- "file": "notes/list.md",
410
- "source": "## L\n\nIntro.\n\n- one\n\n- two\n\nAfter.\n",
411
- "documentTargets": [],
412
- "definition": null,
413
- "bound": 22,
414
- "expected": {
415
- "ok": true,
416
- "spans": [
417
- {
418
- "text": "## L\n\nIntro.\n\n",
419
- "source": "## L\n\nIntro.\n\n"
420
- },
421
- {
422
- "text": "## L\n\n- one\n\n- two\n\n",
423
- "source": "- one\n\n- two\n\n"
424
- },
425
- {
426
- "text": "## L\n\nAfter.\n",
427
- "source": "After.\n"
428
- }
429
- ]
430
- }
431
- },
432
- {
433
- "name": "a list right after a paragraph is a block of its own",
434
- "file": "notes/list.md",
435
- "source": "## L\n\nIntro.\n- one\n- two\n",
436
- "documentTargets": [],
437
- "definition": null,
438
- "bound": 20,
439
- "expected": {
440
- "ok": true,
441
- "spans": [
442
- {
443
- "text": "## L\n\nIntro.\n",
444
- "source": "## L\n\nIntro.\n"
445
- },
446
- {
447
- "text": "## L\n\n- one\n- two\n",
448
- "source": "- one\n- two\n"
449
- }
450
- ]
451
- }
452
- }
453
- ]
454
- }