@geekmidas/cli 10.0.0-alpha.175 → 10.0.0-alpha.176

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 (173) hide show
  1. package/dist/{GoDaddyProvider-BHNFin4Y.cjs → GoDaddyProvider-CLRtSbuA.cjs} +2 -2
  2. package/dist/{GoDaddyProvider-BHNFin4Y.cjs.map → GoDaddyProvider-CLRtSbuA.cjs.map} +1 -1
  3. package/dist/{GoDaddyProvider-BtnO8_pk.mjs → GoDaddyProvider-DuqG_Wcy.mjs} +2 -2
  4. package/dist/{GoDaddyProvider-BtnO8_pk.mjs.map → GoDaddyProvider-DuqG_Wcy.mjs.map} +1 -1
  5. package/dist/{HostingerProvider-Bbb1_aKS.cjs → HostingerProvider-Cbqb6bQN.cjs} +2 -2
  6. package/dist/{HostingerProvider-Bbb1_aKS.cjs.map → HostingerProvider-Cbqb6bQN.cjs.map} +1 -1
  7. package/dist/{HostingerProvider-Cq7QeLKO.mjs → HostingerProvider-CiA6uPeg.mjs} +2 -2
  8. package/dist/{HostingerProvider-Cq7QeLKO.mjs.map → HostingerProvider-CiA6uPeg.mjs.map} +1 -1
  9. package/dist/{LegacyStateStore-r8xgq8Vv.mjs → LegacyStateStore-BuTTsqfo.mjs} +2 -2
  10. package/dist/{LegacyStateStore-r8xgq8Vv.mjs.map → LegacyStateStore-BuTTsqfo.mjs.map} +1 -1
  11. package/dist/{LegacyStateStore-CbuqTCMX.cjs → LegacyStateStore-BwNm_jmw.cjs} +2 -2
  12. package/dist/{LegacyStateStore-CbuqTCMX.cjs.map → LegacyStateStore-BwNm_jmw.cjs.map} +1 -1
  13. package/dist/{LocalStateStore-BMnidUp_.mjs → LocalStateStore-DYoAtXrf.mjs} +2 -2
  14. package/dist/{LocalStateStore-BMnidUp_.mjs.map → LocalStateStore-DYoAtXrf.mjs.map} +1 -1
  15. package/dist/{LocalStateStore-B6_1oDJ_.cjs → LocalStateStore-aEaoJuaR.cjs} +2 -2
  16. package/dist/{LocalStateStore-B6_1oDJ_.cjs.map → LocalStateStore-aEaoJuaR.cjs.map} +1 -1
  17. package/dist/{S3StateStore-CHXicp6D.mjs → S3StateStore-BC8iBPAY.mjs} +4 -4
  18. package/dist/{S3StateStore-CHXicp6D.mjs.map → S3StateStore-BC8iBPAY.mjs.map} +1 -1
  19. package/dist/{S3StateStore-Dq12263A.cjs → S3StateStore-D_V_QOU-.cjs} +4 -4
  20. package/dist/{S3StateStore-Dq12263A.cjs.map → S3StateStore-D_V_QOU-.cjs.map} +1 -1
  21. package/dist/{SSMStateStore-D8HJ3FU9.cjs → SSMStateStore-DKxVa6_D.cjs} +2 -2
  22. package/dist/{SSMStateStore-D8HJ3FU9.cjs.map → SSMStateStore-DKxVa6_D.cjs.map} +1 -1
  23. package/dist/{SSMStateStore-BAMceTz-.mjs → SSMStateStore-vpbJWC-B.mjs} +2 -2
  24. package/dist/{SSMStateStore-BAMceTz-.mjs.map → SSMStateStore-vpbJWC-B.mjs.map} +1 -1
  25. package/dist/{add-QkB0jIec.cjs → add-D96Ox7kG.cjs} +4 -4
  26. package/dist/{add-QkB0jIec.cjs.map → add-D96Ox7kG.cjs.map} +1 -1
  27. package/dist/{add-BK_Mb6D_.mjs → add-DBmlnNKr.mjs} +4 -4
  28. package/dist/{add-BK_Mb6D_.mjs.map → add-DBmlnNKr.mjs.map} +1 -1
  29. package/dist/{apps-D83caHjP.cjs → apps-FB2XppkH.cjs} +3 -3
  30. package/dist/{apps-D83caHjP.cjs.map → apps-FB2XppkH.cjs.map} +1 -1
  31. package/dist/{apps-DpyJvU00.mjs → apps-iMCuJRmp.mjs} +3 -3
  32. package/dist/{apps-DpyJvU00.mjs.map → apps-iMCuJRmp.mjs.map} +1 -1
  33. package/dist/{bundler-CgCVGuji.mjs → bundler-BkdPQxcw.mjs} +6 -6
  34. package/dist/{bundler-CgCVGuji.mjs.map → bundler-BkdPQxcw.mjs.map} +1 -1
  35. package/dist/{bundler-DTHUOAAV.cjs → bundler-D2YOzGbK.cjs} +6 -6
  36. package/dist/{bundler-DTHUOAAV.cjs.map → bundler-D2YOzGbK.cjs.map} +1 -1
  37. package/dist/{cli-Cx1tIFan.cjs → cli-4dCD3ByQ.cjs} +4 -4
  38. package/dist/{cli-Cx1tIFan.cjs.map → cli-4dCD3ByQ.cjs.map} +1 -1
  39. package/dist/{cli-B2XyVbUz.mjs → cli-D7aYkTrO.mjs} +4 -4
  40. package/dist/{cli-B2XyVbUz.mjs.map → cli-D7aYkTrO.mjs.map} +1 -1
  41. package/dist/{compose-DVr47TbA.cjs → compose-BlEELe3Q.cjs} +4 -4
  42. package/dist/{compose-DVr47TbA.cjs.map → compose-BlEELe3Q.cjs.map} +1 -1
  43. package/dist/{compose-B9uSqCxY.cjs → compose-CfsQ4khN.cjs} +221 -16
  44. package/dist/compose-CfsQ4khN.cjs.map +1 -0
  45. package/dist/{compose-j0SE-0EG.mjs → compose-DKp1s6XP.mjs} +4 -4
  46. package/dist/{compose-j0SE-0EG.mjs.map → compose-DKp1s6XP.mjs.map} +1 -1
  47. package/dist/{compose-CbXGx1_z.mjs → compose-hcFa0rWb.mjs} +207 -14
  48. package/dist/compose-hcFa0rWb.mjs.map +1 -0
  49. package/dist/deploy/public.cjs +10 -10
  50. package/dist/deploy/public.d.cts.map +1 -1
  51. package/dist/deploy/public.d.mts.map +1 -1
  52. package/dist/deploy/public.mjs +10 -10
  53. package/dist/{deploy-qdWn2-m9.cjs → deploy-B-Ky0iUC.cjs} +16 -15
  54. package/dist/{deploy-qdWn2-m9.cjs.map → deploy-B-Ky0iUC.cjs.map} +1 -1
  55. package/dist/{deploy-DDWnWXnA.mjs → deploy-gRkLgV35.mjs} +16 -15
  56. package/dist/{deploy-DDWnWXnA.mjs.map → deploy-gRkLgV35.mjs.map} +1 -1
  57. package/dist/{destroy-DvJEbs9P.mjs → destroy-2f3L-pMt.mjs} +7 -7
  58. package/dist/{destroy-DvJEbs9P.mjs.map → destroy-2f3L-pMt.mjs.map} +1 -1
  59. package/dist/{destroy-B28Zwbzr.cjs → destroy-CiHXpKPS.cjs} +7 -7
  60. package/dist/{destroy-B28Zwbzr.cjs.map → destroy-CiHXpKPS.cjs.map} +1 -1
  61. package/dist/{dns-BxgfpQWO.mjs → dns-CjzC-jTr.mjs} +21 -7
  62. package/dist/dns-CjzC-jTr.mjs.map +1 -0
  63. package/dist/{dns-CiUCbOXH.cjs → dns-DsOsv1gk.cjs} +26 -6
  64. package/dist/dns-DsOsv1gk.cjs.map +1 -0
  65. package/dist/{docker-Coy1O-IN.cjs → docker-ALmOF9Ye.cjs} +4 -4
  66. package/dist/{docker-Coy1O-IN.cjs.map → docker-ALmOF9Ye.cjs.map} +1 -1
  67. package/dist/{docker-Dcsqf_NA.mjs → docker-Bu083Pc8.mjs} +4 -4
  68. package/dist/{docker-Dcsqf_NA.mjs.map → docker-Bu083Pc8.mjs.map} +1 -1
  69. package/dist/{dokploy-Dohi7fuh.mjs → dokploy--YjmpGf4.mjs} +2 -2
  70. package/dist/{dokploy-Dohi7fuh.mjs.map → dokploy--YjmpGf4.mjs.map} +1 -1
  71. package/dist/{dokploy-Df4oDdAu.cjs → dokploy-Cg2NOSax.cjs} +2 -2
  72. package/dist/{dokploy-Df4oDdAu.cjs.map → dokploy-Cg2NOSax.cjs.map} +1 -1
  73. package/dist/{eas-B8t0Ipgt.cjs → eas-CUDPiJmf.cjs} +2 -2
  74. package/dist/{eas-B8t0Ipgt.cjs.map → eas-CUDPiJmf.cjs.map} +1 -1
  75. package/dist/{eas-FLjCtoiB.mjs → eas-CtE3eftL.mjs} +2 -2
  76. package/dist/{eas-FLjCtoiB.mjs.map → eas-CtE3eftL.mjs.map} +1 -1
  77. package/dist/{encryption-CEiJrhOd.cjs → encryption-B72rAliE.cjs} +2 -2
  78. package/dist/{encryption-CEiJrhOd.cjs.map → encryption-B72rAliE.cjs.map} +1 -1
  79. package/dist/{encryption-DlID0xqU.mjs → encryption-BNqwJ2Mr.mjs} +2 -2
  80. package/dist/{encryption-DlID0xqU.mjs.map → encryption-BNqwJ2Mr.mjs.map} +1 -1
  81. package/dist/{engine-Ci62MZrE.cjs → engine-BfKsVd1h.cjs} +10 -9
  82. package/dist/engine-BfKsVd1h.cjs.map +1 -0
  83. package/dist/{engine-zE2sQUNS.mjs → engine-D5eAK0_u.mjs} +10 -9
  84. package/dist/engine-D5eAK0_u.mjs.map +1 -0
  85. package/dist/{github-Di-u6VhX.mjs → github-BQJEjYTv.mjs} +19 -10
  86. package/dist/github-BQJEjYTv.mjs.map +1 -0
  87. package/dist/{github-DXBTTGl3.cjs → github-BpAQd9XJ.cjs} +19 -10
  88. package/dist/github-BpAQd9XJ.cjs.map +1 -0
  89. package/dist/{googlePlay-C3ubCMrO.cjs → googlePlay-CGoKjrGj.cjs} +4 -4
  90. package/dist/{googlePlay-C3ubCMrO.cjs.map → googlePlay-CGoKjrGj.cjs.map} +1 -1
  91. package/dist/{googlePlay-Crx8XG3Z.mjs → googlePlay-CMMDk65f.mjs} +4 -4
  92. package/dist/{googlePlay-Crx8XG3Z.mjs.map → googlePlay-CMMDk65f.mjs.map} +1 -1
  93. package/dist/index.cjs +171 -83
  94. package/dist/index.cjs.map +1 -1
  95. package/dist/index.mjs +172 -84
  96. package/dist/index.mjs.map +1 -1
  97. package/dist/{local-DyOeF-qR.cjs → local-BkiJKXwa.cjs} +2 -2
  98. package/dist/{local-DyOeF-qR.cjs.map → local-BkiJKXwa.cjs.map} +1 -1
  99. package/dist/{local-pYpQVNII.mjs → local-DoENgulS.mjs} +2 -2
  100. package/dist/{local-pYpQVNII.mjs.map → local-DoENgulS.mjs.map} +1 -1
  101. package/dist/{migrate-CnH3PLzA.mjs → migrate-BLJIigAS.mjs} +4 -4
  102. package/dist/{migrate-CnH3PLzA.mjs.map → migrate-BLJIigAS.mjs.map} +1 -1
  103. package/dist/{migrate-BHvFlwDQ.mjs → migrate-BODEFlT7.mjs} +2 -2
  104. package/dist/{migrate-BHvFlwDQ.mjs.map → migrate-BODEFlT7.mjs.map} +1 -1
  105. package/dist/{migrate-DXW9w2DK.cjs → migrate-D-0i_3u-.cjs} +4 -4
  106. package/dist/{migrate-DXW9w2DK.cjs.map → migrate-D-0i_3u-.cjs.map} +1 -1
  107. package/dist/{migrate-vXdW9TR3.cjs → migrate-DMpbu7Td.cjs} +2 -2
  108. package/dist/{migrate-vXdW9TR3.cjs.map → migrate-DMpbu7Td.cjs.map} +1 -1
  109. package/dist/{notes-BOQGsAVb.cjs → notes-CsPeouTH.cjs} +2 -2
  110. package/dist/{notes-BOQGsAVb.cjs.map → notes-CsPeouTH.cjs.map} +1 -1
  111. package/dist/{notes-DuPsUdr4.mjs → notes-DcRTv0Pb.mjs} +2 -2
  112. package/dist/{notes-DuPsUdr4.mjs.map → notes-DcRTv0Pb.mjs.map} +1 -1
  113. package/dist/{projectBucket-o-_7Hgxt.mjs → projectBucket-CZ5XnmoT.mjs} +2 -2
  114. package/dist/{projectBucket-o-_7Hgxt.mjs.map → projectBucket-CZ5XnmoT.mjs.map} +1 -1
  115. package/dist/{projectBucket-CP6rkXdo.cjs → projectBucket-Dl2KUhdO.cjs} +2 -2
  116. package/dist/{projectBucket-CP6rkXdo.cjs.map → projectBucket-Dl2KUhdO.cjs.map} +1 -1
  117. package/dist/{publish-C9_gTOGU.mjs → publish-ClymwMkS.mjs} +2 -2
  118. package/dist/{publish-C9_gTOGU.mjs.map → publish-ClymwMkS.mjs.map} +1 -1
  119. package/dist/{publish-DbJ7hMQ_.cjs → publish-D8CS0q_Q.cjs} +2 -2
  120. package/dist/{publish-DbJ7hMQ_.cjs.map → publish-D8CS0q_Q.cjs.map} +1 -1
  121. package/dist/{resolve-nTuLxira.mjs → resolve-CoaQmANg.mjs} +4 -4
  122. package/dist/{resolve-nTuLxira.mjs.map → resolve-CoaQmANg.mjs.map} +1 -1
  123. package/dist/{resolve-4ME0CRVM.cjs → resolve-Dn1n69kp.cjs} +4 -4
  124. package/dist/{resolve-4ME0CRVM.cjs.map → resolve-Dn1n69kp.cjs.map} +1 -1
  125. package/dist/{rollback-CAfhleLK.cjs → rollback-BNP1XKtz.cjs} +5 -5
  126. package/dist/{rollback-CAfhleLK.cjs.map → rollback-BNP1XKtz.cjs.map} +1 -1
  127. package/dist/{rollback-CXy-4gxa.mjs → rollback-o85w39I-.mjs} +5 -5
  128. package/dist/{rollback-CXy-4gxa.mjs.map → rollback-o85w39I-.mjs.map} +1 -1
  129. package/dist/{s3-C90gsHUn.cjs → s3-BF1qsk-S.cjs} +2 -2
  130. package/dist/{s3-C90gsHUn.cjs.map → s3-BF1qsk-S.cjs.map} +1 -1
  131. package/dist/{s3-DcIf5bPO.mjs → s3-XW71srQO.mjs} +2 -2
  132. package/dist/{s3-DcIf5bPO.mjs.map → s3-XW71srQO.mjs.map} +1 -1
  133. package/dist/{serverSetup-4oc_a1T5.cjs → serverSetup-Bi6BAQvQ.cjs} +5 -5
  134. package/dist/{serverSetup-4oc_a1T5.cjs.map → serverSetup-Bi6BAQvQ.cjs.map} +1 -1
  135. package/dist/{serverSetup-BmmkcyBv.mjs → serverSetup-ClkJ0dhD.mjs} +5 -5
  136. package/dist/{serverSetup-BmmkcyBv.mjs.map → serverSetup-ClkJ0dhD.mjs.map} +1 -1
  137. package/dist/{sniffer-FdJ9urOA.cjs → sniffer-5BEd0W-2.cjs} +6 -6
  138. package/dist/{sniffer-FdJ9urOA.cjs.map → sniffer-5BEd0W-2.cjs.map} +1 -1
  139. package/dist/{sniffer-Cawd1GeY.mjs → sniffer-CwA19f8u.mjs} +6 -6
  140. package/dist/{sniffer-Cawd1GeY.mjs.map → sniffer-CwA19f8u.mjs.map} +1 -1
  141. package/dist/{snsSubscriptions-DclU57O7.cjs → snsSubscriptions-D_oK-FKK.cjs} +3 -3
  142. package/dist/{snsSubscriptions-DclU57O7.cjs.map → snsSubscriptions-D_oK-FKK.cjs.map} +1 -1
  143. package/dist/{snsSubscriptions-Cm-pdWyW.mjs → snsSubscriptions-DlNwAo6l.mjs} +3 -3
  144. package/dist/{snsSubscriptions-Cm-pdWyW.mjs.map → snsSubscriptions-DlNwAo6l.mjs.map} +1 -1
  145. package/dist/{sst-D6Kt9gDS.cjs → sst-BDaYh-cJ.cjs} +4 -4
  146. package/dist/{sst-D6Kt9gDS.cjs.map → sst-BDaYh-cJ.cjs.map} +1 -1
  147. package/dist/{sst-BiOWTOUg.mjs → sst-DmjCAYmq.mjs} +4 -4
  148. package/dist/{sst-BiOWTOUg.mjs.map → sst-DmjCAYmq.mjs.map} +1 -1
  149. package/dist/{stack-DZn7Yr8z.mjs → stack-HULMMZlf.mjs} +21 -161
  150. package/dist/stack-HULMMZlf.mjs.map +1 -0
  151. package/dist/{stack-BmjNDZiJ.cjs → stack-UtZKqaoh.cjs} +20 -190
  152. package/dist/stack-UtZKqaoh.cjs.map +1 -0
  153. package/dist/{stage-tdH9m6Wf.cjs → stage-2YFzi0j2.cjs} +5 -5
  154. package/dist/{stage-tdH9m6Wf.cjs.map → stage-2YFzi0j2.cjs.map} +1 -1
  155. package/dist/{stage-CoUrlN-W.mjs → stage-D_2SKwyr.mjs} +5 -5
  156. package/dist/{stage-CoUrlN-W.mjs.map → stage-D_2SKwyr.mjs.map} +1 -1
  157. package/dist/target/public.cjs +1 -1
  158. package/dist/target/public.mjs +1 -1
  159. package/dist/{terminal-iL0e-c9K.cjs → terminal-DywyNR4M.cjs} +2 -2
  160. package/dist/{terminal-iL0e-c9K.cjs.map → terminal-DywyNR4M.cjs.map} +1 -1
  161. package/dist/{terminal-BI7b8BdH.mjs → terminal-J3kNRlry.mjs} +2 -2
  162. package/dist/{terminal-BI7b8BdH.mjs.map → terminal-J3kNRlry.mjs.map} +1 -1
  163. package/package.json +15 -15
  164. package/dist/compose-B9uSqCxY.cjs.map +0 -1
  165. package/dist/compose-CbXGx1_z.mjs.map +0 -1
  166. package/dist/dns-BxgfpQWO.mjs.map +0 -1
  167. package/dist/dns-CiUCbOXH.cjs.map +0 -1
  168. package/dist/engine-Ci62MZrE.cjs.map +0 -1
  169. package/dist/engine-zE2sQUNS.mjs.map +0 -1
  170. package/dist/github-DXBTTGl3.cjs.map +0 -1
  171. package/dist/github-Di-u6VhX.mjs.map +0 -1
  172. package/dist/stack-BmjNDZiJ.cjs.map +0 -1
  173. package/dist/stack-DZn7Yr8z.mjs.map +0 -1
