pepr 0.46.2 → 0.46.3

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 (286) hide show
  1. package/dist/cli/banner.d.ts.map +1 -0
  2. package/dist/cli/build.d.ts.map +1 -0
  3. package/dist/cli/build.helpers.d.ts.map +1 -0
  4. package/dist/cli/deploy.d.ts.map +1 -0
  5. package/dist/cli/dev.d.ts.map +1 -0
  6. package/dist/cli/format.d.ts.map +1 -0
  7. package/dist/cli/format.helpers.d.ts.map +1 -0
  8. package/dist/cli/init/enums.d.ts.map +1 -0
  9. package/dist/cli/init/index.d.ts.map +1 -0
  10. package/dist/{src/cli → cli}/init/templates.d.ts +2 -6
  11. package/dist/cli/init/templates.d.ts.map +1 -0
  12. package/dist/cli/init/utils.d.ts.map +1 -0
  13. package/dist/cli/init/walkthrough.d.ts.map +1 -0
  14. package/dist/cli/kfc.d.ts.map +1 -0
  15. package/dist/cli/monitor.d.ts.map +1 -0
  16. package/dist/cli/root.d.ts.map +1 -0
  17. package/dist/cli/types.d.ts.map +1 -0
  18. package/dist/cli/update.d.ts.map +1 -0
  19. package/dist/cli/uuid.d.ts.map +1 -0
  20. package/dist/cli.d.ts.map +1 -0
  21. package/dist/cli.js +79 -23
  22. package/dist/controller.js +1 -1
  23. package/dist/fixtures/loader.d.ts.map +1 -0
  24. package/dist/lib/assets/assets.d.ts.map +1 -0
  25. package/dist/lib/assets/defaultTestObjects.d.ts.map +1 -0
  26. package/dist/lib/assets/deploy.d.ts.map +1 -0
  27. package/dist/lib/assets/destroy.d.ts.map +1 -0
  28. package/dist/lib/assets/helm.d.ts.map +1 -0
  29. package/dist/lib/assets/index.d.ts.map +1 -0
  30. package/dist/lib/assets/loader.d.ts.map +1 -0
  31. package/dist/lib/assets/networking.d.ts.map +1 -0
  32. package/dist/lib/assets/pods.d.ts.map +1 -0
  33. package/dist/lib/assets/rbac.d.ts.map +1 -0
  34. package/dist/lib/assets/store.d.ts.map +1 -0
  35. package/dist/lib/assets/webhooks.d.ts.map +1 -0
  36. package/dist/lib/assets/yaml/generateAllYaml.d.ts.map +1 -0
  37. package/dist/lib/assets/yaml/generateZarfYaml.d.ts.map +1 -0
  38. package/dist/lib/assets/yaml/overridesFile.d.ts.map +1 -0
  39. package/dist/lib/common-types.d.ts.map +1 -0
  40. package/dist/lib/controller/index.d.ts.map +1 -0
  41. package/dist/lib/controller/index.util.d.ts.map +1 -0
  42. package/dist/lib/controller/store.d.ts.map +1 -0
  43. package/dist/lib/controller/storeCache.d.ts.map +1 -0
  44. package/dist/lib/core/capability.d.ts.map +1 -0
  45. package/dist/lib/core/envChecks.d.ts.map +1 -0
  46. package/dist/lib/core/module.d.ts.map +1 -0
  47. package/dist/lib/core/queue.d.ts.map +1 -0
  48. package/dist/lib/core/schedule.d.ts.map +1 -0
  49. package/dist/lib/core/storage.d.ts.map +1 -0
  50. package/dist/lib/deploymentChecks.d.ts.map +1 -0
  51. package/dist/lib/enums.d.ts.map +1 -0
  52. package/dist/lib/errors.d.ts.map +1 -0
  53. package/dist/lib/filesystemService.d.ts.map +1 -0
  54. package/dist/lib/filter/adjudicators/admissionRequest.d.ts.map +1 -0
  55. package/dist/lib/filter/adjudicators/binding.d.ts.map +1 -0
  56. package/dist/lib/filter/adjudicators/defaultTestObjects.d.ts.map +1 -0
  57. package/dist/lib/filter/adjudicators/kubernetesObject.d.ts.map +1 -0
  58. package/dist/lib/filter/adjudicators/mismatch.d.ts.map +1 -0
  59. package/dist/lib/filter/adjudicators/postCollection.d.ts.map +1 -0
  60. package/dist/lib/filter/filter.d.ts.map +1 -0
  61. package/dist/lib/finalizer.d.ts.map +1 -0
  62. package/dist/lib/helpers.d.ts.map +1 -0
  63. package/dist/lib/included-files.d.ts.map +1 -0
  64. package/dist/lib/k8s.d.ts.map +1 -0
  65. package/dist/lib/mutate-request.d.ts.map +1 -0
  66. package/dist/lib/processors/decode-utils.d.ts.map +1 -0
  67. package/dist/lib/processors/mutate-processor.d.ts.map +1 -0
  68. package/dist/lib/processors/validate-processor.d.ts.map +1 -0
  69. package/dist/lib/processors/watch-processor.d.ts.map +1 -0
  70. package/dist/lib/telemetry/logger.d.ts.map +1 -0
  71. package/dist/lib/telemetry/metrics.d.ts.map +1 -0
  72. package/dist/lib/telemetry/timeUtils.d.ts.map +1 -0
  73. package/dist/lib/telemetry/webhookTimeouts.d.ts.map +1 -0
  74. package/dist/lib/tls.d.ts.map +1 -0
  75. package/dist/lib/types.d.ts.map +1 -0
  76. package/dist/lib/utils.d.ts.map +1 -0
  77. package/dist/lib/validate-request.d.ts.map +1 -0
  78. package/dist/lib.d.ts.map +1 -0
  79. package/dist/lib.js +124 -38
  80. package/dist/lib.js.map +2 -2
  81. package/dist/{src/runtime → runtime}/controller.d.ts.map +1 -1
  82. package/dist/sdk/heredoc.d.ts.map +1 -0
  83. package/dist/sdk/sdk.d.ts.map +1 -0
  84. package/package.json +7 -12
  85. package/src/lib/assets/assets.ts +46 -11
  86. package/src/lib/assets/defaultTestObjects.ts +13 -2
  87. package/src/lib/assets/deploy.ts +25 -5
  88. package/src/lib/assets/index.ts +8 -2
  89. package/src/lib/assets/pods.ts +5 -1
  90. package/src/lib/assets/webhooks.ts +12 -3
  91. package/src/lib/assets/yaml/generateAllYaml.ts +12 -2
  92. package/src/lib/controller/index.ts +9 -3
  93. package/src/lib/core/capability.ts +32 -8
  94. package/src/lib/core/module.ts +5 -1
  95. package/src/lib/core/storage.ts +3 -1
  96. package/src/lib/deploymentChecks.ts +3 -1
  97. package/src/lib/filter/adjudicators/admissionRequest.ts +4 -1
  98. package/src/lib/filter/adjudicators/binding.ts +17 -4
  99. package/src/lib/filter/adjudicators/kubernetesObject.ts +4 -2
  100. package/src/lib/filter/adjudicators/mismatch.ts +25 -6
  101. package/src/lib/filter/adjudicators/postCollection.ts +15 -3
  102. package/src/lib/filter/filter.ts +63 -15
  103. package/src/lib/helpers.ts +36 -10
  104. package/src/lib/included-files.ts +5 -1
  105. package/src/lib/processors/decode-utils.ts +4 -1
  106. package/src/lib/processors/mutate-processor.ts +4 -1
  107. package/src/lib/processors/validate-processor.ts +4 -1
  108. package/src/lib/processors/watch-processor.ts +49 -19
  109. package/src/lib/telemetry/metrics.ts +6 -2
  110. package/src/lib/telemetry/webhookTimeouts.ts +4 -1
  111. package/src/templates/.prettierrc.json +3 -2
  112. package/src/templates/capabilities/hello-pepr.ts +2 -8
  113. package/dist/.github/workflows/pepr-excellent-examples-matrix.d.ts +0 -2
  114. package/dist/.github/workflows/pepr-excellent-examples-matrix.d.ts.map +0 -1
  115. package/dist/commitlint.config.d.ts +0 -4
  116. package/dist/commitlint.config.d.ts.map +0 -1
  117. package/dist/integration/helpers/cmd.d.ts +0 -22
  118. package/dist/integration/helpers/cmd.d.ts.map +0 -1
  119. package/dist/integration/helpers/pepr.d.ts +0 -5
  120. package/dist/integration/helpers/pepr.d.ts.map +0 -1
  121. package/dist/integration/helpers/resource.d.ts +0 -18
  122. package/dist/integration/helpers/resource.d.ts.map +0 -1
  123. package/dist/integration/helpers/time.d.ts +0 -4
  124. package/dist/integration/helpers/time.d.ts.map +0 -1
  125. package/dist/integration/helpers/workdir.d.ts +0 -12
  126. package/dist/integration/helpers/workdir.d.ts.map +0 -1
  127. package/dist/scripts/set-version.d.ts +0 -2
  128. package/dist/scripts/set-version.d.ts.map +0 -1
  129. package/dist/src/cli/banner.d.ts.map +0 -1
  130. package/dist/src/cli/build.d.ts.map +0 -1
  131. package/dist/src/cli/build.helpers.d.ts.map +0 -1
  132. package/dist/src/cli/deploy.d.ts.map +0 -1
  133. package/dist/src/cli/dev.d.ts.map +0 -1
  134. package/dist/src/cli/format.d.ts.map +0 -1
  135. package/dist/src/cli/format.helpers.d.ts.map +0 -1
  136. package/dist/src/cli/init/enums.d.ts.map +0 -1
  137. package/dist/src/cli/init/index.d.ts.map +0 -1
  138. package/dist/src/cli/init/templates.d.ts.map +0 -1
  139. package/dist/src/cli/init/utils.d.ts.map +0 -1
  140. package/dist/src/cli/init/walkthrough.d.ts.map +0 -1
  141. package/dist/src/cli/kfc.d.ts.map +0 -1
  142. package/dist/src/cli/monitor.d.ts.map +0 -1
  143. package/dist/src/cli/root.d.ts.map +0 -1
  144. package/dist/src/cli/types.d.ts.map +0 -1
  145. package/dist/src/cli/update.d.ts.map +0 -1
  146. package/dist/src/cli/uuid.d.ts.map +0 -1
  147. package/dist/src/cli.d.ts.map +0 -1
  148. package/dist/src/fixtures/loader.d.ts.map +0 -1
  149. package/dist/src/lib/assets/assets.d.ts.map +0 -1
  150. package/dist/src/lib/assets/defaultTestObjects.d.ts.map +0 -1
  151. package/dist/src/lib/assets/deploy.d.ts.map +0 -1
  152. package/dist/src/lib/assets/destroy.d.ts.map +0 -1
  153. package/dist/src/lib/assets/helm.d.ts.map +0 -1
  154. package/dist/src/lib/assets/index.d.ts.map +0 -1
  155. package/dist/src/lib/assets/loader.d.ts.map +0 -1
  156. package/dist/src/lib/assets/networking.d.ts.map +0 -1
  157. package/dist/src/lib/assets/pods.d.ts.map +0 -1
  158. package/dist/src/lib/assets/rbac.d.ts.map +0 -1
  159. package/dist/src/lib/assets/store.d.ts.map +0 -1
  160. package/dist/src/lib/assets/webhooks.d.ts.map +0 -1
  161. package/dist/src/lib/assets/yaml/generateAllYaml.d.ts.map +0 -1
  162. package/dist/src/lib/assets/yaml/generateZarfYaml.d.ts.map +0 -1
  163. package/dist/src/lib/assets/yaml/overridesFile.d.ts.map +0 -1
  164. package/dist/src/lib/common-types.d.ts.map +0 -1
  165. package/dist/src/lib/controller/index.d.ts.map +0 -1
  166. package/dist/src/lib/controller/index.util.d.ts.map +0 -1
  167. package/dist/src/lib/controller/store.d.ts.map +0 -1
  168. package/dist/src/lib/controller/storeCache.d.ts.map +0 -1
  169. package/dist/src/lib/core/capability.d.ts.map +0 -1
  170. package/dist/src/lib/core/envChecks.d.ts.map +0 -1
  171. package/dist/src/lib/core/module.d.ts.map +0 -1
  172. package/dist/src/lib/core/queue.d.ts.map +0 -1
  173. package/dist/src/lib/core/schedule.d.ts.map +0 -1
  174. package/dist/src/lib/core/storage.d.ts.map +0 -1
  175. package/dist/src/lib/deploymentChecks.d.ts.map +0 -1
  176. package/dist/src/lib/enums.d.ts.map +0 -1
  177. package/dist/src/lib/errors.d.ts.map +0 -1
  178. package/dist/src/lib/filesystemService.d.ts.map +0 -1
  179. package/dist/src/lib/filter/adjudicators/admissionRequest.d.ts.map +0 -1
  180. package/dist/src/lib/filter/adjudicators/binding.d.ts.map +0 -1
  181. package/dist/src/lib/filter/adjudicators/defaultTestObjects.d.ts.map +0 -1
  182. package/dist/src/lib/filter/adjudicators/kubernetesObject.d.ts.map +0 -1
  183. package/dist/src/lib/filter/adjudicators/mismatch.d.ts.map +0 -1
  184. package/dist/src/lib/filter/adjudicators/postCollection.d.ts.map +0 -1
  185. package/dist/src/lib/filter/filter.d.ts.map +0 -1
  186. package/dist/src/lib/finalizer.d.ts.map +0 -1
  187. package/dist/src/lib/helpers.d.ts.map +0 -1
  188. package/dist/src/lib/included-files.d.ts.map +0 -1
  189. package/dist/src/lib/k8s.d.ts.map +0 -1
  190. package/dist/src/lib/mutate-request.d.ts.map +0 -1
  191. package/dist/src/lib/processors/decode-utils.d.ts.map +0 -1
  192. package/dist/src/lib/processors/mutate-processor.d.ts.map +0 -1
  193. package/dist/src/lib/processors/validate-processor.d.ts.map +0 -1
  194. package/dist/src/lib/processors/watch-processor.d.ts.map +0 -1
  195. package/dist/src/lib/telemetry/logger.d.ts.map +0 -1
  196. package/dist/src/lib/telemetry/metrics.d.ts.map +0 -1
  197. package/dist/src/lib/telemetry/timeUtils.d.ts.map +0 -1
  198. package/dist/src/lib/telemetry/webhookTimeouts.d.ts.map +0 -1
  199. package/dist/src/lib/tls.d.ts.map +0 -1
  200. package/dist/src/lib/types.d.ts.map +0 -1
  201. package/dist/src/lib/utils.d.ts.map +0 -1
  202. package/dist/src/lib/validate-request.d.ts.map +0 -1
  203. package/dist/src/lib.d.ts.map +0 -1
  204. package/dist/src/sdk/cosign.d.ts +0 -18
  205. package/dist/src/sdk/cosign.d.ts.map +0 -1
  206. package/dist/src/sdk/heredoc.d.ts.map +0 -1
  207. package/dist/src/sdk/sdk.d.ts.map +0 -1
  208. package/src/lib/.prettierrc +0 -14
  209. package/src/sdk/cosign.ts +0 -327
  210. /package/dist/{src/cli → cli}/banner.d.ts +0 -0
  211. /package/dist/{src/cli → cli}/build.d.ts +0 -0
  212. /package/dist/{src/cli → cli}/build.helpers.d.ts +0 -0
  213. /package/dist/{src/cli → cli}/deploy.d.ts +0 -0
  214. /package/dist/{src/cli → cli}/dev.d.ts +0 -0
  215. /package/dist/{src/cli → cli}/format.d.ts +0 -0
  216. /package/dist/{src/cli → cli}/format.helpers.d.ts +0 -0
  217. /package/dist/{src/cli → cli}/init/enums.d.ts +0 -0
  218. /package/dist/{src/cli → cli}/init/index.d.ts +0 -0
  219. /package/dist/{src/cli → cli}/init/utils.d.ts +0 -0
  220. /package/dist/{src/cli → cli}/init/walkthrough.d.ts +0 -0
  221. /package/dist/{src/cli → cli}/kfc.d.ts +0 -0
  222. /package/dist/{src/cli → cli}/monitor.d.ts +0 -0
  223. /package/dist/{src/cli → cli}/root.d.ts +0 -0
  224. /package/dist/{src/cli → cli}/types.d.ts +0 -0
  225. /package/dist/{src/cli → cli}/update.d.ts +0 -0
  226. /package/dist/{src/cli → cli}/uuid.d.ts +0 -0
  227. /package/dist/{src/cli.d.ts → cli.d.ts} +0 -0
  228. /package/dist/{src/fixtures → fixtures}/loader.d.ts +0 -0
  229. /package/dist/{src/lib → lib}/assets/assets.d.ts +0 -0
  230. /package/dist/{src/lib → lib}/assets/defaultTestObjects.d.ts +0 -0
  231. /package/dist/{src/lib → lib}/assets/deploy.d.ts +0 -0
  232. /package/dist/{src/lib → lib}/assets/destroy.d.ts +0 -0
  233. /package/dist/{src/lib → lib}/assets/helm.d.ts +0 -0
  234. /package/dist/{src/lib → lib}/assets/index.d.ts +0 -0
  235. /package/dist/{src/lib → lib}/assets/loader.d.ts +0 -0
  236. /package/dist/{src/lib → lib}/assets/networking.d.ts +0 -0
  237. /package/dist/{src/lib → lib}/assets/pods.d.ts +0 -0
  238. /package/dist/{src/lib → lib}/assets/rbac.d.ts +0 -0
  239. /package/dist/{src/lib → lib}/assets/store.d.ts +0 -0
  240. /package/dist/{src/lib → lib}/assets/webhooks.d.ts +0 -0
  241. /package/dist/{src/lib → lib}/assets/yaml/generateAllYaml.d.ts +0 -0
  242. /package/dist/{src/lib → lib}/assets/yaml/generateZarfYaml.d.ts +0 -0
  243. /package/dist/{src/lib → lib}/assets/yaml/overridesFile.d.ts +0 -0
  244. /package/dist/{src/lib → lib}/common-types.d.ts +0 -0
  245. /package/dist/{src/lib → lib}/controller/index.d.ts +0 -0
  246. /package/dist/{src/lib → lib}/controller/index.util.d.ts +0 -0
  247. /package/dist/{src/lib → lib}/controller/store.d.ts +0 -0
  248. /package/dist/{src/lib → lib}/controller/storeCache.d.ts +0 -0
  249. /package/dist/{src/lib → lib}/core/capability.d.ts +0 -0
  250. /package/dist/{src/lib → lib}/core/envChecks.d.ts +0 -0
  251. /package/dist/{src/lib → lib}/core/module.d.ts +0 -0
  252. /package/dist/{src/lib → lib}/core/queue.d.ts +0 -0
  253. /package/dist/{src/lib → lib}/core/schedule.d.ts +0 -0
  254. /package/dist/{src/lib → lib}/core/storage.d.ts +0 -0
  255. /package/dist/{src/lib → lib}/deploymentChecks.d.ts +0 -0
  256. /package/dist/{src/lib → lib}/enums.d.ts +0 -0
  257. /package/dist/{src/lib → lib}/errors.d.ts +0 -0
  258. /package/dist/{src/lib → lib}/filesystemService.d.ts +0 -0
  259. /package/dist/{src/lib → lib}/filter/adjudicators/admissionRequest.d.ts +0 -0
  260. /package/dist/{src/lib → lib}/filter/adjudicators/binding.d.ts +0 -0
  261. /package/dist/{src/lib → lib}/filter/adjudicators/defaultTestObjects.d.ts +0 -0
  262. /package/dist/{src/lib → lib}/filter/adjudicators/kubernetesObject.d.ts +0 -0
  263. /package/dist/{src/lib → lib}/filter/adjudicators/mismatch.d.ts +0 -0
  264. /package/dist/{src/lib → lib}/filter/adjudicators/postCollection.d.ts +0 -0
  265. /package/dist/{src/lib → lib}/filter/filter.d.ts +0 -0
  266. /package/dist/{src/lib → lib}/finalizer.d.ts +0 -0
  267. /package/dist/{src/lib → lib}/helpers.d.ts +0 -0
  268. /package/dist/{src/lib → lib}/included-files.d.ts +0 -0
  269. /package/dist/{src/lib → lib}/k8s.d.ts +0 -0
  270. /package/dist/{src/lib → lib}/mutate-request.d.ts +0 -0
  271. /package/dist/{src/lib → lib}/processors/decode-utils.d.ts +0 -0
  272. /package/dist/{src/lib → lib}/processors/mutate-processor.d.ts +0 -0
  273. /package/dist/{src/lib → lib}/processors/validate-processor.d.ts +0 -0
  274. /package/dist/{src/lib → lib}/processors/watch-processor.d.ts +0 -0
  275. /package/dist/{src/lib → lib}/telemetry/logger.d.ts +0 -0
  276. /package/dist/{src/lib → lib}/telemetry/metrics.d.ts +0 -0
  277. /package/dist/{src/lib → lib}/telemetry/timeUtils.d.ts +0 -0
  278. /package/dist/{src/lib → lib}/telemetry/webhookTimeouts.d.ts +0 -0
  279. /package/dist/{src/lib → lib}/tls.d.ts +0 -0
  280. /package/dist/{src/lib → lib}/types.d.ts +0 -0
  281. /package/dist/{src/lib → lib}/utils.d.ts +0 -0
  282. /package/dist/{src/lib → lib}/validate-request.d.ts +0 -0
  283. /package/dist/{src/lib.d.ts → lib.d.ts} +0 -0
  284. /package/dist/{src/runtime → runtime}/controller.d.ts +0 -0
  285. /package/dist/{src/sdk → sdk}/heredoc.d.ts +0 -0
  286. /package/dist/{src/sdk → sdk}/sdk.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/cli/banner.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,iv0HA2DlB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/c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,sBAAsB,GAAG;IAC/E,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAmCA;AAED,MAAM,MAAM,+BAA+B,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AAkB/E,wBAAsB,mBAAmB,CAAC,IAAI,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAatF;AA+BD,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CA8B/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/cli/dev.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAOjC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CA0G/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/cli/format.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CAc/C;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAoCxE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.helpers.d.ts","sourceRoot":"","sources":["../../src/cli/format.helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,EAC5B,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,OAAO,CAAC,CAgBlB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/cli/init/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AACD,oBAAY,OAAO;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/init/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAoBlC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CAkD/C"}
