@driftsys/markspec 0.5.0 → 0.6.0
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/README.md +74 -20
- package/esm/ast/build.d.ts +11 -21
- package/esm/ast/build.d.ts.map +1 -1
- package/esm/ast/build.js +50 -139
- package/esm/ast/nodes.d.ts +11 -43
- package/esm/ast/nodes.d.ts.map +1 -1
- package/esm/ast/nodes.js +6 -1
- package/esm/ast/normalize.d.ts +8 -17
- package/esm/ast/normalize.d.ts.map +1 -1
- package/esm/ast/normalize.js +14 -72
- package/esm/compiler/constants.d.ts +16 -0
- package/esm/compiler/constants.d.ts.map +1 -0
- package/esm/compiler/constants.js +26 -0
- package/esm/compiler/discipline_classifier.d.ts +55 -0
- package/esm/compiler/discipline_classifier.d.ts.map +1 -0
- package/esm/compiler/discipline_classifier.js +191 -0
- package/esm/compiler/inverses.d.ts +7 -0
- package/esm/compiler/inverses.d.ts.map +1 -1
- package/esm/compiler/inverses.js +1 -18
- package/esm/compiler/mod.d.ts +30 -1
- package/esm/compiler/mod.d.ts.map +1 -1
- package/esm/compiler/mod.js +198 -65
- package/esm/compiler/schema.d.ts +15 -0
- package/esm/compiler/schema.d.ts.map +1 -1
- package/esm/compiler/schema.js +12 -0
- package/esm/config/markspec.d.ts +5 -0
- package/esm/config/markspec.d.ts.map +1 -1
- package/esm/config/markspec.js +17 -2
- package/esm/formatter/mod.d.ts +9 -3
- package/esm/formatter/mod.d.ts.map +1 -1
- package/esm/formatter/mod.js +97 -49
- package/esm/lexicons/loader.d.ts +35 -0
- package/esm/lexicons/loader.d.ts.map +1 -0
- package/esm/lexicons/loader.js +51 -0
- package/esm/lexicons/mod.d.ts +13 -0
- package/esm/lexicons/mod.d.ts.map +1 -0
- package/esm/lexicons/mod.js +12 -0
- package/esm/lint/glossary.d.ts +45 -0
- package/esm/lint/glossary.d.ts.map +1 -0
- package/esm/lint/glossary.js +85 -0
- package/esm/lint/mod.d.ts +4 -0
- package/esm/lint/mod.d.ts.map +1 -1
- package/esm/lint/mod.js +2 -0
- package/esm/lint/range_util.d.ts +25 -0
- package/esm/lint/range_util.d.ts.map +1 -0
- package/esm/lint/range_util.js +50 -0
- package/esm/lint/rules/ears.d.ts +39 -0
- package/esm/lint/rules/ears.d.ts.map +1 -0
- package/esm/lint/rules/ears.js +316 -0
- package/esm/lint/rules/incose_sentence.d.ts +46 -0
- package/esm/lint/rules/incose_sentence.d.ts.map +1 -0
- package/esm/lint/rules/incose_sentence.js +417 -0
- package/esm/lint/rules/modal_sentence.d.ts +46 -0
- package/esm/lint/rules/modal_sentence.d.ts.map +1 -0
- package/esm/lint/rules/modal_sentence.js +146 -0
- package/esm/lint/rules/passive.d.ts +64 -0
- package/esm/lint/rules/passive.d.ts.map +1 -0
- package/esm/lint/rules/passive.js +282 -0
- package/esm/lint/rules/suppression.d.ts +38 -3
- package/esm/lint/rules/suppression.d.ts.map +1 -1
- package/esm/lint/rules/suppression.js +58 -4
- package/esm/lint/rules/xref.d.ts +19 -0
- package/esm/lint/rules/xref.d.ts.map +1 -0
- package/esm/lint/rules/xref.js +248 -0
- package/esm/lint/runner.d.ts +31 -11
- package/esm/lint/runner.d.ts.map +1 -1
- package/esm/lint/runner.js +67 -26
- package/esm/lint/score.d.ts +64 -0
- package/esm/lint/score.d.ts.map +1 -0
- package/esm/lint/score.js +163 -0
- package/esm/lint/segmenter.d.ts +32 -0
- package/esm/lint/segmenter.d.ts.map +1 -0
- package/esm/lint/segmenter.js +79 -0
- package/esm/lint/types.d.ts +12 -0
- package/esm/lint/types.d.ts.map +1 -1
- package/esm/lock/canonical_edges.d.ts +31 -0
- package/esm/lock/canonical_edges.d.ts.map +1 -0
- package/esm/lock/canonical_edges.js +57 -0
- package/esm/lock/check.d.ts +24 -0
- package/esm/lock/check.d.ts.map +1 -0
- package/esm/lock/check.js +127 -0
- package/esm/lock/hash.d.ts +12 -0
- package/esm/lock/hash.d.ts.map +1 -0
- package/esm/lock/hash.js +32 -0
- package/esm/lock/mod.d.ts +19 -0
- package/esm/lock/mod.d.ts.map +1 -0
- package/esm/lock/mod.js +14 -0
- package/esm/lock/model.d.ts +81 -0
- package/esm/lock/model.d.ts.map +1 -0
- package/esm/lock/model.js +7 -0
- package/esm/lock/parser.d.ts +26 -0
- package/esm/lock/parser.d.ts.map +1 -0
- package/esm/lock/parser.js +195 -0
- package/esm/lock/resolve.d.ts +142 -0
- package/esm/lock/resolve.d.ts.map +1 -0
- package/esm/lock/resolve.js +389 -0
- package/esm/lock/serializer.d.ts +14 -0
- package/esm/lock/serializer.d.ts.map +1 -0
- package/esm/lock/serializer.js +104 -0
- package/esm/mod.d.ts +16 -9
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +12 -4
- package/esm/model/attributes.d.ts +6 -0
- package/esm/model/attributes.d.ts.map +1 -1
- package/esm/model/attributes.js +37 -0
- package/esm/model/discipline.d.ts +53 -0
- package/esm/model/discipline.d.ts.map +1 -0
- package/esm/model/discipline.js +50 -0
- package/esm/model/mod.d.ts +188 -30
- package/esm/model/mod.d.ts.map +1 -1
- package/esm/model/mod.js +42 -1
- package/esm/model/profile.d.ts +69 -0
- package/esm/model/profile.d.ts.map +1 -1
- package/esm/parser/attributes.d.ts.map +1 -1
- package/esm/parser/attributes.js +1 -10
- package/esm/parser/body_tokens.d.ts +35 -0
- package/esm/parser/body_tokens.d.ts.map +1 -0
- package/esm/parser/body_tokens.js +232 -0
- package/esm/parser/glossary.d.ts +8 -0
- package/esm/parser/glossary.d.ts.map +1 -1
- package/esm/parser/glossary.js +6 -4
- package/esm/parser/grammars.d.ts +5 -3
- package/esm/parser/grammars.d.ts.map +1 -1
- package/esm/parser/grammars.js +12 -4
- package/esm/parser/language_spec.d.ts +55 -0
- package/esm/parser/language_spec.d.ts.map +1 -0
- package/esm/parser/language_spec.js +419 -0
- package/esm/parser/line_map.d.ts +60 -0
- package/esm/parser/line_map.d.ts.map +1 -0
- package/esm/parser/line_map.js +41 -0
- package/esm/parser/markdown.d.ts +9 -0
- package/esm/parser/markdown.d.ts.map +1 -1
- package/esm/parser/markdown.js +107 -31
- package/esm/parser/mod.d.ts +4 -0
- package/esm/parser/mod.d.ts.map +1 -1
- package/esm/parser/mod.js +30 -8
- package/esm/parser/source.d.ts +39 -8
- package/esm/parser/source.d.ts.map +1 -1
- package/esm/parser/source.js +155 -65
- package/esm/parser/translate.d.ts +24 -0
- package/esm/parser/translate.d.ts.map +1 -0
- package/esm/parser/translate.js +99 -0
- package/esm/profile/chain.d.ts +8 -0
- package/esm/profile/chain.d.ts.map +1 -1
- package/esm/profile/chain.js +29 -1
- package/esm/profile/default_profile.d.ts +25 -0
- package/esm/profile/default_profile.d.ts.map +1 -0
- package/esm/profile/default_profile.js +43 -0
- package/esm/profile/discipline_mode.d.ts +64 -0
- package/esm/profile/discipline_mode.d.ts.map +1 -0
- package/esm/profile/discipline_mode.js +133 -0
- package/esm/profile/discipline_registry.d.ts +41 -0
- package/esm/profile/discipline_registry.d.ts.map +1 -0
- package/esm/profile/discipline_registry.js +67 -0
- package/esm/profile/load.d.ts +3 -1
- package/esm/profile/load.d.ts.map +1 -1
- package/esm/profile/load.js +24 -5
- package/esm/profile/manifest.d.ts.map +1 -1
- package/esm/profile/manifest.js +253 -20
- package/esm/profile/merge.d.ts.map +1 -1
- package/esm/profile/merge.js +112 -0
- package/esm/profile/mod.d.ts +2 -0
- package/esm/profile/mod.d.ts.map +1 -1
- package/esm/profile/mod.js +2 -0
- package/esm/sync/locked_attributes.d.ts +19 -0
- package/esm/sync/locked_attributes.d.ts.map +1 -0
- package/esm/sync/locked_attributes.js +27 -0
- package/esm/sync/log.d.ts +34 -0
- package/esm/sync/log.d.ts.map +1 -0
- package/esm/sync/log.js +48 -0
- package/esm/sync/mapping.d.ts +66 -0
- package/esm/sync/mapping.d.ts.map +1 -0
- package/esm/sync/mapping.js +165 -0
- package/esm/sync/mod.d.ts +16 -0
- package/esm/sync/mod.d.ts.map +1 -0
- package/esm/sync/mod.js +12 -0
- package/esm/sync/status.d.ts +23 -0
- package/esm/sync/status.d.ts.map +1 -0
- package/esm/sync/status.js +21 -0
- package/esm/typl/ast.d.ts +87 -0
- package/esm/typl/ast.d.ts.map +1 -0
- package/esm/typl/ast.js +21 -0
- package/esm/typl/bridge.d.ts +32 -0
- package/esm/typl/bridge.d.ts.map +1 -0
- package/esm/typl/bridge.js +27 -0
- package/esm/typl/bullet.d.ts +34 -0
- package/esm/typl/bullet.d.ts.map +1 -0
- package/esm/typl/bullet.js +44 -0
- package/esm/typl/diagnostics.d.ts +43 -0
- package/esm/typl/diagnostics.d.ts.map +1 -0
- package/esm/typl/diagnostics.js +61 -0
- package/esm/typl/fence.d.ts +31 -0
- package/esm/typl/fence.d.ts.map +1 -0
- package/esm/typl/fence.js +24 -0
- package/esm/typl/grammar.d.ts +20 -0
- package/esm/typl/grammar.d.ts.map +1 -0
- package/esm/typl/grammar.js +471 -0
- package/esm/typl/inline.d.ts +34 -0
- package/esm/typl/inline.d.ts.map +1 -0
- package/esm/typl/inline.js +48 -0
- package/esm/typl/lexer.d.ts +37 -0
- package/esm/typl/lexer.d.ts.map +1 -0
- package/esm/typl/lexer.js +234 -0
- package/esm/typl/mod.d.ts +23 -0
- package/esm/typl/mod.d.ts.map +1 -0
- package/esm/typl/mod.js +16 -0
- package/esm/typl/registry.d.ts +42 -0
- package/esm/typl/registry.d.ts.map +1 -0
- package/esm/typl/registry.js +26 -0
- package/esm/typl/validator.d.ts +29 -0
- package/esm/typl/validator.d.ts.map +1 -0
- package/esm/typl/validator.js +141 -0
- package/esm/util/line_endings.d.ts +33 -0
- package/esm/util/line_endings.d.ts.map +1 -0
- package/esm/util/line_endings.js +53 -0
- package/esm/util/modals.d.ts +29 -0
- package/esm/util/modals.d.ts.map +1 -0
- package/esm/util/modals.js +38 -0
- package/esm/validator/discipline.d.ts +35 -0
- package/esm/validator/discipline.d.ts.map +1 -0
- package/esm/validator/discipline.js +204 -0
- package/esm/validator/mod.d.ts +1 -1
- package/esm/validator/mod.d.ts.map +1 -1
- package/esm/validator/mod.js +23 -2
- package/esm/validator/modal_keywords.d.ts +15 -13
- package/esm/validator/modal_keywords.d.ts.map +1 -1
- package/esm/validator/modal_keywords.js +26 -109
- package/esm/validator/pattern.d.ts +15 -8
- package/esm/validator/pattern.d.ts.map +1 -1
- package/esm/validator/pattern.js +42 -19
- package/esm/validator/per_type_attrs.d.ts +2 -2
- package/esm/validator/per_type_attrs.d.ts.map +1 -1
- package/esm/validator/per_type_attrs.js +2 -2
- package/esm/validator/pipeline.d.ts +11 -0
- package/esm/validator/pipeline.d.ts.map +1 -1
- package/esm/validator/pipeline.js +37 -15
- package/esm/validator/type_resolution.d.ts +3 -3
- package/esm/validator/type_resolution.d.ts.map +1 -1
- package/esm/validator/type_resolution.js +31 -9
- package/package.json +2 -2
- package/script/ast/build.d.ts +11 -21
- package/script/ast/build.d.ts.map +1 -1
- package/script/ast/build.js +51 -140
- package/script/ast/nodes.d.ts +11 -43
- package/script/ast/nodes.d.ts.map +1 -1
- package/script/ast/nodes.js +6 -1
- package/script/ast/normalize.d.ts +8 -17
- package/script/ast/normalize.d.ts.map +1 -1
- package/script/ast/normalize.js +16 -74
- package/script/compiler/constants.d.ts +16 -0
- package/script/compiler/constants.d.ts.map +1 -0
- package/script/compiler/constants.js +29 -0
- package/script/compiler/discipline_classifier.d.ts +55 -0
- package/script/compiler/discipline_classifier.d.ts.map +1 -0
- package/script/compiler/discipline_classifier.js +196 -0
- package/script/compiler/inverses.d.ts +7 -0
- package/script/compiler/inverses.d.ts.map +1 -1
- package/script/compiler/inverses.js +2 -19
- package/script/compiler/mod.d.ts +30 -1
- package/script/compiler/mod.d.ts.map +1 -1
- package/script/compiler/mod.js +202 -69
- package/script/compiler/schema.d.ts +15 -0
- package/script/compiler/schema.d.ts.map +1 -1
- package/script/compiler/schema.js +12 -0
- package/script/config/markspec.d.ts +5 -0
- package/script/config/markspec.d.ts.map +1 -1
- package/script/config/markspec.js +17 -2
- package/script/formatter/mod.d.ts +9 -3
- package/script/formatter/mod.d.ts.map +1 -1
- package/script/formatter/mod.js +99 -51
- package/script/lexicons/loader.d.ts +35 -0
- package/script/lexicons/loader.d.ts.map +1 -0
- package/script/lexicons/loader.js +55 -0
- package/script/lexicons/mod.d.ts +13 -0
- package/script/lexicons/mod.d.ts.map +1 -0
- package/script/lexicons/mod.js +17 -0
- package/script/lint/glossary.d.ts +45 -0
- package/script/lint/glossary.d.ts.map +1 -0
- package/script/lint/glossary.js +88 -0
- package/script/lint/mod.d.ts +4 -0
- package/script/lint/mod.d.ts.map +1 -1
- package/script/lint/mod.js +6 -1
- package/script/lint/range_util.d.ts +25 -0
- package/script/lint/range_util.d.ts.map +1 -0
- package/script/lint/range_util.js +53 -0
- package/script/lint/rules/ears.d.ts +39 -0
- package/script/lint/rules/ears.d.ts.map +1 -0
- package/script/lint/rules/ears.js +320 -0
- package/script/lint/rules/incose_sentence.d.ts +46 -0
- package/script/lint/rules/incose_sentence.d.ts.map +1 -0
- package/script/lint/rules/incose_sentence.js +421 -0
- package/script/lint/rules/modal_sentence.d.ts +46 -0
- package/script/lint/rules/modal_sentence.d.ts.map +1 -0
- package/script/lint/rules/modal_sentence.js +150 -0
- package/script/lint/rules/passive.d.ts +64 -0
- package/script/lint/rules/passive.d.ts.map +1 -0
- package/script/lint/rules/passive.js +286 -0
- package/script/lint/rules/suppression.d.ts +38 -3
- package/script/lint/rules/suppression.d.ts.map +1 -1
- package/script/lint/rules/suppression.js +59 -3
- package/script/lint/rules/xref.d.ts +19 -0
- package/script/lint/rules/xref.d.ts.map +1 -0
- package/script/lint/rules/xref.js +251 -0
- package/script/lint/runner.d.ts +31 -11
- package/script/lint/runner.d.ts.map +1 -1
- package/script/lint/runner.js +67 -26
- package/script/lint/score.d.ts +64 -0
- package/script/lint/score.d.ts.map +1 -0
- package/script/lint/score.js +167 -0
- package/script/lint/segmenter.d.ts +32 -0
- package/script/lint/segmenter.d.ts.map +1 -0
- package/script/lint/segmenter.js +82 -0
- package/script/lint/types.d.ts +12 -0
- package/script/lint/types.d.ts.map +1 -1
- package/script/lock/canonical_edges.d.ts +31 -0
- package/script/lock/canonical_edges.d.ts.map +1 -0
- package/script/lock/canonical_edges.js +61 -0
- package/script/lock/check.d.ts +24 -0
- package/script/lock/check.d.ts.map +1 -0
- package/script/lock/check.js +130 -0
- package/script/lock/hash.d.ts +12 -0
- package/script/lock/hash.d.ts.map +1 -0
- package/script/lock/hash.js +36 -0
- package/script/lock/mod.d.ts +19 -0
- package/script/lock/mod.d.ts.map +1 -0
- package/script/lock/mod.js +31 -0
- package/script/lock/model.d.ts +81 -0
- package/script/lock/model.d.ts.map +1 -0
- package/script/lock/model.js +10 -0
- package/script/lock/parser.d.ts +26 -0
- package/script/lock/parser.d.ts.map +1 -0
- package/script/lock/parser.js +198 -0
- package/script/lock/resolve.d.ts +142 -0
- package/script/lock/resolve.d.ts.map +1 -0
- package/script/lock/resolve.js +397 -0
- package/script/lock/serializer.d.ts +14 -0
- package/script/lock/serializer.d.ts.map +1 -0
- package/script/lock/serializer.js +107 -0
- package/script/mod.d.ts +16 -9
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +111 -38
- package/script/model/attributes.d.ts +6 -0
- package/script/model/attributes.d.ts.map +1 -1
- package/script/model/attributes.js +38 -1
- package/script/model/discipline.d.ts +53 -0
- package/script/model/discipline.d.ts.map +1 -0
- package/script/model/discipline.js +53 -0
- package/script/model/mod.d.ts +188 -30
- package/script/model/mod.d.ts.map +1 -1
- package/script/model/mod.js +48 -1
- package/script/model/profile.d.ts +69 -0
- package/script/model/profile.d.ts.map +1 -1
- package/script/parser/attributes.d.ts.map +1 -1
- package/script/parser/attributes.js +1 -10
- package/script/parser/body_tokens.d.ts +35 -0
- package/script/parser/body_tokens.d.ts.map +1 -0
- package/script/parser/body_tokens.js +235 -0
- package/script/parser/glossary.d.ts +8 -0
- package/script/parser/glossary.d.ts.map +1 -1
- package/script/parser/glossary.js +7 -4
- package/script/parser/grammars.d.ts +5 -3
- package/script/parser/grammars.d.ts.map +1 -1
- package/script/parser/grammars.js +15 -8
- package/script/parser/language_spec.d.ts +55 -0
- package/script/parser/language_spec.d.ts.map +1 -0
- package/script/parser/language_spec.js +423 -0
- package/script/parser/line_map.d.ts +60 -0
- package/script/parser/line_map.d.ts.map +1 -0
- package/script/parser/line_map.js +44 -0
- package/script/parser/markdown.d.ts +9 -0
- package/script/parser/markdown.d.ts.map +1 -1
- package/script/parser/markdown.js +105 -29
- package/script/parser/mod.d.ts +4 -0
- package/script/parser/mod.d.ts.map +1 -1
- package/script/parser/mod.js +32 -7
- package/script/parser/source.d.ts +39 -8
- package/script/parser/source.d.ts.map +1 -1
- package/script/parser/source.js +156 -69
- package/script/parser/translate.d.ts +24 -0
- package/script/parser/translate.d.ts.map +1 -0
- package/script/parser/translate.js +102 -0
- package/script/profile/chain.d.ts +8 -0
- package/script/profile/chain.d.ts.map +1 -1
- package/script/profile/chain.js +29 -1
- package/script/profile/default_profile.d.ts +25 -0
- package/script/profile/default_profile.d.ts.map +1 -0
- package/script/profile/default_profile.js +46 -0
- package/script/profile/discipline_mode.d.ts +64 -0
- package/script/profile/discipline_mode.d.ts.map +1 -0
- package/script/profile/discipline_mode.js +138 -0
- package/script/profile/discipline_registry.d.ts +41 -0
- package/script/profile/discipline_registry.d.ts.map +1 -0
- package/script/profile/discipline_registry.js +70 -0
- package/script/profile/load.d.ts +3 -1
- package/script/profile/load.d.ts.map +1 -1
- package/script/profile/load.js +24 -5
- package/script/profile/manifest.d.ts.map +1 -1
- package/script/profile/manifest.js +252 -19
- package/script/profile/merge.d.ts.map +1 -1
- package/script/profile/merge.js +112 -0
- package/script/profile/mod.d.ts +2 -0
- package/script/profile/mod.d.ts.map +1 -1
- package/script/profile/mod.js +6 -1
- package/script/sync/locked_attributes.d.ts +19 -0
- package/script/sync/locked_attributes.d.ts.map +1 -0
- package/script/sync/locked_attributes.js +30 -0
- package/script/sync/log.d.ts +34 -0
- package/script/sync/log.d.ts.map +1 -0
- package/script/sync/log.js +52 -0
- package/script/sync/mapping.d.ts +66 -0
- package/script/sync/mapping.d.ts.map +1 -0
- package/script/sync/mapping.js +169 -0
- package/script/sync/mod.d.ts +16 -0
- package/script/sync/mod.d.ts.map +1 -0
- package/script/sync/mod.js +21 -0
- package/script/sync/status.d.ts +23 -0
- package/script/sync/status.d.ts.map +1 -0
- package/script/sync/status.js +24 -0
- package/script/typl/ast.d.ts +87 -0
- package/script/typl/ast.d.ts.map +1 -0
- package/script/typl/ast.js +24 -0
- package/script/typl/bridge.d.ts +32 -0
- package/script/typl/bridge.d.ts.map +1 -0
- package/script/typl/bridge.js +30 -0
- package/script/typl/bullet.d.ts +34 -0
- package/script/typl/bullet.d.ts.map +1 -0
- package/script/typl/bullet.js +47 -0
- package/script/typl/diagnostics.d.ts +43 -0
- package/script/typl/diagnostics.d.ts.map +1 -0
- package/script/typl/diagnostics.js +65 -0
- package/script/typl/fence.d.ts +31 -0
- package/script/typl/fence.d.ts.map +1 -0
- package/script/typl/fence.js +27 -0
- package/script/typl/grammar.d.ts +20 -0
- package/script/typl/grammar.d.ts.map +1 -0
- package/script/typl/grammar.js +474 -0
- package/script/typl/inline.d.ts +34 -0
- package/script/typl/inline.d.ts.map +1 -0
- package/script/typl/inline.js +51 -0
- package/script/typl/lexer.d.ts +37 -0
- package/script/typl/lexer.d.ts.map +1 -0
- package/script/typl/lexer.js +237 -0
- package/script/typl/mod.d.ts +23 -0
- package/script/typl/mod.d.ts.map +1 -0
- package/script/typl/mod.js +29 -0
- package/script/typl/registry.d.ts +42 -0
- package/script/typl/registry.d.ts.map +1 -0
- package/script/typl/registry.js +29 -0
- package/script/typl/validator.d.ts +29 -0
- package/script/typl/validator.d.ts.map +1 -0
- package/script/typl/validator.js +144 -0
- package/script/util/line_endings.d.ts +33 -0
- package/script/util/line_endings.d.ts.map +1 -0
- package/script/util/line_endings.js +58 -0
- package/script/util/modals.d.ts +29 -0
- package/script/util/modals.d.ts.map +1 -0
- package/script/util/modals.js +42 -0
- package/script/validator/discipline.d.ts +35 -0
- package/script/validator/discipline.d.ts.map +1 -0
- package/script/validator/discipline.js +207 -0
- package/script/validator/mod.d.ts +1 -1
- package/script/validator/mod.d.ts.map +1 -1
- package/script/validator/mod.js +23 -1
- package/script/validator/modal_keywords.d.ts +15 -13
- package/script/validator/modal_keywords.d.ts.map +1 -1
- package/script/validator/modal_keywords.js +26 -109
- package/script/validator/pattern.d.ts +15 -8
- package/script/validator/pattern.d.ts.map +1 -1
- package/script/validator/pattern.js +42 -19
- package/script/validator/per_type_attrs.d.ts +2 -2
- package/script/validator/per_type_attrs.d.ts.map +1 -1
- package/script/validator/per_type_attrs.js +2 -2
- package/script/validator/pipeline.d.ts +11 -0
- package/script/validator/pipeline.d.ts.map +1 -1
- package/script/validator/pipeline.js +40 -17
- package/script/validator/type_resolution.d.ts +3 -3
- package/script/validator/type_resolution.d.ts.map +1 -1
- package/script/validator/type_resolution.js +31 -9
- package/esm/parser/entity_refs.d.ts +0 -53
- package/esm/parser/entity_refs.d.ts.map +0 -1
- package/esm/parser/entity_refs.js +0 -151
- package/script/parser/entity_refs.d.ts +0 -53
- package/script/parser/entity_refs.d.ts.map +0 -1
- package/script/parser/entity_refs.js +0 -155
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module core/lock/resolve
|
|
4
|
+
*
|
|
5
|
+
* Shared upstream-resolution layer. Both `markspec lock` and
|
|
6
|
+
* `markspec compile` call {@linkcode resolveUpstreams}. All
|
|
7
|
+
* world-touching operations (HTTP fetch, clock) flow through
|
|
8
|
+
* callbacks so unit tests inject deterministic stubs.
|
|
9
|
+
*
|
|
10
|
+
* Implementation arrives in Tasks 15–18; this file ships the type
|
|
11
|
+
* surface and a stub.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.resolveReferences = resolveReferences;
|
|
15
|
+
exports.extractEdgeQuads = extractEdgeQuads;
|
|
16
|
+
exports.resolveUpstreams = resolveUpstreams;
|
|
17
|
+
exports.resolveProfileChain = resolveProfileChain;
|
|
18
|
+
exports.resolveRegistries = resolveRegistries;
|
|
19
|
+
exports.resolveBoundEntries = resolveBoundEntries;
|
|
20
|
+
const locked_attributes_js_1 = require("../sync/locked_attributes.js");
|
|
21
|
+
const hash_js_1 = require("./hash.js");
|
|
22
|
+
const canonical_edges_js_1 = require("./canonical_edges.js");
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
// Reference resolution (Task 15)
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
/**
|
|
27
|
+
* Extract the "resolved version" segment from a Reference's URI.
|
|
28
|
+
*
|
|
29
|
+
* Heuristics covering the URI schemes the lock CLI is expected to see:
|
|
30
|
+
* - `urn:iso:std:iso:26262:-6:ed-2` → `ed-2` (last `:`-segment)
|
|
31
|
+
* - `pkg:cargo/serde@1.0.0` → `1.0.0` (everything after the last `@`)
|
|
32
|
+
* - `doi:…`, `isbn:…`, plain `https://…` → undefined
|
|
33
|
+
*/
|
|
34
|
+
function extractResolvedVersion(uri) {
|
|
35
|
+
const urnMatch = uri.match(/^urn:[^:]+(?:::|:)([^:]+)$/);
|
|
36
|
+
if (urnMatch)
|
|
37
|
+
return urnMatch[1];
|
|
38
|
+
const pkgMatch = uri.match(/@([^?]+)$/);
|
|
39
|
+
if (pkgMatch)
|
|
40
|
+
return pkgMatch[1];
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
/** First raw-attribute value matching `key`, or undefined. */
|
|
44
|
+
function attrValue(entry, key) {
|
|
45
|
+
for (const a of entry.rawAttributes) {
|
|
46
|
+
if (a.key === key)
|
|
47
|
+
return a.value;
|
|
48
|
+
}
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Resolve every Reference entry to an upstream record. Deduplicates by
|
|
53
|
+
* display ID (first occurrence wins). When `Reference-url:` is set, the
|
|
54
|
+
* bytes are fetched and `sha256:*`-hashed; otherwise an MSL-L010 info
|
|
55
|
+
* diagnostic is attached and the upstream is identity-only. Fetch
|
|
56
|
+
* failures attach MSL-L101 and degrade to identity-only.
|
|
57
|
+
*/
|
|
58
|
+
async function resolveReferences(entries, fetchUrl) {
|
|
59
|
+
const out = [];
|
|
60
|
+
const seenSlugs = new Set();
|
|
61
|
+
for (const entry of entries) {
|
|
62
|
+
if (entry.shape !== "Reference")
|
|
63
|
+
continue;
|
|
64
|
+
if (seenSlugs.has(entry.displayId))
|
|
65
|
+
continue;
|
|
66
|
+
seenSlugs.add(entry.displayId);
|
|
67
|
+
const id = entry.id;
|
|
68
|
+
if (id === undefined)
|
|
69
|
+
continue;
|
|
70
|
+
const refUrl = attrValue(entry, "Reference-url");
|
|
71
|
+
const diagnostics = [];
|
|
72
|
+
let hash;
|
|
73
|
+
let source;
|
|
74
|
+
if (refUrl === undefined) {
|
|
75
|
+
diagnostics.push({
|
|
76
|
+
code: "MSL-L010",
|
|
77
|
+
severity: "info",
|
|
78
|
+
message: `Reference '${entry.displayId}' has no Reference-url:; identity-only lock (no hash, no drift detection).`,
|
|
79
|
+
location: entry.location,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
const fetched = await fetchUrl(refUrl);
|
|
84
|
+
if (fetched instanceof Uint8Array) {
|
|
85
|
+
hash = await (0, hash_js_1.sha256Bytes)(fetched);
|
|
86
|
+
source = refUrl;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
diagnostics.push({
|
|
90
|
+
code: "MSL-L101",
|
|
91
|
+
severity: "warning",
|
|
92
|
+
message: `Failed to fetch Reference-url for '${entry.displayId}' (${refUrl}): ${fetched.error}. Recording identity-only.`,
|
|
93
|
+
location: entry.location,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
out.push({
|
|
98
|
+
upstream: {
|
|
99
|
+
kind: "reference",
|
|
100
|
+
slug: entry.displayId,
|
|
101
|
+
id,
|
|
102
|
+
resolved: extractResolvedVersion(id),
|
|
103
|
+
hash,
|
|
104
|
+
source,
|
|
105
|
+
},
|
|
106
|
+
diagnostics,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return out;
|
|
110
|
+
}
|
|
111
|
+
// ---------------------------------------------------------------------------
|
|
112
|
+
// Full upstream resolution (Tasks 16–18)
|
|
113
|
+
// ---------------------------------------------------------------------------
|
|
114
|
+
/**
|
|
115
|
+
* Project an entry list to canonical edge quads. Walks the eleven core
|
|
116
|
+
* trace-link attributes (Satisfies, Derived-from, Verified-by, …) and
|
|
117
|
+
* emits one quad per resolved target ID, splitting CSV values on `,`
|
|
118
|
+
* or whitespace. Every quad is provenance `"local"` — externally
|
|
119
|
+
* sourced edges are folded in later (post-MVP).
|
|
120
|
+
*/
|
|
121
|
+
function extractEdgeQuads(entries) {
|
|
122
|
+
const TRACE_KEYS = [
|
|
123
|
+
"Satisfies",
|
|
124
|
+
"Derived-from",
|
|
125
|
+
"Verified-by",
|
|
126
|
+
"References",
|
|
127
|
+
"Tests",
|
|
128
|
+
"Depends-on",
|
|
129
|
+
"Part-of",
|
|
130
|
+
"Allocated-to",
|
|
131
|
+
"Realizes",
|
|
132
|
+
"Generated-from",
|
|
133
|
+
"Supersedes",
|
|
134
|
+
];
|
|
135
|
+
const out = [];
|
|
136
|
+
for (const entry of entries) {
|
|
137
|
+
for (const a of entry.rawAttributes) {
|
|
138
|
+
if (!TRACE_KEYS.includes(a.key))
|
|
139
|
+
continue;
|
|
140
|
+
const targets = a.value.split(/[\s,]+/).filter((t) => t.length > 0);
|
|
141
|
+
for (const target of targets) {
|
|
142
|
+
out.push({
|
|
143
|
+
source: entry.displayId,
|
|
144
|
+
relation: a.key,
|
|
145
|
+
target,
|
|
146
|
+
provenance: "local",
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return out;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Resolve every upstream the lockfile needs: References, profile chain
|
|
155
|
+
* tiers, federated registries, and bound entries. Computes the
|
|
156
|
+
* canonical edge hash from the same entry set. Returns the aggregate
|
|
157
|
+
* `ResolvedUpstreams` payload ready for {@link serializeLockfile}.
|
|
158
|
+
*
|
|
159
|
+
* The four sub-resolvers run sequentially (not concurrently) because
|
|
160
|
+
* (a) the callbacks they share — `fetchUrl`, `readFile` — may themselves
|
|
161
|
+
* serialize work, and (b) the diagnostics output is easier to reason
|
|
162
|
+
* about with a deterministic order. Wrap inside `Promise.all` only when
|
|
163
|
+
* profiling shows a clear win.
|
|
164
|
+
*/
|
|
165
|
+
async function resolveUpstreams(opts) {
|
|
166
|
+
const now = (opts.now ?? (() => new Date()))();
|
|
167
|
+
const lockedAt = now.toISOString();
|
|
168
|
+
const refResults = await resolveReferences(opts.entries, opts.fetchUrl);
|
|
169
|
+
const profResults = await resolveProfileChain(opts.profileChain, opts.readFile);
|
|
170
|
+
const regResults = await resolveRegistries(opts.config, opts.fetchUrl);
|
|
171
|
+
const boundResults = await resolveBoundEntries(opts.entries, opts.mappings);
|
|
172
|
+
const edges = extractEdgeQuads(opts.entries);
|
|
173
|
+
const canonicalEdgeHash = await (0, canonical_edges_js_1.hashCanonicalEdges)(edges);
|
|
174
|
+
const diagnostics = [
|
|
175
|
+
...refResults.flatMap((r) => r.diagnostics),
|
|
176
|
+
...profResults.flatMap((r) => r.diagnostics),
|
|
177
|
+
...regResults.flatMap((r) => r.diagnostics),
|
|
178
|
+
...boundResults.flatMap((r) => r.diagnostics),
|
|
179
|
+
];
|
|
180
|
+
return {
|
|
181
|
+
references: refResults,
|
|
182
|
+
profiles: profResults,
|
|
183
|
+
registries: regResults,
|
|
184
|
+
boundEntries: boundResults,
|
|
185
|
+
canonicalEdgeHash,
|
|
186
|
+
canonicalEdgeCount: edges.length,
|
|
187
|
+
lockedAt,
|
|
188
|
+
diagnostics,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
// ---------------------------------------------------------------------------
|
|
192
|
+
// Profile chain resolution (Task 16)
|
|
193
|
+
// ---------------------------------------------------------------------------
|
|
194
|
+
/**
|
|
195
|
+
* Format a `ProfileSpecifier` into the lockfile-canonical specifier string.
|
|
196
|
+
*
|
|
197
|
+
* Strings are stable across runs so the lockfile diff captures only meaningful
|
|
198
|
+
* changes:
|
|
199
|
+
* - `builtin` — bundled default
|
|
200
|
+
* - `local:<path>` — on-disk profile
|
|
201
|
+
* - `git:<repo>#<tag>` or `git:<repo>//<subpath>#<tag>`
|
|
202
|
+
* - `npm:<scope?><name>@<range>`
|
|
203
|
+
*/
|
|
204
|
+
function formatSpecifier(spec) {
|
|
205
|
+
switch (spec.kind) {
|
|
206
|
+
case "builtin":
|
|
207
|
+
return "builtin";
|
|
208
|
+
case "local":
|
|
209
|
+
return `local:${spec.path}`;
|
|
210
|
+
case "git":
|
|
211
|
+
return spec.subpath !== undefined
|
|
212
|
+
? `git:${spec.repo}//${spec.subpath}#${spec.tag}`
|
|
213
|
+
: `git:${spec.repo}#${spec.tag}`;
|
|
214
|
+
case "npm": {
|
|
215
|
+
const name = spec.scope !== undefined
|
|
216
|
+
? `${spec.scope}/${spec.name}`
|
|
217
|
+
: spec.name;
|
|
218
|
+
return `npm:${name}@${spec.range}`;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Resolve every profile chain tier into an upstream record. Each tier's
|
|
224
|
+
* `markspec.yaml` is read from `tier.sourcePath` via `readFile` and
|
|
225
|
+
* `sha256:*`-hashed; a read failure attaches MSL-L102 and degrades the
|
|
226
|
+
* tier's hash to `sha256:0` (identity-only).
|
|
227
|
+
*
|
|
228
|
+
* The `extends` chain is reconstructed from list order: tiers are
|
|
229
|
+
* already root-parent → leaf-child, so each tier's `extends` points to
|
|
230
|
+
* the previous tier's id. The root tier has `extends: undefined`.
|
|
231
|
+
*/
|
|
232
|
+
async function resolveProfileChain(chain, readFile) {
|
|
233
|
+
if (Array.isArray(chain))
|
|
234
|
+
return [];
|
|
235
|
+
const realChain = chain;
|
|
236
|
+
const out = [];
|
|
237
|
+
let parentId = undefined;
|
|
238
|
+
for (const tier of realChain.tiers) {
|
|
239
|
+
const diagnostics = [];
|
|
240
|
+
let hash = "sha256:0";
|
|
241
|
+
const fetched = await readFile(tier.sourcePath);
|
|
242
|
+
if (fetched instanceof Uint8Array) {
|
|
243
|
+
hash = await (0, hash_js_1.sha256Bytes)(fetched);
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
diagnostics.push({
|
|
247
|
+
code: "MSL-L102",
|
|
248
|
+
severity: "warning",
|
|
249
|
+
message: `Failed to read profile manifest at ${tier.sourcePath}: ${fetched.error}. Recording identity-only hash.`,
|
|
250
|
+
location: undefined,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
out.push({
|
|
254
|
+
upstream: {
|
|
255
|
+
kind: "profile",
|
|
256
|
+
id: tier.id,
|
|
257
|
+
specifier: formatSpecifier(tier.specifier),
|
|
258
|
+
resolved: tier.version,
|
|
259
|
+
hash,
|
|
260
|
+
extends: parentId,
|
|
261
|
+
},
|
|
262
|
+
diagnostics,
|
|
263
|
+
});
|
|
264
|
+
parentId = tier.id;
|
|
265
|
+
}
|
|
266
|
+
return out;
|
|
267
|
+
}
|
|
268
|
+
// ---------------------------------------------------------------------------
|
|
269
|
+
// Registry resolution (Task 16)
|
|
270
|
+
// ---------------------------------------------------------------------------
|
|
271
|
+
/**
|
|
272
|
+
* Resolve federated parent registries (and the fallback, when not already
|
|
273
|
+
* listed). Each URL's `<url>/manifest` is fetched; the body is parsed
|
|
274
|
+
* loosely for `markspec-schema` (defaults to 1 on parse failure).
|
|
275
|
+
*/
|
|
276
|
+
async function resolveRegistries(config, fetchUrl) {
|
|
277
|
+
const urls = [...config.parents];
|
|
278
|
+
if (config.parentFallback && !urls.includes(config.parentFallback)) {
|
|
279
|
+
urls.push(config.parentFallback);
|
|
280
|
+
}
|
|
281
|
+
const out = [];
|
|
282
|
+
for (const url of urls) {
|
|
283
|
+
const manifestUrl = url.endsWith("/")
|
|
284
|
+
? `${url}manifest`
|
|
285
|
+
: `${url}/manifest`;
|
|
286
|
+
const fetched = await fetchUrl(manifestUrl);
|
|
287
|
+
if (fetched instanceof Uint8Array) {
|
|
288
|
+
const hash = await (0, hash_js_1.sha256Bytes)(fetched);
|
|
289
|
+
let markspecSchema = 1;
|
|
290
|
+
try {
|
|
291
|
+
const parsed = JSON.parse(new TextDecoder().decode(fetched));
|
|
292
|
+
if (typeof parsed["markspec-schema"] === "number") {
|
|
293
|
+
markspecSchema = parsed["markspec-schema"];
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
catch { /* leave default */ }
|
|
297
|
+
out.push({
|
|
298
|
+
upstream: {
|
|
299
|
+
kind: "registry",
|
|
300
|
+
id: `urn:markspec:registry:${url}`,
|
|
301
|
+
api: url,
|
|
302
|
+
resolvedManifestHash: hash,
|
|
303
|
+
markspecSchema,
|
|
304
|
+
},
|
|
305
|
+
diagnostics: [],
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
out.push({
|
|
310
|
+
upstream: {
|
|
311
|
+
kind: "registry",
|
|
312
|
+
id: `urn:markspec:registry:${url}`,
|
|
313
|
+
api: url,
|
|
314
|
+
resolvedManifestHash: "sha256:0",
|
|
315
|
+
markspecSchema: 1,
|
|
316
|
+
},
|
|
317
|
+
diagnostics: [{
|
|
318
|
+
code: "MSL-L101",
|
|
319
|
+
severity: "warning",
|
|
320
|
+
message: `Failed to fetch registry manifest from ${manifestUrl}: ${fetched.error}`,
|
|
321
|
+
location: undefined,
|
|
322
|
+
}],
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return out;
|
|
327
|
+
}
|
|
328
|
+
// ---------------------------------------------------------------------------
|
|
329
|
+
// Bound-entry resolution (Task 17)
|
|
330
|
+
// ---------------------------------------------------------------------------
|
|
331
|
+
/**
|
|
332
|
+
* Resolve every entry carrying `External-id:` attributes into a
|
|
333
|
+
* `ResolvedBoundEntry`. For each External-id, look up the mapping by
|
|
334
|
+
* scheme prefix, compute the locked-attribute set, and snapshot each
|
|
335
|
+
* local value as `sha256:*` of UTF-8 bytes.
|
|
336
|
+
*
|
|
337
|
+
* Unknown scheme → MSL-S021 error, that binding skipped. Entries with
|
|
338
|
+
* zero External-id attributes are silently dropped (no upstream lock
|
|
339
|
+
* needed). Multi-value attributes are joined with `\n` before hashing
|
|
340
|
+
* so a single locked-attribute hash captures the full attribute state.
|
|
341
|
+
*/
|
|
342
|
+
async function resolveBoundEntries(entries, mappings) {
|
|
343
|
+
const mappingBySystem = new Map();
|
|
344
|
+
for (const m of mappings)
|
|
345
|
+
mappingBySystem.set(m.system, m);
|
|
346
|
+
const out = [];
|
|
347
|
+
for (const entry of entries) {
|
|
348
|
+
const externalIds = [];
|
|
349
|
+
for (const a of entry.rawAttributes) {
|
|
350
|
+
if (a.key === "External-id")
|
|
351
|
+
externalIds.push(a.value);
|
|
352
|
+
}
|
|
353
|
+
if (externalIds.length === 0)
|
|
354
|
+
continue;
|
|
355
|
+
const diagnostics = [];
|
|
356
|
+
const bindings = [];
|
|
357
|
+
for (const eid of externalIds) {
|
|
358
|
+
const colonIdx = eid.indexOf(":");
|
|
359
|
+
const scheme = colonIdx >= 0 ? eid.slice(0, colonIdx) : eid;
|
|
360
|
+
const mapping = mappingBySystem.get(scheme);
|
|
361
|
+
if (!mapping) {
|
|
362
|
+
diagnostics.push({
|
|
363
|
+
code: "MSL-S021",
|
|
364
|
+
severity: "error",
|
|
365
|
+
message: `External-id scheme '${scheme}' on entry '${entry.displayId}' has no matching mapping.yaml.`,
|
|
366
|
+
location: entry.location,
|
|
367
|
+
});
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
const lockedAttrNames = (0, locked_attributes_js_1.inferLockedAttributes)(mapping);
|
|
371
|
+
const lockedAttributes = new Map();
|
|
372
|
+
for (const attrName of lockedAttrNames) {
|
|
373
|
+
const value = entry.rawAttributes
|
|
374
|
+
.filter((a) => a.key === attrName)
|
|
375
|
+
.map((a) => a.value)
|
|
376
|
+
.join("\n");
|
|
377
|
+
const hash = await (0, hash_js_1.sha256Bytes)(new TextEncoder().encode(value));
|
|
378
|
+
lockedAttributes.set(attrName, hash);
|
|
379
|
+
}
|
|
380
|
+
bindings.push({
|
|
381
|
+
externalId: eid,
|
|
382
|
+
system: scheme,
|
|
383
|
+
direction: mapping.direction,
|
|
384
|
+
lockedAttributes,
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
out.push({
|
|
388
|
+
boundEntry: {
|
|
389
|
+
displayId: entry.displayId,
|
|
390
|
+
ulid: entry.id ?? "",
|
|
391
|
+
bindings,
|
|
392
|
+
},
|
|
393
|
+
diagnostics,
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
return out;
|
|
397
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module core/lock/serializer
|
|
3
|
+
*
|
|
4
|
+
* Deterministic TOML emitter for the Lockfile model. Tables and keys in
|
|
5
|
+
* fixed order; arrays sorted by primary key; identical input → byte-
|
|
6
|
+
* identical output. We hand-roll the emitter rather than using
|
|
7
|
+
* @std/toml/stringify because we need (a) generated-file header
|
|
8
|
+
* comment, (b) precise control over nested array-of-tables emission
|
|
9
|
+
* order, (c) guaranteed key sort.
|
|
10
|
+
*/
|
|
11
|
+
import type { Lockfile } from "./model.js";
|
|
12
|
+
/** Emit a deterministic TOML representation of a Lockfile. */
|
|
13
|
+
export declare function serializeLockfile(lf: Lockfile): string;
|
|
14
|
+
//# sourceMappingURL=serializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../src/lock/serializer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,QAAQ,EAIT,MAAM,YAAY,CAAC;AAMpB,8DAA8D;AAC9D,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,MAAM,CAwFtD"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module core/lock/serializer
|
|
4
|
+
*
|
|
5
|
+
* Deterministic TOML emitter for the Lockfile model. Tables and keys in
|
|
6
|
+
* fixed order; arrays sorted by primary key; identical input → byte-
|
|
7
|
+
* identical output. We hand-roll the emitter rather than using
|
|
8
|
+
* @std/toml/stringify because we need (a) generated-file header
|
|
9
|
+
* comment, (b) precise control over nested array-of-tables emission
|
|
10
|
+
* order, (c) guaranteed key sort.
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.serializeLockfile = serializeLockfile;
|
|
14
|
+
const HEADER = "# @generated by `markspec lock` — do not hand-edit. Run `markspec lock`.\n" +
|
|
15
|
+
"# See https://markspec.dev/lock for the format.\n";
|
|
16
|
+
/** Emit a deterministic TOML representation of a Lockfile. */
|
|
17
|
+
function serializeLockfile(lf) {
|
|
18
|
+
const parts = [HEADER];
|
|
19
|
+
parts.push(`schema = ${lf.schema}\n\n`);
|
|
20
|
+
parts.push("[meta]\n");
|
|
21
|
+
parts.push(`markspec-schema = ${lf.meta.markspecSchema}\n`);
|
|
22
|
+
parts.push(`locked-at = ${tomlString(lf.meta.lockedAt)}\n`);
|
|
23
|
+
const refs = lf.upstreams
|
|
24
|
+
.filter((u) => u.kind === "reference")
|
|
25
|
+
.slice()
|
|
26
|
+
.sort((a, b) => a.slug.localeCompare(b.slug));
|
|
27
|
+
for (const r of refs) {
|
|
28
|
+
parts.push("\n[[upstream.reference]]\n");
|
|
29
|
+
parts.push(`slug = ${tomlString(r.slug)}\n`);
|
|
30
|
+
parts.push(`id = ${tomlString(r.id)}\n`);
|
|
31
|
+
if (r.resolved !== undefined) {
|
|
32
|
+
parts.push(`resolved = ${tomlString(r.resolved)}\n`);
|
|
33
|
+
}
|
|
34
|
+
if (r.hash !== undefined)
|
|
35
|
+
parts.push(`hash = ${tomlString(r.hash)}\n`);
|
|
36
|
+
if (r.source !== undefined) {
|
|
37
|
+
parts.push(`source = ${tomlString(r.source)}\n`);
|
|
38
|
+
}
|
|
39
|
+
if (r.componentScheme !== undefined) {
|
|
40
|
+
parts.push(`component-scheme = ${tomlString(r.componentScheme)}\n`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const profs = lf.upstreams
|
|
44
|
+
.filter((u) => u.kind === "profile")
|
|
45
|
+
.slice()
|
|
46
|
+
.sort((a, b) => a.id.localeCompare(b.id));
|
|
47
|
+
for (const p of profs) {
|
|
48
|
+
parts.push("\n[[upstream.profile]]\n");
|
|
49
|
+
parts.push(`id = ${tomlString(p.id)}\n`);
|
|
50
|
+
parts.push(`specifier = ${tomlString(p.specifier)}\n`);
|
|
51
|
+
parts.push(`resolved = ${tomlString(p.resolved)}\n`);
|
|
52
|
+
parts.push(`hash = ${tomlString(p.hash)}\n`);
|
|
53
|
+
if (p.extends !== undefined) {
|
|
54
|
+
parts.push(`extends = ${tomlString(p.extends)}\n`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const regs = lf.upstreams
|
|
58
|
+
.filter((u) => u.kind === "registry")
|
|
59
|
+
.slice()
|
|
60
|
+
.sort((a, b) => a.id.localeCompare(b.id));
|
|
61
|
+
for (const r of regs) {
|
|
62
|
+
parts.push("\n[[upstream.registry]]\n");
|
|
63
|
+
parts.push(`id = ${tomlString(r.id)}\n`);
|
|
64
|
+
parts.push(`api = ${tomlString(r.api)}\n`);
|
|
65
|
+
parts.push(`resolved-manifest-hash = ${tomlString(r.resolvedManifestHash)}\n`);
|
|
66
|
+
parts.push(`markspec-schema = ${r.markspecSchema}\n`);
|
|
67
|
+
}
|
|
68
|
+
const bounds = lf.boundEntries.slice().sort((a, b) => a.displayId.localeCompare(b.displayId));
|
|
69
|
+
for (const be of bounds) {
|
|
70
|
+
parts.push("\n[[bound-entry]]\n");
|
|
71
|
+
parts.push(`display-id = ${tomlString(be.displayId)}\n`);
|
|
72
|
+
parts.push(`ulid = ${tomlString(be.ulid)}\n`);
|
|
73
|
+
const bindings = be.bindings.slice().sort((a, b) => a.system.localeCompare(b.system));
|
|
74
|
+
for (const b of bindings) {
|
|
75
|
+
parts.push("\n[[bound-entry.binding]]\n");
|
|
76
|
+
parts.push(`external-id = ${tomlString(b.externalId)}\n`);
|
|
77
|
+
parts.push(`system = ${tomlString(b.system)}\n`);
|
|
78
|
+
parts.push(`direction = ${tomlString(b.direction)}\n`);
|
|
79
|
+
if (b.lockedAttributes.size > 0) {
|
|
80
|
+
parts.push("\n[bound-entry.binding.locked-attributes]\n");
|
|
81
|
+
const sortedAttrs = [...b.lockedAttributes.entries()]
|
|
82
|
+
.sort(([k1], [k2]) => k1.localeCompare(k2));
|
|
83
|
+
for (const [k, v] of sortedAttrs) {
|
|
84
|
+
parts.push(`${k} = ${tomlString(v)}\n`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
parts.push("\n[generated-cache]\n");
|
|
90
|
+
parts.push(`edges-hash = ${tomlString(lf.generatedCache.edgesHash)}\n`);
|
|
91
|
+
parts.push(`edges-count = ${lf.generatedCache.edgesCount}\n`);
|
|
92
|
+
return parts.join("");
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Emit a TOML basic string. Backslash and double-quote escaped; the three
|
|
96
|
+
* common whitespace control characters (`\n`, `\r`, `\t`) are escaped so
|
|
97
|
+
* that opaque external-system inputs (e.g. an `externalId` containing a
|
|
98
|
+
* newline) cannot produce invalid TOML.
|
|
99
|
+
*/
|
|
100
|
+
function tomlString(s) {
|
|
101
|
+
return `"${s
|
|
102
|
+
.replace(/\\/g, "\\\\")
|
|
103
|
+
.replace(/"/g, '\\"')
|
|
104
|
+
.replace(/\n/g, "\\n")
|
|
105
|
+
.replace(/\r/g, "\\r")
|
|
106
|
+
.replace(/\t/g, "\\t")}"`;
|
|
107
|
+
}
|
package/script/mod.d.ts
CHANGED
|
@@ -8,36 +8,43 @@
|
|
|
8
8
|
* from core/mod.ts, never from internal paths.
|
|
9
9
|
*/
|
|
10
10
|
import "./_dnt.polyfills.js";
|
|
11
|
-
export declare const VERSION = "0.
|
|
11
|
+
export declare const VERSION = "0.6.0";
|
|
12
12
|
export declare const CORE_SCHEMA_VERSION = 1;
|
|
13
|
-
export { ConfigError, DEFAULT_PROJECT_CONFIG, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
|
|
14
|
-
export type { Attribute, Caption, CaptionConventions, CaptionPosition, ConfigFieldError, Diagnostic, Directive, DisplayId, EffectiveProfile, EffectiveTypeDef,
|
|
13
|
+
export { ConfigError, CORE_DISCIPLINE_REGISTRY, CORE_KINDS, DEFAULT_PROJECT_CONFIG, KNOWN_LINK_KINDS, makeDisplayId, makeUlid, MIXED_DISCIPLINE, PALETTE_HUES, REFHUB_URL, } from "./model/mod.js";
|
|
14
|
+
export type { Attribute, BodyToken, BodyTokenKind, Caption, CaptionConventions, CaptionPosition, ConfigFieldError, Diagnostic, Directive, Discipline, DisciplineRegistry, DisplayId, EarsTrigger, EffectiveProfile, EffectiveTypeDef, EntityRefConvention, Entry, EntryShape, EntrySource, ExtractorRule, InlineRef, KindDecl, LabelConcern, LabelConcernKind, LabelValue, Link, LinkKind, LoadedProfile, ModalCase, PaletteHue, ProfileChain, ProfileConvention, ProjectConfig, ProvenancedMap, ProvenancedMapEntry, ProvenancedValue, Severity, SourceLocation, Ulid, } from "./model/mod.js";
|
|
15
15
|
export { astEquivalent } from "./ast/equivalence.js";
|
|
16
16
|
export { normalizeBodyAst } from "./ast/normalize.js";
|
|
17
17
|
export { render } from "./ast/render.js";
|
|
18
|
-
export type { AdmonitionKind, BlockquoteNode, BodyBlock, CaptionNode, CodeNode, DefinitionListNode, DefinitionPair,
|
|
18
|
+
export type { AdmonitionKind, BlockquoteNode, BodyBlock, CaptionNode, CodeNode, DefinitionListNode, DefinitionPair, FeatureNode, FigureNode, InlineContent, ListItemNode, ListNode, MathNode, NoteNode, ParagraphNode, SourceRange, TableNode, UnknownNode, } from "./ast/nodes.js";
|
|
19
19
|
export { discoverProjectRoot, loadConfig, parseProjectConfig, } from "./config/mod.js";
|
|
20
20
|
export type { LoadConfigResult, ReadFile } from "./config/mod.js";
|
|
21
21
|
export { addProfileSpecifier, MARKSPEC_YAML_FILENAME, parseMarkspecYaml, readMarkspecYaml, } from "./config/markspec.js";
|
|
22
22
|
export type { MarkspecYaml, ParseMarkspecYamlResult, } from "./config/markspec.js";
|
|
23
23
|
export { computeCacheKey, computeCacheLocation, defaultAppendFile, defaultRunGit, ensureCacheGitignored, loadChain, loadProfileForCommand, mergeChain, parseManifest, resolveEntryColor, resolveGitSpecifier, resolveLocalSpecifier, } from "./profile/mod.js";
|
|
24
24
|
export type { AppendFile, CacheLocation, GitCacheKeyInput, LoadChainOptions, LoadChainResult, LoadProfileForCommandResult, MergeResult, ParseManifestResult, ResolvedProfileSource, ResolveGitOptions, RunGit, RunGitResult, } from "./profile/mod.js";
|
|
25
|
+
export { buildEffectiveDisciplineRegistry } from "./profile/mod.js";
|
|
26
|
+
export { inferDisciplineMode, resolveDisciplineMode } from "./profile/mod.js";
|
|
25
27
|
export { buildProfileIntrospection } from "./profile/mod.js";
|
|
26
28
|
export type { AttributeDetail, ConventionDetail, LabelConcernDetail, ProfileElementDetail, ProfileElementKind, ProfileElementRef, ProfileIntrospection, ProfileOverview, ProvenancedDescription, RelationDetail, TypeDetail, } from "./profile/mod.js";
|
|
27
29
|
export { detectCaptions, detectDirectives, detectInlineRefs, isSupportedExtension, loadGrammar, parse, parseFile, parseSource, } from "./parser/mod.js";
|
|
28
|
-
export type { DetectCaptionsOptions, DetectDirectivesOptions, DetectInlineRefsOptions, ParseFileResult, ParseOptions, ParseSourceOptions, ParseSourceResult, } from "./parser/mod.js";
|
|
30
|
+
export type { DetectCaptionsOptions, DetectDirectivesOptions, DetectInlineRefsOptions, DocCommentBlockMeta, LanguageDocCommentSpec, LineMap, ParseFileResult, ParseOptions, ParseSourceOptions, ParseSourceResult, SupportedLanguage, } from "./parser/mod.js";
|
|
29
31
|
export { format } from "./formatter/mod.js";
|
|
30
32
|
export type { FormatOptions, FormatResult } from "./formatter/mod.js";
|
|
31
|
-
export { classifyEntriesStage, classifyEntry, compileDisplayIdPattern, effectiveScope, effectiveTraceRules, matchesAnyTarget, normalizeListValues, runPipeline, validate, validateAttributesForEntry, validateListingDocuments, validateTraceabilityForEntry, validateValue, } from "./validator/mod.js";
|
|
33
|
+
export { classifyEntriesStage, classifyEntry, compileDisplayIdPattern, effectiveScope, effectiveTraceRules, matchesAnyTarget, normalizeListValues, runPipeline, suppressDeclaredAttrR010, validate, validateAttributesForEntry, validateListingDocuments, validateTraceabilityForEntry, validateValue, } from "./validator/mod.js";
|
|
32
34
|
export type { ClassifyResult, ClassifyStageResult, EffectiveAttrScope, ListingFileContext, ListingKind, PipelineResult, ValidateResult, ValueValidator, } from "./validator/mod.js";
|
|
33
35
|
export { compile, generateInverses, serializeCompileResult, } from "./compiler/mod.js";
|
|
34
|
-
export type { CompileOptions, CompileResult, GenerateInversesResult, SerializedCompileResult, SerializedEntry, } from "./compiler/mod.js";
|
|
36
|
+
export type { CompileOptions, CompileResult, GenerateInversesResult, SerializedCompileResult, SerializedEntry, SerializedTypeRegistry, } from "./compiler/mod.js";
|
|
35
37
|
export { buildManifest } from "./compiler/manifest.js";
|
|
36
38
|
export type { ManifestEdgesBlock, ManifestEntriesBlock, ManifestJson, } from "./compiler/manifest.js";
|
|
37
39
|
export { buildEdgesNdjson, buildEntriesNdjson, indexToJson, } from "./compiler/ndjson_writer.js";
|
|
38
40
|
export type { EntriesNdjsonResult, EntryOffset, } from "./compiler/ndjson_writer.js";
|
|
39
41
|
export { report } from "./reporter/mod.js";
|
|
40
42
|
export type { ReportFormat, ReportKind, ReportOptions, } from "./reporter/mod.js";
|
|
41
|
-
export { isProseScope, runLint } from "./lint/mod.js";
|
|
42
|
-
export type { LintDiagnostic, LintOptions, LintResult } from "./lint/mod.js";
|
|
43
|
+
export { ANTI_PATTERN_NOTE, computeScoreRollup, isProseScope, runLint, } from "./lint/mod.js";
|
|
44
|
+
export type { EntryScore, LintDiagnostic, LintOptions, LintResult, RuleContribution, ScoreRollup, } from "./lint/mod.js";
|
|
45
|
+
export * as typl from "./typl/mod.js";
|
|
46
|
+
export { canonicalEdgeJson, checkDrift, extractEdgeQuads, hashCanonicalEdges, LOCKFILE_SCHEMA_VERSION, parseLockfile, resolveBoundEntries, resolveProfileChain, resolveReferences, resolveRegistries, resolveUpstreams, serializeLockfile, sha256Bytes, sha256String, } from "./lock/mod.js";
|
|
47
|
+
export type { BoundEntry as LockBoundEntry, BoundEntryBinding as LockBinding, EdgeQuad, FetchUrl, GeneratedCache, LockedAttributes, Lockfile, LockfileMeta, ParseLockfileResult, ReadFile as LockReadFile, ResolvedBoundEntry, ResolvedProfile, ResolvedReference, ResolvedRegistry, ResolvedUpstreams, ResolveUpstreamsOptions, Upstream, UpstreamProfile, UpstreamReference, UpstreamRegistry, } from "./lock/mod.js";
|
|
48
|
+
export { aggregateStatusByState, encodeLogLine, inferLockedAttributes, parseLogLine, parseMapping, validateMappings, } from "./sync/mod.js";
|
|
49
|
+
export type { AttributeMapping, BoundEntryStatus, ConflictPolicy, Direction as SyncDirection, Mapping, ParseMappingResult, RemoteState, SyncLogEntry, } from "./sync/mod.js";
|
|
43
50
|
//# sourceMappingURL=mod.d.ts.map
|
package/script/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAGrC,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,YAAY,EACZ,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAGrC,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,IAAI,GACL,MAAM,gBAAgB,CAAC;AAIxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,YAAY,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,EACX,SAAS,EACT,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAElE,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,YAAY,EACZ,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,EACN,YAAY,GACb,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,UAAU,GACX,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,OAAO,EACP,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGtE,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACvB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,wBAAwB,EACxB,QAAQ,EACR,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,cAAc,EACd,cAAc,GACf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,OAAO,EACP,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACvB,eAAe,EACf,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,YAAY,EACV,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,GACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,GACZ,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,mBAAmB,EACnB,WAAW,GACZ,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EACV,YAAY,EACZ,UAAU,EACV,aAAa,GACd,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,OAAO,GACR,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,UAAU,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,WAAW,GACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AAGtC,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,UAAU,IAAI,cAAc,EAC5B,iBAAiB,IAAI,WAAW,EAChC,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,QAAQ,IAAI,YAAY,EACxB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,SAAS,IAAI,aAAa,EAC1B,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,YAAY,GACb,MAAM,eAAe,CAAC"}
|