@@ -1,15 +1,15 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
2
  import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
3
- import { F as toEmbeddableSecrets, M as initStageSecrets, Q as imageRef, d as createComposeState, h as recordRelease, n as findRootDomain, ot as run, r as normalizeDnsConfig, st as runOutput } from "./dns-BxgfpQWO.mjs";
3
+ import { F as toEmbeddableSecrets, M as initStageSecrets, Q as imageRef, ct as runOutput, d as createComposeState, h as recordRelease, n as findRootDomain, r as normalizeDnsConfig, rt as stageTag, st as run } from "./dns-CjzC-jTr.mjs";
4
4
  import { B as LOGS_PORT, Dt as ComposeTlsFileMissing, Ft as SERVER_IPV4_KEY, L as resolveStageTelemetry, Rt as isReservedStageKey } from "./workspace-BBa1Ck5j.mjs";
5
- import { C as ensureLocalCertificate, Dt as envFor, E as readLocalAuthority, F as imageLayout, H as findBuildRoot, P as fromBuildRoot, S as ensureLocalAuthority, T as localCertificateNames, Z as nextPrerenderManifest, _t as applyLifecycles, b as bucketClient, bt as applyPostgres, d as backendsOf, f as constructGlobs, gt as applyBuckets, kt as stageEnv, l as workerEnvKeys, pt as backupsRoleStatements, t as appEnvKeys, ut as BACKUPS_SERVICE, v as LEGACY_LOCAL_LOGIN, vt as applyNotifications, wt as postgresStatements, x as pgClient, y as ensurePostgresLogin, yt as applyPolicies } from "./apps-DpyJvU00.mjs";
5
+ import { C as ensureLocalCertificate, Dt as envFor, E as readLocalAuthority, F as imageLayout, H as findBuildRoot, P as fromBuildRoot, S as ensureLocalAuthority, T as localCertificateNames, Z as nextPrerenderManifest, _t as applyLifecycles, b as bucketClient, bt as applyPostgres, d as backendsOf, f as constructGlobs, gt as applyBuckets, kt as stageEnv, l as workerEnvKeys, pt as backupsRoleStatements, t as appEnvKeys, ut as BACKUPS_SERVICE, v as LEGACY_LOCAL_LOGIN, vt as applyNotifications, wt as postgresStatements, x as pgClient, y as ensurePostgresLogin, yt as applyPolicies } from "./apps-iMCuJRmp.mjs";
6
6
  import { t as defineTarget } from "./define-6poNqm5O.mjs";
