@geekmidas/cli 10.0.0-alpha.124 → 10.0.0-alpha.125

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 (228) hide show
  1. package/dist/{EndpointGenerator-B2MUa4M2.cjs → EndpointGenerator-BGxf9jWE.cjs} +8 -4
  2. package/dist/{EndpointGenerator-B2MUa4M2.cjs.map → EndpointGenerator-BGxf9jWE.cjs.map} +1 -1
  3. package/dist/{EndpointGenerator-Z_BUTocT.mjs → EndpointGenerator-errMeldx.mjs} +8 -4
  4. package/dist/{EndpointGenerator-Z_BUTocT.mjs.map → EndpointGenerator-errMeldx.mjs.map} +1 -1
  5. package/dist/{GoDaddyProvider-55x4o-4z.mjs → GoDaddyProvider-BN1dODm9.mjs} +2 -2
  6. package/dist/{GoDaddyProvider-55x4o-4z.mjs.map → GoDaddyProvider-BN1dODm9.mjs.map} +1 -1
  7. package/dist/{GoDaddyProvider-0z5RAN1k.cjs → GoDaddyProvider-BTdtqhI_.cjs} +2 -2
  8. package/dist/{GoDaddyProvider-0z5RAN1k.cjs.map → GoDaddyProvider-BTdtqhI_.cjs.map} +1 -1
  9. package/dist/{LegacyStateStore-DRpB-yC5.cjs → LegacyStateStore-C2S8TGwx.cjs} +3 -3
  10. package/dist/{LegacyStateStore-DRpB-yC5.cjs.map → LegacyStateStore-C2S8TGwx.cjs.map} +1 -1
  11. package/dist/{LegacyStateStore-C-vumKSN.mjs → LegacyStateStore-DgXmuG87.mjs} +3 -3
  12. package/dist/{LegacyStateStore-C-vumKSN.mjs.map → LegacyStateStore-DgXmuG87.mjs.map} +1 -1
  13. package/dist/{LocalStateStore-C3ummuDT.cjs → LocalStateStore-CaJw9H-3.cjs} +2 -2
  14. package/dist/{LocalStateStore-C3ummuDT.cjs.map → LocalStateStore-CaJw9H-3.cjs.map} +1 -1
  15. package/dist/{LocalStateStore-CtOjpV1w.mjs → LocalStateStore-ojY_BiMK.mjs} +2 -2
  16. package/dist/{LocalStateStore-CtOjpV1w.mjs.map → LocalStateStore-ojY_BiMK.mjs.map} +1 -1
  17. package/dist/{OpenApiTsGenerator-MtnMQL_g.mjs → OpenApiTsGenerator-W_HRXH1X.mjs} +2 -2
  18. package/dist/{OpenApiTsGenerator-MtnMQL_g.mjs.map → OpenApiTsGenerator-W_HRXH1X.mjs.map} +1 -1
  19. package/dist/{OpenApiTsGenerator-t3_E98Fi.cjs → OpenApiTsGenerator-cQgtxWQo.cjs} +2 -2
  20. package/dist/{OpenApiTsGenerator-t3_E98Fi.cjs.map → OpenApiTsGenerator-cQgtxWQo.cjs.map} +1 -1
  21. package/dist/{S3StateStore-BC4Jm3Tw.mjs → S3StateStore-BSPkxhrx.mjs} +2 -2
  22. package/dist/{S3StateStore-BC4Jm3Tw.mjs.map → S3StateStore-BSPkxhrx.mjs.map} +1 -1
  23. package/dist/{S3StateStore-BeArp0aF.cjs → S3StateStore-BqugXIcb.cjs} +2 -2
  24. package/dist/{S3StateStore-BeArp0aF.cjs.map → S3StateStore-BqugXIcb.cjs.map} +1 -1
  25. package/dist/{SSMStateStore-DcstR6cW.cjs → SSMStateStore-B0OsuT_k.cjs} +2 -2
  26. package/dist/{SSMStateStore-DcstR6cW.cjs.map → SSMStateStore-B0OsuT_k.cjs.map} +1 -1
  27. package/dist/{SSMStateStore-Crl76aYZ.mjs → SSMStateStore-DM85OiH0.mjs} +2 -2
  28. package/dist/{SSMStateStore-Crl76aYZ.mjs.map → SSMStateStore-DM85OiH0.mjs.map} +1 -1
  29. package/dist/{SubscriberGenerator-C3QTae-R.cjs → SubscriberGenerator-BDUp7OeY.cjs} +3 -3
  30. package/dist/SubscriberGenerator-BDUp7OeY.cjs.map +1 -0
  31. package/dist/{SubscriberGenerator-COAVPgM-.mjs → SubscriberGenerator-ocQ2yj0K.mjs} +3 -3
  32. package/dist/{SubscriberGenerator-C3QTae-R.cjs.map → SubscriberGenerator-ocQ2yj0K.mjs.map} +1 -1
  33. package/dist/{add-CIjmgzkb.mjs → add-C7ZBXIzM.mjs} +6 -6
  34. package/dist/{add-CIjmgzkb.mjs.map → add-C7ZBXIzM.mjs.map} +1 -1
  35. package/dist/{add-BFjb6mMq.cjs → add-CrxvmSpq.cjs} +6 -6
  36. package/dist/{add-BFjb6mMq.cjs.map → add-CrxvmSpq.cjs.map} +1 -1
  37. package/dist/{bundler-CiUoIsku.cjs → bundler-DVUXW95p.cjs} +5 -5
  38. package/dist/{bundler-CiUoIsku.cjs.map → bundler-DVUXW95p.cjs.map} +1 -1
  39. package/dist/{bundler-D6KFNpQk.mjs → bundler-DpZ9uBGN.mjs} +5 -5
  40. package/dist/{bundler-D6KFNpQk.mjs.map → bundler-DpZ9uBGN.mjs.map} +1 -1
  41. package/dist/{cli-r4eUr98C.cjs → cli-BMRhE6cZ.cjs} +3 -3
  42. package/dist/{cli-r4eUr98C.cjs.map → cli-BMRhE6cZ.cjs.map} +1 -1
  43. package/dist/{cli-DNtSTtMc.mjs → cli-BWfYyy1k.mjs} +3 -3
  44. package/dist/{cli-DNtSTtMc.mjs.map → cli-BWfYyy1k.mjs.map} +1 -1
  45. package/dist/{compose-DJvvmF3X.mjs → compose-BFmdLig3.mjs} +232 -36
  46. package/dist/compose-BFmdLig3.mjs.map +1 -0
  47. package/dist/{compose-BfXXWJSp.cjs → compose-Bqcy0lqo.cjs} +232 -36
  48. package/dist/compose-Bqcy0lqo.cjs.map +1 -0
  49. package/dist/{config-IgK6YaGp.d.cts → config-CdytFgSR.d.cts} +3 -3
  50. package/dist/{config-IgK6YaGp.d.cts.map → config-CdytFgSR.d.cts.map} +1 -1
  51. package/dist/{config-kE-p5hxq.d.mts → config-_y1FGBWR.d.mts} +3 -3
  52. package/dist/{config-kE-p5hxq.d.mts.map → config-_y1FGBWR.d.mts.map} +1 -1
  53. package/dist/config.cjs +2 -2
  54. package/dist/config.d.cts +3 -3
  55. package/dist/config.d.mts +3 -3
  56. package/dist/config.mjs +2 -2
  57. package/dist/{credentialSchemas-AhIBuQxQ.cjs → credentialSchemas-DFxvGEwa.cjs} +2 -2
  58. package/dist/{credentialSchemas-AhIBuQxQ.cjs.map → credentialSchemas-DFxvGEwa.cjs.map} +1 -1
  59. package/dist/{credentialSchemas-DLKbxYBy.mjs → credentialSchemas-DaMpt-Dx.mjs} +2 -2
  60. package/dist/{credentialSchemas-DLKbxYBy.mjs.map → credentialSchemas-DaMpt-Dx.mjs.map} +1 -1
  61. package/dist/deploy/public.cjs +8 -8
  62. package/dist/deploy/public.d.cts +3 -3
  63. package/dist/deploy/public.d.cts.map +1 -1
  64. package/dist/deploy/public.d.mts +3 -3
  65. package/dist/deploy/public.d.mts.map +1 -1
  66. package/dist/deploy/public.mjs +8 -8
  67. package/dist/{deploy-CiRYwFmr.mjs → deploy-D8pUA9Y0.mjs} +797 -25
  68. package/dist/deploy-D8pUA9Y0.mjs.map +1 -0
  69. package/dist/{deploy-BbI1UMh3.cjs → deploy-DVrNjX1X.cjs} +796 -24
  70. package/dist/deploy-DVrNjX1X.cjs.map +1 -0
  71. package/dist/{discover-BvJOVsYG.mjs → discover-CzGM5P3p.mjs} +71 -1
  72. package/dist/discover-CzGM5P3p.mjs.map +1 -0
  73. package/dist/{discover-ojkcbxHw.cjs → discover-DL6h-J97.cjs} +71 -1
  74. package/dist/discover-DL6h-J97.cjs.map +1 -0
  75. package/dist/{dokploy-MM7c3IE0.mjs → dokploy-CzDGNB6A.mjs} +2 -2
  76. package/dist/{dokploy-MM7c3IE0.mjs.map → dokploy-CzDGNB6A.mjs.map} +1 -1
  77. package/dist/{dokploy-C0aQrCgs.cjs → dokploy-TtK6Zyl3.cjs} +2 -2
  78. package/dist/{dokploy-C0aQrCgs.cjs.map → dokploy-TtK6Zyl3.cjs.map} +1 -1
  79. package/dist/{drivers-Chb5Akov.mjs → drivers-C-VqMtld.mjs} +2 -2
  80. package/dist/{drivers-Chb5Akov.mjs.map → drivers-C-VqMtld.mjs.map} +1 -1
  81. package/dist/{drivers-CQ32PB5w.cjs → drivers-L29WvE95.cjs} +2 -2
  82. package/dist/{drivers-CQ32PB5w.cjs.map → drivers-L29WvE95.cjs.map} +1 -1
  83. package/dist/{eas-CJoys9yh.cjs → eas-D3clzkni.cjs} +2 -2
  84. package/dist/{eas-CJoys9yh.cjs.map → eas-D3clzkni.cjs.map} +1 -1
  85. package/dist/{eas-1Ee6kql0.mjs → eas-DaobzDks.mjs} +2 -2
  86. package/dist/{eas-1Ee6kql0.mjs.map → eas-DaobzDks.mjs.map} +1 -1
  87. package/dist/{emit-qvHxMV9b.cjs → emit-CYloptRS.cjs} +18 -1
  88. package/dist/emit-CYloptRS.cjs.map +1 -0
  89. package/dist/{emit-CNpuV_6Q.mjs → emit-CiJGdy_f.mjs} +18 -1
  90. package/dist/emit-CiJGdy_f.mjs.map +1 -0
  91. package/dist/{encryption-Bo9VlRnl.cjs → encryption-DBkIFiR2.cjs} +3 -3
  92. package/dist/{encryption-Bo9VlRnl.cjs.map → encryption-DBkIFiR2.cjs.map} +1 -1
  93. package/dist/{encryption-B8Bk1Mvu.mjs → encryption-DV31gEY8.mjs} +3 -3
  94. package/dist/{encryption-B8Bk1Mvu.mjs.map → encryption-DV31gEY8.mjs.map} +1 -1
  95. package/dist/{engine-BuinpJfS.mjs → engine-CFOR9h6X.mjs} +138 -13
  96. package/dist/engine-CFOR9h6X.mjs.map +1 -0
  97. package/dist/{engine-esxTxcIx.cjs → engine-CuZUGbEh.cjs} +138 -13
  98. package/dist/engine-CuZUGbEh.cjs.map +1 -0
  99. package/dist/{github-BEA4K3_X.cjs → github-CsvtWSBW.cjs} +41 -6
  100. package/dist/github-CsvtWSBW.cjs.map +1 -0
  101. package/dist/{github-BUlKJfOV.mjs → github-Nep8pI4_.mjs} +41 -6
  102. package/dist/github-Nep8pI4_.mjs.map +1 -0
  103. package/dist/{googlePlay-CiqAS2ma.cjs → googlePlay-C-UfBXJU.cjs} +3 -3
  104. package/dist/{googlePlay-CiqAS2ma.cjs.map → googlePlay-C-UfBXJU.cjs.map} +1 -1
  105. package/dist/{googlePlay-CK05QiTq.mjs → googlePlay-lF7Atm_N.mjs} +3 -3
  106. package/dist/{googlePlay-CK05QiTq.mjs.map → googlePlay-lF7Atm_N.mjs.map} +1 -1
  107. package/dist/{index-DhUf0B0m.d.mts → index-DrkV7N5w.d.mts} +2 -2
  108. package/dist/{index-4CO0HD27.d.cts.map → index-DrkV7N5w.d.mts.map} +1 -1
  109. package/dist/{index-4CO0HD27.d.cts → index-yaXZ9m-J.d.cts} +2 -2
  110. package/dist/{index-DhUf0B0m.d.mts.map → index-yaXZ9m-J.d.cts.map} +1 -1
  111. package/dist/index.cjs +147 -65
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.mjs +147 -65
  114. package/dist/index.mjs.map +1 -1
  115. package/dist/{migrate-DeQJBexh.cjs → migrate-Dp3GhFnf.cjs} +4 -4
  116. package/dist/{migrate-DeQJBexh.cjs.map → migrate-Dp3GhFnf.cjs.map} +1 -1
  117. package/dist/{migrate-CnbvrVag.mjs → migrate-NfbPVhi9.mjs} +4 -4
  118. package/dist/{migrate-CnbvrVag.mjs.map → migrate-NfbPVhi9.mjs.map} +1 -1
  119. package/dist/{migrate-BzCHT9qs.mjs → migrate-_sBX0pve.mjs} +3 -3
  120. package/dist/{migrate-BzCHT9qs.mjs.map → migrate-_sBX0pve.mjs.map} +1 -1
  121. package/dist/{migrate-C-hmbjpG.cjs → migrate-hlNKNWmg.cjs} +3 -3
  122. package/dist/{migrate-C-hmbjpG.cjs.map → migrate-hlNKNWmg.cjs.map} +1 -1
  123. package/dist/openapi.cjs +3 -3
  124. package/dist/openapi.d.cts +1 -1
  125. package/dist/openapi.d.mts +1 -1
  126. package/dist/openapi.mjs +3 -3
  127. package/dist/{publish-BISBrrqR.mjs → publish-BuUVaZVy.mjs} +2 -2
  128. package/dist/{publish-BISBrrqR.mjs.map → publish-BuUVaZVy.mjs.map} +1 -1
  129. package/dist/{publish-DtSIB-hZ.cjs → publish-ZOo4xEuZ.cjs} +2 -2
  130. package/dist/{publish-DtSIB-hZ.cjs.map → publish-ZOo4xEuZ.cjs.map} +1 -1
  131. package/dist/{ready-DqsyadOs.mjs → ready-Ca883OvY.mjs} +6 -6
  132. package/dist/{ready-DqsyadOs.mjs.map → ready-Ca883OvY.mjs.map} +1 -1
  133. package/dist/{ready-IVGu-q18.cjs → ready-qnqp6JAY.cjs} +6 -6
  134. package/dist/{ready-IVGu-q18.cjs.map → ready-qnqp6JAY.cjs.map} +1 -1
  135. package/dist/reconcile/public.cjs +2 -2
  136. package/dist/reconcile/public.d.cts +1 -1
  137. package/dist/reconcile/public.d.cts.map +1 -1
  138. package/dist/reconcile/public.d.mts +1 -1
  139. package/dist/reconcile/public.d.mts.map +1 -1
  140. package/dist/reconcile/public.mjs +2 -2
  141. package/dist/{resolve-BT7fkPN5.mjs → resolve-BCU9pYDx.mjs} +3 -3
  142. package/dist/{resolve-BT7fkPN5.mjs.map → resolve-BCU9pYDx.mjs.map} +1 -1
  143. package/dist/{resolve-C7GKQcE4.cjs → resolve-C9QqOl5t.cjs} +3 -3
  144. package/dist/{resolve-C7GKQcE4.cjs.map → resolve-C9QqOl5t.cjs.map} +1 -1
  145. package/dist/{rollback-BEiB-Pje.cjs → rollback-CTWdDBgB.cjs} +5 -5
  146. package/dist/{rollback-BEiB-Pje.cjs.map → rollback-CTWdDBgB.cjs.map} +1 -1
  147. package/dist/{rollback-DbP0KuDw.mjs → rollback-CWyyTQ0B.mjs} +5 -5
  148. package/dist/{rollback-DbP0KuDw.mjs.map → rollback-CWyyTQ0B.mjs.map} +1 -1
  149. package/dist/{runtime-BFJQNqwd.d.mts → runtime-DCkfI2E7.d.mts} +2 -2
  150. package/dist/{runtime-BFJQNqwd.d.mts.map → runtime-DCkfI2E7.d.mts.map} +1 -1
  151. package/dist/{runtime-BJO-FFef.d.cts → runtime-Ie4znWIB.d.cts} +2 -2
  152. package/dist/{runtime-BJO-FFef.d.cts.map → runtime-Ie4znWIB.d.cts.map} +1 -1
  153. package/dist/{s3-B4FTQQkV.mjs → s3-BZzSnker.mjs} +2 -2
  154. package/dist/{s3-B4FTQQkV.mjs.map → s3-BZzSnker.mjs.map} +1 -1
  155. package/dist/{s3-DwKLXwUT.cjs → s3-pqgmCTOq.cjs} +2 -2
  156. package/dist/{s3-DwKLXwUT.cjs.map → s3-pqgmCTOq.cjs.map} +1 -1
  157. package/dist/sandbox/credentials-worker.cjs +2 -2
  158. package/dist/sandbox/credentials-worker.mjs +2 -2
  159. package/dist/sandbox/discover-worker.cjs +1 -1
  160. package/dist/sandbox/discover-worker.mjs +1 -1
  161. package/dist/sandbox/migrate-worker.cjs +1 -1
  162. package/dist/sandbox/migrate-worker.mjs +1 -1
  163. package/dist/{seeds-rG-Evfz9.mjs → seeds-CK7w79VC.mjs} +516 -39
  164. package/dist/seeds-CK7w79VC.mjs.map +1 -0
  165. package/dist/{seeds-DOfxmDRO.cjs → seeds-CPEcmoPn.cjs} +599 -38
  166. package/dist/seeds-CPEcmoPn.cjs.map +1 -0
  167. package/dist/{serverSetup-xGw1fxuZ.mjs → serverSetup-BAPNuNEX.mjs} +6 -6
  168. package/dist/{serverSetup-xGw1fxuZ.mjs.map → serverSetup-BAPNuNEX.mjs.map} +1 -1
  169. package/dist/{serverSetup-CWWVcU6Y.cjs → serverSetup-C6t6Vtt7.cjs} +6 -6
  170. package/dist/{serverSetup-CWWVcU6Y.cjs.map → serverSetup-C6t6Vtt7.cjs.map} +1 -1
  171. package/dist/{sniffer-C7O9Pna_.cjs → sniffer-DdX_WN_-.cjs} +8 -8
  172. package/dist/{sniffer-C7O9Pna_.cjs.map → sniffer-DdX_WN_-.cjs.map} +1 -1
  173. package/dist/{sniffer-DVPgfyHr.mjs → sniffer-g9v7cqDN.mjs} +8 -8
  174. package/dist/{sniffer-DVPgfyHr.mjs.map → sniffer-g9v7cqDN.mjs.map} +1 -1
  175. package/dist/{snsSubscriptions-CSkteK2J.cjs → snsSubscriptions-5Cqww8S7.cjs} +15 -3
  176. package/dist/snsSubscriptions-5Cqww8S7.cjs.map +1 -0
  177. package/dist/{snsSubscriptions-CvBIGGp0.mjs → snsSubscriptions-BmYeeTH8.mjs} +4 -4
  178. package/dist/snsSubscriptions-BmYeeTH8.mjs.map +1 -0
  179. package/dist/{stage-2EKpzPQ1.mjs → stage-C-I2dVw1.mjs} +6 -6
  180. package/dist/{stage-2EKpzPQ1.mjs.map → stage-C-I2dVw1.mjs.map} +1 -1
  181. package/dist/{stage-fRfFtLwj.cjs → stage-CUE5pMmw.cjs} +6 -6
  182. package/dist/{stage-fRfFtLwj.cjs.map → stage-CUE5pMmw.cjs.map} +1 -1
  183. package/dist/{stages-B7mCWI_R.cjs → stages-3yUZaZeA.cjs} +2 -2
  184. package/dist/{stages-B7mCWI_R.cjs.map → stages-3yUZaZeA.cjs.map} +1 -1
  185. package/dist/{stages-DSltTW2d.mjs → stages-DTTv0NZW.mjs} +2 -2
  186. package/dist/{stages-DSltTW2d.mjs.map → stages-DTTv0NZW.mjs.map} +1 -1
  187. package/dist/target/public.cjs +1 -1
  188. package/dist/target/public.d.cts +2 -2
  189. package/dist/target/public.d.mts +2 -2
  190. package/dist/target/public.mjs +1 -1
  191. package/dist/{terminal-D1aeTkgv.cjs → terminal-PKhPAajN.cjs} +2 -2
  192. package/dist/{terminal-D1aeTkgv.cjs.map → terminal-PKhPAajN.cjs.map} +1 -1
  193. package/dist/{terminal-BAVrDhhN.mjs → terminal-bqY33lpN.mjs} +2 -2
  194. package/dist/{terminal-BAVrDhhN.mjs.map → terminal-bqY33lpN.mjs.map} +1 -1
  195. package/dist/{types-CFU2uvrz.d.cts → types-Bmjs4jZV.d.mts} +8 -2
  196. package/dist/{types-D3BeGucy.d.mts.map → types-Bmjs4jZV.d.mts.map} +1 -1
  197. package/dist/{types-D3BeGucy.d.mts → types-D0IsQxES.d.cts} +9 -1
  198. package/dist/{types-CFU2uvrz.d.cts.map → types-D0IsQxES.d.cts.map} +1 -1
  199. package/dist/vitest.cjs +1 -1
  200. package/dist/vitest.mjs +1 -1
  201. package/dist/workspace/index.cjs +1 -1
  202. package/dist/workspace/index.d.cts +2 -2
  203. package/dist/workspace/index.d.mts +2 -2
  204. package/dist/workspace/index.mjs +1 -1
  205. package/dist/{workspace-DUnnVjqC.mjs → workspace-DBHF9Gba.mjs} +5 -3
  206. package/dist/workspace-DBHF9Gba.mjs.map +1 -0
  207. package/dist/{workspace-C82GLPnf.cjs → workspace-Du4Afb03.cjs} +5 -3
  208. package/dist/workspace-Du4Afb03.cjs.map +1 -0
  209. package/package.json +17 -15
  210. package/dist/SubscriberGenerator-COAVPgM-.mjs.map +0 -1
  211. package/dist/compose-BfXXWJSp.cjs.map +0 -1
  212. package/dist/compose-DJvvmF3X.mjs.map +0 -1
  213. package/dist/deploy-BbI1UMh3.cjs.map +0 -1
  214. package/dist/deploy-CiRYwFmr.mjs.map +0 -1
  215. package/dist/discover-BvJOVsYG.mjs.map +0 -1
  216. package/dist/discover-ojkcbxHw.cjs.map +0 -1
  217. package/dist/emit-CNpuV_6Q.mjs.map +0 -1
  218. package/dist/emit-qvHxMV9b.cjs.map +0 -1
  219. package/dist/engine-BuinpJfS.mjs.map +0 -1
  220. package/dist/engine-esxTxcIx.cjs.map +0 -1
  221. package/dist/github-BEA4K3_X.cjs.map +0 -1
  222. package/dist/github-BUlKJfOV.mjs.map +0 -1
  223. package/dist/seeds-DOfxmDRO.cjs.map +0 -1
  224. package/dist/seeds-rG-Evfz9.mjs.map +0 -1
  225. package/dist/snsSubscriptions-CSkteK2J.cjs.map +0 -1
  226. package/dist/snsSubscriptions-CvBIGGp0.mjs.map +0 -1
  227. package/dist/workspace-C82GLPnf.cjs.map +0 -1
  228. package/dist/workspace-DUnnVjqC.mjs.map +0 -1
