@agentshouse/mdmodel 0.1.0-cf26f43c2e4d9 → 0.1.0-cf46fc494ee20
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 +234 -237
- package/README.md +27 -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 +24 -11
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +188 -128
- package/dist/document.d.ts +15 -8
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +769 -140
- 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 +920 -0
- package/dist/house-model.d.ts.map +1 -0
- package/dist/house-model.js +504 -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 +44 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -11
- package/dist/indexed.d.ts +9 -0
- package/dist/indexed.d.ts.map +1 -0
- package/dist/indexed.js +55 -0
- package/dist/kinds.d.ts +21 -0
- package/dist/kinds.d.ts.map +1 -0
- package/dist/kinds.js +210 -0
- package/dist/markdown.d.ts +71 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +232 -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/moment.d.ts +7 -0
- package/dist/moment.d.ts.map +1 -0
- package/dist/moment.js +18 -0
- package/dist/not-ready.d.ts +2 -0
- package/dist/not-ready.d.ts.map +1 -0
- package/dist/not-ready.js +5 -0
- package/dist/paths.d.ts +16 -1
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +107 -22
- package/dist/pattern.d.ts.map +1 -1
- package/dist/pattern.js +4 -3
- package/dist/query/language.d.ts +257 -0
- package/dist/query/language.d.ts.map +1 -0
- package/dist/query/language.js +621 -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 +158 -0
- package/dist/query/sql.d.ts +45 -0
- package/dist/query/sql.d.ts.map +1 -0
- package/dist/query/sql.js +296 -0
- package/dist/query/walk.d.ts +63 -0
- package/dist/query/walk.d.ts.map +1 -0
- package/dist/query/walk.js +263 -0
- 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 +7 -0
- package/dist/reserved.d.ts.map +1 -0
- package/dist/reserved.js +32 -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 +1 -3
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +9 -73
- package/dist/types.d.ts +22 -38
- package/dist/types.d.ts.map +1 -1
- package/dist/validate.d.ts +12 -6
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +227 -179
- package/dist/yaml.d.ts +7 -5
- package/dist/yaml.d.ts.map +1 -1
- package/dist/yaml.js +166 -45
- package/fixtures/README.md +92 -69
- 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/block-scalar-frontmatter/library/notes/literal.md +17 -0
- package/fixtures/cases/block-scalar-frontmatter/library/skills/notes/SKILL.md +10 -0
- 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/frontmatter-construct/expected.json +7 -0
- package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
- 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/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/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/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/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/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/context.json +1 -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/context.json +1 -0
- 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/context.json +1 -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/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-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-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/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/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/reference-to-any-file-name/context.json +1 -0
- package/fixtures/cases/reference-to-any-file-name/expected.json +1 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/100%.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/C#.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/My notes.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/[draft].md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/c (d).md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/caf/303/251.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people//320/236/321/202/321/207/321/221/321/202.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/bracket.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/cyrillic.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/decomposed.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/hash.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/parenthesis.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/percent.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/spaced.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/schema.yaml +10 -0
- 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/referenced-missing-non-latin-file/context.json +1 -0
- package/fixtures/cases/referenced-missing-non-latin-file/expected.json +6 -0
- package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/a.md +9 -0
- package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/b.md +9 -0
- package/fixtures/cases/referenced-missing-non-latin-file/schema.yaml +10 -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/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-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/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/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/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/forms.json +371 -0
- package/fixtures/preamble.json +29 -8
- package/fixtures/queries.json +1562 -0
- 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 -163
- package/dist/condition.d.ts.map +0 -1
- package/dist/condition.js +0 -617
- package/dist/divide.d.ts +0 -3
- package/dist/divide.d.ts.map +0 -1
- package/dist/divide.js +0 -320
- 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/project.d.ts +0 -22
- package/dist/project.d.ts.map +0 -1
- package/dist/project.js +0 -128
- 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/division.json +0 -409
- package/fixtures/projection.json +0 -255
- /package/fixtures/cases/{conditional-section → block-scalar-frontmatter}/context.json +0 -0
- /package/fixtures/cases/{section-items → block-scalar-frontmatter}/expected.json +0 -0
- /package/fixtures/cases/{missing-section-item-kind → conditional-long-text}/context.json +0 -0
- /package/fixtures/cases/{null-refused → equal-labels}/context.json +0 -0
- /package/fixtures/cases/{open-map-value → frontmatter-construct}/context.json +0 -0
- /package/fixtures/cases/{section-item-enum → labels-in-the-rooms-language}/context.json +0 -0
- /package/fixtures/cases/{section-item-kind → lazy-list-item}/context.json +0 -0
- /package/fixtures/cases/{section-reference-path → link-into-a-reserved-name}/context.json +0 -0
- /package/fixtures/cases/{section-items → link-into-a-reserved-name-from-an-untyped-document}/context.json +0 -0
- /package/fixtures/cases/{section-reference-type → list-item-enum}/context.json +0 -0
- /package/fixtures/cases/{structured-section → list-item-kind}/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}/library/other.md +0 -0
- /package/fixtures/cases/{section-reference-type → list-reference-type}/library/note.md +0 -0
|
@@ -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
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
person:
|
|
2
2
|
properties:
|
|
3
3
|
name: { type: string }
|
|
4
|
-
required: [name]
|
|
4
|
+
required: [ name ]
|
|
5
5
|
task:
|
|
6
6
|
properties:
|
|
7
7
|
name: { type: string }
|
|
8
8
|
title: { type: string, minLength: 1 }
|
|
9
|
-
status: { enum: [open, in-progress, done] }
|
|
9
|
+
status: { enum: [ open, in-progress, done ] }
|
|
10
10
|
due: { type: string, format: date }
|
|
11
11
|
owner: { type: string, reference: person }
|
|
12
12
|
labels: { type: array, items: { type: string } }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Acceptance: { kind: list, 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,371 @@
|
|
|
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
|
+
"name": "a link and a reference to a moved name holding a space are written in angle brackets, its # encoded",
|
|
348
|
+
"type": "card",
|
|
349
|
+
"source": "---\ntype: card\n---\n# Plan\n\n- **Owner**: [Ana](<../people/a b.md>)\n\n## Notes\n\nSee [her](../people/a%20b.md#top) and [again](<../people/a b.md>).\n",
|
|
350
|
+
"changes": [
|
|
351
|
+
{
|
|
352
|
+
"kind": "reference",
|
|
353
|
+
"pointer": "/owner",
|
|
354
|
+
"value": "../people/c (d)%231.md",
|
|
355
|
+
"prior": "../people/a b.md"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"kind": "link",
|
|
359
|
+
"href": "../people/a%20b.md#top",
|
|
360
|
+
"to": "../people/c (d)#1.md"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"kind": "link",
|
|
364
|
+
"href": "../people/a b.md",
|
|
365
|
+
"to": "../people/c (d)#1.md"
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"expected": "---\ntype: card\n---\n# Plan\n\n- **Owner**: [Ana](<../people/c (d)%231.md>)\n\n## Notes\n\nSee [her](<../people/c (d)%231.md#top>) and [again](<../people/c (d)%231.md>).\n"
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
}
|
package/fixtures/preamble.json
CHANGED
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"source": "```md\n## Example\n```\n\n## Body\nKept.\n",
|
|
61
61
|
"preamble": "```md\n## Example\n```\n\n",
|
|
62
62
|
"value": "Example removed.\n",
|
|
63
|
-
"expected": "Example removed.\n## Body\nKept.\n"
|
|
63
|
+
"expected": "Example removed.\n\n## Body\nKept.\n"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"name": "tilde fence hides a heading",
|
|
67
67
|
"source": " ~~~md\n## Example\n ~~~\n\n## Body\nKept.",
|
|
68
68
|
"preamble": " ~~~md\n## Example\n ~~~\n\n",
|
|
69
69
|
"value": "Example removed.\n",
|
|
70
|
-
"expected": "Example removed.\n## Body\nKept."
|
|
70
|
+
"expected": "Example removed.\n\n## Body\nKept."
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"name": "unclosed fence carries the entire body",
|
|
@@ -77,11 +77,32 @@
|
|
|
77
77
|
"expected": "---\ntype: note\n---\nPlain replacement.\n"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
"name": "
|
|
81
|
-
"source": "# Title\n### Subheading\n> ## Quoted\n ## Indented\
|
|
82
|
-
"preamble": "# Title\n### Subheading\n> ## Quoted\n ## Indented\
|
|
80
|
+
"name": "quoted, indented-code and deeper headings stay in the preamble",
|
|
81
|
+
"source": "# Title\n### Subheading\n> ## Quoted\n ## Indented\n\n## Actual ##\nKept.\n",
|
|
82
|
+
"preamble": "# Title\n### Subheading\n> ## Quoted\n ## Indented\n\n",
|
|
83
83
|
"value": "Intro.\n",
|
|
84
|
-
"expected": "Intro.\n## Actual ##\nKept.\n"
|
|
84
|
+
"expected": "Intro.\n\n## Actual ##\nKept.\n"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "a setext heading opens a section",
|
|
88
|
+
"source": "Intro.\n\nBody\n------\nKept.\n",
|
|
89
|
+
"preamble": "Intro.\n\n",
|
|
90
|
+
"value": "New intro.\n\n",
|
|
91
|
+
"expected": "New intro.\n\nBody\n------\nKept.\n"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "an indented or empty H2 opens a section",
|
|
95
|
+
"source": "Intro.\n ## Body\nKept.\n##\nMore.\n",
|
|
96
|
+
"preamble": "Intro.\n",
|
|
97
|
+
"value": "New intro.\n",
|
|
98
|
+
"expected": "New intro.\n ## Body\nKept.\n##\nMore.\n"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "an HTML block hides a heading",
|
|
102
|
+
"source": "<!--\n## Hidden\n-->\n\n## Body\nKept.\n",
|
|
103
|
+
"preamble": "<!--\n## Hidden\n-->\n\n",
|
|
104
|
+
"value": "Intro.\n",
|
|
105
|
+
"expected": "Intro.\n\n## Body\nKept.\n"
|
|
85
106
|
},
|
|
86
107
|
{
|
|
87
108
|
"name": "Unicode and mixed newlines",
|
|
@@ -99,9 +120,9 @@
|
|
|
99
120
|
},
|
|
100
121
|
{
|
|
101
122
|
"name": "Runtime moved export link",
|
|
102
|
-
"source": "---\ntype: note\
|
|
123
|
+
"source": "---\ntype: note\n---\n\nFiled beside [the export](../data/export.csv).\n\n## Body\n\nThe destination above sits outside every section.\n",
|
|
103
124
|
"preamble": "\nFiled beside [the export](../data/export.csv).\n\n",
|
|
104
125
|
"value": "\nFiled beside [the export](../files/export.csv).\n\n",
|
|
105
|
-
"expected": "---\ntype: note\
|
|
126
|
+
"expected": "---\ntype: note\n---\n\nFiled beside [the export](../files/export.csv).\n\n## Body\n\nThe destination above sits outside every section.\n"
|
|
106
127
|
}
|
|
107
128
|
]
|