@astrale-os/sdk 0.4.19 → 0.5.0-beta.2
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 +5 -3
- package/dist/auth/exchange.d.ts +11 -0
- package/dist/auth/exchange.d.ts.map +1 -0
- package/dist/auth/exchange.js +8 -0
- package/dist/auth/exchange.js.map +1 -0
- package/dist/auth/index.d.ts +4 -15
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +3 -10
- package/dist/auth/index.js.map +1 -1
- package/dist/capability/client.d.ts +25 -0
- package/dist/capability/client.d.ts.map +1 -0
- package/dist/capability/client.js +147 -0
- package/dist/capability/client.js.map +1 -0
- package/dist/capability/contract.d.ts +70 -0
- package/dist/capability/contract.d.ts.map +1 -0
- package/dist/capability/contract.js +3 -0
- package/dist/capability/contract.js.map +1 -0
- package/dist/capability/define.d.ts +14 -0
- package/dist/capability/define.d.ts.map +1 -0
- package/dist/capability/define.js +145 -0
- package/dist/capability/define.js.map +1 -0
- package/dist/capability/index.d.ts +3 -0
- package/dist/capability/index.d.ts.map +1 -0
- package/dist/capability/index.js +2 -0
- package/dist/capability/index.js.map +1 -0
- package/dist/cli/arguments.d.ts +21 -0
- package/dist/cli/arguments.d.ts.map +1 -0
- package/dist/cli/arguments.js +220 -0
- package/dist/cli/arguments.js.map +1 -0
- package/dist/cli/dotenv.d.ts +1 -4
- package/dist/cli/dotenv.d.ts.map +1 -1
- package/dist/cli/dotenv.js +6 -15
- package/dist/cli/dotenv.js.map +1 -1
- package/dist/cli/index.d.ts +4 -5
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +4 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/run.d.ts +4 -79
- package/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +47 -326
- package/dist/cli/run.js.map +1 -1
- package/dist/deployment/artifact/bindings.d.ts +7 -0
- package/dist/deployment/artifact/bindings.d.ts.map +1 -0
- package/dist/deployment/artifact/bindings.js +44 -0
- package/dist/deployment/artifact/bindings.js.map +1 -0
- package/dist/deployment/artifact/deployment.d.ts +35 -0
- package/dist/deployment/artifact/deployment.d.ts.map +1 -0
- package/dist/deployment/artifact/deployment.js +91 -0
- package/dist/deployment/artifact/deployment.js.map +1 -0
- package/dist/deployment/artifact/index.d.ts +5 -0
- package/dist/deployment/artifact/index.d.ts.map +1 -0
- package/dist/deployment/artifact/index.js +4 -0
- package/dist/deployment/artifact/index.js.map +1 -0
- package/dist/deployment/check/check.d.ts +8 -0
- package/dist/deployment/check/check.d.ts.map +1 -0
- package/dist/deployment/check/check.js +94 -0
- package/dist/deployment/check/check.js.map +1 -0
- package/dist/deployment/check/contract.d.ts +29 -0
- package/dist/deployment/check/contract.d.ts.map +1 -0
- package/dist/deployment/check/contract.js +2 -0
- package/dist/deployment/check/contract.js.map +1 -0
- package/dist/deployment/check/index.d.ts +3 -0
- package/dist/deployment/check/index.d.ts.map +1 -0
- package/dist/deployment/check/index.js +2 -0
- package/dist/deployment/check/index.js.map +1 -0
- package/dist/deployment/index.d.ts +7 -0
- package/dist/deployment/index.d.ts.map +1 -0
- package/dist/deployment/index.js +4 -0
- package/dist/deployment/index.js.map +1 -0
- package/dist/deployment/provider/adapter.d.ts +56 -0
- package/dist/deployment/provider/adapter.d.ts.map +1 -0
- package/dist/deployment/provider/adapter.js +84 -0
- package/dist/deployment/provider/adapter.js.map +1 -0
- package/dist/deployment/provider/config.d.ts +10 -0
- package/dist/deployment/provider/config.d.ts.map +1 -0
- package/dist/deployment/provider/config.js +8 -0
- package/dist/deployment/provider/config.js.map +1 -0
- package/dist/deployment/provider/index.d.ts +5 -0
- package/dist/deployment/provider/index.d.ts.map +1 -0
- package/dist/deployment/provider/index.js +3 -0
- package/dist/deployment/provider/index.js.map +1 -0
- package/dist/domain/app.d.ts +34 -0
- package/dist/domain/app.d.ts.map +1 -0
- package/dist/domain/app.js +2 -0
- package/dist/domain/app.js.map +1 -0
- package/dist/domain/context.d.ts +68 -0
- package/dist/domain/context.d.ts.map +1 -0
- package/dist/domain/context.js +2 -0
- package/dist/domain/context.js.map +1 -0
- package/dist/domain/define.d.ts +99 -65
- package/dist/domain/define.d.ts.map +1 -1
- package/dist/domain/define.js +78 -60
- package/dist/domain/define.js.map +1 -1
- package/dist/domain/handlers.d.ts +53 -0
- package/dist/domain/handlers.d.ts.map +1 -0
- package/dist/domain/handlers.js +88 -0
- package/dist/domain/handlers.js.map +1 -0
- package/dist/domain/implement.d.ts +5 -0
- package/dist/domain/implement.d.ts.map +1 -0
- package/dist/domain/implement.js +23 -0
- package/dist/domain/implement.js.map +1 -0
- package/dist/domain/index.d.ts +13 -4
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +7 -3
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/requirements.d.ts +26 -0
- package/dist/domain/requirements.d.ts.map +1 -0
- package/dist/domain/requirements.js +98 -0
- package/dist/domain/requirements.js.map +1 -0
- package/dist/graph/class/index.d.ts +3 -0
- package/dist/graph/class/index.d.ts.map +1 -0
- package/dist/graph/class/index.js +3 -0
- package/dist/graph/class/index.js.map +1 -0
- package/dist/graph/edge/index.d.ts +3 -0
- package/dist/graph/edge/index.d.ts.map +1 -0
- package/dist/graph/edge/index.js +3 -0
- package/dist/graph/edge/index.js.map +1 -0
- package/dist/graph/index.d.ts +10 -0
- package/dist/graph/index.d.ts.map +1 -0
- package/dist/graph/index.js +9 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/model/index.d.ts +3 -0
- package/dist/graph/model/index.d.ts.map +1 -0
- package/dist/graph/model/index.js +3 -0
- package/dist/graph/model/index.js.map +1 -0
- package/dist/graph/node/index.d.ts +3 -0
- package/dist/graph/node/index.d.ts.map +1 -0
- package/dist/graph/node/index.js +3 -0
- package/dist/graph/node/index.js.map +1 -0
- package/dist/graph/path/index.d.ts +3 -0
- package/dist/graph/path/index.d.ts.map +1 -0
- package/dist/graph/path/index.js +3 -0
- package/dist/graph/path/index.js.map +1 -0
- package/dist/graph/properties/index.d.ts +3 -0
- package/dist/graph/properties/index.d.ts.map +1 -0
- package/dist/graph/properties/index.js +3 -0
- package/dist/graph/properties/index.js.map +1 -0
- package/dist/index.d.ts +20 -27
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -47
- package/dist/index.js.map +1 -1
- package/dist/invocation/handler.d.ts +51 -0
- package/dist/invocation/handler.d.ts.map +1 -0
- package/dist/invocation/handler.js +289 -0
- package/dist/invocation/handler.js.map +1 -0
- package/dist/invocation/index.d.ts +3 -0
- package/dist/invocation/index.d.ts.map +1 -0
- package/dist/invocation/index.js +2 -0
- package/dist/invocation/index.js.map +1 -0
- package/dist/invocation/receiver.d.ts +5 -0
- package/dist/invocation/receiver.d.ts.map +1 -0
- package/dist/invocation/receiver.js +70 -0
- package/dist/invocation/receiver.js.map +1 -0
- package/dist/invocation/result.d.ts +5 -0
- package/dist/invocation/result.d.ts.map +1 -0
- package/dist/invocation/result.js +146 -0
- package/dist/invocation/result.js.map +1 -0
- package/dist/invocation/selection.d.ts +21 -0
- package/dist/invocation/selection.d.ts.map +1 -0
- package/dist/invocation/selection.js +107 -0
- package/dist/invocation/selection.js.map +1 -0
- package/dist/linter/adapters/typescript/discover.d.ts +4 -0
- package/dist/linter/adapters/typescript/discover.d.ts.map +1 -0
- package/dist/linter/adapters/typescript/discover.js +412 -0
- package/dist/linter/adapters/typescript/discover.js.map +1 -0
- package/dist/linter/adapters/typescript/evidence-admission.d.ts +5 -0
- package/dist/linter/adapters/typescript/evidence-admission.d.ts.map +1 -0
- package/dist/linter/adapters/typescript/evidence-admission.js +22 -0
- package/dist/linter/adapters/typescript/evidence-admission.js.map +1 -0
- package/dist/linter/adapters/typescript/imports.d.ts +7 -0
- package/dist/linter/adapters/typescript/imports.d.ts.map +1 -0
- package/dist/linter/adapters/typescript/imports.js +171 -0
- package/dist/linter/adapters/typescript/imports.js.map +1 -0
- package/dist/linter/adapters/typescript/index.d.ts +48 -0
- package/dist/linter/adapters/typescript/index.d.ts.map +1 -0
- package/dist/linter/adapters/typescript/index.js +8 -0
- package/dist/linter/adapters/typescript/index.js.map +1 -0
- package/dist/linter/adapters/typescript/query-observation.d.ts +4 -0
- package/dist/linter/adapters/typescript/query-observation.d.ts.map +1 -0
- package/dist/linter/adapters/typescript/query-observation.js +172 -0
- package/dist/linter/adapters/typescript/query-observation.js.map +1 -0
- package/dist/linter/adapters/typescript/suppression-directives.d.ts +5 -0
- package/dist/linter/adapters/typescript/suppression-directives.d.ts.map +1 -0
- package/dist/linter/adapters/typescript/suppression-directives.js +85 -0
- package/dist/linter/adapters/typescript/suppression-directives.js.map +1 -0
- package/dist/linter/adapters/typescript/syntax.d.ts +39 -0
- package/dist/linter/adapters/typescript/syntax.d.ts.map +1 -0
- package/dist/linter/adapters/typescript/syntax.js +183 -0
- package/dist/linter/adapters/typescript/syntax.js.map +1 -0
- package/dist/linter/adapters/typescript/type-universe.d.ts +2 -0
- package/dist/linter/adapters/typescript/type-universe.d.ts.map +1 -0
- package/dist/linter/adapters/typescript/type-universe.js +265 -0
- package/dist/linter/adapters/typescript/type-universe.js.map +1 -0
- package/dist/linter/catalog/compile.d.ts +3 -0
- package/dist/linter/catalog/compile.d.ts.map +1 -0
- package/dist/linter/catalog/compile.js +111 -0
- package/dist/linter/catalog/compile.js.map +1 -0
- package/dist/linter/catalog/index.d.ts +19 -0
- package/dist/linter/catalog/index.d.ts.map +1 -0
- package/dist/linter/catalog/index.js +3 -0
- package/dist/linter/catalog/index.js.map +1 -0
- package/dist/linter/catalog/revision.d.ts +7 -0
- package/dist/linter/catalog/revision.d.ts.map +1 -0
- package/dist/linter/catalog/revision.js +13 -0
- package/dist/linter/catalog/revision.js.map +1 -0
- package/dist/linter/diagnostics/error.d.ts +10 -0
- package/dist/linter/diagnostics/error.d.ts.map +1 -0
- package/dist/linter/diagnostics/error.js +10 -0
- package/dist/linter/diagnostics/error.js.map +1 -0
- package/dist/linter/diagnostics/index.d.ts +29 -0
- package/dist/linter/diagnostics/index.d.ts.map +1 -0
- package/dist/linter/diagnostics/index.js +3 -0
- package/dist/linter/diagnostics/index.js.map +1 -0
- package/dist/linter/diagnostics/sort.d.ts +3 -0
- package/dist/linter/diagnostics/sort.d.ts.map +1 -0
- package/dist/linter/diagnostics/sort.js +27 -0
- package/dist/linter/diagnostics/sort.js.map +1 -0
- package/dist/linter/evaluation/binding/bind.d.ts +5 -0
- package/dist/linter/evaluation/binding/bind.d.ts.map +1 -0
- package/dist/linter/evaluation/binding/bind.js +356 -0
- package/dist/linter/evaluation/binding/bind.js.map +1 -0
- package/dist/linter/evaluation/binding/diagnostic.d.ts +5 -0
- package/dist/linter/evaluation/binding/diagnostic.d.ts.map +1 -0
- package/dist/linter/evaluation/binding/diagnostic.js +17 -0
- package/dist/linter/evaluation/binding/diagnostic.js.map +1 -0
- package/dist/linter/evaluation/binding/index.d.ts +2 -0
- package/dist/linter/evaluation/binding/index.d.ts.map +1 -0
- package/dist/linter/evaluation/binding/index.js +2 -0
- package/dist/linter/evaluation/binding/index.js.map +1 -0
- package/dist/linter/evaluation/contract/availability.d.ts +28 -0
- package/dist/linter/evaluation/contract/availability.d.ts.map +1 -0
- package/dist/linter/evaluation/contract/availability.js +2 -0
- package/dist/linter/evaluation/contract/availability.js.map +1 -0
- package/dist/linter/evaluation/contract/decision.d.ts +26 -0
- package/dist/linter/evaluation/contract/decision.d.ts.map +1 -0
- package/dist/linter/evaluation/contract/decision.js +2 -0
- package/dist/linter/evaluation/contract/decision.js.map +1 -0
- package/dist/linter/evaluation/contract/evidence.d.ts +12 -0
- package/dist/linter/evaluation/contract/evidence.d.ts.map +1 -0
- package/dist/linter/evaluation/contract/evidence.js +2 -0
- package/dist/linter/evaluation/contract/evidence.js.map +1 -0
- package/dist/linter/evaluation/contract/implementation.d.ts +22 -0
- package/dist/linter/evaluation/contract/implementation.d.ts.map +1 -0
- package/dist/linter/evaluation/contract/implementation.js +2 -0
- package/dist/linter/evaluation/contract/implementation.js.map +1 -0
- package/dist/linter/evaluation/contract/index.d.ts +5 -0
- package/dist/linter/evaluation/contract/index.d.ts.map +1 -0
- package/dist/linter/evaluation/contract/index.js +2 -0
- package/dist/linter/evaluation/contract/index.js.map +1 -0
- package/dist/linter/evaluation/index.d.ts +3 -0
- package/dist/linter/evaluation/index.d.ts.map +1 -0
- package/dist/linter/evaluation/index.js +2 -0
- package/dist/linter/evaluation/index.js.map +1 -0
- package/dist/linter/implementations/source/capabilities.d.ts +3 -0
- package/dist/linter/implementations/source/capabilities.d.ts.map +1 -0
- package/dist/linter/implementations/source/capabilities.js +41 -0
- package/dist/linter/implementations/source/capabilities.js.map +1 -0
- package/dist/linter/implementations/source/contract.d.ts +17 -0
- package/dist/linter/implementations/source/contract.d.ts.map +1 -0
- package/dist/linter/implementations/source/contract.js +53 -0
- package/dist/linter/implementations/source/contract.js.map +1 -0
- package/dist/linter/implementations/source/functions.d.ts +3 -0
- package/dist/linter/implementations/source/functions.d.ts.map +1 -0
- package/dist/linter/implementations/source/functions.js +102 -0
- package/dist/linter/implementations/source/functions.js.map +1 -0
- package/dist/linter/implementations/source/global.d.ts +3 -0
- package/dist/linter/implementations/source/global.d.ts.map +1 -0
- package/dist/linter/implementations/source/global.js +812 -0
- package/dist/linter/implementations/source/global.js.map +1 -0
- package/dist/linter/implementations/source/index.d.ts +4 -0
- package/dist/linter/implementations/source/index.d.ts.map +1 -0
- package/dist/linter/implementations/source/index.js +4 -0
- package/dist/linter/implementations/source/index.js.map +1 -0
- package/dist/linter/implementations/source/integrations.d.ts +3 -0
- package/dist/linter/implementations/source/integrations.d.ts.map +1 -0
- package/dist/linter/implementations/source/integrations.js +186 -0
- package/dist/linter/implementations/source/integrations.js.map +1 -0
- package/dist/linter/implementations/source/migrations.d.ts +3 -0
- package/dist/linter/implementations/source/migrations.d.ts.map +1 -0
- package/dist/linter/implementations/source/migrations.js +115 -0
- package/dist/linter/implementations/source/migrations.js.map +1 -0
- package/dist/linter/implementations/source/mutations.d.ts +3 -0
- package/dist/linter/implementations/source/mutations.d.ts.map +1 -0
- package/dist/linter/implementations/source/mutations.js +185 -0
- package/dist/linter/implementations/source/mutations.js.map +1 -0
- package/dist/linter/implementations/source/queries.d.ts +3 -0
- package/dist/linter/implementations/source/queries.d.ts.map +1 -0
- package/dist/linter/implementations/source/queries.js +1000 -0
- package/dist/linter/implementations/source/queries.js.map +1 -0
- package/dist/linter/implementations/source/rules.d.ts +3 -0
- package/dist/linter/implementations/source/rules.d.ts.map +1 -0
- package/dist/linter/implementations/source/rules.js +141 -0
- package/dist/linter/implementations/source/rules.js.map +1 -0
- package/dist/linter/implementations/source/schema.d.ts +3 -0
- package/dist/linter/implementations/source/schema.d.ts.map +1 -0
- package/dist/linter/implementations/source/schema.js +105 -0
- package/dist/linter/implementations/source/schema.js.map +1 -0
- package/dist/linter/implementations/source/shared.d.ts +42 -0
- package/dist/linter/implementations/source/shared.d.ts.map +1 -0
- package/dist/linter/implementations/source/shared.js +239 -0
- package/dist/linter/implementations/source/shared.js.map +1 -0
- package/dist/linter/implementations/source/states.d.ts +3 -0
- package/dist/linter/implementations/source/states.d.ts.map +1 -0
- package/dist/linter/implementations/source/states.js +2 -0
- package/dist/linter/implementations/source/states.js.map +1 -0
- package/dist/linter/implementations/source/tests.d.ts +3 -0
- package/dist/linter/implementations/source/tests.d.ts.map +1 -0
- package/dist/linter/implementations/source/tests.js +28 -0
- package/dist/linter/implementations/source/tests.js.map +1 -0
- package/dist/linter/implementations/source/ui.d.ts +3 -0
- package/dist/linter/implementations/source/ui.d.ts.map +1 -0
- package/dist/linter/implementations/source/ui.js +21 -0
- package/dist/linter/implementations/source/ui.js.map +1 -0
- package/dist/linter/implementations/source/utils.d.ts +3 -0
- package/dist/linter/implementations/source/utils.d.ts.map +1 -0
- package/dist/linter/implementations/source/utils.js +29 -0
- package/dist/linter/implementations/source/utils.js.map +1 -0
- package/dist/linter/implementations/source/verifiers.d.ts +3 -0
- package/dist/linter/implementations/source/verifiers.d.ts.map +1 -0
- package/dist/linter/implementations/source/verifiers.js +33 -0
- package/dist/linter/implementations/source/verifiers.js.map +1 -0
- package/dist/linter/implementations/source/views.d.ts +3 -0
- package/dist/linter/implementations/source/views.d.ts.map +1 -0
- package/dist/linter/implementations/source/views.js +36 -0
- package/dist/linter/implementations/source/views.js.map +1 -0
- package/dist/linter/implementations/source/workflows.d.ts +3 -0
- package/dist/linter/implementations/source/workflows.d.ts.map +1 -0
- package/dist/linter/implementations/source/workflows.js +308 -0
- package/dist/linter/implementations/source/workflows.js.map +1 -0
- package/dist/linter/index.d.ts +7 -8
- package/dist/linter/index.d.ts.map +1 -1
- package/dist/linter/index.js +2 -4
- package/dist/linter/index.js.map +1 -1
- package/dist/linter/lint.d.ts +22 -8
- package/dist/linter/lint.d.ts.map +1 -1
- package/dist/linter/lint.js +58 -15
- package/dist/linter/lint.js.map +1 -1
- package/dist/linter/oxlint/index.d.ts +4 -0
- package/dist/linter/oxlint/index.d.ts.map +1 -0
- package/dist/linter/oxlint/index.js +2 -0
- package/dist/linter/oxlint/index.js.map +1 -0
- package/dist/linter/oxlint/process.d.ts +6 -6
- package/dist/linter/oxlint/process.d.ts.map +1 -1
- package/dist/linter/oxlint/process.js +1 -1
- package/dist/linter/oxlint/process.js.map +1 -1
- package/dist/linter/oxlint/run.d.ts +5 -5
- package/dist/linter/oxlint/run.d.ts.map +1 -1
- package/dist/linter/oxlint/run.js +140 -20
- package/dist/linter/oxlint/run.js.map +1 -1
- package/dist/linter/oxlint-config/ignore-patterns.d.ts +6 -0
- package/dist/linter/oxlint-config/ignore-patterns.d.ts.map +1 -0
- package/dist/linter/oxlint-config/ignore-patterns.js +10 -0
- package/dist/linter/oxlint-config/ignore-patterns.js.map +1 -0
- package/dist/linter/oxlint-config/index.d.ts +5 -0
- package/dist/linter/oxlint-config/index.d.ts.map +1 -0
- package/dist/linter/oxlint-config/index.js +18 -0
- package/dist/linter/oxlint-config/index.js.map +1 -0
- package/dist/linter/packs/domain.d.ts +3 -0
- package/dist/linter/packs/domain.d.ts.map +1 -0
- package/dist/linter/packs/domain.js +8 -0
- package/dist/linter/packs/domain.js.map +1 -0
- package/dist/linter/packs/index.d.ts +9 -0
- package/dist/linter/packs/index.d.ts.map +1 -0
- package/dist/linter/packs/index.js +2 -0
- package/dist/linter/packs/index.js.map +1 -0
- package/dist/linter/policy/compile.d.ts +3 -0
- package/dist/linter/policy/compile.d.ts.map +1 -0
- package/dist/linter/policy/compile.js +256 -0
- package/dist/linter/policy/compile.js.map +1 -0
- package/dist/linter/policy/generated.d.ts +5 -0
- package/dist/linter/policy/generated.d.ts.map +1 -0
- package/dist/linter/policy/generated.js +764 -0
- package/dist/linter/policy/generated.js.map +1 -0
- package/dist/linter/policy/index.d.ts +43 -0
- package/dist/linter/policy/index.d.ts.map +1 -0
- package/dist/linter/policy/index.js +3 -0
- package/dist/linter/policy/index.js.map +1 -0
- package/dist/linter/qualification/index.d.ts +11 -0
- package/dist/linter/qualification/index.d.ts.map +1 -0
- package/dist/linter/qualification/index.js +3 -0
- package/dist/linter/qualification/index.js.map +1 -0
- package/dist/linter/qualification/query-fixtures.d.ts +3 -0
- package/dist/linter/qualification/query-fixtures.d.ts.map +1 -0
- package/dist/linter/qualification/query-fixtures.js +69 -0
- package/dist/linter/qualification/query-fixtures.js.map +1 -0
- package/dist/linter/qualification/runner.d.ts +4 -0
- package/dist/linter/qualification/runner.d.ts.map +1 -0
- package/dist/linter/qualification/runner.js +7 -0
- package/dist/linter/qualification/runner.js.map +1 -0
- package/dist/linter/report/format.d.ts +4 -0
- package/dist/linter/report/format.d.ts.map +1 -0
- package/dist/linter/report/format.js +33 -0
- package/dist/linter/report/format.js.map +1 -0
- package/dist/linter/report/index.d.ts +3 -0
- package/dist/linter/report/index.d.ts.map +1 -0
- package/dist/linter/report/index.js +2 -0
- package/dist/linter/report/index.js.map +1 -0
- package/dist/linter/requirements/index.d.ts +3 -0
- package/dist/linter/requirements/index.d.ts.map +1 -0
- package/dist/linter/requirements/index.js +2 -0
- package/dist/linter/requirements/index.js.map +1 -0
- package/dist/linter/requirements/model.d.ts +9 -0
- package/dist/linter/requirements/model.d.ts.map +1 -0
- package/dist/linter/requirements/model.js +2 -0
- package/dist/linter/requirements/model.js.map +1 -0
- package/dist/linter/requirements/registry.d.ts +4 -0
- package/dist/linter/requirements/registry.d.ts.map +1 -0
- package/dist/linter/requirements/registry.js +188 -0
- package/dist/linter/requirements/registry.js.map +1 -0
- package/dist/linter/semantics/query/decision.d.ts +5 -0
- package/dist/linter/semantics/query/decision.d.ts.map +1 -0
- package/dist/linter/semantics/query/decision.js +74 -0
- package/dist/linter/semantics/query/decision.js.map +1 -0
- package/dist/linter/semantics/query/index.d.ts +4 -0
- package/dist/linter/semantics/query/index.d.ts.map +1 -0
- package/dist/linter/semantics/query/index.js +3 -0
- package/dist/linter/semantics/query/index.js.map +1 -0
- package/dist/linter/semantics/query/observation.d.ts +36 -0
- package/dist/linter/semantics/query/observation.d.ts.map +1 -0
- package/dist/linter/semantics/query/observation.js +13 -0
- package/dist/linter/semantics/query/observation.js.map +1 -0
- package/dist/linter/suppression/apply.d.ts +4 -0
- package/dist/linter/suppression/apply.d.ts.map +1 -0
- package/dist/linter/suppression/apply.js +48 -0
- package/dist/linter/suppression/apply.js.map +1 -0
- package/dist/linter/suppression/directive.d.ts +11 -0
- package/dist/linter/suppression/directive.d.ts.map +1 -0
- package/dist/linter/suppression/directive.js +2 -0
- package/dist/linter/suppression/directive.js.map +1 -0
- package/dist/linter/suppression/index.d.ts +14 -0
- package/dist/linter/suppression/index.d.ts.map +1 -0
- package/dist/linter/suppression/index.js +2 -0
- package/dist/linter/suppression/index.js.map +1 -0
- package/dist/mutation/contract.d.ts +134 -0
- package/dist/mutation/contract.d.ts.map +1 -0
- package/dist/mutation/contract.js +2 -0
- package/dist/mutation/contract.js.map +1 -0
- package/dist/mutation/define.d.ts +9 -0
- package/dist/mutation/define.d.ts.map +1 -0
- package/dist/mutation/define.js +24 -0
- package/dist/mutation/define.js.map +1 -0
- package/dist/mutation/errors.d.ts +3 -0
- package/dist/mutation/errors.d.ts.map +1 -0
- package/dist/mutation/errors.js +30 -0
- package/dist/mutation/errors.js.map +1 -0
- package/dist/mutation/execute.d.ts +11 -0
- package/dist/mutation/execute.d.ts.map +1 -0
- package/dist/mutation/execute.js +24 -0
- package/dist/mutation/execute.js.map +1 -0
- package/dist/mutation/index.d.ts +8 -0
- package/dist/mutation/index.d.ts.map +1 -0
- package/dist/mutation/index.js +5 -0
- package/dist/mutation/index.js.map +1 -0
- package/dist/mutation/rich.d.ts +4 -0
- package/dist/mutation/rich.d.ts.map +1 -0
- package/dist/mutation/rich.js +147 -0
- package/dist/mutation/rich.js.map +1 -0
- package/dist/query/composite/contract.d.ts +37 -0
- package/dist/query/composite/contract.d.ts.map +1 -0
- package/dist/query/composite/contract.js +2 -0
- package/dist/query/composite/contract.js.map +1 -0
- package/dist/query/composite/errors.d.ts +8 -0
- package/dist/query/composite/errors.d.ts.map +1 -0
- package/dist/query/composite/errors.js +9 -0
- package/dist/query/composite/errors.js.map +1 -0
- package/dist/query/composite/index.d.ts +6 -0
- package/dist/query/composite/index.d.ts.map +1 -0
- package/dist/query/composite/index.js +3 -0
- package/dist/query/composite/index.js.map +1 -0
- package/dist/query/composite/plan.d.ts +38 -0
- package/dist/query/composite/plan.d.ts.map +1 -0
- package/dist/query/composite/plan.js +225 -0
- package/dist/query/composite/plan.js.map +1 -0
- package/dist/query/contract.d.ts +58 -0
- package/dist/query/contract.d.ts.map +1 -0
- package/dist/query/contract.js +2 -0
- package/dist/query/contract.js.map +1 -0
- package/dist/query/define.d.ts +3 -0
- package/dist/query/define.d.ts.map +1 -0
- package/dist/query/define.js +90 -0
- package/dist/query/define.js.map +1 -0
- package/dist/query/definition.d.ts +29 -0
- package/dist/query/definition.d.ts.map +1 -0
- package/dist/query/definition.js +2 -0
- package/dist/query/definition.js.map +1 -0
- package/dist/query/errors.d.ts +9 -0
- package/dist/query/errors.d.ts.map +1 -0
- package/dist/query/errors.js +15 -0
- package/dist/query/errors.js.map +1 -0
- package/dist/query/execute.d.ts +20 -0
- package/dist/query/execute.d.ts.map +1 -0
- package/dist/query/execute.js +97 -0
- package/dist/query/execute.js.map +1 -0
- package/dist/query/index.d.ts +15 -0
- package/dist/query/index.d.ts.map +1 -0
- package/dist/query/index.js +8 -0
- package/dist/query/index.js.map +1 -0
- package/dist/query/node.d.ts +109 -0
- package/dist/query/node.d.ts.map +1 -0
- package/dist/query/node.js +164 -0
- package/dist/query/node.js.map +1 -0
- package/dist/query/result/contract.d.ts +23 -0
- package/dist/query/result/contract.d.ts.map +1 -0
- package/dist/query/result/contract.js +2 -0
- package/dist/query/result/contract.js.map +1 -0
- package/dist/query/result/index.d.ts +3 -0
- package/dist/query/result/index.d.ts.map +1 -0
- package/dist/query/result/index.js +2 -0
- package/dist/query/result/index.js.map +1 -0
- package/dist/query/result/projection.d.ts +3 -0
- package/dist/query/result/projection.d.ts.map +1 -0
- package/dist/query/result/projection.js +100 -0
- package/dist/query/result/projection.js.map +1 -0
- package/dist/query/selection.d.ts +4 -0
- package/dist/query/selection.d.ts.map +1 -0
- package/dist/query/selection.js +25 -0
- package/dist/query/selection.js.map +1 -0
- package/dist/react/compile.d.ts +9 -0
- package/dist/react/compile.d.ts.map +1 -0
- package/dist/react/compile.js +64 -0
- package/dist/react/compile.js.map +1 -0
- package/dist/react/define.d.ts +8 -0
- package/dist/react/define.d.ts.map +1 -0
- package/dist/react/define.js +89 -0
- package/dist/react/define.js.map +1 -0
- package/dist/react/definition.d.ts +69 -0
- package/dist/react/definition.d.ts.map +1 -0
- package/dist/react/definition.js +2 -0
- package/dist/react/definition.js.map +1 -0
- package/dist/react/index.d.ts +4 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +3 -0
- package/dist/react/index.js.map +1 -0
- package/dist/result/index.d.ts +3 -0
- package/dist/result/index.d.ts.map +1 -0
- package/dist/result/index.js +2 -0
- package/dist/result/index.js.map +1 -0
- package/dist/result/result.d.ts +10 -0
- package/dist/result/result.d.ts.map +1 -0
- package/dist/result/result.js +7 -0
- package/dist/result/result.js.map +1 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +3 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/kernel/index.d.ts +3 -0
- package/dist/schema/kernel/index.d.ts.map +1 -0
- package/dist/schema/kernel/index.js +3 -0
- package/dist/schema/kernel/index.js.map +1 -0
- package/dist/schema/v1/index.d.ts +3 -0
- package/dist/schema/v1/index.d.ts.map +1 -0
- package/dist/schema/v1/index.js +3 -0
- package/dist/schema/v1/index.js.map +1 -0
- package/dist/server/application.d.ts +36 -0
- package/dist/server/application.d.ts.map +1 -0
- package/dist/server/application.js +126 -0
- package/dist/server/application.js.map +1 -0
- package/dist/server/index.d.ts +4 -13
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +2 -8
- package/dist/server/index.js.map +1 -1
- package/dist/server/node/index.d.ts +3 -0
- package/dist/server/node/index.d.ts.map +1 -0
- package/dist/server/node/index.js +2 -0
- package/dist/server/node/index.js.map +1 -0
- package/dist/server/node/server.d.ts +14 -0
- package/dist/server/node/server.d.ts.map +1 -0
- package/dist/server/node/server.js +71 -0
- package/dist/server/node/server.js.map +1 -0
- package/dist/server/remote.d.ts +56 -0
- package/dist/server/remote.d.ts.map +1 -0
- package/dist/server/remote.js +798 -0
- package/dist/server/remote.js.map +1 -0
- package/dist/server/source.d.ts +13 -0
- package/dist/server/source.d.ts.map +1 -0
- package/dist/server/source.js +38 -0
- package/dist/server/source.js.map +1 -0
- package/dist/state/index.d.ts +4 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +2 -0
- package/dist/state/index.js.map +1 -0
- package/dist/state/machine.d.ts +28 -0
- package/dist/state/machine.d.ts.map +1 -0
- package/dist/state/machine.js +32 -0
- package/dist/state/machine.js.map +1 -0
- package/dist/state/relation.d.ts +28 -0
- package/dist/state/relation.d.ts.map +1 -0
- package/dist/state/relation.js +48 -0
- package/dist/state/relation.js.map +1 -0
- package/dist/value/index.d.ts +3 -0
- package/dist/value/index.d.ts.map +1 -0
- package/dist/value/index.js +3 -0
- package/dist/value/index.js.map +1 -0
- package/dist/view/admission.d.ts +6 -0
- package/dist/view/admission.d.ts.map +1 -0
- package/dist/view/admission.js +43 -0
- package/dist/view/admission.js.map +1 -0
- package/dist/view/compile.d.ts +15 -0
- package/dist/view/compile.d.ts.map +1 -0
- package/dist/view/compile.js +189 -0
- package/dist/view/compile.js.map +1 -0
- package/dist/view/define.d.ts +20 -0
- package/dist/view/define.d.ts.map +1 -0
- package/dist/view/define.js +236 -0
- package/dist/view/define.js.map +1 -0
- package/dist/view/definition.d.ts +96 -0
- package/dist/view/definition.d.ts.map +1 -0
- package/dist/view/definition.js +2 -0
- package/dist/view/definition.js.map +1 -0
- package/dist/view/index.d.ts +4 -0
- package/dist/view/index.d.ts.map +1 -0
- package/dist/view/index.js +3 -0
- package/dist/view/index.js.map +1 -0
- package/dist/workflow/binding.d.ts +43 -0
- package/dist/workflow/binding.d.ts.map +1 -0
- package/dist/workflow/binding.js +32 -0
- package/dist/workflow/binding.js.map +1 -0
- package/dist/workflow/contract.d.ts +57 -0
- package/dist/workflow/contract.d.ts.map +1 -0
- package/dist/workflow/contract.js +2 -0
- package/dist/workflow/contract.js.map +1 -0
- package/dist/workflow/define.d.ts +4 -0
- package/dist/workflow/define.d.ts.map +1 -0
- package/dist/workflow/define.js +57 -0
- package/dist/workflow/define.js.map +1 -0
- package/dist/workflow/index.d.ts +7 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/index.js +4 -0
- package/dist/workflow/index.js.map +1 -0
- package/dist/workflow/runner.d.ts +4 -0
- package/dist/workflow/runner.d.ts.map +1 -0
- package/dist/workflow/runner.js +24 -0
- package/dist/workflow/runner.js.map +1 -0
- package/dist/workflow/step/index.d.ts +3 -0
- package/dist/workflow/step/index.d.ts.map +1 -0
- package/dist/workflow/step/index.js +2 -0
- package/dist/workflow/step/index.js.map +1 -0
- package/dist/workflow/step/inline.d.ts +6 -0
- package/dist/workflow/step/inline.d.ts.map +1 -0
- package/dist/workflow/step/inline.js +44 -0
- package/dist/workflow/step/inline.js.map +1 -0
- package/dist/workflow/step/step.d.ts +5 -0
- package/dist/workflow/step/step.d.ts.map +1 -0
- package/dist/workflow/step/step.js +2 -0
- package/dist/workflow/step/step.js.map +1 -0
- package/package.json +117 -24
- package/dist/auth/authenticate.d.ts +0 -24
- package/dist/auth/authenticate.d.ts.map +0 -1
- package/dist/auth/authenticate.js +0 -29
- package/dist/auth/authenticate.js.map +0 -1
- package/dist/auth/check.d.ts +0 -38
- package/dist/auth/check.d.ts.map +0 -1
- package/dist/auth/check.js +0 -50
- package/dist/auth/check.js.map +0 -1
- package/dist/auth/compose.d.ts +0 -41
- package/dist/auth/compose.d.ts.map +0 -1
- package/dist/auth/compose.js +0 -45
- package/dist/auth/compose.js.map +0 -1
- package/dist/auth/errors.d.ts +0 -16
- package/dist/auth/errors.d.ts.map +0 -1
- package/dist/auth/errors.js +0 -26
- package/dist/auth/errors.js.map +0 -1
- package/dist/auth/function-context.d.ts +0 -28
- package/dist/auth/function-context.d.ts.map +0 -1
- package/dist/auth/function-context.js +0 -47
- package/dist/auth/function-context.js.map +0 -1
- package/dist/auth/identity.d.ts +0 -18
- package/dist/auth/identity.d.ts.map +0 -1
- package/dist/auth/identity.js +0 -2
- package/dist/auth/identity.js.map +0 -1
- package/dist/auth/issuer-mint.d.ts +0 -53
- package/dist/auth/issuer-mint.d.ts.map +0 -1
- package/dist/auth/issuer-mint.js +0 -35
- package/dist/auth/issuer-mint.js.map +0 -1
- package/dist/auth/kernel-client.d.ts +0 -37
- package/dist/auth/kernel-client.d.ts.map +0 -1
- package/dist/auth/kernel-client.js +0 -111
- package/dist/auth/kernel-client.js.map +0 -1
- package/dist/auth/resolve.d.ts +0 -19
- package/dist/auth/resolve.d.ts.map +0 -1
- package/dist/auth/resolve.js +0 -43
- package/dist/auth/resolve.js.map +0 -1
- package/dist/auth/sign.d.ts +0 -15
- package/dist/auth/sign.d.ts.map +0 -1
- package/dist/auth/sign.js +0 -24
- package/dist/auth/sign.js.map +0 -1
- package/dist/auth/verify.d.ts +0 -28
- package/dist/auth/verify.d.ts.map +0 -1
- package/dist/auth/verify.js +0 -151
- package/dist/auth/verify.js.map +0 -1
- package/dist/cli/spec.d.ts +0 -19
- package/dist/cli/spec.d.ts.map +0 -1
- package/dist/cli/spec.js +0 -33
- package/dist/cli/spec.js.map +0 -1
- package/dist/config/adapter.d.ts +0 -148
- package/dist/config/adapter.d.ts.map +0 -1
- package/dist/config/adapter.js +0 -40
- package/dist/config/adapter.js.map +0 -1
- package/dist/config/define-domain.d.ts +0 -177
- package/dist/config/define-domain.d.ts.map +0 -1
- package/dist/config/define-domain.js +0 -145
- package/dist/config/define-domain.js.map +0 -1
- package/dist/config/deploy.d.ts +0 -28
- package/dist/config/deploy.d.ts.map +0 -1
- package/dist/config/deploy.js +0 -24
- package/dist/config/deploy.js.map +0 -1
- package/dist/config/index.d.ts +0 -21
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -18
- package/dist/config/index.js.map +0 -1
- package/dist/define/index.d.ts +0 -5
- package/dist/define/index.d.ts.map +0 -1
- package/dist/define/index.js +0 -3
- package/dist/define/index.js.map +0 -1
- package/dist/define/remote-function.d.ts +0 -120
- package/dist/define/remote-function.d.ts.map +0 -1
- package/dist/define/remote-function.js +0 -26
- package/dist/define/remote-function.js.map +0 -1
- package/dist/define/view.d.ts +0 -104
- package/dist/define/view.d.ts.map +0 -1
- package/dist/define/view.js +0 -30
- package/dist/define/view.js.map +0 -1
- package/dist/deploy/check.d.ts +0 -30
- package/dist/deploy/check.d.ts.map +0 -1
- package/dist/deploy/check.js +0 -82
- package/dist/deploy/check.js.map +0 -1
- package/dist/deploy/index.d.ts +0 -3
- package/dist/deploy/index.d.ts.map +0 -1
- package/dist/deploy/index.js +0 -3
- package/dist/deploy/index.js.map +0 -1
- package/dist/deploy/meta.d.ts +0 -29
- package/dist/deploy/meta.d.ts.map +0 -1
- package/dist/deploy/meta.js +0 -45
- package/dist/deploy/meta.js.map +0 -1
- package/dist/dispatch/authorize.d.ts +0 -14
- package/dist/dispatch/authorize.d.ts.map +0 -1
- package/dist/dispatch/authorize.js +0 -24
- package/dist/dispatch/authorize.js.map +0 -1
- package/dist/dispatch/dispatcher.d.ts +0 -59
- package/dist/dispatch/dispatcher.d.ts.map +0 -1
- package/dist/dispatch/dispatcher.js +0 -237
- package/dist/dispatch/dispatcher.js.map +0 -1
- package/dist/dispatch/errors.d.ts +0 -47
- package/dist/dispatch/errors.d.ts.map +0 -1
- package/dist/dispatch/errors.js +0 -76
- package/dist/dispatch/errors.js.map +0 -1
- package/dist/dispatch/execute.d.ts +0 -44
- package/dist/dispatch/execute.d.ts.map +0 -1
- package/dist/dispatch/execute.js +0 -29
- package/dist/dispatch/execute.js.map +0 -1
- package/dist/dispatch/identity.d.ts +0 -75
- package/dist/dispatch/identity.d.ts.map +0 -1
- package/dist/dispatch/identity.js +0 -101
- package/dist/dispatch/identity.js.map +0 -1
- package/dist/dispatch/index.d.ts +0 -7
- package/dist/dispatch/index.d.ts.map +0 -1
- package/dist/dispatch/index.js +0 -7
- package/dist/dispatch/index.js.map +0 -1
- package/dist/dispatch/resolve.d.ts +0 -27
- package/dist/dispatch/resolve.d.ts.map +0 -1
- package/dist/dispatch/resolve.js +0 -65
- package/dist/dispatch/resolve.js.map +0 -1
- package/dist/dispatch/self.d.ts +0 -51
- package/dist/dispatch/self.d.ts.map +0 -1
- package/dist/dispatch/self.js +0 -116
- package/dist/dispatch/self.js.map +0 -1
- package/dist/dispatch/validate.d.ts +0 -35
- package/dist/dispatch/validate.d.ts.map +0 -1
- package/dist/dispatch/validate.js +0 -27
- package/dist/dispatch/validate.js.map +0 -1
- package/dist/domain/binding.d.ts +0 -18
- package/dist/domain/binding.d.ts.map +0 -1
- package/dist/domain/binding.js +0 -29
- package/dist/domain/binding.js.map +0 -1
- package/dist/domain/build-spec.d.ts +0 -37
- package/dist/domain/build-spec.d.ts.map +0 -1
- package/dist/domain/build-spec.js +0 -114
- package/dist/domain/build-spec.js.map +0 -1
- package/dist/domain/contract.d.ts +0 -17
- package/dist/domain/contract.d.ts.map +0 -1
- package/dist/domain/contract.js +0 -26
- package/dist/domain/contract.js.map +0 -1
- package/dist/domain/extend-functions.d.ts +0 -48
- package/dist/domain/extend-functions.d.ts.map +0 -1
- package/dist/domain/extend-functions.js +0 -85
- package/dist/domain/extend-functions.js.map +0 -1
- package/dist/domain/extend-views.d.ts +0 -45
- package/dist/domain/extend-views.d.ts.map +0 -1
- package/dist/domain/extend-views.js +0 -116
- package/dist/domain/extend-views.js.map +0 -1
- package/dist/linter/analyze.d.ts +0 -6
- package/dist/linter/analyze.d.ts.map +0 -1
- package/dist/linter/analyze.js +0 -12
- package/dist/linter/analyze.js.map +0 -1
- package/dist/linter/diagnostic.d.ts +0 -38
- package/dist/linter/diagnostic.d.ts.map +0 -1
- package/dist/linter/diagnostic.js +0 -37
- package/dist/linter/diagnostic.js.map +0 -1
- package/dist/linter/oxlint/config.d.ts +0 -15
- package/dist/linter/oxlint/config.d.ts.map +0 -1
- package/dist/linter/oxlint/config.js +0 -23
- package/dist/linter/oxlint/config.js.map +0 -1
- package/dist/linter/oxlint/ignore-patterns.d.ts +0 -9
- package/dist/linter/oxlint/ignore-patterns.d.ts.map +0 -1
- package/dist/linter/oxlint/ignore-patterns.js +0 -18
- package/dist/linter/oxlint/ignore-patterns.js.map +0 -1
- package/dist/linter/oxlint/plugin.d.ts +0 -13
- package/dist/linter/oxlint/plugin.d.ts.map +0 -1
- package/dist/linter/oxlint/plugin.js +0 -14
- package/dist/linter/oxlint/plugin.js.map +0 -1
- package/dist/linter/preflight.d.ts +0 -2
- package/dist/linter/preflight.d.ts.map +0 -1
- package/dist/linter/preflight.js +0 -162
- package/dist/linter/preflight.js.map +0 -1
- package/dist/linter/project.d.ts +0 -18
- package/dist/linter/project.d.ts.map +0 -1
- package/dist/linter/project.js +0 -150
- package/dist/linter/project.js.map +0 -1
- package/dist/linter/report.d.ts +0 -4
- package/dist/linter/report.d.ts.map +0 -1
- package/dist/linter/report.js +0 -22
- package/dist/linter/report.js.map +0 -1
- package/dist/linter/rules/catalog.d.ts +0 -56
- package/dist/linter/rules/catalog.d.ts.map +0 -1
- package/dist/linter/rules/catalog.js +0 -53
- package/dist/linter/rules/catalog.js.map +0 -1
- package/dist/linter/rules/core-has-no-async.d.ts +0 -3
- package/dist/linter/rules/core-has-no-async.d.ts.map +0 -1
- package/dist/linter/rules/core-has-no-async.js +0 -43
- package/dist/linter/rules/core-has-no-async.js.map +0 -1
- package/dist/linter/rules/core-is-pure.d.ts +0 -3
- package/dist/linter/rules/core-is-pure.d.ts.map +0 -1
- package/dist/linter/rules/core-is-pure.js +0 -74
- package/dist/linter/rules/core-is-pure.js.map +0 -1
- package/dist/linter/rules/no-nested-steps.d.ts +0 -3
- package/dist/linter/rules/no-nested-steps.d.ts.map +0 -1
- package/dist/linter/rules/no-nested-steps.js +0 -32
- package/dist/linter/rules/no-nested-steps.js.map +0 -1
- package/dist/linter/rules/no-read-inside-mutate.d.ts +0 -3
- package/dist/linter/rules/no-read-inside-mutate.d.ts.map +0 -1
- package/dist/linter/rules/no-read-inside-mutate.js +0 -64
- package/dist/linter/rules/no-read-inside-mutate.js.map +0 -1
- package/dist/linter/rules/one-remote-definition-per-file.d.ts +0 -3
- package/dist/linter/rules/one-remote-definition-per-file.d.ts.map +0 -1
- package/dist/linter/rules/one-remote-definition-per-file.js +0 -23
- package/dist/linter/rules/one-remote-definition-per-file.js.map +0 -1
- package/dist/linter/rules/oxlint-ast.d.ts +0 -30
- package/dist/linter/rules/oxlint-ast.d.ts.map +0 -1
- package/dist/linter/rules/oxlint-ast.js +0 -104
- package/dist/linter/rules/oxlint-ast.js.map +0 -1
- package/dist/linter/rules/oxlint-rule.d.ts +0 -45
- package/dist/linter/rules/oxlint-rule.d.ts.map +0 -1
- package/dist/linter/rules/oxlint-rule.js +0 -2
- package/dist/linter/rules/oxlint-rule.js.map +0 -1
- package/dist/linter/rules/project-rule.d.ts +0 -10
- package/dist/linter/rules/project-rule.d.ts.map +0 -1
- package/dist/linter/rules/project-rule.js +0 -24
- package/dist/linter/rules/project-rule.js.map +0 -1
- package/dist/linter/rules/thin-schema-composition-root.d.ts +0 -3
- package/dist/linter/rules/thin-schema-composition-root.d.ts.map +0 -1
- package/dist/linter/rules/thin-schema-composition-root.js +0 -23
- package/dist/linter/rules/thin-schema-composition-root.js.map +0 -1
- package/dist/linter/source.d.ts +0 -24
- package/dist/linter/source.d.ts.map +0 -1
- package/dist/linter/source.js +0 -279
- package/dist/linter/source.js.map +0 -1
- package/dist/linter/suppression.d.ts +0 -3
- package/dist/linter/suppression.d.ts.map +0 -1
- package/dist/linter/suppression.js +0 -11
- package/dist/linter/suppression.js.map +0 -1
- package/dist/method/class.d.ts +0 -71
- package/dist/method/class.d.ts.map +0 -1
- package/dist/method/class.js +0 -26
- package/dist/method/class.js.map +0 -1
- package/dist/method/context.d.ts +0 -99
- package/dist/method/context.d.ts.map +0 -1
- package/dist/method/context.js +0 -11
- package/dist/method/context.js.map +0 -1
- package/dist/method/index.d.ts +0 -6
- package/dist/method/index.d.ts.map +0 -1
- package/dist/method/index.js +0 -3
- package/dist/method/index.js.map +0 -1
- package/dist/method/single.d.ts +0 -81
- package/dist/method/single.d.ts.map +0 -1
- package/dist/method/single.js +0 -8
- package/dist/method/single.js.map +0 -1
- package/dist/server/auxiliary-routes.d.ts +0 -48
- package/dist/server/auxiliary-routes.d.ts.map +0 -1
- package/dist/server/auxiliary-routes.js +0 -322
- package/dist/server/auxiliary-routes.js.map +0 -1
- package/dist/server/config.d.ts +0 -83
- package/dist/server/config.d.ts.map +0 -1
- package/dist/server/config.js +0 -8
- package/dist/server/config.js.map +0 -1
- package/dist/server/create.d.ts +0 -8
- package/dist/server/create.d.ts.map +0 -1
- package/dist/server/create.js +0 -171
- package/dist/server/create.js.map +0 -1
- package/dist/server/domain-entry.d.ts +0 -77
- package/dist/server/domain-entry.d.ts.map +0 -1
- package/dist/server/domain-entry.js +0 -60
- package/dist/server/domain-entry.js.map +0 -1
- package/dist/server/handle.d.ts +0 -35
- package/dist/server/handle.d.ts.map +0 -1
- package/dist/server/handle.js +0 -9
- package/dist/server/handle.js.map +0 -1
- package/dist/server/jwks.d.ts +0 -11
- package/dist/server/jwks.d.ts.map +0 -1
- package/dist/server/jwks.js +0 -15
- package/dist/server/jwks.js.map +0 -1
- package/dist/server/require-env.d.ts +0 -15
- package/dist/server/require-env.d.ts.map +0 -1
- package/dist/server/require-env.js +0 -21
- package/dist/server/require-env.js.map +0 -1
- package/dist/server/service-entry.d.ts +0 -32
- package/dist/server/service-entry.d.ts.map +0 -1
- package/dist/server/service-entry.js +0 -150
- package/dist/server/service-entry.js.map +0 -1
- package/dist/server/serving-url.d.ts +0 -14
- package/dist/server/serving-url.d.ts.map +0 -1
- package/dist/server/serving-url.js +0 -28
- package/dist/server/serving-url.js.map +0 -1
- package/dist/server/start.d.ts +0 -11
- package/dist/server/start.d.ts.map +0 -1
- package/dist/server/start.js +0 -34
- package/dist/server/start.js.map +0 -1
- package/dist/server/worker-entry.d.ts +0 -157
- package/dist/server/worker-entry.d.ts.map +0 -1
- package/dist/server/worker-entry.js +0 -201
- package/dist/server/worker-entry.js.map +0 -1
- package/dist/service/functions.d.ts +0 -148
- package/dist/service/functions.d.ts.map +0 -1
- package/dist/service/functions.js +0 -115
- package/dist/service/functions.js.map +0 -1
- package/dist/service/index.d.ts +0 -3
- package/dist/service/index.d.ts.map +0 -1
- package/dist/service/index.js +0 -2
- package/dist/service/index.js.map +0 -1
- package/dist/step/index.d.ts +0 -5
- package/dist/step/index.d.ts.map +0 -1
- package/dist/step/index.js +0 -3
- package/dist/step/index.js.map +0 -1
- package/dist/step/inline.d.ts +0 -8
- package/dist/step/inline.d.ts.map +0 -1
- package/dist/step/inline.js +0 -22
- package/dist/step/inline.js.map +0 -1
- package/dist/step/step.d.ts +0 -28
- package/dist/step/step.d.ts.map +0 -1
- package/dist/step/step.js +0 -53
- package/dist/step/step.js.map +0 -1
- package/src/auth/authenticate.ts +0 -51
- package/src/auth/check.ts +0 -69
- package/src/auth/compose.ts +0 -56
- package/src/auth/errors.ts +0 -32
- package/src/auth/function-context.ts +0 -108
- package/src/auth/identity.ts +0 -17
- package/src/auth/index.ts +0 -19
- package/src/auth/issuer-mint.ts +0 -76
- package/src/auth/kernel-client.ts +0 -153
- package/src/auth/resolve.ts +0 -63
- package/src/auth/sign.ts +0 -36
- package/src/auth/verify.ts +0 -199
- package/src/cli/bin.ts +0 -15
- package/src/cli/dotenv.ts +0 -65
- package/src/cli/index.ts +0 -15
- package/src/cli/log.ts +0 -18
- package/src/cli/publish.ts +0 -341
- package/src/cli/run.ts +0 -769
- package/src/cli/spec.ts +0 -44
- package/src/config/adapter.ts +0 -177
- package/src/config/define-domain.ts +0 -354
- package/src/config/deploy.ts +0 -35
- package/src/config/index.ts +0 -31
- package/src/define/index.ts +0 -10
- package/src/define/remote-function.ts +0 -184
- package/src/define/view.ts +0 -112
- package/src/deploy/check.ts +0 -124
- package/src/deploy/index.ts +0 -2
- package/src/deploy/meta.ts +0 -50
- package/src/dispatch/authorize.ts +0 -29
- package/src/dispatch/dispatcher.ts +0 -321
- package/src/dispatch/errors.ts +0 -94
- package/src/dispatch/execute.ts +0 -67
- package/src/dispatch/identity.ts +0 -143
- package/src/dispatch/index.ts +0 -16
- package/src/dispatch/resolve.ts +0 -78
- package/src/dispatch/self.ts +0 -198
- package/src/dispatch/validate.ts +0 -41
- package/src/domain/binding.ts +0 -37
- package/src/domain/build-spec.ts +0 -156
- package/src/domain/contract.ts +0 -41
- package/src/domain/define.ts +0 -162
- package/src/domain/extend-functions.ts +0 -110
- package/src/domain/extend-views.ts +0 -151
- package/src/domain/index.ts +0 -4
- package/src/index.ts +0 -165
- package/src/linter/analyze.ts +0 -17
- package/src/linter/diagnostic.ts +0 -85
- package/src/linter/docs/DIAGNOSTICS.md +0 -47
- package/src/linter/docs/JUDGMENT.md +0 -81
- package/src/linter/docs/PRINCIPLES.md +0 -97
- package/src/linter/docs/README.md +0 -38
- package/src/linter/docs/RULE-AUTHORING.md +0 -144
- package/src/linter/docs/RULES.md +0 -153
- package/src/linter/index.ts +0 -15
- package/src/linter/lint.ts +0 -34
- package/src/linter/oxlint/astrale-ox.d.ts +0 -5
- package/src/linter/oxlint/config.ts +0 -24
- package/src/linter/oxlint/ignore-patterns.ts +0 -17
- package/src/linter/oxlint/plugin.js +0 -16
- package/src/linter/oxlint/process.ts +0 -219
- package/src/linter/oxlint/run.ts +0 -175
- package/src/linter/preflight.ts +0 -182
- package/src/linter/project.ts +0 -190
- package/src/linter/report.ts +0 -25
- package/src/linter/rules/catalog.ts +0 -67
- package/src/linter/rules/core-has-no-async.js +0 -43
- package/src/linter/rules/core-is-pure.ts +0 -103
- package/src/linter/rules/no-nested-steps.js +0 -37
- package/src/linter/rules/no-read-inside-mutate.js +0 -72
- package/src/linter/rules/one-remote-definition-per-file.ts +0 -29
- package/src/linter/rules/oxlint-ast.js +0 -110
- package/src/linter/rules/oxlint-rule.ts +0 -35
- package/src/linter/rules/project-rule.ts +0 -37
- package/src/linter/rules/thin-schema-composition-root.ts +0 -26
- package/src/linter/source.ts +0 -323
- package/src/linter/suppression.ts +0 -11
- package/src/method/class.ts +0 -163
- package/src/method/context.ts +0 -135
- package/src/method/index.ts +0 -19
- package/src/method/single.ts +0 -166
- package/src/server/auxiliary-routes.ts +0 -456
- package/src/server/config.ts +0 -85
- package/src/server/create.ts +0 -210
- package/src/server/domain-entry.ts +0 -125
- package/src/server/handle.ts +0 -37
- package/src/server/index.ts +0 -19
- package/src/server/jwks.ts +0 -18
- package/src/server/require-env.ts +0 -19
- package/src/server/service-entry.ts +0 -209
- package/src/server/serving-url.ts +0 -28
- package/src/server/start.ts +0 -42
- package/src/server/worker-entry.ts +0 -286
- package/src/service/functions.ts +0 -164
- package/src/service/index.ts +0 -18
- package/src/step/index.ts +0 -4
- package/src/step/inline.ts +0 -38
- package/src/step/step.ts +0 -95
package/src/dispatch/resolve.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Method resolution — the index the dispatcher queries on every call.
|
|
3
|
-
*
|
|
4
|
-
* Owns both the index's construction and its lookup contract:
|
|
5
|
-
* - `buildMethodIndex` is called once at server startup.
|
|
6
|
-
* - `resolveMethod` is called once per inbound call.
|
|
7
|
-
*
|
|
8
|
-
* Each method is indexed under its `BoundMethod.ref`
|
|
9
|
-
* (`namespace.Owner.method.name`) and under a short alias `Owner.name`.
|
|
10
|
-
* The short alias is only registered when it is unambiguous — two methods
|
|
11
|
-
* whose owners live in different namespaces (e.g. class vs interface) and
|
|
12
|
-
* share the same local name would collide, and we refuse to register the
|
|
13
|
-
* ambiguous key rather than silently overwriting.
|
|
14
|
-
*
|
|
15
|
-
* Inbound names may arrive as `Path`, full `ref`, short alias, a tree path
|
|
16
|
-
* `/<domain>/<namespace.Owner>/<method>`, or the typed colon-form MethodPath
|
|
17
|
-
* `/:<domain>:<namespace.Owner>:<method>` (what the kernel forwards when a
|
|
18
|
-
* caller addresses the method in `:`-delimited form). All shapes normalize to
|
|
19
|
-
* the same lookup key.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
import type { Path } from '@astrale-os/kernel-core'
|
|
23
|
-
import type { BoundMethod } from '@astrale-os/kernel-core/domain'
|
|
24
|
-
|
|
25
|
-
import type { AnyRemoteHandler } from '../method/single.js'
|
|
26
|
-
|
|
27
|
-
export type MethodIndex = Map<string, BoundMethod<AnyRemoteHandler>>
|
|
28
|
-
|
|
29
|
-
const NAMESPACE_PREFIXES = ['class.', 'interface.'] as const
|
|
30
|
-
const METHOD_INFIX = 'method'
|
|
31
|
-
|
|
32
|
-
export function buildMethodIndex(methods: BoundMethod<AnyRemoteHandler>[]): MethodIndex {
|
|
33
|
-
const index: MethodIndex = new Map()
|
|
34
|
-
const shortFormAmbiguous = new Set<string>()
|
|
35
|
-
|
|
36
|
-
for (const m of methods) {
|
|
37
|
-
index.set(m.ref, m)
|
|
38
|
-
|
|
39
|
-
const shortForm = `${m.owner}.${m.method}`
|
|
40
|
-
if (shortFormAmbiguous.has(shortForm)) continue
|
|
41
|
-
const existing = index.get(shortForm)
|
|
42
|
-
if (existing && existing !== m) {
|
|
43
|
-
index.delete(shortForm)
|
|
44
|
-
shortFormAmbiguous.add(shortForm)
|
|
45
|
-
continue
|
|
46
|
-
}
|
|
47
|
-
index.set(shortForm, m)
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return index
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function resolveMethod(
|
|
54
|
-
index: MethodIndex,
|
|
55
|
-
name: Path | string,
|
|
56
|
-
): BoundMethod<AnyRemoteHandler> | null {
|
|
57
|
-
return index.get(normalizeMethod(name)) ?? null
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function normalizeMethod(name: Path | string): string {
|
|
61
|
-
const raw = typeof name === 'string' ? name : name.raw
|
|
62
|
-
if (!raw.startsWith('/')) return raw
|
|
63
|
-
// Typed colon-form MethodPath (`/:<domain>:<owner>:<method>`) vs. tree
|
|
64
|
-
// slash-form (`/<domain>/<owner>/<method>`). The owner segment carries its own
|
|
65
|
-
// `.` (e.g. `interface.NoteOps`), so the path separator is unambiguous.
|
|
66
|
-
const separator = raw.startsWith('/:') ? ':' : '/'
|
|
67
|
-
const segments = raw
|
|
68
|
-
.replace(/^\/+/, '')
|
|
69
|
-
.split(separator)
|
|
70
|
-
.filter((s) => s.length > 0)
|
|
71
|
-
if (segments.length < 3) return raw
|
|
72
|
-
const owner = segments[segments.length - 2]!
|
|
73
|
-
const method = segments[segments.length - 1]!
|
|
74
|
-
if (NAMESPACE_PREFIXES.some((p) => owner.startsWith(p))) {
|
|
75
|
-
return `${owner}.${METHOD_INFIX}.${method}`
|
|
76
|
-
}
|
|
77
|
-
return `${owner}.${method}`
|
|
78
|
-
}
|
package/src/dispatch/self.ts
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Self resolution stays parse-only: `_self` becomes a Path/IdPath with no graph
|
|
3
|
-
* read. The dispatcher later attaches lazy node()/call helpers once it has a kernel.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type {
|
|
7
|
-
BindCtx,
|
|
8
|
-
BoundNode,
|
|
9
|
-
InstanceDispatch,
|
|
10
|
-
NodeBinder,
|
|
11
|
-
ProxyCaller,
|
|
12
|
-
TypeMethods,
|
|
13
|
-
TypeNames,
|
|
14
|
-
} from '@astrale-os/kernel-client/schema'
|
|
15
|
-
import type { Node } from '@astrale-os/kernel-core/graph'
|
|
16
|
-
import type { Schema } from '@astrale-os/kernel-dsl'
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
createKnownInstanceDispatch,
|
|
20
|
-
defaultCaller,
|
|
21
|
-
extractMethodsByType,
|
|
22
|
-
} from '@astrale-os/kernel-client/schema'
|
|
23
|
-
import { IdPath, K, Path, type NodeId } from '@astrale-os/kernel-core'
|
|
24
|
-
import { classPathSchema } from '@astrale-os/kernel-core/domain'
|
|
25
|
-
import { absolutePathSchema } from '@astrale-os/kernel-core/tree'
|
|
26
|
-
import { z } from 'zod'
|
|
27
|
-
|
|
28
|
-
import type { Kernel } from '../method/context.js'
|
|
29
|
-
|
|
30
|
-
/** The node a non-static method runs on — its full record, id guaranteed. */
|
|
31
|
-
export type ResolvedSelfNode = Node & { id: NodeId }
|
|
32
|
-
|
|
33
|
-
/** The bare parse of a self target — no kernel, no fetch. */
|
|
34
|
-
export type ParsedSelf = {
|
|
35
|
-
path: Path
|
|
36
|
-
/** Set when `path` is an `IdPath` (i.e. `@<id>::method` calls). */
|
|
37
|
-
id?: NodeId
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type SelfResult = ParsedSelf & {
|
|
41
|
-
/**
|
|
42
|
-
* Lazy point-in-time self read. Memoized per dispatch; `{ reload: true }`
|
|
43
|
-
* forces a fresh `function.get`.
|
|
44
|
-
*/
|
|
45
|
-
node(opts?: { reload?: boolean }): Promise<ResolvedSelfNode>
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** Schema-typed self: short-keyed props and typed same-instance call proxy. */
|
|
49
|
-
export type TypedSelf<D, S extends Schema = Schema> = ParsedSelf & {
|
|
50
|
-
/**
|
|
51
|
-
* Fetch THIS node as a typed `BoundNode<D>`. Memoized exactly like
|
|
52
|
-
* {@link SelfResult.node} — one in-flight `function.get`, rejection-clearing,
|
|
53
|
-
* `{ reload: true }` refetches — so the zero-extra-graph-read dispatch
|
|
54
|
-
* invariant holds: nothing is read until called, then at most once.
|
|
55
|
-
*/
|
|
56
|
-
node(opts?: { reload?: boolean }): Promise<BoundNode<D, S>>
|
|
57
|
-
/** Own instance methods — typed, address-only (`<selfPath>::method`), no read. */
|
|
58
|
-
readonly call: InstanceDispatch<D>
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function resolveSelf(ref: string): ParsedSelf {
|
|
62
|
-
const path = Path.parse(ref)
|
|
63
|
-
return path instanceof IdPath ? { path, id: path.id } : { path }
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/** Attach memoized node(); unauthenticated contexts reject instead of reading. */
|
|
67
|
-
export function withNode(parsed: ParsedSelf, kernel: Kernel | null): SelfResult {
|
|
68
|
-
let cached: Promise<ResolvedSelfNode> | undefined
|
|
69
|
-
const node = (opts?: { reload?: boolean }): Promise<ResolvedSelfNode> => {
|
|
70
|
-
if (opts?.reload) cached = undefined
|
|
71
|
-
if (!cached) {
|
|
72
|
-
cached = fetchSelfNode(parsed.path, kernel).catch((err: unknown) => {
|
|
73
|
-
cached = undefined // never cache a rejection — a later call may succeed
|
|
74
|
-
throw err
|
|
75
|
-
})
|
|
76
|
-
}
|
|
77
|
-
return cached
|
|
78
|
-
}
|
|
79
|
-
return { ...parsed, node }
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
const EMPTY_METHODS: TypeMethods = {
|
|
83
|
-
kind: 'class',
|
|
84
|
-
methods: new Set(),
|
|
85
|
-
staticMethods: new Set(),
|
|
86
|
-
}
|
|
87
|
-
const methodMapCache = new WeakMap<object, Map<string, TypeMethods>>()
|
|
88
|
-
|
|
89
|
-
/** The type's method allow-list + kind, computed once per binder. */
|
|
90
|
-
function methodsFor<S extends Schema>(binder: NodeBinder<S>, typeName: string): TypeMethods {
|
|
91
|
-
let map = methodMapCache.get(binder)
|
|
92
|
-
if (!map) {
|
|
93
|
-
map = extractMethodsByType(binder.schema)
|
|
94
|
-
methodMapCache.set(binder, map)
|
|
95
|
-
}
|
|
96
|
-
return map.get(typeName) ?? EMPTY_METHODS
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function noKernelCaller(ref: string): ProxyCaller {
|
|
100
|
-
return () =>
|
|
101
|
-
Promise.reject(
|
|
102
|
-
new Error(
|
|
103
|
-
`self.call needs an authenticated kernel to dispatch on "${ref}", but this method ran ` +
|
|
104
|
-
`without one (its auth policy yields no kernel — e.g. 'public').`,
|
|
105
|
-
),
|
|
106
|
-
)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Schema-typed self helper: lazy BoundNode plus address-only call proxy. With no
|
|
111
|
-
* kernel, both node() and call thunks fail loudly.
|
|
112
|
-
*/
|
|
113
|
-
export function withBoundNode<S extends Schema>(
|
|
114
|
-
parsed: ParsedSelf,
|
|
115
|
-
kernel: Kernel | null,
|
|
116
|
-
binder: NodeBinder<S>,
|
|
117
|
-
typeName: string,
|
|
118
|
-
): TypedSelf<unknown, S> {
|
|
119
|
-
const ctx: BindCtx = kernel
|
|
120
|
-
? { caller: defaultCaller(kernel), read: kernel }
|
|
121
|
-
: { caller: null, read: null }
|
|
122
|
-
|
|
123
|
-
let cached: Promise<BoundNode<unknown, S>> | undefined
|
|
124
|
-
const node = (opts?: { reload?: boolean }): Promise<BoundNode<unknown, S>> => {
|
|
125
|
-
if (opts?.reload) cached = undefined
|
|
126
|
-
if (!cached) {
|
|
127
|
-
cached = fetchSelfNode(parsed.path, kernel)
|
|
128
|
-
.then(
|
|
129
|
-
(record) =>
|
|
130
|
-
binder.bind(typeName as TypeNames<S>, record, ctx, {
|
|
131
|
-
validate: 'warn',
|
|
132
|
-
}) as unknown as BoundNode<unknown, S>,
|
|
133
|
-
)
|
|
134
|
-
.catch((err: unknown) => {
|
|
135
|
-
cached = undefined // never cache a rejection — a later call may succeed
|
|
136
|
-
throw err
|
|
137
|
-
})
|
|
138
|
-
}
|
|
139
|
-
return cached
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
const info = methodsFor(binder, typeName)
|
|
143
|
-
const call = createKnownInstanceDispatch(
|
|
144
|
-
ctx.caller ?? noKernelCaller(parsed.path.raw),
|
|
145
|
-
parsed.path.raw,
|
|
146
|
-
info.methods,
|
|
147
|
-
info.kind === 'class' ? typeName : undefined,
|
|
148
|
-
) as InstanceDispatch<unknown>
|
|
149
|
-
|
|
150
|
-
return { ...parsed, node, call }
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Boundary schema for a node record off the wire. Structurally identical to
|
|
155
|
-
* kernel-core's `nodeSchema`, re-declared here from its public coercers
|
|
156
|
-
* (`classPathSchema` from `/domain`, `absolutePathSchema` from `/tree`) on
|
|
157
|
-
* purpose: importing the schema from `#graph` would pull zod into the graph
|
|
158
|
-
* barrel and cycle with `AbsolutePath` init (see `kernel/core/graph/index.ts`).
|
|
159
|
-
* Coercing through the canonical schemas yields a real `ClassPath` / `AbsolutePath`.
|
|
160
|
-
*/
|
|
161
|
-
const nodeRecordSchema = z.object({
|
|
162
|
-
class: classPathSchema(),
|
|
163
|
-
path: absolutePathSchema(),
|
|
164
|
-
props: z.record(z.string(), z.unknown()),
|
|
165
|
-
id: z.string().optional(),
|
|
166
|
-
__labels: z.array(z.string()).optional(),
|
|
167
|
-
})
|
|
168
|
-
|
|
169
|
-
async function fetchSelfNode(path: Path, kernel: Kernel | null): Promise<ResolvedSelfNode> {
|
|
170
|
-
if (!kernel) {
|
|
171
|
-
throw new Error(
|
|
172
|
-
`self.node() needs an authenticated kernel to read "${path.raw}", but this method ran ` +
|
|
173
|
-
`without one (its auth policy yields no kernel — e.g. 'public'). Read the node from a ` +
|
|
174
|
-
`method whose auth is 'required', or supply a credential.`,
|
|
175
|
-
)
|
|
176
|
-
}
|
|
177
|
-
// function.get soft-masks missing/unreadable roots; empty page means no self node.
|
|
178
|
-
const result = (await kernel.call(K.$.f('get').path.domain.raw, {
|
|
179
|
-
roots: [path.raw],
|
|
180
|
-
depth: 0,
|
|
181
|
-
})) as {
|
|
182
|
-
nodes?: unknown[]
|
|
183
|
-
}
|
|
184
|
-
const first = result?.nodes?.[0]
|
|
185
|
-
if (first === undefined) {
|
|
186
|
-
throw new Error(
|
|
187
|
-
`self.node(): "${path.raw}" was not found or is not visible to the caller ` +
|
|
188
|
-
`(function.get returned no node).`,
|
|
189
|
-
)
|
|
190
|
-
}
|
|
191
|
-
const record = nodeRecordSchema.parse(first)
|
|
192
|
-
if (record.id === undefined) {
|
|
193
|
-
throw new Error(`self.node(): "${path.raw}" returned a record with no id`)
|
|
194
|
-
}
|
|
195
|
-
// Validated at the wire boundary: id is now known-present, props are
|
|
196
|
-
// structurally checked. Bridge the parse output to the canonical `Node`.
|
|
197
|
-
return { ...record, id: record.id as NodeId } as ResolvedSelfNode
|
|
198
|
-
}
|
package/src/dispatch/validate.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Param / result validation helpers — Zod `safeParse` wrappers returning a
|
|
3
|
-
* tagged result. Callers convert a `false` outcome into a typed error:
|
|
4
|
-
* `SdkValidationError` (input, → 422) or `SdkResultValidationError`
|
|
5
|
-
* (output, → 500).
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type { z } from 'zod'
|
|
9
|
-
|
|
10
|
-
export type ValidationResult =
|
|
11
|
-
| { ok: true; data: Record<string, unknown> }
|
|
12
|
-
| { ok: false; issues: unknown[] }
|
|
13
|
-
|
|
14
|
-
export function validateParams(inputSchema: z.ZodType, params: unknown): ValidationResult {
|
|
15
|
-
const result = inputSchema.safeParse(params)
|
|
16
|
-
if (result.success) {
|
|
17
|
-
return { ok: true, data: result.data as Record<string, unknown> }
|
|
18
|
-
}
|
|
19
|
-
return { ok: false, issues: result.error.issues }
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Result of validating a handler's output against its `outputSchema`. Unlike
|
|
24
|
-
* params, an output may be any shape (object, primitive, array), so `data` is
|
|
25
|
-
* `unknown` rather than `Record<string, unknown>`.
|
|
26
|
-
*/
|
|
27
|
-
export type ResultValidationResult = { ok: true; data: unknown } | { ok: false; issues: unknown[] }
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Validate a handler's return value against its `outputSchema`. Mirrors the
|
|
31
|
-
* kernel's `validateOutput` (`runtime/.../validation/output.ts`) so deployed
|
|
32
|
-
* domains enforce the same output contract as in-process methods. Returns the
|
|
33
|
-
* parsed `data` (applies Zod `default`/`transform`/coercions) on success.
|
|
34
|
-
*/
|
|
35
|
-
export function validateResult(outputSchema: z.ZodType, result: unknown): ResultValidationResult {
|
|
36
|
-
const parsed = outputSchema.safeParse(result)
|
|
37
|
-
if (parsed.success) {
|
|
38
|
-
return { ok: true, data: parsed.data }
|
|
39
|
-
}
|
|
40
|
-
return { ok: false, issues: parsed.error.issues }
|
|
41
|
-
}
|
package/src/domain/binding.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared binding helpers for auto-materialized members (functions + views).
|
|
3
|
-
*
|
|
4
|
-
* The worker ROUTE URL a member is served at — `<url>/<folderSlug>/<slug>` — is
|
|
5
|
-
* decoupled from the member's GRAPH layout (`/<origin>/{functions,views}/<slug>`,
|
|
6
|
-
* a fixed kernel convention). `folderSlug` names only the URL segment.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import type { FunctionBinding } from '@astrale-os/kernel-api/routed'
|
|
10
|
-
|
|
11
|
-
/** Join a worker-relative mount path onto the serving url (single slash). */
|
|
12
|
-
export function joinWorkerPath(url: string, mount: string): string {
|
|
13
|
-
const base = url.replace(/\/+$/, '')
|
|
14
|
-
return `${base}/${mount.replace(/^\/+/, '')}`
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Resolve a member's effective binding against the serving `url`. An explicit
|
|
19
|
-
* `override.remoteUrl` wins; otherwise defaults to `<url>/<folderSlug>/<slug>`.
|
|
20
|
-
* Same trailing-slash discipline as {@link joinWorkerPath} — a `url` ending in
|
|
21
|
-
* `/` must not produce `//` (the kernel pins `iss` by exact string).
|
|
22
|
-
*/
|
|
23
|
-
export function resolveBinding(
|
|
24
|
-
override: FunctionBinding | undefined,
|
|
25
|
-
url: string,
|
|
26
|
-
folderSlug: string,
|
|
27
|
-
slug: string,
|
|
28
|
-
): FunctionBinding {
|
|
29
|
-
const base = url.replace(/\/+$/, '')
|
|
30
|
-
if (override) {
|
|
31
|
-
return {
|
|
32
|
-
...override,
|
|
33
|
-
remoteUrl: override.remoteUrl ?? `${base}/${folderSlug}/${slug}`,
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return { remoteUrl: `${base}/${folderSlug}/${slug}` }
|
|
37
|
-
}
|
package/src/domain/build-spec.ts
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SDK-side spec builder: CompiledDomain → serialize → Graph.
|
|
3
|
-
*
|
|
4
|
-
* Serializes BoundMethod[] into FunctionSchema[], generates entries for
|
|
5
|
-
* inherited methods not covered by the domain's handlers, then delegates
|
|
6
|
-
* to serialize() for graph blueprint generation.
|
|
7
|
-
*
|
|
8
|
-
* Domain-side Methods are remote-bound: dispatch routes through
|
|
9
|
-
* `binding.remoteUrl` and never reaches the kernel sandbox. We therefore
|
|
10
|
-
* do NOT stamp `code` on emitted FunctionSchema entries — there is no
|
|
11
|
-
* sandbox-eval'able body. Only the kernel domain (compiled in-process)
|
|
12
|
-
* carries `code` strings.
|
|
13
|
-
*
|
|
14
|
-
* The emitted graph is absolute — the Tree produced by `serialize()` is
|
|
15
|
-
* already mounted at `/<origin>`, so `tree.toGraph()` lifts every internal
|
|
16
|
-
* relative path into its host-graph absolute form. Wire serialization is the
|
|
17
|
-
* caller's responsibility (`graph.toWire()`).
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
import type { Graph, WireGraph } from '@astrale-os/kernel-core'
|
|
21
|
-
import type { BoundMethod, FunctionSchema, ViewSchema } from '@astrale-os/kernel-core/domain'
|
|
22
|
-
import type { Schema } from '@astrale-os/kernel-dsl'
|
|
23
|
-
|
|
24
|
-
import { AbsolutePath } from '@astrale-os/kernel-core'
|
|
25
|
-
import { hashInstallGraph, serialize, zodToJsonSchema } from '@astrale-os/kernel-core/domain'
|
|
26
|
-
|
|
27
|
-
import type { AnyRemoteHandler } from '../method/single.js'
|
|
28
|
-
import type { RemoteDomain } from './define.js'
|
|
29
|
-
|
|
30
|
-
import { extractBinding } from './contract.js'
|
|
31
|
-
import { materializeRemoteDomain } from './define.js'
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Build the install-ready wire graph for a domain served at `url`: materialize
|
|
35
|
-
* the domain at its real serving URL (so every binding carries the live URL —
|
|
36
|
-
* the define-time compile carries none), serialize, and emit the wire form.
|
|
37
|
-
* This is the graph the kernel installs and re-hashes to verify. There is no
|
|
38
|
-
* url-less variant: an install graph without bindings is uninstallable (the
|
|
39
|
-
* kernel install guard rejects it).
|
|
40
|
-
*/
|
|
41
|
-
export function buildInstallGraph<S extends Schema>(
|
|
42
|
-
domain: RemoteDomain<S>,
|
|
43
|
-
url: string,
|
|
44
|
-
): WireGraph {
|
|
45
|
-
const { compiled, auxiliary } = materializeRemoteDomain(domain, url)
|
|
46
|
-
// Two-axis placement: `parent` = the folder the Domain node physically lives
|
|
47
|
-
// under. `path` names the FULL node path (basename === origin);
|
|
48
|
-
// unset defaults to /domains/<origin> — the "/domains" placement policy lives
|
|
49
|
-
// HERE (the kernel default is Root → /<origin>). `mount` is deliberately NOT
|
|
50
|
-
// passed: installed_in + typed addresses stay root-mounted (kernel default).
|
|
51
|
-
const parent = domain.path
|
|
52
|
-
? AbsolutePath.parse(domain.path).parent()
|
|
53
|
-
: AbsolutePath.from('domains')
|
|
54
|
-
return buildSpecInternal(
|
|
55
|
-
compiled,
|
|
56
|
-
domain.methods,
|
|
57
|
-
url,
|
|
58
|
-
auxiliary?.functionSchemas ?? [],
|
|
59
|
-
auxiliary?.viewSchemas ?? [],
|
|
60
|
-
parent,
|
|
61
|
-
).toWire() as WireGraph
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Content hash of the install graph. Delegates the canonical hash to kernel-core's
|
|
66
|
-
* `hashInstallGraph` — the same algorithm the kernel re-runs on install to verify
|
|
67
|
-
* the received graph against the signed hash.
|
|
68
|
-
*/
|
|
69
|
-
export function buildInstallGraphHash<S extends Schema>(
|
|
70
|
-
domain: RemoteDomain<S>,
|
|
71
|
-
url: string,
|
|
72
|
-
): Promise<string> {
|
|
73
|
-
return hashInstallGraph(buildInstallGraph(domain, url))
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// ── Internal ────────────────────────────────────────────────
|
|
77
|
-
|
|
78
|
-
function buildSpecInternal(
|
|
79
|
-
compiled: RemoteDomain['compiled'],
|
|
80
|
-
methods: BoundMethod<AnyRemoteHandler>[],
|
|
81
|
-
url: string,
|
|
82
|
-
functionSchemas: FunctionSchema[],
|
|
83
|
-
viewSchemas: ViewSchema[],
|
|
84
|
-
parent: AbsolutePath,
|
|
85
|
-
): Graph {
|
|
86
|
-
const serialized = serializeMethodsWithStubs(compiled, methods, url)
|
|
87
|
-
// Method impls + standalone-function-member impls travel in the same callable
|
|
88
|
-
// array (distinct refs: `class.X.method.y` vs `function.<slug>`); view-member
|
|
89
|
-
// impls travel in `options.views` (a view differs structurally — handshake,
|
|
90
|
-
// view_for, View class). The serializer emits method nodes from the IR,
|
|
91
|
-
// function/view members from `compiled.$.refs.{functions,views}`, pulling each
|
|
92
|
-
// impl by ref.
|
|
93
|
-
const tree = serialize(compiled, [...serialized, ...functionSchemas], {
|
|
94
|
-
views: viewSchemas,
|
|
95
|
-
parent,
|
|
96
|
-
// An install graph is the domain's signed desired state. Reinstalling it
|
|
97
|
-
// must converge schema and core material exactly, including removing
|
|
98
|
-
// properties that disappeared from a newer domain version.
|
|
99
|
-
onConflict: 'replace',
|
|
100
|
-
})
|
|
101
|
-
return tree.toGraph()
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Serialize BoundMethod[] and generate stubs for methods in compiled.$.methods
|
|
106
|
-
* that have no corresponding BoundMethod (inherited-sealed, inherited-default).
|
|
107
|
-
*
|
|
108
|
-
* Every Method's binding defaults its `remoteUrl` to the serving URL: domain
|
|
109
|
-
* methods are remote-bound — the kernel dispatches them by redirecting to the
|
|
110
|
-
* worker — so a method node without a remote binding is uninstallable (the
|
|
111
|
-
* kernel install guard rejects it). An explicit per-method `remoteUrl` wins.
|
|
112
|
-
*/
|
|
113
|
-
function serializeMethodsWithStubs(
|
|
114
|
-
compiled: RemoteDomain['compiled'],
|
|
115
|
-
methods: BoundMethod<AnyRemoteHandler>[],
|
|
116
|
-
url: string,
|
|
117
|
-
): FunctionSchema[] {
|
|
118
|
-
const bound = new Set(methods.map((m) => m.ref))
|
|
119
|
-
const result = methods.map((m) => serializeFromBoundMethod(m, url))
|
|
120
|
-
|
|
121
|
-
// Generate entries for unbound methods (replaces fillMissingCallables).
|
|
122
|
-
// No `code` is stamped — domain-side Methods are binding-only. The `ref` MUST
|
|
123
|
-
// be the QUALIFIED `ResolvedMethod.ref` (`<ns>.<Type>.method.<m>`) — the exact
|
|
124
|
-
// form `serialize`'s method-node lookup uses; re-deriving a bare `Type.method`
|
|
125
|
-
// is the F11 bug (interface methods then never resolve → MISSING_HANDLER).
|
|
126
|
-
for (const classMethods of Object.values(compiled.$.methods)) {
|
|
127
|
-
for (const rm of Object.values(classMethods)) {
|
|
128
|
-
const ref = rm.ref
|
|
129
|
-
if (bound.has(ref)) continue
|
|
130
|
-
result.push({
|
|
131
|
-
ref,
|
|
132
|
-
inputSchema: { type: 'object' },
|
|
133
|
-
outputSchema: {},
|
|
134
|
-
output: 'value',
|
|
135
|
-
binding: { remoteUrl: url },
|
|
136
|
-
})
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return result
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
function serializeFromBoundMethod(
|
|
144
|
-
method: BoundMethod<AnyRemoteHandler>,
|
|
145
|
-
url: string,
|
|
146
|
-
): FunctionSchema {
|
|
147
|
-
const binding = extractBinding(method.handler)
|
|
148
|
-
return {
|
|
149
|
-
ref: method.ref,
|
|
150
|
-
inputSchema: zodToJsonSchema(method.inputSchema),
|
|
151
|
-
outputSchema: zodToJsonSchema(method.outputSchema),
|
|
152
|
-
isStatic: method.isStatic || undefined,
|
|
153
|
-
output: method.output,
|
|
154
|
-
binding: binding?.remoteUrl ? binding : { ...binding, remoteUrl: url },
|
|
155
|
-
}
|
|
156
|
-
}
|
package/src/domain/contract.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BoundMethod → MountableContract translator.
|
|
3
|
-
*
|
|
4
|
-
* The narrow view carries only what the server's mount planner reads —
|
|
5
|
-
* `ref` plus optional `binding` — because the SDK's SdkDispatcher
|
|
6
|
-
* handles dispatch via KernelAPI.call, not via runtime contract hooks.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import type {
|
|
10
|
-
AuthPolicy,
|
|
11
|
-
FunctionBinding,
|
|
12
|
-
MountableContract,
|
|
13
|
-
RouteBinding,
|
|
14
|
-
} from '@astrale-os/kernel-api/routed'
|
|
15
|
-
import type { BoundMethod } from '@astrale-os/kernel-core/domain'
|
|
16
|
-
|
|
17
|
-
import type { AnyRemoteHandler } from '../method/single.js'
|
|
18
|
-
|
|
19
|
-
export function toSdkContract(method: BoundMethod<AnyRemoteHandler>): MountableContract {
|
|
20
|
-
const handler = method.handler as {
|
|
21
|
-
route?: RouteBinding
|
|
22
|
-
remoteUrl?: string
|
|
23
|
-
auth?: AuthPolicy
|
|
24
|
-
}
|
|
25
|
-
const binding = extractBinding(handler)
|
|
26
|
-
return binding === undefined ? { ref: method.ref } : { ref: method.ref, binding }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function extractBinding(handler: {
|
|
30
|
-
route?: RouteBinding
|
|
31
|
-
remoteUrl?: string
|
|
32
|
-
auth?: AuthPolicy
|
|
33
|
-
}): FunctionBinding | undefined {
|
|
34
|
-
const { route, remoteUrl, auth } = handler
|
|
35
|
-
if (route === undefined && remoteUrl === undefined && auth === undefined) return undefined
|
|
36
|
-
const binding: FunctionBinding = {}
|
|
37
|
-
if (remoteUrl !== undefined) binding.remoteUrl = remoteUrl
|
|
38
|
-
if (route !== undefined) binding.route = route
|
|
39
|
-
if (auth !== undefined) binding.auth = auth
|
|
40
|
-
return binding
|
|
41
|
-
}
|