@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
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export type AstNode = {
|
|
2
|
-
type: string
|
|
3
|
-
parent?: AstNode
|
|
4
|
-
range?: [number, number]
|
|
5
|
-
async?: boolean
|
|
6
|
-
await?: boolean
|
|
7
|
-
name?: string
|
|
8
|
-
computed?: boolean
|
|
9
|
-
object?: AstNode
|
|
10
|
-
property?: AstNode
|
|
11
|
-
callee?: AstNode
|
|
12
|
-
arguments?: AstNode[]
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type OxlintRuleContext = {
|
|
16
|
-
id: string
|
|
17
|
-
filename: string
|
|
18
|
-
cwd: string
|
|
19
|
-
sourceCode: {
|
|
20
|
-
text: string
|
|
21
|
-
getText(node?: AstNode | null): string
|
|
22
|
-
getLoc(node: AstNode): { start: { line: number; column: number } }
|
|
23
|
-
}
|
|
24
|
-
report(diagnostic: { node: AstNode; messageId: string }): void
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type OxlintRule = {
|
|
28
|
-
meta: {
|
|
29
|
-
type: 'problem'
|
|
30
|
-
docs: { description: string; url: string }
|
|
31
|
-
messages: Record<string, string>
|
|
32
|
-
schema: readonly []
|
|
33
|
-
}
|
|
34
|
-
create(context: OxlintRuleContext): Record<string, ((node: AstNode) => void) | undefined>
|
|
35
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { LintDiagnostic } from '../diagnostic.js'
|
|
2
|
-
import type { DomainProject } from '../project.js'
|
|
3
|
-
import type { SourceFile, SourceToken } from '../source.js'
|
|
4
|
-
|
|
5
|
-
import { isSuppressed } from '../suppression.js'
|
|
6
|
-
import { ruleCatalog, ruleId, type ImplementedRuleSlug } from './catalog.js'
|
|
7
|
-
|
|
8
|
-
export type AnalyzerRule = {
|
|
9
|
-
slug: ImplementedRuleSlug
|
|
10
|
-
analyze(project: DomainProject): readonly LintDiagnostic[]
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function analyzerDiagnostic(
|
|
14
|
-
slug: ImplementedRuleSlug,
|
|
15
|
-
file: SourceFile,
|
|
16
|
-
token: SourceToken,
|
|
17
|
-
detail?: string,
|
|
18
|
-
): LintDiagnostic | undefined {
|
|
19
|
-
const info = ruleCatalog[slug]
|
|
20
|
-
const id = ruleId(slug)
|
|
21
|
-
if (isSuppressed(file, token.line, id)) return undefined
|
|
22
|
-
return {
|
|
23
|
-
id,
|
|
24
|
-
severity: 'error',
|
|
25
|
-
message: detail ? `${info.message} ${detail}` : info.message,
|
|
26
|
-
help: info.help,
|
|
27
|
-
url: info.url,
|
|
28
|
-
owner: info.owner,
|
|
29
|
-
location: {
|
|
30
|
-
path: file.relativePath,
|
|
31
|
-
line: token.line,
|
|
32
|
-
column: token.column,
|
|
33
|
-
offset: token.offset,
|
|
34
|
-
length: token.length,
|
|
35
|
-
},
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { LintDiagnostic } from '../diagnostic.js'
|
|
2
|
-
import type { DomainProject } from '../project.js'
|
|
3
|
-
|
|
4
|
-
import { importedCalls } from '../source.js'
|
|
5
|
-
import { analyzerDiagnostic, type AnalyzerRule } from './project-rule.js'
|
|
6
|
-
|
|
7
|
-
const schemaModules = new Set(['@astrale-os/kernel-core', '@astrale-os/kernel-dsl'])
|
|
8
|
-
const memberConstructors = new Set([
|
|
9
|
-
'edgeClass',
|
|
10
|
-
'edgeInterface',
|
|
11
|
-
'fn',
|
|
12
|
-
'func',
|
|
13
|
-
'nodeClass',
|
|
14
|
-
'nodeInterface',
|
|
15
|
-
])
|
|
16
|
-
|
|
17
|
-
export const thinSchemaCompositionRoot: AnalyzerRule = {
|
|
18
|
-
slug: 'thin-schema-composition-root',
|
|
19
|
-
analyze(project: DomainProject): readonly LintDiagnostic[] {
|
|
20
|
-
const root = project.files.find((file) => file.relativePath === 'schema/index.ts')
|
|
21
|
-
if (!root) return []
|
|
22
|
-
return importedCalls(root, schemaModules, memberConstructors)
|
|
23
|
-
.map((token) => analyzerDiagnostic(this.slug, root, token, `Found ${token.value}().`))
|
|
24
|
-
.filter((diagnostic): diagnostic is LintDiagnostic => diagnostic !== undefined)
|
|
25
|
-
},
|
|
26
|
-
}
|
package/src/linter/source.ts
DELETED
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
export type SourceToken = {
|
|
2
|
-
kind: 'identifier' | 'string' | 'punctuation'
|
|
3
|
-
value: string
|
|
4
|
-
offset: number
|
|
5
|
-
length: number
|
|
6
|
-
line: number
|
|
7
|
-
column: number
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type SourceImport = {
|
|
11
|
-
specifier: string
|
|
12
|
-
token: SourceToken
|
|
13
|
-
bindings: ReadonlyMap<string, string>
|
|
14
|
-
namespace?: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type SourceFile = {
|
|
18
|
-
path: string
|
|
19
|
-
relativePath: string
|
|
20
|
-
text: string
|
|
21
|
-
tokens: readonly SourceToken[]
|
|
22
|
-
imports: readonly SourceImport[]
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const identifierStart = /[A-Za-z_$]/
|
|
26
|
-
const identifierPart = /[A-Za-z0-9_$]/
|
|
27
|
-
|
|
28
|
-
export function scanSource(path: string, relativePath: string, text: string): SourceFile {
|
|
29
|
-
const tokens = tokenize(text)
|
|
30
|
-
return { path, relativePath, text, tokens, imports: parseImports(tokens) }
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function tokenize(text: string): SourceToken[] {
|
|
34
|
-
const tokens: SourceToken[] = []
|
|
35
|
-
let offset = 0
|
|
36
|
-
let line = 1
|
|
37
|
-
let column = 1
|
|
38
|
-
|
|
39
|
-
const advance = (): string => {
|
|
40
|
-
const char = text[offset++]!
|
|
41
|
-
if (char === '\n') {
|
|
42
|
-
line++
|
|
43
|
-
column = 1
|
|
44
|
-
} else {
|
|
45
|
-
column++
|
|
46
|
-
}
|
|
47
|
-
return char
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
while (offset < text.length) {
|
|
51
|
-
const char = text[offset]!
|
|
52
|
-
if (/\s/.test(char)) {
|
|
53
|
-
advance()
|
|
54
|
-
continue
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (char === '/' && text[offset + 1] === '/') {
|
|
58
|
-
advance()
|
|
59
|
-
advance()
|
|
60
|
-
while (offset < text.length && text[offset] !== '\n') advance()
|
|
61
|
-
continue
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (char === '/' && text[offset + 1] === '*') {
|
|
65
|
-
advance()
|
|
66
|
-
advance()
|
|
67
|
-
while (offset < text.length) {
|
|
68
|
-
if (text[offset] === '*' && text[offset + 1] === '/') {
|
|
69
|
-
advance()
|
|
70
|
-
advance()
|
|
71
|
-
break
|
|
72
|
-
}
|
|
73
|
-
advance()
|
|
74
|
-
}
|
|
75
|
-
continue
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (char === "'" || char === '"') {
|
|
79
|
-
const quote = char
|
|
80
|
-
const start = offset
|
|
81
|
-
const startLine = line
|
|
82
|
-
const startColumn = column
|
|
83
|
-
advance()
|
|
84
|
-
let value = ''
|
|
85
|
-
while (offset < text.length) {
|
|
86
|
-
const current = advance()
|
|
87
|
-
if (current === '\\') {
|
|
88
|
-
if (offset < text.length) value += decodeEscape(advance())
|
|
89
|
-
continue
|
|
90
|
-
}
|
|
91
|
-
if (current === quote) break
|
|
92
|
-
value += current
|
|
93
|
-
}
|
|
94
|
-
tokens.push({
|
|
95
|
-
kind: 'string',
|
|
96
|
-
value,
|
|
97
|
-
offset: start,
|
|
98
|
-
length: offset - start,
|
|
99
|
-
line: startLine,
|
|
100
|
-
column: startColumn,
|
|
101
|
-
})
|
|
102
|
-
continue
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (char === '`') {
|
|
106
|
-
advance()
|
|
107
|
-
while (offset < text.length) {
|
|
108
|
-
const current = advance()
|
|
109
|
-
if (current === '\\') {
|
|
110
|
-
if (offset < text.length) advance()
|
|
111
|
-
continue
|
|
112
|
-
}
|
|
113
|
-
if (current === '`') break
|
|
114
|
-
}
|
|
115
|
-
continue
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (identifierStart.test(char)) {
|
|
119
|
-
const start = offset
|
|
120
|
-
const startLine = line
|
|
121
|
-
const startColumn = column
|
|
122
|
-
let value = advance()
|
|
123
|
-
while (offset < text.length && identifierPart.test(text[offset]!)) value += advance()
|
|
124
|
-
tokens.push({
|
|
125
|
-
kind: 'identifier',
|
|
126
|
-
value,
|
|
127
|
-
offset: start,
|
|
128
|
-
length: offset - start,
|
|
129
|
-
line: startLine,
|
|
130
|
-
column: startColumn,
|
|
131
|
-
})
|
|
132
|
-
continue
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
tokens.push({
|
|
136
|
-
kind: 'punctuation',
|
|
137
|
-
value: char,
|
|
138
|
-
offset,
|
|
139
|
-
length: 1,
|
|
140
|
-
line,
|
|
141
|
-
column,
|
|
142
|
-
})
|
|
143
|
-
advance()
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return tokens
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function decodeEscape(char: string): string {
|
|
150
|
-
switch (char) {
|
|
151
|
-
case 'n':
|
|
152
|
-
return '\n'
|
|
153
|
-
case 'r':
|
|
154
|
-
return '\r'
|
|
155
|
-
case 't':
|
|
156
|
-
return '\t'
|
|
157
|
-
default:
|
|
158
|
-
return char
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
function parseImports(tokens: readonly SourceToken[]): SourceImport[] {
|
|
163
|
-
const imports: SourceImport[] = []
|
|
164
|
-
for (let index = 0; index < tokens.length; index++) {
|
|
165
|
-
const token = tokens[index]!
|
|
166
|
-
if (token.kind !== 'identifier' || (token.value !== 'import' && token.value !== 'export')) {
|
|
167
|
-
continue
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
if (token.value === 'import' && tokens[index + 1]?.value === '(') {
|
|
171
|
-
const specifier = tokens[index + 2]
|
|
172
|
-
if (specifier?.kind === 'string') {
|
|
173
|
-
imports.push({ specifier: specifier.value, token, bindings: new Map() })
|
|
174
|
-
}
|
|
175
|
-
continue
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
const end = statementEnd(tokens, index + 1)
|
|
179
|
-
let specifierIndex = -1
|
|
180
|
-
for (let cursor = index + 1; cursor < end; cursor++) {
|
|
181
|
-
const candidate = tokens[cursor]!
|
|
182
|
-
if (candidate.kind === 'string') specifierIndex = cursor
|
|
183
|
-
}
|
|
184
|
-
if (specifierIndex < 0) continue
|
|
185
|
-
|
|
186
|
-
const specifier = tokens[specifierIndex]!
|
|
187
|
-
const bindings = new Map<string, string>()
|
|
188
|
-
let namespace: string | undefined
|
|
189
|
-
if (token.value === 'import') {
|
|
190
|
-
const fromIndex = findToken(tokens, index + 1, specifierIndex, 'from')
|
|
191
|
-
const bindingsEnd = fromIndex >= 0 ? fromIndex : specifierIndex
|
|
192
|
-
const open = findToken(tokens, index + 1, bindingsEnd, '{')
|
|
193
|
-
if (open >= 0) {
|
|
194
|
-
const close = findMatching(tokens, open, '{', '}', bindingsEnd)
|
|
195
|
-
if (close >= 0) parseNamedBindings(tokens, open + 1, close, bindings)
|
|
196
|
-
}
|
|
197
|
-
const star = findToken(tokens, index + 1, bindingsEnd, '*')
|
|
198
|
-
if (star >= 0 && tokens[star + 1]?.value === 'as') namespace = tokens[star + 2]?.value
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
imports.push({
|
|
202
|
-
specifier: specifier.value,
|
|
203
|
-
token,
|
|
204
|
-
bindings,
|
|
205
|
-
...(namespace ? { namespace } : {}),
|
|
206
|
-
})
|
|
207
|
-
index = Math.max(index, specifierIndex)
|
|
208
|
-
}
|
|
209
|
-
return imports
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
function statementEnd(tokens: readonly SourceToken[], start: number): number {
|
|
213
|
-
let depth = 0
|
|
214
|
-
let sawSpecifier = false
|
|
215
|
-
for (let index = start; index < tokens.length; index++) {
|
|
216
|
-
const token = tokens[index]!
|
|
217
|
-
if (token.value === ';' && depth === 0) return index
|
|
218
|
-
if (token.value === '{' || token.value === '(' || token.value === '[') depth++
|
|
219
|
-
if (token.value === '}' || token.value === ')' || token.value === ']') depth--
|
|
220
|
-
if (token.kind === 'string' && depth === 0) sawSpecifier = true
|
|
221
|
-
const next = tokens[index + 1]
|
|
222
|
-
if (sawSpecifier && depth === 0 && next && next.line > token.line) return index + 1
|
|
223
|
-
}
|
|
224
|
-
return tokens.length
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
function findToken(
|
|
228
|
-
tokens: readonly SourceToken[],
|
|
229
|
-
start: number,
|
|
230
|
-
end: number,
|
|
231
|
-
value: string,
|
|
232
|
-
): number {
|
|
233
|
-
for (let index = start; index < end; index++) {
|
|
234
|
-
if (tokens[index]?.value === value) return index
|
|
235
|
-
}
|
|
236
|
-
return -1
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
function findMatching(
|
|
240
|
-
tokens: readonly SourceToken[],
|
|
241
|
-
start: number,
|
|
242
|
-
open: string,
|
|
243
|
-
close: string,
|
|
244
|
-
end: number,
|
|
245
|
-
): number {
|
|
246
|
-
let depth = 0
|
|
247
|
-
for (let index = start; index < end; index++) {
|
|
248
|
-
if (tokens[index]?.value === open) depth++
|
|
249
|
-
if (tokens[index]?.value === close && --depth === 0) return index
|
|
250
|
-
}
|
|
251
|
-
return -1
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
function parseNamedBindings(
|
|
255
|
-
tokens: readonly SourceToken[],
|
|
256
|
-
start: number,
|
|
257
|
-
end: number,
|
|
258
|
-
bindings: Map<string, string>,
|
|
259
|
-
): void {
|
|
260
|
-
let index = start
|
|
261
|
-
while (index < end) {
|
|
262
|
-
if (tokens[index]?.value === ',' || tokens[index]?.value === 'type') {
|
|
263
|
-
index++
|
|
264
|
-
continue
|
|
265
|
-
}
|
|
266
|
-
const imported = tokens[index]
|
|
267
|
-
if (!imported || imported.kind !== 'identifier') {
|
|
268
|
-
index++
|
|
269
|
-
continue
|
|
270
|
-
}
|
|
271
|
-
if (tokens[index + 1]?.value === 'as' && tokens[index + 2]?.kind === 'identifier') {
|
|
272
|
-
bindings.set(imported.value, tokens[index + 2]!.value)
|
|
273
|
-
index += 3
|
|
274
|
-
continue
|
|
275
|
-
}
|
|
276
|
-
bindings.set(imported.value, imported.value)
|
|
277
|
-
index++
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export function importedCalls(
|
|
282
|
-
file: SourceFile,
|
|
283
|
-
modules: ReadonlySet<string>,
|
|
284
|
-
names: ReadonlySet<string>,
|
|
285
|
-
): SourceToken[] {
|
|
286
|
-
const locals = new Set<string>()
|
|
287
|
-
const namespaces = new Set<string>()
|
|
288
|
-
for (const sourceImport of file.imports) {
|
|
289
|
-
if (!modules.has(sourceImport.specifier)) continue
|
|
290
|
-
for (const name of names) {
|
|
291
|
-
const local = sourceImport.bindings.get(name)
|
|
292
|
-
if (local) locals.add(local)
|
|
293
|
-
}
|
|
294
|
-
if (sourceImport.namespace) namespaces.add(sourceImport.namespace)
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
const calls: SourceToken[] = []
|
|
298
|
-
for (let index = 0; index < file.tokens.length; index++) {
|
|
299
|
-
const token = file.tokens[index]!
|
|
300
|
-
if (token.kind !== 'identifier') continue
|
|
301
|
-
if (locals.has(token.value) && callFollows(file.tokens, index)) {
|
|
302
|
-
calls.push(token)
|
|
303
|
-
continue
|
|
304
|
-
}
|
|
305
|
-
if (
|
|
306
|
-
namespaces.has(token.value) &&
|
|
307
|
-
file.tokens[index + 1]?.value === '.' &&
|
|
308
|
-
names.has(file.tokens[index + 2]?.value ?? '') &&
|
|
309
|
-
callFollows(file.tokens, index + 2)
|
|
310
|
-
) {
|
|
311
|
-
calls.push(file.tokens[index + 2]!)
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return calls
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
function callFollows(tokens: readonly SourceToken[], index: number): boolean {
|
|
318
|
-
const next = tokens[index + 1]
|
|
319
|
-
if (next?.value === '(') return true
|
|
320
|
-
if (next?.value !== '<') return false
|
|
321
|
-
const close = findMatching(tokens, index + 1, '<', '>', tokens.length)
|
|
322
|
-
return close >= 0 && tokens[close + 1]?.value === '('
|
|
323
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { SourceFile } from './source.js'
|
|
2
|
-
|
|
3
|
-
const suppression = /^\s*\/\/\s*astrale-disable-next-line\s+(.+?)\s+--\s+\S.*$/
|
|
4
|
-
|
|
5
|
-
export function isSuppressed(file: SourceFile, line: number, id: string): boolean {
|
|
6
|
-
if (line <= 1) return false
|
|
7
|
-
const previous = file.text.split(/\r?\n/)[line - 2]
|
|
8
|
-
const match = previous ? suppression.exec(previous) : null
|
|
9
|
-
if (!match) return false
|
|
10
|
-
return match[1]!.split(/[\s,]+/).includes(id)
|
|
11
|
-
}
|
package/src/method/class.ts
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Class-level method aggregation.
|
|
3
|
-
*
|
|
4
|
-
* Where `RemoteHandler` describes one method, the types here describe a
|
|
5
|
-
* whole class's worth of methods. `ClassMethodsImpl<S, K, TDeps>` enforces
|
|
6
|
-
* that every implementable method on class `K` is provided. The interface
|
|
7
|
-
* variant handles abstract definitions; the schema variant indexes by class
|
|
8
|
-
* name.
|
|
9
|
-
*
|
|
10
|
-
* `remoteClassMethods` is the identity helper an author calls when supplying
|
|
11
|
-
* a class's full method record — it gives full inference for the class
|
|
12
|
-
* methods at once, complementing `remoteMethod` (one method at a time).
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import type {
|
|
16
|
-
DefForInterface,
|
|
17
|
-
InterfaceMethodDefs,
|
|
18
|
-
InterfaceMethodKeys,
|
|
19
|
-
MethodClassKeys,
|
|
20
|
-
NonSealedMethodKeys,
|
|
21
|
-
OwnMethodKeys,
|
|
22
|
-
ResolveParams,
|
|
23
|
-
ResolveReturn,
|
|
24
|
-
SealedKeys,
|
|
25
|
-
} from '@astrale-os/kernel-core/domain'
|
|
26
|
-
import type { ImplementableOwnKeys, Schema } from '@astrale-os/kernel-dsl'
|
|
27
|
-
|
|
28
|
-
import type { TypedSelf } from '../dispatch/self.js'
|
|
29
|
-
import type { DomainKernel } from './context.js'
|
|
30
|
-
import type { MethodImpl, RemoteHandler } from './single.js'
|
|
31
|
-
|
|
32
|
-
/** Per-class method implementations for a remote domain. */
|
|
33
|
-
export type ClassMethodsImpl<
|
|
34
|
-
S extends Schema,
|
|
35
|
-
K extends MethodClassKeys<S> & string,
|
|
36
|
-
TDeps = unknown,
|
|
37
|
-
> = {
|
|
38
|
-
[M in OwnMethodKeys<S, K>]: MethodImpl<S, K, M, TDeps>
|
|
39
|
-
} & {
|
|
40
|
-
[M in NonSealedMethodKeys<S, K>]: MethodImpl<S, K, M, TDeps>
|
|
41
|
-
} & {
|
|
42
|
-
[M in SealedKeys<S, K>]?: never
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** Resolve interface method handler directly (InterfaceMethodKeys ≠ MethodKeys). */
|
|
46
|
-
type InterfaceMethodHandler<
|
|
47
|
-
S extends Schema,
|
|
48
|
-
K extends string,
|
|
49
|
-
M extends string,
|
|
50
|
-
TDeps,
|
|
51
|
-
> = M extends keyof InterfaceMethodDefs<S, K>
|
|
52
|
-
? InterfaceMethodDefs<S, K>[M] extends { readonly config: infer MC }
|
|
53
|
-
? MC extends { readonly static: true }
|
|
54
|
-
? RemoteHandler<
|
|
55
|
-
ResolveParams<MC>,
|
|
56
|
-
ResolveReturn<MC>,
|
|
57
|
-
undefined,
|
|
58
|
-
TDeps,
|
|
59
|
-
'required',
|
|
60
|
-
DomainKernel<S>
|
|
61
|
-
>
|
|
62
|
-
: // Non-static interface methods receive the schema-typed `self` keyed by
|
|
63
|
-
// THIS interface's def — `self.node()` binds to a `BoundNode<D>` with
|
|
64
|
-
// short-keyed, def-typed `props`, `self.call` is typed, exactly as the
|
|
65
|
-
// class-method path (`MethodImpl`) does.
|
|
66
|
-
RemoteHandler<
|
|
67
|
-
ResolveParams<MC>,
|
|
68
|
-
ResolveReturn<MC>,
|
|
69
|
-
TypedSelf<DefForInterface<S, K>, S>,
|
|
70
|
-
TDeps,
|
|
71
|
-
'required',
|
|
72
|
-
DomainKernel<S>
|
|
73
|
-
>
|
|
74
|
-
: never
|
|
75
|
-
: never
|
|
76
|
-
|
|
77
|
-
/** Per-interface method implementations. */
|
|
78
|
-
export type InterfaceMethodsImpl<
|
|
79
|
-
S extends Schema,
|
|
80
|
-
K extends InterfaceMethodKeys<S> & string,
|
|
81
|
-
TDeps = unknown,
|
|
82
|
-
> = {
|
|
83
|
-
[M in ImplementableOwnKeys<DefForInterface<S, K>> & string]: InterfaceMethodHandler<
|
|
84
|
-
S,
|
|
85
|
-
K,
|
|
86
|
-
M,
|
|
87
|
-
TDeps
|
|
88
|
-
>
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Namespace-keyed full schema methods map, parameterized by deps.
|
|
93
|
-
* Handlers for classes and interfaces live under distinct `class` / `interface`
|
|
94
|
-
* slots, preventing name collisions between a class and an interface with the
|
|
95
|
-
* same name.
|
|
96
|
-
*
|
|
97
|
-
* `interface` is optional — schemas without non-abstract interface methods
|
|
98
|
-
* (or with no interfaces at all) do not need to provide it.
|
|
99
|
-
*/
|
|
100
|
-
export type SchemaMethodsImpl<S extends Schema, TDeps = unknown> = {
|
|
101
|
-
class: { [K in MethodClassKeys<S> & string]: ClassMethodsImpl<S, K, TDeps> }
|
|
102
|
-
interface?: { [K in InterfaceMethodKeys<S> & string]: InterfaceMethodsImpl<S, K, TDeps> }
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
type RejectSealedKeys<S extends Schema, K extends string, I> = keyof I &
|
|
106
|
-
SealedKeys<S, K> extends never
|
|
107
|
-
? I
|
|
108
|
-
: `Error: sealed methods must not be implemented by class '${K}': ${keyof I & SealedKeys<S, K> & string}`
|
|
109
|
-
|
|
110
|
-
/** Identity helper for authoring one class's remote methods with full schema typing. */
|
|
111
|
-
export function remoteClassMethods<TDeps>(): <
|
|
112
|
-
S extends Schema,
|
|
113
|
-
K extends MethodClassKeys<S> & string,
|
|
114
|
-
I extends ClassMethodsImpl<S, K, TDeps>,
|
|
115
|
-
>(
|
|
116
|
-
schema: S,
|
|
117
|
-
className: K,
|
|
118
|
-
impl: I & RejectSealedKeys<S, K, I>,
|
|
119
|
-
) => I
|
|
120
|
-
export function remoteClassMethods<
|
|
121
|
-
S extends Schema,
|
|
122
|
-
K extends MethodClassKeys<S> & string,
|
|
123
|
-
I extends ClassMethodsImpl<S, K>,
|
|
124
|
-
>(schema: S, className: K, impl: I & RejectSealedKeys<S, K, I>): I
|
|
125
|
-
export function remoteClassMethods(...args: unknown[]) {
|
|
126
|
-
if (args.length === 0) {
|
|
127
|
-
return (...innerArgs: unknown[]) => innerArgs[2]
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return args[2]
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Identity helper for authoring one interface's remote methods with full
|
|
135
|
-
* schema typing — the interface-hosted counterpart of `remoteClassMethods`.
|
|
136
|
-
*
|
|
137
|
-
* Methods declared on an interface (e.g. a static `createNote` on `NoteOps`)
|
|
138
|
-
* live under the `interface:` slot of `SchemaMethodsImpl`. Without this helper
|
|
139
|
-
* an author has to fall back to `any` (there is no other way to name the
|
|
140
|
-
* per-method handler type — `InterfaceMethodHandler` is internal). Returns the
|
|
141
|
-
* per-interface impl object the `interface: { <Name>: … }` slot expects.
|
|
142
|
-
*/
|
|
143
|
-
export function remoteInterfaceMethods<TDeps>(): <
|
|
144
|
-
S extends Schema,
|
|
145
|
-
K extends InterfaceMethodKeys<S> & string,
|
|
146
|
-
I extends InterfaceMethodsImpl<S, K, TDeps>,
|
|
147
|
-
>(
|
|
148
|
-
schema: S,
|
|
149
|
-
interfaceName: K,
|
|
150
|
-
impl: I,
|
|
151
|
-
) => I
|
|
152
|
-
export function remoteInterfaceMethods<
|
|
153
|
-
S extends Schema,
|
|
154
|
-
K extends InterfaceMethodKeys<S> & string,
|
|
155
|
-
I extends InterfaceMethodsImpl<S, K>,
|
|
156
|
-
>(schema: S, interfaceName: K, impl: I): I
|
|
157
|
-
export function remoteInterfaceMethods(...args: unknown[]) {
|
|
158
|
-
if (args.length === 0) {
|
|
159
|
-
return (...innerArgs: unknown[]) => innerArgs[2]
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
return args[2]
|
|
163
|
-
}
|