@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,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Raised when a string cannot be parsed into a valid path. Carries the
|
|
3
|
+
* original input alongside one or more lex/parse-level diagnostics.
|
|
4
|
+
*/
|
|
5
|
+
export class PathParseError extends Error {
|
|
6
|
+
name = 'PathParseError';
|
|
7
|
+
input;
|
|
8
|
+
errors;
|
|
9
|
+
constructor(input, errors) {
|
|
10
|
+
super(`Failed to parse path "${input}": ${errors.map((e) => e.message).join('; ')}`);
|
|
11
|
+
this.input = input;
|
|
12
|
+
this.errors = errors;
|
|
13
|
+
}
|
|
14
|
+
/** Alias for `input` — older callsites read `error.raw`. */
|
|
15
|
+
get raw() {
|
|
16
|
+
return this.input;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Raised when a node cannot be identified into a typed path — the
|
|
21
|
+
* walk-back terminated early or hit a graph state that violates the
|
|
22
|
+
* scheme's anchoring-edge invariant.
|
|
23
|
+
*/
|
|
24
|
+
export class IdentifyError extends Error {
|
|
25
|
+
name = 'IdentifyError';
|
|
26
|
+
reason;
|
|
27
|
+
constructor(message, reason = 'walk-back failed') {
|
|
28
|
+
super(message);
|
|
29
|
+
this.reason = reason;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export class PathNotFoundError extends Error {
|
|
33
|
+
path;
|
|
34
|
+
failedAtStep;
|
|
35
|
+
context;
|
|
36
|
+
name = 'PathNotFoundError';
|
|
37
|
+
constructor(path, failedAtStep, context) {
|
|
38
|
+
const hint = failedAtStep.length > 24 || /\s/.test(failedAtStep) ? ` — ${failedAtStep}` : '';
|
|
39
|
+
super(`Path not found: "${path.raw}"${context ? ` (from context ${context})` : ''}${hint}`);
|
|
40
|
+
this.path = path;
|
|
41
|
+
this.failedAtStep = failedAtStep;
|
|
42
|
+
this.context = context;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export class AmbiguousPathError extends Error {
|
|
46
|
+
path;
|
|
47
|
+
name = 'AmbiguousPathError';
|
|
48
|
+
constructor(path) {
|
|
49
|
+
super(`Path is ambiguous: "${path.raw}"`);
|
|
50
|
+
this.path = path;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export class MissingContextError extends Error {
|
|
54
|
+
reason;
|
|
55
|
+
name = 'MissingContextError';
|
|
56
|
+
constructor(reason) {
|
|
57
|
+
super(`Missing path context: ${reason}`);
|
|
58
|
+
this.reason = reason;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../graph/nav/path/errors.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,OAAO,cAAe,SAAQ,KAAK;IACrB,IAAI,GAAG,gBAAgB,CAAA;IAChC,KAAK,CAAQ;IACb,MAAM,CAA4B;IAE3C,YAAY,KAAa,EAAE,MAAkC;QAC3D,KAAK,CAAC,yBAAyB,KAAK,MAAM,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACpF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,4DAA4D;IAC5D,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,KAAK,CAAA;IACnB,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACpB,IAAI,GAAG,eAAe,CAAA;IAC/B,MAAM,CAAQ;IAEvB,YAAY,OAAe,EAAE,MAAM,GAAG,kBAAkB;QACtD,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAGxB,IAAI;IACJ,YAAY;IACZ,OAAO;IAJP,IAAI,GAAG,mBAAmB,CAAA;IAC5C,YACkB,IAAqB,EACrB,YAAoB,EACpB,OAAgB;QAEhC,MAAM,IAAI,GAAG,YAAY,CAAC,MAAM,GAAG,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;QAC5F,KAAK,CAAC,oBAAoB,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,kBAAkB,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,CAAA;oBAL3E,IAAI;4BACJ,YAAY;uBACZ,OAAO;IAIzB,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAEf,IAAI;IADd,IAAI,GAAG,oBAAoB,CAAA;IAC7C,YAA4B,IAAqB;QAC/C,KAAK,CAAC,uBAAuB,IAAI,CAAC,GAAG,GAAG,CAAC,CAAA;oBADf,IAAI;IAEhC,CAAC;CACF;AAED,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAEhB,MAAM;IADhB,IAAI,GAAG,qBAAqB,CAAA;IAC9C,YAA4B,MAAc;QACxC,KAAK,CAAC,yBAAyB,MAAM,EAAE,CAAC,CAAA;sBADd,MAAM;IAElC,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { Path, toPath } from './path';
|
|
2
|
+
export { parsePath, safeParsePath, type ParsePathResult } from './parse';
|
|
3
|
+
export type { Step, Anchor, Traversal } from '../ast/step';
|
|
4
|
+
export { OUTBOUND, INBOUND, ROOT_ANCHOR, idAnchor, isRootAnchor } from '../ast/step';
|
|
5
|
+
export { reverseStep, reverseSteps, stepsEqual } from '../ast/step/reverse';
|
|
6
|
+
export type { Predicate, PropertyPredicate, AndPredicate, OrPredicate, NotPredicate, PredicateOp, PredicateScope, } from '../ast/predicate/types';
|
|
7
|
+
export { IdPath, idPathType, registerIdPath } from './kinds/id-path';
|
|
8
|
+
export type { PathType } from './kinds/path-type';
|
|
9
|
+
export { PathTypeRegistry } from './kinds/registry';
|
|
10
|
+
export { walkChain, matchesChain, chainSpan } from './kinds/chain';
|
|
11
|
+
export { buildPath } from './build';
|
|
12
|
+
export { serializeStep, serializeSteps, serializeStepCore } from '../serialize/steps';
|
|
13
|
+
export { traversalFromHop, reconstructSteps } from '../scheme/slug';
|
|
14
|
+
export { PathParseError, IdentifyError, PathNotFoundError, AmbiguousPathError, MissingContextError, } from './errors';
|
|
15
|
+
export type { Slug } from '../ast/slug';
|
|
16
|
+
export { slugSchema, SLUG_PROPERTY } from '../ast/slug';
|
|
17
|
+
export { pathSchema, idPathSchema, pathLike, PathValidationError } from './zod';
|
|
18
|
+
export type { PathCtor, PathValidationErrorKind, PathValidationIssue } from './zod';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../graph/nav/path/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAGxE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAG3E,YAAY,EACV,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,WAAW,EACX,cAAc,GACf,MAAM,wBAAwB,CAAA;AAG/B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGpE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAGrF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGnE,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,UAAU,CAAA;AAGjB,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGvD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAC/E,YAAY,EAAE,QAAQ,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// ─── Path (base class) + parsing entry points ──────────────
|
|
2
|
+
export { Path, toPath } from './path';
|
|
3
|
+
export { parsePath, safeParsePath } from './parse';
|
|
4
|
+
export { OUTBOUND, INBOUND, ROOT_ANCHOR, idAnchor, isRootAnchor } from '../ast/step';
|
|
5
|
+
export { reverseStep, reverseSteps, stepsEqual } from '../ast/step/reverse';
|
|
6
|
+
// ─── Id path ───────────────────────────────────────────────
|
|
7
|
+
export { IdPath, idPathType, registerIdPath } from './kinds/id-path';
|
|
8
|
+
export { PathTypeRegistry } from './kinds/registry';
|
|
9
|
+
export { walkChain, matchesChain, chainSpan } from './kinds/chain';
|
|
10
|
+
export { buildPath } from './build';
|
|
11
|
+
export { serializeStep, serializeSteps, serializeStepCore } from '../serialize/steps';
|
|
12
|
+
// ─── Slug-array convergence (shared with cypher backend) ──
|
|
13
|
+
export { traversalFromHop, reconstructSteps } from '../scheme/slug';
|
|
14
|
+
// ─── Errors ────────────────────────────────────────────────
|
|
15
|
+
export { PathParseError, IdentifyError, PathNotFoundError, AmbiguousPathError, MissingContextError, } from './errors';
|
|
16
|
+
export { slugSchema, SLUG_PROPERTY } from '../ast/slug';
|
|
17
|
+
// ─── Zod factories ─────────────────────────────────────────
|
|
18
|
+
export { pathSchema, idPathSchema, pathLike, PathValidationError } from './zod';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../graph/nav/path/index.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAwB,MAAM,SAAS,CAAA;AAIxE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAa3E,8DAA8D;AAC9D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAIpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAErF,6DAA6D;AAC7D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEnE,8DAA8D;AAC9D,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,UAAU,CAAA;AAIjB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEvD,8DAA8D;AAC9D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { GraphView } from '#graph';
|
|
2
|
+
import type { Node } from '#graph/node/node';
|
|
3
|
+
import type { Step } from '../../ast/step';
|
|
4
|
+
import type { SchemeSegment } from '../../scheme/segment';
|
|
5
|
+
import type { PathType } from './path-type';
|
|
6
|
+
/**
|
|
7
|
+
* Match Step[] against a segment chain: each segment claims a
|
|
8
|
+
* contiguous run, segments are tried left-to-right, and the steps must
|
|
9
|
+
* be fully exhausted. Takes raw segments so PathType factories can
|
|
10
|
+
* call it without a PathType instance in scope.
|
|
11
|
+
*/
|
|
12
|
+
export declare function matchesChain(segments: readonly SchemeSegment[], steps: readonly Step[]): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Total steps a segment chain collectively consumes against a Step[].
|
|
15
|
+
* Used by {@link PathTypeRegistry.detect} as the specificity
|
|
16
|
+
* tiebreaker — types whose segments cover more steps are preferred.
|
|
17
|
+
*/
|
|
18
|
+
export declare function chainSpan(segments: readonly SchemeSegment[], steps: readonly Step[]): number;
|
|
19
|
+
/**
|
|
20
|
+
* Walk a node back through a PathType's segment chain (target → anchor)
|
|
21
|
+
* and lift the harvested slugs into the IR `Step[]` the forward
|
|
22
|
+
* direction would have parsed.
|
|
23
|
+
*
|
|
24
|
+
* Two stages:
|
|
25
|
+
* 1. {@link walkSlugs} — physical walk via the {@link GraphView},
|
|
26
|
+
* producing the same flat slug array the cypher backend's CASE
|
|
27
|
+
* expression projects (single-hop slugs leaf-to-anchor, then
|
|
28
|
+
* recursive-hop slugs leaf-to-root).
|
|
29
|
+
* 2. {@link reconstructSteps} — shared with the cypher backend, lifts
|
|
30
|
+
* the slug array back into `Step[]` using the PathType's segment
|
|
31
|
+
* chain.
|
|
32
|
+
*
|
|
33
|
+
* The structural symmetry with the cypher backend lives at the slug
|
|
34
|
+
* array boundary: both backends harvest one in their own execution
|
|
35
|
+
* model and converge on `reconstructSteps`.
|
|
36
|
+
*/
|
|
37
|
+
export declare function walkChain(type: PathType, target: Node, graph: GraphView): readonly Step[];
|
|
38
|
+
//# sourceMappingURL=chain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAE5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAO3C;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,EAAE,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,OAAO,CAQhG;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,EAAE,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,MAAM,CAQ5F;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,SAAS,IAAI,EAAE,CAEzF"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { reconstructSteps } from '../../scheme/slug';
|
|
2
|
+
import { span } from '../../scheme/span';
|
|
3
|
+
import { walk } from '../../scheme/walk';
|
|
4
|
+
import { IdentifyError } from '../errors';
|
|
5
|
+
/**
|
|
6
|
+
* Match Step[] against a segment chain: each segment claims a
|
|
7
|
+
* contiguous run, segments are tried left-to-right, and the steps must
|
|
8
|
+
* be fully exhausted. Takes raw segments so PathType factories can
|
|
9
|
+
* call it without a PathType instance in scope.
|
|
10
|
+
*/
|
|
11
|
+
export function matchesChain(segments, steps) {
|
|
12
|
+
let offset = 0;
|
|
13
|
+
for (const seg of segments) {
|
|
14
|
+
const n = span(seg, steps, offset);
|
|
15
|
+
if (n === 0)
|
|
16
|
+
return false;
|
|
17
|
+
offset += n;
|
|
18
|
+
}
|
|
19
|
+
return offset === steps.length;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Total steps a segment chain collectively consumes against a Step[].
|
|
23
|
+
* Used by {@link PathTypeRegistry.detect} as the specificity
|
|
24
|
+
* tiebreaker — types whose segments cover more steps are preferred.
|
|
25
|
+
*/
|
|
26
|
+
export function chainSpan(segments, steps) {
|
|
27
|
+
let offset = 0;
|
|
28
|
+
for (const seg of segments) {
|
|
29
|
+
const n = span(seg, steps, offset);
|
|
30
|
+
if (n === 0)
|
|
31
|
+
return 0;
|
|
32
|
+
offset += n;
|
|
33
|
+
}
|
|
34
|
+
return offset;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Walk a node back through a PathType's segment chain (target → anchor)
|
|
38
|
+
* and lift the harvested slugs into the IR `Step[]` the forward
|
|
39
|
+
* direction would have parsed.
|
|
40
|
+
*
|
|
41
|
+
* Two stages:
|
|
42
|
+
* 1. {@link walkSlugs} — physical walk via the {@link GraphView},
|
|
43
|
+
* producing the same flat slug array the cypher backend's CASE
|
|
44
|
+
* expression projects (single-hop slugs leaf-to-anchor, then
|
|
45
|
+
* recursive-hop slugs leaf-to-root).
|
|
46
|
+
* 2. {@link reconstructSteps} — shared with the cypher backend, lifts
|
|
47
|
+
* the slug array back into `Step[]` using the PathType's segment
|
|
48
|
+
* chain.
|
|
49
|
+
*
|
|
50
|
+
* The structural symmetry with the cypher backend lives at the slug
|
|
51
|
+
* array boundary: both backends harvest one in their own execution
|
|
52
|
+
* model and converge on `reconstructSteps`.
|
|
53
|
+
*/
|
|
54
|
+
export function walkChain(type, target, graph) {
|
|
55
|
+
return reconstructSteps(type, walkSlugs(type, target, graph));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Harvest the flat slug array a PathType's segment chain would produce
|
|
59
|
+
* for `target`. Order matches the cypher walker's CASE emission so
|
|
60
|
+
* `reconstructSteps` is the single decoding site for both backends.
|
|
61
|
+
*
|
|
62
|
+
* Throws {@link IdentifyError} when a segment's predecessor goes null
|
|
63
|
+
* before the outermost segment runs — that would mean the scheme's
|
|
64
|
+
* anchoring-edge invariant was violated mid-walk.
|
|
65
|
+
*/
|
|
66
|
+
function walkSlugs(type, target, graph) {
|
|
67
|
+
const linear = [];
|
|
68
|
+
const tree = [];
|
|
69
|
+
let cursor = target;
|
|
70
|
+
for (let i = type.segments.length - 1; i >= 0; i--) {
|
|
71
|
+
if (cursor === null) {
|
|
72
|
+
throw new IdentifyError(`Walk-back terminated early in ${type.name}: segment ${i} (${type.segments[i].name}) has no source node`);
|
|
73
|
+
}
|
|
74
|
+
const seg = type.segments[i];
|
|
75
|
+
const r = walk(seg, cursor, graph);
|
|
76
|
+
if (seg.kind === 'single')
|
|
77
|
+
linear.push(...r.slugs);
|
|
78
|
+
else
|
|
79
|
+
tree.push(...r.slugs);
|
|
80
|
+
cursor = r.predecessor;
|
|
81
|
+
}
|
|
82
|
+
return [...linear, ...tree];
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/chain.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkC,EAAE,KAAsB;IACrF,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAClC,IAAI,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAA;QACzB,MAAM,IAAI,CAAC,CAAA;IACb,CAAC;IACD,OAAO,MAAM,KAAK,KAAK,CAAC,MAAM,CAAA;AAChC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,QAAkC,EAAE,KAAsB;IAClF,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAClC,IAAI,CAAC,KAAK,CAAC;YAAE,OAAO,CAAC,CAAA;QACrB,MAAM,IAAI,CAAC,CAAA;IACb,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,SAAS,CAAC,IAAc,EAAE,MAAY,EAAE,KAAgB;IACtE,OAAO,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;AAC/D,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,SAAS,CAAC,IAAc,EAAE,MAAY,EAAE,KAAgB;IAC/D,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,MAAM,IAAI,GAAa,EAAE,CAAA;IACzB,IAAI,MAAM,GAAuB,MAAM,CAAA;IACvC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QACnD,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACpB,MAAM,IAAI,aAAa,CACrB,iCAAiC,IAAI,CAAC,IAAI,aAAa,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAE,CAAC,IAAI,sBAAsB,CAC1G,CAAA;QACH,CAAC;QACD,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAE,CAAA;QAC7B,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;QAClC,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ;YAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;;YAC7C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;QAC1B,MAAM,GAAG,CAAC,CAAC,WAAW,CAAA;IACxB,CAAC;IACD,OAAO,CAAC,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;AAC7B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { NodeId } from '#ids';
|
|
2
|
+
import type { Step } from '../../ast/step';
|
|
3
|
+
import type { PathType } from './path-type';
|
|
4
|
+
import { Path } from '../path';
|
|
5
|
+
/**
|
|
6
|
+
* Direct node reference by id — `@<nodeId>`.
|
|
7
|
+
*
|
|
8
|
+
* The simplest typed path: zero traversal, one anchor. Always
|
|
9
|
+
* absolute. The `@` token is core grammar — no GrammarExtension is
|
|
10
|
+
* needed; the parser handles it directly.
|
|
11
|
+
*/
|
|
12
|
+
export declare class IdPath extends Path {
|
|
13
|
+
readonly id: NodeId;
|
|
14
|
+
constructor(steps: readonly Step[], raw: string, id: NodeId);
|
|
15
|
+
/** @internal Narrow a base Path into IdPath without re-parsing. */
|
|
16
|
+
static _fromPath(path: Path): IdPath;
|
|
17
|
+
static parse(raw: string): IdPath;
|
|
18
|
+
static tryParse(raw: string): IdPath | null;
|
|
19
|
+
static from(id: NodeId): IdPath;
|
|
20
|
+
get isRelative(): false;
|
|
21
|
+
equals(other: Path): boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The PathType for IdPath. Zero segments — the anchor is not an
|
|
25
|
+
* anchoring edge, it's a direct node pointer. `matches` checks the
|
|
26
|
+
* step shape directly. `build` extracts the id from the anchor step.
|
|
27
|
+
*
|
|
28
|
+
* Excludes the implicit-root anchor (`__SYSTEM__`) — a path with a
|
|
29
|
+
* single root anchor is the empty AbsolutePath (`/`), not an IdPath.
|
|
30
|
+
*
|
|
31
|
+
* Lowest specificity in the registry: only matches when no other type
|
|
32
|
+
* does. Enforced by the registry's "longest segment chain wins" rule
|
|
33
|
+
* (zero segments = lowest specificity).
|
|
34
|
+
*/
|
|
35
|
+
export declare const idPathType: PathType<IdPath>;
|
|
36
|
+
/**
|
|
37
|
+
* Wire IdPath into the PathTypeRegistry.
|
|
38
|
+
*
|
|
39
|
+
* No GrammarExtension or SchemeSegment to register — `@` is core
|
|
40
|
+
* grammar, IdPath has no anchoring edge. The PathType is the only
|
|
41
|
+
* artifact that needs to opt into the registry.
|
|
42
|
+
*/
|
|
43
|
+
export declare function registerIdPath(): void;
|
|
44
|
+
//# sourceMappingURL=id-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id-path.d.ts","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/id-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAElC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAK3C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B;;;;;;GAMG;AACH,qBAAa,MAAO,SAAQ,IAAI;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IAEnB,YAAY,KAAK,EAAE,SAAS,IAAI,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAG1D;IAID,mEAAmE;IACnE,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAQnC;IAID,OAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzC;IAED,OAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMnD;IAED,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE9B;IAED,IAAI,UAAU,IAAI,KAAK,CAEtB;IAEQ,MAAM,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO,CAGpC;CACF;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAqBvC,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAErC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { idAnchor, isRootAnchor } from '../../ast/step';
|
|
2
|
+
import { PathParseError } from '../errors';
|
|
3
|
+
import { parsePath } from '../parse';
|
|
4
|
+
import { Path } from '../path';
|
|
5
|
+
import { PathTypeRegistry } from './registry';
|
|
6
|
+
/**
|
|
7
|
+
* Direct node reference by id — `@<nodeId>`.
|
|
8
|
+
*
|
|
9
|
+
* The simplest typed path: zero traversal, one anchor. Always
|
|
10
|
+
* absolute. The `@` token is core grammar — no GrammarExtension is
|
|
11
|
+
* needed; the parser handles it directly.
|
|
12
|
+
*/
|
|
13
|
+
export class IdPath extends Path {
|
|
14
|
+
id;
|
|
15
|
+
constructor(steps, raw, id) {
|
|
16
|
+
super(steps, raw);
|
|
17
|
+
this.id = id;
|
|
18
|
+
}
|
|
19
|
+
// ─── Internal hooks ──────────────────────────────────────
|
|
20
|
+
/** @internal Narrow a base Path into IdPath without re-parsing. */
|
|
21
|
+
static _fromPath(path) {
|
|
22
|
+
const step = path.steps[0];
|
|
23
|
+
if (path.steps.length !== 1 || !step || step.kind !== 'anchor') {
|
|
24
|
+
throw new PathParseError(path.raw, [
|
|
25
|
+
{ kind: 'not-id', message: 'IdPath requires a single anchor step', position: 0 },
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
return new IdPath(path.steps, path.raw, step.id);
|
|
29
|
+
}
|
|
30
|
+
// ─── Static factories ────────────────────────────────────
|
|
31
|
+
static parse(raw) {
|
|
32
|
+
const p = parsePath(raw);
|
|
33
|
+
if (!(p instanceof IdPath)) {
|
|
34
|
+
throw new PathParseError(raw, [
|
|
35
|
+
{ kind: 'not-id', message: 'Path is not an id reference', position: 0 },
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
return p;
|
|
39
|
+
}
|
|
40
|
+
static tryParse(raw) {
|
|
41
|
+
try {
|
|
42
|
+
return IdPath.parse(raw);
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
static from(id) {
|
|
49
|
+
return new IdPath([idAnchor(id)], `@${id}`, id);
|
|
50
|
+
}
|
|
51
|
+
get isRelative() {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
equals(other) {
|
|
55
|
+
if (!(other instanceof IdPath))
|
|
56
|
+
return false;
|
|
57
|
+
return this.id === other.id;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The PathType for IdPath. Zero segments — the anchor is not an
|
|
62
|
+
* anchoring edge, it's a direct node pointer. `matches` checks the
|
|
63
|
+
* step shape directly. `build` extracts the id from the anchor step.
|
|
64
|
+
*
|
|
65
|
+
* Excludes the implicit-root anchor (`__SYSTEM__`) — a path with a
|
|
66
|
+
* single root anchor is the empty AbsolutePath (`/`), not an IdPath.
|
|
67
|
+
*
|
|
68
|
+
* Lowest specificity in the registry: only matches when no other type
|
|
69
|
+
* does. Enforced by the registry's "longest segment chain wins" rule
|
|
70
|
+
* (zero segments = lowest specificity).
|
|
71
|
+
*/
|
|
72
|
+
export const idPathType = {
|
|
73
|
+
name: 'IdPath',
|
|
74
|
+
class: null,
|
|
75
|
+
segments: [],
|
|
76
|
+
matches(steps) {
|
|
77
|
+
if (steps.length !== 1)
|
|
78
|
+
return false;
|
|
79
|
+
const head = steps[0];
|
|
80
|
+
if (!head || head.kind !== 'anchor')
|
|
81
|
+
return false;
|
|
82
|
+
return !isRootAnchor(head);
|
|
83
|
+
},
|
|
84
|
+
build(steps, raw) {
|
|
85
|
+
const step = steps[0];
|
|
86
|
+
if (steps.length !== 1 || !step || step.kind !== 'anchor') {
|
|
87
|
+
throw new PathParseError(raw, [
|
|
88
|
+
{ kind: 'not-id', message: 'IdPath requires a single anchor step', position: 0 },
|
|
89
|
+
]);
|
|
90
|
+
}
|
|
91
|
+
return new IdPath(steps, raw || `@${step.id}`, step.id);
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Wire IdPath into the PathTypeRegistry.
|
|
96
|
+
*
|
|
97
|
+
* No GrammarExtension or SchemeSegment to register — `@` is core
|
|
98
|
+
* grammar, IdPath has no anchoring edge. The PathType is the only
|
|
99
|
+
* artifact that needs to opt into the registry.
|
|
100
|
+
*/
|
|
101
|
+
export function registerIdPath() {
|
|
102
|
+
PathTypeRegistry.register(idPathType);
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=id-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id-path.js","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/id-path.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;GAMG;AACH,MAAM,OAAO,MAAO,SAAQ,IAAI;IACrB,EAAE,CAAQ;IAEnB,YAAY,KAAsB,EAAE,GAAW,EAAE,EAAU;QACzD,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;QACjB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IACd,CAAC;IAED,4DAA4D;IAE5D,mEAAmE;IACnE,MAAM,CAAC,SAAS,CAAC,IAAU;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QAC1B,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC/D,MAAM,IAAI,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,sCAAsC,EAAE,QAAQ,EAAE,CAAC,EAAE;aACjF,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;IAClD,CAAC;IAED,4DAA4D;IAE5D,MAAM,CAAU,KAAK,CAAC,GAAW;QAC/B,MAAM,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;QACxB,IAAI,CAAC,CAAC,CAAC,YAAY,MAAM,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,cAAc,CAAC,GAAG,EAAE;gBAC5B,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EAAE,CAAC,EAAE;aACxE,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,CAAC,CAAA;IACV,CAAC;IAED,MAAM,CAAU,QAAQ,CAAC,GAAW;QAClC,IAAI,CAAC;YACH,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAC1B,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,EAAU;QACpB,OAAO,IAAI,MAAM,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;IACjD,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,KAAK,CAAA;IACd,CAAC;IAEQ,MAAM,CAAC,KAAW;QACzB,IAAI,CAAC,CAAC,KAAK,YAAY,MAAM,CAAC;YAAE,OAAO,KAAK,CAAA;QAC5C,OAAO,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAA;IAC7B,CAAC;CACF;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,UAAU,GAAqB;IAC1C,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,EAAE;IAEZ,OAAO,CAAC,KAAK;QACX,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAA;QACpC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAA;QACjD,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC5B,CAAC;IAED,KAAK,CAAC,KAAK,EAAE,GAAG;QACd,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC1D,MAAM,IAAI,cAAc,CAAC,GAAG,EAAE;gBAC5B,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,sCAAsC,EAAE,QAAQ,EAAE,CAAC,EAAE;aACjF,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,IAAI,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,IAAI,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;IACzD,CAAC;CACF,CAAA;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc;IAC5B,gBAAgB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;AACvC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Step } from '../../ast/step';
|
|
2
|
+
import type { SchemeSegment } from '../../scheme/segment';
|
|
3
|
+
import type { Path } from '../path';
|
|
4
|
+
/**
|
|
5
|
+
* A typed wrapper over a Step[] produced by a fixed sequence of
|
|
6
|
+
* scheme segments.
|
|
7
|
+
*
|
|
8
|
+
* `segments` is ordered outer-anchor first. Forward matching: each
|
|
9
|
+
* segment's `detect` consumes its run left-to-right; backward
|
|
10
|
+
* identifying: each segment's `identify` runs right-to-left, threading
|
|
11
|
+
* the predecessor cursor.
|
|
12
|
+
*
|
|
13
|
+
* A PathType is the only place that knows how to wrap a validated
|
|
14
|
+
* Step[] into a typed instance — schemes are graph-side, grammar
|
|
15
|
+
* extensions are sugar-side, neither claim ownership of the typed
|
|
16
|
+
* shape.
|
|
17
|
+
*
|
|
18
|
+
* `class` declares the class this PathType identifies via its raw
|
|
19
|
+
* class-path string. Used by adapter-side dispatch — the Cypher
|
|
20
|
+
* walker branches per label by reading `gm.nodeInfoForClass(type.class)`.
|
|
21
|
+
* `null` for universal types that identify any node (`IdPath`,
|
|
22
|
+
* `AbsolutePath`, `RelativePath`, `InstanceMethodPath`).
|
|
23
|
+
*
|
|
24
|
+
* Held as a string (not a typed `ClassPath`) so `nav` stays self-
|
|
25
|
+
* contained — domain concepts don't leak into the path-language
|
|
26
|
+
* infrastructure. Construction sites with a `ClassPath` in scope pass
|
|
27
|
+
* `classPath.raw`.
|
|
28
|
+
*/
|
|
29
|
+
export interface PathType<T extends Path = Path> {
|
|
30
|
+
readonly name: string;
|
|
31
|
+
readonly segments: readonly SchemeSegment[];
|
|
32
|
+
/**
|
|
33
|
+
* Raw class-path string identifying the node class this PathType
|
|
34
|
+
* matches, or `null` if the type is universal. Opaque to nav;
|
|
35
|
+
* resolved by adapters/registries that know the domain layout.
|
|
36
|
+
*/
|
|
37
|
+
readonly class: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Refine match beyond pure segment composition. Default behaviour
|
|
40
|
+
* (segments exhaust the steps) lives in `chain.ts:matchesChain`.
|
|
41
|
+
* Types that need stricter narrowing (e.g. ClassPath rejecting
|
|
42
|
+
* `class.X.Y` dotted member names) override this hook.
|
|
43
|
+
*/
|
|
44
|
+
matches?(steps: readonly Step[]): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Build the typed wrapper from validated steps and the original raw
|
|
47
|
+
* input string.
|
|
48
|
+
*/
|
|
49
|
+
build(steps: readonly Step[], raw: string): T;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=path-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-type.d.ts","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/path-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IAErB,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAA;IAE3C;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,OAAO,CAAA;IAEzC;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,CAAA;CAC9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-type.js","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/path-type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Step } from '../../ast/step';
|
|
2
|
+
import type { PathType } from './path-type';
|
|
3
|
+
/**
|
|
4
|
+
* Registry of typed-path classes available for parsing and identifying.
|
|
5
|
+
*
|
|
6
|
+
* Detection picks the *most specific* type that matches a Step[] — when
|
|
7
|
+
* multiple types match, the one whose segments cover the longest run
|
|
8
|
+
* wins, with ties broken by registration order (later wins). PathTypes
|
|
9
|
+
* register themselves at boot; tests use `_reset()` for isolation.
|
|
10
|
+
*
|
|
11
|
+
* Detection is purely structural: the parsed Step[] carries every bit
|
|
12
|
+
* of information about the path's shape (in particular, an absolute
|
|
13
|
+
* path's leading {@link RootAnchor} distinguishes it from a relative
|
|
14
|
+
* path's bare-traversal sequence).
|
|
15
|
+
*
|
|
16
|
+
* **Class invariant.** A PathType with a non-null `class` claims
|
|
17
|
+
* exclusive ownership of that class — at most one such PathType per
|
|
18
|
+
* class. Registration throws on collision rather than silently
|
|
19
|
+
* overshadowing. Universal types (`class === null`) coexist freely.
|
|
20
|
+
* Consumers that need the class → PathType mapping (semantic-target
|
|
21
|
+
* reconstruction, per-class Cypher branch dispatch) read it from
|
|
22
|
+
* {@link byClass} / {@link byClassMap}; both code paths therefore
|
|
23
|
+
* share a single source of truth and cannot diverge by iteration order.
|
|
24
|
+
*/
|
|
25
|
+
export declare class PathTypeRegistry {
|
|
26
|
+
private static readonly _types;
|
|
27
|
+
private static readonly _byClass;
|
|
28
|
+
static register(type: PathType): void;
|
|
29
|
+
static all(): readonly PathType[];
|
|
30
|
+
/**
|
|
31
|
+
* The unique PathType claiming `cls`, or `null` if no PathType
|
|
32
|
+
* registered against this class. O(1).
|
|
33
|
+
*/
|
|
34
|
+
static byClass(cls: string): PathType | null;
|
|
35
|
+
/**
|
|
36
|
+
* Live view of the class → PathType index. Consumers that need to
|
|
37
|
+
* iterate one branch per class (e.g., the Cypher walker) drive off
|
|
38
|
+
* this map so they share dispatch with {@link byClass} reverse
|
|
39
|
+
* lookups by construction.
|
|
40
|
+
*/
|
|
41
|
+
static byClassMap(): ReadonlyMap<string, PathType>;
|
|
42
|
+
/**
|
|
43
|
+
* Find the most-specific PathType whose `matches` accepts these
|
|
44
|
+
* steps. Returns `undefined` when no type matches — callers wrap the
|
|
45
|
+
* step list in the base {@link Path} class as a fallback.
|
|
46
|
+
*/
|
|
47
|
+
static detect(steps: readonly Step[]): PathType | undefined;
|
|
48
|
+
/** Reset registry state. For testing only. */
|
|
49
|
+
static _reset(): void;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAI3C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAiB;IAC/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAA8B;IAE9D,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAYpC;IAED,MAAM,CAAC,GAAG,IAAI,SAAS,QAAQ,EAAE,CAEhC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAE3C;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAU,IAAI,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAEjD;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,QAAQ,GAAG,SAAS,CAc1D;IAED,8CAA8C;IAC9C,MAAM,CAAC,MAAM,IAAI,IAAI,CAGpB;CACF"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { matchesChain, chainSpan } from './chain';
|
|
2
|
+
/**
|
|
3
|
+
* Registry of typed-path classes available for parsing and identifying.
|
|
4
|
+
*
|
|
5
|
+
* Detection picks the *most specific* type that matches a Step[] — when
|
|
6
|
+
* multiple types match, the one whose segments cover the longest run
|
|
7
|
+
* wins, with ties broken by registration order (later wins). PathTypes
|
|
8
|
+
* register themselves at boot; tests use `_reset()` for isolation.
|
|
9
|
+
*
|
|
10
|
+
* Detection is purely structural: the parsed Step[] carries every bit
|
|
11
|
+
* of information about the path's shape (in particular, an absolute
|
|
12
|
+
* path's leading {@link RootAnchor} distinguishes it from a relative
|
|
13
|
+
* path's bare-traversal sequence).
|
|
14
|
+
*
|
|
15
|
+
* **Class invariant.** A PathType with a non-null `class` claims
|
|
16
|
+
* exclusive ownership of that class — at most one such PathType per
|
|
17
|
+
* class. Registration throws on collision rather than silently
|
|
18
|
+
* overshadowing. Universal types (`class === null`) coexist freely.
|
|
19
|
+
* Consumers that need the class → PathType mapping (semantic-target
|
|
20
|
+
* reconstruction, per-class Cypher branch dispatch) read it from
|
|
21
|
+
* {@link byClass} / {@link byClassMap}; both code paths therefore
|
|
22
|
+
* share a single source of truth and cannot diverge by iteration order.
|
|
23
|
+
*/
|
|
24
|
+
export class PathTypeRegistry {
|
|
25
|
+
static _types = [];
|
|
26
|
+
static _byClass = new Map();
|
|
27
|
+
static register(type) {
|
|
28
|
+
if (PathTypeRegistry._types.includes(type))
|
|
29
|
+
return;
|
|
30
|
+
if (type.class !== null) {
|
|
31
|
+
const existing = PathTypeRegistry._byClass.get(type.class);
|
|
32
|
+
if (existing !== undefined) {
|
|
33
|
+
throw new Error(`PathTypeRegistry.register: class "${type.class}" is already claimed by PathType "${existing.name}"; cannot register "${type.name}". Each non-universal PathType must claim a unique class.`);
|
|
34
|
+
}
|
|
35
|
+
PathTypeRegistry._byClass.set(type.class, type);
|
|
36
|
+
}
|
|
37
|
+
PathTypeRegistry._types.push(type);
|
|
38
|
+
}
|
|
39
|
+
static all() {
|
|
40
|
+
return PathTypeRegistry._types;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The unique PathType claiming `cls`, or `null` if no PathType
|
|
44
|
+
* registered against this class. O(1).
|
|
45
|
+
*/
|
|
46
|
+
static byClass(cls) {
|
|
47
|
+
return PathTypeRegistry._byClass.get(cls) ?? null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Live view of the class → PathType index. Consumers that need to
|
|
51
|
+
* iterate one branch per class (e.g., the Cypher walker) drive off
|
|
52
|
+
* this map so they share dispatch with {@link byClass} reverse
|
|
53
|
+
* lookups by construction.
|
|
54
|
+
*/
|
|
55
|
+
static byClassMap() {
|
|
56
|
+
return PathTypeRegistry._byClass;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Find the most-specific PathType whose `matches` accepts these
|
|
60
|
+
* steps. Returns `undefined` when no type matches — callers wrap the
|
|
61
|
+
* step list in the base {@link Path} class as a fallback.
|
|
62
|
+
*/
|
|
63
|
+
static detect(steps) {
|
|
64
|
+
let best;
|
|
65
|
+
let bestSpan = -1;
|
|
66
|
+
for (let i = PathTypeRegistry._types.length - 1; i >= 0; i--) {
|
|
67
|
+
const t = PathTypeRegistry._types[i];
|
|
68
|
+
const matched = (t.matches ?? ((s) => matchesChain(t.segments, s)))(steps);
|
|
69
|
+
if (!matched)
|
|
70
|
+
continue;
|
|
71
|
+
const span = chainSpan(t.segments, steps);
|
|
72
|
+
if (span > bestSpan) {
|
|
73
|
+
best = t;
|
|
74
|
+
bestSpan = span;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return best;
|
|
78
|
+
}
|
|
79
|
+
/** Reset registry state. For testing only. */
|
|
80
|
+
static _reset() {
|
|
81
|
+
PathTypeRegistry._types.length = 0;
|
|
82
|
+
PathTypeRegistry._byClass.clear();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,gBAAgB;IACnB,MAAM,CAAU,MAAM,GAAe,EAAE,CAAA;IACvC,MAAM,CAAU,QAAQ,GAAG,IAAI,GAAG,EAAoB,CAAA;IAE9D,MAAM,CAAC,QAAQ,CAAC,IAAc;QAC5B,IAAI,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,OAAM;QAClD,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YACxB,MAAM,QAAQ,GAAG,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAC1D,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,MAAM,IAAI,KAAK,CACb,qCAAqC,IAAI,CAAC,KAAK,qCAAqC,QAAQ,CAAC,IAAI,uBAAuB,IAAI,CAAC,IAAI,2DAA2D,CAC7L,CAAA;YACH,CAAC;YACD,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;QACjD,CAAC;QACD,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACpC,CAAC;IAED,MAAM,CAAC,GAAG;QACR,OAAO,gBAAgB,CAAC,MAAM,CAAA;IAChC,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,GAAW;QACxB,OAAO,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,CAAA;IACnD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAU;QACf,OAAO,gBAAgB,CAAC,QAAQ,CAAA;IAClC,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,KAAsB;QAClC,IAAI,IAA0B,CAAA;QAC9B,IAAI,QAAQ,GAAG,CAAC,CAAC,CAAA;QACjB,KAAK,IAAI,CAAC,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7D,MAAM,CAAC,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAE,CAAA;YACrC,MAAM,OAAO,GAAG,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;YAC1E,IAAI,CAAC,OAAO;gBAAE,SAAQ;YACtB,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;YACzC,IAAI,IAAI,GAAG,QAAQ,EAAE,CAAC;gBACpB,IAAI,GAAG,CAAC,CAAA;gBACR,QAAQ,GAAG,IAAI,CAAA;YACjB,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,8CAA8C;IAC9C,MAAM,CAAC,MAAM;QACX,gBAAgB,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;QAClC,gBAAgB,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAA;IACnC,CAAC;CACF"}
|