@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
package/README.md
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
# SDK
|
|
2
2
|
|
|
3
|
-
Schema-first SDK for
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Schema-first SDK for authoring and deploying Astrale Applications. The public surface separates
|
|
4
|
+
single-step Actions, explicit multi-step Workflows, provider-neutral Integrations, concrete Providers, graph
|
|
5
|
+
authoring, Application composition, Deployment, and Execution without exposing DSL callable
|
|
6
|
+
topology in implementation files.
|
|
6
7
|
|
|
7
8
|
[](https://github.com/astrale-os/sdk/actions/workflows/ci.yml)
|
|
8
9
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
9
10
|
|
|
10
11
|
## Install
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
Kernel dependencies are intentionally distributed there:
|
|
14
|
-
|
|
15
|
-
```ini
|
|
16
|
-
# ~/.npmrc
|
|
17
|
-
registry=https://registry.npmjs.org/
|
|
18
|
-
@astrale-os:registry=https://npm.pkg.github.com/
|
|
19
|
-
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
|
|
20
|
-
```
|
|
13
|
+
The SDK and its complete runtime dependency graph are public on npm and require no GitHub token:
|
|
21
14
|
|
|
22
15
|
```bash
|
|
23
|
-
export NODE_AUTH_TOKEN="$(gh auth token)"
|
|
24
16
|
npm install @astrale-os/sdk
|
|
25
17
|
```
|
|
26
18
|
|
|
19
|
+
Zod schemas cross the SDK and Kernel compiler boundary by runtime identity. The SDK therefore
|
|
20
|
+
declares one exact, non-optional Zod peer. If an Application declares Zod directly, it must use the
|
|
21
|
+
same exact version rather than a range; a second physical Zod runtime is not an admitted authoring
|
|
22
|
+
environment.
|
|
23
|
+
|
|
27
24
|
During the beta program, opt in explicitly:
|
|
28
25
|
|
|
29
26
|
```bash
|
|
@@ -31,19 +28,92 @@ npm install @astrale-os/sdk@beta
|
|
|
31
28
|
npx -y create-astrale-domain@beta my-domain --yes
|
|
32
29
|
```
|
|
33
30
|
|
|
34
|
-
See [the release lifecycle](docs/release.md) for package-
|
|
31
|
+
See [the release lifecycle](docs/release.md) for package-set versioning, verification, and stable
|
|
35
32
|
promotion.
|
|
36
33
|
|
|
34
|
+
## Handler authority and dependencies
|
|
35
|
+
|
|
36
|
+
Authenticated handlers use Domain self authority for `kernel`, `graph`, `query`, and `mutate`.
|
|
37
|
+
`dependencies.directory.invoke(d => d.functions.lookup, input)` calls a direct declared dependency
|
|
38
|
+
with the incoming caller Grant. Explicit authority remains on `kernel` and `graph`; the former
|
|
39
|
+
handler `client` is removed. See [the API and migration guide](docs/handler-dependencies.md).
|
|
40
|
+
|
|
41
|
+
## Node Class icons
|
|
42
|
+
|
|
43
|
+
Every Node Class authored through the SDK must explicitly declare a self-contained SVG icon.
|
|
44
|
+
Omission is rejected by TypeScript, at the runtime authoring boundary, and by the
|
|
45
|
+
`SCH-ICON-REQUIRED` linter rule. Prefer framework-neutral Lucide data when an icon exists in that
|
|
46
|
+
catalog:
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
import { classIcon, nodeClass } from '@astrale-os/sdk/schema'
|
|
50
|
+
import { FileText } from '@astrale-os/sdk/schema/icons'
|
|
51
|
+
|
|
52
|
+
export const Article = nodeClass({
|
|
53
|
+
icon: classIcon.lucide(FileText),
|
|
54
|
+
})
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Use `classIcon.svg(source)` for a custom self-contained SVG. If no meaningful icon has been chosen,
|
|
58
|
+
declare `icon: classIcon.neutral` explicitly. This stable empty SVG renders no glyph and remains
|
|
59
|
+
valid; the linter emits a non-failing `SCH-ICON-NEUTRAL` warning. Bare names such as `"file-text"`,
|
|
60
|
+
non-canonical empty SVGs, external references, and executable SVG content are rejected during
|
|
61
|
+
Schema authoring.
|
|
62
|
+
|
|
63
|
+
## Business-error declarations
|
|
64
|
+
|
|
65
|
+
Declare reusable business errors in `schema/modules/<module>/errors/` through the Schema facade:
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import { error } from '@astrale-os/sdk/schema/errors'
|
|
69
|
+
import { z } from 'zod'
|
|
70
|
+
|
|
71
|
+
export const resourceUnavailable = error({
|
|
72
|
+
family: 'NOT_FOUND',
|
|
73
|
+
message: 'The selected resource is unavailable.',
|
|
74
|
+
details: z.strictObject({ resource: z.string() }),
|
|
75
|
+
})
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Register the declaration under a code in an Action or Workflow's options:
|
|
79
|
+
`{ errors: { RESOURCE_UNAVAILABLE: resourceUnavailable } }`. Its handler can then
|
|
80
|
+
`throw error('RESOURCE_UNAVAILABLE', { resource: id })` using the context factory.
|
|
81
|
+
The builder validates and freezes declaration metadata while preserving exact details inference.
|
|
82
|
+
Use `sdk/schema/errors` for declarations shared with handlers: this narrow entrypoint keeps the
|
|
83
|
+
Schema compiler and Kernel Schema initialization out of the deployed Runtime.
|
|
84
|
+
Error declarations are not yet published in the installed Kernel Schema.
|
|
85
|
+
|
|
37
86
|
## Development
|
|
38
87
|
|
|
88
|
+
### Core Identity requirements
|
|
89
|
+
|
|
90
|
+
Use `requirements({ core: [{ subject, functions, classes, authority }] })` to declare capabilities
|
|
91
|
+
for an Identity in the Application's local Core. `subject` is the resolved Core Node; each entry
|
|
92
|
+
must request at least one capability. The top-level `functions`, `classes`, and `authority` members
|
|
93
|
+
describe capabilities for the Domain principal.
|
|
94
|
+
|
|
95
|
+
This replaces `requirements.profiles`. Rename that property to `core` and imported
|
|
96
|
+
`CapabilityProfileRequirement` / `CapabilityProfileRequirementInput` types to `CoreRequirement` /
|
|
97
|
+
`CoreRequirementInput`. Builds emit `requirements.capabilities.core`; new releases use Publication
|
|
98
|
+
v3 and require a Kernel that supports it. That Kernel can restore historical v2 Publications and
|
|
99
|
+
installation ledgers without changing their existing authority or integrity evidence.
|
|
100
|
+
|
|
39
101
|
### Prerequisites
|
|
40
102
|
|
|
41
103
|
- Node.js 26.7.0 (default) or Node.js 24; published packages remain compatible with Node.js 22+
|
|
42
|
-
- pnpm
|
|
104
|
+
- pnpm 12.1.0
|
|
43
105
|
|
|
44
106
|
### Setup
|
|
45
107
|
|
|
46
|
-
The
|
|
108
|
+
The repository installs autonomously from its versioned npm-only lockfile:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
git clone https://github.com/astrale-os/sdk.git
|
|
112
|
+
cd sdk
|
|
113
|
+
./setup.sh
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
It can also be consumed as a submodule of the main Astrale workspace:
|
|
47
117
|
|
|
48
118
|
```bash
|
|
49
119
|
git clone --recursive https://github.com/astrale-os/workspace.git
|
|
@@ -65,7 +135,7 @@ pnpm check:issues # Validate structured cross-repository issues
|
|
|
65
135
|
The structured [Domain authoring knowledge](knowledge/README.md) is the source for contributor
|
|
66
136
|
guidance and the generated linter policy.
|
|
67
137
|
|
|
68
|
-
### Domain lint
|
|
138
|
+
### Domain lint configuration
|
|
69
139
|
|
|
70
140
|
`astrale-domain lint` defaults to the canonical layer roots and aliases, including `functions/`,
|
|
71
141
|
`#functions`, and `#functions/*`. A Domain that uses different physical vocabulary can remap a
|
|
@@ -75,19 +145,57 @@ semantic layer in `astrale.lint.json` without changing the rules attached to tha
|
|
|
75
145
|
{
|
|
76
146
|
"layers": {
|
|
77
147
|
"functions": {
|
|
78
|
-
"sourcePath": "
|
|
79
|
-
"alias": "#
|
|
148
|
+
"sourcePath": "operations/",
|
|
149
|
+
"alias": "#operations"
|
|
80
150
|
}
|
|
81
151
|
}
|
|
82
152
|
}
|
|
83
153
|
```
|
|
84
154
|
|
|
85
|
-
The linter then expects `
|
|
155
|
+
The linter then expects `operations/`, `#operations`, and `#operations/*` in the source tree,
|
|
86
156
|
`compilerOptions.paths`, and `package.json#imports`. Omit the file to keep the canonical defaults.
|
|
87
157
|
|
|
158
|
+
If a Domain rule has a known false positive or evaluator defect, disable that exact rule for the
|
|
159
|
+
whole project with a committed reason:
|
|
160
|
+
|
|
161
|
+
```json
|
|
162
|
+
{
|
|
163
|
+
"disabledRules": {
|
|
164
|
+
"PRV-XDOM-REQ": "False positive for a generated Provider wrapper; reported upstream."
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Disabled rules are skipped before evaluation and remain visible in lint coverage and reports. Use
|
|
170
|
+
`// astrale-disable-next-line RULE-ID -- reason` for an isolated conclusive violation instead. A
|
|
171
|
+
project rule disable does not bypass generic Oxlint, project admission, type-universe checks, or
|
|
172
|
+
linter tool failures.
|
|
173
|
+
|
|
88
174
|
Structured review [issues](issues/README.md) retain observation-first evidence and later governance
|
|
89
175
|
attachments without becoming current contract authority.
|
|
90
176
|
|
|
177
|
+
## Dataset references
|
|
178
|
+
|
|
179
|
+
A Dataset can materialize a projected Node explicitly with `ref`, using its resolved local or
|
|
180
|
+
direct-dependency definition:
|
|
181
|
+
|
|
182
|
+
```typescript
|
|
183
|
+
const demo = defineDataset(Schema, {
|
|
184
|
+
id: 'demo',
|
|
185
|
+
graph({ domain, ref }) {
|
|
186
|
+
const member = ref(domain.core.nodes.member)
|
|
187
|
+
// Repeating ref returns the same Dataset Node. node() always creates a separate identity.
|
|
188
|
+
return { member }
|
|
189
|
+
},
|
|
190
|
+
})
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
`ref` uses the canonical symbolic Schema projection for Class, Function, Policy, View and Core
|
|
194
|
+
facts. The Dataset's `references` table retains the explicit association between each projected
|
|
195
|
+
NodePath and its Dataset Node ID through encoding and decoding. Matching properties or slugs do
|
|
196
|
+
not create that association. Studio uses it when simulating `sameNode` and reference endpoints;
|
|
197
|
+
a missing association makes that simulation unavailable.
|
|
198
|
+
|
|
91
199
|
## License
|
|
92
200
|
|
|
93
201
|
Apache License 2.0 — see [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Domain, ResolvedMethod, schema } from '../../platform/schema/index.js';
|
|
2
|
+
import type { DeclaredErrors, NoDeclaredErrors } from '../error/index.js';
|
|
3
|
+
import type { Integrations } from '../integration/index.js';
|
|
4
|
+
import type { ActionContext, ResolvedCallable } from './context.js';
|
|
5
|
+
import type { ActionOutputOf } from './output.js';
|
|
6
|
+
export type Values<Value> = Value[keyof Value];
|
|
7
|
+
type MethodValues<Class> = Class extends {
|
|
8
|
+
readonly self: {
|
|
9
|
+
readonly methods: {
|
|
10
|
+
readonly byKey: infer Instance extends Readonly<Record<string, unknown>>;
|
|
11
|
+
};
|
|
12
|
+
readonly static: {
|
|
13
|
+
readonly methods: {
|
|
14
|
+
readonly byKey: infer Static extends Readonly<Record<string, unknown>>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
} ? Values<Instance> | Values<Static> : never;
|
|
19
|
+
type Executable<Callable> = Callable extends ResolvedMethod ? Callable extends {
|
|
20
|
+
readonly executable: true;
|
|
21
|
+
} ? Callable : never : Callable;
|
|
22
|
+
/** Every root-owned callable implementation contract, independent of Function or Method topology. */
|
|
23
|
+
export type LocalCallable<DomainValue extends Domain> = Extract<Values<DomainValue['functions']>, ResolvedCallable> | Extract<Executable<MethodValues<Values<DomainValue['classes']>>>, ResolvedCallable>;
|
|
24
|
+
export type ActionAddressOf<Callable> = Callable extends {
|
|
25
|
+
readonly key: `${string}:function.${infer Name}`;
|
|
26
|
+
} ? Name : Callable extends {
|
|
27
|
+
readonly key: `${string}:class.${infer Owner}.method.${infer Name}`;
|
|
28
|
+
} ? `${Owner}.${Name}` : never;
|
|
29
|
+
export type ResolvedDomainOf<Schema extends schema.DomainSchema> = Extract<schema.DomainOf<Schema>, Domain>;
|
|
30
|
+
/** SDK Action address derived mechanically from the canonical local callable key. */
|
|
31
|
+
export type ActionAddress<Schema extends schema.DomainSchema> = ActionAddressOf<LocalCallable<ResolvedDomainOf<Schema>>>;
|
|
32
|
+
export type CallableAtAddress<Schema extends schema.DomainSchema, Address extends string> = LocalCallable<ResolvedDomainOf<Schema>> extends infer Callable ? Callable extends unknown ? ActionAddressOf<Callable> extends Address ? Callable : never : never : never;
|
|
33
|
+
export type Action<Callable extends ResolvedCallable, Definitions extends Integrations = Readonly<Record<never, never>>, DomainValue extends Domain = Domain, Errors extends DeclaredErrors = NoDeclaredErrors> = (context: ActionContext<Callable, DomainValue, Definitions, Errors>) => Promise<ActionOutputOf<Callable>>;
|
|
34
|
+
declare const ACTION_SCHEMA: unique symbol;
|
|
35
|
+
/** Sealed standalone Action awaiting canonical callable association by Runtime admission. */
|
|
36
|
+
export interface ActionDefinition<Schema extends schema.DomainSchema = schema.DomainSchema, Address extends ActionAddress<Schema> = ActionAddress<Schema>, Definitions extends Integrations = Readonly<Record<never, never>>, Errors extends DeclaredErrors = NoDeclaredErrors> {
|
|
37
|
+
readonly kind: 'action';
|
|
38
|
+
readonly address: Address;
|
|
39
|
+
readonly run: Action<Extract<CallableAtAddress<Schema, Address>, ResolvedCallable>, Definitions, ResolvedDomainOf<Schema>, Errors>;
|
|
40
|
+
/** Invariant type-only Schema witness; absent from emitted JavaScript. */
|
|
41
|
+
readonly [ACTION_SCHEMA]: (schema: Schema) => Schema;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { defineAction } from './define.js';
|
|
2
|
+
export type { Action, ActionDefinition } from './action.js';
|
|
3
|
+
export type { ActionContext, ActionExecution, Caller, DomainGraphExecutor, DomainGraphExecutors, DomainKernelSessions, } from './context.js';
|
|
4
|
+
export type { ActionBinary, ActionOutputOf } from './output.js';
|
|
5
|
+
export type { DeclaredErrorDefinition, DeclaredErrorFactory, DeclaredErrorFamily, DeclaredErrorOptions, DeclaredErrors, } from '../error/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { defineAction } from './define.js';
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { AuthenticationEvidence, Grant, IdentityId } from '../../platform/auth/index.js';
|
|
2
|
+
import type { BoundClientSession } from '../../platform/client/session/index.js';
|
|
3
|
+
import type { NodeId } from '../../platform/graph/node/index.js';
|
|
4
|
+
import type { CallableInputOf, Domain, ResolvedFunction, ResolvedMethod } from '../../platform/schema/index.js';
|
|
5
|
+
import type { HandlerDependencies } from '../dependency/index.js';
|
|
6
|
+
import type { DeclaredErrorFactory, DeclaredErrors, NoDeclaredErrors } from '../error/index.js';
|
|
7
|
+
import type { IntegrationClients, Integrations } from '../integration/index.js';
|
|
8
|
+
import type { MutationExecutor } from '../mutation/index.js';
|
|
9
|
+
import type { QueryExecutor } from '../query/index.js';
|
|
10
|
+
export type ResolvedCallable = ResolvedFunction | ResolvedMethod;
|
|
11
|
+
/** Bearer-free caller evidence established before an Action or Workflow runs. */
|
|
12
|
+
export interface AuthenticatedCaller {
|
|
13
|
+
readonly kind: 'authenticated';
|
|
14
|
+
/** Exact effective caller Identity. Access fails when authority is compound. */
|
|
15
|
+
readonly identity: IdentityId;
|
|
16
|
+
/** Identity whose credential directly authenticated this invocation. */
|
|
17
|
+
readonly principal: IdentityId;
|
|
18
|
+
readonly authority: Grant;
|
|
19
|
+
readonly authentication: AuthenticationEvidence;
|
|
20
|
+
}
|
|
21
|
+
export interface AnonymousCaller {
|
|
22
|
+
readonly kind: 'anonymous';
|
|
23
|
+
}
|
|
24
|
+
export type Caller = AuthenticatedCaller | AnonymousCaller;
|
|
25
|
+
/** One invocation lifetime, retained without exposing Server implementation details. */
|
|
26
|
+
export interface ActionExecution {
|
|
27
|
+
readonly signal: AbortSignal;
|
|
28
|
+
/** Absolute Unix time in milliseconds. */
|
|
29
|
+
readonly deadline: number;
|
|
30
|
+
readonly idempotencyKey?: string;
|
|
31
|
+
readonly background: (task: () => void | PromiseLike<unknown>) => void;
|
|
32
|
+
readonly sleep: (durationMs: number) => Promise<void>;
|
|
33
|
+
readonly request?: {
|
|
34
|
+
body(): Uint8Array;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export interface DomainGraphExecutor<DomainValue extends Domain = Domain> {
|
|
38
|
+
readonly query: QueryExecutor<DomainValue>;
|
|
39
|
+
readonly mutate: MutationExecutor<DomainValue>;
|
|
40
|
+
}
|
|
41
|
+
export type DomainGraphExecutors<DomainValue extends Domain = Domain> = Readonly<DomainGraphExecutor<DomainValue> & Record<'caller' | 'self' | 'union', DomainGraphExecutor<DomainValue>>>;
|
|
42
|
+
/** Self-default Kernel session with one level of explicit authority selection. */
|
|
43
|
+
export type DomainKernelSessions = Readonly<BoundClientSession & Record<'caller' | 'self' | 'union', BoundClientSession>>;
|
|
44
|
+
type AuthorityOf<Callable, DomainValue extends Domain> = Callable extends {
|
|
45
|
+
readonly auth: 'anonymous';
|
|
46
|
+
} ? {
|
|
47
|
+
readonly caller: AnonymousCaller;
|
|
48
|
+
readonly dependencies: null;
|
|
49
|
+
readonly kernel: null;
|
|
50
|
+
readonly graph: null;
|
|
51
|
+
readonly query?: never;
|
|
52
|
+
readonly mutate?: never;
|
|
53
|
+
} | {
|
|
54
|
+
readonly caller: AuthenticatedCaller;
|
|
55
|
+
readonly dependencies: HandlerDependencies<DomainValue>;
|
|
56
|
+
readonly kernel: DomainKernelSessions;
|
|
57
|
+
readonly graph: DomainGraphExecutors<DomainValue>;
|
|
58
|
+
/** Convenience executor using the installed Domain authority (`graph.self`). */
|
|
59
|
+
readonly query: QueryExecutor<DomainValue>;
|
|
60
|
+
/** Convenience executor using the installed Domain authority (`graph.self`). */
|
|
61
|
+
readonly mutate: MutationExecutor<DomainValue>;
|
|
62
|
+
} : {
|
|
63
|
+
readonly caller: AuthenticatedCaller;
|
|
64
|
+
readonly dependencies: HandlerDependencies<DomainValue>;
|
|
65
|
+
readonly kernel: DomainKernelSessions;
|
|
66
|
+
readonly graph: DomainGraphExecutors<DomainValue>;
|
|
67
|
+
/** Convenience executor using the installed Domain authority (`graph.self`). */
|
|
68
|
+
readonly query: QueryExecutor<DomainValue>;
|
|
69
|
+
/** Convenience executor using the installed Domain authority (`graph.self`). */
|
|
70
|
+
readonly mutate: MutationExecutor<DomainValue>;
|
|
71
|
+
};
|
|
72
|
+
type SelfOf<Callable> = Callable extends ResolvedMethod<unknown, unknown, false> ? {
|
|
73
|
+
readonly self: NodeId;
|
|
74
|
+
} : {
|
|
75
|
+
readonly self?: never;
|
|
76
|
+
};
|
|
77
|
+
/** Exact single-step Action context derived from one resolved callable. */
|
|
78
|
+
export type ActionContext<Callable extends ResolvedCallable, DomainValue extends Domain = Domain, Definitions extends Integrations = Readonly<Record<never, never>>, Errors extends DeclaredErrors = NoDeclaredErrors> = {
|
|
79
|
+
/** Exact admitted Domain retained by the Build being executed. */
|
|
80
|
+
readonly domain: DomainValue;
|
|
81
|
+
readonly input: CallableInputOf<Callable>;
|
|
82
|
+
readonly integrations: IntegrationClients<Definitions>;
|
|
83
|
+
readonly execution: ActionExecution;
|
|
84
|
+
/** Construct one implementation-declared safe business error for `throw error(...)`. */
|
|
85
|
+
readonly error: DeclaredErrorFactory<Errors>;
|
|
86
|
+
} & AuthorityOf<Callable, DomainValue> & SelfOf<Callable>;
|
|
87
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { schema } from '../../platform/schema/index.js';
|
|
2
|
+
import type { DeclaredErrorOptions, DeclaredErrors, NoDeclaredErrors } from '../error/index.js';
|
|
3
|
+
import type { Integrations } from '../integration/index.js';
|
|
4
|
+
import type { Action, ActionAddress, ActionDefinition, CallableAtAddress, ResolvedDomainOf } from './action.js';
|
|
5
|
+
import type { ResolvedCallable } from './context.js';
|
|
6
|
+
/** Define one simple single-step implementation by its SDK Action address. */
|
|
7
|
+
export declare function defineAction<Schema extends schema.DomainSchema, Definitions extends Integrations = Readonly<Record<never, never>>>(): {
|
|
8
|
+
<const Address extends ActionAddress<Schema>>(address: Address, run: Action<Extract<CallableAtAddress<Schema, Address>, ResolvedCallable>, Definitions, ResolvedDomainOf<Schema>, NoDeclaredErrors>): ActionDefinition<Schema, Address, Definitions, NoDeclaredErrors>;
|
|
9
|
+
<const Address extends ActionAddress<Schema>, const Errors extends DeclaredErrors>(address: Address, options: DeclaredErrorOptions<Errors>, run: Action<Extract<CallableAtAddress<Schema, Address>, ResolvedCallable>, Definitions, ResolvedDomainOf<Schema>, Errors>): ActionDefinition<Schema, Address, Definitions, Errors>;
|
|
10
|
+
};
|
|
11
|
+
/** True only for an Action produced by defineAction in this SDK package root. */
|
|
12
|
+
export declare function isAction(input: unknown): input is ActionDefinition;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { patterns } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
2
|
+
import { rememberDeclaredErrors } from '../error/index.js';
|
|
3
|
+
const admittedActions = new WeakSet();
|
|
4
|
+
/** Define one simple single-step implementation by its SDK Action address. */
|
|
5
|
+
export function defineAction() {
|
|
6
|
+
return function define(address, optionsOrRun, possibleRun) {
|
|
7
|
+
acceptActionAddress(address);
|
|
8
|
+
const options = possibleRun === undefined ? undefined : optionsOrRun;
|
|
9
|
+
const run = possibleRun ?? optionsOrRun;
|
|
10
|
+
if (typeof run !== 'function')
|
|
11
|
+
throw new TypeError('Action run must be a function.');
|
|
12
|
+
const action = Object.freeze({ kind: 'action', address, run });
|
|
13
|
+
if (options !== undefined)
|
|
14
|
+
rememberDeclaredErrors(action, options);
|
|
15
|
+
admittedActions.add(action);
|
|
16
|
+
return action;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/** True only for an Action produced by defineAction in this SDK package root. */
|
|
20
|
+
export function isAction(input) {
|
|
21
|
+
return input !== null && typeof input === 'object' && admittedActions.has(input);
|
|
22
|
+
}
|
|
23
|
+
function acceptActionAddress(input) {
|
|
24
|
+
if (typeof input !== 'string')
|
|
25
|
+
invalidAddress(input);
|
|
26
|
+
const members = input.split('.');
|
|
27
|
+
if ((members.length !== 1 && members.length !== 2) ||
|
|
28
|
+
members.some((member) => !patterns.memberName.test(member))) {
|
|
29
|
+
invalidAddress(input);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function invalidAddress(input) {
|
|
33
|
+
throw new TypeError(`Invalid Action address: ${JSON.stringify(input)}.`);
|
|
34
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { defineAction, isAction } from './define.js';
|
|
2
|
+
export type { Action, ActionAddress, ActionAddressOf, ActionDefinition, CallableAtAddress, LocalCallable, ResolvedDomainOf, } from './action.js';
|
|
3
|
+
export type { ActionContext, ActionExecution, AnonymousCaller, AuthenticatedCaller, Caller, DomainGraphExecutor, DomainGraphExecutors, DomainKernelSessions, ResolvedCallable, } from './context.js';
|
|
4
|
+
export type { ActionBinary, ActionOutputOf } from './output.js';
|
|
5
|
+
export type { DeclaredErrorDefinition, DeclaredErrorFactory, DeclaredErrorFamily, DeclaredErrorOptions, DeclaredErrors, } from '../error/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { defineAction, isAction } from './define.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BinaryOutput, BufferedBinaryResult, StreamingBinaryResult } from '@astrale-os/kernel-core/callable';
|
|
2
|
+
import type { CallableResultOf } from '../../platform/schema/index.js';
|
|
3
|
+
import type { ResolvedCallable } from './context.js';
|
|
4
|
+
/** Logical output authored for the callable's exact value, stream, or binary mode. */
|
|
5
|
+
export type ActionOutputOf<Callable extends ResolvedCallable> = CallableResultOf<Callable, BinaryOutput>;
|
|
6
|
+
export type { BinaryOutput as ActionBinary, BufferedBinaryResult, StreamingBinaryResult };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { schema } from '../platform/schema/index.js';
|
|
2
|
+
import type { Requirements } from './requirements/index.js';
|
|
3
|
+
import type { Routes } from './routes/index.js';
|
|
4
|
+
import type { Runtime, SchemaOfRuntime as RuntimeSchemaOf } from './runtime/index.js';
|
|
5
|
+
import type { Frontend } from './view/index.js';
|
|
6
|
+
declare const APPLICATION_IDENTITY: unique symbol;
|
|
7
|
+
declare const APPLICATION_SCHEMA: unique symbol;
|
|
8
|
+
/** Schema-independent type witness shared by every admitted Application declaration. */
|
|
9
|
+
export interface ApplicationIdentity {
|
|
10
|
+
readonly [APPLICATION_IDENTITY]: true;
|
|
11
|
+
}
|
|
12
|
+
/** Inert source/build composition for one exact Schema and authored Runtime. */
|
|
13
|
+
export interface Application<Schema extends schema.DomainSchema = schema.DomainSchema, RuntimeValue extends Runtime<Schema> = Runtime<Schema>, FrontendValue extends Frontend<Schema> | undefined = undefined, RoutesValue extends Routes | undefined = undefined, RequirementsValue extends Requirements | undefined = undefined> extends ApplicationIdentity {
|
|
14
|
+
readonly schema: Schema;
|
|
15
|
+
readonly runtime: RuntimeValue;
|
|
16
|
+
readonly frontend?: FrontendValue;
|
|
17
|
+
readonly routes?: RoutesValue;
|
|
18
|
+
readonly requirements?: RequirementsValue;
|
|
19
|
+
readonly [APPLICATION_SCHEMA]: (schema: Schema) => Schema;
|
|
20
|
+
}
|
|
21
|
+
export type SchemaOfApplication<Value> = Value extends {
|
|
22
|
+
readonly schema: infer Schema;
|
|
23
|
+
} ? Extract<Schema, schema.DomainSchema> : never;
|
|
24
|
+
export type RuntimeOfApplication<Value> = Value extends {
|
|
25
|
+
readonly runtime: infer RuntimeValue;
|
|
26
|
+
} ? Extract<RuntimeValue, Runtime> : never;
|
|
27
|
+
export type SchemaOfRuntime<Value> = RuntimeSchemaOf<Value>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { schema } from '../platform/schema/index.js';
|
|
2
|
+
import type { Application } from './application.js';
|
|
3
|
+
import type { Requirements } from './requirements/index.js';
|
|
4
|
+
import type { Routes } from './routes/index.js';
|
|
5
|
+
import type { Runtime } from './runtime/index.js';
|
|
6
|
+
import type { Frontend } from './view/index.js';
|
|
7
|
+
export interface ApplicationInput<Schema extends schema.DomainSchema, RuntimeValue extends Runtime<Schema>, FrontendValue extends Frontend<Schema> | undefined, RoutesValue extends Routes | undefined, RequirementsValue extends Requirements | undefined> {
|
|
8
|
+
readonly schema: Schema;
|
|
9
|
+
readonly runtime: RuntimeValue;
|
|
10
|
+
readonly frontend?: FrontendValue;
|
|
11
|
+
readonly routes?: RoutesValue;
|
|
12
|
+
readonly requirements?: RequirementsValue;
|
|
13
|
+
}
|
|
14
|
+
/** Capture one inert authored Application without resolving, compiling, loading, or deploying it. */
|
|
15
|
+
export declare function defineApplication<const Schema extends schema.DomainSchema, const RuntimeValue extends Runtime<Schema>, const FrontendValue extends Frontend<Schema> | undefined = undefined, const RoutesValue extends Routes | undefined = undefined, const RequirementsValue extends Requirements | undefined = undefined>(input: ApplicationInput<Schema, RuntimeValue, FrontendValue, RoutesValue, RequirementsValue>): Application<Schema, RuntimeValue, FrontendValue, RoutesValue, RequirementsValue>;
|
|
16
|
+
export declare function isApplication(input: unknown): input is Application;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { isRequirements } from './requirements/index.js';
|
|
2
|
+
import { isRoutes } from './routes/index.js';
|
|
3
|
+
import { isRuntime } from './runtime/index.js';
|
|
4
|
+
import { isFrontend } from './view/index.js';
|
|
5
|
+
const admittedApplications = new WeakSet();
|
|
6
|
+
/** Capture one inert authored Application without resolving, compiling, loading, or deploying it. */
|
|
7
|
+
export function defineApplication(input) {
|
|
8
|
+
if (input === null || typeof input !== 'object' || Array.isArray(input))
|
|
9
|
+
invalid();
|
|
10
|
+
const allowed = new Set(['schema', 'runtime', 'frontend', 'routes', 'requirements']);
|
|
11
|
+
if (Reflect.ownKeys(input).some((key) => !allowed.has(key)))
|
|
12
|
+
invalid();
|
|
13
|
+
if (!isRuntime(input.runtime))
|
|
14
|
+
throw new TypeError('Application Runtime is not admitted.');
|
|
15
|
+
if (input.frontend !== undefined &&
|
|
16
|
+
(!isFrontend(input.frontend) || input.frontend.schema !== input.schema)) {
|
|
17
|
+
throw new TypeError('Application Frontend is not admitted for its exact Schema.');
|
|
18
|
+
}
|
|
19
|
+
if (input.routes !== undefined && !isRoutes(input.routes)) {
|
|
20
|
+
throw new TypeError('Application routes are not admitted.');
|
|
21
|
+
}
|
|
22
|
+
if (input.requirements !== undefined && !isRequirements(input.requirements)) {
|
|
23
|
+
throw new TypeError('Application requirements are not admitted.');
|
|
24
|
+
}
|
|
25
|
+
const application = Object.freeze({
|
|
26
|
+
schema: input.schema,
|
|
27
|
+
runtime: input.runtime,
|
|
28
|
+
...(input.frontend === undefined ? {} : { frontend: input.frontend }),
|
|
29
|
+
...(input.routes === undefined ? {} : { routes: input.routes }),
|
|
30
|
+
...(input.requirements === undefined ? {} : { requirements: input.requirements }),
|
|
31
|
+
});
|
|
32
|
+
admittedApplications.add(application);
|
|
33
|
+
return application;
|
|
34
|
+
}
|
|
35
|
+
export function isApplication(input) {
|
|
36
|
+
return input !== null && typeof input === 'object' && admittedApplications.has(input);
|
|
37
|
+
}
|
|
38
|
+
function invalid() {
|
|
39
|
+
throw new TypeError('Application definition may contain only schema, runtime, frontend, routes, and requirements.');
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { DependencyCallOptions, DependencyInvoker, HandlerDependencies } from './invoker.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Binary, Input } from '../../platform/client/index.js';
|
|
2
|
+
import type { SessionRequestOptions } from '../../platform/client/session/index.js';
|
|
3
|
+
import type { NodeId } from '../../platform/graph/node/index.js';
|
|
4
|
+
import type { CallableInputOf, CallableOutputOf, CallableResultOf, Domain, ResolvedMethod, KernelSchema, schema } from '../../platform/schema/index.js';
|
|
5
|
+
import type { LocalCallable } from '../action/index.js';
|
|
6
|
+
export type DependencyCallOptions = Pick<SessionRequestOptions, 'timeoutMs' | 'idempotencyKey'>;
|
|
7
|
+
type InstanceMethodOf<D extends Domain> = Extract<LocalCallable<D>, ResolvedMethod<unknown, unknown, false>>;
|
|
8
|
+
type FunctionOrStaticMethodOf<D extends Domain> = Exclude<LocalCallable<D>, ResolvedMethod<unknown, unknown, false>>;
|
|
9
|
+
type DependencyInputOf<C> = C extends unknown ? unknown extends CallableInputOf<C> ? Input : [CallableInputOf<C>] extends [void] ? undefined : Extract<CallableInputOf<C>, Input> : never;
|
|
10
|
+
type DependencyResultOf<C> = unknown extends CallableOutputOf<C> ? unknown : CallableResultOf<C, Binary>;
|
|
11
|
+
/** One declared dependency, bound to one explicitly selected invocation authority. */
|
|
12
|
+
export interface DependencyInvoker<D extends Domain> {
|
|
13
|
+
readonly invoke: {
|
|
14
|
+
<const C extends FunctionOrStaticMethodOf<D>>(select: (domain: D) => C, input: NoInfer<DependencyInputOf<C>>, options?: DependencyCallOptions): Promise<DependencyResultOf<C>>;
|
|
15
|
+
<const C extends InstanceMethodOf<D>>(select: (domain: D) => C, instance: NodeId, input: NoInfer<DependencyInputOf<C>>, options?: DependencyCallOptions): Promise<DependencyResultOf<C>>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Direct Schema aliases with explicit authority selection and no default invoke.
|
|
20
|
+
* self is the executing Domain; caller forwards the incoming Grant; union combines both.
|
|
21
|
+
* The canonical Kernel is exposed through context.kernel.
|
|
22
|
+
*/
|
|
23
|
+
export type HandlerDependencies<D extends Domain> = Readonly<{
|
|
24
|
+
[Alias in keyof D['dependencies'] as D['dependencies'][Alias] extends schema.DomainOf<KernelSchema> ? never : Alias]: Readonly<Record<'caller' | 'self' | 'union', DependencyInvoker<Extract<D['dependencies'][Alias], Domain>>>>;
|
|
25
|
+
}>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { DeclaredErrorDefinition } from '../../platform/schema/error.js';
|
|
3
|
+
import * as value from '../../platform/value/index.js';
|
|
4
|
+
export type { DeclaredErrorDefinition, DeclaredErrorFamily } from '../../platform/schema/error.js';
|
|
5
|
+
export type DeclaredErrors = Readonly<Record<string, DeclaredErrorDefinition>>;
|
|
6
|
+
export type NoDeclaredErrors = Readonly<Record<never, never>>;
|
|
7
|
+
export interface DeclaredErrorOptions<out Errors extends DeclaredErrors = DeclaredErrors> {
|
|
8
|
+
readonly errors: Errors;
|
|
9
|
+
}
|
|
10
|
+
export type DeclaredErrorFactory<Errors extends DeclaredErrors> = <Code extends Extract<keyof Errors, string>>(code: Code, details: z.input<Errors[Code]['details']>) => Error;
|
|
11
|
+
interface DeclaredErrorRecord {
|
|
12
|
+
readonly definition: object;
|
|
13
|
+
readonly code: string;
|
|
14
|
+
readonly family: DeclaredErrorDefinition['family'];
|
|
15
|
+
readonly message: string;
|
|
16
|
+
readonly details: value.Object;
|
|
17
|
+
}
|
|
18
|
+
/** Retain one implementation-local expected-error contract without publishing it in the Schema. */
|
|
19
|
+
export declare function rememberDeclaredErrors(definition: object, input: unknown): void;
|
|
20
|
+
/** Create a receiver-free factory closed over one admitted Action or Workflow definition. */
|
|
21
|
+
export declare function declaredErrorFactory<Errors extends DeclaredErrors>(definition: object): DeclaredErrorFactory<Errors>;
|
|
22
|
+
/** Return admitted evidence only when the error belongs to the active implementation. */
|
|
23
|
+
export declare function declaredErrorOf(input: unknown, definition: object): DeclaredErrorRecord | undefined;
|