@@ -6,7 +6,7 @@ export declare const dependencies: {
6
6
  "@types/ramda": string;
7
7
  express: string;
8
8
  "fast-json-patch": string;
9
- "follow-redirects": string;
9
+ heredoc: string;
10
10
  "http-status-codes": string;
11
11
  "json-pointer": string;
12
12
  "kubernetes-fluent-client": string;
@@ -18,18 +18,14 @@ export declare const dependencies: {
18
18
  }, devDependencies: {
19
19
  "@commitlint/cli": string;
20
20
  "@commitlint/config-conventional": string;
21
- "@eslint/eslintrc": string;
22
- "@eslint/js": string;
23
21
  "@fast-check/jest": string;
24
22
  "@jest/globals": string;
25
23
  "@types/eslint": string;
26
24
  "@types/express": string;
27
- "@types/follow-redirects": string;
28
25
  "@types/json-pointer": string;
29
26
  "@types/node": string;
30
27
  "@types/node-forge": string;
31
28
  "@types/uuid": string;
32
- eslint: string;
33
29
  "fast-check": string;
34
30
  globals: string;
35
31
  husky: string;
@@ -37,7 +33,6 @@ export declare const dependencies: {
37
33
  "js-yaml": string;
38
34
  shellcheck: string;
39
35
  "ts-jest": string;
40
- "typescript-eslint": string;
41
36
  undici: string;
42
37
  }, peerDependencies: {
43
38
  "@types/prompts": string;
@@ -190,6 +185,7 @@ export declare const prettier: {
190
185
  semi: boolean;
191
186
  tabWidth: number;
192
187
  useTabs: boolean;
188
+ vueIndentScriptAndStyle: boolean;
193
189
  };
194
190
  };
195
191
  export declare const eslint: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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AAU,EAAE,MAAM,CAAA;SAAE,CAAC;KACzC,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,eAAe,CAqDtF;AAED,eAAO,MAAM,cAAc;;;CAG1B,CAAC;AAEF,eAAO,MAAM,MAAM;;;CAGlB,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAGrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAGrB,CAAC;AAEF,eAAO,MAAM,WAAW;;;CAGvB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;;;;CAGnB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;CAGxB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;CAGpB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;CAGlB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/cli/init/utils.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBjD;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAW1D;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walkthrough.d.ts","sourceRoot":"","sources":["../../../src/cli/init/walkthrough.ts"],"names":[],"mappings":"AAIA,OAAe,EAAE,OAAO,EAAgB,MAAM,SAAS,CAAC;AAIxD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAE1D,wBAAsB,WAAW,CAAC,IAAI,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAOrF;AAED,wBAAsB,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CA6BrE;AAgBD,wBAAsB,gBAAgB,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAoCxF;AAED,wBAAsB,OAAO,CAC3B,OAAO,EAAE,MAAM,EACf,WAAW,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAC5C,UAAU,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAAC,OAAO,CAAC,CAiClB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kfc.d.ts","sourceRoot":"","sources":["../../src/cli/kfc.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CAoC/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor.d.ts","sourceRoot":"","sources":["../../src/cli/monitor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,IAAI,MAAM,EAAoC,MAAM,yBAAyB,CAAC;AAI1F,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,UAAU,UAAU;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE;YACP,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;CACH;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CAiC/C;AAED,wBAAgB,wBAAwB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG;IACvD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAaA;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAIhD;AAmCD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAYrF;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAWvF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/cli/root.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,OAAQ,SAAQ,OAAO;IAElC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAIrC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/cli/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,GAAG,aAAa,GAAG,eAAe,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/cli/update.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CA2E/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src/cli/uuid.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CAoC/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
package/dist/cli.js CHANGED
@@ -472,7 +472,9 @@ function validateCapabilityNames(capabilities) {
472
472
  if (capabilities && capabilities.length > 0) {
473
473
  for (let i = 0; i < capabilities.length; i++) {
474
474
  if (capabilities[i].name !== sanitizeResourceName(capabilities[i].name)) {
475
- throw new ValidationError(`Capability name is not a valid Kubernetes resource name: ${capabilities[i].name}`);
475
+ throw new ValidationError(
476
+ `Capability name is not a valid Kubernetes resource name: ${capabilities[i].name}`
477
+ );
476
478
  }
477
479
  }
478
480
  }
@@ -542,7 +544,9 @@ function generateWatchNamespaceError(ignoredNamespaces, bindingNamespaces, capab
542
544
  }
543
545
  function namespaceComplianceValidator(capability, ignoredNamespaces) {
544
546
  const { namespaces: capabilityNamespaces, bindings, name: name2 } = capability;
545
- const bindingNamespaces = bindings.flatMap((binding) => binding.filters.namespaces);
547
+ const bindingNamespaces = bindings.flatMap(
548
+ (binding) => binding.filters.namespaces
549
+ );
546
550
  const bindingRegexNamespaces = bindings.flatMap(
547
551
  (binding) => binding.filters.regexNamespaces || []
548
552
  );
@@ -563,7 +567,9 @@ var matchRegexToCapababilityNamespace = (bindingRegexNamespaces, capabilityNames
563
567
  if (bindingRegexNamespaces.length > 0 && capabilityNamespaces && capabilityNamespaces.length > 0) {
564
568
  for (const regexNamespace of bindingRegexNamespaces) {
565
569
  let matches = false;
566
- matches = regexNamespace !== "" && capabilityNamespaces.some((capabilityNamespace) => matchesRegex(regexNamespace, capabilityNamespace));
570
+ matches = regexNamespace !== "" && capabilityNamespaces.some(
571
+ (capabilityNamespace) => matchesRegex(regexNamespace, capabilityNamespace)
572
+ );
567
573
  if (!matches) {
568
574
  throw new Error(
569
575
  `Ignoring Watch Callback: Object namespace does not match any capability namespace with regex ${regexNamespace}.`
@@ -575,7 +581,9 @@ var matchRegexToCapababilityNamespace = (bindingRegexNamespaces, capabilityNames
575
581
  var checkRegexNamespaces = (bindingRegexNamespaces, ignoredNamespaces) => {
576
582
  if (bindingRegexNamespaces.length > 0 && ignoredNamespaces && ignoredNamespaces.length > 0) {
577
583
  for (const regexNamespace of bindingRegexNamespaces) {
578
- const matchedNS = ignoredNamespaces.find((ignoredNS) => matchesRegex(regexNamespace, ignoredNS));
584
+ const matchedNS = ignoredNamespaces.find(
585
+ (ignoredNS) => matchesRegex(regexNamespace, ignoredNS)
586
+ );
579
587
  if (matchedNS) {
580
588
  throw new Error(
581
589
  `Ignoring Watch Callback: Regex namespace: ${regexNamespace}, is an ignored namespace: ${matchedNS}.`
@@ -1267,7 +1275,10 @@ function createWebhookYaml(name2, config, webhookConfiguration) {
1267
1275
  `
1268
1276
  }
1269
1277
  ];
1270
- return replacements.reduce((updatedYaml, { search, replace }) => replaceString(updatedYaml, search, replace), yaml);
1278
+ return replacements.reduce(
1279
+ (updatedYaml, { search, replace }) => replaceString(updatedYaml, search, replace),
1280
+ yaml
1281
+ );
1271
1282
  }
1272
1283
  function helmLayout(basePath, unique) {
1273
1284
  const helm = {
@@ -1462,14 +1473,26 @@ var Assets = class {
1462
1473
  };
1463
1474
  writeWebhookFiles = async (validateWebhook, mutateWebhook, helm) => {
1464
1475
  if (validateWebhook || mutateWebhook) {
1465
- await import_fs3.promises.writeFile(helm.files.admissionDeploymentYaml, dedent(admissionDeployTemplate(this.buildTimestamp)));
1466
- await import_fs3.promises.writeFile(helm.files.admissionServiceMonitorYaml, dedent(serviceMonitorTemplate("admission")));
1476
+ await import_fs3.promises.writeFile(
1477
+ helm.files.admissionDeploymentYaml,
1478
+ dedent(admissionDeployTemplate(this.buildTimestamp))
1479
+ );
1480
+ await import_fs3.promises.writeFile(
1481
+ helm.files.admissionServiceMonitorYaml,
1482
+ dedent(serviceMonitorTemplate("admission"))
1483
+ );
1467
1484
  }
1468
1485
  if (mutateWebhook) {
1469
- await import_fs3.promises.writeFile(helm.files.mutationWebhookYaml, createWebhookYaml(this.name, this.config, mutateWebhook));
1486
+ await import_fs3.promises.writeFile(
1487
+ helm.files.mutationWebhookYaml,
1488
+ createWebhookYaml(this.name, this.config, mutateWebhook)
1489
+ );
1470
1490
  }
1471
1491
  if (validateWebhook) {
1472
- await import_fs3.promises.writeFile(helm.files.validationWebhookYaml, createWebhookYaml(this.name, this.config, validateWebhook));
1492
+ await import_fs3.promises.writeFile(
1493
+ helm.files.validationWebhookYaml,
1494
+ createWebhookYaml(this.name, this.config, validateWebhook)
1495
+ );
1473
1496
  }
1474
1497
  };
1475
1498
  generateHelmChart = async (webhookGeneratorFunction, basePath) => {
@@ -1481,18 +1504,27 @@ var Assets = class {
1481
1504
  const code = await import_fs3.promises.readFile(this.path);
1482
1505
  const moduleHash = import_crypto.default.createHash("sha256").update(code).digest("hex");
1483
1506
  const pairs = [
1484
- [helm.files.chartYaml, () => dedent(chartYaml(this.config.uuid, this.config.description || ""))],
1507
+ [
1508
+ helm.files.chartYaml,
1509
+ () => dedent(chartYaml(this.config.uuid, this.config.description || ""))
1510
+ ],
1485
1511
  [helm.files.namespaceYaml, () => dedent(namespaceTemplate())],
1486
1512
  [helm.files.watcherServiceYaml, () => toYaml(watcherService(this.name))],
1487
1513
  [helm.files.admissionServiceYaml, () => toYaml(service(this.name))],
1488
1514
  [helm.files.tlsSecretYaml, () => toYaml(tlsSecret(this.name, this.tls))],
1489
- [helm.files.apiPathSecretYaml, () => toYaml(apiPathSecret(this.name, this.apiPath))],
1515
+ [
1516
+ helm.files.apiPathSecretYaml,
1517
+ () => toYaml(apiPathSecret(this.name, this.apiPath))
1518
+ ],
1490
1519
  [helm.files.storeRoleYaml, () => toYaml(storeRole(this.name))],
1491
1520
  [helm.files.storeRoleBindingYaml, () => toYaml(storeRoleBinding(this.name))],
1492
1521
  [helm.files.clusterRoleYaml, () => dedent(clusterRoleTemplate())],
1493
1522
  [helm.files.clusterRoleBindingYaml, () => toYaml(clusterRoleBinding(this.name))],
1494
1523
  [helm.files.serviceAccountYaml, () => toYaml(serviceAccount(this.name))],
1495
- [helm.files.moduleSecretYaml, () => toYaml(getModuleSecret(this.name, code, moduleHash))]
1524
+ [
1525
+ helm.files.moduleSecretYaml,
1526
+ () => toYaml(getModuleSecret(this.name, code, moduleHash))
1527
+ ]
1496
1528
  ];
1497
1529
  await Promise.all(pairs.map(async ([file, content]) => await import_fs3.promises.writeFile(file, content())));
1498
1530
  const overrideData = {
@@ -1505,14 +1537,28 @@ var Assets = class {
1505
1537
  };
1506
1538
  await overridesFile(overrideData, helm.files.valuesYaml, this.imagePullSecrets);
1507
1539
  const webhooks = {
1508
- mutate: await webhookGeneratorFunction(this, "mutate" /* MUTATE */, this.config.webhookTimeout),
1509
- validate: await webhookGeneratorFunction(this, "validate" /* VALIDATE */, this.config.webhookTimeout)
1540
+ mutate: await webhookGeneratorFunction(
1541
+ this,
1542
+ "mutate" /* MUTATE */,
1543
+ this.config.webhookTimeout
1544
+ ),
1545
+ validate: await webhookGeneratorFunction(
1546
+ this,
1547
+ "validate" /* VALIDATE */,
1548
+ this.config.webhookTimeout
1549
+ )
1510
1550
  };
1511
1551
  await this.writeWebhookFiles(webhooks.validate, webhooks.mutate, helm);
1512
1552
  const watchDeployment = getWatcher(this, moduleHash, this.buildTimestamp);
1513
1553
  if (watchDeployment) {
1514
- await import_fs3.promises.writeFile(helm.files.watcherDeploymentYaml, dedent(watcherDeployTemplate(this.buildTimestamp)));
1515
- await import_fs3.promises.writeFile(helm.files.watcherServiceMonitorYaml, dedent(serviceMonitorTemplate("watcher")));
1554
+ await import_fs3.promises.writeFile(
1555
+ helm.files.watcherDeploymentYaml,
1556
+ dedent(watcherDeployTemplate(this.buildTimestamp))
1557
+ );
1558
+ await import_fs3.promises.writeFile(
1559
+ helm.files.watcherServiceMonitorYaml,
1560
+ dedent(serviceMonitorTemplate("watcher"))
1561
+ );
1516
1562
  }
1517
1563
  } catch (err) {
1518
1564
  console.error(`Error generating helm chart: ${err.message}`);
@@ -1576,12 +1622,13 @@ var prettierrc_default = {
1576
1622
  bracketSpacing: true,
1577
1623
  embeddedLanguageFormatting: "auto",
1578
1624
  insertPragma: false,
1579
- printWidth: 80,
1625
+ printWidth: 100,
1580
1626
  quoteProps: "as-needed",
1581
1627
  requirePragma: false,
1582
1628
  semi: true,
1583
1629
  tabWidth: 2,
1584
- useTabs: false
1630
+ useTabs: false,
1631
+ vueIndentScriptAndStyle: false
1585
1632
  };
1586
1633
 
1587
1634
  // src/templates/capabilities/hello-pepr.samples.json
@@ -1783,8 +1830,8 @@ var tsconfig_module_default = {
1783
1830
  var gitIgnore = "# Ignore node_modules and Pepr build artifacts\nnode_modules\ndist\ninsecure*\n";
1784
1831
  var readmeMd = '# Pepr Module\n\nThis is a Pepr Module. [Pepr](https://github.com/defenseunicorns/pepr) is a type-safe Kubernetes middleware system.\n\nThe `capabilities` directory contains all the capabilities for this module. By default,\na capability is a single typescript file in the format of `capability-name.ts` that is\nimported in the root `pepr.ts` file as `import { HelloPepr } from "./capabilities/hello-pepr";`.\nBecause this is typescript, you can organize this however you choose, e.g. creating a sub-folder\nper-capability or common logic in shared files or folders.\n\nExample Structure:\n\n```\nModule Root\n\u251C\u2500\u2500 package.json\n\u251C\u2500\u2500 pepr.ts\n\u2514\u2500\u2500 capabilities\n \u251C\u2500\u2500 example-one.ts\n \u251C\u2500\u2500 example-three.ts\n \u2514\u2500\u2500 example-two.ts\n```\n';
1785
1832
  var peprTS = 'import { PeprModule } from "pepr";\n// cfg loads your pepr configuration from package.json\nimport cfg from "./package.json";\n\n// HelloPepr is a demo capability that is included with Pepr. Comment or delete the line below to remove it.\nimport { HelloPepr } from "./capabilities/hello-pepr";\n\n/**\n * This is the main entrypoint for this Pepr module. It is run when the module is started.\n * This is where you register your Pepr configurations and capabilities.\n */\nnew PeprModule(cfg, [\n // "HelloPepr" is a demo capability that is included with Pepr. Comment or delete the line below to remove it.\n HelloPepr,\n\n // Your additional capabilities go here\n]);\n';
1786
- var helloPeprTS = 'import {\n Capability,\n K8s,\n Log,\n PeprMutateRequest,\n RegisterKind,\n a,\n fetch,\n fetchStatus,\n kind,\n} from "pepr";\nimport { MockAgent, setGlobalDispatcher } from "undici";\n\n/**\n * The HelloPepr Capability is an example capability to demonstrate some general concepts of Pepr.\n * To test this capability you run `pepr dev`and then run the following command:\n * `kubectl apply -f capabilities/hello-pepr.samples.yaml`\n */\nexport const HelloPepr = new Capability({\n name: "hello-pepr",\n description: "A simple example capability to show how things work.",\n namespaces: ["pepr-demo", "pepr-demo-2"],\n});\n\n// Use the \'When\' function to create a new action, use \'Store\' to persist data\nconst { When, Store } = HelloPepr;\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (Namespace) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action removes the label `remove-me` when a Namespace is created.\n * Note we don\'t need to specify the namespace here, because we\'ve already specified\n * it in the Capability definition above.\n */\nWhen(a.Namespace)\n .IsCreated()\n .Mutate(ns => ns.RemoveLabel("remove-me"));\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Watch Action with K8s SSA (Namespace) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action watches for the `pepr-demo-2` namespace to be created, then creates a ConfigMap with\n * the name `pepr-ssa-demo` and adds the namespace UID to the ConfigMap data. Because Pepr uses\n * server-side apply for this operation, the ConfigMap will be created or updated if it already exists.\n */\nWhen(a.Namespace)\n .IsCreated()\n .WithName("pepr-demo-2")\n .Watch(async ns => {\n Log.info("Namespace pepr-demo-2 was created.");\n\n try {\n // Apply the ConfigMap using K8s server-side apply\n await K8s(kind.ConfigMap).Apply({\n metadata: {\n name: "pepr-ssa-demo",\n namespace: "pepr-demo-2",\n },\n data: {\n "ns-uid": ns.metadata.uid,\n },\n });\n } catch (error) {\n // You can use the Log object to log messages to the Pepr controller pod\n Log.error(error, "Failed to apply ConfigMap using server-side apply.");\n }\n\n // You can share data between actions using the Store, including between different types of actions\n Store.setItem("watch-data", "This data was stored by a Watch Action.");\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 1) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This is a single action. They can be in the same file or put imported from other files.\n * In this example, when a ConfigMap is created with the name `example-1`, then add a label and annotation.\n *\n * Equivalent to manually running:\n * `kubectl label configmap example-1 pepr=was-here`\n * `kubectl annotate configmap example-1 pepr.dev=annotations-work-too`\n */\nWhen(a.ConfigMap)\n .IsCreated()\n .WithName("example-1")\n .Mutate(request => {\n request\n .SetLabel("pepr", "was-here")\n .SetAnnotation("pepr.dev", "annotations-work-too");\n\n // Use the Store to persist data between requests and Pepr controller pods\n Store.setItem("example-1", "was-here");\n\n // This data is written asynchronously and can be read back via `Store.getItem()` or `Store.subscribe()`\n Store.setItem("example-1-data", JSON.stringify(request.Raw.data));\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate & Validate Actions (CM Example 2) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This combines 3 different types of actions: \'Mutate\', \'Validate\', and \'Watch\'. The order\n * of the actions is required, but each action is optional. In this example, when a ConfigMap is created\n * with the name `example-2`, then add a label and annotation, validate that the ConfigMap has the label\n * `pepr`, and log the request.\n */\nWhen(a.ConfigMap)\n .IsCreated()\n .WithName("example-2")\n .Mutate(request => {\n // This Mutate Action will mutate the request before it is persisted to the cluster\n\n // Use `request.Merge()` to merge the new data with the existing data\n request.Merge({\n metadata: {\n labels: {\n pepr: "was-here",\n },\n annotations: {\n "pepr.dev": "annotations-work-too",\n },\n },\n });\n })\n .Validate(request => {\n // This Validate Action will validate the request before it is persisted to the cluster\n\n // Approve the request if the ConfigMap has the label \'pepr\'\n if (request.HasLabel("pepr")) {\n return request.Approve();\n }\n\n // Otherwise, deny the request with an error message (optional)\n return request.Deny("ConfigMap must have label \'pepr\'");\n })\n .Watch((cm, phase) => {\n // This Watch Action will watch the ConfigMap after it has been persisted to the cluster\n Log.info(cm, `ConfigMap was ${phase} with the name example-2`);\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 2a) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action shows a simple validation that will deny any ConfigMap that has the\n * annotation `evil`. Note that the `Deny()` function takes an optional second parameter that is a\n * user-defined status code to return.\n */\nWhen(a.ConfigMap)\n .IsCreated()\n .Validate(request => {\n if (request.HasAnnotation("evil")) {\n return request.Deny("No evil CM annotations allowed.", 400);\n }\n\n return request.Approve();\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 3) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action combines different styles. Unlike the previous actions, this one will look\n * for any ConfigMap in the `pepr-demo` namespace that has the label `change=by-label` during either\n * CREATE or UPDATE. Note that all conditions added such as `WithName()`, `WithLabel()`, `InNamespace()`,\n * are ANDs so all conditions must be true for the request to be processed.\n */\nWhen(a.ConfigMap)\n .IsCreatedOrUpdated()\n .WithLabel("change", "by-label")\n .Mutate(request => {\n // The K8s object e are going to mutate\n const cm = request.Raw;\n\n // Get the username and uid of the K8s request\n const { username, uid } = request.Request.userInfo;\n\n // Store some data about the request in the configmap\n cm.data["username"] = username;\n cm.data["uid"] = uid;\n\n // You can still mix other ways of making changes too\n request.SetAnnotation("pepr.dev", "making-waves");\n });\n\n// This action validates the label `change=by-label` is deleted\nWhen(a.ConfigMap)\n .IsDeleted()\n .WithLabel("change", "by-label")\n .Validate(request => {\n // Log and then always approve the request\n Log.info("CM with label \'change=by-label\' was deleted.");\n return request.Approve();\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 4) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action show how you can use the `Mutate()` function without an inline function.\n * This is useful if you want to keep your actions small and focused on a single task,\n * or if you want to reuse the same function in multiple actions.\n */\nWhen(a.ConfigMap).IsCreated().WithName("example-4").Mutate(example4Cb);\n\n// This function uses the complete type definition, but is not required.\nfunction example4Cb(cm: PeprMutateRequest<a.ConfigMap>) {\n cm.SetLabel("pepr.dev/first", "true");\n cm.SetLabel("pepr.dev/second", "true");\n cm.SetLabel("pepr.dev/third", "true");\n}\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 4a) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This is the same as Example 4, except this only operates on a CM in the `pepr-demo-2` namespace.\n * Note because the Capability defines namespaces, the namespace specified here must be one of those.\n * Alternatively, you can remove the namespace from the Capability definition and specify it here.\n */\nWhen(a.ConfigMap)\n .IsCreated()\n .InNamespace("pepr-demo-2")\n .WithName("example-4a")\n .Mutate(example4Cb);\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 5) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action is a bit more complex. It will look for any ConfigMap in the `pepr-demo`\n * namespace that has the label `chuck-norris` during CREATE. When it finds one, it will fetch a\n * random Chuck Norris joke from the API and add it to the ConfigMap. This is a great example of how\n * you can use Pepr to make changes to your K8s objects based on external data.\n *\n * Note the use of the `async` keyword. This is required for any action that uses `await` or `fetch()`.\n *\n * Also note we are passing a type to the `fetch()` function. This is optional, but it will help you\n * avoid mistakes when working with the data returned from the API. You can also use the `as` keyword to\n * cast the data returned from the API.\n *\n * These are equivalent:\n * ```ts\n * const joke = await fetch<TheChuckNorrisJoke>("https://icanhazdadjoke.com/");\n * const joke = await fetch("https://icanhazdadjoke.com/") as TheChuckNorrisJoke;\n * ```\n *\n * Alternatively, you can drop the type completely:\n *\n * ```ts\n * fetch("https://icanhazdadjoke.com")\n * ```\n */\ninterface TheChuckNorrisJoke {\n id: string;\n joke: string;\n status: number;\n}\n\nWhen(a.ConfigMap)\n .IsCreatedOrUpdated()\n .WithLabel("chuck-norris")\n .Mutate(cm => cm.SetLabel("got-jokes", "true"))\n .Watch(async cm => {\n const jokeURL = "https://icanhazdadjoke.com";\n\n const mockAgent: MockAgent = new MockAgent();\n setGlobalDispatcher(mockAgent);\n const mockClient = mockAgent.get(jokeURL);\n mockClient.intercept({ path: "/", method: "GET" }).reply(\n 200,\n {\n id: "R7UfaahVfFd",\n joke: "Funny joke goes here.",\n status: 200,\n },\n {\n headers: {\n "Content-Type": "application/json; charset=utf-8",\n },\n },\n );\n\n // Try/catch is not needed as a response object will always be returned\n const response = await fetch<TheChuckNorrisJoke>(jokeURL, {\n headers: {\n Accept: "application/json",\n },\n });\n\n // Instead, check the `response.ok` field\n if (response.ok) {\n const { joke } = response.data;\n // Add Joke to the Store\n await Store.setItemAndWait(jokeURL, joke);\n // Add the Chuck Norris joke to the configmap\n try {\n await K8s(kind.ConfigMap).Apply({\n metadata: {\n name: cm.metadata.name,\n namespace: cm.metadata.namespace,\n },\n data: {\n "chuck-says": Store.getItem(jokeURL),\n },\n });\n } catch (error) {\n Log.error(error, "Failed to apply ConfigMap using server-side apply.", {\n cm,\n });\n }\n }\n\n // You can also assert on different HTTP response codes\n if (response.status === fetchStatus.NOT_FOUND) {\n // Do something else\n return;\n }\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (Secret Base64 Handling) *\n * ---------------------------------------------------------------------------------------------------\n *\n * The K8s JS client provides incomplete support for base64 encoding/decoding handling for secrets,\n * unlike the GO client. To make this less painful, Pepr automatically handles base64 encoding/decoding\n * secret data before and after the action is executed.\n */\nWhen(a.Secret)\n .IsCreated()\n .WithName("secret-1")\n .Mutate(request => {\n const secret = request.Raw;\n\n // This will be encoded at the end of all processing back to base64: "Y2hhbmdlLXdpdGhvdXQtZW5jb2Rpbmc="\n secret.data.magic = "change-without-encoding";\n\n // You can modify the data directly, and it will be encoded at the end of all processing\n secret.data.example += " - modified by Pepr";\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (Untyped Custom Resource) *\n * ---------------------------------------------------------------------------------------------------\n *\n * Out of the box, Pepr supports all the standard Kubernetes objects. However, you can also create\n * your own types. This is useful if you are working with an Operator that creates custom resources.\n * There are two ways to do this, the first is to use the `When()` function with a `GenericKind`,\n * the second is to create a new class that extends `GenericKind` and use the `RegisterKind()` function.\n *\n * This example shows how to use the `When()` function with a `GenericKind`. Note that you\n * must specify the `group`, `version`, and `kind` of the object (if applicable). This is how Pepr knows\n * if the action should be triggered or not. Since we are using a `GenericKind`,\n * Pepr will not be able to provide any intellisense for the object, so you will need to refer to the\n * Kubernetes API documentation for the object you are working with.\n *\n * You will need to wait for the CRD in `hello-pepr.samples.yaml` to be created, then you can apply\n *\n * ```yaml\n * apiVersion: pepr.dev/v1\n * kind: Unicorn\n * metadata:\n * name: example-1\n * namespace: pepr-demo\n * spec:\n * message: replace-me\n * counter: 0\n * ```\n */\nWhen(a.GenericKind, {\n group: "pepr.dev",\n version: "v1",\n kind: "Unicorn",\n})\n .IsCreated()\n .WithName("example-1")\n .Mutate(request => {\n request.Merge({\n spec: {\n message: "Hello Pepr without type data!",\n counter: Math.random(),\n },\n });\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (Typed Custom Resource) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This example shows how to use the `RegisterKind()` function to create a new type. This is useful\n * if you are working with an Operator that creates custom resources and you want to have intellisense\n * for the object. Note that you must specify the `group`, `version`, and `kind` of the object (if applicable)\n * as this is how Pepr knows if the action should be triggered or not.\n *\n * Once you register a new Kind with Pepr, you can use the `When()` function with the new Kind. Ideally,\n * you should register custom Kinds at the top of your Capability file or Pepr Module so they are available\n * to all actions, but we are putting it here for demonstration purposes.\n *\n * You will need to wait for the CRD in `hello-pepr.samples.yaml` to be created, then you can apply\n *\n * ```yaml\n * apiVersion: pepr.dev/v1\n * kind: Unicorn\n * metadata:\n * name: example-2\n * namespace: pepr-demo\n * spec:\n * message: replace-me\n * counter: 0\n * ```*\n */\nclass UnicornKind extends a.GenericKind {\n spec: {\n /**\n * JSDoc comments can be added to explain more details about the field.\n *\n * @example\n * ```ts\n * request.Raw.spec.message = "Hello Pepr!";\n * ```\n * */\n message: string;\n counter: number;\n };\n}\n\nRegisterKind(UnicornKind, {\n group: "pepr.dev",\n version: "v1",\n kind: "Unicorn",\n});\n\nWhen(UnicornKind)\n .IsCreated()\n .WithName("example-2")\n .Mutate(request => {\n request.Merge({\n spec: {\n message: "Hello Pepr with type data!",\n counter: Math.random(),\n },\n });\n });\n\n/**\n * A callback function that is called once the Pepr Store is fully loaded.\n */\nStore.onReady(data => {\n Log.info(data, "Pepr Store Ready");\n});\n';
1787
- var packageJSON = { name: "pepr", description: "Kubernetes application engine", author: "Defense Unicorns", homepage: "https://github.com/defenseunicorns/pepr", license: "Apache-2.0", bin: "dist/cli.js", repository: "defenseunicorns/pepr", engines: { node: ">=18.0.0" }, files: ["/dist", "/src", "!src/**/*.test.ts", "!dist/**/*.test.d.ts*"], version: "0.46.2", main: "dist/lib.js", types: "dist/lib.d.ts", scripts: { ci: "npm ci", "gen-data-json": "node hack/build-template-data.js", prebuild: "rm -fr dist/* && npm run gen-data-json", build: "tsc && node build.mjs && npm pack", "build:image": "npm run build && docker buildx build --output type=docker --tag pepr:dev .", "build:image:unicorn": "npm run build && docker buildx build -f Dockerfile --output type=docker --tag pepr:dev $(node scripts/read-unicorn-build-args.js) .", "set:version": "node scripts/set-version.js", test: "npm run test:unit && npm run test:journey && npm run test:journey-wasm", "test:unit": "npm run gen-data-json && jest src --coverage --detectOpenHandles --coverageDirectory=./coverage --testPathIgnorePatterns='cosign.e2e.test.ts'", "test:integration": "npm run test:integration:prep && npm run test:integration:run", "test:integration:prep": "./integration/prep.sh", "test:integration:run": "jest --maxWorkers=4 integration", "test:journey": "npm run test:journey:k3d && npm run build && npm run test:journey:image && npm run test:journey:run", "test:journey:unicorn": "npm run test:journey:k3d && npm run build && npm run test:journey:image:unicorn && npm run test:journey:run", "test:journey-wasm": "npm run test:journey:k3d && npm run build && npm run test:journey:image && npm run test:journey:run-wasm", "test:journey-wasm:unicorn": "npm run test:journey:k3d && npm run build && npm run test:journey:image:unicorn && npm run test:journey:run-wasm", "test:journey:k3d": "k3d cluster delete pepr-dev && k3d cluster create pepr-dev --k3s-arg '--debug@server:0' --wait && kubectl rollout status deployment -n kube-system", "test:journey:image": "docker buildx build --output type=docker --tag pepr:dev . && k3d image import pepr:dev -c pepr-dev", "test:journey:image:unicorn": "docker buildx build -f Dockerfile --output type=docker --tag pepr:dev $(node scripts/read-unicorn-build-args.js) . && k3d image import pepr:dev -c pepr-dev", "test:journey:run": "jest --detectOpenHandles journey/entrypoint.test.ts && npm run test:journey:upgrade", "test:journey:run-wasm": "jest --detectOpenHandles journey/entrypoint-wasm.test.ts", "test:journey:upgrade": "npm run test:journey:k3d && npm run test:journey:image && jest --detectOpenHandles journey/pepr-upgrade.test.ts", "format:check": "eslint src && prettier src --check", "format:fix": "eslint src --fix && prettier src --write", prepare: `if [ "$NODE_ENV" != 'production' ]; then husky; fi` }, dependencies: { "@types/ramda": "0.30.2", express: "4.21.2", "fast-json-patch": "3.1.1", "follow-redirects": "1.15.9", "http-status-codes": "^2.3.0", "json-pointer": "^0.6.2", "kubernetes-fluent-client": "3.4.5", pino: "9.6.0", "pino-pretty": "13.0.0", "prom-client": "15.1.3", ramda: "0.30.1", sigstore: "3.1.0" }, devDependencies: { "@commitlint/cli": "19.8.0", "@commitlint/config-conventional": "19.8.0", "@eslint/eslintrc": "^3.3.0", "@eslint/js": "^9.21.0", "@fast-check/jest": "^2.0.1", "@jest/globals": "29.7.0", "@types/eslint": "9.6.1", "@types/express": "5.0.0", "@types/follow-redirects": "1.14.4", "@types/json-pointer": "^1.0.34", "@types/node": "22.x.x", "@types/node-forge": "1.3.11", "@types/uuid": "10.0.0", eslint: "^9.21.0", "fast-check": "^4.0.0", globals: "^16.0.0", husky: "^9.1.6", jest: "29.7.0", "js-yaml": "^4.1.0", shellcheck: "^3.0.0", "ts-jest": "29.2.6", "typescript-eslint": "^8.26.0", undici: "^7.0.1" }, overrides: { glob: "^9.0.0" }, peerDependencies: { "@types/prompts": "2.4.9", "@typescript-eslint/eslint-plugin": "8.23.0", "@typescript-eslint/parser": "8.23.0", commander: "13.1.0", esbuild: "0.25.0", eslint: "8.57.0", "node-forge": "1.3.1", prettier: "3.4.2", prompts: "2.4.2", typescript: "5.7.3", uuid: "11.0.5" } };
1833
+ var helloPeprTS = 'import {\n Capability,\n K8s,\n Log,\n PeprMutateRequest,\n RegisterKind,\n a,\n fetch,\n fetchStatus,\n kind,\n} from "pepr";\nimport { MockAgent, setGlobalDispatcher } from "undici";\n\n/**\n * The HelloPepr Capability is an example capability to demonstrate some general concepts of Pepr.\n * To test this capability you run `pepr dev`and then run the following command:\n * `kubectl apply -f capabilities/hello-pepr.samples.yaml`\n */\nexport const HelloPepr = new Capability({\n name: "hello-pepr",\n description: "A simple example capability to show how things work.",\n namespaces: ["pepr-demo", "pepr-demo-2"],\n});\n\n// Use the \'When\' function to create a new action, use \'Store\' to persist data\nconst { When, Store } = HelloPepr;\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (Namespace) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action removes the label `remove-me` when a Namespace is created.\n * Note we don\'t need to specify the namespace here, because we\'ve already specified\n * it in the Capability definition above.\n */\nWhen(a.Namespace)\n .IsCreated()\n .Mutate(ns => ns.RemoveLabel("remove-me"));\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Watch Action with K8s SSA (Namespace) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action watches for the `pepr-demo-2` namespace to be created, then creates a ConfigMap with\n * the name `pepr-ssa-demo` and adds the namespace UID to the ConfigMap data. Because Pepr uses\n * server-side apply for this operation, the ConfigMap will be created or updated if it already exists.\n */\nWhen(a.Namespace)\n .IsCreated()\n .WithName("pepr-demo-2")\n .Watch(async ns => {\n Log.info("Namespace pepr-demo-2 was created.");\n\n try {\n // Apply the ConfigMap using K8s server-side apply\n await K8s(kind.ConfigMap).Apply({\n metadata: {\n name: "pepr-ssa-demo",\n namespace: "pepr-demo-2",\n },\n data: {\n "ns-uid": ns.metadata.uid,\n },\n });\n } catch (error) {\n // You can use the Log object to log messages to the Pepr controller pod\n Log.error(error, "Failed to apply ConfigMap using server-side apply.");\n }\n\n // You can share data between actions using the Store, including between different types of actions\n Store.setItem("watch-data", "This data was stored by a Watch Action.");\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 1) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This is a single action. They can be in the same file or put imported from other files.\n * In this example, when a ConfigMap is created with the name `example-1`, then add a label and annotation.\n *\n * Equivalent to manually running:\n * `kubectl label configmap example-1 pepr=was-here`\n * `kubectl annotate configmap example-1 pepr.dev=annotations-work-too`\n */\nWhen(a.ConfigMap)\n .IsCreated()\n .WithName("example-1")\n .Mutate(request => {\n request.SetLabel("pepr", "was-here").SetAnnotation("pepr.dev", "annotations-work-too");\n\n // Use the Store to persist data between requests and Pepr controller pods\n Store.setItem("example-1", "was-here");\n\n // This data is written asynchronously and can be read back via `Store.getItem()` or `Store.subscribe()`\n Store.setItem("example-1-data", JSON.stringify(request.Raw.data));\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate & Validate Actions (CM Example 2) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This combines 3 different types of actions: \'Mutate\', \'Validate\', and \'Watch\'. The order\n * of the actions is required, but each action is optional. In this example, when a ConfigMap is created\n * with the name `example-2`, then add a label and annotation, validate that the ConfigMap has the label\n * `pepr`, and log the request.\n */\nWhen(a.ConfigMap)\n .IsCreated()\n .WithName("example-2")\n .Mutate(request => {\n // This Mutate Action will mutate the request before it is persisted to the cluster\n\n // Use `request.Merge()` to merge the new data with the existing data\n request.Merge({\n metadata: {\n labels: {\n pepr: "was-here",\n },\n annotations: {\n "pepr.dev": "annotations-work-too",\n },\n },\n });\n })\n .Validate(request => {\n // This Validate Action will validate the request before it is persisted to the cluster\n\n // Approve the request if the ConfigMap has the label \'pepr\'\n if (request.HasLabel("pepr")) {\n return request.Approve();\n }\n\n // Otherwise, deny the request with an error message (optional)\n return request.Deny("ConfigMap must have label \'pepr\'");\n })\n .Watch((cm, phase) => {\n // This Watch Action will watch the ConfigMap after it has been persisted to the cluster\n Log.info(cm, `ConfigMap was ${phase} with the name example-2`);\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 2a) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action shows a simple validation that will deny any ConfigMap that has the\n * annotation `evil`. Note that the `Deny()` function takes an optional second parameter that is a\n * user-defined status code to return.\n */\nWhen(a.ConfigMap)\n .IsCreated()\n .Validate(request => {\n if (request.HasAnnotation("evil")) {\n return request.Deny("No evil CM annotations allowed.", 400);\n }\n\n return request.Approve();\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 3) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action combines different styles. Unlike the previous actions, this one will look\n * for any ConfigMap in the `pepr-demo` namespace that has the label `change=by-label` during either\n * CREATE or UPDATE. Note that all conditions added such as `WithName()`, `WithLabel()`, `InNamespace()`,\n * are ANDs so all conditions must be true for the request to be processed.\n */\nWhen(a.ConfigMap)\n .IsCreatedOrUpdated()\n .WithLabel("change", "by-label")\n .Mutate(request => {\n // The K8s object e are going to mutate\n const cm = request.Raw;\n\n // Get the username and uid of the K8s request\n const { username, uid } = request.Request.userInfo;\n\n // Store some data about the request in the configmap\n cm.data["username"] = username;\n cm.data["uid"] = uid;\n\n // You can still mix other ways of making changes too\n request.SetAnnotation("pepr.dev", "making-waves");\n });\n\n// This action validates the label `change=by-label` is deleted\nWhen(a.ConfigMap)\n .IsDeleted()\n .WithLabel("change", "by-label")\n .Validate(request => {\n // Log and then always approve the request\n Log.info("CM with label \'change=by-label\' was deleted.");\n return request.Approve();\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 4) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action show how you can use the `Mutate()` function without an inline function.\n * This is useful if you want to keep your actions small and focused on a single task,\n * or if you want to reuse the same function in multiple actions.\n */\nWhen(a.ConfigMap).IsCreated().WithName("example-4").Mutate(example4Cb);\n\n// This function uses the complete type definition, but is not required.\nfunction example4Cb(cm: PeprMutateRequest<a.ConfigMap>) {\n cm.SetLabel("pepr.dev/first", "true");\n cm.SetLabel("pepr.dev/second", "true");\n cm.SetLabel("pepr.dev/third", "true");\n}\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 4a) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This is the same as Example 4, except this only operates on a CM in the `pepr-demo-2` namespace.\n * Note because the Capability defines namespaces, the namespace specified here must be one of those.\n * Alternatively, you can remove the namespace from the Capability definition and specify it here.\n */\nWhen(a.ConfigMap).IsCreated().InNamespace("pepr-demo-2").WithName("example-4a").Mutate(example4Cb);\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (CM Example 5) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This action is a bit more complex. It will look for any ConfigMap in the `pepr-demo`\n * namespace that has the label `chuck-norris` during CREATE. When it finds one, it will fetch a\n * random Chuck Norris joke from the API and add it to the ConfigMap. This is a great example of how\n * you can use Pepr to make changes to your K8s objects based on external data.\n *\n * Note the use of the `async` keyword. This is required for any action that uses `await` or `fetch()`.\n *\n * Also note we are passing a type to the `fetch()` function. This is optional, but it will help you\n * avoid mistakes when working with the data returned from the API. You can also use the `as` keyword to\n * cast the data returned from the API.\n *\n * These are equivalent:\n * ```ts\n * const joke = await fetch<TheChuckNorrisJoke>("https://icanhazdadjoke.com/");\n * const joke = await fetch("https://icanhazdadjoke.com/") as TheChuckNorrisJoke;\n * ```\n *\n * Alternatively, you can drop the type completely:\n *\n * ```ts\n * fetch("https://icanhazdadjoke.com")\n * ```\n */\ninterface TheChuckNorrisJoke {\n id: string;\n joke: string;\n status: number;\n}\n\nWhen(a.ConfigMap)\n .IsCreatedOrUpdated()\n .WithLabel("chuck-norris")\n .Mutate(cm => cm.SetLabel("got-jokes", "true"))\n .Watch(async cm => {\n const jokeURL = "https://icanhazdadjoke.com";\n\n const mockAgent: MockAgent = new MockAgent();\n setGlobalDispatcher(mockAgent);\n const mockClient = mockAgent.get(jokeURL);\n mockClient.intercept({ path: "/", method: "GET" }).reply(\n 200,\n {\n id: "R7UfaahVfFd",\n joke: "Funny joke goes here.",\n status: 200,\n },\n {\n headers: {\n "Content-Type": "application/json; charset=utf-8",\n },\n },\n );\n\n // Try/catch is not needed as a response object will always be returned\n const response = await fetch<TheChuckNorrisJoke>(jokeURL, {\n headers: {\n Accept: "application/json",\n },\n });\n\n // Instead, check the `response.ok` field\n if (response.ok) {\n const { joke } = response.data;\n // Add Joke to the Store\n await Store.setItemAndWait(jokeURL, joke);\n // Add the Chuck Norris joke to the configmap\n try {\n await K8s(kind.ConfigMap).Apply({\n metadata: {\n name: cm.metadata.name,\n namespace: cm.metadata.namespace,\n },\n data: {\n "chuck-says": Store.getItem(jokeURL),\n },\n });\n } catch (error) {\n Log.error(error, "Failed to apply ConfigMap using server-side apply.", {\n cm,\n });\n }\n }\n\n // You can also assert on different HTTP response codes\n if (response.status === fetchStatus.NOT_FOUND) {\n // Do something else\n return;\n }\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (Secret Base64 Handling) *\n * ---------------------------------------------------------------------------------------------------\n *\n * The K8s JS client provides incomplete support for base64 encoding/decoding handling for secrets,\n * unlike the GO client. To make this less painful, Pepr automatically handles base64 encoding/decoding\n * secret data before and after the action is executed.\n */\nWhen(a.Secret)\n .IsCreated()\n .WithName("secret-1")\n .Mutate(request => {\n const secret = request.Raw;\n\n // This will be encoded at the end of all processing back to base64: "Y2hhbmdlLXdpdGhvdXQtZW5jb2Rpbmc="\n secret.data.magic = "change-without-encoding";\n\n // You can modify the data directly, and it will be encoded at the end of all processing\n secret.data.example += " - modified by Pepr";\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (Untyped Custom Resource) *\n * ---------------------------------------------------------------------------------------------------\n *\n * Out of the box, Pepr supports all the standard Kubernetes objects. However, you can also create\n * your own types. This is useful if you are working with an Operator that creates custom resources.\n * There are two ways to do this, the first is to use the `When()` function with a `GenericKind`,\n * the second is to create a new class that extends `GenericKind` and use the `RegisterKind()` function.\n *\n * This example shows how to use the `When()` function with a `GenericKind`. Note that you\n * must specify the `group`, `version`, and `kind` of the object (if applicable). This is how Pepr knows\n * if the action should be triggered or not. Since we are using a `GenericKind`,\n * Pepr will not be able to provide any intellisense for the object, so you will need to refer to the\n * Kubernetes API documentation for the object you are working with.\n *\n * You will need to wait for the CRD in `hello-pepr.samples.yaml` to be created, then you can apply\n *\n * ```yaml\n * apiVersion: pepr.dev/v1\n * kind: Unicorn\n * metadata:\n * name: example-1\n * namespace: pepr-demo\n * spec:\n * message: replace-me\n * counter: 0\n * ```\n */\nWhen(a.GenericKind, {\n group: "pepr.dev",\n version: "v1",\n kind: "Unicorn",\n})\n .IsCreated()\n .WithName("example-1")\n .Mutate(request => {\n request.Merge({\n spec: {\n message: "Hello Pepr without type data!",\n counter: Math.random(),\n },\n });\n });\n\n/**\n * ---------------------------------------------------------------------------------------------------\n * Mutate Action (Typed Custom Resource) *\n * ---------------------------------------------------------------------------------------------------\n *\n * This example shows how to use the `RegisterKind()` function to create a new type. This is useful\n * if you are working with an Operator that creates custom resources and you want to have intellisense\n * for the object. Note that you must specify the `group`, `version`, and `kind` of the object (if applicable)\n * as this is how Pepr knows if the action should be triggered or not.\n *\n * Once you register a new Kind with Pepr, you can use the `When()` function with the new Kind. Ideally,\n * you should register custom Kinds at the top of your Capability file or Pepr Module so they are available\n * to all actions, but we are putting it here for demonstration purposes.\n *\n * You will need to wait for the CRD in `hello-pepr.samples.yaml` to be created, then you can apply\n *\n * ```yaml\n * apiVersion: pepr.dev/v1\n * kind: Unicorn\n * metadata:\n * name: example-2\n * namespace: pepr-demo\n * spec:\n * message: replace-me\n * counter: 0\n * ```*\n */\nclass UnicornKind extends a.GenericKind {\n spec: {\n /**\n * JSDoc comments can be added to explain more details about the field.\n *\n * @example\n * ```ts\n * request.Raw.spec.message = "Hello Pepr!";\n * ```\n * */\n message: string;\n counter: number;\n };\n}\n\nRegisterKind(UnicornKind, {\n group: "pepr.dev",\n version: "v1",\n kind: "Unicorn",\n});\n\nWhen(UnicornKind)\n .IsCreated()\n .WithName("example-2")\n .Mutate(request => {\n request.Merge({\n spec: {\n message: "Hello Pepr with type data!",\n counter: Math.random(),\n },\n });\n });\n\n/**\n * A callback function that is called once the Pepr Store is fully loaded.\n */\nStore.onReady(data => {\n Log.info(data, "Pepr Store Ready");\n});\n';
1834
+ var packageJSON = { name: "pepr", description: "Kubernetes application engine", author: "Defense Unicorns", homepage: "https://github.com/defenseunicorns/pepr", license: "Apache-2.0", bin: "dist/cli.js", repository: "defenseunicorns/pepr", engines: { node: ">=18.0.0" }, files: ["/dist", "/src", "!src/**/*.test.ts", "!dist/**/*.test.d.ts*"], version: "0.46.3", main: "dist/lib.js", types: "dist/lib.d.ts", scripts: { ci: "npm ci", "gen-data-json": "node hack/build-template-data.js", prebuild: "rm -fr dist/* && npm run gen-data-json", build: "tsc && node build.mjs && npm pack", "build:image": "npm run build && docker buildx build --output type=docker --tag pepr:dev .", "build:image:unicorn": "npm run build && docker buildx build --output type=docker --tag pepr:dev $(node scripts/read-unicorn-build-args.mjs) .", "set:version": "node scripts/set-version.js", test: "npm run test:unit && npm run test:journey && npm run test:journey-wasm", "test:unit": "npm run gen-data-json && jest src --coverage --detectOpenHandles --coverageDirectory=./coverage --testPathIgnorePatterns='cosign.e2e.test.ts'", "test:integration": "npm run test:integration:prep && npm run test:integration:run", "test:integration:prep": "./integration/prep.sh", "test:integration:run": "jest --maxWorkers=4 integration", "test:journey": "npm run test:journey:k3d && npm run build && npm run test:journey:image && npm run test:journey:run", "test:journey:unicorn": "npm run test:journey:k3d && npm run build && npm run test:journey:image:unicorn && npm run test:journey:run", "test:journey-wasm": "npm run test:journey:k3d && npm run build && npm run test:journey:image && npm run test:journey:run-wasm", "test:journey-wasm:unicorn": "npm run test:journey:k3d && npm run build && npm run test:journey:image:unicorn && npm run test:journey:run-wasm", "test:journey:k3d": "k3d cluster delete pepr-dev && k3d cluster create pepr-dev --k3s-arg '--debug@server:0' --wait && kubectl rollout status deployment -n kube-system", "test:journey:image": "docker buildx build --output type=docker --tag pepr:dev . && k3d image import pepr:dev -c pepr-dev", "test:journey:image:unicorn": "docker buildx build --output type=docker --tag pepr:dev $(node scripts/read-unicorn-build-args.mjs) . && k3d image import pepr:dev -c pepr-dev", "test:journey:run": "jest --detectOpenHandles journey/entrypoint.test.ts && npm run test:journey:upgrade", "test:journey:run-wasm": "jest --detectOpenHandles journey/entrypoint-wasm.test.ts", "test:journey:upgrade": "npm run test:journey:k3d && npm run test:journey:image && jest --detectOpenHandles journey/pepr-upgrade.test.ts", "format:check": "eslint src && prettier --config .prettierrc src --check", "format:fix": "eslint src --fix && prettier --config .prettierrc src --write", prepare: `if [ "$NODE_ENV" != 'production' ]; then husky; fi` }, dependencies: { "@types/ramda": "0.30.2", express: "4.21.2", "fast-json-patch": "3.1.1", heredoc: "^1.3.1", "http-status-codes": "^2.3.0", "json-pointer": "^0.6.2", "kubernetes-fluent-client": "3.4.5", pino: "9.6.0", "pino-pretty": "13.0.0", "prom-client": "15.1.3", ramda: "0.30.1", sigstore: "3.1.0" }, devDependencies: { "@commitlint/cli": "19.8.0", "@commitlint/config-conventional": "19.8.0", "@fast-check/jest": "^2.0.1", "@jest/globals": "29.7.0", "@types/eslint": "9.6.1", "@types/express": "5.0.1", "@types/json-pointer": "^1.0.34", "@types/node": "22.x.x", "@types/node-forge": "1.3.11", "@types/uuid": "10.0.0", "fast-check": "^4.0.0", globals: "^16.0.0", husky: "^9.1.6", jest: "29.7.0", "js-yaml": "^4.1.0", shellcheck: "^3.0.0", "ts-jest": "29.2.6", undici: "^7.0.1" }, overrides: { glob: "^9.0.0" }, peerDependencies: { "@types/prompts": "2.4.9", "@typescript-eslint/eslint-plugin": "8.23.0", "@typescript-eslint/parser": "8.23.0", commander: "13.1.0", esbuild: "0.25.0", eslint: "8.57.0", "node-forge": "1.3.1", prettier: "3.4.2", prompts: "2.4.2", typescript: "5.7.3", uuid: "11.0.5" } };
1788
1835
 
1789
1836
  // src/cli/init/utils.ts
1790
1837
  var import_fs4 = require("fs");
@@ -2040,7 +2087,10 @@ async function generateWebhookRules(assets, isMutateWebhook) {
2040
2087
  async function webhookConfigGenerator(assets, mutateOrValidate, timeoutSeconds = 10) {
2041
2088
  const ignore = [];
2042
2089
  const { name: name2, tls, config, apiPath, host } = assets;
2043
- const ignoreNS = (0, import_ramda.concat)(peprIgnoreNamespaces, resolveIgnoreNamespaces(config?.alwaysIgnore?.namespaces));
2090
+ const ignoreNS = (0, import_ramda.concat)(
2091
+ peprIgnoreNamespaces,
2092
+ resolveIgnoreNamespaces(config?.alwaysIgnore?.namespaces)
2093
+ );
2044
2094
  if (ignoreNS) {
2045
2095
  ignore.push({
2046
2096
  key: "kubernetes.io/metadata.name",
@@ -2110,7 +2160,11 @@ async function generateAllYaml(assets, deployments) {
2110
2160
  ];
2111
2161
  const webhooks = {
2112
2162
  mutate: await webhookConfigGenerator(assets, "mutate" /* MUTATE */, assets.config.webhookTimeout),
2113
- validate: await webhookConfigGenerator(assets, "validate" /* VALIDATE */, assets.config.webhookTimeout)
2163
+ validate: await webhookConfigGenerator(
2164
+ assets,
2165
+ "validate" /* VALIDATE */,
2166
+ assets.config.webhookTimeout
2167
+ )
2114
2168
  };
2115
2169
  const additionalResources = [webhooks.mutate, webhooks.validate, deployments.watch].filter(
2116
2170
  (resource) => resource !== null && resource !== void 0
@@ -2559,7 +2613,9 @@ async function handleWebhookConfiguration(assets, type, webhookTimeout, force) {
2559
2613
  logger_default.info(`Applying ${type} webhook`);
2560
2614
  await (0, import_kubernetes_fluent_client3.K8s)(kindMap[type]).Apply(webhookConfig, { force });
2561
2615
  } else {
2562
- logger_default.info(`${type.charAt(0).toUpperCase() + type.slice(1)} webhook not needed, removing if it exists`);
2616
+ logger_default.info(
2617
+ `${type.charAt(0).toUpperCase() + type.slice(1)} webhook not needed, removing if it exists`
2618
+ );
2563
2619
  await (0, import_kubernetes_fluent_client3.K8s)(kindMap[type]).Delete(assets.name);
2564
2620
  }
2565
2621
  }
@@ -51,7 +51,7 @@ if (process.env.LOG_LEVEL) {
51
51
  var logger_default = Log;
52
52
 
53
53
  // src/templates/data.json
54
- var packageJSON = { name: "pepr", description: "Kubernetes application engine", author: "Defense Unicorns", homepage: "https://github.com/defenseunicorns/pepr", license: "Apache-2.0", bin: "dist/cli.js", repository: "defenseunicorns/pepr", engines: { node: ">=18.0.0" }, files: ["/dist", "/src", "!src/**/*.test.ts", "!dist/**/*.test.d.ts*"], version: "0.46.2", main: "dist/lib.js", types: "dist/lib.d.ts", scripts: { ci: "npm ci", "gen-data-json": "node hack/build-template-data.js", prebuild: "rm -fr dist/* && npm run gen-data-json", build: "tsc && node build.mjs && npm pack", "build:image": "npm run build && docker buildx build --output type=docker --tag pepr:dev .", "build:image:unicorn": "npm run build && docker buildx build -f Dockerfile --output type=docker --tag pepr:dev $(node scripts/read-unicorn-build-args.js) .", "set:version": "node scripts/set-version.js", test: "npm run test:unit && npm run test:journey && npm run test:journey-wasm", "test:unit": "npm run gen-data-json && jest src --coverage --detectOpenHandles --coverageDirectory=./coverage --testPathIgnorePatterns='cosign.e2e.test.ts'", "test:integration": "npm run test:integration:prep && npm run test:integration:run", "test:integration:prep": "./integration/prep.sh", "test:integration:run": "jest --maxWorkers=4 integration", "test:journey": "npm run test:journey:k3d && npm run build && npm run test:journey:image && npm run test:journey:run", "test:journey:unicorn": "npm run test:journey:k3d && npm run build && npm run test:journey:image:unicorn && npm run test:journey:run", "test:journey-wasm": "npm run test:journey:k3d && npm run build && npm run test:journey:image && npm run test:journey:run-wasm", "test:journey-wasm:unicorn": "npm run test:journey:k3d && npm run build && npm run test:journey:image:unicorn && npm run test:journey:run-wasm", "test:journey:k3d": "k3d cluster delete pepr-dev && k3d cluster create pepr-dev --k3s-arg '--debug@server:0' --wait && kubectl rollout status deployment -n kube-system", "test:journey:image": "docker buildx build --output type=docker --tag pepr:dev . && k3d image import pepr:dev -c pepr-dev", "test:journey:image:unicorn": "docker buildx build -f Dockerfile --output type=docker --tag pepr:dev $(node scripts/read-unicorn-build-args.js) . && k3d image import pepr:dev -c pepr-dev", "test:journey:run": "jest --detectOpenHandles journey/entrypoint.test.ts && npm run test:journey:upgrade", "test:journey:run-wasm": "jest --detectOpenHandles journey/entrypoint-wasm.test.ts", "test:journey:upgrade": "npm run test:journey:k3d && npm run test:journey:image && jest --detectOpenHandles journey/pepr-upgrade.test.ts", "format:check": "eslint src && prettier src --check", "format:fix": "eslint src --fix && prettier src --write", prepare: `if [ "$NODE_ENV" != 'production' ]; then husky; fi` }, dependencies: { "@types/ramda": "0.30.2", express: "4.21.2", "fast-json-patch": "3.1.1", "follow-redirects": "1.15.9", "http-status-codes": "^2.3.0", "json-pointer": "^0.6.2", "kubernetes-fluent-client": "3.4.5", pino: "9.6.0", "pino-pretty": "13.0.0", "prom-client": "15.1.3", ramda: "0.30.1", sigstore: "3.1.0" }, devDependencies: { "@commitlint/cli": "19.8.0", "@commitlint/config-conventional": "19.8.0", "@eslint/eslintrc": "^3.3.0", "@eslint/js": "^9.21.0", "@fast-check/jest": "^2.0.1", "@jest/globals": "29.7.0", "@types/eslint": "9.6.1", "@types/express": "5.0.0", "@types/follow-redirects": "1.14.4", "@types/json-pointer": "^1.0.34", "@types/node": "22.x.x", "@types/node-forge": "1.3.11", "@types/uuid": "10.0.0", eslint: "^9.21.0", "fast-check": "^4.0.0", globals: "^16.0.0", husky: "^9.1.6", jest: "29.7.0", "js-yaml": "^4.1.0", shellcheck: "^3.0.0", "ts-jest": "29.2.6", "typescript-eslint": "^8.26.0", undici: "^7.0.1" }, overrides: { glob: "^9.0.0" }, peerDependencies: { "@types/prompts": "2.4.9", "@typescript-eslint/eslint-plugin": "8.23.0", "@typescript-eslint/parser": "8.23.0", commander: "13.1.0", esbuild: "0.25.0", eslint: "8.57.0", "node-forge": "1.3.1", prettier: "3.4.2", prompts: "2.4.2", typescript: "5.7.3", uuid: "11.0.5" } };
54
+ var packageJSON = { name: "pepr", description: "Kubernetes application engine", author: "Defense Unicorns", homepage: "https://github.com/defenseunicorns/pepr", license: "Apache-2.0", bin: "dist/cli.js", repository: "defenseunicorns/pepr", engines: { node: ">=18.0.0" }, files: ["/dist", "/src", "!src/**/*.test.ts", "!dist/**/*.test.d.ts*"], version: "0.46.3", main: "dist/lib.js", types: "dist/lib.d.ts", scripts: { ci: "npm ci", "gen-data-json": "node hack/build-template-data.js", prebuild: "rm -fr dist/* && npm run gen-data-json", build: "tsc && node build.mjs && npm pack", "build:image": "npm run build && docker buildx build --output type=docker --tag pepr:dev .", "build:image:unicorn": "npm run build && docker buildx build --output type=docker --tag pepr:dev $(node scripts/read-unicorn-build-args.mjs) .", "set:version": "node scripts/set-version.js", test: "npm run test:unit && npm run test:journey && npm run test:journey-wasm", "test:unit": "npm run gen-data-json && jest src --coverage --detectOpenHandles --coverageDirectory=./coverage --testPathIgnorePatterns='cosign.e2e.test.ts'", "test:integration": "npm run test:integration:prep && npm run test:integration:run", "test:integration:prep": "./integration/prep.sh", "test:integration:run": "jest --maxWorkers=4 integration", "test:journey": "npm run test:journey:k3d && npm run build && npm run test:journey:image && npm run test:journey:run", "test:journey:unicorn": "npm run test:journey:k3d && npm run build && npm run test:journey:image:unicorn && npm run test:journey:run", "test:journey-wasm": "npm run test:journey:k3d && npm run build && npm run test:journey:image && npm run test:journey:run-wasm", "test:journey-wasm:unicorn": "npm run test:journey:k3d && npm run build && npm run test:journey:image:unicorn && npm run test:journey:run-wasm", "test:journey:k3d": "k3d cluster delete pepr-dev && k3d cluster create pepr-dev --k3s-arg '--debug@server:0' --wait && kubectl rollout status deployment -n kube-system", "test:journey:image": "docker buildx build --output type=docker --tag pepr:dev . && k3d image import pepr:dev -c pepr-dev", "test:journey:image:unicorn": "docker buildx build --output type=docker --tag pepr:dev $(node scripts/read-unicorn-build-args.mjs) . && k3d image import pepr:dev -c pepr-dev", "test:journey:run": "jest --detectOpenHandles journey/entrypoint.test.ts && npm run test:journey:upgrade", "test:journey:run-wasm": "jest --detectOpenHandles journey/entrypoint-wasm.test.ts", "test:journey:upgrade": "npm run test:journey:k3d && npm run test:journey:image && jest --detectOpenHandles journey/pepr-upgrade.test.ts", "format:check": "eslint src && prettier --config .prettierrc src --check", "format:fix": "eslint src --fix && prettier --config .prettierrc src --write", prepare: `if [ "$NODE_ENV" != 'production' ]; then husky; fi` }, dependencies: { "@types/ramda": "0.30.2", express: "4.21.2", "fast-json-patch": "3.1.1", heredoc: "^1.3.1", "http-status-codes": "^2.3.0", "json-pointer": "^0.6.2", "kubernetes-fluent-client": "3.4.5", pino: "9.6.0", "pino-pretty": "13.0.0", "prom-client": "15.1.3", ramda: "0.30.1", sigstore: "3.1.0" }, devDependencies: { "@commitlint/cli": "19.8.0", "@commitlint/config-conventional": "19.8.0", "@fast-check/jest": "^2.0.1", "@jest/globals": "29.7.0", "@types/eslint": "9.6.1", "@types/express": "5.0.1", "@types/json-pointer": "^1.0.34", "@types/node": "22.x.x", "@types/node-forge": "1.3.11", "@types/uuid": "10.0.0", "fast-check": "^4.0.0", globals: "^16.0.0", husky: "^9.1.6", jest: "29.7.0", "js-yaml": "^4.1.0", shellcheck: "^3.0.0", "ts-jest": "29.2.6", undici: "^7.0.1" }, overrides: { glob: "^9.0.0" }, peerDependencies: { "@types/prompts": "2.4.9", "@typescript-eslint/eslint-plugin": "8.23.0", "@typescript-eslint/parser": "8.23.0", commander: "13.1.0", esbuild: "0.25.0", eslint: "8.57.0", "node-forge": "1.3.1", prettier: "3.4.2", prompts: "2.4.2", typescript: "5.7.3", uuid: "11.0.5" } };
55
55
 
56
56
  // src/lib/k8s.ts
57
57
  var import_kubernetes_fluent_client = require("kubernetes-fluent-client");
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/fixtures/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAMhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,wBAAgB,gCAAgC,IAAI,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAEpF;AAED,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAEtE;AAED,wBAAgB,yBAAyB,IAAI,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAEtE;AAED,wBAAgB,iCAAiC,IAAI,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAEtF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/assets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AASvC,OAAO,EACL,YAAY,EACZ,8BAA8B,EAC9B,gCAAgC,EACjC,MAAM,kCAAkC,CAAC;AAU1C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,qBAAa,MAAM;IACjB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ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AC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,YACxE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,KAClE,OAkBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,sDAG9B,gBAMD,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,gBAAgB,EAwC9C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,EAUpD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAmBtD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,EAUpD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,gBAAgB,EAUnD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/deploy.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAalC,OAAO,EAAoB,eAAe,EAAE,MAAM,UAAU,CAAC;AAG7D,wBAAsB,qBAAqB,CACzC,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CA0Bf;AA0BD,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,EACd,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,IAAI,CAAC,CAwBf"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"destroy.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/destroy.ts"],"names":[],"mappings":"AAQA,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAwB/D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helm.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/helm.ts"],"names":[],"mappings":"AAGA,wBAAgB,mBAAmB,IAAI,MAAM,CAY5C;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAe1C;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CA2BpE;AAED,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAwFpE;AAED,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CA6FtE;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAyB3D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAEvC;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,EACpB,oBAAoB,EAAE,IAAI,CAAC,4BAA4B,GAAG,IAAI,CAAC,8BAA8B,GAC5F,MAAM,CAqCR;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAsCxC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/loader.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CA6B1E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networking.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/networking.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAaxE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAchE;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,OAAO,CAwBlD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,OAAO,CAwBzD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pods.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/pods.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAGhD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,yCAAyC;AACzC,wBAAgB,YAAY,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,gBAAgB,CAmBvF;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,EACtB,eAAe,CAAC,EAAE,MAAM,GACvB,IAAI,CAAC,UAAU,GAAG,IAAI,CAyJxB;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,EACtB,eAAe,CAAC,EAAE,MAAM,GACvB,IAAI,CAAC,UAAU,CA+IjB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAuBrF;AAED,wBAAgB,MAAM,CACpB,MAAM,EAAE,YAAY,EACpB,SAAS,UAAQ,EACjB,eAAe,UAAQ,GACtB,QAAQ,EAAE,CAkBZ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rbac.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/rbac.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,YAAY,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,gBAAgB,EAAE,EAChC,QAAQ,EAAE,MAAM,YAAU,EAC1B,UAAU,EAAE,UAAU,EAAE,GAAG,SAAS,GACnC,IAAI,CAAC,WAAW,CA8ClB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAkBxE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,cAAc,CAShE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,IAAI,CAejD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC,WAAW,CAmB/D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/store.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,IAAI,CAAC,EAAE,MAAM,0BAA0B,CAAC;AAIrD,eAAO,MAAQ,KAAK,UAAE,OAAO,UAAE,IAAI,QAAiB,CAAC;AACrD,eAAO,MAAM,QAAQ,QAA2B,CAAC;AACjD,eAAO,MAAM,MAAM,QAAiB,CAAC;AACrC,eAAO,MAAM,IAAI,QAAuB,CAAC;AAEzC,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,wBAoC5B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/lib/assets/webhooks.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAGhD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAS,WAAW,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,eAAO,MAAM,oBAAoB,EAAE,MAAM,EAAmC,CAAC;AAE7E,eAAO,MAAM,YAAY,YACd,OAAO,mBACC,OAAO,KACvB,oBAAoB,GAAG,SAsBzB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,eAAe,GAAE,MAAM,EAAO,GAAG,MAAM,EAAE,CAahF;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,OAAO,GACvB,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAYjC;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,WAAW,EAC7B,cAAc,SAAK,GAClB,OAAO,CAAC,IAAI,CAAC,4BAA4B,GAAG,IAAI,CAAC,8BAA8B,GAAG,IAAI,CAAC,CAkEzF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateAllYaml.d.ts","sourceRoot":"","sources":["../../../../src/lib/assets/yaml/generateAllYaml.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAUnC,OAAO,EAAY,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAKjE,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,CAAC;AAEzE,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAsC/F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateZarfYaml.d.ts","sourceRoot":"","sources":["../../../../src/lib/assets/yaml/generateZarfYaml.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,KAAK,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEzC,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CAgC9F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overridesFile.d.ts","sourceRoot":"","sources":["../../../../src/lib/assets/yaml/overridesFile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK/C,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,wBAAsB,aAAa,CACjC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,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D,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC7C,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,GAAG,gBAAgB,KAAK,IAAI,CAAC;IAC7D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAMD,qBAAa,UAAU;;gBAmBT,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,KAAK,GAAE,eAAoB;IAmCzF,+BAA+B;IAC/B,WAAW,SAAU,MAAM,KAAG,IAAI,CAwDhC;CA8KH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.util.d.ts","sourceRoot":"","sources":["../../../src/lib/controller/index.util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,EAAE,GAAG,cAAc,GAAG,YAAY,CAAC;CAC9D;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,cAAc,GAAG,mBAAmB,CAMpE;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE,gBAAgB,EAAE,GAAG,mBAAmB,CA0BhG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/lib/controller/store.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUhD,qBAAa,eAAe;;gBAMd,YAAY,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,IAAI;CA0K3E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeCache.d.ts","sourceRoot":"","sources":["../../../src/lib/controller/storeCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAKzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,eAAO,MAAM,wBAAwB,UAC5B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,aACrB,MAAM,QACX,MAAM,KACX,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAqBnC,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,cAAc,UAClB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,kBAChB,MAAM,MAClB,MAAM,aACC,SAAS,KACnB,MAAM,CAAC,MAAM,EAAE,SAAS,CAqB1B,CAAC;AAEF,wBAAgB,aAAa,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,CAO/D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../../../src/lib/core/capability.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAA2B,MAAM,0BAA0B,CAAC;AAInG,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAc,QAAQ,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EACL,OAAO,EAGP,aAAa,EACb,gBAAgB,EAQhB,YAAY,EACb,MAAM,UAAU,CAAC;AAMlB;;GAEG;AACH,qBAAa,UAAW,YAAW,gBAAgB;;IASjD,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;OAKG;IACH,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAqBtC;IAEK,gBAAgB,IAAI,OAAO;IAIlC;;;;;;OAMG;IACH,KAAK,EAAE,SAAS,CASd;IAEF;;;;;;OAMG;IACH,aAAa,EAAE,SAAS,CAStB;IAEF,IAAI,QAAQ,IAAI,OAAO,EAAE,CAExB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,UAAU,IAAI,MAAM,EAAE,CAEzB;gBAEW,GAAG,EAAE,aAAa;IAU9B;;OAEG;IACH,qBAAqB,QAAO,OAAO,CAWjC;IAEF;;;;OAIG;IACH,aAAa,QAAO,OAAO,CAWzB;IAEF;;;;;;;;OAQG;IACH,IAAI,GAAI,CAAC,SAAS,YAAY,SAAS,CAAC,SAAS,gBAAgB,KAAG,YAAY,CAAC,CAAC,CAAC,CAoQjF;CACH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"envChecks.d.ts","sourceRoot":"","sources":["../../../src/lib/core/envChecks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAAO,OAAiD,CAAC;AAGjF,eAAO,MAAM,WAAW,QAAO,OAA4C,CAAC;AAE5E,eAAO,MAAM,SAAS,QAAO,OAA0C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/lib/core/module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAgB,MAAM,UAAU,CAAC;AAExE,qBAAa,UAAU;;IAGrB;;;;;;OAMG;gBAED,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,WAAW,EAClC,YAAY,GAAE,UAAU,EAAO,EAC/B,IAAI,GAAE,iBAAsB;IA6D9B;;;;;OAKG;IACH,KAAK,qBAAkB,IAAI,CAEzB;CACH"}