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