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.
Files changed (443) hide show
  1. package/README.md +142 -1054
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/alchemy/deployers.d.ts +0 -5
  4. package/dist/alchemy/deployers.d.ts.map +1 -1
  5. package/dist/alchemy/deployers.js +25 -72
  6. package/dist/alchemy/deployers.js.map +1 -1
  7. package/dist/core/composition/imperative.d.ts +2 -2
  8. package/dist/core/composition/imperative.d.ts.map +1 -1
  9. package/dist/core/composition/imperative.js +394 -10
  10. package/dist/core/composition/imperative.js.map +1 -1
  11. package/dist/core/composition/typekro-runtime/typekro-runtime.d.ts +1 -9
  12. package/dist/core/composition/typekro-runtime/typekro-runtime.d.ts.map +1 -1
  13. package/dist/core/composition/typekro-runtime/typekro-runtime.js +76 -10
  14. package/dist/core/composition/typekro-runtime/typekro-runtime.js.map +1 -1
  15. package/dist/core/composition/typekro-runtime/types.d.ts +8 -5
  16. package/dist/core/composition/typekro-runtime/types.d.ts.map +1 -1
  17. package/dist/core/composition/typekro-runtime/types.js.map +1 -1
  18. package/dist/core/constants/brands.d.ts +20 -0
  19. package/dist/core/constants/brands.d.ts.map +1 -1
  20. package/dist/core/constants/brands.js +20 -0
  21. package/dist/core/constants/brands.js.map +1 -1
  22. package/dist/core/deployment/direct-factory.d.ts +36 -1
  23. package/dist/core/deployment/direct-factory.d.ts.map +1 -1
  24. package/dist/core/deployment/direct-factory.js +289 -4
  25. package/dist/core/deployment/direct-factory.js.map +1 -1
  26. package/dist/core/deployment/engine.d.ts +57 -2
  27. package/dist/core/deployment/engine.d.ts.map +1 -1
  28. package/dist/core/deployment/engine.js +677 -49
  29. package/dist/core/deployment/engine.js.map +1 -1
  30. package/dist/core/deployment/event-filter.d.ts.map +1 -1
  31. package/dist/core/deployment/event-filter.js +6 -7
  32. package/dist/core/deployment/event-filter.js.map +1 -1
  33. package/dist/core/deployment/event-monitor.d.ts +36 -2
  34. package/dist/core/deployment/event-monitor.d.ts.map +1 -1
  35. package/dist/core/deployment/event-monitor.js +183 -33
  36. package/dist/core/deployment/event-monitor.js.map +1 -1
  37. package/dist/core/deployment/kro-factory.d.ts +22 -0
  38. package/dist/core/deployment/kro-factory.d.ts.map +1 -1
  39. package/dist/core/deployment/kro-factory.js +291 -27
  40. package/dist/core/deployment/kro-factory.js.map +1 -1
  41. package/dist/core/deployment/readiness.d.ts.map +1 -1
  42. package/dist/core/deployment/readiness.js +4 -2
  43. package/dist/core/deployment/readiness.js.map +1 -1
  44. package/dist/core/deployment/rollback-manager.d.ts +2 -1
  45. package/dist/core/deployment/rollback-manager.d.ts.map +1 -1
  46. package/dist/core/deployment/rollback-manager.js +5 -2
  47. package/dist/core/deployment/rollback-manager.js.map +1 -1
  48. package/dist/core/deployment/shared-utilities.js.map +1 -1
  49. package/dist/core/deployment/status-hydrator.d.ts +1 -1
  50. package/dist/core/deployment/status-hydrator.d.ts.map +1 -1
  51. package/dist/core/deployment/status-hydrator.js +8 -5
  52. package/dist/core/deployment/status-hydrator.js.map +1 -1
  53. package/dist/core/deployment/strategies/base-strategy.d.ts.map +1 -1
  54. package/dist/core/deployment/strategies/base-strategy.js +60 -21
  55. package/dist/core/deployment/strategies/base-strategy.js.map +1 -1
  56. package/dist/core/deployment/strategies/direct-strategy.d.ts +7 -0
  57. package/dist/core/deployment/strategies/direct-strategy.d.ts.map +1 -1
  58. package/dist/core/deployment/strategies/direct-strategy.js +50 -0
  59. package/dist/core/deployment/strategies/direct-strategy.js.map +1 -1
  60. package/dist/core/deployment/strategies/kro-strategy.d.ts +5 -0
  61. package/dist/core/deployment/strategies/kro-strategy.d.ts.map +1 -1
  62. package/dist/core/deployment/strategies/kro-strategy.js +53 -4
  63. package/dist/core/deployment/strategies/kro-strategy.js.map +1 -1
  64. package/dist/core/evaluation/cel-optimizer.d.ts.map +1 -1
  65. package/dist/core/evaluation/cel-optimizer.js +7 -13
  66. package/dist/core/evaluation/cel-optimizer.js.map +1 -1
  67. package/dist/core/expressions/analyzer.d.ts +6 -6
  68. package/dist/core/expressions/analyzer.d.ts.map +1 -1
  69. package/dist/core/expressions/analyzer.js +40 -75
  70. package/dist/core/expressions/analyzer.js.map +1 -1
  71. package/dist/core/expressions/cel-conversion-engine.d.ts.map +1 -1
  72. package/dist/core/expressions/cel-conversion-engine.js +10 -11
  73. package/dist/core/expressions/cel-conversion-engine.js.map +1 -1
  74. package/dist/core/expressions/composition-integration.d.ts +2 -2
  75. package/dist/core/expressions/composition-integration.d.ts.map +1 -1
  76. package/dist/core/expressions/composition-integration.js +20 -12
  77. package/dist/core/expressions/composition-integration.js.map +1 -1
  78. package/dist/core/expressions/field-hydration-processor.d.ts +4 -1
  79. package/dist/core/expressions/field-hydration-processor.d.ts.map +1 -1
  80. package/dist/core/expressions/field-hydration-processor.js +12 -13
  81. package/dist/core/expressions/field-hydration-processor.js.map +1 -1
  82. package/dist/core/expressions/imperative-analyzer.d.ts.map +1 -1
  83. package/dist/core/expressions/imperative-analyzer.js +193 -49
  84. package/dist/core/expressions/imperative-analyzer.js.map +1 -1
  85. package/dist/core/expressions/index.d.ts +2 -0
  86. package/dist/core/expressions/index.d.ts.map +1 -1
  87. package/dist/core/expressions/index.js +2 -0
  88. package/dist/core/expressions/index.js.map +1 -1
  89. package/dist/core/expressions/magic-proxy-analyzer.d.ts +1 -1
  90. package/dist/core/expressions/magic-proxy-analyzer.d.ts.map +1 -1
  91. package/dist/core/expressions/magic-proxy-analyzer.js +8 -7
  92. package/dist/core/expressions/magic-proxy-analyzer.js.map +1 -1
  93. package/dist/core/expressions/parser.d.ts +163 -0
  94. package/dist/core/expressions/parser.d.ts.map +1 -0
  95. package/dist/core/expressions/parser.js +272 -0
  96. package/dist/core/expressions/parser.js.map +1 -0
  97. package/dist/core/expressions/status-builder-analyzer.d.ts.map +1 -1
  98. package/dist/core/expressions/status-builder-analyzer.js +15 -5
  99. package/dist/core/expressions/status-builder-analyzer.js.map +1 -1
  100. package/dist/core/kubernetes/api.d.ts.map +1 -1
  101. package/dist/core/kubernetes/api.js +5 -6
  102. package/dist/core/kubernetes/api.js.map +1 -1
  103. package/dist/core/kubernetes/bun-api-client.d.ts +95 -0
  104. package/dist/core/kubernetes/bun-api-client.d.ts.map +1 -0
  105. package/dist/core/kubernetes/bun-api-client.js +160 -0
  106. package/dist/core/kubernetes/bun-api-client.js.map +1 -0
  107. package/dist/core/kubernetes/bun-http-library.d.ts +38 -0
  108. package/dist/core/kubernetes/bun-http-library.d.ts.map +1 -0
  109. package/dist/core/kubernetes/bun-http-library.js +133 -0
  110. package/dist/core/kubernetes/bun-http-library.js.map +1 -0
  111. package/dist/core/kubernetes/client-provider.d.ts +3 -0
  112. package/dist/core/kubernetes/client-provider.d.ts.map +1 -1
  113. package/dist/core/kubernetes/client-provider.js +32 -23
  114. package/dist/core/kubernetes/client-provider.js.map +1 -1
  115. package/dist/core/kubernetes/errors.d.ts +189 -0
  116. package/dist/core/kubernetes/errors.d.ts.map +1 -0
  117. package/dist/core/kubernetes/errors.js +298 -0
  118. package/dist/core/kubernetes/errors.js.map +1 -0
  119. package/dist/core/kubernetes/index.d.ts +19 -0
  120. package/dist/core/kubernetes/index.d.ts.map +1 -0
  121. package/dist/core/kubernetes/index.js +23 -0
  122. package/dist/core/kubernetes/index.js.map +1 -0
  123. package/dist/core/kubernetes/type-guards.d.ts +142 -0
  124. package/dist/core/kubernetes/type-guards.d.ts.map +1 -0
  125. package/dist/core/kubernetes/type-guards.js +151 -0
  126. package/dist/core/kubernetes/type-guards.js.map +1 -0
  127. package/dist/core/logging/logger.d.ts.map +1 -1
  128. package/dist/core/logging/logger.js +8 -0
  129. package/dist/core/logging/logger.js.map +1 -1
  130. package/dist/core/readiness/cluster-state.d.ts.map +1 -1
  131. package/dist/core/readiness/cluster-state.js +6 -4
  132. package/dist/core/readiness/cluster-state.js.map +1 -1
  133. package/dist/core/references/cel-evaluator.d.ts.map +1 -1
  134. package/dist/core/references/cel-evaluator.js +12 -2
  135. package/dist/core/references/cel-evaluator.js.map +1 -1
  136. package/dist/core/references/cel.d.ts +13 -1
  137. package/dist/core/references/cel.d.ts.map +1 -1
  138. package/dist/core/references/cel.js +50 -0
  139. package/dist/core/references/cel.js.map +1 -1
  140. package/dist/core/references/resolver.d.ts +28 -1
  141. package/dist/core/references/resolver.d.ts.map +1 -1
  142. package/dist/core/references/resolver.js +325 -11
  143. package/dist/core/references/resolver.js.map +1 -1
  144. package/dist/core/references/schema-proxy.d.ts.map +1 -1
  145. package/dist/core/references/schema-proxy.js +27 -13
  146. package/dist/core/references/schema-proxy.js.map +1 -1
  147. package/dist/core/scope/resolver.d.ts +16 -0
  148. package/dist/core/scope/resolver.d.ts.map +1 -0
  149. package/dist/core/scope/resolver.js +45 -0
  150. package/dist/core/scope/resolver.js.map +1 -0
  151. package/dist/core/serialization/core.d.ts +1 -1
  152. package/dist/core/serialization/core.d.ts.map +1 -1
  153. package/dist/core/serialization/core.js +78 -54
  154. package/dist/core/serialization/core.js.map +1 -1
  155. package/dist/core/types/common.d.ts +23 -1
  156. package/dist/core/types/common.d.ts.map +1 -1
  157. package/dist/core/types/deployment.d.ts +71 -1
  158. package/dist/core/types/deployment.d.ts.map +1 -1
  159. package/dist/core/types/deployment.js +24 -0
  160. package/dist/core/types/deployment.js.map +1 -1
  161. package/dist/core/types/factory-scope.d.ts +42 -0
  162. package/dist/core/types/factory-scope.d.ts.map +1 -0
  163. package/dist/core/types/factory-scope.js +14 -0
  164. package/dist/core/types/factory-scope.js.map +1 -0
  165. package/dist/core/types/kubernetes.d.ts +146 -4
  166. package/dist/core/types/kubernetes.d.ts.map +1 -1
  167. package/dist/core/types/references.d.ts +47 -3
  168. package/dist/core/types/references.d.ts.map +1 -1
  169. package/dist/core/types/references.js.map +1 -1
  170. package/dist/core/types/serialization.d.ts +17 -6
  171. package/dist/core/types/serialization.d.ts.map +1 -1
  172. package/dist/core/utils/crd-patcher.d.ts +30 -0
  173. package/dist/core/utils/crd-patcher.d.ts.map +1 -0
  174. package/dist/core/utils/crd-patcher.js +198 -0
  175. package/dist/core/utils/crd-patcher.js.map +1 -0
  176. package/dist/core/utils/crd-schema-fix.d.ts +108 -0
  177. package/dist/core/utils/crd-schema-fix.d.ts.map +1 -0
  178. package/dist/core/utils/crd-schema-fix.js +245 -0
  179. package/dist/core/utils/crd-schema-fix.js.map +1 -0
  180. package/dist/core/utils/index.d.ts +12 -0
  181. package/dist/core/utils/index.d.ts.map +1 -0
  182. package/dist/core/utils/index.js +12 -0
  183. package/dist/core/utils/index.js.map +1 -0
  184. package/dist/core/utils/minimal-connection-reset-suppression.d.ts +16 -0
  185. package/dist/core/utils/minimal-connection-reset-suppression.d.ts.map +1 -0
  186. package/dist/core/utils/minimal-connection-reset-suppression.js +72 -0
  187. package/dist/core/utils/minimal-connection-reset-suppression.js.map +1 -0
  188. package/dist/core/utils/output-filter.d.ts +16 -0
  189. package/dist/core/utils/output-filter.d.ts.map +1 -0
  190. package/dist/core/utils/output-filter.js +90 -0
  191. package/dist/core/utils/output-filter.js.map +1 -0
  192. package/dist/core/utils/scoped-error-suppression.d.ts +25 -0
  193. package/dist/core/utils/scoped-error-suppression.d.ts.map +1 -0
  194. package/dist/core/utils/scoped-error-suppression.js +226 -0
  195. package/dist/core/utils/scoped-error-suppression.js.map +1 -0
  196. package/dist/core/validation/cel-validator.d.ts.map +1 -1
  197. package/dist/core/validation/cel-validator.js +51 -15
  198. package/dist/core/validation/cel-validator.js.map +1 -1
  199. package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts +38 -0
  200. package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts.map +1 -0
  201. package/dist/factories/apisix/compositions/apisix-bootstrap.js +280 -0
  202. package/dist/factories/apisix/compositions/apisix-bootstrap.js.map +1 -0
  203. package/dist/factories/apisix/compositions/index.d.ts +5 -0
  204. package/dist/factories/apisix/compositions/index.d.ts.map +1 -0
  205. package/dist/factories/apisix/compositions/index.js +5 -0
  206. package/dist/factories/apisix/compositions/index.js.map +1 -0
  207. package/dist/factories/apisix/index.d.ts +11 -0
  208. package/dist/factories/apisix/index.d.ts.map +1 -0
  209. package/dist/factories/apisix/index.js +11 -0
  210. package/dist/factories/apisix/index.js.map +1 -0
  211. package/dist/factories/apisix/resources/helm.d.ts +59 -0
  212. package/dist/factories/apisix/resources/helm.d.ts.map +1 -0
  213. package/dist/factories/apisix/resources/helm.js +175 -0
  214. package/dist/factories/apisix/resources/helm.js.map +1 -0
  215. package/dist/factories/apisix/resources/index.d.ts +5 -0
  216. package/dist/factories/apisix/resources/index.d.ts.map +1 -0
  217. package/dist/factories/apisix/resources/index.js +5 -0
  218. package/dist/factories/apisix/resources/index.js.map +1 -0
  219. package/dist/factories/apisix/types.d.ts +339 -0
  220. package/dist/factories/apisix/types.d.ts.map +1 -0
  221. package/dist/factories/apisix/types.js +88 -0
  222. package/dist/factories/apisix/types.js.map +1 -0
  223. package/dist/factories/apisix/utils/helm-values-mapper.d.ts +19 -0
  224. package/dist/factories/apisix/utils/helm-values-mapper.d.ts.map +1 -0
  225. package/dist/factories/apisix/utils/helm-values-mapper.js +108 -0
  226. package/dist/factories/apisix/utils/helm-values-mapper.js.map +1 -0
  227. package/dist/factories/apisix/utils/index.d.ts +5 -0
  228. package/dist/factories/apisix/utils/index.d.ts.map +1 -0
  229. package/dist/factories/apisix/utils/index.js +5 -0
  230. package/dist/factories/apisix/utils/index.js.map +1 -0
  231. package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.d.ts +45 -0
  232. package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.d.ts.map +1 -0
  233. package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.js +323 -0
  234. package/dist/factories/cert-manager/compositions/cert-manager-bootstrap.js.map +1 -0
  235. package/dist/factories/cert-manager/compositions/index.d.ts +2 -0
  236. package/dist/factories/cert-manager/compositions/index.d.ts.map +1 -0
  237. package/dist/factories/cert-manager/compositions/index.js +2 -0
  238. package/dist/factories/cert-manager/compositions/index.js.map +1 -0
  239. package/dist/factories/cert-manager/index.d.ts +10 -0
  240. package/dist/factories/cert-manager/index.d.ts.map +1 -0
  241. package/dist/factories/cert-manager/index.js +19 -0
  242. package/dist/factories/cert-manager/index.js.map +1 -0
  243. package/dist/factories/cert-manager/resources/certificates.d.ts +39 -0
  244. package/dist/factories/cert-manager/resources/certificates.d.ts.map +1 -0
  245. package/dist/factories/cert-manager/resources/certificates.js +132 -0
  246. package/dist/factories/cert-manager/resources/certificates.js.map +1 -0
  247. package/dist/factories/cert-manager/resources/challenges.d.ts +113 -0
  248. package/dist/factories/cert-manager/resources/challenges.d.ts.map +1 -0
  249. package/dist/factories/cert-manager/resources/challenges.js +281 -0
  250. package/dist/factories/cert-manager/resources/challenges.js.map +1 -0
  251. package/dist/factories/cert-manager/resources/helm.d.ts +57 -0
  252. package/dist/factories/cert-manager/resources/helm.d.ts.map +1 -0
  253. package/dist/factories/cert-manager/resources/helm.js +390 -0
  254. package/dist/factories/cert-manager/resources/helm.js.map +1 -0
  255. package/dist/factories/cert-manager/resources/index.d.ts +5 -0
  256. package/dist/factories/cert-manager/resources/index.d.ts.map +1 -0
  257. package/dist/factories/cert-manager/resources/index.js +6 -0
  258. package/dist/factories/cert-manager/resources/index.js.map +1 -0
  259. package/dist/factories/cert-manager/resources/issuers.d.ts +79 -0
  260. package/dist/factories/cert-manager/resources/issuers.d.ts.map +1 -0
  261. package/dist/factories/cert-manager/resources/issuers.js +204 -0
  262. package/dist/factories/cert-manager/resources/issuers.js.map +1 -0
  263. package/dist/factories/cert-manager/types.d.ts +1015 -0
  264. package/dist/factories/cert-manager/types.d.ts.map +1 -0
  265. package/dist/factories/cert-manager/types.js +198 -0
  266. package/dist/factories/cert-manager/types.js.map +1 -0
  267. package/dist/factories/cert-manager/utils/helm-values-mapper.d.ts +19 -0
  268. package/dist/factories/cert-manager/utils/helm-values-mapper.d.ts.map +1 -0
  269. package/dist/factories/cert-manager/utils/helm-values-mapper.js +117 -0
  270. package/dist/factories/cert-manager/utils/helm-values-mapper.js.map +1 -0
  271. package/dist/factories/cert-manager/utils/index.d.ts +2 -0
  272. package/dist/factories/cert-manager/utils/index.d.ts.map +1 -0
  273. package/dist/factories/cert-manager/utils/index.js +2 -0
  274. package/dist/factories/cert-manager/utils/index.js.map +1 -0
  275. package/dist/factories/cilium/compositions/cilium-bootstrap.d.ts +220 -0
  276. package/dist/factories/cilium/compositions/cilium-bootstrap.d.ts.map +1 -0
  277. package/dist/factories/cilium/compositions/cilium-bootstrap.js +293 -0
  278. package/dist/factories/cilium/compositions/cilium-bootstrap.js.map +1 -0
  279. package/dist/factories/cilium/compositions/index.d.ts +8 -0
  280. package/dist/factories/cilium/compositions/index.d.ts.map +1 -0
  281. package/dist/factories/cilium/compositions/index.js +11 -0
  282. package/dist/factories/cilium/compositions/index.js.map +1 -0
  283. package/dist/factories/cilium/index.d.ts +10 -0
  284. package/dist/factories/cilium/index.d.ts.map +1 -0
  285. package/dist/factories/cilium/index.js +19 -0
  286. package/dist/factories/cilium/index.js.map +1 -0
  287. package/dist/factories/cilium/resources/bgp.d.ts +10 -0
  288. package/dist/factories/cilium/resources/bgp.d.ts.map +1 -0
  289. package/dist/factories/cilium/resources/bgp.js +14 -0
  290. package/dist/factories/cilium/resources/bgp.js.map +1 -0
  291. package/dist/factories/cilium/resources/gateway.d.ts +72 -0
  292. package/dist/factories/cilium/resources/gateway.d.ts.map +1 -0
  293. package/dist/factories/cilium/resources/gateway.js +118 -0
  294. package/dist/factories/cilium/resources/gateway.js.map +1 -0
  295. package/dist/factories/cilium/resources/helm.d.ts +93 -0
  296. package/dist/factories/cilium/resources/helm.d.ts.map +1 -0
  297. package/dist/factories/cilium/resources/helm.js +377 -0
  298. package/dist/factories/cilium/resources/helm.js.map +1 -0
  299. package/dist/factories/cilium/resources/index.d.ts +14 -0
  300. package/dist/factories/cilium/resources/index.d.ts.map +1 -0
  301. package/dist/factories/cilium/resources/index.js +35 -0
  302. package/dist/factories/cilium/resources/index.js.map +1 -0
  303. package/dist/factories/cilium/resources/load-balancer.d.ts +9 -0
  304. package/dist/factories/cilium/resources/load-balancer.d.ts.map +1 -0
  305. package/dist/factories/cilium/resources/load-balancer.js +12 -0
  306. package/dist/factories/cilium/resources/load-balancer.js.map +1 -0
  307. package/dist/factories/cilium/resources/networking.d.ts +202 -0
  308. package/dist/factories/cilium/resources/networking.d.ts.map +1 -0
  309. package/dist/factories/cilium/resources/networking.js +581 -0
  310. package/dist/factories/cilium/resources/networking.js.map +1 -0
  311. package/dist/factories/cilium/resources/observability.d.ts +9 -0
  312. package/dist/factories/cilium/resources/observability.d.ts.map +1 -0
  313. package/dist/factories/cilium/resources/observability.js +11 -0
  314. package/dist/factories/cilium/resources/observability.js.map +1 -0
  315. package/dist/factories/cilium/resources/security.d.ts +10 -0
  316. package/dist/factories/cilium/resources/security.d.ts.map +1 -0
  317. package/dist/factories/cilium/resources/security.js +14 -0
  318. package/dist/factories/cilium/resources/security.js.map +1 -0
  319. package/dist/factories/cilium/types.d.ts +1001 -0
  320. package/dist/factories/cilium/types.d.ts.map +1 -0
  321. package/dist/factories/cilium/types.js +79 -0
  322. package/dist/factories/cilium/types.js.map +1 -0
  323. package/dist/factories/external-dns/compositions/external-dns-bootstrap.d.ts +32 -0
  324. package/dist/factories/external-dns/compositions/external-dns-bootstrap.d.ts.map +1 -0
  325. package/dist/factories/external-dns/compositions/external-dns-bootstrap.js +152 -0
  326. package/dist/factories/external-dns/compositions/external-dns-bootstrap.js.map +1 -0
  327. package/dist/factories/external-dns/compositions/index.d.ts +2 -0
  328. package/dist/factories/external-dns/compositions/index.d.ts.map +1 -0
  329. package/dist/factories/external-dns/compositions/index.js +3 -0
  330. package/dist/factories/external-dns/compositions/index.js.map +1 -0
  331. package/dist/factories/external-dns/index.d.ts +10 -0
  332. package/dist/factories/external-dns/index.d.ts.map +1 -0
  333. package/dist/factories/external-dns/index.js +19 -0
  334. package/dist/factories/external-dns/index.js.map +1 -0
  335. package/dist/factories/external-dns/resources/dns-endpoint.d.ts +54 -0
  336. package/dist/factories/external-dns/resources/dns-endpoint.d.ts.map +1 -0
  337. package/dist/factories/external-dns/resources/dns-endpoint.js +53 -0
  338. package/dist/factories/external-dns/resources/dns-endpoint.js.map +1 -0
  339. package/dist/factories/external-dns/resources/helm.d.ts +57 -0
  340. package/dist/factories/external-dns/resources/helm.d.ts.map +1 -0
  341. package/dist/factories/external-dns/resources/helm.js +435 -0
  342. package/dist/factories/external-dns/resources/helm.js.map +1 -0
  343. package/dist/factories/external-dns/resources/index.d.ts +3 -0
  344. package/dist/factories/external-dns/resources/index.d.ts.map +1 -0
  345. package/dist/factories/external-dns/resources/index.js +4 -0
  346. package/dist/factories/external-dns/resources/index.js.map +1 -0
  347. package/dist/factories/external-dns/types.d.ts +180 -0
  348. package/dist/factories/external-dns/types.d.ts.map +1 -0
  349. package/dist/factories/external-dns/types.js +39 -0
  350. package/dist/factories/external-dns/types.js.map +1 -0
  351. package/dist/factories/flux/git-repository.d.ts +2 -2
  352. package/dist/factories/flux/git-repository.d.ts.map +1 -1
  353. package/dist/factories/helm/types.d.ts +24 -3
  354. package/dist/factories/helm/types.d.ts.map +1 -1
  355. package/dist/factories/index.d.ts +7 -1
  356. package/dist/factories/index.d.ts.map +1 -1
  357. package/dist/factories/index.js +21 -1
  358. package/dist/factories/index.js.map +1 -1
  359. package/dist/factories/kubernetes/config/config-map.d.ts +4 -1
  360. package/dist/factories/kubernetes/config/config-map.d.ts.map +1 -1
  361. package/dist/factories/kubernetes/config/config-map.js +4 -0
  362. package/dist/factories/kubernetes/config/config-map.js.map +1 -1
  363. package/dist/factories/kubernetes/config/secret.d.ts +6 -1
  364. package/dist/factories/kubernetes/config/secret.d.ts.map +1 -1
  365. package/dist/factories/kubernetes/config/secret.js +4 -0
  366. package/dist/factories/kubernetes/config/secret.js.map +1 -1
  367. package/dist/factories/kubernetes/networking/service.d.ts.map +1 -1
  368. package/dist/factories/kubernetes/networking/service.js +6 -1
  369. package/dist/factories/kubernetes/networking/service.js.map +1 -1
  370. package/dist/factories/kubernetes/rbac/cluster-role-binding.d.ts.map +1 -1
  371. package/dist/factories/kubernetes/rbac/cluster-role-binding.js +1 -1
  372. package/dist/factories/kubernetes/rbac/cluster-role-binding.js.map +1 -1
  373. package/dist/factories/kubernetes/rbac/cluster-role.d.ts.map +1 -1
  374. package/dist/factories/kubernetes/rbac/cluster-role.js +1 -1
  375. package/dist/factories/kubernetes/rbac/cluster-role.js.map +1 -1
  376. package/dist/factories/kubernetes/scheduling/priority-class.d.ts.map +1 -1
  377. package/dist/factories/kubernetes/scheduling/priority-class.js +1 -1
  378. package/dist/factories/kubernetes/scheduling/priority-class.js.map +1 -1
  379. package/dist/factories/kubernetes/storage/storage-class.d.ts.map +1 -1
  380. package/dist/factories/kubernetes/storage/storage-class.js +1 -1
  381. package/dist/factories/kubernetes/storage/storage-class.js.map +1 -1
  382. package/dist/factories/kubernetes/workloads/deployment.d.ts.map +1 -1
  383. package/dist/factories/kubernetes/workloads/deployment.js +9 -4
  384. package/dist/factories/kubernetes/workloads/deployment.js.map +1 -1
  385. package/dist/factories/kubernetes/yaml/yaml-directory.js +2 -2
  386. package/dist/factories/kubernetes/yaml/yaml-directory.js.map +1 -1
  387. package/dist/factories/kubernetes/yaml/yaml-file.d.ts +31 -1
  388. package/dist/factories/kubernetes/yaml/yaml-file.d.ts.map +1 -1
  389. package/dist/factories/kubernetes/yaml/yaml-file.js +80 -7
  390. package/dist/factories/kubernetes/yaml/yaml-file.js.map +1 -1
  391. package/dist/factories/pebble/compositions/index.d.ts +2 -0
  392. package/dist/factories/pebble/compositions/index.d.ts.map +1 -0
  393. package/dist/factories/pebble/compositions/index.js +3 -0
  394. package/dist/factories/pebble/compositions/index.js.map +1 -0
  395. package/dist/factories/pebble/compositions/pebble-bootstrap.d.ts +56 -0
  396. package/dist/factories/pebble/compositions/pebble-bootstrap.d.ts.map +1 -0
  397. package/dist/factories/pebble/compositions/pebble-bootstrap.js +97 -0
  398. package/dist/factories/pebble/compositions/pebble-bootstrap.js.map +1 -0
  399. package/dist/factories/pebble/index.d.ts +10 -0
  400. package/dist/factories/pebble/index.d.ts.map +1 -0
  401. package/dist/factories/pebble/index.js +19 -0
  402. package/dist/factories/pebble/index.js.map +1 -0
  403. package/dist/factories/pebble/resources/helm.d.ts +99 -0
  404. package/dist/factories/pebble/resources/helm.d.ts.map +1 -0
  405. package/dist/factories/pebble/resources/helm.js +167 -0
  406. package/dist/factories/pebble/resources/helm.js.map +1 -0
  407. package/dist/factories/pebble/resources/index.d.ts +2 -0
  408. package/dist/factories/pebble/resources/index.d.ts.map +1 -0
  409. package/dist/factories/pebble/resources/index.js +3 -0
  410. package/dist/factories/pebble/resources/index.js.map +1 -0
  411. package/dist/factories/pebble/types.d.ts +184 -0
  412. package/dist/factories/pebble/types.d.ts.map +1 -0
  413. package/dist/factories/pebble/types.js +23 -0
  414. package/dist/factories/pebble/types.js.map +1 -0
  415. package/dist/factories/pebble/utils/helm-values-mapper.d.ts +21 -0
  416. package/dist/factories/pebble/utils/helm-values-mapper.d.ts.map +1 -0
  417. package/dist/factories/pebble/utils/helm-values-mapper.js +96 -0
  418. package/dist/factories/pebble/utils/helm-values-mapper.js.map +1 -0
  419. package/dist/factories/shared.d.ts +18 -1
  420. package/dist/factories/shared.d.ts.map +1 -1
  421. package/dist/factories/shared.js +89 -8
  422. package/dist/factories/shared.js.map +1 -1
  423. package/dist/factories/simple/config/config-map.d.ts +7 -2
  424. package/dist/factories/simple/config/config-map.d.ts.map +1 -1
  425. package/dist/factories/simple/config/config-map.js +3 -0
  426. package/dist/factories/simple/config/config-map.js.map +1 -1
  427. package/dist/factories/simple/config/secret.d.ts +11 -2
  428. package/dist/factories/simple/config/secret.d.ts.map +1 -1
  429. package/dist/factories/simple/config/secret.js +23 -1
  430. package/dist/factories/simple/config/secret.js.map +1 -1
  431. package/dist/factories/simple/storage/persistent-volume-claim.d.ts.map +1 -1
  432. package/dist/factories/simple/storage/persistent-volume-claim.js +1 -0
  433. package/dist/factories/simple/storage/persistent-volume-claim.js.map +1 -1
  434. package/dist/factories/simple/types.d.ts +5 -1
  435. package/dist/factories/simple/types.d.ts.map +1 -1
  436. package/dist/utils/helpers.d.ts.map +1 -1
  437. package/dist/utils/helpers.js +67 -0
  438. package/dist/utils/helpers.js.map +1 -1
  439. package/dist/utils/type-guards.d.ts +5 -0
  440. package/dist/utils/type-guards.d.ts.map +1 -1
  441. package/dist/utils/type-guards.js +9 -3
  442. package/dist/utils/type-guards.js.map +1 -1
  443. 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