7
- import { E as withRedisPassword, R as usesTelemetry, Tt as withLogsLogin, _t as LOGS_SERVICE, dt as primaryPortKey, m as loadLocalCredentials, vt as LogsPortTaken, w as runsRedis, x as REDIS_SERVICE, y as withGeneratedSecrets, yt as logsAccess } from "./compose-j0SE-0EG.mjs";
7
+ import { E as withRedisPassword, R as usesTelemetry, Tt as withLogsLogin, _t as LOGS_SERVICE, dt as primaryPortKey, m as loadLocalCredentials, vt as LogsPortTaken, w as runsRedis, x as REDIS_SERVICE, y as withGeneratedSecrets, yt as logsAccess } from "./compose-DKp1s6XP.mjs";
8
8
  import { o as installedFrom } from "./drivers-BQRb3KsL.mjs";
9
9
  import { i as discover } from "./discover-B_PDDaVj.mjs";
10
- import { C as readEdgeClaims, D as assertImagesExist, E as RegistryRequired, S as edgeComposeFile, _ as EDGE_DYNAMIC_DIR, a as composeProject, b as EDGE_SERVICE, d as stackDir, g as EDGE_CERTS_DIR, h as EDGE_AWS_CREDENTIALS, i as LOOPBACK_SERVICES, k as pinImages, l as envFile, m as withLogsPort, n as LOGS_PORT_ENV, o as composeStack, p as withCaddyConfigs, r as LOG_ROTATION, t as EDGE_PORT_ENV, u as replicaNames, v as EDGE_NETWORK, w as traefikStaticFile, x as claimsOverlap, y as EDGE_PROJECT } from "./stack-DZn7Yr8z.mjs";
11
- import { a as ensureDockerignore } from "./docker-Dcsqf_NA.mjs";
12
- import { _ as stageDns, a as subscriptionKey, c as HostNotPointingAtServer, g as stackHosts, i as recordedPushSubscriptions, m as serverAddressHint, n as SUBSCRIPTION_TYPE, o as subscriptionResource, p as requiredServerAddress, r as confirmPendingSubscriptions, s as topicConnection, t as PushSubscriptionsUnconfirmed, u as isLocalHost, y as systemLookup } from "./snsSubscriptions-Cm-pdWyW.mjs";
10
+ import { C as readEdgeClaims, S as edgeComposeFile, _ as EDGE_DYNAMIC_DIR, a as composeProject, b as EDGE_SERVICE, d as stackDir, g as EDGE_CERTS_DIR, h as EDGE_AWS_CREDENTIALS, i as LOOPBACK_SERVICES, l as envFile, m as withLogsPort, n as LOGS_PORT_ENV, o as composeStack, p as withCaddyConfigs, r as LOG_ROTATION, t as EDGE_PORT_ENV, u as replicaNames, v as EDGE_NETWORK, w as traefikStaticFile, x as claimsOverlap, y as EDGE_PROJECT } from "./stack-HULMMZlf.mjs";
11
+ import { a as ensureDockerignore } from "./docker-Bu083Pc8.mjs";
12
+ import { _ as stageDns, a as subscriptionKey, c as HostNotPointingAtServer, g as stackHosts, i as recordedPushSubscriptions, m as serverAddressHint, n as SUBSCRIPTION_TYPE, o as subscriptionResource, p as requiredServerAddress, r as confirmPendingSubscriptions, s as topicConnection, t as PushSubscriptionsUnconfirmed, u as isLocalHost, y as systemLookup } from "./snsSubscriptions-DlNwAo6l.mjs";
13
13
  import { d as dnsResources, f as forgetDnsResource, i as currentActor, n as reportDatabaseRuns, p as recordDnsChanges, r as reportPlannedSeeds, s as DeployJournal, t as DeploySeedsFailed, u as dnsResourceKey } from "./seeds-Ccn0Ru2T.mjs";
