@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/domain/define.ts
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Define a remote domain. Views/functions are first-class domain members; their
|
|
3
|
-
* serving URL is stamped later by spec producers and is also the worker issuer.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import type { FunctionBinding } from '@astrale-os/kernel-api/routed'
|
|
7
|
-
import type {
|
|
8
|
-
BoundMethod,
|
|
9
|
-
CompiledDomain,
|
|
10
|
-
FunctionSchema,
|
|
11
|
-
ViewSchema,
|
|
12
|
-
} from '@astrale-os/kernel-core/domain'
|
|
13
|
-
import type { Core, Schema } from '@astrale-os/kernel-dsl'
|
|
14
|
-
|
|
15
|
-
import { assertKernel, bindMethods, compileDomain } from '@astrale-os/kernel-core/domain'
|
|
16
|
-
|
|
17
|
-
import type { DomainManifest } from '../config/define-domain.js'
|
|
18
|
-
import type { AnyRemoteFunctionDef, ViewDef } from '../define/index.js'
|
|
19
|
-
import type { SchemaMethodsImpl } from '../method/class.js'
|
|
20
|
-
import type { AnyRemoteHandler } from '../method/single.js'
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
assertFunctionsMatchSchema,
|
|
24
|
-
buildFunctionSchemas,
|
|
25
|
-
DEFAULT_FUNCTIONS_FOLDER,
|
|
26
|
-
} from './extend-functions.js'
|
|
27
|
-
import { buildViewDeclarations, buildViewSchemas, DEFAULT_VIEWS_FOLDER } from './extend-views.js'
|
|
28
|
-
|
|
29
|
-
export type RemoteDomainConfig<S extends Schema, TDeps> = {
|
|
30
|
-
schema: S
|
|
31
|
-
methods: SchemaMethodsImpl<S, TDeps>
|
|
32
|
-
core?: Core<S>
|
|
33
|
-
|
|
34
|
-
views?: Record<string, ViewDef<TDeps>>
|
|
35
|
-
viewsFolder?: string
|
|
36
|
-
|
|
37
|
-
remoteFunctions?: Record<string, AnyRemoteFunctionDef>
|
|
38
|
-
functionsFolder?: string
|
|
39
|
-
|
|
40
|
-
/** Presentation metadata for `/meta` (logo / entry view). Carried verbatim. */
|
|
41
|
-
manifest?: DomainManifest
|
|
42
|
-
|
|
43
|
-
/** Physical tree path for the Domain node (absolute, e.g. `/domains/acme`); default `/domains/<origin>`. */
|
|
44
|
-
path?: string
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** Effective bindings + folder layout + member schemas for auxiliary routes, resolved against `url`. */
|
|
48
|
-
export type AuxiliaryMetadata = {
|
|
49
|
-
url: string
|
|
50
|
-
viewsFolder: string
|
|
51
|
-
functionsFolder: string
|
|
52
|
-
viewBindings: Record<string, FunctionBinding>
|
|
53
|
-
remoteFunctionBindings: Record<string, FunctionBinding>
|
|
54
|
-
/** Function members' impl/binding half (`function.<slug>`) for `serialize`. */
|
|
55
|
-
functionSchemas: FunctionSchema[]
|
|
56
|
-
/** View members' impl/binding half (`view.<slug>`) for `serialize`. */
|
|
57
|
-
viewSchemas: ViewSchema[]
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type RemoteDomain<S extends Schema = Schema> = {
|
|
61
|
-
/** Define-time compile has structure only; bindings are stamped at materialization. */
|
|
62
|
-
compiled: CompiledDomain<S>
|
|
63
|
-
methods: BoundMethod<AnyRemoteHandler>[]
|
|
64
|
-
// oxlint-disable-next-line no-explicit-any
|
|
65
|
-
views?: Record<string, ViewDef<any>>
|
|
66
|
-
remoteFunctions?: Record<string, AnyRemoteFunctionDef>
|
|
67
|
-
/** Presentation metadata for `/meta` (logo / entry view); `createRemoteServer` stamps it. */
|
|
68
|
-
manifest?: DomainManifest
|
|
69
|
-
/** The original config, so `materializeRemoteDomain` re-materializes from source. */
|
|
70
|
-
config: MaterializeInputs
|
|
71
|
-
/**
|
|
72
|
-
* Physical tree path for the Domain node (absolute string, e.g. `/domains/acme`).
|
|
73
|
-
* Read by `buildInstallGraph` and passed to `serialize` as `treeMount`; unset =>
|
|
74
|
-
* `/domains/<origin>` (applied in build-spec). Addressing is unaffected.
|
|
75
|
-
*/
|
|
76
|
-
path?: string
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** The defineRemoteDomain inputs `materializeRemoteDomain` needs to re-materialize. */
|
|
80
|
-
type MaterializeInputs = {
|
|
81
|
-
userCore?: Core
|
|
82
|
-
viewsFolder: string
|
|
83
|
-
functionsFolder: string
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function defineRemoteDomain<TDeps>() {
|
|
87
|
-
return function <S extends Schema>(config: RemoteDomainConfig<S, TDeps>): RemoteDomain<S> {
|
|
88
|
-
const viewsFolder = config.viewsFolder ?? DEFAULT_VIEWS_FOLDER
|
|
89
|
-
const functionsFolder = config.functionsFolder ?? DEFAULT_FUNCTIONS_FOLDER
|
|
90
|
-
|
|
91
|
-
// Standalone function handlers must match schema-declared function members.
|
|
92
|
-
assertFunctionsMatchSchema(config.schema, config.remoteFunctions)
|
|
93
|
-
// Standalone function handlers must match schema-declared function members.
|
|
94
|
-
assertFunctionsMatchSchema(config.schema, config.remoteFunctions)
|
|
95
|
-
const compiled = compileDomain(
|
|
96
|
-
config.schema,
|
|
97
|
-
config.core,
|
|
98
|
-
undefined,
|
|
99
|
-
config.views ? buildViewDeclarations(config.views) : undefined,
|
|
100
|
-
)
|
|
101
|
-
assertKernel(compiled)
|
|
102
|
-
const methods = bindMethods<AnyRemoteHandler>(
|
|
103
|
-
compiled.$.schema,
|
|
104
|
-
compiled.$.methods,
|
|
105
|
-
// oxlint-disable-next-line no-explicit-any
|
|
106
|
-
config.methods as any,
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
return Object.freeze({
|
|
110
|
-
compiled,
|
|
111
|
-
methods,
|
|
112
|
-
...(config.views ? { views: config.views } : {}),
|
|
113
|
-
...(config.remoteFunctions ? { remoteFunctions: config.remoteFunctions } : {}),
|
|
114
|
-
...(config.manifest ? { manifest: config.manifest } : {}),
|
|
115
|
-
...(config.path ? { path: config.path } : {}),
|
|
116
|
-
config: {
|
|
117
|
-
userCore: config.core,
|
|
118
|
-
viewsFolder,
|
|
119
|
-
functionsFolder,
|
|
120
|
-
},
|
|
121
|
-
})
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** Materialize aux member bindings against the real serving URL. Pure and repeatable. */
|
|
126
|
-
export function materializeRemoteDomain<S extends Schema>(
|
|
127
|
-
domain: RemoteDomain<S>,
|
|
128
|
-
url: string,
|
|
129
|
-
): { compiled: CompiledDomain<S>; auxiliary: AuxiliaryMetadata | undefined } {
|
|
130
|
-
const hasAux = Boolean(domain.views || domain.remoteFunctions)
|
|
131
|
-
if (!hasAux) return { compiled: domain.compiled, auxiliary: undefined }
|
|
132
|
-
|
|
133
|
-
const { config } = domain
|
|
134
|
-
const schema = domain.compiled.$.schema as S
|
|
135
|
-
|
|
136
|
-
const compiled = compileDomain(
|
|
137
|
-
schema,
|
|
138
|
-
config.userCore as Core<S> | undefined,
|
|
139
|
-
undefined,
|
|
140
|
-
domain.views ? buildViewDeclarations(domain.views) : undefined,
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
const fns = domain.remoteFunctions
|
|
144
|
-
? buildFunctionSchemas(domain.remoteFunctions, url, config.functionsFolder)
|
|
145
|
-
: { schemas: [], bindings: {} }
|
|
146
|
-
const vws = domain.views
|
|
147
|
-
? buildViewSchemas(domain.views, url, config.viewsFolder, schema)
|
|
148
|
-
: { schemas: [], bindings: {} }
|
|
149
|
-
|
|
150
|
-
return {
|
|
151
|
-
compiled,
|
|
152
|
-
auxiliary: {
|
|
153
|
-
url,
|
|
154
|
-
viewsFolder: config.viewsFolder,
|
|
155
|
-
functionsFolder: config.functionsFolder,
|
|
156
|
-
viewBindings: vws.bindings,
|
|
157
|
-
remoteFunctionBindings: fns.bindings,
|
|
158
|
-
functionSchemas: fns.schemas,
|
|
159
|
-
viewSchemas: vws.schemas,
|
|
160
|
-
},
|
|
161
|
-
}
|
|
162
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Materialize the `functions` map (`defineRemoteFunction` entries) into the two
|
|
3
|
-
* halves a standalone-function DOMAIN MEMBER contributes — mirroring how a class
|
|
4
|
-
* method splits across compile + serialize:
|
|
5
|
-
*
|
|
6
|
-
* - the CONTRACT half — a `func({ input, output })` per slug, declared in the
|
|
7
|
-
* schema's `functions` group so the compiled domain carries `function.<slug>`
|
|
8
|
-
* on `refs.functions` (the kernel owns the ref/layout/of_domain mapping).
|
|
9
|
-
* - `FunctionSchema[]` + per-slug `FunctionBinding` — the IMPL/BINDING half,
|
|
10
|
-
* fed to `serialize` (url-stamped). The worker route is
|
|
11
|
-
* `<url>/<functionsFolder>/<slug>`, DECOUPLED from the graph layout — so
|
|
12
|
-
* `functionsFolder` only names the URL segment, not the node position.
|
|
13
|
-
*
|
|
14
|
-
* A standalone function is NOT a core/instance node: it is attached directly to
|
|
15
|
-
* the Domain via `of_domain` by the kernel-core serializer, so this module never
|
|
16
|
-
* touches `Core`.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
import type { FunctionBinding } from '@astrale-os/kernel-api/routed'
|
|
20
|
-
import type { FunctionSchema } from '@astrale-os/kernel-core/domain'
|
|
21
|
-
import type { Schema } from '@astrale-os/kernel-dsl'
|
|
22
|
-
|
|
23
|
-
import { zodToJsonSchema } from '@astrale-os/kernel-core/domain'
|
|
24
|
-
|
|
25
|
-
import type { AnyRemoteFunctionDef } from '../define/remote-function.js'
|
|
26
|
-
|
|
27
|
-
import { functionBindingForManifest } from '../service/functions.js'
|
|
28
|
-
import { resolveBinding } from './binding.js'
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Default URL segment for a function's worker route (`<url>/functions/<slug>`).
|
|
32
|
-
* Names the HTTP route only — the graph layout (`/<origin>/functions/<slug>`) is
|
|
33
|
-
* a fixed kernel convention, independent of this.
|
|
34
|
-
*/
|
|
35
|
-
export const DEFAULT_FUNCTIONS_FOLDER = 'functions'
|
|
36
|
-
const SLUG_RE = /^[a-z][a-z0-9-]*$/
|
|
37
|
-
|
|
38
|
-
function assertValidSlugs(functions: Record<string, AnyRemoteFunctionDef>): void {
|
|
39
|
-
for (const slug of Object.keys(functions)) {
|
|
40
|
-
if (!SLUG_RE.test(slug)) {
|
|
41
|
-
throw new Error(
|
|
42
|
-
`defineRemoteDomain: invalid function slug "${slug}" — must match ${SLUG_RE}.`,
|
|
43
|
-
)
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Contract half — since "functions as first-class defineSchema members", a
|
|
50
|
-
* standalone function's CONTRACT is declared in the SCHEMA (`defineSchema(...,
|
|
51
|
-
* { functions: { seed: func({ input, output }) } })`) and `compileDomain` builds
|
|
52
|
-
* the member refs from it; the SDK map supplies the HANDLER half. This check
|
|
53
|
-
* pins the two halves together at define time: every schema-declared function
|
|
54
|
-
* needs a handler, every handler a declaration — a drifted key fails loudly at
|
|
55
|
-
* authoring, never as a boot-time missing-identity or a dangling graph member.
|
|
56
|
-
*/
|
|
57
|
-
export function assertFunctionsMatchSchema(
|
|
58
|
-
schema: Schema,
|
|
59
|
-
functions: Record<string, AnyRemoteFunctionDef> | undefined,
|
|
60
|
-
): void {
|
|
61
|
-
if (functions) assertValidSlugs(functions)
|
|
62
|
-
const declared = Object.keys(schema.functions ?? {})
|
|
63
|
-
const handled = Object.keys(functions ?? {})
|
|
64
|
-
const missingHandler = declared.filter((slug) => !handled.includes(slug))
|
|
65
|
-
const missingDecl = handled.filter((slug) => !declared.includes(slug))
|
|
66
|
-
if (missingHandler.length === 0 && missingDecl.length === 0) return
|
|
67
|
-
const parts: string[] = []
|
|
68
|
-
if (missingHandler.length > 0) {
|
|
69
|
-
parts.push(
|
|
70
|
-
`schema declares function(s) with no handler: ${missingHandler.map((s) => `"${s}"`).join(', ')}`,
|
|
71
|
-
)
|
|
72
|
-
}
|
|
73
|
-
if (missingDecl.length > 0) {
|
|
74
|
-
parts.push(
|
|
75
|
-
`handler(s) with no schema declaration: ${missingDecl.map((s) => `"${s}"`).join(', ')} ` +
|
|
76
|
-
`(declare them in defineSchema's \`functions\` group via \`func({ input, output })\`)`,
|
|
77
|
-
)
|
|
78
|
-
}
|
|
79
|
-
throw new Error(`defineRemoteDomain: functions/schema mismatch — ${parts.join('; ')}.`)
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Impl/binding half — `FunctionSchema[]` for `serialize` plus the per-slug
|
|
84
|
-
* `FunctionBinding` map the worker mounts routes from. `ref` is the canonical
|
|
85
|
-
* `function.<slug>` member ref (matching `compiled.$.refs.functions`), so the
|
|
86
|
-
* serializer's per-member impl lookup finds it.
|
|
87
|
-
*/
|
|
88
|
-
export function buildFunctionSchemas(
|
|
89
|
-
functions: Record<string, AnyRemoteFunctionDef>,
|
|
90
|
-
url: string,
|
|
91
|
-
functionsFolder: string,
|
|
92
|
-
): { schemas: FunctionSchema[]; bindings: Record<string, FunctionBinding> } {
|
|
93
|
-
const schemas: FunctionSchema[] = []
|
|
94
|
-
const bindings: Record<string, FunctionBinding> = {}
|
|
95
|
-
for (const [slug, def] of Object.entries(functions)) {
|
|
96
|
-
const binding = functionBindingForManifest(
|
|
97
|
-
resolveBinding(def.binding, url, functionsFolder, slug),
|
|
98
|
-
def.auth,
|
|
99
|
-
)
|
|
100
|
-
bindings[slug] = binding
|
|
101
|
-
schemas.push({
|
|
102
|
-
ref: `function.${slug}`,
|
|
103
|
-
inputSchema: zodToJsonSchema(def.inputSchema),
|
|
104
|
-
outputSchema: zodToJsonSchema(def.outputSchema),
|
|
105
|
-
output: 'value',
|
|
106
|
-
binding,
|
|
107
|
-
})
|
|
108
|
-
}
|
|
109
|
-
return { schemas, bindings }
|
|
110
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Materialize the `views` map (`defineView` entries) into the two halves a view
|
|
3
|
-
* DOMAIN MEMBER contributes — mirroring `extend-functions.ts`:
|
|
4
|
-
*
|
|
5
|
-
* - `ViewDeclarations` — the CONTRACT half, fed to `compileDomain`'s members
|
|
6
|
-
* arg. The member ref (`view.<slug>`), the layout (`/<origin>/views/<slug>`),
|
|
7
|
-
* and the `of_domain` edge slug all derive from the map key.
|
|
8
|
-
* - `ViewSchema[]` + per-slug `FunctionBinding` — the IMPL half, fed to
|
|
9
|
-
* `serialize`. A view carries more than a function: a `UI.handshake` mode and
|
|
10
|
-
* `view_for` target edges (resolved here to graph paths). The worker route is
|
|
11
|
-
* `<url>/<viewsFolder>/<slug>`, DECOUPLED from the graph layout.
|
|
12
|
-
*
|
|
13
|
-
* A view is NOT a core/instance node: the kernel-core serializer attaches it to
|
|
14
|
-
* the Domain via `of_domain` (slug `view.<slug>`) and emits its `view_for` edges,
|
|
15
|
-
* so this module never touches `Core`.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
import type { FunctionBinding } from '@astrale-os/kernel-api/routed'
|
|
19
|
-
import type { ViewDeclarations, ViewSchema } from '@astrale-os/kernel-core/domain'
|
|
20
|
-
import type { Schema } from '@astrale-os/kernel-dsl'
|
|
21
|
-
|
|
22
|
-
import { DomainPaths } from '@astrale-os/kernel-core/domain'
|
|
23
|
-
import { buildDefOriginMap, scanImportedDefs } from '@astrale-os/kernel-core/domain'
|
|
24
|
-
import {
|
|
25
|
-
buildDefDescriptorMap,
|
|
26
|
-
isAbstract,
|
|
27
|
-
isCorePath,
|
|
28
|
-
isSelfMarker,
|
|
29
|
-
type EdgeEndpoint,
|
|
30
|
-
} from '@astrale-os/kernel-dsl'
|
|
31
|
-
|
|
32
|
-
import type { ViewDef } from '../define/view.js'
|
|
33
|
-
|
|
34
|
-
import { joinWorkerPath, resolveBinding } from './binding.js'
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Default URL segment for a view's worker route (`<url>/views/<slug>`). Names the
|
|
38
|
-
* HTTP route only — the graph layout (`/<origin>/views/<slug>`) is a fixed kernel
|
|
39
|
-
* convention, independent of this.
|
|
40
|
-
*/
|
|
41
|
-
export const DEFAULT_VIEWS_FOLDER = 'views'
|
|
42
|
-
const SLUG_RE = /^[a-z][a-z0-9-]*$/
|
|
43
|
-
|
|
44
|
-
// oxlint-disable-next-line no-explicit-any
|
|
45
|
-
type AnyViewDef = ViewDef<any>
|
|
46
|
-
|
|
47
|
-
function assertValidSlugs(views: Record<string, AnyViewDef>): void {
|
|
48
|
-
for (const slug of Object.keys(views)) {
|
|
49
|
-
if (!SLUG_RE.test(slug)) {
|
|
50
|
-
throw new Error(`defineRemoteDomain: invalid view slug "${slug}" — must match ${SLUG_RE}.`)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/** Enforce ViewDef's documented exclusivity: `mount` cannot combine with `render`/`binding`. */
|
|
56
|
-
function assertExclusivity(slug: string, def: AnyViewDef): void {
|
|
57
|
-
if (def.mount && (def.render || def.binding)) {
|
|
58
|
-
throw new Error(
|
|
59
|
-
`defineRemoteDomain: view "${slug}" sets \`mount\` together with ` +
|
|
60
|
-
`${def.render ? '`render`' : '`binding`'} — they are mutually exclusive.`,
|
|
61
|
-
)
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Contract half — one declaration per `views` map key, for `compileDomain`'s
|
|
67
|
-
* `views` arg. The slug drives ref/path/of_domain; impl/binding/view_for arrive
|
|
68
|
-
* at serialize.
|
|
69
|
-
*/
|
|
70
|
-
export function buildViewDeclarations(views: Record<string, AnyViewDef>): ViewDeclarations {
|
|
71
|
-
assertValidSlugs(views)
|
|
72
|
-
const out: Record<string, { slug: string }> = {}
|
|
73
|
-
for (const slug of Object.keys(views)) out[slug] = { slug }
|
|
74
|
-
return out
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Impl half — `ViewSchema[]` for `serialize` plus the per-slug `FunctionBinding`
|
|
79
|
-
* map the worker mounts routes from. `viewFor` markers are resolved here to
|
|
80
|
-
* concrete target paths (class meta-nodes) because the kernel-core serializer is
|
|
81
|
-
* pure and does not resolve `defineCore` endpoints.
|
|
82
|
-
*/
|
|
83
|
-
export function buildViewSchemas(
|
|
84
|
-
views: Record<string, AnyViewDef>,
|
|
85
|
-
url: string,
|
|
86
|
-
viewsFolder: string,
|
|
87
|
-
schema: Schema,
|
|
88
|
-
): { schemas: ViewSchema[]; bindings: Record<string, FunctionBinding> } {
|
|
89
|
-
const schemas: ViewSchema[] = []
|
|
90
|
-
const bindings: Record<string, FunctionBinding> = {}
|
|
91
|
-
for (const [slug, def] of Object.entries(views)) {
|
|
92
|
-
assertExclusivity(slug, def)
|
|
93
|
-
// `mount` is a worker-relative SPA path → `<url><mount>`; otherwise the
|
|
94
|
-
// default/overridden `<url>/<viewsFolder>/<slug>`.
|
|
95
|
-
const binding = def.mount
|
|
96
|
-
? { remoteUrl: joinWorkerPath(url, def.mount) }
|
|
97
|
-
: resolveBinding(def.binding, url, viewsFolder, slug)
|
|
98
|
-
bindings[slug] = binding
|
|
99
|
-
// Inline `render` views ship no shell client → default handshake 'none'.
|
|
100
|
-
const handshake = def.handshake ?? (def.render ? 'none' : undefined)
|
|
101
|
-
schemas.push({
|
|
102
|
-
ref: `view.${slug}`,
|
|
103
|
-
name: slug,
|
|
104
|
-
binding,
|
|
105
|
-
...(handshake ? { handshake } : {}),
|
|
106
|
-
viewFor: resolveViewForTargets(def.viewFor, schema),
|
|
107
|
-
})
|
|
108
|
-
}
|
|
109
|
-
return { schemas, bindings }
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Resolve `defineView`'s `viewFor` endpoints to concrete graph path raws.
|
|
114
|
-
* Mirrors kernel-core `compileCore`'s endpoint resolution (the old channel that
|
|
115
|
-
* carried view_for as core edges): `selfOf(Def)` → the def's class/interface
|
|
116
|
-
* meta-node `/<declaringDomain>/{class,interface}.<Name>/self`; a `CorePath`
|
|
117
|
-
* string → its anchored graph path. Empty when the view targets nothing.
|
|
118
|
-
*/
|
|
119
|
-
function resolveViewForTargets(
|
|
120
|
-
viewFor: EdgeEndpoint | readonly EdgeEndpoint[] | undefined,
|
|
121
|
-
schema: Schema,
|
|
122
|
-
): string[] {
|
|
123
|
-
if (!viewFor) return []
|
|
124
|
-
const targets = Array.isArray(viewFor) ? viewFor : [viewFor]
|
|
125
|
-
if (targets.length === 0) return []
|
|
126
|
-
|
|
127
|
-
const descriptorMap = buildDefDescriptorMap(schema)
|
|
128
|
-
const defOrigins = buildDefOriginMap(schema, scanImportedDefs(schema))
|
|
129
|
-
|
|
130
|
-
return targets.map((target) => {
|
|
131
|
-
if (isSelfMarker(target)) {
|
|
132
|
-
const def = target.__def
|
|
133
|
-
const desc = descriptorMap.get(def)
|
|
134
|
-
if (!desc) {
|
|
135
|
-
throw new Error(
|
|
136
|
-
'defineView: `viewFor: selfOf(...)` references a def that is neither in this ' +
|
|
137
|
-
"schema nor any of its `imports`. Add the def's schema to `imports`.",
|
|
138
|
-
)
|
|
139
|
-
}
|
|
140
|
-
const origin = defOrigins.get(def) ?? schema.domain
|
|
141
|
-
const dp = DomainPaths.of(origin)
|
|
142
|
-
return isAbstract(def) ? dp.interface(desc.name).raw : dp.class(desc.name).raw
|
|
143
|
-
}
|
|
144
|
-
if (isCorePath(target)) {
|
|
145
|
-
return DomainPaths.of(schema.domain).corePath(target).raw
|
|
146
|
-
}
|
|
147
|
-
throw new Error(
|
|
148
|
-
'defineView: unsupported `viewFor` endpoint — use `selfOf(Class)` or a CorePath.',
|
|
149
|
-
)
|
|
150
|
-
})
|
|
151
|
-
}
|
package/src/domain/index.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
// ─── Method authoring ────────────────────────────────────────────────────
|
|
2
|
-
export type {
|
|
3
|
-
MethodParams,
|
|
4
|
-
MethodResult,
|
|
5
|
-
AuthForPolicy,
|
|
6
|
-
DomainKernel,
|
|
7
|
-
GraphApi,
|
|
8
|
-
Kernel,
|
|
9
|
-
KernelForAuth,
|
|
10
|
-
RemoteAuthorizeContext,
|
|
11
|
-
RemoteContext,
|
|
12
|
-
RemoteHandler,
|
|
13
|
-
MethodImpl,
|
|
14
|
-
ClassMethodsImpl,
|
|
15
|
-
InterfaceMethodsImpl,
|
|
16
|
-
SchemaMethodsImpl,
|
|
17
|
-
} from './method/index.js'
|
|
18
|
-
export { remoteMethod, remoteClassMethods, remoteInterfaceMethods } from './method/index.js'
|
|
19
|
-
|
|
20
|
-
// ─── Domain configuration (astrale.config.ts) ────────────────────────────
|
|
21
|
-
// The author-facing way to declare a standalone domain + how it deploys. The
|
|
22
|
-
// runtime-domain COMPILER (`defineRemoteDomain`) is internal machinery — reach
|
|
23
|
-
// it via the `@astrale-os/sdk/domain` subpath when hand-rolling a worker, or
|
|
24
|
-
// (preferred) use `domainWorkerEntry` from `@astrale-os/sdk/server`.
|
|
25
|
-
export { defineDomain, deploy, defineAdapter } from './config/index.js'
|
|
26
|
-
export type {
|
|
27
|
-
DefineDomainConfig,
|
|
28
|
-
DomainDefinition,
|
|
29
|
-
DomainManifest,
|
|
30
|
-
DeployConfig,
|
|
31
|
-
AdapterSpec,
|
|
32
|
-
DeployCtx,
|
|
33
|
-
DeployResult,
|
|
34
|
-
DomainAdapter,
|
|
35
|
-
DomainInfo,
|
|
36
|
-
WatchCtx,
|
|
37
|
-
WatchHandle,
|
|
38
|
-
} from './config/index.js'
|
|
39
|
-
|
|
40
|
-
// ─── Install graph (advanced) ────────────────────────────────────────────
|
|
41
|
-
export { buildInstallGraph, buildInstallGraphHash } from './domain/index.js'
|
|
42
|
-
|
|
43
|
-
// ─── Graph patching (advanced) ────────────────────────────────────────
|
|
44
|
-
// Author-facing patch types, re-exported from kernel-core (the single source).
|
|
45
|
-
// Build a `Patch` and feed it straight to `ctx.kernel.mutate(patch)` (it implements
|
|
46
|
-
// `PatchData`); the graph sugar itself lives in `@astrale-os/kernel-client/graph`,
|
|
47
|
-
// flattened onto `ctx.kernel`, and `function.mutate` validates every patch kernel-side
|
|
48
|
-
// against kernel-core's `patchDataSchema` — no client-side re-validation needed.
|
|
49
|
-
export { AbsolutePath, Patch, Path } from '@astrale-os/kernel-core'
|
|
50
|
-
export { ClassPath } from '@astrale-os/kernel-core/domain'
|
|
51
|
-
export type {
|
|
52
|
-
EdgeCreate,
|
|
53
|
-
EdgeDelete,
|
|
54
|
-
EdgeMatcher,
|
|
55
|
-
EdgeUpdate,
|
|
56
|
-
NodeCreate,
|
|
57
|
-
NodeDelete,
|
|
58
|
-
NodeUpdate,
|
|
59
|
-
PatchData,
|
|
60
|
-
} from '@astrale-os/kernel-core'
|
|
61
|
-
|
|
62
|
-
// ─── Declarative resource helpers ────────────────────────────────────────
|
|
63
|
-
// Author Views (iframe-mountable) and RemoteFunctions (standalone callables)
|
|
64
|
-
// at the domain definition site. Each `defineView` / `defineRemoteFunction`
|
|
65
|
-
// entry is auto-materialized by `defineRemoteDomain` into a graph node (a
|
|
66
|
-
// `View`, or the canonical kernel `Function` for standalone callables) under
|
|
67
|
-
// the reserved views / functions folder, keyed by its map slug; the same
|
|
68
|
-
// entry's `render` / `execute` (+ auth hooks) is mounted as a worker route by
|
|
69
|
-
// `createRemoteServer`.
|
|
70
|
-
export { defineView, defineRemoteFunction } from './define/index.js'
|
|
71
|
-
export type {
|
|
72
|
-
ViewDef,
|
|
73
|
-
ViewRenderContext,
|
|
74
|
-
RemoteFunctionAuthorizeContext,
|
|
75
|
-
RemoteFunctionDef,
|
|
76
|
-
RemoteFunctionContext,
|
|
77
|
-
} from './define/index.js'
|
|
78
|
-
|
|
79
|
-
// ─── Durable-shaped steps ────────────────────────────────────────────────
|
|
80
|
-
export type { Step } from './step/index.js'
|
|
81
|
-
|
|
82
|
-
// ─── Invocation capabilities ─────────────────────────────────────────────
|
|
83
|
-
export type { Defer, DeferredTask, Sleep } from '@astrale-os/kernel-server'
|
|
84
|
-
|
|
85
|
-
// ─── Server ──────────────────────────────────────────────────────────────
|
|
86
|
-
// `createRemoteServer` dynamically imports `@hono/node-server` via `./server/start`.
|
|
87
|
-
// Exporting the server surface from the barrel poisons browser bundlers
|
|
88
|
-
// (Vite/esbuild) that traverse every re-export and try to bundle the dynamic
|
|
89
|
-
// chunk — which fails on Node built-ins. Consumers that need the server
|
|
90
|
-
// runtime import from '@astrale-os/sdk/server' directly.
|
|
91
|
-
|
|
92
|
-
// ─── Deploy ──────────────────────────────────────────────────────────────
|
|
93
|
-
// `deployCheck` uses Node-only modules (`node:path`, `node:child_process`) at
|
|
94
|
-
// module load time. Exporting it from the barrel poisons browser bundlers
|
|
95
|
-
// (Vite/esbuild) that transitively load every re-export. Consumers that need it
|
|
96
|
-
// import from './deploy' directly.
|
|
97
|
-
export { MetaSchema } from './deploy/meta.js'
|
|
98
|
-
export type { Meta } from './deploy/meta.js'
|
|
99
|
-
|
|
100
|
-
// ─── Service-hosted Functions ───────────────────────────────────────────
|
|
101
|
-
export {
|
|
102
|
-
SERVICE_FUNCTIONS_PATH,
|
|
103
|
-
ServiceFunctionDiscoveryRequestSchema,
|
|
104
|
-
ServiceFunctionDiscoveryResponseSchema,
|
|
105
|
-
ServiceFunctionManifestEntrySchema,
|
|
106
|
-
ServiceFunctionManifestSchema,
|
|
107
|
-
hashServiceFunctionManifest,
|
|
108
|
-
signServiceFunctionManifest,
|
|
109
|
-
verifyServiceFunctionManifest,
|
|
110
|
-
} from './service/index.js'
|
|
111
|
-
export type {
|
|
112
|
-
ServiceFunctionDiscoveryRequest,
|
|
113
|
-
ServiceFunctionDiscoveryResponse,
|
|
114
|
-
ServiceFunctionManifest,
|
|
115
|
-
ServiceFunctionManifestEntry,
|
|
116
|
-
} from './service/index.js'
|
|
117
|
-
|
|
118
|
-
// ─── Route binding (re-exported from kernel-api for consumer convenience) ─
|
|
119
|
-
export type {
|
|
120
|
-
AuthPolicy,
|
|
121
|
-
RouteBinding,
|
|
122
|
-
FunctionBinding,
|
|
123
|
-
CredentialSource,
|
|
124
|
-
SingleCredentialSource,
|
|
125
|
-
HttpMethod,
|
|
126
|
-
RouteBody,
|
|
127
|
-
OutputMode,
|
|
128
|
-
} from '@astrale-os/kernel-api/routed'
|
|
129
|
-
|
|
130
|
-
// ─── Auth ────────────────────────────────────────────────────────────────
|
|
131
|
-
export type { RemoteIdentityConfig, AuthenticateResult } from './auth/index.js'
|
|
132
|
-
export type {
|
|
133
|
-
DomainAuthority,
|
|
134
|
-
FunctionContextApi,
|
|
135
|
-
FunctionCredentialOptions,
|
|
136
|
-
FunctionKernelOptions,
|
|
137
|
-
MintIssuedParams,
|
|
138
|
-
} from './auth/index.js'
|
|
139
|
-
export {
|
|
140
|
-
authenticateRequest,
|
|
141
|
-
buildComposedGrant,
|
|
142
|
-
makeFunctionContext,
|
|
143
|
-
signCredential,
|
|
144
|
-
} from './auth/index.js'
|
|
145
|
-
export { AuthMissingError, AuthInvalidError } from './auth/index.js'
|
|
146
|
-
export { assertPerm, requireOwnership, READ, EDIT, USE, SHARE, ALL } from './auth/index.js'
|
|
147
|
-
export type {
|
|
148
|
-
AuthContext,
|
|
149
|
-
Attestation,
|
|
150
|
-
Authenticated,
|
|
151
|
-
Delegation,
|
|
152
|
-
IdentityId,
|
|
153
|
-
IssuerId,
|
|
154
|
-
} from '@astrale-os/kernel-core'
|
|
155
|
-
export { selfGrant } from '@astrale-os/kernel-core'
|
|
156
|
-
|
|
157
|
-
// ─── Dispatch (escape hatch for custom integrations) ─────────────────────
|
|
158
|
-
export { SdkDispatcher, type SdkDispatcherConfig } from './dispatch/index.js'
|
|
159
|
-
export {
|
|
160
|
-
AuthorizationDeniedError,
|
|
161
|
-
MethodNotFoundError,
|
|
162
|
-
SdkValidationError,
|
|
163
|
-
SdkResultValidationError,
|
|
164
|
-
} from './dispatch/index.js'
|
|
165
|
-
export type { SelfResult, TypedSelf } from './dispatch/index.js'
|
package/src/linter/analyze.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { LintDiagnostic } from './diagnostic.js'
|
|
2
|
-
import type { DomainProject } from './project.js'
|
|
3
|
-
import type { AnalyzerRule } from './rules/project-rule.js'
|
|
4
|
-
|
|
5
|
-
import { coreIsPure } from './rules/core-is-pure.js'
|
|
6
|
-
import { oneRemoteDefinitionPerFile } from './rules/one-remote-definition-per-file.js'
|
|
7
|
-
import { thinSchemaCompositionRoot } from './rules/thin-schema-composition-root.js'
|
|
8
|
-
|
|
9
|
-
export const analyzerRules: readonly AnalyzerRule[] = [
|
|
10
|
-
thinSchemaCompositionRoot,
|
|
11
|
-
oneRemoteDefinitionPerFile,
|
|
12
|
-
coreIsPure,
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
export function analyzeProject(project: DomainProject): LintDiagnostic[] {
|
|
16
|
-
return analyzerRules.flatMap((rule) => rule.analyze(project))
|
|
17
|
-
}
|