@agentshouse/mdmodel 0.1.0-caefdbe3e3d42 → 0.1.0-caf6545f57b5d
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 +160 -158
- package/README.md +14 -15
- package/dist/body.d.ts +85 -0
- package/dist/body.d.ts.map +1 -0
- package/dist/body.js +1083 -0
- package/dist/definition.d.ts +20 -10
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +174 -123
- package/dist/divide.d.ts.map +1 -1
- package/dist/divide.js +5 -4
- package/dist/document.d.ts +14 -7
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +720 -110
- 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 +1 -1
- package/dist/form.d.ts +4 -0
- package/dist/form.d.ts.map +1 -0
- package/dist/form.js +152 -0
- package/dist/index.d.ts +21 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -11
- 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/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/sql.d.ts.map +1 -1
- package/dist/query/sql.js +7 -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/schema.d.ts +0 -2
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +5 -68
- package/dist/types.d.ts +14 -7
- 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 +141 -179
- package/dist/yaml.d.ts.map +1 -1
- package/dist/yaml.js +4 -11
- 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 +51 -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 -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/dist/kinds.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ValueFacts } from './definition.js';
|
|
2
|
-
export
|
|
3
|
-
export type Kind = (typeof KINDS)[number];
|
|
2
|
+
export type Kind = 'string' | 'number' | 'integer' | 'boolean' | 'date' | 'date-time' | 'time' | 'enum' | 'reference';
|
|
4
3
|
export type Ordering = {
|
|
5
4
|
readonly direction: 'asc' | 'desc';
|
|
6
5
|
readonly nulls: 'first' | 'last';
|
|
@@ -10,6 +9,7 @@ export type Ordering = {
|
|
|
10
9
|
};
|
|
11
10
|
export declare function kindOf(facts: ValueFacts): Kind | null;
|
|
12
11
|
export declare function fitsKind(kind: Kind, facts: ValueFacts, value: unknown): boolean;
|
|
12
|
+
export declare function kindWords(facts: ValueFacts | undefined): readonly string[];
|
|
13
13
|
export declare function dated(value: unknown): value is string;
|
|
14
14
|
export declare function instant(value: unknown): bigint | undefined;
|
|
15
15
|
export declare function instantKey(value: unknown): string | null;
|
package/dist/kinds.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../src/kinds.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,
|
|
1
|
+
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../src/kinds.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,MAAM,IAAI,GACZ,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,WAAW,GACX,MAAM,GACN,MAAM,GACN,WAAW,CAAC;AAEhB,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;CAC1D,CAAC;AASF,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,IAAI,CAWrD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAW/E;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,MAAM,EAAE,CAe1E;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAErD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAqB1D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAGxD;AAaD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAO/D;AA4BD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAMlF"}
|
package/dist/kinds.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { format } from '@cfworker/json-schema';
|
|
2
2
|
import { normalize } from './paths.js';
|
|
3
|
-
export const KINDS = [
|
|
4
|
-
'string',
|
|
5
|
-
'number',
|
|
6
|
-
'integer',
|
|
7
|
-
'boolean',
|
|
8
|
-
'date',
|
|
9
|
-
'date-time',
|
|
10
|
-
'time',
|
|
11
|
-
'enum',
|
|
12
|
-
'reference',
|
|
13
|
-
];
|
|
14
3
|
const DATE_TIME = /^(\d{4})-(\d{2})-(\d{2})[Tt\s](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(?:[Zz]|([+-])(\d{2})(?::?(\d{2}))?)$/u;
|
|
15
4
|
const BEFORE_YEAR_ZERO = 62200000000000000000n;
|
|
16
5
|
const INSTANT_DIGITS = 21;
|
|
@@ -56,6 +45,26 @@ export function fitsKind(kind, facts, value) {
|
|
|
56
45
|
return format.time(value);
|
|
57
46
|
return true;
|
|
58
47
|
}
|
|
48
|
+
export function kindWords(facts) {
|
|
49
|
+
const kind = facts === undefined ? null : kindOf(facts);
|
|
50
|
+
if (kind === 'enum')
|
|
51
|
+
return (facts.values ?? []).map((value) => typeof value === 'string' ? value : JSON.stringify(value));
|
|
52
|
+
if (kind === 'number')
|
|
53
|
+
return ['a number'];
|
|
54
|
+
if (kind === 'integer')
|
|
55
|
+
return ['an integer'];
|
|
56
|
+
if (kind === 'boolean')
|
|
57
|
+
return ['true', 'false'];
|
|
58
|
+
if (kind === 'date')
|
|
59
|
+
return ['a date as YYYY-MM-DD'];
|
|
60
|
+
if (kind === 'date-time')
|
|
61
|
+
return ['a date-time with its offset, such as 2026-10-10T09:30:00Z'];
|
|
62
|
+
if (kind === 'time')
|
|
63
|
+
return ['a time as HH:MM:SS'];
|
|
64
|
+
if (kind === 'reference')
|
|
65
|
+
return [`the Room Path of a ${facts.reference.join(' or ')} document, such as notes/a.md`];
|
|
66
|
+
return kind === 'string' ? ['a string'] : [];
|
|
67
|
+
}
|
|
59
68
|
export function dated(value) {
|
|
60
69
|
return typeof value === 'string' && format.date(value);
|
|
61
70
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Extent } from './types.js';
|
|
2
|
+
export type HeadingLine = {
|
|
3
|
+
readonly level: number;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly start: number;
|
|
6
|
+
readonly textEnd: number;
|
|
7
|
+
readonly next: number;
|
|
8
|
+
};
|
|
9
|
+
export type HrefOccurrence = {
|
|
10
|
+
readonly href: string;
|
|
11
|
+
readonly start: number;
|
|
12
|
+
readonly end: number;
|
|
13
|
+
readonly bracketed: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type LinkUse = {
|
|
16
|
+
readonly start: number;
|
|
17
|
+
readonly end: number;
|
|
18
|
+
readonly labelStart: number;
|
|
19
|
+
readonly labelEnd: number;
|
|
20
|
+
readonly destination: HrefOccurrence;
|
|
21
|
+
};
|
|
22
|
+
export type DefinitionBlock = {
|
|
23
|
+
readonly start: number;
|
|
24
|
+
readonly end: number;
|
|
25
|
+
readonly destination: HrefOccurrence;
|
|
26
|
+
};
|
|
27
|
+
export type Node = {
|
|
28
|
+
readonly type: string;
|
|
29
|
+
readonly position?: {
|
|
30
|
+
readonly start: {
|
|
31
|
+
readonly offset?: number;
|
|
32
|
+
};
|
|
33
|
+
readonly end: {
|
|
34
|
+
readonly offset?: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly children?: readonly Node[];
|
|
38
|
+
readonly depth?: number;
|
|
39
|
+
readonly identifier?: string;
|
|
40
|
+
readonly checked?: boolean | null;
|
|
41
|
+
readonly ordered?: boolean | null;
|
|
42
|
+
readonly lang?: string | null;
|
|
43
|
+
readonly value?: string;
|
|
44
|
+
};
|
|
45
|
+
export type Reading = {
|
|
46
|
+
readonly headings: readonly HeadingLine[];
|
|
47
|
+
readonly blocks: readonly Extent[];
|
|
48
|
+
readonly uses: readonly LinkUse[];
|
|
49
|
+
readonly definitions: readonly DefinitionBlock[];
|
|
50
|
+
readonly tree: readonly Node[];
|
|
51
|
+
readonly base: number;
|
|
52
|
+
};
|
|
53
|
+
export declare function lineBreaks(text: string): readonly number[];
|
|
54
|
+
export declare function lineNumber(breaks: readonly number[], offset: number): number;
|
|
55
|
+
export declare function lineStart(text: string, index: number): number;
|
|
56
|
+
export declare function lineEnd(text: string, index: number): {
|
|
57
|
+
readonly end: number;
|
|
58
|
+
readonly next: number;
|
|
59
|
+
};
|
|
60
|
+
export declare function read(text: string, at?: number): Reading;
|
|
61
|
+
export declare function destinations(reading: Reading): readonly HrefOccurrence[];
|
|
62
|
+
export declare function linkable(text: string, from?: number): boolean;
|
|
63
|
+
export declare function hrefOccurrences(body: string): readonly HrefOccurrence[];
|
|
64
|
+
export declare function headingLines(content: string, from: number, to: number): HeadingLine[];
|
|
65
|
+
export type SectionSpan = {
|
|
66
|
+
readonly name: string;
|
|
67
|
+
readonly headingStart: number;
|
|
68
|
+
readonly bodyStart: number;
|
|
69
|
+
readonly bodyEnd: number;
|
|
70
|
+
};
|
|
71
|
+
export declare function sectionSpans(reading: Reading, end: number): SectionSpan[];
|
|
72
|
+
export declare function sectionsRecord(spans: readonly SectionSpan[], content: string): Record<string, string>;
|
|
73
|
+
export declare function headingsIn(reading: Reading, from: number, to: number): readonly HeadingLine[];
|
|
74
|
+
export declare function blockRanges(reading: Reading, from: number, to: number): Extent[];
|
|
75
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../src/markdown.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,I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,GAAG,SAAS,WAAW,EAAE,CAM7F;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAMhF"}
|
package/dist/markdown.js
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { fromMarkdown, } from 'mdast-util-from-markdown';
|
|
2
|
+
import { gfmFootnoteFromMarkdown } from 'mdast-util-gfm-footnote';
|
|
3
|
+
import { gfmStrikethroughFromMarkdown } from 'mdast-util-gfm-strikethrough';
|
|
4
|
+
import { gfmTableFromMarkdown } from 'mdast-util-gfm-table';
|
|
5
|
+
import { gfmTaskListItemFromMarkdown } from 'mdast-util-gfm-task-list-item';
|
|
6
|
+
import { gfmFootnote } from 'micromark-extension-gfm-footnote';
|
|
7
|
+
import { gfmStrikethrough } from 'micromark-extension-gfm-strikethrough';
|
|
8
|
+
import { gfmTable } from 'micromark-extension-gfm-table';
|
|
9
|
+
import { gfmTaskListItem } from 'micromark-extension-gfm-task-list-item';
|
|
10
|
+
const BYTE_ORDER_MARK = 0xfeff;
|
|
11
|
+
const LINKED = new Set(['link', 'image', 'linkReference', 'imageReference']);
|
|
12
|
+
const REFERENCED = new Set(['linkReference', 'imageReference']);
|
|
13
|
+
const SYNTAX = [gfmFootnote(), gfmStrikethrough(), gfmTable(), gfmTaskListItem()];
|
|
14
|
+
function startOf(node) {
|
|
15
|
+
return node.position.start.offset;
|
|
16
|
+
}
|
|
17
|
+
function endOf(node) {
|
|
18
|
+
return node.position.end.offset;
|
|
19
|
+
}
|
|
20
|
+
function marked(marks, node) {
|
|
21
|
+
let mark = marks.get(node);
|
|
22
|
+
if (mark === undefined) {
|
|
23
|
+
mark = {};
|
|
24
|
+
marks.set(node, mark);
|
|
25
|
+
}
|
|
26
|
+
return mark;
|
|
27
|
+
}
|
|
28
|
+
function marking(text, shift, marks, labelled) {
|
|
29
|
+
const at = (point) => point.offset + shift;
|
|
30
|
+
return {
|
|
31
|
+
afterExit(token) {
|
|
32
|
+
const top = this.stack[this.stack.length - 1];
|
|
33
|
+
const start = at(token.start);
|
|
34
|
+
const end = at(token.end);
|
|
35
|
+
switch (token.type) {
|
|
36
|
+
case 'labelText': {
|
|
37
|
+
const node = this.stack[this.stack.length - 2];
|
|
38
|
+
marked(marks, node).label = { start, end };
|
|
39
|
+
labelled.push(node);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
case 'resourceDestinationLiteral':
|
|
43
|
+
case 'definitionDestinationLiteral':
|
|
44
|
+
marked(marks, top).destination = {
|
|
45
|
+
href: text.slice(start + 1, end - 1),
|
|
46
|
+
start,
|
|
47
|
+
end,
|
|
48
|
+
bracketed: true,
|
|
49
|
+
};
|
|
50
|
+
return;
|
|
51
|
+
case 'resourceDestinationRaw':
|
|
52
|
+
case 'definitionDestinationRaw':
|
|
53
|
+
marked(marks, top).destination = {
|
|
54
|
+
href: text.slice(start, end),
|
|
55
|
+
start,
|
|
56
|
+
end,
|
|
57
|
+
bracketed: false,
|
|
58
|
+
};
|
|
59
|
+
return;
|
|
60
|
+
case 'resource':
|
|
61
|
+
marked(marks, top).resourceEnd = end;
|
|
62
|
+
return;
|
|
63
|
+
case 'atxHeadingText':
|
|
64
|
+
case 'setextHeadingText':
|
|
65
|
+
marked(marks, top).text = { start, end };
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function lineBreaks(text) {
|
|
72
|
+
const breaks = [];
|
|
73
|
+
for (let at = text.indexOf('\n'); at !== -1; at = text.indexOf('\n', at + 1))
|
|
74
|
+
breaks.push(at);
|
|
75
|
+
return breaks;
|
|
76
|
+
}
|
|
77
|
+
export function lineNumber(breaks, offset) {
|
|
78
|
+
let low = 0;
|
|
79
|
+
let high = breaks.length;
|
|
80
|
+
while (low < high) {
|
|
81
|
+
const middle = (low + high) >>> 1;
|
|
82
|
+
if (breaks[middle] < offset)
|
|
83
|
+
low = middle + 1;
|
|
84
|
+
else
|
|
85
|
+
high = middle;
|
|
86
|
+
}
|
|
87
|
+
return low + 1;
|
|
88
|
+
}
|
|
89
|
+
export function lineStart(text, index) {
|
|
90
|
+
let at = index;
|
|
91
|
+
while (at > 0 && text[at - 1] !== '\n' && text[at - 1] !== '\r')
|
|
92
|
+
at -= 1;
|
|
93
|
+
return at;
|
|
94
|
+
}
|
|
95
|
+
export function lineEnd(text, index) {
|
|
96
|
+
let at = index;
|
|
97
|
+
while (at < text.length && text[at] !== '\n' && text[at] !== '\r')
|
|
98
|
+
at += 1;
|
|
99
|
+
if (at === text.length)
|
|
100
|
+
return { end: at, next: at };
|
|
101
|
+
return { end: at, next: text[at] === '\r' && text[at + 1] === '\n' ? at + 2 : at + 1 };
|
|
102
|
+
}
|
|
103
|
+
function shifted(value, by) {
|
|
104
|
+
return { ...value, start: value.start + by, end: value.end + by };
|
|
105
|
+
}
|
|
106
|
+
function walked(root, visit) {
|
|
107
|
+
const pending = [root];
|
|
108
|
+
while (pending.length > 0) {
|
|
109
|
+
const node = pending.pop();
|
|
110
|
+
visit(node);
|
|
111
|
+
const children = node.children ?? [];
|
|
112
|
+
for (let index = children.length - 1; index >= 0; index -= 1)
|
|
113
|
+
pending.push(children[index]);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
export function read(text, at = 0) {
|
|
117
|
+
const marks = new WeakMap();
|
|
118
|
+
const labelled = [];
|
|
119
|
+
const shift = text.charCodeAt(0) === BYTE_ORDER_MARK ? 1 : 0;
|
|
120
|
+
const root = fromMarkdown(text, {
|
|
121
|
+
extensions: SYNTAX,
|
|
122
|
+
mdastExtensions: [
|
|
123
|
+
gfmFootnoteFromMarkdown(),
|
|
124
|
+
gfmStrikethroughFromMarkdown(),
|
|
125
|
+
gfmTableFromMarkdown(),
|
|
126
|
+
gfmTaskListItemFromMarkdown(),
|
|
127
|
+
marking(text, shift, marks, labelled),
|
|
128
|
+
],
|
|
129
|
+
});
|
|
130
|
+
const local = (offset) => offset + shift;
|
|
131
|
+
const headings = [];
|
|
132
|
+
const blocks = [];
|
|
133
|
+
for (const node of root.children ?? []) {
|
|
134
|
+
let start = local(startOf(node));
|
|
135
|
+
while (start > 0 && (text[start - 1] === ' ' || text[start - 1] === '\t'))
|
|
136
|
+
start -= 1;
|
|
137
|
+
const end = local(endOf(node));
|
|
138
|
+
if (node.type === 'heading') {
|
|
139
|
+
const name = marks.get(node)?.text;
|
|
140
|
+
const line = lineEnd(text, end);
|
|
141
|
+
headings.push({
|
|
142
|
+
level: node.depth,
|
|
143
|
+
name: name === undefined ? '' : text.slice(name.start, name.end),
|
|
144
|
+
start: at + start,
|
|
145
|
+
textEnd: at + line.end,
|
|
146
|
+
next: at + line.next,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
blocks.push({ start: at + start, end: at + end });
|
|
150
|
+
}
|
|
151
|
+
const destinations = new Map();
|
|
152
|
+
const definitions = [];
|
|
153
|
+
walked(root, (node) => {
|
|
154
|
+
const mark = marks.get(node);
|
|
155
|
+
if (node.type !== 'definition' || mark?.destination === undefined)
|
|
156
|
+
return;
|
|
157
|
+
const destination = shifted(mark.destination, at);
|
|
158
|
+
if (!destinations.has(node.identifier))
|
|
159
|
+
destinations.set(node.identifier, destination);
|
|
160
|
+
definitions.push({
|
|
161
|
+
start: at + lineStart(text, local(startOf(node))),
|
|
162
|
+
end: at + lineEnd(text, local(endOf(node))).next,
|
|
163
|
+
destination,
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
const uses = [];
|
|
167
|
+
for (const node of labelled) {
|
|
168
|
+
if (!LINKED.has(node.type))
|
|
169
|
+
continue;
|
|
170
|
+
const mark = marks.get(node);
|
|
171
|
+
const destination = REFERENCED.has(node.type)
|
|
172
|
+
? destinations.get(node.identifier)
|
|
173
|
+
: mark.destination !== undefined
|
|
174
|
+
? shifted(mark.destination, at)
|
|
175
|
+
: mark.resourceEnd === undefined
|
|
176
|
+
? undefined
|
|
177
|
+
: {
|
|
178
|
+
href: '',
|
|
179
|
+
start: at + mark.resourceEnd - 1,
|
|
180
|
+
end: at + mark.resourceEnd - 1,
|
|
181
|
+
bracketed: false,
|
|
182
|
+
};
|
|
183
|
+
if (destination === undefined)
|
|
184
|
+
continue;
|
|
185
|
+
uses.push({
|
|
186
|
+
start: at + local(startOf(node)),
|
|
187
|
+
end: at + local(endOf(node)),
|
|
188
|
+
labelStart: at + mark.label.start,
|
|
189
|
+
labelEnd: at + mark.label.end,
|
|
190
|
+
destination,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
uses.sort((left, right) => left.start - right.start);
|
|
194
|
+
return { headings, blocks, uses, definitions, tree: root.children ?? [], base: at + shift };
|
|
195
|
+
}
|
|
196
|
+
export function destinations(reading) {
|
|
197
|
+
const byStart = new Map();
|
|
198
|
+
for (const use of reading.uses)
|
|
199
|
+
byStart.set(use.destination.start, use.destination);
|
|
200
|
+
return [...byStart.values()].sort((left, right) => left.start - right.start);
|
|
201
|
+
}
|
|
202
|
+
export function linkable(text, from = 0) {
|
|
203
|
+
return text.includes('](', from) || text.includes(']:', from);
|
|
204
|
+
}
|
|
205
|
+
export function hrefOccurrences(body) {
|
|
206
|
+
return linkable(body) ? destinations(read(body)) : [];
|
|
207
|
+
}
|
|
208
|
+
export function headingLines(content, from, to) {
|
|
209
|
+
return [...read(content.slice(from, to), from).headings];
|
|
210
|
+
}
|
|
211
|
+
export function sectionSpans(reading, end) {
|
|
212
|
+
const found = [];
|
|
213
|
+
for (const heading of reading.headings) {
|
|
214
|
+
if (heading.level !== 2)
|
|
215
|
+
continue;
|
|
216
|
+
if (found.length > 0)
|
|
217
|
+
found[found.length - 1] = { ...found[found.length - 1], bodyEnd: heading.start };
|
|
218
|
+
found.push({
|
|
219
|
+
name: heading.name,
|
|
220
|
+
headingStart: heading.start,
|
|
221
|
+
bodyStart: heading.next,
|
|
222
|
+
bodyEnd: end,
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
return found;
|
|
226
|
+
}
|
|
227
|
+
export function sectionsRecord(spans, content) {
|
|
228
|
+
const record = Object.create(null);
|
|
229
|
+
for (const span of spans) {
|
|
230
|
+
if (record[span.name] === undefined)
|
|
231
|
+
record[span.name] = content.slice(span.bodyStart, span.bodyEnd);
|
|
232
|
+
}
|
|
233
|
+
return record;
|
|
234
|
+
}
|
|
235
|
+
function firstPast(items, at, key) {
|
|
236
|
+
let low = 0;
|
|
237
|
+
let high = items.length;
|
|
238
|
+
while (low < high) {
|
|
239
|
+
const middle = (low + high) >>> 1;
|
|
240
|
+
if (key(items[middle]) <= at)
|
|
241
|
+
low = middle + 1;
|
|
242
|
+
else
|
|
243
|
+
high = middle;
|
|
244
|
+
}
|
|
245
|
+
return low;
|
|
246
|
+
}
|
|
247
|
+
function blocksIn(reading, from, to) {
|
|
248
|
+
const blocks = reading.blocks;
|
|
249
|
+
const first = firstPast(blocks, from, (block) => block.end);
|
|
250
|
+
let end = first;
|
|
251
|
+
while (end < blocks.length && blocks[end].start < to)
|
|
252
|
+
end += 1;
|
|
253
|
+
return blocks.slice(first, end);
|
|
254
|
+
}
|
|
255
|
+
export function headingsIn(reading, from, to) {
|
|
256
|
+
const start = (heading) => heading.start;
|
|
257
|
+
return reading.headings.slice(firstPast(reading.headings, from - 1, start), firstPast(reading.headings, to - 1, start));
|
|
258
|
+
}
|
|
259
|
+
export function blockRanges(reading, from, to) {
|
|
260
|
+
const starts = blocksIn(reading, from, to).map((block) => block.start);
|
|
261
|
+
return starts.map((start, index) => ({
|
|
262
|
+
start: index === 0 ? from : start,
|
|
263
|
+
end: starts[index + 1] ?? to,
|
|
264
|
+
}));
|
|
265
|
+
}
|
package/dist/paths.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type RoomTarget = {
|
|
|
6
6
|
readonly handle: string;
|
|
7
7
|
readonly path: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type Classified = {
|
|
10
10
|
kind: 'skip';
|
|
11
11
|
} | {
|
|
12
12
|
kind: 'path';
|
|
@@ -16,11 +16,20 @@ export declare function classifyHref(from: string, href: string): {
|
|
|
16
16
|
} & RoomTarget) | {
|
|
17
17
|
kind: 'invalid';
|
|
18
18
|
};
|
|
19
|
+
export declare function classifyHref(from: string, href: string): Classified;
|
|
19
20
|
export declare function roomTarget(href: string): RoomTarget | null;
|
|
20
21
|
export declare function roomPath(href: string): string | null;
|
|
21
22
|
export declare function target(from: string, href: string): string | null;
|
|
23
|
+
export interface LinkedPath {
|
|
24
|
+
readonly handle: string | null;
|
|
25
|
+
readonly path: string;
|
|
26
|
+
readonly fragment: string | null;
|
|
27
|
+
}
|
|
28
|
+
export declare function linkedPath(from: string, href: string): LinkedPath | null;
|
|
22
29
|
export declare function retarget(href: string, to: string): string;
|
|
23
30
|
export declare function relative(from: string, target: string): string;
|
|
24
31
|
export declare const SHELL_ROOMS = "/rooms/";
|
|
25
32
|
export declare function shellTarget(href: string, handle: string): string | null;
|
|
33
|
+
export declare function destinationText(to: string, bracketed: boolean): string | null;
|
|
34
|
+
export {};
|
|
26
35
|
//# sourceMappingURL=paths.d.ts.map
|
package/dist/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAUA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG5C;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG3D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAYrD;AA6DD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAW3D;AAgBD,MAAM,MAAM,UAAU,GAAG;I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MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMvE;AAoBD,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAI7E"}
|
package/dist/paths.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { decodeNamedCharacterReference } from 'decode-named-character-reference';
|
|
2
2
|
import { decodeNumericCharacterReference } from 'micromark-util-decode-numeric-character-reference';
|
|
3
|
-
|
|
3
|
+
const BACKSLASH = 0x5c;
|
|
4
|
+
const PUNCTUATION = /^[!-/:-@[-`{-~]$/;
|
|
5
|
+
function escapes(text, index) {
|
|
6
|
+
return text.charCodeAt(index) === BACKSLASH && PUNCTUATION.test(text[index + 1] ?? '');
|
|
7
|
+
}
|
|
4
8
|
export function dirname(path) {
|
|
5
9
|
const index = path.lastIndexOf('/');
|
|
6
10
|
return index === -1 ? '' : path.slice(0, index);
|
|
@@ -43,19 +47,23 @@ function referenceAt(text, at) {
|
|
|
43
47
|
end,
|
|
44
48
|
};
|
|
45
49
|
}
|
|
46
|
-
function
|
|
47
|
-
let
|
|
48
|
-
let i =
|
|
50
|
+
function spelled(written, from, stops) {
|
|
51
|
+
let text = '';
|
|
52
|
+
let i = from;
|
|
49
53
|
while (i < written.length) {
|
|
50
54
|
const escaped = escapes(written, i);
|
|
51
55
|
const reference = escaped || written[i] !== '&' ? null : referenceAt(written, i);
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
return {
|
|
55
|
-
|
|
56
|
+
const one = escaped ? written[i + 1] : (reference?.text ?? written[i]);
|
|
57
|
+
if (stops && (one.startsWith('?') || one.startsWith('#')))
|
|
58
|
+
return { text, end: i };
|
|
59
|
+
text += one;
|
|
56
60
|
i = escaped ? i + 2 : (reference?.end ?? i + 1);
|
|
57
61
|
}
|
|
58
|
-
return {
|
|
62
|
+
return { text, end: written.length };
|
|
63
|
+
}
|
|
64
|
+
function unescaped(written) {
|
|
65
|
+
const { text, end } = spelled(written, 0, true);
|
|
66
|
+
return { base: text, suffix: end };
|
|
59
67
|
}
|
|
60
68
|
function located(href) {
|
|
61
69
|
const written = href.trim();
|
|
@@ -107,18 +115,22 @@ function written(path) {
|
|
|
107
115
|
}
|
|
108
116
|
return text;
|
|
109
117
|
}
|
|
110
|
-
function
|
|
118
|
+
function roomAt(path) {
|
|
111
119
|
if (!path.startsWith(SHELL_ROOMS))
|
|
112
120
|
return null;
|
|
113
121
|
const rest = path.slice(SHELL_ROOMS.length);
|
|
114
122
|
const slash = rest.indexOf('/');
|
|
115
|
-
const handle = rest.slice(0, slash);
|
|
116
|
-
if (
|
|
123
|
+
const handle = slash === -1 ? rest : rest.slice(0, slash);
|
|
124
|
+
if (handle === '' || handle === '.' || handle === '..')
|
|
117
125
|
return null;
|
|
118
|
-
const within = normalize(rest.slice(slash + 1));
|
|
119
|
-
return within === null
|
|
126
|
+
const within = normalize(slash === -1 ? '' : rest.slice(slash + 1));
|
|
127
|
+
return within === null ? null : { handle, path: within };
|
|
120
128
|
}
|
|
121
|
-
|
|
129
|
+
function roomTargetOf(path) {
|
|
130
|
+
const room = roomAt(path);
|
|
131
|
+
return room === null || room.path === '' ? null : room;
|
|
132
|
+
}
|
|
133
|
+
function resolvedOf(from, href) {
|
|
122
134
|
const base = located(href).base;
|
|
123
135
|
if (base === '')
|
|
124
136
|
return { kind: 'skip' };
|
|
@@ -128,13 +140,15 @@ export function classifyHref(from, href) {
|
|
|
128
140
|
if (path === null)
|
|
129
141
|
return { kind: 'invalid' };
|
|
130
142
|
if (path.startsWith('/')) {
|
|
131
|
-
const room =
|
|
143
|
+
const room = roomAt(path);
|
|
132
144
|
return room === null ? { kind: 'invalid' } : { kind: 'room', ...room };
|
|
133
145
|
}
|
|
134
146
|
const resolved = normalize(join(dirname(from), path));
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
147
|
+
return resolved === null ? { kind: 'invalid' } : { kind: 'path', path: resolved };
|
|
148
|
+
}
|
|
149
|
+
export function classifyHref(from, href) {
|
|
150
|
+
const resolved = resolvedOf(from, href);
|
|
151
|
+
return 'path' in resolved && resolved.path === '' ? { kind: 'invalid' } : resolved;
|
|
138
152
|
}
|
|
139
153
|
export function roomTarget(href) {
|
|
140
154
|
const path = destinationPath(href);
|
|
@@ -148,6 +162,20 @@ export function target(from, href) {
|
|
|
148
162
|
const resolved = classifyHref(from, href);
|
|
149
163
|
return resolved.kind === 'path' ? resolved.path : null;
|
|
150
164
|
}
|
|
165
|
+
export function linkedPath(from, href) {
|
|
166
|
+
const resolved = located(href).base === '' ? { kind: 'path', path: from } : resolvedOf(from, href);
|
|
167
|
+
if (!('path' in resolved))
|
|
168
|
+
return null;
|
|
169
|
+
const written = href.trim();
|
|
170
|
+
const suffix = spelled(written, unescaped(written).suffix, false).text;
|
|
171
|
+
const hash = suffix.indexOf('#');
|
|
172
|
+
const fragment = hash === -1 ? '' : suffix.slice(hash + 1);
|
|
173
|
+
return {
|
|
174
|
+
handle: resolved.kind === 'room' ? resolved.handle : null,
|
|
175
|
+
path: resolved.path,
|
|
176
|
+
fragment: fragment === '' ? null : (decodedRun(fragment) ?? fragment),
|
|
177
|
+
};
|
|
178
|
+
}
|
|
151
179
|
export function retarget(href, to) {
|
|
152
180
|
const trimmed = href.trim();
|
|
153
181
|
return written(to) + trimmed.slice(unescaped(trimmed).suffix);
|
|
@@ -173,3 +201,30 @@ export function shellTarget(href, handle) {
|
|
|
173
201
|
const path = normalize(decoded.slice(prefix.length));
|
|
174
202
|
return path === null || path === '' ? null : path;
|
|
175
203
|
}
|
|
204
|
+
function fitsBare(to) {
|
|
205
|
+
if (to === '' || to.startsWith('<'))
|
|
206
|
+
return false;
|
|
207
|
+
let depth = 0;
|
|
208
|
+
for (const character of to) {
|
|
209
|
+
if (/[\s\u0000-\u001f\u007f]/.test(character))
|
|
210
|
+
return false;
|
|
211
|
+
if (character === '(')
|
|
212
|
+
depth += 1;
|
|
213
|
+
else if (character === ')') {
|
|
214
|
+
if (depth === 0)
|
|
215
|
+
return false;
|
|
216
|
+
depth -= 1;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return depth === 0;
|
|
220
|
+
}
|
|
221
|
+
function fitsBrackets(to) {
|
|
222
|
+
return to !== '' && !/[<>\n\r]/.test(to);
|
|
223
|
+
}
|
|
224
|
+
export function destinationText(to, bracketed) {
|
|
225
|
+
if (fitsBare(to))
|
|
226
|
+
return bracketed && fitsBrackets(to) ? `<${to}>` : to;
|
|
227
|
+
if (fitsBrackets(to))
|
|
228
|
+
return `<${to}>`;
|
|
229
|
+
return null;
|
|
230
|
+
}
|
package/dist/pattern.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../src/pattern.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,OAAQ,CAAC;AAMpC,qBAAa,gBAAiB,SAAQ,KAAK;CAAG;AAQ9C,MAAM,MAAM,OAAO,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../src/pattern.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,OAAQ,CAAC;AAMpC,qBAAa,gBAAiB,SAAQ,KAAK;CAAG;AAQ9C,MAAM,MAAM,OAAO,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;CAAE,CAAC;AAkUnE,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAM5D;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAkBnD;AAED,wBAAgB,iBAAiB,IAAI,MAAM,IAAI,CAM9C"}
|
package/dist/pattern.js
CHANGED
|
@@ -262,10 +262,11 @@ class Linear {
|
|
|
262
262
|
const marks = this.marks;
|
|
263
263
|
const budget = scope ?? { left: VISIT_BUDGET };
|
|
264
264
|
let seeds = [];
|
|
265
|
-
let
|
|
265
|
+
let wordBefore = false;
|
|
266
266
|
for (let at = 0;;) {
|
|
267
267
|
const point = at < text.length ? text.codePointAt(at) : -1;
|
|
268
|
-
const
|
|
268
|
+
const wordAt = word(point);
|
|
269
|
+
const across = wordBefore !== wordAt;
|
|
269
270
|
const generation = (this.generation += 1);
|
|
270
271
|
const active = [];
|
|
271
272
|
seeds.push(this.start);
|
|
@@ -291,7 +292,7 @@ class Linear {
|
|
|
291
292
|
for (const state of active)
|
|
292
293
|
if (atoms[alternates[state]].holds(point))
|
|
293
294
|
seeds.push(outs[state]);
|
|
294
|
-
|
|
295
|
+
wordBefore = wordAt;
|
|
295
296
|
at += point > 0xffff ? 2 : 1;
|
|
296
297
|
}
|
|
297
298
|
}
|
package/dist/project.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG3F,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC;AAEzB,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;CACjC,CAAC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