@astrale-os/kernel-core 0.4.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/dist/auth/access.d.ts +48 -0
- package/dist/auth/access.d.ts.map +1 -0
- package/dist/auth/access.js +2 -0
- package/dist/auth/access.js.map +1 -0
- package/dist/auth/attestation/index.d.ts +2 -0
- package/dist/auth/attestation/index.d.ts.map +1 -0
- package/dist/auth/attestation/index.js +2 -0
- package/dist/auth/attestation/index.js.map +1 -0
- package/dist/auth/attestation/types.d.ts +5 -0
- package/dist/auth/attestation/types.d.ts.map +1 -0
- package/dist/auth/attestation/types.js +2 -0
- package/dist/auth/attestation/types.js.map +1 -0
- package/dist/auth/audience/errors.d.ts +8 -0
- package/dist/auth/audience/errors.d.ts.map +1 -0
- package/dist/auth/audience/errors.js +15 -0
- package/dist/auth/audience/errors.js.map +1 -0
- package/dist/auth/audience/index.d.ts +3 -0
- package/dist/auth/audience/index.d.ts.map +1 -0
- package/dist/auth/audience/index.js +3 -0
- package/dist/auth/audience/index.js.map +1 -0
- package/dist/auth/audience/verify-audience.d.ts +4 -0
- package/dist/auth/audience/verify-audience.d.ts.map +1 -0
- package/dist/auth/audience/verify-audience.js +18 -0
- package/dist/auth/audience/verify-audience.js.map +1 -0
- package/dist/auth/claims/errors.d.ts +22 -0
- package/dist/auth/claims/errors.d.ts.map +1 -0
- package/dist/auth/claims/errors.js +33 -0
- package/dist/auth/claims/errors.js.map +1 -0
- package/dist/auth/claims/index.d.ts +4 -0
- package/dist/auth/claims/index.d.ts.map +1 -0
- package/dist/auth/claims/index.js +4 -0
- package/dist/auth/claims/index.js.map +1 -0
- package/dist/auth/claims/required-claims.d.ts +16 -0
- package/dist/auth/claims/required-claims.d.ts.map +1 -0
- package/dist/auth/claims/required-claims.js +41 -0
- package/dist/auth/claims/required-claims.js.map +1 -0
- package/dist/auth/claims/types.d.ts +33 -0
- package/dist/auth/claims/types.d.ts.map +1 -0
- package/dist/auth/claims/types.js +17 -0
- package/dist/auth/claims/types.js.map +1 -0
- package/dist/auth/context.d.ts +23 -0
- package/dist/auth/context.d.ts.map +1 -0
- package/dist/auth/context.js +2 -0
- package/dist/auth/context.js.map +1 -0
- package/dist/auth/credentials/decode.d.ts +4 -0
- package/dist/auth/credentials/decode.d.ts.map +1 -0
- package/dist/auth/credentials/decode.js +7 -0
- package/dist/auth/credentials/decode.js.map +1 -0
- package/dist/auth/credentials/envelope.d.ts +15 -0
- package/dist/auth/credentials/envelope.d.ts.map +1 -0
- package/dist/auth/credentials/envelope.js +52 -0
- package/dist/auth/credentials/envelope.js.map +1 -0
- package/dist/auth/credentials/errors.d.ts +26 -0
- package/dist/auth/credentials/errors.d.ts.map +1 -0
- package/dist/auth/credentials/errors.js +37 -0
- package/dist/auth/credentials/errors.js.map +1 -0
- package/dist/auth/credentials/index.d.ts +6 -0
- package/dist/auth/credentials/index.d.ts.map +1 -0
- package/dist/auth/credentials/index.js +6 -0
- package/dist/auth/credentials/index.js.map +1 -0
- package/dist/auth/credentials/types.d.ts +19 -0
- package/dist/auth/credentials/types.d.ts.map +1 -0
- package/dist/auth/credentials/types.js +2 -0
- package/dist/auth/credentials/types.js.map +1 -0
- package/dist/auth/credentials/verify.d.ts +16 -0
- package/dist/auth/credentials/verify.d.ts.map +1 -0
- package/dist/auth/credentials/verify.js +12 -0
- package/dist/auth/credentials/verify.js.map +1 -0
- package/dist/auth/delegation/index.d.ts +2 -0
- package/dist/auth/delegation/index.d.ts.map +1 -0
- package/dist/auth/delegation/index.js +2 -0
- package/dist/auth/delegation/index.js.map +1 -0
- package/dist/auth/delegation/types.d.ts +6 -0
- package/dist/auth/delegation/types.d.ts.map +1 -0
- package/dist/auth/delegation/types.js +2 -0
- package/dist/auth/delegation/types.js.map +1 -0
- package/dist/auth/expression/buffer.d.ts +28 -0
- package/dist/auth/expression/buffer.d.ts.map +1 -0
- package/dist/auth/expression/buffer.js +101 -0
- package/dist/auth/expression/buffer.js.map +1 -0
- package/dist/auth/expression/builder.d.ts +177 -0
- package/dist/auth/expression/builder.d.ts.map +1 -0
- package/dist/auth/expression/builder.js +287 -0
- package/dist/auth/expression/builder.js.map +1 -0
- package/dist/auth/expression/codec.d.ts +28 -0
- package/dist/auth/expression/codec.d.ts.map +1 -0
- package/dist/auth/expression/codec.js +123 -0
- package/dist/auth/expression/codec.js.map +1 -0
- package/dist/auth/expression/compact.d.ts +24 -0
- package/dist/auth/expression/compact.d.ts.map +1 -0
- package/dist/auth/expression/compact.js +143 -0
- package/dist/auth/expression/compact.js.map +1 -0
- package/dist/auth/expression/dedup.d.ts +122 -0
- package/dist/auth/expression/dedup.d.ts.map +1 -0
- package/dist/auth/expression/dedup.js +290 -0
- package/dist/auth/expression/dedup.js.map +1 -0
- package/dist/auth/expression/encoding.d.ts +31 -0
- package/dist/auth/expression/encoding.d.ts.map +1 -0
- package/dist/auth/expression/encoding.js +345 -0
- package/dist/auth/expression/encoding.js.map +1 -0
- package/dist/auth/expression/index.d.ts +11 -0
- package/dist/auth/expression/index.d.ts.map +1 -0
- package/dist/auth/expression/index.js +11 -0
- package/dist/auth/expression/index.js.map +1 -0
- package/dist/auth/expression/prune.d.ts +41 -0
- package/dist/auth/expression/prune.d.ts.map +1 -0
- package/dist/auth/expression/prune.js +144 -0
- package/dist/auth/expression/prune.js.map +1 -0
- package/dist/auth/expression/scope.d.ts +81 -0
- package/dist/auth/expression/scope.d.ts.map +1 -0
- package/dist/auth/expression/scope.js +192 -0
- package/dist/auth/expression/scope.js.map +1 -0
- package/dist/auth/expression/types.d.ts +122 -0
- package/dist/auth/expression/types.d.ts.map +1 -0
- package/dist/auth/expression/types.js +2 -0
- package/dist/auth/expression/types.js.map +1 -0
- package/dist/auth/expression/validation.d.ts +35 -0
- package/dist/auth/expression/validation.d.ts.map +1 -0
- package/dist/auth/expression/validation.js +108 -0
- package/dist/auth/expression/validation.js.map +1 -0
- package/dist/auth/expression/zod.d.ts +19 -0
- package/dist/auth/expression/zod.d.ts.map +1 -0
- package/dist/auth/expression/zod.js +58 -0
- package/dist/auth/expression/zod.js.map +1 -0
- package/dist/auth/frozen/errors.d.ts +5 -0
- package/dist/auth/frozen/errors.d.ts.map +1 -0
- package/dist/auth/frozen/errors.js +8 -0
- package/dist/auth/frozen/errors.js.map +1 -0
- package/dist/auth/frozen/index.d.ts +3 -0
- package/dist/auth/frozen/index.d.ts.map +1 -0
- package/dist/auth/frozen/index.js +3 -0
- package/dist/auth/frozen/index.js.map +1 -0
- package/dist/auth/frozen/verify-frozen.d.ts +9 -0
- package/dist/auth/frozen/verify-frozen.d.ts.map +1 -0
- package/dist/auth/frozen/verify-frozen.js +13 -0
- package/dist/auth/frozen/verify-frozen.js.map +1 -0
- package/dist/auth/grants/constants.d.ts +4 -0
- package/dist/auth/grants/constants.d.ts.map +1 -0
- package/dist/auth/grants/constants.js +4 -0
- package/dist/auth/grants/constants.js.map +1 -0
- package/dist/auth/grants/errors.d.ts +57 -0
- package/dist/auth/grants/errors.d.ts.map +1 -0
- package/dist/auth/grants/errors.js +106 -0
- package/dist/auth/grants/errors.js.map +1 -0
- package/dist/auth/grants/grant-decoder.d.ts +40 -0
- package/dist/auth/grants/grant-decoder.d.ts.map +1 -0
- package/dist/auth/grants/grant-decoder.js +141 -0
- package/dist/auth/grants/grant-decoder.js.map +1 -0
- package/dist/auth/grants/grant-encoding.d.ts +47 -0
- package/dist/auth/grants/grant-encoding.d.ts.map +1 -0
- package/dist/auth/grants/grant-encoding.js +85 -0
- package/dist/auth/grants/grant-encoding.js.map +1 -0
- package/dist/auth/grants/index.d.ts +6 -0
- package/dist/auth/grants/index.d.ts.map +1 -0
- package/dist/auth/grants/index.js +6 -0
- package/dist/auth/grants/index.js.map +1 -0
- package/dist/auth/grants/types.d.ts +27 -0
- package/dist/auth/grants/types.d.ts.map +1 -0
- package/dist/auth/grants/types.js +5 -0
- package/dist/auth/grants/types.js.map +1 -0
- package/dist/auth/identity/index.d.ts +3 -0
- package/dist/auth/identity/index.d.ts.map +1 -0
- package/dist/auth/identity/index.js +3 -0
- package/dist/auth/identity/index.js.map +1 -0
- package/dist/auth/identity/types.d.ts +51 -0
- package/dist/auth/identity/types.d.ts.map +1 -0
- package/dist/auth/identity/types.js +23 -0
- package/dist/auth/identity/types.js.map +1 -0
- package/dist/auth/identity/verify.d.ts +3 -0
- package/dist/auth/identity/verify.d.ts.map +1 -0
- package/dist/auth/identity/verify.js +10 -0
- package/dist/auth/identity/verify.js.map +1 -0
- package/dist/auth/index.d.ts +15 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +15 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/issuers/ids.d.ts +15 -0
- package/dist/auth/issuers/ids.d.ts.map +1 -0
- package/dist/auth/issuers/ids.js +98 -0
- package/dist/auth/issuers/ids.js.map +1 -0
- package/dist/auth/issuers/index.d.ts +2 -0
- package/dist/auth/issuers/index.d.ts.map +1 -0
- package/dist/auth/issuers/index.js +2 -0
- package/dist/auth/issuers/index.js.map +1 -0
- package/dist/auth/jwks/index.d.ts +3 -0
- package/dist/auth/jwks/index.d.ts.map +1 -0
- package/dist/auth/jwks/index.js +3 -0
- package/dist/auth/jwks/index.js.map +1 -0
- package/dist/auth/jwks/thumbprint.d.ts +13 -0
- package/dist/auth/jwks/thumbprint.d.ts.map +1 -0
- package/dist/auth/jwks/thumbprint.js +15 -0
- package/dist/auth/jwks/thumbprint.js.map +1 -0
- package/dist/auth/jwks/types.d.ts +15 -0
- package/dist/auth/jwks/types.d.ts.map +1 -0
- package/dist/auth/jwks/types.js +8 -0
- package/dist/auth/jwks/types.js.map +1 -0
- package/dist/auth/methods/classifier.d.ts +9 -0
- package/dist/auth/methods/classifier.d.ts.map +1 -0
- package/dist/auth/methods/classifier.js +10 -0
- package/dist/auth/methods/classifier.js.map +1 -0
- package/dist/auth/methods/errors.d.ts +34 -0
- package/dist/auth/methods/errors.d.ts.map +1 -0
- package/dist/auth/methods/errors.js +67 -0
- package/dist/auth/methods/errors.js.map +1 -0
- package/dist/auth/methods/factory.d.ts +3 -0
- package/dist/auth/methods/factory.d.ts.map +1 -0
- package/dist/auth/methods/factory.js +11 -0
- package/dist/auth/methods/factory.js.map +1 -0
- package/dist/auth/methods/index.d.ts +7 -0
- package/dist/auth/methods/index.d.ts.map +1 -0
- package/dist/auth/methods/index.js +7 -0
- package/dist/auth/methods/index.js.map +1 -0
- package/dist/auth/methods/jwt/index.d.ts +2 -0
- package/dist/auth/methods/jwt/index.d.ts.map +1 -0
- package/dist/auth/methods/jwt/index.js +2 -0
- package/dist/auth/methods/jwt/index.js.map +1 -0
- package/dist/auth/methods/jwt/jwt.method.d.ts +14 -0
- package/dist/auth/methods/jwt/jwt.method.d.ts.map +1 -0
- package/dist/auth/methods/jwt/jwt.method.js +195 -0
- package/dist/auth/methods/jwt/jwt.method.js.map +1 -0
- package/dist/auth/methods/registry.d.ts +21 -0
- package/dist/auth/methods/registry.d.ts.map +1 -0
- package/dist/auth/methods/registry.js +18 -0
- package/dist/auth/methods/registry.js.map +1 -0
- package/dist/auth/methods/resolver.d.ts +9 -0
- package/dist/auth/methods/resolver.d.ts.map +1 -0
- package/dist/auth/methods/resolver.js +21 -0
- package/dist/auth/methods/resolver.js.map +1 -0
- package/dist/auth/permissions/describe.d.ts +9 -0
- package/dist/auth/permissions/describe.d.ts.map +1 -0
- package/dist/auth/permissions/describe.js +26 -0
- package/dist/auth/permissions/describe.js.map +1 -0
- package/dist/auth/permissions/index.d.ts +6 -0
- package/dist/auth/permissions/index.d.ts.map +1 -0
- package/dist/auth/permissions/index.js +6 -0
- package/dist/auth/permissions/index.js.map +1 -0
- package/dist/auth/permissions/operations.d.ts +19 -0
- package/dist/auth/permissions/operations.d.ts.map +1 -0
- package/dist/auth/permissions/operations.js +48 -0
- package/dist/auth/permissions/operations.js.map +1 -0
- package/dist/auth/permissions/permission.d.ts +30 -0
- package/dist/auth/permissions/permission.d.ts.map +1 -0
- package/dist/auth/permissions/permission.js +17 -0
- package/dist/auth/permissions/permission.js.map +1 -0
- package/dist/auth/permissions/semantic.d.ts +7 -0
- package/dist/auth/permissions/semantic.d.ts.map +1 -0
- package/dist/auth/permissions/semantic.js +6 -0
- package/dist/auth/permissions/semantic.js.map +1 -0
- package/dist/auth/permissions/validation.d.ts +6 -0
- package/dist/auth/permissions/validation.d.ts.map +1 -0
- package/dist/auth/permissions/validation.js +18 -0
- package/dist/auth/permissions/validation.js.map +1 -0
- package/dist/auth/policy/identity.d.ts +59 -0
- package/dist/auth/policy/identity.d.ts.map +1 -0
- package/dist/auth/policy/identity.js +9 -0
- package/dist/auth/policy/identity.js.map +1 -0
- package/dist/auth/policy/index.d.ts +6 -0
- package/dist/auth/policy/index.d.ts.map +1 -0
- package/dist/auth/policy/index.js +6 -0
- package/dist/auth/policy/index.js.map +1 -0
- package/dist/auth/policy/provision.d.ts +29 -0
- package/dist/auth/policy/provision.d.ts.map +1 -0
- package/dist/auth/policy/provision.js +12 -0
- package/dist/auth/policy/provision.js.map +1 -0
- package/dist/auth/policy/provisioning.d.ts +210 -0
- package/dist/auth/policy/provisioning.d.ts.map +1 -0
- package/dist/auth/policy/provisioning.js +20 -0
- package/dist/auth/policy/provisioning.js.map +1 -0
- package/dist/auth/policy/trust.types.d.ts +77 -0
- package/dist/auth/policy/trust.types.d.ts.map +1 -0
- package/dist/auth/policy/trust.types.js +16 -0
- package/dist/auth/policy/trust.types.js.map +1 -0
- package/dist/auth/policy/types.d.ts +32 -0
- package/dist/auth/policy/types.d.ts.map +1 -0
- package/dist/auth/policy/types.js +15 -0
- package/dist/auth/policy/types.js.map +1 -0
- package/dist/dns-label.d.ts +26 -0
- package/dist/dns-label.d.ts.map +1 -0
- package/dist/dns-label.js +36 -0
- package/dist/dns-label.js.map +1 -0
- package/dist/domain/accessors/bind.d.ts +21 -0
- package/dist/domain/accessors/bind.d.ts.map +1 -0
- package/dist/domain/accessors/bind.js +265 -0
- package/dist/domain/accessors/bind.js.map +1 -0
- package/dist/domain/accessors/errors.d.ts +26 -0
- package/dist/domain/accessors/errors.d.ts.map +1 -0
- package/dist/domain/accessors/errors.js +37 -0
- package/dist/domain/accessors/errors.js.map +1 -0
- package/dist/domain/accessors/flatten.d.ts +27 -0
- package/dist/domain/accessors/flatten.d.ts.map +1 -0
- package/dist/domain/accessors/flatten.js +67 -0
- package/dist/domain/accessors/flatten.js.map +1 -0
- package/dist/domain/accessors/group.d.ts +51 -0
- package/dist/domain/accessors/group.d.ts.map +1 -0
- package/dist/domain/accessors/group.js +111 -0
- package/dist/domain/accessors/group.js.map +1 -0
- package/dist/domain/accessors/index.d.ts +10 -0
- package/dist/domain/accessors/index.d.ts.map +1 -0
- package/dist/domain/accessors/index.js +9 -0
- package/dist/domain/accessors/index.js.map +1 -0
- package/dist/domain/accessors/interface-counts.d.ts +18 -0
- package/dist/domain/accessors/interface-counts.d.ts.map +1 -0
- package/dist/domain/accessors/interface-counts.js +33 -0
- package/dist/domain/accessors/interface-counts.js.map +1 -0
- package/dist/domain/accessors/methods.d.ts +38 -0
- package/dist/domain/accessors/methods.d.ts.map +1 -0
- package/dist/domain/accessors/methods.js +33 -0
- package/dist/domain/accessors/methods.js.map +1 -0
- package/dist/domain/accessors/node.d.ts +26 -0
- package/dist/domain/accessors/node.d.ts.map +1 -0
- package/dist/domain/accessors/node.js +111 -0
- package/dist/domain/accessors/node.js.map +1 -0
- package/dist/domain/accessors/shortcut.d.ts +57 -0
- package/dist/domain/accessors/shortcut.d.ts.map +1 -0
- package/dist/domain/accessors/shortcut.js +87 -0
- package/dist/domain/accessors/shortcut.js.map +1 -0
- package/dist/domain/accessors/types.d.ts +319 -0
- package/dist/domain/accessors/types.d.ts.map +1 -0
- package/dist/domain/accessors/types.js +2 -0
- package/dist/domain/accessors/types.js.map +1 -0
- package/dist/domain/addressing/edges.d.ts +9 -0
- package/dist/domain/addressing/edges.d.ts.map +1 -0
- package/dist/domain/addressing/edges.js +13 -0
- package/dist/domain/addressing/edges.js.map +1 -0
- package/dist/domain/addressing/grammar/domain.d.ts +16 -0
- package/dist/domain/addressing/grammar/domain.d.ts.map +1 -0
- package/dist/domain/addressing/grammar/domain.js +92 -0
- package/dist/domain/addressing/grammar/domain.js.map +1 -0
- package/dist/domain/addressing/grammar/instance-method.d.ts +14 -0
- package/dist/domain/addressing/grammar/instance-method.d.ts.map +1 -0
- package/dist/domain/addressing/grammar/instance-method.js +101 -0
- package/dist/domain/addressing/grammar/instance-method.js.map +1 -0
- package/dist/domain/addressing/grammar/set.d.ts +23 -0
- package/dist/domain/addressing/grammar/set.d.ts.map +1 -0
- package/dist/domain/addressing/grammar/set.js +31 -0
- package/dist/domain/addressing/grammar/set.js.map +1 -0
- package/dist/domain/addressing/grammar/tokens.d.ts +30 -0
- package/dist/domain/addressing/grammar/tokens.d.ts.map +1 -0
- package/dist/domain/addressing/grammar/tokens.js +34 -0
- package/dist/domain/addressing/grammar/tokens.js.map +1 -0
- package/dist/domain/addressing/keys/build.d.ts +10 -0
- package/dist/domain/addressing/keys/build.d.ts.map +1 -0
- package/dist/domain/addressing/keys/build.js +15 -0
- package/dist/domain/addressing/keys/build.js.map +1 -0
- package/dist/domain/addressing/keys/index.d.ts +4 -0
- package/dist/domain/addressing/keys/index.d.ts.map +1 -0
- package/dist/domain/addressing/keys/index.js +3 -0
- package/dist/domain/addressing/keys/index.js.map +1 -0
- package/dist/domain/addressing/keys/key.d.ts +70 -0
- package/dist/domain/addressing/keys/key.d.ts.map +1 -0
- package/dist/domain/addressing/keys/key.js +118 -0
- package/dist/domain/addressing/keys/key.js.map +1 -0
- package/dist/domain/addressing/keys/types.d.ts +28 -0
- package/dist/domain/addressing/keys/types.d.ts.map +1 -0
- package/dist/domain/addressing/keys/types.js +2 -0
- package/dist/domain/addressing/keys/types.js.map +1 -0
- package/dist/domain/addressing/layout/build.d.ts +20 -0
- package/dist/domain/addressing/layout/build.d.ts.map +1 -0
- package/dist/domain/addressing/layout/build.js +33 -0
- package/dist/domain/addressing/layout/build.js.map +1 -0
- package/dist/domain/addressing/layout/default.d.ts +67 -0
- package/dist/domain/addressing/layout/default.d.ts.map +1 -0
- package/dist/domain/addressing/layout/default.js +108 -0
- package/dist/domain/addressing/layout/default.js.map +1 -0
- package/dist/domain/addressing/layout/errors.d.ts +7 -0
- package/dist/domain/addressing/layout/errors.d.ts.map +1 -0
- package/dist/domain/addressing/layout/errors.js +10 -0
- package/dist/domain/addressing/layout/errors.js.map +1 -0
- package/dist/domain/addressing/layout/index.d.ts +8 -0
- package/dist/domain/addressing/layout/index.d.ts.map +1 -0
- package/dist/domain/addressing/layout/index.js +6 -0
- package/dist/domain/addressing/layout/index.js.map +1 -0
- package/dist/domain/addressing/layout/merge.d.ts +13 -0
- package/dist/domain/addressing/layout/merge.d.ts.map +1 -0
- package/dist/domain/addressing/layout/merge.js +19 -0
- package/dist/domain/addressing/layout/merge.js.map +1 -0
- package/dist/domain/addressing/layout/types.d.ts +15 -0
- package/dist/domain/addressing/layout/types.d.ts.map +1 -0
- package/dist/domain/addressing/layout/types.js +2 -0
- package/dist/domain/addressing/layout/types.js.map +1 -0
- package/dist/domain/addressing/layout/validate.d.ts +15 -0
- package/dist/domain/addressing/layout/validate.d.ts.map +1 -0
- package/dist/domain/addressing/layout/validate.js +31 -0
- package/dist/domain/addressing/layout/validate.js.map +1 -0
- package/dist/domain/addressing/namespace.d.ts +28 -0
- package/dist/domain/addressing/namespace.d.ts.map +1 -0
- package/dist/domain/addressing/namespace.js +30 -0
- package/dist/domain/addressing/namespace.js.map +1 -0
- package/dist/domain/addressing/paths/class.d.ts +47 -0
- package/dist/domain/addressing/paths/class.d.ts.map +1 -0
- package/dist/domain/addressing/paths/class.js +141 -0
- package/dist/domain/addressing/paths/class.js.map +1 -0
- package/dist/domain/addressing/paths/constants.d.ts +5 -0
- package/dist/domain/addressing/paths/constants.d.ts.map +1 -0
- package/dist/domain/addressing/paths/constants.js +10 -0
- package/dist/domain/addressing/paths/constants.js.map +1 -0
- package/dist/domain/addressing/paths/domain.d.ts +61 -0
- package/dist/domain/addressing/paths/domain.d.ts.map +1 -0
- package/dist/domain/addressing/paths/domain.js +185 -0
- package/dist/domain/addressing/paths/domain.js.map +1 -0
- package/dist/domain/addressing/paths/errors.d.ts +7 -0
- package/dist/domain/addressing/paths/errors.d.ts.map +1 -0
- package/dist/domain/addressing/paths/errors.js +12 -0
- package/dist/domain/addressing/paths/errors.js.map +1 -0
- package/dist/domain/addressing/paths/index.d.ts +12 -0
- package/dist/domain/addressing/paths/index.d.ts.map +1 -0
- package/dist/domain/addressing/paths/index.js +14 -0
- package/dist/domain/addressing/paths/index.js.map +1 -0
- package/dist/domain/addressing/paths/instance-method.d.ts +31 -0
- package/dist/domain/addressing/paths/instance-method.d.ts.map +1 -0
- package/dist/domain/addressing/paths/instance-method.js +103 -0
- package/dist/domain/addressing/paths/instance-method.js.map +1 -0
- package/dist/domain/addressing/paths/interface.d.ts +43 -0
- package/dist/domain/addressing/paths/interface.d.ts.map +1 -0
- package/dist/domain/addressing/paths/interface.js +138 -0
- package/dist/domain/addressing/paths/interface.js.map +1 -0
- package/dist/domain/addressing/paths/method.d.ts +50 -0
- package/dist/domain/addressing/paths/method.d.ts.map +1 -0
- package/dist/domain/addressing/paths/method.js +172 -0
- package/dist/domain/addressing/paths/method.js.map +1 -0
- package/dist/domain/addressing/paths/zod.d.ts +18 -0
- package/dist/domain/addressing/paths/zod.d.ts.map +1 -0
- package/dist/domain/addressing/paths/zod.js +19 -0
- package/dist/domain/addressing/paths/zod.js.map +1 -0
- package/dist/domain/addressing/refs/build.d.ts +33 -0
- package/dist/domain/addressing/refs/build.d.ts.map +1 -0
- package/dist/domain/addressing/refs/build.js +155 -0
- package/dist/domain/addressing/refs/build.js.map +1 -0
- package/dist/domain/addressing/refs/errors.d.ts +12 -0
- package/dist/domain/addressing/refs/errors.d.ts.map +1 -0
- package/dist/domain/addressing/refs/errors.js +21 -0
- package/dist/domain/addressing/refs/errors.js.map +1 -0
- package/dist/domain/addressing/refs/index.d.ts +7 -0
- package/dist/domain/addressing/refs/index.d.ts.map +1 -0
- package/dist/domain/addressing/refs/index.js +6 -0
- package/dist/domain/addressing/refs/index.js.map +1 -0
- package/dist/domain/addressing/refs/iterate.d.ts +17 -0
- package/dist/domain/addressing/refs/iterate.d.ts.map +1 -0
- package/dist/domain/addressing/refs/iterate.js +42 -0
- package/dist/domain/addressing/refs/iterate.js.map +1 -0
- package/dist/domain/addressing/refs/project.d.ts +26 -0
- package/dist/domain/addressing/refs/project.d.ts.map +1 -0
- package/dist/domain/addressing/refs/project.js +39 -0
- package/dist/domain/addressing/refs/project.js.map +1 -0
- package/dist/domain/addressing/refs/ref.d.ts +80 -0
- package/dist/domain/addressing/refs/ref.d.ts.map +1 -0
- package/dist/domain/addressing/refs/ref.js +146 -0
- package/dist/domain/addressing/refs/ref.js.map +1 -0
- package/dist/domain/addressing/refs/types.d.ts +167 -0
- package/dist/domain/addressing/refs/types.d.ts.map +1 -0
- package/dist/domain/addressing/refs/types.js +27 -0
- package/dist/domain/addressing/refs/types.js.map +1 -0
- package/dist/domain/addressing/segments/installed-in.d.ts +15 -0
- package/dist/domain/addressing/segments/installed-in.d.ts.map +1 -0
- package/dist/domain/addressing/segments/installed-in.js +19 -0
- package/dist/domain/addressing/segments/installed-in.js.map +1 -0
- package/dist/domain/addressing/segments/method-of.d.ts +10 -0
- package/dist/domain/addressing/segments/method-of.d.ts.map +1 -0
- package/dist/domain/addressing/segments/method-of.js +14 -0
- package/dist/domain/addressing/segments/method-of.js.map +1 -0
- package/dist/domain/addressing/segments/of-domain.d.ts +15 -0
- package/dist/domain/addressing/segments/of-domain.d.ts.map +1 -0
- package/dist/domain/addressing/segments/of-domain.js +19 -0
- package/dist/domain/addressing/segments/of-domain.js.map +1 -0
- package/dist/domain/compile/catalog/def-types.d.ts +28 -0
- package/dist/domain/compile/catalog/def-types.d.ts.map +1 -0
- package/dist/domain/compile/catalog/def-types.js +8 -0
- package/dist/domain/compile/catalog/def-types.js.map +1 -0
- package/dist/domain/compile/catalog/defs.d.ts +7 -0
- package/dist/domain/compile/catalog/defs.d.ts.map +1 -0
- package/dist/domain/compile/catalog/defs.js +8 -0
- package/dist/domain/compile/catalog/defs.js.map +1 -0
- package/dist/domain/compile/catalog/index.d.ts +4 -0
- package/dist/domain/compile/catalog/index.d.ts.map +1 -0
- package/dist/domain/compile/catalog/index.js +5 -0
- package/dist/domain/compile/catalog/index.js.map +1 -0
- package/dist/domain/compile/catalog/system-properties.d.ts +28 -0
- package/dist/domain/compile/catalog/system-properties.d.ts.map +1 -0
- package/dist/domain/compile/catalog/system-properties.js +71 -0
- package/dist/domain/compile/catalog/system-properties.js.map +1 -0
- package/dist/domain/compile/compile.d.ts +36 -0
- package/dist/domain/compile/compile.d.ts.map +1 -0
- package/dist/domain/compile/compile.js +91 -0
- package/dist/domain/compile/compile.js.map +1 -0
- package/dist/domain/compile/core/compile.d.ts +66 -0
- package/dist/domain/compile/core/compile.d.ts.map +1 -0
- package/dist/domain/compile/core/compile.js +139 -0
- package/dist/domain/compile/core/compile.js.map +1 -0
- package/dist/domain/compile/core/index.d.ts +3 -0
- package/dist/domain/compile/core/index.d.ts.map +1 -0
- package/dist/domain/compile/core/index.js +2 -0
- package/dist/domain/compile/core/index.js.map +1 -0
- package/dist/domain/compile/core/types.d.ts +15 -0
- package/dist/domain/compile/core/types.d.ts.map +1 -0
- package/dist/domain/compile/core/types.js +5 -0
- package/dist/domain/compile/core/types.js.map +1 -0
- package/dist/domain/compile/errors.d.ts +8 -0
- package/dist/domain/compile/errors.d.ts.map +1 -0
- package/dist/domain/compile/errors.js +12 -0
- package/dist/domain/compile/errors.js.map +1 -0
- package/dist/domain/compile/external-ids.d.ts +18 -0
- package/dist/domain/compile/external-ids.d.ts.map +1 -0
- package/dist/domain/compile/external-ids.js +23 -0
- package/dist/domain/compile/external-ids.js.map +1 -0
- package/dist/domain/compile/imports/index.d.ts +4 -0
- package/dist/domain/compile/imports/index.d.ts.map +1 -0
- package/dist/domain/compile/imports/index.js +3 -0
- package/dist/domain/compile/imports/index.js.map +1 -0
- package/dist/domain/compile/imports/resolve.d.ts +14 -0
- package/dist/domain/compile/imports/resolve.d.ts.map +1 -0
- package/dist/domain/compile/imports/resolve.js +47 -0
- package/dist/domain/compile/imports/resolve.js.map +1 -0
- package/dist/domain/compile/imports/scan.d.ts +21 -0
- package/dist/domain/compile/imports/scan.d.ts.map +1 -0
- package/dist/domain/compile/imports/scan.js +40 -0
- package/dist/domain/compile/imports/scan.js.map +1 -0
- package/dist/domain/compile/imports/types.d.ts +38 -0
- package/dist/domain/compile/imports/types.d.ts.map +1 -0
- package/dist/domain/compile/imports/types.js +2 -0
- package/dist/domain/compile/imports/types.js.map +1 -0
- package/dist/domain/compile/index.d.ts +9 -0
- package/dist/domain/compile/index.d.ts.map +1 -0
- package/dist/domain/compile/index.js +10 -0
- package/dist/domain/compile/index.js.map +1 -0
- package/dist/domain/compile/inheritance.d.ts +21 -0
- package/dist/domain/compile/inheritance.d.ts.map +1 -0
- package/dist/domain/compile/inheritance.js +52 -0
- package/dist/domain/compile/inheritance.js.map +1 -0
- package/dist/domain/compile/internals.d.ts +93 -0
- package/dist/domain/compile/internals.d.ts.map +1 -0
- package/dist/domain/compile/internals.js +78 -0
- package/dist/domain/compile/internals.js.map +1 -0
- package/dist/domain/compile/method/bind.d.ts +33 -0
- package/dist/domain/compile/method/bind.d.ts.map +1 -0
- package/dist/domain/compile/method/bind.js +182 -0
- package/dist/domain/compile/method/bind.js.map +1 -0
- package/dist/domain/compile/method/bound-method.d.ts +56 -0
- package/dist/domain/compile/method/bound-method.d.ts.map +1 -0
- package/dist/domain/compile/method/bound-method.js +2 -0
- package/dist/domain/compile/method/bound-method.js.map +1 -0
- package/dist/domain/compile/method/errors.d.ts +8 -0
- package/dist/domain/compile/method/errors.d.ts.map +1 -0
- package/dist/domain/compile/method/errors.js +12 -0
- package/dist/domain/compile/method/errors.js.map +1 -0
- package/dist/domain/compile/method/index.d.ts +12 -0
- package/dist/domain/compile/method/index.d.ts.map +1 -0
- package/dist/domain/compile/method/index.js +10 -0
- package/dist/domain/compile/method/index.js.map +1 -0
- package/dist/domain/compile/method/inheritance-keys.d.ts +24 -0
- package/dist/domain/compile/method/inheritance-keys.d.ts.map +1 -0
- package/dist/domain/compile/method/inheritance-keys.js +13 -0
- package/dist/domain/compile/method/inheritance-keys.js.map +1 -0
- package/dist/domain/compile/method/resolve.d.ts +93 -0
- package/dist/domain/compile/method/resolve.d.ts.map +1 -0
- package/dist/domain/compile/method/resolve.js +194 -0
- package/dist/domain/compile/method/resolve.js.map +1 -0
- package/dist/domain/compile/method/serialized.d.ts +130 -0
- package/dist/domain/compile/method/serialized.d.ts.map +1 -0
- package/dist/domain/compile/method/serialized.js +75 -0
- package/dist/domain/compile/method/serialized.js.map +1 -0
- package/dist/domain/compile/method/signature.d.ts +78 -0
- package/dist/domain/compile/method/signature.d.ts.map +1 -0
- package/dist/domain/compile/method/signature.js +8 -0
- package/dist/domain/compile/method/signature.js.map +1 -0
- package/dist/domain/compile/method/types.d.ts +101 -0
- package/dist/domain/compile/method/types.d.ts.map +1 -0
- package/dist/domain/compile/method/types.js +14 -0
- package/dist/domain/compile/method/types.js.map +1 -0
- package/dist/domain/compile/method/wire.d.ts +35 -0
- package/dist/domain/compile/method/wire.d.ts.map +1 -0
- package/dist/domain/compile/method/wire.js +50 -0
- package/dist/domain/compile/method/wire.js.map +1 -0
- package/dist/domain/compile/property/build.d.ts +20 -0
- package/dist/domain/compile/property/build.d.ts.map +1 -0
- package/dist/domain/compile/property/build.js +90 -0
- package/dist/domain/compile/property/build.js.map +1 -0
- package/dist/domain/compile/property/index.d.ts +3 -0
- package/dist/domain/compile/property/index.d.ts.map +1 -0
- package/dist/domain/compile/property/index.js +2 -0
- package/dist/domain/compile/property/index.js.map +1 -0
- package/dist/domain/compile/property/types.d.ts +84 -0
- package/dist/domain/compile/property/types.d.ts.map +1 -0
- package/dist/domain/compile/property/types.js +2 -0
- package/dist/domain/compile/property/types.js.map +1 -0
- package/dist/domain/compile/types.d.ts +56 -0
- package/dist/domain/compile/types.d.ts.map +1 -0
- package/dist/domain/compile/types.js +2 -0
- package/dist/domain/compile/types.js.map +1 -0
- package/dist/domain/compile/validation/index.d.ts +3 -0
- package/dist/domain/compile/validation/index.d.ts.map +1 -0
- package/dist/domain/compile/validation/index.js +2 -0
- package/dist/domain/compile/validation/index.js.map +1 -0
- package/dist/domain/compile/validation/validate.d.ts +26 -0
- package/dist/domain/compile/validation/validate.d.ts.map +1 -0
- package/dist/domain/compile/validation/validate.js +159 -0
- package/dist/domain/compile/validation/validate.js.map +1 -0
- package/dist/domain/deserialize/deserialize.d.ts +55 -0
- package/dist/domain/deserialize/deserialize.d.ts.map +1 -0
- package/dist/domain/deserialize/deserialize.js +863 -0
- package/dist/domain/deserialize/deserialize.js.map +1 -0
- package/dist/domain/deserialize/errors.d.ts +30 -0
- package/dist/domain/deserialize/errors.d.ts.map +1 -0
- package/dist/domain/deserialize/errors.js +10 -0
- package/dist/domain/deserialize/errors.js.map +1 -0
- package/dist/domain/deserialize/index.d.ts +22 -0
- package/dist/domain/deserialize/index.d.ts.map +1 -0
- package/dist/domain/deserialize/index.js +21 -0
- package/dist/domain/deserialize/index.js.map +1 -0
- package/dist/domain/errors.d.ts +11 -0
- package/dist/domain/errors.d.ts.map +1 -0
- package/dist/domain/errors.js +14 -0
- package/dist/domain/errors.js.map +1 -0
- package/dist/domain/identity/resolve-callables.d.ts +51 -0
- package/dist/domain/identity/resolve-callables.d.ts.map +1 -0
- package/dist/domain/identity/resolve-callables.js +75 -0
- package/dist/domain/identity/resolve-callables.js.map +1 -0
- package/dist/domain/index.d.ts +51 -0
- package/dist/domain/index.d.ts.map +1 -0
- package/dist/domain/index.js +37 -0
- package/dist/domain/index.js.map +1 -0
- package/dist/domain/install-bundle.d.ts +44 -0
- package/dist/domain/install-bundle.d.ts.map +1 -0
- package/dist/domain/install-bundle.js +45 -0
- package/dist/domain/install-bundle.js.map +1 -0
- package/dist/domain/origin.d.ts +18 -0
- package/dist/domain/origin.d.ts.map +1 -0
- package/dist/domain/origin.js +11 -0
- package/dist/domain/origin.js.map +1 -0
- package/dist/domain/serialize/core.d.ts +28 -0
- package/dist/domain/serialize/core.d.ts.map +1 -0
- package/dist/domain/serialize/core.js +107 -0
- package/dist/domain/serialize/core.js.map +1 -0
- package/dist/domain/serialize/errors.d.ts +8 -0
- package/dist/domain/serialize/errors.d.ts.map +1 -0
- package/dist/domain/serialize/errors.js +12 -0
- package/dist/domain/serialize/errors.js.map +1 -0
- package/dist/domain/serialize/index.d.ts +6 -0
- package/dist/domain/serialize/index.d.ts.map +1 -0
- package/dist/domain/serialize/index.js +8 -0
- package/dist/domain/serialize/index.js.map +1 -0
- package/dist/domain/serialize/merge-trees.d.ts +14 -0
- package/dist/domain/serialize/merge-trees.d.ts.map +1 -0
- package/dist/domain/serialize/merge-trees.js +39 -0
- package/dist/domain/serialize/merge-trees.js.map +1 -0
- package/dist/domain/serialize/schema.d.ts +35 -0
- package/dist/domain/serialize/schema.d.ts.map +1 -0
- package/dist/domain/serialize/schema.js +525 -0
- package/dist/domain/serialize/schema.js.map +1 -0
- package/dist/domain/serialize/serialize.d.ts +43 -0
- package/dist/domain/serialize/serialize.d.ts.map +1 -0
- package/dist/domain/serialize/serialize.js +36 -0
- package/dist/domain/serialize/serialize.js.map +1 -0
- package/dist/domain/serialize/zod-schema.d.ts +17 -0
- package/dist/domain/serialize/zod-schema.d.ts.map +1 -0
- package/dist/domain/serialize/zod-schema.js +71 -0
- package/dist/domain/serialize/zod-schema.js.map +1 -0
- package/dist/events/envelope.d.ts +19 -0
- package/dist/events/envelope.d.ts.map +1 -0
- package/dist/events/envelope.js +2 -0
- package/dist/events/envelope.js.map +1 -0
- package/dist/events/ids.d.ts +9 -0
- package/dist/events/ids.d.ts.map +1 -0
- package/dist/events/ids.js +3 -0
- package/dist/events/ids.js.map +1 -0
- package/dist/events/index.d.ts +7 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +7 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/journal/filter.d.ts +14 -0
- package/dist/events/journal/filter.d.ts.map +1 -0
- package/dist/events/journal/filter.js +48 -0
- package/dist/events/journal/filter.js.map +1 -0
- package/dist/events/journal/index.d.ts +3 -0
- package/dist/events/journal/index.d.ts.map +1 -0
- package/dist/events/journal/index.js +2 -0
- package/dist/events/journal/index.js.map +1 -0
- package/dist/events/journal/types.d.ts +21 -0
- package/dist/events/journal/types.d.ts.map +1 -0
- package/dist/events/journal/types.js +2 -0
- package/dist/events/journal/types.js.map +1 -0
- package/dist/events/payloads.d.ts +61 -0
- package/dist/events/payloads.d.ts.map +1 -0
- package/dist/events/payloads.js +2 -0
- package/dist/events/payloads.js.map +1 -0
- package/dist/events/subscription.d.ts +9 -0
- package/dist/events/subscription.d.ts.map +1 -0
- package/dist/events/subscription.js +2 -0
- package/dist/events/subscription.js.map +1 -0
- package/dist/events/topics.d.ts +19 -0
- package/dist/events/topics.d.ts.map +1 -0
- package/dist/events/topics.js +6 -0
- package/dist/events/topics.js.map +1 -0
- package/dist/graph/edge/edge.d.ts +42 -0
- package/dist/graph/edge/edge.d.ts.map +1 -0
- package/dist/graph/edge/edge.js +2 -0
- package/dist/graph/edge/edge.js.map +1 -0
- package/dist/graph/edge/identity.d.ts +33 -0
- package/dist/graph/edge/identity.d.ts.map +1 -0
- package/dist/graph/edge/identity.js +10 -0
- package/dist/graph/edge/identity.js.map +1 -0
- package/dist/graph/edge/index.d.ts +4 -0
- package/dist/graph/edge/index.d.ts.map +1 -0
- package/dist/graph/edge/index.js +2 -0
- package/dist/graph/edge/index.js.map +1 -0
- package/dist/graph/edge/zod.d.ts +21 -0
- package/dist/graph/edge/zod.d.ts.map +1 -0
- package/dist/graph/edge/zod.js +27 -0
- package/dist/graph/edge/zod.js.map +1 -0
- package/dist/graph/errors.d.ts +100 -0
- package/dist/graph/errors.d.ts.map +1 -0
- package/dist/graph/errors.js +117 -0
- package/dist/graph/errors.js.map +1 -0
- package/dist/graph/graph/build/from.d.ts +62 -0
- package/dist/graph/graph/build/from.d.ts.map +1 -0
- package/dist/graph/graph/build/from.js +47 -0
- package/dist/graph/graph/build/from.js.map +1 -0
- package/dist/graph/graph/build/index.d.ts +11 -0
- package/dist/graph/graph/build/index.d.ts.map +1 -0
- package/dist/graph/graph/build/index.js +11 -0
- package/dist/graph/graph/build/index.js.map +1 -0
- package/dist/graph/graph/build/normalize.d.ts +20 -0
- package/dist/graph/graph/build/normalize.d.ts.map +1 -0
- package/dist/graph/graph/build/normalize.js +49 -0
- package/dist/graph/graph/build/normalize.js.map +1 -0
- package/dist/graph/graph/build/validate.d.ts +11 -0
- package/dist/graph/graph/build/validate.d.ts.map +1 -0
- package/dist/graph/graph/build/validate.js +56 -0
- package/dist/graph/graph/build/validate.js.map +1 -0
- package/dist/graph/graph/graph.d.ts +136 -0
- package/dist/graph/graph/graph.d.ts.map +1 -0
- package/dist/graph/graph/graph.js +220 -0
- package/dist/graph/graph/graph.js.map +1 -0
- package/dist/graph/graph/index.d.ts +24 -0
- package/dist/graph/graph/index.d.ts.map +1 -0
- package/dist/graph/graph/index.js +18 -0
- package/dist/graph/graph/index.js.map +1 -0
- package/dist/graph/graph/indexes/edges.d.ts +23 -0
- package/dist/graph/graph/indexes/edges.d.ts.map +1 -0
- package/dist/graph/graph/indexes/edges.js +49 -0
- package/dist/graph/graph/indexes/edges.js.map +1 -0
- package/dist/graph/graph/indexes/ids.d.ts +15 -0
- package/dist/graph/graph/indexes/ids.d.ts.map +1 -0
- package/dist/graph/graph/indexes/ids.js +30 -0
- package/dist/graph/graph/indexes/ids.js.map +1 -0
- package/dist/graph/graph/indexes/index.d.ts +22 -0
- package/dist/graph/graph/indexes/index.d.ts.map +1 -0
- package/dist/graph/graph/indexes/index.js +21 -0
- package/dist/graph/graph/indexes/index.js.map +1 -0
- package/dist/graph/graph/indexes/nodes.d.ts +15 -0
- package/dist/graph/graph/indexes/nodes.d.ts.map +1 -0
- package/dist/graph/graph/indexes/nodes.js +20 -0
- package/dist/graph/graph/indexes/nodes.js.map +1 -0
- package/dist/graph/graph/indexes/path-index.d.ts +54 -0
- package/dist/graph/graph/indexes/path-index.d.ts.map +1 -0
- package/dist/graph/graph/indexes/path-index.js +140 -0
- package/dist/graph/graph/indexes/path-index.js.map +1 -0
- package/dist/graph/graph/indexes/view.d.ts +60 -0
- package/dist/graph/graph/indexes/view.d.ts.map +1 -0
- package/dist/graph/graph/indexes/view.js +47 -0
- package/dist/graph/graph/indexes/view.js.map +1 -0
- package/dist/graph/graph/namespaces.d.ts +53 -0
- package/dist/graph/graph/namespaces.d.ts.map +1 -0
- package/dist/graph/graph/namespaces.js +2 -0
- package/dist/graph/graph/namespaces.js.map +1 -0
- package/dist/graph/graph/root.d.ts +36 -0
- package/dist/graph/graph/root.d.ts.map +1 -0
- package/dist/graph/graph/root.js +85 -0
- package/dist/graph/graph/root.js.map +1 -0
- package/dist/graph/graph/walker.d.ts +80 -0
- package/dist/graph/graph/walker.d.ts.map +1 -0
- package/dist/graph/graph/walker.js +126 -0
- package/dist/graph/graph/walker.js.map +1 -0
- package/dist/graph/graph/wire.d.ts +34 -0
- package/dist/graph/graph/wire.d.ts.map +1 -0
- package/dist/graph/graph/wire.js +37 -0
- package/dist/graph/graph/wire.js.map +1 -0
- package/dist/graph/index.d.ts +18 -0
- package/dist/graph/index.d.ts.map +1 -0
- package/dist/graph/index.js +14 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/nav/ast/predicate/index.d.ts +3 -0
- package/dist/graph/nav/ast/predicate/index.d.ts.map +1 -0
- package/dist/graph/nav/ast/predicate/index.js +2 -0
- package/dist/graph/nav/ast/predicate/index.js.map +1 -0
- package/dist/graph/nav/ast/predicate/operations.d.ts +27 -0
- package/dist/graph/nav/ast/predicate/operations.d.ts.map +1 -0
- package/dist/graph/nav/ast/predicate/operations.js +75 -0
- package/dist/graph/nav/ast/predicate/operations.js.map +1 -0
- package/dist/graph/nav/ast/predicate/types.d.ts +28 -0
- package/dist/graph/nav/ast/predicate/types.d.ts.map +1 -0
- package/dist/graph/nav/ast/predicate/types.js +3 -0
- package/dist/graph/nav/ast/predicate/types.js.map +1 -0
- package/dist/graph/nav/ast/slug.d.ts +18 -0
- package/dist/graph/nav/ast/slug.d.ts.map +1 -0
- package/dist/graph/nav/ast/slug.js +19 -0
- package/dist/graph/nav/ast/slug.js.map +1 -0
- package/dist/graph/nav/ast/step/anchor.d.ts +33 -0
- package/dist/graph/nav/ast/step/anchor.d.ts.map +1 -0
- package/dist/graph/nav/ast/step/anchor.js +15 -0
- package/dist/graph/nav/ast/step/anchor.js.map +1 -0
- package/dist/graph/nav/ast/step/index.d.ts +7 -0
- package/dist/graph/nav/ast/step/index.d.ts.map +1 -0
- package/dist/graph/nav/ast/step/index.js +3 -0
- package/dist/graph/nav/ast/step/index.js.map +1 -0
- package/dist/graph/nav/ast/step/reverse.d.ts +21 -0
- package/dist/graph/nav/ast/step/reverse.d.ts.map +1 -0
- package/dist/graph/nav/ast/step/reverse.js +58 -0
- package/dist/graph/nav/ast/step/reverse.js.map +1 -0
- package/dist/graph/nav/ast/step/traversal.d.ts +39 -0
- package/dist/graph/nav/ast/step/traversal.d.ts.map +1 -0
- package/dist/graph/nav/ast/step/traversal.js +5 -0
- package/dist/graph/nav/ast/step/traversal.js.map +1 -0
- package/dist/graph/nav/grammar/core.d.ts +25 -0
- package/dist/graph/nav/grammar/core.d.ts.map +1 -0
- package/dist/graph/nav/grammar/core.js +12 -0
- package/dist/graph/nav/grammar/core.js.map +1 -0
- package/dist/graph/nav/grammar/extension.d.ts +35 -0
- package/dist/graph/nav/grammar/extension.d.ts.map +1 -0
- package/dist/graph/nav/grammar/extension.js +2 -0
- package/dist/graph/nav/grammar/extension.js.map +1 -0
- package/dist/graph/nav/grammar/index.d.ts +7 -0
- package/dist/graph/nav/grammar/index.d.ts.map +1 -0
- package/dist/graph/nav/grammar/index.js +4 -0
- package/dist/graph/nav/grammar/index.js.map +1 -0
- package/dist/graph/nav/grammar/registry.d.ts +25 -0
- package/dist/graph/nav/grammar/registry.d.ts.map +1 -0
- package/dist/graph/nav/grammar/registry.js +38 -0
- package/dist/graph/nav/grammar/registry.js.map +1 -0
- package/dist/graph/nav/index.d.ts +36 -0
- package/dist/graph/nav/index.d.ts.map +1 -0
- package/dist/graph/nav/index.js +32 -0
- package/dist/graph/nav/index.js.map +1 -0
- package/dist/graph/nav/lex/table.d.ts +16 -0
- package/dist/graph/nav/lex/table.d.ts.map +1 -0
- package/dist/graph/nav/lex/table.js +24 -0
- package/dist/graph/nav/lex/table.js.map +1 -0
- package/dist/graph/nav/lex/token.d.ts +23 -0
- package/dist/graph/nav/lex/token.d.ts.map +1 -0
- package/dist/graph/nav/lex/token.js +2 -0
- package/dist/graph/nav/lex/token.js.map +1 -0
- package/dist/graph/nav/lex/tokenize.d.ts +5 -0
- package/dist/graph/nav/lex/tokenize.d.ts.map +1 -0
- package/dist/graph/nav/lex/tokenize.js +40 -0
- package/dist/graph/nav/lex/tokenize.js.map +1 -0
- package/dist/graph/nav/parse/predicate.d.ts +21 -0
- package/dist/graph/nav/parse/predicate.d.ts.map +1 -0
- package/dist/graph/nav/parse/predicate.js +95 -0
- package/dist/graph/nav/parse/predicate.js.map +1 -0
- package/dist/graph/nav/parse/steps.d.ts +43 -0
- package/dist/graph/nav/parse/steps.d.ts.map +1 -0
- package/dist/graph/nav/parse/steps.js +234 -0
- package/dist/graph/nav/parse/steps.js.map +1 -0
- package/dist/graph/nav/parse/stream.d.ts +24 -0
- package/dist/graph/nav/parse/stream.d.ts.map +1 -0
- package/dist/graph/nav/parse/stream.js +45 -0
- package/dist/graph/nav/parse/stream.js.map +1 -0
- package/dist/graph/nav/parse/validation.d.ts +12 -0
- package/dist/graph/nav/parse/validation.d.ts.map +1 -0
- package/dist/graph/nav/parse/validation.js +7 -0
- package/dist/graph/nav/parse/validation.js.map +1 -0
- package/dist/graph/nav/path/build.d.ts +21 -0
- package/dist/graph/nav/path/build.d.ts.map +1 -0
- package/dist/graph/nav/path/build.js +53 -0
- package/dist/graph/nav/path/build.js.map +1 -0
- package/dist/graph/nav/path/errors.d.ts +50 -0
- package/dist/graph/nav/path/errors.d.ts.map +1 -0
- package/dist/graph/nav/path/errors.js +61 -0
- package/dist/graph/nav/path/errors.js.map +1 -0
- package/dist/graph/nav/path/index.d.ts +19 -0
- package/dist/graph/nav/path/index.d.ts.map +1 -0
- package/dist/graph/nav/path/index.js +19 -0
- package/dist/graph/nav/path/index.js.map +1 -0
- package/dist/graph/nav/path/kinds/chain.d.ts +38 -0
- package/dist/graph/nav/path/kinds/chain.d.ts.map +1 -0
- package/dist/graph/nav/path/kinds/chain.js +84 -0
- package/dist/graph/nav/path/kinds/chain.js.map +1 -0
- package/dist/graph/nav/path/kinds/id-path.d.ts +44 -0
- package/dist/graph/nav/path/kinds/id-path.d.ts.map +1 -0
- package/dist/graph/nav/path/kinds/id-path.js +104 -0
- package/dist/graph/nav/path/kinds/id-path.js.map +1 -0
- package/dist/graph/nav/path/kinds/path-type.d.ts +51 -0
- package/dist/graph/nav/path/kinds/path-type.d.ts.map +1 -0
- package/dist/graph/nav/path/kinds/path-type.js +2 -0
- package/dist/graph/nav/path/kinds/path-type.js.map +1 -0
- package/dist/graph/nav/path/kinds/registry.d.ts +51 -0
- package/dist/graph/nav/path/kinds/registry.d.ts.map +1 -0
- package/dist/graph/nav/path/kinds/registry.js +85 -0
- package/dist/graph/nav/path/kinds/registry.js.map +1 -0
- package/dist/graph/nav/path/parse.d.ts +30 -0
- package/dist/graph/nav/path/parse.d.ts.map +1 -0
- package/dist/graph/nav/path/parse.js +55 -0
- package/dist/graph/nav/path/parse.js.map +1 -0
- package/dist/graph/nav/path/path.d.ts +41 -0
- package/dist/graph/nav/path/path.d.ts.map +1 -0
- package/dist/graph/nav/path/path.js +59 -0
- package/dist/graph/nav/path/path.js.map +1 -0
- package/dist/graph/nav/path/zod.d.ts +99 -0
- package/dist/graph/nav/path/zod.d.ts.map +1 -0
- package/dist/graph/nav/path/zod.js +132 -0
- package/dist/graph/nav/path/zod.js.map +1 -0
- package/dist/graph/nav/scheme/index.d.ts +6 -0
- package/dist/graph/nav/scheme/index.d.ts.map +1 -0
- package/dist/graph/nav/scheme/index.js +5 -0
- package/dist/graph/nav/scheme/index.js.map +1 -0
- package/dist/graph/nav/scheme/registry.d.ts +17 -0
- package/dist/graph/nav/scheme/registry.d.ts.map +1 -0
- package/dist/graph/nav/scheme/registry.js +24 -0
- package/dist/graph/nav/scheme/registry.js.map +1 -0
- package/dist/graph/nav/scheme/segment.d.ts +53 -0
- package/dist/graph/nav/scheme/segment.d.ts.map +1 -0
- package/dist/graph/nav/scheme/segment.js +2 -0
- package/dist/graph/nav/scheme/segment.js.map +1 -0
- package/dist/graph/nav/scheme/slug.d.ts +40 -0
- package/dist/graph/nav/scheme/slug.d.ts.map +1 -0
- package/dist/graph/nav/scheme/slug.js +86 -0
- package/dist/graph/nav/scheme/slug.js.map +1 -0
- package/dist/graph/nav/scheme/span.d.ts +17 -0
- package/dist/graph/nav/scheme/span.d.ts.map +1 -0
- package/dist/graph/nav/scheme/span.js +41 -0
- package/dist/graph/nav/scheme/span.js.map +1 -0
- package/dist/graph/nav/scheme/walk.d.ts +20 -0
- package/dist/graph/nav/scheme/walk.d.ts.map +1 -0
- package/dist/graph/nav/scheme/walk.js +75 -0
- package/dist/graph/nav/scheme/walk.js.map +1 -0
- package/dist/graph/nav/serialize/predicate.d.ts +4 -0
- package/dist/graph/nav/serialize/predicate.d.ts.map +1 -0
- package/dist/graph/nav/serialize/predicate.js +24 -0
- package/dist/graph/nav/serialize/predicate.js.map +1 -0
- package/dist/graph/nav/serialize/steps.d.ts +30 -0
- package/dist/graph/nav/serialize/steps.d.ts.map +1 -0
- package/dist/graph/nav/serialize/steps.js +53 -0
- package/dist/graph/nav/serialize/steps.js.map +1 -0
- package/dist/graph/node/index.d.ts +2 -0
- package/dist/graph/node/index.d.ts.map +1 -0
- package/dist/graph/node/index.js +2 -0
- package/dist/graph/node/index.js.map +1 -0
- package/dist/graph/node/node.d.ts +41 -0
- package/dist/graph/node/node.d.ts.map +1 -0
- package/dist/graph/node/node.js +2 -0
- package/dist/graph/node/node.js.map +1 -0
- package/dist/graph/node/zod.d.ts +21 -0
- package/dist/graph/node/zod.d.ts.map +1 -0
- package/dist/graph/node/zod.js +23 -0
- package/dist/graph/node/zod.js.map +1 -0
- package/dist/graph/props/index.d.ts +2 -0
- package/dist/graph/props/index.d.ts.map +1 -0
- package/dist/graph/props/index.js +2 -0
- package/dist/graph/props/index.js.map +1 -0
- package/dist/graph/props/properties.d.ts +3 -0
- package/dist/graph/props/properties.d.ts.map +1 -0
- package/dist/graph/props/properties.js +2 -0
- package/dist/graph/props/properties.js.map +1 -0
- package/dist/graph/props/props.d.ts +3 -0
- package/dist/graph/props/props.d.ts.map +1 -0
- package/dist/graph/props/props.js +2 -0
- package/dist/graph/props/props.js.map +1 -0
- package/dist/graph/sync/apply/index.d.ts +4 -0
- package/dist/graph/sync/apply/index.d.ts.map +1 -0
- package/dist/graph/sync/apply/index.js +2 -0
- package/dist/graph/sync/apply/index.js.map +1 -0
- package/dist/graph/sync/apply/integrity.d.ts +11 -0
- package/dist/graph/sync/apply/integrity.d.ts.map +1 -0
- package/dist/graph/sync/apply/integrity.js +7 -0
- package/dist/graph/sync/apply/integrity.js.map +1 -0
- package/dist/graph/sync/apply/push-result.d.ts +19 -0
- package/dist/graph/sync/apply/push-result.d.ts.map +1 -0
- package/dist/graph/sync/apply/push-result.js +2 -0
- package/dist/graph/sync/apply/push-result.js.map +1 -0
- package/dist/graph/sync/apply/validation.d.ts +24 -0
- package/dist/graph/sync/apply/validation.d.ts.map +1 -0
- package/dist/graph/sync/apply/validation.js +2 -0
- package/dist/graph/sync/apply/validation.js.map +1 -0
- package/dist/graph/sync/diff/changeset.d.ts +79 -0
- package/dist/graph/sync/diff/changeset.d.ts.map +1 -0
- package/dist/graph/sync/diff/changeset.js +66 -0
- package/dist/graph/sync/diff/changeset.js.map +1 -0
- package/dist/graph/sync/diff/config.d.ts +26 -0
- package/dist/graph/sync/diff/config.d.ts.map +1 -0
- package/dist/graph/sync/diff/config.js +2 -0
- package/dist/graph/sync/diff/config.js.map +1 -0
- package/dist/graph/sync/diff/default.d.ts +15 -0
- package/dist/graph/sync/diff/default.d.ts.map +1 -0
- package/dist/graph/sync/diff/default.js +26 -0
- package/dist/graph/sync/diff/default.js.map +1 -0
- package/dist/graph/sync/diff/diff.d.ts +28 -0
- package/dist/graph/sync/diff/diff.d.ts.map +1 -0
- package/dist/graph/sync/diff/diff.js +116 -0
- package/dist/graph/sync/diff/diff.js.map +1 -0
- package/dist/graph/sync/diff/index.d.ts +7 -0
- package/dist/graph/sync/diff/index.d.ts.map +1 -0
- package/dist/graph/sync/diff/index.js +5 -0
- package/dist/graph/sync/diff/index.js.map +1 -0
- package/dist/graph/sync/diff/scope.d.ts +12 -0
- package/dist/graph/sync/diff/scope.d.ts.map +1 -0
- package/dist/graph/sync/diff/scope.js +17 -0
- package/dist/graph/sync/diff/scope.js.map +1 -0
- package/dist/graph/sync/index.d.ts +12 -0
- package/dist/graph/sync/index.d.ts.map +1 -0
- package/dist/graph/sync/index.js +21 -0
- package/dist/graph/sync/index.js.map +1 -0
- package/dist/graph/sync/matching.d.ts +53 -0
- package/dist/graph/sync/matching.d.ts.map +1 -0
- package/dist/graph/sync/matching.js +54 -0
- package/dist/graph/sync/matching.js.map +1 -0
- package/dist/graph/sync/merge/index.d.ts +3 -0
- package/dist/graph/sync/merge/index.d.ts.map +1 -0
- package/dist/graph/sync/merge/index.js +3 -0
- package/dist/graph/sync/merge/index.js.map +1 -0
- package/dist/graph/sync/merge/merge.d.ts +21 -0
- package/dist/graph/sync/merge/merge.d.ts.map +1 -0
- package/dist/graph/sync/merge/merge.js +105 -0
- package/dist/graph/sync/merge/merge.js.map +1 -0
- package/dist/graph/sync/merge/policy.d.ts +13 -0
- package/dist/graph/sync/merge/policy.d.ts.map +1 -0
- package/dist/graph/sync/merge/policy.js +2 -0
- package/dist/graph/sync/merge/policy.js.map +1 -0
- package/dist/graph/sync/patch/index.d.ts +4 -0
- package/dist/graph/sync/patch/index.d.ts.map +1 -0
- package/dist/graph/sync/patch/index.js +3 -0
- package/dist/graph/sync/patch/index.js.map +1 -0
- package/dist/graph/sync/patch/patch.d.ts +82 -0
- package/dist/graph/sync/patch/patch.d.ts.map +1 -0
- package/dist/graph/sync/patch/patch.js +230 -0
- package/dist/graph/sync/patch/patch.js.map +1 -0
- package/dist/graph/sync/patch/set-aliases.d.ts +18 -0
- package/dist/graph/sync/patch/set-aliases.d.ts.map +1 -0
- package/dist/graph/sync/patch/set-aliases.js +25 -0
- package/dist/graph/sync/patch/set-aliases.js.map +1 -0
- package/dist/graph/sync/patch/types.d.ts +62 -0
- package/dist/graph/sync/patch/types.d.ts.map +1 -0
- package/dist/graph/sync/patch/types.js +2 -0
- package/dist/graph/sync/patch/types.js.map +1 -0
- package/dist/graph/sync/plan.d.ts +17 -0
- package/dist/graph/sync/plan.d.ts.map +1 -0
- package/dist/graph/sync/plan.js +23 -0
- package/dist/graph/sync/plan.js.map +1 -0
- package/dist/graph/sync/policy/index.d.ts +2 -0
- package/dist/graph/sync/policy/index.d.ts.map +1 -0
- package/dist/graph/sync/policy/index.js +2 -0
- package/dist/graph/sync/policy/index.js.map +1 -0
- package/dist/graph/sync/policy/sync-policy.d.ts +12 -0
- package/dist/graph/sync/policy/sync-policy.d.ts.map +1 -0
- package/dist/graph/sync/policy/sync-policy.js +5 -0
- package/dist/graph/sync/policy/sync-policy.js.map +1 -0
- package/dist/graph/sync/reconcile/config.d.ts +9 -0
- package/dist/graph/sync/reconcile/config.d.ts.map +1 -0
- package/dist/graph/sync/reconcile/config.js +2 -0
- package/dist/graph/sync/reconcile/config.js.map +1 -0
- package/dist/graph/sync/reconcile/index.d.ts +6 -0
- package/dist/graph/sync/reconcile/index.d.ts.map +1 -0
- package/dist/graph/sync/reconcile/index.js +6 -0
- package/dist/graph/sync/reconcile/index.js.map +1 -0
- package/dist/graph/sync/reconcile/reconcile.d.ts +21 -0
- package/dist/graph/sync/reconcile/reconcile.d.ts.map +1 -0
- package/dist/graph/sync/reconcile/reconcile.js +83 -0
- package/dist/graph/sync/reconcile/reconcile.js.map +1 -0
- package/dist/graph/sync/reconcile/resolve-props.d.ts +3 -0
- package/dist/graph/sync/reconcile/resolve-props.d.ts.map +1 -0
- package/dist/graph/sync/reconcile/resolve-props.js +19 -0
- package/dist/graph/sync/reconcile/resolve-props.js.map +1 -0
- package/dist/graph/sync/reconcile/resolve.d.ts +15 -0
- package/dist/graph/sync/reconcile/resolve.d.ts.map +1 -0
- package/dist/graph/sync/reconcile/resolve.js +117 -0
- package/dist/graph/sync/reconcile/resolve.js.map +1 -0
- package/dist/graph/sync/reconcile/untracked.d.ts +5 -0
- package/dist/graph/sync/reconcile/untracked.d.ts.map +1 -0
- package/dist/graph/sync/reconcile/untracked.js +2 -0
- package/dist/graph/sync/reconcile/untracked.js.map +1 -0
- package/dist/graph/sync/remote/fold.d.ts +37 -0
- package/dist/graph/sync/remote/fold.d.ts.map +1 -0
- package/dist/graph/sync/remote/fold.js +74 -0
- package/dist/graph/sync/remote/fold.js.map +1 -0
- package/dist/graph/sync/remote/index.d.ts +4 -0
- package/dist/graph/sync/remote/index.d.ts.map +1 -0
- package/dist/graph/sync/remote/index.js +2 -0
- package/dist/graph/sync/remote/index.js.map +1 -0
- package/dist/graph/sync/remote/keys.d.ts +17 -0
- package/dist/graph/sync/remote/keys.d.ts.map +1 -0
- package/dist/graph/sync/remote/keys.js +2 -0
- package/dist/graph/sync/remote/keys.js.map +1 -0
- package/dist/graph/tree/aliases.d.ts +62 -0
- package/dist/graph/tree/aliases.d.ts.map +1 -0
- package/dist/graph/tree/aliases.js +139 -0
- package/dist/graph/tree/aliases.js.map +1 -0
- package/dist/graph/tree/build/index.d.ts +32 -0
- package/dist/graph/tree/build/index.d.ts.map +1 -0
- package/dist/graph/tree/build/index.js +40 -0
- package/dist/graph/tree/build/index.js.map +1 -0
- package/dist/graph/tree/build/layout.d.ts +29 -0
- package/dist/graph/tree/build/layout.d.ts.map +1 -0
- package/dist/graph/tree/build/layout.js +98 -0
- package/dist/graph/tree/build/layout.js.map +1 -0
- package/dist/graph/tree/build/validate.d.ts +43 -0
- package/dist/graph/tree/build/validate.d.ts.map +1 -0
- package/dist/graph/tree/build/validate.js +150 -0
- package/dist/graph/tree/build/validate.js.map +1 -0
- package/dist/graph/tree/edge/endpoint.d.ts +29 -0
- package/dist/graph/tree/edge/endpoint.d.ts.map +1 -0
- package/dist/graph/tree/edge/endpoint.js +10 -0
- package/dist/graph/tree/edge/endpoint.js.map +1 -0
- package/dist/graph/tree/edge/index.d.ts +5 -0
- package/dist/graph/tree/edge/index.d.ts.map +1 -0
- package/dist/graph/tree/edge/index.js +3 -0
- package/dist/graph/tree/edge/index.js.map +1 -0
- package/dist/graph/tree/edge/tree-edge.d.ts +35 -0
- package/dist/graph/tree/edge/tree-edge.d.ts.map +1 -0
- package/dist/graph/tree/edge/tree-edge.js +16 -0
- package/dist/graph/tree/edge/tree-edge.js.map +1 -0
- package/dist/graph/tree/errors.d.ts +32 -0
- package/dist/graph/tree/errors.d.ts.map +1 -0
- package/dist/graph/tree/errors.js +30 -0
- package/dist/graph/tree/errors.js.map +1 -0
- package/dist/graph/tree/helpers.d.ts +12 -0
- package/dist/graph/tree/helpers.d.ts.map +1 -0
- package/dist/graph/tree/helpers.js +11 -0
- package/dist/graph/tree/helpers.js.map +1 -0
- package/dist/graph/tree/index.d.ts +12 -0
- package/dist/graph/tree/index.d.ts.map +1 -0
- package/dist/graph/tree/index.js +10 -0
- package/dist/graph/tree/index.js.map +1 -0
- package/dist/graph/tree/path/absolute/constants.d.ts +8 -0
- package/dist/graph/tree/path/absolute/constants.d.ts.map +1 -0
- package/dist/graph/tree/path/absolute/constants.js +8 -0
- package/dist/graph/tree/path/absolute/constants.js.map +1 -0
- package/dist/graph/tree/path/absolute/grammar.d.ts +12 -0
- package/dist/graph/tree/path/absolute/grammar.d.ts.map +1 -0
- package/dist/graph/tree/path/absolute/grammar.js +110 -0
- package/dist/graph/tree/path/absolute/grammar.js.map +1 -0
- package/dist/graph/tree/path/absolute/index.d.ts +6 -0
- package/dist/graph/tree/path/absolute/index.d.ts.map +1 -0
- package/dist/graph/tree/path/absolute/index.js +6 -0
- package/dist/graph/tree/path/absolute/index.js.map +1 -0
- package/dist/graph/tree/path/absolute/register.d.ts +9 -0
- package/dist/graph/tree/path/absolute/register.d.ts.map +1 -0
- package/dist/graph/tree/path/absolute/register.js +19 -0
- package/dist/graph/tree/path/absolute/register.js.map +1 -0
- package/dist/graph/tree/path/absolute/segment.d.ts +17 -0
- package/dist/graph/tree/path/absolute/segment.d.ts.map +1 -0
- package/dist/graph/tree/path/absolute/segment.js +24 -0
- package/dist/graph/tree/path/absolute/segment.js.map +1 -0
- package/dist/graph/tree/path/absolute/type.d.ts +52 -0
- package/dist/graph/tree/path/absolute/type.d.ts.map +1 -0
- package/dist/graph/tree/path/absolute/type.js +197 -0
- package/dist/graph/tree/path/absolute/type.js.map +1 -0
- package/dist/graph/tree/path/absolute-path.d.ts +2 -0
- package/dist/graph/tree/path/absolute-path.d.ts.map +1 -0
- package/dist/graph/tree/path/absolute-path.js +3 -0
- package/dist/graph/tree/path/absolute-path.js.map +1 -0
- package/dist/graph/tree/path/constants.d.ts +8 -0
- package/dist/graph/tree/path/constants.d.ts.map +1 -0
- package/dist/graph/tree/path/constants.js +8 -0
- package/dist/graph/tree/path/constants.js.map +1 -0
- package/dist/graph/tree/path/index.d.ts +6 -0
- package/dist/graph/tree/path/index.d.ts.map +1 -0
- package/dist/graph/tree/path/index.js +5 -0
- package/dist/graph/tree/path/index.js.map +1 -0
- package/dist/graph/tree/path/relative/constants.d.ts +5 -0
- package/dist/graph/tree/path/relative/constants.d.ts.map +1 -0
- package/dist/graph/tree/path/relative/constants.js +5 -0
- package/dist/graph/tree/path/relative/constants.js.map +1 -0
- package/dist/graph/tree/path/relative/grammar.d.ts +19 -0
- package/dist/graph/tree/path/relative/grammar.d.ts.map +1 -0
- package/dist/graph/tree/path/relative/grammar.js +47 -0
- package/dist/graph/tree/path/relative/grammar.js.map +1 -0
- package/dist/graph/tree/path/relative/index.d.ts +5 -0
- package/dist/graph/tree/path/relative/index.d.ts.map +1 -0
- package/dist/graph/tree/path/relative/index.js +5 -0
- package/dist/graph/tree/path/relative/index.js.map +1 -0
- package/dist/graph/tree/path/relative/register.d.ts +11 -0
- package/dist/graph/tree/path/relative/register.d.ts.map +1 -0
- package/dist/graph/tree/path/relative/register.js +18 -0
- package/dist/graph/tree/path/relative/register.js.map +1 -0
- package/dist/graph/tree/path/relative/type.d.ts +42 -0
- package/dist/graph/tree/path/relative/type.d.ts.map +1 -0
- package/dist/graph/tree/path/relative/type.js +183 -0
- package/dist/graph/tree/path/relative/type.js.map +1 -0
- package/dist/graph/tree/path/relative-path.d.ts +2 -0
- package/dist/graph/tree/path/relative-path.d.ts.map +1 -0
- package/dist/graph/tree/path/relative-path.js +3 -0
- package/dist/graph/tree/path/relative-path.js.map +1 -0
- package/dist/graph/tree/path/tree-path.d.ts +4 -0
- package/dist/graph/tree/path/tree-path.d.ts.map +1 -0
- package/dist/graph/tree/path/tree-path.js +2 -0
- package/dist/graph/tree/path/tree-path.js.map +1 -0
- package/dist/graph/tree/serialize.d.ts +40 -0
- package/dist/graph/tree/serialize.d.ts.map +1 -0
- package/dist/graph/tree/serialize.js +73 -0
- package/dist/graph/tree/serialize.js.map +1 -0
- package/dist/graph/tree/tree.d.ts +121 -0
- package/dist/graph/tree/tree.d.ts.map +1 -0
- package/dist/graph/tree/tree.js +323 -0
- package/dist/graph/tree/tree.js.map +1 -0
- package/dist/graph/tree/types.d.ts +41 -0
- package/dist/graph/tree/types.d.ts.map +1 -0
- package/dist/graph/tree/types.js +2 -0
- package/dist/graph/tree/types.js.map +1 -0
- package/dist/graph/tree/zod.d.ts +19 -0
- package/dist/graph/tree/zod.d.ts.map +1 -0
- package/dist/graph/tree/zod.js +20 -0
- package/dist/graph/tree/zod.js.map +1 -0
- package/dist/graph/types.d.ts +33 -0
- package/dist/graph/types.d.ts.map +1 -0
- package/dist/graph/types.js +2 -0
- package/dist/graph/types.js.map +1 -0
- package/dist/graph/zod.d.ts +61 -0
- package/dist/graph/zod.d.ts.map +1 -0
- package/dist/graph/zod.js +55 -0
- package/dist/graph/zod.js.map +1 -0
- package/dist/ids.types.d.ts +69 -0
- package/dist/ids.types.d.ts.map +1 -0
- package/dist/ids.types.js +24 -0
- package/dist/ids.types.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/dist/kernel.d.ts +9510 -0
- package/dist/kernel.d.ts.map +1 -0
- package/dist/kernel.js +84 -0
- package/dist/kernel.js.map +1 -0
- package/dist/path-dsl.d.ts +62 -0
- package/dist/path-dsl.d.ts.map +1 -0
- package/dist/path-dsl.js +100 -0
- package/dist/path-dsl.js.map +1 -0
- package/dist/schema/classes/Class.class.d.ts +279 -0
- package/dist/schema/classes/Class.class.d.ts.map +1 -0
- package/dist/schema/classes/Class.class.js +24 -0
- package/dist/schema/classes/Class.class.js.map +1 -0
- package/dist/schema/classes/Domain.class.d.ts +287 -0
- package/dist/schema/classes/Domain.class.d.ts.map +1 -0
- package/dist/schema/classes/Domain.class.js +28 -0
- package/dist/schema/classes/Domain.class.js.map +1 -0
- package/dist/schema/classes/Folder.class.d.ts +269 -0
- package/dist/schema/classes/Folder.class.d.ts.map +1 -0
- package/dist/schema/classes/Folder.class.js +21 -0
- package/dist/schema/classes/Folder.class.js.map +1 -0
- package/dist/schema/classes/Function.class.d.ts +1667 -0
- package/dist/schema/classes/Function.class.d.ts.map +1 -0
- package/dist/schema/classes/Function.class.js +49 -0
- package/dist/schema/classes/Function.class.js.map +1 -0
- package/dist/schema/classes/Interface.class.d.ts +92 -0
- package/dist/schema/classes/Interface.class.d.ts.map +1 -0
- package/dist/schema/classes/Interface.class.js +22 -0
- package/dist/schema/classes/Interface.class.js.map +1 -0
- package/dist/schema/classes/Root.class.d.ts +636 -0
- package/dist/schema/classes/Root.class.d.ts.map +1 -0
- package/dist/schema/classes/Root.class.js +23 -0
- package/dist/schema/classes/Root.class.js.map +1 -0
- package/dist/schema/classes/View.class.d.ts +3407 -0
- package/dist/schema/classes/View.class.d.ts.map +1 -0
- package/dist/schema/classes/View.class.js +48 -0
- package/dist/schema/classes/View.class.js.map +1 -0
- package/dist/schema/classes/edges/calls.class.d.ts +2 -0
- package/dist/schema/classes/edges/calls.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/calls.class.js +4 -0
- package/dist/schema/classes/edges/calls.class.js.map +1 -0
- package/dist/schema/classes/edges/constrained-by.class.d.ts +2 -0
- package/dist/schema/classes/edges/constrained-by.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/constrained-by.class.js +4 -0
- package/dist/schema/classes/edges/constrained-by.class.js.map +1 -0
- package/dist/schema/classes/edges/excluded-from.class.d.ts +2 -0
- package/dist/schema/classes/edges/excluded-from.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/excluded-from.class.js +4 -0
- package/dist/schema/classes/edges/excluded-from.class.js.map +1 -0
- package/dist/schema/classes/edges/extends-with.class.d.ts +2 -0
- package/dist/schema/classes/edges/extends-with.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/extends-with.class.js +4 -0
- package/dist/schema/classes/edges/extends-with.class.js.map +1 -0
- package/dist/schema/classes/edges/extends.class.d.ts +2 -0
- package/dist/schema/classes/edges/extends.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/extends.class.js +4 -0
- package/dist/schema/classes/edges/extends.class.js.map +1 -0
- package/dist/schema/classes/edges/from.class.d.ts +2 -0
- package/dist/schema/classes/edges/from.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/from.class.js +4 -0
- package/dist/schema/classes/edges/from.class.js.map +1 -0
- package/dist/schema/classes/edges/has-parent.class.d.ts +2 -0
- package/dist/schema/classes/edges/has-parent.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/has-parent.class.js +4 -0
- package/dist/schema/classes/edges/has-parent.class.js.map +1 -0
- package/dist/schema/classes/edges/has-perm.class.d.ts +2 -0
- package/dist/schema/classes/edges/has-perm.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/has-perm.class.js +5 -0
- package/dist/schema/classes/edges/has-perm.class.js.map +1 -0
- package/dist/schema/classes/edges/implements.class.d.ts +2 -0
- package/dist/schema/classes/edges/implements.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/implements.class.js +4 -0
- package/dist/schema/classes/edges/implements.class.js.map +1 -0
- package/dist/schema/classes/edges/index.d.ts +16 -0
- package/dist/schema/classes/edges/index.d.ts.map +1 -0
- package/dist/schema/classes/edges/index.js +16 -0
- package/dist/schema/classes/edges/index.js.map +1 -0
- package/dist/schema/classes/edges/installed-in.class.d.ts +2 -0
- package/dist/schema/classes/edges/installed-in.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/installed-in.class.js +5 -0
- package/dist/schema/classes/edges/installed-in.class.js.map +1 -0
- package/dist/schema/classes/edges/instance-of.class.d.ts +2 -0
- package/dist/schema/classes/edges/instance-of.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/instance-of.class.js +5 -0
- package/dist/schema/classes/edges/instance-of.class.js.map +1 -0
- package/dist/schema/classes/edges/method-of.class.d.ts +2 -0
- package/dist/schema/classes/edges/method-of.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/method-of.class.js +5 -0
- package/dist/schema/classes/edges/method-of.class.js.map +1 -0
- package/dist/schema/classes/edges/of-domain.class.d.ts +2 -0
- package/dist/schema/classes/edges/of-domain.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/of-domain.class.js +4 -0
- package/dist/schema/classes/edges/of-domain.class.js.map +1 -0
- package/dist/schema/classes/edges/to.class.d.ts +2 -0
- package/dist/schema/classes/edges/to.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/to.class.js +4 -0
- package/dist/schema/classes/edges/to.class.js.map +1 -0
- package/dist/schema/classes/edges/view-for.class.d.ts +3 -0
- package/dist/schema/classes/edges/view-for.class.d.ts.map +1 -0
- package/dist/schema/classes/edges/view-for.class.js +7 -0
- package/dist/schema/classes/edges/view-for.class.js.map +1 -0
- package/dist/schema/classes/icons.d.ts +23 -0
- package/dist/schema/classes/icons.d.ts.map +1 -0
- package/dist/schema/classes/icons.js +24 -0
- package/dist/schema/classes/icons.js.map +1 -0
- package/dist/schema/classes/index.d.ts +9 -0
- package/dist/schema/classes/index.d.ts.map +1 -0
- package/dist/schema/classes/index.js +9 -0
- package/dist/schema/classes/index.js.map +1 -0
- package/dist/schema/definitions/edge-class.d.ts +14 -0
- package/dist/schema/definitions/edge-class.d.ts.map +1 -0
- package/dist/schema/definitions/edge-class.js +16 -0
- package/dist/schema/definitions/edge-class.js.map +1 -0
- package/dist/schema/definitions/edge-interface.d.ts +18 -0
- package/dist/schema/definitions/edge-interface.d.ts.map +1 -0
- package/dist/schema/definitions/edge-interface.js +13 -0
- package/dist/schema/definitions/edge-interface.js.map +1 -0
- package/dist/schema/definitions/index.d.ts +5 -0
- package/dist/schema/definitions/index.d.ts.map +1 -0
- package/dist/schema/definitions/index.js +5 -0
- package/dist/schema/definitions/index.js.map +1 -0
- package/dist/schema/definitions/node-class.d.ts +19 -0
- package/dist/schema/definitions/node-class.d.ts.map +1 -0
- package/dist/schema/definitions/node-class.js +13 -0
- package/dist/schema/definitions/node-class.js.map +1 -0
- package/dist/schema/definitions/node-interface.d.ts +18 -0
- package/dist/schema/definitions/node-interface.d.ts.map +1 -0
- package/dist/schema/definitions/node-interface.js +13 -0
- package/dist/schema/definitions/node-interface.js.map +1 -0
- package/dist/schema/index.d.ts +5 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +5 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/interfaces/Container.interface.d.ts +94 -0
- package/dist/schema/interfaces/Container.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/Container.interface.js +24 -0
- package/dist/schema/interfaces/Container.interface.js.map +1 -0
- package/dist/schema/interfaces/Edge.interface.d.ts +25 -0
- package/dist/schema/interfaces/Edge.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/Edge.interface.js +4 -0
- package/dist/schema/interfaces/Edge.interface.js.map +1 -0
- package/dist/schema/interfaces/Function.interface.d.ts +785 -0
- package/dist/schema/interfaces/Function.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/Function.interface.js +28 -0
- package/dist/schema/interfaces/Function.interface.js.map +1 -0
- package/dist/schema/interfaces/Identity.interface.d.ts +183 -0
- package/dist/schema/interfaces/Identity.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/Identity.interface.js +103 -0
- package/dist/schema/interfaces/Identity.interface.js.map +1 -0
- package/dist/schema/interfaces/Node.interface.d.ts +81 -0
- package/dist/schema/interfaces/Node.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/Node.interface.js +72 -0
- package/dist/schema/interfaces/Node.interface.js.map +1 -0
- package/dist/schema/interfaces/UI.interface.d.ts +1654 -0
- package/dist/schema/interfaces/UI.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/UI.interface.js +17 -0
- package/dist/schema/interfaces/UI.interface.js.map +1 -0
- package/dist/schema/interfaces/generics/Descriptable.interface.d.ts +7 -0
- package/dist/schema/interfaces/generics/Descriptable.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/generics/Descriptable.interface.js +6 -0
- package/dist/schema/interfaces/generics/Descriptable.interface.js.map +1 -0
- package/dist/schema/interfaces/generics/Iconable.interface.d.ts +7 -0
- package/dist/schema/interfaces/generics/Iconable.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/generics/Iconable.interface.js +9 -0
- package/dist/schema/interfaces/generics/Iconable.interface.js.map +1 -0
- package/dist/schema/interfaces/generics/Named.interface.d.ts +8 -0
- package/dist/schema/interfaces/generics/Named.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/generics/Named.interface.js +9 -0
- package/dist/schema/interfaces/generics/Named.interface.js.map +1 -0
- package/dist/schema/interfaces/generics/Remotable.interface.d.ts +35 -0
- package/dist/schema/interfaces/generics/Remotable.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/generics/Remotable.interface.js +20 -0
- package/dist/schema/interfaces/generics/Remotable.interface.js.map +1 -0
- package/dist/schema/interfaces/generics/Sluggable.interface.d.ts +8 -0
- package/dist/schema/interfaces/generics/Sluggable.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/generics/Sluggable.interface.js +16 -0
- package/dist/schema/interfaces/generics/Sluggable.interface.js.map +1 -0
- package/dist/schema/interfaces/generics/Statused.interface.d.ts +21 -0
- package/dist/schema/interfaces/generics/Statused.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/generics/Statused.interface.js +7 -0
- package/dist/schema/interfaces/generics/Statused.interface.js.map +1 -0
- package/dist/schema/interfaces/generics/Timestamped.interface.d.ts +8 -0
- package/dist/schema/interfaces/generics/Timestamped.interface.d.ts.map +1 -0
- package/dist/schema/interfaces/generics/Timestamped.interface.js +6 -0
- package/dist/schema/interfaces/generics/Timestamped.interface.js.map +1 -0
- package/dist/schema/interfaces/generics/index.d.ts +8 -0
- package/dist/schema/interfaces/generics/index.d.ts.map +1 -0
- package/dist/schema/interfaces/generics/index.js +8 -0
- package/dist/schema/interfaces/generics/index.js.map +1 -0
- package/dist/schema/interfaces/index.d.ts +8 -0
- package/dist/schema/interfaces/index.d.ts.map +1 -0
- package/dist/schema/interfaces/index.js +8 -0
- package/dist/schema/interfaces/index.js.map +1 -0
- package/dist/schema/schema.d.ts +9446 -0
- package/dist/schema/schema.d.ts.map +1 -0
- package/dist/schema/schema.js +49 -0
- package/dist/schema/schema.js.map +1 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/vitest.config.js +8 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +129 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Group a flat input record into the storage shape that mutation ports expect.
|
|
3
|
+
*
|
|
4
|
+
* Inverse of `flattenProperties` (and a sibling of `unflattenProperties`).
|
|
5
|
+
* `groupProperties` is the **write-side** entry point: callers hand in a
|
|
6
|
+
* domain-friendly flat record and get back `{ attrs, props }`, ready to
|
|
7
|
+
* spread into `graph.createNode` / `graph.updateNode`.
|
|
8
|
+
*
|
|
9
|
+
* Three accepted key shapes per entry (parsed by `parsePropertyShortcut`):
|
|
10
|
+
* - bare — `'color'` (class-own props ONLY)
|
|
11
|
+
* - owner-qualified — `'Tag.color'` / `'Named.name'` (class or interface owner)
|
|
12
|
+
* - domain-qualified — `'kernel.astrale.ai:Named.name'` (cross-domain disambiguation)
|
|
13
|
+
* - storage key — `'kernel.astrale.ai:interface.Named.property.name'` (= `K.Named.name.key`)
|
|
14
|
+
*
|
|
15
|
+
* Error model:
|
|
16
|
+
* - bare key for an inherited prop → `UnknownPropertyError` (must qualify)
|
|
17
|
+
* - unknown owner / prop → `UnknownPropertyError`
|
|
18
|
+
* - owner-qualified, owner exists in two imported domains → `AmbiguousOwnerAcrossDomainsError`
|
|
19
|
+
*/
|
|
20
|
+
import { parsePropertyShortcut } from './shortcut';
|
|
21
|
+
export class UnknownPropertyError extends Error {
|
|
22
|
+
className;
|
|
23
|
+
propName;
|
|
24
|
+
name = 'UnknownPropertyError';
|
|
25
|
+
constructor(className, propName) {
|
|
26
|
+
super(`Unknown property "${propName}" on class "${className}"`);
|
|
27
|
+
this.className = className;
|
|
28
|
+
this.propName = propName;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export class AmbiguousOwnerAcrossDomainsError extends Error {
|
|
32
|
+
className;
|
|
33
|
+
ownerName;
|
|
34
|
+
domains;
|
|
35
|
+
name = 'AmbiguousOwnerAcrossDomainsError';
|
|
36
|
+
constructor(className, ownerName, domains) {
|
|
37
|
+
super(`Owner "${ownerName}" on class "${className}" exists in multiple domains — ` +
|
|
38
|
+
`${domains.map((d) => `"${d}"`).join(', ')}. Qualify with the domain prefix, ` +
|
|
39
|
+
`e.g. "${domains[0]}:${ownerName}.<propName>".`);
|
|
40
|
+
this.className = className;
|
|
41
|
+
this.ownerName = ownerName;
|
|
42
|
+
this.domains = domains;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Group a flat input record into `{ attrs, props }` per the class's property mapping.
|
|
47
|
+
*
|
|
48
|
+
* @param byClass — the per-class slice of `DomainPropertyIndex.byClass`:
|
|
49
|
+
* `ownerDomain → ownerName → propName → PropertyMapping`.
|
|
50
|
+
* @param className — the class being grouped (for error messages and class-own routing).
|
|
51
|
+
* @param ownDomain — the domain that owns `className`. Used to resolve bare keys
|
|
52
|
+
* (which must be class-own).
|
|
53
|
+
* @param flat — domain-friendly input.
|
|
54
|
+
*/
|
|
55
|
+
export function groupProperties(byClass, className, ownDomain, flat) {
|
|
56
|
+
const attrs = {};
|
|
57
|
+
const props = {};
|
|
58
|
+
for (const [rawKey, value] of Object.entries(flat)) {
|
|
59
|
+
const shortcut = parsePropertyShortcut(rawKey);
|
|
60
|
+
const mapping = resolveShortcut(byClass, className, ownDomain, rawKey, shortcut);
|
|
61
|
+
route(mapping, value, attrs, props);
|
|
62
|
+
}
|
|
63
|
+
return { attrs, props };
|
|
64
|
+
}
|
|
65
|
+
/** Resolve a parsed shortcut against the class's property index. */
|
|
66
|
+
function resolveShortcut(byClass, className, ownDomain, rawKey, shortcut) {
|
|
67
|
+
switch (shortcut.kind) {
|
|
68
|
+
case 'bare': {
|
|
69
|
+
const mapping = byClass[ownDomain]?.[className]?.[shortcut.prop];
|
|
70
|
+
if (!mapping)
|
|
71
|
+
throw new UnknownPropertyError(className, rawKey);
|
|
72
|
+
return mapping;
|
|
73
|
+
}
|
|
74
|
+
case 'domain':
|
|
75
|
+
case 'qualified': {
|
|
76
|
+
const mapping = byClass[shortcut.domain]?.[shortcut.owner]?.[shortcut.prop];
|
|
77
|
+
if (!mapping)
|
|
78
|
+
throw new UnknownPropertyError(className, rawKey);
|
|
79
|
+
return mapping;
|
|
80
|
+
}
|
|
81
|
+
case 'owner': {
|
|
82
|
+
// The same Owner name can be exported by two different imported domains;
|
|
83
|
+
// surface that as an explicit error so callers escalate to domain-qualified.
|
|
84
|
+
const matches = [];
|
|
85
|
+
for (const [domain, byOwner] of Object.entries(byClass)) {
|
|
86
|
+
const m = byOwner[shortcut.owner]?.[shortcut.prop];
|
|
87
|
+
if (m)
|
|
88
|
+
matches.push({ domain, mapping: m });
|
|
89
|
+
}
|
|
90
|
+
if (matches.length === 0)
|
|
91
|
+
throw new UnknownPropertyError(className, rawKey);
|
|
92
|
+
if (matches.length > 1) {
|
|
93
|
+
throw new AmbiguousOwnerAcrossDomainsError(className, shortcut.owner, matches.map((m) => m.domain));
|
|
94
|
+
}
|
|
95
|
+
return matches[0].mapping;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function route(mapping, value, attrs, props) {
|
|
100
|
+
if (mapping.isAttribute) {
|
|
101
|
+
attrs[mapping.propName] = value;
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const { domain, owner, propName } = mapping;
|
|
105
|
+
if (!props[domain])
|
|
106
|
+
props[domain] = {};
|
|
107
|
+
if (!props[domain][owner])
|
|
108
|
+
props[domain][owner] = {};
|
|
109
|
+
props[domain][owner][propName] = value;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../domain/accessors/group.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAMH,OAAO,EAAE,qBAAqB,EAAyB,MAAM,YAAY,CAAA;AAOzE,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAGlC,SAAS;IACT,QAAQ;IAHD,IAAI,GAA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AAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvB,MAAM,IAAI,gCAAgC,CACxC,SAAS,EACT,QAAQ,CAAC,KAAK,EACd,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAC7B,CAAA;YACH,CAAC;YACD,OAAO,OAAO,CAAC,CAAC,CAAE,CAAC,OAAO,CAAA;QAC5B,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,KAAK,CACZ,OAAwB,EACxB,KAAc,EACd,KAA8B,EAC9B,KAAiB;IAEjB,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;QACxB,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAA;QAC/B,OAAM;IACR,CAAC;IACD,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAA;IAC3C,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;QAAE,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;IACtC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAE,CAAC,KAAK,CAAC;QAAE,KAAK,CAAC,MAAM,CAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAA;IACtD,KAAK,CAAC,MAAM,CAAE,CAAC,KAAK,CAAE,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAA;AAC1C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { AmbiguousInterfaceError, AmbiguousMethodError } from './errors';
|
|
2
|
+
export type { AccessorNode, Attributes, BoundAccessorMethods, EdgeDraft, FlatProperties, GroupedProps, MethodDispatch, NodeDraft, Properties, PropsOf, Result, ValidationError, } from './types';
|
|
3
|
+
export type { MethodMapInput } from './methods';
|
|
4
|
+
export { deriveMethodCounts, createMethodCallable } from './methods';
|
|
5
|
+
export { buildAccessorNode, type NodeIdentity } from './node';
|
|
6
|
+
export { deriveInterfaceCounts } from './interface-counts';
|
|
7
|
+
export { bindAccessorMethods } from './bind';
|
|
8
|
+
export { flattenProperties, unflattenProperties } from './flatten';
|
|
9
|
+
export { groupProperties, UnknownPropertyError, AmbiguousOwnerAcrossDomainsError, type ClassPropertyIndex, } from './group';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../domain/accessors/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAExE,YAAY,EACV,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,SAAS,EACT,cAAc,EACd,YAAY,EACZ,cAAc,EACd,SAAS,EACT,UAAU,EACV,OAAO,EACP,MAAM,EACN,eAAe,GAChB,MAAM,SAAS,CAAA;AAChB,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AACpE,OAAO,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAA;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAClE,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,gCAAgC,EAChC,KAAK,kBAAkB,GACxB,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Errors
|
|
2
|
+
export { AmbiguousInterfaceError, AmbiguousMethodError } from './errors';
|
|
3
|
+
export { deriveMethodCounts, createMethodCallable } from './methods';
|
|
4
|
+
export { buildAccessorNode } from './node';
|
|
5
|
+
export { deriveInterfaceCounts } from './interface-counts';
|
|
6
|
+
export { bindAccessorMethods } from './bind';
|
|
7
|
+
export { flattenProperties, unflattenProperties } from './flatten';
|
|
8
|
+
export { groupProperties, UnknownPropertyError, AmbiguousOwnerAcrossDomainsError, } from './group';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../domain/accessors/index.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAiBxE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AACpE,OAAO,EAAE,iBAAiB,EAAqB,MAAM,QAAQ,CAAA;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAClE,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,gCAAgC,GAEjC,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface-name → owning-domains derivation for ambiguity detection.
|
|
3
|
+
*/
|
|
4
|
+
import type { DomainOrigin } from '#domain/origin';
|
|
5
|
+
/**
|
|
6
|
+
* Given a class's entry in `DomainPropertyIndex.byClass`, derive the
|
|
7
|
+
* interface-name → owning-domains map used by `buildAccessorNode` for
|
|
8
|
+
* ambiguity detection.
|
|
9
|
+
*
|
|
10
|
+
* `classProps` has shape `ownerDomain → ownerName → propName → PropertyMapping`.
|
|
11
|
+
* Class-own owners (where `isAttribute === true`) are excluded — they live
|
|
12
|
+
* under `node.attrs`, not under interface-sugar keys.
|
|
13
|
+
*/
|
|
14
|
+
export declare function deriveInterfaceCounts(classProps: Readonly<Record<string, Readonly<Record<string, Readonly<Record<string, {
|
|
15
|
+
readonly domain: DomainOrigin;
|
|
16
|
+
readonly isAttribute: boolean;
|
|
17
|
+
}>>>>>>): ReadonlyMap<string, readonly string[]>;
|
|
18
|
+
//# sourceMappingURL=interface-counts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface-counts.d.ts","sourceRoot":"","sources":["../../../domain/accessors/interface-counts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,QAAQ,CAClB,MAAM,CACJ,MAAM,EACN,QAAQ,CACN,MAAM,CACJ,MAAM,EACN,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,CAC3F,CACF,CACF,CACF,GACA,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAkBxC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface-name → owning-domains derivation for ambiguity detection.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Given a class's entry in `DomainPropertyIndex.byClass`, derive the
|
|
6
|
+
* interface-name → owning-domains map used by `buildAccessorNode` for
|
|
7
|
+
* ambiguity detection.
|
|
8
|
+
*
|
|
9
|
+
* `classProps` has shape `ownerDomain → ownerName → propName → PropertyMapping`.
|
|
10
|
+
* Class-own owners (where `isAttribute === true`) are excluded — they live
|
|
11
|
+
* under `node.attrs`, not under interface-sugar keys.
|
|
12
|
+
*/
|
|
13
|
+
export function deriveInterfaceCounts(classProps) {
|
|
14
|
+
const counts = new Map();
|
|
15
|
+
for (const [domain, byOwner] of Object.entries(classProps)) {
|
|
16
|
+
for (const [ownerName, propMap] of Object.entries(byOwner)) {
|
|
17
|
+
const sample = Object.values(propMap)[0];
|
|
18
|
+
if (!sample)
|
|
19
|
+
continue;
|
|
20
|
+
if (sample.isAttribute)
|
|
21
|
+
continue;
|
|
22
|
+
if (!counts.has(ownerName))
|
|
23
|
+
counts.set(ownerName, new Set());
|
|
24
|
+
counts.get(ownerName).add(domain);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const result = new Map();
|
|
28
|
+
for (const [name, domains] of counts) {
|
|
29
|
+
result.set(name, [...domains]);
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=interface-counts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface-counts.js","sourceRoot":"","sources":["../../../domain/accessors/interface-counts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CACnC,UAUC;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAA;IAE7C,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QAC3D,KAAK,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3D,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;YACxC,IAAI,CAAC,MAAM;gBAAE,SAAQ;YACrB,IAAI,MAAM,CAAC,WAAW;gBAAE,SAAQ;YAChC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC;gBAAE,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,GAAG,EAAE,CAAC,CAAA;YAC5D,MAAM,CAAC,GAAG,CAAC,SAAS,CAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QACpC,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,EAA6B,CAAA;IACnD,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,MAAM,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAA;IAChC,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Method callable wiring for accessor nodes.
|
|
3
|
+
*
|
|
4
|
+
* Provides the method map input shape, method count derivation for
|
|
5
|
+
* top-level ambiguity detection, and callable factory.
|
|
6
|
+
*/
|
|
7
|
+
import type { DefRef } from '@astrale-os/kernel-dsl';
|
|
8
|
+
import type { ResolvedMethod } from '#domain/compile/method/types';
|
|
9
|
+
import type { NodeId } from '#ids';
|
|
10
|
+
import type { MethodDispatch } from './types';
|
|
11
|
+
/**
|
|
12
|
+
* Pre-computed method information passed to `buildAccessorNode` when
|
|
13
|
+
* method callables should be wired onto the node.
|
|
14
|
+
*/
|
|
15
|
+
export interface MethodMapInput {
|
|
16
|
+
/**
|
|
17
|
+
* defRef (`class.X` / `interface.X`) → methodName → ResolvedMethod.
|
|
18
|
+
* Keyed by the kind-qualified ref (NOT the bare name) so a class and an
|
|
19
|
+
* interface that share a name (e.g. `Function`) each get their own bucket
|
|
20
|
+
* — no silent collision at the map level.
|
|
21
|
+
*/
|
|
22
|
+
readonly byOwner: ReadonlyMap<DefRef, ReadonlyMap<string, ResolvedMethod>>;
|
|
23
|
+
/** ownerName (bare) → domain origin that owns this definition */
|
|
24
|
+
readonly ownerDomains: ReadonlyMap<string, string>;
|
|
25
|
+
readonly dispatch: MethodDispatch;
|
|
26
|
+
readonly nodeId: NodeId;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Derive method-name → owning-defRefs map for top-level ambiguity detection.
|
|
30
|
+
*
|
|
31
|
+
* A method name that appears across multiple defRefs is ambiguous at the
|
|
32
|
+
* node's top level. The caller must use `node.TypeName.method()` or
|
|
33
|
+
* `node.$d(domain).TypeName.method()` to disambiguate.
|
|
34
|
+
*/
|
|
35
|
+
export declare function deriveMethodCounts(methodsByOwner: ReadonlyMap<DefRef, ReadonlyMap<string, ResolvedMethod>>): ReadonlyMap<string, readonly DefRef[]>;
|
|
36
|
+
/** Wrap a single method into a dispatch-bound callable. */
|
|
37
|
+
export declare function createMethodCallable(nodeId: NodeId, methodRef: string, dispatch: MethodDispatch): (args?: unknown) => Promise<unknown>;
|
|
38
|
+
//# sourceMappingURL=methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../domain/accessors/methods.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAElC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAA;IAC1E,iEAAiE;IACjE,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClD,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,GACvE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAexC;AAED,2DAA2D;AAC3D,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,cAAc,GACvB,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAEtC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Method callable wiring for accessor nodes.
|
|
3
|
+
*
|
|
4
|
+
* Provides the method map input shape, method count derivation for
|
|
5
|
+
* top-level ambiguity detection, and callable factory.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Derive method-name → owning-defRefs map for top-level ambiguity detection.
|
|
9
|
+
*
|
|
10
|
+
* A method name that appears across multiple defRefs is ambiguous at the
|
|
11
|
+
* node's top level. The caller must use `node.TypeName.method()` or
|
|
12
|
+
* `node.$d(domain).TypeName.method()` to disambiguate.
|
|
13
|
+
*/
|
|
14
|
+
export function deriveMethodCounts(methodsByOwner) {
|
|
15
|
+
const counts = new Map();
|
|
16
|
+
for (const [ownerRef, methods] of methodsByOwner) {
|
|
17
|
+
for (const methodName of methods.keys()) {
|
|
18
|
+
if (!counts.has(methodName))
|
|
19
|
+
counts.set(methodName, new Set());
|
|
20
|
+
counts.get(methodName).add(ownerRef);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const result = new Map();
|
|
24
|
+
for (const [name, refs] of counts) {
|
|
25
|
+
result.set(name, [...refs]);
|
|
26
|
+
}
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
/** Wrap a single method into a dispatch-bound callable. */
|
|
30
|
+
export function createMethodCallable(nodeId, methodRef, dispatch) {
|
|
31
|
+
return (args) => dispatch(nodeId, methodRef, args);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../../domain/accessors/methods.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA2BH;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAChC,cAAwE;IAExE,MAAM,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAA;IAE7C,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,cAAc,EAAE,CAAC;QACjD,KAAK,MAAM,UAAU,IAAI,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;YACxC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;gBAAE,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,GAAG,EAAE,CAAC,CAAA;YAC9D,MAAM,CAAC,GAAG,CAAC,UAAU,CAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QACvC,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,EAA6B,CAAA;IACnD,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,MAAM,EAAE,CAAC;QAClC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;IAC7B,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,SAAiB,EACjB,QAAwB;IAExB,OAAO,CAAC,IAAc,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;AAC9D,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accessor node builder — constructs rich nodes with $d() sugar,
|
|
3
|
+
* interface property access, and optional method callables.
|
|
4
|
+
*/
|
|
5
|
+
import type { ClassPath } from '#domain/addressing/paths';
|
|
6
|
+
import type { AbsolutePath } from '#graph/tree';
|
|
7
|
+
import type { NodeId } from '#ids';
|
|
8
|
+
import type { AccessorNode, Attributes, GroupedProps } from './types';
|
|
9
|
+
import { type MethodMapInput } from './methods';
|
|
10
|
+
/** Identity carried on every AccessorNode — a Node projected to its identity triple. */
|
|
11
|
+
export interface NodeIdentity {
|
|
12
|
+
readonly id: NodeId;
|
|
13
|
+
readonly path: AbsolutePath;
|
|
14
|
+
readonly class: ClassPath;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Build a rich accessor node from identity + split property groups.
|
|
18
|
+
*
|
|
19
|
+
* Interface sugar (`node.Named.name`) is wired for names defined by
|
|
20
|
+
* exactly one domain. Ambiguous names throw on access.
|
|
21
|
+
*
|
|
22
|
+
* When `methodMap` is provided, methods are wired as callables in
|
|
23
|
+
* their owning definition's namespace and at the top level (when unambiguous).
|
|
24
|
+
*/
|
|
25
|
+
export declare function buildAccessorNode(identity: NodeIdentity, attrs: Attributes, grouped: GroupedProps, interfaceCounts: ReadonlyMap<string, readonly string[]>, methodMap?: MethodMapInput): AccessorNode;
|
|
26
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../domain/accessors/node.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAIlC,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAGrE,OAAO,EAA4C,KAAK,cAAc,EAAE,MAAM,WAAW,CAAA;AAEzF,wFAAwF;AACxF,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,YAAY,EACrB,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,EACvD,SAAS,CAAC,EAAE,cAAc,GACzB,YAAY,CA0Gd"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accessor node builder — constructs rich nodes with $d() sugar,
|
|
3
|
+
* interface property access, and optional method callables.
|
|
4
|
+
*/
|
|
5
|
+
import { parseDefRef } from '@astrale-os/kernel-dsl';
|
|
6
|
+
import { Ref } from '#domain/addressing/refs/ref';
|
|
7
|
+
import { AmbiguousInterfaceError, AmbiguousMethodError } from './errors';
|
|
8
|
+
import { createMethodCallable, deriveMethodCounts } from './methods';
|
|
9
|
+
/**
|
|
10
|
+
* Build a rich accessor node from identity + split property groups.
|
|
11
|
+
*
|
|
12
|
+
* Interface sugar (`node.Named.name`) is wired for names defined by
|
|
13
|
+
* exactly one domain. Ambiguous names throw on access.
|
|
14
|
+
*
|
|
15
|
+
* When `methodMap` is provided, methods are wired as callables in
|
|
16
|
+
* their owning definition's namespace and at the top level (when unambiguous).
|
|
17
|
+
*/
|
|
18
|
+
export function buildAccessorNode(identity, attrs, grouped, interfaceCounts, methodMap) {
|
|
19
|
+
const node = {
|
|
20
|
+
id: identity.id,
|
|
21
|
+
path: identity.path,
|
|
22
|
+
class: identity.class,
|
|
23
|
+
attrs,
|
|
24
|
+
};
|
|
25
|
+
// Build mutable domain data from grouped properties
|
|
26
|
+
const domainData = {};
|
|
27
|
+
for (const [domain, interfaces] of Object.entries(grouped)) {
|
|
28
|
+
domainData[domain] = {};
|
|
29
|
+
for (const [iface, props] of Object.entries(interfaces)) {
|
|
30
|
+
domainData[domain][iface] = { ...props };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
// Merge method callables into domain data
|
|
34
|
+
if (methodMap) {
|
|
35
|
+
// byOwner is defRef-keyed (`class.X` / `interface.X`) so a class and an
|
|
36
|
+
// interface sharing a name (e.g. `Function`) each get their own bucket.
|
|
37
|
+
// The kind that qualifies the method ref is in the key — no per-method
|
|
38
|
+
// disambiguation needed.
|
|
39
|
+
for (const [ownerRef, methods] of methodMap.byOwner) {
|
|
40
|
+
const { kind: ownerKind, name: ownerName } = parseDefRef(ownerRef);
|
|
41
|
+
const domain = methodMap.ownerDomains.get(ownerName) ?? '';
|
|
42
|
+
if (!domainData[domain])
|
|
43
|
+
domainData[domain] = {};
|
|
44
|
+
if (!domainData[domain][ownerName])
|
|
45
|
+
domainData[domain][ownerName] = {};
|
|
46
|
+
for (const methodName of methods.keys()) {
|
|
47
|
+
domainData[domain][ownerName][methodName] = createMethodCallable(methodMap.nodeId, Ref.method(ownerKind, ownerName, methodName).toString(), methodMap.dispatch);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// $d() — always available, always unambiguous
|
|
52
|
+
node.$d = (domain) => domainData[domain] ?? {};
|
|
53
|
+
// Interface sugar — direct keys when unambiguous
|
|
54
|
+
for (const [interfaceName, domains] of interfaceCounts) {
|
|
55
|
+
if (domains.length === 1) {
|
|
56
|
+
const [soleDomain] = domains;
|
|
57
|
+
if (soleDomain !== undefined) {
|
|
58
|
+
node[interfaceName] = domainData[soleDomain]?.[interfaceName] ?? {};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
Object.defineProperty(node, interfaceName, {
|
|
63
|
+
get() {
|
|
64
|
+
throw new AmbiguousInterfaceError(interfaceName, domains);
|
|
65
|
+
},
|
|
66
|
+
enumerable: true,
|
|
67
|
+
configurable: false,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// Method-only definition sugar — definitions with methods but no properties
|
|
72
|
+
if (methodMap) {
|
|
73
|
+
for (const [ownerRef, methods] of methodMap.byOwner) {
|
|
74
|
+
const { name: ownerName } = parseDefRef(ownerRef);
|
|
75
|
+
if (ownerName in node)
|
|
76
|
+
continue;
|
|
77
|
+
if (methods.size === 0)
|
|
78
|
+
continue;
|
|
79
|
+
const domain = methodMap.ownerDomains.get(ownerName);
|
|
80
|
+
if (domain && domainData[domain]?.[ownerName]) {
|
|
81
|
+
node[ownerName] = domainData[domain][ownerName];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// Top-level method sugar — when unambiguous across owner defRefs. Both kind
|
|
85
|
+
// and bare name come from the parsed defRef key, so there is no `?? 'class'`
|
|
86
|
+
// fallback to construct: the disambiguation is structural.
|
|
87
|
+
const methodCounts = deriveMethodCounts(methodMap.byOwner);
|
|
88
|
+
for (const [methodName, owners] of methodCounts) {
|
|
89
|
+
if (methodName in node)
|
|
90
|
+
continue;
|
|
91
|
+
if (owners.length === 1) {
|
|
92
|
+
const [soleOwnerRef] = owners;
|
|
93
|
+
if (soleOwnerRef !== undefined) {
|
|
94
|
+
const { kind, name } = parseDefRef(soleOwnerRef);
|
|
95
|
+
node[methodName] = createMethodCallable(methodMap.nodeId, Ref.method(kind, name, methodName).toString(), methodMap.dispatch);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
Object.defineProperty(node, methodName, {
|
|
100
|
+
get() {
|
|
101
|
+
throw new AmbiguousMethodError(methodName, [...owners]);
|
|
102
|
+
},
|
|
103
|
+
enumerable: true,
|
|
104
|
+
configurable: false,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return node;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../domain/accessors/node.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAOpD,OAAO,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAA;AAIjD,OAAO,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;gBACH,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE;oBACtC,GAAG;wBACD,MAAM,IAAI,oBAAoB,CAAC,UAAU,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAA;oBACzD,CAAC;oBACD,UAAU,EAAE,IAAI;oBAChB,YAAY,EAAE,KAAK;iBACpB,CAAC,CAAA;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAoB,CAAA;AAC7B,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Property shortcut grammar — the domain-friendly user-input format for
|
|
3
|
+
* addressing a property on a class.
|
|
4
|
+
*
|
|
5
|
+
* Four shapes:
|
|
6
|
+
* - bare — `'color'` (target inferred from class)
|
|
7
|
+
* - owner — `'Tag.color'` / `'Named.name'` (owner explicit, domain inferred)
|
|
8
|
+
* - domain — `'kernel.astrale.ai:Named.name'` (owner + domain)
|
|
9
|
+
* - qualified — `'kernel.astrale.ai:interface.Named.property.name'` (fully-qualified ref —
|
|
10
|
+
* same shape as `K.<Owner>.<prop>.key`)
|
|
11
|
+
*
|
|
12
|
+
* `qualified` accepts the exact string produced by `K.*.key` so callers can use
|
|
13
|
+
* the typed accessor at mutation sites:
|
|
14
|
+
*
|
|
15
|
+
* await graph.updateNode({ ..., props: { [K.Identity.iss.key]: iss } })
|
|
16
|
+
*
|
|
17
|
+
* Grammar tokens are reused from their canonical owners: `:` from key
|
|
18
|
+
* construction (`DOMAIN_SEP`), `.` from ref segmentation (`SEGMENT_SEP`),
|
|
19
|
+
* and the namespace set + `property` marker from Ref via `Ref.parse`.
|
|
20
|
+
*
|
|
21
|
+
* NOTE — publishing the qualified-ref shape as an input grammar means any
|
|
22
|
+
* future change to that format (the `<namespace>.<Owner>.property.<prop>`
|
|
23
|
+
* layout owned by Ref) becomes a breaking change for callers. Change the
|
|
24
|
+
* parser and `K.*.key` together.
|
|
25
|
+
*/
|
|
26
|
+
export type PropertyShortcut = {
|
|
27
|
+
readonly kind: 'bare';
|
|
28
|
+
readonly prop: string;
|
|
29
|
+
} | {
|
|
30
|
+
readonly kind: 'owner';
|
|
31
|
+
readonly owner: string;
|
|
32
|
+
readonly prop: string;
|
|
33
|
+
} | {
|
|
34
|
+
readonly kind: 'domain';
|
|
35
|
+
readonly domain: string;
|
|
36
|
+
readonly owner: string;
|
|
37
|
+
readonly prop: string;
|
|
38
|
+
} | {
|
|
39
|
+
readonly kind: 'qualified';
|
|
40
|
+
readonly domain: string;
|
|
41
|
+
readonly owner: string;
|
|
42
|
+
readonly prop: string;
|
|
43
|
+
};
|
|
44
|
+
export declare class PropertyShortcutParseError extends Error {
|
|
45
|
+
readonly raw: string;
|
|
46
|
+
readonly name = "PropertyShortcutParseError";
|
|
47
|
+
constructor(raw: string, reason: string);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Parse a property shortcut into its discriminated form.
|
|
51
|
+
*
|
|
52
|
+
* Throws `PropertyShortcutParseError` only on structurally invalid inputs
|
|
53
|
+
* (empty owner / prop after a separator, malformed storage key). Existence of
|
|
54
|
+
* the owner / property is validated by the caller against the property index.
|
|
55
|
+
*/
|
|
56
|
+
export declare function parsePropertyShortcut(raw: string): PropertyShortcut;
|
|
57
|
+
//# sourceMappingURL=shortcut.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut.d.ts","sourceRoot":"","sources":["../../../domain/accessors/shortcut.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAMH,MAAM,MAAM,gBAAgB,GACxB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACzE;IACE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB,CAAA;AAEL,qBAAa,0BAA2B,SAAQ,KAAK;IAGjD,QAAQ,CAAC,GAAG,EAAE,MAAM;IAFtB,SAAkB,IAAI,gCAA+B;IACrD,YACW,GAAG,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EAGf;CACF;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CA2CnE"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Property shortcut grammar — the domain-friendly user-input format for
|
|
3
|
+
* addressing a property on a class.
|
|
4
|
+
*
|
|
5
|
+
* Four shapes:
|
|
6
|
+
* - bare — `'color'` (target inferred from class)
|
|
7
|
+
* - owner — `'Tag.color'` / `'Named.name'` (owner explicit, domain inferred)
|
|
8
|
+
* - domain — `'kernel.astrale.ai:Named.name'` (owner + domain)
|
|
9
|
+
* - qualified — `'kernel.astrale.ai:interface.Named.property.name'` (fully-qualified ref —
|
|
10
|
+
* same shape as `K.<Owner>.<prop>.key`)
|
|
11
|
+
*
|
|
12
|
+
* `qualified` accepts the exact string produced by `K.*.key` so callers can use
|
|
13
|
+
* the typed accessor at mutation sites:
|
|
14
|
+
*
|
|
15
|
+
* await graph.updateNode({ ..., props: { [K.Identity.iss.key]: iss } })
|
|
16
|
+
*
|
|
17
|
+
* Grammar tokens are reused from their canonical owners: `:` from key
|
|
18
|
+
* construction (`DOMAIN_SEP`), `.` from ref segmentation (`SEGMENT_SEP`),
|
|
19
|
+
* and the namespace set + `property` marker from Ref via `Ref.parse`.
|
|
20
|
+
*
|
|
21
|
+
* NOTE — publishing the qualified-ref shape as an input grammar means any
|
|
22
|
+
* future change to that format (the `<namespace>.<Owner>.property.<prop>`
|
|
23
|
+
* layout owned by Ref) becomes a breaking change for callers. Change the
|
|
24
|
+
* parser and `K.*.key` together.
|
|
25
|
+
*/
|
|
26
|
+
import { DOMAIN_SEP } from '#domain/addressing/grammar/tokens';
|
|
27
|
+
import { isNamespace } from '#domain/addressing/namespace';
|
|
28
|
+
import { Ref, SEGMENT_SEP } from '#domain/addressing/refs/ref';
|
|
29
|
+
export class PropertyShortcutParseError extends Error {
|
|
30
|
+
raw;
|
|
31
|
+
name = 'PropertyShortcutParseError';
|
|
32
|
+
constructor(raw, reason) {
|
|
33
|
+
super(`Invalid property shortcut "${raw}": ${reason}`);
|
|
34
|
+
this.raw = raw;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Parse a property shortcut into its discriminated form.
|
|
39
|
+
*
|
|
40
|
+
* Throws `PropertyShortcutParseError` only on structurally invalid inputs
|
|
41
|
+
* (empty owner / prop after a separator, malformed storage key). Existence of
|
|
42
|
+
* the owner / property is validated by the caller against the property index.
|
|
43
|
+
*/
|
|
44
|
+
export function parsePropertyShortcut(raw) {
|
|
45
|
+
const colonIdx = raw.indexOf(DOMAIN_SEP);
|
|
46
|
+
if (colonIdx !== -1) {
|
|
47
|
+
const domain = raw.slice(0, colonIdx);
|
|
48
|
+
const tail = raw.slice(colonIdx + 1);
|
|
49
|
+
if (domain.length === 0)
|
|
50
|
+
throw new PropertyShortcutParseError(raw, 'empty domain');
|
|
51
|
+
// Discriminate `qualified` vs `domain`: the qualified form starts with a
|
|
52
|
+
// namespace token (`class` | `interface` | `core`). Legitimate Owner names
|
|
53
|
+
// are PascalCase and never collide with these lowercase markers.
|
|
54
|
+
const firstDot = tail.indexOf(SEGMENT_SEP);
|
|
55
|
+
if (firstDot !== -1 && isNamespace(tail.slice(0, firstDot))) {
|
|
56
|
+
const ref = Ref.tryParse(tail);
|
|
57
|
+
if (!ref || !ref.isProperty) {
|
|
58
|
+
throw new PropertyShortcutParseError(raw, 'qualified ref must address a property (expected `<namespace>.<Owner>.property.<prop>`)');
|
|
59
|
+
}
|
|
60
|
+
return { kind: 'qualified', domain, owner: ref.member, prop: ref.child };
|
|
61
|
+
}
|
|
62
|
+
const tailDot = firstDot;
|
|
63
|
+
if (tailDot === -1)
|
|
64
|
+
throw new PropertyShortcutParseError(raw, 'missing owner segment');
|
|
65
|
+
const owner = tail.slice(0, tailDot);
|
|
66
|
+
const prop = tail.slice(tailDot + 1);
|
|
67
|
+
if (owner.length === 0)
|
|
68
|
+
throw new PropertyShortcutParseError(raw, 'empty owner');
|
|
69
|
+
if (prop.length === 0)
|
|
70
|
+
throw new PropertyShortcutParseError(raw, 'empty prop');
|
|
71
|
+
return { kind: 'domain', domain, owner, prop };
|
|
72
|
+
}
|
|
73
|
+
const dotIdx = raw.indexOf(SEGMENT_SEP);
|
|
74
|
+
if (dotIdx === -1) {
|
|
75
|
+
if (raw.length === 0)
|
|
76
|
+
throw new PropertyShortcutParseError(raw, 'empty key');
|
|
77
|
+
return { kind: 'bare', prop: raw };
|
|
78
|
+
}
|
|
79
|
+
const owner = raw.slice(0, dotIdx);
|
|
80
|
+
const prop = raw.slice(dotIdx + 1);
|
|
81
|
+
if (owner.length === 0)
|
|
82
|
+
throw new PropertyShortcutParseError(raw, 'empty owner');
|
|
83
|
+
if (prop.length === 0)
|
|
84
|
+
throw new PropertyShortcutParseError(raw, 'empty prop');
|
|
85
|
+
return { kind: 'owner', owner, prop };
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=shortcut.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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