@@ -1,14 +1,14 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
2
  import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
3
3
  import { s as run$1, x as gkmHome } from "./credentials-DpfnUvIR.mjs";
4
- import { B as LOGS_PORT, H as provisioningOf, R as stageSampleRate, U as stageProvider, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, ct as UnknownSecretsStoreProvider, ft as SERVER_IPV4_KEY, ht as isReservedStageKey, j as TEST_STAGE, pt as SERVER_IPV6_KEY, ut as s3SecretsLocation, v as getPublicEnvPrefix, z as telemetryEnv } from "./workspace-DUnnVjqC.mjs";
4
+ import { B as LOGS_PORT, H as provisioningOf, R as stageSampleRate, U as stageProvider, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, ct as UnknownSecretsStoreProvider, ft as SERVER_IPV4_KEY, ht as isReservedStageKey, j as TEST_STAGE, pt as SERVER_IPV6_KEY, ut as s3SecretsLocation, v as getPublicEnvPrefix, z as telemetryEnv } from "./workspace-DBHF9Gba.mjs";
5
5
  import { t as appKey } from "./derive-B4vDpzgP.mjs";
6
- import { c as DEFAULT_CACHE, d as holdsEveryCache, i as readFakes, l as DEFAULT_EVENTS$1, o as objectsRoute, r as readCredentialFakes, t as SubscriberGenerator, u as DEFAULT_STORAGE } from "./SubscriberGenerator-COAVPgM-.mjs";
6
+ import { c as DEFAULT_CACHE, d as holdsEveryCache, i as readFakes, l as DEFAULT_EVENTS$1, o as objectsRoute, r as readCredentialFakes, t as SubscriberGenerator, u as DEFAULT_STORAGE } from "./SubscriberGenerator-ocQ2yj0K.mjs";
7
7
  import { n as deployIdentity } from "./identity-CBXr4wNi.mjs";
