@astrale-os/kernel-dsl 0.2.0-beta.1 → 0.2.0-beta.11
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/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/upgrade/contract.d.ts +0 -1
- package/dist/upgrade/contract.js +0 -1
- package/dist/upgrade/index.d.ts +0 -1
- package/dist/upgrade/index.js +0 -1
- package/dist/v1/addressing/class-key.d.ts +12 -0
- package/dist/v1/addressing/class-key.js +39 -0
- package/dist/v1/addressing/definition-ref.d.ts +28 -0
- package/dist/v1/addressing/definition-ref.js +63 -0
- package/dist/v1/addressing/domain-dependency.d.ts +18 -0
- package/dist/v1/addressing/domain-dependency.js +6 -0
- package/dist/v1/addressing/index.d.ts +10 -4
- package/dist/v1/addressing/index.js +5 -3
- package/dist/v1/addressing/key.d.ts +14 -16
- package/dist/v1/addressing/key.js +24 -34
- package/dist/v1/addressing/method-address.d.ts +9 -0
- package/dist/v1/addressing/method-address.js +1 -0
- package/dist/v1/addressing/method-key.d.ts +15 -0
- package/dist/v1/addressing/method-key.js +60 -0
- package/dist/v1/addressing/ordering.d.ts +6 -0
- package/dist/v1/addressing/ordering.js +20 -0
- package/dist/v1/addressing/patterns.d.ts +12 -3
- package/dist/v1/addressing/patterns.js +11 -2
- package/dist/v1/addressing/property-key.d.ts +10 -15
- package/dist/v1/addressing/property-key.js +24 -15
- package/dist/v1/addressing/revision.d.ts +8 -0
- package/dist/v1/addressing/revision.js +8 -0
- package/dist/v1/builder/callable/authoring.d.ts +117 -0
- package/dist/v1/builder/{callable.js → callable/authoring.js} +28 -5
- package/dist/v1/builder/class/authoring.d.ts +367 -0
- package/dist/v1/builder/class/authoring.js +134 -0
- package/dist/v1/builder/class/property.d.ts +52 -0
- package/dist/v1/builder/class/property.js +49 -0
- package/dist/v1/builder/core/authoring.d.ts +42 -0
- package/dist/v1/builder/core/authoring.js +39 -0
- package/dist/v1/builder/index.d.ts +26 -22
- package/dist/v1/builder/index.js +11 -11
- package/dist/v1/builder/lowering/callable.d.ts +24 -0
- package/dist/v1/builder/{compiler → lowering}/callable.js +17 -21
- package/dist/v1/builder/lowering/class.d.ts +22 -0
- package/dist/v1/builder/lowering/class.js +129 -0
- package/dist/v1/builder/lowering/core-properties.d.ts +10 -0
- package/dist/v1/builder/{compiler/core.properties.js → lowering/core-properties.js} +14 -8
- package/dist/v1/builder/lowering/core.d.ts +22 -0
- package/dist/v1/builder/{compiler → lowering}/core.js +17 -11
- package/dist/v1/builder/lowering/policy.d.ts +16 -0
- package/dist/v1/builder/{compiler → lowering}/policy.js +19 -14
- package/dist/v1/builder/{compiler/schema.capture.d.ts → lowering/schema/capture.d.ts} +2 -3
- package/dist/v1/builder/lowering/schema/capture.js +70 -0
- package/dist/v1/builder/{compiler/schema.d.ts → lowering/schema/compile.d.ts} +4 -4
- package/dist/v1/builder/{compiler/schema.js → lowering/schema/compile.js} +34 -44
- package/dist/v1/builder/lowering/schema/context.d.ts +44 -0
- package/dist/v1/builder/{compiler/schema.context.js → lowering/schema/context.js} +66 -74
- package/dist/v1/builder/{compiler/schema.ownership.d.ts → lowering/schema/ownership.d.ts} +1 -2
- package/dist/v1/builder/{compiler/schema.ownership.js → lowering/schema/ownership.js} +1 -2
- package/dist/v1/builder/lowering/value/compile.d.ts +15 -0
- package/dist/v1/builder/{compiler/value.js → lowering/value/compile.js} +37 -50
- package/dist/v1/builder/lowering/value/path.d.ts +3 -0
- package/dist/v1/builder/{compiler/value.path.js → lowering/value/path.js} +1 -2
- package/dist/v1/builder/{compiler/value.zod.d.ts → lowering/value/zod.d.ts} +4 -5
- package/dist/v1/builder/{compiler/value.zod.js → lowering/value/zod.js} +5 -6
- package/dist/v1/builder/lowering/view.d.ts +11 -0
- package/dist/v1/builder/{compiler → lowering}/view.js +7 -7
- package/dist/v1/builder/{policy.d.ts → policy/authoring.d.ts} +19 -17
- package/dist/v1/builder/{policy.js → policy/authoring.js} +23 -12
- package/dist/v1/builder/schema/define.d.ts +11 -0
- package/dist/v1/builder/{schema.js → schema/define.js} +1 -2
- package/dist/v1/builder/schema/diagnostic.d.ts +16 -0
- package/dist/v1/builder/schema/diagnostic.js +31 -0
- package/dist/v1/builder/{internal/authoring.d.ts → schema/handle.d.ts} +1 -2
- package/dist/v1/builder/{internal/authoring.js → schema/handle.js} +0 -1
- package/dist/v1/builder/schema/input.d.ts +15 -0
- package/dist/v1/builder/schema/input.js +1 -0
- package/dist/v1/builder/{internal/authoring.lazy.d.ts → schema/lazy.d.ts} +0 -1
- package/dist/v1/builder/{internal/authoring.lazy.js → schema/lazy.js} +0 -1
- package/dist/v1/builder/schema/projection.d.ts +364 -0
- package/dist/v1/builder/schema/projection.js +1 -0
- package/dist/v1/builder/value/full-match.d.ts +4 -0
- package/dist/v1/builder/value/full-match.js +11 -0
- package/dist/v1/builder/value/path-metadata.d.ts +4 -0
- package/dist/v1/builder/{internal/path.metadata.js → value/path-metadata.js} +0 -1
- package/dist/v1/builder/value/path.d.ts +8 -0
- package/dist/v1/builder/{path.js → value/path.js} +2 -3
- package/dist/v1/builder/{value-schema.d.ts → value/schema.d.ts} +2 -3
- package/dist/v1/builder/{value-schema.js → value/schema.js} +0 -1
- package/dist/v1/builder/view/authoring.d.ts +17 -0
- package/dist/v1/builder/view/authoring.js +16 -0
- package/dist/v1/bundle/codec.d.ts +0 -1
- package/dist/v1/bundle/codec.js +36 -19
- package/dist/v1/bundle/create.d.ts +3 -0
- package/dist/v1/bundle/create.js +5 -0
- package/dist/v1/bundle/diagnostic.d.ts +10 -0
- package/dist/v1/bundle/diagnostic.js +17 -0
- package/dist/v1/bundle/index.d.ts +3 -2
- package/dist/v1/bundle/index.js +2 -2
- package/dist/v1/bundle/model.d.ts +1 -4
- package/dist/v1/bundle/model.js +0 -6
- package/dist/v1/bundle/structure.d.ts +1 -2
- package/dist/v1/bundle/structure.js +6 -6
- package/dist/v1/bundle/transport.d.ts +8 -0
- package/dist/v1/bundle/transport.js +7 -0
- package/dist/v1/compiled/admission/accept.d.ts +3 -0
- package/dist/v1/compiled/admission/accept.js +881 -0
- package/dist/v1/compiled/admission/revision.d.ts +4 -0
- package/dist/v1/compiled/admission/revision.js +73 -0
- package/dist/v1/compiled/admission/semantics.d.ts +7 -0
- package/dist/v1/compiled/admission/semantics.js +1091 -0
- package/dist/v1/compiled/codec/json.d.ts +3 -0
- package/dist/v1/compiled/codec/json.js +9 -0
- package/dist/v1/compiled/compiler/compile.d.ts +4 -0
- package/dist/v1/compiled/compiler/compile.js +113 -0
- package/dist/v1/compiled/diagnostic.d.ts +11 -0
- package/dist/v1/compiled/diagnostic.js +13 -0
- package/dist/v1/compiled/index.d.ts +7 -0
- package/dist/v1/compiled/index.js +5 -0
- package/dist/v1/compiled/loader/index.d.ts +1 -0
- package/dist/v1/compiled/loader/index.js +1 -0
- package/dist/v1/compiled/loader/load.d.ts +4 -0
- package/dist/v1/compiled/loader/load.js +141 -0
- package/dist/v1/compiled/model/schema.d.ts +73 -0
- package/dist/v1/compiled/model/schema.js +1 -0
- package/dist/v1/domain/create.d.ts +8 -0
- package/dist/v1/domain/create.js +264 -0
- package/dist/v1/domain/index.d.ts +2 -0
- package/dist/v1/domain/index.js +1 -0
- package/dist/v1/domain/model/domain.d.ts +59 -0
- package/dist/v1/domain/model/domain.js +1 -0
- package/dist/v1/domain/model/input.d.ts +31 -0
- package/dist/v1/domain/model/input.js +1 -0
- package/dist/v1/domain/namespace/member-collection.d.ts +5 -0
- package/dist/v1/domain/namespace/member-collection.js +81 -0
- package/dist/v1/domain/projection/classes.d.ts +4 -0
- package/dist/v1/domain/projection/classes.js +200 -0
- package/dist/v1/domain/validation/create.d.ts +18 -0
- package/dist/v1/domain/validation/create.js +75 -0
- package/dist/v1/index.d.ts +12 -5
- package/dist/v1/index.js +5 -3
- package/dist/v1/language/callable/index.d.ts +2 -0
- package/dist/v1/language/callable/index.js +1 -0
- package/dist/v1/language/callable/model/callable.d.ts +33 -0
- package/dist/v1/language/callable/model/callable.js +1 -0
- package/dist/v1/language/callable/resolved.d.ts +68 -0
- package/dist/v1/language/callable/resolved.js +1 -0
- package/dist/v1/language/class/facets.d.ts +58 -0
- package/dist/v1/language/class/facets.js +1 -0
- package/dist/v1/language/class/index.d.ts +8 -0
- package/dist/v1/language/class/index.js +1 -0
- package/dist/v1/language/class/model/class.d.ts +36 -0
- package/dist/v1/language/class/model/class.js +1 -0
- package/dist/v1/{schema/definition → language/class/model}/data.d.ts +2 -3
- package/dist/v1/{schema/definition → language/class/model}/data.js +0 -1
- package/dist/v1/language/class/model/edge.d.ts +38 -0
- package/dist/v1/language/class/model/edge.js +1 -0
- package/dist/v1/language/class/model/property.d.ts +18 -0
- package/dist/v1/language/class/model/property.js +1 -0
- package/dist/v1/language/class/property-values.d.ts +15 -0
- package/dist/v1/language/class/property-values.js +30 -0
- package/dist/v1/language/class/resolved.d.ts +123 -0
- package/dist/v1/language/class/resolved.js +1 -0
- package/dist/v1/language/core/index.d.ts +2 -0
- package/dist/v1/language/core/index.js +1 -0
- package/dist/v1/language/core/model/core.d.ts +20 -0
- package/dist/v1/language/core/model/core.js +1 -0
- package/dist/v1/language/core/resolved.d.ts +21 -0
- package/dist/v1/language/core/resolved.js +1 -0
- package/dist/v1/{schema → language/definition}/metadata.d.ts +0 -1
- package/dist/v1/{schema → language/definition}/metadata.js +0 -1
- package/dist/v1/language/definition.d.ts +7 -0
- package/dist/v1/language/definition.js +1 -0
- package/dist/v1/language/index.d.ts +23 -0
- package/dist/v1/language/index.js +1 -0
- package/dist/v1/{schema/policy/validation → language/policy/analysis}/branches.d.ts +2 -4
- package/dist/v1/{schema/policy/validation → language/policy/analysis}/branches.js +5 -28
- package/dist/v1/{schema/policy/validation → language/policy/analysis}/budgets.d.ts +1 -4
- package/dist/v1/language/policy/analysis/budgets.js +25 -0
- package/dist/v1/language/policy/index.d.ts +3 -0
- package/dist/v1/language/policy/index.js +1 -0
- package/dist/v1/{schema/policy/ast.d.ts → language/policy/model/policy.d.ts} +7 -7
- package/dist/v1/language/policy/model/policy.js +1 -0
- package/dist/v1/language/policy/normalization/normalize.d.ts +4 -0
- package/dist/v1/{schema/policy → language/policy/normalization}/normalize.js +12 -16
- package/dist/v1/language/policy/resolved.d.ts +9 -0
- package/dist/v1/language/policy/resolved.js +1 -0
- package/dist/v1/language/resolved.d.ts +10 -0
- package/dist/v1/language/resolved.js +1 -0
- package/dist/v1/language/validation/diagnostic.d.ts +8 -0
- package/dist/v1/language/validation/diagnostic.js +3 -0
- package/dist/v1/language/value/compile/fields.d.ts +3 -0
- package/dist/v1/language/value/compile/fields.js +60 -0
- package/dist/v1/language/value/compile/load.d.ts +4 -0
- package/dist/v1/language/value/compile/load.js +41 -0
- package/dist/v1/language/value/compile/model.d.ts +27 -0
- package/dist/v1/language/value/compile/model.js +1 -0
- package/dist/v1/{schema/value/instance → language/value/evaluate}/assertions.d.ts +0 -1
- package/dist/v1/{schema/value/instance → language/value/evaluate}/assertions.js +1 -2
- package/dist/v1/{schema/value/instance → language/value/evaluate}/evaluator.d.ts +0 -1
- package/dist/v1/{schema/value/instance → language/value/evaluate}/evaluator.js +6 -18
- package/dist/v1/{schema/value/instance/compiler.d.ts → language/value/evaluate/preparation.d.ts} +4 -4
- package/dist/v1/language/value/evaluate/preparation.js +135 -0
- package/dist/v1/language/value/evaluate/program.d.ts +3 -0
- package/dist/v1/language/value/evaluate/program.js +16 -0
- package/dist/v1/{schema/value/instance → language/value/evaluate}/types.d.ts +8 -5
- package/dist/v1/{schema/value/instance → language/value/evaluate}/types.js +0 -1
- package/dist/v1/{schema/value/instance.validate.d.ts → language/value/evaluate/validate.d.ts} +4 -5
- package/dist/v1/{schema/value/instance.validate.js → language/value/evaluate/validate.js} +5 -6
- package/dist/v1/language/value/index.d.ts +11 -0
- package/dist/v1/language/value/index.js +8 -0
- package/dist/v1/{schema/value → language/value/model}/instant.d.ts +1 -1
- package/dist/v1/{schema/value → language/value/model}/instant.js +1 -1
- package/dist/v1/{schema/value → language/value/model}/object.d.ts +1 -1
- package/dist/v1/{schema/value → language/value/model}/object.js +0 -1
- package/dist/v1/{schema/value → language/value/model}/schema.d.ts +3 -4
- package/dist/v1/{schema/value → language/value/model}/schema.js +0 -2
- package/dist/v1/{schema → language}/value/ordering.d.ts +5 -3
- package/dist/v1/{schema → language}/value/ordering.js +16 -14
- package/dist/v1/{schema → language}/value/profile/canonicalize.d.ts +2 -3
- package/dist/v1/{schema → language}/value/profile/canonicalize.js +4 -7
- package/dist/v1/language/value/profile/json.validate.d.ts +2 -0
- package/dist/v1/{schema → language}/value/profile/json.validate.js +2 -3
- package/dist/v1/language/value/profile/meta-schema.compiled.d.ts +78 -0
- package/dist/v1/language/value/profile/meta-schema.compiled.js +2079 -0
- package/dist/v1/language/value/profile/meta-schema.d.ts +4 -0
- package/dist/v1/language/value/profile/meta-schema.js +19 -0
- package/dist/v1/language/value/profile/rules.d.ts +3 -0
- package/dist/v1/{schema → language}/value/profile/rules.js +7 -50
- package/dist/v1/language/value/profile/validate.d.ts +4 -0
- package/dist/v1/{schema → language}/value/profile/validate.js +14 -22
- package/dist/v1/{schema → language}/value/profile/vocabulary.d.ts +0 -1
- package/dist/v1/{schema → language}/value/profile/vocabulary.js +0 -1
- package/dist/v1/language/value/reference/closure.d.ts +11 -0
- package/dist/v1/{schema/value/resources → language/value/reference}/closure.js +13 -21
- package/dist/v1/{schema/value/resources → language/value/reference}/recursion.d.ts +3 -4
- package/dist/v1/{schema/value/resources → language/value/reference}/recursion.js +5 -6
- package/dist/v1/language/value/reference/references.d.ts +17 -0
- package/dist/v1/language/value/reference/references.js +45 -0
- package/dist/v1/{schema/value → language/value/reference}/registry.d.ts +9 -7
- package/dist/v1/language/value/reference/registry.index.d.ts +14 -0
- package/dist/v1/{schema/value/resources → language/value/reference}/registry.index.js +7 -45
- package/dist/v1/language/value/reference/registry.js +1 -0
- package/dist/v1/language/value/regexp/ast.d.ts +21 -0
- package/dist/v1/language/value/regexp/ast.js +326 -0
- package/dist/v1/language/value/regexp/compile.d.ts +3 -0
- package/dist/v1/language/value/regexp/compile.js +96 -0
- package/dist/v1/{schema → language}/value/regexp/lower.d.ts +1 -2
- package/dist/v1/{schema → language}/value/regexp/lower.js +2 -3
- package/dist/v1/language/value/regexp/matcher.d.ts +7 -0
- package/dist/v1/language/value/regexp/matcher.js +50 -0
- package/dist/v1/{schema → language}/value/regexp/pattern.d.ts +0 -1
- package/dist/v1/{schema → language}/value/regexp/pattern.js +0 -1
- package/dist/v1/language/value/regexp/syntax.d.ts +2 -0
- package/dist/v1/language/value/regexp/syntax.js +5 -0
- package/dist/v1/language/value/syntax/full-match.d.ts +6 -0
- package/dist/v1/{builder → language/value/syntax}/full-match.js +6 -7
- package/dist/v1/{schema/value/location → language/value/syntax}/keywords.d.ts +0 -1
- package/dist/v1/{schema/value/location → language/value/syntax}/keywords.js +0 -1
- package/dist/v1/{schema/value/extensions → language/value/syntax}/node-path/schema.d.ts +1 -2
- package/dist/v1/{schema/value/extensions → language/value/syntax}/node-path/schema.js +2 -3
- package/dist/v1/language/value/syntax/node-path/validate.d.ts +4 -0
- package/dist/v1/{schema/value/extensions → language/value/syntax}/node-path/validate.js +12 -12
- package/dist/v1/{schema/value/location → language/value/syntax}/pointer.d.ts +0 -1
- package/dist/v1/{schema/value/location → language/value/syntax}/pointer.js +1 -2
- package/dist/v1/{schema/value/location → language/value/syntax}/walk.d.ts +1 -2
- package/dist/v1/{schema/value/location → language/value/syntax}/walk.js +1 -2
- package/dist/v1/language/view/index.d.ts +2 -0
- package/dist/v1/language/view/index.js +1 -0
- package/dist/v1/language/view/model/view.d.ts +11 -0
- package/dist/v1/language/view/model/view.js +1 -0
- package/dist/v1/language/view/resolved.d.ts +9 -0
- package/dist/v1/language/view/resolved.js +1 -0
- package/dist/v1/schema/admission/accept.d.ts +3 -0
- package/dist/v1/schema/{domain.accept.js → admission/accept.js} +9 -10
- package/dist/v1/schema/{definition/analysis.d.ts → analysis/class.d.ts} +16 -16
- package/dist/v1/schema/{definition/analysis.js → analysis/class.js} +21 -28
- package/dist/v1/schema/canonical/domain.d.ts +2 -2
- package/dist/v1/schema/canonical/domain.digest.d.ts +1 -2
- package/dist/v1/schema/canonical/domain.digest.js +2 -6
- package/dist/v1/schema/canonical/domain.js +3 -191
- package/dist/v1/schema/canonical/freeze.d.ts +0 -1
- package/dist/v1/schema/canonical/freeze.js +0 -1
- package/dist/v1/schema/{domain.revision.d.ts → canonical/revision.d.ts} +2 -3
- package/dist/v1/schema/{domain.revision.js → canonical/revision.js} +3 -4
- package/dist/v1/schema/codec/header.d.ts +17 -0
- package/dist/v1/schema/codec/header.js +26 -0
- package/dist/v1/schema/{domain.codec.d.ts → codec/schema.d.ts} +2 -3
- package/dist/v1/schema/{domain.codec.js → codec/schema.js} +4 -5
- package/dist/v1/schema/{dependency.meaning.d.ts → compatibility/meaning.d.ts} +4 -5
- package/dist/v1/schema/{dependency.meaning.js → compatibility/meaning.js} +120 -123
- package/dist/v1/schema/{domain.lookup.d.ts → dependency/lookup.d.ts} +3 -4
- package/dist/v1/schema/{domain.lookup.js → dependency/lookup.js} +1 -2
- package/dist/v1/schema/diagnostic.d.ts +7 -7
- package/dist/v1/schema/diagnostic.js +9 -9
- package/dist/v1/schema/index.d.ts +24 -34
- package/dist/v1/schema/index.js +11 -14
- package/dist/v1/schema/model/format.d.ts +2 -0
- package/dist/v1/schema/model/format.js +2 -0
- package/dist/v1/schema/model/schema.d.ts +30 -0
- package/dist/v1/schema/model/schema.js +4 -0
- package/dist/v1/schema/normalization/domain.d.ts +2 -0
- package/dist/v1/schema/normalization/domain.js +207 -0
- package/dist/v1/schema/resolution/closure.d.ts +3 -4
- package/dist/v1/schema/resolution/closure.js +6 -7
- package/dist/v1/schema/resolution/context.d.ts +11 -12
- package/dist/v1/schema/resolution/context.js +82 -50
- package/dist/v1/schema/resolution/definition.index.d.ts +13 -35
- package/dist/v1/schema/resolution/definition.index.js +8 -18
- package/dist/v1/schema/resolution/domain.d.ts +4 -0
- package/dist/v1/schema/resolution/domain.js +112 -0
- package/dist/v1/schema/resolution/origins.d.ts +11 -14
- package/dist/v1/schema/resolution/origins.js +36 -44
- package/dist/v1/schema/resolution/value.registry.d.ts +3 -4
- package/dist/v1/schema/resolution/value.registry.js +7 -14
- package/dist/v1/schema/revision.d.ts +1 -0
- package/dist/v1/schema/revision.js +1 -0
- package/dist/v1/schema/validation/class.d.ts +5 -0
- package/dist/v1/schema/validation/class.js +208 -0
- package/dist/v1/schema/validation/core.d.ts +5 -0
- package/dist/v1/schema/{core/validate.js → validation/core.js} +65 -38
- package/dist/v1/schema/validation/domain.d.ts +11 -0
- package/dist/v1/schema/{domain.validate.js → validation/domain.js} +12 -12
- package/dist/v1/schema/validation/domain.route.d.ts +1 -2
- package/dist/v1/schema/validation/domain.route.js +3 -4
- package/dist/v1/schema/validation/domain.structure.d.ts +1 -2
- package/dist/v1/schema/validation/domain.structure.js +98 -93
- package/dist/v1/schema/validation/policy/budgets.d.ts +4 -0
- package/dist/v1/schema/{policy/validation → validation/policy}/budgets.js +2 -32
- package/dist/v1/schema/validation/policy/context.d.ts +28 -0
- package/dist/v1/schema/{policy/validation → validation/policy}/context.js +23 -33
- package/dist/v1/schema/{policy/validation → validation/policy}/references.d.ts +0 -1
- package/dist/v1/schema/{policy/validation → validation/policy}/references.js +16 -9
- package/dist/v1/schema/{policy/validation → validation/policy}/typing.d.ts +4 -8
- package/dist/v1/schema/{policy/validation → validation/policy}/typing.js +33 -72
- package/dist/v1/schema/{policy/validation → validation/policy}/uses.d.ts +0 -1
- package/dist/v1/schema/{policy/validation → validation/policy}/uses.js +25 -36
- package/dist/v1/schema/{policy/validation → validation/policy}/validate.d.ts +3 -4
- package/dist/v1/schema/{policy/validation → validation/policy}/validate.js +0 -1
- package/dist/v1/schema/{value/index.d.ts → validation/value-api.d.ts} +9 -10
- package/dist/v1/schema/{value/index.js → validation/value-api.js} +4 -5
- package/dist/v1/schema/validation/value.d.ts +4 -5
- package/dist/v1/schema/validation/value.js +4 -9
- package/dist/v1/schema/validation/view.d.ts +3 -0
- package/dist/v1/schema/{view/validate.js → validation/view.js} +11 -4
- package/dist/v1/value/full-match.d.ts +2 -0
- package/dist/v1/value/full-match.js +2 -0
- package/dist/v1.d.ts +1 -2
- package/dist/v1.js +1 -2
- package/dist/value/accept.d.ts +0 -1
- package/dist/value/accept.js +0 -1
- package/dist/value/canonical.d.ts +0 -1
- package/dist/value/canonical.js +0 -1
- package/dist/value/decode.d.ts +0 -1
- package/dist/value/decode.js +0 -1
- package/dist/value/equal.d.ts +0 -1
- package/dist/value/equal.js +0 -1
- package/dist/value/error.d.ts +0 -1
- package/dist/value/error.js +0 -1
- package/dist/value/index.d.ts +0 -1
- package/dist/value/index.js +0 -1
- package/dist/value/json.d.ts +0 -1
- package/dist/value/json.js +0 -1
- package/dist/value/limits.d.ts +0 -1
- package/dist/value/limits.js +0 -1
- package/dist/value/types.d.ts +0 -1
- package/dist/value/types.js +0 -1
- package/dist/value/unicode.d.ts +0 -1
- package/dist/value/unicode.js +0 -1
- package/dist/version/dispatch.d.ts +0 -1
- package/dist/version/dispatch.js +0 -1
- package/dist/version/index.d.ts +0 -1
- package/dist/version/index.js +0 -1
- package/package.json +63 -14
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/upgrade/contract.d.ts.map +0 -1
- package/dist/upgrade/contract.js.map +0 -1
- package/dist/upgrade/index.d.ts.map +0 -1
- package/dist/upgrade/index.js.map +0 -1
- package/dist/v1/addressing/index.d.ts.map +0 -1
- package/dist/v1/addressing/index.js.map +0 -1
- package/dist/v1/addressing/key.d.ts.map +0 -1
- package/dist/v1/addressing/key.js.map +0 -1
- package/dist/v1/addressing/patterns.d.ts.map +0 -1
- package/dist/v1/addressing/patterns.js.map +0 -1
- package/dist/v1/addressing/property-key.d.ts.map +0 -1
- package/dist/v1/addressing/property-key.js.map +0 -1
- package/dist/v1/addressing/ref.d.ts +0 -35
- package/dist/v1/addressing/ref.d.ts.map +0 -1
- package/dist/v1/addressing/ref.js +0 -94
- package/dist/v1/addressing/ref.js.map +0 -1
- package/dist/v1/addressing/schema-ref.d.ts +0 -8
- package/dist/v1/addressing/schema-ref.d.ts.map +0 -1
- package/dist/v1/addressing/schema-ref.js +0 -2
- package/dist/v1/addressing/schema-ref.js.map +0 -1
- package/dist/v1/builder/callable.d.ts +0 -81
- package/dist/v1/builder/callable.d.ts.map +0 -1
- package/dist/v1/builder/callable.js.map +0 -1
- package/dist/v1/builder/compiler/callable.d.ts +0 -20
- package/dist/v1/builder/compiler/callable.d.ts.map +0 -1
- package/dist/v1/builder/compiler/callable.js.map +0 -1
- package/dist/v1/builder/compiler/core.d.ts +0 -6
- package/dist/v1/builder/compiler/core.d.ts.map +0 -1
- package/dist/v1/builder/compiler/core.js.map +0 -1
- package/dist/v1/builder/compiler/core.properties.d.ts +0 -6
- package/dist/v1/builder/compiler/core.properties.d.ts.map +0 -1
- package/dist/v1/builder/compiler/core.properties.js.map +0 -1
- package/dist/v1/builder/compiler/definition.d.ts +0 -26
- package/dist/v1/builder/compiler/definition.d.ts.map +0 -1
- package/dist/v1/builder/compiler/definition.js +0 -154
- package/dist/v1/builder/compiler/definition.js.map +0 -1
- package/dist/v1/builder/compiler/policy.d.ts +0 -17
- package/dist/v1/builder/compiler/policy.d.ts.map +0 -1
- package/dist/v1/builder/compiler/policy.js.map +0 -1
- package/dist/v1/builder/compiler/schema.capture.d.ts.map +0 -1
- package/dist/v1/builder/compiler/schema.capture.js +0 -85
- package/dist/v1/builder/compiler/schema.capture.js.map +0 -1
- package/dist/v1/builder/compiler/schema.context.d.ts +0 -45
- package/dist/v1/builder/compiler/schema.context.d.ts.map +0 -1
- package/dist/v1/builder/compiler/schema.context.js.map +0 -1
- package/dist/v1/builder/compiler/schema.d.ts.map +0 -1
- package/dist/v1/builder/compiler/schema.js.map +0 -1
- package/dist/v1/builder/compiler/schema.ownership.d.ts.map +0 -1
- package/dist/v1/builder/compiler/schema.ownership.js.map +0 -1
- package/dist/v1/builder/compiler/value.d.ts +0 -22
- package/dist/v1/builder/compiler/value.d.ts.map +0 -1
- package/dist/v1/builder/compiler/value.js.map +0 -1
- package/dist/v1/builder/compiler/value.path.d.ts +0 -4
- package/dist/v1/builder/compiler/value.path.d.ts.map +0 -1
- package/dist/v1/builder/compiler/value.path.js.map +0 -1
- package/dist/v1/builder/compiler/value.zod.d.ts.map +0 -1
- package/dist/v1/builder/compiler/value.zod.js.map +0 -1
- package/dist/v1/builder/compiler/view.d.ts +0 -12
- package/dist/v1/builder/compiler/view.d.ts.map +0 -1
- package/dist/v1/builder/compiler/view.js.map +0 -1
- package/dist/v1/builder/core.d.ts +0 -27
- package/dist/v1/builder/core.d.ts.map +0 -1
- package/dist/v1/builder/core.js +0 -21
- package/dist/v1/builder/core.js.map +0 -1
- package/dist/v1/builder/definition.d.ts +0 -105
- package/dist/v1/builder/definition.d.ts.map +0 -1
- package/dist/v1/builder/definition.js +0 -97
- package/dist/v1/builder/definition.js.map +0 -1
- package/dist/v1/builder/full-match.d.ts +0 -12
- package/dist/v1/builder/full-match.d.ts.map +0 -1
- package/dist/v1/builder/full-match.js.map +0 -1
- package/dist/v1/builder/index.d.ts.map +0 -1
- package/dist/v1/builder/index.js.map +0 -1
- package/dist/v1/builder/internal/authoring.d.ts.map +0 -1
- package/dist/v1/builder/internal/authoring.js.map +0 -1
- package/dist/v1/builder/internal/authoring.lazy.d.ts.map +0 -1
- package/dist/v1/builder/internal/authoring.lazy.js.map +0 -1
- package/dist/v1/builder/internal/diagnostic.d.ts +0 -4
- package/dist/v1/builder/internal/diagnostic.d.ts.map +0 -1
- package/dist/v1/builder/internal/diagnostic.js +0 -16
- package/dist/v1/builder/internal/diagnostic.js.map +0 -1
- package/dist/v1/builder/internal/path.metadata.d.ts +0 -5
- package/dist/v1/builder/internal/path.metadata.d.ts.map +0 -1
- package/dist/v1/builder/internal/path.metadata.js.map +0 -1
- package/dist/v1/builder/path.d.ts +0 -9
- package/dist/v1/builder/path.d.ts.map +0 -1
- package/dist/v1/builder/path.js.map +0 -1
- package/dist/v1/builder/policy.d.ts.map +0 -1
- package/dist/v1/builder/policy.js.map +0 -1
- package/dist/v1/builder/property.d.ts +0 -23
- package/dist/v1/builder/property.d.ts.map +0 -1
- package/dist/v1/builder/property.js +0 -12
- package/dist/v1/builder/property.js.map +0 -1
- package/dist/v1/builder/schema.d.ts +0 -6
- package/dist/v1/builder/schema.d.ts.map +0 -1
- package/dist/v1/builder/schema.input.d.ts +0 -19
- package/dist/v1/builder/schema.input.d.ts.map +0 -1
- package/dist/v1/builder/schema.input.js +0 -2
- package/dist/v1/builder/schema.input.js.map +0 -1
- package/dist/v1/builder/schema.js.map +0 -1
- package/dist/v1/builder/value-schema.d.ts.map +0 -1
- package/dist/v1/builder/value-schema.js.map +0 -1
- package/dist/v1/builder/view.d.ts +0 -19
- package/dist/v1/builder/view.d.ts.map +0 -1
- package/dist/v1/builder/view.js +0 -7
- package/dist/v1/builder/view.js.map +0 -1
- package/dist/v1/builder.d.ts +0 -3
- package/dist/v1/builder.d.ts.map +0 -1
- package/dist/v1/builder.js +0 -2
- package/dist/v1/builder.js.map +0 -1
- package/dist/v1/bundle/codec.d.ts.map +0 -1
- package/dist/v1/bundle/codec.js.map +0 -1
- package/dist/v1/bundle/index.d.ts.map +0 -1
- package/dist/v1/bundle/index.js.map +0 -1
- package/dist/v1/bundle/model.d.ts.map +0 -1
- package/dist/v1/bundle/model.js.map +0 -1
- package/dist/v1/bundle/structure.d.ts.map +0 -1
- package/dist/v1/bundle/structure.js.map +0 -1
- package/dist/v1/bundle.d.ts +0 -3
- package/dist/v1/bundle.d.ts.map +0 -1
- package/dist/v1/bundle.js +0 -3
- package/dist/v1/bundle.js.map +0 -1
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
- package/dist/v1/schema/callable.d.ts +0 -29
- package/dist/v1/schema/callable.d.ts.map +0 -1
- package/dist/v1/schema/callable.js +0 -2
- package/dist/v1/schema/callable.js.map +0 -1
- package/dist/v1/schema/canonical/domain.d.ts.map +0 -1
- package/dist/v1/schema/canonical/domain.digest.d.ts.map +0 -1
- package/dist/v1/schema/canonical/domain.digest.js.map +0 -1
- package/dist/v1/schema/canonical/domain.js.map +0 -1
- package/dist/v1/schema/canonical/freeze.d.ts.map +0 -1
- package/dist/v1/schema/canonical/freeze.js.map +0 -1
- package/dist/v1/schema/core/declaration.d.ts +0 -17
- package/dist/v1/schema/core/declaration.d.ts.map +0 -1
- package/dist/v1/schema/core/declaration.js +0 -2
- package/dist/v1/schema/core/declaration.js.map +0 -1
- package/dist/v1/schema/core/validate.d.ts +0 -6
- package/dist/v1/schema/core/validate.d.ts.map +0 -1
- package/dist/v1/schema/core/validate.js.map +0 -1
- package/dist/v1/schema/definition/analysis.d.ts.map +0 -1
- package/dist/v1/schema/definition/analysis.js.map +0 -1
- package/dist/v1/schema/definition/class.d.ts +0 -28
- package/dist/v1/schema/definition/class.d.ts.map +0 -1
- package/dist/v1/schema/definition/class.js +0 -2
- package/dist/v1/schema/definition/class.js.map +0 -1
- package/dist/v1/schema/definition/data.d.ts.map +0 -1
- package/dist/v1/schema/definition/data.js.map +0 -1
- package/dist/v1/schema/definition/edge.d.ts +0 -22
- package/dist/v1/schema/definition/edge.d.ts.map +0 -1
- package/dist/v1/schema/definition/edge.js +0 -2
- package/dist/v1/schema/definition/edge.js.map +0 -1
- package/dist/v1/schema/definition/interface.d.ts +0 -22
- package/dist/v1/schema/definition/interface.d.ts.map +0 -1
- package/dist/v1/schema/definition/interface.js +0 -2
- package/dist/v1/schema/definition/interface.js.map +0 -1
- package/dist/v1/schema/definition/property.d.ts +0 -11
- package/dist/v1/schema/definition/property.d.ts.map +0 -1
- package/dist/v1/schema/definition/property.js +0 -2
- package/dist/v1/schema/definition/property.js.map +0 -1
- package/dist/v1/schema/definition/validate.d.ts +0 -5
- package/dist/v1/schema/definition/validate.d.ts.map +0 -1
- package/dist/v1/schema/definition/validate.js +0 -152
- package/dist/v1/schema/definition/validate.js.map +0 -1
- package/dist/v1/schema/dependency.meaning.d.ts.map +0 -1
- package/dist/v1/schema/dependency.meaning.js.map +0 -1
- package/dist/v1/schema/diagnostic.d.ts.map +0 -1
- package/dist/v1/schema/diagnostic.js.map +0 -1
- package/dist/v1/schema/domain.accept.d.ts +0 -4
- package/dist/v1/schema/domain.accept.d.ts.map +0 -1
- package/dist/v1/schema/domain.accept.js.map +0 -1
- package/dist/v1/schema/domain.codec.d.ts.map +0 -1
- package/dist/v1/schema/domain.codec.js.map +0 -1
- package/dist/v1/schema/domain.header.d.ts +0 -15
- package/dist/v1/schema/domain.header.d.ts.map +0 -1
- package/dist/v1/schema/domain.header.js +0 -21
- package/dist/v1/schema/domain.header.js.map +0 -1
- package/dist/v1/schema/domain.ir.d.ts +0 -40
- package/dist/v1/schema/domain.ir.d.ts.map +0 -1
- package/dist/v1/schema/domain.ir.js +0 -5
- package/dist/v1/schema/domain.ir.js.map +0 -1
- package/dist/v1/schema/domain.lookup.d.ts.map +0 -1
- package/dist/v1/schema/domain.lookup.js.map +0 -1
- package/dist/v1/schema/domain.resolve.d.ts +0 -26
- package/dist/v1/schema/domain.resolve.d.ts.map +0 -1
- package/dist/v1/schema/domain.resolve.js +0 -43
- package/dist/v1/schema/domain.resolve.js.map +0 -1
- package/dist/v1/schema/domain.revision.d.ts.map +0 -1
- package/dist/v1/schema/domain.revision.js.map +0 -1
- package/dist/v1/schema/domain.validate.d.ts +0 -12
- package/dist/v1/schema/domain.validate.d.ts.map +0 -1
- package/dist/v1/schema/domain.validate.js.map +0 -1
- package/dist/v1/schema/index.d.ts.map +0 -1
- package/dist/v1/schema/index.js.map +0 -1
- package/dist/v1/schema/metadata.d.ts.map +0 -1
- package/dist/v1/schema/metadata.js.map +0 -1
- package/dist/v1/schema/policy/ast.d.ts.map +0 -1
- package/dist/v1/schema/policy/ast.js +0 -2
- package/dist/v1/schema/policy/ast.js.map +0 -1
- package/dist/v1/schema/policy/normalize.d.ts +0 -5
- package/dist/v1/schema/policy/normalize.d.ts.map +0 -1
- package/dist/v1/schema/policy/normalize.js.map +0 -1
- package/dist/v1/schema/policy/validation/branches.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/branches.js.map +0 -1
- package/dist/v1/schema/policy/validation/budgets.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/budgets.js.map +0 -1
- package/dist/v1/schema/policy/validation/context.d.ts +0 -28
- package/dist/v1/schema/policy/validation/context.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/context.js.map +0 -1
- package/dist/v1/schema/policy/validation/references.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/references.js.map +0 -1
- package/dist/v1/schema/policy/validation/typing.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/typing.js.map +0 -1
- package/dist/v1/schema/policy/validation/uses.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/uses.js.map +0 -1
- package/dist/v1/schema/policy/validation/validate.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/validate.js.map +0 -1
- package/dist/v1/schema/reference.d.ts +0 -43
- package/dist/v1/schema/reference.d.ts.map +0 -1
- package/dist/v1/schema/reference.js +0 -31
- package/dist/v1/schema/reference.js.map +0 -1
- package/dist/v1/schema/resolution/closure.d.ts.map +0 -1
- package/dist/v1/schema/resolution/closure.js.map +0 -1
- package/dist/v1/schema/resolution/context.d.ts.map +0 -1
- package/dist/v1/schema/resolution/context.js.map +0 -1
- package/dist/v1/schema/resolution/definition.index.d.ts.map +0 -1
- package/dist/v1/schema/resolution/definition.index.js.map +0 -1
- package/dist/v1/schema/resolution/origins.d.ts.map +0 -1
- package/dist/v1/schema/resolution/origins.js.map +0 -1
- package/dist/v1/schema/resolution/value.registry.d.ts.map +0 -1
- package/dist/v1/schema/resolution/value.registry.js.map +0 -1
- package/dist/v1/schema/validation/domain.route.d.ts.map +0 -1
- package/dist/v1/schema/validation/domain.route.js.map +0 -1
- package/dist/v1/schema/validation/domain.structure.d.ts.map +0 -1
- package/dist/v1/schema/validation/domain.structure.js.map +0 -1
- package/dist/v1/schema/validation/value.d.ts.map +0 -1
- package/dist/v1/schema/validation/value.js.map +0 -1
- package/dist/v1/schema/value/extensions/node-path/schema.d.ts.map +0 -1
- package/dist/v1/schema/value/extensions/node-path/schema.js.map +0 -1
- package/dist/v1/schema/value/extensions/node-path/validate.d.ts +0 -5
- package/dist/v1/schema/value/extensions/node-path/validate.d.ts.map +0 -1
- package/dist/v1/schema/value/extensions/node-path/validate.js.map +0 -1
- package/dist/v1/schema/value/index.d.ts.map +0 -1
- package/dist/v1/schema/value/index.js.map +0 -1
- package/dist/v1/schema/value/instance/assertions.d.ts.map +0 -1
- package/dist/v1/schema/value/instance/assertions.js.map +0 -1
- package/dist/v1/schema/value/instance/compiler.d.ts.map +0 -1
- package/dist/v1/schema/value/instance/compiler.js +0 -69
- package/dist/v1/schema/value/instance/compiler.js.map +0 -1
- package/dist/v1/schema/value/instance/evaluator.d.ts.map +0 -1
- package/dist/v1/schema/value/instance/evaluator.js.map +0 -1
- package/dist/v1/schema/value/instance/types.d.ts.map +0 -1
- package/dist/v1/schema/value/instance/types.js.map +0 -1
- package/dist/v1/schema/value/instance.validate.d.ts.map +0 -1
- package/dist/v1/schema/value/instance.validate.js.map +0 -1
- package/dist/v1/schema/value/instant.d.ts.map +0 -1
- package/dist/v1/schema/value/instant.js.map +0 -1
- package/dist/v1/schema/value/location/keywords.d.ts.map +0 -1
- package/dist/v1/schema/value/location/keywords.js.map +0 -1
- package/dist/v1/schema/value/location/pointer.d.ts.map +0 -1
- package/dist/v1/schema/value/location/pointer.js.map +0 -1
- package/dist/v1/schema/value/location/walk.d.ts.map +0 -1
- package/dist/v1/schema/value/location/walk.js.map +0 -1
- package/dist/v1/schema/value/object.d.ts.map +0 -1
- package/dist/v1/schema/value/object.js.map +0 -1
- package/dist/v1/schema/value/ordering.d.ts.map +0 -1
- package/dist/v1/schema/value/ordering.js.map +0 -1
- package/dist/v1/schema/value/profile/canonicalize.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/canonicalize.js.map +0 -1
- package/dist/v1/schema/value/profile/dialect.d.ts +0 -5
- package/dist/v1/schema/value/profile/dialect.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/dialect.js +0 -36
- package/dist/v1/schema/value/profile/dialect.js.map +0 -1
- package/dist/v1/schema/value/profile/json.validate.d.ts +0 -3
- package/dist/v1/schema/value/profile/json.validate.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/json.validate.js.map +0 -1
- package/dist/v1/schema/value/profile/meta-schema.validate.d.ts +0 -4
- package/dist/v1/schema/value/profile/meta-schema.validate.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/meta-schema.validate.js +0 -25
- package/dist/v1/schema/value/profile/meta-schema.validate.js.map +0 -1
- package/dist/v1/schema/value/profile/rules.d.ts +0 -5
- package/dist/v1/schema/value/profile/rules.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/rules.js.map +0 -1
- package/dist/v1/schema/value/profile/validate.d.ts +0 -5
- package/dist/v1/schema/value/profile/validate.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/validate.js.map +0 -1
- package/dist/v1/schema/value/profile/vocabulary.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/vocabulary.js.map +0 -1
- package/dist/v1/schema/value/regexp/linear.d.ts +0 -20
- package/dist/v1/schema/value/regexp/linear.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/linear.js +0 -24
- package/dist/v1/schema/value/regexp/linear.js.map +0 -1
- package/dist/v1/schema/value/regexp/lower.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/lower.js.map +0 -1
- package/dist/v1/schema/value/regexp/pattern.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/pattern.js.map +0 -1
- package/dist/v1/schema/value/regexp/syntax.d.ts +0 -3
- package/dist/v1/schema/value/regexp/syntax.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/syntax.js +0 -219
- package/dist/v1/schema/value/regexp/syntax.js.map +0 -1
- package/dist/v1/schema/value/registry.d.ts.map +0 -1
- package/dist/v1/schema/value/registry.js +0 -2
- package/dist/v1/schema/value/registry.js.map +0 -1
- package/dist/v1/schema/value/resources/closure.d.ts +0 -12
- package/dist/v1/schema/value/resources/closure.d.ts.map +0 -1
- package/dist/v1/schema/value/resources/closure.js.map +0 -1
- package/dist/v1/schema/value/resources/recursion.d.ts.map +0 -1
- package/dist/v1/schema/value/resources/recursion.js.map +0 -1
- package/dist/v1/schema/value/resources/references.d.ts +0 -25
- package/dist/v1/schema/value/resources/references.d.ts.map +0 -1
- package/dist/v1/schema/value/resources/references.js +0 -93
- package/dist/v1/schema/value/resources/references.js.map +0 -1
- package/dist/v1/schema/value/resources/registry.index.d.ts +0 -22
- package/dist/v1/schema/value/resources/registry.index.d.ts.map +0 -1
- package/dist/v1/schema/value/resources/registry.index.js.map +0 -1
- package/dist/v1/schema/value/schema.d.ts.map +0 -1
- package/dist/v1/schema/value/schema.js.map +0 -1
- package/dist/v1/schema/view/declaration.d.ts +0 -14
- package/dist/v1/schema/view/declaration.d.ts.map +0 -1
- package/dist/v1/schema/view/declaration.js +0 -2
- package/dist/v1/schema/view/declaration.js.map +0 -1
- package/dist/v1/schema/view/validate.d.ts +0 -4
- package/dist/v1/schema/view/validate.d.ts.map +0 -1
- package/dist/v1/schema/view/validate.js.map +0 -1
- package/dist/v1/schema.d.ts +0 -3
- package/dist/v1/schema.d.ts.map +0 -1
- package/dist/v1/schema.js +0 -3
- package/dist/v1/schema.js.map +0 -1
- package/dist/v1.d.ts.map +0 -1
- package/dist/v1.js.map +0 -1
- package/dist/value/accept.d.ts.map +0 -1
- package/dist/value/accept.js.map +0 -1
- package/dist/value/canonical.d.ts.map +0 -1
- package/dist/value/canonical.js.map +0 -1
- package/dist/value/decode.d.ts.map +0 -1
- package/dist/value/decode.js.map +0 -1
- package/dist/value/equal.d.ts.map +0 -1
- package/dist/value/equal.js.map +0 -1
- package/dist/value/error.d.ts.map +0 -1
- package/dist/value/error.js.map +0 -1
- package/dist/value/index.d.ts.map +0 -1
- package/dist/value/index.js.map +0 -1
- package/dist/value/json.d.ts.map +0 -1
- package/dist/value/json.js.map +0 -1
- package/dist/value/limits.d.ts.map +0 -1
- package/dist/value/limits.js.map +0 -1
- package/dist/value/types.d.ts.map +0 -1
- package/dist/value/types.js.map +0 -1
- package/dist/value/unicode.d.ts.map +0 -1
- package/dist/value/unicode.js.map +0 -1
- package/dist/version/dispatch.d.ts.map +0 -1
- package/dist/version/dispatch.js.map +0 -1
- package/dist/version/index.d.ts.map +0 -1
- package/dist/version/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/upgrade/contract.js
CHANGED
package/dist/upgrade/index.d.ts
CHANGED
package/dist/upgrade/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ClassRef } from './definition-ref.js';
|
|
2
|
+
import { Key, type DefinitionKey } from './key.js';
|
|
3
|
+
/** Canonical qualified string identity of one exact Class declaration. */
|
|
4
|
+
export type ClassKey<Origin extends Key.Origin = Key.Origin, Name extends string = string> = DefinitionKey<Origin, 'class', Name>;
|
|
5
|
+
/** Admit exact canonical Class-key text. */
|
|
6
|
+
export declare function ClassKey<Origin extends Key.Origin = Key.Origin, Name extends string = string>(input: string): ClassKey<Origin, Name>;
|
|
7
|
+
/** Construction, admission, and structural-coordinate operations for exact Class keys. */
|
|
8
|
+
export declare namespace ClassKey {
|
|
9
|
+
function of<const Ref extends ClassRef>(ref: Ref): ClassKey<Ref['origin'], Ref['name']>;
|
|
10
|
+
function is(input: unknown): input is ClassKey;
|
|
11
|
+
function ref(input: ClassKey): ClassRef;
|
|
12
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { acceptDefinitionRef } from './definition-ref.js';
|
|
2
|
+
import { Key } from './key.js';
|
|
3
|
+
/** Admit exact canonical Class-key text. */
|
|
4
|
+
export function ClassKey(input) {
|
|
5
|
+
if (!ClassKey.is(input)) {
|
|
6
|
+
throw new TypeError(`Invalid canonical ClassKey: ${JSON.stringify(input)}.`);
|
|
7
|
+
}
|
|
8
|
+
return input;
|
|
9
|
+
}
|
|
10
|
+
/** Construction, admission, and structural-coordinate operations for exact Class keys. */
|
|
11
|
+
(function (ClassKey) {
|
|
12
|
+
function of(ref) {
|
|
13
|
+
const admitted = acceptDefinitionRef(ref);
|
|
14
|
+
if (admitted.kind !== 'class') {
|
|
15
|
+
throw new TypeError(`Invalid ClassKey coordinate: ${JSON.stringify(ref)}.`);
|
|
16
|
+
}
|
|
17
|
+
return Key.of(admitted);
|
|
18
|
+
}
|
|
19
|
+
ClassKey.of = of;
|
|
20
|
+
function is(input) {
|
|
21
|
+
if (typeof input !== 'string' || !Key.is(input))
|
|
22
|
+
return false;
|
|
23
|
+
const separator = input.indexOf(':');
|
|
24
|
+
return (input.slice(separator + 1).startsWith('class.') &&
|
|
25
|
+
!input.includes('.property.') &&
|
|
26
|
+
!input.includes('.method.'));
|
|
27
|
+
}
|
|
28
|
+
ClassKey.is = is;
|
|
29
|
+
function ref(input) {
|
|
30
|
+
const admitted = ClassKey(input);
|
|
31
|
+
const separator = admitted.indexOf(':');
|
|
32
|
+
return acceptDefinitionRef({
|
|
33
|
+
origin: admitted.slice(0, separator),
|
|
34
|
+
kind: 'class',
|
|
35
|
+
name: admitted.slice(separator + ':class.'.length),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
ClassKey.ref = ref;
|
|
39
|
+
})(ClassKey || (ClassKey = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Object as JsonObject } from '@astrale-os/kernel-dsl/value';
|
|
2
|
+
import type { DomainOrigin } from './patterns.js';
|
|
3
|
+
/** The broad named Definition categories addressable by V1. */
|
|
4
|
+
export declare namespace Definition {
|
|
5
|
+
type Kind = 'class' | 'function' | 'policy' | 'view' | 'core';
|
|
6
|
+
}
|
|
7
|
+
export type DefinitionKind = Definition.Kind;
|
|
8
|
+
/** The one structured coordinate for an exact Definition declaration. */
|
|
9
|
+
export interface DefinitionRef<out Kind extends Definition.Kind = Definition.Kind, out Name extends string = string> {
|
|
10
|
+
readonly origin: DomainOrigin;
|
|
11
|
+
readonly kind: Kind;
|
|
12
|
+
readonly name: Name;
|
|
13
|
+
}
|
|
14
|
+
export type ClassRef<Name extends string = string> = DefinitionRef<'class', Name>;
|
|
15
|
+
export type FunctionRef<Name extends string = string> = DefinitionRef<'function', Name>;
|
|
16
|
+
export type PolicyRef<Name extends string = string> = DefinitionRef<'policy', Name>;
|
|
17
|
+
export type ViewRef<Name extends string = string> = DefinitionRef<'view', Name>;
|
|
18
|
+
export type CoreRef<Name extends string = string> = DefinitionRef<'core', Name>;
|
|
19
|
+
export type DefinitionRefValue = JsonObject & DefinitionRef;
|
|
20
|
+
export interface DefinitionBase<out Ref extends DefinitionRef = DefinitionRef> {
|
|
21
|
+
readonly ref: Ref;
|
|
22
|
+
}
|
|
23
|
+
/** Admit and detach one canonical DefinitionRef from an untrusted value. */
|
|
24
|
+
export declare function acceptDefinitionRef(input: unknown): DefinitionRef;
|
|
25
|
+
/** Identify a canonical DefinitionRef-shaped value without retaining caller state. */
|
|
26
|
+
export declare function isDefinitionRef(input: unknown): input is DefinitionRef;
|
|
27
|
+
/** Compare exact Definition coordinates, independent of object identity. */
|
|
28
|
+
export declare function equalDefinitionRefs(left: DefinitionRef, right: DefinitionRef): boolean;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CORE_SLUG_PATTERN, DOMAIN_ORIGIN_PATTERN, MEMBER_NAME_PATTERN } from './patterns.js';
|
|
2
|
+
const DEFINITION_KINDS = new Set([
|
|
3
|
+
'class',
|
|
4
|
+
'function',
|
|
5
|
+
'policy',
|
|
6
|
+
'view',
|
|
7
|
+
'core',
|
|
8
|
+
]);
|
|
9
|
+
/** Admit and detach one canonical DefinitionRef from an untrusted value. */
|
|
10
|
+
export function acceptDefinitionRef(input) {
|
|
11
|
+
if (input === null || typeof input !== 'object' || Array.isArray(input)) {
|
|
12
|
+
invalid(input);
|
|
13
|
+
}
|
|
14
|
+
const value = input;
|
|
15
|
+
const keys = Reflect.ownKeys(value);
|
|
16
|
+
if (keys.length !== 3 ||
|
|
17
|
+
!keys.every((key) => key === 'origin' || key === 'kind' || key === 'name')) {
|
|
18
|
+
invalid(input);
|
|
19
|
+
}
|
|
20
|
+
const origin = value.origin;
|
|
21
|
+
const kind = value.kind;
|
|
22
|
+
const name = value.name;
|
|
23
|
+
if (typeof origin !== 'string' ||
|
|
24
|
+
!DOMAIN_ORIGIN_PATTERN.test(origin) ||
|
|
25
|
+
typeof kind !== 'string' ||
|
|
26
|
+
!DEFINITION_KINDS.has(kind) ||
|
|
27
|
+
typeof name !== 'string' ||
|
|
28
|
+
!definitionNameMatches(kind, name)) {
|
|
29
|
+
invalid(input);
|
|
30
|
+
}
|
|
31
|
+
return Object.freeze({
|
|
32
|
+
origin,
|
|
33
|
+
kind: kind,
|
|
34
|
+
name,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/** Identify a canonical DefinitionRef-shaped value without retaining caller state. */
|
|
38
|
+
export function isDefinitionRef(input) {
|
|
39
|
+
if (input === null || typeof input !== 'object' || Array.isArray(input))
|
|
40
|
+
return false;
|
|
41
|
+
const value = input;
|
|
42
|
+
const keys = Reflect.ownKeys(value);
|
|
43
|
+
if (keys.length !== 3 ||
|
|
44
|
+
!keys.every((key) => key === 'origin' || key === 'kind' || key === 'name')) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return (typeof value.origin === 'string' &&
|
|
48
|
+
DOMAIN_ORIGIN_PATTERN.test(value.origin) &&
|
|
49
|
+
typeof value.kind === 'string' &&
|
|
50
|
+
DEFINITION_KINDS.has(value.kind) &&
|
|
51
|
+
typeof value.name === 'string' &&
|
|
52
|
+
definitionNameMatches(value.kind, value.name));
|
|
53
|
+
}
|
|
54
|
+
/** Compare exact Definition coordinates, independent of object identity. */
|
|
55
|
+
export function equalDefinitionRefs(left, right) {
|
|
56
|
+
return left.origin === right.origin && left.kind === right.kind && left.name === right.name;
|
|
57
|
+
}
|
|
58
|
+
function invalid(input) {
|
|
59
|
+
throw new TypeError(`Invalid DefinitionRef: ${JSON.stringify(input)}.`);
|
|
60
|
+
}
|
|
61
|
+
function definitionNameMatches(kind, name) {
|
|
62
|
+
return kind === 'core' ? CORE_SLUG_PATTERN.test(name) : MEMBER_NAME_PATTERN.test(name);
|
|
63
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Object as JsonObject } from '@astrale-os/kernel-dsl/value';
|
|
2
|
+
import type { Key } from './key.js';
|
|
3
|
+
import type { Revision } from './revision.js';
|
|
4
|
+
/** Exact portable coordinate of one admitted Domain revision. */
|
|
5
|
+
export type DomainDependency = JsonObject & {
|
|
6
|
+
readonly origin: Key.Origin;
|
|
7
|
+
readonly revision: Revision;
|
|
8
|
+
};
|
|
9
|
+
/** Canonical authored name of one exact direct dependency. */
|
|
10
|
+
export type DependencyAlias = string;
|
|
11
|
+
/** Exact direct dependency pins keyed by their authored aliases. */
|
|
12
|
+
export type DomainDependencyMap = Readonly<Record<DependencyAlias, DomainDependency>>;
|
|
13
|
+
/** Representation-neutral admission budgets shared by source and compiled closures. */
|
|
14
|
+
export declare const dependencyLimits: Readonly<{
|
|
15
|
+
direct: 32;
|
|
16
|
+
closure: 256;
|
|
17
|
+
depth: 32;
|
|
18
|
+
}>;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
1
|
+
export { acceptDefinitionRef, equalDefinitionRefs, isDefinitionRef } from './definition-ref.js';
|
|
2
|
+
export { ClassKey } from './class-key.js';
|
|
3
|
+
export type { ClassRef, CoreRef, Definition, DefinitionBase, DefinitionKind, DefinitionRef, DefinitionRefValue, FunctionRef, PolicyRef, ViewRef, } from './definition-ref.js';
|
|
4
|
+
export type { CoreKey, DefinitionKey } from './key.js';
|
|
5
|
+
export { callableAddress, MethodKey } from './method-key.js';
|
|
6
|
+
export type { MethodAddress } from './method-key.js';
|
|
7
|
+
export { patterns } from './patterns.js';
|
|
4
8
|
export { Key } from './key.js';
|
|
9
|
+
export { compareUnicode } from './ordering.js';
|
|
5
10
|
export { PropertyKey } from './property-key.js';
|
|
6
|
-
|
|
11
|
+
export type { Revision } from './revision.js';
|
|
12
|
+
export type { DependencyAlias, DomainDependency, DomainDependencyMap } from './domain-dependency.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { acceptDefinitionRef, equalDefinitionRefs, isDefinitionRef } from './definition-ref.js';
|
|
2
|
+
export { ClassKey } from './class-key.js';
|
|
3
|
+
export { callableAddress, MethodKey } from './method-key.js';
|
|
4
|
+
export { patterns } from './patterns.js';
|
|
3
5
|
export { Key } from './key.js';
|
|
6
|
+
export { compareUnicode } from './ordering.js';
|
|
4
7
|
export { PropertyKey } from './property-key.js';
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MethodKey } from './method-address.js';
|
|
2
|
+
import { type Definition, type DefinitionKind, type DefinitionRef } from './definition-ref.js';
|
|
2
3
|
import { type DomainOrigin } from './patterns.js';
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
type
|
|
6
|
-
export
|
|
7
|
-
|
|
4
|
+
export type DefinitionKey<Origin extends Key.Origin = Key.Origin, Kind extends Definition.Kind = Definition.Kind, Name extends string = string> = `${Origin}:${Kind}.${Name}`;
|
|
5
|
+
export type CoreKey<Origin extends Key.Origin = Key.Origin, Name extends string = string> = DefinitionKey<Origin, 'core', Name>;
|
|
6
|
+
export type PropertyKey<Origin extends Key.Origin = Key.Origin, Owner extends string = string, Name extends string = string> = `${Origin}:class.${Owner}.property.${Name}`;
|
|
7
|
+
export type Key = DefinitionKey | PropertyKey | MethodKey;
|
|
8
|
+
export declare function Key(input: string): Key;
|
|
9
|
+
/** Canonical origin-qualified address operations. */
|
|
8
10
|
export declare namespace Key {
|
|
9
11
|
type Origin = DomainOrigin;
|
|
10
|
-
type Definition<Kind extends
|
|
11
|
-
type
|
|
12
|
-
type
|
|
13
|
-
|
|
14
|
-
function of<
|
|
15
|
-
function fromSchema<Kind extends Ref.Kind | 'core', Name extends string>(ref: SchemaRef<Kind, Name>): Kind extends 'core' ? Key<Key.Origin, Ref.Core<Name>> : Kind extends Ref.Kind ? Key.Definition<Kind, Name> : never;
|
|
12
|
+
type Definition<Kind extends DefinitionKind = DefinitionKind, Name extends string = string, Origin extends Key.Origin = Key.Origin> = DefinitionKey<Origin, Kind, Name>;
|
|
13
|
+
type Callable = DefinitionKey<Key.Origin, 'function'> | MethodKey;
|
|
14
|
+
type View = DefinitionKey<Key.Origin, 'view'>;
|
|
15
|
+
/** Derive a canonical Definition key from its structured coordinate. */
|
|
16
|
+
function of<const Ref extends DefinitionRef>(ref: Ref): DefinitionKey<Ref['origin'], Ref['kind'], Ref['name']>;
|
|
16
17
|
function origin(input: Key): Key.Origin;
|
|
17
|
-
function
|
|
18
|
-
function is(input: unknown): input is SemanticKey;
|
|
18
|
+
function is(input: unknown): input is Key;
|
|
19
19
|
}
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=key.d.ts.map
|
|
@@ -1,49 +1,39 @@
|
|
|
1
|
+
import { acceptDefinitionRef, } from './definition-ref.js';
|
|
1
2
|
import { DOMAIN_ORIGIN_PATTERN } from './patterns.js';
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
!Ref.is(input.slice(split + 1))) {
|
|
3
|
+
const DEFINITION_KEY = /^(?:class|function|policy|view)\.([A-Za-z][A-Za-z0-9_]*)$/u;
|
|
4
|
+
const CORE_KEY = /^core\.([a-z][a-z0-9-]{0,99})$/u;
|
|
5
|
+
const MEMBER_KEY = /^class\.([A-Za-z][A-Za-z0-9_]*)\.(property|method)\.([A-Za-z][A-Za-z0-9_]*)$/u;
|
|
6
|
+
export function Key(input) {
|
|
7
|
+
if (typeof input !== 'string' || !isCanonicalKey(input)) {
|
|
8
8
|
throw new TypeError(`Invalid Key: ${JSON.stringify(input)}.`);
|
|
9
9
|
}
|
|
10
10
|
return input;
|
|
11
|
-
};
|
|
12
|
-
export function Key(input) {
|
|
13
|
-
return admitKey(input);
|
|
14
11
|
}
|
|
15
|
-
/**
|
|
12
|
+
/** Canonical origin-qualified address operations. */
|
|
16
13
|
(function (Key) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
return `${origin}:${Ref(ref)}`;
|
|
14
|
+
/** Derive a canonical Definition key from its structured coordinate. */
|
|
15
|
+
function of(ref) {
|
|
16
|
+
const definition = acceptDefinitionRef(ref);
|
|
17
|
+
return Key(`${definition.origin}:${definition.kind}.${definition.name}`);
|
|
22
18
|
}
|
|
23
19
|
Key.of = of;
|
|
24
|
-
function fromSchema(ref) {
|
|
25
|
-
return Key.of(ref.origin, Ref.fromSchema(ref));
|
|
26
|
-
}
|
|
27
|
-
Key.fromSchema = fromSchema;
|
|
28
20
|
function origin(input) {
|
|
29
|
-
|
|
21
|
+
const admitted = Key(input);
|
|
22
|
+
return admitted.slice(0, admitted.indexOf(':'));
|
|
30
23
|
}
|
|
31
24
|
Key.origin = origin;
|
|
32
|
-
function ref(input) {
|
|
33
|
-
return Key(input).slice(input.indexOf(':') + 1);
|
|
34
|
-
}
|
|
35
|
-
Key.ref = ref;
|
|
36
25
|
function is(input) {
|
|
37
|
-
|
|
38
|
-
return false;
|
|
39
|
-
try {
|
|
40
|
-
admitKey(input);
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
catch {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
26
|
+
return typeof input === 'string' && isCanonicalKey(input);
|
|
46
27
|
}
|
|
47
28
|
Key.is = is;
|
|
48
29
|
})(Key || (Key = {}));
|
|
49
|
-
|
|
30
|
+
function isCanonicalKey(input) {
|
|
31
|
+
const separator = input.indexOf(':');
|
|
32
|
+
return (separator > 0 &&
|
|
33
|
+
separator === input.lastIndexOf(':') &&
|
|
34
|
+
DOMAIN_ORIGIN_PATTERN.test(input.slice(0, separator)) &&
|
|
35
|
+
isCanonicalCoordinate(input.slice(separator + 1)));
|
|
36
|
+
}
|
|
37
|
+
function isCanonicalCoordinate(input) {
|
|
38
|
+
return DEFINITION_KEY.test(input) || CORE_KEY.test(input) || MEMBER_KEY.test(input);
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ClassRef } from './definition-ref.js';
|
|
2
|
+
import type { DomainOrigin } from './patterns.js';
|
|
3
|
+
export type MethodKey<Origin extends DomainOrigin = DomainOrigin, Owner extends string = string, Name extends string = string> = `${Origin}:class.${Owner}.method.${Name}`;
|
|
4
|
+
/** The structured address of one Class-owned Method. */
|
|
5
|
+
export interface MethodAddress<out Owner extends ClassRef = ClassRef, out Name extends string = string> {
|
|
6
|
+
readonly kind: 'method';
|
|
7
|
+
readonly owner: Owner;
|
|
8
|
+
readonly name: Name;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MethodAddress, MethodKey as MethodKeyValue } from './method-address.js';
|
|
2
|
+
import { type ClassRef, type FunctionRef } from './definition-ref.js';
|
|
3
|
+
import { Key } from './key.js';
|
|
4
|
+
export type MethodKey<Origin extends Key.Origin = Key.Origin, Owner extends string = string, Name extends string = string> = MethodKeyValue<Origin, Owner, Name>;
|
|
5
|
+
export type { MethodAddress } from './method-address.js';
|
|
6
|
+
/** Admit exact canonical Method-key text. */
|
|
7
|
+
export declare function MethodKey<Origin extends Key.Origin = Key.Origin, Owner extends string = string, Name extends string = string>(input: string): MethodKeyValue<Origin, Owner, Name>;
|
|
8
|
+
/** Construction, admission, and decomposition for canonical Class-owned Method keys. */
|
|
9
|
+
export declare namespace MethodKey {
|
|
10
|
+
function of<const Owner extends ClassRef, const Name extends string>(owner: Owner, name: Name): MethodKeyValue<Owner['origin'], Owner['name'], Name>;
|
|
11
|
+
function is(input: unknown): input is MethodKeyValue;
|
|
12
|
+
function address(input: MethodKeyValue): MethodAddress;
|
|
13
|
+
}
|
|
14
|
+
/** Decompose one admitted callable key into its semantic Function or Method address. */
|
|
15
|
+
export declare function callableAddress(input: Key.Callable): FunctionRef | MethodAddress;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { acceptDefinitionRef } from './definition-ref.js';
|
|
2
|
+
import { Key } from './key.js';
|
|
3
|
+
import { MEMBER_NAME_PATTERN } from './patterns.js';
|
|
4
|
+
/** Admit exact canonical Method-key text. */
|
|
5
|
+
export function MethodKey(input) {
|
|
6
|
+
if (!MethodKey.is(input)) {
|
|
7
|
+
throw new TypeError(`Invalid canonical MethodKey: ${JSON.stringify(input)}.`);
|
|
8
|
+
}
|
|
9
|
+
return input;
|
|
10
|
+
}
|
|
11
|
+
/** Construction, admission, and decomposition for canonical Class-owned Method keys. */
|
|
12
|
+
(function (MethodKey) {
|
|
13
|
+
function of(owner, name) {
|
|
14
|
+
const admitted = acceptDefinitionRef(owner);
|
|
15
|
+
if (admitted.kind !== 'class' || !MEMBER_NAME_PATTERN.test(name)) {
|
|
16
|
+
throw new TypeError(`Invalid MethodKey address: ${JSON.stringify({ owner, name })}.`);
|
|
17
|
+
}
|
|
18
|
+
return Key(`${admitted.origin}:class.${admitted.name}.method.${name}`);
|
|
19
|
+
}
|
|
20
|
+
MethodKey.of = of;
|
|
21
|
+
function is(input) {
|
|
22
|
+
if (typeof input !== 'string' || !Key.is(input))
|
|
23
|
+
return false;
|
|
24
|
+
const coordinate = input.slice(input.indexOf(':') + 1);
|
|
25
|
+
return coordinate.startsWith('class.') && coordinate.includes('.method.');
|
|
26
|
+
}
|
|
27
|
+
MethodKey.is = is;
|
|
28
|
+
function address(input) {
|
|
29
|
+
const admitted = MethodKey(input);
|
|
30
|
+
const separator = admitted.indexOf(':');
|
|
31
|
+
const coordinate = admitted.slice(separator + ':class.'.length);
|
|
32
|
+
const member = coordinate.indexOf('.method.');
|
|
33
|
+
return Object.freeze({
|
|
34
|
+
kind: 'method',
|
|
35
|
+
owner: acceptDefinitionRef({
|
|
36
|
+
origin: admitted.slice(0, separator),
|
|
37
|
+
kind: 'class',
|
|
38
|
+
name: coordinate.slice(0, member),
|
|
39
|
+
}),
|
|
40
|
+
name: coordinate.slice(member + '.method.'.length),
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
MethodKey.address = address;
|
|
44
|
+
})(MethodKey || (MethodKey = {}));
|
|
45
|
+
/** Decompose one admitted callable key into its semantic Function or Method address. */
|
|
46
|
+
export function callableAddress(input) {
|
|
47
|
+
if (MethodKey.is(input))
|
|
48
|
+
return MethodKey.address(input);
|
|
49
|
+
const admitted = Key(input);
|
|
50
|
+
const separator = admitted.indexOf(':');
|
|
51
|
+
const coordinate = admitted.slice(separator + 1);
|
|
52
|
+
if (!coordinate.startsWith('function.')) {
|
|
53
|
+
throw new TypeError(`Invalid callable Key: ${JSON.stringify(input)}.`);
|
|
54
|
+
}
|
|
55
|
+
return acceptDefinitionRef({
|
|
56
|
+
origin: admitted.slice(0, separator),
|
|
57
|
+
kind: 'function',
|
|
58
|
+
name: coordinate.slice('function.'.length),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DefinitionRef } from './definition-ref.js';
|
|
2
|
+
/** Internal exact-kind index for deterministic semantic tables. */
|
|
3
|
+
export declare function definitionRefIndex(ref: DefinitionRef): string;
|
|
4
|
+
export declare function compareDefinitionRefs(left: DefinitionRef, right: DefinitionRef): number;
|
|
5
|
+
/** Locale-independent Unicode code-point ordering for canonical DSL values. */
|
|
6
|
+
export declare function compareUnicode(left: string, right: string): number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Internal exact-kind index for deterministic semantic tables. */
|
|
2
|
+
export function definitionRefIndex(ref) {
|
|
3
|
+
return `${ref.origin}\u0000${ref.kind}\u0000${ref.name}`;
|
|
4
|
+
}
|
|
5
|
+
export function compareDefinitionRefs(left, right) {
|
|
6
|
+
return (compareUnicode(left.origin, right.origin) ||
|
|
7
|
+
compareUnicode(left.kind, right.kind) ||
|
|
8
|
+
compareUnicode(left.name, right.name));
|
|
9
|
+
}
|
|
10
|
+
/** Locale-independent Unicode code-point ordering for canonical DSL values. */
|
|
11
|
+
export function compareUnicode(left, right) {
|
|
12
|
+
const a = Array.from(left, (value) => value.codePointAt(0) ?? 0);
|
|
13
|
+
const b = Array.from(right, (value) => value.codePointAt(0) ?? 0);
|
|
14
|
+
const length = Math.min(a.length, b.length);
|
|
15
|
+
for (let index = 0; index < length; index += 1) {
|
|
16
|
+
if (a[index] !== b[index])
|
|
17
|
+
return (a[index] ?? 0) - (b[index] ?? 0);
|
|
18
|
+
}
|
|
19
|
+
return a.length - b.length;
|
|
20
|
+
}
|
|
@@ -2,17 +2,26 @@
|
|
|
2
2
|
export type DomainOrigin = string;
|
|
3
3
|
export declare const DOMAIN_ORIGIN_PATTERN: RegExp;
|
|
4
4
|
export declare const MEMBER_NAME_PATTERN: RegExp;
|
|
5
|
+
export declare const DEPENDENCY_ALIAS_PATTERN: RegExp;
|
|
5
6
|
export declare const CORE_SLUG_PATTERN: RegExp;
|
|
6
7
|
export declare const DOMAIN_REVISION_PATTERN: RegExp;
|
|
7
|
-
export declare const
|
|
8
|
+
export declare const DOMAIN_REVISION_FULL_MATCH = "sha256:[0-9a-f]{64}";
|
|
9
|
+
export declare const DOMAIN_ORIGIN_FULL_MATCH = "([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?";
|
|
10
|
+
export declare const MEMBER_NAME_FULL_MATCH = "[A-Za-z][A-Za-z0-9_]*";
|
|
11
|
+
export declare const DEPENDENCY_ALIAS_FULL_MATCH = "[a-z][A-Za-z0-9]*";
|
|
12
|
+
export declare const PROPERTY_KEY_FULL_MATCH = "([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?:class\\.[A-Za-z][A-Za-z0-9_]*\\.property\\.[A-Za-z][A-Za-z0-9_]*";
|
|
8
13
|
export declare const PROPERTY_KEY_PATTERN: RegExp;
|
|
9
14
|
export declare const patterns: Readonly<{
|
|
10
15
|
coreSlug: RegExp;
|
|
16
|
+
dependencyAlias: RegExp;
|
|
17
|
+
dependencyAliasFullMatch: "[a-z][A-Za-z0-9]*";
|
|
11
18
|
memberName: RegExp;
|
|
19
|
+
memberNameFullMatch: "[A-Za-z][A-Za-z0-9_]*";
|
|
12
20
|
origin: RegExp;
|
|
21
|
+
originFullMatch: "([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?";
|
|
13
22
|
propertyKey: RegExp;
|
|
14
|
-
propertyKeyFullMatch: "([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?:
|
|
23
|
+
propertyKeyFullMatch: "([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?:class\\.[A-Za-z][A-Za-z0-9_]*\\.property\\.[A-Za-z][A-Za-z0-9_]*";
|
|
15
24
|
revision: RegExp;
|
|
25
|
+
revisionFullMatch: "sha256:[0-9a-f]{64}";
|
|
16
26
|
}>;
|
|
17
27
|
export declare function assertMemberName(name: string): void;
|
|
18
|
-
//# sourceMappingURL=patterns.d.ts.map
|
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
export const DOMAIN_ORIGIN_PATTERN = /^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/u;
|
|
2
2
|
export const MEMBER_NAME_PATTERN = /^[A-Za-z][A-Za-z0-9_]*$/u;
|
|
3
|
+
export const DEPENDENCY_ALIAS_PATTERN = /^[a-z][A-Za-z0-9]*$/u;
|
|
3
4
|
export const CORE_SLUG_PATTERN = /^[a-z][a-z0-9-]{0,99}$/u;
|
|
4
5
|
export const DOMAIN_REVISION_PATTERN = /^sha256:[0-9a-f]{64}$/u;
|
|
5
|
-
export const
|
|
6
|
+
export const DOMAIN_REVISION_FULL_MATCH = 'sha256:[0-9a-f]{64}';
|
|
7
|
+
export const DOMAIN_ORIGIN_FULL_MATCH = '([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?';
|
|
8
|
+
export const MEMBER_NAME_FULL_MATCH = '[A-Za-z][A-Za-z0-9_]*';
|
|
9
|
+
export const DEPENDENCY_ALIAS_FULL_MATCH = '[a-z][A-Za-z0-9]*';
|
|
10
|
+
export const PROPERTY_KEY_FULL_MATCH = '([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?:class\\.[A-Za-z][A-Za-z0-9_]*\\.property\\.[A-Za-z][A-Za-z0-9_]*';
|
|
6
11
|
export const PROPERTY_KEY_PATTERN = new RegExp(`^(?:${PROPERTY_KEY_FULL_MATCH})$`, 'u');
|
|
7
12
|
export const patterns = Object.freeze({
|
|
8
13
|
coreSlug: CORE_SLUG_PATTERN,
|
|
14
|
+
dependencyAlias: DEPENDENCY_ALIAS_PATTERN,
|
|
15
|
+
dependencyAliasFullMatch: DEPENDENCY_ALIAS_FULL_MATCH,
|
|
9
16
|
memberName: MEMBER_NAME_PATTERN,
|
|
17
|
+
memberNameFullMatch: MEMBER_NAME_FULL_MATCH,
|
|
10
18
|
origin: DOMAIN_ORIGIN_PATTERN,
|
|
19
|
+
originFullMatch: DOMAIN_ORIGIN_FULL_MATCH,
|
|
11
20
|
propertyKey: PROPERTY_KEY_PATTERN,
|
|
12
21
|
propertyKeyFullMatch: PROPERTY_KEY_FULL_MATCH,
|
|
13
22
|
revision: DOMAIN_REVISION_PATTERN,
|
|
23
|
+
revisionFullMatch: DOMAIN_REVISION_FULL_MATCH,
|
|
14
24
|
});
|
|
15
25
|
export function assertMemberName(name) {
|
|
16
26
|
if (!MEMBER_NAME_PATTERN.test(name)) {
|
|
17
27
|
throw new TypeError(`Invalid member name: ${JSON.stringify(name)}.`);
|
|
18
28
|
}
|
|
19
29
|
}
|
|
20
|
-
//# sourceMappingURL=patterns.js.map
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { Key, type
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
type SchemaDefinitionRef<Name extends string = string> = SchemaRef<'class', Name> | SchemaRef<'interface', Name>;
|
|
7
|
-
export declare function PropertyKey<Origin extends Key.Origin = Key.Origin, Owner extends Ref.Class | Ref.Interface = Ref.Class | Ref.Interface, Name extends string = string>(input: string): PropertyKey<Origin, Owner, Name>;
|
|
8
|
-
/** Construction and admission operations for canonical PropertyKeys. */
|
|
1
|
+
import { type ClassRef } from './definition-ref.js';
|
|
2
|
+
import { Key, type PropertyKey as CanonicalPropertyKey } from './key.js';
|
|
3
|
+
export type PropertyKey<Origin extends Key.Origin = Key.Origin, Owner extends string = string, Name extends string = string> = CanonicalPropertyKey<Origin, Owner, Name>;
|
|
4
|
+
export declare function PropertyKey<Origin extends Key.Origin = Key.Origin, Owner extends string = string, Name extends string = string>(input: string): PropertyKey<Origin, Owner, Name>;
|
|
5
|
+
/** Construction and admission operations for canonical Class-owned Property keys. */
|
|
9
6
|
export declare namespace PropertyKey {
|
|
10
|
-
function of<const
|
|
11
|
-
origin: infer Origin extends Key.Origin,
|
|
12
|
-
owner: infer Owner extends Ref.Class | Ref.Interface,
|
|
13
|
-
name: infer Name extends string
|
|
14
|
-
] ? PropertyKey<Origin, Owner, Name> : never;
|
|
7
|
+
function of<const Owner extends ClassRef, const Name extends string>(owner: Owner, name: Name): PropertyKey<Owner['origin'], Owner['name'], Name>;
|
|
15
8
|
function is(input: unknown): input is CanonicalPropertyKey;
|
|
9
|
+
function address(input: PropertyKey): {
|
|
10
|
+
readonly owner: ClassRef;
|
|
11
|
+
readonly name: string;
|
|
12
|
+
};
|
|
16
13
|
}
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=property-key.d.ts.map
|
|
@@ -1,30 +1,39 @@
|
|
|
1
|
+
import { acceptDefinitionRef } from './definition-ref.js';
|
|
1
2
|
import { Key } from './key.js';
|
|
2
|
-
import {
|
|
3
|
+
import { MEMBER_NAME_PATTERN, PROPERTY_KEY_PATTERN } from './patterns.js';
|
|
3
4
|
export function PropertyKey(input) {
|
|
4
5
|
if (!PropertyKey.is(input)) {
|
|
5
6
|
throw new TypeError(`Invalid canonical PropertyKey: ${JSON.stringify(input)}.`);
|
|
6
7
|
}
|
|
7
8
|
return input;
|
|
8
9
|
}
|
|
9
|
-
/** Construction and admission operations for canonical
|
|
10
|
+
/** Construction and admission operations for canonical Class-owned Property keys. */
|
|
10
11
|
(function (PropertyKey) {
|
|
11
|
-
function of(
|
|
12
|
-
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
result = Key.of(origin, Ref.property(owner, name));
|
|
12
|
+
function of(owner, name) {
|
|
13
|
+
const admitted = acceptDefinitionRef(owner);
|
|
14
|
+
if (admitted.kind !== 'class' || !MEMBER_NAME_PATTERN.test(name)) {
|
|
15
|
+
throw new TypeError(`Invalid PropertyKey coordinate: ${JSON.stringify({ owner, name })}.`);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
const [schemaOwner, name] = args;
|
|
19
|
-
const owner = Ref.fromSchema(schemaOwner);
|
|
20
|
-
result = Key.of(schemaOwner.origin, Ref.property(owner, name));
|
|
21
|
-
}
|
|
22
|
-
return result;
|
|
17
|
+
return Key(`${admitted.origin}:class.${admitted.name}.property.${name}`);
|
|
23
18
|
}
|
|
24
19
|
PropertyKey.of = of;
|
|
25
20
|
function is(input) {
|
|
26
|
-
return Key.is(input) &&
|
|
21
|
+
return typeof input === 'string' && Key.is(input) && PROPERTY_KEY_PATTERN.test(input);
|
|
27
22
|
}
|
|
28
23
|
PropertyKey.is = is;
|
|
24
|
+
function address(input) {
|
|
25
|
+
const admitted = PropertyKey(input);
|
|
26
|
+
const separator = admitted.indexOf(':');
|
|
27
|
+
const coordinate = admitted.slice(separator + ':class.'.length);
|
|
28
|
+
const member = coordinate.indexOf('.property.');
|
|
29
|
+
return Object.freeze({
|
|
30
|
+
owner: acceptDefinitionRef({
|
|
31
|
+
origin: admitted.slice(0, separator),
|
|
32
|
+
kind: 'class',
|
|
33
|
+
name: coordinate.slice(0, member),
|
|
34
|
+
}),
|
|
35
|
+
name: coordinate.slice(member + '.property.'.length),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
PropertyKey.address = address;
|
|
29
39
|
})(PropertyKey || (PropertyKey = {}));
|
|
30
|
-
//# sourceMappingURL=property-key.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const DOMAIN_REVISION_BRAND: unique symbol;
|
|
2
|
+
/** Content-addressed identity of one exact admitted Domain source. */
|
|
3
|
+
export type Revision = `sha256:${string}` & {
|
|
4
|
+
readonly [DOMAIN_REVISION_BRAND]: true;
|
|
5
|
+
};
|
|
6
|
+
/** Content-address canonical Domain bytes with the one V1 revision algorithm. */
|
|
7
|
+
export declare function digestRevisionBytes(bytes: Uint8Array): Revision;
|
|
8
|
+
export {};
|