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