- // Execute the composition function once to collect both resources and status
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
- capturedStatus = compositionFn(schema.spec);
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 executeNestedComposition(definition, compositionFn, options, parentContext, compositionName);
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 the TypedResourceGraph
497
+ // Execute the composition immediately and return a CallableComposition
226
498
  const uniqueCompositionName = `${compositionName}-${++globalCompositionCounter}`;
227
499
  const context = createCompositionContext(uniqueCompositionName);
228
- return runWithCompositionContext(context, () => {
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":[],"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,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAW3D;;;GAGG;AACH,MAAM,UAAU,0BAA0B;IACxC,mBAAmB,CAAC,eAAe,EAAE,CAAC;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B;IACzC,mBAAmB,CAAC,gBAAgB,EAAE,CAAC;AACzC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,mBAAmB,CAAC,YAAY,EAAE,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB;IACvC,mBAAmB,CAAC,cAAc,EAAE,CAAC;AACvC,CAAC;AAED;;;GAGG;AACH,SAAS,wBAAwB,CAI/B,UAAmD,EACnD,aAA6D,EAC7D,OAAyC,EACzC,aAAiC,EACjC,eAAuB;IAEvB,mBAAmB,CAAC,GAAG,CAAC,oBAAoB,EAAE,iCAAiC,eAAe,EAAE,CAAC,CAAC;IAElG,+EAA+E;IAC/E,MAAM,gBAAgB,GAAG,GAAG,eAAe,IAAI,EAAE,wBAAwB,EAAE,CAAC;IAC5E,MAAM,aAAa,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;IAEjE,oDAAoD;IACpD,MAAM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,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;SAC9D,CAAC,CAAC;QAEH,IAAI,KAAK,YAAY,yBAAyB,EAAE,CAAC;YAC/C,MAAM,KAAK,CAAC;QACd,CAAC;QAED,MAAM,IAAI,yBAAyB,CACjC,iCAAiC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,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":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AChB,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").TypedResourceGraph<{
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":"AAKA,OAAO,EAAE,KAAK,oBAAoB,EAA4C,MAAM,YAAY,CAAC;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,GAAE,oBAAyB;;;;;;;;GAyExE"}
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"}