typekro 0.3.0 → 0.4.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/README.md +142 -1054
- package/dist/.tsbuildinfo +1 -1
- package/dist/alchemy/deployers.d.ts +0 -5
- package/dist/alchemy/deployers.d.ts.map +1 -1
- package/dist/alchemy/deployers.js +25 -72
- package/dist/alchemy/deployers.js.map +1 -1
- package/dist/core/composition/imperative.d.ts +2 -2
- package/dist/core/composition/imperative.d.ts.map +1 -1
- package/dist/core/composition/imperative.js +394 -10
- package/dist/core/composition/imperative.js.map +1 -1
- package/dist/core/composition/typekro-runtime/typekro-runtime.d.ts +1 -9
- package/dist/core/composition/typekro-runtime/typekro-runtime.d.ts.map +1 -1
- package/dist/core/composition/typekro-runtime/typekro-runtime.js +76 -10
- package/dist/core/composition/typekro-runtime/typekro-runtime.js.map +1 -1
- package/dist/core/composition/typekro-runtime/types.d.ts +8 -5
- package/dist/core/composition/typekro-runtime/types.d.ts.map +1 -1
- package/dist/core/composition/typekro-runtime/types.js.map +1 -1
- package/dist/core/constants/brands.d.ts +20 -0
- package/dist/core/constants/brands.d.ts.map +1 -1
- package/dist/core/constants/brands.js +20 -0
- package/dist/core/constants/brands.js.map +1 -1
- package/dist/core/deployment/direct-factory.d.ts +36 -1
- package/dist/core/deployment/direct-factory.d.ts.map +1 -1
- package/dist/core/deployment/direct-factory.js +289 -4
- package/dist/core/deployment/direct-factory.js.map +1 -1
- package/dist/core/deployment/engine.d.ts +57 -2
- package/dist/core/deployment/engine.d.ts.map +1 -1
- package/dist/core/deployment/engine.js +677 -49
- package/dist/core/deployment/engine.js.map +1 -1
- package/dist/core/deployment/event-filter.d.ts.map +1 -1
- package/dist/core/deployment/event-filter.js +6 -7
- package/dist/core/deployment/event-filter.js.map +1 -1
- package/dist/core/deployment/event-monitor.d.ts +36 -2
- package/dist/core/deployment/event-monitor.d.ts.map +1 -1
- package/dist/core/deployment/event-monitor.js +183 -33
- package/dist/core/deployment/event-monitor.js.map +1 -1
- package/dist/core/deployment/kro-factory.d.ts +22 -0
- package/dist/core/deployment/kro-factory.d.ts.map +1 -1
- package/dist/core/deployment/kro-factory.js +291 -27
- package/dist/core/deployment/kro-factory.js.map +1 -1
- package/dist/core/deployment/readiness.d.ts.map +1 -1
- package/dist/core/deployment/readiness.js +4 -2
- package/dist/core/deployment/readiness.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 +5 -2
- package/dist/core/deployment/rollback-manager.js.map +1 -1
- package/dist/core/deployment/shared-utilities.js.map +1 -1
- package/dist/core/deployment/status-hydrator.d.ts +1 -1
- package/dist/core/deployment/status-hydrator.d.ts.map +1 -1
- package/dist/core/deployment/status-hydrator.js +8 -5
- package/dist/core/deployment/status-hydrator.js.map +1 -1
- package/dist/core/deployment/strategies/base-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/base-strategy.js +60 -21
- package/dist/core/deployment/strategies/base-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.d.ts +7 -0
- package/dist/core/deployment/strategies/direct-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.js +50 -0
- package/dist/core/deployment/strategies/direct-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/kro-strategy.d.ts +5 -0
- package/dist/core/deployment/strategies/kro-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/kro-strategy.js +53 -4
- package/dist/core/deployment/strategies/kro-strategy.js.map +1 -1
- package/dist/core/evaluation/cel-optimizer.d.ts.map +1 -1
- package/dist/core/evaluation/cel-optimizer.js +7 -13
- package/dist/core/evaluation/cel-optimizer.js.map +1 -1
- package/dist/core/expressions/analyzer.d.ts +6 -6
- package/dist/core/expressions/analyzer.d.ts.map +1 -1
- package/dist/core/expressions/analyzer.js +40 -75
- package/dist/core/expressions/analyzer.js.map +1 -1
- package/dist/core/expressions/cel-conversion-engine.d.ts.map +1 -1
- package/dist/core/expressions/cel-conversion-engine.js +10 -11
- package/dist/core/expressions/cel-conversion-engine.js.map +1 -1
- package/dist/core/expressions/composition-integration.d.ts +2 -2
- package/dist/core/expressions/composition-integration.d.ts.map +1 -1
- package/dist/core/expressions/composition-integration.js +20 -12
- package/dist/core/expressions/composition-integration.js.map +1 -1
- package/dist/core/expressions/field-hydration-processor.d.ts +4 -1
- package/dist/core/expressions/field-hydration-processor.d.ts.map +1 -1
- package/dist/core/expressions/field-hydration-processor.js +12 -13
- package/dist/core/expressions/field-hydration-processor.js.map +1 -1
- package/dist/core/expressions/imperative-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/imperative-analyzer.js +193 -49
- package/dist/core/expressions/imperative-analyzer.js.map +1 -1
- package/dist/core/expressions/index.d.ts +2 -0
- package/dist/core/expressions/index.d.ts.map +1 -1
- package/dist/core/expressions/index.js +2 -0
- package/dist/core/expressions/index.js.map +1 -1
- package/dist/core/expressions/magic-proxy-analyzer.d.ts +1 -1
- package/dist/core/expressions/magic-proxy-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/magic-proxy-analyzer.js +8 -7
- package/dist/core/expressions/magic-proxy-analyzer.js.map +1 -1
- package/dist/core/expressions/parser.d.ts +163 -0
- package/dist/core/expressions/parser.d.ts.map +1 -0
- package/dist/core/expressions/parser.js +272 -0
- package/dist/core/expressions/parser.js.map +1 -0
- package/dist/core/expressions/status-builder-analyzer.d.ts.map +1 -1
- package/dist/core/expressions/status-builder-analyzer.js +15 -5
- package/dist/core/expressions/status-builder-analyzer.js.map +1 -1
- package/dist/core/kubernetes/api.d.ts.map +1 -1
- package/dist/core/kubernetes/api.js +5 -6
- package/dist/core/kubernetes/api.js.map +1 -1
- package/dist/core/kubernetes/bun-api-client.d.ts +95 -0
- package/dist/core/kubernetes/bun-api-client.d.ts.map +1 -0
- package/dist/core/kubernetes/bun-api-client.js +160 -0
- package/dist/core/kubernetes/bun-api-client.js.map +1 -0
- package/dist/core/kubernetes/bun-http-library.d.ts +38 -0
- package/dist/core/kubernetes/bun-http-library.d.ts.map +1 -0
- package/dist/core/kubernetes/bun-http-library.js +133 -0
- package/dist/core/kubernetes/bun-http-library.js.map +1 -0
- package/dist/core/kubernetes/client-provider.d.ts +3 -0
- package/dist/core/kubernetes/client-provider.d.ts.map +1 -1
- package/dist/core/kubernetes/client-provider.js +32 -23
- package/dist/core/kubernetes/client-provider.js.map +1 -1
- package/dist/core/kubernetes/errors.d.ts +189 -0
- package/dist/core/kubernetes/errors.d.ts.map +1 -0
- package/dist/core/kubernetes/errors.js +298 -0
- package/dist/core/kubernetes/errors.js.map +1 -0
- package/dist/core/kubernetes/index.d.ts +19 -0
- package/dist/core/kubernetes/index.d.ts.map +1 -0
- package/dist/core/kubernetes/index.js +23 -0
- package/dist/core/kubernetes/index.js.map +1 -0
- package/dist/core/kubernetes/type-guards.d.ts +142 -0
- package/dist/core/kubernetes/type-guards.d.ts.map +1 -0
- package/dist/core/kubernetes/type-guards.js +151 -0
- package/dist/core/kubernetes/type-guards.js.map +1 -0
- package/dist/core/logging/logger.d.ts.map +1 -1
- package/dist/core/logging/logger.js +8 -0
- package/dist/core/logging/logger.js.map +1 -1
- package/dist/core/readiness/cluster-state.d.ts.map +1 -1
- package/dist/core/readiness/cluster-state.js +6 -4
- package/dist/core/readiness/cluster-state.js.map +1 -1
- package/dist/core/references/cel-evaluator.d.ts.map +1 -1
- package/dist/core/references/cel-evaluator.js +12 -2
- package/dist/core/references/cel-evaluator.js.map +1 -1
- package/dist/core/references/cel.d.ts +13 -1
- package/dist/core/references/cel.d.ts.map +1 -1
- package/dist/core/references/cel.js +50 -0
- package/dist/core/references/cel.js.map +1 -1
- package/dist/core/references/resolver.d.ts +28 -1
- package/dist/core/references/resolver.d.ts.map +1 -1
- package/dist/core/references/resolver.js +325 -11
- 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 +27 -13
- package/dist/core/references/schema-proxy.js.map +1 -1
- package/dist/core/scope/resolver.d.ts +16 -0
- package/dist/core/scope/resolver.d.ts.map +1 -0
- package/dist/core/scope/resolver.js +45 -0
- package/dist/core/scope/resolver.js.map +1 -0
- package/dist/core/serialization/core.d.ts +1 -1
- package/dist/core/serialization/core.d.ts.map +1 -1
- package/dist/core/serialization/core.js +78 -54
- package/dist/core/serialization/core.js.map +1 -1
- package/dist/core/types/common.d.ts +23 -1
- package/dist/core/types/common.d.ts.map +1 -1
- package/dist/core/types/deployment.d.ts +71 -1
- package/dist/core/types/deployment.d.ts.map +1 -1
- package/dist/core/types/deployment.js +24 -0
- package/dist/core/types/deployment.js.map +1 -1
- package/dist/core/types/factory-scope.d.ts +42 -0
- package/dist/core/types/factory-scope.d.ts.map +1 -0
- package/dist/core/types/factory-scope.js +14 -0
- package/dist/core/types/factory-scope.js.map +1 -0
- package/dist/core/types/kubernetes.d.ts +146 -4
- package/dist/core/types/kubernetes.d.ts.map +1 -1
- package/dist/core/types/references.d.ts +47 -3
- package/dist/core/types/references.d.ts.map +1 -1
- package/dist/core/types/references.js.map +1 -1
- package/dist/core/types/serialization.d.ts +17 -6
- package/dist/core/types/serialization.d.ts.map +1 -1
- package/dist/core/utils/crd-patcher.d.ts +30 -0
- package/dist/core/utils/crd-patcher.d.ts.map +1 -0
- package/dist/core/utils/crd-patcher.js +198 -0
- package/dist/core/utils/crd-patcher.js.map +1 -0
- package/dist/core/utils/crd-schema-fix.d.ts +108 -0
- package/dist/core/utils/crd-schema-fix.d.ts.map +1 -0
- package/dist/core/utils/crd-schema-fix.js +245 -0
- package/dist/core/utils/crd-schema-fix.js.map +1 -0
- package/dist/core/utils/index.d.ts +12 -0
- package/dist/core/utils/index.d.ts.map +1 -0
- package/dist/core/utils/index.js +12 -0
- package/dist/core/utils/index.js.map +1 -0
- package/dist/core/utils/minimal-connection-reset-suppression.d.ts +16 -0
- package/dist/core/utils/minimal-connection-reset-suppression.d.ts.map +1 -0
- package/dist/core/utils/minimal-connection-reset-suppression.js +72 -0
- package/dist/core/utils/minimal-connection-reset-suppression.js.map +1 -0
- package/dist/core/utils/output-filter.d.ts +16 -0
- package/dist/core/utils/output-filter.d.ts.map +1 -0
- package/dist/core/utils/output-filter.js +90 -0
- package/dist/core/utils/output-filter.js.map +1 -0
- package/dist/core/utils/scoped-error-suppression.d.ts +25 -0
- package/dist/core/utils/scoped-error-suppression.d.ts.map +1 -0
- package/dist/core/utils/scoped-error-suppression.js +226 -0
- package/dist/core/utils/scoped-error-suppression.js.map +1 -0
- package/dist/core/validation/cel-validator.d.ts.map +1 -1
- package/dist/core/validation/cel-validator.js +51 -15
- package/dist/core/validation/cel-validator.js.map +1 -1
- package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts +38 -0
- package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts.map +1 -0
- package/dist/factories/apisix/compositions/apisix-bootstrap.js +280 -0
- package/dist/factories/apisix/compositions/apisix-bootstrap.js.map +1 -0
- package/dist/factories/apisix/compositions/index.d.ts +5 -0
- package/dist/factories/apisix/compositions/index.d.ts.map +1 -0
- package/dist/factories/apisix/compositions/index.js +5 -0
- package/dist/factories/apisix/compositions/index.js.map +1 -0
- package/dist/factories/apisix/index.d.ts +11 -0
- package/dist/factories/apisix/index.d.ts.map +1 -0
- package/dist/factories/apisix/index.js +11 -0
- package/dist/factories/apisix/index.js.map +1 -0
- package/dist/factories/apisix/resources/helm.d.ts +59 -0
- package/dist/factories/apisix/resources/helm.d.ts.map +1 -0
- package/dist/factories/apisix/resources/helm.js +175 -0
- package/dist/factories/apisix/resources/helm.js.map +1 -0
- package/dist/factories/apisix/resources/index.d.ts +5 -0
- package/dist/factories/apisix/resources/index.d.ts.map +1 -0
- package/dist/factories/apisix/resources/index.js +5 -0
- package/dist/factories/apisix/resources/index.js.map +1 -0
- package/dist/factories/apisix/types.d.ts +339 -0
- package/dist/factories/apisix/types.d.ts.map +1 -0
- package/dist/factories/apisix/types.js +88 -0
- package/dist/factories/apisix/types.js.map +1 -0
- package/dist/factories/apisix/utils/helm-values-mapper.d.ts +19 -0
- package/dist/factories/apisix/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/apisix/utils/helm-values-mapper.js +108 -0
- package/dist/factories/apisix/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/apisix/utils/index.d.ts +5 -0
- package/dist/factories/apisix/utils/index.d.ts.map +1 -0
- package/dist/factories/apisix/utils/index.js +5 -0
- package/dist/factories/apisix/utils/index.js.map +1 -0
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.d.ts +45 -0
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.d.ts.map +1 -0
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.js +323 -0
- package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.js.map +1 -0
- package/dist/factories/cert-manager/compositions/index.d.ts +2 -0
- package/dist/factories/cert-manager/compositions/index.d.ts.map +1 -0
- package/dist/factories/cert-manager/compositions/index.js +2 -0
- package/dist/factories/cert-manager/compositions/index.js.map +1 -0
- package/dist/factories/cert-manager/index.d.ts +10 -0
- package/dist/factories/cert-manager/index.d.ts.map +1 -0
- package/dist/factories/cert-manager/index.js +19 -0
- package/dist/factories/cert-manager/index.js.map +1 -0
- package/dist/factories/cert-manager/resources/certificates.d.ts +39 -0
- package/dist/factories/cert-manager/resources/certificates.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/certificates.js +132 -0
- package/dist/factories/cert-manager/resources/certificates.js.map +1 -0
- package/dist/factories/cert-manager/resources/challenges.d.ts +113 -0
- package/dist/factories/cert-manager/resources/challenges.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/challenges.js +281 -0
- package/dist/factories/cert-manager/resources/challenges.js.map +1 -0
- package/dist/factories/cert-manager/resources/helm.d.ts +57 -0
- package/dist/factories/cert-manager/resources/helm.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/helm.js +390 -0
- package/dist/factories/cert-manager/resources/helm.js.map +1 -0
- package/dist/factories/cert-manager/resources/index.d.ts +5 -0
- package/dist/factories/cert-manager/resources/index.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/index.js +6 -0
- package/dist/factories/cert-manager/resources/index.js.map +1 -0
- package/dist/factories/cert-manager/resources/issuers.d.ts +79 -0
- package/dist/factories/cert-manager/resources/issuers.d.ts.map +1 -0
- package/dist/factories/cert-manager/resources/issuers.js +204 -0
- package/dist/factories/cert-manager/resources/issuers.js.map +1 -0
- package/dist/factories/cert-manager/types.d.ts +1015 -0
- package/dist/factories/cert-manager/types.d.ts.map +1 -0
- package/dist/factories/cert-manager/types.js +198 -0
- package/dist/factories/cert-manager/types.js.map +1 -0
- package/dist/factories/cert-manager/utils/helm-values-mapper.d.ts +19 -0
- package/dist/factories/cert-manager/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/cert-manager/utils/helm-values-mapper.js +117 -0
- package/dist/factories/cert-manager/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/cert-manager/utils/index.d.ts +2 -0
- package/dist/factories/cert-manager/utils/index.d.ts.map +1 -0
- package/dist/factories/cert-manager/utils/index.js +2 -0
- package/dist/factories/cert-manager/utils/index.js.map +1 -0
- package/dist/factories/cilium/compositions/cilium-bootstrap.d.ts +220 -0
- package/dist/factories/cilium/compositions/cilium-bootstrap.d.ts.map +1 -0
- package/dist/factories/cilium/compositions/cilium-bootstrap.js +293 -0
- package/dist/factories/cilium/compositions/cilium-bootstrap.js.map +1 -0
- package/dist/factories/cilium/compositions/index.d.ts +8 -0
- package/dist/factories/cilium/compositions/index.d.ts.map +1 -0
- package/dist/factories/cilium/compositions/index.js +11 -0
- package/dist/factories/cilium/compositions/index.js.map +1 -0
- package/dist/factories/cilium/index.d.ts +10 -0
- package/dist/factories/cilium/index.d.ts.map +1 -0
- package/dist/factories/cilium/index.js +19 -0
- package/dist/factories/cilium/index.js.map +1 -0
- package/dist/factories/cilium/resources/bgp.d.ts +10 -0
- package/dist/factories/cilium/resources/bgp.d.ts.map +1 -0
- package/dist/factories/cilium/resources/bgp.js +14 -0
- package/dist/factories/cilium/resources/bgp.js.map +1 -0
- package/dist/factories/cilium/resources/gateway.d.ts +72 -0
- package/dist/factories/cilium/resources/gateway.d.ts.map +1 -0
- package/dist/factories/cilium/resources/gateway.js +118 -0
- package/dist/factories/cilium/resources/gateway.js.map +1 -0
- package/dist/factories/cilium/resources/helm.d.ts +93 -0
- package/dist/factories/cilium/resources/helm.d.ts.map +1 -0
- package/dist/factories/cilium/resources/helm.js +377 -0
- package/dist/factories/cilium/resources/helm.js.map +1 -0
- package/dist/factories/cilium/resources/index.d.ts +14 -0
- package/dist/factories/cilium/resources/index.d.ts.map +1 -0
- package/dist/factories/cilium/resources/index.js +35 -0
- package/dist/factories/cilium/resources/index.js.map +1 -0
- package/dist/factories/cilium/resources/load-balancer.d.ts +9 -0
- package/dist/factories/cilium/resources/load-balancer.d.ts.map +1 -0
- package/dist/factories/cilium/resources/load-balancer.js +12 -0
- package/dist/factories/cilium/resources/load-balancer.js.map +1 -0
- package/dist/factories/cilium/resources/networking.d.ts +202 -0
- package/dist/factories/cilium/resources/networking.d.ts.map +1 -0
- package/dist/factories/cilium/resources/networking.js +581 -0
- package/dist/factories/cilium/resources/networking.js.map +1 -0
- package/dist/factories/cilium/resources/observability.d.ts +9 -0
- package/dist/factories/cilium/resources/observability.d.ts.map +1 -0
- package/dist/factories/cilium/resources/observability.js +11 -0
- package/dist/factories/cilium/resources/observability.js.map +1 -0
- package/dist/factories/cilium/resources/security.d.ts +10 -0
- package/dist/factories/cilium/resources/security.d.ts.map +1 -0
- package/dist/factories/cilium/resources/security.js +14 -0
- package/dist/factories/cilium/resources/security.js.map +1 -0
- package/dist/factories/cilium/types.d.ts +1001 -0
- package/dist/factories/cilium/types.d.ts.map +1 -0
- package/dist/factories/cilium/types.js +79 -0
- package/dist/factories/cilium/types.js.map +1 -0
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.d.ts +32 -0
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.d.ts.map +1 -0
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.js +152 -0
- package/dist/factories/external-dns/compositions/external-dns-bootstrap.js.map +1 -0
- package/dist/factories/external-dns/compositions/index.d.ts +2 -0
- package/dist/factories/external-dns/compositions/index.d.ts.map +1 -0
- package/dist/factories/external-dns/compositions/index.js +3 -0
- package/dist/factories/external-dns/compositions/index.js.map +1 -0
- package/dist/factories/external-dns/index.d.ts +10 -0
- package/dist/factories/external-dns/index.d.ts.map +1 -0
- package/dist/factories/external-dns/index.js +19 -0
- package/dist/factories/external-dns/index.js.map +1 -0
- package/dist/factories/external-dns/resources/dns-endpoint.d.ts +54 -0
- package/dist/factories/external-dns/resources/dns-endpoint.d.ts.map +1 -0
- package/dist/factories/external-dns/resources/dns-endpoint.js +53 -0
- package/dist/factories/external-dns/resources/dns-endpoint.js.map +1 -0
- package/dist/factories/external-dns/resources/helm.d.ts +57 -0
- package/dist/factories/external-dns/resources/helm.d.ts.map +1 -0
- package/dist/factories/external-dns/resources/helm.js +435 -0
- package/dist/factories/external-dns/resources/helm.js.map +1 -0
- package/dist/factories/external-dns/resources/index.d.ts +3 -0
- package/dist/factories/external-dns/resources/index.d.ts.map +1 -0
- package/dist/factories/external-dns/resources/index.js +4 -0
- package/dist/factories/external-dns/resources/index.js.map +1 -0
- package/dist/factories/external-dns/types.d.ts +180 -0
- package/dist/factories/external-dns/types.d.ts.map +1 -0
- package/dist/factories/external-dns/types.js +39 -0
- package/dist/factories/external-dns/types.js.map +1 -0
- package/dist/factories/flux/git-repository.d.ts +2 -2
- package/dist/factories/flux/git-repository.d.ts.map +1 -1
- package/dist/factories/helm/types.d.ts +24 -3
- package/dist/factories/helm/types.d.ts.map +1 -1
- package/dist/factories/index.d.ts +7 -1
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +21 -1
- package/dist/factories/index.js.map +1 -1
- package/dist/factories/kubernetes/config/config-map.d.ts +4 -1
- package/dist/factories/kubernetes/config/config-map.d.ts.map +1 -1
- package/dist/factories/kubernetes/config/config-map.js +4 -0
- package/dist/factories/kubernetes/config/config-map.js.map +1 -1
- package/dist/factories/kubernetes/config/secret.d.ts +6 -1
- package/dist/factories/kubernetes/config/secret.d.ts.map +1 -1
- package/dist/factories/kubernetes/config/secret.js +4 -0
- package/dist/factories/kubernetes/config/secret.js.map +1 -1
- package/dist/factories/kubernetes/networking/service.d.ts.map +1 -1
- package/dist/factories/kubernetes/networking/service.js +6 -1
- package/dist/factories/kubernetes/networking/service.js.map +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role-binding.d.ts.map +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role-binding.js +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role-binding.js.map +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role.d.ts.map +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role.js +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role.js.map +1 -1
- package/dist/factories/kubernetes/scheduling/priority-class.d.ts.map +1 -1
- package/dist/factories/kubernetes/scheduling/priority-class.js +1 -1
- package/dist/factories/kubernetes/scheduling/priority-class.js.map +1 -1
- package/dist/factories/kubernetes/storage/storage-class.d.ts.map +1 -1
- package/dist/factories/kubernetes/storage/storage-class.js +1 -1
- package/dist/factories/kubernetes/storage/storage-class.js.map +1 -1
- package/dist/factories/kubernetes/workloads/deployment.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/deployment.js +9 -4
- package/dist/factories/kubernetes/workloads/deployment.js.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-directory.js +2 -2
- package/dist/factories/kubernetes/yaml/yaml-directory.js.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-file.d.ts +31 -1
- package/dist/factories/kubernetes/yaml/yaml-file.d.ts.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-file.js +80 -7
- package/dist/factories/kubernetes/yaml/yaml-file.js.map +1 -1
- package/dist/factories/pebble/compositions/index.d.ts +2 -0
- package/dist/factories/pebble/compositions/index.d.ts.map +1 -0
- package/dist/factories/pebble/compositions/index.js +3 -0
- package/dist/factories/pebble/compositions/index.js.map +1 -0
- package/dist/factories/pebble/compositions/pebble-bootstrap.d.ts +56 -0
- package/dist/factories/pebble/compositions/pebble-bootstrap.d.ts.map +1 -0
- package/dist/factories/pebble/compositions/pebble-bootstrap.js +97 -0
- package/dist/factories/pebble/compositions/pebble-bootstrap.js.map +1 -0
- package/dist/factories/pebble/index.d.ts +10 -0
- package/dist/factories/pebble/index.d.ts.map +1 -0
- package/dist/factories/pebble/index.js +19 -0
- package/dist/factories/pebble/index.js.map +1 -0
- package/dist/factories/pebble/resources/helm.d.ts +99 -0
- package/dist/factories/pebble/resources/helm.d.ts.map +1 -0
- package/dist/factories/pebble/resources/helm.js +167 -0
- package/dist/factories/pebble/resources/helm.js.map +1 -0
- package/dist/factories/pebble/resources/index.d.ts +2 -0
- package/dist/factories/pebble/resources/index.d.ts.map +1 -0
- package/dist/factories/pebble/resources/index.js +3 -0
- package/dist/factories/pebble/resources/index.js.map +1 -0
- package/dist/factories/pebble/types.d.ts +184 -0
- package/dist/factories/pebble/types.d.ts.map +1 -0
- package/dist/factories/pebble/types.js +23 -0
- package/dist/factories/pebble/types.js.map +1 -0
- package/dist/factories/pebble/utils/helm-values-mapper.d.ts +21 -0
- package/dist/factories/pebble/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/pebble/utils/helm-values-mapper.js +96 -0
- package/dist/factories/pebble/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/shared.d.ts +18 -1
- package/dist/factories/shared.d.ts.map +1 -1
- package/dist/factories/shared.js +89 -8
- package/dist/factories/shared.js.map +1 -1
- package/dist/factories/simple/config/config-map.d.ts +7 -2
- package/dist/factories/simple/config/config-map.d.ts.map +1 -1
- package/dist/factories/simple/config/config-map.js +3 -0
- package/dist/factories/simple/config/config-map.js.map +1 -1
- package/dist/factories/simple/config/secret.d.ts +11 -2
- package/dist/factories/simple/config/secret.d.ts.map +1 -1
- package/dist/factories/simple/config/secret.js +23 -1
- package/dist/factories/simple/config/secret.js.map +1 -1
- package/dist/factories/simple/storage/persistent-volume-claim.d.ts.map +1 -1
- package/dist/factories/simple/storage/persistent-volume-claim.js +1 -0
- package/dist/factories/simple/storage/persistent-volume-claim.js.map +1 -1
- package/dist/factories/simple/types.d.ts +5 -1
- package/dist/factories/simple/types.d.ts.map +1 -1
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +67 -0
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/type-guards.d.ts +5 -0
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/dist/utils/type-guards.js +9 -3
- package/dist/utils/type-guards.js.map +1 -1
- package/package.json +49 -5
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { createCompositionContext, getCurrentCompositionContext, runWithCompositionContext, } from '../../factories/shared.js';
|
|
10
10
|
import { CompositionDebugger, CompositionExecutionError } from '../errors.js';
|
|
11
|
+
import { CALLABLE_COMPOSITION_BRAND, KUBERNETES_REF_BRAND, NESTED_COMPOSITION_BRAND, } from '../constants/brands.js';
|
|
11
12
|
import { toResourceGraph } from '../serialization/core.js';
|
|
12
13
|
/**
|
|
13
14
|
* Enable debug mode for composition execution
|
|
@@ -46,7 +47,8 @@ function executeNestedComposition(definition, compositionFn, options, parentCont
|
|
|
46
47
|
const nestedContext = createCompositionContext(uniqueNestedName);
|
|
47
48
|
// Execute the nested composition in its own context
|
|
48
49
|
const nestedResult = runWithCompositionContext(nestedContext, () => {
|
|
49
|
-
return executeCompositionCore(definition, compositionFn, options, nestedContext, uniqueNestedName
|
|
50
|
+
return executeCompositionCore(definition, compositionFn, options, nestedContext, uniqueNestedName, undefined // No actual spec available in nested compositions
|
|
51
|
+
);
|
|
50
52
|
});
|
|
51
53
|
// Merge the nested composition's resources and closures into the parent context
|
|
52
54
|
// Use unique identifiers to avoid conflicts across composition boundaries
|
|
@@ -98,15 +100,184 @@ function generateUniqueClosureId(compositionName, closureId, parentContext) {
|
|
|
98
100
|
}
|
|
99
101
|
return uniqueId;
|
|
100
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* Execute a nested composition with a specific spec (when called as a function)
|
|
105
|
+
*/
|
|
106
|
+
function executeNestedCompositionWithSpec(definition, compositionFn, options, parentContext, spec, compositionName) {
|
|
107
|
+
CompositionDebugger.log('NESTED_COMPOSITION', `Executing nested composition with spec: ${compositionName}`);
|
|
108
|
+
// Create a unique context for this nested composition execution
|
|
109
|
+
const uniqueExecutionName = `${compositionName}-execution-${++globalCompositionCounter}`;
|
|
110
|
+
const executionContext = createCompositionContext(uniqueExecutionName);
|
|
111
|
+
// Execute the composition with the provided spec
|
|
112
|
+
const result = runWithCompositionContext(executionContext, () => {
|
|
113
|
+
return executeCompositionCore(definition, compositionFn, options, executionContext, uniqueExecutionName, spec // Pass the actual spec
|
|
114
|
+
);
|
|
115
|
+
});
|
|
116
|
+
// Get the instance number for this composition call
|
|
117
|
+
const instanceNumber = ++parentContext.compositionInstanceCounter;
|
|
118
|
+
// For composition names ending with '-composition', use the base name for resource IDs
|
|
119
|
+
// This enables variable name mapping like worker1, worker2, etc.
|
|
120
|
+
let baseName = compositionName;
|
|
121
|
+
if (baseName.endsWith('-composition')) {
|
|
122
|
+
baseName = baseName.slice(0, -'-composition'.length);
|
|
123
|
+
}
|
|
124
|
+
const baseId = `${baseName}${instanceNumber}`;
|
|
125
|
+
// Determine if this composition has a single resource
|
|
126
|
+
const resourceCount = Object.keys(executionContext.resources).length;
|
|
127
|
+
// Merge the executed composition's resources into the parent context
|
|
128
|
+
for (const [resourceId, resource] of Object.entries(executionContext.resources)) {
|
|
129
|
+
// For single-resource compositions, use baseId as the resource ID
|
|
130
|
+
// For multi-resource compositions, use baseId-resourceId
|
|
131
|
+
const uniqueId = resourceCount === 1 ? baseId : `${baseId}-${resourceId}`;
|
|
132
|
+
parentContext.addResource(uniqueId, resource);
|
|
133
|
+
}
|
|
134
|
+
for (const [closureId, closure] of Object.entries(executionContext.closures)) {
|
|
135
|
+
const uniqueId = generateUniqueClosureId(compositionName, closureId, parentContext);
|
|
136
|
+
parentContext.addClosure(uniqueId, closure);
|
|
137
|
+
}
|
|
138
|
+
CompositionDebugger.log('NESTED_COMPOSITION', `Executed nested composition ${compositionName} with ${Object.keys(executionContext.resources).length} resources and ${Object.keys(executionContext.closures).length} closures`);
|
|
139
|
+
// Create a NestedCompositionResource to return
|
|
140
|
+
// This is what enables: const db = databaseComposition({ name: 'mydb' }); db.spec; db.status.ready
|
|
141
|
+
const nestedCompositionResource = {
|
|
142
|
+
[NESTED_COMPOSITION_BRAND]: true,
|
|
143
|
+
spec,
|
|
144
|
+
status: createStatusProxy(baseId, parentContext, result),
|
|
145
|
+
__compositionId: uniqueExecutionName,
|
|
146
|
+
__resources: result.resources,
|
|
147
|
+
};
|
|
148
|
+
return nestedCompositionResource;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Create a status proxy for cross-composition references
|
|
152
|
+
* @param compositionName - Name of the composition
|
|
153
|
+
* @param parentContext - Parent composition context (if nested)
|
|
154
|
+
* @param nestedResult - The result of executing the nested composition
|
|
155
|
+
* @param forCompositionProperty - If true, create KubernetesRef proxy for composition.status; if false, create for call result
|
|
156
|
+
*/
|
|
157
|
+
function createStatusProxy(compositionName, parentContext, nestedResult, forCompositionProperty = false) {
|
|
158
|
+
// For CallableComposition.status property, always return KubernetesRef-based proxy
|
|
159
|
+
// This enables cross-composition references like: const ready = otherComposition.status.ready
|
|
160
|
+
if (forCompositionProperty) {
|
|
161
|
+
const resourceId = compositionName;
|
|
162
|
+
function createRecursiveProxy(basePath) {
|
|
163
|
+
const baseObj = {
|
|
164
|
+
[KUBERNETES_REF_BRAND]: true,
|
|
165
|
+
resourceId,
|
|
166
|
+
fieldPath: basePath,
|
|
167
|
+
__nestedComposition: true,
|
|
168
|
+
};
|
|
169
|
+
return new Proxy(baseObj, {
|
|
170
|
+
get(target, prop) {
|
|
171
|
+
if (prop in target) {
|
|
172
|
+
return target[prop];
|
|
173
|
+
}
|
|
174
|
+
if (typeof prop === 'string') {
|
|
175
|
+
const fullPath = basePath ? `${basePath}.${prop}` : prop;
|
|
176
|
+
return createRecursiveProxy(fullPath);
|
|
177
|
+
}
|
|
178
|
+
return undefined;
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
return createRecursiveProxy('status');
|
|
183
|
+
}
|
|
184
|
+
// For nested composition call results within a parent context,
|
|
185
|
+
// create a recursive proxy that returns KubernetesRef objects
|
|
186
|
+
// This enables deep property access like nested.status.metadata.name
|
|
187
|
+
if (parentContext) {
|
|
188
|
+
const resourceId = compositionName;
|
|
189
|
+
function createRecursiveProxy(basePath) {
|
|
190
|
+
const baseObj = {
|
|
191
|
+
[KUBERNETES_REF_BRAND]: true,
|
|
192
|
+
resourceId,
|
|
193
|
+
fieldPath: basePath,
|
|
194
|
+
__nestedComposition: true,
|
|
195
|
+
};
|
|
196
|
+
return new Proxy(baseObj, {
|
|
197
|
+
get(target, prop) {
|
|
198
|
+
if (prop in target) {
|
|
199
|
+
return target[prop];
|
|
200
|
+
}
|
|
201
|
+
if (typeof prop === 'string') {
|
|
202
|
+
const fullPath = basePath ? `${basePath}.${prop}` : prop;
|
|
203
|
+
return createRecursiveProxy(fullPath);
|
|
204
|
+
}
|
|
205
|
+
return undefined;
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
return createRecursiveProxy('status');
|
|
210
|
+
}
|
|
211
|
+
// For top-level composition calls (no parent context),
|
|
212
|
+
// create a proxy that returns KubernetesRef objects
|
|
213
|
+
const resourceId = `${compositionName}-status`;
|
|
214
|
+
function createRecursiveProxy(basePath) {
|
|
215
|
+
const baseObj = {
|
|
216
|
+
[KUBERNETES_REF_BRAND]: true,
|
|
217
|
+
resourceId,
|
|
218
|
+
fieldPath: basePath,
|
|
219
|
+
__nestedComposition: true,
|
|
220
|
+
};
|
|
221
|
+
return new Proxy(baseObj, {
|
|
222
|
+
get(target, prop) {
|
|
223
|
+
// Only return the actual KubernetesRef metadata properties
|
|
224
|
+
// Don't intercept other property accesses - let them create nested proxies
|
|
225
|
+
if (prop === KUBERNETES_REF_BRAND ||
|
|
226
|
+
prop === 'resourceId' ||
|
|
227
|
+
prop === 'fieldPath' ||
|
|
228
|
+
prop === '__nestedComposition') {
|
|
229
|
+
return target[prop];
|
|
230
|
+
}
|
|
231
|
+
// For any other string property, create a nested proxy to support deep access like status.metadata.name
|
|
232
|
+
if (typeof prop === 'string') {
|
|
233
|
+
const fullPath = basePath ? `${basePath}.${prop}` : prop;
|
|
234
|
+
return createRecursiveProxy(fullPath);
|
|
235
|
+
}
|
|
236
|
+
return undefined;
|
|
237
|
+
},
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
return createRecursiveProxy('');
|
|
241
|
+
}
|
|
101
242
|
/**
|
|
102
243
|
* Global composition counter for unique identifier generation
|
|
103
244
|
*/
|
|
104
245
|
let globalCompositionCounter = 0;
|
|
246
|
+
/**
|
|
247
|
+
* Creates a hybrid spec object that provides actual values for JavaScript logic
|
|
248
|
+
* while still generating CEL expressions when needed for serialization
|
|
249
|
+
*/
|
|
250
|
+
function _createHybridSpec(actualSpec, schemaProxy) {
|
|
251
|
+
// For primitive values, return the actual value directly
|
|
252
|
+
if (typeof actualSpec !== 'object' || actualSpec === null) {
|
|
253
|
+
return actualSpec;
|
|
254
|
+
}
|
|
255
|
+
// Create a proxy that intelligently returns actual values or proxy values
|
|
256
|
+
// based on the context of access
|
|
257
|
+
return new Proxy(actualSpec, {
|
|
258
|
+
get(target, prop) {
|
|
259
|
+
const actualValue = target[prop];
|
|
260
|
+
const proxyValue = schemaProxy[prop];
|
|
261
|
+
// For nested objects, create hybrid recursively
|
|
262
|
+
if (typeof actualValue === 'object' &&
|
|
263
|
+
actualValue !== null &&
|
|
264
|
+
typeof proxyValue === 'object') {
|
|
265
|
+
return _createHybridSpec(actualValue, proxyValue);
|
|
266
|
+
}
|
|
267
|
+
// Return actual values for JavaScript operations
|
|
268
|
+
// The serialization system will analyze the original composition function
|
|
269
|
+
// and generate CEL expressions from the schema proxy separately
|
|
270
|
+
return actualValue;
|
|
271
|
+
},
|
|
272
|
+
});
|
|
273
|
+
}
|
|
105
274
|
/**
|
|
106
275
|
* Core composition execution logic shared between nested and top-level compositions
|
|
107
276
|
*/
|
|
108
|
-
function executeCompositionCore(definition, compositionFn, options, context, compositionName) {
|
|
277
|
+
function executeCompositionCore(definition, compositionFn, options, context, compositionName, actualSpec) {
|
|
109
278
|
const startTime = Date.now();
|
|
279
|
+
// Declare capturedStatus here so it's accessible to both resource and status builders
|
|
280
|
+
let capturedStatus;
|
|
110
281
|
try {
|
|
111
282
|
CompositionDebugger.logCompositionStart(compositionName);
|
|
112
283
|
// Override addResource to include debug logging
|
|
@@ -117,19 +288,28 @@ function executeCompositionCore(definition, compositionFn, options, context, com
|
|
|
117
288
|
const resourceKind = resource?.kind || 'unknown';
|
|
118
289
|
CompositionDebugger.logResourceRegistration(id, resourceKind, 'factory-function');
|
|
119
290
|
};
|
|
120
|
-
|
|
121
|
-
let capturedStatus;
|
|
122
|
-
const resourceBuildStart = Date.now();
|
|
291
|
+
const _resourceBuildStart = Date.now();
|
|
123
292
|
const result = toResourceGraph(definition,
|
|
124
293
|
// Resource builder - execute composition to collect resources
|
|
125
294
|
(schema) => {
|
|
126
295
|
try {
|
|
127
296
|
CompositionDebugger.log('RESOURCE_BUILDING', 'Executing composition function');
|
|
297
|
+
// Override addResource to include debug logging
|
|
298
|
+
const originalAddResource = context.addResource;
|
|
299
|
+
context.addResource = function (id, resource) {
|
|
300
|
+
originalAddResource.call(this, id, resource);
|
|
301
|
+
// Log resource registration for debugging
|
|
302
|
+
const resourceKind = resource?.kind || 'unknown';
|
|
303
|
+
CompositionDebugger.logResourceRegistration(id, resourceKind, 'factory-function');
|
|
304
|
+
};
|
|
305
|
+
const resourceBuildStart = Date.now();
|
|
128
306
|
// Execute the composition function in a special context that preserves KubernetesRef objects
|
|
129
307
|
// This allows JavaScript expressions to be converted to CEL during serialization
|
|
130
308
|
globalThis.__TYPEKRO_STATUS_BUILDER_CONTEXT__ = true;
|
|
131
309
|
try {
|
|
132
|
-
|
|
310
|
+
// Use the actual spec directly when provided, otherwise use schema spec
|
|
311
|
+
const specToUse = actualSpec || schema.spec;
|
|
312
|
+
capturedStatus = compositionFn(specToUse);
|
|
133
313
|
// Store the original composition function for later analysis
|
|
134
314
|
// This allows the serialization system to analyze the original JavaScript expressions
|
|
135
315
|
capturedStatus.__originalCompositionFn = compositionFn;
|
|
@@ -184,6 +364,15 @@ function executeCompositionCore(definition, compositionFn, options, context, com
|
|
|
184
364
|
throw CompositionExecutionError.forStatusBuilding(compositionName, 'status-object', 'MagicAssignableShape<TStatus>', capturedStatus, error instanceof Error ? error : undefined);
|
|
185
365
|
}
|
|
186
366
|
}, options);
|
|
367
|
+
// For executed compositions (when called with a spec), replace the schema status with the executed status values
|
|
368
|
+
if (actualSpec !== undefined && capturedStatus) {
|
|
369
|
+
Object.defineProperty(result, 'status', {
|
|
370
|
+
value: capturedStatus,
|
|
371
|
+
enumerable: true,
|
|
372
|
+
configurable: true,
|
|
373
|
+
writable: true,
|
|
374
|
+
});
|
|
375
|
+
}
|
|
187
376
|
const endTime = Date.now();
|
|
188
377
|
const statusFields = capturedStatus ? Object.keys(capturedStatus) : [];
|
|
189
378
|
CompositionDebugger.logCompositionEnd(compositionName, Object.keys(context.resources).length + Object.keys(context.closures).length, statusFields);
|
|
@@ -192,6 +381,44 @@ function executeCompositionCore(definition, compositionFn, options, context, com
|
|
|
192
381
|
closureCount: Object.keys(context.closures).length,
|
|
193
382
|
statusFieldCount: statusFields.length,
|
|
194
383
|
});
|
|
384
|
+
// Store the composition function for potential re-execution with actual values
|
|
385
|
+
// Use Object.defineProperty to avoid readonly property issues
|
|
386
|
+
try {
|
|
387
|
+
Object.defineProperty(result, '_compositionFn', {
|
|
388
|
+
value: compositionFn,
|
|
389
|
+
writable: false,
|
|
390
|
+
enumerable: false,
|
|
391
|
+
configurable: true,
|
|
392
|
+
});
|
|
393
|
+
Object.defineProperty(result, '_definition', {
|
|
394
|
+
value: definition,
|
|
395
|
+
writable: false,
|
|
396
|
+
enumerable: false,
|
|
397
|
+
configurable: true,
|
|
398
|
+
});
|
|
399
|
+
Object.defineProperty(result, '_options', {
|
|
400
|
+
value: options || {},
|
|
401
|
+
writable: false,
|
|
402
|
+
enumerable: false,
|
|
403
|
+
configurable: true,
|
|
404
|
+
});
|
|
405
|
+
Object.defineProperty(result, '_context', {
|
|
406
|
+
value: context,
|
|
407
|
+
writable: false,
|
|
408
|
+
enumerable: false,
|
|
409
|
+
configurable: true,
|
|
410
|
+
});
|
|
411
|
+
Object.defineProperty(result, '_compositionName', {
|
|
412
|
+
value: compositionName,
|
|
413
|
+
writable: false,
|
|
414
|
+
enumerable: false,
|
|
415
|
+
configurable: true,
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
catch (error) {
|
|
419
|
+
// If we can't add properties to the result object, log a warning but continue
|
|
420
|
+
console.warn('Could not store composition function for re-execution:', error);
|
|
421
|
+
}
|
|
195
422
|
return result;
|
|
196
423
|
}
|
|
197
424
|
catch (error) {
|
|
@@ -220,13 +447,170 @@ export function kubernetesComposition(definition, compositionFn, options) {
|
|
|
220
447
|
const parentContext = getCurrentCompositionContext();
|
|
221
448
|
if (parentContext) {
|
|
222
449
|
// We're nested within another composition - merge our resources into the parent context
|
|
223
|
-
return
|
|
450
|
+
// and return a CallableComposition that can be called with a spec
|
|
451
|
+
const nestedResult = executeNestedComposition(definition, compositionFn, options, parentContext, compositionName);
|
|
452
|
+
// Create a callable composition that can be invoked with a spec
|
|
453
|
+
const callableComposition = ((spec) => {
|
|
454
|
+
// When called with a spec, execute the nested composition with that spec
|
|
455
|
+
return executeNestedCompositionWithSpec(definition, compositionFn, options, parentContext, spec, compositionName);
|
|
456
|
+
});
|
|
457
|
+
// Copy properties from the TypedResourceGraph to the callable composition
|
|
458
|
+
// Preserve original property descriptors to maintain non-writable metadata properties
|
|
459
|
+
// Use getOwnPropertyNames to include non-enumerable properties like _compositionFn
|
|
460
|
+
for (const key of Object.getOwnPropertyNames(nestedResult)) {
|
|
461
|
+
const descriptor = Object.getOwnPropertyDescriptor(nestedResult, key);
|
|
462
|
+
if (descriptor) {
|
|
463
|
+
Object.defineProperty(callableComposition, key, descriptor);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
// Add the status proxy for cross-composition references
|
|
467
|
+
// Use forCompositionProperty=true to get KubernetesRef-based proxy
|
|
468
|
+
Object.defineProperty(callableComposition, 'status', {
|
|
469
|
+
value: createStatusProxy(compositionName, parentContext, nestedResult, true),
|
|
470
|
+
enumerable: true,
|
|
471
|
+
configurable: false,
|
|
472
|
+
writable: false,
|
|
473
|
+
});
|
|
474
|
+
// Add the callable composition brand
|
|
475
|
+
Object.defineProperty(callableComposition, CALLABLE_COMPOSITION_BRAND, {
|
|
476
|
+
value: true,
|
|
477
|
+
enumerable: false,
|
|
478
|
+
configurable: false,
|
|
479
|
+
writable: false,
|
|
480
|
+
});
|
|
481
|
+
// Add toJSON to make the composition serializable
|
|
482
|
+
// Only include enumerable properties, not metadata like _compositionFn
|
|
483
|
+
Object.defineProperty(callableComposition, 'toJSON', {
|
|
484
|
+
value: function () {
|
|
485
|
+
const obj = {};
|
|
486
|
+
for (const key of Object.keys(this)) {
|
|
487
|
+
obj[key] = this[key];
|
|
488
|
+
}
|
|
489
|
+
return obj;
|
|
490
|
+
},
|
|
491
|
+
enumerable: false,
|
|
492
|
+
configurable: false,
|
|
493
|
+
writable: false,
|
|
494
|
+
});
|
|
495
|
+
return callableComposition;
|
|
224
496
|
}
|
|
225
|
-
// Execute the composition immediately and return
|
|
497
|
+
// Execute the composition immediately and return a CallableComposition
|
|
226
498
|
const uniqueCompositionName = `${compositionName}-${++globalCompositionCounter}`;
|
|
227
499
|
const context = createCompositionContext(uniqueCompositionName);
|
|
228
|
-
|
|
229
|
-
return executeCompositionCore(definition, compositionFn, options, context, uniqueCompositionName
|
|
500
|
+
const result = runWithCompositionContext(context, () => {
|
|
501
|
+
return executeCompositionCore(definition, compositionFn, options, context, uniqueCompositionName, undefined // No actual spec available during initial composition creation
|
|
502
|
+
);
|
|
503
|
+
});
|
|
504
|
+
// Create a callable composition that can be invoked with a spec
|
|
505
|
+
const callableComposition = ((spec) => {
|
|
506
|
+
// Check if we're being called inside another composition context
|
|
507
|
+
const currentParentContext = getCurrentCompositionContext();
|
|
508
|
+
if (currentParentContext) {
|
|
509
|
+
// We're being called inside another composition - merge resources into parent
|
|
510
|
+
// This ensures nested composition resources appear in parent YAML
|
|
511
|
+
return executeNestedCompositionWithSpec(definition, compositionFn, options, currentParentContext, spec, compositionName);
|
|
512
|
+
}
|
|
513
|
+
// Top-level call (no parent context) - execute in isolation
|
|
514
|
+
const callCompositionName = `${compositionName}-call-${++globalCompositionCounter}`;
|
|
515
|
+
const callContext = createCompositionContext(callCompositionName);
|
|
516
|
+
const callResult = runWithCompositionContext(callContext, () => {
|
|
517
|
+
return executeCompositionCore(definition, compositionFn, options, callContext, callCompositionName, spec);
|
|
518
|
+
});
|
|
519
|
+
// Return a NestedCompositionResource
|
|
520
|
+
// Use compositionName (not callCompositionName) for status resourceId
|
|
521
|
+
// This ensures ${nested-service.status.ready} instead of ${nested-service-call-18-status.ready}
|
|
522
|
+
return {
|
|
523
|
+
[NESTED_COMPOSITION_BRAND]: true,
|
|
524
|
+
spec,
|
|
525
|
+
status: createStatusProxy(compositionName, null, callResult),
|
|
526
|
+
__compositionId: callCompositionName,
|
|
527
|
+
__resources: callResult.resources,
|
|
528
|
+
};
|
|
529
|
+
}); // Type assertion to avoid complex typing
|
|
530
|
+
// Create a set to track explicitly deleted properties
|
|
531
|
+
const deletedProperties = new Set();
|
|
532
|
+
// Wrap the callable composition in a Proxy to preserve magic proxy behavior from result
|
|
533
|
+
// This enables resource access like: composition.deployment
|
|
534
|
+
const proxiedCallableComposition = new Proxy(callableComposition, {
|
|
535
|
+
get(target, prop, receiver) {
|
|
536
|
+
// If the property was explicitly deleted, return undefined
|
|
537
|
+
if (deletedProperties.has(prop)) {
|
|
538
|
+
return undefined;
|
|
539
|
+
}
|
|
540
|
+
// If the property exists on the function itself, return it
|
|
541
|
+
if (prop in target) {
|
|
542
|
+
return Reflect.get(target, prop, receiver);
|
|
543
|
+
}
|
|
544
|
+
// Delegate to the result's Proxy for unknown properties (resource access)
|
|
545
|
+
// The result is already a Proxy from toResourceGraph with magic resource access
|
|
546
|
+
return Reflect.get(result, prop, result);
|
|
547
|
+
},
|
|
548
|
+
// Handle property deletion to ensure deleted properties stay deleted
|
|
549
|
+
deleteProperty(target, prop) {
|
|
550
|
+
// Track that this property was deleted
|
|
551
|
+
deletedProperties.add(prop);
|
|
552
|
+
return Reflect.deleteProperty(target, prop);
|
|
553
|
+
},
|
|
554
|
+
// Ensure property enumeration includes both function properties and result properties
|
|
555
|
+
ownKeys(target) {
|
|
556
|
+
const targetKeys = Reflect.ownKeys(target);
|
|
557
|
+
const resultKeys = Reflect.ownKeys(result);
|
|
558
|
+
// Filter out deleted properties
|
|
559
|
+
return [...new Set([...targetKeys, ...resultKeys])].filter((key) => !deletedProperties.has(key));
|
|
560
|
+
},
|
|
561
|
+
// Ensure proper property descriptor handling
|
|
562
|
+
getOwnPropertyDescriptor(target, prop) {
|
|
563
|
+
// If the property was explicitly deleted, return undefined
|
|
564
|
+
if (deletedProperties.has(prop)) {
|
|
565
|
+
return undefined;
|
|
566
|
+
}
|
|
567
|
+
// Check function properties first
|
|
568
|
+
const targetDesc = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
569
|
+
if (targetDesc) {
|
|
570
|
+
return targetDesc;
|
|
571
|
+
}
|
|
572
|
+
// Fall back to result properties
|
|
573
|
+
return Reflect.getOwnPropertyDescriptor(result, prop);
|
|
574
|
+
},
|
|
575
|
+
});
|
|
576
|
+
// Copy properties from the TypedResourceGraph to the function
|
|
577
|
+
// Preserve original property descriptors to maintain non-writable metadata properties
|
|
578
|
+
// Use getOwnPropertyNames to include non-enumerable properties like _compositionFn
|
|
579
|
+
for (const key of Object.getOwnPropertyNames(result)) {
|
|
580
|
+
const descriptor = Object.getOwnPropertyDescriptor(result, key);
|
|
581
|
+
if (descriptor) {
|
|
582
|
+
Object.defineProperty(callableComposition, key, descriptor);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
// Add the status proxy for cross-composition references
|
|
586
|
+
// Use forCompositionProperty=true to get KubernetesRef-based proxy
|
|
587
|
+
Object.defineProperty(callableComposition, 'status', {
|
|
588
|
+
value: createStatusProxy(compositionName, null, result, true),
|
|
589
|
+
enumerable: true,
|
|
590
|
+
configurable: false,
|
|
591
|
+
writable: false,
|
|
592
|
+
});
|
|
593
|
+
// Add the callable composition brand
|
|
594
|
+
Object.defineProperty(callableComposition, CALLABLE_COMPOSITION_BRAND, {
|
|
595
|
+
value: true,
|
|
596
|
+
enumerable: false,
|
|
597
|
+
configurable: false,
|
|
598
|
+
writable: false,
|
|
599
|
+
});
|
|
600
|
+
// Add toJSON to make the composition serializable
|
|
601
|
+
// Only include enumerable properties, not metadata like _compositionFn
|
|
602
|
+
Object.defineProperty(callableComposition, 'toJSON', {
|
|
603
|
+
value: function () {
|
|
604
|
+
const obj = {};
|
|
605
|
+
for (const key of Object.keys(this)) {
|
|
606
|
+
obj[key] = this[key];
|
|
607
|
+
}
|
|
608
|
+
return obj;
|
|
609
|
+
},
|
|
610
|
+
enumerable: false,
|
|
611
|
+
configurable: false,
|
|
612
|
+
writable: false,
|
|
230
613
|
});
|
|
614
|
+
return proxiedCallableComposition;
|
|
231
615
|
}
|
|
232
616
|
//# sourceMappingURL=imperative.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imperative.js","sourceRoot":"","sources":["../../../src/core/composition/imperative.ts"],"names":[],"m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AO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EACzF,eAAe,EACf,eAAe,EACf,SAAS,EACT,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAC3C,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CAInC,UAAmD,EACnD,aAA6D,EAC7D,OAA8B;IAE9B,MAAM,eAAe,GAAG,UAAU,CAAC,IAAI,IAAI,qBAAqB,CAAC;IAEjE,iEAAiE;IACjE,MAAM,aAAa,GAAG,4BAA4B,EAAE,CAAC;IAErD,IAAI,aAAa,EAAE,CAAC;QAClB,wFAAwF;QACxF,OAAO,wBAAwB,CAC7B,UAAU,EACV,aAAa,EACb,OAAO,EACP,aAAa,EACb,eAAe,CAChB,CAAC;IACJ,CAAC;IAED,wEAAwE;IACxE,MAAM,qBAAqB,GAAG,GAAG,eAAe,IAAI,EAAE,wBAAwB,EAAE,CAAC;IACjF,MAAM,OAAO,GAAG,wBAAwB,CAAC,qBAAqB,CAAC,CAAC;IAChE,OAAO,yBAAyB,CAAC,OAAO,EAAE,GAAG,EAAE;QAC7C,OAAO,sBAAsB,CAC3B,UAAU,EACV,aAAa,EACb,OAAO,EACP,OAAO,EACP,qBAAqB,CACtB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
1
|
+
{"version":3,"file":"imperative.js","sourceRoot":"","sources":["../../../src/core/composition/imperative.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE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AC;YACf,MAAM,CAAC,cAAc,CAAC,mBAAmB,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;IAED,wDAAwD;IACxD,mEAAmE;IACnE,MAAM,CAAC,cAAc,CAAC,mBAAmB,EAAE,QAAQ,EAAE;QACnD,KAAK,EAAE,iBAAiB,CAAU,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC;QACtE,UAAU,EAAE,IAAI;QAChB,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,qCAAqC;IACrC,MAAM,CAAC,cAAc,CAAC,mBAAmB,EAAE,0BAA0B,EAAE;QACrE,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,kDAAkD;IAClD,uEAAuE;IACvE,MAAM,CAAC,cAAc,CAAC,mBAAmB,EAAE,QAAQ,EAAE;QACnD,KAAK,EAAE;YACL,MAAM,GAAG,GAAQ,EAAE,CAAC;YACpB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACpC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACvB,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC;QACD,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC,CAAC;IAEH,OAAO,0BAA0B,CAAC;AACpC,CAAC"}
|
|
@@ -27,13 +27,5 @@ import { type TypeKroRuntimeConfig } from './types.js';
|
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
export declare function typeKroRuntimeBootstrap(config?: TypeKroRuntimeConfig): import("../../types.js").
|
|
31
|
-
namespace: string;
|
|
32
|
-
}, {
|
|
33
|
-
phase: "Pending" | "Ready" | "Failed" | "Installing" | "Upgrading";
|
|
34
|
-
components: {
|
|
35
|
-
fluxSystem: boolean;
|
|
36
|
-
kroSystem: boolean;
|
|
37
|
-
};
|
|
38
|
-
}>;
|
|
30
|
+
export declare function typeKroRuntimeBootstrap(config?: TypeKroRuntimeConfig): import("../../types.js").CallableComposition<import("./types.js").TypeKroRuntimeSpecType, import("./types.js").TypeKroRuntimeStatusType>;
|
|
39
31
|
//# sourceMappingURL=typekro-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typekro-runtime.d.ts","sourceRoot":"","sources":["../../../../src/core/composition/typekro-runtime/typekro-runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typekro-runtime.d.ts","sourceRoot":"","sources":["../../../../src/core/composition/typekro-runtime/typekro-runtime.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,oBAAoB,EAA4C,MAAM,YAAY,CAAC;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,GAAE,oBAAyB,4IA+IxE"}
|