14
14
  import { f as plannedSeeds, o as SeedFailed, p as seedDatabases, u as migrateDatabases } from "./databases-SFnPaOGM.mjs";
15
15
  import { dirname, join, relative } from "node:path";
@@ -466,15 +466,31 @@ function dockerExit(args, options = {}) {
466
466
  env: options.env ?? process.env,
467
467
  shell: false
468
468
  });
469
+ let stdinFailed;
469
470
  if (options.stdin && child.stdin) {
470
- options.stdin.on("error", (error) => child.stdin?.destroy(error));
471
+ options.stdin.on("error", (error) => {
472
+ stdinFailed = error;
473
+ child.stdin?.destroy(error);
474
+ });
471
475
  child.stdin.on("error", () => {});
472
476
  options.stdin.pipe(child.stdin);
473
477
  }
474
478
  child.on("error", reject);
475
- child.on("close", (code) => resolve(code ?? 1));
479
+ child.on("close", (code) => {
480
+ if (stdinFailed) reject(new StdinNotDelivered(stdinFailed));
481
+ else resolve(code ?? 1);
482
+ });
476
483
  });
477
484
  }
485
+ /** What a command run with {@link dockerExit} read from stdin failed partway. */
486
+ var StdinNotDelivered = class extends GkmError {
487
+ reason;
488
+ constructor(reason) {
489
+ super(`The input to docker stopped before its end (${reason.message}), so the command only read part of it. Run it again.`);
490
+ this.reason = reason;
491
+ this.name = "StdinNotDelivered";
492
+ }
493
+ };
478
494
  /** `docker stop` failed for some of a project's containers. */
