@astrale-os/sdk 0.5.0-beta.13 → 0.5.0-beta.131
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 +128 -20
- package/dist/application/action/action.d.ts +43 -0
- package/dist/application/action/action.js +1 -0
- package/dist/application/action/authoring.d.ts +5 -0
- package/dist/application/action/authoring.js +1 -0
- package/dist/application/action/context.d.ts +87 -0
- package/dist/application/action/context.js +1 -0
- package/dist/application/action/define.d.ts +12 -0
- package/dist/application/action/define.js +34 -0
- package/dist/application/action/index.d.ts +5 -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 +28 -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/dependency/index.d.ts +1 -0
- package/dist/application/dependency/index.js +1 -0
- package/dist/application/dependency/invoker.d.ts +26 -0
- package/dist/application/dependency/invoker.js +1 -0
- package/dist/application/error/error.d.ts +23 -0
- package/dist/application/error/error.js +87 -0
- package/dist/application/error/index.d.ts +2 -0
- package/dist/application/error/index.js +1 -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/authentication.d.ts +10 -0
- package/dist/application/integration/authentication.js +1 -0
- package/dist/application/integration/authentication.typecheck.d.ts +1 -0
- package/dist/application/integration/authentication.typecheck.js +18 -0
- package/dist/application/integration/client.d.ts +27 -0
- package/dist/application/integration/client.js +117 -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 +8 -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 +38 -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 +55 -0
- package/dist/application/mutation/authoring/builder.js +102 -0
- package/dist/application/mutation/authoring/endpoint.d.ts +16 -0
- package/dist/application/mutation/authoring/endpoint.js +22 -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 +22 -0
- package/dist/application/mutation/authoring/properties.js +29 -0
- package/dist/application/mutation/authoring/transition.d.ts +26 -0
- package/dist/application/mutation/authoring/transition.js +63 -0
- package/dist/application/mutation/define.d.ts +12 -0
- package/dist/application/mutation/define.js +56 -0
- package/dist/application/mutation/execution/execute.d.ts +9 -0
- package/dist/application/mutation/execution/execute.js +21 -0
- package/dist/application/mutation/execution/executor.d.ts +13 -0
- package/dist/application/mutation/execution/executor.js +7 -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 +13 -0
- package/dist/application/mutation/failure.js +51 -0
- package/dist/application/mutation/index.d.ts +8 -0
- package/dist/application/mutation/index.js +4 -0
- package/dist/application/mutation/mutation.d.ts +24 -0
- package/dist/application/mutation/mutation.js +1 -0
- package/dist/application/query/collection/identity.d.ts +4 -0
- package/dist/application/query/collection/identity.js +15 -0
- package/dist/application/query/collection/limits.d.ts +5 -0
- package/dist/application/query/collection/limits.js +5 -0
- package/dist/application/query/collection/metadata.d.ts +11 -0
- package/dist/application/query/collection/metadata.js +62 -0
- package/dist/application/query/collection/union.d.ts +19 -0
- package/dist/application/query/collection/union.js +157 -0
- package/dist/application/query/composite/builder.d.ts +46 -0
- package/dist/application/query/composite/builder.js +176 -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 +24 -0
- package/dist/application/query/composite/plan.js +85 -0
- package/dist/application/query/composite/query.d.ts +44 -0
- package/dist/application/query/composite/query.js +1 -0
- package/dist/application/query/define.d.ts +48 -0
- package/dist/application/query/define.js +162 -0
- package/dist/application/query/execution/execute.d.ts +14 -0
- package/dist/application/query/execution/execute.js +74 -0
- package/dist/application/query/execution/executor.d.ts +14 -0
- package/dist/application/query/execution/executor.js +7 -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 +10 -0
- package/dist/application/query/index.js +6 -0
- package/dist/application/query/query.d.ts +35 -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/authority.d.ts +7 -0
- package/dist/application/requirements/authority.js +38 -0
- package/dist/application/requirements/classes.d.ts +9 -0
- package/dist/application/requirements/classes.js +52 -0
- package/dist/application/requirements/core.d.ts +14 -0
- package/dist/application/requirements/core.js +41 -0
- package/dist/application/requirements/functions.d.ts +4 -0
- package/dist/application/requirements/functions.js +30 -0
- package/dist/application/requirements/index.d.ts +19 -0
- package/dist/application/requirements/index.js +32 -0
- package/dist/application/requirements/requirement.d.ts +25 -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 +6 -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/declarations.d.ts +43 -0
- package/dist/application/runtime/declarations.js +1 -0
- package/dist/application/runtime/define.d.ts +28 -0
- package/dist/application/runtime/define.js +42 -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 +10 -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 +30 -0
- package/dist/application/runtime/runtime.js +37 -0
- package/dist/application/runtime/workflows.d.ts +11 -0
- package/dist/application/runtime/workflows.js +33 -0
- package/dist/application/state/index.d.ts +2 -0
- package/dist/application/state/index.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 +19 -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 +19 -0
- package/dist/application/view/route.js +131 -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 +4 -0
- package/dist/application/workflow/authoring.js +1 -0
- package/dist/application/workflow/context.d.ts +9 -0
- package/dist/application/workflow/context.js +1 -0
- package/dist/application/workflow/define.d.ts +11 -0
- package/dist/application/workflow/define.js +37 -0
- package/dist/application/workflow/index.d.ts +6 -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 +10 -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 +23 -0
- package/dist/application/workflow/workflow.js +1 -0
- package/dist/deployment/adapter/adapter.d.ts +27 -0
- package/dist/deployment/adapter/adapter.js +1 -0
- package/dist/deployment/adapter/define.d.ts +7 -0
- package/dist/deployment/adapter/define.js +66 -0
- package/dist/deployment/adapter/deploy/context.d.ts +15 -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 +50 -0
- package/dist/deployment/adapter/deploy/result.js +1 -0
- package/dist/deployment/adapter/index.d.ts +4 -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 +23 -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/authoring.d.ts +5 -0
- package/dist/deployment/authoring.js +2 -0
- package/dist/deployment/build/admission.d.ts +12 -0
- package/dist/deployment/build/admission.js +15 -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 +114 -0
- package/dist/deployment/build/frontend/compilation.d.ts +18 -0
- package/dist/deployment/build/frontend/compilation.js +29 -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 +42 -0
- package/dist/deployment/build/material.js +201 -0
- package/dist/deployment/build/schema.d.ts +10 -0
- package/dist/deployment/build/schema.js +1 -0
- package/dist/deployment/deploy.d.ts +20 -0
- package/dist/deployment/deploy.js +31 -0
- package/dist/deployment/deployment.d.ts +9 -0
- package/dist/deployment/deployment.js +10 -0
- package/dist/deployment/index.d.ts +14 -7
- package/dist/deployment/index.js +7 -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 +2 -0
- package/dist/deployment/release/invocation.js +5 -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 +13 -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 +2 -0
- package/dist/deployment/release/runtime.js +2 -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 +4 -0
- package/dist/deployment/verify/index.js +3 -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 +150 -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 +21 -0
- package/dist/execution/identity/authentication.js +161 -0
- package/dist/execution/identity/callback.d.ts +44 -0
- package/dist/execution/identity/callback.js +105 -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 +115 -0
- package/dist/execution/identity/identity.d.ts +24 -0
- package/dist/execution/identity/identity.js +99 -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 +29 -0
- package/dist/execution/identity/jwks.js +252 -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 +17 -0
- package/dist/execution/invocation/admission/authentication.js +153 -0
- package/dist/execution/invocation/admission/authority.d.ts +34 -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/dependency/bind.d.ts +5 -0
- package/dist/execution/invocation/dependency/bind.js +68 -0
- package/dist/execution/invocation/dependency/index.d.ts +1 -0
- package/dist/execution/invocation/dependency/index.js +1 -0
- package/dist/execution/invocation/dispatch/action.d.ts +3 -0
- package/dist/execution/invocation/dispatch/action.js +20 -0
- package/dist/execution/invocation/dispatch/context.d.ts +23 -0
- package/dist/execution/invocation/dispatch/context.js +64 -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 +24 -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/authentication.d.ts +5 -0
- package/dist/execution/invocation/integration/authentication.js +53 -0
- package/dist/execution/invocation/integration/call.d.ts +11 -0
- package/dist/execution/invocation/integration/call.js +24 -0
- package/dist/execution/invocation/integration/clients.d.ts +5 -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 +86 -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 +23 -0
- package/dist/execution/invocation/result/errors.js +97 -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 +186 -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 +14 -0
- package/dist/execution/runtime/load.js +12 -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 +113 -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 -23
- package/dist/index.js +11 -12
- 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/alias.d.ts +6 -0
- package/dist/platform/graph/alias.js +6 -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 +3 -0
- package/dist/platform/graph/document/index.js +3 -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 +14 -0
- package/dist/platform/graph/index.js +13 -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/addressing/index.d.ts +3 -0
- package/dist/platform/schema/addressing/index.js +2 -0
- package/dist/platform/schema/class-authoring.d.ts +37 -0
- package/dist/platform/schema/class-authoring.js +20 -0
- package/dist/platform/schema/class-icon.d.ts +15 -0
- package/dist/platform/schema/class-icon.js +46 -0
- package/dist/platform/schema/error.d.ts +11 -0
- package/dist/platform/schema/error.js +34 -0
- package/dist/platform/schema/errors/index.d.ts +3 -0
- package/dist/platform/schema/errors/index.js +2 -0
- package/dist/platform/schema/icons/index.d.ts +2 -0
- package/dist/platform/schema/icons/index.js +2 -0
- package/dist/platform/schema/index.d.ts +23 -0
- package/dist/platform/schema/index.js +12 -0
- package/dist/platform/schema/kernel.d.ts +22 -0
- package/dist/platform/schema/kernel.js +5 -0
- package/dist/platform/schema/node-id.d.ts +3 -0
- package/dist/platform/schema/node-id.js +6 -0
- package/dist/platform/schema/schema-authoring.d.ts +48 -0
- package/dist/platform/schema/schema-authoring.js +3 -0
- package/dist/platform/schema/state-property.d.ts +11 -0
- package/dist/platform/schema/state-property.js +3 -0
- package/dist/platform/value/index.d.ts +3 -0
- package/dist/platform/value/index.js +3 -0
- package/dist/project/admit.d.ts +4 -0
- package/dist/project/admit.js +22 -0
- package/dist/project/define.d.ts +12 -0
- package/dist/project/define.js +106 -0
- package/dist/project/index.d.ts +4 -0
- package/dist/project/index.js +2 -0
- package/dist/project/project.d.ts +24 -0
- package/dist/project/project.js +1 -0
- package/dist/testing/dataset/admission.d.ts +13 -0
- package/dist/testing/dataset/admission.js +107 -0
- package/dist/testing/dataset/builder.d.ts +42 -0
- package/dist/testing/dataset/builder.js +127 -0
- package/dist/testing/dataset/codec.d.ts +6 -0
- package/dist/testing/dataset/codec.js +113 -0
- package/dist/testing/dataset/dataset.d.ts +58 -0
- package/dist/testing/dataset/dataset.js +2 -0
- package/dist/testing/dataset/define.d.ts +33 -0
- package/dist/testing/dataset/define.js +105 -0
- package/dist/testing/dataset/index.d.ts +8 -0
- package/dist/testing/dataset/index.js +4 -0
- package/dist/testing/dataset/references.d.ts +14 -0
- package/dist/testing/dataset/references.js +56 -0
- package/dist/testing/index.d.ts +9 -0
- package/dist/testing/index.js +5 -0
- package/dist/testing/load.d.ts +14 -0
- package/dist/testing/load.js +44 -0
- package/dist/testing/reference.d.ts +11 -0
- package/dist/testing/reference.js +19 -0
- package/dist/testing/tests.d.ts +12 -0
- package/dist/testing/tests.js +31 -0
- package/dist/tooling/cli/arguments.d.ts +17 -0
- package/dist/tooling/cli/arguments.js +162 -0
- package/dist/tooling/cli/astrale/authority.d.ts +5 -0
- package/dist/tooling/cli/astrale/authority.js +11 -0
- package/dist/tooling/cli/astrale/executable.d.ts +2 -0
- package/dist/tooling/cli/astrale/executable.js +47 -0
- package/dist/tooling/cli/astrale/failure.d.ts +6 -0
- package/dist/tooling/cli/astrale/failure.js +48 -0
- package/dist/tooling/cli/astrale/instance.d.ts +11 -0
- package/dist/tooling/cli/astrale/instance.js +52 -0
- package/dist/tooling/cli/astrale/process.d.ts +13 -0
- package/dist/tooling/cli/astrale/process.js +94 -0
- package/dist/tooling/cli/astrale/version.d.ts +18 -0
- package/dist/tooling/cli/astrale/version.js +55 -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 +15 -0
- package/dist/tooling/cli/bun.js +108 -0
- package/dist/tooling/cli/credential.d.ts +2 -0
- package/dist/tooling/cli/credential.js +57 -0
- package/dist/tooling/cli/development/candidate.d.ts +25 -0
- package/dist/tooling/cli/development/candidate.js +176 -0
- package/dist/tooling/cli/development/deployment.d.ts +16 -0
- package/dist/tooling/cli/development/deployment.js +39 -0
- package/dist/tooling/cli/development/develop.d.ts +11 -0
- package/dist/tooling/cli/development/develop.js +240 -0
- package/dist/tooling/cli/development/lease.d.ts +18 -0
- package/dist/tooling/cli/development/lease.js +163 -0
- package/dist/tooling/cli/development/lifecycle.d.ts +9 -0
- package/dist/tooling/cli/development/lifecycle.js +43 -0
- package/dist/tooling/cli/development/project-imports.d.ts +22 -0
- package/dist/tooling/cli/development/project-imports.js +39 -0
- package/dist/tooling/cli/development/project-lock.d.ts +16 -0
- package/dist/tooling/cli/development/project-lock.js +41 -0
- package/dist/tooling/cli/development/rebuild.d.ts +13 -0
- package/dist/tooling/cli/development/rebuild.js +58 -0
- package/dist/tooling/cli/development/release-evidence.d.ts +4 -0
- package/dist/tooling/cli/development/release-evidence.js +10 -0
- package/dist/tooling/cli/development/report.d.ts +6 -0
- package/dist/tooling/cli/development/report.js +14 -0
- package/dist/tooling/cli/development/session-file.d.ts +53 -0
- package/dist/tooling/cli/development/session-file.js +337 -0
- package/dist/tooling/cli/development/source-watch.d.ts +14 -0
- package/dist/tooling/cli/development/source-watch.js +140 -0
- package/dist/tooling/cli/development/sources.d.ts +7 -0
- package/dist/tooling/cli/development/sources.js +48 -0
- package/dist/tooling/cli/development/target-lock.d.ts +16 -0
- package/dist/tooling/cli/development/target-lock.js +68 -0
- package/dist/tooling/cli/development/view.d.ts +28 -0
- package/dist/tooling/cli/development/view.js +151 -0
- package/dist/tooling/cli/dotenv.d.ts +19 -0
- package/dist/tooling/cli/dotenv.js +85 -0
- package/dist/tooling/cli/environment-release.d.ts +21 -0
- package/dist/tooling/cli/environment-release.js +46 -0
- package/dist/tooling/cli/evidence.d.ts +11 -0
- package/dist/tooling/cli/evidence.js +52 -0
- package/dist/tooling/cli/failure.d.ts +2 -0
- package/dist/tooling/cli/failure.js +13 -0
- package/dist/tooling/cli/help.d.ts +8 -0
- package/dist/tooling/cli/help.js +152 -0
- package/dist/tooling/cli/index.d.ts +16 -0
- package/dist/tooling/cli/index.js +15 -0
- package/dist/tooling/cli/installation/index.d.ts +2 -0
- package/dist/tooling/cli/installation/index.js +1 -0
- package/dist/tooling/cli/installation/observation.d.ts +10 -0
- package/dist/tooling/cli/installation/observation.js +44 -0
- package/dist/tooling/cli/installation/reconcile.d.ts +32 -0
- package/dist/tooling/cli/installation/reconcile.js +122 -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 +7 -0
- package/dist/tooling/cli/orchestrate.js +198 -0
- package/dist/tooling/cli/project.d.ts +17 -0
- package/dist/tooling/cli/project.js +18 -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/cli/test.d.ts +12 -0
- package/dist/tooling/cli/test.js +47 -0
- package/dist/tooling/linter/adapters/typescript/discover.d.ts +3 -0
- package/dist/tooling/linter/adapters/typescript/discover.js +424 -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 +172 -0
- package/dist/tooling/linter/adapters/typescript/index.d.ts +49 -0
- package/dist/tooling/linter/adapters/typescript/index.js +9 -0
- package/dist/tooling/linter/adapters/typescript/query-collection-type.d.ts +4 -0
- package/dist/tooling/linter/adapters/typescript/query-collection-type.js +47 -0
- package/dist/tooling/linter/adapters/typescript/query-observation.d.ts +3 -0
- package/dist/tooling/linter/adapters/typescript/query-observation.js +228 -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-analysis.d.ts +9 -0
- package/dist/tooling/linter/adapters/typescript/type-analysis.js +55 -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 +384 -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 +30 -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/callable-requirements.d.ts +28 -0
- package/dist/tooling/linter/implementations/source/callable-requirements.js +234 -0
- package/dist/tooling/linter/implementations/source/dependencies.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/dependencies.js +219 -0
- package/dist/tooling/linter/implementations/source/global.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/global.js +1002 -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 +113 -0
- package/dist/tooling/linter/implementations/source/mutations.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/mutations.js +1404 -0
- package/dist/tooling/linter/implementations/source/providers.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/providers.js +230 -0
- package/dist/tooling/linter/implementations/source/queries.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/queries.js +1176 -0
- package/dist/tooling/linter/implementations/source/rules.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/rules.js +139 -0
- package/dist/tooling/linter/implementations/source/schema.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/schema.js +826 -0
- package/dist/tooling/linter/implementations/source/shared.d.ts +44 -0
- package/dist/tooling/linter/implementations/source/shared.js +319 -0
- package/dist/tooling/linter/implementations/source/state-machine.d.ts +24 -0
- package/dist/tooling/linter/implementations/source/state-machine.js +381 -0
- package/dist/tooling/linter/implementations/source/states.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/states.js +361 -0
- package/dist/tooling/linter/implementations/source/tests.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/tests.js +35 -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 +34 -0
- package/dist/tooling/linter/implementations/source/views.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/views.js +57 -0
- package/dist/tooling/linter/implementations/source/workflows.d.ts +2 -0
- package/dist/tooling/linter/implementations/source/workflows.js +240 -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 +25 -0
- package/dist/tooling/linter/lint.js +70 -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 +10 -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 +271 -0
- package/dist/tooling/linter/policy/configuration.d.ts +21 -0
- package/dist/tooling/linter/policy/configuration.js +149 -0
- package/dist/tooling/linter/policy/generated.d.ts +4 -0
- package/dist/tooling/linter/policy/generated.js +716 -0
- package/dist/tooling/linter/policy/index.d.ts +45 -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 +46 -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 +197 -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 +10 -0
- package/dist/tooling/packaging/compile.js +311 -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 +135 -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 +76 -0
- package/dist/tooling/packaging/declarations/verify.d.ts +11 -0
- package/dist/tooling/packaging/declarations/verify.js +44 -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/javascript.d.ts +3 -0
- package/dist/tooling/packaging/javascript.js +71 -0
- package/dist/tooling/packaging/packaging.d.ts +10 -0
- package/dist/tooling/packaging/packaging.js +195 -0
- package/dist/tooling/packaging/self.d.ts +9 -0
- package/dist/tooling/packaging/self.js +25 -0
- package/package.json +203 -108
- 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 -51
- package/dist/cli/run.d.ts.map +0 -1
- package/dist/cli/run.js +0 -519
- 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 -50
- package/dist/deployment/artifact/deployment.d.ts.map +0 -1
- package/dist/deployment/artifact/deployment.js +0 -132
- 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 -9
- package/dist/deployment/check/check.d.ts.map +0 -1
- package/dist/deployment/check/check.js +0 -96
- package/dist/deployment/check/check.js.map +0 -1
- package/dist/deployment/check/contract.d.ts +0 -34
- 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 -59
- 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 -109
- package/dist/domain/define.d.ts.map +0 -1
- package/dist/domain/define.js +0 -102
- package/dist/domain/define.js.map +0 -1
- package/dist/domain/handlers.d.ts +0 -51
- 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/error.d.ts +0 -47
- package/dist/invocation/error.d.ts.map +0 -1
- package/dist/invocation/error.js +0 -93
- package/dist/invocation/error.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 -323
- package/dist/invocation/handler.js.map +0 -1
- package/dist/invocation/index.d.ts +0 -7
- package/dist/invocation/index.d.ts.map +0 -1
- package/dist/invocation/index.js +0 -3
- 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 -142
- package/dist/invocation/result.js.map +0 -1
- package/dist/invocation/selection.d.ts +0 -27
- package/dist/invocation/selection.d.ts.map +0 -1
- package/dist/invocation/selection.js +0 -100
- package/dist/invocation/selection.js.map +0 -1
- package/dist/invocation/target.d.ts +0 -10
- package/dist/invocation/target.d.ts.map +0 -1
- package/dist/invocation/target.js +0 -48
- package/dist/invocation/target.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 -814
- 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 -32
- 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 -10
- 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 -70
- 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 -258
- package/dist/linter/policy/compile.js.map +0 -1
- package/dist/linter/policy/configuration.d.ts +0 -12
- package/dist/linter/policy/configuration.d.ts.map +0 -1
- package/dist/linter/policy/configuration.js +0 -119
- package/dist/linter/policy/configuration.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 -782
- package/dist/linter/policy/generated.js.map +0 -1
- package/dist/linter/policy/index.d.ts +0 -45
- package/dist/linter/policy/index.d.ts.map +0 -1
- package/dist/linter/policy/index.js +0 -4
- 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 -166
- 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/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 -128
- package/dist/server/application.js.map +0 -1
- package/dist/server/index.d.ts +0 -6
- 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 -57
- package/dist/server/remote.d.ts.map +0 -1
- package/dist/server/remote.js +0 -795
- 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 -40
- 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 -186
- package/dist/view/compile.js.map +0 -1
- package/dist/view/define.d.ts +0 -11
- package/dist/view/define.d.ts.map +0 -1
- package/dist/view/define.js +0 -173
- package/dist/view/define.js.map +0 -1
- package/dist/view/definition.d.ts +0 -89
- 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,4 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
import type { SourceFile, SourceProject } from './index.js';
|
|
3
|
+
/** Infer the closed collection graph kind only when the Domain's real TypeScript program proves it. */
|
|
4
|
+
export declare function queryCollectionKind(project: SourceProject, file: SourceFile, expression: ts.Expression): 'node' | 'edge' | undefined;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
import { expressionType } from './type-analysis.js';
|
|
3
|
+
/** Infer the closed collection graph kind only when the Domain's real TypeScript program proves it. */
|
|
4
|
+
export function queryCollectionKind(project, file, expression) {
|
|
5
|
+
const resolved = expressionType(project, file, expression);
|
|
6
|
+
if (resolved === undefined)
|
|
7
|
+
return undefined;
|
|
8
|
+
const kinds = graphKinds(resolved.checker, resolved.type, resolved.node);
|
|
9
|
+
return kinds.size === 1 ? [...kinds][0] : undefined;
|
|
10
|
+
}
|
|
11
|
+
function graphKinds(checker, type, location) {
|
|
12
|
+
const kinds = new Set();
|
|
13
|
+
const inspect = (candidate) => {
|
|
14
|
+
if (candidate.isUnionOrIntersection()) {
|
|
15
|
+
for (const member of candidate.types)
|
|
16
|
+
inspect(member);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
for (const property of candidate.getProperties()) {
|
|
20
|
+
if (!isCollectionClassBrand(property))
|
|
21
|
+
continue;
|
|
22
|
+
const propertyType = checker.getTypeOfSymbolAtLocation(property, location);
|
|
23
|
+
const kind = propertyType.getProperty('kind');
|
|
24
|
+
if (kind === undefined)
|
|
25
|
+
continue;
|
|
26
|
+
const kindType = checker.getTypeOfSymbolAtLocation(kind, location);
|
|
27
|
+
if (!(kindType.flags & ts.TypeFlags.StringLiteral))
|
|
28
|
+
continue;
|
|
29
|
+
const value = kindType.value;
|
|
30
|
+
if (value === 'node' || value === 'edge')
|
|
31
|
+
kinds.add(value);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
inspect(type);
|
|
35
|
+
return kinds;
|
|
36
|
+
}
|
|
37
|
+
function isCollectionClassBrand(property) {
|
|
38
|
+
return Boolean(property.declarations?.some((declaration) => {
|
|
39
|
+
if (!ts.isPropertySignature(declaration) ||
|
|
40
|
+
!ts.isInterfaceDeclaration(declaration.parent) ||
|
|
41
|
+
declaration.parent.name.text !== 'CollectionQueryDefinition') {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
const path = declaration.getSourceFile().fileName.replaceAll('\\', '/');
|
|
45
|
+
return path.includes('/node_modules/@astrale-os/sdk/');
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
import { ambiguous, known, unknown, } from '../../analysis/query/index.js';
|
|
3
|
+
import { location, resolveImportedSymbol, unwrap, visit } from './syntax.js';
|
|
4
|
+
const SDK_MODULES = new Set(['@astrale-os/sdk', '@astrale-os/sdk/query']);
|
|
5
|
+
const QUERY_MODULES = new Set([
|
|
6
|
+
'@astrale-os/sdk/query',
|
|
7
|
+
'@astrale-os/kernel-core',
|
|
8
|
+
'@astrale-os/kernel-core/graph/query',
|
|
9
|
+
]);
|
|
10
|
+
export function observeQueryDefinitions(project) {
|
|
11
|
+
return Object.freeze(project.files
|
|
12
|
+
.filter(({ role, layer }) => role === 'production' && layer === 'queries')
|
|
13
|
+
.flatMap(observeFile));
|
|
14
|
+
}
|
|
15
|
+
function observeFile(file) {
|
|
16
|
+
const observations = [];
|
|
17
|
+
visit(file.source, (node) => {
|
|
18
|
+
if (!ts.isCallExpression(node))
|
|
19
|
+
return;
|
|
20
|
+
const factory = unwrap(node.expression);
|
|
21
|
+
if (!ts.isCallExpression(factory))
|
|
22
|
+
return;
|
|
23
|
+
const origin = resolveImportedSymbol(file, factory.expression);
|
|
24
|
+
if ((origin.kind !== 'resolved' && origin.kind !== 'ambiguous') ||
|
|
25
|
+
(origin.name !== 'defineQuery' && origin.name !== 'defineCollectionQuery') ||
|
|
26
|
+
(origin.kind === 'resolved' && !SDK_MODULES.has(origin.module))) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const subjectId = `${file.path}#${node.getStart(file.source)}`;
|
|
30
|
+
const sourceLocation = location(file, node);
|
|
31
|
+
if (origin.kind === 'ambiguous') {
|
|
32
|
+
const reason = 'definition resolves through a local facade whose ultimate public constructor origin is unknown';
|
|
33
|
+
observations.push(Object.freeze({
|
|
34
|
+
subjectId,
|
|
35
|
+
location: sourceLocation,
|
|
36
|
+
constructorIdentity: ambiguous(reason),
|
|
37
|
+
definitionKind: ambiguous(reason),
|
|
38
|
+
canonicalRequestCount: ambiguous(reason),
|
|
39
|
+
buildCallbackCount: ambiguous(reason),
|
|
40
|
+
projectCallbackCount: ambiguous(reason),
|
|
41
|
+
}));
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (origin.name === 'defineCollectionQuery') {
|
|
45
|
+
observations.push(Object.freeze({
|
|
46
|
+
subjectId,
|
|
47
|
+
location: sourceLocation,
|
|
48
|
+
constructorIdentity: known(sdkConstructorIdentity(file, factory.expression, origin.name)),
|
|
49
|
+
definitionKind: known('single'),
|
|
50
|
+
canonicalRequestCount: known(1),
|
|
51
|
+
buildCallbackCount: known(1),
|
|
52
|
+
projectCallbackCount: known(0),
|
|
53
|
+
}));
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const object = projectedObject(node);
|
|
57
|
+
if (!object) {
|
|
58
|
+
const reason = 'definition input is not a static object literal';
|
|
59
|
+
observations.push(Object.freeze({
|
|
60
|
+
subjectId,
|
|
61
|
+
location: sourceLocation,
|
|
62
|
+
constructorIdentity: known(sdkConstructorIdentity(file, factory.expression)),
|
|
63
|
+
definitionKind: known('single'),
|
|
64
|
+
canonicalRequestCount: unknown(reason),
|
|
65
|
+
buildCallbackCount: unknown(reason),
|
|
66
|
+
projectCallbackCount: unknown(reason),
|
|
67
|
+
}));
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const builds = namedProperties(object, 'build');
|
|
71
|
+
const projects = namedProperties(object, 'project');
|
|
72
|
+
const build = callback(builds[0]);
|
|
73
|
+
observations.push(Object.freeze({
|
|
74
|
+
subjectId,
|
|
75
|
+
location: sourceLocation,
|
|
76
|
+
constructorIdentity: known(sdkConstructorIdentity(file, factory.expression)),
|
|
77
|
+
definitionKind: known('single'),
|
|
78
|
+
canonicalRequestCount: canonicalRequestCount(file, object, builds, build),
|
|
79
|
+
buildCallbackCount: builds.length === 1 && !build
|
|
80
|
+
? unknown('build callback is forwarded through an opaque authored value')
|
|
81
|
+
: known(builds.length),
|
|
82
|
+
projectCallbackCount: known(projects.length),
|
|
83
|
+
}));
|
|
84
|
+
});
|
|
85
|
+
return observations;
|
|
86
|
+
}
|
|
87
|
+
function canonicalRequestCount(file, object, builds, build) {
|
|
88
|
+
if (!build) {
|
|
89
|
+
if (builds.length > 0)
|
|
90
|
+
return unknown('build callback origin is not statically visible');
|
|
91
|
+
const shorthand = object.properties.some((property) => ts.isShorthandPropertyAssignment(property) && property.name.text === 'build');
|
|
92
|
+
return shorthand
|
|
93
|
+
? unknown('build callback is forwarded through an opaque local helper')
|
|
94
|
+
: known(0);
|
|
95
|
+
}
|
|
96
|
+
const returns = returnedExpressions(build);
|
|
97
|
+
if (returns.length !== 1) {
|
|
98
|
+
return ambiguous(`build exposes ${returns.length} statically visible return values`);
|
|
99
|
+
}
|
|
100
|
+
const roots = canonicalRequestRoots(file, build, returns[0]);
|
|
101
|
+
if (roots === 0) {
|
|
102
|
+
const returned = returns[0];
|
|
103
|
+
if (ts.isCallExpression(returned) && ts.isIdentifier(unwrap(returned.expression))) {
|
|
104
|
+
return unknown('build delegates to a helper whose QueryAST origin is not visible');
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return known(roots);
|
|
108
|
+
}
|
|
109
|
+
function canonicalRequestRoots(file, build, returned) {
|
|
110
|
+
const declarations = localConstInitializers(build);
|
|
111
|
+
const visited = new Set();
|
|
112
|
+
const count = (node) => {
|
|
113
|
+
let roots = canonicalRoots(file, node);
|
|
114
|
+
visit(node, (candidate) => {
|
|
115
|
+
if (!ts.isIdentifier(candidate))
|
|
116
|
+
return;
|
|
117
|
+
const declaration = declarations.get(candidate.text);
|
|
118
|
+
if (declaration === undefined || visited.has(declaration))
|
|
119
|
+
return;
|
|
120
|
+
visited.add(declaration);
|
|
121
|
+
roots += count(declaration.initializer);
|
|
122
|
+
});
|
|
123
|
+
return roots;
|
|
124
|
+
};
|
|
125
|
+
return count(returned);
|
|
126
|
+
}
|
|
127
|
+
function localConstInitializers(build) {
|
|
128
|
+
const declarations = new Map();
|
|
129
|
+
if (!build.body || !ts.isBlock(build.body))
|
|
130
|
+
return declarations;
|
|
131
|
+
for (const statement of build.body.statements) {
|
|
132
|
+
if (!ts.isVariableStatement(statement))
|
|
133
|
+
continue;
|
|
134
|
+
if ((statement.declarationList.flags & ts.NodeFlags.Const) === 0)
|
|
135
|
+
continue;
|
|
136
|
+
for (const declaration of statement.declarationList.declarations) {
|
|
137
|
+
if (ts.isIdentifier(declaration.name) && declaration.initializer !== undefined) {
|
|
138
|
+
declarations.set(declaration.name.text, declaration);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return declarations;
|
|
143
|
+
}
|
|
144
|
+
function sdkConstructorIdentity(file, expression, name = 'defineQuery') {
|
|
145
|
+
const spelling = expression.getText(file.source);
|
|
146
|
+
return Object.freeze({
|
|
147
|
+
kind: 'sdk-query',
|
|
148
|
+
canonicalId: name === 'defineCollectionQuery'
|
|
149
|
+
? 'astrale.sdk.defineCollectionQuery'
|
|
150
|
+
: 'astrale.sdk.defineQuery',
|
|
151
|
+
aliases: Object.freeze(spelling === name ? [] : [spelling]),
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function canonicalRoots(file, node) {
|
|
155
|
+
const roots = [];
|
|
156
|
+
visit(node, (candidate) => {
|
|
157
|
+
if (!ts.isCallExpression(candidate))
|
|
158
|
+
return;
|
|
159
|
+
const expression = unwrap(candidate.expression);
|
|
160
|
+
if (!ts.isPropertyAccessExpression(expression) || !ts.isIdentifier(expression.expression)) {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
const symbol = resolveImportedSymbol(file, expression.expression);
|
|
164
|
+
if (symbol.kind === 'resolved' && symbol.name === 'Query' && QUERY_MODULES.has(symbol.module)) {
|
|
165
|
+
roots.push(candidate);
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
return roots.filter((root) => !hasCanonicalAncestor(file, root)).length;
|
|
169
|
+
}
|
|
170
|
+
function hasCanonicalAncestor(file, node) {
|
|
171
|
+
let current = node.parent;
|
|
172
|
+
while (current && !ts.isFunctionLike(current)) {
|
|
173
|
+
if (ts.isCallExpression(current) && isCanonicalCall(file, current))
|
|
174
|
+
return true;
|
|
175
|
+
current = current.parent;
|
|
176
|
+
}
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
function isCanonicalCall(file, call) {
|
|
180
|
+
const expression = unwrap(call.expression);
|
|
181
|
+
if (!ts.isPropertyAccessExpression(expression) || !ts.isIdentifier(expression.expression)) {
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
const symbol = resolveImportedSymbol(file, expression.expression);
|
|
185
|
+
return symbol.kind === 'resolved' && symbol.name === 'Query' && QUERY_MODULES.has(symbol.module);
|
|
186
|
+
}
|
|
187
|
+
function projectedObject(call) {
|
|
188
|
+
const argument = call.arguments[0];
|
|
189
|
+
const value = argument && unwrap(argument);
|
|
190
|
+
if (!value || (!ts.isArrowFunction(value) && !ts.isFunctionExpression(value)))
|
|
191
|
+
return undefined;
|
|
192
|
+
const returned = returnedExpressions(value);
|
|
193
|
+
return returned.length === 1 && ts.isObjectLiteralExpression(unwrap(returned[0]))
|
|
194
|
+
? unwrap(returned[0])
|
|
195
|
+
: undefined;
|
|
196
|
+
}
|
|
197
|
+
function namedProperties(object, name) {
|
|
198
|
+
return object.properties.filter((property) => 'name' in property &&
|
|
199
|
+
property.name &&
|
|
200
|
+
(ts.isIdentifier(property.name) || ts.isStringLiteral(property.name)) &&
|
|
201
|
+
property.name.text === name);
|
|
202
|
+
}
|
|
203
|
+
function callback(property) {
|
|
204
|
+
if (!property)
|
|
205
|
+
return undefined;
|
|
206
|
+
if (ts.isMethodDeclaration(property))
|
|
207
|
+
return property;
|
|
208
|
+
if (!ts.isPropertyAssignment(property))
|
|
209
|
+
return undefined;
|
|
210
|
+
const value = unwrap(property.initializer);
|
|
211
|
+
return ts.isArrowFunction(value) || ts.isFunctionExpression(value) ? value : undefined;
|
|
212
|
+
}
|
|
213
|
+
function returnedExpressions(fn) {
|
|
214
|
+
if (!fn.body)
|
|
215
|
+
return [];
|
|
216
|
+
if (!ts.isBlock(fn.body))
|
|
217
|
+
return [unwrap(fn.body)];
|
|
218
|
+
const expressions = [];
|
|
219
|
+
const walk = (node) => {
|
|
220
|
+
if (node !== fn && ts.isFunctionLike(node))
|
|
221
|
+
return;
|
|
222
|
+
if (ts.isReturnStatement(node) && node.expression)
|
|
223
|
+
expressions.push(unwrap(node.expression));
|
|
224
|
+
node.forEachChild(walk);
|
|
225
|
+
};
|
|
226
|
+
fn.body.forEachChild(walk);
|
|
227
|
+
return expressions;
|
|
228
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SuppressionDirective } from '../../suppression/index.js';
|
|
2
|
+
import type { SourceProject } from './index.js';
|
|
3
|
+
/** Extracts portable suppression observations from the temporary TypeScript source model. */
|
|
4
|
+
export declare function collectSuppressionDirectives(project: SourceProject): readonly SuppressionDirective[];
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
const DIRECTIVE = /^\/\/\s*astrale-disable-next-line\s+([A-Z]+(?:-[A-Z]+)+)\s+--\s+(.+?)\s*$/;
|
|
3
|
+
const DIRECTIVE_NAME = 'astrale-disable-next-line';
|
|
4
|
+
const MAX_REASON_BYTES = 240;
|
|
5
|
+
const MAX_DIRECTIVE_BYTES = 1024;
|
|
6
|
+
/** Extracts portable suppression observations from the temporary TypeScript source model. */
|
|
7
|
+
export function collectSuppressionDirectives(project) {
|
|
8
|
+
return Object.freeze(project.files.flatMap((file) => scanDirectives(project, file)));
|
|
9
|
+
}
|
|
10
|
+
function scanDirectives(project, file) {
|
|
11
|
+
const scanner = ts.createScanner(ts.ScriptTarget.Latest, false, file.source.languageVariant, file.text);
|
|
12
|
+
const directives = [];
|
|
13
|
+
for (let token = scanner.scan(); token !== ts.SyntaxKind.EndOfFileToken; token = scanner.scan()) {
|
|
14
|
+
if (token !== ts.SyntaxKind.SingleLineCommentTrivia &&
|
|
15
|
+
token !== ts.SyntaxKind.MultiLineCommentTrivia)
|
|
16
|
+
continue;
|
|
17
|
+
const text = scanner.getTokenText();
|
|
18
|
+
if (!text.includes(DIRECTIVE_NAME))
|
|
19
|
+
continue;
|
|
20
|
+
const offset = scanner.getTokenPos();
|
|
21
|
+
const position = file.source.getLineAndCharacterOfPosition(offset);
|
|
22
|
+
const location = Object.freeze({
|
|
23
|
+
path: file.path,
|
|
24
|
+
line: position.line + 1,
|
|
25
|
+
column: position.character + 1,
|
|
26
|
+
offset,
|
|
27
|
+
length: Math.max(1, scanner.getTextPos() - offset),
|
|
28
|
+
});
|
|
29
|
+
const path = file.path;
|
|
30
|
+
const line = position.line + 1;
|
|
31
|
+
const bytes = Buffer.byteLength(text, 'utf8');
|
|
32
|
+
const lineStart = file.source.getPositionOfLineAndCharacter(position.line, 0);
|
|
33
|
+
if (file.text.slice(lineStart, offset).trim()) {
|
|
34
|
+
directives.push(Object.freeze({
|
|
35
|
+
path,
|
|
36
|
+
line,
|
|
37
|
+
location,
|
|
38
|
+
error: 'Suppression directive must be a standalone comment line.',
|
|
39
|
+
}));
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (bytes > MAX_DIRECTIVE_BYTES) {
|
|
43
|
+
directives.push(Object.freeze({
|
|
44
|
+
path,
|
|
45
|
+
line,
|
|
46
|
+
location,
|
|
47
|
+
error: `Suppression directive is ${bytes} bytes; maximum is ${MAX_DIRECTIVE_BYTES}.`,
|
|
48
|
+
}));
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
const match = DIRECTIVE.exec(text);
|
|
52
|
+
if (!match) {
|
|
53
|
+
directives.push(Object.freeze({
|
|
54
|
+
path,
|
|
55
|
+
line,
|
|
56
|
+
location,
|
|
57
|
+
error: 'Suppression must contain exactly one rule ID and use // astrale-disable-next-line ID -- reason.',
|
|
58
|
+
}));
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
const [, id, reason] = match;
|
|
62
|
+
if (!project.policy.catalog.get(id)) {
|
|
63
|
+
directives.push(Object.freeze({
|
|
64
|
+
path,
|
|
65
|
+
line,
|
|
66
|
+
location,
|
|
67
|
+
error: `Suppression names unknown rule ${id}.`,
|
|
68
|
+
}));
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
const reasonBytes = Buffer.byteLength(reason, 'utf8');
|
|
72
|
+
if (!reason.trim() || reasonBytes > MAX_REASON_BYTES) {
|
|
73
|
+
directives.push(Object.freeze({
|
|
74
|
+
path,
|
|
75
|
+
line,
|
|
76
|
+
location,
|
|
77
|
+
error: `Suppression reason must contain 1-${MAX_REASON_BYTES} bytes.`,
|
|
78
|
+
}));
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
directives.push(Object.freeze({ id, reason, path, line, location }));
|
|
82
|
+
}
|
|
83
|
+
return directives;
|
|
84
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
import type { DiagnosticLocation } from '../../diagnostics/index.js';
|
|
3
|
+
import type { SourceFile } from './index.js';
|
|
4
|
+
export declare function visit(node: ts.Node, callback: (node: ts.Node) => void): void;
|
|
5
|
+
export declare function location(file: SourceFile, node: ts.Node): DiagnosticLocation;
|
|
6
|
+
export declare function importedSymbol(file: SourceFile, expression: ts.Expression): Readonly<{
|
|
7
|
+
module: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}> | undefined;
|
|
10
|
+
export type ImportedSymbolResolution = Readonly<{
|
|
11
|
+
kind: 'resolved';
|
|
12
|
+
module: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}> | Readonly<{
|
|
15
|
+
kind: 'local';
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
kind: 'ambiguous';
|
|
18
|
+
module: string;
|
|
19
|
+
name: string;
|
|
20
|
+
reason: 'reexport-origin';
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Resolve only directly imported bindings. Local facade and relative imports
|
|
24
|
+
* preserve their visible module but expose that their ultimate re-export
|
|
25
|
+
* origin is unresolved, allowing a verifier to report ambiguity when origin
|
|
26
|
+
* is material to its verdict.
|
|
27
|
+
*/
|
|
28
|
+
export declare function resolveImportedSymbol(file: SourceFile, expression: ts.Expression): ImportedSymbolResolution;
|
|
29
|
+
export declare function isLocallyDeclared(identifier: ts.Identifier): boolean;
|
|
30
|
+
export declare function unwrap(expression: ts.Expression): ts.Expression;
|
|
31
|
+
export declare function staticText(expression: ts.Expression | undefined): string | undefined;
|
|
32
|
+
export declare function objectProperty(object: ts.ObjectLiteralExpression | undefined, name: string): ts.ObjectLiteralElementLike | undefined;
|
|
33
|
+
export declare function propertyName(name: ts.PropertyName): string | undefined;
|
|
34
|
+
export declare function callbackOf(property: ts.ObjectLiteralElementLike | undefined): ts.FunctionLikeDeclaration | undefined;
|
|
35
|
+
export declare function objectArgument(call: ts.CallExpression): ts.ObjectLiteralExpression | undefined;
|
|
36
|
+
export declare function isImportedCall(file: SourceFile, node: ts.Node, modules: ReadonlySet<string>, name: string): node is ts.CallExpression;
|
|
37
|
+
export declare function propertyChain(expression: ts.Expression): readonly string[] | undefined;
|
|
38
|
+
export declare function containingFunction(node: ts.Node): ts.FunctionLikeDeclaration | undefined;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
export function visit(node, callback) {
|
|
3
|
+
callback(node);
|
|
4
|
+
node.forEachChild((child) => visit(child, callback));
|
|
5
|
+
}
|
|
6
|
+
export function location(file, node) {
|
|
7
|
+
const offset = node.getStart(file.source);
|
|
8
|
+
const position = file.source.getLineAndCharacterOfPosition(offset);
|
|
9
|
+
return {
|
|
10
|
+
path: file.path,
|
|
11
|
+
line: position.line + 1,
|
|
12
|
+
column: position.character + 1,
|
|
13
|
+
offset,
|
|
14
|
+
length: Math.max(1, node.getEnd() - offset),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export function importedSymbol(file, expression) {
|
|
18
|
+
const resolution = resolveImportedSymbol(file, expression);
|
|
19
|
+
return resolution.kind === 'resolved' || resolution.kind === 'ambiguous'
|
|
20
|
+
? { module: resolution.module, name: resolution.name }
|
|
21
|
+
: undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Resolve only directly imported bindings. Local facade and relative imports
|
|
25
|
+
* preserve their visible module but expose that their ultimate re-export
|
|
26
|
+
* origin is unresolved, allowing a verifier to report ambiguity when origin
|
|
27
|
+
* is material to its verdict.
|
|
28
|
+
*/
|
|
29
|
+
export function resolveImportedSymbol(file, expression) {
|
|
30
|
+
const target = unwrap(expression);
|
|
31
|
+
if (ts.isIdentifier(target)) {
|
|
32
|
+
if (isLocallyDeclared(target))
|
|
33
|
+
return { kind: 'local' };
|
|
34
|
+
for (const sourceImport of file.imports) {
|
|
35
|
+
for (const [imported, local] of sourceImport.bindings) {
|
|
36
|
+
if (local === target.text)
|
|
37
|
+
return resolution(sourceImport.specifier, imported);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return { kind: 'local' };
|
|
41
|
+
}
|
|
42
|
+
if (ts.isPropertyAccessExpression(target) && ts.isIdentifier(target.expression)) {
|
|
43
|
+
const rootName = target.expression.text;
|
|
44
|
+
if (isLocallyDeclared(target.expression))
|
|
45
|
+
return { kind: 'local' };
|
|
46
|
+
const sourceImport = file.imports.find(({ namespace }) => namespace === rootName);
|
|
47
|
+
if (sourceImport)
|
|
48
|
+
return resolution(sourceImport.specifier, target.name.text);
|
|
49
|
+
}
|
|
50
|
+
return { kind: 'local' };
|
|
51
|
+
}
|
|
52
|
+
function resolution(module, name) {
|
|
53
|
+
return module.startsWith('.') || module.startsWith('#')
|
|
54
|
+
? { kind: 'ambiguous', module, name, reason: 'reexport-origin' }
|
|
55
|
+
: { kind: 'resolved', module, name };
|
|
56
|
+
}
|
|
57
|
+
export function isLocallyDeclared(identifier) {
|
|
58
|
+
let current = identifier.parent;
|
|
59
|
+
while (current) {
|
|
60
|
+
if (ts.isFunctionLike(current)) {
|
|
61
|
+
if (current.parameters.some(({ name }) => bindingContains(name, identifier.text)))
|
|
62
|
+
return true;
|
|
63
|
+
if ('name' in current &&
|
|
64
|
+
current.name &&
|
|
65
|
+
ts.isIdentifier(current.name) &&
|
|
66
|
+
current.name.text === identifier.text &&
|
|
67
|
+
ts.isFunctionExpression(current)) {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (ts.isCatchClause(current) &&
|
|
72
|
+
current.variableDeclaration &&
|
|
73
|
+
bindingContains(current.variableDeclaration.name, identifier.text)) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
if (ts.isBlock(current) || ts.isSourceFile(current) || ts.isModuleBlock(current)) {
|
|
77
|
+
if (current.statements.some((statement) => statementDeclares(statement, identifier.text))) {
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if ((ts.isForStatement(current) ||
|
|
82
|
+
ts.isForInStatement(current) ||
|
|
83
|
+
ts.isForOfStatement(current)) &&
|
|
84
|
+
current.initializer &&
|
|
85
|
+
ts.isVariableDeclarationList(current.initializer) &&
|
|
86
|
+
current.initializer.declarations.some(({ name }) => bindingContains(name, identifier.text))) {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
current = current.parent;
|
|
90
|
+
}
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
function statementDeclares(statement, name) {
|
|
94
|
+
if (ts.isVariableStatement(statement)) {
|
|
95
|
+
return statement.declarationList.declarations.some((declaration) => bindingContains(declaration.name, name));
|
|
96
|
+
}
|
|
97
|
+
if ((ts.isFunctionDeclaration(statement) ||
|
|
98
|
+
ts.isClassDeclaration(statement) ||
|
|
99
|
+
ts.isEnumDeclaration(statement) ||
|
|
100
|
+
ts.isModuleDeclaration(statement)) &&
|
|
101
|
+
statement.name) {
|
|
102
|
+
return statement.name.text === name;
|
|
103
|
+
}
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
function bindingContains(binding, name) {
|
|
107
|
+
if (ts.isIdentifier(binding))
|
|
108
|
+
return binding.text === name;
|
|
109
|
+
return binding.elements.some((element) => !ts.isOmittedExpression(element) && bindingContains(element.name, name));
|
|
110
|
+
}
|
|
111
|
+
export function unwrap(expression) {
|
|
112
|
+
let current = expression;
|
|
113
|
+
while (ts.isParenthesizedExpression(current) ||
|
|
114
|
+
ts.isAsExpression(current) ||
|
|
115
|
+
ts.isSatisfiesExpression(current) ||
|
|
116
|
+
ts.isNonNullExpression(current)) {
|
|
117
|
+
current = current.expression;
|
|
118
|
+
}
|
|
119
|
+
return current;
|
|
120
|
+
}
|
|
121
|
+
export function staticText(expression) {
|
|
122
|
+
if (!expression)
|
|
123
|
+
return undefined;
|
|
124
|
+
const target = unwrap(expression);
|
|
125
|
+
return ts.isStringLiteral(target) || ts.isNoSubstitutionTemplateLiteral(target)
|
|
126
|
+
? target.text
|
|
127
|
+
: undefined;
|
|
128
|
+
}
|
|
129
|
+
export function objectProperty(object, name) {
|
|
130
|
+
return object?.properties.find((property) => {
|
|
131
|
+
if (!('name' in property) || !property.name)
|
|
132
|
+
return false;
|
|
133
|
+
return propertyName(property.name) === name;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
export function propertyName(name) {
|
|
137
|
+
if (ts.isIdentifier(name) || ts.isStringLiteral(name) || ts.isNumericLiteral(name))
|
|
138
|
+
return name.text;
|
|
139
|
+
return ts.isComputedPropertyName(name) ? staticText(name.expression) : undefined;
|
|
140
|
+
}
|
|
141
|
+
export function callbackOf(property) {
|
|
142
|
+
if (!property)
|
|
143
|
+
return undefined;
|
|
144
|
+
if (ts.isMethodDeclaration(property))
|
|
145
|
+
return property;
|
|
146
|
+
if (ts.isPropertyAssignment(property)) {
|
|
147
|
+
const value = unwrap(property.initializer);
|
|
148
|
+
if (ts.isArrowFunction(value) || ts.isFunctionExpression(value))
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
export function objectArgument(call) {
|
|
154
|
+
const value = call.arguments[0];
|
|
155
|
+
return value && ts.isObjectLiteralExpression(unwrap(value))
|
|
156
|
+
? unwrap(value)
|
|
157
|
+
: undefined;
|
|
158
|
+
}
|
|
159
|
+
export function isImportedCall(file, node, modules, name) {
|
|
160
|
+
if (!ts.isCallExpression(node))
|
|
161
|
+
return false;
|
|
162
|
+
const symbol = importedSymbol(file, node.expression);
|
|
163
|
+
return symbol?.name === name && modules.has(symbol.module);
|
|
164
|
+
}
|
|
165
|
+
export function propertyChain(expression) {
|
|
166
|
+
const target = unwrap(expression);
|
|
167
|
+
if (ts.isIdentifier(target))
|
|
168
|
+
return [target.text];
|
|
169
|
+
if (!ts.isPropertyAccessExpression(target))
|
|
170
|
+
return undefined;
|
|
171
|
+
const root = propertyChain(target.expression);
|
|
172
|
+
return root ? [...root, target.name.text] : undefined;
|
|
173
|
+
}
|
|
174
|
+
export function containingFunction(node) {
|
|
175
|
+
let current = node.parent;
|
|
176
|
+
while (current) {
|
|
177
|
+
if (ts.isFunctionLike(current) && 'body' in current)
|
|
178
|
+
return current;
|
|
179
|
+
current = current.parent;
|
|
180
|
+
}
|
|
181
|
+
return undefined;
|
|
182
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
import type { SourceFile, SourceProject } from './index.js';
|
|
3
|
+
export interface ExpressionType {
|
|
4
|
+
readonly checker: ts.TypeChecker;
|
|
5
|
+
readonly node: ts.Expression;
|
|
6
|
+
readonly type: ts.Type;
|
|
7
|
+
}
|
|
8
|
+
/** Resolve an expression against the Domain's admitted TypeScript program. */
|
|
9
|
+
export declare function expressionType(project: SourceProject, file: SourceFile, expression: ts.Expression): ExpressionType | undefined;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { dirname } from 'node:path';
|
|
2
|
+
import ts from 'typescript';
|
|
3
|
+
const contexts = new WeakMap();
|
|
4
|
+
/** Resolve an expression against the Domain's admitted TypeScript program. */
|
|
5
|
+
export function expressionType(project, file, expression) {
|
|
6
|
+
const context = typeContext(project);
|
|
7
|
+
if (context === null)
|
|
8
|
+
return undefined;
|
|
9
|
+
const source = context.program.getSourceFile(file.absolutePath);
|
|
10
|
+
if (source === undefined)
|
|
11
|
+
return undefined;
|
|
12
|
+
const node = matchingNode(source, expression.getStart(file.source), expression.end);
|
|
13
|
+
if (node === undefined || !ts.isExpression(node))
|
|
14
|
+
return undefined;
|
|
15
|
+
return {
|
|
16
|
+
checker: context.checker,
|
|
17
|
+
node,
|
|
18
|
+
type: context.checker.getTypeAtLocation(node),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function typeContext(project) {
|
|
22
|
+
const existing = contexts.get(project);
|
|
23
|
+
if (existing !== undefined)
|
|
24
|
+
return existing;
|
|
25
|
+
try {
|
|
26
|
+
const configPath = ts.findConfigFile(project.root, ts.sys.fileExists);
|
|
27
|
+
if (configPath === undefined)
|
|
28
|
+
return remember(project, null);
|
|
29
|
+
const loaded = ts.readConfigFile(configPath, ts.sys.readFile);
|
|
30
|
+
if (loaded.error !== undefined)
|
|
31
|
+
return remember(project, null);
|
|
32
|
+
const parsed = ts.parseJsonConfigFileContent(loaded.config, ts.sys, dirname(configPath), { noEmit: true }, configPath);
|
|
33
|
+
const program = ts.createProgram({ rootNames: parsed.fileNames, options: parsed.options });
|
|
34
|
+
return remember(project, { program, checker: program.getTypeChecker() });
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return remember(project, null);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function remember(project, context) {
|
|
41
|
+
contexts.set(project, context);
|
|
42
|
+
return context;
|
|
43
|
+
}
|
|
44
|
+
function matchingNode(source, start, end) {
|
|
45
|
+
let match;
|
|
46
|
+
const visit = (node) => {
|
|
47
|
+
if (node.getStart(source) > start || node.end < end)
|
|
48
|
+
return;
|
|
49
|
+
if (node.getStart(source) === start && node.end === end)
|
|
50
|
+
match = node;
|
|
51
|
+
node.forEachChild(visit);
|
|
52
|
+
};
|
|
53
|
+
visit(source);
|
|
54
|
+
return match;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function assertSingleTypeUniverse(root: string, signal?: AbortSignal): Promise<void>;
|