@astrale-os/sdk 0.5.0-beta.2 → 0.5.0-beta.21
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/README.md +54 -5
- package/dist/application/action/action.d.ts +40 -0
- package/dist/application/action/action.js +1 -0
- package/dist/application/action/authoring.d.ts +4 -0
- package/dist/application/action/authoring.js +1 -0
- package/dist/application/action/context.d.ts +63 -0
- package/dist/application/action/context.js +1 -0
- package/dist/application/action/define.d.ts +8 -0
- package/dist/application/action/define.js +29 -0
- package/dist/application/action/index.d.ts +4 -0
- package/dist/application/action/index.js +1 -0
- package/dist/application/action/output.d.ts +6 -0
- package/dist/application/action/output.js +1 -0
- package/dist/application/application.d.ts +23 -0
- package/dist/application/application.js +1 -0
- package/dist/application/define.d.ts +16 -0
- package/dist/application/define.js +40 -0
- package/dist/application/index.d.ts +9 -0
- package/dist/application/index.js +4 -0
- package/dist/application/integration/admission.d.ts +9 -0
- package/dist/application/integration/admission.js +21 -0
- package/dist/application/integration/client.d.ts +23 -0
- package/dist/application/integration/client.js +98 -0
- package/dist/application/integration/define.d.ts +24 -0
- package/dist/application/integration/define.js +101 -0
- package/dist/application/integration/index.d.ts +7 -0
- package/dist/application/integration/index.js +2 -0
- package/dist/application/integration/integration.d.ts +19 -0
- package/dist/application/integration/integration.js +1 -0
- package/dist/application/integration/operation.d.ts +32 -0
- package/dist/application/integration/operation.js +1 -0
- package/dist/application/integration/provider.d.ts +14 -0
- package/dist/application/integration/provider.js +1 -0
- package/dist/application/integration/replay.d.ts +3 -0
- package/dist/application/integration/replay.js +37 -0
- package/dist/application/mutation/authoring/builder.d.ts +53 -0
- package/dist/application/mutation/authoring/builder.js +97 -0
- package/dist/application/mutation/authoring/endpoint.d.ts +16 -0
- package/dist/application/mutation/authoring/endpoint.js +13 -0
- package/dist/application/mutation/authoring/index.d.ts +4 -0
- package/dist/application/mutation/authoring/index.js +1 -0
- package/dist/application/mutation/authoring/precondition.d.ts +7 -0
- package/dist/application/mutation/authoring/precondition.js +8 -0
- package/dist/application/mutation/authoring/properties.d.ts +21 -0
- package/dist/application/mutation/authoring/properties.js +27 -0
- package/dist/application/mutation/define.d.ts +3 -0
- package/dist/application/mutation/define.js +17 -0
- package/dist/application/mutation/execution/execute.d.ts +6 -0
- package/dist/application/mutation/execution/execute.js +19 -0
- package/dist/application/mutation/execution/executor.d.ts +8 -0
- package/dist/application/mutation/execution/executor.js +5 -0
- package/dist/application/mutation/execution/index.d.ts +2 -0
- package/dist/application/mutation/execution/index.js +1 -0
- package/dist/application/mutation/execution/projection.d.ts +3 -0
- package/dist/application/mutation/execution/projection.js +3 -0
- package/dist/application/mutation/failure.d.ts +5 -0
- package/dist/application/mutation/failure.js +28 -0
- package/dist/application/mutation/index.d.ts +7 -0
- package/dist/application/mutation/index.js +4 -0
- package/dist/application/mutation/mutation.d.ts +16 -0
- package/dist/application/mutation/mutation.js +1 -0
- package/dist/application/query/composite/builder.d.ts +39 -0
- package/dist/application/query/composite/builder.js +169 -0
- package/dist/application/query/composite/errors.d.ts +7 -0
- package/dist/application/query/composite/errors.js +8 -0
- package/dist/application/query/composite/index.d.ts +4 -0
- package/dist/application/query/composite/index.js +3 -0
- package/dist/application/query/composite/plan.d.ts +8 -0
- package/dist/application/query/composite/plan.js +56 -0
- package/dist/application/query/composite/query.d.ts +34 -0
- package/dist/application/query/composite/query.js +1 -0
- package/dist/application/query/define.d.ts +24 -0
- package/dist/application/query/define.js +75 -0
- package/dist/application/query/execution/execute.d.ts +11 -0
- package/dist/application/query/execution/execute.js +49 -0
- package/dist/application/query/execution/executor.d.ts +8 -0
- package/dist/application/query/execution/executor.js +5 -0
- package/dist/application/query/execution/index.d.ts +2 -0
- package/dist/application/query/execution/index.js +1 -0
- package/dist/application/query/execution/pages.d.ts +1 -0
- package/dist/application/query/execution/pages.js +1 -0
- package/dist/application/query/execution/projection.d.ts +3 -0
- package/dist/application/query/execution/projection.js +3 -0
- package/dist/application/query/failure.d.ts +10 -0
- package/dist/application/query/failure.js +14 -0
- package/dist/application/query/index.d.ts +9 -0
- package/dist/application/query/index.js +6 -0
- package/dist/application/query/query.d.ts +7 -0
- package/dist/application/query/query.js +1 -0
- package/dist/application/query/single/index.d.ts +4 -0
- package/dist/application/query/single/index.js +3 -0
- package/dist/application/query/single/node.d.ts +18 -0
- package/dist/application/query/single/node.js +86 -0
- package/dist/application/query/single/pagination.d.ts +9 -0
- package/dist/application/query/single/pagination.js +24 -0
- package/dist/application/query/single/query.d.ts +47 -0
- package/dist/application/query/single/query.js +1 -0
- package/dist/application/query/single/selection.d.ts +2 -0
- package/dist/application/query/single/selection.js +23 -0
- package/dist/application/requirements/administration.d.ts +7 -0
- package/dist/application/requirements/administration.js +38 -0
- package/dist/application/requirements/callables.d.ts +4 -0
- package/dist/application/requirements/callables.js +30 -0
- package/dist/application/requirements/classes.d.ts +9 -0
- package/dist/application/requirements/classes.js +52 -0
- package/dist/application/requirements/index.d.ts +16 -0
- package/dist/application/requirements/index.js +29 -0
- package/dist/application/requirements/requirement.d.ts +17 -0
- package/dist/application/requirements/requirement.js +1 -0
- package/dist/application/routes/admission.d.ts +5 -0
- package/dist/application/routes/admission.js +15 -0
- package/dist/application/routes/collection.d.ts +8 -0
- package/dist/application/routes/collection.js +23 -0
- package/dist/application/routes/index.d.ts +9 -0
- package/dist/application/routes/index.js +45 -0
- package/dist/application/routes/route.d.ts +10 -0
- package/dist/application/routes/route.js +1 -0
- package/dist/application/runtime/actions.d.ts +10 -0
- package/dist/application/runtime/actions.js +27 -0
- package/dist/application/runtime/authoring.d.ts +5 -0
- package/dist/application/runtime/authoring.js +1 -0
- package/dist/application/runtime/callables.d.ts +11 -0
- package/dist/application/runtime/callables.js +40 -0
- package/dist/application/runtime/define.d.ts +27 -0
- package/dist/application/runtime/define.js +49 -0
- package/dist/application/runtime/index.d.ts +6 -0
- package/dist/application/runtime/index.js +2 -0
- package/dist/application/runtime/initialize.d.ts +5 -0
- package/dist/application/runtime/initialize.js +1 -0
- package/dist/application/runtime/integrations.d.ts +3 -0
- package/dist/application/runtime/integrations.js +1 -0
- package/dist/application/runtime/runtime.d.ts +32 -0
- package/dist/application/runtime/runtime.js +28 -0
- package/dist/application/runtime/workflows.d.ts +11 -0
- package/dist/application/runtime/workflows.js +33 -0
- package/dist/application/state/define.d.ts +6 -0
- package/dist/application/state/define.js +31 -0
- package/dist/application/state/index.d.ts +4 -0
- package/dist/application/state/index.js +1 -0
- package/dist/application/state/machine.d.ts +24 -0
- package/dist/application/state/machine.js +1 -0
- package/dist/application/state/relation.d.ts +12 -0
- package/dist/application/state/relation.js +47 -0
- package/dist/application/state/transition.d.ts +16 -0
- package/dist/application/state/transition.js +1 -0
- package/dist/application/view/admission.d.ts +3 -0
- package/dist/application/view/admission.js +8 -0
- package/dist/application/view/define.d.ts +4 -0
- package/dist/application/view/define.js +52 -0
- package/dist/application/view/frontend.d.ts +23 -0
- package/dist/application/view/frontend.js +1 -0
- package/dist/application/view/index.d.ts +6 -0
- package/dist/application/view/index.js +3 -0
- package/dist/application/view/route.d.ts +13 -0
- package/dist/application/view/route.js +51 -0
- package/dist/application/view/source.d.ts +16 -0
- package/dist/application/view/source.js +55 -0
- package/dist/application/workflow/authoring.d.ts +3 -0
- package/dist/application/workflow/authoring.js +1 -0
- package/dist/application/workflow/context.d.ts +8 -0
- package/dist/application/workflow/context.js +1 -0
- package/dist/application/workflow/define.d.ts +7 -0
- package/dist/application/workflow/define.js +32 -0
- package/dist/application/workflow/index.d.ts +5 -0
- package/dist/application/workflow/index.js +3 -0
- package/dist/application/workflow/runner/index.d.ts +2 -0
- package/dist/application/workflow/runner/index.js +1 -0
- package/dist/application/workflow/runner/inline.d.ts +3 -0
- package/dist/application/workflow/runner/inline.js +55 -0
- package/dist/application/workflow/runner/runner.d.ts +9 -0
- package/dist/application/workflow/runner/runner.js +1 -0
- package/dist/application/workflow/step/index.d.ts +2 -0
- package/dist/application/workflow/step/index.js +1 -0
- package/dist/application/workflow/step/run.d.ts +2 -0
- package/dist/application/workflow/step/run.js +10 -0
- package/dist/application/workflow/step/step.d.ts +4 -0
- package/dist/application/workflow/step/step.js +1 -0
- package/dist/application/workflow/workflow.d.ts +22 -0
- package/dist/application/workflow/workflow.js +1 -0
- package/dist/deployment/adapter/adapter.d.ts +22 -0
- package/dist/deployment/adapter/adapter.js +1 -0
- package/dist/deployment/adapter/define.d.ts +4 -0
- package/dist/deployment/adapter/define.js +68 -0
- package/dist/deployment/adapter/deploy/context.d.ts +7 -0
- package/dist/deployment/adapter/deploy/context.js +1 -0
- package/dist/deployment/adapter/deploy/index.d.ts +2 -0
- package/dist/deployment/adapter/deploy/index.js +1 -0
- package/dist/deployment/adapter/deploy/result.d.ts +48 -0
- package/dist/deployment/adapter/deploy/result.js +1 -0
- package/dist/deployment/adapter/index.d.ts +5 -0
- package/dist/deployment/adapter/index.js +1 -0
- package/dist/deployment/adapter/prepare/artifact.d.ts +33 -0
- package/dist/deployment/adapter/prepare/artifact.js +1 -0
- package/dist/deployment/adapter/prepare/context.d.ts +8 -0
- package/dist/deployment/adapter/prepare/context.js +1 -0
- package/dist/deployment/adapter/prepare/index.d.ts +2 -0
- package/dist/deployment/adapter/prepare/index.js +1 -0
- package/dist/deployment/adapter/watch/context.d.ts +8 -0
- package/dist/deployment/adapter/watch/context.js +1 -0
- package/dist/deployment/adapter/watch/handle.d.ts +5 -0
- package/dist/deployment/adapter/watch/handle.js +1 -0
- package/dist/deployment/adapter/watch/index.d.ts +2 -0
- package/dist/deployment/adapter/watch/index.js +1 -0
- package/dist/deployment/authoring.d.ts +5 -0
- package/dist/deployment/authoring.js +2 -0
- package/dist/deployment/build/admission.d.ts +4 -0
- package/dist/deployment/build/admission.js +9 -0
- package/dist/deployment/build/build.d.ts +13 -0
- package/dist/deployment/build/build.js +1 -0
- package/dist/deployment/build/compile.d.ts +9 -0
- package/dist/deployment/build/compile.js +80 -0
- package/dist/deployment/build/frontend/compilation.d.ts +17 -0
- package/dist/deployment/build/frontend/compilation.js +28 -0
- package/dist/deployment/build/frontend/digest.d.ts +4 -0
- package/dist/deployment/build/frontend/digest.js +23 -0
- package/dist/deployment/build/frontend/files.d.ts +13 -0
- package/dist/deployment/build/frontend/files.js +61 -0
- package/dist/deployment/build/frontend/index.d.ts +6 -0
- package/dist/deployment/build/frontend/index.js +4 -0
- package/dist/deployment/build/frontend/provenance.d.ts +7 -0
- package/dist/deployment/build/frontend/provenance.js +12 -0
- package/dist/deployment/build/index.d.ts +6 -0
- package/dist/deployment/build/index.js +4 -0
- package/dist/deployment/build/material.d.ts +23 -0
- package/dist/deployment/build/material.js +94 -0
- package/dist/deployment/build/schema.d.ts +10 -0
- package/dist/deployment/build/schema.js +1 -0
- package/dist/deployment/deploy.d.ts +15 -0
- package/dist/deployment/deploy.js +31 -0
- package/dist/deployment/deployment.d.ts +6 -0
- package/dist/deployment/deployment.js +1 -0
- package/dist/deployment/index.d.ts +13 -7
- package/dist/deployment/index.js +6 -4
- package/dist/deployment/release/addressing.d.ts +7 -0
- package/dist/deployment/release/addressing.js +27 -0
- package/dist/deployment/release/admission.d.ts +3 -0
- package/dist/deployment/release/admission.js +8 -0
- package/dist/deployment/release/assemble.d.ts +5 -0
- package/dist/deployment/release/assemble.js +20 -0
- package/dist/deployment/release/index.d.ts +5 -0
- package/dist/deployment/release/index.js +4 -0
- package/dist/deployment/release/invocation.d.ts +7 -0
- package/dist/deployment/release/invocation.js +33 -0
- package/dist/deployment/release/publication/callables.d.ts +4 -0
- package/dist/deployment/release/publication/callables.js +8 -0
- package/dist/deployment/release/publication/index.d.ts +6 -0
- package/dist/deployment/release/publication/index.js +6 -0
- package/dist/deployment/release/publication/manifest.d.ts +3 -0
- package/dist/deployment/release/publication/manifest.js +5 -0
- package/dist/deployment/release/publication/requirements.d.ts +3 -0
- package/dist/deployment/release/publication/requirements.js +3 -0
- package/dist/deployment/release/publication/routes.d.ts +4 -0
- package/dist/deployment/release/publication/routes.js +4 -0
- package/dist/deployment/release/publication/seal.d.ts +11 -0
- package/dist/deployment/release/publication/seal.js +40 -0
- package/dist/deployment/release/publication/views.d.ts +4 -0
- package/dist/deployment/release/publication/views.js +12 -0
- package/dist/deployment/release/release.d.ts +11 -0
- package/dist/deployment/release/release.js +1 -0
- package/dist/deployment/release/runtime.d.ts +3 -0
- package/dist/deployment/release/runtime.js +3 -0
- package/dist/deployment/runtime/admission.d.ts +5 -0
- package/dist/deployment/runtime/admission.js +11 -0
- package/dist/deployment/runtime/index.d.ts +3 -0
- package/dist/deployment/runtime/index.js +3 -0
- package/dist/deployment/runtime/reference.d.ts +7 -0
- package/dist/deployment/runtime/reference.js +16 -0
- package/dist/deployment/runtime/resolve.d.ts +10 -0
- package/dist/deployment/runtime/resolve.js +29 -0
- package/dist/deployment/verify/index.d.ts +3 -0
- package/dist/deployment/verify/index.js +2 -0
- package/dist/deployment/verify/preflight/artifact.d.ts +6 -0
- package/dist/deployment/verify/preflight/artifact.js +122 -0
- package/dist/deployment/verify/preflight/build.d.ts +2 -0
- package/dist/deployment/verify/preflight/build.js +6 -0
- package/dist/deployment/verify/preflight/index.d.ts +13 -0
- package/dist/deployment/verify/preflight/index.js +13 -0
- package/dist/deployment/verify/preflight/publication.d.ts +4 -0
- package/dist/deployment/verify/preflight/publication.js +14 -0
- package/dist/deployment/verify/readiness/deployment.d.ts +3 -0
- package/dist/deployment/verify/readiness/deployment.js +143 -0
- package/dist/deployment/verify/readiness/identity.d.ts +7 -0
- package/dist/deployment/verify/readiness/identity.js +29 -0
- package/dist/deployment/verify/readiness/index.d.ts +10 -0
- package/dist/deployment/verify/readiness/index.js +10 -0
- package/dist/deployment/verify/readiness/publication.d.ts +11 -0
- package/dist/deployment/verify/readiness/publication.js +41 -0
- package/dist/execution/identity/authentication.d.ts +20 -0
- package/dist/execution/identity/authentication.js +140 -0
- package/dist/execution/identity/callback.d.ts +11 -0
- package/dist/execution/identity/callback.js +39 -0
- package/dist/execution/identity/delivery.d.ts +6 -0
- package/dist/execution/identity/delivery.js +34 -0
- package/dist/execution/identity/errors.d.ts +22 -0
- package/dist/execution/identity/errors.js +61 -0
- package/dist/execution/identity/exchange.d.ts +10 -0
- package/dist/execution/identity/exchange.js +111 -0
- package/dist/execution/identity/identity.d.ts +24 -0
- package/dist/execution/identity/identity.js +96 -0
- package/dist/execution/identity/index.d.ts +2 -0
- package/dist/execution/identity/index.js +2 -0
- package/dist/execution/identity/jwks.d.ts +21 -0
- package/dist/execution/identity/jwks.js +128 -0
- package/dist/execution/identity/signing.d.ts +9 -0
- package/dist/execution/identity/signing.js +28 -0
- package/dist/execution/index.d.ts +5 -0
- package/dist/execution/index.js +3 -0
- package/dist/execution/invocation/admission/authentication.d.ts +12 -0
- package/dist/execution/invocation/admission/authentication.js +122 -0
- package/dist/execution/invocation/admission/authority.d.ts +33 -0
- package/dist/execution/invocation/admission/authority.js +23 -0
- package/dist/execution/invocation/admission/index.d.ts +5 -0
- package/dist/execution/invocation/admission/index.js +4 -0
- package/dist/execution/invocation/admission/input.d.ts +2 -0
- package/dist/execution/invocation/admission/input.js +4 -0
- package/dist/execution/invocation/admission/target.d.ts +8 -0
- package/dist/execution/invocation/admission/target.js +30 -0
- package/dist/execution/invocation/dispatch/action.d.ts +3 -0
- package/dist/execution/invocation/dispatch/action.js +3 -0
- package/dist/execution/invocation/dispatch/context.d.ts +21 -0
- package/dist/execution/invocation/dispatch/context.js +31 -0
- package/dist/execution/invocation/dispatch/index.d.ts +5 -0
- package/dist/execution/invocation/dispatch/index.js +5 -0
- package/dist/execution/invocation/dispatch/receiver.d.ts +4 -0
- package/dist/execution/invocation/dispatch/receiver.js +18 -0
- package/dist/execution/invocation/dispatch/select.d.ts +10 -0
- package/dist/execution/invocation/dispatch/select.js +20 -0
- package/dist/execution/invocation/dispatch/workflow.d.ts +4 -0
- package/dist/execution/invocation/dispatch/workflow.js +11 -0
- package/dist/execution/invocation/handler.d.ts +7 -0
- package/dist/execution/invocation/handler.js +37 -0
- package/dist/execution/invocation/index.d.ts +5 -0
- package/dist/execution/invocation/index.js +3 -0
- package/dist/execution/invocation/integration/call.d.ts +4 -0
- package/dist/execution/invocation/integration/call.js +17 -0
- package/dist/execution/invocation/integration/clients.d.ts +4 -0
- package/dist/execution/invocation/integration/clients.js +4 -0
- package/dist/execution/invocation/integration/index.d.ts +2 -0
- package/dist/execution/invocation/integration/index.js +2 -0
- package/dist/execution/invocation/invocation.d.ts +10 -0
- package/dist/execution/invocation/invocation.js +53 -0
- package/dist/execution/invocation/lifecycle/active.d.ts +4 -0
- package/dist/execution/invocation/lifecycle/active.js +61 -0
- package/dist/execution/invocation/lifecycle/index.d.ts +1 -0
- package/dist/execution/invocation/lifecycle/index.js +1 -0
- package/dist/execution/invocation/result/errors.d.ts +22 -0
- package/dist/execution/invocation/result/errors.js +88 -0
- package/dist/execution/invocation/result/index.d.ts +4 -0
- package/dist/execution/invocation/result/index.js +3 -0
- package/dist/execution/invocation/result/project.d.ts +3 -0
- package/dist/execution/invocation/result/project.js +111 -0
- package/dist/execution/invocation/result/validate.d.ts +4 -0
- package/dist/execution/invocation/result/validate.js +25 -0
- package/dist/execution/node/index.d.ts +2 -0
- package/dist/execution/node/index.js +1 -0
- package/dist/execution/node/listener.d.ts +10 -0
- package/dist/execution/node/listener.js +25 -0
- package/dist/execution/node/serve.d.ts +9 -0
- package/dist/execution/node/serve.js +44 -0
- package/dist/execution/runtime/admission.d.ts +3 -0
- package/dist/execution/runtime/admission.js +8 -0
- package/dist/execution/runtime/index.d.ts +5 -0
- package/dist/execution/runtime/index.js +5 -0
- package/dist/execution/runtime/initialize.d.ts +11 -0
- package/dist/execution/runtime/initialize.js +13 -0
- package/dist/execution/runtime/integrations.d.ts +3 -0
- package/dist/execution/runtime/integrations.js +5 -0
- package/dist/execution/runtime/load.d.ts +11 -0
- package/dist/execution/runtime/load.js +17 -0
- package/dist/execution/runtime/providers.d.ts +3 -0
- package/dist/execution/runtime/providers.js +12 -0
- package/dist/execution/serve.d.ts +27 -0
- package/dist/execution/serve.js +61 -0
- package/dist/execution/service/create.d.ts +4 -0
- package/dist/execution/service/create.js +118 -0
- package/dist/execution/service/errors.d.ts +3 -0
- package/dist/execution/service/errors.js +3 -0
- package/dist/execution/service/index.d.ts +3 -0
- package/dist/execution/service/index.js +1 -0
- package/dist/execution/service/initialization.d.ts +6 -0
- package/dist/execution/service/initialization.js +18 -0
- package/dist/execution/service/lifecycle.d.ts +7 -0
- package/dist/execution/service/lifecycle.js +25 -0
- package/dist/execution/service/publication/delivery.d.ts +2 -0
- package/dist/execution/service/publication/delivery.js +9 -0
- package/dist/execution/service/publication/index.d.ts +3 -0
- package/dist/execution/service/publication/index.js +3 -0
- package/dist/execution/service/publication/installation.d.ts +3 -0
- package/dist/execution/service/publication/installation.js +8 -0
- package/dist/execution/service/publication/source.d.ts +3 -0
- package/dist/execution/service/publication/source.js +11 -0
- package/dist/execution/service/release.d.ts +7 -0
- package/dist/execution/service/release.js +12 -0
- package/dist/execution/service/service.d.ts +23 -0
- package/dist/execution/service/service.js +1 -0
- package/dist/index.d.ts +21 -21
- package/dist/index.js +11 -11
- package/dist/platform/auth/exchange/configuration.d.ts +3 -0
- package/dist/platform/auth/exchange/configuration.js +3 -0
- package/dist/platform/auth/exchange/index.d.ts +2 -0
- package/dist/platform/auth/exchange/index.js +2 -0
- package/dist/platform/auth/exchange/response.d.ts +2 -0
- package/dist/platform/auth/exchange/response.js +2 -0
- package/dist/platform/auth/index.d.ts +4 -0
- package/dist/platform/auth/index.js +4 -0
- package/dist/platform/client/index.d.ts +5 -0
- package/dist/platform/client/index.js +4 -0
- package/dist/platform/client/schema/index.d.ts +2 -0
- package/dist/platform/client/schema/index.js +2 -0
- package/dist/platform/client/session/index.d.ts +2 -0
- package/dist/platform/client/session/index.js +2 -0
- package/dist/platform/client/store/index.d.ts +2 -0
- package/dist/platform/client/store/index.js +2 -0
- package/dist/platform/graph/class/index.d.ts +4 -0
- package/dist/platform/graph/class/index.js +2 -0
- package/dist/platform/graph/document/index.d.ts +2 -0
- package/dist/platform/graph/document/index.js +2 -0
- package/dist/platform/graph/edge/index.d.ts +2 -0
- package/dist/platform/graph/edge/index.js +2 -0
- package/dist/platform/graph/index.d.ts +13 -0
- package/dist/platform/graph/index.js +12 -0
- package/dist/platform/graph/node/index.d.ts +2 -0
- package/dist/platform/graph/node/index.js +2 -0
- package/dist/platform/graph/path/index.d.ts +2 -0
- package/dist/platform/graph/path/index.js +2 -0
- package/dist/platform/graph/properties/index.d.ts +2 -0
- package/dist/platform/graph/properties/index.js +2 -0
- package/dist/platform/invocation/index.d.ts +2 -0
- package/dist/platform/invocation/index.js +2 -0
- package/dist/platform/publication/index.d.ts +2 -0
- package/dist/platform/publication/index.js +2 -0
- package/dist/platform/result/index.d.ts +2 -0
- package/dist/platform/result/index.js +1 -0
- package/dist/platform/result/result.d.ts +10 -0
- package/dist/platform/result/result.js +6 -0
- package/dist/platform/schema/index.d.ts +10 -0
- package/dist/platform/schema/index.js +5 -0
- package/dist/platform/value/index.d.ts +3 -0
- package/dist/platform/value/index.js +3 -0
- package/dist/tooling/cli/arguments.d.ts +20 -0
- package/dist/tooling/cli/arguments.js +223 -0
- package/dist/tooling/cli/bin.d.ts +6 -0
- package/dist/tooling/cli/bin.js +36 -0
- package/dist/tooling/cli/bun.d.ts +12 -0
- package/dist/tooling/cli/bun.js +37 -0
- package/dist/tooling/cli/dotenv.d.ts +17 -0
- package/dist/tooling/cli/dotenv.js +54 -0
- package/dist/tooling/cli/failure.d.ts +2 -0
- package/dist/tooling/cli/failure.js +13 -0
- package/dist/tooling/cli/index.d.ts +13 -0
- package/dist/tooling/cli/index.js +13 -0
- package/dist/tooling/cli/log.d.ts +10 -0
- package/dist/tooling/cli/log.js +16 -0
- package/dist/tooling/cli/orchestrate.d.ts +1 -0
- package/dist/tooling/cli/orchestrate.js +206 -0
- package/dist/tooling/cli/publish.d.ts +34 -0
- package/dist/tooling/cli/publish.js +270 -0
- package/dist/tooling/cli/run.d.ts +1 -0
- package/dist/tooling/cli/run.js +1 -0
- package/dist/tooling/cli/source.d.ts +2 -0
- package/dist/tooling/cli/source.js +2 -0
- package/dist/tooling/linter/adapters/typescript/discover.d.ts +3 -0
- package/dist/tooling/linter/adapters/typescript/discover.js +411 -0
- package/dist/tooling/linter/adapters/typescript/evidence-admission.d.ts +4 -0
- package/dist/tooling/linter/adapters/typescript/evidence-admission.js +21 -0
- package/dist/tooling/linter/adapters/typescript/imports.d.ts +6 -0
- package/dist/tooling/linter/adapters/typescript/imports.js +170 -0
- package/dist/tooling/linter/adapters/typescript/index.d.ts +47 -0
- package/dist/tooling/linter/adapters/typescript/index.js +7 -0
- package/dist/tooling/linter/adapters/typescript/query-observation.d.ts +3 -0
- package/dist/tooling/linter/adapters/typescript/query-observation.js +171 -0
- package/dist/tooling/linter/adapters/typescript/suppression-directives.d.ts +4 -0
- package/dist/tooling/linter/adapters/typescript/suppression-directives.js +84 -0
- package/dist/tooling/linter/adapters/typescript/syntax.d.ts +38 -0
- package/dist/tooling/linter/adapters/typescript/syntax.js +182 -0
- package/dist/tooling/linter/adapters/typescript/type-universe.d.ts +1 -0
- package/dist/tooling/linter/adapters/typescript/type-universe.js +264 -0
- package/dist/tooling/linter/analysis/query/decision.d.ts +4 -0
- package/dist/tooling/linter/analysis/query/decision.js +73 -0
- package/dist/tooling/linter/analysis/query/index.d.ts +3 -0
- package/dist/tooling/linter/analysis/query/index.js +2 -0
- package/dist/tooling/linter/analysis/query/observation.d.ts +35 -0
- package/dist/tooling/linter/analysis/query/observation.js +12 -0
- package/dist/tooling/linter/catalog/compile.d.ts +2 -0
- package/dist/tooling/linter/catalog/compile.js +110 -0
- package/dist/tooling/linter/catalog/index.d.ts +18 -0
- package/dist/tooling/linter/catalog/index.js +2 -0
- package/dist/tooling/linter/catalog/revision.d.ts +6 -0
- package/dist/tooling/linter/catalog/revision.js +12 -0
- package/dist/tooling/linter/diagnostics/error.d.ts +9 -0
- package/dist/tooling/linter/diagnostics/error.js +9 -0
- package/dist/tooling/linter/diagnostics/index.d.ts +28 -0
- package/dist/tooling/linter/diagnostics/index.js +2 -0
- package/dist/tooling/linter/diagnostics/sort.d.ts +2 -0
- package/dist/tooling/linter/diagnostics/sort.js +26 -0
- package/dist/tooling/linter/evaluation/binding/bind.d.ts +4 -0
- package/dist/tooling/linter/evaluation/binding/bind.js +355 -0
- package/dist/tooling/linter/evaluation/binding/diagnostic.d.ts +4 -0
- package/dist/tooling/linter/evaluation/binding/diagnostic.js +16 -0
- package/dist/tooling/linter/evaluation/binding/index.d.ts +1 -0
- package/dist/tooling/linter/evaluation/binding/index.js +1 -0
- package/dist/tooling/linter/evaluation/contract/availability.d.ts +27 -0
- package/dist/tooling/linter/evaluation/contract/availability.js +1 -0
- package/dist/tooling/linter/evaluation/contract/decision.d.ts +25 -0
- package/dist/tooling/linter/evaluation/contract/decision.js +1 -0
- package/dist/tooling/linter/evaluation/contract/evidence.d.ts +11 -0
- package/dist/tooling/linter/evaluation/contract/evidence.js +1 -0
- package/dist/tooling/linter/evaluation/contract/implementation.d.ts +21 -0
- package/dist/tooling/linter/evaluation/contract/implementation.js +1 -0
- package/dist/tooling/linter/evaluation/contract/index.d.ts +4 -0
- package/dist/tooling/linter/evaluation/contract/index.js +1 -0
- package/dist/tooling/linter/evaluation/index.d.ts +2 -0
- package/dist/tooling/linter/evaluation/index.js +1 -0
- package/dist/tooling/linter/implementations/source/actions.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/actions.js +184 -0
- package/dist/tooling/linter/implementations/source/global.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/global.js +786 -0
- package/dist/tooling/linter/implementations/source/index.d.ts +3 -0
- package/dist/tooling/linter/implementations/source/index.js +3 -0
- package/dist/tooling/linter/implementations/source/integrations.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/integrations.js +40 -0
- package/dist/tooling/linter/implementations/source/migrations.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/migrations.js +114 -0
- package/dist/tooling/linter/implementations/source/mutations.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/mutations.js +178 -0
- package/dist/tooling/linter/implementations/source/providers.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/providers.js +185 -0
- package/dist/tooling/linter/implementations/source/queries.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/queries.js +999 -0
- package/dist/tooling/linter/implementations/source/rules.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/rules.js +140 -0
- package/dist/tooling/linter/implementations/source/schema.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/schema.js +109 -0
- package/dist/tooling/linter/implementations/source/shared.d.ts +41 -0
- package/dist/tooling/linter/implementations/source/shared.js +238 -0
- package/dist/tooling/linter/implementations/source/states.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/states.js +1 -0
- package/dist/tooling/linter/implementations/source/tests.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/tests.js +31 -0
- package/dist/tooling/linter/implementations/source/ui.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/ui.js +20 -0
- package/dist/tooling/linter/implementations/source/utility-rules.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/utility-rules.js +28 -0
- package/dist/tooling/linter/implementations/source/verifier.d.ts +16 -0
- package/dist/tooling/linter/implementations/source/verifier.js +52 -0
- package/dist/tooling/linter/implementations/source/verifiers.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/verifiers.js +32 -0
- package/dist/tooling/linter/implementations/source/views.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/views.js +34 -0
- package/dist/tooling/linter/implementations/source/workflows.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/workflows.js +265 -0
- package/dist/tooling/linter/index.d.ts +9 -0
- package/dist/tooling/linter/index.js +3 -0
- package/dist/tooling/linter/lint.d.ts +23 -0
- package/dist/tooling/linter/lint.js +69 -0
- package/dist/tooling/linter/oxlint/index.d.ts +3 -0
- package/dist/tooling/linter/oxlint/index.js +1 -0
- package/dist/tooling/linter/oxlint/process.d.ts +18 -0
- package/dist/tooling/linter/oxlint/process.js +169 -0
- package/dist/tooling/linter/oxlint/run.d.ts +7 -0
- package/dist/tooling/linter/oxlint/run.js +253 -0
- package/dist/tooling/linter/oxlint-config/ignore-patterns.d.ts +5 -0
- package/dist/tooling/linter/oxlint-config/ignore-patterns.js +9 -0
- package/dist/tooling/linter/oxlint-config/index.d.ts +4 -0
- package/dist/tooling/linter/oxlint-config/index.js +38 -0
- package/dist/tooling/linter/packs/domain.d.ts +2 -0
- package/dist/tooling/linter/packs/domain.js +7 -0
- package/dist/tooling/linter/packs/index.d.ts +8 -0
- package/dist/tooling/linter/packs/index.js +1 -0
- package/dist/tooling/linter/policy/compile.d.ts +2 -0
- package/dist/tooling/linter/policy/compile.js +257 -0
- package/dist/tooling/linter/policy/configuration.d.ts +11 -0
- package/dist/tooling/linter/policy/configuration.js +118 -0
- package/dist/tooling/linter/policy/generated.d.ts +4 -0
- package/dist/tooling/linter/policy/generated.js +811 -0
- package/dist/tooling/linter/policy/index.d.ts +44 -0
- package/dist/tooling/linter/policy/index.js +3 -0
- package/dist/tooling/linter/qualification/index.d.ts +10 -0
- package/dist/tooling/linter/qualification/index.js +2 -0
- package/dist/tooling/linter/qualification/query-fixtures.d.ts +2 -0
- package/dist/tooling/linter/qualification/query-fixtures.js +68 -0
- package/dist/tooling/linter/qualification/runner.d.ts +3 -0
- package/dist/tooling/linter/qualification/runner.js +6 -0
- package/dist/tooling/linter/report/format.d.ts +3 -0
- package/dist/tooling/linter/report/format.js +32 -0
- package/dist/tooling/linter/report/index.d.ts +2 -0
- package/dist/tooling/linter/report/index.js +1 -0
- package/dist/tooling/linter/requirements/index.d.ts +2 -0
- package/dist/tooling/linter/requirements/index.js +1 -0
- package/dist/tooling/linter/requirements/registry.d.ts +3 -0
- package/dist/tooling/linter/requirements/registry.js +181 -0
- package/dist/tooling/linter/requirements/requirement.d.ts +8 -0
- package/dist/tooling/linter/requirements/requirement.js +1 -0
- package/dist/tooling/linter/suppression/apply.d.ts +3 -0
- package/dist/tooling/linter/suppression/apply.js +47 -0
- package/dist/tooling/linter/suppression/directive.d.ts +10 -0
- package/dist/tooling/linter/suppression/directive.js +1 -0
- package/dist/tooling/linter/suppression/index.d.ts +13 -0
- package/dist/tooling/linter/suppression/index.js +1 -0
- package/dist/tooling/packaging/admission.d.ts +9 -0
- package/dist/tooling/packaging/admission.js +93 -0
- package/dist/tooling/packaging/compile.d.ts +8 -0
- package/dist/tooling/packaging/compile.js +150 -0
- package/dist/tooling/packaging/declarations/admission.d.ts +7 -0
- package/dist/tooling/packaging/declarations/admission.js +56 -0
- package/dist/tooling/packaging/declarations/admission.typecheck.d.ts +7 -0
- package/dist/tooling/packaging/declarations/admission.typecheck.js +1 -0
- package/dist/tooling/packaging/declarations/imports.d.ts +16 -0
- package/dist/tooling/packaging/declarations/imports.js +50 -0
- package/dist/tooling/packaging/declarations/index.d.ts +7 -0
- package/dist/tooling/packaging/declarations/index.js +9 -0
- package/dist/tooling/packaging/declarations/normalize.d.ts +13 -0
- package/dist/tooling/packaging/declarations/normalize.js +118 -0
- package/dist/tooling/packaging/declarations/ownership.d.ts +9 -0
- package/dist/tooling/packaging/declarations/ownership.js +85 -0
- package/dist/tooling/packaging/declarations/references.d.ts +5 -0
- package/dist/tooling/packaging/declarations/references.js +38 -0
- package/dist/tooling/packaging/declarations/transform.d.ts +11 -0
- package/dist/tooling/packaging/declarations/transform.js +78 -0
- package/dist/tooling/packaging/declarations/verify.d.ts +11 -0
- package/dist/tooling/packaging/declarations/verify.js +37 -0
- package/dist/tooling/packaging/exports.d.ts +11 -0
- package/dist/tooling/packaging/exports.js +61 -0
- package/dist/tooling/packaging/index.d.ts +2 -0
- package/dist/tooling/packaging/index.js +1 -0
- package/dist/tooling/packaging/packaging.d.ts +10 -0
- package/dist/tooling/packaging/packaging.js +92 -0
- package/dist/tooling/packaging/runtime.d.ts +4 -0
- package/dist/tooling/packaging/runtime.js +57 -0
- package/package.json +183 -112
- package/dist/auth/exchange.d.ts +0 -11
- package/dist/auth/exchange.d.ts.map +0 -1
- package/dist/auth/exchange.js +0 -8
- package/dist/auth/exchange.js.map +0 -1
- package/dist/auth/index.d.ts +0 -5
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js +0 -4
- package/dist/auth/index.js.map +0 -1
- package/dist/capability/client.d.ts +0 -25
- package/dist/capability/client.d.ts.map +0 -1
- package/dist/capability/client.js +0 -147
- package/dist/capability/client.js.map +0 -1
- package/dist/capability/contract.d.ts +0 -70
- package/dist/capability/contract.d.ts.map +0 -1
- package/dist/capability/contract.js +0 -3
- package/dist/capability/contract.js.map +0 -1
- package/dist/capability/define.d.ts +0 -14
- package/dist/capability/define.d.ts.map +0 -1
- package/dist/capability/define.js +0 -145
- package/dist/capability/define.js.map +0 -1
- package/dist/capability/index.d.ts +0 -3
- package/dist/capability/index.d.ts.map +0 -1
- package/dist/capability/index.js +0 -2
- package/dist/capability/index.js.map +0 -1
- package/dist/cli/arguments.d.ts +0 -21
- package/dist/cli/arguments.d.ts.map +0 -1
- package/dist/cli/arguments.js +0 -220
- package/dist/cli/arguments.js.map +0 -1
- package/dist/cli/bin.d.ts +0 -7
- package/dist/cli/bin.d.ts.map +0 -1
- package/dist/cli/bin.js +0 -15
- package/dist/cli/bin.js.map +0 -1
- package/dist/cli/dotenv.d.ts +0 -18
- package/dist/cli/dotenv.d.ts.map +0 -1
- package/dist/cli/dotenv.js +0 -55
- package/dist/cli/dotenv.js.map +0 -1
- package/dist/cli/index.d.ts +0 -14
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -14
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/log.d.ts +0 -11
- package/dist/cli/log.d.ts.map +0 -1
- package/dist/cli/log.js +0 -17
- package/dist/cli/log.js.map +0 -1
- package/dist/cli/publish.d.ts +0 -35
- package/dist/cli/publish.d.ts.map +0 -1
- package/dist/cli/publish.js +0 -271
- package/dist/cli/publish.js.map +0 -1
- package/dist/cli/run.d.ts +0 -30
- package/dist/cli/run.d.ts.map +0 -1
- package/dist/cli/run.js +0 -390
- package/dist/cli/run.js.map +0 -1
- package/dist/deployment/artifact/bindings.d.ts +0 -7
- package/dist/deployment/artifact/bindings.d.ts.map +0 -1
- package/dist/deployment/artifact/bindings.js +0 -44
- package/dist/deployment/artifact/bindings.js.map +0 -1
- package/dist/deployment/artifact/deployment.d.ts +0 -35
- package/dist/deployment/artifact/deployment.d.ts.map +0 -1
- package/dist/deployment/artifact/deployment.js +0 -91
- package/dist/deployment/artifact/deployment.js.map +0 -1
- package/dist/deployment/artifact/index.d.ts +0 -5
- package/dist/deployment/artifact/index.d.ts.map +0 -1
- package/dist/deployment/artifact/index.js +0 -4
- package/dist/deployment/artifact/index.js.map +0 -1
- package/dist/deployment/check/check.d.ts +0 -8
- package/dist/deployment/check/check.d.ts.map +0 -1
- package/dist/deployment/check/check.js +0 -94
- package/dist/deployment/check/check.js.map +0 -1
- package/dist/deployment/check/contract.d.ts +0 -29
- package/dist/deployment/check/contract.d.ts.map +0 -1
- package/dist/deployment/check/contract.js +0 -2
- package/dist/deployment/check/contract.js.map +0 -1
- package/dist/deployment/check/index.d.ts +0 -3
- package/dist/deployment/check/index.d.ts.map +0 -1
- package/dist/deployment/check/index.js +0 -2
- package/dist/deployment/check/index.js.map +0 -1
- package/dist/deployment/index.d.ts.map +0 -1
- package/dist/deployment/index.js.map +0 -1
- package/dist/deployment/provider/adapter.d.ts +0 -56
- package/dist/deployment/provider/adapter.d.ts.map +0 -1
- package/dist/deployment/provider/adapter.js +0 -84
- package/dist/deployment/provider/adapter.js.map +0 -1
- package/dist/deployment/provider/config.d.ts +0 -10
- package/dist/deployment/provider/config.d.ts.map +0 -1
- package/dist/deployment/provider/config.js +0 -8
- package/dist/deployment/provider/config.js.map +0 -1
- package/dist/deployment/provider/index.d.ts +0 -5
- package/dist/deployment/provider/index.d.ts.map +0 -1
- package/dist/deployment/provider/index.js +0 -3
- package/dist/deployment/provider/index.js.map +0 -1
- package/dist/domain/app.d.ts +0 -34
- package/dist/domain/app.d.ts.map +0 -1
- package/dist/domain/app.js +0 -2
- package/dist/domain/app.js.map +0 -1
- package/dist/domain/context.d.ts +0 -68
- package/dist/domain/context.d.ts.map +0 -1
- package/dist/domain/context.js +0 -2
- package/dist/domain/context.js.map +0 -1
- package/dist/domain/define.d.ts +0 -101
- package/dist/domain/define.d.ts.map +0 -1
- package/dist/domain/define.js +0 -81
- package/dist/domain/define.js.map +0 -1
- package/dist/domain/handlers.d.ts +0 -53
- package/dist/domain/handlers.d.ts.map +0 -1
- package/dist/domain/handlers.js +0 -88
- package/dist/domain/handlers.js.map +0 -1
- package/dist/domain/implement.d.ts +0 -5
- package/dist/domain/implement.d.ts.map +0 -1
- package/dist/domain/implement.js +0 -23
- package/dist/domain/implement.js.map +0 -1
- package/dist/domain/index.d.ts +0 -14
- package/dist/domain/index.d.ts.map +0 -1
- package/dist/domain/index.js +0 -8
- package/dist/domain/index.js.map +0 -1
- package/dist/domain/requirements.d.ts +0 -26
- package/dist/domain/requirements.d.ts.map +0 -1
- package/dist/domain/requirements.js +0 -98
- package/dist/domain/requirements.js.map +0 -1
- package/dist/graph/class/index.d.ts +0 -3
- package/dist/graph/class/index.d.ts.map +0 -1
- package/dist/graph/class/index.js +0 -3
- package/dist/graph/class/index.js.map +0 -1
- package/dist/graph/edge/index.d.ts +0 -3
- package/dist/graph/edge/index.d.ts.map +0 -1
- package/dist/graph/edge/index.js +0 -3
- package/dist/graph/edge/index.js.map +0 -1
- package/dist/graph/index.d.ts +0 -10
- package/dist/graph/index.d.ts.map +0 -1
- package/dist/graph/index.js +0 -9
- package/dist/graph/index.js.map +0 -1
- package/dist/graph/model/index.d.ts +0 -3
- package/dist/graph/model/index.d.ts.map +0 -1
- package/dist/graph/model/index.js +0 -3
- package/dist/graph/model/index.js.map +0 -1
- package/dist/graph/node/index.d.ts +0 -3
- package/dist/graph/node/index.d.ts.map +0 -1
- package/dist/graph/node/index.js +0 -3
- package/dist/graph/node/index.js.map +0 -1
- package/dist/graph/path/index.d.ts +0 -3
- package/dist/graph/path/index.d.ts.map +0 -1
- package/dist/graph/path/index.js +0 -3
- package/dist/graph/path/index.js.map +0 -1
- package/dist/graph/properties/index.d.ts +0 -3
- package/dist/graph/properties/index.d.ts.map +0 -1
- package/dist/graph/properties/index.js +0 -3
- package/dist/graph/properties/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/invocation/handler.d.ts +0 -51
- package/dist/invocation/handler.d.ts.map +0 -1
- package/dist/invocation/handler.js +0 -289
- package/dist/invocation/handler.js.map +0 -1
- package/dist/invocation/index.d.ts +0 -3
- package/dist/invocation/index.d.ts.map +0 -1
- package/dist/invocation/index.js +0 -2
- package/dist/invocation/index.js.map +0 -1
- package/dist/invocation/receiver.d.ts +0 -5
- package/dist/invocation/receiver.d.ts.map +0 -1
- package/dist/invocation/receiver.js +0 -70
- package/dist/invocation/receiver.js.map +0 -1
- package/dist/invocation/result.d.ts +0 -5
- package/dist/invocation/result.d.ts.map +0 -1
- package/dist/invocation/result.js +0 -146
- package/dist/invocation/result.js.map +0 -1
- package/dist/invocation/selection.d.ts +0 -21
- package/dist/invocation/selection.d.ts.map +0 -1
- package/dist/invocation/selection.js +0 -107
- package/dist/invocation/selection.js.map +0 -1
- package/dist/linter/adapters/typescript/discover.d.ts +0 -4
- package/dist/linter/adapters/typescript/discover.d.ts.map +0 -1
- package/dist/linter/adapters/typescript/discover.js +0 -412
- package/dist/linter/adapters/typescript/discover.js.map +0 -1
- package/dist/linter/adapters/typescript/evidence-admission.d.ts +0 -5
- package/dist/linter/adapters/typescript/evidence-admission.d.ts.map +0 -1
- package/dist/linter/adapters/typescript/evidence-admission.js +0 -22
- package/dist/linter/adapters/typescript/evidence-admission.js.map +0 -1
- package/dist/linter/adapters/typescript/imports.d.ts +0 -7
- package/dist/linter/adapters/typescript/imports.d.ts.map +0 -1
- package/dist/linter/adapters/typescript/imports.js +0 -171
- package/dist/linter/adapters/typescript/imports.js.map +0 -1
- package/dist/linter/adapters/typescript/index.d.ts +0 -48
- package/dist/linter/adapters/typescript/index.d.ts.map +0 -1
- package/dist/linter/adapters/typescript/index.js +0 -8
- package/dist/linter/adapters/typescript/index.js.map +0 -1
- package/dist/linter/adapters/typescript/query-observation.d.ts +0 -4
- package/dist/linter/adapters/typescript/query-observation.d.ts.map +0 -1
- package/dist/linter/adapters/typescript/query-observation.js +0 -172
- package/dist/linter/adapters/typescript/query-observation.js.map +0 -1
- package/dist/linter/adapters/typescript/suppression-directives.d.ts +0 -5
- package/dist/linter/adapters/typescript/suppression-directives.d.ts.map +0 -1
- package/dist/linter/adapters/typescript/suppression-directives.js +0 -85
- package/dist/linter/adapters/typescript/suppression-directives.js.map +0 -1
- package/dist/linter/adapters/typescript/syntax.d.ts +0 -39
- package/dist/linter/adapters/typescript/syntax.d.ts.map +0 -1
- package/dist/linter/adapters/typescript/syntax.js +0 -183
- package/dist/linter/adapters/typescript/syntax.js.map +0 -1
- package/dist/linter/adapters/typescript/type-universe.d.ts +0 -2
- package/dist/linter/adapters/typescript/type-universe.d.ts.map +0 -1
- package/dist/linter/adapters/typescript/type-universe.js +0 -265
- package/dist/linter/adapters/typescript/type-universe.js.map +0 -1
- package/dist/linter/catalog/compile.d.ts +0 -3
- package/dist/linter/catalog/compile.d.ts.map +0 -1
- package/dist/linter/catalog/compile.js +0 -111
- package/dist/linter/catalog/compile.js.map +0 -1
- package/dist/linter/catalog/index.d.ts +0 -19
- package/dist/linter/catalog/index.d.ts.map +0 -1
- package/dist/linter/catalog/index.js +0 -3
- package/dist/linter/catalog/index.js.map +0 -1
- package/dist/linter/catalog/revision.d.ts +0 -7
- package/dist/linter/catalog/revision.d.ts.map +0 -1
- package/dist/linter/catalog/revision.js +0 -13
- package/dist/linter/catalog/revision.js.map +0 -1
- package/dist/linter/diagnostics/error.d.ts +0 -10
- package/dist/linter/diagnostics/error.d.ts.map +0 -1
- package/dist/linter/diagnostics/error.js +0 -10
- package/dist/linter/diagnostics/error.js.map +0 -1
- package/dist/linter/diagnostics/index.d.ts +0 -29
- package/dist/linter/diagnostics/index.d.ts.map +0 -1
- package/dist/linter/diagnostics/index.js +0 -3
- package/dist/linter/diagnostics/index.js.map +0 -1
- package/dist/linter/diagnostics/sort.d.ts +0 -3
- package/dist/linter/diagnostics/sort.d.ts.map +0 -1
- package/dist/linter/diagnostics/sort.js +0 -27
- package/dist/linter/diagnostics/sort.js.map +0 -1
- package/dist/linter/evaluation/binding/bind.d.ts +0 -5
- package/dist/linter/evaluation/binding/bind.d.ts.map +0 -1
- package/dist/linter/evaluation/binding/bind.js +0 -356
- package/dist/linter/evaluation/binding/bind.js.map +0 -1
- package/dist/linter/evaluation/binding/diagnostic.d.ts +0 -5
- package/dist/linter/evaluation/binding/diagnostic.d.ts.map +0 -1
- package/dist/linter/evaluation/binding/diagnostic.js +0 -17
- package/dist/linter/evaluation/binding/diagnostic.js.map +0 -1
- package/dist/linter/evaluation/binding/index.d.ts +0 -2
- package/dist/linter/evaluation/binding/index.d.ts.map +0 -1
- package/dist/linter/evaluation/binding/index.js +0 -2
- package/dist/linter/evaluation/binding/index.js.map +0 -1
- package/dist/linter/evaluation/contract/availability.d.ts +0 -28
- package/dist/linter/evaluation/contract/availability.d.ts.map +0 -1
- package/dist/linter/evaluation/contract/availability.js +0 -2
- package/dist/linter/evaluation/contract/availability.js.map +0 -1
- package/dist/linter/evaluation/contract/decision.d.ts +0 -26
- package/dist/linter/evaluation/contract/decision.d.ts.map +0 -1
- package/dist/linter/evaluation/contract/decision.js +0 -2
- package/dist/linter/evaluation/contract/decision.js.map +0 -1
- package/dist/linter/evaluation/contract/evidence.d.ts +0 -12
- package/dist/linter/evaluation/contract/evidence.d.ts.map +0 -1
- package/dist/linter/evaluation/contract/evidence.js +0 -2
- package/dist/linter/evaluation/contract/evidence.js.map +0 -1
- package/dist/linter/evaluation/contract/implementation.d.ts +0 -22
- package/dist/linter/evaluation/contract/implementation.d.ts.map +0 -1
- package/dist/linter/evaluation/contract/implementation.js +0 -2
- package/dist/linter/evaluation/contract/implementation.js.map +0 -1
- package/dist/linter/evaluation/contract/index.d.ts +0 -5
- package/dist/linter/evaluation/contract/index.d.ts.map +0 -1
- package/dist/linter/evaluation/contract/index.js +0 -2
- package/dist/linter/evaluation/contract/index.js.map +0 -1
- package/dist/linter/evaluation/index.d.ts +0 -3
- package/dist/linter/evaluation/index.d.ts.map +0 -1
- package/dist/linter/evaluation/index.js +0 -2
- package/dist/linter/evaluation/index.js.map +0 -1
- package/dist/linter/implementations/source/capabilities.d.ts +0 -3
- package/dist/linter/implementations/source/capabilities.d.ts.map +0 -1
- package/dist/linter/implementations/source/capabilities.js +0 -41
- package/dist/linter/implementations/source/capabilities.js.map +0 -1
- package/dist/linter/implementations/source/contract.d.ts +0 -17
- package/dist/linter/implementations/source/contract.d.ts.map +0 -1
- package/dist/linter/implementations/source/contract.js +0 -53
- package/dist/linter/implementations/source/contract.js.map +0 -1
- package/dist/linter/implementations/source/functions.d.ts +0 -3
- package/dist/linter/implementations/source/functions.d.ts.map +0 -1
- package/dist/linter/implementations/source/functions.js +0 -102
- package/dist/linter/implementations/source/functions.js.map +0 -1
- package/dist/linter/implementations/source/global.d.ts +0 -3
- package/dist/linter/implementations/source/global.d.ts.map +0 -1
- package/dist/linter/implementations/source/global.js +0 -812
- package/dist/linter/implementations/source/global.js.map +0 -1
- package/dist/linter/implementations/source/index.d.ts +0 -4
- package/dist/linter/implementations/source/index.d.ts.map +0 -1
- package/dist/linter/implementations/source/index.js +0 -4
- package/dist/linter/implementations/source/index.js.map +0 -1
- package/dist/linter/implementations/source/integrations.d.ts +0 -3
- package/dist/linter/implementations/source/integrations.d.ts.map +0 -1
- package/dist/linter/implementations/source/integrations.js +0 -186
- package/dist/linter/implementations/source/integrations.js.map +0 -1
- package/dist/linter/implementations/source/migrations.d.ts +0 -3
- package/dist/linter/implementations/source/migrations.d.ts.map +0 -1
- package/dist/linter/implementations/source/migrations.js +0 -115
- package/dist/linter/implementations/source/migrations.js.map +0 -1
- package/dist/linter/implementations/source/mutations.d.ts +0 -3
- package/dist/linter/implementations/source/mutations.d.ts.map +0 -1
- package/dist/linter/implementations/source/mutations.js +0 -185
- package/dist/linter/implementations/source/mutations.js.map +0 -1
- package/dist/linter/implementations/source/queries.d.ts +0 -3
- package/dist/linter/implementations/source/queries.d.ts.map +0 -1
- package/dist/linter/implementations/source/queries.js +0 -1000
- package/dist/linter/implementations/source/queries.js.map +0 -1
- package/dist/linter/implementations/source/rules.d.ts +0 -3
- package/dist/linter/implementations/source/rules.d.ts.map +0 -1
- package/dist/linter/implementations/source/rules.js +0 -141
- package/dist/linter/implementations/source/rules.js.map +0 -1
- package/dist/linter/implementations/source/schema.d.ts +0 -3
- package/dist/linter/implementations/source/schema.d.ts.map +0 -1
- package/dist/linter/implementations/source/schema.js +0 -105
- package/dist/linter/implementations/source/schema.js.map +0 -1
- package/dist/linter/implementations/source/shared.d.ts +0 -42
- package/dist/linter/implementations/source/shared.d.ts.map +0 -1
- package/dist/linter/implementations/source/shared.js +0 -239
- package/dist/linter/implementations/source/shared.js.map +0 -1
- package/dist/linter/implementations/source/states.d.ts +0 -3
- package/dist/linter/implementations/source/states.d.ts.map +0 -1
- package/dist/linter/implementations/source/states.js +0 -2
- package/dist/linter/implementations/source/states.js.map +0 -1
- package/dist/linter/implementations/source/tests.d.ts +0 -3
- package/dist/linter/implementations/source/tests.d.ts.map +0 -1
- package/dist/linter/implementations/source/tests.js +0 -28
- package/dist/linter/implementations/source/tests.js.map +0 -1
- package/dist/linter/implementations/source/ui.d.ts +0 -3
- package/dist/linter/implementations/source/ui.d.ts.map +0 -1
- package/dist/linter/implementations/source/ui.js +0 -21
- package/dist/linter/implementations/source/ui.js.map +0 -1
- package/dist/linter/implementations/source/utils.d.ts +0 -3
- package/dist/linter/implementations/source/utils.d.ts.map +0 -1
- package/dist/linter/implementations/source/utils.js +0 -29
- package/dist/linter/implementations/source/utils.js.map +0 -1
- package/dist/linter/implementations/source/verifiers.d.ts +0 -3
- package/dist/linter/implementations/source/verifiers.d.ts.map +0 -1
- package/dist/linter/implementations/source/verifiers.js +0 -33
- package/dist/linter/implementations/source/verifiers.js.map +0 -1
- package/dist/linter/implementations/source/views.d.ts +0 -3
- package/dist/linter/implementations/source/views.d.ts.map +0 -1
- package/dist/linter/implementations/source/views.js +0 -36
- package/dist/linter/implementations/source/views.js.map +0 -1
- package/dist/linter/implementations/source/workflows.d.ts +0 -3
- package/dist/linter/implementations/source/workflows.d.ts.map +0 -1
- package/dist/linter/implementations/source/workflows.js +0 -308
- package/dist/linter/implementations/source/workflows.js.map +0 -1
- package/dist/linter/index.d.ts +0 -9
- package/dist/linter/index.d.ts.map +0 -1
- package/dist/linter/index.js +0 -4
- package/dist/linter/index.js.map +0 -1
- package/dist/linter/lint.d.ts +0 -24
- package/dist/linter/lint.d.ts.map +0 -1
- package/dist/linter/lint.js +0 -69
- package/dist/linter/lint.js.map +0 -1
- package/dist/linter/oxlint/index.d.ts +0 -4
- package/dist/linter/oxlint/index.d.ts.map +0 -1
- package/dist/linter/oxlint/index.js +0 -2
- package/dist/linter/oxlint/index.js.map +0 -1
- package/dist/linter/oxlint/process.d.ts +0 -19
- package/dist/linter/oxlint/process.d.ts.map +0 -1
- package/dist/linter/oxlint/process.js +0 -170
- package/dist/linter/oxlint/process.js.map +0 -1
- package/dist/linter/oxlint/run.d.ts +0 -8
- package/dist/linter/oxlint/run.d.ts.map +0 -1
- package/dist/linter/oxlint/run.js +0 -252
- package/dist/linter/oxlint/run.js.map +0 -1
- package/dist/linter/oxlint-config/ignore-patterns.d.ts +0 -6
- package/dist/linter/oxlint-config/ignore-patterns.d.ts.map +0 -1
- package/dist/linter/oxlint-config/ignore-patterns.js +0 -10
- package/dist/linter/oxlint-config/ignore-patterns.js.map +0 -1
- package/dist/linter/oxlint-config/index.d.ts +0 -5
- package/dist/linter/oxlint-config/index.d.ts.map +0 -1
- package/dist/linter/oxlint-config/index.js +0 -18
- package/dist/linter/oxlint-config/index.js.map +0 -1
- package/dist/linter/packs/domain.d.ts +0 -3
- package/dist/linter/packs/domain.d.ts.map +0 -1
- package/dist/linter/packs/domain.js +0 -8
- package/dist/linter/packs/domain.js.map +0 -1
- package/dist/linter/packs/index.d.ts +0 -9
- package/dist/linter/packs/index.d.ts.map +0 -1
- package/dist/linter/packs/index.js +0 -2
- package/dist/linter/packs/index.js.map +0 -1
- package/dist/linter/policy/compile.d.ts +0 -3
- package/dist/linter/policy/compile.d.ts.map +0 -1
- package/dist/linter/policy/compile.js +0 -256
- package/dist/linter/policy/compile.js.map +0 -1
- package/dist/linter/policy/generated.d.ts +0 -5
- package/dist/linter/policy/generated.d.ts.map +0 -1
- package/dist/linter/policy/generated.js +0 -764
- package/dist/linter/policy/generated.js.map +0 -1
- package/dist/linter/policy/index.d.ts +0 -43
- package/dist/linter/policy/index.d.ts.map +0 -1
- package/dist/linter/policy/index.js +0 -3
- package/dist/linter/policy/index.js.map +0 -1
- package/dist/linter/qualification/index.d.ts +0 -11
- package/dist/linter/qualification/index.d.ts.map +0 -1
- package/dist/linter/qualification/index.js +0 -3
- package/dist/linter/qualification/index.js.map +0 -1
- package/dist/linter/qualification/query-fixtures.d.ts +0 -3
- package/dist/linter/qualification/query-fixtures.d.ts.map +0 -1
- package/dist/linter/qualification/query-fixtures.js +0 -69
- package/dist/linter/qualification/query-fixtures.js.map +0 -1
- package/dist/linter/qualification/runner.d.ts +0 -4
- package/dist/linter/qualification/runner.d.ts.map +0 -1
- package/dist/linter/qualification/runner.js +0 -7
- package/dist/linter/qualification/runner.js.map +0 -1
- package/dist/linter/report/format.d.ts +0 -4
- package/dist/linter/report/format.d.ts.map +0 -1
- package/dist/linter/report/format.js +0 -33
- package/dist/linter/report/format.js.map +0 -1
- package/dist/linter/report/index.d.ts +0 -3
- package/dist/linter/report/index.d.ts.map +0 -1
- package/dist/linter/report/index.js +0 -2
- package/dist/linter/report/index.js.map +0 -1
- package/dist/linter/requirements/index.d.ts +0 -3
- package/dist/linter/requirements/index.d.ts.map +0 -1
- package/dist/linter/requirements/index.js +0 -2
- package/dist/linter/requirements/index.js.map +0 -1
- package/dist/linter/requirements/model.d.ts +0 -9
- package/dist/linter/requirements/model.d.ts.map +0 -1
- package/dist/linter/requirements/model.js +0 -2
- package/dist/linter/requirements/model.js.map +0 -1
- package/dist/linter/requirements/registry.d.ts +0 -4
- package/dist/linter/requirements/registry.d.ts.map +0 -1
- package/dist/linter/requirements/registry.js +0 -188
- package/dist/linter/requirements/registry.js.map +0 -1
- package/dist/linter/semantics/query/decision.d.ts +0 -5
- package/dist/linter/semantics/query/decision.d.ts.map +0 -1
- package/dist/linter/semantics/query/decision.js +0 -74
- package/dist/linter/semantics/query/decision.js.map +0 -1
- package/dist/linter/semantics/query/index.d.ts +0 -4
- package/dist/linter/semantics/query/index.d.ts.map +0 -1
- package/dist/linter/semantics/query/index.js +0 -3
- package/dist/linter/semantics/query/index.js.map +0 -1
- package/dist/linter/semantics/query/observation.d.ts +0 -36
- package/dist/linter/semantics/query/observation.d.ts.map +0 -1
- package/dist/linter/semantics/query/observation.js +0 -13
- package/dist/linter/semantics/query/observation.js.map +0 -1
- package/dist/linter/suppression/apply.d.ts +0 -4
- package/dist/linter/suppression/apply.d.ts.map +0 -1
- package/dist/linter/suppression/apply.js +0 -48
- package/dist/linter/suppression/apply.js.map +0 -1
- package/dist/linter/suppression/directive.d.ts +0 -11
- package/dist/linter/suppression/directive.d.ts.map +0 -1
- package/dist/linter/suppression/directive.js +0 -2
- package/dist/linter/suppression/directive.js.map +0 -1
- package/dist/linter/suppression/index.d.ts +0 -14
- package/dist/linter/suppression/index.d.ts.map +0 -1
- package/dist/linter/suppression/index.js +0 -2
- package/dist/linter/suppression/index.js.map +0 -1
- package/dist/mutation/contract.d.ts +0 -134
- package/dist/mutation/contract.d.ts.map +0 -1
- package/dist/mutation/contract.js +0 -2
- package/dist/mutation/contract.js.map +0 -1
- package/dist/mutation/define.d.ts +0 -9
- package/dist/mutation/define.d.ts.map +0 -1
- package/dist/mutation/define.js +0 -24
- package/dist/mutation/define.js.map +0 -1
- package/dist/mutation/errors.d.ts +0 -3
- package/dist/mutation/errors.d.ts.map +0 -1
- package/dist/mutation/errors.js +0 -30
- package/dist/mutation/errors.js.map +0 -1
- package/dist/mutation/execute.d.ts +0 -11
- package/dist/mutation/execute.d.ts.map +0 -1
- package/dist/mutation/execute.js +0 -24
- package/dist/mutation/execute.js.map +0 -1
- package/dist/mutation/index.d.ts +0 -8
- package/dist/mutation/index.d.ts.map +0 -1
- package/dist/mutation/index.js +0 -5
- package/dist/mutation/index.js.map +0 -1
- package/dist/mutation/rich.d.ts +0 -4
- package/dist/mutation/rich.d.ts.map +0 -1
- package/dist/mutation/rich.js +0 -147
- package/dist/mutation/rich.js.map +0 -1
- package/dist/query/composite/contract.d.ts +0 -37
- package/dist/query/composite/contract.d.ts.map +0 -1
- package/dist/query/composite/contract.js +0 -2
- package/dist/query/composite/contract.js.map +0 -1
- package/dist/query/composite/errors.d.ts +0 -8
- package/dist/query/composite/errors.d.ts.map +0 -1
- package/dist/query/composite/errors.js +0 -9
- package/dist/query/composite/errors.js.map +0 -1
- package/dist/query/composite/index.d.ts +0 -6
- package/dist/query/composite/index.d.ts.map +0 -1
- package/dist/query/composite/index.js +0 -3
- package/dist/query/composite/index.js.map +0 -1
- package/dist/query/composite/plan.d.ts +0 -38
- package/dist/query/composite/plan.d.ts.map +0 -1
- package/dist/query/composite/plan.js +0 -225
- package/dist/query/composite/plan.js.map +0 -1
- package/dist/query/contract.d.ts +0 -58
- package/dist/query/contract.d.ts.map +0 -1
- package/dist/query/contract.js +0 -2
- package/dist/query/contract.js.map +0 -1
- package/dist/query/define.d.ts +0 -3
- package/dist/query/define.d.ts.map +0 -1
- package/dist/query/define.js +0 -90
- package/dist/query/define.js.map +0 -1
- package/dist/query/definition.d.ts +0 -29
- package/dist/query/definition.d.ts.map +0 -1
- package/dist/query/definition.js +0 -2
- package/dist/query/definition.js.map +0 -1
- package/dist/query/errors.d.ts +0 -9
- package/dist/query/errors.d.ts.map +0 -1
- package/dist/query/errors.js +0 -15
- package/dist/query/errors.js.map +0 -1
- package/dist/query/execute.d.ts +0 -20
- package/dist/query/execute.d.ts.map +0 -1
- package/dist/query/execute.js +0 -97
- package/dist/query/execute.js.map +0 -1
- package/dist/query/index.d.ts +0 -15
- package/dist/query/index.d.ts.map +0 -1
- package/dist/query/index.js +0 -8
- package/dist/query/index.js.map +0 -1
- package/dist/query/node.d.ts +0 -109
- package/dist/query/node.d.ts.map +0 -1
- package/dist/query/node.js +0 -164
- package/dist/query/node.js.map +0 -1
- package/dist/query/result/contract.d.ts +0 -23
- package/dist/query/result/contract.d.ts.map +0 -1
- package/dist/query/result/contract.js +0 -2
- package/dist/query/result/contract.js.map +0 -1
- package/dist/query/result/index.d.ts +0 -3
- package/dist/query/result/index.d.ts.map +0 -1
- package/dist/query/result/index.js +0 -2
- package/dist/query/result/index.js.map +0 -1
- package/dist/query/result/projection.d.ts +0 -3
- package/dist/query/result/projection.d.ts.map +0 -1
- package/dist/query/result/projection.js +0 -100
- package/dist/query/result/projection.js.map +0 -1
- package/dist/query/selection.d.ts +0 -4
- package/dist/query/selection.d.ts.map +0 -1
- package/dist/query/selection.js +0 -25
- package/dist/query/selection.js.map +0 -1
- package/dist/react/compile.d.ts +0 -9
- package/dist/react/compile.d.ts.map +0 -1
- package/dist/react/compile.js +0 -64
- package/dist/react/compile.js.map +0 -1
- package/dist/react/define.d.ts +0 -8
- package/dist/react/define.d.ts.map +0 -1
- package/dist/react/define.js +0 -89
- package/dist/react/define.js.map +0 -1
- package/dist/react/definition.d.ts +0 -69
- package/dist/react/definition.d.ts.map +0 -1
- package/dist/react/definition.js +0 -2
- package/dist/react/definition.js.map +0 -1
- package/dist/react/index.d.ts +0 -4
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/index.js +0 -3
- package/dist/react/index.js.map +0 -1
- package/dist/result/index.d.ts +0 -3
- package/dist/result/index.d.ts.map +0 -1
- package/dist/result/index.js +0 -2
- package/dist/result/index.js.map +0 -1
- package/dist/result/result.d.ts +0 -10
- package/dist/result/result.d.ts.map +0 -1
- package/dist/result/result.js +0 -7
- package/dist/result/result.js.map +0 -1
- package/dist/schema/index.d.ts +0 -3
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/index.js +0 -3
- package/dist/schema/index.js.map +0 -1
- package/dist/schema/kernel/index.d.ts +0 -3
- package/dist/schema/kernel/index.d.ts.map +0 -1
- package/dist/schema/kernel/index.js +0 -3
- package/dist/schema/kernel/index.js.map +0 -1
- package/dist/schema/v1/index.d.ts +0 -3
- package/dist/schema/v1/index.d.ts.map +0 -1
- package/dist/schema/v1/index.js +0 -3
- package/dist/schema/v1/index.js.map +0 -1
- package/dist/server/application.d.ts +0 -36
- package/dist/server/application.d.ts.map +0 -1
- package/dist/server/application.js +0 -126
- package/dist/server/application.js.map +0 -1
- package/dist/server/index.d.ts +0 -5
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js +0 -3
- package/dist/server/index.js.map +0 -1
- package/dist/server/node/index.d.ts +0 -3
- package/dist/server/node/index.d.ts.map +0 -1
- package/dist/server/node/index.js +0 -2
- package/dist/server/node/index.js.map +0 -1
- package/dist/server/node/server.d.ts +0 -14
- package/dist/server/node/server.d.ts.map +0 -1
- package/dist/server/node/server.js +0 -71
- package/dist/server/node/server.js.map +0 -1
- package/dist/server/remote.d.ts +0 -56
- package/dist/server/remote.d.ts.map +0 -1
- package/dist/server/remote.js +0 -798
- package/dist/server/remote.js.map +0 -1
- package/dist/server/source.d.ts +0 -13
- package/dist/server/source.d.ts.map +0 -1
- package/dist/server/source.js +0 -38
- package/dist/server/source.js.map +0 -1
- package/dist/state/index.d.ts +0 -4
- package/dist/state/index.d.ts.map +0 -1
- package/dist/state/index.js +0 -2
- package/dist/state/index.js.map +0 -1
- package/dist/state/machine.d.ts +0 -28
- package/dist/state/machine.d.ts.map +0 -1
- package/dist/state/machine.js +0 -32
- package/dist/state/machine.js.map +0 -1
- package/dist/state/relation.d.ts +0 -28
- package/dist/state/relation.d.ts.map +0 -1
- package/dist/state/relation.js +0 -48
- package/dist/state/relation.js.map +0 -1
- package/dist/value/index.d.ts +0 -3
- package/dist/value/index.d.ts.map +0 -1
- package/dist/value/index.js +0 -3
- package/dist/value/index.js.map +0 -1
- package/dist/view/admission.d.ts +0 -6
- package/dist/view/admission.d.ts.map +0 -1
- package/dist/view/admission.js +0 -43
- package/dist/view/admission.js.map +0 -1
- package/dist/view/compile.d.ts +0 -15
- package/dist/view/compile.d.ts.map +0 -1
- package/dist/view/compile.js +0 -189
- package/dist/view/compile.js.map +0 -1
- package/dist/view/define.d.ts +0 -20
- package/dist/view/define.d.ts.map +0 -1
- package/dist/view/define.js +0 -236
- package/dist/view/define.js.map +0 -1
- package/dist/view/definition.d.ts +0 -96
- package/dist/view/definition.d.ts.map +0 -1
- package/dist/view/definition.js +0 -2
- package/dist/view/definition.js.map +0 -1
- package/dist/view/index.d.ts +0 -4
- package/dist/view/index.d.ts.map +0 -1
- package/dist/view/index.js +0 -3
- package/dist/view/index.js.map +0 -1
- package/dist/workflow/binding.d.ts +0 -43
- package/dist/workflow/binding.d.ts.map +0 -1
- package/dist/workflow/binding.js +0 -32
- package/dist/workflow/binding.js.map +0 -1
- package/dist/workflow/contract.d.ts +0 -57
- package/dist/workflow/contract.d.ts.map +0 -1
- package/dist/workflow/contract.js +0 -2
- package/dist/workflow/contract.js.map +0 -1
- package/dist/workflow/define.d.ts +0 -4
- package/dist/workflow/define.d.ts.map +0 -1
- package/dist/workflow/define.js +0 -57
- package/dist/workflow/define.js.map +0 -1
- package/dist/workflow/index.d.ts +0 -7
- package/dist/workflow/index.d.ts.map +0 -1
- package/dist/workflow/index.js +0 -4
- package/dist/workflow/index.js.map +0 -1
- package/dist/workflow/runner.d.ts +0 -4
- package/dist/workflow/runner.d.ts.map +0 -1
- package/dist/workflow/runner.js +0 -24
- package/dist/workflow/runner.js.map +0 -1
- package/dist/workflow/step/index.d.ts +0 -3
- package/dist/workflow/step/index.d.ts.map +0 -1
- package/dist/workflow/step/index.js +0 -2
- package/dist/workflow/step/index.js.map +0 -1
- package/dist/workflow/step/inline.d.ts +0 -6
- package/dist/workflow/step/inline.d.ts.map +0 -1
- package/dist/workflow/step/inline.js +0 -44
- package/dist/workflow/step/inline.js.map +0 -1
- package/dist/workflow/step/step.d.ts +0 -5
- package/dist/workflow/step/step.d.ts.map +0 -1
- package/dist/workflow/step/step.js +0 -2
- package/dist/workflow/step/step.js.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { MutationResult } from '@astrale-os/kernel-core/graph/mutate';
|
|
2
|
+
import type { RichMutationBuilder } from './authoring/index.js';
|
|
3
|
+
import type { MutationFailure } from './failure.js';
|
|
4
|
+
declare const MUTATION_INPUT: unique symbol;
|
|
5
|
+
declare const MUTATION_OUTPUT: unique symbol;
|
|
6
|
+
export interface Mutation<Input, Output = MutationResult> {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly [MUTATION_INPUT]?: Input;
|
|
9
|
+
readonly [MUTATION_OUTPUT]?: Output;
|
|
10
|
+
change(mutation: RichMutationBuilder, input: Input): undefined;
|
|
11
|
+
project?(result: MutationResult, input: Input): Output;
|
|
12
|
+
reject?(failure: MutationFailure): Output;
|
|
13
|
+
}
|
|
14
|
+
export type MutationInputOf<Value> = Value extends Mutation<infer Input, infer _Output> ? Input : never;
|
|
15
|
+
export type MutationOutputOf<Value> = Value extends Mutation<infer _Input, infer Output> ? Output : never;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { SingleQuery } from '../single/index.js';
|
|
2
|
+
import type { QueryComposition, QueryPlan } from './query.js';
|
|
3
|
+
declare const PLAN: unique symbol;
|
|
4
|
+
export interface PlanReference {
|
|
5
|
+
readonly token: object;
|
|
6
|
+
readonly plan: InternalPlan;
|
|
7
|
+
readonly path: readonly PropertyKey[];
|
|
8
|
+
}
|
|
9
|
+
export interface LeafPlan {
|
|
10
|
+
readonly kind: 'leaf';
|
|
11
|
+
readonly key: number;
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly definition: SingleQuery<unknown, unknown>;
|
|
14
|
+
readonly input: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface CombinedPlan {
|
|
17
|
+
readonly kind: 'combine';
|
|
18
|
+
readonly key: number;
|
|
19
|
+
readonly plans: Readonly<Record<string, InternalPlan>>;
|
|
20
|
+
}
|
|
21
|
+
export type PlanNode = LeafPlan | CombinedPlan;
|
|
22
|
+
export interface InternalPlan extends QueryPlan<unknown> {
|
|
23
|
+
readonly [PLAN]: Readonly<{
|
|
24
|
+
token: object;
|
|
25
|
+
node: PlanNode;
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
export interface QueryCompositionSession {
|
|
29
|
+
readonly builder: QueryComposition;
|
|
30
|
+
close(output: unknown): InternalPlan;
|
|
31
|
+
}
|
|
32
|
+
export declare function createQueryComposition(): QueryCompositionSession;
|
|
33
|
+
export declare function inspectPlan(plan: InternalPlan): Readonly<{
|
|
34
|
+
token: object;
|
|
35
|
+
node: PlanNode;
|
|
36
|
+
}>;
|
|
37
|
+
export declare function referencesIn(input: unknown, found?: PlanReference[]): readonly PlanReference[];
|
|
38
|
+
export declare function resolveInput(input: unknown, execute: (plan: InternalPlan) => Promise<unknown>): Promise<unknown>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { QueryCompositionError } from './errors.js';
|
|
2
|
+
const PLAN = Symbol('astrale.sdk.query.plan');
|
|
3
|
+
const REFERENCE = Symbol('astrale.sdk.query.reference');
|
|
4
|
+
export function createQueryComposition() {
|
|
5
|
+
const token = Object.freeze({});
|
|
6
|
+
const ids = new Set();
|
|
7
|
+
let nextKey = 0;
|
|
8
|
+
let open = true;
|
|
9
|
+
const builder = Object.freeze({
|
|
10
|
+
query(id, definition, input) {
|
|
11
|
+
requireOpen(open);
|
|
12
|
+
requireLocalId(id, ids);
|
|
13
|
+
if (definition?.kind !== 'single')
|
|
14
|
+
invalid('Composite leaves must be single Queries.');
|
|
15
|
+
requireLocalReferences(input, token);
|
|
16
|
+
return createPlan(token, Object.freeze({
|
|
17
|
+
kind: 'leaf',
|
|
18
|
+
key: nextKey++,
|
|
19
|
+
id,
|
|
20
|
+
definition: definition,
|
|
21
|
+
input,
|
|
22
|
+
}));
|
|
23
|
+
},
|
|
24
|
+
combine(plans) {
|
|
25
|
+
requireOpen(open);
|
|
26
|
+
if (!isPlainRecord(plans) || Object.keys(plans).length === 0) {
|
|
27
|
+
invalid('Query composition must combine at least one named plan.');
|
|
28
|
+
}
|
|
29
|
+
const accepted = {};
|
|
30
|
+
for (const [name, plan] of Object.entries(plans)) {
|
|
31
|
+
if (name.length === 0)
|
|
32
|
+
invalid('Query composition result names must not be empty.');
|
|
33
|
+
const internal = acceptPlan(plan);
|
|
34
|
+
if (inspectPlan(internal).token !== token)
|
|
35
|
+
invalid('Cannot combine a foreign Query plan.');
|
|
36
|
+
accepted[name] = internal;
|
|
37
|
+
}
|
|
38
|
+
return createPlan(token, Object.freeze({
|
|
39
|
+
kind: 'combine',
|
|
40
|
+
key: nextKey++,
|
|
41
|
+
plans: Object.freeze(accepted),
|
|
42
|
+
}));
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
return Object.freeze({
|
|
46
|
+
builder,
|
|
47
|
+
close(output) {
|
|
48
|
+
requireOpen(open);
|
|
49
|
+
open = false;
|
|
50
|
+
const plan = acceptPlan(output);
|
|
51
|
+
if (inspectPlan(plan).token !== token)
|
|
52
|
+
invalid('Composite Query must return its own plan.');
|
|
53
|
+
return plan;
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
export function inspectPlan(plan) {
|
|
58
|
+
return plan[PLAN];
|
|
59
|
+
}
|
|
60
|
+
export function referencesIn(input, found = []) {
|
|
61
|
+
const reference = referenceOf(input);
|
|
62
|
+
if (reference !== undefined) {
|
|
63
|
+
found.push(reference);
|
|
64
|
+
}
|
|
65
|
+
else if (Array.isArray(input)) {
|
|
66
|
+
for (const value of input)
|
|
67
|
+
referencesIn(value, found);
|
|
68
|
+
}
|
|
69
|
+
else if (isPlainRecord(input)) {
|
|
70
|
+
for (const value of Object.values(input))
|
|
71
|
+
referencesIn(value, found);
|
|
72
|
+
}
|
|
73
|
+
return found;
|
|
74
|
+
}
|
|
75
|
+
export async function resolveInput(input, execute) {
|
|
76
|
+
const reference = referenceOf(input);
|
|
77
|
+
if (reference !== undefined) {
|
|
78
|
+
let value = await execute(reference.plan);
|
|
79
|
+
for (const part of reference.path) {
|
|
80
|
+
if (value === null || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
81
|
+
invalid(`Query dependency has no ${String(part)} value.`);
|
|
82
|
+
}
|
|
83
|
+
value = value[part];
|
|
84
|
+
}
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
if (Array.isArray(input))
|
|
88
|
+
return Promise.all(input.map((value) => resolveInput(value, execute)));
|
|
89
|
+
if (isPlainRecord(input)) {
|
|
90
|
+
const entries = await Promise.all(Object.entries(input).map(async ([key, value]) => [key, await resolveInput(value, execute)]));
|
|
91
|
+
return Object.freeze(Object.fromEntries(entries));
|
|
92
|
+
}
|
|
93
|
+
return input;
|
|
94
|
+
}
|
|
95
|
+
function createPlan(token, node) {
|
|
96
|
+
const plan = {};
|
|
97
|
+
Object.defineProperty(plan, PLAN, {
|
|
98
|
+
value: Object.freeze({ token, node }),
|
|
99
|
+
enumerable: false,
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(plan, 'value', {
|
|
102
|
+
value: symbolicValue(token, plan, []),
|
|
103
|
+
enumerable: true,
|
|
104
|
+
});
|
|
105
|
+
return Object.freeze(plan);
|
|
106
|
+
}
|
|
107
|
+
function symbolicValue(token, plan, path) {
|
|
108
|
+
return new Proxy(Object.create(null), {
|
|
109
|
+
get(_target, property) {
|
|
110
|
+
if (property === REFERENCE)
|
|
111
|
+
return Object.freeze({ token, plan, path });
|
|
112
|
+
if (property === Symbol.toStringTag)
|
|
113
|
+
return 'QueryPlanValue';
|
|
114
|
+
if (property === 'then')
|
|
115
|
+
return undefined;
|
|
116
|
+
return symbolicValue(token, plan, Object.freeze([...path, property]));
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function acceptPlan(input) {
|
|
121
|
+
if (input === null || typeof input !== 'object' || !(PLAN in input)) {
|
|
122
|
+
invalid('Composite Query must return a Query plan.');
|
|
123
|
+
}
|
|
124
|
+
return input;
|
|
125
|
+
}
|
|
126
|
+
function referenceOf(input) {
|
|
127
|
+
if (input === null || (typeof input !== 'object' && typeof input !== 'function'))
|
|
128
|
+
return undefined;
|
|
129
|
+
try {
|
|
130
|
+
const reference = input[REFERENCE];
|
|
131
|
+
if (reference !== null &&
|
|
132
|
+
typeof reference === 'object' &&
|
|
133
|
+
'token' in reference &&
|
|
134
|
+
'plan' in reference &&
|
|
135
|
+
'path' in reference) {
|
|
136
|
+
return reference;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
return undefined;
|
|
141
|
+
}
|
|
142
|
+
return undefined;
|
|
143
|
+
}
|
|
144
|
+
function requireLocalReferences(input, token) {
|
|
145
|
+
if (referencesIn(input).some((reference) => reference.token !== token)) {
|
|
146
|
+
invalid('Query leaf input cannot reference a foreign composition.');
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function requireLocalId(id, ids) {
|
|
150
|
+
if (typeof id !== 'string' || id.length === 0 || id.trim() !== id) {
|
|
151
|
+
invalid('Query leaf id must be a non-empty stable string.');
|
|
152
|
+
}
|
|
153
|
+
if (ids.has(id))
|
|
154
|
+
invalid(`Query leaf id ${id} occurs more than once.`);
|
|
155
|
+
ids.add(id);
|
|
156
|
+
}
|
|
157
|
+
function requireOpen(open) {
|
|
158
|
+
if (!open)
|
|
159
|
+
invalid('Query composition builder is closed.');
|
|
160
|
+
}
|
|
161
|
+
function isPlainRecord(input) {
|
|
162
|
+
if (input === null || typeof input !== 'object' || Array.isArray(input))
|
|
163
|
+
return false;
|
|
164
|
+
const prototype = Object.getPrototypeOf(input);
|
|
165
|
+
return prototype === Object.prototype || prototype === null;
|
|
166
|
+
}
|
|
167
|
+
function invalid(message) {
|
|
168
|
+
throw new QueryCompositionError('QUERY_COMPOSITION_INVALID', message);
|
|
169
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { QueryFailure } from '../failure.js';
|
|
2
|
+
export type QueryCompositionErrorCode = 'QUERY_COMPOSITION_INVALID' | 'QUERY_COMPOSITION_LIMIT';
|
|
3
|
+
export declare class QueryCompositionError extends Error implements QueryFailure {
|
|
4
|
+
readonly code: QueryCompositionErrorCode;
|
|
5
|
+
readonly name = "QueryCompositionError";
|
|
6
|
+
constructor(code: QueryCompositionErrorCode, message: string);
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { createQueryComposition, type QueryCompositionSession } from './builder.js';
|
|
2
|
+
export { QueryCompositionError, type QueryCompositionErrorCode } from './errors.js';
|
|
3
|
+
export { analyzeQueryPlan, executeQueryPlan, type QueryPlanAnalysis } from './plan.js';
|
|
4
|
+
export type { CompositeQuery, ProjectedCompositeQuery, QueryComposition, QueryPlan, QueryPlanInput, QueryPlanOutput, QueryPlanValue, RawCompositeQuery, } from './query.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SingleQuery } from '../single/index.js';
|
|
2
|
+
import type { InternalPlan } from './builder.js';
|
|
3
|
+
export interface QueryPlanAnalysis {
|
|
4
|
+
readonly queries: number;
|
|
5
|
+
readonly depth: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function analyzeQueryPlan(plan: InternalPlan): QueryPlanAnalysis;
|
|
8
|
+
export declare function executeQueryPlan(plan: InternalPlan, run: (definition: SingleQuery<unknown, unknown>, input: unknown) => Promise<unknown>): Promise<unknown>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { inspectPlan, referencesIn, resolveInput } from './builder.js';
|
|
2
|
+
import { QueryCompositionError } from './errors.js';
|
|
3
|
+
const MAX_QUERIES = 32;
|
|
4
|
+
const MAX_DEPTH = 8;
|
|
5
|
+
export function analyzeQueryPlan(plan) {
|
|
6
|
+
const leafKeys = new Set();
|
|
7
|
+
const visiting = new Set();
|
|
8
|
+
const depths = new Map();
|
|
9
|
+
const depth = (candidate) => {
|
|
10
|
+
const { node } = inspectPlan(candidate);
|
|
11
|
+
const cached = depths.get(node.key);
|
|
12
|
+
if (cached !== undefined)
|
|
13
|
+
return cached;
|
|
14
|
+
if (visiting.has(node.key))
|
|
15
|
+
invalid('Query composition contains a dependency cycle.');
|
|
16
|
+
visiting.add(node.key);
|
|
17
|
+
let value;
|
|
18
|
+
if (node.kind === 'combine') {
|
|
19
|
+
value = Math.max(...Object.values(node.plans).map(depth));
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
leafKeys.add(node.key);
|
|
23
|
+
const dependencies = referencesIn(node.input).map((reference) => reference.plan);
|
|
24
|
+
value = 1 + (dependencies.length === 0 ? 0 : Math.max(...dependencies.map(depth)));
|
|
25
|
+
}
|
|
26
|
+
visiting.delete(node.key);
|
|
27
|
+
depths.set(node.key, value);
|
|
28
|
+
return value;
|
|
29
|
+
};
|
|
30
|
+
const maximumDepth = depth(plan);
|
|
31
|
+
if (leafKeys.size < 2)
|
|
32
|
+
invalid('Composite Query must contain at least two leaves.');
|
|
33
|
+
if (leafKeys.size > MAX_QUERIES || maximumDepth > MAX_DEPTH) {
|
|
34
|
+
throw new QueryCompositionError('QUERY_COMPOSITION_LIMIT', `Composite Query exceeds ${MAX_QUERIES} leaves or dependency depth ${MAX_DEPTH}.`);
|
|
35
|
+
}
|
|
36
|
+
return Object.freeze({ queries: leafKeys.size, depth: maximumDepth });
|
|
37
|
+
}
|
|
38
|
+
export async function executeQueryPlan(plan, run) {
|
|
39
|
+
analyzeQueryPlan(plan);
|
|
40
|
+
const results = new Map();
|
|
41
|
+
const execute = (candidate) => {
|
|
42
|
+
const { node } = inspectPlan(candidate);
|
|
43
|
+
const existing = results.get(node.key);
|
|
44
|
+
if (existing !== undefined)
|
|
45
|
+
return existing;
|
|
46
|
+
const pending = node.kind === 'combine'
|
|
47
|
+
? Promise.all(Object.entries(node.plans).map(async ([name, child]) => [name, await execute(child)])).then((entries) => Object.freeze(Object.fromEntries(entries)))
|
|
48
|
+
: resolveInput(node.input, execute).then((input) => run(node.definition, input));
|
|
49
|
+
results.set(node.key, pending);
|
|
50
|
+
return pending;
|
|
51
|
+
};
|
|
52
|
+
return execute(plan);
|
|
53
|
+
}
|
|
54
|
+
function invalid(message) {
|
|
55
|
+
throw new QueryCompositionError('QUERY_COMPOSITION_INVALID', message);
|
|
56
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { QueryLifecycle, SingleQuery } from '../single/index.js';
|
|
2
|
+
declare const QUERY_PLAN_OUTPUT: unique symbol;
|
|
3
|
+
declare const QUERY_PLAN_VALUE: unique symbol;
|
|
4
|
+
export type QueryPlanValue<Value> = Readonly<{
|
|
5
|
+
[QUERY_PLAN_VALUE]: Value;
|
|
6
|
+
}> & (Value extends readonly (infer Item)[] ? ReadonlyArray<QueryPlanValue<Item>> : Value extends object ? {
|
|
7
|
+
readonly [Key in keyof Value]: QueryPlanValue<Value[Key]>;
|
|
8
|
+
} : object);
|
|
9
|
+
export type QueryPlanInput<Value> = QueryPlanValue<Value> | (Value extends readonly (infer Item)[] ? readonly QueryPlanInput<Item>[] : Value extends object ? {
|
|
10
|
+
readonly [Key in keyof Value]: QueryPlanInput<Value[Key]>;
|
|
11
|
+
} : Value);
|
|
12
|
+
export interface QueryPlan<Output> {
|
|
13
|
+
readonly [QUERY_PLAN_OUTPUT]: Output;
|
|
14
|
+
readonly value: QueryPlanValue<Output>;
|
|
15
|
+
}
|
|
16
|
+
export type QueryPlanOutput<Plan extends QueryPlan<unknown>> = Plan[typeof QUERY_PLAN_OUTPUT];
|
|
17
|
+
export interface QueryComposition {
|
|
18
|
+
query<Input, Output>(id: string, definition: SingleQuery<Input, Output>, input: QueryPlanInput<Input>): QueryPlan<Output>;
|
|
19
|
+
combine<const Plans extends Readonly<Record<string, QueryPlan<unknown>>>>(plans: Plans): QueryPlan<{
|
|
20
|
+
readonly [Name in keyof Plans]: QueryPlanOutput<Plans[Name]>;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
23
|
+
export interface CompositeQueryBase<Input, Composed, Output> extends QueryLifecycle<Input, Output> {
|
|
24
|
+
readonly kind: 'composite';
|
|
25
|
+
compose(builder: QueryComposition, input: Input): QueryPlan<Composed>;
|
|
26
|
+
}
|
|
27
|
+
export interface RawCompositeQuery<Input, Output> extends CompositeQueryBase<Input, Output, Output> {
|
|
28
|
+
readonly project?: undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface ProjectedCompositeQuery<Input, Composed, Output> extends CompositeQueryBase<Input, Composed, Output> {
|
|
31
|
+
project(value: Composed, input: Input): Output;
|
|
32
|
+
}
|
|
33
|
+
export type CompositeQuery<Input, Composed, Output = Composed> = RawCompositeQuery<Input, Composed> | ProjectedCompositeQuery<Input, Composed, Output>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { QueryAST } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
+
import type { ProjectedCompositeQuery, RawCompositeQuery } from './composite/index.js';
|
|
3
|
+
import type { PaginatedQuery, ProjectedQuery, RawQuery } from './single/index.js';
|
|
4
|
+
type AuthoredRaw<Input, Ast extends QueryAST> = Omit<RawQuery<Input, Ast>, 'kind' | 'page'> & {
|
|
5
|
+
readonly page?: {
|
|
6
|
+
readonly size: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
type AuthoredProjected<Input, Output, Ast extends QueryAST> = Omit<ProjectedQuery<Input, Output, Ast>, 'kind' | 'page'> & {
|
|
10
|
+
readonly page?: {
|
|
11
|
+
readonly size: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type AuthoredPaginated<Input, Output, Ast extends QueryAST> = Omit<PaginatedQuery<Input, Output, Ast>, 'kind' | 'page'> & {
|
|
15
|
+
readonly page?: {
|
|
16
|
+
readonly size: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare function defineQuery<Input, Ast extends QueryAST>(definition: AuthoredRaw<Input, Ast>): RawQuery<Input, Ast>;
|
|
20
|
+
export declare function defineQuery<Input, Output, Ast extends QueryAST>(definition: AuthoredProjected<Input, Output, Ast>): ProjectedQuery<Input, Output, Ast>;
|
|
21
|
+
export declare function defineQuery<Input, Output, Ast extends QueryAST>(definition: AuthoredPaginated<Input, Output, Ast>): PaginatedQuery<Input, Output, Ast>;
|
|
22
|
+
export declare function defineCompositeQuery<Input, Output>(definition: Omit<RawCompositeQuery<Input, Output>, 'kind'>): RawCompositeQuery<Input, Output>;
|
|
23
|
+
export declare function defineCompositeQuery<Input, Composed, Output>(definition: Omit<ProjectedCompositeQuery<Input, Composed, Output>, 'kind'>): ProjectedCompositeQuery<Input, Composed, Output>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
const DEFAULT_PAGE_SIZE = 256;
|
|
2
|
+
const MAXIMUM_PAGES = 1_024;
|
|
3
|
+
export function defineQuery(definition) {
|
|
4
|
+
definitionBase(definition, 'build');
|
|
5
|
+
const page = pageOf(definition.page);
|
|
6
|
+
const pagination = definition.pagination;
|
|
7
|
+
if (pagination !== undefined) {
|
|
8
|
+
if (typeof definition.project !== 'function') {
|
|
9
|
+
throw new TypeError('Paginated Query requires a project function.');
|
|
10
|
+
}
|
|
11
|
+
if (pagination === null ||
|
|
12
|
+
typeof pagination !== 'object' ||
|
|
13
|
+
Array.isArray(pagination) ||
|
|
14
|
+
Reflect.ownKeys(pagination).length !== 1 ||
|
|
15
|
+
!Object.hasOwn(pagination, 'maximumPages')) {
|
|
16
|
+
throw new TypeError('Query pagination is invalid.');
|
|
17
|
+
}
|
|
18
|
+
const maximumPages = Reflect.get(pagination, 'maximumPages');
|
|
19
|
+
if (!Number.isSafeInteger(maximumPages) ||
|
|
20
|
+
maximumPages < 1 ||
|
|
21
|
+
maximumPages > MAXIMUM_PAGES) {
|
|
22
|
+
throw new TypeError(`Query pagination must be bounded from 1 through ${MAXIMUM_PAGES}.`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return Object.freeze({ ...definition, page, kind: 'single' });
|
|
26
|
+
}
|
|
27
|
+
export function defineCompositeQuery(definition) {
|
|
28
|
+
definitionBase(definition, 'compose');
|
|
29
|
+
if (Object.hasOwn(definition, 'page') || Object.hasOwn(definition, 'pagination')) {
|
|
30
|
+
throw new TypeError('Composite Query cannot declare pagination.');
|
|
31
|
+
}
|
|
32
|
+
return Object.freeze({ ...definition, kind: 'composite' });
|
|
33
|
+
}
|
|
34
|
+
function definitionBase(definition, operation) {
|
|
35
|
+
if (definition === null || typeof definition !== 'object' || Array.isArray(definition))
|
|
36
|
+
invalid();
|
|
37
|
+
if (typeof definition.id !== 'string' ||
|
|
38
|
+
definition.id.length === 0 ||
|
|
39
|
+
definition.id.trim() !== definition.id ||
|
|
40
|
+
typeof definition[operation] !== 'function') {
|
|
41
|
+
invalid();
|
|
42
|
+
}
|
|
43
|
+
for (const optional of ['prepare', 'project', 'reject']) {
|
|
44
|
+
if (definition[optional] !== undefined && typeof definition[optional] !== 'function')
|
|
45
|
+
invalid();
|
|
46
|
+
}
|
|
47
|
+
const allowed = new Set([
|
|
48
|
+
'id',
|
|
49
|
+
operation,
|
|
50
|
+
'prepare',
|
|
51
|
+
'project',
|
|
52
|
+
'reject',
|
|
53
|
+
...(operation === 'build' ? ['page', 'pagination'] : []),
|
|
54
|
+
]);
|
|
55
|
+
if (Reflect.ownKeys(definition).some((key) => typeof key !== 'string' || !allowed.has(key))) {
|
|
56
|
+
invalid();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function pageOf(input) {
|
|
60
|
+
if (input === undefined)
|
|
61
|
+
return Object.freeze({ size: DEFAULT_PAGE_SIZE });
|
|
62
|
+
if (input === null ||
|
|
63
|
+
typeof input !== 'object' ||
|
|
64
|
+
Array.isArray(input) ||
|
|
65
|
+
Reflect.ownKeys(input).length !== 1 ||
|
|
66
|
+
!Object.hasOwn(input, 'size') ||
|
|
67
|
+
!Number.isSafeInteger(Reflect.get(input, 'size')) ||
|
|
68
|
+
Reflect.get(input, 'size') < 1) {
|
|
69
|
+
throw new TypeError('Query page size must be a positive safe integer.');
|
|
70
|
+
}
|
|
71
|
+
return Object.freeze({ size: Reflect.get(input, 'size') });
|
|
72
|
+
}
|
|
73
|
+
function invalid() {
|
|
74
|
+
throw new TypeError('Query definition is invalid.');
|
|
75
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { QueryPageRequest, QueryResponse } from '@astrale-os/kernel-client/graph';
|
|
2
|
+
import type { QueryAST, QueryResultFor } from '@astrale-os/kernel-core/graph/query';
|
|
3
|
+
import type { CompositeQuery } from '../composite/index.js';
|
|
4
|
+
import type { QueryDefinition } from '../query.js';
|
|
5
|
+
export interface QueryClient {
|
|
6
|
+
query<Ast extends QueryAST>(ast: Ast, options: {
|
|
7
|
+
readonly page: QueryPageRequest;
|
|
8
|
+
}): Promise<QueryResponse<QueryResultFor<Ast>>>;
|
|
9
|
+
}
|
|
10
|
+
export declare function executeQuery<Input, Output>(client: QueryClient, definition: QueryDefinition<Input, Output>, input: Input): Promise<Output>;
|
|
11
|
+
export type ExecutableCompositeQuery = CompositeQuery<unknown, unknown, unknown>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { createQueryComposition, executeQueryPlan } from '../composite/index.js';
|
|
2
|
+
import { queryFailure } from '../failure.js';
|
|
3
|
+
import { completeSelection } from '../single/index.js';
|
|
4
|
+
import { executePages } from './pages.js';
|
|
5
|
+
export async function executeQuery(client, definition, input) {
|
|
6
|
+
if (client === null || typeof client !== 'object' || typeof client.query !== 'function') {
|
|
7
|
+
throw new TypeError('Query execution requires a Client query capability.');
|
|
8
|
+
}
|
|
9
|
+
const execute = client.query.bind(client);
|
|
10
|
+
try {
|
|
11
|
+
const prepared = definition.prepare?.(input) ?? input;
|
|
12
|
+
if (definition.kind === 'single')
|
|
13
|
+
return (await runSingle(execute, definition, prepared));
|
|
14
|
+
const session = createQueryComposition();
|
|
15
|
+
const composed = definition.compose(session.builder, prepared);
|
|
16
|
+
if (isPromiseLike(composed))
|
|
17
|
+
throw new TypeError('Composite Query composition must be synchronous.');
|
|
18
|
+
const plan = session.close(composed);
|
|
19
|
+
const result = await executeQueryPlan(plan, (child, childInput) => runSingle(execute, child, childInput));
|
|
20
|
+
return (definition.project === undefined ? result : definition.project(result, prepared));
|
|
21
|
+
}
|
|
22
|
+
catch (cause) {
|
|
23
|
+
const expected = queryFailure(cause);
|
|
24
|
+
if (definition.reject !== undefined && expected !== undefined) {
|
|
25
|
+
return definition.reject(expected);
|
|
26
|
+
}
|
|
27
|
+
throw cause;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
async function runSingle(execute, definition, input) {
|
|
31
|
+
const prepared = definition.prepare?.(input) ?? input;
|
|
32
|
+
const ast = definition.build(prepared);
|
|
33
|
+
if (definition.pagination !== undefined) {
|
|
34
|
+
const collected = await executePages(execute, ast, definition.page, definition.pagination);
|
|
35
|
+
return definition.project(collected, prepared, {
|
|
36
|
+
ast,
|
|
37
|
+
complete: completeSelection(collected),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
const response = await execute(ast, { page: definition.page });
|
|
41
|
+
return definition.project === undefined
|
|
42
|
+
? response.result
|
|
43
|
+
: definition.project(response.result, prepared, { ast });
|
|
44
|
+
}
|
|
45
|
+
function isPromiseLike(input) {
|
|
46
|
+
return (input !== null &&
|
|
47
|
+
(typeof input === 'object' || typeof input === 'function') &&
|
|
48
|
+
typeof input.then === 'function');
|
|
49
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { QueryDefinition } from '../query.js';
|
|
2
|
+
import type { QueryClient } from './execute.js';
|
|
3
|
+
/** Invocation-bound executor for authored Query definitions. */
|
|
4
|
+
export interface QueryExecutor {
|
|
5
|
+
<Input, Output>(definition: QueryDefinition<Input, Output>, input: Input): Promise<Output>;
|
|
6
|
+
}
|
|
7
|
+
/** Private Runtime binding; public consumers use executeQuery(client, definition, input). */
|
|
8
|
+
export declare function bindQuery(client: QueryClient): QueryExecutor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { executeQuery } from './execute.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { pages as executePages } from '../single/pagination.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { pages as executePages } from '../single/pagination.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { QueryAST, QueryResultFor } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
+
import type { ProjectedQuery, QueryProjectionContext } from '../single/index.js';
|
|
3
|
+
export declare function projectQuery<Input, Output, Ast extends QueryAST>(definition: ProjectedQuery<Input, Output, Ast>, result: QueryResultFor<Ast>, input: Input, context: QueryProjectionContext<Ast>): Output;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface QueryFailure extends Error {
|
|
2
|
+
readonly code: string;
|
|
3
|
+
}
|
|
4
|
+
export type QueryPaginationErrorCode = 'QUERY_PAGINATION_LIMIT' | 'QUERY_PAGINATION_CURSOR_REPEATED';
|
|
5
|
+
export declare class QueryPaginationError extends Error implements QueryFailure {
|
|
6
|
+
readonly code: QueryPaginationErrorCode;
|
|
7
|
+
readonly name = "QueryPaginationError";
|
|
8
|
+
constructor(code: QueryPaginationErrorCode, message: string);
|
|
9
|
+
}
|
|
10
|
+
export declare function queryFailure(input: unknown): QueryFailure | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class QueryPaginationError extends Error {
|
|
2
|
+
code;
|
|
3
|
+
name = 'QueryPaginationError';
|
|
4
|
+
constructor(code, message) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.code = code;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export function queryFailure(input) {
|
|
10
|
+
if (!(input instanceof Error))
|
|
11
|
+
return undefined;
|
|
12
|
+
const code = input.code;
|
|
13
|
+
return typeof code === 'string' && code.startsWith('QUERY_') ? input : undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { defineCompositeQuery, defineQuery } from './define.js';
|
|
2
|
+
export { executeQuery, type QueryClient, type QueryExecutor } from './execution/index.js';
|
|
3
|
+
export { QueryPaginationError, type QueryFailure, type QueryPaginationErrorCode, } from './failure.js';
|
|
4
|
+
export type { QueryAstOf, QueryDefinition, QueryInputOf, QueryOutputOf } from './query.js';
|
|
5
|
+
export { queryResult } from './single/index.js';
|
|
6
|
+
export type { CompleteQueryProjectionContext, PaginatedQuery, ProjectedQuery, QueryPages, QueryPagination, QueryProjectionContext, RawQuery, SingleQuery, } from './single/index.js';
|
|
7
|
+
export type { CompositeQuery, ProjectedCompositeQuery, QueryComposition, QueryPlan, QueryPlanInput, QueryPlanOutput, QueryPlanValue, RawCompositeQuery, } from './composite/index.js';
|
|
8
|
+
/** Canonical Query language and authoring values accept DSL ResolvedClass directly. */
|
|
9
|
+
export * from '@astrale-os/kernel-core/graph/query';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { defineCompositeQuery, defineQuery } from './define.js';
|
|
2
|
+
export { executeQuery } from './execution/index.js';
|
|
3
|
+
export { QueryPaginationError, } from './failure.js';
|
|
4
|
+
export { queryResult } from './single/index.js';
|
|
5
|
+
/** Canonical Query language and authoring values accept DSL ResolvedClass directly. */
|
|
6
|
+
export * from '@astrale-os/kernel-core/graph/query';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { QueryAST, QueryResult } from '@astrale-os/kernel-core/graph/query';
|
|
2
|
+
import type { CompositeQuery } from './composite/index.js';
|
|
3
|
+
import type { QueryLifecycle, SingleQuery } from './single/index.js';
|
|
4
|
+
export type QueryDefinition<Input, Output = QueryResult, Ast extends QueryAST = QueryAST> = SingleQuery<Input, Output, Ast> | CompositeQuery<Input, unknown, Output>;
|
|
5
|
+
export type QueryInputOf<Value> = Value extends QueryLifecycle<infer Input, infer _Output> ? Input : never;
|
|
6
|
+
export type QueryOutputOf<Value> = Value extends QueryLifecycle<infer _Input, infer Output> ? Output : never;
|
|
7
|
+
export type QueryAstOf<Value> = Value extends SingleQuery<unknown, unknown, infer Ast> ? Ast : never;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { queryResult } from './node.js';
|
|
2
|
+
export { pages, type QueryPageExecutor } from './pagination.js';
|
|
3
|
+
export { completeSelection } from './selection.js';
|
|
4
|
+
export type { AuthoredSingleQuery, CompleteQueryProjectionContext, PaginatedQuery, ProjectedQuery, QueryLifecycle, QueryPages, QueryPagination, QueryProjectionContext, RawQuery, SingleQuery, } from './query.js';
|