typekro 0.1.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -185
- package/README.md +581 -563
- package/dist/.tsbuildinfo +1 -1
- package/dist/alchemy/deployers.d.ts +1 -1
- package/dist/alchemy/deployers.d.ts.map +1 -1
- package/dist/alchemy/deployers.js +25 -20
- package/dist/alchemy/deployers.js.map +1 -1
- package/dist/alchemy/deployment.d.ts +3 -3
- package/dist/alchemy/deployment.d.ts.map +1 -1
- package/dist/alchemy/deployment.js +2 -2
- package/dist/alchemy/deployment.js.map +1 -1
- package/dist/alchemy/index.d.ts +4 -4
- package/dist/alchemy/index.d.ts.map +1 -1
- package/dist/alchemy/index.js +6 -6
- package/dist/alchemy/index.js.map +1 -1
- package/dist/alchemy/resolver.d.ts +3 -3
- package/dist/alchemy/resolver.d.ts.map +1 -1
- package/dist/alchemy/resolver.js +70 -17
- package/dist/alchemy/resolver.js.map +1 -1
- package/dist/alchemy/resource-registration.d.ts.map +1 -1
- package/dist/alchemy/resource-registration.js +3 -3
- package/dist/alchemy/resource-registration.js.map +1 -1
- package/dist/alchemy/type-inference.d.ts.map +1 -1
- package/dist/alchemy/type-inference.js.map +1 -1
- package/dist/alchemy/types.d.ts +2 -2
- package/dist/alchemy/types.d.ts.map +1 -1
- package/dist/alchemy/utilities.d.ts.map +1 -1
- package/dist/alchemy/utilities.js.map +1 -1
- package/dist/alchemy/wrapper.d.ts.map +1 -1
- package/dist/alchemy/wrapper.js +2 -2
- package/dist/alchemy/wrapper.js.map +1 -1
- package/dist/core/composition/composition.d.ts +1 -85
- package/dist/core/composition/composition.d.ts.map +1 -1
- package/dist/core/composition/composition.js +3 -214
- package/dist/core/composition/composition.js.map +1 -1
- package/dist/core/composition/imperative.d.ts +39 -0
- package/dist/core/composition/imperative.d.ts.map +1 -0
- package/dist/core/composition/imperative.js +219 -0
- package/dist/core/composition/imperative.js.map +1 -0
- package/dist/core/composition/index.d.ts +5 -3
- package/dist/core/composition/index.d.ts.map +1 -1
- package/dist/core/composition/index.js +4 -2
- package/dist/core/composition/index.js.map +1 -1
- package/dist/core/composition/typekro-runtime/index.d.ts +1 -1
- package/dist/core/composition/typekro-runtime/index.d.ts.map +1 -1
- package/dist/core/composition/typekro-runtime/typekro-runtime.d.ts.map +1 -1
- package/dist/core/composition/typekro-runtime/typekro-runtime.js +3 -3
- package/dist/core/composition/typekro-runtime/typekro-runtime.js.map +1 -1
- package/dist/core/composition/types.d.ts +0 -237
- package/dist/core/composition/types.d.ts.map +1 -1
- package/dist/core/composition/types.js +6 -0
- package/dist/core/composition/types.js.map +1 -1
- package/dist/core/constants/brands.d.ts.map +1 -1
- package/dist/core/constants/brands.js +3 -9
- package/dist/core/constants/brands.js.map +1 -1
- package/dist/core/dependencies/resolver.d.ts.map +1 -1
- package/dist/core/dependencies/resolver.js +3 -3
- package/dist/core/dependencies/resolver.js.map +1 -1
- package/dist/core/dependencies/type-guards.d.ts +3 -3
- package/dist/core/dependencies/type-guards.d.ts.map +1 -1
- package/dist/core/dependencies/type-guards.js +3 -3
- package/dist/core/dependencies/type-guards.js.map +1 -1
- package/dist/core/deployment/debug-logger.d.ts +119 -0
- package/dist/core/deployment/debug-logger.d.ts.map +1 -0
- package/dist/core/deployment/debug-logger.js +372 -0
- package/dist/core/deployment/debug-logger.js.map +1 -0
- package/dist/core/deployment/deployment-strategies.d.ts +1 -1
- package/dist/core/deployment/deployment-strategies.d.ts.map +1 -1
- package/dist/core/deployment/deployment-strategies.js +1 -1
- package/dist/core/deployment/deployment-strategies.js.map +1 -1
- package/dist/core/deployment/direct-factory.d.ts +11 -5
- package/dist/core/deployment/direct-factory.d.ts.map +1 -1
- package/dist/core/deployment/direct-factory.js +22 -12
- package/dist/core/deployment/direct-factory.js.map +1 -1
- package/dist/core/deployment/engine.d.ts +9 -6
- package/dist/core/deployment/engine.d.ts.map +1 -1
- package/dist/core/deployment/engine.js +184 -95
- package/dist/core/deployment/engine.js.map +1 -1
- package/dist/core/deployment/event-filter.d.ts +142 -0
- package/dist/core/deployment/event-filter.d.ts.map +1 -0
- package/dist/core/deployment/event-filter.js +420 -0
- package/dist/core/deployment/event-filter.js.map +1 -0
- package/dist/core/deployment/event-monitor.d.ts +197 -0
- package/dist/core/deployment/event-monitor.d.ts.map +1 -0
- package/dist/core/deployment/event-monitor.js +738 -0
- package/dist/core/deployment/event-monitor.js.map +1 -0
- package/dist/core/deployment/event-streamer.d.ts +112 -0
- package/dist/core/deployment/event-streamer.d.ts.map +1 -0
- package/dist/core/deployment/event-streamer.js +348 -0
- package/dist/core/deployment/event-streamer.js.map +1 -0
- package/dist/core/deployment/index.d.ts +5 -5
- package/dist/core/deployment/index.d.ts.map +1 -1
- package/dist/core/deployment/index.js +5 -5
- package/dist/core/deployment/index.js.map +1 -1
- package/dist/core/deployment/kro-factory.d.ts +2 -8
- package/dist/core/deployment/kro-factory.d.ts.map +1 -1
- package/dist/core/deployment/kro-factory.js +63 -109
- package/dist/core/deployment/kro-factory.js.map +1 -1
- package/dist/core/deployment/readiness.d.ts +6 -0
- package/dist/core/deployment/readiness.d.ts.map +1 -1
- package/dist/core/deployment/readiness.js +45 -1
- package/dist/core/deployment/readiness.js.map +1 -1
- package/dist/core/deployment/rollback-manager.d.ts.map +1 -1
- package/dist/core/deployment/rollback-manager.js +3 -3
- package/dist/core/deployment/rollback-manager.js.map +1 -1
- package/dist/core/deployment/shared-utilities.d.ts +1 -1
- package/dist/core/deployment/shared-utilities.d.ts.map +1 -1
- package/dist/core/deployment/shared-utilities.js +2 -0
- package/dist/core/deployment/shared-utilities.js.map +1 -1
- package/dist/core/deployment/status-hydrator.d.ts.map +1 -1
- package/dist/core/deployment/status-hydrator.js +31 -12
- package/dist/core/deployment/status-hydrator.js.map +1 -1
- package/dist/core/deployment/strategies/alchemy-strategy.d.ts +4 -4
- package/dist/core/deployment/strategies/alchemy-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/alchemy-strategy.js +9 -9
- package/dist/core/deployment/strategies/alchemy-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/base-strategy.d.ts +7 -4
- package/dist/core/deployment/strategies/base-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/base-strategy.js +257 -11
- package/dist/core/deployment/strategies/base-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.d.ts +4 -3
- package/dist/core/deployment/strategies/direct-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/direct-strategy.js +4 -4
- package/dist/core/deployment/strategies/direct-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/index.d.ts +1 -1
- package/dist/core/deployment/strategies/index.d.ts.map +1 -1
- package/dist/core/deployment/strategies/index.js +1 -1
- package/dist/core/deployment/strategies/index.js.map +1 -1
- package/dist/core/deployment/strategies/kro-strategy.d.ts +1 -1
- package/dist/core/deployment/strategies/kro-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/kro-strategy.js +14 -14
- package/dist/core/deployment/strategies/kro-strategy.js.map +1 -1
- package/dist/core/errors.d.ts +136 -0
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +362 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/evaluation/cel-optimizer.d.ts.map +1 -1
- package/dist/core/evaluation/cel-optimizer.js +33 -11
- package/dist/core/evaluation/cel-optimizer.js.map +1 -1
- package/dist/core/factory.d.ts.map +1 -1
- package/dist/core/factory.js.map +1 -1
- package/dist/core/kubernetes/api.d.ts +13 -2
- package/dist/core/kubernetes/api.d.ts.map +1 -1
- package/dist/core/kubernetes/api.js +21 -8
- package/dist/core/kubernetes/api.js.map +1 -1
- package/dist/core/kubernetes/client-provider.d.ts +192 -0
- package/dist/core/kubernetes/client-provider.d.ts.map +1 -1
- package/dist/core/kubernetes/client-provider.js +423 -22
- package/dist/core/kubernetes/client-provider.js.map +1 -1
- package/dist/core/logging/config.d.ts.map +1 -1
- package/dist/core/logging/config.js.map +1 -1
- package/dist/core/logging/index.d.ts +1 -1
- package/dist/core/logging/index.d.ts.map +1 -1
- package/dist/core/logging/index.js +1 -1
- package/dist/core/logging/index.js.map +1 -1
- package/dist/core/logging/logger.d.ts +1 -1
- package/dist/core/logging/logger.d.ts.map +1 -1
- 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 +12 -6
- package/dist/core/readiness/cluster-state.js.map +1 -1
- package/dist/core/references/cel-evaluator.js +1 -1
- package/dist/core/references/cel-evaluator.js.map +1 -1
- package/dist/core/references/cel.d.ts.map +1 -1
- package/dist/core/references/cel.js +1 -1
- package/dist/core/references/cel.js.map +1 -1
- package/dist/core/references/external-refs.d.ts +1 -1
- package/dist/core/references/external-refs.js +1 -1
- package/dist/core/references/index.d.ts +4 -4
- package/dist/core/references/index.d.ts.map +1 -1
- package/dist/core/references/index.js +6 -6
- package/dist/core/references/index.js.map +1 -1
- package/dist/core/references/resolver.d.ts +1 -1
- package/dist/core/references/resolver.d.ts.map +1 -1
- package/dist/core/references/resolver.js +69 -44
- 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 +2 -4
- package/dist/core/references/schema-proxy.js.map +1 -1
- 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 +122 -16
- package/dist/core/serialization/core.js.map +1 -1
- package/dist/core/serialization/schema.js +1 -1
- package/dist/core/serialization/schema.js.map +1 -1
- package/dist/core/serialization/validation.js +1 -1
- package/dist/core/serialization/validation.js.map +1 -1
- package/dist/core/serialization/yaml.js +1 -1
- package/dist/core/serialization/yaml.js.map +1 -1
- package/dist/core/types/common.d.ts.map +1 -1
- package/dist/core/types/deployment.d.ts +116 -3
- package/dist/core/types/deployment.d.ts.map +1 -1
- package/dist/core/types/deployment.js.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js.map +1 -1
- package/dist/core/types/kubernetes.d.ts.map +1 -1
- package/dist/core/types/serialization.d.ts +14 -3
- package/dist/core/types/serialization.d.ts.map +1 -1
- package/dist/core/validation/cel-validator.d.ts.map +1 -1
- package/dist/core/validation/cel-validator.js +28 -10
- package/dist/core/validation/cel-validator.js.map +1 -1
- package/dist/core/yaml/index.d.ts +1 -1
- package/dist/core/yaml/index.d.ts.map +1 -1
- package/dist/core/yaml/index.js +1 -1
- package/dist/core/yaml/index.js.map +1 -1
- package/dist/core/yaml/path-resolver.d.ts.map +1 -1
- package/dist/core/yaml/path-resolver.js +6 -6
- package/dist/core/yaml/path-resolver.js.map +1 -1
- package/dist/core.d.ts +10 -10
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +14 -14
- package/dist/core.js.map +1 -1
- 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/index.d.ts +1 -1
- package/dist/factories/flux/index.d.ts.map +1 -1
- package/dist/factories/flux/index.js.map +1 -1
- package/dist/factories/flux/kustomize/index.d.ts +1 -1
- package/dist/factories/flux/kustomize/index.d.ts.map +1 -1
- package/dist/factories/flux/kustomize/index.js.map +1 -1
- package/dist/factories/flux/kustomize/readiness-evaluators.d.ts.map +1 -1
- package/dist/factories/flux/kustomize/readiness-evaluators.js +9 -9
- package/dist/factories/flux/kustomize/readiness-evaluators.js.map +1 -1
- package/dist/factories/flux/kustomize/types.d.ts +1 -1
- package/dist/factories/flux/kustomize/types.d.ts.map +1 -1
- package/dist/factories/helm/helm-release.d.ts +7 -4
- package/dist/factories/helm/helm-release.d.ts.map +1 -1
- package/dist/factories/helm/helm-release.js +7 -4
- package/dist/factories/helm/helm-release.js.map +1 -1
- package/dist/factories/helm/helm-repository.d.ts.map +1 -1
- package/dist/factories/helm/helm-repository.js.map +1 -1
- package/dist/factories/helm/index.d.ts +1 -1
- package/dist/factories/helm/index.d.ts.map +1 -1
- package/dist/factories/helm/index.js +1 -1
- package/dist/factories/helm/index.js.map +1 -1
- package/dist/factories/helm/readiness-evaluators.d.ts.map +1 -1
- package/dist/factories/helm/readiness-evaluators.js +4 -2
- package/dist/factories/helm/readiness-evaluators.js.map +1 -1
- package/dist/factories/index.d.ts +6 -3
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +10 -6
- package/dist/factories/index.js.map +1 -1
- package/dist/factories/kro/index.d.ts +3 -3
- package/dist/factories/kro/index.d.ts.map +1 -1
- package/dist/factories/kro/index.js +2 -2
- package/dist/factories/kro/index.js.map +1 -1
- package/dist/factories/kro/kro-crd.d.ts.map +1 -1
- package/dist/factories/kro/kro-crd.js +5 -5
- package/dist/factories/kro/kro-crd.js.map +1 -1
- package/dist/factories/kro/kro-custom-resource.d.ts.map +1 -1
- package/dist/factories/kro/kro-custom-resource.js +21 -21
- package/dist/factories/kro/kro-custom-resource.js.map +1 -1
- package/dist/factories/kro/resource-graph-definition.d.ts.map +1 -1
- package/dist/factories/kro/resource-graph-definition.js +7 -7
- package/dist/factories/kro/resource-graph-definition.js.map +1 -1
- package/dist/factories/kubernetes/autoscaling/horizontal-pod-autoscaler-v1.d.ts.map +1 -1
- package/dist/factories/kubernetes/autoscaling/horizontal-pod-autoscaler-v1.js.map +1 -1
- package/dist/factories/kubernetes/autoscaling/horizontal-pod-autoscaler.js +2 -2
- package/dist/factories/kubernetes/certificates/certificate-signing-request.js +2 -2
- package/dist/factories/kubernetes/certificates/certificate-signing-request.js.map +1 -1
- package/dist/factories/kubernetes/config/config-map.js +1 -1
- package/dist/factories/kubernetes/config/config-map.js.map +1 -1
- package/dist/factories/kubernetes/config/secret.js +1 -1
- package/dist/factories/kubernetes/config/secret.js.map +1 -1
- package/dist/factories/kubernetes/core/component-status.js +1 -1
- package/dist/factories/kubernetes/core/component-status.js.map +1 -1
- package/dist/factories/kubernetes/core/node.js +1 -1
- package/dist/factories/kubernetes/core/node.js.map +1 -1
- package/dist/factories/kubernetes/core/pod.js +4 -4
- package/dist/factories/kubernetes/core/pod.js.map +1 -1
- package/dist/factories/kubernetes/extensions/custom-resource-definition.js +2 -2
- package/dist/factories/kubernetes/extensions/custom-resource-definition.js.map +1 -1
- package/dist/factories/kubernetes/index.d.ts +2 -2
- package/dist/factories/kubernetes/index.d.ts.map +1 -1
- package/dist/factories/kubernetes/index.js +8 -8
- package/dist/factories/kubernetes/index.js.map +1 -1
- package/dist/factories/kubernetes/networking/endpoints.d.ts.map +1 -1
- package/dist/factories/kubernetes/networking/endpoints.js +4 -4
- package/dist/factories/kubernetes/networking/endpoints.js.map +1 -1
- package/dist/factories/kubernetes/networking/ingress.js +2 -2
- package/dist/factories/kubernetes/networking/network-policy.js +2 -2
- package/dist/factories/kubernetes/networking/network-policy.js.map +1 -1
- package/dist/factories/kubernetes/networking/service.d.ts.map +1 -1
- package/dist/factories/kubernetes/networking/service.js +8 -7
- package/dist/factories/kubernetes/networking/service.js.map +1 -1
- package/dist/factories/kubernetes/policy/limit-range.js +2 -2
- package/dist/factories/kubernetes/policy/limit-range.js.map +1 -1
- package/dist/factories/kubernetes/policy/pod-disruption-budget.js +5 -5
- package/dist/factories/kubernetes/policy/resource-quota.js +4 -4
- package/dist/factories/kubernetes/rbac/cluster-role-binding.js +2 -2
- package/dist/factories/kubernetes/rbac/cluster-role-binding.js.map +1 -1
- package/dist/factories/kubernetes/rbac/cluster-role.js +2 -2
- package/dist/factories/kubernetes/rbac/cluster-role.js.map +1 -1
- package/dist/factories/kubernetes/rbac/role-binding.js +2 -2
- package/dist/factories/kubernetes/rbac/role-binding.js.map +1 -1
- package/dist/factories/kubernetes/rbac/role.js +2 -2
- package/dist/factories/kubernetes/rbac/role.js.map +1 -1
- package/dist/factories/kubernetes/rbac/service-account.js +2 -2
- package/dist/factories/kubernetes/rbac/service-account.js.map +1 -1
- package/dist/factories/kubernetes/storage/persistent-volume-claim.js +2 -2
- package/dist/factories/kubernetes/storage/persistent-volume.js +4 -4
- package/dist/factories/kubernetes/storage/storage-class.js +2 -2
- package/dist/factories/kubernetes/storage/storage-class.js.map +1 -1
- package/dist/factories/kubernetes/workloads/cron-job.js +5 -5
- package/dist/factories/kubernetes/workloads/daemon-set.js +2 -2
- package/dist/factories/kubernetes/workloads/deployment.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/deployment.js +5 -6
- package/dist/factories/kubernetes/workloads/deployment.js.map +1 -1
- package/dist/factories/kubernetes/workloads/job.js +10 -10
- package/dist/factories/kubernetes/workloads/replica-set.js +2 -2
- package/dist/factories/kubernetes/workloads/replication-controller.js +5 -5
- package/dist/factories/kubernetes/workloads/stateful-set.d.ts.map +1 -1
- package/dist/factories/kubernetes/workloads/stateful-set.js +7 -7
- package/dist/factories/kubernetes/workloads/stateful-set.js.map +1 -1
- package/dist/factories/kubernetes/yaml/index.d.ts +1 -1
- package/dist/factories/kubernetes/yaml/index.d.ts.map +1 -1
- package/dist/factories/kubernetes/yaml/index.js +1 -1
- package/dist/factories/kubernetes/yaml/index.js.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-directory.d.ts +2 -2
- package/dist/factories/kubernetes/yaml/yaml-directory.d.ts.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-directory.js +106 -101
- package/dist/factories/kubernetes/yaml/yaml-directory.js.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-file.d.ts +7 -4
- package/dist/factories/kubernetes/yaml/yaml-file.d.ts.map +1 -1
- package/dist/factories/kubernetes/yaml/yaml-file.js +110 -99
- package/dist/factories/kubernetes/yaml/yaml-file.js.map +1 -1
- package/dist/factories/shared.d.ts +49 -0
- package/dist/factories/shared.d.ts.map +1 -1
- package/dist/factories/shared.js +75 -3
- package/dist/factories/shared.js.map +1 -1
- package/dist/factories/simple/autoscaling/horizontal-pod-autoscaler.d.ts +17 -0
- package/dist/factories/simple/autoscaling/horizontal-pod-autoscaler.d.ts.map +1 -0
- package/dist/factories/simple/autoscaling/horizontal-pod-autoscaler.js +46 -0
- package/dist/factories/simple/autoscaling/horizontal-pod-autoscaler.js.map +1 -0
- package/dist/factories/simple/autoscaling/index.d.ts +8 -0
- package/dist/factories/simple/autoscaling/index.d.ts.map +1 -0
- package/dist/factories/simple/autoscaling/index.js +8 -0
- package/dist/factories/simple/autoscaling/index.js.map +1 -0
- package/dist/factories/simple/config/config-map.d.ts +17 -0
- package/dist/factories/simple/config/config-map.d.ts.map +1 -0
- package/dist/factories/simple/config/config-map.js +25 -0
- package/dist/factories/simple/config/config-map.js.map +1 -0
- package/dist/factories/simple/config/index.d.ts +9 -0
- package/dist/factories/simple/config/index.d.ts.map +1 -0
- package/dist/factories/simple/config/index.js +9 -0
- package/dist/factories/simple/config/index.js.map +1 -0
- package/dist/factories/simple/config/secret.d.ts +17 -0
- package/dist/factories/simple/config/secret.d.ts.map +1 -0
- package/dist/factories/simple/config/secret.js +24 -0
- package/dist/factories/simple/config/secret.js.map +1 -0
- package/dist/factories/simple/helm/index.d.ts +16 -0
- package/dist/factories/simple/helm/index.d.ts.map +1 -0
- package/dist/factories/simple/helm/index.js +21 -0
- package/dist/factories/simple/helm/index.js.map +1 -0
- package/dist/factories/simple/index.d.ts +50 -0
- package/dist/factories/simple/index.d.ts.map +1 -0
- package/dist/factories/simple/index.js +58 -0
- package/dist/factories/simple/index.js.map +1 -0
- package/dist/factories/simple/networking/index.d.ts +10 -0
- package/dist/factories/simple/networking/index.d.ts.map +1 -0
- package/dist/factories/simple/networking/index.js +10 -0
- package/dist/factories/simple/networking/index.js.map +1 -0
- package/dist/factories/simple/networking/ingress.d.ts +17 -0
- package/dist/factories/simple/networking/ingress.d.ts.map +1 -0
- package/dist/factories/simple/networking/ingress.js +30 -0
- package/dist/factories/simple/networking/ingress.js.map +1 -0
- package/dist/factories/simple/networking/network-policy.d.ts +17 -0
- package/dist/factories/simple/networking/network-policy.d.ts.map +1 -0
- package/dist/factories/simple/networking/network-policy.js +30 -0
- package/dist/factories/simple/networking/network-policy.js.map +1 -0
- package/dist/factories/simple/networking/service.d.ts +17 -0
- package/dist/factories/simple/networking/service.d.ts.map +1 -0
- package/dist/factories/simple/networking/service.js +27 -0
- package/dist/factories/simple/networking/service.js.map +1 -0
- package/dist/factories/simple/storage/index.d.ts +9 -0
- package/dist/factories/simple/storage/index.d.ts.map +1 -0
- package/dist/factories/simple/storage/index.js +9 -0
- package/dist/factories/simple/storage/index.js.map +1 -0
- package/dist/factories/simple/storage/persistent-volume-claim.d.ts +17 -0
- package/dist/factories/simple/storage/persistent-volume-claim.d.ts.map +1 -0
- package/dist/factories/simple/storage/persistent-volume-claim.js +32 -0
- package/dist/factories/simple/storage/persistent-volume-claim.js.map +1 -0
- package/dist/factories/simple/storage/persistent-volume.d.ts +17 -0
- package/dist/factories/simple/storage/persistent-volume.d.ts.map +1 -0
- package/dist/factories/simple/storage/persistent-volume.js +44 -0
- package/dist/factories/simple/storage/persistent-volume.js.map +1 -0
- package/dist/factories/simple/types.d.ts +165 -0
- package/dist/factories/simple/types.d.ts.map +1 -0
- package/dist/factories/simple/types.js +9 -0
- package/dist/factories/simple/types.js.map +1 -0
- package/dist/factories/simple/workloads/cron-job.d.ts +17 -0
- package/dist/factories/simple/workloads/cron-job.d.ts.map +1 -0
- package/dist/factories/simple/workloads/cron-job.js +43 -0
- package/dist/factories/simple/workloads/cron-job.js.map +1 -0
- package/dist/factories/simple/workloads/daemon-set.d.ts +17 -0
- package/dist/factories/simple/workloads/daemon-set.d.ts.map +1 -0
- package/dist/factories/simple/workloads/daemon-set.js +46 -0
- package/dist/factories/simple/workloads/daemon-set.js.map +1 -0
- package/dist/factories/simple/workloads/deployment.d.ts +17 -0
- package/dist/factories/simple/workloads/deployment.d.ts.map +1 -0
- package/dist/factories/simple/workloads/deployment.js +47 -0
- package/dist/factories/simple/workloads/deployment.js.map +1 -0
- package/dist/factories/simple/workloads/index.d.ts +12 -0
- package/dist/factories/simple/workloads/index.d.ts.map +1 -0
- package/dist/factories/simple/workloads/index.js +12 -0
- package/dist/factories/simple/workloads/index.js.map +1 -0
- package/dist/factories/simple/workloads/job.d.ts +17 -0
- package/dist/factories/simple/workloads/job.d.ts.map +1 -0
- package/dist/factories/simple/workloads/job.js +40 -0
- package/dist/factories/simple/workloads/job.js.map +1 -0
- package/dist/factories/simple/workloads/stateful-set.d.ts +17 -0
- package/dist/factories/simple/workloads/stateful-set.d.ts.map +1 -0
- package/dist/factories/simple/workloads/stateful-set.js +47 -0
- package/dist/factories/simple/workloads/stateful-set.js.map +1 -0
- package/dist/factories/simple/yaml/index.d.ts +13 -0
- package/dist/factories/simple/yaml/index.d.ts.map +1 -0
- package/dist/factories/simple/yaml/index.js +23 -0
- package/dist/factories/simple/yaml/index.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -22
- package/dist/index.js.map +1 -1
- package/dist/utils/helpers.d.ts +1 -1
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/utils/helpers.js +53 -7
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/type-guards.d.ts +1 -1
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/dist/utils/type-guards.js +3 -9
- package/dist/utils/type-guards.js.map +1 -1
- package/package.json +12 -6
package/dist/core/errors.d.ts
CHANGED
|
@@ -38,6 +38,86 @@ export declare function formatReferenceError(fromResourceId: string, toResourceI
|
|
|
38
38
|
* Format circular dependency errors with helpful context
|
|
39
39
|
*/
|
|
40
40
|
export declare function formatCircularDependencyError(cycle: string[]): CircularDependencyError;
|
|
41
|
+
/**
|
|
42
|
+
* Utility functions for detecting and reporting unsupported patterns in compositions
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* Debugging utilities for composition execution
|
|
46
|
+
*/
|
|
47
|
+
export declare class CompositionDebugger {
|
|
48
|
+
private static debugMode;
|
|
49
|
+
private static debugLog;
|
|
50
|
+
/**
|
|
51
|
+
* Enable debug mode for composition execution
|
|
52
|
+
*/
|
|
53
|
+
static enableDebugMode(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Disable debug mode
|
|
56
|
+
*/
|
|
57
|
+
static disableDebugMode(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Check if debug mode is enabled
|
|
60
|
+
*/
|
|
61
|
+
static isDebugEnabled(): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Add a debug log entry
|
|
64
|
+
*/
|
|
65
|
+
static log(phase: string, message: string, context?: Record<string, any>): void;
|
|
66
|
+
/**
|
|
67
|
+
* Get all debug logs
|
|
68
|
+
*/
|
|
69
|
+
static getDebugLogs(): string[];
|
|
70
|
+
/**
|
|
71
|
+
* Clear debug logs
|
|
72
|
+
*/
|
|
73
|
+
static clearDebugLogs(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Create a debug summary for composition execution
|
|
76
|
+
*/
|
|
77
|
+
static createDebugSummary(compositionName: string, resourceCount: number, executionTimeMs: number, statusFields: string[]): string;
|
|
78
|
+
/**
|
|
79
|
+
* Log resource registration
|
|
80
|
+
*/
|
|
81
|
+
static logResourceRegistration(resourceId: string, resourceKind: string, factoryName: string): void;
|
|
82
|
+
/**
|
|
83
|
+
* Log composition execution start
|
|
84
|
+
*/
|
|
85
|
+
static logCompositionStart(compositionName: string): void;
|
|
86
|
+
/**
|
|
87
|
+
* Log composition execution end
|
|
88
|
+
*/
|
|
89
|
+
static logCompositionEnd(compositionName: string, resourceCount: number, statusFields: string[]): void;
|
|
90
|
+
/**
|
|
91
|
+
* Log status object validation
|
|
92
|
+
*/
|
|
93
|
+
static logStatusValidation(compositionName: string, statusObject: any, validationResult: 'success' | 'failure', issues?: string[]): void;
|
|
94
|
+
/**
|
|
95
|
+
* Log performance metrics
|
|
96
|
+
*/
|
|
97
|
+
static logPerformanceMetrics(phase: string, startTime: number, endTime: number, additionalMetrics?: Record<string, any>): void;
|
|
98
|
+
}
|
|
99
|
+
export declare class UnsupportedPatternDetector {
|
|
100
|
+
/**
|
|
101
|
+
* Detect unsupported JavaScript patterns in status objects
|
|
102
|
+
*/
|
|
103
|
+
static detectUnsupportedStatusPatterns(statusObject: any, fieldPath?: string): string[];
|
|
104
|
+
/**
|
|
105
|
+
* Check if a value is a CEL expression
|
|
106
|
+
*/
|
|
107
|
+
private static isCelExpression;
|
|
108
|
+
/**
|
|
109
|
+
* Check if a value is a resource reference
|
|
110
|
+
*/
|
|
111
|
+
private static isResourceReference;
|
|
112
|
+
/**
|
|
113
|
+
* Generate suggestions for fixing unsupported patterns
|
|
114
|
+
*/
|
|
115
|
+
static generatePatternSuggestions(pattern: string): string[];
|
|
116
|
+
/**
|
|
117
|
+
* Create a comprehensive error for unsupported patterns
|
|
118
|
+
*/
|
|
119
|
+
static createUnsupportedPatternError(compositionName: string, statusObject: any): CompositionExecutionError | null;
|
|
120
|
+
}
|
|
41
121
|
/**
|
|
42
122
|
|
|
43
123
|
* Error thrown when ResourceGraphDefinition deployment fails
|
|
@@ -70,4 +150,60 @@ export declare class KroSchemaValidationError extends TypeKroError {
|
|
|
70
150
|
readonly suggestions?: string[] | undefined;
|
|
71
151
|
constructor(message: string, schemaType: 'spec' | 'status', fieldPath: string, expectedType: string, actualType: string, suggestions?: string[] | undefined);
|
|
72
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Error thrown when imperative composition execution fails
|
|
155
|
+
* Provides detailed context about which resource or phase caused the failure
|
|
156
|
+
*/
|
|
157
|
+
export declare class CompositionExecutionError extends TypeKroError {
|
|
158
|
+
readonly compositionName: string;
|
|
159
|
+
readonly phase: 'resource-creation' | 'status-building' | 'validation' | 'context-setup';
|
|
160
|
+
readonly resourceContext?: {
|
|
161
|
+
resourceId?: string;
|
|
162
|
+
resourceKind?: string;
|
|
163
|
+
factoryName?: string;
|
|
164
|
+
} | undefined;
|
|
165
|
+
readonly cause?: Error | undefined;
|
|
166
|
+
constructor(message: string, compositionName: string, phase: 'resource-creation' | 'status-building' | 'validation' | 'context-setup', resourceContext?: {
|
|
167
|
+
resourceId?: string;
|
|
168
|
+
resourceKind?: string;
|
|
169
|
+
factoryName?: string;
|
|
170
|
+
} | undefined, cause?: Error | undefined);
|
|
171
|
+
/**
|
|
172
|
+
* Create a composition error with resource context
|
|
173
|
+
*/
|
|
174
|
+
static withResourceContext(message: string, compositionName: string, phase: 'resource-creation' | 'status-building' | 'validation' | 'context-setup', resourceId: string, resourceKind: string, factoryName: string, cause?: Error): CompositionExecutionError;
|
|
175
|
+
/**
|
|
176
|
+
* Create a composition error for status building failures
|
|
177
|
+
*/
|
|
178
|
+
static forStatusBuilding(compositionName: string, fieldPath: string, expectedType: string, actualValue: unknown, cause?: Error): CompositionExecutionError;
|
|
179
|
+
/**
|
|
180
|
+
* Create a composition error for unsupported patterns
|
|
181
|
+
*/
|
|
182
|
+
static forUnsupportedPattern(compositionName: string, pattern: string, suggestions: string[]): CompositionExecutionError;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Error thrown when resource registration with composition context fails
|
|
186
|
+
* Provides detailed context about the registration failure and suggestions for resolution
|
|
187
|
+
*/
|
|
188
|
+
export declare class ContextRegistrationError extends TypeKroError {
|
|
189
|
+
readonly resourceId: string;
|
|
190
|
+
readonly resourceKind: string;
|
|
191
|
+
readonly factoryName: string;
|
|
192
|
+
readonly registrationPhase: 'id-generation' | 'context-storage' | 'duplicate-detection' | 'validation';
|
|
193
|
+
readonly suggestions?: string[] | undefined;
|
|
194
|
+
readonly cause?: Error | undefined;
|
|
195
|
+
constructor(message: string, resourceId: string, resourceKind: string, factoryName: string, registrationPhase: 'id-generation' | 'context-storage' | 'duplicate-detection' | 'validation', suggestions?: string[] | undefined, cause?: Error | undefined);
|
|
196
|
+
/**
|
|
197
|
+
* Create an error for duplicate resource registration
|
|
198
|
+
*/
|
|
199
|
+
static forDuplicateResource(resourceId: string, resourceKind: string, factoryName: string, existingFactoryName: string): ContextRegistrationError;
|
|
200
|
+
/**
|
|
201
|
+
* Create an error for context not available
|
|
202
|
+
*/
|
|
203
|
+
static forMissingContext(resourceId: string, resourceKind: string, factoryName: string): ContextRegistrationError;
|
|
204
|
+
/**
|
|
205
|
+
* Create an error for invalid resource ID generation
|
|
206
|
+
*/
|
|
207
|
+
static forInvalidResourceId(resourceId: string, resourceKind: string, factoryName: string, reason: string): ContextRegistrationError;
|
|
208
|
+
}
|
|
73
209
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,qBAAa,YAAa,SAAQ,KAAK;aAGnB,IAAI,EAAE,MAAM;aACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBAFjD,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAA;CAKpD;AAED,qBAAa,eAAgB,SAAQ,YAAY;aAG7B,YAAY,EAAE,MAAM;aACpB,YAAY,EAAE,MAAM;aACpB,KAAK,CAAC,EAAE,MAAM;aACd,WAAW,CAAC,EAAE,MAAM,EAAE;gBAJtC,OAAO,EAAE,MAAM,EACC,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,YAAA,EACd,WAAW,CAAC,EAAE,MAAM,EAAE,YAAA;CAUzC;AAED,qBAAa,qBAAsB,SAAQ,YAAY;aAGnC,YAAY,EAAE,MAAM;aACpB,UAAU,EAAE,MAAM;aAClB,SAAS,EAAE,MAAM;aACjB,WAAW,CAAC,EAAE,MAAM,EAAE;gBAJtC,OAAO,EAAE,MAAM,EACC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MA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AAyB,SAAQ,YAAY;aAGtC,UAAU,EAAE,MAAM;aAClB,YAAY,EAAE,MAAM;aACpB,WAAW,EAAE,MAAM;aACnB,iBAAiB,EAC7B,eAAe,GACf,iBAAiB,GACjB,qBAAqB,GACrB,YAAY;aACA,WAAW,CAAC,EAAE,MAAM,EAAE;aACtB,KAAK,CAAC,EAAE,KAAK;gBAV7B,OAAO,EAAE,MAAM,EACC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAC7B,eAAe,GACf,iBAAiB,GACjB,qBAAqB,GACrB,YAAY,EACA,WAAW,CAAC,EAAE,MAAM,EAAE,YAAA,EACtB,KAAK,CAAC,EAAE,KAAK,YAAA;IAc/B;;OAEG;IACH,MAAM,CAAC,oBAAoB,CACzB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,MAAM,GAC1B,wBAAwB;IAoB3B;;OAEG;IACH,MAAM,CAAC,iBAAiB,CACtB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,GAClB,wBAAwB;IAoB3B;;OAEG;IACH,MAAM,CAAC,oBAAoB,CACzB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,wBAAwB;CAmB5B"}
|
package/dist/core/errors.js
CHANGED
|
@@ -177,6 +177,254 @@ function levenshteinDistance(str1, str2) {
|
|
|
177
177
|
}
|
|
178
178
|
return matrix[str2.length]?.[str1.length];
|
|
179
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Utility functions for detecting and reporting unsupported patterns in compositions
|
|
182
|
+
*/
|
|
183
|
+
/**
|
|
184
|
+
* Debugging utilities for composition execution
|
|
185
|
+
*/
|
|
186
|
+
export class CompositionDebugger {
|
|
187
|
+
static debugMode = false;
|
|
188
|
+
static debugLog = [];
|
|
189
|
+
/**
|
|
190
|
+
* Enable debug mode for composition execution
|
|
191
|
+
*/
|
|
192
|
+
static enableDebugMode() {
|
|
193
|
+
CompositionDebugger.debugMode = true;
|
|
194
|
+
CompositionDebugger.debugLog = [];
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Disable debug mode
|
|
198
|
+
*/
|
|
199
|
+
static disableDebugMode() {
|
|
200
|
+
CompositionDebugger.debugMode = false;
|
|
201
|
+
CompositionDebugger.debugLog = [];
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Check if debug mode is enabled
|
|
205
|
+
*/
|
|
206
|
+
static isDebugEnabled() {
|
|
207
|
+
return CompositionDebugger.debugMode;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Add a debug log entry
|
|
211
|
+
*/
|
|
212
|
+
static log(phase, message, context) {
|
|
213
|
+
if (!CompositionDebugger.debugMode)
|
|
214
|
+
return;
|
|
215
|
+
const timestamp = new Date().toISOString();
|
|
216
|
+
const contextStr = context ? ` | Context: ${JSON.stringify(context)}` : '';
|
|
217
|
+
const logEntry = `[${timestamp}] ${phase}: ${message}${contextStr}`;
|
|
218
|
+
CompositionDebugger.debugLog.push(logEntry);
|
|
219
|
+
// Also log to console if in development
|
|
220
|
+
if (process.env.NODE_ENV === 'development') {
|
|
221
|
+
console.debug(`[TypeKro Composition] ${logEntry}`);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Get all debug logs
|
|
226
|
+
*/
|
|
227
|
+
static getDebugLogs() {
|
|
228
|
+
return [...CompositionDebugger.debugLog];
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Clear debug logs
|
|
232
|
+
*/
|
|
233
|
+
static clearDebugLogs() {
|
|
234
|
+
CompositionDebugger.debugLog = [];
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Create a debug summary for composition execution
|
|
238
|
+
*/
|
|
239
|
+
static createDebugSummary(compositionName, resourceCount, executionTimeMs, statusFields) {
|
|
240
|
+
const summary = [
|
|
241
|
+
`=== Composition Debug Summary ===`,
|
|
242
|
+
`Composition: ${compositionName}`,
|
|
243
|
+
`Execution Time: ${executionTimeMs}ms`,
|
|
244
|
+
`Resources Created: ${resourceCount}`,
|
|
245
|
+
`Status Fields: ${statusFields.join(', ')}`,
|
|
246
|
+
``,
|
|
247
|
+
`=== Debug Log ===`,
|
|
248
|
+
...CompositionDebugger.debugLog,
|
|
249
|
+
`=== End Debug Summary ===`,
|
|
250
|
+
];
|
|
251
|
+
return summary.join('\n');
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Log resource registration
|
|
255
|
+
*/
|
|
256
|
+
static logResourceRegistration(resourceId, resourceKind, factoryName) {
|
|
257
|
+
CompositionDebugger.log('RESOURCE_REGISTRATION', `Registered resource '${resourceId}'`, {
|
|
258
|
+
resourceKind,
|
|
259
|
+
factoryName,
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Log composition execution start
|
|
264
|
+
*/
|
|
265
|
+
static logCompositionStart(compositionName) {
|
|
266
|
+
CompositionDebugger.log('COMPOSITION_START', `Starting composition execution`, {
|
|
267
|
+
compositionName,
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Log composition execution end
|
|
272
|
+
*/
|
|
273
|
+
static logCompositionEnd(compositionName, resourceCount, statusFields) {
|
|
274
|
+
CompositionDebugger.log('COMPOSITION_END', `Completed composition execution`, {
|
|
275
|
+
compositionName,
|
|
276
|
+
resourceCount,
|
|
277
|
+
statusFields,
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Log status object validation
|
|
282
|
+
*/
|
|
283
|
+
static logStatusValidation(compositionName, statusObject, validationResult, issues) {
|
|
284
|
+
CompositionDebugger.log('STATUS_VALIDATION', `Status validation ${validationResult}`, {
|
|
285
|
+
compositionName,
|
|
286
|
+
statusObjectKeys: Object.keys(statusObject || {}),
|
|
287
|
+
issues,
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Log performance metrics
|
|
292
|
+
*/
|
|
293
|
+
static logPerformanceMetrics(phase, startTime, endTime, additionalMetrics) {
|
|
294
|
+
const duration = endTime - startTime;
|
|
295
|
+
CompositionDebugger.log('PERFORMANCE', `${phase} completed in ${duration}ms`, {
|
|
296
|
+
duration,
|
|
297
|
+
...additionalMetrics,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
export class UnsupportedPatternDetector {
|
|
302
|
+
/**
|
|
303
|
+
* Detect unsupported JavaScript patterns in status objects
|
|
304
|
+
*/
|
|
305
|
+
static detectUnsupportedStatusPatterns(statusObject, fieldPath = '') {
|
|
306
|
+
const issues = [];
|
|
307
|
+
if (typeof statusObject !== 'object' || statusObject === null) {
|
|
308
|
+
return issues;
|
|
309
|
+
}
|
|
310
|
+
for (const [key, value] of Object.entries(statusObject)) {
|
|
311
|
+
const currentPath = fieldPath ? `${fieldPath}.${key}` : key;
|
|
312
|
+
// Skip CEL expressions and resource references - these are valid
|
|
313
|
+
if (UnsupportedPatternDetector.isCelExpression(value) ||
|
|
314
|
+
UnsupportedPatternDetector.isResourceReference(value)) {
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
// Check for JavaScript-specific patterns that don't work in CEL
|
|
318
|
+
if (typeof value === 'string') {
|
|
319
|
+
// Template literals with JavaScript expressions (but not CEL templates)
|
|
320
|
+
if (value.includes('${') && !value.startsWith('${') && !value.endsWith('}')) {
|
|
321
|
+
issues.push(`Template literal with JavaScript expressions at '${currentPath}': ${value}`);
|
|
322
|
+
}
|
|
323
|
+
// String concatenation patterns
|
|
324
|
+
if (value.includes(' + ') || value.includes('` + `')) {
|
|
325
|
+
issues.push(`String concatenation at '${currentPath}': ${value}`);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
// Check for function calls (but not CEL expressions or resource references)
|
|
329
|
+
if (typeof value === 'function') {
|
|
330
|
+
issues.push(`Function at '${currentPath}': Functions are not supported in status objects`);
|
|
331
|
+
}
|
|
332
|
+
// Check for complex JavaScript expressions
|
|
333
|
+
if (typeof value === 'object' && value !== null) {
|
|
334
|
+
// Recursively check nested objects
|
|
335
|
+
issues.push(...UnsupportedPatternDetector.detectUnsupportedStatusPatterns(value, currentPath));
|
|
336
|
+
// Check for JavaScript-specific object patterns
|
|
337
|
+
if (Array.isArray(value)) {
|
|
338
|
+
// Check for array methods like .map, .filter, etc.
|
|
339
|
+
const stringified = JSON.stringify(value);
|
|
340
|
+
if (stringified.includes('.map(') ||
|
|
341
|
+
stringified.includes('.filter(') ||
|
|
342
|
+
stringified.includes('.reduce(')) {
|
|
343
|
+
issues.push(`Array method calls at '${currentPath}': Use CEL expressions instead`);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return issues;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Check if a value is a CEL expression
|
|
352
|
+
*/
|
|
353
|
+
static isCelExpression(value) {
|
|
354
|
+
return value && typeof value === 'object' && value.__brand === 'CelExpression';
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Check if a value is a resource reference
|
|
358
|
+
*/
|
|
359
|
+
static isResourceReference(value) {
|
|
360
|
+
// Check for KubernetesRef brand
|
|
361
|
+
if (value && typeof value === 'object' && value.__brand === 'KubernetesRef') {
|
|
362
|
+
return true;
|
|
363
|
+
}
|
|
364
|
+
// Check for proxy objects that might be resource references
|
|
365
|
+
if (value &&
|
|
366
|
+
typeof value === 'object' &&
|
|
367
|
+
value.constructor &&
|
|
368
|
+
value.constructor.name === 'Object') {
|
|
369
|
+
// Check if it has resource reference properties
|
|
370
|
+
if (value.resourceId || value.fieldPath || value.__isProxy) {
|
|
371
|
+
return true;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
// Check for function proxies that represent resource references
|
|
375
|
+
if (typeof value === 'function' && value.__isResourceProxy) {
|
|
376
|
+
return true;
|
|
377
|
+
}
|
|
378
|
+
return false;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Generate suggestions for fixing unsupported patterns
|
|
382
|
+
*/
|
|
383
|
+
static generatePatternSuggestions(pattern) {
|
|
384
|
+
const suggestions = [];
|
|
385
|
+
if (pattern.includes('template literal')) {
|
|
386
|
+
suggestions.push('Use Cel.template() instead of JavaScript template literals');
|
|
387
|
+
suggestions.push('Example: Cel.template("https://%s", hostname) instead of `https://${hostname}`');
|
|
388
|
+
}
|
|
389
|
+
if (pattern.includes('string concatenation')) {
|
|
390
|
+
suggestions.push('Use Cel.expr() for string concatenation');
|
|
391
|
+
suggestions.push('Example: Cel.expr(prefix, " + ", suffix) instead of prefix + suffix');
|
|
392
|
+
}
|
|
393
|
+
if (pattern.includes('function')) {
|
|
394
|
+
suggestions.push('Functions are not supported in status objects');
|
|
395
|
+
suggestions.push('Use CEL expressions or move logic to the composition function');
|
|
396
|
+
}
|
|
397
|
+
if (pattern.includes('array method')) {
|
|
398
|
+
suggestions.push('Use CEL expressions for array operations');
|
|
399
|
+
suggestions.push('Example: Cel.expr(array, ".size()") instead of array.length');
|
|
400
|
+
}
|
|
401
|
+
if (pattern.includes('JavaScript expressions')) {
|
|
402
|
+
suggestions.push('Replace JavaScript expressions with CEL expressions');
|
|
403
|
+
suggestions.push('Use Cel.expr() for complex logic and Cel.template() for string formatting');
|
|
404
|
+
}
|
|
405
|
+
// General suggestions
|
|
406
|
+
suggestions.push('Refer to the CEL documentation for supported operations');
|
|
407
|
+
suggestions.push('Use literal values for simple cases, CEL expressions for complex logic');
|
|
408
|
+
return suggestions;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Create a comprehensive error for unsupported patterns
|
|
412
|
+
*/
|
|
413
|
+
static createUnsupportedPatternError(compositionName, statusObject) {
|
|
414
|
+
const issues = UnsupportedPatternDetector.detectUnsupportedStatusPatterns(statusObject);
|
|
415
|
+
if (issues.length === 0) {
|
|
416
|
+
return null;
|
|
417
|
+
}
|
|
418
|
+
const allSuggestions = new Set();
|
|
419
|
+
issues.forEach((issue) => {
|
|
420
|
+
UnsupportedPatternDetector.generatePatternSuggestions(issue).forEach((suggestion) => {
|
|
421
|
+
allSuggestions.add(suggestion);
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
const message = `Unsupported patterns detected in composition '${compositionName}':\n\n${issues.map((issue, i) => ` ${i + 1}. ${issue}`).join('\n')}`;
|
|
425
|
+
return CompositionExecutionError.forUnsupportedPattern(compositionName, message, Array.from(allSuggestions));
|
|
426
|
+
}
|
|
427
|
+
}
|
|
180
428
|
/**
|
|
181
429
|
|
|
182
430
|
* Error thrown when ResourceGraphDefinition deployment fails
|
|
@@ -247,4 +495,118 @@ export class KroSchemaValidationError extends TypeKroError {
|
|
|
247
495
|
this.name = 'KroSchemaValidationError';
|
|
248
496
|
}
|
|
249
497
|
}
|
|
498
|
+
/**
|
|
499
|
+
* Error thrown when imperative composition execution fails
|
|
500
|
+
* Provides detailed context about which resource or phase caused the failure
|
|
501
|
+
*/
|
|
502
|
+
export class CompositionExecutionError extends TypeKroError {
|
|
503
|
+
compositionName;
|
|
504
|
+
phase;
|
|
505
|
+
resourceContext;
|
|
506
|
+
cause;
|
|
507
|
+
constructor(message, compositionName, phase, resourceContext, cause) {
|
|
508
|
+
super(message, 'COMPOSITION_EXECUTION_ERROR', {
|
|
509
|
+
compositionName,
|
|
510
|
+
phase,
|
|
511
|
+
resourceContext,
|
|
512
|
+
cause: cause?.message,
|
|
513
|
+
stack: cause?.stack,
|
|
514
|
+
});
|
|
515
|
+
this.compositionName = compositionName;
|
|
516
|
+
this.phase = phase;
|
|
517
|
+
this.resourceContext = resourceContext;
|
|
518
|
+
this.cause = cause;
|
|
519
|
+
this.name = 'CompositionExecutionError';
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Create a composition error with resource context
|
|
523
|
+
*/
|
|
524
|
+
static withResourceContext(message, compositionName, phase, resourceId, resourceKind, factoryName, cause) {
|
|
525
|
+
const contextualMessage = `${message}\n Resource: ${resourceId} (${resourceKind})\n Factory: ${factoryName}`;
|
|
526
|
+
return new CompositionExecutionError(contextualMessage, compositionName, phase, { resourceId, resourceKind, factoryName }, cause);
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Create a composition error for status building failures
|
|
530
|
+
*/
|
|
531
|
+
static forStatusBuilding(compositionName, fieldPath, expectedType, actualValue, cause) {
|
|
532
|
+
const message = `Status object validation failed in composition '${compositionName}' at field '${fieldPath}':\n Expected: ${expectedType}\n Received: ${typeof actualValue} (${JSON.stringify(actualValue)})`;
|
|
533
|
+
return new CompositionExecutionError(message, compositionName, 'status-building', undefined, cause);
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Create a composition error for unsupported patterns
|
|
537
|
+
*/
|
|
538
|
+
static forUnsupportedPattern(compositionName, pattern, suggestions) {
|
|
539
|
+
const message = `Unsupported pattern in composition '${compositionName}': ${pattern}\n\nSuggestions:\n${suggestions.map((s) => ` - ${s}`).join('\n')}`;
|
|
540
|
+
return new CompositionExecutionError(message, compositionName, 'validation');
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Error thrown when resource registration with composition context fails
|
|
545
|
+
* Provides detailed context about the registration failure and suggestions for resolution
|
|
546
|
+
*/
|
|
547
|
+
export class ContextRegistrationError extends TypeKroError {
|
|
548
|
+
resourceId;
|
|
549
|
+
resourceKind;
|
|
550
|
+
factoryName;
|
|
551
|
+
registrationPhase;
|
|
552
|
+
suggestions;
|
|
553
|
+
cause;
|
|
554
|
+
constructor(message, resourceId, resourceKind, factoryName, registrationPhase, suggestions, cause) {
|
|
555
|
+
super(message, 'CONTEXT_REGISTRATION_ERROR', {
|
|
556
|
+
resourceId,
|
|
557
|
+
resourceKind,
|
|
558
|
+
factoryName,
|
|
559
|
+
registrationPhase,
|
|
560
|
+
suggestions,
|
|
561
|
+
cause: cause?.message,
|
|
562
|
+
stack: cause?.stack,
|
|
563
|
+
});
|
|
564
|
+
this.resourceId = resourceId;
|
|
565
|
+
this.resourceKind = resourceKind;
|
|
566
|
+
this.factoryName = factoryName;
|
|
567
|
+
this.registrationPhase = registrationPhase;
|
|
568
|
+
this.suggestions = suggestions;
|
|
569
|
+
this.cause = cause;
|
|
570
|
+
this.name = 'ContextRegistrationError';
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Create an error for duplicate resource registration
|
|
574
|
+
*/
|
|
575
|
+
static forDuplicateResource(resourceId, resourceKind, factoryName, existingFactoryName) {
|
|
576
|
+
const message = `Duplicate resource registration: Resource '${resourceId}' (${resourceKind}) is already registered.\n Original factory: ${existingFactoryName}\n Attempted factory: ${factoryName}`;
|
|
577
|
+
const suggestions = [
|
|
578
|
+
`Use a unique name for the ${resourceKind} resource`,
|
|
579
|
+
`Check if you're calling the same factory function multiple times`,
|
|
580
|
+
`Consider using different resource names or namespaces`,
|
|
581
|
+
`Use conditional logic to avoid creating duplicate resources`,
|
|
582
|
+
];
|
|
583
|
+
return new ContextRegistrationError(message, resourceId, resourceKind, factoryName, 'duplicate-detection', suggestions);
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Create an error for context not available
|
|
587
|
+
*/
|
|
588
|
+
static forMissingContext(resourceId, resourceKind, factoryName) {
|
|
589
|
+
const message = `Resource registration failed: No composition context available for resource '${resourceId}' (${resourceKind}).\n Factory: ${factoryName}`;
|
|
590
|
+
const suggestions = [
|
|
591
|
+
`Ensure the factory function is called within a kubernetesComposition() function`,
|
|
592
|
+
`Check that AsyncLocalStorage is properly configured`,
|
|
593
|
+
`Verify that the composition context is not being lost across async boundaries`,
|
|
594
|
+
`Consider using the factory function outside of composition if context is not needed`,
|
|
595
|
+
];
|
|
596
|
+
return new ContextRegistrationError(message, resourceId, resourceKind, factoryName, 'context-storage', suggestions);
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* Create an error for invalid resource ID generation
|
|
600
|
+
*/
|
|
601
|
+
static forInvalidResourceId(resourceId, resourceKind, factoryName, reason) {
|
|
602
|
+
const message = `Invalid resource ID generated: '${resourceId}' for ${resourceKind} resource.\n Factory: ${factoryName}\n Reason: ${reason}`;
|
|
603
|
+
const suggestions = [
|
|
604
|
+
`Provide a valid 'name' property in the factory function config`,
|
|
605
|
+
`Ensure resource names follow Kubernetes naming conventions`,
|
|
606
|
+
`Check that the name doesn't contain invalid characters`,
|
|
607
|
+
`Use alphanumeric characters and hyphens only`,
|
|
608
|
+
];
|
|
609
|
+
return new ContextRegistrationError(message, resourceId, resourceKind, factoryName, 'id-generation', suggestions);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
250
612
|
//# sourceMappingURL=errors.js.map
|
package/dist/core/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,OAAO,YAAa,SAAQ,KAAK;IAGnB;IACA;IAHlB,YACE,OAAe,EACC,IAAY,EACZ,OAAiC;QAEjD,KAAK,CAAC,OAAO,CAAC,CAAC;QAHC,SAAI,GAAJ,IAAI,CAAQ;QACZ,YAAO,GAAP,OAAO,CAA0B;QAGjD,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF;AAED,MAAM,OAAO,eAAgB,SAAQ,YAAY;IAG7B;IACA;IACA;IACA;IALlB,YACE,OAAe,EACC,YAAoB,EACpB,YAAoB,EACpB,KAAc,EACd,WAAsB;QAEtC,KAAK,CAAC,OAAO,EAAE,kBAAkB,EAAE;YACjC,YAAY;YACZ,YAAY;YACZ,KAAK;YACL,WAAW;SACZ,CAAC,CAAC;QAVa,iBAAY,GAAZ,YAAY,CAAQ;QACpB,iBAAY,GAAZ,YAAY,CAAQ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ACtB,UAAkB,EAClB,YAAoB,EACpB,WAAmB;QAEnB,MAAM,OAAO,GAAG,gFAAgF,UAAU,MAAM,YAAY,kBAAkB,WAAW,EAAE,CAAC;QAE5J,MAAM,WAAW,GAAG;YAClB,iFAAiF;YACjF,qDAAqD;YACrD,+EAA+E;YAC/E,qFAAqF;SACtF,CAAC;QAEF,OAAO,IAAI,wBAAwB,CACjC,OAAO,EACP,UAAU,EACV,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,WAAW,CACZ,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,oBAAoB,CACzB,UAAkB,EAClB,YAAoB,EACpB,WAAmB,EACnB,MAAc;QAEd,MAAM,OAAO,GAAG,mCAAmC,UAAU,SAAS,YAAY,0BAA0B,WAAW,eAAe,MAAM,EAAE,CAAC;QAE/I,MAAM,WAAW,GAAG;YAClB,gEAAgE;YAChE,4DAA4D;YAC5D,wDAAwD;YACxD,8CAA8C;SAC/C,CAAC;QAEF,OAAO,IAAI,wBAAwB,CACjC,OAAO,EACP,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,WAAW,CACZ,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cel-optimizer.d.ts","sourceRoot":"","sources":["../../../src/core/evaluation/cel-optimizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3,"file":"cel-optimizer.d.ts","sourceRoot":"","sources":["../../../src/core/evaluation/cel-optimizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAiB,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEpF,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAqED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,MAAM,EAC3C,OAAO,EAAE,iBAAiB,GACzB,gBAAgB,CAgElB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnC,OAAO,EAAE,iBAAiB,GACzB;IAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,aAAa,EAAE,MAAM,EAAE,CAAA;CAAE,CA6D5D"}
|