@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,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a predicate expression from a token stream.
|
|
3
|
+
* Expects the stream to be positioned AFTER the opening '(' — i.e., the caller
|
|
4
|
+
* has already consumed PAREN_OPEN. Reads until the matching PAREN_CLOSE.
|
|
5
|
+
*
|
|
6
|
+
* Syntax:
|
|
7
|
+
* property=value edge property (default scope)
|
|
8
|
+
* node.property=value node property (explicit scope)
|
|
9
|
+
* pred & pred AND
|
|
10
|
+
* pred | pred OR
|
|
11
|
+
* !pred or !(pred) NOT
|
|
12
|
+
* (pred) grouping
|
|
13
|
+
*/
|
|
14
|
+
export function parsePredicate(stream) {
|
|
15
|
+
const pred = parseOr(stream);
|
|
16
|
+
return pred;
|
|
17
|
+
}
|
|
18
|
+
// ─── Recursive descent: OR has lowest precedence ────────
|
|
19
|
+
function parseOr(stream) {
|
|
20
|
+
const operands = [parseAnd(stream)];
|
|
21
|
+
while (stream.peek()?.kind === 'OR') {
|
|
22
|
+
stream.advance(); // consume '|'
|
|
23
|
+
operands.push(parseAnd(stream));
|
|
24
|
+
}
|
|
25
|
+
return operands.length === 1 ? operands[0] : { kind: 'or', operands };
|
|
26
|
+
}
|
|
27
|
+
function parseAnd(stream) {
|
|
28
|
+
const operands = [parseNot(stream)];
|
|
29
|
+
while (stream.peek()?.kind === 'AND') {
|
|
30
|
+
stream.advance(); // consume '&'
|
|
31
|
+
operands.push(parseNot(stream));
|
|
32
|
+
}
|
|
33
|
+
return operands.length === 1 ? operands[0] : { kind: 'and', operands };
|
|
34
|
+
}
|
|
35
|
+
function parseNot(stream) {
|
|
36
|
+
if (stream.peek()?.kind === 'NOT') {
|
|
37
|
+
stream.advance(); // consume '!'
|
|
38
|
+
return { kind: 'not', operand: parseAtom(stream) };
|
|
39
|
+
}
|
|
40
|
+
return parseAtom(stream);
|
|
41
|
+
}
|
|
42
|
+
function parseAtom(stream) {
|
|
43
|
+
const token = stream.peek();
|
|
44
|
+
// Grouped sub-expression: (pred)
|
|
45
|
+
if (token?.kind === 'PAREN_OPEN') {
|
|
46
|
+
stream.advance(); // consume '('
|
|
47
|
+
const inner = parseOr(stream);
|
|
48
|
+
expectToken(stream, 'PAREN_CLOSE', ')');
|
|
49
|
+
return inner;
|
|
50
|
+
}
|
|
51
|
+
// Property predicate: property=value or node.property=value
|
|
52
|
+
return parsePropertyPredicate(stream);
|
|
53
|
+
}
|
|
54
|
+
function parsePropertyPredicate(stream) {
|
|
55
|
+
const nameToken = expectToken(stream, 'TEXT', 'property name');
|
|
56
|
+
let scope = 'edge';
|
|
57
|
+
let property = nameToken.value;
|
|
58
|
+
// Check for 'node.' prefix
|
|
59
|
+
if (property.startsWith('node.')) {
|
|
60
|
+
scope = 'node';
|
|
61
|
+
property = property.slice(5);
|
|
62
|
+
if (property.length === 0) {
|
|
63
|
+
throw new PredicateParseError(`Empty property name after 'node.' prefix`, nameToken.position);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
expectToken(stream, 'ASSIGN', '=');
|
|
67
|
+
const valueToken = expectToken(stream, 'TEXT', 'property value');
|
|
68
|
+
return {
|
|
69
|
+
kind: 'property',
|
|
70
|
+
scope,
|
|
71
|
+
property,
|
|
72
|
+
op: '=',
|
|
73
|
+
value: valueToken.value,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
// ─── Helpers ────────────────────────────────────────────
|
|
77
|
+
function expectToken(stream, kind, description) {
|
|
78
|
+
const token = stream.peek();
|
|
79
|
+
if (!token) {
|
|
80
|
+
throw new PredicateParseError(`Expected ${description}, got end of input`, -1);
|
|
81
|
+
}
|
|
82
|
+
if (token.kind !== kind) {
|
|
83
|
+
throw new PredicateParseError(`Expected ${description}, got '${token.value}'`, token.position);
|
|
84
|
+
}
|
|
85
|
+
return stream.advance();
|
|
86
|
+
}
|
|
87
|
+
export class PredicateParseError extends Error {
|
|
88
|
+
position;
|
|
89
|
+
constructor(message, position) {
|
|
90
|
+
super(message);
|
|
91
|
+
this.position = position;
|
|
92
|
+
this.name = 'PredicateParseError';
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=predicate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predicate.js","sourceRoot":"","sources":["../../../../graph/nav/parse/predicate.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,cAAc,CAAC,MAAmB;IAChD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAC5B,OAAO,IAAI,CAAA;AACb,CAAC;AAED,2DAA2D;AAE3D,SAAS,OAAO,CAAC,MAAmB;IAClC,MAAM,QAAQ,GAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAA;IAEhD,OAAO,MAAM,CAAC,IAAI,EAAE,EAAE,IAAI,KAAK,IAAI,EAAE,CAAC;QACpC,MAAM,CAAC,OAAO,EAAE,CAAA,CAAC,cAAc;QAC/B,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAA;IACjC,CAAC;IAED,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;AACxE,CAAC;AAED,SAAS,QAAQ,CAAC,MAAmB;IACnC,MAAM,QAAQ,GAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAA;IAEhD,OAAO,MAAM,CAAC,IAAI,EAAE,EAAE,IAAI,KAAK,KAAK,EAAE,CAAC;QACrC,MAAM,CAAC,OAAO,EAAE,CAAA,CAAC,cAAc;QAC/B,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAA;IACjC,CAAC;IAED,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAA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E,CAAC;YAC1B,MAAM,IAAI,mBAAmB,CAAC,0CAA0C,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;QAC/F,CAAC;IACH,CAAC;IAED,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAA;IAClC,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAEhE,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,KAAK;QACL,QAAQ;QACR,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,UAAU,CAAC,KAAK;KACxB,CAAA;AACH,CAAC;AAED,2DAA2D;AAE3D,SAAS,WAAW,CAAC,MAAmB,EAAE,IAAY,EAAE,WAAmB;IACzE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,CAAA;IAC3B,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,mBAAmB,CAAC,YAAY,WAAW,oBAAoB,EAAE,CAAC,CAAC,CAAC,CAAA;IAChF,CAAC;IACD,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;QACxB,MAAM,IAAI,mBAAmB,CAAC,YAAY,WAAW,UAAU,KAAK,CAAC,KAAK,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IAChG,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,EAAE,CAAA;AACzB,CAAC;AAED,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAGjC,QAAQ;IAFnB,YACE,OAAe,EACN,QAAgB;QAEzB,KAAK,CAAC,OAAO,CAAC,CAAA;wBAFL,QAAQ;QAGjB,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAA;IACnC,CAAC;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Step } from '#graph/nav/path/step';
|
|
2
|
+
import type { GrammarExtension } from '../grammar/extension';
|
|
3
|
+
import type { ValidationError } from './validation';
|
|
4
|
+
export interface PathParseResult {
|
|
5
|
+
readonly steps: readonly Step[];
|
|
6
|
+
readonly errors: readonly ValidationError[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Parse a raw string into Step[] using the global {@link GrammarRegistry}.
|
|
10
|
+
*
|
|
11
|
+
* Thin wrapper over {@link parseStepsWith} that snapshots the registry's
|
|
12
|
+
* current extensions. Use this from runtime call sites that don't hold a
|
|
13
|
+
* specific grammar set (typically `parsePath`-driven flows after the
|
|
14
|
+
* kernel's bootstrap registrations have run).
|
|
15
|
+
*
|
|
16
|
+
* Compile-time call sites (typed-path factories like `ClassPath.from`) close
|
|
17
|
+
* over their own grammar set and call {@link parseStepsWith} directly so the
|
|
18
|
+
* result doesn't depend on global state.
|
|
19
|
+
*/
|
|
20
|
+
export declare function parseSteps(input: string): PathParseResult;
|
|
21
|
+
/**
|
|
22
|
+
* Parse a raw string into Step[] against an explicit grammar set.
|
|
23
|
+
*
|
|
24
|
+
* Anchor convention (the IR-level discriminator for absolute vs
|
|
25
|
+
* relative):
|
|
26
|
+
*
|
|
27
|
+
* - `./…` (relative prefix consumed by the relative grammar) → no
|
|
28
|
+
* leading anchor. The Step[] starts directly with traversals.
|
|
29
|
+
* - `@id…` → leading {@link IdAnchor} (no implicit root).
|
|
30
|
+
* - everything else → leading {@link RootAnchor} prepended automatically.
|
|
31
|
+
*
|
|
32
|
+
* The `RootAnchor` is materialized once at parse time; downstream
|
|
33
|
+
* walkers / compilers / serializers see the anchor in `steps[0]` and
|
|
34
|
+
* branch on its `target` field. There is no out-of-band `isRelative`
|
|
35
|
+
* flag any longer.
|
|
36
|
+
*
|
|
37
|
+
* Handles core tokens directly (`@id`, `~edgeClass`, `<~edgeClass`,
|
|
38
|
+
* `(...)` predicate filters); delegates everything else to the supplied
|
|
39
|
+
* {@link GrammarExtension}s in last-supplied-first order (matching
|
|
40
|
+
* {@link parseSteps}' last-registered-first semantics).
|
|
41
|
+
*/
|
|
42
|
+
export declare function parseStepsWith(input: string, extensions: readonly GrammarExtension[]): PathParseResult;
|
|
43
|
+
//# sourceMappingURL=steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../../graph/nav/parse/steps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAGhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAWnD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAA;IAC/B,QAAQ,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAA;CAC5C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAEzD;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,SAAS,gBAAgB,EAAE,GACtC,eAAe,CAsGjB"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { SLUG_PROPERTY } from '../ast/slug';
|
|
2
|
+
import { idAnchor, INBOUND, OUTBOUND, ROOT_ANCHOR } from '../ast/step';
|
|
3
|
+
import { CORE_TOKENS } from '../grammar/core';
|
|
4
|
+
import { GrammarRegistry } from '../grammar/registry';
|
|
5
|
+
import { buildTokenTable } from '../lex/table';
|
|
6
|
+
import { tokenize } from '../lex/tokenize';
|
|
7
|
+
import { parsePredicate, PredicateParseError } from './predicate';
|
|
8
|
+
import { TokenStream } from './stream';
|
|
9
|
+
/**
|
|
10
|
+
* Parse a raw string into Step[] using the global {@link GrammarRegistry}.
|
|
11
|
+
*
|
|
12
|
+
* Thin wrapper over {@link parseStepsWith} that snapshots the registry's
|
|
13
|
+
* current extensions. Use this from runtime call sites that don't hold a
|
|
14
|
+
* specific grammar set (typically `parsePath`-driven flows after the
|
|
15
|
+
* kernel's bootstrap registrations have run).
|
|
16
|
+
*
|
|
17
|
+
* Compile-time call sites (typed-path factories like `ClassPath.from`) close
|
|
18
|
+
* over their own grammar set and call {@link parseStepsWith} directly so the
|
|
19
|
+
* result doesn't depend on global state.
|
|
20
|
+
*/
|
|
21
|
+
export function parseSteps(input) {
|
|
22
|
+
return parseStepsWith(input, GrammarRegistry.extensions());
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Parse a raw string into Step[] against an explicit grammar set.
|
|
26
|
+
*
|
|
27
|
+
* Anchor convention (the IR-level discriminator for absolute vs
|
|
28
|
+
* relative):
|
|
29
|
+
*
|
|
30
|
+
* - `./…` (relative prefix consumed by the relative grammar) → no
|
|
31
|
+
* leading anchor. The Step[] starts directly with traversals.
|
|
32
|
+
* - `@id…` → leading {@link IdAnchor} (no implicit root).
|
|
33
|
+
* - everything else → leading {@link RootAnchor} prepended automatically.
|
|
34
|
+
*
|
|
35
|
+
* The `RootAnchor` is materialized once at parse time; downstream
|
|
36
|
+
* walkers / compilers / serializers see the anchor in `steps[0]` and
|
|
37
|
+
* branch on its `target` field. There is no out-of-band `isRelative`
|
|
38
|
+
* flag any longer.
|
|
39
|
+
*
|
|
40
|
+
* Handles core tokens directly (`@id`, `~edgeClass`, `<~edgeClass`,
|
|
41
|
+
* `(...)` predicate filters); delegates everything else to the supplied
|
|
42
|
+
* {@link GrammarExtension}s in last-supplied-first order (matching
|
|
43
|
+
* {@link parseSteps}' last-registered-first semantics).
|
|
44
|
+
*/
|
|
45
|
+
export function parseStepsWith(input, extensions) {
|
|
46
|
+
if (input.length === 0) {
|
|
47
|
+
return {
|
|
48
|
+
steps: [],
|
|
49
|
+
errors: [{ kind: 'empty-input', message: 'Path cannot be empty', position: 0 }],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const tokens = extensions.flatMap((e) => e.tokens ?? []);
|
|
53
|
+
const grammar = buildTokenTable(CORE_TOKENS, tokens);
|
|
54
|
+
const tokenList = tokenize(input, grammar);
|
|
55
|
+
const stream = new TokenStream(tokenList);
|
|
56
|
+
const steps = [];
|
|
57
|
+
const errors = [];
|
|
58
|
+
const exts = extensions;
|
|
59
|
+
let isRelative = false;
|
|
60
|
+
for (let i = exts.length - 1; i >= 0; i--) {
|
|
61
|
+
const ext = exts[i];
|
|
62
|
+
if (!ext.parsePrefix)
|
|
63
|
+
continue;
|
|
64
|
+
const mark = stream.mark();
|
|
65
|
+
const prefixResult = ext.parsePrefix(stream);
|
|
66
|
+
if (prefixResult) {
|
|
67
|
+
isRelative = prefixResult.isRelative;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
stream.restore(mark);
|
|
71
|
+
}
|
|
72
|
+
while (stream.hasMore()) {
|
|
73
|
+
const token = stream.peek();
|
|
74
|
+
if (token.kind === 'AT') {
|
|
75
|
+
stream.advance();
|
|
76
|
+
const idToken = stream.peek();
|
|
77
|
+
if (!idToken || idToken.kind !== 'TEXT') {
|
|
78
|
+
errors.push({
|
|
79
|
+
kind: 'missing-id',
|
|
80
|
+
message: 'Expected node ID after @',
|
|
81
|
+
position: token.position,
|
|
82
|
+
});
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
stream.advance();
|
|
86
|
+
steps.push(idAnchor(idToken.value));
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if (token.kind === 'LT') {
|
|
90
|
+
const mark = stream.mark();
|
|
91
|
+
stream.advance();
|
|
92
|
+
const next = stream.peek();
|
|
93
|
+
if (next?.kind === 'TILDE') {
|
|
94
|
+
stream.advance();
|
|
95
|
+
const t = parseTraversalBody(stream, INBOUND, errors);
|
|
96
|
+
if (t)
|
|
97
|
+
steps.push(t);
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
stream.restore(mark);
|
|
101
|
+
errors.push({
|
|
102
|
+
kind: 'unexpected-token',
|
|
103
|
+
message: `Unexpected '<' at position ${token.position}`,
|
|
104
|
+
position: token.position,
|
|
105
|
+
});
|
|
106
|
+
stream.advance();
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (token.kind === 'TILDE') {
|
|
110
|
+
stream.advance();
|
|
111
|
+
const t = parseTraversalBody(stream, OUTBOUND, errors);
|
|
112
|
+
if (t)
|
|
113
|
+
steps.push(t);
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
let handled = false;
|
|
117
|
+
for (let i = exts.length - 1; i >= 0; i--) {
|
|
118
|
+
const ext = exts[i];
|
|
119
|
+
const mark = stream.mark();
|
|
120
|
+
const result = ext.parseStep(stream);
|
|
121
|
+
if (result !== null) {
|
|
122
|
+
for (const s of result)
|
|
123
|
+
steps.push(s);
|
|
124
|
+
handled = true;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
stream.restore(mark);
|
|
128
|
+
}
|
|
129
|
+
if (handled)
|
|
130
|
+
continue;
|
|
131
|
+
errors.push({
|
|
132
|
+
kind: 'unexpected-token',
|
|
133
|
+
message: `Unexpected token '${token.value}' at position ${token.position}`,
|
|
134
|
+
position: token.position,
|
|
135
|
+
});
|
|
136
|
+
stream.advance();
|
|
137
|
+
}
|
|
138
|
+
if (!isRelative && (steps.length === 0 || steps[0].kind !== 'anchor')) {
|
|
139
|
+
steps.unshift(ROOT_ANCHOR);
|
|
140
|
+
}
|
|
141
|
+
return { steps, errors };
|
|
142
|
+
}
|
|
143
|
+
function parseTraversalBody(stream, direction, errors) {
|
|
144
|
+
const edgeClassToken = stream.peek();
|
|
145
|
+
if (!edgeClassToken || edgeClassToken.kind !== 'TEXT') {
|
|
146
|
+
errors.push({
|
|
147
|
+
kind: 'missing-edge-class',
|
|
148
|
+
message: 'Expected edge class after traversal operator',
|
|
149
|
+
position: edgeClassToken?.position ?? -1,
|
|
150
|
+
});
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
stream.advance();
|
|
154
|
+
const edgeClass = edgeClassToken.value;
|
|
155
|
+
if (stream.peek()?.kind !== 'PAREN_OPEN') {
|
|
156
|
+
return { kind: 'traversal', edgeClass, ...direction };
|
|
157
|
+
}
|
|
158
|
+
stream.advance(); // consume '('
|
|
159
|
+
if (stream.peek()?.kind === 'PAREN_CLOSE') {
|
|
160
|
+
stream.advance();
|
|
161
|
+
return { kind: 'traversal', edgeClass, ...direction };
|
|
162
|
+
}
|
|
163
|
+
const filterMark = stream.mark();
|
|
164
|
+
let hasAssign = false;
|
|
165
|
+
let depth = 0;
|
|
166
|
+
while (stream.hasMore()) {
|
|
167
|
+
const t = stream.peek();
|
|
168
|
+
if (t.kind === 'PAREN_OPEN')
|
|
169
|
+
depth++;
|
|
170
|
+
else if (t.kind === 'PAREN_CLOSE') {
|
|
171
|
+
if (depth === 0)
|
|
172
|
+
break;
|
|
173
|
+
depth--;
|
|
174
|
+
}
|
|
175
|
+
else if (t.kind === 'ASSIGN' && depth === 0) {
|
|
176
|
+
hasAssign = true;
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
stream.advance();
|
|
180
|
+
}
|
|
181
|
+
stream.restore(filterMark);
|
|
182
|
+
if (!hasAssign) {
|
|
183
|
+
const parts = [];
|
|
184
|
+
while (stream.hasMore() && stream.peek().kind !== 'PAREN_CLOSE') {
|
|
185
|
+
parts.push(stream.advance().value);
|
|
186
|
+
}
|
|
187
|
+
if (stream.peek()?.kind === 'PAREN_CLOSE')
|
|
188
|
+
stream.advance();
|
|
189
|
+
return {
|
|
190
|
+
kind: 'traversal',
|
|
191
|
+
edgeClass,
|
|
192
|
+
...direction,
|
|
193
|
+
predicate: {
|
|
194
|
+
kind: 'property',
|
|
195
|
+
scope: 'edge',
|
|
196
|
+
property: SLUG_PROPERTY,
|
|
197
|
+
op: '=',
|
|
198
|
+
value: parts.join(''),
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
try {
|
|
203
|
+
const predicate = parsePredicate(stream);
|
|
204
|
+
if (stream.peek()?.kind === 'PAREN_CLOSE')
|
|
205
|
+
stream.advance();
|
|
206
|
+
else {
|
|
207
|
+
errors.push({
|
|
208
|
+
kind: 'unclosed-filter',
|
|
209
|
+
message: 'Expected closing ) for predicate filter',
|
|
210
|
+
position: stream.peek()?.position ?? -1,
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
return { kind: 'traversal', edgeClass, ...direction, predicate };
|
|
214
|
+
}
|
|
215
|
+
catch (e) {
|
|
216
|
+
if (e instanceof PredicateParseError) {
|
|
217
|
+
errors.push({ kind: 'invalid-predicate', message: e.message, position: e.position });
|
|
218
|
+
skipToClose(stream);
|
|
219
|
+
return { kind: 'traversal', edgeClass, ...direction };
|
|
220
|
+
}
|
|
221
|
+
throw e;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function skipToClose(stream) {
|
|
225
|
+
let depth = 1;
|
|
226
|
+
while (stream.hasMore() && depth > 0) {
|
|
227
|
+
const t = stream.advance();
|
|
228
|
+
if (t.kind === 'PAREN_OPEN')
|
|
229
|
+
depth++;
|
|
230
|
+
else if (t.kind === 'PAREN_CLOSE')
|
|
231
|
+
depth--;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
//# sourceMappingURL=steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../../../graph/nav/parse/steps.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OA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rC,MAAM,CAAC,GAAG,MAAM,CAAC,OAAO,EAAE,CAAA;QAC1B,IAAI,CAAC,CAAC,IAAI,KAAK,YAAY;YAAE,KAAK,EAAE,CAAA;aAC/B,IAAI,CAAC,CAAC,IAAI,KAAK,aAAa;YAAE,KAAK,EAAE,CAAA;IAC5C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Token } from '../lex/token';
|
|
2
|
+
/** Cursor over a Token array for parser consumption. */
|
|
3
|
+
export declare class TokenStream {
|
|
4
|
+
private readonly tokens;
|
|
5
|
+
private pos;
|
|
6
|
+
constructor(tokens: readonly Token[]);
|
|
7
|
+
/** Look at the current token without advancing. */
|
|
8
|
+
peek(): Token | undefined;
|
|
9
|
+
/** Consume and return the current token. Throws if at end. */
|
|
10
|
+
advance(): Token;
|
|
11
|
+
/** Save the current position for backtracking. */
|
|
12
|
+
mark(): number;
|
|
13
|
+
/** Restore to a previously saved position. */
|
|
14
|
+
restore(mark: number): void;
|
|
15
|
+
/** Number of tokens consumed since the mark. */
|
|
16
|
+
consumed(mark: number): number;
|
|
17
|
+
/** Whether there are more tokens. */
|
|
18
|
+
hasMore(): boolean;
|
|
19
|
+
/** Current position in the stream. */
|
|
20
|
+
get position(): number;
|
|
21
|
+
/** Look at the token immediately before the current position. */
|
|
22
|
+
peekPrevious(): Token | undefined;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../../graph/nav/parse/stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEzC,wDAAwD;AACxD,qBAAa,WAAW;IAGV,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,GAAG,CAAI;IAEf,YAA6B,MAAM,EAAE,SAAS,KAAK,EAAE,EAAI;IAEzD,mDAAmD;IACnD,IAAI,IAAI,KAAK,GAAG,SAAS,CAExB;IAED,8DAA8D;IAC9D,OAAO,IAAI,KAAK,CAKf;IAED,kDAAkD;IAClD,IAAI,IAAI,MAAM,CAEb;IAED,8CAA8C;IAC9C,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAE1B;IAED,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7B;IAED,qCAAqC;IACrC,OAAO,IAAI,OAAO,CAEjB;IAED,sCAAsC;IACtC,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,iEAAiE;IACjE,YAAY,IAAI,KAAK,GAAG,SAAS,CAEhC;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Cursor over a Token array for parser consumption. */
|
|
2
|
+
export class TokenStream {
|
|
3
|
+
tokens;
|
|
4
|
+
pos = 0;
|
|
5
|
+
constructor(tokens) {
|
|
6
|
+
this.tokens = tokens;
|
|
7
|
+
}
|
|
8
|
+
/** Look at the current token without advancing. */
|
|
9
|
+
peek() {
|
|
10
|
+
return this.tokens[this.pos];
|
|
11
|
+
}
|
|
12
|
+
/** Consume and return the current token. Throws if at end. */
|
|
13
|
+
advance() {
|
|
14
|
+
const token = this.tokens[this.pos];
|
|
15
|
+
if (!token)
|
|
16
|
+
throw new Error('Unexpected end of token stream');
|
|
17
|
+
this.pos++;
|
|
18
|
+
return token;
|
|
19
|
+
}
|
|
20
|
+
/** Save the current position for backtracking. */
|
|
21
|
+
mark() {
|
|
22
|
+
return this.pos;
|
|
23
|
+
}
|
|
24
|
+
/** Restore to a previously saved position. */
|
|
25
|
+
restore(mark) {
|
|
26
|
+
this.pos = mark;
|
|
27
|
+
}
|
|
28
|
+
/** Number of tokens consumed since the mark. */
|
|
29
|
+
consumed(mark) {
|
|
30
|
+
return this.pos - mark;
|
|
31
|
+
}
|
|
32
|
+
/** Whether there are more tokens. */
|
|
33
|
+
hasMore() {
|
|
34
|
+
return this.pos < this.tokens.length;
|
|
35
|
+
}
|
|
36
|
+
/** Current position in the stream. */
|
|
37
|
+
get position() {
|
|
38
|
+
return this.pos;
|
|
39
|
+
}
|
|
40
|
+
/** Look at the token immediately before the current position. */
|
|
41
|
+
peekPrevious() {
|
|
42
|
+
return this.tokens[this.pos - 1];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=stream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.js","sourceRoot":"","sources":["../../../../graph/nav/parse/stream.ts"],"names":[],"mappings":"AAEA,wDAAwD;AACxD,MAAM,OAAO,WAAW;IAGO,MAAM;IAF3B,GAAG,GAAG,CAAC,CAAA;IAEf,YAA6B,MAAwB;sBAAxB,MAAM;IAAqB,CAAC;IAEzD,mDAAmD;IACnD,IAAI;QACF,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC9B,CAAC;IAED,8DAA8D;IAC9D,OAAO;QACL,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACnC,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;QAC7D,IAAI,CAAC,GAAG,EAAE,CAAA;QACV,OAAO,KAAK,CAAA;IACd,CAAC;IAED,kDAAkD;IAClD,IAAI;QACF,OAAO,IAAI,CAAC,GAAG,CAAA;IACjB,CAAC;IAED,8CAA8C;IAC9C,OAAO,CAAC,IAAY;QAClB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAA;IACjB,CAAC;IAED,gDAAgD;IAChD,QAAQ,CAAC,IAAY;QACnB,OAAO,IAAI,CAAC,GAAG,GAAG,IAAI,CAAA;IACxB,CAAC;IAED,qCAAqC;IACrC,OAAO;QACL,OAAO,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAA;IACtC,CAAC;IAED,sCAAsC;IACtC,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,GAAG,CAAA;IACjB,CAAC;IAED,iEAAiE;IACjE,YAAY;QACV,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAA;IAClC,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ValidationError {
|
|
2
|
+
readonly kind: string;
|
|
3
|
+
readonly message: string;
|
|
4
|
+
readonly position: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ValidationResult {
|
|
7
|
+
readonly valid: boolean;
|
|
8
|
+
readonly errors: readonly ValidationError[];
|
|
9
|
+
}
|
|
10
|
+
export declare function validResult(): ValidationResult;
|
|
11
|
+
export declare function invalidResult(...errors: ValidationError[]): ValidationResult;
|
|
12
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../graph/nav/parse/validation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAA;CAC5C;AAED,wBAAgB,WAAW,IAAI,gBAAgB,CAE9C;AAED,wBAAgB,aAAa,CAAC,GAAG,MAAM,EAAE,eAAe,EAAE,GAAG,gBAAgB,CAE5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../graph/nav/parse/validation.ts"],"names":[],"mappings":"AAWA,MAAM,UAAU,WAAW;IACzB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAA;AACpC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,GAAG,MAAyB;IACxD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;AACjC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { GraphView } from '#graph';
|
|
2
|
+
import type { Node } from '#graph/node/node';
|
|
3
|
+
import type { PathType } from './kinds/path-type';
|
|
4
|
+
import type { Path } from './path';
|
|
5
|
+
/**
|
|
6
|
+
* Build the canonical typed path for a node by walking the graph
|
|
7
|
+
* backward through a PathType's segment chain.
|
|
8
|
+
*
|
|
9
|
+
* With `hint`, force a specific type (typically when a caller wants a
|
|
10
|
+
* known scheme even if a more specific one would otherwise be picked).
|
|
11
|
+
*
|
|
12
|
+
* Without a hint, types are tried longest-segment-chain first; the
|
|
13
|
+
* first one whose `walkChain` succeeds and whose `matches` accepts
|
|
14
|
+
* the steps wins. Types with `segments: []` are skipped — they have
|
|
15
|
+
* no walk-back recipe.
|
|
16
|
+
*
|
|
17
|
+
* If no type matches, falls back to the universal {@link IdPath} —
|
|
18
|
+
* every node has an id, so every node has an id-anchored path.
|
|
19
|
+
*/
|
|
20
|
+
export declare function buildPath(target: Node, graph: GraphView, hint?: PathType): Path;
|
|
21
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../graph/nav/path/build.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,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAQlC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CA6B/E"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { idAnchor } from '../ast/step';
|
|
2
|
+
import { serializeSteps } from '../serialize/steps';
|
|
3
|
+
import { IdentifyError } from './errors';
|
|
4
|
+
import { matchesChain, walkChain } from './kinds/chain';
|
|
5
|
+
import { PathTypeRegistry } from './kinds/registry';
|
|
6
|
+
/**
|
|
7
|
+
* Build the canonical typed path for a node by walking the graph
|
|
8
|
+
* backward through a PathType's segment chain.
|
|
9
|
+
*
|
|
10
|
+
* With `hint`, force a specific type (typically when a caller wants a
|
|
11
|
+
* known scheme even if a more specific one would otherwise be picked).
|
|
12
|
+
*
|
|
13
|
+
* Without a hint, types are tried longest-segment-chain first; the
|
|
14
|
+
* first one whose `walkChain` succeeds and whose `matches` accepts
|
|
15
|
+
* the steps wins. Types with `segments: []` are skipped — they have
|
|
16
|
+
* no walk-back recipe.
|
|
17
|
+
*
|
|
18
|
+
* If no type matches, falls back to the universal {@link IdPath} —
|
|
19
|
+
* every node has an id, so every node has an id-anchored path.
|
|
20
|
+
*/
|
|
21
|
+
export function buildPath(target, graph, hint) {
|
|
22
|
+
if (hint) {
|
|
23
|
+
const steps = walkChain(hint, target, graph);
|
|
24
|
+
return hint.build(steps, serializeSteps(steps));
|
|
25
|
+
}
|
|
26
|
+
const ordered = [...PathTypeRegistry.all()].sort((a, b) => b.segments.length - a.segments.length);
|
|
27
|
+
for (const type of ordered) {
|
|
28
|
+
if (type.segments.length === 0)
|
|
29
|
+
continue;
|
|
30
|
+
try {
|
|
31
|
+
const steps = walkChain(type, target, graph);
|
|
32
|
+
const accepted = (type.matches ?? ((s) => matchesChain(type.segments, s)))(steps);
|
|
33
|
+
if (!accepted)
|
|
34
|
+
continue;
|
|
35
|
+
return type.build(steps, serializeSteps(steps));
|
|
36
|
+
}
|
|
37
|
+
catch (e) {
|
|
38
|
+
if (e instanceof IdentifyError)
|
|
39
|
+
continue;
|
|
40
|
+
throw e;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// Universal fallback: every node has an id, every node has an
|
|
44
|
+
// id-anchored path. Tried last so structural types win when they
|
|
45
|
+
// apply.
|
|
46
|
+
const idType = PathTypeRegistry.all().find((t) => t.name === 'IdPath');
|
|
47
|
+
if (idType !== undefined) {
|
|
48
|
+
const steps = [idAnchor(target.id)];
|
|
49
|
+
return idType.build(steps, serializeSteps(steps));
|
|
50
|
+
}
|
|
51
|
+
throw new IdentifyError(`No PathType could build a path for node ${target.id}`);
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../graph/nav/path/build.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEnD;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,SAAS,CAAC,MAAY,EAAE,KAAgB,EAAE,IAAe;IACvE,IAAI,IAAI,EAAE,CAAC;QACT,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,CAAA;IACjD,CAAC;IAED,MAAM,OAAO,GAAG,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,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
1
|
+
import type { NodeId } from '#ids';
|
|
2
|
+
import type { ValidationError } from '../parse/validation';
|
|
3
|
+
/**
|
|
4
|
+
* Raised when a string cannot be parsed into a valid path. Carries the
|
|
5
|
+
* original input alongside one or more lex/parse-level diagnostics.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PathParseError extends Error {
|
|
8
|
+
readonly name = "PathParseError";
|
|
9
|
+
readonly input: string;
|
|
10
|
+
readonly errors: readonly ValidationError[];
|
|
11
|
+
constructor(input: string, errors: readonly ValidationError[]);
|
|
12
|
+
/** Alias for `input` — older callsites read `error.raw`. */
|
|
13
|
+
get raw(): string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Raised when a node cannot be identified into a typed path — the
|
|
17
|
+
* walk-back terminated early or hit a graph state that violates the
|
|
18
|
+
* scheme's anchoring-edge invariant.
|
|
19
|
+
*/
|
|
20
|
+
export declare class IdentifyError extends Error {
|
|
21
|
+
readonly name = "IdentifyError";
|
|
22
|
+
readonly reason: string;
|
|
23
|
+
constructor(message: string, reason?: string);
|
|
24
|
+
}
|
|
25
|
+
export declare class PathNotFoundError extends Error {
|
|
26
|
+
readonly path: {
|
|
27
|
+
raw: string;
|
|
28
|
+
};
|
|
29
|
+
readonly failedAtStep: string;
|
|
30
|
+
readonly context?: NodeId | undefined;
|
|
31
|
+
readonly name = "PathNotFoundError";
|
|
32
|
+
constructor(path: {
|
|
33
|
+
raw: string;
|
|
34
|
+
}, failedAtStep: string, context?: NodeId | undefined);
|
|
35
|
+
}
|
|
36
|
+
export declare class AmbiguousPathError extends Error {
|
|
37
|
+
readonly path: {
|
|
38
|
+
raw: string;
|
|
39
|
+
};
|
|
40
|
+
readonly name = "AmbiguousPathError";
|
|
41
|
+
constructor(path: {
|
|
42
|
+
raw: string;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export declare class MissingContextError extends Error {
|
|
46
|
+
readonly reason: string;
|
|
47
|
+
readonly name = "MissingContextError";
|
|
48
|
+
constructor(reason: string);
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../graph/nav/path/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAElC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D;;;GAGG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,SAAkB,IAAI,oBAAmB;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,SAAS,eAAe,EAAE,CAAA;IAE3C,YAAY,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,eAAe,EAAE,EAI5D;IAED,4DAA4D;IAC5D,IAAI,GAAG,IAAI,MAAM,CAEhB;CACF;AAED;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAkB,IAAI,mBAAkB;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IAEvB,YAAY,OAAO,EAAE,MAAM,EAAE,MAAM,SAAqB,EAGvD;CACF;AAED,qBAAa,iBAAkB,SAAQ,KAAK;aAGxB,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE;aACrB,YAAY,EAAE,MAAM;aACpB,OAAO,CAAC,EAAE,MAAM;IAJlC,SAAkB,IAAI,uBAAsB;IAC5C,YACkB,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EACrB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,MAAM,YAAA,EAIjC;CACF;AAED,qBAAa,kBAAmB,SAAQ,KAAK;aAEf,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE;IADjD,SAAkB,IAAI,wBAAuB;IAC7C,YAA4B,IAAI,EAAE;QAAE,GAAG,EAAE,M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