@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,525 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SchemaSerializer — converts a CompiledDomain + FunctionSchema[] into a Tree.
|
|
3
|
+
*
|
|
4
|
+
* All metadata comes from the CompiledDomain directly:
|
|
5
|
+
* - compiled.$.ir for the serialized schema
|
|
6
|
+
* - compiled.$.methods for resolved methods (no schema.functions walking)
|
|
7
|
+
* - compiled.$.paths.absolute for path lookup (no ClassResolver)
|
|
8
|
+
*
|
|
9
|
+
* This module emits Domain, Class, Interface, and Function nodes plus their
|
|
10
|
+
* structural edges (has_parent, of_domain, implements, extends, method_of).
|
|
11
|
+
* Instance nodes are emitted by `./core.ts` (serializeCore).
|
|
12
|
+
*/
|
|
13
|
+
import { defaultLayout } from '#domain/addressing/layout/build';
|
|
14
|
+
import { isDefinitionNamespace } from '#domain/addressing/namespace';
|
|
15
|
+
import { ClassPath as ClassPathCtor, DomainPath, InterfacePath, MethodPath, } from '#domain/addressing/paths';
|
|
16
|
+
import { Ref } from '#domain/addressing/refs/ref';
|
|
17
|
+
import { edgeExternalId, schemaNodeExternalId } from '#domain/compile/external-ids';
|
|
18
|
+
import { toGraphInheritance, isMaterializedAsNode } from '#domain/compile/method/resolve';
|
|
19
|
+
import { classMethods, interfaceMethods } from '#domain/compile/method/types';
|
|
20
|
+
import { Patch } from '#graph';
|
|
21
|
+
import { foldRemote } from '#graph/sync';
|
|
22
|
+
import { AbsolutePath } from '#graph/tree';
|
|
23
|
+
import { Tree } from '#graph/tree';
|
|
24
|
+
import { K, REMOTE_KEYS } from '#kernel';
|
|
25
|
+
import { SerializationError } from './errors';
|
|
26
|
+
/**
|
|
27
|
+
* Schema version tag for the `propertyIndex` JSON blob on Class/Interface
|
|
28
|
+
* self nodes. Bump when PropertyMapping gains/loses fields so the
|
|
29
|
+
* deserializer can detect drift.
|
|
30
|
+
*/
|
|
31
|
+
export const PROPERTY_INDEX_BLOB_VERSION = 1;
|
|
32
|
+
// ── Public API ──────────────────────────────────────────────────────────────
|
|
33
|
+
/**
|
|
34
|
+
* Serialize a compiled domain into a Tree of schema graph nodes.
|
|
35
|
+
*
|
|
36
|
+
* Pure: no IO, no global state.
|
|
37
|
+
*/
|
|
38
|
+
export function serializeSchema(compiled, methods, options) {
|
|
39
|
+
// Erase the S generic: BoundAccessorMethods<S> is invariant in S (wrap's
|
|
40
|
+
// className constraint refers to S['classes']), so a CompiledDomain<S>
|
|
41
|
+
// can't directly substitute for CompiledDomain<Schema> at this boundary.
|
|
42
|
+
// The serializer itself doesn't care about S — it walks the IR.
|
|
43
|
+
const serializer = new SchemaSerializer(compiled, methods, options);
|
|
44
|
+
serializer.run();
|
|
45
|
+
return serializer.toTree();
|
|
46
|
+
}
|
|
47
|
+
// ── SchemaSerializer ─────────────────────────────────────────────────────────
|
|
48
|
+
class SchemaSerializer {
|
|
49
|
+
patch = Patch.empty();
|
|
50
|
+
ir;
|
|
51
|
+
methods;
|
|
52
|
+
layout;
|
|
53
|
+
/** Path of the Domain node — the root of this domain's subtree. */
|
|
54
|
+
mount;
|
|
55
|
+
/** Parent of `mount` — the attachment point. */
|
|
56
|
+
mountParent;
|
|
57
|
+
/** Slug carried on the `Domain → mountParent` has_parent edge. */
|
|
58
|
+
mountSlug;
|
|
59
|
+
origin;
|
|
60
|
+
conflict;
|
|
61
|
+
domainExtId;
|
|
62
|
+
compiled;
|
|
63
|
+
// Kernel ClassPaths — node classes
|
|
64
|
+
domainClass = K.Domain.path.class;
|
|
65
|
+
folderClass = K.Folder.path.class;
|
|
66
|
+
interfaceClass = K.Interface.path.class;
|
|
67
|
+
classClass = K.Class.path.class;
|
|
68
|
+
functionClass = K.$.c('Function').path.class;
|
|
69
|
+
// Kernel ClassPaths — edge classes
|
|
70
|
+
hasParentClass = K.has_parent.path.class;
|
|
71
|
+
ofDomainClass = K.of_domain.path.class;
|
|
72
|
+
extendsClass = K.extends.path.class;
|
|
73
|
+
implementsClass = K.implements.path.class;
|
|
74
|
+
methodOfClass = K.method_of.path.class;
|
|
75
|
+
installedInClass = K.installed_in.path.class;
|
|
76
|
+
constructor(compiled, methods, options) {
|
|
77
|
+
this.compiled = compiled;
|
|
78
|
+
this.ir = compiled.$.ir;
|
|
79
|
+
this.conflict = options?.onConflict ?? 'merge';
|
|
80
|
+
this.layout = compiled.$.layout;
|
|
81
|
+
this.origin = compiled.$.origin;
|
|
82
|
+
this.mount = options?.mount ?? AbsolutePath.from(compiled.$.origin);
|
|
83
|
+
if (this.mount.slugs.length === 0) {
|
|
84
|
+
throw new SerializationError('INVALID_MOUNT', "mount cannot be the graph Root ('/'); a Domain must live at a named path.");
|
|
85
|
+
}
|
|
86
|
+
this.mountParent = this.mount.parent();
|
|
87
|
+
this.mountSlug = this.mount.slugs[this.mount.slugs.length - 1];
|
|
88
|
+
this.domainExtId = options?.domainExternalId ?? compiled.$.origin;
|
|
89
|
+
this.methods = new Map();
|
|
90
|
+
for (const m of methods) {
|
|
91
|
+
this.methods.set(m.ref, m);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
run() {
|
|
95
|
+
this.serializeDomain();
|
|
96
|
+
for (const [name, decl] of Object.entries(this.ir.interfaces)) {
|
|
97
|
+
this.serializeInterface(name, decl);
|
|
98
|
+
}
|
|
99
|
+
for (const [name, decl] of Object.entries(this.ir.classes)) {
|
|
100
|
+
this.serializeClass(name, decl);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
toTree() {
|
|
104
|
+
// Promote the authoring Patch to a read-mode Graph. `Graph.from` runs
|
|
105
|
+
// the I8' canonicalization pass (SPEC §3): every edge endpoint that
|
|
106
|
+
// resolves in-graph is rewritten to the node's primary AbsolutePath.
|
|
107
|
+
const graph = this.patch.toGraph();
|
|
108
|
+
return Tree.from(graph, { has_parent: this.hasParentClass }, { mount: this.mount });
|
|
109
|
+
}
|
|
110
|
+
// ── Domain ──
|
|
111
|
+
serializeDomain() {
|
|
112
|
+
// `name` is inherited from Named → canonical qualified key. Other fields
|
|
113
|
+
// (`origin`, `schema`) are Domain-specific structural metadata written
|
|
114
|
+
// bare (not modelled as schema props).
|
|
115
|
+
this.addNode(this.mount, this.domainClass, {
|
|
116
|
+
[K.Named.name.key]: this.origin,
|
|
117
|
+
origin: this.origin,
|
|
118
|
+
schema: JSON.stringify(this.ir),
|
|
119
|
+
}, this.domainExtId);
|
|
120
|
+
// has_parent edge Domain → mountParent, carrying the basename of mount
|
|
121
|
+
// as its slug. Makes the materialized blueprint immediately reachable
|
|
122
|
+
// from the graph Root after push — no post-hoc `moveNode` required.
|
|
123
|
+
//
|
|
124
|
+
// installed_in edge Domain → mountParent is the domain-chain counterpart:
|
|
125
|
+
// has_parent is traversed for `/<path>` lookups, installed_in for `/:<domain>`
|
|
126
|
+
// lookups. Slug is the full domain origin (which equals mountSlug by
|
|
127
|
+
// convention — a Domain's mount basename matches its origin).
|
|
128
|
+
//
|
|
129
|
+
// Source is the Domain's typed identity (DomainPath) since the Domain
|
|
130
|
+
// class has a registered PathType — symmetric with how the reader
|
|
131
|
+
// (`getTree`) emits source endpoints.
|
|
132
|
+
const domainSource = { path: this.ownDomainAddress(), tree: this.mount };
|
|
133
|
+
this.addEdge(this.hasParentClass, domainSource, this.mountParent, this.mountSlug);
|
|
134
|
+
this.addEdge(this.installedInClass, domainSource, this.mountParent, this.origin);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Translate a layout-produced path (`/<origin>/…`) to the mount-based
|
|
138
|
+
* equivalent (`/<mount…>/…`). The first slug of a layout path is always
|
|
139
|
+
* `origin`; everything after is the domain-relative position.
|
|
140
|
+
*
|
|
141
|
+
* Invariant: `layoutPath.slugs[0] === origin`. Throws otherwise — a
|
|
142
|
+
* violation would indicate a custom layout that bypasses the default
|
|
143
|
+
* origin-prefixed convention (not currently supported).
|
|
144
|
+
*/
|
|
145
|
+
underMount(layoutPath) {
|
|
146
|
+
const [first, ...rest] = layoutPath.slugs;
|
|
147
|
+
if (first !== this.origin) {
|
|
148
|
+
throw new SerializationError('INVALID_LAYOUT_PATH', `Layout path "${layoutPath.raw}" does not start with origin "${this.origin}"; custom layouts that do not root on origin are not supported.`);
|
|
149
|
+
}
|
|
150
|
+
return rest.length === 0 ? this.mount : this.mount.append(...rest);
|
|
151
|
+
}
|
|
152
|
+
// ── Folder ──
|
|
153
|
+
/**
|
|
154
|
+
* Serialize a Folder node with namespace-prefixed slug.
|
|
155
|
+
* @param ref — The full ref string (e.g., 'class.Author', 'interface.Named')
|
|
156
|
+
* @param selfPath — The self node path (folder is its parent)
|
|
157
|
+
*/
|
|
158
|
+
serializeFolder(ref, selfPath) {
|
|
159
|
+
if (selfPath.isRoot) {
|
|
160
|
+
throw new SerializationError('INVALID_PATH', `Member '${ref}' resolved to a root-level path with no parent folder; layout must place members under a folder.`, ref);
|
|
161
|
+
}
|
|
162
|
+
const folderPath = selfPath.parent();
|
|
163
|
+
// Folder's `name` is inherited from Named → canonical qualified key.
|
|
164
|
+
this.addNode(folderPath, this.folderClass, { [K.Named.name.key]: ref });
|
|
165
|
+
// Uniform endpoint-form rule: `mount` IS the Domain node, and Domain has
|
|
166
|
+
// a registered DomainPath, so the target form is the Domain's typed
|
|
167
|
+
// identity. AbsolutePath is reserved for nodes without a semantic
|
|
168
|
+
// PathType. `treeTarget` carries the tree position for stable externalId
|
|
169
|
+
// hashing.
|
|
170
|
+
// Folder → Domain has_parent: target is the Domain's typed identity
|
|
171
|
+
// (DomainPath); `mount` is the Domain's tree position.
|
|
172
|
+
this.addEdge(this.hasParentClass, folderPath, {
|
|
173
|
+
path: this.ownDomainAddress(),
|
|
174
|
+
tree: this.mount,
|
|
175
|
+
});
|
|
176
|
+
return folderPath;
|
|
177
|
+
}
|
|
178
|
+
// ── Interface ──
|
|
179
|
+
serializeInterface(name, decl) {
|
|
180
|
+
const memberRef = Ref.member('interface', name);
|
|
181
|
+
const ref = memberRef.toString();
|
|
182
|
+
const selfPath = this.underMount(this.layout(memberRef));
|
|
183
|
+
const folderPath = this.serializeFolder(ref, selfPath);
|
|
184
|
+
const extId = schemaNodeExternalId(this.origin, selfPath);
|
|
185
|
+
// Interface's `name` is inherited from Named → canonical qualified key.
|
|
186
|
+
// `propertyIndex` is a structural blob for schema deserialization, kept bare.
|
|
187
|
+
this.addNode(selfPath, this.interfaceClass, {
|
|
188
|
+
[K.Named.name.key]: name,
|
|
189
|
+
...this.propertyIndexProp(name),
|
|
190
|
+
}, extId);
|
|
191
|
+
// Source is the Interface's typed identity (InterfacePath); `selfPath`
|
|
192
|
+
// (AbsolutePath) is the tree position used for stable externalIds.
|
|
193
|
+
const interfaceSource = {
|
|
194
|
+
path: this.resolveTypeAddress(name, 'interface'),
|
|
195
|
+
tree: selfPath,
|
|
196
|
+
};
|
|
197
|
+
// Semantic edge: of_domain. Target is the Domain's typed identity so the
|
|
198
|
+
// walker can verify cross-patch references via stepsEqual on the endpoint
|
|
199
|
+
// even when the Domain node is not in the same patch.
|
|
200
|
+
this.addEdge(this.ofDomainClass, interfaceSource, { path: this.ownDomainAddress(), tree: this.mount }, ref);
|
|
201
|
+
// Tree edge: has_parent (no edge slug).
|
|
202
|
+
this.addEdge(this.hasParentClass, interfaceSource, folderPath);
|
|
203
|
+
for (const parent of decl.extends) {
|
|
204
|
+
this.addEdge(this.extendsClass, interfaceSource, {
|
|
205
|
+
path: this.resolveTypeAddress(parent, 'interface'),
|
|
206
|
+
tree: this.resolveTypeTree(parent, 'interface'),
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
// Materialize this interface's own, non-abstract methods via the shared
|
|
210
|
+
// predicate (`isMaterializedAsNode`) and marker rule (`toGraphInheritance`).
|
|
211
|
+
const resolvedMethods = interfaceMethods(this.compiled.$.methods, name);
|
|
212
|
+
for (const [methodName, rm] of Object.entries(resolvedMethods ?? {})) {
|
|
213
|
+
if (!isMaterializedAsNode(rm))
|
|
214
|
+
continue;
|
|
215
|
+
this.serializeMethodNode({
|
|
216
|
+
parentName: name,
|
|
217
|
+
methodName,
|
|
218
|
+
folderRef: ref,
|
|
219
|
+
folderPath,
|
|
220
|
+
selfPath,
|
|
221
|
+
inheritance: toGraphInheritance(rm),
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Serialize the class's entry in `compiled.$.properties.byClass` onto its
|
|
227
|
+
* self node as a JSON string. Enables `deserializeDomainFromGraph` to
|
|
228
|
+
* reconstruct a full `DomainPropertyIndex` without the original Schema.
|
|
229
|
+
*
|
|
230
|
+
* Format: `{ version, byDomainOwner: { [domain]: { [owner]: { [prop]: PropertyMapping } } } }`
|
|
231
|
+
* The version tag lets the deserializer detect schema drift if fields
|
|
232
|
+
* are added/removed to PropertyMapping in the future.
|
|
233
|
+
*
|
|
234
|
+
* Returns an empty object (no property) if the type has no properties
|
|
235
|
+
* so we don't bloat nodes with empty strings.
|
|
236
|
+
*/
|
|
237
|
+
propertyIndexProp(memberName) {
|
|
238
|
+
const byDomainOwner = this.compiled.$.properties.byClass[memberName];
|
|
239
|
+
if (!byDomainOwner || Object.keys(byDomainOwner).length === 0)
|
|
240
|
+
return {};
|
|
241
|
+
const payload = { version: PROPERTY_INDEX_BLOB_VERSION, byDomainOwner };
|
|
242
|
+
return { propertyIndex: JSON.stringify(payload) };
|
|
243
|
+
}
|
|
244
|
+
// ── Class ──
|
|
245
|
+
serializeClass(name, decl) {
|
|
246
|
+
const memberRef = Ref.member('class', name);
|
|
247
|
+
const ref = memberRef.toString();
|
|
248
|
+
const selfPath = this.underMount(this.layout(memberRef));
|
|
249
|
+
const folderPath = this.serializeFolder(ref, selfPath);
|
|
250
|
+
const extId = schemaNodeExternalId(this.origin, selfPath);
|
|
251
|
+
// Class's `name` is inherited from Named → canonical qualified key.
|
|
252
|
+
// `type` is a Class-specific structural field (edge/node), kept bare.
|
|
253
|
+
// `propertyIndex` is a structural blob for schema deserialization.
|
|
254
|
+
this.addNode(selfPath, this.classClass, {
|
|
255
|
+
type: decl.type,
|
|
256
|
+
[K.Named.name.key]: name,
|
|
257
|
+
// Class-level icon (Iconable): clients resolve an instance's icon via
|
|
258
|
+
// its class self node. Only node classes carry it.
|
|
259
|
+
...(decl.type === 'node' && decl.icon ? { [K.Iconable.icon.key]: decl.icon } : {}),
|
|
260
|
+
...this.propertyIndexProp(name),
|
|
261
|
+
}, extId);
|
|
262
|
+
// Source is the Class's typed identity (ClassPath); `selfPath`
|
|
263
|
+
// (AbsolutePath) is the tree position used for stable externalIds.
|
|
264
|
+
const classSource = {
|
|
265
|
+
path: this.resolveTypeAddress(name, 'class'),
|
|
266
|
+
tree: selfPath,
|
|
267
|
+
};
|
|
268
|
+
// Semantic edge: of_domain. Target is the Domain's typed identity.
|
|
269
|
+
this.addEdge(this.ofDomainClass, classSource, { path: this.ownDomainAddress(), tree: this.mount }, ref);
|
|
270
|
+
// Tree edge: has_parent (no edge slug).
|
|
271
|
+
this.addEdge(this.hasParentClass, classSource, folderPath);
|
|
272
|
+
for (const parent of 'implements' in decl ? decl.implements : []) {
|
|
273
|
+
// Imported parents aren't in `this.ir.interfaces`; resolveNamespace also
|
|
274
|
+
// walks imported schemas, so it correctly classifies cross-domain refs.
|
|
275
|
+
const ns = this.resolveNamespace(parent);
|
|
276
|
+
const rel = ns === 'interface' ? this.implementsClass : this.extendsClass;
|
|
277
|
+
this.addEdge(rel, classSource, {
|
|
278
|
+
path: this.resolveTypeAddress(parent, ns),
|
|
279
|
+
tree: this.resolveTypeTree(parent, ns),
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
// Use compiled.$.methods for resolution — no schema.functions, no resolveAllMethodsForSchema.
|
|
283
|
+
// `$.methods` is keyed by defRef; `name` here is always a class.
|
|
284
|
+
const resolvedMethods = classMethods(this.compiled.$.methods, name);
|
|
285
|
+
if (resolvedMethods) {
|
|
286
|
+
for (const [methodName, rm] of Object.entries(resolvedMethods)) {
|
|
287
|
+
switch (rm.inheritance) {
|
|
288
|
+
case 'own':
|
|
289
|
+
case 'override':
|
|
290
|
+
this.serializeMethodNode({
|
|
291
|
+
parentName: name,
|
|
292
|
+
methodName,
|
|
293
|
+
folderRef: ref,
|
|
294
|
+
folderPath,
|
|
295
|
+
selfPath,
|
|
296
|
+
// Graph-storage marker via the single shared rule (so boot and
|
|
297
|
+
// serialize cannot drift). For own → 'default', for override → 'override'.
|
|
298
|
+
inheritance: toGraphInheritance(rm),
|
|
299
|
+
});
|
|
300
|
+
break;
|
|
301
|
+
case 'sealed':
|
|
302
|
+
case 'inherited-default': {
|
|
303
|
+
// Reuse the origin's method node → add method_of edge with edge slug.
|
|
304
|
+
// The origin may be imported from another domain — in that case the
|
|
305
|
+
// path lives under the source domain's layout and is not rewritten
|
|
306
|
+
// by our mount (it's a cross-domain pointer).
|
|
307
|
+
const ownerName = rm.origin;
|
|
308
|
+
const importEntry = this.ir.imports?.[ownerName];
|
|
309
|
+
const originLayout = importEntry
|
|
310
|
+
? defaultLayout(importEntry.origin)
|
|
311
|
+
: this.layout;
|
|
312
|
+
// `originKind` is carried on the resolved method — no ambiguous
|
|
313
|
+
// re-resolution by name (a class and interface can share a name).
|
|
314
|
+
const originNs = rm.originKind;
|
|
315
|
+
const rawOriginOpPath = originLayout(Ref.method(originNs, ownerName, methodName));
|
|
316
|
+
const originOpPath = importEntry ? rawOriginOpPath : this.underMount(rawOriginOpPath);
|
|
317
|
+
// Symmetric typed authoring: source is the owner-domain method node's
|
|
318
|
+
// typed MethodPath identity (cross-domain when imported);
|
|
319
|
+
// `originOpPath` (AbsolutePath) is the tree-position anchor.
|
|
320
|
+
// Target is this class's typed identity.
|
|
321
|
+
this.addEdge(this.methodOfClass, {
|
|
322
|
+
path: this.resolveMethodAddress(ownerName, methodName, originNs),
|
|
323
|
+
tree: originOpPath,
|
|
324
|
+
}, {
|
|
325
|
+
path: this.resolveTypeAddress(name, 'class'),
|
|
326
|
+
tree: this.resolveTypeTree(name, 'class'),
|
|
327
|
+
}, methodName);
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
// ── Path resolution ──
|
|
335
|
+
/**
|
|
336
|
+
* Resolve the namespace (class or interface) for a member name.
|
|
337
|
+
*
|
|
338
|
+
* Both sources of truth — `ir.interfaces` for local types and
|
|
339
|
+
* `ir.imports[name].definition` for cross-domain types — round-trip
|
|
340
|
+
* through the graph, so this lookup behaves identically for freshly
|
|
341
|
+
* compiled and deserialized domains.
|
|
342
|
+
*/
|
|
343
|
+
resolveNamespace(memberName) {
|
|
344
|
+
if (memberName in this.ir.interfaces)
|
|
345
|
+
return 'interface';
|
|
346
|
+
return this.ir.imports?.[memberName]?.definition ?? 'class';
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Typed identity for this Domain — `/<mountParent…>/:<origin>`. Used as the
|
|
350
|
+
* target of `of_domain` edges so the walker can verify a Class/Interface's
|
|
351
|
+
* domain via the typed endpoint even when the Domain node is not colocated
|
|
352
|
+
* in the patch under inspection.
|
|
353
|
+
*
|
|
354
|
+
* NOTE (spec §10.3): when `mountParent` is not root, the typed identity
|
|
355
|
+
* carries a mount prefix. The sibling `serializeCore` factory
|
|
356
|
+
* (`classPath: (name) => ClassPath.from(origin, name)`) still produces
|
|
357
|
+
* root-mounted refs, so under custom mounts the two will disagree — a
|
|
358
|
+
* pre-existing wart the walker's canonicalization cannot bridge. Tests
|
|
359
|
+
* and current callers all use `mountParent = root`.
|
|
360
|
+
*/
|
|
361
|
+
ownDomainAddress() {
|
|
362
|
+
return DomainPath.from({ domain: this.origin }, { parent: this.mountParent });
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Typed identity for a local or imported Class/Interface — `ClassPath`
|
|
366
|
+
* for classes, `DomainPath` with an `interface.Name` member for interfaces.
|
|
367
|
+
*
|
|
368
|
+
* Local members carry this serializer's `mountParent`; imported members
|
|
369
|
+
* default to root mount, matching the `defaultLayout(importOrigin)`
|
|
370
|
+
* convention already used for the AbsolutePath form. Custom mounts for
|
|
371
|
+
* imports are not supported (see spec §10.3).
|
|
372
|
+
*/
|
|
373
|
+
resolveTypeAddress(parentName, ns) {
|
|
374
|
+
const importEntry = this.ir.imports?.[parentName];
|
|
375
|
+
const origin = importEntry ? importEntry.origin : this.origin;
|
|
376
|
+
const mount = importEntry ? AbsolutePath.root() : this.mountParent;
|
|
377
|
+
const resolvedNs = ns ?? this.resolveNamespace(parentName);
|
|
378
|
+
if (resolvedNs === 'class') {
|
|
379
|
+
return ClassPathCtor.from({ domain: origin, className: parentName }, { parent: mount });
|
|
380
|
+
}
|
|
381
|
+
return InterfacePath.from({ domain: origin, interfaceName: parentName }, { parent: mount });
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Typed identity for a local or imported Function (method) node —
|
|
385
|
+
* `MethodPath` carrying the owning domain, member kind/name, and method
|
|
386
|
+
* name. Mirrors {@link resolveTypeAddress}: imports default to root mount
|
|
387
|
+
* with `defaultLayout(importOrigin)` semantics; locals use this
|
|
388
|
+
* serializer's `mountParent`.
|
|
389
|
+
*/
|
|
390
|
+
resolveMethodAddress(memberName, methodName, ns) {
|
|
391
|
+
const importEntry = this.ir.imports?.[memberName];
|
|
392
|
+
const origin = importEntry ? importEntry.origin : this.origin;
|
|
393
|
+
const mount = importEntry ? AbsolutePath.root() : this.mountParent;
|
|
394
|
+
const resolvedNs = ns ?? this.resolveNamespace(memberName);
|
|
395
|
+
return MethodPath.from({ domain: origin, member: memberName, memberKind: resolvedNs, method: methodName }, { parent: mount });
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Tree position (AbsolutePath) of a local or imported Class/Interface —
|
|
399
|
+
* used as the hash input for `edgeExternalId` so the hash is stable
|
|
400
|
+
* across different address-form representations of the same entity.
|
|
401
|
+
*/
|
|
402
|
+
resolveTypeTree(parentName, ns) {
|
|
403
|
+
const importEntry = this.ir.imports?.[parentName];
|
|
404
|
+
const layout = importEntry ? defaultLayout(importEntry.origin) : this.layout;
|
|
405
|
+
const resolvedNs = ns ?? this.resolveNamespace(parentName);
|
|
406
|
+
const rawPath = layout(Ref.member(resolvedNs, parentName));
|
|
407
|
+
return importEntry ? rawPath : this.underMount(rawPath);
|
|
408
|
+
}
|
|
409
|
+
// ── Method node ──
|
|
410
|
+
serializeMethodNode(opts) {
|
|
411
|
+
const ownerRef = Ref.parse(opts.folderRef);
|
|
412
|
+
const methodRef = Ref.method(ownerRef.namespace, opts.parentName, opts.methodName);
|
|
413
|
+
const ref = methodRef.toString();
|
|
414
|
+
const folderPath = opts.folderPath;
|
|
415
|
+
const opPath = this.underMount(this.layout(methodRef));
|
|
416
|
+
const extId = schemaNodeExternalId(this.origin, opPath);
|
|
417
|
+
const callable = this.methods.get(ref);
|
|
418
|
+
if (!callable) {
|
|
419
|
+
throw new SerializationError('MISSING_HANDLER', `Missing method for "${ref}". Ensure all methods for "${opts.parentName}" are provided.`, ref);
|
|
420
|
+
}
|
|
421
|
+
const inheritance = callable.inheritance ?? opts.inheritance;
|
|
422
|
+
// The method node has no class-own props; everything lives under the Function
|
|
423
|
+
// and Named interfaces. `Function.ref` is the dispatch identity —
|
|
424
|
+
// canonical form, used by `FunctionRegistry` to resolve the contract.
|
|
425
|
+
// `Named.name` is a display label, deliberately NOT the same string so
|
|
426
|
+
// nothing can base dispatch/lookup logic on it. Storage keys come
|
|
427
|
+
// straight from the compiled kernel domain `K`.
|
|
428
|
+
const displayName = `${opts.parentName}.${opts.methodName}`;
|
|
429
|
+
const F = K.$.i('Function');
|
|
430
|
+
this.addNode(opPath, this.functionClass, {
|
|
431
|
+
[K.Named.name.key]: displayName,
|
|
432
|
+
[F.ref.key]: ref,
|
|
433
|
+
[F.inputSchema.key]: JSON.stringify(callable.inputSchema),
|
|
434
|
+
[F.outputSchema.key]: JSON.stringify(callable.outputSchema),
|
|
435
|
+
...(callable.isStatic ? { [F.isStatic.key]: true } : {}),
|
|
436
|
+
[F.output.key]: callable.output ?? 'value',
|
|
437
|
+
...(callable.code ? { [F.code.key]: JSON.stringify(callable.code) } : {}),
|
|
438
|
+
...(inheritance ? { [F.inheritance.key]: inheritance } : {}),
|
|
439
|
+
...(callable.binding ? { [F.binding.key]: JSON.stringify(callable.binding) } : {}),
|
|
440
|
+
}, extId);
|
|
441
|
+
// Source is this Method's typed identity (MethodPath); `opPath`
|
|
442
|
+
// (AbsolutePath) is the tree position used for stable externalIds.
|
|
443
|
+
const ownerRefParsed = Ref.parse(opts.folderRef);
|
|
444
|
+
if (!isDefinitionNamespace(ownerRefParsed.namespace))
|
|
445
|
+
throw new SerializationError('INVALID_PATH', `expected definition namespace, got: ${ownerRefParsed.namespace}`);
|
|
446
|
+
const ownerNs = ownerRefParsed.namespace;
|
|
447
|
+
const methodSource = {
|
|
448
|
+
path: this.resolveMethodAddress(opts.parentName, opts.methodName, ownerNs),
|
|
449
|
+
tree: opPath,
|
|
450
|
+
};
|
|
451
|
+
// Semantic edge: method_of — target is the owning Class/Interface's typed
|
|
452
|
+
// identity so the walker can verify the owner without needing its self-node
|
|
453
|
+
// colocated in a patch.
|
|
454
|
+
this.addEdge(this.methodOfClass, methodSource, { path: this.resolveTypeAddress(opts.parentName, ownerNs), tree: opts.selfPath }, opts.methodName);
|
|
455
|
+
// Tree edge: has_parent (no edge slug) — method node is sibling of 'self' in folder.
|
|
456
|
+
this.addEdge(this.hasParentClass, methodSource, folderPath);
|
|
457
|
+
// NOTE: No of_domain edge on method nodes. They're reached via method_of traversal.
|
|
458
|
+
}
|
|
459
|
+
// ── Primitives ──
|
|
460
|
+
addNode(path, cls, properties, extId, onConflict) {
|
|
461
|
+
const resolvedExtId = extId ?? schemaNodeExternalId(this.origin, path);
|
|
462
|
+
const resolvedConflict = onConflict ?? this.conflict;
|
|
463
|
+
this.patch.addNode({
|
|
464
|
+
path,
|
|
465
|
+
class: cls,
|
|
466
|
+
props: {
|
|
467
|
+
...properties,
|
|
468
|
+
...foldRemote({ externalId: resolvedExtId, onConflict: resolvedConflict }, REMOTE_KEYS),
|
|
469
|
+
},
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Append an edge to the in-progress graph.
|
|
474
|
+
*
|
|
475
|
+
* Each endpoint is either:
|
|
476
|
+
* - an `AbsolutePath` (the wire form IS the tree position), or
|
|
477
|
+
* - `{ path, tree }` — the wire form (`Path`, typically a typed
|
|
478
|
+
* semantic Path: `DomainPath`/`ClassPath`/`InterfacePath`/
|
|
479
|
+
* `MethodPath`) plus the corresponding `AbsolutePath` tree
|
|
480
|
+
* position, used to compute stable externalIds and to derive
|
|
481
|
+
* has_parent slugs.
|
|
482
|
+
*
|
|
483
|
+
* The reader-side `getTree` adapter applies a symmetric typed-form
|
|
484
|
+
* overlay on either endpoint, so authoring symmetrically here keeps
|
|
485
|
+
* `pull(install(blueprint))` structurally identical to `blueprint`.
|
|
486
|
+
*
|
|
487
|
+
* For typed endpoints the `tree` AbsolutePath is the externalId hash
|
|
488
|
+
* input — `edgeExternalId` always anchors on tree position so the
|
|
489
|
+
* hash stays stable across different wire forms of the same edge.
|
|
490
|
+
*/
|
|
491
|
+
addEdge(cls, source, target, slug) {
|
|
492
|
+
const sourcePath = source instanceof AbsolutePath ? source : source.path;
|
|
493
|
+
const sourceTree = source instanceof AbsolutePath ? source : source.tree;
|
|
494
|
+
const targetPath = target instanceof AbsolutePath ? target : target.path;
|
|
495
|
+
const targetTree = target instanceof AbsolutePath ? target : target.tree;
|
|
496
|
+
// has_parent slug derivation uses the tree-position basename — typed
|
|
497
|
+
// sources have no positional basename, but the tree form does.
|
|
498
|
+
const isHasParent = cls.className === 'has_parent';
|
|
499
|
+
const effectiveSlug = slug ?? (isHasParent ? AbsolutePath.basename(sourceTree.raw) : undefined);
|
|
500
|
+
this.patch.addEdge({
|
|
501
|
+
...(effectiveSlug !== undefined && { slug: effectiveSlug }),
|
|
502
|
+
class: cls,
|
|
503
|
+
source: sourcePath,
|
|
504
|
+
target: targetPath,
|
|
505
|
+
props: {
|
|
506
|
+
...foldRemote({
|
|
507
|
+
externalId: edgeExternalId(this.origin, cls, sourceTree, targetTree),
|
|
508
|
+
onConflict: this.conflict,
|
|
509
|
+
}, REMOTE_KEYS),
|
|
510
|
+
},
|
|
511
|
+
});
|
|
512
|
+
// Record typed-form ↔ AbsolutePath mappings on the patch so
|
|
513
|
+
// `Patch.toGraph` can seed `PathIndex` with them. Without this seed,
|
|
514
|
+
// `walkChain` can't bootstrap typed-source has_parent lookups (the
|
|
515
|
+
// alias for the source node isn't yet in `_resolveByRaw` when
|
|
516
|
+
// `BuildTimeView.edgesOutgoing` first fires).
|
|
517
|
+
if (!(sourcePath instanceof AbsolutePath)) {
|
|
518
|
+
this.patch.setAlias(sourceTree.raw, sourcePath);
|
|
519
|
+
}
|
|
520
|
+
if (!(targetPath instanceof AbsolutePath)) {
|
|
521
|
+
this.patch.setAlias(targetTree.raw, targetPath);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../domain/serialize/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAcH,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,EACL,SAAS,IAAI,aAAa,EAC1B,UAAU,EACV,aAAa,EACb,UAAU,GACX,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC9B,OAAO,E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ompiledDomain + FunctionSchema[] and produces a Tree (graph
|
|
5
|
+
* blueprint). Core instance nodes/edges are emitted automatically when
|
|
6
|
+
* `compiled.$.core` is non-empty — the raw builder `Core` is not needed here
|
|
7
|
+
* because `compileDomain(schema, core)` already threaded it into `compiled.$.core`.
|
|
8
|
+
*/
|
|
9
|
+
import type { Schema } from '@astrale-os/kernel-dsl';
|
|
10
|
+
import type { FunctionSchema } from '#domain/compile/method/serialized';
|
|
11
|
+
import type { CompiledDomain } from '#domain/compile/types';
|
|
12
|
+
import type { ConflictStrategy } from '#graph/sync';
|
|
13
|
+
import type { AbsolutePath, Tree } from '#graph/tree';
|
|
14
|
+
/** Options for {@link serialize}. */
|
|
15
|
+
export interface SerializeOptions {
|
|
16
|
+
onConflict?: ConflictStrategy;
|
|
17
|
+
domainExternalId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Where the Domain node lives in the tree.
|
|
20
|
+
*
|
|
21
|
+
* Defaults to `AbsolutePath.from(compiled.$.origin)` — i.e. the Domain sits
|
|
22
|
+
* at `/<origin>` under the graph Root. Pass any other absolute path to
|
|
23
|
+
* install the domain somewhere else (e.g. `AbsolutePath.from('apps', 'foo')`
|
|
24
|
+
* places the Domain at `/apps/foo`). The serializer emits the
|
|
25
|
+
* `has_parent` edge from the Domain to `mount.parent()` with
|
|
26
|
+
* `slug = basename(mount)`, making the resulting blueprint self-contained
|
|
27
|
+
* and directly pushable without a separate `moveNode` step.
|
|
28
|
+
*
|
|
29
|
+
* Mount must have at least one slug — a root-level Domain (mount = `/`)
|
|
30
|
+
* makes no sense because the graph Root itself is not a Domain.
|
|
31
|
+
*/
|
|
32
|
+
mount?: AbsolutePath;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Serialize a CompiledDomain into a Tree (graph blueprint).
|
|
36
|
+
*
|
|
37
|
+
* The Tree contains Domain, Class, Interface, and Function nodes plus structural
|
|
38
|
+
* edges. Instance nodes/edges from `compiled.$.core` are appended when present.
|
|
39
|
+
*
|
|
40
|
+
* Pure: no IO, no global state.
|
|
41
|
+
*/
|
|
42
|
+
export declare function serialize<S extends Schema>(compiled: CompiledDomain<S>, methods: FunctionSchema[], options?: SerializeOptions): Tree;
|
|
43
|
+
//# sourceMappingURL=serialize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../domain/serialize/serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AASrD,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,gBAAgB,CAAA;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,YAAY,CAAA;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EACxC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,EAC3B,OAAO,EAAE,cAAc,EAAE,EACzB,OAAO,CAAC,EAAE,gBAAgB,GACzB,IAAI,CAiBN"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* serialize — top-level entry point for domain serialization.
|
|
3
|
+
*
|
|
4
|
+
* Takes a CompiledDomain + FunctionSchema[] and produces a Tree (graph
|
|
5
|
+
* blueprint). Core instance nodes/edges are emitted automatically when
|
|
6
|
+
* `compiled.$.core` is non-empty — the raw builder `Core` is not needed here
|
|
7
|
+
* because `compileDomain(schema, core)` already threaded it into `compiled.$.core`.
|
|
8
|
+
*/
|
|
9
|
+
import { DomainPaths } from '#domain/addressing/layout/default';
|
|
10
|
+
import { ClassPath } from '#domain/addressing/paths/class';
|
|
11
|
+
import { serializeCore } from './core';
|
|
12
|
+
import { mergeTrees } from './merge-trees';
|
|
13
|
+
import { serializeSchema } from './schema';
|
|
14
|
+
/**
|
|
15
|
+
* Serialize a CompiledDomain into a Tree (graph blueprint).
|
|
16
|
+
*
|
|
17
|
+
* The Tree contains Domain, Class, Interface, and Function nodes plus structural
|
|
18
|
+
* edges. Instance nodes/edges from `compiled.$.core` are appended when present.
|
|
19
|
+
*
|
|
20
|
+
* Pure: no IO, no global state.
|
|
21
|
+
*/
|
|
22
|
+
export function serialize(compiled, methods, options) {
|
|
23
|
+
const schemaTree = serializeSchema(compiled, methods, options);
|
|
24
|
+
const cc = compiled.$.core;
|
|
25
|
+
if (!cc || (Object.keys(cc.entries).length === 0 && cc.edges.length === 0)) {
|
|
26
|
+
return schemaTree;
|
|
27
|
+
}
|
|
28
|
+
const coreFragment = serializeCore({
|
|
29
|
+
compiledCore: cc,
|
|
30
|
+
domainPaths: new DomainPaths(compiled.$.origin),
|
|
31
|
+
classPath: (name, classDomain) => ClassPath.from({ domain: classDomain, className: name }),
|
|
32
|
+
conflict: options?.onConflict ?? 'merge',
|
|
33
|
+
});
|
|
34
|
+
return mergeTrees(schemaTree, coreFragment);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=serialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../domain/serialize/serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,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