479
495
  var ContainersNotStopped = class extends GkmError {
480
496
  project;
@@ -1114,6 +1130,183 @@ async function hostedZoneId(route53, zone) {
1114
1130
  return HostedZones.find((z) => z.Name === name)?.Id?.replace("/hostedzone/", "");
1115
1131
  }
1116
1132
  //#endregion
1133
+ //#region src/compose/images.ts
1134
+ /**
1135
+ * Which image each app runs — and, for a tag, whether every one exists.
1136
+ *
1137
+ * A tag is a release's identity: `--tag=v1.4.0` means the images CI pushed as
1138
+ * v1.4.0, and nothing else. So a stack is never half rolled out: every app's
1139
+ * image is asked of the registry before anything is pulled or the running
1140
+ * stack is touched, and one missing image stops the whole run naming every
1141
+ * one that is missing. Nor is a missing image quietly built instead — a build
1142
+ * of whatever is checked out here is not the release the tag names.
1143
+ */
1144
+ /** Images a tag names that the registry does not have. */
1145
+ var ImageTagNotFound = class extends GkmError {
1146
+ tag;
1147
+ refs;
1148
+ constructor(tag, refs) {
1149
+ super(`The registry has no image for ${refs.length === 1 ? "this app" : `${refs.length} apps`} at '${tag}':\n` + refs.map((ref) => ` - ${ref}`).join("\n") + `\nNothing was pulled or started. Push '${tag}' for every app from CI, pick a tag that exists, or run without --tag to build from this checkout.`);
1150
+ this.tag = tag;
1151
+ this.refs = refs;
1152
+ this.name = "ImageTagNotFound";
1153
+ }
1154
+ };
1155
+ /** The registry did not answer, or did not let this machine in. */
1156
+ var RegistryUnreachable = class extends GkmError {
1157
+ ref;
1158
+ detail;
1159
+ constructor(ref, detail) {
1160
+ super(`Could not ask the registry about ${ref}: ${detail || "no answer"}\nNothing was pulled or started. Check the registry is reachable and that this machine is logged in to it (\`docker login <registry>\`).`);
1161
+ this.ref = ref;
1162
+ this.detail = detail;
1163
+ this.name = "RegistryUnreachable";
1164
+ }
1165
+ };
1166
+ /**
1167
+ * A pinned image whose digest the registry would not give, while its tag it
1168
+ * would: the tag now names another image than the one the release pinned.
1169
+ *
1170
+ * Not a login problem — the registry answered for the tag. The tag was pushed
1171
+ * again (by another build of it), and the pinned image is gone, or cannot be
1172
+ * read, by its digest.
1173
+ */
1174
+ var PinnedImageMoved = class extends GkmError {
1175
+ ref;
1176
+ detail;
1177
+ constructor(ref, detail) {
1178
+ const [tagged, digest] = ref.split("@");
1179
+ super(`${tagged} is in the registry, but it resolves to a different image than the pinned ${digest}, and the registry would not give that digest${detail ? `: ${detail}` : ""}\nNothing was pulled or started. The tag was pushed again after this release's push; deploy with the digests file of a push whose images are still in the registry, or push this release again.`);
1180
+ this.ref = ref;
1181
+ this.detail = detail;
1182
+ this.name = "PinnedImageMoved";
1183
+ }
1184
+ };
1185
+ /**
1186
+ * The ref an image is asked of the registry by: a pinned one by its digest
1187
+ * alone (`<image>@sha256:…`), so a tag moved since the push cannot change the
1188
+ * answer; any other by its tag.
1189
+ */
1190
+ function lookupRef(ref) {
1191
+ const [tagged, digest] = ref.split("@");
1192
+ if (!digest) return ref;
1193
+ return `${tagged.replace(/:[\w][\w.-]*$/, "")}@${digest}`;
1194
+ }
1195
+ /**
1196
+ * Assert every image exists, before anything else happens.
1197
+ *
1198
+ * Asked all at once and reported all at once: a release missing two images is
1199
+ * one problem with two names, and finding the second only after fixing the
1200
+ * first is a slower way to learn the same thing.
1201
+ *
1202
+ * A pinned image is asked for by its digest. When the registry will not give
1203
+ * it, its tag is asked too: a tag that answers means the registry is reachable
1204
+ * and the tag names another image, and that is what is reported.
1205
+ *
1206
+ * @throws {PinnedImageMoved} when a pinned digest fails and its tag answers
1207
+ * @throws {RegistryUnreachable} when the registry cannot say
1208
+ * @throws {ImageTagNotFound} listing every missing image
1209
+ */
1210
+ async function assertImagesExist(docker, tag, images) {
1211
+ const lookups = await Promise.all(images.map(async (image) => ({
1212
+ image,
1213
+ lookup: await docker.lookup(lookupRef(image.ref))
1214
+ })));
1215
+ for (const { image, lookup } of lookups) {
1216
+ if (lookup.status === "found" || !image.ref.includes("@")) continue;
1217
+ if ((await docker.lookup(image.ref.split("@")[0])).status === "found") throw new PinnedImageMoved(image.ref, lookup.status === "unreachable" ? lookup.detail : "");
1218
+ }
1219
+ for (const { lookup } of lookups) if (lookup.status === "unreachable") throw new RegistryUnreachable(lookup.ref, lookup.detail);
1220
+ const missing = lookups.filter(({ lookup }) => lookup.status === "missing").map(({ image }) => image.ref);
1221
+ if (missing.length > 0) throw new ImageTagNotFound(tag, missing);
1222
+ }
1223
+ /**
1224
+ * A push or a pull with no `deploy.registry` to push to or pull from.
1225
+ *
1226
+ * Without one an image is named `<namespace>/<project>-<app>:<tag>`, which
1227
+ * Docker resolves to Docker Hub — so a release would be pushed to, or pulled
1228
+ * from, somebody else's account. It is never a fallback.
1229
+ */
1230
+ var RegistryRequired = class extends GkmError {
1231
+ operation;
1232
+ ref;
1233
+ constructor(operation, ref) {
1234
+ super(`${operation === "push" ? "Pushing" : "Pulling"} images needs a registry, and gkm.config.ts sets no deploy.registry: '${ref}' would be ${operation === "push" ? "pushed to" : "pulled from"} Docker Hub. Set deploy.registry (e.g. registry: 'ghcr.io/acme') in gkm.config.ts.` + (operation === "pull" ? " To run images built here instead, pass --build." : ""));
1235
+ this.operation = operation;
1236
+ this.ref = ref;
1237
+ this.name = "RegistryRequired";
1238
+ }
1239
+ };
1240
+ /** An image pinned to its digest: `<ref>@sha256:…`. */
1241
+ function pinnedRef(ref, digest) {
1242
+ return `${ref.split("@")[0]}@${digest}`;
1243
+ }
1244
+ /** A digests file with no entry for an app the stack runs. */
1245
+ var ImageDigestMissing = class extends GkmError {
1246
+ file;
1247
+ apps;
1248
+ constructor(file, apps) {
1249
+ super(`${file} pins no digest for ${apps.join(", ")}. Use the file the same release's \`gkm compose --build --push --digests-file\` wrote, or run without --digests-file to pull by tag.`);
1250
+ this.file = file;
1251
+ this.apps = apps;
1252
+ this.name = "ImageDigestMissing";
1253
+ }
1254
+ };
1255
+ /** A digests file entry that is not this app's image. */
1256
+ var ImageDigestMismatch = class extends GkmError {
1257
+ app;
1258
+ expected;
1259
+ found;
1260
+ constructor(app, expected, found) {
1261
+ super(`The digests file pins '${app}' to ${found}, but this release runs ${expected}. It was written for another registry, project, stage or tag; use the file this stage's push of this tag wrote.`);
1262
+ this.app = app;
1263
+ this.expected = expected;
1264
+ this.found = found;
1265
+ this.name = "ImageDigestMismatch";
1266
+ }
1267
+ };
1268
+ /** A digests file that is not a JSON object of app to pinned ref. */
1269
+ var ImageDigestsInvalid = class extends GkmError {
1270
+ file;
1271
+ detail;
1272
+ constructor(file, detail) {
1273
+ super(`${file} is not a digests file (${detail}). It should be the JSON object \`gkm compose --build --push --digests-file\` writes: { "api": "<registry>/<image>:<tag>@sha256:…" }.`);
1274
+ this.file = file;
1275
+ this.detail = detail;
1276
+ this.name = "ImageDigestsInvalid";
1277
+ }
1278
+ };
1279
+ /** Parse a digests file's content, checking its shape. */
1280
+ function parseDigests(file, content) {
1281
+ let parsed;
1282
+ try {
1283
+ parsed = JSON.parse(content);
1284
+ } catch (error) {
1285
+ throw new ImageDigestsInvalid(file, error instanceof Error ? error.message : String(error));
1286
+ }
1287
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) throw new ImageDigestsInvalid(file, "not a JSON object");
1288
+ for (const [app, value] of Object.entries(parsed)) if (typeof value !== "string" || !/@sha256:[0-9a-f]{64}$/.test(value)) throw new ImageDigestsInvalid(file, `'${app}' is not an <image>:<tag>@sha256:… ref`);
1289
+ return parsed;
1290
+ }
1291
+ /**
1292
+ * Each image pinned to the digest the file names for it.
1293
+ *
1294
+ * @throws {ImageDigestMissing} naming every app the file has no entry for
1295
+ * @throws {ImageDigestMismatch} when an entry is another image or tag
1296
+ */
1297
+ function pinImages(file, digests, images) {
1298
+ const missing = images.filter((image) => !digests[image.app]).map((image) => image.app);
1299
+ if (missing.length > 0) throw new ImageDigestMissing(file, missing);
1300
+ return images.map((image) => {
1301
+ const pinned = digests[image.app];
1302
+ if (pinned.split("@")[0] !== image.ref) throw new ImageDigestMismatch(image.app, image.ref, pinned);
1303
+ return {
1304
+ ...image,
1305
+ ref: pinned
1306
+ };
1307
+ });
1308
+ }
1309
+ //#endregion
1117
1310
  //#region src/compose/secrets.ts