8
- import { a as startTelemetryCode, n as runtimeFor, s as writeTelemetryModule, u as telemetryArgs } from "./EndpointGenerator-Z_BUTocT.mjs";
9
- import { d as ConstructGenerator, f as output, h as eventsEdgeBucket, i as discover } from "./discover-BvJOVsYG.mjs";
8
+ import { a as startTelemetryCode, n as runtimeFor, s as writeTelemetryModule, u as telemetryArgs } from "./EndpointGenerator-errMeldx.mjs";
9
+ import { d as ConstructGenerator, f as output, h as eventsEdgeBucket, i as discover } from "./discover-CzGM5P3p.mjs";
10
10
  import { ConfigNotFound, NotInAnApp, loadWorkspaceAppInfo, loadWorkspaceConfig } from "./config.mjs";
11
- import { c as runtimeOf } from "./resolve-BT7fkPN5.mjs";
11
+ import { c as runtimeOf } from "./resolve-BCU9pYDx.mjs";
12
12
  import { basename, dirname, isAbsolute, join, parse, relative, resolve, sep } from "node:path";
13
13
  import { constants, existsSync, readFileSync } from "node:fs";
14
14
  import { appendFile, chmod, copyFile, mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
@@ -16,7 +16,7 @@ import { homedir, hostname, networkInterfaces, userInfo } from "node:os";
16
16
  import { execFile, spawn } from "node:child_process";
17
17
  import { createServer } from "node:net";
18
18
  import { createCipheriv, createDecipheriv, createHash, randomBytes, randomInt } from "node:crypto";
19
- import { CLIENT_IP_HEADER, DEFAULT_POSTGRES_VERSION, PUBLIC_PREFIX, TELEMETRY_KEYS, cacheTable, cookieDomain, dependenciesOf, dependentsOf, drawSecret, externalApiUrl, kebabCase, mobileOrigins, provideKey, providedKeyFor, provisionOrder, publicEnvFor, schemeBase } from "@geekmidas/manifest";
19
+ import { CLIENT_IP_HEADER, DEFAULT_POSTGRES_VERSION, PUBLIC_PREFIX, TELEMETRY_KEYS, bucketExpiry, cacheTable, cookieDomain, dependenciesOf, dependentsOf, drawSecret, externalApiUrl, kebabCase, mobileOrigins, provideKey, providedKeyFor, provisionOrder, publicEnvFor, schemeBase } from "@geekmidas/manifest";
20
20
  import { formatKeyring, generateKeyring } from "@geekmidas/constructs/encryption";
21
21
  import { ownerRole, readerRole, roleStatements } from "@geekmidas/db/pg/roles";
22
22
  import * as snsUrl from "@geekmidas/events/sns/url";
@@ -25,6 +25,7 @@ import { cacheTableStatements } from "@geekmidas/cache/postgres";
25
25
  import { config } from "dotenv";
26
26
  import { promisify } from "node:util";
27
27
  import { Cron } from "@geekmidas/constructs/crons";
28
+ import { Processor } from "@geekmidas/constructs/processors";
28
29
  import { Queue } from "@geekmidas/constructs/queue";
29
30
  import { CreateBucketCommand, DeleteBucketLifecycleCommand, GetBucketLifecycleConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, HeadBucketCommand, ListBucketsCommand, PutBucketLifecycleConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketPolicyCommand, S3Client } from "@aws-sdk/client-s3";
30
31
  import { CreateTopicCommand, GetTopicAttributesCommand, SNSClient } from "@aws-sdk/client-sns";
@@ -486,6 +487,21 @@ function volumeOf(container) {
486
487
  }[container];
487
488
  }
