@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,863 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* deserializeDomainFromGraph — inverse of `materialize()`.
|
|
3
|
+
*
|
|
4
|
+
* The Domain node carries the full SchemaIR as a JSON blob (`schema`
|
|
5
|
+
* property, written at serialize time). That blob is the single source of
|
|
6
|
+
* truth for types, inheritance, imports, and the IR passthrough — no walk
|
|
7
|
+
* over Class/Interface nodes is needed for any of it.
|
|
8
|
+
*
|
|
9
|
+
* The graph is still read for:
|
|
10
|
+
* - Class/Interface self node PATHS (layout may differ from defaultLayout
|
|
11
|
+
* under a custom mount, so we pick up the real absolute paths).
|
|
12
|
+
* - Per-type `propertyIndex` blobs — denormalized PropertyMapping snapshot
|
|
13
|
+
* that lets us reconstruct DomainPropertyIndex without loading foreign
|
|
14
|
+
* domains.
|
|
15
|
+
* - Function nodes + `method_of` edges — the source of truth for
|
|
16
|
+
* cross-domain method inheritance (local methods can also be read here
|
|
17
|
+
* rather than duplicating resolution logic from IR).
|
|
18
|
+
* - Core (instance) nodes — not part of IR, only present in the graph.
|
|
19
|
+
*
|
|
20
|
+
* Known, documented losses:
|
|
21
|
+
* - `schema` (builder Schema) — Zod-opaque. Placeholder.
|
|
22
|
+
* - `methods[*].fnDef` — source-form Zod validators don't round-trip.
|
|
23
|
+
* Placeholder preserves `.config.{params,returns}` access.
|
|
24
|
+
*/
|
|
25
|
+
import { defRef } from '@astrale-os/kernel-dsl';
|
|
26
|
+
import { bindAccessorMethods } from '#domain/accessors/bind';
|
|
27
|
+
import { groupProperties } from '#domain/accessors/group';
|
|
28
|
+
import { Key } from '#domain/addressing/keys/key';
|
|
29
|
+
import { defaultLayout } from '#domain/addressing/layout/build';
|
|
30
|
+
import { CORE_ANCHOR_SLUG } from '#domain/addressing/layout/default';
|
|
31
|
+
import { isDefinitionNamespace } from '#domain/addressing/namespace';
|
|
32
|
+
import { ClassPath } from '#domain/addressing/paths/class';
|
|
33
|
+
import { CLASS_PREFIX, INTERFACE_PREFIX } from '#domain/addressing/paths/constants';
|
|
34
|
+
import { DomainPath } from '#domain/addressing/paths/domain';
|
|
35
|
+
import { InterfacePath } from '#domain/addressing/paths/interface';
|
|
36
|
+
import { MethodPath } from '#domain/addressing/paths/method';
|
|
37
|
+
import { Ref } from '#domain/addressing/refs/ref';
|
|
38
|
+
import { coreNodeExternalId } from '#domain/compile/external-ids';
|
|
39
|
+
import { methodsOf } from '#domain/compile/method/types';
|
|
40
|
+
import { DomainOrigin as brandDomainOrigin } from '#domain/origin';
|
|
41
|
+
import { PROPERTY_INDEX_BLOB_VERSION } from '#domain/serialize/schema';
|
|
42
|
+
import { getExternalId } from '#graph/sync';
|
|
43
|
+
import { K, REMOTE_KEYS } from '#kernel';
|
|
44
|
+
import { DeserializationError } from './errors';
|
|
45
|
+
// ── Kernel class raw strings (materialize writes these) ───────────────
|
|
46
|
+
const CLS_DOMAIN = K.Domain.path.class.raw;
|
|
47
|
+
const CLS_FOLDER = K.Folder.path.class.raw;
|
|
48
|
+
const CLS_CLASS = K.Class.path.class.raw;
|
|
49
|
+
const CLS_INTERFACE = K.Interface.path.class.raw;
|
|
50
|
+
const CLS_FUNCTION = K.$.c('Function').path.class.raw;
|
|
51
|
+
const CLS_HAS_PARENT = K.has_parent.path.class.raw;
|
|
52
|
+
const CLS_METHOD_OF = K.method_of.path.class.raw;
|
|
53
|
+
// ── Entry point ───────────────────────────────────────────────────────
|
|
54
|
+
/**
|
|
55
|
+
* Deserialize a `Graph` into a `CompiledDomain`.
|
|
56
|
+
*
|
|
57
|
+
* Input is a `Graph` — well-formed (absolute paths,
|
|
58
|
+
* hydrated `Path` instances, deduped ids) by construction. Callers receiving
|
|
59
|
+
* wire-form `{ nodes, edges }` must run it through `Graph.from` first; the
|
|
60
|
+
* type signature makes that conversion explicit rather than implicit.
|
|
61
|
+
*/
|
|
62
|
+
export function deserializeDomainFromGraph(graph) {
|
|
63
|
+
const nodes = graph.nodes.all;
|
|
64
|
+
const edges = graph.edges.all;
|
|
65
|
+
const domainNode = findSingleDomainNode(nodes);
|
|
66
|
+
const ir = readSchemaIR(domainNode);
|
|
67
|
+
const origin = brandDomainOrigin(ir.domain);
|
|
68
|
+
const domainPath = domainNode.path;
|
|
69
|
+
const typePaths = collectTypePaths(nodes, domainPath, ir);
|
|
70
|
+
const properties = buildProperties(typePaths);
|
|
71
|
+
const methods = buildMethods(nodes, edges, typePaths, ir, domainPath, origin);
|
|
72
|
+
const methodDeclarations = collectLocalMethodDeclarations(nodes, ir);
|
|
73
|
+
const core = buildCore(nodes, edges, domainPath, origin);
|
|
74
|
+
const refs = buildRefs(origin, ir, typePaths, methods, core);
|
|
75
|
+
const { keys, paths } = buildFlatMaps(origin, refs, methodDeclarations);
|
|
76
|
+
const inheritanceChain = buildInheritanceChain(ir);
|
|
77
|
+
const interfaces = Object.fromEntries(Object.keys(ir.interfaces).map((name) => [name, {}]));
|
|
78
|
+
const classes = Object.fromEntries(Object.keys(ir.classes).map((name) => [name, {}]));
|
|
79
|
+
const imports = Object.fromEntries(Object.entries(ir.imports ?? {}).map(([name, entry]) => [name, entry.origin]));
|
|
80
|
+
const accessors = bindAccessorMethods(origin, properties, methods);
|
|
81
|
+
const $ = Object.freeze({
|
|
82
|
+
origin,
|
|
83
|
+
schema: placeholderSchema(origin),
|
|
84
|
+
layout: defaultLayout(origin),
|
|
85
|
+
refs,
|
|
86
|
+
paths,
|
|
87
|
+
keys,
|
|
88
|
+
interfaces,
|
|
89
|
+
classes,
|
|
90
|
+
imports,
|
|
91
|
+
core,
|
|
92
|
+
methods,
|
|
93
|
+
properties,
|
|
94
|
+
inheritanceChain: Object.freeze(inheritanceChain),
|
|
95
|
+
ir,
|
|
96
|
+
warnings: Object.freeze([]),
|
|
97
|
+
...accessors,
|
|
98
|
+
group(className, flat) {
|
|
99
|
+
const byClass = properties.byClass[className];
|
|
100
|
+
if (!byClass) {
|
|
101
|
+
throw new Error(`deserializedDomain.group: unknown class "${className}" in domain "${origin}"`);
|
|
102
|
+
}
|
|
103
|
+
return groupProperties(byClass, className, origin, flat);
|
|
104
|
+
},
|
|
105
|
+
c: (name) => refs.classes[name],
|
|
106
|
+
i: (name) => refs.interfaces[name],
|
|
107
|
+
});
|
|
108
|
+
return Object.freeze({
|
|
109
|
+
$,
|
|
110
|
+
...refs.classes,
|
|
111
|
+
...refs.interfaces,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
// ── Domain node + SchemaIR blob ───────────────────────────────────────
|
|
115
|
+
function findSingleDomainNode(nodes) {
|
|
116
|
+
const domainNodes = nodes.filter((n) => n.class?.raw === CLS_DOMAIN);
|
|
117
|
+
if (domainNodes.length === 0) {
|
|
118
|
+
throw new DeserializationError('NO_DOMAIN_NODE', 'No Domain node found in graph');
|
|
119
|
+
}
|
|
120
|
+
if (domainNodes.length > 1) {
|
|
121
|
+
throw new DeserializationError('MULTIPLE_DOMAIN_NODES', `Expected exactly one Domain node, found ${domainNodes.length}`);
|
|
122
|
+
}
|
|
123
|
+
const n = domainNodes[0];
|
|
124
|
+
if (!n.path) {
|
|
125
|
+
throw new DeserializationError('MISSING_PATH', 'Domain node has no path property');
|
|
126
|
+
}
|
|
127
|
+
return n;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Does a Domain node carry a serialized SchemaIR blob?
|
|
131
|
+
*
|
|
132
|
+
* True for every domain materialized via `serialize` — the blob is the single
|
|
133
|
+
* source of truth `deserializeDomainFromGraph` reads. False only for the
|
|
134
|
+
* bootstrap kernel Domain node, created by raw boot Cypher that never writes
|
|
135
|
+
* the blob (consumers seed the kernel from the in-bundle compiled domain
|
|
136
|
+
* instead). Callers iterating Domain nodes use this to skip the ones that
|
|
137
|
+
* aren't graph-deserializable, rather than catching `MISSING_SCHEMA_IR`.
|
|
138
|
+
*/
|
|
139
|
+
export function carriesSchemaIR(node) {
|
|
140
|
+
const raw = node.props?.['schema'];
|
|
141
|
+
return typeof raw === 'string' && raw.length > 0;
|
|
142
|
+
}
|
|
143
|
+
function readSchemaIR(domainNode) {
|
|
144
|
+
if (!carriesSchemaIR(domainNode)) {
|
|
145
|
+
throw new DeserializationError('MISSING_SCHEMA_IR', 'Domain node has no `schema` property (serialized SchemaIR blob)');
|
|
146
|
+
}
|
|
147
|
+
const raw = domainNode.props?.['schema'];
|
|
148
|
+
let parsed;
|
|
149
|
+
try {
|
|
150
|
+
parsed = JSON.parse(raw);
|
|
151
|
+
}
|
|
152
|
+
catch {
|
|
153
|
+
throw new DeserializationError('MALFORMED_SCHEMA_IR', 'Domain node `schema` property is not valid JSON');
|
|
154
|
+
}
|
|
155
|
+
if (!isSchemaIR(parsed)) {
|
|
156
|
+
throw new DeserializationError('MALFORMED_SCHEMA_IR', 'Domain node `schema` property does not conform to SchemaIR shape');
|
|
157
|
+
}
|
|
158
|
+
return parsed;
|
|
159
|
+
}
|
|
160
|
+
function isSchemaIR(v) {
|
|
161
|
+
if (v === null || typeof v !== 'object')
|
|
162
|
+
return false;
|
|
163
|
+
const o = v;
|
|
164
|
+
return (typeof o.domain === 'string' &&
|
|
165
|
+
o.interfaces !== null &&
|
|
166
|
+
typeof o.interfaces === 'object' &&
|
|
167
|
+
o.classes !== null &&
|
|
168
|
+
typeof o.classes === 'object');
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Collect Class/Interface self node paths + per-type propertyIndex blobs,
|
|
172
|
+
* filtered to the types declared in the IR. Foreign self nodes (from a
|
|
173
|
+
* sibling domain's Tree merged into the same graph) are excluded by name.
|
|
174
|
+
*/
|
|
175
|
+
function collectTypePaths(nodes, domainPath, ir) {
|
|
176
|
+
const out = new Map();
|
|
177
|
+
const domainPrefix = domainPath.raw === '/' ? '/' : domainPath.raw + '/';
|
|
178
|
+
for (const n of nodes) {
|
|
179
|
+
const cls = n.class?.raw;
|
|
180
|
+
if (cls !== CLS_CLASS && cls !== CLS_INTERFACE)
|
|
181
|
+
continue;
|
|
182
|
+
if (!n.path)
|
|
183
|
+
continue;
|
|
184
|
+
if (!n.path.raw.startsWith(domainPrefix) && n.path.raw !== domainPath.raw)
|
|
185
|
+
continue;
|
|
186
|
+
// Class/Interface `name` is inherited from Named → canonical qualified key.
|
|
187
|
+
const name = n.props?.[K.Named.name.key];
|
|
188
|
+
if (!name)
|
|
189
|
+
continue;
|
|
190
|
+
const isInterface = cls === CLS_INTERFACE;
|
|
191
|
+
const local = isInterface ? ir.interfaces[name] : ir.classes[name];
|
|
192
|
+
if (!local)
|
|
193
|
+
continue;
|
|
194
|
+
if (n.path.isRoot)
|
|
195
|
+
continue;
|
|
196
|
+
const folderPath = n.path.parent();
|
|
197
|
+
out.set(name, {
|
|
198
|
+
path: n.path,
|
|
199
|
+
folderPath: folderPath,
|
|
200
|
+
propertyIndex: parsePropertyIndexBlob(n.props?.['propertyIndex']),
|
|
201
|
+
namespace: isInterface ? 'interface' : 'class',
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
return out;
|
|
205
|
+
}
|
|
206
|
+
function parsePropertyIndexBlob(raw) {
|
|
207
|
+
if (raw === undefined || raw === null)
|
|
208
|
+
return {};
|
|
209
|
+
if (typeof raw !== 'string' || raw.length === 0)
|
|
210
|
+
return {};
|
|
211
|
+
let parsed;
|
|
212
|
+
try {
|
|
213
|
+
parsed = JSON.parse(raw);
|
|
214
|
+
}
|
|
215
|
+
catch {
|
|
216
|
+
throw new DeserializationError('MALFORMED_PROPERTY_INDEX', 'propertyIndex blob is not valid JSON');
|
|
217
|
+
}
|
|
218
|
+
if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
219
|
+
throw new DeserializationError('MALFORMED_PROPERTY_INDEX', 'propertyIndex blob is not a plain object');
|
|
220
|
+
}
|
|
221
|
+
const payload = parsed;
|
|
222
|
+
if (payload.version !== PROPERTY_INDEX_BLOB_VERSION) {
|
|
223
|
+
throw new DeserializationError('UNSUPPORTED_PROPERTY_INDEX_VERSION', `propertyIndex blob version ${String(payload.version)} not supported (expected ${PROPERTY_INDEX_BLOB_VERSION})`);
|
|
224
|
+
}
|
|
225
|
+
if (payload.byDomainOwner === null ||
|
|
226
|
+
typeof payload.byDomainOwner !== 'object' ||
|
|
227
|
+
Array.isArray(payload.byDomainOwner)) {
|
|
228
|
+
throw new DeserializationError('MALFORMED_PROPERTY_INDEX', 'propertyIndex.byDomainOwner is not a plain object');
|
|
229
|
+
}
|
|
230
|
+
const validated = {};
|
|
231
|
+
for (const [domain, byOwner] of Object.entries(payload.byDomainOwner)) {
|
|
232
|
+
if (byOwner === null || typeof byOwner !== 'object' || Array.isArray(byOwner)) {
|
|
233
|
+
throw new DeserializationError('MALFORMED_PROPERTY_INDEX', `propertyIndex.byDomainOwner["${domain}"] is not a plain object`);
|
|
234
|
+
}
|
|
235
|
+
const ownerMap = {};
|
|
236
|
+
for (const [ownerName, propMap] of Object.entries(byOwner)) {
|
|
237
|
+
if (propMap === null || typeof propMap !== 'object' || Array.isArray(propMap)) {
|
|
238
|
+
throw new DeserializationError('MALFORMED_PROPERTY_INDEX', `propertyIndex.byDomainOwner["${domain}"]["${ownerName}"] is not a plain object`);
|
|
239
|
+
}
|
|
240
|
+
const inner = {};
|
|
241
|
+
for (const [propName, mapping] of Object.entries(propMap)) {
|
|
242
|
+
if (!isPropertyMapping(mapping)) {
|
|
243
|
+
throw new DeserializationError('MALFORMED_PROPERTY_INDEX', `propertyIndex.byDomainOwner["${domain}"]["${ownerName}"]["${propName}"] is not a valid PropertyMapping`);
|
|
244
|
+
}
|
|
245
|
+
inner[propName] = mapping;
|
|
246
|
+
}
|
|
247
|
+
ownerMap[ownerName] = inner;
|
|
248
|
+
}
|
|
249
|
+
validated[domain] = ownerMap;
|
|
250
|
+
}
|
|
251
|
+
return validated;
|
|
252
|
+
}
|
|
253
|
+
function isPropertyMapping(v) {
|
|
254
|
+
if (v === null || typeof v !== 'object')
|
|
255
|
+
return false;
|
|
256
|
+
const m = v;
|
|
257
|
+
return (typeof m.key === 'string' &&
|
|
258
|
+
typeof m.propName === 'string' &&
|
|
259
|
+
typeof m.owner === 'string' &&
|
|
260
|
+
typeof m.domain === 'string' &&
|
|
261
|
+
typeof m.private === 'boolean' &&
|
|
262
|
+
typeof m.isAttribute === 'boolean');
|
|
263
|
+
}
|
|
264
|
+
// ── Properties ────────────────────────────────────────────────────────
|
|
265
|
+
function buildProperties(types) {
|
|
266
|
+
const byClass = {};
|
|
267
|
+
for (const [name, t] of types) {
|
|
268
|
+
if (t.namespace === 'interface')
|
|
269
|
+
continue;
|
|
270
|
+
const entry = {};
|
|
271
|
+
for (const [domain, byOwner] of Object.entries(t.propertyIndex)) {
|
|
272
|
+
const frozenByOwner = {};
|
|
273
|
+
for (const [ownerName, propMap] of Object.entries(byOwner)) {
|
|
274
|
+
const frozenProps = {};
|
|
275
|
+
for (const [propName, mapping] of Object.entries(propMap)) {
|
|
276
|
+
frozenProps[propName] = Object.freeze({ ...mapping });
|
|
277
|
+
}
|
|
278
|
+
frozenByOwner[ownerName] = Object.freeze(frozenProps);
|
|
279
|
+
}
|
|
280
|
+
entry[domain] = Object.freeze(frozenByOwner);
|
|
281
|
+
}
|
|
282
|
+
byClass[name] = Object.freeze(entry);
|
|
283
|
+
}
|
|
284
|
+
const flat = {};
|
|
285
|
+
for (const [className, byDomain] of Object.entries(byClass)) {
|
|
286
|
+
const inner = {};
|
|
287
|
+
for (const byOwner of Object.values(byDomain)) {
|
|
288
|
+
for (const propMap of Object.values(byOwner)) {
|
|
289
|
+
for (const [propName, mapping] of Object.entries(propMap)) {
|
|
290
|
+
inner[propName] = mapping;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
flat[className] = Object.freeze(inner);
|
|
295
|
+
}
|
|
296
|
+
const frozenByClass = Object.freeze(byClass);
|
|
297
|
+
const frozenFlat = Object.freeze(flat);
|
|
298
|
+
return Object.freeze({
|
|
299
|
+
byClass: frozenByClass,
|
|
300
|
+
flat: frozenFlat,
|
|
301
|
+
resolveMember(key) {
|
|
302
|
+
const parsed = Key.tryParse(key);
|
|
303
|
+
if (!parsed || !parsed.isProperty)
|
|
304
|
+
return undefined;
|
|
305
|
+
const ownerName = parsed.member;
|
|
306
|
+
const propName = parsed.child;
|
|
307
|
+
for (const byDomain of Object.values(frozenByClass)) {
|
|
308
|
+
for (const byOwner of Object.values(byDomain)) {
|
|
309
|
+
const mapping = byOwner[ownerName]?.[propName];
|
|
310
|
+
if (mapping)
|
|
311
|
+
return mapping;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return undefined;
|
|
315
|
+
},
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
// ── Methods (graph walk — Function + method_of) ───────────────────────
|
|
319
|
+
/**
|
|
320
|
+
* Reconstruct `DomainMethodsMap` from Function nodes + method_of edges.
|
|
321
|
+
*
|
|
322
|
+
* Function nodes are the source of truth because cross-domain inheritance points
|
|
323
|
+
* at the ORIGIN Function node (under the foreign domain's layout). Resolving
|
|
324
|
+
* these from IR alone would require loading the foreign IR; reading the
|
|
325
|
+
* graph directly keeps the deserializer self-contained.
|
|
326
|
+
*/
|
|
327
|
+
function buildMethods(nodes, edges, types, _ir, domainPath, origin) {
|
|
328
|
+
const methods = indexMethods(nodes, origin, domainPath);
|
|
329
|
+
const out = {};
|
|
330
|
+
const pathToName = buildPathToNameIndex(nodes, domainPath);
|
|
331
|
+
for (const e of edges) {
|
|
332
|
+
if (e.class?.raw !== CLS_METHOD_OF)
|
|
333
|
+
continue;
|
|
334
|
+
const entry = methods.get(e.source.raw);
|
|
335
|
+
if (!entry)
|
|
336
|
+
continue;
|
|
337
|
+
// `Graph.from` canonicalization is lane-preserving: AbsolutePath
|
|
338
|
+
// authored targets collapse to `node.path.raw`, typed authored targets
|
|
339
|
+
// collapse to `node.semantic.raw`. `pathToName` is indexed under both
|
|
340
|
+
// forms so the lookup succeeds regardless of which lane the serializer
|
|
341
|
+
// authored. Out-of-graph owners keep their authored raw, which won't
|
|
342
|
+
// be in `pathToName` and are treated as unknown.
|
|
343
|
+
const targetRaw = e.target.raw;
|
|
344
|
+
const ownerName = pathToName.get(targetRaw);
|
|
345
|
+
if (!ownerName)
|
|
346
|
+
continue;
|
|
347
|
+
if (!types.has(ownerName)) {
|
|
348
|
+
if (entry.declaringName === ownerName) {
|
|
349
|
+
// The method node is local but its owner type isn't in this domain —
|
|
350
|
+
// inputs with cross-domain data but matching names would silently
|
|
351
|
+
// drop methods. Surface explicitly.
|
|
352
|
+
throw new DeserializationError('UNKNOWN_METHOD_OWNER', `method_of target "${ownerName}" at ${targetRaw} is not a type in this domain`);
|
|
353
|
+
}
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
const inheritance = translateInheritance(entry.declaringName, ownerName, entry.graphInheritance);
|
|
357
|
+
const memberKind = types.get(ownerName).namespace;
|
|
358
|
+
// Kind of the DECLARING def (may differ from memberKind for inherited
|
|
359
|
+
// methods); falls back to memberKind for own / out-of-graph origins.
|
|
360
|
+
const originKind = types.get(entry.declaringName)?.namespace ?? memberKind;
|
|
361
|
+
const isOwn = entry.declaringName === ownerName;
|
|
362
|
+
// Keyed by defRef so a class and an interface sharing a name don't collide.
|
|
363
|
+
const key = defRef(memberKind, ownerName);
|
|
364
|
+
const bucket = out[key] ?? (out[key] = {});
|
|
365
|
+
bucket[entry.methodName] = Object.freeze({
|
|
366
|
+
fnDef: placeholderFnDef(),
|
|
367
|
+
inheritance,
|
|
368
|
+
origin: entry.declaringName,
|
|
369
|
+
originKind,
|
|
370
|
+
isOwn,
|
|
371
|
+
isOverride: isOwn && inheritance === 'override',
|
|
372
|
+
shadowsSealed: false,
|
|
373
|
+
memberKind,
|
|
374
|
+
ref: Ref.method(memberKind, ownerName, entry.methodName).toString(),
|
|
375
|
+
path: MethodPath.from({
|
|
376
|
+
domain: origin,
|
|
377
|
+
member: ownerName,
|
|
378
|
+
memberKind,
|
|
379
|
+
method: entry.methodName,
|
|
380
|
+
}),
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
for (const name of Object.keys(out))
|
|
384
|
+
out[name] = Object.freeze(out[name]);
|
|
385
|
+
return Object.freeze(out);
|
|
386
|
+
}
|
|
387
|
+
function indexMethods(nodes, origin, domainPath) {
|
|
388
|
+
const out = new Map();
|
|
389
|
+
// Mount: parent of the Domain self-node — used to construct the typed
|
|
390
|
+
// `MethodPath` form consistent with how the schema serializer authors
|
|
391
|
+
// typed Function-node sources (`serialize/schema.ts:resolveMethodAddress`).
|
|
392
|
+
const mount = domainPath.isRoot ? domainPath : domainPath.parent();
|
|
393
|
+
for (const n of nodes) {
|
|
394
|
+
if (n.class?.raw !== CLS_FUNCTION)
|
|
395
|
+
continue;
|
|
396
|
+
if (!n.path) {
|
|
397
|
+
throw new DeserializationError('MISSING_PATH', 'Function node has no path property');
|
|
398
|
+
}
|
|
399
|
+
// Function node props use the canonical qualified storage form.
|
|
400
|
+
const rawRef = n.props?.[K.$.i('Function').ref.key];
|
|
401
|
+
if (!rawRef) {
|
|
402
|
+
throw new DeserializationError('INVALID_SYSCALL_REF', `Function node at ${n.path.raw} is missing its ${K.$.i('Function').ref.key} property.`);
|
|
403
|
+
}
|
|
404
|
+
// Only methods-of-a-class are indexed here. Standalone callables (the former
|
|
405
|
+
// `RemoteFunction`) are now `Function`-class nodes too, but they carry a
|
|
406
|
+
// non-method ref (default `function.<slug>`, which is not a valid namespace
|
|
407
|
+
// and so unparseable) and a `Function.binding` prop. The presence of the
|
|
408
|
+
// binding prop is the canonical "recognized callable" marker, used by
|
|
409
|
+
// `resolveCallableNodes`, the install flow, and identity registration.
|
|
410
|
+
//
|
|
411
|
+
// Reconciliation: a Function node that has NEITHER a parseable method ref
|
|
412
|
+
// NOR a Function.binding is corruption (the merge of Method + RemoteFunction
|
|
413
|
+
// removed the ref-must-be-method invariant, so the integrity check now keys
|
|
414
|
+
// on the structural "recognized callable" signal instead).
|
|
415
|
+
const ref = Ref.tryParse(rawRef);
|
|
416
|
+
if (!ref?.isMethod) {
|
|
417
|
+
const bindingKey = K.$.i('Function').binding.key;
|
|
418
|
+
const props = n.props ?? {};
|
|
419
|
+
const bindingValue = props[bindingKey];
|
|
420
|
+
const hasBinding = bindingValue !== undefined && bindingValue !== null && bindingValue !== '';
|
|
421
|
+
if (!hasBinding) {
|
|
422
|
+
throw new DeserializationError('INVALID_SYSCALL_REF', `Function node at ${n.path.raw} is unresolvable: ref "${rawRef}" is not a method ref and the node has no Function.binding.`);
|
|
423
|
+
}
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
const entry = {
|
|
427
|
+
declaringName: ref.member,
|
|
428
|
+
methodName: ref.child,
|
|
429
|
+
graphInheritance: n.props?.[K.$.i('Function').inheritance.key] ?? 'default',
|
|
430
|
+
};
|
|
431
|
+
// AbsolutePath form (legacy authoring convention).
|
|
432
|
+
out.set(n.path.raw, entry);
|
|
433
|
+
// Typed `MethodPath` form (symmetric authoring convention) — the
|
|
434
|
+
// schema serializer now emits `method_of` edges with this typed
|
|
435
|
+
// source, so the lookup at `buildMethods` line 450 must hit either
|
|
436
|
+
// form. The namespace ('class' | 'interface') comes from the ref.
|
|
437
|
+
if (!isDefinitionNamespace(ref.namespace))
|
|
438
|
+
continue;
|
|
439
|
+
const memberKind = ref.namespace;
|
|
440
|
+
out.set(MethodPath.from({ domain: origin, member: ref.member, memberKind, method: ref.child }, { parent: mount }).raw, entry);
|
|
441
|
+
}
|
|
442
|
+
return out;
|
|
443
|
+
}
|
|
444
|
+
function buildPathToNameIndex(nodes, domainPath) {
|
|
445
|
+
const out = new Map();
|
|
446
|
+
// Mount: everything before the Domain node's basename. Used to construct
|
|
447
|
+
// typed Path forms (ClassPath/InterfacePath) consistent with how the
|
|
448
|
+
// serializer authors them (serialize/schema.ts:129-130).
|
|
449
|
+
const mount = domainPath.isRoot ? domainPath : domainPath.parent();
|
|
450
|
+
const origin = domainPath.isRoot ? null : domainPath.slugs[domainPath.slugs.length - 1];
|
|
451
|
+
for (const n of nodes) {
|
|
452
|
+
if (!n.path)
|
|
453
|
+
continue;
|
|
454
|
+
const name = n.props?.[K.Named.name.key];
|
|
455
|
+
if (!name)
|
|
456
|
+
continue;
|
|
457
|
+
out.set(n.path.raw, name);
|
|
458
|
+
// Lane preservation (graph.ts:582-597): canonicalization keeps typed
|
|
459
|
+
// authored edge targets in the typed lane (collapsing to
|
|
460
|
+
// `node.semantic.raw` when populated, else preserving the authored
|
|
461
|
+
// form). Patch.toGraph doesn't populate `semantic`, so the authored
|
|
462
|
+
// typed form survives verbatim. Index Class/Interface nodes under
|
|
463
|
+
// their typed raw too so the method_of lookup hits both lanes.
|
|
464
|
+
if (origin === null)
|
|
465
|
+
continue;
|
|
466
|
+
const cls = n.class?.raw;
|
|
467
|
+
if (cls === CLS_CLASS) {
|
|
468
|
+
out.set(ClassPath.from({ domain: origin, className: name }, { parent: mount }).raw, name);
|
|
469
|
+
}
|
|
470
|
+
else if (cls === CLS_INTERFACE) {
|
|
471
|
+
out.set(InterfacePath.from({ domain: origin, interfaceName: name }, { parent: mount }).raw, name);
|
|
472
|
+
}
|
|
473
|
+
else if (cls === CLS_DOMAIN) {
|
|
474
|
+
out.set(DomainPath.from({ domain: name }, { parent: mount }).raw, name);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
return out;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Translate graph-side inheritance marker to domain-side `DomainInheritance`,
|
|
481
|
+
* per owner.
|
|
482
|
+
*
|
|
483
|
+
* | graph marker | declaring == owner | declaring != owner |
|
|
484
|
+
* |--------------|--------------------|---------------------|
|
|
485
|
+
* | 'own' | 'own' | (unreachable) |
|
|
486
|
+
* | 'override' | 'override' | (unreachable) |
|
|
487
|
+
* | 'sealed' | 'sealed' | 'sealed' |
|
|
488
|
+
* | 'default' | 'own' | 'inherited-default' |
|
|
489
|
+
*
|
|
490
|
+
* Unknown markers fall back to 'sealed' — non-overridable and safe.
|
|
491
|
+
*/
|
|
492
|
+
function translateInheritance(declaringName, ownerName, graphInheritance) {
|
|
493
|
+
if (declaringName === ownerName) {
|
|
494
|
+
if (graphInheritance === 'sealed')
|
|
495
|
+
return 'sealed';
|
|
496
|
+
if (graphInheritance === 'override')
|
|
497
|
+
return 'override';
|
|
498
|
+
return 'own';
|
|
499
|
+
}
|
|
500
|
+
if (graphInheritance === 'sealed')
|
|
501
|
+
return 'sealed';
|
|
502
|
+
if (graphInheritance === 'default' || graphInheritance === 'inherited-default') {
|
|
503
|
+
return 'inherited-default';
|
|
504
|
+
}
|
|
505
|
+
return 'sealed';
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Refs `keys` surface enumerates every locally-declared method, independent of
|
|
509
|
+
* inheritance fanout (source-path semantics). Collect declaration refs by
|
|
510
|
+
* walking method nodes whose declaring type is local to this domain.
|
|
511
|
+
*/
|
|
512
|
+
function collectLocalMethodDeclarations(nodes, ir) {
|
|
513
|
+
const out = new Set();
|
|
514
|
+
const localNames = new Set([...Object.keys(ir.interfaces), ...Object.keys(ir.classes)]);
|
|
515
|
+
for (const n of nodes) {
|
|
516
|
+
if (n.class?.raw !== CLS_FUNCTION)
|
|
517
|
+
continue;
|
|
518
|
+
const rawName = n.props?.['ref'] ?? n.props?.['name'] ?? '';
|
|
519
|
+
const ref = Ref.tryParse(rawName);
|
|
520
|
+
if (!ref || !ref.isMethod)
|
|
521
|
+
continue;
|
|
522
|
+
if (!localNames.has(ref.member))
|
|
523
|
+
continue;
|
|
524
|
+
out.add(ref.toString());
|
|
525
|
+
}
|
|
526
|
+
return out;
|
|
527
|
+
}
|
|
528
|
+
// ── Core (instance) nodes ─────────────────────────────────────────────
|
|
529
|
+
function buildCore(nodes, edges, domainPath, origin) {
|
|
530
|
+
// The user-core anchor is `<domain>/core` (kernel Folder). Its presence is
|
|
531
|
+
// the structural signal that this domain has user core; its absence means
|
|
532
|
+
// no core.
|
|
533
|
+
const coreAnchorPath = domainPath.append(CORE_ANCHOR_SLUG);
|
|
534
|
+
const hasAnchor = nodes.some((n) => n.path?.raw === coreAnchorPath.raw && n.class?.raw === CLS_FOLDER);
|
|
535
|
+
if (!hasAnchor)
|
|
536
|
+
return undefined;
|
|
537
|
+
const anchorSlugCount = coreAnchorPath.slugs.length;
|
|
538
|
+
const coreNodesByPath = new Map();
|
|
539
|
+
for (const n of nodes) {
|
|
540
|
+
if (!n.path)
|
|
541
|
+
continue;
|
|
542
|
+
const cls = n.class?.raw;
|
|
543
|
+
if (!cls)
|
|
544
|
+
continue;
|
|
545
|
+
if (n.path.raw === coreAnchorPath.raw)
|
|
546
|
+
continue; // the anchor itself
|
|
547
|
+
if (!isUnder(n.path, coreAnchorPath))
|
|
548
|
+
continue;
|
|
549
|
+
if (!getExternalId(n.props ?? {}, REMOTE_KEYS))
|
|
550
|
+
continue;
|
|
551
|
+
const ref = relativeRef(n.path, anchorSlugCount);
|
|
552
|
+
if (!ref)
|
|
553
|
+
continue;
|
|
554
|
+
coreNodesByPath.set(n.path.raw, { path: n.path, ref, node: n });
|
|
555
|
+
}
|
|
556
|
+
// Top-level user entries `has_parent → anchor`. The anchor itself
|
|
557
|
+
// `has_parent → Domain root`, which is fine — its edge is not in the user
|
|
558
|
+
// core walk. The Domain root has two equivalent forms on edge targets:
|
|
559
|
+
// its AbsolutePath (`/<origin>`) and its typed `DomainPath` (`/:<origin>`).
|
|
560
|
+
const allowedParentRaws = new Set([
|
|
561
|
+
coreAnchorPath.raw,
|
|
562
|
+
domainPath.raw,
|
|
563
|
+
DomainPath.from({ domain: origin }, { parent: domainPath.parent() }).raw,
|
|
564
|
+
]);
|
|
565
|
+
const parentByPath = new Map();
|
|
566
|
+
for (const e of edges) {
|
|
567
|
+
if (e.class?.raw !== CLS_HAS_PARENT)
|
|
568
|
+
continue;
|
|
569
|
+
const src = e.source.raw;
|
|
570
|
+
const tgt = e.target.raw;
|
|
571
|
+
if (!coreNodesByPath.has(src))
|
|
572
|
+
continue;
|
|
573
|
+
const tgtCore = coreNodesByPath.get(tgt);
|
|
574
|
+
if (tgtCore) {
|
|
575
|
+
parentByPath.set(src, tgtCore.ref);
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
if (allowedParentRaws.has(tgt))
|
|
579
|
+
continue;
|
|
580
|
+
throw new DeserializationError('CORE_PARENT_MISSING', `Core node ${src} has_parent → ${tgt}, which is not a core node, the anchor, or the domain root`);
|
|
581
|
+
}
|
|
582
|
+
const refs = {};
|
|
583
|
+
const keys = {};
|
|
584
|
+
const paths = {};
|
|
585
|
+
const externalIds = {};
|
|
586
|
+
const entries = {};
|
|
587
|
+
for (const { path, ref, node } of coreNodesByPath.values()) {
|
|
588
|
+
const className = node.class?.className;
|
|
589
|
+
if (!className)
|
|
590
|
+
continue;
|
|
591
|
+
const classDomain = brandDomainOrigin(node.class.domain);
|
|
592
|
+
const externalId = getExternalId(node.props, REMOTE_KEYS) ?? coreNodeExternalId(origin, path);
|
|
593
|
+
refs[ref] = ref;
|
|
594
|
+
keys[ref] = Key.of(origin, Ref.member('core', ref)).toString();
|
|
595
|
+
paths[ref] = path;
|
|
596
|
+
externalIds[ref] = externalId;
|
|
597
|
+
entries[ref] = Object.freeze({
|
|
598
|
+
ref,
|
|
599
|
+
className,
|
|
600
|
+
classDomain,
|
|
601
|
+
path,
|
|
602
|
+
externalId,
|
|
603
|
+
parentRef: parentByPath.get(path.raw),
|
|
604
|
+
data: stripRemoteKeys(node.props),
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
// User-defined core edges: source is a core node. Target may be a core node,
|
|
608
|
+
// a class/interface meta-node (declared via `selfOf`), or a cross-domain node.
|
|
609
|
+
// Edge class may belong to this domain or to an imported domain.
|
|
610
|
+
// `has_parent` edges from core nodes are excluded — they were processed
|
|
611
|
+
// above as the structural parent backbone.
|
|
612
|
+
const coreEdges = [];
|
|
613
|
+
for (const e of edges) {
|
|
614
|
+
if (!e.class || e.class.raw === CLS_HAS_PARENT)
|
|
615
|
+
continue;
|
|
616
|
+
if (!coreNodesByPath.has(e.source.raw))
|
|
617
|
+
continue;
|
|
618
|
+
coreEdges.push(Object.freeze({
|
|
619
|
+
className: e.class.className,
|
|
620
|
+
classDomain: brandDomainOrigin(e.class.domain),
|
|
621
|
+
fromPath: e.source,
|
|
622
|
+
toPath: e.target,
|
|
623
|
+
data: stripRemoteKeys(e.props),
|
|
624
|
+
}));
|
|
625
|
+
}
|
|
626
|
+
return Object.freeze({
|
|
627
|
+
refs: Object.freeze(refs),
|
|
628
|
+
keys: Object.freeze(keys),
|
|
629
|
+
paths: Object.freeze(paths),
|
|
630
|
+
externalIds: Object.freeze(externalIds),
|
|
631
|
+
entries: Object.freeze(entries),
|
|
632
|
+
edges: Object.freeze(coreEdges),
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
function isUnder(candidate, ancestor) {
|
|
636
|
+
if (candidate.raw === ancestor.raw)
|
|
637
|
+
return false;
|
|
638
|
+
const prefix = ancestor.raw === '/' ? '/' : ancestor.raw + '/';
|
|
639
|
+
return candidate.raw.startsWith(prefix);
|
|
640
|
+
}
|
|
641
|
+
function relativeRef(path, domainSlugCount) {
|
|
642
|
+
const slugs = path.slugs.slice(domainSlugCount);
|
|
643
|
+
if (slugs.length === 0)
|
|
644
|
+
return undefined;
|
|
645
|
+
return slugs.join('.');
|
|
646
|
+
}
|
|
647
|
+
function stripRemoteKeys(props) {
|
|
648
|
+
if (!props)
|
|
649
|
+
return Object.freeze({});
|
|
650
|
+
const remoteKeySet = new Set(Object.values(REMOTE_KEYS));
|
|
651
|
+
const out = {};
|
|
652
|
+
for (const [key, value] of Object.entries(props)) {
|
|
653
|
+
if (remoteKeySet.has(key))
|
|
654
|
+
continue;
|
|
655
|
+
out[key] = value;
|
|
656
|
+
}
|
|
657
|
+
return Object.freeze(out);
|
|
658
|
+
}
|
|
659
|
+
// ── Refs ──────────────────────────────────────────────────────────────
|
|
660
|
+
function buildRefs(origin, ir, types, methods, core) {
|
|
661
|
+
const interfaces = {};
|
|
662
|
+
const classes = {};
|
|
663
|
+
for (const name of Object.keys(ir.interfaces)) {
|
|
664
|
+
const entry = buildMemberEntry(origin, name, 'interface', types, methods);
|
|
665
|
+
if (entry)
|
|
666
|
+
interfaces[name] = entry;
|
|
667
|
+
}
|
|
668
|
+
for (const name of Object.keys(ir.classes)) {
|
|
669
|
+
const entry = buildMemberEntry(origin, name, 'class', types, methods);
|
|
670
|
+
if (entry)
|
|
671
|
+
classes[name] = entry;
|
|
672
|
+
}
|
|
673
|
+
return Object.freeze({
|
|
674
|
+
interfaces: Object.freeze(interfaces),
|
|
675
|
+
classes: Object.freeze(classes),
|
|
676
|
+
core: core ? buildCoreGroup(origin, core) : Object.freeze({}),
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
function buildMemberEntry(origin, name, namespace, types, methods) {
|
|
680
|
+
const typePath = types.get(name);
|
|
681
|
+
if (!typePath)
|
|
682
|
+
return undefined;
|
|
683
|
+
const memberRef = Ref.member(namespace, name);
|
|
684
|
+
const memberRefStr = memberRef.toString();
|
|
685
|
+
const memberKey = Key.of(origin, memberRef).toString();
|
|
686
|
+
const memberPath = Object.freeze({
|
|
687
|
+
domain: memberSemanticPath(origin, memberRef.qualified, name),
|
|
688
|
+
absolute: typePath.path,
|
|
689
|
+
class: ClassPath.from({ domain: origin, className: name }),
|
|
690
|
+
});
|
|
691
|
+
const methodEntries = {};
|
|
692
|
+
const ownerMethods = methodsOf(methods, namespace, name);
|
|
693
|
+
if (ownerMethods) {
|
|
694
|
+
for (const [methodName, rm] of Object.entries(ownerMethods)) {
|
|
695
|
+
if (!rm.isOwn && (rm.inheritance === 'sealed' || rm.inheritance === 'inherited-default')) {
|
|
696
|
+
continue;
|
|
697
|
+
}
|
|
698
|
+
const mRef = Ref.method(namespace, name, methodName);
|
|
699
|
+
const mAbs = typePath.folderPath.append(methodName);
|
|
700
|
+
const mPath = Object.freeze({
|
|
701
|
+
method: methodSemanticPath(origin, mRef.qualified, mRef.child),
|
|
702
|
+
absolute: mAbs,
|
|
703
|
+
});
|
|
704
|
+
methodEntries[methodName] = Object.freeze({
|
|
705
|
+
ref: mRef.toString(),
|
|
706
|
+
key: Key.of(origin, mRef).toString(),
|
|
707
|
+
path: mPath,
|
|
708
|
+
});
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
const accessors = Object.freeze({
|
|
712
|
+
m: (n) => methodEntries[n],
|
|
713
|
+
// Deserialization doesn't reconstruct PropertyRefEntry — refs expose
|
|
714
|
+
// the method surface only. Callers needing property refs consume
|
|
715
|
+
// compiled.$.properties directly.
|
|
716
|
+
p: (_n) => undefined,
|
|
717
|
+
});
|
|
718
|
+
return Object.freeze({
|
|
719
|
+
ref: memberRefStr,
|
|
720
|
+
key: memberKey,
|
|
721
|
+
path: memberPath,
|
|
722
|
+
$: accessors,
|
|
723
|
+
...methodEntries,
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
function buildCoreGroup(origin, core) {
|
|
727
|
+
const result = {};
|
|
728
|
+
for (const [name, entry] of Object.entries(core.entries)) {
|
|
729
|
+
const ref = Ref.member('core', name);
|
|
730
|
+
const refPath = Object.freeze({
|
|
731
|
+
domain: DomainPath.from({ domain: origin, member: ref.qualified }),
|
|
732
|
+
absolute: entry.path,
|
|
733
|
+
});
|
|
734
|
+
result[name] = Object.freeze({
|
|
735
|
+
ref: ref.toString(),
|
|
736
|
+
key: Key.of(origin, ref).toString(),
|
|
737
|
+
path: refPath,
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
return Object.freeze(result);
|
|
741
|
+
}
|
|
742
|
+
// ── Flat maps ─────────────────────────────────────────────────────────
|
|
743
|
+
function buildFlatMaps(origin, refs, methodDeclarations) {
|
|
744
|
+
const keys = {};
|
|
745
|
+
const absolute = {};
|
|
746
|
+
const classMap = {};
|
|
747
|
+
emitGroup(refs.interfaces);
|
|
748
|
+
emitGroup(refs.classes);
|
|
749
|
+
for (const entry of Object.values(refs.core)) {
|
|
750
|
+
keys[entry.ref] = entry.key;
|
|
751
|
+
absolute[entry.ref] = entry.path.absolute;
|
|
752
|
+
}
|
|
753
|
+
for (const refStr of methodDeclarations) {
|
|
754
|
+
if (refStr in keys)
|
|
755
|
+
continue;
|
|
756
|
+
keys[refStr] = Key.of(origin, Ref.parse(refStr)).toString();
|
|
757
|
+
}
|
|
758
|
+
return {
|
|
759
|
+
keys: keys,
|
|
760
|
+
paths: Object.freeze({
|
|
761
|
+
absolute: Object.freeze(absolute),
|
|
762
|
+
class: Object.freeze(classMap),
|
|
763
|
+
}),
|
|
764
|
+
};
|
|
765
|
+
function emitGroup(group) {
|
|
766
|
+
for (const member of Object.values(group)) {
|
|
767
|
+
keys[member.ref] = member.key;
|
|
768
|
+
absolute[member.ref] = member.path.absolute;
|
|
769
|
+
classMap[member.ref] = member.path.class;
|
|
770
|
+
for (const [key, value] of Object.entries(member)) {
|
|
771
|
+
if (key === 'ref' || key === 'key' || key === 'path' || key === '$')
|
|
772
|
+
continue;
|
|
773
|
+
if (typeof value !== 'object' || value === null)
|
|
774
|
+
continue;
|
|
775
|
+
const sub = value;
|
|
776
|
+
if (!sub.ref || !sub.path)
|
|
777
|
+
continue;
|
|
778
|
+
keys[sub.ref] = sub.key;
|
|
779
|
+
absolute[sub.ref] = sub.path.absolute;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
// ── Inheritance chain (derived from IR) ───────────────────────────────
|
|
785
|
+
function buildInheritanceChain(ir) {
|
|
786
|
+
// Parents are always INTERFACES (classes `implements` interfaces; interfaces
|
|
787
|
+
// `extends` interfaces). Keyed by interface name — unique among interfaces,
|
|
788
|
+
// so a class/interface homonym (e.g. `Function`) does not collide here.
|
|
789
|
+
const ifaceExtends = new Map();
|
|
790
|
+
for (const [name, decl] of Object.entries(ir.interfaces)) {
|
|
791
|
+
ifaceExtends.set(name, decl.extends);
|
|
792
|
+
}
|
|
793
|
+
// `seen` is keyed by defRef (`<kind>.<name>`), not bare name, and seeded with
|
|
794
|
+
// the self's defRef. This matches the canonical compiler `buildInheritanceChains`
|
|
795
|
+
// (compile/inheritance.ts), which dedups by def IDENTITY: a class `Function`
|
|
796
|
+
// and a same-named interface `Function` are distinct keys (`class.Function` vs
|
|
797
|
+
// `interface.Function`), so the class walks INTO the interface to inherit its
|
|
798
|
+
// ancestors (Container, Identity, …). Genuine cycles (e.g. interface A extends
|
|
799
|
+
// B, B extends A) collapse correctly to `[A, B]` because the back-edge to A
|
|
800
|
+
// hits the seeded self defRef. Every parent is an interface by construction
|
|
801
|
+
// (classes `implements` interfaces; interfaces `extends` interfaces).
|
|
802
|
+
const walk = (selfKind, selfName, directParents) => {
|
|
803
|
+
const chain = [selfName];
|
|
804
|
+
const seen = new Set([defRef(selfKind, selfName)]);
|
|
805
|
+
const queue = [...directParents];
|
|
806
|
+
while (queue.length > 0) {
|
|
807
|
+
const p = queue.shift();
|
|
808
|
+
const pKey = defRef('interface', p);
|
|
809
|
+
if (seen.has(pKey))
|
|
810
|
+
continue;
|
|
811
|
+
seen.add(pKey);
|
|
812
|
+
chain.push(p);
|
|
813
|
+
for (const pp of ifaceExtends.get(p) ?? [])
|
|
814
|
+
queue.push(pp);
|
|
815
|
+
}
|
|
816
|
+
return Object.freeze(chain);
|
|
817
|
+
};
|
|
818
|
+
const out = {};
|
|
819
|
+
for (const [name, decl] of Object.entries(ir.interfaces)) {
|
|
820
|
+
out[defRef('interface', name)] = walk('interface', name, decl.extends);
|
|
821
|
+
}
|
|
822
|
+
for (const [name, decl] of Object.entries(ir.classes)) {
|
|
823
|
+
out[defRef('class', name)] = walk('class', name, decl.implements ?? []);
|
|
824
|
+
}
|
|
825
|
+
return out;
|
|
826
|
+
}
|
|
827
|
+
// ── Placeholders ──────────────────────────────────────────────────────
|
|
828
|
+
/**
|
|
829
|
+
* Structurally-valid builder `Schema` placeholder. Holds no Zod types —
|
|
830
|
+
* consumers that need real validators must call `compileDomain(original)`.
|
|
831
|
+
*/
|
|
832
|
+
function placeholderSchema(origin) {
|
|
833
|
+
return {
|
|
834
|
+
domain: origin,
|
|
835
|
+
interfaces: {},
|
|
836
|
+
classes: {},
|
|
837
|
+
functions: {},
|
|
838
|
+
imports: [],
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
function placeholderFnDef() {
|
|
842
|
+
return {
|
|
843
|
+
config: { params: undefined, returns: undefined },
|
|
844
|
+
__placeholder: true,
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
// ── Path constructors that dispatch on the member's namespace prefix ────
|
|
848
|
+
function memberSemanticPath(origin, qualified, name) {
|
|
849
|
+
if (qualified.startsWith(CLASS_PREFIX)) {
|
|
850
|
+
return ClassPath.from({ domain: origin, className: name });
|
|
851
|
+
}
|
|
852
|
+
if (qualified.startsWith(INTERFACE_PREFIX)) {
|
|
853
|
+
return InterfacePath.from({ domain: origin, interfaceName: name });
|
|
854
|
+
}
|
|
855
|
+
return DomainPath.from({ domain: origin, member: qualified });
|
|
856
|
+
}
|
|
857
|
+
function methodSemanticPath(origin, qualified, child) {
|
|
858
|
+
const memberKind = qualified.startsWith(INTERFACE_PREFIX)
|
|
859
|
+
? 'interface'
|
|
860
|
+
: 'class';
|
|
861
|
+
return MethodPath.from({ domain: origin, member: qualified, memberKind, method: child });
|
|
862
|
+
}
|
|
863
|
+
//# sourceMappingURL=deserialize.js.map
|