typekro 0.28.0 → 0.29.0
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/dist/.tsbuildinfo +1 -1
- package/dist/advanced/index.d.ts +5 -1
- package/dist/advanced/index.d.ts.map +1 -1
- package/dist/advanced/index.js +2 -3
- package/dist/advanced/index.js.map +1 -1
- package/dist/alchemy/deployers.d.ts +6 -4
- package/dist/alchemy/deployers.d.ts.map +1 -1
- package/dist/alchemy/deployers.js +46 -9
- package/dist/alchemy/deployers.js.map +1 -1
- package/dist/alchemy/index.d.ts +2 -3
- package/dist/alchemy/index.d.ts.map +1 -1
- package/dist/alchemy/index.js +1 -1
- package/dist/alchemy/index.js.map +1 -1
- package/dist/alchemy/kro-delete.d.ts +6 -5
- package/dist/alchemy/kro-delete.d.ts.map +1 -1
- package/dist/alchemy/kro-delete.js +169 -22
- package/dist/alchemy/kro-delete.js.map +1 -1
- package/dist/alchemy/resource-registration.d.ts +24 -31
- package/dist/alchemy/resource-registration.d.ts.map +1 -1
- package/dist/alchemy/resource-registration.js +439 -75
- package/dist/alchemy/resource-registration.js.map +1 -1
- package/dist/alchemy/types.d.ts +56 -14
- package/dist/alchemy/types.d.ts.map +1 -1
- package/dist/alchemy/utilities.d.ts +2 -2
- package/dist/alchemy/utilities.d.ts.map +1 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.d.ts.map +1 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.js +31 -28
- package/dist/compositions/typekro-runtime/typekro-runtime.js.map +1 -1
- package/dist/compositions/typekro-runtime/types.d.ts +12 -0
- package/dist/compositions/typekro-runtime/types.d.ts.map +1 -1
- package/dist/core/composition/analysis-metadata.d.ts +15 -0
- package/dist/core/composition/analysis-metadata.d.ts.map +1 -0
- package/dist/core/composition/analysis-metadata.js +20 -0
- package/dist/core/composition/analysis-metadata.js.map +1 -0
- package/dist/core/composition/imperative.d.ts.map +1 -1
- package/dist/core/composition/imperative.js +38 -9
- package/dist/core/composition/imperative.js.map +1 -1
- package/dist/core/composition/nested-status-cel.js +3 -3
- package/dist/core/composition/nested-status-cel.js.map +1 -1
- package/dist/core/constants/brands.d.ts +1 -1
- package/dist/core/constants/brands.d.ts.map +1 -1
- package/dist/core/constants/brands.js +1 -1
- package/dist/core/constants/brands.js.map +1 -1
- package/dist/core/dependencies/resolver.d.ts +3 -1
- package/dist/core/dependencies/resolver.d.ts.map +1 -1
- package/dist/core/dependencies/resolver.js +29 -13
- package/dist/core/dependencies/resolver.js.map +1 -1
- package/dist/core/deployment/deletion-result.d.ts +22 -0
- package/dist/core/deployment/deletion-result.d.ts.map +1 -0
- package/dist/core/deployment/deletion-result.js +108 -0
- package/dist/core/deployment/deletion-result.js.map +1 -0
- package/dist/core/deployment/deployment-state-discovery.d.ts +1 -0
- package/dist/core/deployment/deployment-state-discovery.d.ts.map +1 -1
- package/dist/core/deployment/deployment-state-discovery.js +89 -9
- package/dist/core/deployment/deployment-state-discovery.js.map +1 -1
- package/dist/core/deployment/direct-factory.d.ts +46 -25
- package/dist/core/deployment/direct-factory.d.ts.map +1 -1
- package/dist/core/deployment/direct-factory.js +536 -126
- package/dist/core/deployment/direct-factory.js.map +1 -1
- package/dist/core/deployment/engine.d.ts +4 -1
- package/dist/core/deployment/engine.d.ts.map +1 -1
- package/dist/core/deployment/engine.js +105 -34
- package/dist/core/deployment/engine.js.map +1 -1
- package/dist/core/deployment/errors.d.ts +20 -1
- package/dist/core/deployment/errors.d.ts.map +1 -1
- package/dist/core/deployment/errors.js +55 -0
- package/dist/core/deployment/errors.js.map +1 -1
- package/dist/core/deployment/event-monitor.d.ts +4 -3
- package/dist/core/deployment/event-monitor.d.ts.map +1 -1
- package/dist/core/deployment/event-monitor.js +17 -5
- package/dist/core/deployment/event-monitor.js.map +1 -1
- package/dist/core/deployment/index.d.ts +1 -1
- package/dist/core/deployment/index.d.ts.map +1 -1
- package/dist/core/deployment/index.js +1 -1
- package/dist/core/deployment/index.js.map +1 -1
- package/dist/core/deployment/k8s-helpers.d.ts +1 -1
- package/dist/core/deployment/k8s-helpers.d.ts.map +1 -1
- package/dist/core/deployment/k8s-helpers.js +11 -5
- package/dist/core/deployment/k8s-helpers.js.map +1 -1
- package/dist/core/deployment/kro-factory.d.ts +54 -30
- package/dist/core/deployment/kro-factory.d.ts.map +1 -1
- package/dist/core/deployment/kro-factory.js +2002 -259
- package/dist/core/deployment/kro-factory.js.map +1 -1
- package/dist/core/deployment/kro-instance-admission.d.ts +17 -0
- package/dist/core/deployment/kro-instance-admission.d.ts.map +1 -0
- package/dist/core/deployment/kro-instance-admission.js +73 -0
- package/dist/core/deployment/kro-instance-admission.js.map +1 -0
- package/dist/core/deployment/kro-instance-safety.d.ts +0 -3
- package/dist/core/deployment/kro-instance-safety.d.ts.map +1 -1
- package/dist/core/deployment/kro-instance-safety.js +0 -11
- package/dist/core/deployment/kro-instance-safety.js.map +1 -1
- package/dist/core/deployment/kro-namespace-teardown.d.ts +63 -5
- package/dist/core/deployment/kro-namespace-teardown.d.ts.map +1 -1
- package/dist/core/deployment/kro-namespace-teardown.js +124 -12
- package/dist/core/deployment/kro-namespace-teardown.js.map +1 -1
- package/dist/core/deployment/kro-readiness.d.ts +2 -0
- package/dist/core/deployment/kro-readiness.d.ts.map +1 -1
- package/dist/core/deployment/kro-readiness.js +50 -8
- package/dist/core/deployment/kro-readiness.js.map +1 -1
- package/dist/core/deployment/poll-timeout.d.ts +45 -0
- package/dist/core/deployment/poll-timeout.d.ts.map +1 -0
- package/dist/core/deployment/poll-timeout.js +78 -0
- package/dist/core/deployment/poll-timeout.js.map +1 -0
- package/dist/core/deployment/readiness.d.ts.map +1 -1
- package/dist/core/deployment/readiness.js +30 -21
- package/dist/core/deployment/readiness.js.map +1 -1
- package/dist/core/deployment/resource-applier.d.ts +19 -3
- package/dist/core/deployment/resource-applier.d.ts.map +1 -1
- package/dist/core/deployment/resource-applier.js +263 -44
- package/dist/core/deployment/resource-applier.js.map +1 -1
- package/dist/core/deployment/rollback-manager.d.ts +6 -1
- package/dist/core/deployment/rollback-manager.d.ts.map +1 -1
- package/dist/core/deployment/rollback-manager.js +38 -12
- package/dist/core/deployment/rollback-manager.js.map +1 -1
- package/dist/core/deployment/schema-cel-evaluator.d.ts.map +1 -1
- package/dist/core/deployment/schema-cel-evaluator.js +63 -0
- package/dist/core/deployment/schema-cel-evaluator.js.map +1 -1
- package/dist/core/deployment/shared-utilities.d.ts +11 -6
- package/dist/core/deployment/shared-utilities.d.ts.map +1 -1
- package/dist/core/deployment/shared-utilities.js +169 -14
- package/dist/core/deployment/shared-utilities.js.map +1 -1
- package/dist/core/deployment/singleton-gitops.d.ts.map +1 -1
- package/dist/core/deployment/singleton-gitops.js +0 -2
- package/dist/core/deployment/singleton-gitops.js.map +1 -1
- package/dist/core/deployment/singleton-owner-drift.d.ts +11 -2
- package/dist/core/deployment/singleton-owner-drift.d.ts.map +1 -1
- package/dist/core/deployment/singleton-owner-drift.js +30 -13
- package/dist/core/deployment/singleton-owner-drift.js.map +1 -1
- package/dist/core/deployment/strategies/base-strategy.d.ts +2 -0
- package/dist/core/deployment/strategies/base-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/base-strategy.js +19 -2
- package/dist/core/deployment/strategies/base-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.d.ts +3 -0
- package/dist/core/deployment/strategies/direct-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.js +31 -8
- package/dist/core/deployment/strategies/direct-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/index.d.ts +1 -1
- package/dist/core/deployment/strategies/index.d.ts.map +1 -1
- package/dist/core/deployment/strategies/index.js +1 -1
- package/dist/core/deployment/strategies/index.js.map +1 -1
- package/dist/core/errors.d.ts +2 -2
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js.map +1 -1
- package/dist/core/expressions/analysis/cel-emitter.d.ts.map +1 -1
- package/dist/core/expressions/analysis/cel-emitter.js +17 -13
- package/dist/core/expressions/analysis/cel-emitter.js.map +1 -1
- package/dist/core/expressions/analysis/expression-metadata.d.ts +15 -0
- package/dist/core/expressions/analysis/expression-metadata.d.ts.map +1 -0
- package/dist/core/expressions/analysis/expression-metadata.js +10 -0
- package/dist/core/expressions/analysis/expression-metadata.js.map +1 -0
- package/dist/core/expressions/analysis/ready-when.d.ts +3 -0
- package/dist/core/expressions/analysis/ready-when.d.ts.map +1 -0
- package/dist/core/expressions/analysis/ready-when.js +127 -0
- package/dist/core/expressions/analysis/ready-when.js.map +1 -0
- package/dist/core/expressions/composition/composition-analyzer-helpers.d.ts +3 -2
- package/dist/core/expressions/composition/composition-analyzer-helpers.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-helpers.js +6 -4
- package/dist/core/expressions/composition/composition-analyzer-helpers.js.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-ternary.d.ts +3 -2
- package/dist/core/expressions/composition/composition-analyzer-ternary.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-ternary.js +12 -12
- package/dist/core/expressions/composition/composition-analyzer-ternary.js.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-traversal.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-traversal.js +68 -4
- package/dist/core/expressions/composition/composition-analyzer-traversal.js.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer-types.d.ts +2 -0
- package/dist/core/expressions/composition/composition-analyzer-types.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/composition/composition-analyzer.js +2 -0
- package/dist/core/expressions/composition/composition-analyzer.js.map +1 -1
- package/dist/core/expressions/factory/status-builder-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/factory/status-builder-analyzer.js +14 -1
- package/dist/core/expressions/factory/status-builder-analyzer.js.map +1 -1
- package/dist/core/kubernetes/api.d.ts.map +1 -1
- package/dist/core/kubernetes/api.js +2 -3
- package/dist/core/kubernetes/api.js.map +1 -1
- package/dist/core/kubernetes/bun-api-client.d.ts +1 -1
- package/dist/core/kubernetes/bun-api-client.d.ts.map +1 -1
- package/dist/core/kubernetes/bun-api-client.js +17 -17
- package/dist/core/kubernetes/bun-api-client.js.map +1 -1
- package/dist/core/kubernetes/bun-http-library.d.ts +16 -0
- package/dist/core/kubernetes/bun-http-library.d.ts.map +1 -1
- package/dist/core/kubernetes/bun-http-library.js +7 -1
- package/dist/core/kubernetes/bun-http-library.js.map +1 -1
- package/dist/core/kubernetes/bun-watch.d.ts +30 -0
- package/dist/core/kubernetes/bun-watch.d.ts.map +1 -0
- package/dist/core/kubernetes/bun-watch.js +144 -0
- package/dist/core/kubernetes/bun-watch.js.map +1 -0
- package/dist/core/kubernetes/client-node-runtime.d.ts +10 -0
- package/dist/core/kubernetes/client-node-runtime.d.ts.map +1 -0
- package/dist/core/kubernetes/client-node-runtime.js +15 -0
- package/dist/core/kubernetes/client-node-runtime.js.map +1 -0
- package/dist/core/kubernetes/client-provider.d.ts +21 -1
- package/dist/core/kubernetes/client-provider.d.ts.map +1 -1
- package/dist/core/kubernetes/client-provider.js +10 -10
- package/dist/core/kubernetes/client-provider.js.map +1 -1
- package/dist/core/kubernetes/index.d.ts +1 -1
- package/dist/core/kubernetes/index.d.ts.map +1 -1
- package/dist/core/kubernetes/index.js.map +1 -1
- package/dist/core/metadata/resource-metadata.d.ts +24 -1
- package/dist/core/metadata/resource-metadata.d.ts.map +1 -1
- package/dist/core/metadata/resource-metadata.js +8 -4
- package/dist/core/metadata/resource-metadata.js.map +1 -1
- package/dist/core/planning/artifact-codec.d.ts +14 -0
- package/dist/core/planning/artifact-codec.d.ts.map +1 -0
- package/dist/core/planning/artifact-codec.js +329 -0
- package/dist/core/planning/artifact-codec.js.map +1 -0
- package/dist/core/planning/artifacts.d.ts +212 -0
- package/dist/core/planning/artifacts.d.ts.map +1 -0
- package/dist/core/planning/artifacts.js +5 -0
- package/dist/core/planning/artifacts.js.map +1 -0
- package/dist/core/planning/aspects.d.ts +11 -0
- package/dist/core/planning/aspects.d.ts.map +1 -0
- package/dist/core/planning/aspects.js +77 -0
- package/dist/core/planning/aspects.js.map +1 -0
- package/dist/core/planning/canonical.d.ts +10 -0
- package/dist/core/planning/canonical.d.ts.map +1 -0
- package/dist/core/planning/canonical.js +54 -0
- package/dist/core/planning/canonical.js.map +1 -0
- package/dist/core/planning/capabilities.d.ts +16 -0
- package/dist/core/planning/capabilities.d.ts.map +1 -0
- package/dist/core/planning/capabilities.js +90 -0
- package/dist/core/planning/capabilities.js.map +1 -0
- package/dist/core/planning/capture.d.ts +29 -0
- package/dist/core/planning/capture.d.ts.map +1 -0
- package/dist/core/planning/capture.js +18 -0
- package/dist/core/planning/capture.js.map +1 -0
- package/dist/core/planning/compiler.d.ts +12 -0
- package/dist/core/planning/compiler.d.ts.map +1 -0
- package/dist/core/planning/compiler.js +631 -0
- package/dist/core/planning/compiler.js.map +1 -0
- package/dist/core/planning/direct-runtime-adapter.d.ts +39 -0
- package/dist/core/planning/direct-runtime-adapter.d.ts.map +1 -0
- package/dist/core/planning/direct-runtime-adapter.js +238 -0
- package/dist/core/planning/direct-runtime-adapter.js.map +1 -0
- package/dist/core/planning/execution-record.d.ts +21 -0
- package/dist/core/planning/execution-record.d.ts.map +1 -0
- package/dist/core/planning/execution-record.js +304 -0
- package/dist/core/planning/execution-record.js.map +1 -0
- package/dist/core/planning/index.d.ts +20 -0
- package/dist/core/planning/index.d.ts.map +1 -0
- package/dist/core/planning/index.js +18 -0
- package/dist/core/planning/index.js.map +1 -0
- package/dist/core/planning/kro-bundle.d.ts +24 -0
- package/dist/core/planning/kro-bundle.d.ts.map +1 -0
- package/dist/core/planning/kro-bundle.js +314 -0
- package/dist/core/planning/kro-bundle.js.map +1 -0
- package/dist/core/planning/kro-runtime-adapter.d.ts +28 -0
- package/dist/core/planning/kro-runtime-adapter.d.ts.map +1 -0
- package/dist/core/planning/kro-runtime-adapter.js +211 -0
- package/dist/core/planning/kro-runtime-adapter.js.map +1 -0
- package/dist/core/planning/materialization.d.ts +54 -0
- package/dist/core/planning/materialization.d.ts.map +1 -0
- package/dist/core/planning/materialization.js +489 -0
- package/dist/core/planning/materialization.js.map +1 -0
- package/dist/core/planning/plan-codec.d.ts +11 -0
- package/dist/core/planning/plan-codec.d.ts.map +1 -0
- package/dist/core/planning/plan-codec.js +555 -0
- package/dist/core/planning/plan-codec.js.map +1 -0
- package/dist/core/planning/planner.d.ts +21 -0
- package/dist/core/planning/planner.d.ts.map +1 -0
- package/dist/core/planning/planner.js +1518 -0
- package/dist/core/planning/planner.js.map +1 -0
- package/dist/core/planning/schema.d.ts +10 -0
- package/dist/core/planning/schema.d.ts.map +1 -0
- package/dist/core/planning/schema.js +159 -0
- package/dist/core/planning/schema.js.map +1 -0
- package/dist/core/planning/types.d.ts +441 -0
- package/dist/core/planning/types.d.ts.map +1 -0
- package/dist/core/planning/types.js +3 -0
- package/dist/core/planning/types.js.map +1 -0
- package/dist/core/planning/values.d.ts +76 -0
- package/dist/core/planning/values.d.ts.map +1 -0
- package/dist/core/planning/values.js +852 -0
- package/dist/core/planning/values.js.map +1 -0
- package/dist/core/proxy/create-resource.d.ts +12 -0
- package/dist/core/proxy/create-resource.d.ts.map +1 -1
- package/dist/core/proxy/create-resource.js +39 -9
- package/dist/core/proxy/create-resource.js.map +1 -1
- package/dist/core/readiness/evaluator-factories.d.ts +3 -1
- package/dist/core/readiness/evaluator-factories.d.ts.map +1 -1
- package/dist/core/readiness/evaluator-factories.js +130 -5
- package/dist/core/readiness/evaluator-factories.js.map +1 -1
- package/dist/core/readiness/index.d.ts +2 -1
- package/dist/core/readiness/index.d.ts.map +1 -1
- package/dist/core/readiness/index.js +2 -1
- package/dist/core/readiness/index.js.map +1 -1
- package/dist/core/readiness/portable-strategies.d.ts +28 -0
- package/dist/core/readiness/portable-strategies.d.ts.map +1 -0
- package/dist/core/readiness/portable-strategies.js +55 -0
- package/dist/core/readiness/portable-strategies.js.map +1 -0
- package/dist/core/readiness/strategy-configuration.d.ts +12 -0
- package/dist/core/readiness/strategy-configuration.d.ts.map +1 -0
- package/dist/core/readiness/strategy-configuration.js +51 -0
- package/dist/core/readiness/strategy-configuration.js.map +1 -0
- package/dist/core/references/cel-evaluator.d.ts +5 -0
- package/dist/core/references/cel-evaluator.d.ts.map +1 -1
- package/dist/core/references/cel-evaluator.js +33 -2
- package/dist/core/references/cel-evaluator.js.map +1 -1
- package/dist/core/references/external-refs.d.ts +2 -0
- package/dist/core/references/external-refs.d.ts.map +1 -1
- package/dist/core/references/external-refs.js +3 -1
- package/dist/core/references/external-refs.js.map +1 -1
- package/dist/core/references/resolver.d.ts +7 -1
- package/dist/core/references/resolver.d.ts.map +1 -1
- package/dist/core/references/resolver.js +91 -9
- package/dist/core/references/resolver.js.map +1 -1
- package/dist/core/references/schema-proxy.d.ts.map +1 -1
- package/dist/core/references/schema-proxy.js +35 -21
- package/dist/core/references/schema-proxy.js.map +1 -1
- package/dist/core/resources/factory-registry.d.ts +64 -2
- package/dist/core/resources/factory-registry.d.ts.map +1 -1
- package/dist/core/resources/factory-registry.js +74 -3
- package/dist/core/resources/factory-registry.js.map +1 -1
- package/dist/core/resources/index.d.ts +3 -2
- package/dist/core/resources/index.d.ts.map +1 -1
- package/dist/core/resources/index.js +2 -1
- package/dist/core/resources/index.js.map +1 -1
- package/dist/core/resources/live-comparison.d.ts +58 -0
- package/dist/core/resources/live-comparison.d.ts.map +1 -0
- package/dist/core/resources/live-comparison.js +293 -0
- package/dist/core/resources/live-comparison.js.map +1 -0
- package/dist/core/runtime/standalone-operation.d.ts +12 -0
- package/dist/core/runtime/standalone-operation.d.ts.map +1 -0
- package/dist/core/runtime/standalone-operation.js +62 -0
- package/dist/core/runtime/standalone-operation.js.map +1 -0
- package/dist/core/serialization/cel-references.d.ts.map +1 -1
- package/dist/core/serialization/cel-references.js +11 -1
- package/dist/core/serialization/cel-references.js.map +1 -1
- package/dist/core/serialization/core.d.ts.map +1 -1
- package/dist/core/serialization/core.js +277 -182
- package/dist/core/serialization/core.js.map +1 -1
- package/dist/core/serialization/schema.d.ts.map +1 -1
- package/dist/core/serialization/schema.js +3 -3
- package/dist/core/serialization/schema.js.map +1 -1
- package/dist/core/serialization/status-analysis-pipeline.d.ts +1 -1
- package/dist/core/serialization/status-analysis-pipeline.d.ts.map +1 -1
- package/dist/core/serialization/status-analysis-pipeline.js +14 -11
- package/dist/core/serialization/status-analysis-pipeline.js.map +1 -1
- package/dist/core/serialization/yaml.d.ts +5 -1
- package/dist/core/serialization/yaml.d.ts.map +1 -1
- package/dist/core/serialization/yaml.js +35 -182
- package/dist/core/serialization/yaml.js.map +1 -1
- package/dist/core/types/deployment.d.ts +135 -14
- package/dist/core/types/deployment.d.ts.map +1 -1
- package/dist/core/types/kubernetes.d.ts +3 -0
- package/dist/core/types/kubernetes.d.ts.map +1 -1
- package/dist/core/types/resource-graph.d.ts +7 -1
- package/dist/core/types/resource-graph.d.ts.map +1 -1
- package/dist/core/types/serialization.d.ts +8 -1
- package/dist/core/types/serialization.d.ts.map +1 -1
- package/dist/core/validation/cel-validator.d.ts.map +1 -1
- package/dist/core/validation/cel-validator.js +25 -16
- package/dist/core/validation/cel-validator.js.map +1 -1
- package/dist/experimental-planning.d.ts +13 -0
- package/dist/experimental-planning.d.ts.map +1 -0
- package/dist/experimental-planning.js +12 -0
- package/dist/experimental-planning.js.map +1 -0
- package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts.map +1 -1
- package/dist/factories/apisix/compositions/apisix-bootstrap.js +27 -22
- package/dist/factories/apisix/compositions/apisix-bootstrap.js.map +1 -1
- package/dist/factories/apisix/compositions/apisix-helm-repository.d.ts +15 -0
- package/dist/factories/apisix/compositions/apisix-helm-repository.d.ts.map +1 -0
- package/dist/factories/apisix/compositions/apisix-helm-repository.js +28 -0
- package/dist/factories/apisix/compositions/apisix-helm-repository.js.map +1 -0
- package/dist/factories/apisix/compositions/index.d.ts +1 -0
- package/dist/factories/apisix/compositions/index.d.ts.map +1 -1
- package/dist/factories/apisix/compositions/index.js +1 -0
- package/dist/factories/apisix/compositions/index.js.map +1 -1
- package/dist/factories/apisix/types.d.ts +22 -0
- package/dist/factories/apisix/types.d.ts.map +1 -1
- package/dist/factories/apisix/types.js +16 -0
- package/dist/factories/apisix/types.js.map +1 -1
- package/dist/factories/apisix/utils/admin-credentials.d.ts +1 -0
- package/dist/factories/apisix/utils/admin-credentials.d.ts.map +1 -1
- package/dist/factories/apisix/utils/admin-credentials.js +5 -4
- package/dist/factories/apisix/utils/admin-credentials.js.map +1 -1
- package/dist/factories/caddy/compositions/caddy-ingress.d.ts.map +1 -1
- package/dist/factories/caddy/compositions/caddy-ingress.js +9 -2
- package/dist/factories/caddy/compositions/caddy-ingress.js.map +1 -1
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.d.ts.map +1 -1
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.js +11 -25
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.js.map +1 -1
- package/dist/factories/cert-manager/resources/certificates.d.ts.map +1 -1
- package/dist/factories/cert-manager/resources/certificates.js +2 -1
- package/dist/factories/cert-manager/resources/certificates.js.map +1 -1
- package/dist/factories/cert-manager/resources/challenges.d.ts.map +1 -1
- package/dist/factories/cert-manager/resources/challenges.js +3 -0
- package/dist/factories/cert-manager/resources/challenges.js.map +1 -1
- package/dist/factories/cilium/compositions/cilium-bootstrap.d.ts +4 -4
- package/dist/factories/cilium/resources/gateway.d.ts.map +1 -1
- package/dist/factories/cilium/resources/gateway.js +13 -12
- package/dist/factories/cilium/resources/gateway.js.map +1 -1
- package/dist/factories/cilium/resources/networking.d.ts.map +1 -1
- package/dist/factories/cilium/resources/networking.js +9 -0
- package/dist/factories/cilium/resources/networking.js.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-operator-bootstrap.d.ts +2 -1
- package/dist/factories/clickhouse/compositions/clickhouse-operator-bootstrap.d.ts.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-operator-bootstrap.js +2 -6
- package/dist/factories/clickhouse/compositions/clickhouse-operator-bootstrap.js.map +1 -1
- package/dist/factories/clickhouse/resources/installation.d.ts.map +1 -1
- package/dist/factories/clickhouse/resources/installation.js +2 -0
- package/dist/factories/clickhouse/resources/installation.js.map +1 -1
- package/dist/factories/clickhouse/resources/keeper.d.ts.map +1 -1
- package/dist/factories/clickhouse/resources/keeper.js +2 -0
- package/dist/factories/clickhouse/resources/keeper.js.map +1 -1
- package/dist/factories/clickhouse/types.d.ts +5 -2
- package/dist/factories/clickhouse/types.d.ts.map +1 -1
- package/dist/factories/clickhouse/types.js +2 -1
- package/dist/factories/clickhouse/types.js.map +1 -1
- package/dist/factories/clickstack/compositions/k8s-telemetry.d.ts +4 -2
- package/dist/factories/clickstack/compositions/k8s-telemetry.d.ts.map +1 -1
- package/dist/factories/clickstack/compositions/k8s-telemetry.js +2 -5
- package/dist/factories/clickstack/compositions/k8s-telemetry.js.map +1 -1
- package/dist/factories/clickstack/types.d.ts +2 -1
- package/dist/factories/clickstack/types.d.ts.map +1 -1
- package/dist/factories/clickstack/types.js +3 -1
- package/dist/factories/clickstack/types.js.map +1 -1
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.d.ts +2 -1
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.d.ts.map +1 -1
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.js +3 -8
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.js.map +1 -1
- package/dist/factories/cnpg/resources/backup.d.ts.map +1 -1
- package/dist/factories/cnpg/resources/backup.js +2 -0
- package/dist/factories/cnpg/resources/backup.js.map +1 -1
- package/dist/factories/cnpg/resources/cluster.d.ts.map +1 -1
- package/dist/factories/cnpg/resources/cluster.js +2 -1
- package/dist/factories/cnpg/resources/cluster.js.map +1 -1
- package/dist/factories/cnpg/resources/pooler.d.ts.map +1 -1
- package/dist/factories/cnpg/resources/pooler.js +2 -0
- package/dist/factories/cnpg/resources/pooler.js.map +1 -1
- package/dist/factories/cnpg/resources/scheduled-backup.d.ts.map +1 -1
- package/dist/factories/cnpg/resources/scheduled-backup.js +2 -1
- package/dist/factories/cnpg/resources/scheduled-backup.js.map +1 -1
- package/dist/factories/cnpg/types.d.ts +6 -3
- package/dist/factories/cnpg/types.d.ts.map +1 -1
- package/dist/factories/cnpg/types.js +2 -1
- package/dist/factories/cnpg/types.js.map +1 -1
- package/dist/factories/dagster/compositions/dagster-bootstrap.d.ts +2 -0
- package/dist/factories/dagster/compositions/dagster-bootstrap.d.ts.map +1 -1
- package/dist/factories/dagster/types.d.ts +5 -0
- package/dist/factories/dagster/types.d.ts.map +1 -1
- package/dist/factories/dagster/types.js +1 -0
- package/dist/factories/dagster/types.js.map +1 -1
- package/dist/factories/dagster/utils/helm-values-mapper.js +3 -0
- package/dist/factories/dagster/utils/helm-values-mapper.js.map +1 -1
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.d.ts.map +1 -1
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.js +7 -4
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.js.map +1 -1
- package/dist/factories/external-dns/resources/dns-endpoint.d.ts.map +1 -1
- package/dist/factories/external-dns/resources/dns-endpoint.js +20 -18
- package/dist/factories/external-dns/resources/dns-endpoint.js.map +1 -1
- package/dist/factories/flux/git-repository.d.ts.map +1 -1
- package/dist/factories/flux/git-repository.js +41 -34
- package/dist/factories/flux/git-repository.js.map +1 -1
- package/dist/factories/flux/kustomize/readiness-evaluators.d.ts +0 -6
- package/dist/factories/flux/kustomize/readiness-evaluators.d.ts.map +1 -1
- package/dist/factories/flux/kustomize/readiness-evaluators.js +12 -2
- package/dist/factories/flux/kustomize/readiness-evaluators.js.map +1 -1
- package/dist/factories/harbor/compositions/harbor-installation.d.ts +46 -38
- package/dist/factories/harbor/compositions/harbor-installation.d.ts.map +1 -1
- package/dist/factories/harbor/compositions/harbor-installation.js +4 -2
- package/dist/factories/harbor/compositions/harbor-installation.js.map +1 -1
- package/dist/factories/harbor/types.d.ts +13 -11
- package/dist/factories/harbor/types.d.ts.map +1 -1
- package/dist/factories/harbor/types.js +11 -9
- package/dist/factories/harbor/types.js.map +1 -1
- package/dist/factories/helm/helm-repository.d.ts.map +1 -1
- package/dist/factories/helm/helm-repository.js +14 -1
- package/dist/factories/helm/helm-repository.js.map +1 -1
- package/dist/factories/helm/index.d.ts +2 -0
- package/dist/factories/helm/index.d.ts.map +1 -1
- package/dist/factories/helm/index.js +1 -0
- package/dist/factories/helm/index.js.map +1 -1
- package/dist/factories/helm/readiness-evaluators.d.ts.map +1 -1
- package/dist/factories/helm/readiness-evaluators.js +46 -7
- package/dist/factories/helm/readiness-evaluators.js.map +1 -1
- package/dist/factories/helm/status.d.ts +18 -0
- package/dist/factories/helm/status.d.ts.map +1 -0
- package/dist/factories/helm/status.js +38 -0
- package/dist/factories/helm/status.js.map +1 -0
- package/dist/factories/index.d.ts +2 -2
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +4 -4
- package/dist/factories/index.js.map +1 -1
- package/dist/factories/inngest/compositions/inngest-bootstrap.d.ts +1 -1
- package/dist/factories/inngest/compositions/inngest-bootstrap.d.ts.map +1 -1
- package/dist/factories/inngest/compositions/inngest-bootstrap.js +2 -4
- package/dist/factories/inngest/compositions/inngest-bootstrap.js.map +1 -1
- package/dist/factories/inngest/resources/helm.d.ts.map +1 -1
- package/dist/factories/inngest/resources/helm.js +12 -3
- package/dist/factories/inngest/resources/helm.js.map +1 -1
- package/dist/factories/inngest/types.d.ts +3 -7
- package/dist/factories/inngest/types.d.ts.map +1 -1
- package/dist/factories/inngest/types.js +1 -1
- package/dist/factories/inngest/types.js.map +1 -1
- package/dist/factories/kro/kro-crd.d.ts.map +1 -1
- package/dist/factories/kro/kro-crd.js +32 -33
- package/dist/factories/kro/kro-crd.js.map +1 -1
- package/dist/factories/kro/kro-custom-resource.d.ts.map +1 -1
- package/dist/factories/kro/kro-custom-resource.js +91 -85
- package/dist/factories/kro/kro-custom-resource.js.map +1 -1
- package/dist/factories/kro/resource-graph-definition.d.ts.map +1 -1
- package/dist/factories/kro/resource-graph-definition.js +127 -117
- package/dist/factories/kro/resource-graph-definition.js.map +1 -1
- package/dist/factories/kubernetes/autoscaling/horizontal-pod-autoscaler-v1.d.ts.map +1 -1
- package/dist/factories/kubernetes/autoscaling/horizontal-pod-autoscaler-v1.js +27 -26
- package/dist/factories/kubernetes/autoscaling/horizontal-pod-autoscaler-v1.js.map +1 -1
- package/dist/factories/kubernetes/autoscaling/horizontal-pod-autoscaler.d.ts.map +1 -1
- package/dist/factories/kubernetes/autoscaling/horizontal-pod-autoscaler.js +22 -22
- package/dist/factories/kubernetes/autoscaling/horizontal-pod-autoscaler.js.map +1 -1
- package/dist/factories/kubernetes/certificates/certificate-signing-request.d.ts.map +1 -1
- package/dist/factories/kubernetes/certificates/certificate-signing-request.js +41 -39
- package/dist/factories/kubernetes/certificates/certificate-signing-request.js.map +1 -1
- package/dist/factories/kubernetes/core/component-status.d.ts.map +1 -1
- package/dist/factories/kubernetes/core/component-status.js +14 -16
- package/dist/factories/kubernetes/core/component-status.js.map +1 -1
- package/dist/factories/kubernetes/core/namespace.d.ts.map +1 -1
- package/dist/factories/kubernetes/core/namespace.js +31 -38
- package/dist/factories/kubernetes/core/namespace.js.map +1 -1
- package/dist/factories/kubernetes/core/node.d.ts.map +1 -1
- package/dist/factories/kubernetes/core/node.js +17 -25
- package/dist/factories/kubernetes/core/node.js.map +1 -1
- package/dist/factories/kubernetes/core/pod.d.ts.map +1 -1
- package/dist/factories/kubernetes/core/pod.js +31 -35
- package/dist/factories/kubernetes/core/pod.js.map +1 -1
- package/dist/factories/kubernetes/extensions/custom-resource-definition.d.ts.map +1 -1
- package/dist/factories/kubernetes/extensions/custom-resource-definition.js +34 -36
- package/dist/factories/kubernetes/extensions/custom-resource-definition.js.map +1 -1
- package/dist/factories/kubernetes/extensions/custom-resource.d.ts.map +1 -1
- package/dist/factories/kubernetes/extensions/custom-resource.js +2 -4
- package/dist/factories/kubernetes/extensions/custom-resource.js.map +1 -1
- package/dist/factories/kubernetes/networking/endpoints.d.ts.map +1 -1
- package/dist/factories/kubernetes/networking/endpoints.js +29 -30
- package/dist/factories/kubernetes/networking/endpoints.js.map +1 -1
- package/dist/factories/kubernetes/networking/ingress.d.ts.map +1 -1
- package/dist/factories/kubernetes/networking/ingress.js +46 -57
- package/dist/factories/kubernetes/networking/ingress.js.map +1 -1
- package/dist/factories/kubernetes/networking/network-policy.d.ts +9 -0
- package/dist/factories/kubernetes/networking/network-policy.d.ts.map +1 -1
- package/dist/factories/kubernetes/networking/network-policy.js +51 -1
- package/dist/factories/kubernetes/networking/network-policy.js.map +1 -1
- package/dist/factories/kubernetes/networking/service.d.ts.map +1 -1
- package/dist/factories/kubernetes/networking/service.js +48 -40
- package/dist/factories/kubernetes/networking/service.js.map +1 -1
- package/dist/factories/kubernetes/policy/pod-disruption-budget.d.ts.map +1 -1
- package/dist/factories/kubernetes/policy/pod-disruption-budget.js +40 -46
- package/dist/factories/kubernetes/policy/pod-disruption-budget.js.map +1 -1
- package/dist/factories/kubernetes/policy/resource-quota.d.ts.map +1 -1
- package/dist/factories/kubernetes/policy/resource-quota.js +30 -34
- package/dist/factories/kubernetes/policy/resource-quota.js.map +1 -1
- package/dist/factories/kubernetes/storage/persistent-volume-claim.d.ts.map +1 -1
- package/dist/factories/kubernetes/storage/persistent-volume-claim.js +22 -21
- package/dist/factories/kubernetes/storage/persistent-volume-claim.js.map +1 -1
- package/dist/factories/kubernetes/storage/persistent-volume.d.ts.map +1 -1
- package/dist/factories/kubernetes/storage/persistent-volume.js +32 -38
- package/dist/factories/kubernetes/storage/persistent-volume.js.map +1 -1
- package/dist/factories/kubernetes/storage/volume-attachment.d.ts.map +1 -1
- package/dist/factories/kubernetes/storage/volume-attachment.js +12 -11
- package/dist/factories/kubernetes/storage/volume-attachment.js.map +1 -1
- package/dist/factories/kubernetes/workloads/cron-job.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/cron-job.js +39 -34
- package/dist/factories/kubernetes/workloads/cron-job.js.map +1 -1
- package/dist/factories/kubernetes/workloads/daemon-set.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/daemon-set.js +24 -23
- package/dist/factories/kubernetes/workloads/daemon-set.js.map +1 -1
- package/dist/factories/kubernetes/workloads/deployment.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/deployment.js +45 -35
- package/dist/factories/kubernetes/workloads/deployment.js.map +1 -1
- package/dist/factories/kubernetes/workloads/job.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/job.js +87 -77
- package/dist/factories/kubernetes/workloads/job.js.map +1 -1
- package/dist/factories/kubernetes/workloads/replica-set.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/replica-set.js +24 -24
- package/dist/factories/kubernetes/workloads/replica-set.js.map +1 -1
- package/dist/factories/kubernetes/workloads/replication-controller.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/replication-controller.js +37 -26
- package/dist/factories/kubernetes/workloads/replication-controller.js.map +1 -1
- package/dist/factories/kubernetes/workloads/stateful-set.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/stateful-set.js +69 -55
- package/dist/factories/kubernetes/workloads/stateful-set.js.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-artifact-applier.d.ts +15 -0
- package/dist/factories/kubernetes/yaml/yaml-artifact-applier.d.ts.map +1 -0
- package/dist/factories/kubernetes/yaml/yaml-artifact-applier.js +69 -0
- package/dist/factories/kubernetes/yaml/yaml-artifact-applier.js.map +1 -0
- package/dist/factories/kubernetes/yaml/yaml-directory.d.ts +2 -1
- package/dist/factories/kubernetes/yaml/yaml-directory.d.ts.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-directory.js +3 -34
- package/dist/factories/kubernetes/yaml/yaml-directory.js.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-file.d.ts +13 -91
- package/dist/factories/kubernetes/yaml/yaml-file.d.ts.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-file.js +21 -311
- package/dist/factories/kubernetes/yaml/yaml-file.js.map +1 -1
- package/dist/factories/nats/compositions/nats-bootstrap.d.ts +2 -2
- package/dist/factories/nats/compositions/nats-bootstrap.d.ts.map +1 -1
- package/dist/factories/nats/compositions/nats-bootstrap.js +2 -3
- package/dist/factories/nats/compositions/nats-bootstrap.js.map +1 -1
- package/dist/factories/nats/resources/jetstream.d.ts.map +1 -1
- package/dist/factories/nats/resources/jetstream.js +2 -0
- package/dist/factories/nats/resources/jetstream.js.map +1 -1
- package/dist/factories/nats/types.d.ts +3 -3
- package/dist/factories/nats/types.js +1 -1
- package/dist/factories/nats/types.js.map +1 -1
- package/dist/factories/ory/compositions/ory-platform-stack.d.ts.map +1 -1
- package/dist/factories/ory/compositions/ory-platform-stack.js +35 -9
- package/dist/factories/ory/compositions/ory-platform-stack.js.map +1 -1
- package/dist/factories/ory/resources/oathkeeper-rule.d.ts.map +1 -1
- package/dist/factories/ory/resources/oathkeeper-rule.js +11 -8
- package/dist/factories/ory/resources/oathkeeper-rule.js.map +1 -1
- package/dist/factories/ory/resources/oauth2-client.d.ts.map +1 -1
- package/dist/factories/ory/resources/oauth2-client.js +12 -9
- package/dist/factories/ory/resources/oauth2-client.js.map +1 -1
- package/dist/factories/ory/types.d.ts +3 -0
- package/dist/factories/ory/types.d.ts.map +1 -1
- package/dist/factories/ory/types.js +1 -0
- package/dist/factories/ory/types.js.map +1 -1
- package/dist/factories/rook/compositions/rook-ceph-operator-installation.d.ts +2 -2
- package/dist/factories/rook/compositions/rook-ceph-operator-installation.d.ts.map +1 -1
- package/dist/factories/rook/compositions/rook-ceph-operator-installation.js +2 -3
- package/dist/factories/rook/compositions/rook-ceph-operator-installation.js.map +1 -1
- package/dist/factories/rook/resources/ceph-object-store-user.d.ts.map +1 -1
- package/dist/factories/rook/resources/ceph-object-store-user.js +2 -0
- package/dist/factories/rook/resources/ceph-object-store-user.js.map +1 -1
- package/dist/factories/rook/resources/ceph-object-store.d.ts.map +1 -1
- package/dist/factories/rook/resources/ceph-object-store.js +2 -0
- package/dist/factories/rook/resources/ceph-object-store.js.map +1 -1
- package/dist/factories/rook/resources/object-bucket-claim.d.ts.map +1 -1
- package/dist/factories/rook/resources/object-bucket-claim.js +2 -0
- package/dist/factories/rook/resources/object-bucket-claim.js.map +1 -1
- package/dist/factories/rook/types.d.ts +1 -1
- package/dist/factories/rook/types.js +1 -1
- package/dist/factories/rook/types.js.map +1 -1
- package/dist/factories/searxng/compositions/searxng-bootstrap.d.ts.map +1 -1
- package/dist/factories/searxng/compositions/searxng-bootstrap.js +2 -2
- package/dist/factories/searxng/compositions/searxng-bootstrap.js.map +1 -1
- package/dist/factories/searxng/resources/searxng.d.ts.map +1 -1
- package/dist/factories/searxng/resources/searxng.js +2 -0
- package/dist/factories/searxng/resources/searxng.js.map +1 -1
- package/dist/factories/valkey/compositions/valkey-bootstrap.d.ts +2 -2
- package/dist/factories/valkey/compositions/valkey-bootstrap.d.ts.map +1 -1
- package/dist/factories/valkey/compositions/valkey-bootstrap.js +4 -9
- package/dist/factories/valkey/compositions/valkey-bootstrap.js.map +1 -1
- package/dist/factories/valkey/resources/valkey.d.ts.map +1 -1
- package/dist/factories/valkey/resources/valkey.js +2 -1
- package/dist/factories/valkey/resources/valkey.js.map +1 -1
- package/dist/factories/valkey/types.d.ts +3 -7
- package/dist/factories/valkey/types.d.ts.map +1 -1
- package/dist/factories/valkey/types.js +1 -1
- package/dist/factories/valkey/types.js.map +1 -1
- package/dist/factories/webapp/compositions/web-app-with-processing.d.ts +3 -2
- package/dist/factories/webapp/compositions/web-app-with-processing.d.ts.map +1 -1
- package/dist/factories/webapp/compositions/web-app-with-processing.js +7 -6
- package/dist/factories/webapp/compositions/web-app-with-processing.js.map +1 -1
- package/dist/factories/webapp/types.d.ts +1 -0
- package/dist/factories/webapp/types.d.ts.map +1 -1
- package/dist/factories/webapp/types.js +2 -0
- package/dist/factories/webapp/types.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/shared/brands.d.ts +7 -0
- package/dist/shared/brands.d.ts.map +1 -1
- package/dist/shared/brands.js +7 -0
- package/dist/shared/brands.js.map +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.js.map +1 -1
- package/package.json +20 -5
- package/dist/factories/kubernetes/yaml/conflict-handler.d.ts +0 -23
- package/dist/factories/kubernetes/yaml/conflict-handler.d.ts.map +0 -1
- package/dist/factories/kubernetes/yaml/conflict-handler.js +0 -83
- package/dist/factories/kubernetes/yaml/conflict-handler.js.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TypeKroError } from '../errors.js';
|
|
2
|
+
import { type ArtifactPlan, type DirectKubernetesArtifactPlan, type DirectKubernetesArtifactResource, type KroArtifactPlan } from './artifacts.js';
|
|
3
|
+
export declare class ArtifactPlanDecodeError extends TypeKroError {
|
|
4
|
+
constructor(message: string, path: string);
|
|
5
|
+
}
|
|
6
|
+
export declare function encodeArtifactPlan(plan: ArtifactPlan): string;
|
|
7
|
+
export declare function decodeArtifactPlan(encoded: string): ArtifactPlan;
|
|
8
|
+
export declare function decodeDirectArtifactPlan(encoded: string): DirectKubernetesArtifactPlan;
|
|
9
|
+
/** Decode and validate one canonical direct artifact operation. */
|
|
10
|
+
export declare function decodeDirectArtifactResource(encoded: string): DirectKubernetesArtifactResource;
|
|
11
|
+
/** Decode and validate one canonical KRO artifact operation. */
|
|
12
|
+
export declare function decodeKroArtifactResource(encoded: string): KroArtifactPlan['resources'][number];
|
|
13
|
+
export declare function decodeKroArtifactPlan(encoded: string): KroArtifactPlan;
|
|
14
|
+
//# sourceMappingURL=artifact-codec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-codec.d.ts","sourceRoot":"","sources":["../../../src/core/planning/artifact-codec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AAMxB,qBAAa,uBAAwB,SAAQ,YAAY;gBAC3C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAI1C;AA6WD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAE7D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAEhE;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,4BAA4B,CAEtF;AAED,mEAAmE;AACnE,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,gCAAgC,CAc9F;AAED,gEAAgE;AAChE,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAc/F;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAEtE"}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { TypeKroError } from '../errors.js';
|
|
2
|
+
import { ARTIFACT_PLAN_VERSION, } from './artifacts.js';
|
|
3
|
+
import { canonicalDigest, canonicalStringify } from './canonical.js';
|
|
4
|
+
import { decodePlanValue } from './values.js';
|
|
5
|
+
export class ArtifactPlanDecodeError extends TypeKroError {
|
|
6
|
+
constructor(message, path) {
|
|
7
|
+
super(message, 'ARTIFACT_PLAN_DECODE_FAILED', { path });
|
|
8
|
+
this.name = 'ArtifactPlanDecodeError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function record(value, path) {
|
|
12
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
13
|
+
throw new ArtifactPlanDecodeError(`Expected an object at ${path}.`, path);
|
|
14
|
+
}
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
function nonEmptyString(value, path) {
|
|
18
|
+
if (typeof value !== 'string' || value.length === 0) {
|
|
19
|
+
throw new ArtifactPlanDecodeError(`Expected a non-empty string at ${path}.`, path);
|
|
20
|
+
}
|
|
21
|
+
return value;
|
|
22
|
+
}
|
|
23
|
+
function array(value, path) {
|
|
24
|
+
if (!Array.isArray(value)) {
|
|
25
|
+
throw new ArtifactPlanDecodeError(`Expected an array at ${path}.`, path);
|
|
26
|
+
}
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
function planValue(value, path) {
|
|
30
|
+
try {
|
|
31
|
+
decodePlanValue(JSON.stringify(value));
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
throw new ArtifactPlanDecodeError(`Invalid PlanValue at ${path}: ${error instanceof Error ? error.message : String(error)}`, path);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function applyPolicy(value, path) {
|
|
38
|
+
const policy = record(value, path);
|
|
39
|
+
const strategy = nonEmptyString(policy.strategy, `${path}.strategy`);
|
|
40
|
+
if (strategy === 'create-or-patch') {
|
|
41
|
+
if (!['warn', 'fail', 'patch', 'replace'].includes(String(policy.existingResource))) {
|
|
42
|
+
throw new ArtifactPlanDecodeError(`Invalid existing-resource policy at ${path}.`, path);
|
|
43
|
+
}
|
|
44
|
+
if (!['fail', 'recreate'].includes(String(policy.immutableFieldPolicy))) {
|
|
45
|
+
throw new ArtifactPlanDecodeError(`Invalid immutable-field policy at ${path}.`, path);
|
|
46
|
+
}
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (strategy === 'server-side-apply') {
|
|
50
|
+
nonEmptyString(policy.fieldManager, `${path}.fieldManager`);
|
|
51
|
+
if (!['fail', 'force-owned-fields'].includes(String(policy.fieldConflictPolicy))) {
|
|
52
|
+
throw new ArtifactPlanDecodeError(`Invalid field-conflict policy at ${path}.`, path);
|
|
53
|
+
}
|
|
54
|
+
if (!['fail', 'recreate'].includes(String(policy.immutableFieldPolicy))) {
|
|
55
|
+
throw new ArtifactPlanDecodeError(`Invalid immutable-field policy at ${path}.`, path);
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (strategy !== 'create-only' && strategy !== 'replace') {
|
|
60
|
+
throw new ArtifactPlanDecodeError(`Unknown apply strategy ${strategy} at ${path}.`, path);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function identity(value, path) {
|
|
64
|
+
const item = record(value, path);
|
|
65
|
+
nonEmptyString(item.apiVersion, `${path}.apiVersion`);
|
|
66
|
+
nonEmptyString(item.kind, `${path}.kind`);
|
|
67
|
+
planValue(item.name, `${path}.name`);
|
|
68
|
+
if (item.namespace !== undefined)
|
|
69
|
+
planValue(item.namespace, `${path}.namespace`);
|
|
70
|
+
if (item.scope !== 'cluster' && item.scope !== 'namespaced') {
|
|
71
|
+
throw new ArtifactPlanDecodeError(`Invalid Kubernetes scope at ${path}.scope.`, `${path}.scope`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function lifecycle(value, path) {
|
|
75
|
+
const item = record(value, path);
|
|
76
|
+
if (!['create', 'adopt', 'require-existing'].includes(String(item.creation))) {
|
|
77
|
+
throw new ArtifactPlanDecodeError(`Invalid creation policy at ${path}.creation.`, path);
|
|
78
|
+
}
|
|
79
|
+
if (!['authoritative', 'cooperative', 'reference-only'].includes(String(item.management))) {
|
|
80
|
+
throw new ArtifactPlanDecodeError(`Invalid management policy at ${path}.management.`, path);
|
|
81
|
+
}
|
|
82
|
+
if (!['delete', 'retain', 'delete-when-unused'].includes(String(item.deletion))) {
|
|
83
|
+
throw new ArtifactPlanDecodeError(`Invalid deletion policy at ${path}.deletion.`, path);
|
|
84
|
+
}
|
|
85
|
+
if (!['exclusive', 'shareable'].includes(String(item.sharing))) {
|
|
86
|
+
throw new ArtifactPlanDecodeError(`Invalid sharing policy at ${path}.sharing.`, path);
|
|
87
|
+
}
|
|
88
|
+
const instancing = record(item.instancing, `${path}.instancing`);
|
|
89
|
+
if (!['per-instance', 'per-scope', 'per-cluster'].includes(String(instancing.kind))) {
|
|
90
|
+
throw new ArtifactPlanDecodeError(`Invalid instancing policy at ${path}.instancing.`, path);
|
|
91
|
+
}
|
|
92
|
+
if (instancing.kind === 'per-scope')
|
|
93
|
+
planValue(instancing.key, `${path}.instancing.key`);
|
|
94
|
+
if (item.unusedEvidence !== undefined) {
|
|
95
|
+
const evidence = record(item.unusedEvidence, `${path}.unusedEvidence`);
|
|
96
|
+
nonEmptyString(evidence.provider, `${path}.unusedEvidence.provider`);
|
|
97
|
+
if (typeof evidence.version !== 'number') {
|
|
98
|
+
throw new ArtifactPlanDecodeError(`Invalid unused-evidence version at ${path}.`, path);
|
|
99
|
+
}
|
|
100
|
+
planValue(evidence.inputs, `${path}.unusedEvidence.inputs`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function artifactBase(value, path) {
|
|
104
|
+
const item = record(value, path);
|
|
105
|
+
nonEmptyString(item.id, `${path}.id`);
|
|
106
|
+
nonEmptyString(item.role, `${path}.role`);
|
|
107
|
+
if (item.sourceNodeId !== undefined)
|
|
108
|
+
nonEmptyString(item.sourceNodeId, `${path}.sourceNodeId`);
|
|
109
|
+
if (item.identity !== undefined)
|
|
110
|
+
identity(item.identity, `${path}.identity`);
|
|
111
|
+
if (item.desired !== undefined)
|
|
112
|
+
planValue(item.desired, `${path}.desired`);
|
|
113
|
+
lifecycle(item.lifecycle, `${path}.lifecycle`);
|
|
114
|
+
const readiness = record(item.readiness, `${path}.readiness`);
|
|
115
|
+
array(readiness.activation, `${path}.readiness.activation`).forEach((entry, index) => planValue(entry, `${path}.readiness.activation[${index}]`));
|
|
116
|
+
array(readiness.readyWhen, `${path}.readiness.readyWhen`).forEach((entry, index) => planValue(entry, `${path}.readiness.readyWhen[${index}]`));
|
|
117
|
+
if (readiness.strategy !== undefined) {
|
|
118
|
+
const strategy = record(readiness.strategy, `${path}.readiness.strategy`);
|
|
119
|
+
if (strategy.kind === 'registered') {
|
|
120
|
+
nonEmptyString(strategy.id, `${path}.readiness.strategy.id`);
|
|
121
|
+
nonEmptyString(strategy.revision, `${path}.readiness.strategy.revision`);
|
|
122
|
+
if (strategy.configuration !== undefined) {
|
|
123
|
+
planValue(strategy.configuration, `${path}.readiness.strategy.configuration`);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
else if (strategy.kind === 'runtime-binding') {
|
|
127
|
+
nonEmptyString(strategy.binding, `${path}.readiness.strategy.binding`);
|
|
128
|
+
if (strategy.version !== 1) {
|
|
129
|
+
throw new ArtifactPlanDecodeError(`Unsupported runtime readiness binding version.`, `${path}.readiness.strategy.version`);
|
|
130
|
+
}
|
|
131
|
+
if (strategy.classification !== undefined) {
|
|
132
|
+
const classification = record(strategy.classification, `${path}.readiness.strategy.classification`);
|
|
133
|
+
if (![
|
|
134
|
+
'ambient-clock',
|
|
135
|
+
'ambient-state',
|
|
136
|
+
'host-callback',
|
|
137
|
+
'opaque-code',
|
|
138
|
+
'unclassified-evaluator',
|
|
139
|
+
].includes(String(classification.reason))) {
|
|
140
|
+
throw new ArtifactPlanDecodeError(`Invalid runtime readiness classification.`, `${path}.readiness.strategy.classification.reason`);
|
|
141
|
+
}
|
|
142
|
+
if (classification.description !== undefined &&
|
|
143
|
+
typeof classification.description !== 'string') {
|
|
144
|
+
throw new ArtifactPlanDecodeError(`Runtime readiness classification description must be a string.`, `${path}.readiness.strategy.classification.description`);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
throw new ArtifactPlanDecodeError(`Unknown readiness strategy.`, `${path}.readiness.strategy.kind`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (item.iteration !== undefined) {
|
|
153
|
+
array(item.iteration, `${path}.iteration`).forEach((entry, index) => {
|
|
154
|
+
const dimensionPath = `${path}.iteration[${index}]`;
|
|
155
|
+
const dimension = record(entry, dimensionPath);
|
|
156
|
+
nonEmptyString(dimension.variable, `${dimensionPath}.variable`);
|
|
157
|
+
planValue(dimension.collection, `${dimensionPath}.collection`);
|
|
158
|
+
const itemPath = nonEmptyString(dimension.itemPath, `${dimensionPath}.itemPath`);
|
|
159
|
+
if (!itemPath.split('.').includes('$item')) {
|
|
160
|
+
throw new ArtifactPlanDecodeError(`Iteration itemPath must contain a $item segment.`, `${dimensionPath}.itemPath`);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
if (item.templateOverrides !== undefined) {
|
|
165
|
+
array(item.templateOverrides, `${path}.templateOverrides`).forEach((entry, index) => {
|
|
166
|
+
const override = record(entry, `${path}.templateOverrides[${index}]`);
|
|
167
|
+
nonEmptyString(override.propertyPath, `${path}.templateOverrides[${index}].propertyPath`);
|
|
168
|
+
planValue(override.value, `${path}.templateOverrides[${index}].value`);
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
array(item.requiredCapabilities, `${path}.requiredCapabilities`);
|
|
172
|
+
return item;
|
|
173
|
+
}
|
|
174
|
+
function directResource(value, path) {
|
|
175
|
+
const item = artifactBase(value, path);
|
|
176
|
+
if (item.role === 'external-reference' || item.role === 'compatibility-closure') {
|
|
177
|
+
if (item.apply !== undefined) {
|
|
178
|
+
throw new ArtifactPlanDecodeError(`${item.role} must not carry an apply policy.`, `${path}.apply`);
|
|
179
|
+
}
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (item.role !== 'application-resource' &&
|
|
183
|
+
item.role !== 'singleton-owner' &&
|
|
184
|
+
item.role !== 'direct-prerequisite') {
|
|
185
|
+
throw new ArtifactPlanDecodeError(`Unknown direct artifact role ${String(item.role)}.`, `${path}.role`);
|
|
186
|
+
}
|
|
187
|
+
applyPolicy(item.apply, `${path}.apply`);
|
|
188
|
+
}
|
|
189
|
+
function kroResource(value, path) {
|
|
190
|
+
const item = artifactBase(value, path);
|
|
191
|
+
if (item.role === 'kro-graph-child' || item.role === 'kro-external-reference') {
|
|
192
|
+
if (item.apply !== undefined) {
|
|
193
|
+
throw new ArtifactPlanDecodeError(`${item.role} is KRO-owned and must not carry a TypeKro apply policy.`, `${path}.apply`);
|
|
194
|
+
}
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
if (item.role !== 'kro-prerequisite' &&
|
|
198
|
+
item.role !== 'hoisted-namespace' &&
|
|
199
|
+
item.role !== 'singleton-owner' &&
|
|
200
|
+
item.role !== 'resource-graph-definition' &&
|
|
201
|
+
item.role !== 'instance') {
|
|
202
|
+
throw new ArtifactPlanDecodeError(`Unknown KRO artifact role ${String(item.role)}.`, `${path}.role`);
|
|
203
|
+
}
|
|
204
|
+
applyPolicy(item.apply, `${path}.apply`);
|
|
205
|
+
if (item.role === 'instance' && item.desired === undefined) {
|
|
206
|
+
throw new ArtifactPlanDecodeError('KRO instance artifact requires desired state.', `${path}.desired`);
|
|
207
|
+
}
|
|
208
|
+
if (item.role === 'resource-graph-definition') {
|
|
209
|
+
const graph = record(item.graph, `${path}.graph`);
|
|
210
|
+
if (graph.version !== 1) {
|
|
211
|
+
throw new ArtifactPlanDecodeError('Unsupported KRO graph IR version.', `${path}.graph.version`);
|
|
212
|
+
}
|
|
213
|
+
nonEmptyString(graph.name, `${path}.graph.name`);
|
|
214
|
+
const root = record(graph.root, `${path}.graph.root`);
|
|
215
|
+
nonEmptyString(root.apiVersion, `${path}.graph.root.apiVersion`);
|
|
216
|
+
nonEmptyString(root.kind, `${path}.graph.root.kind`);
|
|
217
|
+
record(root.specSchema, `${path}.graph.root.specSchema`);
|
|
218
|
+
record(root.persistedStatusSchema, `${path}.graph.root.persistedStatusSchema`);
|
|
219
|
+
array(graph.children, `${path}.graph.children`).forEach((entry, index) => kroResource(entry, `${path}.graph.children[${index}]`));
|
|
220
|
+
array(graph.edges, `${path}.graph.edges`);
|
|
221
|
+
array(graph.statusProjections, `${path}.graph.statusProjections`);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function compiledDigest(plan) {
|
|
225
|
+
return canonicalDigest({
|
|
226
|
+
version: plan.version,
|
|
227
|
+
target: plan.target,
|
|
228
|
+
compiler: plan.compiler,
|
|
229
|
+
planIdentityDigest: plan.planIdentityDigest,
|
|
230
|
+
resources: plan.resources,
|
|
231
|
+
edges: plan.edges,
|
|
232
|
+
artifactRequirements: plan.artifactRequirements ?? [],
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
function artifactRequirements(value, path) {
|
|
236
|
+
const ids = new Set();
|
|
237
|
+
array(value, path).forEach((entry, index) => {
|
|
238
|
+
const itemPath = `${path}[${index}]`;
|
|
239
|
+
const item = record(entry, itemPath);
|
|
240
|
+
const id = nonEmptyString(item.id, `${itemPath}.id`);
|
|
241
|
+
nonEmptyString(item.kind, `${itemPath}.kind`);
|
|
242
|
+
planValue(item.descriptor, `${itemPath}.descriptor`);
|
|
243
|
+
const outputs = array(item.outputs, `${itemPath}.outputs`).map((output, outputIndex) => nonEmptyString(output, `${itemPath}.outputs[${outputIndex}]`));
|
|
244
|
+
if (outputs.length === 0 || new Set(outputs).size !== outputs.length) {
|
|
245
|
+
throw new ArtifactPlanDecodeError(`Artifact requirement ${id} must declare unique outputs.`, `${itemPath}.outputs`);
|
|
246
|
+
}
|
|
247
|
+
if (ids.has(id)) {
|
|
248
|
+
throw new ArtifactPlanDecodeError(`Artifact requirement id ${id} is duplicated.`, itemPath);
|
|
249
|
+
}
|
|
250
|
+
ids.add(id);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
function decode(encoded, expectedTarget) {
|
|
254
|
+
let parsed;
|
|
255
|
+
try {
|
|
256
|
+
parsed = JSON.parse(encoded);
|
|
257
|
+
}
|
|
258
|
+
catch (error) {
|
|
259
|
+
throw new ArtifactPlanDecodeError(`Artifact plan is not valid JSON: ${error instanceof Error ? error.message : String(error)}`, '$');
|
|
260
|
+
}
|
|
261
|
+
const plan = record(parsed, '$');
|
|
262
|
+
if (plan.version !== ARTIFACT_PLAN_VERSION) {
|
|
263
|
+
throw new ArtifactPlanDecodeError(`Unsupported artifact plan version ${String(plan.version)}.`, '$.version');
|
|
264
|
+
}
|
|
265
|
+
if (plan.target !== 'direct' && plan.target !== 'kro') {
|
|
266
|
+
throw new ArtifactPlanDecodeError(`Unknown artifact target ${String(plan.target)}.`, '$.target');
|
|
267
|
+
}
|
|
268
|
+
if (expectedTarget && plan.target !== expectedTarget) {
|
|
269
|
+
throw new ArtifactPlanDecodeError(`Expected ${expectedTarget} plan, received ${plan.target}.`, '$.target');
|
|
270
|
+
}
|
|
271
|
+
const compiler = record(plan.compiler, '$.compiler');
|
|
272
|
+
const expectedCompiler = plan.target === 'direct' ? 'typekro.direct' : 'typekro.kro';
|
|
273
|
+
if (compiler.id !== expectedCompiler || compiler.version !== 1) {
|
|
274
|
+
throw new ArtifactPlanDecodeError('Artifact compiler identity is unsupported.', '$.compiler');
|
|
275
|
+
}
|
|
276
|
+
nonEmptyString(plan.planIdentityDigest, '$.planIdentityDigest');
|
|
277
|
+
const expectedCompiledDigest = nonEmptyString(plan.compiledArtifactDigest, '$.compiledArtifactDigest');
|
|
278
|
+
array(plan.resources, '$.resources').forEach((entry, index) => {
|
|
279
|
+
if (plan.target === 'direct')
|
|
280
|
+
directResource(entry, `$.resources[${index}]`);
|
|
281
|
+
else
|
|
282
|
+
kroResource(entry, `$.resources[${index}]`);
|
|
283
|
+
});
|
|
284
|
+
array(plan.edges, '$.edges');
|
|
285
|
+
array(plan.requiredCapabilities, '$.requiredCapabilities');
|
|
286
|
+
artifactRequirements(plan.artifactRequirements ?? [], '$.artifactRequirements');
|
|
287
|
+
array(plan.diagnostics, '$.diagnostics');
|
|
288
|
+
if (compiledDigest(plan) !== expectedCompiledDigest) {
|
|
289
|
+
throw new ArtifactPlanDecodeError('Artifact plan digest does not match its canonical compiled content.', '$.compiledArtifactDigest');
|
|
290
|
+
}
|
|
291
|
+
return plan;
|
|
292
|
+
}
|
|
293
|
+
export function encodeArtifactPlan(plan) {
|
|
294
|
+
return canonicalStringify(plan);
|
|
295
|
+
}
|
|
296
|
+
export function decodeArtifactPlan(encoded) {
|
|
297
|
+
return decode(encoded);
|
|
298
|
+
}
|
|
299
|
+
export function decodeDirectArtifactPlan(encoded) {
|
|
300
|
+
return decode(encoded, 'direct');
|
|
301
|
+
}
|
|
302
|
+
/** Decode and validate one canonical direct artifact operation. */
|
|
303
|
+
export function decodeDirectArtifactResource(encoded) {
|
|
304
|
+
let parsed;
|
|
305
|
+
try {
|
|
306
|
+
parsed = JSON.parse(encoded);
|
|
307
|
+
}
|
|
308
|
+
catch (error) {
|
|
309
|
+
throw new ArtifactPlanDecodeError(`Direct artifact resource is not valid JSON: ${error instanceof Error ? error.message : String(error)}`, '$');
|
|
310
|
+
}
|
|
311
|
+
directResource(parsed, '$');
|
|
312
|
+
return parsed;
|
|
313
|
+
}
|
|
314
|
+
/** Decode and validate one canonical KRO artifact operation. */
|
|
315
|
+
export function decodeKroArtifactResource(encoded) {
|
|
316
|
+
let parsed;
|
|
317
|
+
try {
|
|
318
|
+
parsed = JSON.parse(encoded);
|
|
319
|
+
}
|
|
320
|
+
catch (error) {
|
|
321
|
+
throw new ArtifactPlanDecodeError(`KRO artifact resource is not valid JSON: ${error instanceof Error ? error.message : String(error)}`, '$');
|
|
322
|
+
}
|
|
323
|
+
kroResource(parsed, '$');
|
|
324
|
+
return parsed;
|
|
325
|
+
}
|
|
326
|
+
export function decodeKroArtifactPlan(encoded) {
|
|
327
|
+
return decode(encoded, 'kro');
|
|
328
|
+
}
|
|
329
|
+
//# sourceMappingURL=artifact-codec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-codec.js","sourceRoot":"","sources":["../../../src/core/planning/artifact-codec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EACL,qBAAqB,GA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AE,CAAC;QACxB,MAAM,IAAI,uBAAuB,CAC/B,4CACE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,EACF,GAAG,CACJ,CAAC;IACJ,CAAC;IACD,WAAW,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzB,OAAO,MAA8C,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,MAAM,CAAC,OAAO,EAAE,KAAK,CAAoB,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import type { ArtifactRequirement, CapabilityRequirement, KubernetesIdentity, LifecyclePolicy, PlanDiagnostic, PlanEdge, PlanIterationDimension, PlanTemplateOverride, PlanValue, ReadinessStrategyIdentity, SchemaIR, StatusProjection } from './types.js';
|
|
2
|
+
/** Version of the experimental compiled artifact DTOs. */
|
|
3
|
+
export declare const ARTIFACT_PLAN_VERSION: 1;
|
|
4
|
+
export declare const DIRECT_ARTIFACT_EXECUTION_RECORD_VERSION: 1;
|
|
5
|
+
export declare const KRO_ARTIFACT_BUNDLE_VERSION: 1;
|
|
6
|
+
/** API-server write behavior selected by a target compiler for one artifact. */
|
|
7
|
+
export type ArtifactApplyPolicy = {
|
|
8
|
+
readonly strategy: 'create-or-patch';
|
|
9
|
+
readonly patchType?: 'merge' | 'strategic';
|
|
10
|
+
readonly existingResource: 'warn' | 'fail' | 'patch' | 'replace';
|
|
11
|
+
readonly immutableFieldPolicy: 'fail' | 'recreate';
|
|
12
|
+
} | {
|
|
13
|
+
readonly strategy: 'server-side-apply';
|
|
14
|
+
readonly fieldManager: string;
|
|
15
|
+
readonly fieldConflictPolicy: 'fail' | 'force-owned-fields';
|
|
16
|
+
readonly immutableFieldPolicy: 'fail' | 'recreate';
|
|
17
|
+
} | {
|
|
18
|
+
readonly strategy: 'create-only';
|
|
19
|
+
} | {
|
|
20
|
+
readonly strategy: 'replace';
|
|
21
|
+
};
|
|
22
|
+
export interface ArtifactCompilerIdentity {
|
|
23
|
+
readonly id: 'typekro.direct' | 'typekro.kro';
|
|
24
|
+
readonly version: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ArtifactReadinessContract {
|
|
27
|
+
readonly activation: readonly PlanValue[];
|
|
28
|
+
readonly readyWhen: readonly PlanValue[];
|
|
29
|
+
readonly strategy?: ReadinessStrategyIdentity;
|
|
30
|
+
}
|
|
31
|
+
interface ArtifactResourceBase {
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly sourceNodeId?: string;
|
|
34
|
+
readonly identity?: KubernetesIdentity;
|
|
35
|
+
readonly desired?: PlanValue;
|
|
36
|
+
readonly lifecycle: LifecyclePolicy;
|
|
37
|
+
readonly readiness: ArtifactReadinessContract;
|
|
38
|
+
readonly iteration?: readonly PlanIterationDimension[];
|
|
39
|
+
readonly templateOverrides?: readonly PlanTemplateOverride[];
|
|
40
|
+
readonly requiredCapabilities: readonly CapabilityRequirement[];
|
|
41
|
+
}
|
|
42
|
+
export interface DirectApplicationArtifact extends ArtifactResourceBase {
|
|
43
|
+
readonly role: 'application-resource';
|
|
44
|
+
readonly apply: ArtifactApplyPolicy;
|
|
45
|
+
}
|
|
46
|
+
export interface DirectExternalReferenceArtifact extends ArtifactResourceBase {
|
|
47
|
+
readonly role: 'external-reference';
|
|
48
|
+
readonly apply?: never;
|
|
49
|
+
}
|
|
50
|
+
export interface DirectCompatibilityClosureArtifact extends ArtifactResourceBase {
|
|
51
|
+
readonly role: 'compatibility-closure';
|
|
52
|
+
readonly apply?: never;
|
|
53
|
+
}
|
|
54
|
+
export interface DirectSupportingArtifact extends ArtifactResourceBase {
|
|
55
|
+
readonly role: 'singleton-owner' | 'direct-prerequisite';
|
|
56
|
+
readonly apply: ArtifactApplyPolicy;
|
|
57
|
+
}
|
|
58
|
+
export type DirectKubernetesArtifactResource = DirectApplicationArtifact | DirectExternalReferenceArtifact | DirectCompatibilityClosureArtifact | DirectSupportingArtifact;
|
|
59
|
+
/** A child template reconciled by KRO. It deliberately has no TypeKro apply policy. */
|
|
60
|
+
export interface KroGraphChildArtifact extends ArtifactResourceBase {
|
|
61
|
+
readonly role: 'kro-graph-child' | 'kro-external-reference';
|
|
62
|
+
readonly apply?: never;
|
|
63
|
+
}
|
|
64
|
+
export interface KroGraphDefinitionIR {
|
|
65
|
+
readonly version: 1;
|
|
66
|
+
readonly name: string;
|
|
67
|
+
readonly root: {
|
|
68
|
+
readonly apiVersion: string;
|
|
69
|
+
readonly kind: string;
|
|
70
|
+
readonly specSchema: SchemaIR;
|
|
71
|
+
readonly persistedStatusSchema: SchemaIR;
|
|
72
|
+
};
|
|
73
|
+
readonly children: readonly KroGraphChildArtifact[];
|
|
74
|
+
readonly edges: readonly PlanEdge[];
|
|
75
|
+
readonly statusProjections: readonly StatusProjection[];
|
|
76
|
+
}
|
|
77
|
+
/** A prerequisite or ownership artifact installed directly by TypeKro. */
|
|
78
|
+
export interface KroSupportingArtifact extends ArtifactResourceBase {
|
|
79
|
+
readonly role: 'kro-prerequisite' | 'hoisted-namespace' | 'singleton-owner';
|
|
80
|
+
readonly apply: ArtifactApplyPolicy;
|
|
81
|
+
}
|
|
82
|
+
/** The RGD operation carries explicit graph IR rather than private compiler state. */
|
|
83
|
+
export interface KroResourceGraphDefinitionArtifact extends ArtifactResourceBase {
|
|
84
|
+
readonly role: 'resource-graph-definition';
|
|
85
|
+
readonly graph: KroGraphDefinitionIR;
|
|
86
|
+
readonly apply: ArtifactApplyPolicy;
|
|
87
|
+
}
|
|
88
|
+
export interface KroInstanceArtifact extends ArtifactResourceBase {
|
|
89
|
+
readonly role: 'instance';
|
|
90
|
+
readonly desired: PlanValue;
|
|
91
|
+
readonly apply: ArtifactApplyPolicy;
|
|
92
|
+
}
|
|
93
|
+
export type KroArtifactResource = KroGraphChildArtifact | KroSupportingArtifact | KroResourceGraphDefinitionArtifact | KroInstanceArtifact;
|
|
94
|
+
interface ArtifactPlanBase<TResource> {
|
|
95
|
+
readonly version: 1;
|
|
96
|
+
readonly compiler: ArtifactCompilerIdentity;
|
|
97
|
+
readonly planIdentityDigest: string;
|
|
98
|
+
readonly compiledArtifactDigest: string;
|
|
99
|
+
readonly resources: readonly TResource[];
|
|
100
|
+
readonly edges: readonly PlanEdge[];
|
|
101
|
+
readonly requiredCapabilities: readonly CapabilityRequirement[];
|
|
102
|
+
/** Declared cross-provider artifacts whose outputs remain symbolic in compiled resources. */
|
|
103
|
+
readonly artifactRequirements: readonly ArtifactRequirement[];
|
|
104
|
+
readonly diagnostics: readonly PlanDiagnostic[];
|
|
105
|
+
}
|
|
106
|
+
export interface DirectKubernetesArtifactPlan extends ArtifactPlanBase<DirectKubernetesArtifactResource> {
|
|
107
|
+
readonly target: 'direct';
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Canonical per-resource slice used by fan-out execution hosts such as Alchemy.
|
|
111
|
+
* The artifact is concretized for one instance while preserving structured
|
|
112
|
+
* references and the original plan/compiler identity.
|
|
113
|
+
*/
|
|
114
|
+
export interface DirectArtifactExecutionRecord {
|
|
115
|
+
readonly version: 1;
|
|
116
|
+
readonly target: 'direct';
|
|
117
|
+
readonly planIdentityDigest: string;
|
|
118
|
+
readonly compiledArtifactDigest: string;
|
|
119
|
+
readonly artifact: DirectKubernetesArtifactResource;
|
|
120
|
+
readonly dependencies: readonly string[];
|
|
121
|
+
readonly executionDigest: string;
|
|
122
|
+
}
|
|
123
|
+
export interface KroArtifactPlan extends ArtifactPlanBase<KroArtifactResource> {
|
|
124
|
+
readonly target: 'kro';
|
|
125
|
+
}
|
|
126
|
+
export type KroExecutableArtifact = KroSupportingArtifact | KroResourceGraphDefinitionArtifact | KroInstanceArtifact;
|
|
127
|
+
/** Physical role of one directly applied operation in a complete KRO bundle. */
|
|
128
|
+
export type KroArtifactBundleOperationRole = 'kro-prerequisite' | 'hoisted-namespace' | 'singleton-owner-rgd' | 'singleton-owner-instance' | 'resource-graph-definition' | 'instance';
|
|
129
|
+
export interface KroArtifactBundleOperationSource {
|
|
130
|
+
readonly memberId: string;
|
|
131
|
+
readonly planIdentityDigest: string;
|
|
132
|
+
readonly compiledArtifactDigest: string;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* One canonical, host-independent outer KRO operation.
|
|
136
|
+
*
|
|
137
|
+
* Graph children remain inside the RGD artifact and are reconciled by KRO. Only
|
|
138
|
+
* resources TypeKro applies directly become bundle operations.
|
|
139
|
+
*/
|
|
140
|
+
export interface KroArtifactBundleOperation {
|
|
141
|
+
readonly id: string;
|
|
142
|
+
readonly role: KroArtifactBundleOperationRole;
|
|
143
|
+
/** Every compiled member that contributes this shared physical operation. */
|
|
144
|
+
readonly sources: readonly KroArtifactBundleOperationSource[];
|
|
145
|
+
readonly artifact: KroExecutableArtifact;
|
|
146
|
+
/** Concrete Kubernetes manifest encoded as a canonical PlanValue. */
|
|
147
|
+
readonly manifest: PlanValue;
|
|
148
|
+
/** Incoming operation ids, already resolved across nested singleton plans. */
|
|
149
|
+
readonly dependencies: readonly string[];
|
|
150
|
+
}
|
|
151
|
+
/** Complete physical KRO bundle consumed by every execution host/output form. */
|
|
152
|
+
export interface KroArtifactBundle {
|
|
153
|
+
readonly version: 1;
|
|
154
|
+
readonly target: 'kro';
|
|
155
|
+
readonly root: {
|
|
156
|
+
readonly memberId: string;
|
|
157
|
+
readonly rgdOperationId: string;
|
|
158
|
+
readonly instanceOperationId?: string;
|
|
159
|
+
};
|
|
160
|
+
/** Host/output requirements retained even when they do not become Kubernetes operations. */
|
|
161
|
+
readonly requiredCapabilities: readonly CapabilityRequirement[];
|
|
162
|
+
/** Cross-provider artifacts required while materializing one or more operations. */
|
|
163
|
+
readonly artifactRequirements: readonly ArtifactRequirement[];
|
|
164
|
+
readonly operations: readonly KroArtifactBundleOperation[];
|
|
165
|
+
readonly bundleDigest: string;
|
|
166
|
+
}
|
|
167
|
+
export type ArtifactPlan = DirectKubernetesArtifactPlan | KroArtifactPlan;
|
|
168
|
+
export interface DirectArtifactCompilerOptions {
|
|
169
|
+
readonly applyPolicy?: ArtifactApplyPolicy;
|
|
170
|
+
readonly strict?: boolean;
|
|
171
|
+
}
|
|
172
|
+
/** Host-independent supporting operation supplied to the KRO representation compiler. */
|
|
173
|
+
export interface KroSupportingArtifactCompilerInput {
|
|
174
|
+
readonly id: string;
|
|
175
|
+
readonly role: KroSupportingArtifact['role'];
|
|
176
|
+
readonly desired: PlanValue;
|
|
177
|
+
readonly identity?: KubernetesIdentity;
|
|
178
|
+
readonly lifecycle: LifecyclePolicy;
|
|
179
|
+
readonly readiness?: ArtifactReadinessContract;
|
|
180
|
+
readonly requiredCapabilities?: readonly CapabilityRequirement[];
|
|
181
|
+
readonly apply?: ArtifactApplyPolicy;
|
|
182
|
+
}
|
|
183
|
+
export interface KroArtifactCompilerOptions {
|
|
184
|
+
readonly outerApplyPolicy?: ArtifactApplyPolicy;
|
|
185
|
+
/** Physical RGD name selected by the factory representation. */
|
|
186
|
+
readonly rgdName?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Physical custom-resource placement and lifecycle metadata.
|
|
189
|
+
*
|
|
190
|
+
* These values are compiler inputs rather than semantic-plan fields because
|
|
191
|
+
* the factory namespace and instance namespace are representation choices,
|
|
192
|
+
* not application spec semantics.
|
|
193
|
+
*/
|
|
194
|
+
readonly instance?: {
|
|
195
|
+
readonly name: PlanValue;
|
|
196
|
+
readonly namespace?: PlanValue;
|
|
197
|
+
/** Concrete API version selected for the generated custom resource. */
|
|
198
|
+
readonly apiVersion?: string;
|
|
199
|
+
readonly kind?: string;
|
|
200
|
+
/** Concrete or otherwise explicitly materializable CR spec. */
|
|
201
|
+
readonly spec?: PlanValue;
|
|
202
|
+
readonly labels?: PlanValue;
|
|
203
|
+
readonly annotations?: PlanValue;
|
|
204
|
+
};
|
|
205
|
+
/** Directly managed resources that surround the KRO graph itself. */
|
|
206
|
+
readonly supportingArtifacts?: readonly KroSupportingArtifactCompilerInput[];
|
|
207
|
+
/** Additional typed ordering edges between outer and supporting artifacts. */
|
|
208
|
+
readonly outerEdges?: readonly PlanEdge[];
|
|
209
|
+
readonly strict?: boolean;
|
|
210
|
+
}
|
|
211
|
+
export {};
|
|
212
|
+
//# sourceMappingURL=artifacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/core/planning/artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,QAAQ,EACR,sBAAsB,EACtB,oBAAoB,EACpB,SAAS,EACT,yBAAyB,EACzB,QAAQ,EACR,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,0DAA0D;AAC1D,eAAO,MAAM,qBAAqB,EAAG,CAAU,CAAC;AAChD,eAAO,MAAM,wCAAwC,EAAG,CAAU,CAAC;AACnE,eAAO,MAAM,2BAA2B,EAAG,CAAU,CAAC;AAEtD,gFAAgF;AAChF,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC3C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,QAAQ,CAAC,oBAAoB,EAAE,MAAM,GAAG,UAAU,CAAC;CACpD,GACD;IACE,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,oBAAoB,CAAC;IAC5D,QAAQ,CAAC,oBAAoB,EAAE,MAAM,GAAG,UAAU,CAAC;CACpD,GACD;IAAE,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAA;CAAE,GACp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EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;QACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;QAC/B,uEAAuE;QACvE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,+DAA+D;QAC/D,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;QAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;QAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC;KAClC,CAAC;IACF,qEAAqE;IACrE,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,kCAAkC,EAAE,CAAC;IAC7E,8EAA8E;IAC9E,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,QAAQ,EAAE,CAAC;IAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../src/core/planning/artifacts.ts"],"names":[],"mappings":"AAeA,0DAA0D;AAC1D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAU,CAAC;AAChD,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAU,CAAC;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AnyAspectDefinition } from '../aspects/types.js';
|
|
2
|
+
import type { AspectManifestEntry, PlanDiagnostic } from './types.js';
|
|
3
|
+
export interface AspectManifestResult {
|
|
4
|
+
readonly manifest: readonly AspectManifestEntry[];
|
|
5
|
+
readonly digest: string;
|
|
6
|
+
readonly diagnostics: readonly PlanDiagnostic[];
|
|
7
|
+
readonly stable: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** Build the ordered, canonical aspect manifest used by planning and digests. */
|
|
10
|
+
export declare function createAspectManifest(aspects?: readonly AnyAspectDefinition[]): AspectManifestResult;
|
|
11
|
+
//# sourceMappingURL=aspects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aspects.d.ts","sourceRoot":"","sources":["../../../src/core/planning/aspects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,qBAAqB,CAAC;AAG7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAa,MAAM,YAAY,CAAC;AAGjF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,SAAS,cAAc,EAAE,CAAC;IAChD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AA2DD,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,OAAO,GAAE,SAAS,mBAAmB,EAAO,GAC3C,oBAAoB,CAmBtB"}
|