@agentshouse/mdmodel 0.1.0-ca3c1be3cd1a3 → 0.1.0-caaa5bad9995d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API.md +56 -104
- package/README.md +0 -1
- package/dist/definition.d.ts +2 -1
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +48 -9
- package/dist/document.d.ts +3 -1
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +69 -17
- package/dist/facts.d.ts.map +1 -1
- package/dist/facts.js +3 -2
- package/dist/house-model.d.ts +67 -25
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +44 -14
- package/dist/house-references/patterns.d.ts +5 -1
- package/dist/house-references/patterns.d.ts.map +1 -1
- package/dist/house-references/patterns.js +8 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -9
- package/dist/indexed.d.ts +1 -0
- package/dist/indexed.d.ts.map +1 -1
- package/dist/indexed.js +8 -0
- package/dist/kinds.d.ts +7 -1
- package/dist/kinds.d.ts.map +1 -1
- package/dist/kinds.js +19 -0
- package/dist/markdown.d.ts +0 -4
- package/dist/markdown.d.ts.map +1 -1
- package/dist/markdown.js +1 -34
- package/dist/paths.d.ts +1 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +20 -4
- package/dist/query/language.d.ts +4 -1
- package/dist/query/language.d.ts.map +1 -1
- package/dist/query/language.js +4 -3
- package/dist/query/match.d.ts.map +1 -1
- package/dist/query/match.js +3 -24
- package/dist/query/rows.d.ts +4 -0
- package/dist/query/rows.d.ts.map +1 -1
- package/dist/query/rows.js +21 -0
- package/dist/query/sql.d.ts +7 -1
- package/dist/query/sql.d.ts.map +1 -1
- package/dist/query/sql.js +14 -3
- package/dist/query/walk.d.ts +69 -0
- package/dist/query/walk.d.ts.map +1 -0
- package/dist/query/walk.js +274 -0
- package/dist/reserved.d.ts +1 -0
- package/dist/reserved.d.ts.map +1 -1
- package/dist/reserved.js +15 -4
- package/dist/room-types.d.ts +2 -1
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +8 -0
- package/dist/types.d.ts +10 -21
- package/dist/types.d.ts.map +1 -1
- package/dist/validate.d.ts +2 -0
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +41 -12
- package/dist/view.d.ts +5 -0
- package/dist/view.d.ts.map +1 -0
- package/dist/view.js +27 -0
- package/dist/yaml.d.ts +3 -1
- package/dist/yaml.d.ts.map +1 -1
- package/dist/yaml.js +153 -32
- package/fixtures/README.md +53 -56
- package/fixtures/cases/absent-link-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/absent-optional-field/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/absolute-link/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/attachment-reference-any-file/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/attachment-reference-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/attachment-reference-outside/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-any-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-document-collision/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-image-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-link-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-link-outside-collection/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-prototype-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-typed-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/block-scalar-frontmatter/expected.json +1 -0
- 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/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/{duplicate-link-definition/schema.yaml → bracketed-link-definition/schema.md} +2 -0
- package/fixtures/cases/closed-nested-object/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/composed-root-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/conditional-long-text/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/cross-room-link/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/cross-room-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/date-time-format/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/declared-binary-links/schema.md +3 -0
- package/fixtures/cases/default-unfilled/schema.md +57 -0
- package/fixtures/cases/defs-pattern/schema.md +57 -0
- package/fixtures/cases/dependent-rule/schema.md +57 -0
- package/fixtures/cases/{bracketed-link-definition/schema.yaml → duplicate-link-definition/schema.md} +2 -0
- package/fixtures/cases/email-format/schema.md +57 -0
- package/fixtures/cases/equal-labels/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/fenced-link-definition/schema.md +7 -0
- package/fixtures/cases/field-enum/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/frontmatter-construct/context.json +1 -0
- package/fixtures/cases/frontmatter-construct/expected.json +7 -0
- package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
- package/fixtures/cases/integer-field/schema.md +57 -0
- package/fixtures/cases/interrupted-link-definition/schema.md +3 -0
- package/fixtures/cases/json-schema-constructs/schema.md +57 -0
- package/fixtures/cases/labels-in-the-rooms-language/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/lazy-list-item/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/link-into-a-reserved-name/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-item-enum/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-item-kind/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-items/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-of-objects-closed/schema.md +57 -0
- package/fixtures/cases/list-of-objects-item/schema.md +57 -0
- package/fixtures/cases/list-of-objects-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-reference-path/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-reference-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-size/schema.md +57 -0
- package/fixtures/cases/long-fence-link-definition/schema.md +3 -0
- package/fixtures/cases/long-value-past-six-levels/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/malformed-definition/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/malformed-list/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/member-document/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/member-on-another-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/missing-required-field/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/misspelled-key/schema.md +57 -0
- package/fixtures/cases/name-not-a-string/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/nested-defs/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/nested-object-reference/schema.md +34 -0
- package/fixtures/cases/nested-reference/schema.md +34 -0
- package/fixtures/cases/nested-required-field/schema.md +57 -0
- package/fixtures/cases/numeric-range/schema.md +57 -0
- package/fixtures/cases/one-key-two-labels/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/one-key-two-types/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/one-of-variant/schema.md +57 -0
- package/fixtures/cases/other-room-reference/schema.md +34 -0
- package/fixtures/cases/paragraph-link-definition/schema.md +3 -0
- package/fixtures/cases/prototype-field/schema.md +7 -0
- package/fixtures/cases/quoted-link-definition/schema.md +3 -0
- package/fixtures/cases/reference-into-a-reserved-name/{schema.yaml → schema.md} +2 -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/{referenced-missing-file/schema.yaml → reference-to-any-file-name/schema.md} +2 -0
- package/fixtures/cases/referenced-missing-file/schema.md +12 -0
- 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.md +12 -0
- package/fixtures/cases/remote-ref/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/schema-body-ignored/context.json +1 -0
- package/fixtures/cases/schema-body-ignored/expected.json +1 -0
- package/fixtures/cases/schema-body-ignored/schema.md +9 -0
- package/fixtures/cases/schema-type-named-folders/context.json +1 -0
- package/fixtures/cases/schema-type-named-folders/expected.json +5 -0
- package/fixtures/cases/schema-type-named-folders/schema.md +5 -0
- package/fixtures/cases/schema-type-named-type/context.json +1 -0
- package/fixtures/cases/schema-type-named-type/expected.json +5 -0
- package/fixtures/cases/{unknown-type/schema.yaml → schema-type-named-type/schema.md} +3 -1
- package/fixtures/cases/second-member-document/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/sections-keyword-refused/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/shortcut-reference-link/schema.md +7 -0
- package/fixtures/cases/string-length/schema.md +57 -0
- package/fixtures/cases/submission-keys/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/text-field-kind/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/thematic-break-ends-the-values/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/truncated-link-definition/schema.md +3 -0
- package/fixtures/cases/typed-path-names-another-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/typed-path-names-its-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/typed-path-names-no-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/types-folder-content/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/undeclared-field/schema.md +7 -0
- package/fixtures/cases/unevaluated-items-closed/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unique-in-app-schema/context.json +1 -0
- package/fixtures/cases/unique-in-app-schema/expected.json +5 -0
- package/fixtures/cases/unique-in-app-schema/schema.yaml +7 -0
- package/fixtures/cases/unique-indexed-field/context.json +1 -0
- package/fixtures/cases/unique-indexed-field/expected.json +1 -0
- package/fixtures/cases/unique-indexed-field/library/tickets/first.md +8 -0
- package/fixtures/cases/unique-indexed-field/library/tickets/second.md +8 -0
- package/fixtures/cases/unique-indexed-field/schema.md +9 -0
- package/fixtures/cases/unique-off-indexed-field/context.json +1 -0
- package/fixtures/cases/unique-off-indexed-field/expected.json +5 -0
- package/fixtures/cases/unique-off-indexed-field/schema.md +9 -0
- package/fixtures/cases/unlisted-reference-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unnamed-typed-path-checks-its-fields/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unnamed-typed-path-names-a-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unnamed-typed-path-reads-its-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unnamed-typed-path-without-a-body/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unresolved-link/schema.md +7 -0
- package/fixtures/cases/valid-typed-document/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/wide-item-fence-link/schema.md +3 -0
- package/fixtures/forms.json +24 -0
- package/fixtures/preamble.json +4 -4
- package/fixtures/queries.json +413 -1
- package/fixtures/references.json +15 -0
- package/package.json +1 -1
- package/dist/divide.d.ts +0 -3
- package/dist/divide.d.ts.map +0 -1
- package/dist/divide.js +0 -321
- package/dist/project.d.ts +0 -22
- package/dist/project.d.ts.map +0 -1
- package/dist/project.js +0 -101
- package/fixtures/cases/declared-binary-links/schema.yaml +0 -1
- package/fixtures/cases/default-unfilled/schema.yaml +0 -55
- package/fixtures/cases/defs-pattern/schema.yaml +0 -55
- package/fixtures/cases/dependent-rule/schema.yaml +0 -55
- package/fixtures/cases/email-format/schema.yaml +0 -55
- package/fixtures/cases/fenced-link-definition/schema.yaml +0 -5
- package/fixtures/cases/frontmatter-schema/expected.json +0 -5
- package/fixtures/cases/integer-field/schema.yaml +0 -55
- package/fixtures/cases/interrupted-link-definition/schema.yaml +0 -1
- package/fixtures/cases/json-schema-constructs/schema.yaml +0 -55
- package/fixtures/cases/list-of-objects-closed/schema.yaml +0 -55
- package/fixtures/cases/list-of-objects-item/schema.yaml +0 -55
- package/fixtures/cases/list-size/schema.yaml +0 -55
- package/fixtures/cases/long-fence-link-definition/schema.yaml +0 -1
- package/fixtures/cases/misspelled-key/schema.yaml +0 -55
- package/fixtures/cases/nested-object-reference/schema.yaml +0 -32
- package/fixtures/cases/nested-reference/schema.yaml +0 -32
- package/fixtures/cases/nested-required-field/schema.yaml +0 -55
- package/fixtures/cases/numeric-range/schema.yaml +0 -55
- package/fixtures/cases/one-of-variant/schema.yaml +0 -55
- package/fixtures/cases/other-room-reference/schema.yaml +0 -32
- package/fixtures/cases/paragraph-link-definition/schema.yaml +0 -1
- package/fixtures/cases/prototype-field/schema.yaml +0 -5
- package/fixtures/cases/quoted-link-definition/schema.yaml +0 -1
- package/fixtures/cases/shortcut-reference-link/schema.yaml +0 -5
- package/fixtures/cases/string-length/schema.yaml +0 -55
- package/fixtures/cases/truncated-link-definition/schema.yaml +0 -1
- package/fixtures/cases/undeclared-field/schema.yaml +0 -5
- package/fixtures/cases/unresolved-link/schema.yaml +0 -5
- package/fixtures/cases/wide-item-fence-link/schema.yaml +0 -1
- package/fixtures/division.json +0 -454
- package/fixtures/projection.json +0 -358
- /package/fixtures/cases/{frontmatter-schema → block-scalar-frontmatter}/context.json +0 -0
- /package/fixtures/cases/{frontmatter-schema/schema.yaml → unknown-type/schema.md} +0 -0
package/fixtures/queries.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schema": "task:\n type: object\n properties:\n title: { type: string }\n status: { enum: [open, done] }\n due: { type: string, format: date }\n at: { type: string, format: date-time }\n ends: { type: [string, \"null\"], format: date-time }\n place:\n type: object\n properties:\n city: { type: string }\n starts: { type: string, format: time }\n points: { type: number }\n count: { type: integer }\n done: { type: boolean }\n priority: { type: integer, enum: [1, 2, 3] }\n flagged: { enum: [true, false] }\n tier: { enum: [1, 2, null] }\n rank: { enum: [1, high] }\n code: { type: string, maxLength: 12 }\n owner: { type: string, reference: person }\n labels: { type: array, items: { type: string } }\n times: { type: array, items: { type: string, format: date-time } }\n steps:\n type: array\n items:\n type: object\n properties:\n name: { type: string }\n at: { type: string, format: date-time }\n indexed: [status, due, at, ends, starts, points, count, done, tier, code]\nperson:\n type: object\n properties:\n name: { type: string }\n",
|
|
2
|
+
"schema": "task:\n type: object\n properties:\n title: { type: string }\n status: { enum: [open, done] }\n due: { type: string, format: date }\n at: { type: string, format: date-time }\n ends: { type: [string, \"null\"], format: date-time }\n place:\n type: object\n properties:\n city: { type: string }\n starts: { type: string, format: time }\n points: { type: number }\n count: { type: integer }\n done: { type: boolean }\n priority: { type: integer, enum: [1, 2, 3] }\n flagged: { enum: [true, false] }\n tier: { enum: [1, 2, null] }\n rank: { enum: [1, high] }\n code: { type: string, maxLength: 12 }\n owner: { type: string, reference: person }\n blocked_by: { type: array, items: { type: string, reference: task } }\n labels: { type: array, items: { type: string } }\n times: { type: array, items: { type: string, format: date-time } }\n steps:\n type: array\n items:\n type: object\n properties:\n name: { type: string }\n at: { type: string, format: date-time }\n indexed: [status, due, at, ends, starts, points, count, done, tier, code]\nperson:\n type: object\n properties:\n name: { type: string }\n",
|
|
3
3
|
"documents": {
|
|
4
4
|
"task": {
|
|
5
5
|
"path": "tasks/one.md",
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
"count": 2,
|
|
17
17
|
"done": false,
|
|
18
18
|
"owner": "../people/ada.md",
|
|
19
|
+
"blocked_by": [
|
|
20
|
+
"two.md",
|
|
21
|
+
"three.md"
|
|
22
|
+
],
|
|
19
23
|
"labels": [
|
|
20
24
|
"urgent",
|
|
21
25
|
"home"
|
|
@@ -42,6 +46,7 @@
|
|
|
42
46
|
"status": "done",
|
|
43
47
|
"ends": null,
|
|
44
48
|
"labels": [],
|
|
49
|
+
"blocked_by": [],
|
|
45
50
|
"code": "Zeta"
|
|
46
51
|
}
|
|
47
52
|
},
|
|
@@ -85,6 +90,9 @@
|
|
|
85
90
|
"text": null,
|
|
86
91
|
"fields": {
|
|
87
92
|
"title": "Four",
|
|
93
|
+
"blocked_by": [
|
|
94
|
+
"two.md"
|
|
95
|
+
],
|
|
88
96
|
"status": "done",
|
|
89
97
|
"due": "2025-12-31",
|
|
90
98
|
"at": "2026-10-29T23:30:00-10:00",
|
|
@@ -104,6 +112,9 @@
|
|
|
104
112
|
"text": null,
|
|
105
113
|
"fields": {
|
|
106
114
|
"title": "Five",
|
|
115
|
+
"blocked_by": [
|
|
116
|
+
"three.md"
|
|
117
|
+
],
|
|
107
118
|
"status": "open",
|
|
108
119
|
"due": "2026-01-05",
|
|
109
120
|
"at": "2026-10-30T07:59:59.999999999Z",
|
|
@@ -123,6 +134,9 @@
|
|
|
123
134
|
"text": null,
|
|
124
135
|
"fields": {
|
|
125
136
|
"title": "Six",
|
|
137
|
+
"blocked_by": [
|
|
138
|
+
"gone.md"
|
|
139
|
+
],
|
|
126
140
|
"status": "done",
|
|
127
141
|
"due": "2026-10-30",
|
|
128
142
|
"at": "2026-10-30T09:00:00Z",
|
|
@@ -1033,6 +1047,404 @@
|
|
|
1033
1047
|
},
|
|
1034
1048
|
"document": "bare-task",
|
|
1035
1049
|
"matches": true
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "a list holds the value an indexed field holds",
|
|
1053
|
+
"query": {
|
|
1054
|
+
"where": {
|
|
1055
|
+
"/status": {
|
|
1056
|
+
"$in": [
|
|
1057
|
+
"done",
|
|
1058
|
+
"open"
|
|
1059
|
+
]
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"document": "task",
|
|
1064
|
+
"matches": true
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "a list naming null holds an explicit null",
|
|
1068
|
+
"query": {
|
|
1069
|
+
"where": {
|
|
1070
|
+
"/tier": {
|
|
1071
|
+
"$in": [
|
|
1072
|
+
2,
|
|
1073
|
+
null
|
|
1074
|
+
]
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
"document": "task-five",
|
|
1079
|
+
"matches": true
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"name": "a list naming only null leaves a missing value out",
|
|
1083
|
+
"query": {
|
|
1084
|
+
"where": {
|
|
1085
|
+
"/tier": {
|
|
1086
|
+
"$in": [
|
|
1087
|
+
null
|
|
1088
|
+
]
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
"document": "task",
|
|
1093
|
+
"matches": false
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"name": "a list holds a date-time at the same instant in another offset",
|
|
1097
|
+
"query": {
|
|
1098
|
+
"where": {
|
|
1099
|
+
"/at": {
|
|
1100
|
+
"$in": [
|
|
1101
|
+
"2026-10-30T08:00:00Z",
|
|
1102
|
+
"2026-10-31T00:00:00Z"
|
|
1103
|
+
]
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
"document": "task",
|
|
1108
|
+
"matches": true
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"name": "a list of booleans holds true",
|
|
1112
|
+
"query": {
|
|
1113
|
+
"where": {
|
|
1114
|
+
"/done": {
|
|
1115
|
+
"$in": [
|
|
1116
|
+
true
|
|
1117
|
+
]
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
"document": "task-four",
|
|
1122
|
+
"matches": true
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
"name": "an explicit null boolean equals null",
|
|
1126
|
+
"query": {
|
|
1127
|
+
"where": {
|
|
1128
|
+
"/done": null
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
"document": "task-six",
|
|
1132
|
+
"matches": true
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"name": "a range holds its inclusive lower bound",
|
|
1136
|
+
"query": {
|
|
1137
|
+
"where": {
|
|
1138
|
+
"/count": {
|
|
1139
|
+
"$gte": -1,
|
|
1140
|
+
"$lt": 2
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
"document": "task-five",
|
|
1145
|
+
"matches": true
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "a range leaves its exclusive upper bound out",
|
|
1149
|
+
"query": {
|
|
1150
|
+
"where": {
|
|
1151
|
+
"/count": {
|
|
1152
|
+
"$gte": -1,
|
|
1153
|
+
"$lt": 2
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
"document": "task",
|
|
1158
|
+
"matches": false
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"name": "an exclusive lower bound leaves its own value out",
|
|
1162
|
+
"query": {
|
|
1163
|
+
"where": {
|
|
1164
|
+
"/count": {
|
|
1165
|
+
"$gt": -1000000
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
"document": "task-seven",
|
|
1170
|
+
"matches": false
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"name": "a negative zero lies in a range closed at zero",
|
|
1174
|
+
"query": {
|
|
1175
|
+
"where": {
|
|
1176
|
+
"/points": {
|
|
1177
|
+
"$gte": 0,
|
|
1178
|
+
"$lte": 0
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
"document": "task-four",
|
|
1183
|
+
"matches": true
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"name": "a date range leaves its exclusive upper day out",
|
|
1187
|
+
"query": {
|
|
1188
|
+
"where": {
|
|
1189
|
+
"/due": {
|
|
1190
|
+
"$gte": "2025-12-31",
|
|
1191
|
+
"$lt": "2026-01-05"
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1195
|
+
"document": "task-five",
|
|
1196
|
+
"matches": false
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"name": "a time orders as its text",
|
|
1200
|
+
"query": {
|
|
1201
|
+
"where": {
|
|
1202
|
+
"/starts": {
|
|
1203
|
+
"$gte": "23:59:60Z"
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
"document": "task-six",
|
|
1208
|
+
"matches": true
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"name": "a date-time one nanosecond past an inclusive upper bound lies outside it",
|
|
1212
|
+
"query": {
|
|
1213
|
+
"where": {
|
|
1214
|
+
"/ends": {
|
|
1215
|
+
"$lte": "2026-10-30T08:00:00Z"
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
"document": "task-seven",
|
|
1220
|
+
"matches": false
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"name": "text past U+FFFD holds a letter beyond the Basic Multilingual Plane",
|
|
1224
|
+
"query": {
|
|
1225
|
+
"where": {
|
|
1226
|
+
"/code": {
|
|
1227
|
+
"$gt": "\ufffd"
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
"document": "task-six",
|
|
1232
|
+
"matches": true
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"name": "a closed text range holds its one value",
|
|
1236
|
+
"query": {
|
|
1237
|
+
"where": {
|
|
1238
|
+
"/code": {
|
|
1239
|
+
"$gte": "alpha",
|
|
1240
|
+
"$lte": "alpha"
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
"document": "task-five",
|
|
1245
|
+
"matches": true
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"name": "an equality and a range on two indexed fields hold together",
|
|
1249
|
+
"query": {
|
|
1250
|
+
"where": {
|
|
1251
|
+
"/status": "open",
|
|
1252
|
+
"/points": {
|
|
1253
|
+
"$gt": 2
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
"document": "task",
|
|
1258
|
+
"matches": true
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"name": "a hop keeps a Document whose reference names a matching Document",
|
|
1262
|
+
"query": {
|
|
1263
|
+
"hop": {
|
|
1264
|
+
"field": "/blocked_by",
|
|
1265
|
+
"where": {
|
|
1266
|
+
"/status": "open"
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
"document": "task-five",
|
|
1271
|
+
"matches": true,
|
|
1272
|
+
"refusedInMemory": "hop"
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"name": "a hop leaves out a Document whose references name no matching Document",
|
|
1276
|
+
"query": {
|
|
1277
|
+
"hop": {
|
|
1278
|
+
"field": "/blocked_by",
|
|
1279
|
+
"where": {
|
|
1280
|
+
"/status": "open"
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"document": "task-four",
|
|
1285
|
+
"matches": false,
|
|
1286
|
+
"refusedInMemory": "hop"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"name": "a hop keeps a list naming one matching Document and one that is not",
|
|
1290
|
+
"query": {
|
|
1291
|
+
"hop": {
|
|
1292
|
+
"field": "/blocked_by",
|
|
1293
|
+
"where": {
|
|
1294
|
+
"/status": "open"
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
"document": "task",
|
|
1299
|
+
"matches": true,
|
|
1300
|
+
"refusedInMemory": "hop"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"name": "a hop leaves out an empty reference list",
|
|
1304
|
+
"query": {
|
|
1305
|
+
"hop": {
|
|
1306
|
+
"field": "/blocked_by",
|
|
1307
|
+
"where": {
|
|
1308
|
+
"/status": "open"
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
"document": "bare-task",
|
|
1313
|
+
"matches": false,
|
|
1314
|
+
"refusedInMemory": "hop"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "a hop leaves out a missing reference field",
|
|
1318
|
+
"query": {
|
|
1319
|
+
"hop": {
|
|
1320
|
+
"field": "/blocked_by",
|
|
1321
|
+
"where": {
|
|
1322
|
+
"/status": "open"
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
"document": "spaced-task",
|
|
1327
|
+
"matches": false,
|
|
1328
|
+
"refusedInMemory": "hop"
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"name": "a hop leaves out a reference to no Document",
|
|
1332
|
+
"query": {
|
|
1333
|
+
"hop": {
|
|
1334
|
+
"field": "/blocked_by",
|
|
1335
|
+
"where": {
|
|
1336
|
+
"/status": "open"
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
"document": "task-six",
|
|
1341
|
+
"matches": false,
|
|
1342
|
+
"refusedInMemory": "hop"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"name": "none leaves out a Document whose reference names a matching Document",
|
|
1346
|
+
"query": {
|
|
1347
|
+
"hop": {
|
|
1348
|
+
"field": "/blocked_by",
|
|
1349
|
+
"where": {
|
|
1350
|
+
"/status": "open"
|
|
1351
|
+
},
|
|
1352
|
+
"none": true
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
"document": "task-five",
|
|
1356
|
+
"matches": false,
|
|
1357
|
+
"refusedInMemory": "hop"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"name": "none keeps a Document whose references name no matching Document",
|
|
1361
|
+
"query": {
|
|
1362
|
+
"hop": {
|
|
1363
|
+
"field": "/blocked_by",
|
|
1364
|
+
"where": {
|
|
1365
|
+
"/status": "open"
|
|
1366
|
+
},
|
|
1367
|
+
"none": true
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
"document": "task-four",
|
|
1371
|
+
"matches": true,
|
|
1372
|
+
"refusedInMemory": "hop"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "none leaves out a list naming one matching Document and one that is not",
|
|
1376
|
+
"query": {
|
|
1377
|
+
"hop": {
|
|
1378
|
+
"field": "/blocked_by",
|
|
1379
|
+
"where": {
|
|
1380
|
+
"/status": "open"
|
|
1381
|
+
},
|
|
1382
|
+
"none": true
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
"document": "task",
|
|
1386
|
+
"matches": false,
|
|
1387
|
+
"refusedInMemory": "hop"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"name": "none keeps an empty reference list",
|
|
1391
|
+
"query": {
|
|
1392
|
+
"hop": {
|
|
1393
|
+
"field": "/blocked_by",
|
|
1394
|
+
"where": {
|
|
1395
|
+
"/status": "open"
|
|
1396
|
+
},
|
|
1397
|
+
"none": true
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
"document": "bare-task",
|
|
1401
|
+
"matches": true,
|
|
1402
|
+
"refusedInMemory": "hop"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"name": "none keeps a missing reference field",
|
|
1406
|
+
"query": {
|
|
1407
|
+
"hop": {
|
|
1408
|
+
"field": "/blocked_by",
|
|
1409
|
+
"where": {
|
|
1410
|
+
"/status": "open"
|
|
1411
|
+
},
|
|
1412
|
+
"none": true
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
"document": "spaced-task",
|
|
1416
|
+
"matches": true,
|
|
1417
|
+
"refusedInMemory": "hop"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"name": "none keeps a reference to no Document",
|
|
1421
|
+
"query": {
|
|
1422
|
+
"hop": {
|
|
1423
|
+
"field": "/blocked_by",
|
|
1424
|
+
"where": {
|
|
1425
|
+
"/status": "open"
|
|
1426
|
+
},
|
|
1427
|
+
"none": true
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
"document": "task-six",
|
|
1431
|
+
"matches": true,
|
|
1432
|
+
"refusedInMemory": "hop"
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
"name": "none keeps a Document whose referenced Document is of a type the hop does not name",
|
|
1436
|
+
"query": {
|
|
1437
|
+
"hop": {
|
|
1438
|
+
"field": "/blocked_by",
|
|
1439
|
+
"types": [
|
|
1440
|
+
"person"
|
|
1441
|
+
],
|
|
1442
|
+
"none": true
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
"document": "task-five",
|
|
1446
|
+
"matches": true,
|
|
1447
|
+
"refusedInMemory": "hop"
|
|
1036
1448
|
}
|
|
1037
1449
|
],
|
|
1038
1450
|
"orders": [
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[
|
|
2
|
+
{ "name": "a Room", "reference": "r_3k9.q", "pattern": "room" },
|
|
3
|
+
{ "name": "an App", "reference": "a_3k9.q", "pattern": "app" },
|
|
4
|
+
{ "name": "a Space", "reference": "sp_3k9.q", "pattern": "space" },
|
|
5
|
+
{ "name": "a document", "reference": "d_3k9.q", "pattern": "document" },
|
|
6
|
+
{ "name": "an attachment", "reference": "at_3k9.q", "pattern": "attachment" },
|
|
7
|
+
{ "name": "a revision", "reference": "v_3k9.2.q", "pattern": "revision" },
|
|
8
|
+
{ "name": "a document's ordinal never starts with zero", "reference": "d_03k9.q", "pattern": null },
|
|
9
|
+
{ "name": "a revision's number never starts with zero", "reference": "v_3k9.02.q", "pattern": null },
|
|
10
|
+
{ "name": "a reference is lower case", "reference": "D_3K9.Q", "pattern": null },
|
|
11
|
+
{ "name": "an entry reference carries no revision", "reference": "at_3k9.2.q", "pattern": null },
|
|
12
|
+
{ "name": "a revision carries its entry's ordinal", "reference": "v_2.q", "pattern": null },
|
|
13
|
+
{ "name": "an authored file's old form", "reference": "af_3k9.q", "pattern": null },
|
|
14
|
+
{ "name": "a file revision's old form", "reference": "fr_3k9.2.q", "pattern": null }
|
|
15
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/mdmodel",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-caaa5bad9995d",
|
|
4
4
|
"description": "MD Type language, parser, validator, structured change application, Markdown syntax profile, and conformance fixtures",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/dist/divide.d.ts
DELETED
package/dist/divide.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"divide.d.ts","sourceRoot":"","sources":["../src/divide.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAgB,MAAM,YAAY,CAAC;AAwXpF,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,QAAQ,CAe3F"}
|