typekro 0.42.0 → 0.44.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/alchemy/deployers.d.ts.map +1 -1
- package/dist/alchemy/deployers.js +2 -1
- package/dist/alchemy/deployers.js.map +1 -1
- package/dist/alchemy/index.d.ts +5 -3
- package/dist/alchemy/index.d.ts.map +1 -1
- package/dist/alchemy/index.js +3 -1
- package/dist/alchemy/index.js.map +1 -1
- package/dist/alchemy/kubernetes-effect-gate.d.ts +24 -0
- package/dist/alchemy/kubernetes-effect-gate.d.ts.map +1 -0
- package/dist/alchemy/kubernetes-effect-gate.js +112 -0
- package/dist/alchemy/kubernetes-effect-gate.js.map +1 -0
- package/dist/alchemy/resource-registration.d.ts +29 -3
- package/dist/alchemy/resource-registration.d.ts.map +1 -1
- package/dist/alchemy/resource-registration.js +278 -92
- package/dist/alchemy/resource-registration.js.map +1 -1
- package/dist/alchemy/types.d.ts +13 -0
- package/dist/alchemy/types.d.ts.map +1 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.d.ts +3 -2
- package/dist/compositions/typekro-runtime/typekro-runtime.d.ts.map +1 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.js.map +1 -1
- package/dist/core/dependencies/resolver.js +2 -2
- package/dist/core/dependencies/resolver.js.map +1 -1
- package/dist/core/deployment/direct-factory.d.ts +1 -0
- package/dist/core/deployment/direct-factory.d.ts.map +1 -1
- package/dist/core/deployment/direct-factory.js +22 -5
- package/dist/core/deployment/direct-factory.js.map +1 -1
- package/dist/core/deployment/engine.d.ts +2 -143
- package/dist/core/deployment/engine.d.ts.map +1 -1
- package/dist/core/deployment/engine.js +23 -20
- package/dist/core/deployment/engine.js.map +1 -1
- package/dist/core/deployment/kro-namespace-teardown.d.ts +2 -0
- package/dist/core/deployment/kro-namespace-teardown.d.ts.map +1 -1
- package/dist/core/deployment/kro-namespace-teardown.js +3 -0
- package/dist/core/deployment/kro-namespace-teardown.js.map +1 -1
- package/dist/core/deployment/resource-applier.js +3 -16
- package/dist/core/deployment/resource-applier.js.map +1 -1
- package/dist/core/deployment/rollback-manager.d.ts +2 -1
- package/dist/core/deployment/rollback-manager.d.ts.map +1 -1
- package/dist/core/deployment/rollback-manager.js +54 -5
- package/dist/core/deployment/rollback-manager.js.map +1 -1
- package/dist/core/kubernetes/bun-api-client.d.ts.map +1 -1
- package/dist/core/kubernetes/bun-api-client.js +52 -2
- package/dist/core/kubernetes/bun-api-client.js.map +1 -1
- package/dist/core/metadata/resource-metadata.d.ts +3 -0
- package/dist/core/metadata/resource-metadata.d.ts.map +1 -1
- package/dist/core/metadata/resource-metadata.js.map +1 -1
- package/dist/core/planning/artifacts.d.ts +2 -0
- package/dist/core/planning/artifacts.d.ts.map +1 -1
- package/dist/core/planning/direct-runtime-adapter.d.ts +1 -0
- package/dist/core/planning/direct-runtime-adapter.d.ts.map +1 -1
- package/dist/core/planning/direct-runtime-adapter.js +16 -19
- package/dist/core/planning/direct-runtime-adapter.js.map +1 -1
- package/dist/core/planning/execution-record.d.ts +2 -0
- package/dist/core/planning/execution-record.d.ts.map +1 -1
- package/dist/core/planning/execution-record.js +71 -15
- package/dist/core/planning/execution-record.js.map +1 -1
- package/dist/core/planning/planner.d.ts.map +1 -1
- package/dist/core/planning/planner.js +7 -3
- package/dist/core/planning/planner.js.map +1 -1
- package/dist/core/references/cel-evaluator.js +2 -2
- package/dist/core/references/cel-evaluator.js.map +1 -1
- package/dist/core/references/external-refs.d.ts.map +1 -1
- package/dist/core/references/external-refs.js +5 -0
- package/dist/core/references/external-refs.js.map +1 -1
- package/dist/core/references/resolver.d.ts.map +1 -1
- package/dist/core/references/resolver.js +0 -2
- package/dist/core/references/resolver.js.map +1 -1
- package/dist/core/types/deployment.d.ts +30 -0
- package/dist/core/types/deployment.d.ts.map +1 -1
- package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts +2 -1
- package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts.map +1 -1
- package/dist/factories/apisix/compositions/apisix-bootstrap.js.map +1 -1
- package/dist/factories/apisix/compositions/apisix-helm-repository.d.ts +3 -7
- package/dist/factories/apisix/compositions/apisix-helm-repository.d.ts.map +1 -1
- package/dist/factories/apisix/compositions/apisix-helm-repository.js.map +1 -1
- package/dist/factories/apisix/resources/helm.d.ts +2 -2
- package/dist/factories/apisix/resources/helm.d.ts.map +1 -1
- package/dist/factories/apisix/resources/helm.js.map +1 -1
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.d.ts +3 -2
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.d.ts.map +1 -1
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.js.map +1 -1
- package/dist/factories/cilium/compositions/cilium-bootstrap.d.ts +2 -76
- package/dist/factories/cilium/compositions/cilium-bootstrap.d.ts.map +1 -1
- package/dist/factories/cilium/compositions/cilium-bootstrap.js.map +1 -1
- package/dist/factories/cilium/resources/helm.d.ts +3 -2
- package/dist/factories/cilium/resources/helm.d.ts.map +1 -1
- package/dist/factories/cilium/resources/helm.js.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-helm-repository.d.ts +3 -7
- package/dist/factories/clickhouse/compositions/clickhouse-helm-repository.d.ts.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-helm-repository.js.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-operator-bootstrap.d.ts +3 -28
- package/dist/factories/clickhouse/compositions/clickhouse-operator-bootstrap.d.ts.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-operator-bootstrap.js.map +1 -1
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.d.ts +7 -254
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.d.ts.map +1 -1
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.js.map +1 -1
- package/dist/factories/clickstack/compositions/clickstack-helm-repository.d.ts +3 -7
- package/dist/factories/clickstack/compositions/clickstack-helm-repository.d.ts.map +1 -1
- package/dist/factories/clickstack/compositions/clickstack-helm-repository.js.map +1 -1
- package/dist/factories/clickstack/compositions/k8s-telemetry.d.ts +4 -16
- package/dist/factories/clickstack/compositions/k8s-telemetry.d.ts.map +1 -1
- package/dist/factories/clickstack/compositions/k8s-telemetry.js.map +1 -1
- package/dist/factories/clickstack/compositions/otel-helm-repository.d.ts +3 -7
- package/dist/factories/clickstack/compositions/otel-helm-repository.d.ts.map +1 -1
- package/dist/factories/clickstack/compositions/otel-helm-repository.js.map +1 -1
- package/dist/factories/clickstack/types.d.ts +5 -0
- package/dist/factories/clickstack/types.d.ts.map +1 -1
- package/dist/factories/clickstack/types.js.map +1 -1
- package/dist/factories/clickstack/utils/storage.d.ts +13 -0
- package/dist/factories/clickstack/utils/storage.d.ts.map +1 -1
- package/dist/factories/clickstack/utils/storage.js +31 -2
- package/dist/factories/clickstack/utils/storage.js.map +1 -1
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.d.ts +3 -27
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.d.ts.map +1 -1
- package/dist/factories/cnpg/compositions/cnpg-bootstrap.js.map +1 -1
- package/dist/factories/dagster/compositions/dagster-bootstrap.d.ts +3 -450
- package/dist/factories/dagster/compositions/dagster-bootstrap.d.ts.map +1 -1
- package/dist/factories/dagster/compositions/dagster-bootstrap.js.map +1 -1
- package/dist/factories/dagster/compositions/dagster-helm-repository.d.ts +3 -7
- package/dist/factories/dagster/compositions/dagster-helm-repository.d.ts.map +1 -1
- package/dist/factories/dagster/compositions/dagster-helm-repository.js.map +1 -1
- package/dist/factories/envoy-ai-gateway/compositions/platform.d.ts +6 -34
- package/dist/factories/envoy-ai-gateway/compositions/platform.d.ts.map +1 -1
- package/dist/factories/envoy-ai-gateway/compositions/platform.js.map +1 -1
- package/dist/factories/envoy-ai-gateway/compositions/repository.d.ts +3 -7
- package/dist/factories/envoy-ai-gateway/compositions/repository.d.ts.map +1 -1
- package/dist/factories/envoy-ai-gateway/compositions/repository.js.map +1 -1
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.d.ts +3 -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.map +1 -1
- package/dist/factories/flux/git-repository.d.ts +10 -12
- package/dist/factories/flux/git-repository.d.ts.map +1 -1
- package/dist/factories/flux/git-repository.js.map +1 -1
- package/dist/factories/flux/kustomize/kustomization.d.ts +17 -49
- package/dist/factories/flux/kustomize/kustomization.d.ts.map +1 -1
- package/dist/factories/flux/kustomize/kustomization.js.map +1 -1
- package/dist/factories/harbor/compositions/harbor-installation.d.ts +6 -309
- package/dist/factories/harbor/compositions/harbor-installation.d.ts.map +1 -1
- package/dist/factories/harbor/compositions/harbor-installation.js +29 -12
- package/dist/factories/harbor/compositions/harbor-installation.js.map +1 -1
- package/dist/factories/harbor/compositions/harbor-rook-s3-credentials.d.ts +21 -0
- package/dist/factories/harbor/compositions/harbor-rook-s3-credentials.d.ts.map +1 -0
- package/dist/factories/harbor/compositions/harbor-rook-s3-credentials.js +56 -0
- package/dist/factories/harbor/compositions/harbor-rook-s3-credentials.js.map +1 -0
- package/dist/factories/harbor/compositions/index.d.ts +1 -0
- package/dist/factories/harbor/compositions/index.d.ts.map +1 -1
- package/dist/factories/harbor/compositions/index.js +1 -0
- package/dist/factories/harbor/compositions/index.js.map +1 -1
- package/dist/factories/harbor/provider/rook-s3-binding.d.ts +4 -0
- package/dist/factories/harbor/provider/rook-s3-binding.d.ts.map +1 -1
- package/dist/factories/harbor/provider/rook-s3-binding.js +16 -6
- package/dist/factories/harbor/provider/rook-s3-binding.js.map +1 -1
- package/dist/factories/hatchet/compositions/hatchet-installation.d.ts +3 -43
- package/dist/factories/hatchet/compositions/hatchet-installation.d.ts.map +1 -1
- package/dist/factories/hatchet/compositions/hatchet-installation.js.map +1 -1
- package/dist/factories/helm/readiness-evaluators.d.ts.map +1 -1
- package/dist/factories/helm/readiness-evaluators.js +14 -8
- package/dist/factories/helm/readiness-evaluators.js.map +1 -1
- package/dist/factories/inngest/compositions/inngest-bootstrap.d.ts +3 -116
- package/dist/factories/inngest/compositions/inngest-bootstrap.d.ts.map +1 -1
- package/dist/factories/inngest/compositions/inngest-bootstrap.js.map +1 -1
- package/dist/factories/kubernetes/workloads/job.d.ts +1 -1
- package/dist/factories/kubernetes/workloads/job.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/job.js +14 -2
- package/dist/factories/kubernetes/workloads/job.js.map +1 -1
- package/dist/factories/nats/compositions/nack-controller-bootstrap.d.ts +4 -15
- package/dist/factories/nats/compositions/nack-controller-bootstrap.d.ts.map +1 -1
- package/dist/factories/nats/compositions/nack-controller-bootstrap.js.map +1 -1
- package/dist/factories/nats/compositions/nats-bootstrap.d.ts +5 -26
- package/dist/factories/nats/compositions/nats-bootstrap.d.ts.map +1 -1
- package/dist/factories/nats/compositions/nats-bootstrap.js.map +1 -1
- package/dist/factories/opensearch/compositions/operator-bootstrap.d.ts +5 -23
- package/dist/factories/opensearch/compositions/operator-bootstrap.d.ts.map +1 -1
- package/dist/factories/opensearch/compositions/operator-bootstrap.js.map +1 -1
- package/dist/factories/opensearch/compositions/repository.d.ts +3 -7
- package/dist/factories/opensearch/compositions/repository.d.ts.map +1 -1
- package/dist/factories/opensearch/compositions/repository.js.map +1 -1
- package/dist/factories/ory/compositions/ory-identity-stack.d.ts +3 -2067
- package/dist/factories/ory/compositions/ory-identity-stack.d.ts.map +1 -1
- package/dist/factories/ory/compositions/ory-identity-stack.js.map +1 -1
- package/dist/factories/ory/compositions/ory-platform-stack.d.ts +3 -184
- package/dist/factories/ory/compositions/ory-platform-stack.d.ts.map +1 -1
- package/dist/factories/ory/compositions/ory-platform-stack.js.map +1 -1
- package/dist/factories/pebble/compositions/pebble-bootstrap.d.ts +3 -15
- package/dist/factories/pebble/compositions/pebble-bootstrap.d.ts.map +1 -1
- package/dist/factories/pebble/compositions/pebble-bootstrap.js.map +1 -1
- package/dist/factories/rook/compositions/object-storage-claim.d.ts +3 -18
- package/dist/factories/rook/compositions/object-storage-claim.d.ts.map +1 -1
- package/dist/factories/rook/compositions/object-storage-claim.js.map +1 -1
- package/dist/factories/rook/compositions/rook-ceph-helm-repository.d.ts +3 -7
- package/dist/factories/rook/compositions/rook-ceph-helm-repository.d.ts.map +1 -1
- package/dist/factories/rook/compositions/rook-ceph-helm-repository.js.map +1 -1
- package/dist/factories/rook/compositions/rook-ceph-operator-installation.d.ts +4 -30
- package/dist/factories/rook/compositions/rook-ceph-operator-installation.d.ts.map +1 -1
- package/dist/factories/rook/compositions/rook-ceph-operator-installation.js.map +1 -1
- package/dist/factories/rook/compositions/rook-ceph-platform.d.ts +5 -277
- package/dist/factories/rook/compositions/rook-ceph-platform.d.ts.map +1 -1
- package/dist/factories/rook/compositions/rook-ceph-platform.js.map +1 -1
- package/dist/factories/searxng/compositions/searxng-bootstrap.d.ts +2 -1
- package/dist/factories/searxng/compositions/searxng-bootstrap.d.ts.map +1 -1
- package/dist/factories/searxng/compositions/searxng-bootstrap.js +22 -22
- package/dist/factories/searxng/compositions/searxng-bootstrap.js.map +1 -1
- package/dist/factories/simple/index.d.ts +3 -3
- package/dist/factories/simple/index.d.ts.map +1 -1
- package/dist/factories/simple/index.js.map +1 -1
- package/dist/factories/traefik/compositions/traefik-bootstrap.d.ts +4 -47
- package/dist/factories/traefik/compositions/traefik-bootstrap.d.ts.map +1 -1
- package/dist/factories/traefik/compositions/traefik-bootstrap.js.map +1 -1
- package/dist/factories/traefik/compositions/traefik-helm-repository.d.ts +3 -7
- package/dist/factories/traefik/compositions/traefik-helm-repository.d.ts.map +1 -1
- package/dist/factories/traefik/compositions/traefik-helm-repository.js.map +1 -1
- package/dist/factories/traefik/resources/helm.d.ts +2 -2
- package/dist/factories/traefik/resources/helm.d.ts.map +1 -1
- package/dist/factories/traefik/resources/helm.js.map +1 -1
- package/dist/factories/valkey/compositions/valkey-bootstrap.d.ts +4 -16
- package/dist/factories/valkey/compositions/valkey-bootstrap.d.ts.map +1 -1
- package/dist/factories/valkey/compositions/valkey-bootstrap.js.map +1 -1
- package/dist/factories/valkey/compositions/valkey-helm-repository.d.ts +3 -7
- package/dist/factories/valkey/compositions/valkey-helm-repository.d.ts.map +1 -1
- package/dist/factories/valkey/compositions/valkey-helm-repository.js.map +1 -1
- package/package.json +13 -9
- package/dist/.tsbuildinfo +0 -1
- package/dist/core/aspects/metadata.d.ts +0 -16
- package/dist/core/aspects/metadata.d.ts.map +0 -1
- package/dist/core/aspects/targets.d.ts +0 -9
- package/dist/core/aspects/targets.d.ts.map +0 -1
- package/dist/core/composition/analysis-metadata.d.ts +0 -15
- package/dist/core/composition/analysis-metadata.d.ts.map +0 -1
- package/dist/core/composition/index.d.ts +0 -12
- package/dist/core/composition/index.d.ts.map +0 -1
- package/dist/core/composition/nested-status-cel.d.ts +0 -82
- package/dist/core/composition/nested-status-cel.d.ts.map +0 -1
- package/dist/core/config/defaults.d.ts +0 -109
- package/dist/core/config/defaults.d.ts.map +0 -1
- package/dist/core/config/env.d.ts +0 -12
- package/dist/core/config/env.d.ts.map +0 -1
- package/dist/core/config/index.d.ts +0 -3
- package/dist/core/config/index.d.ts.map +0 -1
- package/dist/core/containers/exec.d.ts +0 -19
- package/dist/core/containers/exec.d.ts.map +0 -1
- package/dist/core/containers/registries/docker-session.d.ts +0 -14
- package/dist/core/containers/registries/docker-session.d.ts.map +0 -1
- package/dist/core/containers/registries/ecr.d.ts +0 -21
- package/dist/core/containers/registries/ecr.d.ts.map +0 -1
- package/dist/core/containers/registries/index.d.ts +0 -9
- package/dist/core/containers/registries/index.d.ts.map +0 -1
- package/dist/core/containers/registries/orbstack.d.ts +0 -13
- package/dist/core/containers/registries/orbstack.d.ts.map +0 -1
- package/dist/core/deployment/closure-planner.d.ts +0 -20
- package/dist/core/deployment/closure-planner.d.ts.map +0 -1
- package/dist/core/deployment/crd-manager.d.ts +0 -79
- package/dist/core/deployment/crd-manager.d.ts.map +0 -1
- package/dist/core/deployment/deletion-result.d.ts +0 -22
- package/dist/core/deployment/deletion-result.d.ts.map +0 -1
- package/dist/core/deployment/event-filter.d.ts +0 -142
- package/dist/core/deployment/event-filter.d.ts.map +0 -1
- package/dist/core/deployment/event-monitor.d.ts +0 -243
- package/dist/core/deployment/event-monitor.d.ts.map +0 -1
- package/dist/core/deployment/handle-tracing.d.ts +0 -14
- package/dist/core/deployment/handle-tracing.d.ts.map +0 -1
- package/dist/core/deployment/kro-instance-admission.d.ts +0 -17
- package/dist/core/deployment/kro-instance-admission.d.ts.map +0 -1
- package/dist/core/deployment/kro-instance-safety.d.ts +0 -237
- package/dist/core/deployment/kro-instance-safety.d.ts.map +0 -1
- package/dist/core/deployment/nested-composition-status.d.ts +0 -33
- package/dist/core/deployment/nested-composition-status.d.ts.map +0 -1
- package/dist/core/deployment/readiness-waiter.d.ts +0 -60
- package/dist/core/deployment/readiness-waiter.d.ts.map +0 -1
- package/dist/core/deployment/resource-applier.d.ts +0 -87
- package/dist/core/deployment/resource-applier.d.ts.map +0 -1
- package/dist/core/deployment/resource-tagging.d.ts +0 -220
- package/dist/core/deployment/resource-tagging.d.ts.map +0 -1
- package/dist/core/deployment/schema-cel-evaluator.d.ts +0 -5
- package/dist/core/deployment/schema-cel-evaluator.d.ts.map +0 -1
- package/dist/core/deployment/singleton-gitops.d.ts +0 -10
- package/dist/core/deployment/singleton-gitops.d.ts.map +0 -1
- package/dist/core/expressions/analysis/alias-inliner.d.ts +0 -14
- package/dist/core/expressions/analysis/alias-inliner.d.ts.map +0 -1
- package/dist/core/expressions/analysis/array-method-converters.d.ts +0 -19
- package/dist/core/expressions/analysis/array-method-converters.d.ts.map +0 -1
- package/dist/core/expressions/analysis/ast-helpers.d.ts +0 -49
- package/dist/core/expressions/analysis/ast-helpers.d.ts.map +0 -1
- package/dist/core/expressions/analysis/ast-node-converters.d.ts +0 -15
- package/dist/core/expressions/analysis/ast-node-converters.d.ts.map +0 -1
- package/dist/core/expressions/analysis/ast-type-guards.d.ts +0 -14
- package/dist/core/expressions/analysis/ast-type-guards.d.ts.map +0 -1
- package/dist/core/expressions/analysis/call-expression-converters.d.ts +0 -18
- package/dist/core/expressions/analysis/call-expression-converters.d.ts.map +0 -1
- package/dist/core/expressions/analysis/cel-emitter.d.ts +0 -86
- package/dist/core/expressions/analysis/cel-emitter.d.ts.map +0 -1
- package/dist/core/expressions/analysis/expression-classifier.d.ts +0 -77
- package/dist/core/expressions/analysis/expression-classifier.d.ts.map +0 -1
- package/dist/core/expressions/analysis/expression-metadata.d.ts +0 -15
- package/dist/core/expressions/analysis/expression-metadata.d.ts.map +0 -1
- package/dist/core/expressions/analysis/fn-toString-self-test.d.ts +0 -146
- package/dist/core/expressions/analysis/fn-toString-self-test.d.ts.map +0 -1
- package/dist/core/expressions/analysis/operator-utils.d.ts +0 -35
- package/dist/core/expressions/analysis/operator-utils.d.ts.map +0 -1
- package/dist/core/expressions/analysis/ready-when.d.ts +0 -3
- package/dist/core/expressions/analysis/ready-when.d.ts.map +0 -1
- package/dist/core/expressions/analysis/scope-resolver.d.ts +0 -57
- package/dist/core/expressions/analysis/scope-resolver.d.ts.map +0 -1
- package/dist/core/expressions/analysis/strict-cel.d.ts +0 -26
- package/dist/core/expressions/analysis/strict-cel.d.ts.map +0 -1
- package/dist/core/expressions/analysis/string-method-converters.d.ts +0 -27
- package/dist/core/expressions/analysis/string-method-converters.d.ts.map +0 -1
- package/dist/core/expressions/composition/composition-analyzer-helpers.d.ts +0 -114
- package/dist/core/expressions/composition/composition-analyzer-helpers.d.ts.map +0 -1
- package/dist/core/expressions/composition/composition-analyzer-ternary.d.ts +0 -78
- package/dist/core/expressions/composition/composition-analyzer-ternary.d.ts.map +0 -1
- package/dist/core/expressions/composition/composition-analyzer-traversal.d.ts +0 -37
- package/dist/core/expressions/composition/composition-analyzer-traversal.d.ts.map +0 -1
- package/dist/core/expressions/composition/context-tracker.d.ts +0 -39
- package/dist/core/expressions/composition/context-tracker.d.ts.map +0 -1
- package/dist/core/expressions/composition/expression-analyzer.d.ts +0 -101
- package/dist/core/expressions/composition/expression-analyzer.d.ts.map +0 -1
- package/dist/core/expressions/composition/imperative-analyzer.d.ts +0 -21
- package/dist/core/expressions/composition/imperative-analyzer.d.ts.map +0 -1
- package/dist/core/expressions/composition/index.d.ts +0 -17
- package/dist/core/expressions/composition/index.d.ts.map +0 -1
- package/dist/core/expressions/composition/integration-hooks.d.ts +0 -71
- package/dist/core/expressions/composition/integration-hooks.d.ts.map +0 -1
- package/dist/core/expressions/composition/scope-manager.d.ts +0 -93
- package/dist/core/expressions/composition/scope-manager.d.ts.map +0 -1
- package/dist/core/expressions/composition/types.d.ts +0 -41
- package/dist/core/expressions/composition/types.d.ts.map +0 -1
- package/dist/core/expressions/conditional/conditional-expression-processor.d.ts +0 -154
- package/dist/core/expressions/conditional/conditional-expression-processor.d.ts.map +0 -1
- package/dist/core/expressions/conditional/conditional-integration.d.ts +0 -111
- package/dist/core/expressions/conditional/conditional-integration.d.ts.map +0 -1
- package/dist/core/expressions/factory/dependency-tracker.d.ts +0 -222
- package/dist/core/expressions/factory/dependency-tracker.d.ts.map +0 -1
- package/dist/core/expressions/factory/resource-analyzer.d.ts +0 -139
- package/dist/core/expressions/factory/resource-analyzer.d.ts.map +0 -1
- package/dist/core/expressions/factory/resource-type-validator.d.ts +0 -149
- package/dist/core/expressions/factory/resource-type-validator.d.ts.map +0 -1
- package/dist/core/expressions/factory/status-ast-utils.d.ts +0 -36
- package/dist/core/expressions/factory/status-ast-utils.d.ts.map +0 -1
- package/dist/core/expressions/factory/status-cel-generation.d.ts +0 -67
- package/dist/core/expressions/factory/status-cel-generation.d.ts.map +0 -1
- package/dist/core/expressions/factory/status-field-analysis.d.ts +0 -58
- package/dist/core/expressions/factory/status-field-analysis.d.ts.map +0 -1
- package/dist/core/expressions/magic-proxy/magic-assignable-analyzer.d.ts +0 -123
- package/dist/core/expressions/magic-proxy/magic-assignable-analyzer.d.ts.map +0 -1
- package/dist/core/expressions/magic-proxy/magic-proxy-analyzer.d.ts +0 -153
- package/dist/core/expressions/magic-proxy/magic-proxy-analyzer.d.ts.map +0 -1
- package/dist/core/expressions/magic-proxy/magic-proxy-ast.d.ts +0 -44
- package/dist/core/expressions/magic-proxy/magic-proxy-ast.d.ts.map +0 -1
- package/dist/core/expressions/magic-proxy/magic-proxy-types.d.ts +0 -36
- package/dist/core/expressions/magic-proxy/magic-proxy-types.d.ts.map +0 -1
- package/dist/core/expressions/magic-proxy/optionality-analysis.d.ts +0 -54
- package/dist/core/expressions/magic-proxy/optionality-analysis.d.ts.map +0 -1
- package/dist/core/expressions/magic-proxy/optionality-cel-generation.d.ts +0 -51
- package/dist/core/expressions/magic-proxy/optionality-cel-generation.d.ts.map +0 -1
- package/dist/core/expressions/magic-proxy/optionality-hydration.d.ts +0 -84
- package/dist/core/expressions/magic-proxy/optionality-hydration.d.ts.map +0 -1
- package/dist/core/expressions/magic-proxy/optionality-optional-chaining.d.ts +0 -61
- package/dist/core/expressions/magic-proxy/optionality-optional-chaining.d.ts.map +0 -1
- package/dist/core/expressions/validation/resource-field-utils.d.ts +0 -69
- package/dist/core/expressions/validation/resource-field-utils.d.ts.map +0 -1
- package/dist/core/kubernetes/bun-watch.d.ts +0 -30
- package/dist/core/kubernetes/bun-watch.d.ts.map +0 -1
- package/dist/core/kubernetes/client-node-runtime.d.ts +0 -10
- package/dist/core/kubernetes/client-node-runtime.d.ts.map +0 -1
- package/dist/core/proxy/index.d.ts +0 -8
- package/dist/core/proxy/index.d.ts.map +0 -1
- package/dist/core/proxy/known-status-fields.d.ts +0 -27
- package/dist/core/proxy/known-status-fields.d.ts.map +0 -1
- package/dist/core/readiness/strategy-configuration.d.ts +0 -12
- package/dist/core/readiness/strategy-configuration.d.ts.map +0 -1
- package/dist/core/references/cel-lexical-scanner.d.ts +0 -113
- package/dist/core/references/cel-lexical-scanner.d.ts.map +0 -1
- package/dist/core/runtime/standalone-operation.d.ts +0 -12
- package/dist/core/runtime/standalone-operation.d.ts.map +0 -1
- package/dist/core/runtime-patches/crd-patcher.d.ts +0 -30
- package/dist/core/runtime-patches/crd-patcher.d.ts.map +0 -1
- package/dist/core/runtime-patches/crd-schema-fix.d.ts +0 -145
- package/dist/core/runtime-patches/crd-schema-fix.d.ts.map +0 -1
- package/dist/core/runtime-patches/index.d.ts +0 -8
- package/dist/core/runtime-patches/index.d.ts.map +0 -1
- package/dist/core/serialization/arktype-ast.d.ts +0 -21
- package/dist/core/serialization/arktype-ast.d.ts.map +0 -1
- package/dist/core/serialization/kro-post-processing.d.ts +0 -46
- package/dist/core/serialization/kro-post-processing.d.ts.map +0 -1
- package/dist/core/serialization/status-analysis-pipeline.d.ts +0 -67
- package/dist/core/serialization/status-analysis-pipeline.d.ts.map +0 -1
- package/dist/core/validation/cel-dialect.d.ts +0 -246
- package/dist/core/validation/cel-dialect.d.ts.map +0 -1
- package/dist/core/validation/cel-validator.d.ts +0 -77
- package/dist/core/validation/cel-validator.d.ts.map +0 -1
- package/dist/core/validation/literal-status.d.ts +0 -107
- package/dist/core/validation/literal-status.d.ts.map +0 -1
- package/dist/core/validation/structural-spec-dependence.d.ts +0 -179
- package/dist/core/validation/structural-spec-dependence.d.ts.map +0 -1
- package/dist/factories/cert-manager/utils/helm-values-mapper.d.ts +0 -23
- package/dist/factories/cert-manager/utils/helm-values-mapper.d.ts.map +0 -1
- package/dist/factories/cert-manager/utils/index.d.ts +0 -2
- package/dist/factories/cert-manager/utils/index.d.ts.map +0 -1
- package/dist/factories/flux/kustomize/types.d.ts +0 -2
- package/dist/factories/flux/kustomize/types.d.ts.map +0 -1
- package/dist/factories/nats/compositions/nack-controller-migration.d.ts +0 -18
- package/dist/factories/nats/compositions/nack-controller-migration.d.ts.map +0 -1
- package/dist/factories/ory/schemas/maester-crds.d.ts +0 -9
- package/dist/factories/ory/schemas/maester-crds.d.ts.map +0 -1
- package/dist/factories/pebble/utils/helm-values-mapper.d.ts +0 -21
- package/dist/factories/pebble/utils/helm-values-mapper.d.ts.map +0 -1
- package/dist/factories/shared.d.ts +0 -18
- package/dist/factories/shared.d.ts.map +0 -1
- package/dist/shared/own-property.d.ts +0 -15
- package/dist/shared/own-property.d.ts.map +0 -1
- package/dist/utils/cel-escape.d.ts +0 -12
- package/dist/utils/cel-escape.d.ts.map +0 -1
- package/dist/utils/cel-resource-identifiers.d.ts +0 -23
- package/dist/utils/cel-resource-identifiers.d.ts.map +0 -1
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import type { KubernetesResource } from '../types/kubernetes.js';
|
|
2
|
-
import type { KroCompatibleType } from '../types/serialization.js';
|
|
3
|
-
type ResourceCollection = Record<string, KubernetesResource> | readonly KubernetesResource[];
|
|
4
|
-
export interface KroInstanceNamespaceSafetyInput<TSpec extends KroCompatibleType> {
|
|
5
|
-
readonly compositionName: string;
|
|
6
|
-
readonly instanceNamespace: string;
|
|
7
|
-
readonly spec: TSpec;
|
|
8
|
-
readonly resources?: ResourceCollection;
|
|
9
|
-
readonly compositionFn?: (spec: TSpec) => unknown;
|
|
10
|
-
/**
|
|
11
|
-
* Namespace names the factory has HOISTED out of the RGD graph (emitted as
|
|
12
|
-
* SIBLING resources OUTSIDE the graph, created deps-first). typekro NEVER emits a
|
|
13
|
-
* Namespace into RGD YAML: every owned Namespace is applied as a sibling before
|
|
14
|
-
* the RGD and torn down after it, so KRO never owns a namespace and can never
|
|
15
|
-
* garbage-collect one when the instance CR is deleted — the finalizer-stranding
|
|
16
|
-
* concern this guard protects against is structurally resolved for typekro's own
|
|
17
|
-
* factories. The guard therefore treats an owned namespace that has been hoisted
|
|
18
|
-
* as SAFE, even though it still appears in the composition's resources. It remains
|
|
19
|
-
* a defense-in-depth net for HAND-AUTHORED graphs that place a Namespace directly
|
|
20
|
-
* in an RGD (an owned namespace whose name can't be proven, or one the caller
|
|
21
|
-
* EXPLICITLY pinned the instance back into without hoisting) — those still throw.
|
|
22
|
-
*/
|
|
23
|
-
readonly hoistedNamespaces?: ReadonlySet<string>;
|
|
24
|
-
}
|
|
25
|
-
export declare function resolveNamespaceName(value: unknown, spec: KroCompatibleType): string | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Resolve a Namespace METADATA value (a label or annotation VALUE) to its concrete
|
|
28
|
-
* string form (finding #5).
|
|
29
|
-
*
|
|
30
|
-
* Unlike {@link resolveNamespaceName} — which resolves a namespace NAME and is
|
|
31
|
-
* correctly restricted to DNS-label shape — metadata values are UNRESTRICTED strings:
|
|
32
|
-
* `Team_A`, free text with spaces, arbitrary annotation content. The old path routed
|
|
33
|
-
* these through `resolveNamespaceName`, whose DNS-label short-circuit only accepts a
|
|
34
|
-
* CEL body matching a DNS label and then hands anything else to the CEL evaluator,
|
|
35
|
-
* which throws / returns undefined for a plain literal like `Team_A` or `some text` —
|
|
36
|
-
* silently DROPPING valid metadata.
|
|
37
|
-
*
|
|
38
|
-
* A concrete re-execution collapses a schema-derived value into a CEL whose BODY is
|
|
39
|
-
* the resolved literal. So for a CEL value we:
|
|
40
|
-
* - first try evaluating it (handles genuine expressions — `has()`, `orValue()`,
|
|
41
|
-
* concatenations); if that yields a primitive, use it;
|
|
42
|
-
* - otherwise the body is a concrete literal that is not a valid standalone CEL
|
|
43
|
-
* program (e.g. `Team_A`, `some text`) — return it VERBATIM as the concrete value,
|
|
44
|
-
* with NO DNS-label restriction.
|
|
45
|
-
* Numbers / booleans are stringified; refs resolve against the spec; plain strings and
|
|
46
|
-
* marker-embedded strings defer to {@link resolveNamespaceName} (which returns them
|
|
47
|
-
* verbatim / resolves the marker). Returns `undefined` only for a genuinely
|
|
48
|
-
* unresolvable value (an unresolved schema ref), so the caller drops just those.
|
|
49
|
-
*/
|
|
50
|
-
export declare function resolveConcreteMetadataValue(value: unknown, spec: KroCompatibleType): string | undefined;
|
|
51
|
-
export declare function isActiveOwnedResource(resource: KubernetesResource, spec: KroCompatibleType): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* The concrete Namespaces a composition actively creates and OWNS as graph
|
|
54
|
-
* children, resolved against the concrete instance spec.
|
|
55
|
-
*
|
|
56
|
-
* `owned` holds the resolved names; `unresolved` holds the resource ids of owned
|
|
57
|
-
* Namespaces whose name cannot be evaluated from the spec (so their safety
|
|
58
|
-
* cannot be proven). This is the single detection primitive shared by the
|
|
59
|
-
* ownership GUARD ({@link assertKroInstanceNamespaceOwnershipSafe}) and the
|
|
60
|
-
* workload-namespace HOISTING logic in the KRO factory: a composition owns its
|
|
61
|
-
* instance namespace exactly when the resolved instance namespace is in `owned`.
|
|
62
|
-
*/
|
|
63
|
-
export interface OwnedNamespaceDetection {
|
|
64
|
-
readonly owned: ReadonlySet<string>;
|
|
65
|
-
readonly unresolved: readonly string[];
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Per-resource detection: for each actively-owned Namespace, its resource id
|
|
69
|
-
* mapped to its resolved concrete name. `unresolved` holds the ids of owned
|
|
70
|
-
* Namespaces whose name cannot be evaluated from the spec.
|
|
71
|
-
*
|
|
72
|
-
* The resource ids are stable across the re-execution used here (dedup + explicit
|
|
73
|
-
* `id`s), so a factory can match them back to its own `resources` to HOIST the
|
|
74
|
-
* owned namespace out of the RGD graph. Re-execution is also what resolves the
|
|
75
|
-
* schema-driven names to concrete values (the built `resources` carry `${...}`
|
|
76
|
-
* KRO templates that can't be evaluated directly).
|
|
77
|
-
*/
|
|
78
|
-
export declare function detectOwnedNamespaceResources<TSpec extends KroCompatibleType>(input: Omit<KroInstanceNamespaceSafetyInput<TSpec>, 'instanceNamespace'>): {
|
|
79
|
-
ownedById: Map<string, string>;
|
|
80
|
-
unresolved: string[];
|
|
81
|
-
};
|
|
82
|
-
export declare function detectOwnedNamespaces<TSpec extends KroCompatibleType>(input: Omit<KroInstanceNamespaceSafetyInput<TSpec>, 'instanceNamespace'>): OwnedNamespaceDetection;
|
|
83
|
-
/**
|
|
84
|
-
* The CONCRETE (re-executed against the spec) resource objects for each
|
|
85
|
-
* actively-owned Namespace, keyed by resource id. Unlike
|
|
86
|
-
* {@link detectOwnedNamespaceResources} (which returns only the resolved names),
|
|
87
|
-
* this returns the full concrete metadata — labels (incl. Pod Security),
|
|
88
|
-
* annotations, name — so the KRO factory can PRESERVE the original Namespace
|
|
89
|
-
* configuration when it hoists the Namespace out of the graph and re-emits it as
|
|
90
|
-
* a sibling resource (finding #5), rather than synthesizing a bare Namespace.
|
|
91
|
-
*/
|
|
92
|
-
export declare function concreteOwnedNamespaceResources<TSpec extends KroCompatibleType>(input: Omit<KroInstanceNamespaceSafetyInput<TSpec>, 'instanceNamespace'>): Map<string, KubernetesResource>;
|
|
93
|
-
/**
|
|
94
|
-
* Concrete active resources owned by one KRO instance, excluding external
|
|
95
|
-
* observations. This is used after the owner CR disappears to prove that KRO's
|
|
96
|
-
* asynchronous child deletes have actually reached 404 before shared
|
|
97
|
-
* definitions are removed or teardown is reported successful.
|
|
98
|
-
*/
|
|
99
|
-
export declare function concreteActiveOwnedResources<TSpec extends KroCompatibleType>(input: Omit<KroInstanceNamespaceSafetyInput<TSpec>, 'instanceNamespace'>): Map<string, KubernetesResource>;
|
|
100
|
-
/**
|
|
101
|
-
* Select EVERY Namespace to HOIST out of the RGD graph — the new, UNCONDITIONAL
|
|
102
|
-
* model: typekro NEVER emits a Namespace into RGD YAML. Selection is trivially
|
|
103
|
-
* `kind === 'Namespace'` (excluding `__externalRef` observed namespaces, which are
|
|
104
|
-
* not owned graph children), NOT the old structural "name tracks spec.namespace"
|
|
105
|
-
* detection. Every owned Namespace becomes a sibling resource applied before the
|
|
106
|
-
* RGD and torn down after it, so KRO never owns a namespace.
|
|
107
|
-
*
|
|
108
|
-
* Returns a map from each hoisted Namespace's resource id to its RAW
|
|
109
|
-
* `metadata.name` VALUE (a schema `KubernetesRef`, a `CelExpression`, or a plain
|
|
110
|
-
* string). The name value is what {@link rewriteHoistedNamespaceReferences} /
|
|
111
|
-
* {@link rewriteHoistedNamespaceRefsInValue} rewrite dangling references TO — a
|
|
112
|
-
* reference to a hoisted Namespace's `metadata.name` becomes that Namespace's own
|
|
113
|
-
* concrete name expression. The map is a STABLE STRUCTURAL property of the graph
|
|
114
|
-
* (spec-independent), so the shared RGD's shape is identical for every instance.
|
|
115
|
-
*
|
|
116
|
-
* Deliberately does NOT filter on `includeWhen`: a namespace's ACTIVITY is
|
|
117
|
-
* spec-dependent, but whether a resource is a Namespace is not. A namespace that is
|
|
118
|
-
* inactive for a given spec is simply not created as a sibling; removing it from the
|
|
119
|
-
* RGD is harmless (it was not going to be created there either).
|
|
120
|
-
*/
|
|
121
|
-
export declare function selectHoistedNamespaces(resources: ResourceCollection): Map<string, unknown>;
|
|
122
|
-
/**
|
|
123
|
-
* Rewrite every reference to a HOISTED Namespace's `metadata.name` — ANYWHERE it
|
|
124
|
-
* appears in a value — to that Namespace's CONCRETE name expression (findings
|
|
125
|
-
* #3 + #6).
|
|
126
|
-
*
|
|
127
|
-
* `hoisted` maps each hoisted Namespace's resource id to its RAW `metadata.name`
|
|
128
|
-
* value (see {@link selectHoistedNamespaces}). When a Namespace is hoisted OUT of
|
|
129
|
-
* the RGD graph, any other value that still refers to it would leave a live
|
|
130
|
-
* reference to a resource KRO no longer knows about, and KRO rejects the whole
|
|
131
|
-
* graph. Each reference is rewritten to the referenced Namespace's own name
|
|
132
|
-
* expression — for a Namespace named `${schema.spec.namespace}` that is
|
|
133
|
-
* `schema.spec.namespace` (as before); for a literally-named Namespace `"foo"`
|
|
134
|
-
* that is the constant `foo` — which is exactly the value the removed resource
|
|
135
|
-
* would have produced.
|
|
136
|
-
*
|
|
137
|
-
* The rewrite is STRUCTURAL, not exact-string (finding #6): it replaces the
|
|
138
|
-
* reference TOKEN `<id>.metadata.name` wherever it occurs, so embedded /
|
|
139
|
-
* concatenated (`ns-${string(id.metadata.name)}`), function-wrapped
|
|
140
|
-
* (`string(id.metadata.name)`), and ternary (`... ? id.metadata.name : "x"`)
|
|
141
|
-
* forms are all handled — in plain strings, CEL expressions, and raw
|
|
142
|
-
* `__KUBERNETES_REF_*` markers alike. It applies to arbitrary values (resource
|
|
143
|
-
* bodies AND status mappings). A reference whose target Namespace name has no
|
|
144
|
-
* representable form is left as-is and caught by
|
|
145
|
-
* {@link findDanglingHoistedReference}.
|
|
146
|
-
*/
|
|
147
|
-
export declare function rewriteHoistedNamespaceRefsInValue<T>(value: T, hoisted: ReadonlyMap<string, unknown>): T;
|
|
148
|
-
/**
|
|
149
|
-
* The top-level STATUS field names whose value, once the owned Namespace is HOISTED
|
|
150
|
-
* out of the RGD, can no longer be represented in the KRO status schema (finding #6).
|
|
151
|
-
*
|
|
152
|
-
* When a Namespace is hoisted OUT of the RGD, a status field that referenced its
|
|
153
|
-
* `metadata.name` is rewritten to the Namespace's own name expression. KRO requires
|
|
154
|
-
* every instance status field to reference at least one RESOURCE (KRO builder.go:
|
|
155
|
-
* `instance status field must refer to a resource`), and its status CEL environment
|
|
156
|
-
* has no `schema` identifier. So a rewritten value that references NO managed resource
|
|
157
|
-
* is unrepresentable in the KRO status — in BOTH shapes:
|
|
158
|
-
* - schema-only (`schema.spec.namespace`, for a schema-named Namespace) — KRO
|
|
159
|
-
* status CEL cannot evaluate `schema`; and
|
|
160
|
-
* - a plain CONSTANT (for a literally-named Namespace) — a literal has zero resource
|
|
161
|
-
* dependencies, so KRO rejects it, AND typekro's own schema generation classifies
|
|
162
|
-
* a literal-only status as static and DROPS it from the emitted KRO status.
|
|
163
|
-
* BOTH were previously handled inconsistently (schema-only rejected, literal silently
|
|
164
|
-
* dropped). We now REJECT both consistently (see {@link assertNoHoistWeakenedStatusFields})
|
|
165
|
-
* — the one behavior. A field that ALSO references a real managed resource stays
|
|
166
|
-
* representable (KRO accepts it; a literal inside it is fine) and is NOT flagged.
|
|
167
|
-
*
|
|
168
|
-
* Returns only TOP-LEVEL status keys (the KRO status schema is a flat map of field →
|
|
169
|
-
* CEL); a field is included iff rewriting its value CHANGED it (it referenced the
|
|
170
|
-
* hoisted Namespace) AND the rewritten value references no managed resource (i.e. it
|
|
171
|
-
* references `schema`, or is a pure constant).
|
|
172
|
-
*/
|
|
173
|
-
export declare function hoistWeakenedStatusFields(statusMappings: Record<string, unknown> | undefined, hoisted: ReadonlyMap<string, unknown>): string[];
|
|
174
|
-
/**
|
|
175
|
-
* HONEST, CONSISTENT behavior for finding #6: REJECT (throw) a composition whose
|
|
176
|
-
* status field(s) resolve ONLY to a hoisted owned Namespace's `metadata.name` — i.e.
|
|
177
|
-
* once the Namespace leaves the RGD the field references no managed resource.
|
|
178
|
-
*
|
|
179
|
-
* KRO requires every instance status field to reference a resource and cannot
|
|
180
|
-
* evaluate `schema` in status CEL, so such a field is unrepresentable in the emitted
|
|
181
|
-
* KRO status whether the Namespace is schema-named (rewrites to `schema.spec.namespace`)
|
|
182
|
-
* or literally-named (rewrites to a constant). Previously the schema case threw while
|
|
183
|
-
* the literal case was silently dropped (schema generation classifies literal-only
|
|
184
|
-
* status as static and excludes it) — the two code paths disagreed. Both are now
|
|
185
|
-
* REJECTED the same way: FAIL LOUDLY at serialization, naming the field(s), so the
|
|
186
|
-
* author restructures the status (derive the value from a managed resource, or drop
|
|
187
|
-
* the field) instead of shipping a silently-weakened status API.
|
|
188
|
-
*/
|
|
189
|
-
export declare function assertNoHoistWeakenedStatusFields(statusMappings: Record<string, unknown> | undefined, hoisted: ReadonlyMap<string, unknown>, compositionName: string): void;
|
|
190
|
-
/**
|
|
191
|
-
* Resource-map form of {@link rewriteHoistedNamespaceRefsInValue}: rewrite every
|
|
192
|
-
* dangling reference to a hoisted Namespace across a resource collection.
|
|
193
|
-
*
|
|
194
|
-
* Only resources that actually contain such a reference are reconstructed; every
|
|
195
|
-
* other resource is passed through by identity, so the common case (no reference
|
|
196
|
-
* to the hoisted Namespace) is untouched. When a resource IS reconstructed, its
|
|
197
|
-
* TypeKro metadata (WeakMap-stored `includeWhen` / `readinessEvaluator` /
|
|
198
|
-
* `__resourceId` / readiness+iteration markers) is copied onto the new object via
|
|
199
|
-
* {@link copyResourceMetadata} so the rewrite never silently drops it (finding #7).
|
|
200
|
-
*/
|
|
201
|
-
export declare function rewriteHoistedNamespaceReferences<T extends Record<string, KubernetesResource>>(resources: T, hoisted: ReadonlyMap<string, unknown>): T;
|
|
202
|
-
/**
|
|
203
|
-
* Scan an emitted RGD YAML for any leftover reference to a hoisted (removed)
|
|
204
|
-
* resource id — either a CEL interpolation `${<id>.…}` or a raw
|
|
205
|
-
* `__KUBERNETES_REF_<id>_…` marker. Returns the FIRST offending id, or
|
|
206
|
-
* `undefined` when the RGD is clean.
|
|
207
|
-
*
|
|
208
|
-
* This is the shared post-serialization dangling-reference check applied to BOTH
|
|
209
|
-
* the factory serialization path ({@link KroResourceFactoryImpl.buildRgdYaml})
|
|
210
|
-
* and the graph/composition serialization path (`core.ts`). After hoisting an
|
|
211
|
-
* owned Namespace out of the RGD, NO reference to it may remain anywhere in the
|
|
212
|
-
* emitted RGD (resource templates, status CEL, nested CEL, overrides); otherwise
|
|
213
|
-
* KRO rejects the graph at runtime with a dangling `${...}` reference. A negative
|
|
214
|
-
* lookbehind avoids matching an id that is only a suffix of a longer identifier.
|
|
215
|
-
*/
|
|
216
|
-
export declare function findDanglingHoistedReference(rgdYaml: string, hoistedIds: ReadonlySet<string>): string | undefined;
|
|
217
|
-
/**
|
|
218
|
-
* Reject a KRO instance that would own the Namespace containing its own CR.
|
|
219
|
-
*
|
|
220
|
-
* KRO deletes graph children before clearing the owner CR's finalizer. If a
|
|
221
|
-
* child Namespace contains that CR, namespace termination can strand the
|
|
222
|
-
* finalizer permanently. Re-executing with the concrete instance spec makes
|
|
223
|
-
* this check survive nested compositions and schema-driven namespace names.
|
|
224
|
-
*
|
|
225
|
-
* The KRO factory now HOISTS every owned Namespace OUT of the RGD graph (emitting
|
|
226
|
-
* it as a SIBLING resource created deps-first and torn down after the RGD) before
|
|
227
|
-
* calling this guard, and passes the hoisted names in `hoistedNamespaces`. Because
|
|
228
|
-
* a hoisted namespace is no longer a graph child, deleting the instance can't GC
|
|
229
|
-
* it, so the common create-namespace-and-put-the-instance-in-it pattern is safe —
|
|
230
|
-
* this guard skips it. The guard remains the defense-in-depth net for HAND-AUTHORED
|
|
231
|
-
* graphs that hoisting does not cover: an owned Namespace whose name can't be proven
|
|
232
|
-
* safe (fails closed), and a caller who places `instanceNamespace` on a namespace
|
|
233
|
-
* the composition owns WITHOUT hoisting it (opts into the unsafe pattern).
|
|
234
|
-
*/
|
|
235
|
-
export declare function assertKroInstanceNamespaceOwnershipSafe<TSpec extends KroCompatibleType>(input: KroInstanceNamespaceSafetyInput<TSpec>): void;
|
|
236
|
-
export {};
|
|
237
|
-
//# sourceMappingURL=kro-instance-safety.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kro-instance-safety.d.ts","sourceRoot":"","sources":["../../../src/core/deployment/kro-instance-safety.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAInE,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,SAAS,kBAAkB,EAAE,CAAC;AAE7F,MAAM,WAAW,+BAA+B,CAAC,KAAK,SAAS,iBAAiB;IAC9E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC;IAClD;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClD;AAqBD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAmChG;AAED;;;;;;;;;;;;;;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ested Composition Status Synthesis
|
|
3
|
-
*
|
|
4
|
-
* When a composition contains nested compositions (e.g., inngestBootstrap inside
|
|
5
|
-
* webAppWithProcessing), the deployment creates child resources with prefixed IDs.
|
|
6
|
-
* After deployment, we need to synthesize a "ready" status for each nested
|
|
7
|
-
* composition parent based on whether ALL its children are ready.
|
|
8
|
-
*
|
|
9
|
-
* This module is shared between direct and KRO deployment strategies.
|
|
10
|
-
* It does NOT inspect resource-specific fields (Helm conditions, Namespace phase,
|
|
11
|
-
* etc.) — it relies solely on deployment readiness, which is already determined
|
|
12
|
-
* by factory-provided readiness evaluators.
|
|
13
|
-
*/
|
|
14
|
-
import type { TypeKroLogger } from '../logging/index.js';
|
|
15
|
-
import type { Enhanced } from '../types/index.js';
|
|
16
|
-
/**
|
|
17
|
-
* Synthesize status entries for nested compositions and return an enriched
|
|
18
|
-
* live status map that includes both the original resource statuses and
|
|
19
|
-
* synthesized nested composition statuses.
|
|
20
|
-
*
|
|
21
|
-
* @param probeResources - Resource map from a probe execution of the composition.
|
|
22
|
-
* Keys are full composition paths like "outer1-inngestBootstrap1-inngestHelmRelease".
|
|
23
|
-
* @param liveStatusMap - Live status data keyed by short resource IDs (e.g., "inngestHelmRelease").
|
|
24
|
-
* All resources in this map are considered "ready" (they passed waitForReady).
|
|
25
|
-
* @param logger - Logger instance for debug output.
|
|
26
|
-
* @param knownNestedIds - Explicit set of known nested composition base IDs
|
|
27
|
-
* (e.g., "inngestBootstrap1") from the composition context. Required — without
|
|
28
|
-
* this, no synthesis is performed. The IDs are populated during composition
|
|
29
|
-
* execution by `executeNestedCompositionWithSpec`.
|
|
30
|
-
* @returns Enriched map with additional entries for nested composition parent IDs.
|
|
31
|
-
*/
|
|
32
|
-
export declare function synthesizeNestedCompositionStatus(probeResources: Record<string, Enhanced<unknown, unknown>>, liveStatusMap: Map<string, Record<string, unknown>>, logger: TypeKroLogger, knownNestedIds?: Set<string>, nestedStatusSnapshots?: Map<string, Record<string, unknown>>): Map<string, Record<string, unknown>>;
|
|
33
|
-
//# sourceMappingURL=nested-composition-status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nested-composition-status.d.ts","sourceRoot":"","sources":["../../../src/core/deployment/nested-composition-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AA0FlD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iCAAiC,CAC/C,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,EAC1D,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACnD,MAAM,EAAE,aAAa,EACrB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EAC5B,qBAAqB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAC3D,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAkEtC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Readiness Waiter
|
|
3
|
-
*
|
|
4
|
-
* Handles waiting for Kubernetes resources to become ready after deployment,
|
|
5
|
-
* using factory-provided readiness evaluators with polling loops.
|
|
6
|
-
*/
|
|
7
|
-
import type * as k8s from '@kubernetes/client-node';
|
|
8
|
-
import type { TypeKroLogger } from '../logging/index.js';
|
|
9
|
-
import type { DeploymentEvent, DeploymentOptions } from '../types/deployment.js';
|
|
10
|
-
import type { DeployedResource } from '../types.js';
|
|
11
|
-
import type { DebugLogger } from './debug-logger.js';
|
|
12
|
-
import type { ResourceReadinessChecker } from './readiness.js';
|
|
13
|
-
/**
|
|
14
|
-
* Dependencies injected from the deployment engine
|
|
15
|
-
*/
|
|
16
|
-
export interface ReadinessWaiterDeps {
|
|
17
|
-
abortableDelay: (ms: number, signal?: AbortSignal) => Promise<void>;
|
|
18
|
-
withAbortSignal: <T>(operation: Promise<T>, signal?: AbortSignal) => Promise<T>;
|
|
19
|
-
emitEvent: (options: DeploymentOptions, event: DeploymentEvent) => void;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Handles readiness checking and waiting for deployed Kubernetes resources
|
|
23
|
-
*/
|
|
24
|
-
export declare class ReadinessWaiter {
|
|
25
|
-
private k8sApi;
|
|
26
|
-
private readyResources;
|
|
27
|
-
private readinessChecker;
|
|
28
|
-
private logger;
|
|
29
|
-
private debugLogger?;
|
|
30
|
-
private deps?;
|
|
31
|
-
constructor(k8sApi: k8s.KubernetesObjectApi, readyResources: Set<string>, readinessChecker: ResourceReadinessChecker, logger: TypeKroLogger, debugLogger?: DebugLogger | undefined, deps?: ReadinessWaiterDeps | undefined);
|
|
32
|
-
/**
|
|
33
|
-
* Update the debug logger (e.g., when debug logging is enabled mid-deployment)
|
|
34
|
-
*/
|
|
35
|
-
setDebugLogger(debugLogger: DebugLogger): void;
|
|
36
|
-
/**
|
|
37
|
-
* Check if a deployed resource is ready using the factory-provided readiness evaluator
|
|
38
|
-
*/
|
|
39
|
-
isDeployedResourceReady(deployedResource: DeployedResource): Promise<boolean>;
|
|
40
|
-
/**
|
|
41
|
-
* Wait for a resource to be ready
|
|
42
|
-
* @param deployedResource - The deployed resource to wait for
|
|
43
|
-
* @param options - Deployment options
|
|
44
|
-
* @param abortSignal - Optional AbortSignal to cancel the wait
|
|
45
|
-
*/
|
|
46
|
-
waitForResourceReady(deployedResource: DeployedResource, options: DeploymentOptions, abortSignal?: AbortSignal): Promise<void>;
|
|
47
|
-
/**
|
|
48
|
-
* Abortable delay - delegates to injected dependency or falls back to simple delay
|
|
49
|
-
*/
|
|
50
|
-
private abortableDelay;
|
|
51
|
-
/**
|
|
52
|
-
* Wrap an async operation with abort signal handling - delegates to injected dependency
|
|
53
|
-
*/
|
|
54
|
-
private withAbortSignal;
|
|
55
|
-
/**
|
|
56
|
-
* Emit deployment events - delegates to injected dependency
|
|
57
|
-
*/
|
|
58
|
-
private emitEvent;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=readiness-waiter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readiness-waiter.d.ts","sourceRoot":"","sources":["../../../src/core/deployment/readiness-waiter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,GAAG,MAAM,yBAAyB,CAAC;AAGpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,aAAa,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,eAAe,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAChF,SAAS,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;CACzE;AAED;;GAEG;AACH,qBAAa,eAAe;IAExB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,WAAW,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC;gBALL,MAAM,EAAE,GAAG,CAAC,mBAAmB,EAC/B,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,EAC3B,gBAAgB,EAAE,wBAAwB,EAC1C,MAAM,EAAE,aAAa,EACrB,WAAW,CAAC,EAAE,WAAW,YAAA,EACzB,IAAI,CAAC,EAAE,mBAAmB,YAAA;IAGpC;;OAEG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAI9C;;OAEG;IACG,uBAAuB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAuEnF;;;;;OAKG;IACG,oBAAoB,CACxB,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,iBAAiB,EAC1B,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,IAAI,CAAC;IA6LhB;;OAEG;IACH,OAAO,CAAC,cAAc;IAOtB;;OAEG;IACH,OAAO,CAAC,eAAe;IAOvB;;OAEG;IACH,OAAO,CAAC,SAAS;CAKlB"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resource Applier
|
|
3
|
-
*
|
|
4
|
-
* Handles the mechanics of applying Kubernetes resources to a cluster:
|
|
5
|
-
* serialization, namespace application, patch construction, conflict resolution,
|
|
6
|
-
* existence checking, reference resolution, and the main apply-with-retry loop.
|
|
7
|
-
*
|
|
8
|
-
* Extracted from DirectDeploymentEngine to separate resource-level K8s
|
|
9
|
-
* operations from orchestration concerns.
|
|
10
|
-
*/
|
|
11
|
-
import type * as k8s from '@kubernetes/client-node';
|
|
12
|
-
import type { TypeKroLogger } from '../logging/index.js';
|
|
13
|
-
import type { ArtifactApplyPolicy } from '../planning/artifacts.js';
|
|
14
|
-
import type { ReferenceResolver } from '../references/index.js';
|
|
15
|
-
import type { DeploymentOptions, ResolutionContext } from '../types/deployment.js';
|
|
16
|
-
import type { DeployableK8sResource, Enhanced, KubernetesResource } from '../types.js';
|
|
17
|
-
/** Host-neutral contract for applying one compiled Kubernetes artifact operation. */
|
|
18
|
-
export interface ArtifactResourceApplier {
|
|
19
|
-
applyArtifactResource(resource: KubernetesResource, policy: ArtifactApplyPolicy | undefined, options: DeploymentOptions, resourceLogger: TypeKroLogger): Promise<k8s.KubernetesObject>;
|
|
20
|
-
}
|
|
21
|
-
export declare class ResourceApplier implements ArtifactResourceApplier {
|
|
22
|
-
private k8sApi;
|
|
23
|
-
private referenceResolver;
|
|
24
|
-
constructor(k8sApi: k8s.KubernetesObjectApi, referenceResolver: ReferenceResolver | undefined, _logger: TypeKroLogger);
|
|
25
|
-
private buildResourceIdentityMetadata;
|
|
26
|
-
private throwIfAborted;
|
|
27
|
-
private abortableDelay;
|
|
28
|
-
private isImmutableFieldError;
|
|
29
|
-
/**
|
|
30
|
-
* Serialize a resource for sending to the Kubernetes API.
|
|
31
|
-
* Calls toJSON() if available (to preserve arrays via custom implementation),
|
|
32
|
-
* then deep-clones via JSON to strip proxy wrappers, and removes internal fields.
|
|
33
|
-
*/
|
|
34
|
-
serializeResourceForK8s(resource: KubernetesResource | Partial<KubernetesResource>): Record<string, unknown>;
|
|
35
|
-
/**
|
|
36
|
-
* Resolve all references in a resource, with timeout and fallback behavior.
|
|
37
|
-
* Falls back to the original resource if resolution fails.
|
|
38
|
-
*/
|
|
39
|
-
resolveResourceReferences(resource: DeployableK8sResource<Enhanced<unknown, unknown>>, context: ResolutionContext, options: DeploymentOptions, resourceLogger: TypeKroLogger): Promise<KubernetesResource>;
|
|
40
|
-
/**
|
|
41
|
-
* Apply a namespace to a resource if one is specified and the resource doesn't already have one.
|
|
42
|
-
* Preserves non-enumerable properties (readinessEvaluator, __resourceId) on the new object.
|
|
43
|
-
*/
|
|
44
|
-
applyNamespaceToResource(resource: KubernetesResource, namespace: string | undefined, resourceLogger: TypeKroLogger): KubernetesResource;
|
|
45
|
-
/**
|
|
46
|
-
* Apply typekro ownership metadata (labels + annotations) to a resource
|
|
47
|
-
* manifest right before it's serialized and sent to the cluster.
|
|
48
|
-
*
|
|
49
|
-
* No-op when the deployment isn't tagged with factoryName + instanceName
|
|
50
|
-
* — untagged deployments don't participate in cross-process discovery
|
|
51
|
-
* and would pollute their resources with partial ownership metadata.
|
|
52
|
-
*
|
|
53
|
-
* Uses `getEffectiveScopes` from the tagging module as the single
|
|
54
|
-
* source of truth for scope computation — avoids duplicating the
|
|
55
|
-
* WeakMap + annotation + legacy-alias merge logic.
|
|
56
|
-
*/
|
|
57
|
-
applyOwnershipTags(resource: KubernetesResource, options: DeploymentOptions, resourceId: string, context: ResolutionContext): void;
|
|
58
|
-
/**
|
|
59
|
-
* Build a patch payload from a resource, including special-cased fields for Secrets and RBAC resources.
|
|
60
|
-
*/
|
|
61
|
-
buildPatchPayload(resource: KubernetesResource): Record<string, unknown>;
|
|
62
|
-
/**
|
|
63
|
-
* Handle a 409 Conflict error based on the configured conflict strategy.
|
|
64
|
-
* Returns the applied resource if the conflict was handled, or undefined if it wasn't.
|
|
65
|
-
*/
|
|
66
|
-
handleConflictStrategy(resolvedResource: KubernetesResource, conflictStrategy: NonNullable<DeploymentOptions['conflictStrategy']>, resourceLogger: TypeKroLogger, abortSignal?: AbortSignal, timeout?: number): Promise<k8s.KubernetesObject | undefined>;
|
|
67
|
-
private createResource;
|
|
68
|
-
private patchResource;
|
|
69
|
-
private replaceResource;
|
|
70
|
-
private waitForResourceDeletion;
|
|
71
|
-
private serverSideApply;
|
|
72
|
-
private applyWithPolicy;
|
|
73
|
-
/**
|
|
74
|
-
* Apply a resource to the Kubernetes cluster with retry logic, conflict handling,
|
|
75
|
-
* and support for both create and patch operations.
|
|
76
|
-
*/
|
|
77
|
-
applyResourceToCluster(resolvedResource: KubernetesResource, options: DeploymentOptions, resourceLogger: TypeKroLogger): Promise<k8s.KubernetesObject>;
|
|
78
|
-
/** Apply one compiled artifact operation through the canonical policy executor. */
|
|
79
|
-
applyArtifactResource(resolvedResource: KubernetesResource, applyPolicy: ArtifactApplyPolicy | undefined, options: DeploymentOptions, resourceLogger: TypeKroLogger): Promise<k8s.KubernetesObject>;
|
|
80
|
-
/**
|
|
81
|
-
* Check if a resource already exists in the cluster.
|
|
82
|
-
* Returns the existing resource if found, or undefined if it doesn't exist (404).
|
|
83
|
-
* Throws for unexpected errors (non-404).
|
|
84
|
-
*/
|
|
85
|
-
checkResourceExists(resource: KubernetesResource, resourceLogger: TypeKroLogger): Promise<k8s.KubernetesObject | undefined>;
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=resource-applier.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-applier.d.ts","sourceRoot":"","sources":["../../../src/core/deployment/resource-applier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,GAAG,MAAM,yBAAyB,CAAC;AAUpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,KAAK,EACV,qBAAqB,EACrB,QAAQ,EAER,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAiBrB,qFAAqF;AACrF,MAAM,WAAW,uBAAuB;IACtC,qBAAqB,CACnB,QAAQ,EAAE,kBAAkB,EAC5B,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,OAAO,EAAE,iBAAiB,EAC1B,cAAc,EAAE,aAAa,GAC5B,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAClC;AAED,qBAAa,eAAgB,YAAW,uBAAuB;IAE3D,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,iBAAiB;gBADjB,MAAM,EAAE,GAAG,CAA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