488
489
  //#endregion
490
+ //#region src/generators/processorRoute.ts
491
+ /**
492
+ * Where `gkm dev` serves a file server's processors, on the dev server of the
493
+ * app holding them: named after the file server.
494
+ *
495
+ * One definition for both sides — the dev server mounts it, and the local
496
+ * edge rewrites each processor pattern on the file server's host onto it — so
497
+ * the path the edge sends and the path the server answers cannot drift.
498
+ */
499
+ const PROCESSORS_DEV_PREFIX = "/__gkm/processors/";
500
+ /** The base a file server's processors answer under, in `gkm dev`. */
501
+ function processorsDevRoute(fileServerId) {
502
+ return `${PROCESSORS_DEV_PREFIX}${fileServerId}`;
503
+ }
504
+ //#endregion
489
505
  //#region src/reconcile/caddyfile.ts
490
506
  /**
491
507
  * The Caddy configuration a plan implies.
@@ -552,19 +568,26 @@ const LOCAL_TLD = "localhost";
552
568
  * are a legitimate arrangement — two cache behaviours, one origin — and naming
553
569
  * the host after the bucket would make them collide.
554
570
  */
555
- function sitesFor(plan, project, addresses = {}) {
571
+ function sitesFor(plan, project, addresses = {}, processorAddresses = {}) {
556
572
  const byId = new Map(plan.resources.map((r) => [r.id, r]));
557
573
  const sites = [];
558
574
  for (const resource of plan.resources) {
559
575
  if (!EDGE_KINDS[resource.kind]) continue;
560
- const host = hostFor(resource, project);
576
+ const host = hostFor$1(resource, project);
561
577
  if (resource.kind === "file-server") {
562
578
  const origin = resource.of ? byId.get(resource.of) : void 0;
563
579
  if (!origin) continue;
580
+ const address = processorAddresses[resource.id];
581
+ const port = address ? portOf(address) : void 0;
564
582
  sites.push({
565
583
  host,
566
584
  upstream: "http://minio:9000",
567
- rewrite: `/${origin.name}{uri}`
585
+ rewrite: `/${origin.name}{uri}`,
586
+ ...resource.processors?.length && port ? { processors: {
587
+ prefixes: resource.processors,
588
+ upstream: `http://${HOST_GATEWAY$1}:${port}`,
589
+ under: processorsDevRoute(resource.id)
590
+ } } : {}
568
591
  });
569
592
  continue;
570
593
  }
@@ -596,7 +619,7 @@ function portOf(address) {
596
619
  * name, because an empty label makes `uploads..localhost` — a host nothing
597
620
  * resolves and no certificate can be issued for.
598
621
  */
599
- function hostFor(resource, project) {
622
+ function hostFor$1(resource, project) {
600
623
  return [
601
624
  resource.root && project ? stageOf(resource) : labelOf(resource),
602
625
  project,
@@ -654,14 +677,24 @@ function toCaddyfile(sites) {
654
677
  if (sites.length === 0) return `${GENERATED}
655
678
  # No file server is declared in this stage, so it routes nothing.
656
679
  `;
657
- const blocks = sites.map(({ host, upstream, rewrite }) => `
680
+ const blocks = sites.map(({ host, upstream, rewrite, processors }) => `
658
681
  https://${host} {
659
682
  tls internal
660
683
 
661
684
  # gkm's own header, which only a service of this stack may send: the auth
662
685
  # server rate-limits by the client address it carries.
663
686
  request_header -${CLIENT_IP_HEADER}
664
-
687
+ ${processors ? `
688
+ # Its processors' patterns, to the dev server holding them — under the
689
+ # route it mounts them on. Answered there, so the bucket below never is.
690
+ @processors path ${processors.prefixes.map((prefix) => `${prefix}*`).join(" ")}
691
+ handle @processors {
692
+ reverse_proxy ${processors.upstream} {
693
+ rewrite ${processors.under}{uri}
694
+ header_up Host {host}
695
+ }
696
+ }
697
+ ` : ""}
665
698
  reverse_proxy ${upstream} {${rewrite ? `
666
699
  rewrite ${rewrite}
667
700
  # MinIO routes and signs on the Host header, so forwarding the requested
@@ -846,13 +879,14 @@ function nodeOf(manifest, id) {
846
879
  return node?.kind === "telemetry" ? node : void 0;
847
880
  }
848
881
  /**
849
- * The `Telemetry` node the process for `id` — a surface or a worker, by
850
- * construct id — emits through, or undefined when it has no edge to one.
882
+ * The `Telemetry` node the process for `id` — a surface, a worker, or a file
883
+ * server's processor unit, by construct id — emits through, or undefined
884
+ * when it has no edge to one.
851
885
  */
852
886
  function telemetryOf(manifest, id) {
853
887
  const declaration = manifest[id];
854
888
  if (!declaration) return void 0;
855
- if (declaration.kind === "worker") return nodeOf(manifest, declaration.telemetry);
889
+ if (declaration.kind === "worker" || declaration.kind === "file-server") return nodeOf(manifest, declaration.telemetry);
856
890
  if (declaration.kind !== "rest-api") return void 0;
857
891
  return nodeOf(manifest, declaration.telemetry);
858
892
  }
@@ -866,7 +900,7 @@ function appTelemetry(manifest, appName) {
866
900
  }
867
901
  /** Whether any process in the manifest emits through a `Telemetry` node. */
868
902
  function usesTelemetry(manifest) {
869
- return Object.entries(manifest).some(([id, d]) => (d.kind === "rest-api" || d.kind === "worker") && telemetryOf(manifest, id) !== void 0);
903
+ return Object.entries(manifest).some(([id, d]) => (d.kind === "rest-api" || d.kind === "worker" || d.kind === "file-server") && telemetryOf(manifest, id) !== void 0);
870
904
  }
871
905
  /**
872
906
  * One process's share of the telemetry keys a stage resolved: all of them,
@@ -1127,7 +1161,8 @@ function planFor(manifest, stage, order, options = {}) {
1127
1161
  ...declaration.scheme ? { scheme: declaration.scheme } : {}
1128
1162
  } : {},
1129
1163
  ...declaration.kind === "file-server" && declaration.open?.length ? { open: declaration.open } : {},
1130
- ...declaration.kind === "objects" && declaration.expire ? { expire: declaration.expire } : {},
1164
+ ...declaration.kind === "file-server" && declaration.processors?.length ? { processors: [...new Set(declaration.processors.map((p) => p.prefix))].sort() } : {},
1165
+ ...declaration.kind === "objects" && bucketExpiry(manifest, id) ? { expire: bucketExpiry(manifest, id) } : {},
1131
1166
  ...(declaration.kind === "rest-api" || declaration.kind === "site") && declaration.subdomain ? { subdomain: declaration.subdomain } : {},
1132
1167
  ...fake ? { fake: {
1133
1168
  key: fake.key,
@@ -1476,7 +1511,7 @@ function urlFor(resource, plan, ports, project, addresses, credential) {
1476
1511
  if (resource.kind === "rest-api" || resource.kind === "site") {
1477
1512
  const address = addresses?.[resource.id];
1478
1513
  const edge = plan.containers.includes("caddy") ? ports[primaryPortKey("caddy")] : void 0;
1479
- return address && edge !== void 0 ? `https://${hostFor(resource, project)}:${edge}` : address;
1514
+ return address && edge !== void 0 ? `https://${hostFor$1(resource, project)}:${edge}` : address;
1480
1515
  }
1481
1516
  if (!resource.container) return void 0;
1482
1517
  const port = ports[primaryPortKey(resource.container)];
@@ -1503,7 +1538,7 @@ function urlFor(resource, plan, ports, project, addresses, credential) {
1503
1538
  case "file-server": {
1504
1539
  const origin = plan.resources.find((r) => r.id === resource.of);
1505
1540
  if (!origin) return void 0;
1506
- return plan.containers.includes("caddy") ? `https://${hostFor(resource, project)}:${port}` : `http://${LOCAL_HOST}:${port}/${origin.name}`;
1541
+ return plan.containers.includes("caddy") ? `https://${hostFor$1(resource, project)}:${port}` : `http://${LOCAL_HOST}:${port}/${origin.name}`;
1507
1542
  }
1508
1543
  case "cache":
1509
1544
  if (resource.of) {
@@ -2863,14 +2898,7 @@ var WorkerNameTaken = class extends GkmError {
2863
2898
  * @param background Each worker's files, from discovery's `background`.
2864
2899
  */
2865
2900
  function workerUnits(workspace, manifest, background) {
2866
- const hosts = Object.entries(workspace.apps).filter(([, app]) => app.type === "backend" && !app.entry).map(([name, app]) => {
2867
- const surface = Object.entries(manifest).find(([id, d]) => d.kind === "rest-api" && appKey(id) === name)?.[1];
2868
- return {
2869
- name,
2870
- root: isAbsolute(app.path) ? app.path : join(workspace.root, app.path),
2871
- generated: !(surface?.kind === "rest-api" && surface.endpoints.length > 0)
2872
- };
2873
- }).sort((a, b) => a.name.localeCompare(b.name));
2901
+ const hosts = hostApps(workspace, manifest);
2874
2902
  const units = [];
2875
2903
  for (const [id, declaration] of Object.entries(manifest)) {
2876
2904
  if (declaration.kind !== "worker") continue;
@@ -2878,12 +2906,8 @@ function workerUnits(workspace, manifest, background) {
2878
2906
  if (files.length === 0) continue;
2879
2907
  const name = appKey(id);
2880
2908
  if (workspace.apps[name]) throw new WorkerNameTaken(id, name);
2881
- const ranked = hosts.map((host) => ({
2882
- host,
2883
- holds: files.filter((file) => isUnder(file, host.root)).length
2884
- })).sort((a, b) => b.holds - a.holds || Number(b.host.generated) - Number(a.host.generated));
2885
- const host = ranked[0]?.host;
2886
- if (!host || ranked[0].holds === 0 && !host.generated) throw new WorkerHasNoApp(id);
2909
+ const host = hostFor(hosts, files);
2910
+ if (!host) throw new WorkerHasNoApp(id);
2887
2911
  units.push({
2888
2912
  id,
2889
2913
  name,
@@ -2892,6 +2916,70 @@ function workerUnits(workspace, manifest, background) {
2892
2916
  }
2893
2917
  return units.sort((a, b) => a.name.localeCompare(b.name));
2894
2918
  }
2919
+ /** The service and image name of a file server's processors: `assets-processors`. */
2920
+ function processorUnitName(fileServerId) {
2921
+ return `${appKey(fileServerId.replace(/Server$/, ""))}-processors`;
2922
+ }
2923
+ /** A file server with processors and no backend app to build them from. */
2924
+ var ProcessorsHaveNoApp = class extends GkmError {
2925
+ fileServer;
2926
+ constructor(fileServer) {
2927
+ super(`The file server '${fileServer}' has processors, and the workspace has no backend app that builds a server to carry their entry. Declare a RestApi whose app holds the processors' code.`);
2928
+ this.fileServer = fileServer;
2929
+ this.name = "ProcessorsHaveNoApp";
2930
+ }
2931
+ };
2932
+ /**
2933
+ * The processor units a workspace deploys — each file server with processors
2934
+ * — and the app each is built from, chosen as a worker's is: the backend app
2935
+ * holding the most of its processors' files.
2936
+ */
2937
+ function processorUnits(workspace, manifest) {
2938
+ const hosts = hostApps(workspace, manifest);
2939
+ const units = [];
2940
+ for (const declaration of Object.values(manifest)) {
2941
+ if (declaration.kind !== "file-server") continue;
2942
+ const processors = declaration.processors ?? [];
2943
+ if (processors.length === 0) continue;
2944
+ const host = hostFor(hosts, processors.map(({ handler }) => {
2945
+ const file = handler.split("#")[0] ?? handler;
2946
+ return isAbsolute(file) ? file : join(workspace.root, file);
2947
+ }));
2948
+ if (!host) throw new ProcessorsHaveNoApp(declaration.id);
2949
+ const name = processorUnitName(declaration.id);
2950
+ if (workspace.apps[name]) throw new WorkerNameTaken(declaration.id, name);
2951
+ units.push({
2952
+ id: declaration.id,
2953
+ name,
2954
+ app: host.name
2955
+ });
2956
+ }
2957
+ return units.sort((a, b) => a.name.localeCompare(b.name));
2958
+ }
2959
+ /** The backend apps whose builds generate a server, each where it lives. */
2960
+ function hostApps(workspace, manifest) {
2961
+ return Object.entries(workspace.apps).filter(([, app]) => app.type === "backend" && !app.entry).map(([name, app]) => {
2962
+ const surface = Object.entries(manifest).find(([id, d]) => d.kind === "rest-api" && appKey(id) === name)?.[1];
2963
+ return {
2964
+ name,
2965
+ root: isAbsolute(app.path) ? app.path : join(workspace.root, app.path),
2966
+ generated: !(surface?.kind === "rest-api" && surface.endpoints.length > 0)
2967
+ };
2968
+ }).sort((a, b) => a.name.localeCompare(b.name));
2969
+ }
2970
+ /**
2971
+ * The app holding the most of these files; then one that generates a server;
2972
+ * then by name. None when no app holds any and none generates a server.
2973
+ */
2974
+ function hostFor(hosts, files) {
2975
+ const ranked = hosts.map((host) => ({
2976
+ host,
2977
+ holds: files.filter((file) => isUnder(file, host.root)).length
2978
+ })).sort((a, b) => b.holds - a.holds || Number(b.host.generated) - Number(a.host.generated));
2979
+ const host = ranked[0]?.host;
2980
+ if (!host || ranked[0].holds === 0 && !host.generated) return void 0;
2981
+ return host;
2982
+ }
2895
2983
  /** Whether `file` is inside `dir`. */
2896
2984
  function isUnder(file, dir) {
2897
2985
  const rel = relative(dir, file);
@@ -3541,6 +3629,8 @@ function generateBackendDockerfile(options) {
3541
3629
  }
3542
3630
  /** The port a worker answers its health check on, inside its container. */
3543
3631
  const WORKER_PORT = 3e3;
3632
+ /** The port a processor unit answers on, inside its container. */
3633
+ const PROCESSOR_PORT = 3e3;
3544
3634
  /**
3545
3635
  * A Worker's image: the same build as its host app's backend — a pruned
3546
3636
  * slice, `gkm build --provider server --production` in the image, with the
@@ -3557,6 +3647,19 @@ function generateWorkerDockerfile(options) {
3557
3647
  expose: false
3558
3648
  });
3559
3649
  }
3650
+ /**
3651
+ * A file server's processor unit: its host app's build, and the unit's bundle
3652
+ * as the runner. Its native packages — `sharp` — are installed for the image's
3653
+ * platform beside the bundle, at the versions the build resolved.
3654
+ */
3655
+ function generateProcessorDockerfile(options) {
3656
+ return gkmBundleDockerfile(options, {
3657
+ title: `Processors Dockerfile (${options.fileServer})`,
3658
+ bundle: options.bundle,
3659
+ as: "processors.mjs",
3660
+ expose: true
3661
+ });
3662
+ }
3560
3663
  function gkmBundleDockerfile(options, runner) {
3561
3664
  const { port, healthCheckPath = "/health" } = options;
3562
3665
  const { app } = layout(options);
@@ -3583,7 +3686,7 @@ RUN apk add --no-cache tini
3583
3686
  RUN addgroup --system --gid 1001 nodejs && \\
3584
3687
  adduser --system --uid 1001 hono
3585
3688
 
3586
- # The bundled ${runner.as === "server.mjs" ? "server" : "worker"}
3689
+ # The bundled ${runner.as.replace(/\.mjs$/, "")}
3587
3690
  COPY --from=builder --chown=hono:nodejs ${app}/.gkm/server/dist/${runner.bundle} ./${runner.as === runner.bundle ? "" : runner.as}${externals.copy}
3588
3691
 
3589
3692
  ENV NODE_ENV=production
@@ -4075,7 +4178,7 @@ async function storeFromConfig(workspace, config, options = {}) {
4075
4178
  const profile = options.profile ? { profile: options.profile } : {};
4076
4179
  switch (config.provider) {
4077
4180
  case "s3": {
4078
- const { S3SecretsStore } = await import("./s3-B4FTQQkV.mjs");
4181
+ const { S3SecretsStore } = await import("./s3-BZzSnker.mjs");
4079
4182
  const { deployIdentity } = await import("./identity-CBXr4wNi.mjs").then((n) => n.r);
4080
4183
  const location = s3SecretsLocation(config, workspace.state);
4081
4184
  return new S3SecretsStore({
@@ -5679,7 +5782,7 @@ async function reconcile(options) {
5679
5782
  ...options.apps ? { apps: options.apps(plan.containers) } : {},
5680
5783
  ...options.objectWebhooks?.length ? { objectWebhooks: options.objectWebhooks } : {}
5681
5784
  });
5682
- const caddyfile = toCaddyfile(sitesFor(plan, project, options.addresses));
5785
+ const caddyfile = toCaddyfile(sitesFor(plan, project, options.addresses, options.processorAddresses));
5683
5786
  const hash = planHash(plan, compose, {
5684
5787
  caddyfile,
5685
5788
  postgres: postgresStatements(plan, project, seed).map((statement) => statement.create).join(";\n")
@@ -5858,6 +5961,7 @@ var workspace_exports = /* @__PURE__ */ __exportAll({
5858
5961
  fakesApply: () => fakesApply,
5859
5962
  localObjectWebhooks: () => localObjectWebhooks,
5860
5963
  metroPorts: () => metroPorts,
5964
+ processorAddresses: () => processorAddresses,
5861
5965
  reconcileWorkspace: () => reconcileWorkspace,
5862
5966
  surfaceAddresses: () => surfaceAddresses
5863
5967
  });
@@ -5949,6 +6053,7 @@ async function reconcileWorkspace(workspace, options) {
5949
6053
  ...backendsOf(workspace),
5950
6054
  saved: await loadPortState(workspace.root),
5951
6055
  addresses: surfaceAddresses(workspace, manifest),
6056
+ processorAddresses: processorAddresses(workspace, manifest),
5952
6057
  metroPorts: metroPorts(workspace, manifest),
5953
6058
  fakes,
5954
6059
  credentialFakes,
@@ -6015,6 +6120,19 @@ function metroPorts(workspace, manifest) {
6015
6120
  return ports;
6016
6121
  }
6017
6122
  /**
6123
+ * Where each file server's processors answer locally: the dev server of the
6124
+ * app holding them, which `gkm dev` mounts them on — the same app whose build
6125
+ * writes their unit deployed.
6126
+ */
6127
+ function processorAddresses(workspace, manifest) {
6128
+ const addresses = {};
6129
+ for (const unit of processorUnits(workspace, manifest)) {
6130
+ const port = workspace.apps[unit.app]?.port;
6131
+ if (port) addresses[unit.id] = localAddress(port);
6132
+ }
6133
+ return addresses;
6134
+ }
6135
+ /**
6018
6136
  * Where each declared surface and site answers locally.
6019
6137
  *
6020
6138
  * The addresses come from the ports the workspace already assigns; which
@@ -6193,6 +6311,21 @@ function workerEnvKeys(manifest, workerId, runnables = {}) {
6193
6311
  return keys;
6194
6312
  }
6195
6313
  /** What each construct an edge reaches hands the process that reaches it. */
6314
+ /**
6315
+ * The keys a file server's processor unit reads: its bucket's, and what each
6316
+ * of its processors depends on. `undefined` for a file server with none.
6317
+ */
6318
+ function processorEnvKeys(manifest, fileServerId, runnables = {}) {
6319
+ const server = manifest[fileServerId];
6320
+ if (server?.kind !== "file-server" || !server.processors?.length) return;
6321
+ const keys = /* @__PURE__ */ new Set();
6322
+ addEdgeKeys(manifest, [
6323
+ server.of,
6324
+ ...server.processors.flatMap((p) => p.dependencies.map((d) => d.target)),
6325
+ ...runnables[fileServerId] ?? []
6326
+ ], keys);
6327
+ return keys;
6328
+ }
6196
6329
  function addEdgeKeys(manifest, edges, keys) {
6197
6330
  for (const id of edges) {
6198
6331
  const bucket = eventsEdgeBucket(id);
@@ -6660,6 +6793,308 @@ function validateImageRef(ref) {
6660
6793
  return ref;
6661
6794
  }
6662
6795
  //#endregion
6796
+ //#region src/providers/processorOrigin.ts
6797
+ /**
6798
+ * A file server's processors as a CDN origin: the names both sides agree on.
6799
+ *
6800
+ * On a compose stage whose bucket is on S3, the CDN serves the bucket and
6801
+ * sends each processor pattern to the stack's processor unit, at a host of
6802
+ * its own. That host is public — a CDN reaches its origin over the internet —
6803
+ * so the CDN adds a secret header and the edge refuses any request without
6804
+ * it. One definition, read by the CDN that sends the header and by the stack
6805
+ * whose edge checks it, so the two cannot drift.
6806
+ */
6807
+ /** The header the CDN adds to every request it sends a processor. */
6808
+ const ORIGIN_VERIFY_HEADER = "X-Gkm-Origin-Verify";
6809
+ /** Where a file server's processors answer the CDN: `<fileserver>-processors.<domain>`. */
6810
+ function processorOriginHost(serverId, domain) {
6811
+ return `${appKey(serverId)}-processors.${domain}`.toLowerCase();
6812
+ }
6813
+ /** The stage secret holding the header's value: `ASSETS_SERVER_ORIGIN_SECRET`. */
6814
+ function originSecretKey(serverId) {
6815
+ return provideKey(serverId, "originSecret");
6816
+ }
6817
+ /**
6818
+ * What the processor unit reads that secret from. Set wherever the CDN fronts
6819
+ * it, so the unit refuses a request without the header itself — on Dokploy,
6820
+ * whose edge cannot match a header, the only check; behind the stack's own
6821
+ * edge, a second one.
6822
+ */
6823
+ const PROCESSOR_ORIGIN_SECRET_ENV = "GKM_PROCESSOR_ORIGIN_SECRET";
6824
+ /** A new value for that secret: random, generated once, kept in the stage. */
6825
+ function newOriginSecret() {
6826
+ return randomBytes(32).toString("base64url");
6827
+ }
6828
+ //#endregion
6829
+ //#region src/generators/ProcessorGenerator.ts
6830
+ /** Where a file server's processor entry lives, under an app's `.gkm/server`. */
6831
+ function processorEntryDir(serverDir, fileServerId) {
6832
+ return join(serverDir, "processors", processorUnitName(fileServerId));
6833
+ }
6834
+ /** The file its bundle is written to, beside the server's. */
6835
+ function processorBundleName(fileServerId) {
6836
+ return `${processorUnitName(fileServerId)}.mjs`;
6837
+ }
6838
+ /**
6839
+ * A file server's processors, as the build generates them.
6840
+ *
6841
+ * On AWS each is a Lambda behind a function URL — the CDN's origin for its
6842
+ * pattern. On a server they are one process per file server, the processor
6843
+ * unit (see {@link ProcessorGenerator.buildEntry}), so the `server` target
6844
+ * generates nothing per processor here.
6845
+ */
6846
+ var ProcessorGenerator = class extends ConstructGenerator {
6847
+ isConstruct(value) {
6848
+ return Processor.isProcessor(value);
6849
+ }
6850
+ async build(context, constructs, outputDir, options) {
6851
+ if ((options?.target ?? "aws") !== "aws" || constructs.length === 0) return [];
6852
+ const dir = join(outputDir, "processors");
6853
+ await mkdir(dir, { recursive: true });
6854
+ const infos = [];
6855
+ for (const { key, construct, path } of constructs) {
6856
+ const file = join(dir, `${key}.ts`);
6857
+ const importPath = relative(dirname(file), path.relative).replace(/\.ts$/, ".js");
6858
+ await writeFile(file, `import { AWSLambdaProcessor } from '@geekmidas/constructs/processors';
6859
+ import { ${key} } from '${importPath}';
6860
+ ${context.storageDrivers?.imports ?? ""}
6861
+ ${context.storageDrivers?.setup ? `\n// The handler registers the drivers its target needs.\n${context.storageDrivers.setup}\n` : ""}
6862
+ const adapter = new AWSLambdaProcessor(${key});
6863
+
6864
+ export const handler = adapter.handler;
6865
+ `);
6866
+ infos.push(await processorInfo(key, construct, relative(options?.root ?? process.cwd(), file).replace(/\.ts$/, ".handler"), context));
6867
+ }
6868
+ return infos;
6869
+ }
6870
+ /**
6871
+ * `gkm dev`'s half: `processors.ts` beside the dev server's app, mounting
6872
+ * each file server's processors under `/__gkm/processors/<FileServer>`.
6873
+ * The local edge sends each pattern on the file server's host there, so
6874
+ * `processedUrl()` answers locally as it does deployed.
6875
+ *
6876
+ * In the dev server's own process rather than a unit of its own: locally
6877
+ * there is no CPU to protect, and the dev server already reloads on change.
6878
+ */
6879
+ async buildDev(outputDir, processors) {
6880
+ await mkdir(outputDir, { recursive: true });
6881
+ const file = join(outputDir, "processors.ts");
6882
+ const imports = processors.map(({ key, path }) => {
6883
+ const specifier = relative(outputDir, path.absolute).replace(/\.ts$/, ".js");
6884
+ return `import { ${key} } from '${specifier.startsWith(".") ? specifier : `./${specifier}`}';`;
6885
+ }).join("\n");
6886
+ const byServer = /* @__PURE__ */ new Map();
6887
+ for (const { key, construct } of processors) byServer.set(construct.surfaceId, [...byServer.get(construct.surfaceId) ?? [], key]);
6888
+ const units = [...byServer.entries()].map(([id, keys]) => ` ${JSON.stringify(id)}: [${keys.join(", ")}],`).join("\n");
6889
+ await writeFile(file, `/**
6890
+ * Generated processors setup for \`gkm dev\`.
6891
+ *
6892
+ * Each file server's processors, under ${PROCESSORS_DEV_PREFIX}<FileServer>: the
6893
+ * local edge rewrites each processor pattern on the file server's host here.
6894
+ */
6895
+ import type { EnvironmentParser } from '@geekmidas/envkit';
6896
+ import { processorServer } from '@geekmidas/constructs/processors';
6897
+ ${imports}
6898
+
6899
+ export function setupProcessors(
6900
+ app: { all: (path: string, handler: (c: any) => unknown) => unknown },
6901
+ envParser: EnvironmentParser<any>,
6902
+ ): void {
6903
+ const units: Record<string, ReturnType<typeof processorServer>> = Object.fromEntries(
6904
+ Object.entries({
6905
+ ${units}
6906
+ }).map(([id, processors]) => [id, processorServer(processors, envParser)]),
6907
+ );
6908
+
6909
+ app.all('${PROCESSORS_DEV_PREFIX}:server/*', async (c: any) => {
6910
+ const server = c.req.param('server') as string;
6911
+ const serve = units[server];
6912
+ if (!serve) return c.notFound();
6913
+ const path = c.req.path.slice(\`${PROCESSORS_DEV_PREFIX}\${server}\`.length) || '/';
6914
+ const response = await serve({ method: c.req.method, path });
6915
+ if (!response) {
6916
+ return new Response(null, {
6917
+ status: 404,
6918
+ headers: { 'cache-control': 'public, max-age=60' },
6919
+ });
6920
+ }
6921
+ return new Response(c.req.method === 'HEAD' ? null : response.body, {
6922
+ status: response.status,
6923
+ headers: response.headers,
6924
+ });
6925
+ });
6926
+ }
6927
+ `);
6928
+ return file;
6929
+ }
6930
+ /**
6931
+ * A file server's processor unit: one process answering each of its
6932
+ * processors' patterns, and `/health`. Returns its entry, `processors.ts`.
6933
+ *
6934
+ * Its own process because making a derivative is CPU-bound — a resize
6935
+ * spike in the API's process would be every request's latency.
6936
+ */
6937
+ async buildEntry(input) {
6938
+ const { context, outputDir, processors } = input;
6939
+ await mkdir(outputDir, { recursive: true });
6940
+ await writeTelemetryModule(outputDir, input.telemetry);
6941
+ const healthCheck = context.production?.healthCheck ?? "/health";
6942
+ const imports = processors.map(({ key, path }) => {
6943
+ const specifier = relative(outputDir, path.absolute).replace(/\.ts$/, ".js");
6944
+ return `import { ${key} } from '${specifier.startsWith(".") ? specifier : `./${specifier}`}';`;
6945
+ }).join("\n");
6946
+ const entry = join(outputDir, "processors.ts");
6947
+ await writeFile(entry, `#!/usr/bin/env node
6948
+ /**
6949
+ * Production entry for ${input.fileServerId}'s processors.
6950
+ * Generated by 'gkm build --production'.
6951
+ *
6952
+ * Answers each processor's pattern, and ${healthCheck} on PORT. The edge
6953
+ * routes only those patterns here; everything else on the file server's
6954
+ * domain is the bucket.
6955
+ */
6956
+ import { timingSafeEqual } from 'node:crypto';
6957
+ import { createServer } from 'node:http';
6958
+ import { runShutdownHooks } from '@geekmidas/constructs';
6959
+ import { processorServer } from '@geekmidas/constructs/processors';
6960
+ ${context.storageDrivers?.imports ?? ""}
6961
+ ${imports}
6962
+
6963
+ ${startTelemetryCode([healthCheck])}
6964
+ ${context.storageDrivers?.setup ? `// The entry point registers the drivers its target needs.\n${context.storageDrivers.setup}\n` : ""}
6965
+ process.env.GKM_APP_NAME ??= ${JSON.stringify(processorUnitName(input.fileServerId))};
6966
+
6967
+ const processors = [${processors.map(({ key }) => key).join(", ")}];
6968
+ const serve = processorServer(processors);
6969
+ const port = Number(process.env.PORT) || 3000;
6970
+ let stopping = false;
6971
+
6972
+ ${input.telemetry ? REQUEST_SPANS : NO_REQUEST_SPANS}
6973
+ // Where the CDN fronts this unit, the secret it adds to every request: one
6974
+ // without it is refused here, whatever the edge in front did or could not.
6975
+ const originSecret = process.env.${PROCESSOR_ORIGIN_SECRET_ENV}
6976
+ ? Buffer.from(process.env.${PROCESSOR_ORIGIN_SECRET_ENV})
6977
+ : undefined;
6978
+ const fromOrigin = (header: string | string[] | undefined) => {
6979
+ if (!originSecret) return true;
6980
+ const given = Buffer.from(typeof header === 'string' ? header : '');
6981
+ return given.length === originSecret.length && timingSafeEqual(given, originSecret);
6982
+ };
6983
+
6984
+ const server = createServer(async (req, res) => {
6985
+ const method = req.method ?? 'GET';
6986
+ const path = (req.url ?? '/').split('?')[0] ?? '/';
6987
+ if (path === ${JSON.stringify(healthCheck)}) {
6988
+ res.writeHead(stopping ? 503 : 200, { 'content-type': 'application/json' });
6989
+ res.end(JSON.stringify({ status: stopping ? 'stopping' : 'ok' }));
6990
+ return;
6991
+ }
6992
+ if (!fromOrigin(req.headers[${JSON.stringify(ORIGIN_VERIFY_HEADER.toLowerCase())}])) {
6993
+ res.writeHead(403, { 'cache-control': 'no-store' }).end();
6994
+ return;
6995
+ }
6996
+ await traced(method, path, async () => {
6997
+ try {
6998
+ const response = await serve({ method, path });
6999
+ if (!response) {
7000
+ res.writeHead(404, { 'cache-control': 'public, max-age=60' }).end();
7001
+ return 404;
7002
+ }
7003
+ res.writeHead(response.status, response.headers);
7004
+ res.end(method === 'HEAD' ? undefined : response.body);
7005
+ return response.status;
7006
+ } catch (error) {
7007
+ console.error(error);
7008
+ res.writeHead(500, { 'cache-control': 'no-store' }).end();
7009
+ return 500;
7010
+ }
7011
+ });
7012
+ });
7013
+ server.listen(port);
7014
+
7015
+ const shutdown = async () => {
7016
+ if (stopping) return;
7017
+ stopping = true;
7018
+ setTimeout(() => process.exit(1), Number(process.env.GKM_SHUTDOWN_TIMEOUT_MS) || 8000).unref();
7019
+ server.close();
7020
+ await runShutdownHooks((error) => console.error(error));
7021
+ process.exit(0);
7022
+ };
7023
+ process.on('SIGTERM', shutdown);
7024
+ process.on('SIGINT', shutdown);
7025
+ `);
7026
+ return entry;
7027
+ }
7028
+ };
7029
+ /**
7030
+ * A SERVER span per request, once telemetry has started — opened by the unit
7031
+ * rather than by hooking node:http, which sees nothing inside a bundle. Named
7032
+ * after the processor's pattern, never the key, which has no bound.
7033
+ *
7034
+ * Only in an entry whose file server has a `Telemetry` node: the bundle
7035
+ * follows the import, and an app without one need not install the API.
7036
+ */
7037
+ const REQUEST_SPANS = `const tracing = requestSpans ? await import('@opentelemetry/api') : undefined;
7038
+ const routeOf = (path: string) =>
7039
+ processors.find((processor) => path.startsWith(processor.prefix))?.pattern;
7040
+
7041
+ async function traced(
7042
+ method: string,
7043
+ path: string,
7044
+ run: () => Promise<number>,
7045
+ ): Promise<void> {
7046
+ if (!tracing) {
7047
+ await run();
7048
+ return;
7049
+ }
7050
+ const route = routeOf(path);
7051
+ await tracing.trace.getTracer('@geekmidas/processors').startActiveSpan(
7052
+ route ? \`\${method} \${route}\` : method,
7053
+ {
7054
+ kind: tracing.SpanKind.SERVER,
7055
+ attributes: {
7056
+ 'http.request.method': method,
7057
+ 'url.path': path,
7058
+ ...(route ? { 'http.route': route } : {}),
7059
+ },
7060
+ },
7061
+ async (span) => {
7062
+ try {
7063
+ const status = await run();
7064
+ span.setAttribute('http.response.status_code', status);
7065
+ if (status >= 500) span.setStatus({ code: tracing.SpanStatusCode.ERROR });
7066
+ } finally {
7067
+ span.end();
7068
+ }
7069
+ },
7070
+ );
7071
+ }
7072
+ `;
7073
+ /** The same shape without telemetry: each request just runs. */
7074
+ const NO_REQUEST_SPANS = `async function traced(
7075
+ _method: string,
7076
+ _path: string,
7077
+ run: () => Promise<number>,
7078
+ ): Promise<void> {
7079
+ await run();
7080
+ }
7081
+ `;
7082
+ /** What the manifest records of one processor. */
7083
+ async function processorInfo(name, processor, handler, context) {
7084
+ return {
7085
+ name,
7086
+ handler,
7087
+ fileServer: processor.surfaceId,
7088
+ path: processor.pattern,
7089
+ prefix: processor.prefix,
7090
+ ...processor.native.length ? { native: [...processor.native] } : {},
7091
+ ...processor.timeout !== void 0 ? { timeout: processor.timeout } : {},
7092
+ ...processor.memorySize !== void 0 ? { memorySize: processor.memorySize } : {},
7093
+ environment: await processor.getEnvironment({ markOptional: context.markOptional }),
7094
+ dependencies: processor.constructs
7095
+ };
7096
+ }
7097
+ //#endregion
6663
7098
  //#region src/generators/CronGenerator.ts
6664
7099
  var CronGenerator = class extends ConstructGenerator {
6665
7100
  async build(context, constructs, outputDir, options) {
@@ -7570,6 +8005,25 @@ async function workspaceDockerCommand(workspace, manifest, imageNames = {}, back
7570
8005
  imageName: imageNames[worker.name] ?? worker.name
7571
8006
  });
7572
8007
  }
8008
+ for (const unit of manifest ? processorUnits(workspace, manifest) : []) {
8009
+ logger$1.log(`\n 📄 Generating Dockerfile for ${unit.name} (processors of ${unit.id}, built from ${unit.app})`);
8010
+ const dockerfile = processorDockerfile(unit, workspace.apps[unit.app], {
8011
+ layout,
8012
+ workspaceRoot: workspace.root,
8013
+ native: processorNative(manifest, unit.id)
8014
+ });
8015
+ const path = workerDockerfileOf(unit.name);
8016
+ const dockerfilePath = join(workspace.root, path);
8017
+ await mkdir(dirname(dockerfilePath), { recursive: true });
8018
+ await writeFile(dockerfilePath, dockerfile);
8019
+ logger$1.log(` Generated: ${path}`);
8020
+ results.push({
8021
+ appName: unit.name,
8022
+ type: "backend",
8023
+ dockerfile: dockerfilePath,
8024
+ imageName: imageNames[unit.name] ?? unit.name
8025
+ });
8026
+ }
7573
8027
  const dockerignorePath = await ensureDockerignore(layout.buildRoot);
7574
8028
  logger$1.log(`\n Ensured: ${dockerignorePath}`);
7575
8029
  const composePath = await writeConstructsCompose(workspace);
@@ -7629,6 +8083,29 @@ function workerDockerfile(worker, host, options) {
7629
8083
  ...options.cache ? { cache: options.cache } : {}
7630
8084
  });
7631
8085
  }
8086
+ /** The native packages a file server's processors named, once each. */
8087
+ function processorNative(manifest, fileServerId) {
8088
+ const server = manifest[fileServerId];
8089
+ if (server?.kind !== "file-server") return [];
8090
+ return [...new Set((server.processors ?? []).flatMap((p) => p.native ?? []))].sort();
8091
+ }
8092
+ /**
8093
+ * A file server's processor unit's Dockerfile: its host app's build, and the
8094
+ * unit's bundle as the runner, with its processors' native packages
8095
+ * installed beside it — see `generateProcessorDockerfile`.
8096
+ */
8097
+ function processorDockerfile(unit, host, options) {
8098
+ return generateProcessorDockerfile({
8099
+ ...appImageOptions(options.layout, unit.app, host, options.workspaceRoot),
8100
+ imageName: unit.name,
8101
+ port: PROCESSOR_PORT,
8102
+ fileServer: unit.id,
8103
+ bundle: processorBundleName(unit.id),
8104
+ healthCheckPath: "/health",
8105
+ ...options.native.length ? { external: [...options.native] } : {},
8106
+ ...options.cache ? { cache: options.cache } : {}
8107
+ });
8108
+ }
7632
8109
  /**
7633
8110
  * A site's Dockerfile, with an `ARG` for every key its bundler inlines.
7634
8111
  *
@@ -7806,7 +8283,7 @@ async function createDnsProvider(options) {
7806
8283
  });
7807
8284
  }
7808
8285
  if (provider === "godaddy") {
7809
- const { GoDaddyProvider } = await import("./GoDaddyProvider-55x4o-4z.mjs");
8286
+ const { GoDaddyProvider } = await import("./GoDaddyProvider-BN1dODm9.mjs");
7810
8287
  return new GoDaddyProvider(options.godaddy ?? {});
7811
8288
  }
7812
8289
  if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
@@ -8655,6 +9132,6 @@ function reportPlannedSeeds(planned, log) {
8655
9132
  for (const { folder, seeds } of planned) log(`🌱 ${folder}: would run ${seeds.length} (${seeds.join(", ")})`);
8656
9133
  }
8657
9134
  //#endregion
8658
- export { assertDevServicesFlag as $, LOGS_SERVICE as $n, publicBuildValues as $t, StageProviderDisabled as A, envFor as An, findAvailablePort as At, workerDockerfile as B, usesTelemetry as Bn, initStageSecrets as Bt, recordRollback as C, withGeneratedSecrets as Cn, composeFor as Ct, setPostgresBackupId as D, runsRedis as Dn, storageBackendFor as Dt, setGeneratedSecret as E, redisService as En, providerOf as Et, DockerBuildFailed as F, appTelemetry as Fn, prepareEntryCredentials as Ft, QueueGenerator as G, DEFAULT_IMAGES as Gn, composeBuildPaths as Gt, WorkerGenerator as H, watchedBuckets as Hn, storage_exports as Ht, DockerPushFailed as I, isTelemetryKey as In, isRemoteStore as It, AllowDevServicesTakesNoValue as J, portKeys as Jn, WORKER_PORT as Jt, CronGenerator as K, describeServices as Kn, imageLayout as Kt, appDockerfile as L, scopeTelemetryEnv as Ln, secretsStoreFor as Lt, provisionCommand as M, TELEMETRY_CONTAINER as Mn, loadEnvFiles as Mt, stageProviderNotes as N, planFor as Nn, loadPortState as Nt, DnsRecordsUnreadable as O, stackRedis as On, createCredentialsPreload as Ot, PROVIDER_KINDS as P, resourceName as Pn, loadSecretsForApp as Pt, STORAGE_KEY_PAIR as Q, LOCAL_LOGS_EMAIL as Qn, isImageBuild as Qt, dockerCommand as R, surfaceClientTraced as Rn, storeFromConfig as Rt, recordRelease as S, readKey as Sn, CLUSTER_DATABASE as St, setBackupState as T, STACK_CACHE as Tn, eventsBackendFor as Tt, workerBundleName as U, EMULATOR_ACCESS_KEY_ID as Un, toEmbeddableSecrets as Ut, workerDockerfileOf as V, minioWebhookEnv as Vn, maskPassword as Vt, workerEntryDir as W, hostFor as Wn, withCustomSecret as Wt, DevServicesNeedServerTarget as X, postgresImage as Xn, findBuildRoot as Xt, DEV_SERVICES as Y, portsOf as Yn, detectPackageManager as Yt, ExternalServicesNotConfigured as Z, primaryPortKey as Zn, imageBuildCredentials as Zt, asDokployState as _, readLocalCredentials as _n, forgetState as _t, dnsResources as a, applyPolicies as an, isMainFrontendApp as ar, suppliedOnly as at, getBackupState as b, keystoreProject as bn, bucketClient as bt, currentActor as c, bucketPolicies as cn, networkEnv as ct, DeployJournal as d, quoteIdentifier as dn, backendsOf as dt, isUnder as en, logsAccess as er, devServicesUsed as et, extractSubdomain as f, mergeLifecycle as fn, constructGlobs as ft, verifyDnsRecords as g, postgresSuperuser as gn, LOCAL_CA_PATH as gt, orchestrateDns as h, postgresRoleSlug as hn, workspace_exports as ht, dnsRecordResource as i, applyNotifications as in, NoDomainForStage as ir, stageServiceDeclarations as it, assertStageProvidersEnabled as j, localRolePassword as jn, isPortAvailable as jt, createDnsProvider as k, withRedisPassword as kn, createEntryWrapper as kt, describeActor as l, postgresDatabaseNames as ln, workerEnvKeys as lt, normalizeDnsConfig as m, loadLocalCredentials as mn, reconcileWorkspace as mt, reportDatabaseRuns as n, applyBuckets as nn, stackLogs as nr, reportDevServices as nt, forgetDnsResource as o, applyPostgres as on, resolveHost as or, appEnvKeys as ot, findRootDomain as p, LOCAL_RABBITMQ_USER as pn, derivedContainers as pt, validateImageRef as q, fakeKey as qn, TURBO_VERSION as qt, reportPlannedSeeds as r, applyLifecycles as rn, withLogsPassword as rr, requiredStageKeys as rt, recordDnsChanges as s, bucketLifecycles as sn, dockerfileOf as st, DeploySeedsFailed as t, workerUnits as tn, logsService as tr, externalServices as tt, isCi as u, postgresStatements as un, FAKE_ENV as ut, createComposeState as v, FileSecretsStore as vn, LEGACY_LOCAL_LOGIN as vt, setApplicationId as w, REDIS_SERVICE as wn, cacheBackendFor as wt, getGeneratedSecret as x, projectKey as xn, pgClient as xt, createEmptyState as y, getKeyPath as yn, ensurePostgresLogin as yt, ensureDockerignore as z, telemetryOf as zn, store_exports as zt };
9135
+ export { ORIGIN_VERIFY_HEADER as $, telemetryOf as $n, maskPassword as $t, StageProviderDisabled as A, postgresSuperuser as An, LEGACY_LOCAL_LOGIN as At, processorDockerfile as B, redisService as Bn, createCredentialsPreload as Bt, recordRollback as C, postgresDatabaseNames as Cn, backendsOf as Ct, setPostgresBackupId as D, LOCAL_RABBITMQ_USER as Dn, workspace_exports as Dt, setGeneratedSecret as E, mergeLifecycle as En, reconcileWorkspace as Et, DockerBuildFailed as F, projectKey as Fn, composeFor as Ft, workerBundleName as G, localRolePassword as Gn, loadPortState as Gt, workerDockerfile as H, stackRedis as Hn, findAvailablePort as Ht, DockerPushFailed as I, readKey as In, cacheBackendFor as It, CronGenerator as J, resourceName as Jn, isRemoteStore as Jt, workerEntryDir as K, TELEMETRY_CONTAINER as Kn, loadSecretsForApp as Kt, appDockerfile as L, withGeneratedSecrets as Ln, eventsBackendFor as Lt, provisionCommand as M, FileSecretsStore as Mn, bucketClient as Mt, stageProviderNotes as N, getKeyPath as Nn, pgClient as Nt, DnsRecordsUnreadable as O, loadLocalCredentials as On, LOCAL_CA_PATH as Ot, PROVIDER_KINDS as P, keystoreProject as Pn, CLUSTER_DATABASE as Pt, processorInfo as Q, surfaceClientTraced as Qn, initStageSecrets as Qt, dockerCommand as R, REDIS_SERVICE as Rn, providerOf as Rt, recordRelease as S, bucketPolicies as Sn, FAKE_ENV as St, setBackupState as T, quoteIdentifier as Tn, derivedContainers as Tt, workerDockerfileOf as U, withRedisPassword as Un, isPortAvailable as Ut, processorNative as V, runsRedis as Vn, createEntryWrapper as Vt, WorkerGenerator as W, envFor as Wn, loadEnvFiles as Wt, processorBundleName as X, isTelemetryKey as Xn, storeFromConfig as Xt, ProcessorGenerator as Y, appTelemetry as Yn, secretsStoreFor as Yt, processorEntryDir as Z, scopeTelemetryEnv as Zn, store_exports as Zt, asDokployState as _, applyLifecycles as _n, withLogsPassword as _r, appEnvKeys as _t, dnsResources as a, PROCESSOR_PORT as an, DEFAULT_IMAGES as ar, AllowDevServicesTakesNoValue as at, getBackupState as b, applyPostgres as bn, resolveHost as br, processorEnvKeys as bt, currentActor as c, detectPackageManager as cn, portKeys as cr, ExternalServicesNotConfigured as ct, DeployJournal as d, isImageBuild as dn, primaryPortKey as dr, devServicesUsed as dt, storage_exports as en, usesTelemetry as er, PROCESSOR_ORIGIN_SECRET_ENV as et, extractSubdomain as f, publicBuildValues as fn, LOCAL_LOGS_EMAIL as fr, externalServices as ft, verifyDnsRecords as g, applyBuckets as gn, stackLogs as gr, suppliedOnly as gt, orchestrateDns as h, workerUnits as hn, logsService as hr, stageServiceDeclarations as ht, dnsRecordResource as i, imageLayout as in, hostFor$1 as ir, validateImageRef as it, assertStageProvidersEnabled as j, readLocalCredentials as jn, ensurePostgresLogin as jt, createDnsProvider as k, postgresRoleSlug as kn, forgetState as kt, describeActor as l, findBuildRoot as ln, portsOf as lr, STORAGE_KEY_PAIR as lt, normalizeDnsConfig as m, processorUnits as mn, logsAccess as mr, requiredStageKeys as mt, reportDatabaseRuns as n, withCustomSecret as nn, watchedBuckets as nr, originSecretKey as nt, forgetDnsResource as o, TURBO_VERSION as on, describeServices as or, DEV_SERVICES as ot, findRootDomain as p, isUnder as pn, LOGS_SERVICE as pr, reportDevServices as pt, QueueGenerator as q, planFor as qn, prepareEntryCredentials as qt, reportPlannedSeeds as r, composeBuildPaths as rn, EMULATOR_ACCESS_KEY_ID as rr, processorOriginHost as rt, recordDnsChanges as s, WORKER_PORT as sn, fakeKey as sr, DevServicesNeedServerTarget as st, DeploySeedsFailed as t, toEmbeddableSecrets as tn, minioWebhookEnv as tr, newOriginSecret as tt, isCi as u, imageBuildCredentials as un, postgresImage as ur, assertDevServicesFlag as ut, createComposeState as v, applyNotifications as vn, NoDomainForStage as vr, dockerfileOf as vt, setApplicationId as w, postgresStatements as wn, constructGlobs as wt, getGeneratedSecret as x, bucketLifecycles as xn, workerEnvKeys as xt, createEmptyState as y, applyPolicies as yn, isMainFrontendApp as yr, networkEnv as yt, ensureDockerignore as z, STACK_CACHE as zn, storageBackendFor as zt };
8659
9136
 
8660
- //# sourceMappingURL=seeds-rG-Evfz9.mjs.map
9137
+ //# sourceMappingURL=seeds-CK7w79VC.mjs.map