1118
1311
  function deployedStackSecrets(workspace, stage, stored, manifest) {
1119
1312
  const withSeed = withGeneratedSecrets(stored ?? initStageSecrets(stage), manifest);
@@ -1725,7 +1918,7 @@ async function validateCompose(ctx, deps, options = {}) {
1725
1918
  if (push && mode !== "build") throw new ComposePushNeedsBuild();
1726
1919
  if (options.pin && mode !== "pull") throw new ComposePinNeedsPull();
1727
1920
  const registry = workspace.deploy?.registry;
1728
- if (!registry && (push || mode === "pull")) throw new RegistryRequired(push ? "push" : "pull", imageRef(identity, ctx.apps[0] ?? workspace.name, void 0, tag));
1921
+ if (!registry && (push || mode === "pull")) throw new RegistryRequired(push ? "push" : "pull", imageRef(identity, ctx.apps[0] ?? workspace.name, void 0, stageTag(tag, stage)));
1729
1922
  const background = {};
1730
1923
  const subscribers = {};
1731
1924
  const manifest = await discover({
@@ -1775,7 +1968,7 @@ async function validateCompose(ctx, deps, options = {}) {
1775
1968
  const pinned = (unpinned) => options.pin ? withPinnedImages(unpinned, options.pin.file, options.pin.digests) : unpinned;
1776
1969
  const stack = pinned(composed);
1777
1970
  for (const warning of stack.warnings) ctx.logger.warn(`⚠ ${warning}`);
1778
- if (mode === "pull" && !ctx.dryRun) await assertImagesExist(deps.docker, tag, [
1971
+ if (mode === "pull" && !ctx.dryRun) await assertImagesExist(deps.docker, stageTag(tag, stage), [
1779
1972
  ...stack.apps,
1780
1973
  ...stack.workers,
1781
1974
  ...stack.processors
@@ -2453,7 +2646,7 @@ async function buildCompose(ctx, run, deps) {
2453
2646
  ctx.logger.info("\n🐳 Building images…");
2454
2647
  await deps.docker.build(ref, now.map((image) => image.app));
2455
2648
  } else {
2456
- ctx.logger.info(`\n🐳 Pulling ${ctx.tag}…`);
2649
+ ctx.logger.info(`\n🐳 Pulling ${stageTag(ctx.tag, ctx.stage)}…`);
2457
2650
  await deps.docker.pull(ref, apps);
2458
2651
  }
2459
2652
  if (run.push) ctx.logger.info("\n📤 Pushing images…");
@@ -2973,7 +3166,7 @@ function composeResult(ctx, run) {
2973
3166
  failedCount: 0,
2974
3167
  stage: ctx.stage,
2975
3168
  identity: ctx.identity.key,
2976
- tag: ctx.tag,
3169
+ tag: stageTag(ctx.tag, ctx.stage),
2977
3170
  dryRun: ctx.dryRun,
2978
3171
  environmentId: "",
2979
3172
  skipped: [...ctx.skipped],
@@ -3187,6 +3380,6 @@ function composeTarget(options = {}) {
3187
3380
  });
3188
3381
  }
3189
3382
  //#endregion
3190
- export { projectNetwork as _, edgePorts as a, edgeRef as c, dockerHost as d, sshAccess as f, dockerCompose as g, ContainersNotStopped as h, ComposePushNeedsBuild as i, removeEdgeRoutes as l, ContainersNotStarted as m, compose_exports as n, stackOverrideFile as o, sshTarget as p, ComposePinNeedsPull as r, deployedStackSecrets as s, composeTarget as t, composeServer as u };
3383
+ export { ContainersNotStopped as _, edgePorts as a, parseDigests as c, removeEdgeRoutes as d, composeServer as f, ContainersNotStarted as g, sshTarget as h, ComposePushNeedsBuild as i, pinnedRef as l, sshAccess as m, compose_exports as n, stackOverrideFile as o, dockerHost as p, ComposePinNeedsPull as r, deployedStackSecrets as s, composeTarget as t, edgeRef as u, dockerCompose as v, projectNetwork as y };
3191
3384
 
3192
- //# sourceMappingURL=compose-CbXGx1_z.mjs.map
3385
+ //# sourceMappingURL=compose-hcFa0rWb.mjs.map