@driftsys/markspec 0.5.0 → 0.6.1
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 +18 -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 +97 -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 +21 -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 +95 -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
package/script/mod.js
CHANGED
|
@@ -1,7 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.runLint = exports.isProseScope = exports.report = exports.indexToJson = exports.buildEntriesNdjson = exports.buildEdgesNdjson = exports.buildManifest = exports.serializeCompileResult = exports.generateInverses = exports.compile = exports.validateValue = void 0;
|
|
36
|
+
exports.compileDisplayIdPattern = exports.classifyEntry = exports.classifyEntriesStage = exports.format = exports.parseSource = exports.parseFile = exports.parse = exports.loadGrammar = exports.isSupportedExtension = exports.detectInlineRefs = exports.detectDirectives = exports.detectCaptions = exports.buildProfileIntrospection = exports.resolveDisciplineMode = exports.inferDisciplineMode = exports.buildEffectiveDisciplineRegistry = exports.resolveLocalSpecifier = exports.resolveGitSpecifier = exports.resolveEntryColor = exports.parseManifest = exports.mergeChain = exports.loadProfileForCommand = exports.loadChain = exports.ensureCacheGitignored = exports.defaultRunGit = exports.defaultAppendFile = exports.computeCacheLocation = exports.computeCacheKey = exports.readMarkspecYaml = exports.parseMarkspecYaml = exports.MARKSPEC_YAML_FILENAME = exports.addProfileSpecifier = exports.parseProjectConfig = exports.loadConfig = exports.discoverProjectRoot = exports.render = exports.normalizeBodyAst = exports.astEquivalent = exports.REFHUB_URL = exports.PALETTE_HUES = exports.MIXED_DISCIPLINE = exports.makeUlid = exports.makeDisplayId = exports.KNOWN_LINK_KINDS = exports.DEFAULT_PROJECT_CONFIG = exports.CORE_KINDS = exports.CORE_DISCIPLINE_REGISTRY = exports.ConfigError = exports.CORE_SCHEMA_VERSION = exports.VERSION = void 0;
|
|
37
|
+
exports.validateMappings = exports.parseMapping = exports.parseLogLine = exports.inferLockedAttributes = exports.encodeLogLine = exports.aggregateStatusByState = exports.sha256String = exports.sha256Bytes = exports.serializeLockfile = exports.resolveUpstreams = exports.resolveRegistries = exports.resolveReferences = exports.resolveProfileChain = exports.resolveBoundEntries = exports.parseLockfile = exports.LOCKFILE_SCHEMA_VERSION = exports.hashCanonicalEdges = exports.extractEdgeQuads = exports.checkDrift = exports.canonicalEdgeJson = exports.typl = exports.runLint = exports.isProseScope = exports.computeScoreRollup = exports.ANTI_PATTERN_NOTE = exports.report = exports.indexToJson = exports.buildEntriesNdjson = exports.buildEdgesNdjson = exports.buildManifest = exports.serializeCompileResult = exports.generateInverses = exports.compile = exports.validateValue = exports.validateTraceabilityForEntry = exports.validateListingDocuments = exports.validateAttributesForEntry = exports.validate = exports.suppressDeclaredAttrR010 = exports.runPipeline = exports.normalizeListValues = exports.matchesAnyTarget = exports.effectiveTraceRules = exports.effectiveScope = void 0;
|
|
5
38
|
/**
|
|
6
39
|
* @module core
|
|
7
40
|
*
|
|
@@ -12,12 +45,18 @@ exports.runLint = exports.isProseScope = exports.report = exports.indexToJson =
|
|
|
12
45
|
* from core/mod.ts, never from internal paths.
|
|
13
46
|
*/
|
|
14
47
|
require("./_dnt.polyfills.js");
|
|
15
|
-
exports.VERSION = "0.
|
|
48
|
+
exports.VERSION = "0.6.1";
|
|
16
49
|
exports.CORE_SCHEMA_VERSION = 1;
|
|
17
50
|
// Model types
|
|
18
51
|
var mod_js_1 = require("./model/mod.js");
|
|
19
52
|
Object.defineProperty(exports, "ConfigError", { enumerable: true, get: function () { return mod_js_1.ConfigError; } });
|
|
53
|
+
Object.defineProperty(exports, "CORE_DISCIPLINE_REGISTRY", { enumerable: true, get: function () { return mod_js_1.CORE_DISCIPLINE_REGISTRY; } });
|
|
54
|
+
Object.defineProperty(exports, "CORE_KINDS", { enumerable: true, get: function () { return mod_js_1.CORE_KINDS; } });
|
|
20
55
|
Object.defineProperty(exports, "DEFAULT_PROJECT_CONFIG", { enumerable: true, get: function () { return mod_js_1.DEFAULT_PROJECT_CONFIG; } });
|
|
56
|
+
Object.defineProperty(exports, "KNOWN_LINK_KINDS", { enumerable: true, get: function () { return mod_js_1.KNOWN_LINK_KINDS; } });
|
|
57
|
+
Object.defineProperty(exports, "makeDisplayId", { enumerable: true, get: function () { return mod_js_1.makeDisplayId; } });
|
|
58
|
+
Object.defineProperty(exports, "makeUlid", { enumerable: true, get: function () { return mod_js_1.makeUlid; } });
|
|
59
|
+
Object.defineProperty(exports, "MIXED_DISCIPLINE", { enumerable: true, get: function () { return mod_js_1.MIXED_DISCIPLINE; } });
|
|
21
60
|
Object.defineProperty(exports, "PALETTE_HUES", { enumerable: true, get: function () { return mod_js_1.PALETTE_HUES; } });
|
|
22
61
|
Object.defineProperty(exports, "REFHUB_URL", { enumerable: true, get: function () { return mod_js_1.REFHUB_URL; } });
|
|
23
62
|
// AST (canonical body-AST — spec docs/specs/markspec-core-data-model.md §2)
|
|
@@ -53,40 +92,47 @@ Object.defineProperty(exports, "resolveEntryColor", { enumerable: true, get: fun
|
|
|
53
92
|
Object.defineProperty(exports, "resolveGitSpecifier", { enumerable: true, get: function () { return mod_js_3.resolveGitSpecifier; } });
|
|
54
93
|
Object.defineProperty(exports, "resolveLocalSpecifier", { enumerable: true, get: function () { return mod_js_3.resolveLocalSpecifier; } });
|
|
55
94
|
var mod_js_4 = require("./profile/mod.js");
|
|
56
|
-
Object.defineProperty(exports, "
|
|
95
|
+
Object.defineProperty(exports, "buildEffectiveDisciplineRegistry", { enumerable: true, get: function () { return mod_js_4.buildEffectiveDisciplineRegistry; } });
|
|
96
|
+
var mod_js_5 = require("./profile/mod.js");
|
|
97
|
+
Object.defineProperty(exports, "inferDisciplineMode", { enumerable: true, get: function () { return mod_js_5.inferDisciplineMode; } });
|
|
98
|
+
Object.defineProperty(exports, "resolveDisciplineMode", { enumerable: true, get: function () { return mod_js_5.resolveDisciplineMode; } });
|
|
99
|
+
// DisciplineMode type already re-exported via Task 2.
|
|
100
|
+
var mod_js_6 = require("./profile/mod.js");
|
|
101
|
+
Object.defineProperty(exports, "buildProfileIntrospection", { enumerable: true, get: function () { return mod_js_6.buildProfileIntrospection; } });
|
|
57
102
|
// Parser
|
|
58
|
-
var
|
|
59
|
-
Object.defineProperty(exports, "detectCaptions", { enumerable: true, get: function () { return
|
|
60
|
-
Object.defineProperty(exports, "detectDirectives", { enumerable: true, get: function () { return
|
|
61
|
-
Object.defineProperty(exports, "detectInlineRefs", { enumerable: true, get: function () { return
|
|
62
|
-
Object.defineProperty(exports, "isSupportedExtension", { enumerable: true, get: function () { return
|
|
63
|
-
Object.defineProperty(exports, "loadGrammar", { enumerable: true, get: function () { return
|
|
64
|
-
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return
|
|
65
|
-
Object.defineProperty(exports, "parseFile", { enumerable: true, get: function () { return
|
|
66
|
-
Object.defineProperty(exports, "parseSource", { enumerable: true, get: function () { return
|
|
103
|
+
var mod_js_7 = require("./parser/mod.js");
|
|
104
|
+
Object.defineProperty(exports, "detectCaptions", { enumerable: true, get: function () { return mod_js_7.detectCaptions; } });
|
|
105
|
+
Object.defineProperty(exports, "detectDirectives", { enumerable: true, get: function () { return mod_js_7.detectDirectives; } });
|
|
106
|
+
Object.defineProperty(exports, "detectInlineRefs", { enumerable: true, get: function () { return mod_js_7.detectInlineRefs; } });
|
|
107
|
+
Object.defineProperty(exports, "isSupportedExtension", { enumerable: true, get: function () { return mod_js_7.isSupportedExtension; } });
|
|
108
|
+
Object.defineProperty(exports, "loadGrammar", { enumerable: true, get: function () { return mod_js_7.loadGrammar; } });
|
|
109
|
+
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return mod_js_7.parse; } });
|
|
110
|
+
Object.defineProperty(exports, "parseFile", { enumerable: true, get: function () { return mod_js_7.parseFile; } });
|
|
111
|
+
Object.defineProperty(exports, "parseSource", { enumerable: true, get: function () { return mod_js_7.parseSource; } });
|
|
67
112
|
// Formatter
|
|
68
|
-
var
|
|
69
|
-
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return
|
|
113
|
+
var mod_js_8 = require("./formatter/mod.js");
|
|
114
|
+
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return mod_js_8.format; } });
|
|
70
115
|
// Validator
|
|
71
|
-
var
|
|
72
|
-
Object.defineProperty(exports, "classifyEntriesStage", { enumerable: true, get: function () { return
|
|
73
|
-
Object.defineProperty(exports, "classifyEntry", { enumerable: true, get: function () { return
|
|
74
|
-
Object.defineProperty(exports, "compileDisplayIdPattern", { enumerable: true, get: function () { return
|
|
75
|
-
Object.defineProperty(exports, "effectiveScope", { enumerable: true, get: function () { return
|
|
76
|
-
Object.defineProperty(exports, "effectiveTraceRules", { enumerable: true, get: function () { return
|
|
77
|
-
Object.defineProperty(exports, "matchesAnyTarget", { enumerable: true, get: function () { return
|
|
78
|
-
Object.defineProperty(exports, "normalizeListValues", { enumerable: true, get: function () { return
|
|
79
|
-
Object.defineProperty(exports, "runPipeline", { enumerable: true, get: function () { return
|
|
80
|
-
Object.defineProperty(exports, "
|
|
81
|
-
Object.defineProperty(exports, "
|
|
82
|
-
Object.defineProperty(exports, "
|
|
83
|
-
Object.defineProperty(exports, "
|
|
84
|
-
Object.defineProperty(exports, "
|
|
116
|
+
var mod_js_9 = require("./validator/mod.js");
|
|
117
|
+
Object.defineProperty(exports, "classifyEntriesStage", { enumerable: true, get: function () { return mod_js_9.classifyEntriesStage; } });
|
|
118
|
+
Object.defineProperty(exports, "classifyEntry", { enumerable: true, get: function () { return mod_js_9.classifyEntry; } });
|
|
119
|
+
Object.defineProperty(exports, "compileDisplayIdPattern", { enumerable: true, get: function () { return mod_js_9.compileDisplayIdPattern; } });
|
|
120
|
+
Object.defineProperty(exports, "effectiveScope", { enumerable: true, get: function () { return mod_js_9.effectiveScope; } });
|
|
121
|
+
Object.defineProperty(exports, "effectiveTraceRules", { enumerable: true, get: function () { return mod_js_9.effectiveTraceRules; } });
|
|
122
|
+
Object.defineProperty(exports, "matchesAnyTarget", { enumerable: true, get: function () { return mod_js_9.matchesAnyTarget; } });
|
|
123
|
+
Object.defineProperty(exports, "normalizeListValues", { enumerable: true, get: function () { return mod_js_9.normalizeListValues; } });
|
|
124
|
+
Object.defineProperty(exports, "runPipeline", { enumerable: true, get: function () { return mod_js_9.runPipeline; } });
|
|
125
|
+
Object.defineProperty(exports, "suppressDeclaredAttrR010", { enumerable: true, get: function () { return mod_js_9.suppressDeclaredAttrR010; } });
|
|
126
|
+
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return mod_js_9.validate; } });
|
|
127
|
+
Object.defineProperty(exports, "validateAttributesForEntry", { enumerable: true, get: function () { return mod_js_9.validateAttributesForEntry; } });
|
|
128
|
+
Object.defineProperty(exports, "validateListingDocuments", { enumerable: true, get: function () { return mod_js_9.validateListingDocuments; } });
|
|
129
|
+
Object.defineProperty(exports, "validateTraceabilityForEntry", { enumerable: true, get: function () { return mod_js_9.validateTraceabilityForEntry; } });
|
|
130
|
+
Object.defineProperty(exports, "validateValue", { enumerable: true, get: function () { return mod_js_9.validateValue; } });
|
|
85
131
|
// Compiler
|
|
86
|
-
var
|
|
87
|
-
Object.defineProperty(exports, "compile", { enumerable: true, get: function () { return
|
|
88
|
-
Object.defineProperty(exports, "generateInverses", { enumerable: true, get: function () { return
|
|
89
|
-
Object.defineProperty(exports, "serializeCompileResult", { enumerable: true, get: function () { return
|
|
132
|
+
var mod_js_10 = require("./compiler/mod.js");
|
|
133
|
+
Object.defineProperty(exports, "compile", { enumerable: true, get: function () { return mod_js_10.compile; } });
|
|
134
|
+
Object.defineProperty(exports, "generateInverses", { enumerable: true, get: function () { return mod_js_10.generateInverses; } });
|
|
135
|
+
Object.defineProperty(exports, "serializeCompileResult", { enumerable: true, get: function () { return mod_js_10.serializeCompileResult; } });
|
|
90
136
|
var manifest_js_1 = require("./compiler/manifest.js");
|
|
91
137
|
Object.defineProperty(exports, "buildManifest", { enumerable: true, get: function () { return manifest_js_1.buildManifest; } });
|
|
92
138
|
var ndjson_writer_js_1 = require("./compiler/ndjson_writer.js");
|
|
@@ -94,9 +140,36 @@ Object.defineProperty(exports, "buildEdgesNdjson", { enumerable: true, get: func
|
|
|
94
140
|
Object.defineProperty(exports, "buildEntriesNdjson", { enumerable: true, get: function () { return ndjson_writer_js_1.buildEntriesNdjson; } });
|
|
95
141
|
Object.defineProperty(exports, "indexToJson", { enumerable: true, get: function () { return ndjson_writer_js_1.indexToJson; } });
|
|
96
142
|
// Reporter
|
|
97
|
-
var
|
|
98
|
-
Object.defineProperty(exports, "report", { enumerable: true, get: function () { return
|
|
143
|
+
var mod_js_11 = require("./reporter/mod.js");
|
|
144
|
+
Object.defineProperty(exports, "report", { enumerable: true, get: function () { return mod_js_11.report; } });
|
|
99
145
|
// Lint (prose-analysis)
|
|
100
|
-
var
|
|
101
|
-
Object.defineProperty(exports, "
|
|
102
|
-
Object.defineProperty(exports, "
|
|
146
|
+
var mod_js_12 = require("./lint/mod.js");
|
|
147
|
+
Object.defineProperty(exports, "ANTI_PATTERN_NOTE", { enumerable: true, get: function () { return mod_js_12.ANTI_PATTERN_NOTE; } });
|
|
148
|
+
Object.defineProperty(exports, "computeScoreRollup", { enumerable: true, get: function () { return mod_js_12.computeScoreRollup; } });
|
|
149
|
+
Object.defineProperty(exports, "isProseScope", { enumerable: true, get: function () { return mod_js_12.isProseScope; } });
|
|
150
|
+
Object.defineProperty(exports, "runLint", { enumerable: true, get: function () { return mod_js_12.runLint; } });
|
|
151
|
+
exports.typl = __importStar(require("./typl/mod.js"));
|
|
152
|
+
// ── Lockfile (ADR-022) ───────────────────────────────────────────────────
|
|
153
|
+
var mod_js_13 = require("./lock/mod.js");
|
|
154
|
+
Object.defineProperty(exports, "canonicalEdgeJson", { enumerable: true, get: function () { return mod_js_13.canonicalEdgeJson; } });
|
|
155
|
+
Object.defineProperty(exports, "checkDrift", { enumerable: true, get: function () { return mod_js_13.checkDrift; } });
|
|
156
|
+
Object.defineProperty(exports, "extractEdgeQuads", { enumerable: true, get: function () { return mod_js_13.extractEdgeQuads; } });
|
|
157
|
+
Object.defineProperty(exports, "hashCanonicalEdges", { enumerable: true, get: function () { return mod_js_13.hashCanonicalEdges; } });
|
|
158
|
+
Object.defineProperty(exports, "LOCKFILE_SCHEMA_VERSION", { enumerable: true, get: function () { return mod_js_13.LOCKFILE_SCHEMA_VERSION; } });
|
|
159
|
+
Object.defineProperty(exports, "parseLockfile", { enumerable: true, get: function () { return mod_js_13.parseLockfile; } });
|
|
160
|
+
Object.defineProperty(exports, "resolveBoundEntries", { enumerable: true, get: function () { return mod_js_13.resolveBoundEntries; } });
|
|
161
|
+
Object.defineProperty(exports, "resolveProfileChain", { enumerable: true, get: function () { return mod_js_13.resolveProfileChain; } });
|
|
162
|
+
Object.defineProperty(exports, "resolveReferences", { enumerable: true, get: function () { return mod_js_13.resolveReferences; } });
|
|
163
|
+
Object.defineProperty(exports, "resolveRegistries", { enumerable: true, get: function () { return mod_js_13.resolveRegistries; } });
|
|
164
|
+
Object.defineProperty(exports, "resolveUpstreams", { enumerable: true, get: function () { return mod_js_13.resolveUpstreams; } });
|
|
165
|
+
Object.defineProperty(exports, "serializeLockfile", { enumerable: true, get: function () { return mod_js_13.serializeLockfile; } });
|
|
166
|
+
Object.defineProperty(exports, "sha256Bytes", { enumerable: true, get: function () { return mod_js_13.sha256Bytes; } });
|
|
167
|
+
Object.defineProperty(exports, "sha256String", { enumerable: true, get: function () { return mod_js_13.sha256String; } });
|
|
168
|
+
// ── External sync model (ADR-022) ────────────────────────────────────────
|
|
169
|
+
var mod_js_14 = require("./sync/mod.js");
|
|
170
|
+
Object.defineProperty(exports, "aggregateStatusByState", { enumerable: true, get: function () { return mod_js_14.aggregateStatusByState; } });
|
|
171
|
+
Object.defineProperty(exports, "encodeLogLine", { enumerable: true, get: function () { return mod_js_14.encodeLogLine; } });
|
|
172
|
+
Object.defineProperty(exports, "inferLockedAttributes", { enumerable: true, get: function () { return mod_js_14.inferLockedAttributes; } });
|
|
173
|
+
Object.defineProperty(exports, "parseLogLine", { enumerable: true, get: function () { return mod_js_14.parseLogLine; } });
|
|
174
|
+
Object.defineProperty(exports, "parseMapping", { enumerable: true, get: function () { return mod_js_14.parseMapping; } });
|
|
175
|
+
Object.defineProperty(exports, "validateMappings", { enumerable: true, get: function () { return mod_js_14.validateMappings; } });
|
|
@@ -42,6 +42,12 @@ export interface AttributeSpec {
|
|
|
42
42
|
export declare const ATTRIBUTE_CATALOG: readonly AttributeSpec[];
|
|
43
43
|
/** Canonical Title-Case attribute keys the core recognizes. */
|
|
44
44
|
export declare const UNIVERSAL_ATTRIBUTE_KEYS: readonly string[];
|
|
45
|
+
/**
|
|
46
|
+
* Attribute value types that accept CSV on input but must be emitted as
|
|
47
|
+
* multi-line per ADR-002 §2.6. `citation` is excluded — locators may contain
|
|
48
|
+
* commas.
|
|
49
|
+
*/
|
|
50
|
+
export declare const CSV_SPLITTABLE_TYPES: ReadonlySet<string>;
|
|
45
51
|
/** Look up an attribute specification by its canonical key. */
|
|
46
52
|
export declare function attributeSpec(key: string): AttributeSpec | undefined;
|
|
47
53
|
//# sourceMappingURL=attributes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../src/model/attributes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMhF,oDAAoD;AACpD,MAAM,WAAW,aAAa;IAC5B,uDAAuD;IACvD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;IACvC,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAgBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,aAAa,
|
|
1
|
+
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../src/model/attributes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMhF,oDAAoD;AACpD,MAAM,WAAW,aAAa;IAC5B,uDAAuD;IACvD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;IACvC,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAgBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,aAAa,EAsPrD,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,wBAAwB,EAAE,SAAS,MAAM,EAC5B,CAAC;AAE3B;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAInD,CAAC;AAUH,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEpE"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* built-ins — they are declared by the active profile.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.UNIVERSAL_ATTRIBUTE_KEYS = exports.ATTRIBUTE_CATALOG = void 0;
|
|
14
|
+
exports.CSV_SPLITTABLE_TYPES = exports.UNIVERSAL_ATTRIBUTE_KEYS = exports.ATTRIBUTE_CATALOG = void 0;
|
|
15
15
|
exports.attributeSpec = attributeSpec;
|
|
16
16
|
// ---------------------------------------------------------------------------
|
|
17
17
|
// Universal attribute catalog
|
|
@@ -248,10 +248,47 @@ exports.ATTRIBUTE_CATALOG = [
|
|
|
248
248
|
shapes: BOTH_SHAPES,
|
|
249
249
|
required: false,
|
|
250
250
|
},
|
|
251
|
+
// Discipline classification per ADR-017 Slice 3.
|
|
252
|
+
// - `Discipline:` is an author-asserted kind that takes precedence over
|
|
253
|
+
// the classifier's type-based and allocation-based channels.
|
|
254
|
+
// Lenient on unknown kinds — the value is emitted verbatim and
|
|
255
|
+
// MSL-T025 warns separately.
|
|
256
|
+
// - `Discipline-frozen:` is a dated snapshot of a past derivation in
|
|
257
|
+
// the form `<kind>` or `<kind> @ <YYYY-MM-DD>`. The formatter stamps
|
|
258
|
+
// today's UTC date when only `<kind>` is written. MSL-T026 catches
|
|
259
|
+
// malformed values; MSL-T030 warns when the freeze diverges from the
|
|
260
|
+
// current derivation.
|
|
261
|
+
// Both are text-typed (the value space is dynamic — kinds come from the
|
|
262
|
+
// effective registry built per ADR-017 Slice 2). Single-cardinality
|
|
263
|
+
// follows automatically because `text` is not in `REPEATABLE_VALUE_TYPES`.
|
|
264
|
+
{
|
|
265
|
+
key: "Discipline",
|
|
266
|
+
type: "text",
|
|
267
|
+
origin: "authored",
|
|
268
|
+
shapes: BOTH_SHAPES,
|
|
269
|
+
required: false,
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
key: "Discipline-frozen",
|
|
273
|
+
type: "text",
|
|
274
|
+
origin: "authored",
|
|
275
|
+
shapes: BOTH_SHAPES,
|
|
276
|
+
required: false,
|
|
277
|
+
},
|
|
251
278
|
];
|
|
252
279
|
/** Canonical Title-Case attribute keys the core recognizes. */
|
|
253
280
|
exports.UNIVERSAL_ATTRIBUTE_KEYS = exports.ATTRIBUTE_CATALOG
|
|
254
281
|
.map((spec) => spec.key);
|
|
282
|
+
/**
|
|
283
|
+
* Attribute value types that accept CSV on input but must be emitted as
|
|
284
|
+
* multi-line per ADR-002 §2.6. `citation` is excluded — locators may contain
|
|
285
|
+
* commas.
|
|
286
|
+
*/
|
|
287
|
+
exports.CSV_SPLITTABLE_TYPES = new Set([
|
|
288
|
+
"id-list",
|
|
289
|
+
"tag-list",
|
|
290
|
+
"external-id",
|
|
291
|
+
]);
|
|
255
292
|
// ---------------------------------------------------------------------------
|
|
256
293
|
// Lookup helpers
|
|
257
294
|
// ---------------------------------------------------------------------------
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module core/model/discipline
|
|
3
|
+
*
|
|
4
|
+
* Discipline classification primitives per ADR-017 Invariants 1 and 2 and
|
|
5
|
+
* ADR-018 R3. The discipline of an entry is one of a small set of "kinds"
|
|
6
|
+
* (`software`, `hardware`, `system`, plus profile-declared extensions).
|
|
7
|
+
*
|
|
8
|
+
* The {@linkcode CORE_DISCIPLINE_REGISTRY} maps the six core SW/HW
|
|
9
|
+
* Component / Interface / Unit subtypes to their kind. Profiles will later
|
|
10
|
+
* extend this registry with their own type → kind mappings (Slice 2; not in
|
|
11
|
+
* this module — Slice 2 will introduce a merge function on top).
|
|
12
|
+
*
|
|
13
|
+
* Authors never type a kind name directly. Discipline is resolved by the
|
|
14
|
+
* classifier (see `core/compiler/discipline_classifier.ts`) via four
|
|
15
|
+
* channels in precedence order: override → freeze → type-based →
|
|
16
|
+
* allocation-based → default `system`. This module supports channels 3
|
|
17
|
+
* (type-based) and 4 (allocation-based); override and freeze are Slice 3.
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* A discipline kind. `string` rather than a closed union because profiles
|
|
21
|
+
* may register new kinds (e.g. `firmware`, `mechanical`, `avionics`) per
|
|
22
|
+
* ADR-017 Invariant 2. Validity is enforced at registration time, not in
|
|
23
|
+
* the type system.
|
|
24
|
+
*/
|
|
25
|
+
export type Discipline = string;
|
|
26
|
+
/**
|
|
27
|
+
* The built-in kinds shipped by core. Profiles may add to this set via the
|
|
28
|
+
* `kinds:` block in their manifest (Slice 2).
|
|
29
|
+
*/
|
|
30
|
+
export declare const CORE_KINDS: ReadonlySet<Discipline>;
|
|
31
|
+
/**
|
|
32
|
+
* Sentinel value emitted by the classifier when channel 4 (allocation-based)
|
|
33
|
+
* sees `Allocated-to` targets resolving to more than one distinct kind.
|
|
34
|
+
* **Not** a registerable kind — `CORE_KINDS.has(MIXED_DISCIPLINE)` is
|
|
35
|
+
* `false` by design. The validator (Slice 4) will surface this as an error
|
|
36
|
+
* in flat profiles.
|
|
37
|
+
*/
|
|
38
|
+
export declare const MIXED_DISCIPLINE: Discipline;
|
|
39
|
+
/**
|
|
40
|
+
* A discipline registry: type-name → kind mapping. Read-only at the type
|
|
41
|
+
* level; the core seed is frozen. Slice 2 will introduce a builder that
|
|
42
|
+
* merges core seed + profile extensions into an effective registry.
|
|
43
|
+
*/
|
|
44
|
+
export type DisciplineRegistry = ReadonlyMap<string, Discipline>;
|
|
45
|
+
/**
|
|
46
|
+
* The built-in core registry, seeded with the six SW/HW Component /
|
|
47
|
+
* Interface / Unit subtypes from ADR-003 §Part 1. Parent types
|
|
48
|
+
* (`Component`, `Interface`, `Unit`) are intentionally absent — they are
|
|
49
|
+
* not discipline-bearing; the classifier walks `Allocated-to` to a
|
|
50
|
+
* concrete subtype.
|
|
51
|
+
*/
|
|
52
|
+
export declare const CORE_DISCIPLINE_REGISTRY: DisciplineRegistry;
|
|
53
|
+
//# sourceMappingURL=discipline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discipline.d.ts","sourceRoot":"","sources":["../../src/model/discipline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,UAAU,CAI7C,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,UAAoB,CAAC;AAEpD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,kBAUrC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module core/model/discipline
|
|
4
|
+
*
|
|
5
|
+
* Discipline classification primitives per ADR-017 Invariants 1 and 2 and
|
|
6
|
+
* ADR-018 R3. The discipline of an entry is one of a small set of "kinds"
|
|
7
|
+
* (`software`, `hardware`, `system`, plus profile-declared extensions).
|
|
8
|
+
*
|
|
9
|
+
* The {@linkcode CORE_DISCIPLINE_REGISTRY} maps the six core SW/HW
|
|
10
|
+
* Component / Interface / Unit subtypes to their kind. Profiles will later
|
|
11
|
+
* extend this registry with their own type → kind mappings (Slice 2; not in
|
|
12
|
+
* this module — Slice 2 will introduce a merge function on top).
|
|
13
|
+
*
|
|
14
|
+
* Authors never type a kind name directly. Discipline is resolved by the
|
|
15
|
+
* classifier (see `core/compiler/discipline_classifier.ts`) via four
|
|
16
|
+
* channels in precedence order: override → freeze → type-based →
|
|
17
|
+
* allocation-based → default `system`. This module supports channels 3
|
|
18
|
+
* (type-based) and 4 (allocation-based); override and freeze are Slice 3.
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.CORE_DISCIPLINE_REGISTRY = exports.MIXED_DISCIPLINE = exports.CORE_KINDS = void 0;
|
|
22
|
+
/**
|
|
23
|
+
* The built-in kinds shipped by core. Profiles may add to this set via the
|
|
24
|
+
* `kinds:` block in their manifest (Slice 2).
|
|
25
|
+
*/
|
|
26
|
+
exports.CORE_KINDS = new Set([
|
|
27
|
+
"system",
|
|
28
|
+
"software",
|
|
29
|
+
"hardware",
|
|
30
|
+
]);
|
|
31
|
+
/**
|
|
32
|
+
* Sentinel value emitted by the classifier when channel 4 (allocation-based)
|
|
33
|
+
* sees `Allocated-to` targets resolving to more than one distinct kind.
|
|
34
|
+
* **Not** a registerable kind — `CORE_KINDS.has(MIXED_DISCIPLINE)` is
|
|
35
|
+
* `false` by design. The validator (Slice 4) will surface this as an error
|
|
36
|
+
* in flat profiles.
|
|
37
|
+
*/
|
|
38
|
+
exports.MIXED_DISCIPLINE = "mixed";
|
|
39
|
+
/**
|
|
40
|
+
* The built-in core registry, seeded with the six SW/HW Component /
|
|
41
|
+
* Interface / Unit subtypes from ADR-003 §Part 1. Parent types
|
|
42
|
+
* (`Component`, `Interface`, `Unit`) are intentionally absent — they are
|
|
43
|
+
* not discipline-bearing; the classifier walks `Allocated-to` to a
|
|
44
|
+
* concrete subtype.
|
|
45
|
+
*/
|
|
46
|
+
exports.CORE_DISCIPLINE_REGISTRY = new Map([
|
|
47
|
+
["SoftwareComponent", "software"],
|
|
48
|
+
["HardwareComponent", "hardware"],
|
|
49
|
+
["SoftwareInterface", "software"],
|
|
50
|
+
["HardwareInterface", "hardware"],
|
|
51
|
+
["SoftwareUnit", "software"],
|
|
52
|
+
["HardwareUnit", "hardware"],
|
|
53
|
+
]);
|