@geekmidas/cli 10.0.0-alpha.14 → 10.0.0-alpha.140

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 (424) hide show
  1. package/README.md +313 -380
  2. package/bin/adjacent-tsconfig.mjs +46 -8
  3. package/bin/gkm.mjs +11 -3
  4. package/bin/owning-tsconfig-jsx-register.mjs +18 -0
  5. package/bin/owning-tsconfig-jsx.mjs +108 -0
  6. package/dist/EndpointGenerator-BMRL04ic.mjs +1037 -0
  7. package/dist/EndpointGenerator-BMRL04ic.mjs.map +1 -0
  8. package/dist/EndpointGenerator-ePscnbwB.cjs +1096 -0
  9. package/dist/EndpointGenerator-ePscnbwB.cjs.map +1 -0
  10. package/dist/GoDaddyProvider-BgY6mqoH.mjs +413 -0
  11. package/dist/GoDaddyProvider-BgY6mqoH.mjs.map +1 -0
  12. package/dist/GoDaddyProvider-C-rs22Zv.cjs +413 -0
  13. package/dist/GoDaddyProvider-C-rs22Zv.cjs.map +1 -0
  14. package/dist/{HostingerProvider-BY26bWwB.mjs → HostingerProvider-CgMuKgO_.mjs} +23 -9
  15. package/dist/HostingerProvider-CgMuKgO_.mjs.map +1 -0
  16. package/dist/{HostingerProvider-BZFGYYVA.cjs → HostingerProvider-DEqpvoiD.cjs} +23 -9
  17. package/dist/HostingerProvider-DEqpvoiD.cjs.map +1 -0
  18. package/dist/LegacyStateStore-6xskEtld.cjs +124 -0
  19. package/dist/LegacyStateStore-6xskEtld.cjs.map +1 -0
  20. package/dist/LegacyStateStore-Dx65SWE9.mjs +124 -0
  21. package/dist/LegacyStateStore-Dx65SWE9.mjs.map +1 -0
  22. package/dist/LocalStateStore-DFtTtHty.cjs +178 -0
  23. package/dist/LocalStateStore-DFtTtHty.cjs.map +1 -0
  24. package/dist/LocalStateStore-Dto39TCx.mjs +167 -0
  25. package/dist/LocalStateStore-Dto39TCx.mjs.map +1 -0
  26. package/dist/OpenApiTsGenerator-B-PQLx8X.mjs +534 -0
  27. package/dist/OpenApiTsGenerator-B-PQLx8X.mjs.map +1 -0
  28. package/dist/OpenApiTsGenerator-BvacdbiG.cjs +539 -0
  29. package/dist/OpenApiTsGenerator-BvacdbiG.cjs.map +1 -0
  30. package/dist/{Route53Provider-Cvj40A8I.mjs → Route53Provider-Di_SD9CF.mjs} +3 -3
  31. package/dist/Route53Provider-Di_SD9CF.mjs.map +1 -0
  32. package/dist/{Route53Provider-DVILBsvV.cjs → Route53Provider-emLuQHVw.cjs} +3 -3
  33. package/dist/Route53Provider-emLuQHVw.cjs.map +1 -0
  34. package/dist/S3StateStore-B-9ea-sX.cjs +222 -0
  35. package/dist/S3StateStore-B-9ea-sX.cjs.map +1 -0
  36. package/dist/S3StateStore-C01zMOYm.mjs +223 -0
  37. package/dist/S3StateStore-C01zMOYm.mjs.map +1 -0
  38. package/dist/SSMStateStore-CKArcPUh.cjs +204 -0
  39. package/dist/SSMStateStore-CKArcPUh.cjs.map +1 -0
  40. package/dist/SSMStateStore-k-4XM7mb.mjs +205 -0
  41. package/dist/SSMStateStore-k-4XM7mb.mjs.map +1 -0
  42. package/dist/SubscriberGenerator-DLPH-ynS.mjs +783 -0
  43. package/dist/SubscriberGenerator-DLPH-ynS.mjs.map +1 -0
  44. package/dist/SubscriberGenerator-DR4Y7ihK.cjs +848 -0
  45. package/dist/SubscriberGenerator-DR4Y7ihK.cjs.map +1 -0
  46. package/dist/add-BgzsYxUq.cjs +713 -0
  47. package/dist/add-BgzsYxUq.cjs.map +1 -0
  48. package/dist/add-CiIrpOb9.mjs +711 -0
  49. package/dist/add-CiIrpOb9.mjs.map +1 -0
  50. package/dist/appPorts-BoXMwolc.mjs +249 -0
  51. package/dist/appPorts-BoXMwolc.mjs.map +1 -0
  52. package/dist/appPorts-IW-OZmRi.cjs +296 -0
  53. package/dist/appPorts-IW-OZmRi.cjs.map +1 -0
  54. package/dist/aws-8QQ8n-t6.mjs +89 -0
  55. package/dist/aws-8QQ8n-t6.mjs.map +1 -0
  56. package/dist/aws-DY9NqQIT.cjs +100 -0
  57. package/dist/aws-DY9NqQIT.cjs.map +1 -0
  58. package/dist/awsStore-Bx5nCFnS.mjs +121 -0
  59. package/dist/awsStore-Bx5nCFnS.mjs.map +1 -0
  60. package/dist/awsStore-u3ehhMoY.cjs +138 -0
  61. package/dist/awsStore-u3ehhMoY.cjs.map +1 -0
  62. package/dist/{backup-provisioner-DIVCbfee.mjs → backup-provisioner-C8DnCmxK.mjs} +2 -2
  63. package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
  64. package/dist/{backup-provisioner-BmhIO_Yr.cjs → backup-provisioner-oDEsPj02.cjs} +2 -2
  65. package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
  66. package/dist/backups/runner.cjs +519 -0
  67. package/dist/backups/runner.cjs.map +1 -0
  68. package/dist/backups/runner.d.cts +102 -0
  69. package/dist/backups/runner.d.cts.map +1 -0
  70. package/dist/backups/runner.d.mts +102 -0
  71. package/dist/backups/runner.d.mts.map +1 -0
  72. package/dist/backups/runner.mjs +506 -0
  73. package/dist/backups/runner.mjs.map +1 -0
  74. package/dist/{bundler-BodTL4kf.mjs → bundler-C4uMSy8e.mjs} +32 -11
  75. package/dist/bundler-C4uMSy8e.mjs.map +1 -0
  76. package/dist/{bundler-BeNDZdHQ.cjs → bundler-DKxuDoVL.cjs} +32 -11
  77. package/dist/bundler-DKxuDoVL.cjs.map +1 -0
  78. package/dist/cli-Bm2is6R_.mjs +71 -0
  79. package/dist/cli-Bm2is6R_.mjs.map +1 -0
  80. package/dist/cli-na0npMhC.cjs +71 -0
  81. package/dist/cli-na0npMhC.cjs.map +1 -0
  82. package/dist/compose-CVatM7Cl.mjs +4275 -0
  83. package/dist/compose-CVatM7Cl.mjs.map +1 -0
  84. package/dist/compose-D8U9ygdm.cjs +4418 -0
  85. package/dist/compose-D8U9ygdm.cjs.map +1 -0
  86. package/dist/config-BbivVpq0.d.mts +268 -0
  87. package/dist/config-BbivVpq0.d.mts.map +1 -0
  88. package/dist/config-BcL1Fojs.d.cts +268 -0
  89. package/dist/config-BcL1Fojs.d.cts.map +1 -0
  90. package/dist/config.cjs +420 -9
  91. package/dist/config.cjs.map +1 -0
  92. package/dist/config.d.cts +4 -117
  93. package/dist/config.d.mts +4 -117
  94. package/dist/config.mjs +406 -3
  95. package/dist/config.mjs.map +1 -0
  96. package/dist/credentialSchemas-DUCSYl9a.mjs +237 -0
  97. package/dist/credentialSchemas-DUCSYl9a.mjs.map +1 -0
  98. package/dist/credentialSchemas-DZ2Nh5li.cjs +272 -0
  99. package/dist/credentialSchemas-DZ2Nh5li.cjs.map +1 -0
  100. package/dist/credentials-D7XJypNd.cjs +520 -0
  101. package/dist/credentials-D7XJypNd.cjs.map +1 -0
  102. package/dist/credentials-DpfnUvIR.mjs +395 -0
  103. package/dist/credentials-DpfnUvIR.mjs.map +1 -0
  104. package/dist/databases-Db48ZIXL.mjs +588 -0
  105. package/dist/databases-Db48ZIXL.mjs.map +1 -0
  106. package/dist/databases-P824RTnx.cjs +703 -0
  107. package/dist/databases-P824RTnx.cjs.map +1 -0
  108. package/dist/define-6poNqm5O.mjs +106 -0
  109. package/dist/define-6poNqm5O.mjs.map +1 -0
  110. package/dist/define-crmMcXFS.cjs +153 -0
  111. package/dist/define-crmMcXFS.cjs.map +1 -0
  112. package/dist/deploy/public.cjs +211 -0
  113. package/dist/deploy/public.cjs.map +1 -0
  114. package/dist/deploy/public.d.cts +647 -0
  115. package/dist/deploy/public.d.cts.map +1 -0
  116. package/dist/deploy/public.d.mts +647 -0
  117. package/dist/deploy/public.d.mts.map +1 -0
  118. package/dist/deploy/public.mjs +144 -0
  119. package/dist/deploy/public.mjs.map +1 -0
  120. package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
  121. package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
  122. package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
  123. package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
  124. package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
  125. package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
  126. package/dist/deploy/sniffer-hooks.cjs +1 -1
  127. package/dist/deploy/sniffer-hooks.mjs +1 -1
  128. package/dist/deploy/sniffer-loader.cjs +2 -2
  129. package/dist/deploy/sniffer-loader.mjs +1 -1
  130. package/dist/deploy/sniffer-routes-worker.cjs +2 -2
  131. package/dist/deploy/sniffer-routes-worker.mjs +1 -1
  132. package/dist/deploy-CDcO08Xz.mjs +3835 -0
  133. package/dist/deploy-CDcO08Xz.mjs.map +1 -0
  134. package/dist/deploy-DrQB7ytj.cjs +3891 -0
  135. package/dist/deploy-DrQB7ytj.cjs.map +1 -0
  136. package/dist/derive-Cd7Hl3r2.mjs +259 -0
  137. package/dist/derive-Cd7Hl3r2.mjs.map +1 -0
  138. package/dist/derive-CgZfoBU2.cjs +282 -0
  139. package/dist/derive-CgZfoBU2.cjs.map +1 -0
  140. package/dist/discover-B2m8ytyq.mjs +831 -0
  141. package/dist/discover-B2m8ytyq.mjs.map +1 -0
  142. package/dist/discover-yqeJ2Bx7.cjs +934 -0
  143. package/dist/discover-yqeJ2Bx7.cjs.map +1 -0
  144. package/dist/dokploy-BKjPDvSN.cjs +38 -0
  145. package/dist/dokploy-BKjPDvSN.cjs.map +1 -0
  146. package/dist/dokploy-k4_ZN8zN.mjs +38 -0
  147. package/dist/dokploy-k4_ZN8zN.mjs.map +1 -0
  148. package/dist/drivers-C47nm-wB.cjs +311 -0
  149. package/dist/drivers-C47nm-wB.cjs.map +1 -0
  150. package/dist/drivers-CDjpjakg.mjs +252 -0
  151. package/dist/drivers-CDjpjakg.mjs.map +1 -0
  152. package/dist/eas-B1wBvwPH.mjs +334 -0
  153. package/dist/eas-B1wBvwPH.mjs.map +1 -0
  154. package/dist/eas-Bg4dI6n2.cjs +337 -0
  155. package/dist/eas-Bg4dI6n2.cjs.map +1 -0
  156. package/dist/emit-Bj6XSivk.mjs +136 -0
  157. package/dist/emit-Bj6XSivk.mjs.map +1 -0
  158. package/dist/emit-CDC__ubE.cjs +147 -0
  159. package/dist/emit-CDC__ubE.cjs.map +1 -0
  160. package/dist/encryption-Bve0PVOo.mjs +89 -0
  161. package/dist/encryption-Bve0PVOo.mjs.map +1 -0
  162. package/dist/encryption-DL_y8t6V.cjs +90 -0
  163. package/dist/encryption-DL_y8t6V.cjs.map +1 -0
  164. package/dist/engine-BhR5lt_V.cjs +3323 -0
  165. package/dist/engine-BhR5lt_V.cjs.map +1 -0
  166. package/dist/engine-HMLf20iZ.mjs +3210 -0
  167. package/dist/engine-HMLf20iZ.mjs.map +1 -0
  168. package/dist/errors-D8Gwp5kU.mjs +23 -0
  169. package/dist/errors-D8Gwp5kU.mjs.map +1 -0
  170. package/dist/errors-DMC4Umsb.cjs +34 -0
  171. package/dist/errors-DMC4Umsb.cjs.map +1 -0
  172. package/dist/github-B2hJVl-n.cjs +901 -0
  173. package/dist/github-B2hJVl-n.cjs.map +1 -0
  174. package/dist/github-DKn9ACi2.mjs +900 -0
  175. package/dist/github-DKn9ACi2.mjs.map +1 -0
  176. package/dist/googlePlay-CWq7ND_X.mjs +931 -0
  177. package/dist/googlePlay-CWq7ND_X.mjs.map +1 -0
  178. package/dist/googlePlay-DtuN0-7D.cjs +931 -0
  179. package/dist/googlePlay-DtuN0-7D.cjs.map +1 -0
  180. package/dist/identity-CBXr4wNi.mjs +129 -0
  181. package/dist/identity-CBXr4wNi.mjs.map +1 -0
  182. package/dist/identity-CbLfgQNT.cjs +182 -0
  183. package/dist/identity-CbLfgQNT.cjs.map +1 -0
  184. package/dist/{index-D-iAVHx-.d.cts → index-BZZeEWug.d.mts} +39 -15
  185. package/dist/index-BZZeEWug.d.mts.map +1 -0
  186. package/dist/{index-Cd-qeOam.d.mts → index-C1jffZ5_.d.cts} +39 -15
  187. package/dist/index-C1jffZ5_.d.cts.map +1 -0
  188. package/dist/index.cjs +13502 -12269
  189. package/dist/index.cjs.map +1 -1
  190. package/dist/index.mjs +13522 -12287
  191. package/dist/index.mjs.map +1 -1
  192. package/dist/local-B7Zv1NoA.mjs +224 -0
  193. package/dist/local-B7Zv1NoA.mjs.map +1 -0
  194. package/dist/local-OPC9BCZt.cjs +241 -0
  195. package/dist/local-OPC9BCZt.cjs.map +1 -0
  196. package/dist/migrate-BLVZqHtN.cjs +181 -0
  197. package/dist/migrate-BLVZqHtN.cjs.map +1 -0
  198. package/dist/migrate-DCvD4RJW.mjs +265 -0
  199. package/dist/migrate-DCvD4RJW.mjs.map +1 -0
  200. package/dist/migrate-W0ruUNb9.mjs +181 -0
  201. package/dist/migrate-W0ruUNb9.mjs.map +1 -0
  202. package/dist/migrate-iUui7B4q.cjs +270 -0
  203. package/dist/migrate-iUui7B4q.cjs.map +1 -0
  204. package/dist/openapi.cjs +214 -7
  205. package/dist/openapi.cjs.map +1 -0
  206. package/dist/openapi.d.cts +32 -8
  207. package/dist/openapi.d.cts.map +1 -1
  208. package/dist/openapi.d.mts +32 -8
  209. package/dist/openapi.d.mts.map +1 -1
  210. package/dist/openapi.mjs +209 -2
  211. package/dist/openapi.mjs.map +1 -0
  212. package/dist/projectBucket-BBbQ1lHF.cjs +263 -0
  213. package/dist/projectBucket-BBbQ1lHF.cjs.map +1 -0
  214. package/dist/projectBucket-C_DN4WzF.mjs +222 -0
  215. package/dist/projectBucket-C_DN4WzF.mjs.map +1 -0
  216. package/dist/provider-BqpjG9QM.cjs +57 -0
  217. package/dist/provider-BqpjG9QM.cjs.map +1 -0
  218. package/dist/provider-CEOKk8NS.mjs +46 -0
  219. package/dist/provider-CEOKk8NS.mjs.map +1 -0
  220. package/dist/publish-CqvDA5ry.cjs +124 -0
  221. package/dist/publish-CqvDA5ry.cjs.map +1 -0
  222. package/dist/publish-CxIBBD3b.mjs +123 -0
  223. package/dist/publish-CxIBBD3b.mjs.map +1 -0
  224. package/dist/ready-CGqJ74Kt.mjs +375 -0
  225. package/dist/ready-CGqJ74Kt.mjs.map +1 -0
  226. package/dist/ready-DuU0FXSj.cjs +404 -0
  227. package/dist/ready-DuU0FXSj.cjs.map +1 -0
  228. package/dist/reconcile/public.cjs +3 -5
  229. package/dist/reconcile/public.d.cts +31 -89
  230. package/dist/reconcile/public.d.cts.map +1 -1
  231. package/dist/reconcile/public.d.mts +31 -89
  232. package/dist/reconcile/public.d.mts.map +1 -1
  233. package/dist/reconcile/public.mjs +3 -3
  234. package/dist/{reconcile-DhQ00DpU.mjs → reconcile--I7V4Klj.mjs} +2 -2
  235. package/dist/{reconcile-DhQ00DpU.mjs.map → reconcile--I7V4Klj.mjs.map} +1 -1
  236. package/dist/{reconcile-Dd2iyILf.cjs → reconcile-CuCQBa5-.cjs} +3 -3
  237. package/dist/{reconcile-Dd2iyILf.cjs.map → reconcile-CuCQBa5-.cjs.map} +1 -1
  238. package/dist/resolve-BEVVvi13.cjs +316 -0
  239. package/dist/resolve-BEVVvi13.cjs.map +1 -0
  240. package/dist/resolve-CMC0MI0Z.mjs +263 -0
  241. package/dist/resolve-CMC0MI0Z.mjs.map +1 -0
  242. package/dist/rollback-CZiQkukY.mjs +136 -0
  243. package/dist/rollback-CZiQkukY.mjs.map +1 -0
  244. package/dist/rollback-e0zGkaBx.cjs +165 -0
  245. package/dist/rollback-e0zGkaBx.cjs.map +1 -0
  246. package/dist/runtime-Bvgyxm88.d.cts +82 -0
  247. package/dist/runtime-Bvgyxm88.d.cts.map +1 -0
  248. package/dist/runtime-CeAt1IJd.d.mts +82 -0
  249. package/dist/runtime-CeAt1IJd.d.mts.map +1 -0
  250. package/dist/s3-BKnL6YGQ.cjs +215 -0
  251. package/dist/s3-BKnL6YGQ.cjs.map +1 -0
  252. package/dist/s3-DW7SLsb8.mjs +215 -0
  253. package/dist/s3-DW7SLsb8.mjs.map +1 -0
  254. package/dist/sandbox/config-worker.cjs +43 -0
  255. package/dist/sandbox/config-worker.cjs.map +1 -0
  256. package/dist/sandbox/config-worker.d.cts +1 -0
  257. package/dist/sandbox/config-worker.d.mts +1 -0
  258. package/dist/sandbox/config-worker.mjs +44 -0
  259. package/dist/sandbox/config-worker.mjs.map +1 -0
  260. package/dist/sandbox/credentials-worker.cjs +54 -0
  261. package/dist/sandbox/credentials-worker.cjs.map +1 -0
  262. package/dist/sandbox/credentials-worker.d.cts +1 -0
  263. package/dist/sandbox/credentials-worker.d.mts +1 -0
  264. package/dist/sandbox/credentials-worker.mjs +55 -0
  265. package/dist/sandbox/credentials-worker.mjs.map +1 -0
  266. package/dist/sandbox/discover-worker.cjs +47 -0
  267. package/dist/sandbox/discover-worker.cjs.map +1 -0
  268. package/dist/sandbox/discover-worker.d.cts +1 -0
  269. package/dist/sandbox/discover-worker.d.mts +1 -0
  270. package/dist/sandbox/discover-worker.mjs +48 -0
  271. package/dist/sandbox/discover-worker.mjs.map +1 -0
  272. package/dist/sandbox/migrate-worker.cjs +76 -0
  273. package/dist/sandbox/migrate-worker.cjs.map +1 -0
  274. package/dist/sandbox/migrate-worker.d.cts +1 -0
  275. package/dist/sandbox/migrate-worker.d.mts +1 -0
  276. package/dist/sandbox/migrate-worker.mjs +77 -0
  277. package/dist/sandbox/migrate-worker.mjs.map +1 -0
  278. package/dist/sandbox-CHv3OYXg.cjs +165 -0
  279. package/dist/sandbox-CHv3OYXg.cjs.map +1 -0
  280. package/dist/sandbox-CbVB7uOD.mjs +118 -0
  281. package/dist/sandbox-CbVB7uOD.mjs.map +1 -0
  282. package/dist/{workspace-mFpI_ky_.cjs → schemas-BCwKKA42.mjs} +399 -1162
  283. package/dist/schemas-BCwKKA42.mjs.map +1 -0
  284. package/dist/{workspace-CgwmXEtc.mjs → schemas-BQ_v0lEX.cjs} +487 -971
  285. package/dist/schemas-BQ_v0lEX.cjs.map +1 -0
  286. package/dist/secretsManager-CQORubp9.mjs +97 -0
  287. package/dist/secretsManager-CQORubp9.mjs.map +1 -0
  288. package/dist/secretsManager-RAGcEDX1.cjs +108 -0
  289. package/dist/secretsManager-RAGcEDX1.cjs.map +1 -0
  290. package/dist/seeds-BR_7hJTw.cjs +10541 -0
  291. package/dist/seeds-BR_7hJTw.cjs.map +1 -0
  292. package/dist/seeds-nCxxlP5h.mjs +9418 -0
  293. package/dist/seeds-nCxxlP5h.mjs.map +1 -0
  294. package/dist/serverSetup-C3Tt9X1R.mjs +651 -0
  295. package/dist/serverSetup-C3Tt9X1R.mjs.map +1 -0
  296. package/dist/serverSetup-D2Xzsp2t.cjs +651 -0
  297. package/dist/serverSetup-D2Xzsp2t.cjs.map +1 -0
  298. package/dist/sniffer-BWgXPFAt.cjs +1998 -0
  299. package/dist/sniffer-BWgXPFAt.cjs.map +1 -0
  300. package/dist/sniffer-eEF_fIId.mjs +1825 -0
  301. package/dist/sniffer-eEF_fIId.mjs.map +1 -0
  302. package/dist/snsSubscriptions-BSoqUgsq.mjs +1497 -0
  303. package/dist/snsSubscriptions-BSoqUgsq.mjs.map +1 -0
  304. package/dist/snsSubscriptions-Y9declDd.cjs +1720 -0
  305. package/dist/snsSubscriptions-Y9declDd.cjs.map +1 -0
  306. package/dist/sst-Bz2HJlqc.mjs +440 -0
  307. package/dist/sst-Bz2HJlqc.mjs.map +1 -0
  308. package/dist/sst-lvCHdYsY.cjs +463 -0
  309. package/dist/sst-lvCHdYsY.cjs.map +1 -0
  310. package/dist/stage-BEcxppsu.cjs +310 -0
  311. package/dist/stage-BEcxppsu.cjs.map +1 -0
  312. package/dist/stage-DhcbcAar.mjs +299 -0
  313. package/dist/stage-DhcbcAar.mjs.map +1 -0
  314. package/dist/stages--icWbhPy.cjs +190 -0
  315. package/dist/stages--icWbhPy.cjs.map +1 -0
  316. package/dist/stages-CUwSy39f.mjs +190 -0
  317. package/dist/stages-CUwSy39f.mjs.map +1 -0
  318. package/dist/target/public.cjs +15 -0
  319. package/dist/target/public.d.cts +28 -0
  320. package/dist/target/public.d.cts.map +1 -0
  321. package/dist/target/public.d.mts +28 -0
  322. package/dist/target/public.d.mts.map +1 -0
  323. package/dist/target/public.mjs +4 -0
  324. package/dist/terminal-DURcYlVX.cjs +85 -0
  325. package/dist/terminal-DURcYlVX.cjs.map +1 -0
  326. package/dist/terminal-yOZ7kKF9.mjs +85 -0
  327. package/dist/terminal-yOZ7kKF9.mjs.map +1 -0
  328. package/dist/{types-C5ZNpUad.d.cts → types-C6hDCkV2.d.mts} +2229 -456
  329. package/dist/types-C6hDCkV2.d.mts.map +1 -0
  330. package/dist/{types-BGo5TaNE.d.mts → types-Dy1eV7yc.d.cts} +2231 -456
  331. package/dist/types-Dy1eV7yc.d.cts.map +1 -0
  332. package/dist/utils-D2Nk1Nv2.cjs +205 -0
  333. package/dist/utils-D2Nk1Nv2.cjs.map +1 -0
  334. package/dist/utils-D_fxUqvU.mjs +156 -0
  335. package/dist/utils-D_fxUqvU.mjs.map +1 -0
  336. package/dist/vitest.cjs +65 -0
  337. package/dist/vitest.cjs.map +1 -0
  338. package/dist/vitest.d.cts +29 -0
  339. package/dist/vitest.d.cts.map +1 -0
  340. package/dist/vitest.d.mts +29 -0
  341. package/dist/vitest.d.mts.map +1 -0
  342. package/dist/vitest.mjs +65 -0
  343. package/dist/vitest.mjs.map +1 -0
  344. package/dist/workerRuntime-BXfhbe13.cjs +108 -0
  345. package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
  346. package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
  347. package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
  348. package/dist/workspace/index.cjs +6 -2
  349. package/dist/workspace/index.d.cts +3 -3
  350. package/dist/workspace/index.d.mts +3 -3
  351. package/dist/workspace/index.mjs +2 -2
  352. package/dist/workspace-BbfBFtjn.mjs +2488 -0
  353. package/dist/workspace-BbfBFtjn.mjs.map +1 -0
  354. package/dist/workspace-Dkm3HL9e.cjs +2924 -0
  355. package/dist/workspace-Dkm3HL9e.cjs.map +1 -0
  356. package/package.json +61 -14
  357. package/dist/HostingerProvider-BY26bWwB.mjs.map +0 -1
  358. package/dist/HostingerProvider-BZFGYYVA.cjs.map +0 -1
  359. package/dist/LocalStateProvider-7HR6SS2t.cjs +0 -48
  360. package/dist/LocalStateProvider-7HR6SS2t.cjs.map +0 -1
  361. package/dist/LocalStateProvider-D7QyJoLM.mjs +0 -48
  362. package/dist/LocalStateProvider-D7QyJoLM.mjs.map +0 -1
  363. package/dist/Route53Provider-Cvj40A8I.mjs.map +0 -1
  364. package/dist/Route53Provider-DVILBsvV.cjs.map +0 -1
  365. package/dist/SSMStateProvider-B0Hu1MKZ.mjs +0 -75
  366. package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +0 -1
  367. package/dist/SSMStateProvider-VrQ-yeqd.cjs +0 -74
  368. package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +0 -1
  369. package/dist/backup-provisioner-BmhIO_Yr.cjs.map +0 -1
  370. package/dist/backup-provisioner-DIVCbfee.mjs.map +0 -1
  371. package/dist/bundler-BeNDZdHQ.cjs.map +0 -1
  372. package/dist/bundler-BodTL4kf.mjs.map +0 -1
  373. package/dist/config-Q1rvKHvw.cjs +0 -467
  374. package/dist/config-Q1rvKHvw.cjs.map +0 -1
  375. package/dist/config-pqGD3hF9.mjs +0 -414
  376. package/dist/config-pqGD3hF9.mjs.map +0 -1
  377. package/dist/config.d.cts.map +0 -1
  378. package/dist/config.d.mts.map +0 -1
  379. package/dist/credentials-BekkKtY_.mjs +0 -2780
  380. package/dist/credentials-BekkKtY_.mjs.map +0 -1
  381. package/dist/credentials-Q6F0uqJq.cjs +0 -2917
  382. package/dist/credentials-Q6F0uqJq.cjs.map +0 -1
  383. package/dist/discover-BERGFg8v.cjs +0 -288
  384. package/dist/discover-BERGFg8v.cjs.map +0 -1
  385. package/dist/discover-CK-n3w6b.mjs +0 -244
  386. package/dist/discover-CK-n3w6b.mjs.map +0 -1
  387. package/dist/emit-BdoPFjZf.cjs +0 -253
  388. package/dist/emit-BdoPFjZf.cjs.map +0 -1
  389. package/dist/emit-Bzq7JsMP.mjs +0 -224
  390. package/dist/emit-Bzq7JsMP.mjs.map +0 -1
  391. package/dist/fullstack-secrets-BET8gqwK.mjs +0 -81
  392. package/dist/fullstack-secrets-BET8gqwK.mjs.map +0 -1
  393. package/dist/fullstack-secrets-DXsWO-5m.cjs +0 -92
  394. package/dist/fullstack-secrets-DXsWO-5m.cjs.map +0 -1
  395. package/dist/generator-LfZU7NlU.mjs +0 -247
  396. package/dist/generator-LfZU7NlU.mjs.map +0 -1
  397. package/dist/generator-Wdfp0jCS.cjs +0 -282
  398. package/dist/generator-Wdfp0jCS.cjs.map +0 -1
  399. package/dist/github-BfflNPVe.cjs +0 -203
  400. package/dist/github-BfflNPVe.cjs.map +0 -1
  401. package/dist/github-CRwnxKmD.mjs +0 -203
  402. package/dist/github-CRwnxKmD.mjs.map +0 -1
  403. package/dist/index-Cd-qeOam.d.mts.map +0 -1
  404. package/dist/index-D-iAVHx-.d.cts.map +0 -1
  405. package/dist/keystore-B4PRlbgE.mjs +0 -81
  406. package/dist/keystore-B4PRlbgE.mjs.map +0 -1
  407. package/dist/keystore-DgGRj2Yy.cjs +0 -98
  408. package/dist/keystore-DgGRj2Yy.cjs.map +0 -1
  409. package/dist/openapi-Dcbme-Us.cjs +0 -2038
  410. package/dist/openapi-Dcbme-Us.cjs.map +0 -1
  411. package/dist/openapi-vy4JzhUv.mjs +0 -1991
  412. package/dist/openapi-vy4JzhUv.mjs.map +0 -1
  413. package/dist/storage-C-30BD1e.cjs +0 -272
  414. package/dist/storage-C-30BD1e.cjs.map +0 -1
  415. package/dist/storage-P_b3w7uj.mjs +0 -231
  416. package/dist/storage-P_b3w7uj.mjs.map +0 -1
  417. package/dist/sync-B3xxXtJT.mjs +0 -88
  418. package/dist/sync-B3xxXtJT.mjs.map +0 -1
  419. package/dist/sync-D7uTIIEi.cjs +0 -111
  420. package/dist/sync-D7uTIIEi.cjs.map +0 -1
  421. package/dist/types-BGo5TaNE.d.mts.map +0 -1
  422. package/dist/types-C5ZNpUad.d.cts.map +0 -1
  423. package/dist/workspace-CgwmXEtc.mjs.map +0 -1
  424. package/dist/workspace-mFpI_ky_.cjs.map +0 -1
@@ -0,0 +1,57 @@
1
+ const require_errors = require("./errors-DMC4Umsb.cjs");
2
+ const require_define = require("./define-crmMcXFS.cjs");
3
+ //#region src/target/provider.ts
4
+ /**
5
+ * `gkm deploy --provider`, from before there were targets.
6
+ *
7
+ * It named three things, and only one of them ever deployed a workspace:
8
+ * `dokploy` is now the target of that name; `docker` and `aws-lambda` were
9
+ * accepted and always failed, so they are gone with a pointer to what does
10
+ * the job.
11
+ */
12
+ /** What each removed provider's job is done with now. */
13
+ const REMOVED = {
14
+ docker: "Build images with `gkm docker`, or run the stage as one Docker Compose stack with `gkm compose`",
15
+ "aws-lambda": "Deploy to AWS with SST: set deploy: { default: 'sst' } and run `gkm deploy --stage <stage>`, which runs `sst deploy`"
16
+ };
17
+ /** A `--provider` that no longer exists. */
18
+ var ProviderRemoved = class extends require_errors.GkmError {
19
+ provider;
20
+ instead;
21
+ constructor(provider, instead) {
22
+ super(`--provider ${provider} has been removed. ${instead}.`);
23
+ this.provider = provider;
24
+ this.instead = instead;
25
+ this.name = "ProviderRemoved";
26
+ }
27
+ };
28
+ /** The deprecation `--provider` prints when it still means something. */
29
+ function providerDeprecation(provider) {
30
+ return `--provider is deprecated; use --target ${provider}.`;
31
+ }
32
+ /**
33
+ * The target a `--provider` value means. `warn` hears the deprecation; a
34
+ * provider that is gone, or a target not deployable yet, throws.
35
+ */
36
+ function targetForProvider(provider, warn) {
37
+ const removed = REMOVED[provider];
38
+ if (removed) throw new ProviderRemoved(provider, removed);
39
+ if (provider === "vercel" || provider === "cloudflare") throw new require_define.DeployTargetNotYetSupported(provider);
40
+ warn(providerDeprecation(provider));
41
+ return provider;
42
+ }
43
+ //#endregion
44
+ Object.defineProperty(exports, "ProviderRemoved", {
45
+ enumerable: true,
46
+ get: function() {
47
+ return ProviderRemoved;
48
+ }
49
+ });
50
+ Object.defineProperty(exports, "targetForProvider", {
51
+ enumerable: true,
52
+ get: function() {
53
+ return targetForProvider;
54
+ }
55
+ });
56
+
57
+ //# sourceMappingURL=provider-BqpjG9QM.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-BqpjG9QM.cjs","names":["GkmError","DeployTargetNotYetSupported"],"sources":["../src/target/provider.ts"],"sourcesContent":["/**\n * `gkm deploy --provider`, from before there were targets.\n *\n * It named three things, and only one of them ever deployed a workspace:\n * `dokploy` is now the target of that name; `docker` and `aws-lambda` were\n * accepted and always failed, so they are gone with a pointer to what does\n * the job.\n */\n\nimport { GkmError } from '../errors';\nimport { DeployTargetNotYetSupported } from './builtins';\n\n/** What each removed provider's job is done with now. */\nconst REMOVED: Record<string, string> = {\n\tdocker:\n\t\t'Build images with `gkm docker`, or run the stage as one Docker Compose stack with `gkm compose`',\n\t'aws-lambda':\n\t\t\"Deploy to AWS with SST: set deploy: { default: 'sst' } and run `gkm deploy --stage <stage>`, which runs `sst deploy`\",\n};\n\n/** A `--provider` that no longer exists. */\nexport class ProviderRemoved extends GkmError {\n\tconstructor(\n\t\treadonly provider: string,\n\t\t/** What to use instead. */\n\t\treadonly instead: string,\n\t) {\n\t\tsuper(`--provider ${provider} has been removed. ${instead}.`);\n\t\tthis.name = 'ProviderRemoved';\n\t}\n}\n\n/** The deprecation `--provider` prints when it still means something. */\nexport function providerDeprecation(provider: string): string {\n\treturn `--provider is deprecated; use --target ${provider}.`;\n}\n\n/**\n * The target a `--provider` value means. `warn` hears the deprecation; a\n * provider that is gone, or a target not deployable yet, throws.\n */\nexport function targetForProvider(\n\tprovider: string,\n\twarn: (message: string) => void,\n): string {\n\tconst removed = REMOVED[provider];\n\tif (removed) throw new ProviderRemoved(provider, removed);\n\tif (provider === 'vercel' || provider === 'cloudflare') {\n\t\tthrow new DeployTargetNotYetSupported(provider);\n\t}\n\twarn(providerDeprecation(provider));\n\treturn provider;\n}\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,UAAkC;CACvC,QACC;CACD,cACC;AACF;;AAGA,IAAa,kBAAb,cAAqCA,eAAAA,SAAS;CAEnC;CAEA;CAHV,YACC,UAEA,SACC;EACD,MAAM,cAAc,SAAS,qBAAqB,QAAQ,EAAE;EAJnD,KAAA,WAAA;EAEA,KAAA,UAAA;EAGT,KAAK,OAAO;CACb;AACD;;AAGA,SAAgB,oBAAoB,UAA0B;CAC7D,OAAO,0CAA0C,SAAS;AAC3D;;;;;AAMA,SAAgB,kBACf,UACA,MACS;CACT,MAAM,UAAU,QAAQ;CACxB,IAAI,SAAS,MAAM,IAAI,gBAAgB,UAAU,OAAO;CACxD,IAAI,aAAa,YAAY,aAAa,cACzC,MAAM,IAAIC,eAAAA,4BAA4B,QAAQ;CAE/C,KAAK,oBAAoB,QAAQ,CAAC;CAClC,OAAO;AACR"}
@@ -0,0 +1,46 @@
1
+ import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
2
+ import { i as DeployTargetNotYetSupported } from "./define-6poNqm5O.mjs";
3
+ //#region src/target/provider.ts
4
+ /**
5
+ * `gkm deploy --provider`, from before there were targets.
6
+ *
7
+ * It named three things, and only one of them ever deployed a workspace:
8
+ * `dokploy` is now the target of that name; `docker` and `aws-lambda` were
9
+ * accepted and always failed, so they are gone with a pointer to what does
10
+ * the job.
11
+ */
12
+ /** What each removed provider's job is done with now. */
13
+ const REMOVED = {
14
+ docker: "Build images with `gkm docker`, or run the stage as one Docker Compose stack with `gkm compose`",
15
+ "aws-lambda": "Deploy to AWS with SST: set deploy: { default: 'sst' } and run `gkm deploy --stage <stage>`, which runs `sst deploy`"
16
+ };
17
+ /** A `--provider` that no longer exists. */
18
+ var ProviderRemoved = class extends GkmError {
19
+ provider;
20
+ instead;
21
+ constructor(provider, instead) {
22
+ super(`--provider ${provider} has been removed. ${instead}.`);
23
+ this.provider = provider;
24
+ this.instead = instead;
25
+ this.name = "ProviderRemoved";
26
+ }
27
+ };
28
+ /** The deprecation `--provider` prints when it still means something. */
29
+ function providerDeprecation(provider) {
30
+ return `--provider is deprecated; use --target ${provider}.`;
31
+ }
32
+ /**
33
+ * The target a `--provider` value means. `warn` hears the deprecation; a
34
+ * provider that is gone, or a target not deployable yet, throws.
35
+ */
36
+ function targetForProvider(provider, warn) {
37
+ const removed = REMOVED[provider];
38
+ if (removed) throw new ProviderRemoved(provider, removed);
39
+ if (provider === "vercel" || provider === "cloudflare") throw new DeployTargetNotYetSupported(provider);
40
+ warn(providerDeprecation(provider));
41
+ return provider;
42
+ }
43
+ //#endregion
44
+ export { targetForProvider as n, ProviderRemoved as t };
45
+
46
+ //# sourceMappingURL=provider-CEOKk8NS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-CEOKk8NS.mjs","names":[],"sources":["../src/target/provider.ts"],"sourcesContent":["/**\n * `gkm deploy --provider`, from before there were targets.\n *\n * It named three things, and only one of them ever deployed a workspace:\n * `dokploy` is now the target of that name; `docker` and `aws-lambda` were\n * accepted and always failed, so they are gone with a pointer to what does\n * the job.\n */\n\nimport { GkmError } from '../errors';\nimport { DeployTargetNotYetSupported } from './builtins';\n\n/** What each removed provider's job is done with now. */\nconst REMOVED: Record<string, string> = {\n\tdocker:\n\t\t'Build images with `gkm docker`, or run the stage as one Docker Compose stack with `gkm compose`',\n\t'aws-lambda':\n\t\t\"Deploy to AWS with SST: set deploy: { default: 'sst' } and run `gkm deploy --stage <stage>`, which runs `sst deploy`\",\n};\n\n/** A `--provider` that no longer exists. */\nexport class ProviderRemoved extends GkmError {\n\tconstructor(\n\t\treadonly provider: string,\n\t\t/** What to use instead. */\n\t\treadonly instead: string,\n\t) {\n\t\tsuper(`--provider ${provider} has been removed. ${instead}.`);\n\t\tthis.name = 'ProviderRemoved';\n\t}\n}\n\n/** The deprecation `--provider` prints when it still means something. */\nexport function providerDeprecation(provider: string): string {\n\treturn `--provider is deprecated; use --target ${provider}.`;\n}\n\n/**\n * The target a `--provider` value means. `warn` hears the deprecation; a\n * provider that is gone, or a target not deployable yet, throws.\n */\nexport function targetForProvider(\n\tprovider: string,\n\twarn: (message: string) => void,\n): string {\n\tconst removed = REMOVED[provider];\n\tif (removed) throw new ProviderRemoved(provider, removed);\n\tif (provider === 'vercel' || provider === 'cloudflare') {\n\t\tthrow new DeployTargetNotYetSupported(provider);\n\t}\n\twarn(providerDeprecation(provider));\n\treturn provider;\n}\n"],"mappings":";;;;;;;;;;;;AAaA,MAAM,UAAkC;CACvC,QACC;CACD,cACC;AACF;;AAGA,IAAa,kBAAb,cAAqC,SAAS;CAEnC;CAEA;CAHV,YACC,UAEA,SACC;EACD,MAAM,cAAc,SAAS,qBAAqB,QAAQ,EAAE;EAJnD,KAAA,WAAA;EAEA,KAAA,UAAA;EAGT,KAAK,OAAO;CACb;AACD;;AAGA,SAAgB,oBAAoB,UAA0B;CAC7D,OAAO,0CAA0C,SAAS;AAC3D;;;;;AAMA,SAAgB,kBACf,UACA,MACS;CACT,MAAM,UAAU,QAAQ;CACxB,IAAI,SAAS,MAAM,IAAI,gBAAgB,UAAU,OAAO;CACxD,IAAI,aAAa,YAAY,aAAa,cACzC,MAAM,IAAI,4BAA4B,QAAQ;CAE/C,KAAK,oBAAoB,QAAQ,CAAC;CAClC,OAAO;AACR"}
@@ -0,0 +1,124 @@
1
+ const require_errors = require("./errors-DMC4Umsb.cjs");
2
+ const require_eas = require("./eas-Bg4dI6n2.cjs");
3
+ let node_path = require("node:path");
4
+ let node_fs = require("node:fs");
5
+ let node_child_process = require("node:child_process");
6
+ //#region src/mobile/publish.ts
7
+ /**
8
+ * `gkm publish --stage <stage>`: a mobile app shipped for a deployed stage.
9
+ *
10
+ * First the stage's EAS project is synced (`gkm eas:sync`), so what is built
11
+ * reads the stage's values. Then, per platform, the cheapest release that
12
+ * gets the app's current code to the stage's users:
13
+ *
14
+ * - **An update**, when a store build with the same native code is already
15
+ * out: the fingerprint `runtimeVersion: { policy: 'fingerprint' }` gives a
16
+ * build is computed with the stage's profile, and a finished store build
17
+ * of that profile with that fingerprint means only JavaScript changed. It
18
+ * goes out on the stage's channel (`eas update`), which only builds of
19
+ * that runtime receive.
20
+ * - **A store build**, otherwise, submitted to the store as the stage's
21
+ * submit profile says (`eas build --auto-submit`): Android to its Play
22
+ * track; iOS to App Store Connect once `submit.<stage>.ios.ascAppId` is
23
+ * set — without it, iOS is built and not submitted, and gkm says so,
24
+ * rather than leave a prompt nobody in CI can answer.
25
+ *
26
+ * `--build` or `--update` decides instead. An update with no store build to
27
+ * receive it reaches nobody, so `--update` without one is refused.
28
+ */
29
+ const logger = console;
30
+ /** `--update`, and no store build has this native code. */
31
+ var NoStoreBuildForUpdate = class extends require_errors.GkmError {
32
+ platform;
33
+ stage;
34
+ fingerprint;
35
+ constructor(platform, stage, fingerprint) {
36
+ super(`No ${platform} store build of '${stage}' has this native code (fingerprint ${fingerprint}), so an update would reach nobody: a phone only takes updates for the runtime it was built with. Build one: gkm publish --stage ${stage} --platform ${platform} --build.`);
37
+ this.platform = platform;
38
+ this.stage = stage;
39
+ this.fingerprint = fingerprint;
40
+ this.name = "NoStoreBuildForUpdate";
41
+ }
42
+ };
43
+ /** `--build` and `--update` together. */
44
+ var PublishModeConflict = class extends require_errors.GkmError {
45
+ constructor() {
46
+ super("Pass --build or --update, not both: one release per platform.");
47
+ this.name = "PublishModeConflict";
48
+ }
49
+ };
50
+ /**
51
+ * Ship a mobile app for a deployed stage.
52
+ *
53
+ * @throws {NoStoreBuildForUpdate} — and what `easSync` throws
54
+ */
55
+ async function publish(options, eas) {
56
+ const synced = await require_eas.easSync(options, eas);
57
+ const cli = eas ?? require_eas.easCli(synced.root, synced.values);
58
+ const { dir, stage } = synced;
59
+ const profile = stage.stage;
60
+ const easJson = (0, node_fs.existsSync)((0, node_path.join)(dir, "eas.json")) ? JSON.parse((0, node_fs.readFileSync)((0, node_path.join)(dir, "eas.json"), "utf8")) : {};
61
+ const iosSubmits = Boolean(easJson.submit?.[profile]?.ios?.ascAppId);
62
+ const platforms = !options.platform || options.platform === "all" ? ["ios", "android"] : [options.platform];
63
+ const releases = [];
64
+ for (const platform of platforms) {
65
+ const fingerprint = await cli.fingerprint(dir, {
66
+ platform,
67
+ profile
68
+ });
69
+ const storeBuild = options.mode === "build" ? void 0 : await cli.storeBuild(dir, {
70
+ platform,
71
+ profile,
72
+ fingerprint
73
+ });
74
+ if (options.mode === "update" && !storeBuild) throw new NoStoreBuildForUpdate(platform, profile, fingerprint);
75
+ const release = options.mode ?? (storeBuild ? "update" : "build");
76
+ const submit = platform === "android" || iosSubmits;
77
+ releases.push({
78
+ platform,
79
+ fingerprint,
80
+ ...storeBuild ? { storeBuild } : {},
81
+ release,
82
+ submit: release === "build" && submit
83
+ });
84
+ const why = storeBuild ? `store build ${storeBuild} has this native code` : "no store build has this native code";
85
+ if (release === "update") {
86
+ logger.log(`🔁 ${platform}: an update on '${stage.channel}' (${why})${options.dryRun ? " (dry run)" : ""}`);
87
+ if (options.dryRun) continue;
88
+ await cli.update(dir, {
89
+ platform,
90
+ channel: stage.channel,
91
+ environment: stage.environment,
92
+ message: options.message ?? commitSubject(synced.root, profile)
93
+ });
94
+ continue;
95
+ }
96
+ const where = platform === "android" ? `submitted to Play's ${stage.android.track} track (${stage.android.releaseStatus})` : iosSubmits ? "submitted to App Store Connect" : `not submitted: submit.${profile}.ios.ascAppId is not set in eas.json`;
97
+ logger.log(`📦 ${platform}: a store build of '${profile}', ${where} (${why})${options.dryRun ? " (dry run)" : ""}`);
98
+ if (options.dryRun) continue;
99
+ await cli.build(dir, {
100
+ platform,
101
+ profile,
102
+ submit,
103
+ wait: options.wait ?? false
104
+ });
105
+ }
106
+ return releases;
107
+ }
108
+ /** The current commit's subject, for an update's message. */
109
+ function commitSubject(root, stage) {
110
+ const result = (0, node_child_process.spawnSync)("git", [
111
+ "log",
112
+ "-1",
113
+ "--format=%s"
114
+ ], {
115
+ cwd: root,
116
+ encoding: "utf8"
117
+ });
118
+ return (result.status === 0 ? result.stdout.trim() : "") || `gkm publish --stage ${stage}`;
119
+ }
120
+ //#endregion
121
+ exports.PublishModeConflict = PublishModeConflict;
122
+ exports.publish = publish;
123
+
124
+ //# sourceMappingURL=publish-CqvDA5ry.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-CqvDA5ry.cjs","names":["GkmError","easSync","easCli","existsSync","join","readFileSync","spawnSync"],"sources":["../src/mobile/publish.ts"],"sourcesContent":["/**\n * `gkm publish --stage <stage>`: a mobile app shipped for a deployed stage.\n *\n * First the stage's EAS project is synced (`gkm eas:sync`), so what is built\n * reads the stage's values. Then, per platform, the cheapest release that\n * gets the app's current code to the stage's users:\n *\n * - **An update**, when a store build with the same native code is already\n * out: the fingerprint `runtimeVersion: { policy: 'fingerprint' }` gives a\n * build is computed with the stage's profile, and a finished store build\n * of that profile with that fingerprint means only JavaScript changed. It\n * goes out on the stage's channel (`eas update`), which only builds of\n * that runtime receive.\n * - **A store build**, otherwise, submitted to the store as the stage's\n * submit profile says (`eas build --auto-submit`): Android to its Play\n * track; iOS to App Store Connect once `submit.<stage>.ios.ascAppId` is\n * set — without it, iOS is built and not submitted, and gkm says so,\n * rather than leave a prompt nobody in CI can answer.\n *\n * `--build` or `--update` decides instead. An update with no store build to\n * receive it reaches nobody, so `--update` without one is refused.\n */\n\nimport { spawnSync } from 'node:child_process';\nimport { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { GkmError } from '../errors';\nimport {\n\ttype EasCli,\n\ttype EasPlatform,\n\ttype EasSyncOptions,\n\teasCli,\n\teasSync,\n} from './eas.js';\n\nconst logger = console;\n\n/** `--update`, and no store build has this native code. */\nexport class NoStoreBuildForUpdate extends GkmError {\n\tconstructor(\n\t\treadonly platform: EasPlatform,\n\t\treadonly stage: string,\n\t\treadonly fingerprint: string,\n\t) {\n\t\tsuper(\n\t\t\t`No ${platform} store build of '${stage}' has this native code ` +\n\t\t\t\t`(fingerprint ${fingerprint}), so an update would reach nobody: a phone ` +\n\t\t\t\t'only takes updates for the runtime it was built with. Build one: ' +\n\t\t\t\t`gkm publish --stage ${stage} --platform ${platform} --build.`,\n\t\t);\n\t\tthis.name = 'NoStoreBuildForUpdate';\n\t}\n}\n\n/** `--build` and `--update` together. */\nexport class PublishModeConflict extends GkmError {\n\tconstructor() {\n\t\tsuper('Pass --build or --update, not both: one release per platform.');\n\t\tthis.name = 'PublishModeConflict';\n\t}\n}\n\nexport interface PublishOptions extends EasSyncOptions {\n\t/** `ios`, `android`, or both (the default). */\n\tplatform?: EasPlatform | 'all';\n\t/** Build, or update, whatever the fingerprint says. */\n\tmode?: 'build' | 'update';\n\t/** Wait for a build to finish (and submit), rather than leave it on EAS. */\n\twait?: boolean;\n\t/** The update's message: the commit's subject by default. */\n\tmessage?: string;\n}\n\n/** What one platform's release was — or, dry, would be. */\nexport interface PlatformRelease {\n\tplatform: EasPlatform;\n\tfingerprint: string;\n\t/** The store build that already has this native code, if one does. */\n\tstoreBuild?: string;\n\trelease: 'build' | 'update';\n\t/** Whether a build is submitted to its store. */\n\tsubmit: boolean;\n}\n\n/**\n * Ship a mobile app for a deployed stage.\n *\n * @throws {NoStoreBuildForUpdate} — and what `easSync` throws\n */\nexport async function publish(\n\toptions: PublishOptions,\n\teas?: EasCli,\n): Promise<PlatformRelease[]> {\n\tconst synced = await easSync(options, eas);\n\tconst cli = eas ?? easCli(synced.root, synced.values);\n\tconst { dir, stage } = synced;\n\tconst profile = stage.stage;\n\n\tconst easJson = existsSync(join(dir, 'eas.json'))\n\t\t? (JSON.parse(readFileSync(join(dir, 'eas.json'), 'utf8')) as {\n\t\t\t\tsubmit?: Record<string, { ios?: { ascAppId?: string } }>;\n\t\t\t})\n\t\t: {};\n\tconst iosSubmits = Boolean(easJson.submit?.[profile]?.ios?.ascAppId);\n\n\tconst platforms: EasPlatform[] =\n\t\t!options.platform || options.platform === 'all'\n\t\t\t? ['ios', 'android']\n\t\t\t: [options.platform];\n\n\tconst releases: PlatformRelease[] = [];\n\tfor (const platform of platforms) {\n\t\tconst fingerprint = await cli.fingerprint(dir, { platform, profile });\n\t\tconst storeBuild =\n\t\t\toptions.mode === 'build'\n\t\t\t\t? undefined\n\t\t\t\t: await cli.storeBuild(dir, { platform, profile, fingerprint });\n\t\tif (options.mode === 'update' && !storeBuild) {\n\t\t\tthrow new NoStoreBuildForUpdate(platform, profile, fingerprint);\n\t\t}\n\t\tconst release = options.mode ?? (storeBuild ? 'update' : 'build');\n\t\tconst submit = platform === 'android' || iosSubmits;\n\t\treleases.push({\n\t\t\tplatform,\n\t\t\tfingerprint,\n\t\t\t...(storeBuild ? { storeBuild } : {}),\n\t\t\trelease,\n\t\t\tsubmit: release === 'build' && submit,\n\t\t});\n\n\t\tconst why = storeBuild\n\t\t\t? `store build ${storeBuild} has this native code`\n\t\t\t: 'no store build has this native code';\n\t\tif (release === 'update') {\n\t\t\tlogger.log(\n\t\t\t\t`🔁 ${platform}: an update on '${stage.channel}' (${why})${options.dryRun ? ' (dry run)' : ''}`,\n\t\t\t);\n\t\t\tif (options.dryRun) continue;\n\t\t\tawait cli.update(dir, {\n\t\t\t\tplatform,\n\t\t\t\tchannel: stage.channel,\n\t\t\t\tenvironment: stage.environment,\n\t\t\t\tmessage: options.message ?? commitSubject(synced.root, profile),\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst where =\n\t\t\tplatform === 'android'\n\t\t\t\t? `submitted to Play's ${stage.android.track} track (${stage.android.releaseStatus})`\n\t\t\t\t: iosSubmits\n\t\t\t\t\t? 'submitted to App Store Connect'\n\t\t\t\t\t: `not submitted: submit.${profile}.ios.ascAppId is not set in eas.json`;\n\t\tlogger.log(\n\t\t\t`📦 ${platform}: a store build of '${profile}', ${where} (${why})${options.dryRun ? ' (dry run)' : ''}`,\n\t\t);\n\t\tif (options.dryRun) continue;\n\t\tawait cli.build(dir, {\n\t\t\tplatform,\n\t\t\tprofile,\n\t\t\tsubmit,\n\t\t\twait: options.wait ?? false,\n\t\t});\n\t}\n\treturn releases;\n}\n\n/** The current commit's subject, for an update's message. */\nfunction commitSubject(root: string, stage: string): string {\n\tconst result = spawnSync('git', ['log', '-1', '--format=%s'], {\n\t\tcwd: root,\n\t\tencoding: 'utf8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0,0 +1,123 @@
1
+ import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
2
+ import { easCli, easSync } from "./eas-B1wBvwPH.mjs";
3
+ import { join } from "node:path";
4
+ import { existsSync, readFileSync } from "node:fs";
5
+ import { spawnSync } from "node:child_process";
6
+ //#region src/mobile/publish.ts
7
+ /**
8
+ * `gkm publish --stage <stage>`: a mobile app shipped for a deployed stage.
9
+ *
10
+ * First the stage's EAS project is synced (`gkm eas:sync`), so what is built
11
+ * reads the stage's values. Then, per platform, the cheapest release that
12
+ * gets the app's current code to the stage's users:
13
+ *
14
+ * - **An update**, when a store build with the same native code is already
15
+ * out: the fingerprint `runtimeVersion: { policy: 'fingerprint' }` gives a
16
+ * build is computed with the stage's profile, and a finished store build
17
+ * of that profile with that fingerprint means only JavaScript changed. It
18
+ * goes out on the stage's channel (`eas update`), which only builds of
19
+ * that runtime receive.
20
+ * - **A store build**, otherwise, submitted to the store as the stage's
21
+ * submit profile says (`eas build --auto-submit`): Android to its Play
22
+ * track; iOS to App Store Connect once `submit.<stage>.ios.ascAppId` is
23
+ * set — without it, iOS is built and not submitted, and gkm says so,
24
+ * rather than leave a prompt nobody in CI can answer.
25
+ *
26
+ * `--build` or `--update` decides instead. An update with no store build to
27
+ * receive it reaches nobody, so `--update` without one is refused.
28
+ */
29
+ const logger = console;
30
+ /** `--update`, and no store build has this native code. */
31
+ var NoStoreBuildForUpdate = class extends GkmError {
32
+ platform;
33
+ stage;
34
+ fingerprint;
35
+ constructor(platform, stage, fingerprint) {
36
+ super(`No ${platform} store build of '${stage}' has this native code (fingerprint ${fingerprint}), so an update would reach nobody: a phone only takes updates for the runtime it was built with. Build one: gkm publish --stage ${stage} --platform ${platform} --build.`);
37
+ this.platform = platform;
38
+ this.stage = stage;
39
+ this.fingerprint = fingerprint;
40
+ this.name = "NoStoreBuildForUpdate";
41
+ }
42
+ };
43
+ /** `--build` and `--update` together. */
44
+ var PublishModeConflict = class extends GkmError {
45
+ constructor() {
46
+ super("Pass --build or --update, not both: one release per platform.");
47
+ this.name = "PublishModeConflict";
48
+ }
49
+ };
50
+ /**
51
+ * Ship a mobile app for a deployed stage.
52
+ *
53
+ * @throws {NoStoreBuildForUpdate} — and what `easSync` throws
54
+ */
55
+ async function publish(options, eas) {
56
+ const synced = await easSync(options, eas);
57
+ const cli = eas ?? easCli(synced.root, synced.values);
58
+ const { dir, stage } = synced;
59
+ const profile = stage.stage;
60
+ const easJson = existsSync(join(dir, "eas.json")) ? JSON.parse(readFileSync(join(dir, "eas.json"), "utf8")) : {};
61
+ const iosSubmits = Boolean(easJson.submit?.[profile]?.ios?.ascAppId);
62
+ const platforms = !options.platform || options.platform === "all" ? ["ios", "android"] : [options.platform];
63
+ const releases = [];
64
+ for (const platform of platforms) {
65
+ const fingerprint = await cli.fingerprint(dir, {
66
+ platform,
67
+ profile
68
+ });
69
+ const storeBuild = options.mode === "build" ? void 0 : await cli.storeBuild(dir, {
70
+ platform,
71
+ profile,
72
+ fingerprint
73
+ });
74
+ if (options.mode === "update" && !storeBuild) throw new NoStoreBuildForUpdate(platform, profile, fingerprint);
75
+ const release = options.mode ?? (storeBuild ? "update" : "build");
76
+ const submit = platform === "android" || iosSubmits;
77
+ releases.push({
78
+ platform,
79
+ fingerprint,
80
+ ...storeBuild ? { storeBuild } : {},
81
+ release,
82
+ submit: release === "build" && submit
83
+ });
84
+ const why = storeBuild ? `store build ${storeBuild} has this native code` : "no store build has this native code";
85
+ if (release === "update") {
86
+ logger.log(`🔁 ${platform}: an update on '${stage.channel}' (${why})${options.dryRun ? " (dry run)" : ""}`);
87
+ if (options.dryRun) continue;
88
+ await cli.update(dir, {
89
+ platform,
90
+ channel: stage.channel,
91
+ environment: stage.environment,
92
+ message: options.message ?? commitSubject(synced.root, profile)
93
+ });
94
+ continue;
95
+ }
96
+ const where = platform === "android" ? `submitted to Play's ${stage.android.track} track (${stage.android.releaseStatus})` : iosSubmits ? "submitted to App Store Connect" : `not submitted: submit.${profile}.ios.ascAppId is not set in eas.json`;
97
+ logger.log(`📦 ${platform}: a store build of '${profile}', ${where} (${why})${options.dryRun ? " (dry run)" : ""}`);
98
+ if (options.dryRun) continue;
99
+ await cli.build(dir, {
100
+ platform,
101
+ profile,
102
+ submit,
103
+ wait: options.wait ?? false
104
+ });
105
+ }
106
+ return releases;
107
+ }
108
+ /** The current commit's subject, for an update's message. */
109
+ function commitSubject(root, stage) {
110
+ const result = spawnSync("git", [
111
+ "log",
112
+ "-1",
113
+ "--format=%s"
114
+ ], {
115
+ cwd: root,
116
+ encoding: "utf8"
117
+ });
118
+ return (result.status === 0 ? result.stdout.trim() : "") || `gkm publish --stage ${stage}`;
119
+ }
120
+ //#endregion
121
+ export { PublishModeConflict, publish };
122
+
123
+ //# sourceMappingURL=publish-CxIBBD3b.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-CxIBBD3b.mjs","names":[],"sources":["../src/mobile/publish.ts"],"sourcesContent":["/**\n * `gkm publish --stage <stage>`: a mobile app shipped for a deployed stage.\n *\n * First the stage's EAS project is synced (`gkm eas:sync`), so what is built\n * reads the stage's values. Then, per platform, the cheapest release that\n * gets the app's current code to the stage's users:\n *\n * - **An update**, when a store build with the same native code is already\n * out: the fingerprint `runtimeVersion: { policy: 'fingerprint' }` gives a\n * build is computed with the stage's profile, and a finished store build\n * of that profile with that fingerprint means only JavaScript changed. It\n * goes out on the stage's channel (`eas update`), which only builds of\n * that runtime receive.\n * - **A store build**, otherwise, submitted to the store as the stage's\n * submit profile says (`eas build --auto-submit`): Android to its Play\n * track; iOS to App Store Connect once `submit.<stage>.ios.ascAppId` is\n * set — without it, iOS is built and not submitted, and gkm says so,\n * rather than leave a prompt nobody in CI can answer.\n *\n * `--build` or `--update` decides instead. An update with no store build to\n * receive it reaches nobody, so `--update` without one is refused.\n */\n\nimport { spawnSync } from 'node:child_process';\nimport { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { GkmError } from '../errors';\nimport {\n\ttype EasCli,\n\ttype EasPlatform,\n\ttype EasSyncOptions,\n\teasCli,\n\teasSync,\n} from './eas.js';\n\nconst logger = console;\n\n/** `--update`, and no store build has this native code. */\nexport class NoStoreBuildForUpdate extends GkmError {\n\tconstructor(\n\t\treadonly platform: EasPlatform,\n\t\treadonly stage: string,\n\t\treadonly fingerprint: string,\n\t) {\n\t\tsuper(\n\t\t\t`No ${platform} store build of '${stage}' has this native code ` +\n\t\t\t\t`(fingerprint ${fingerprint}), so an update would reach nobody: a phone ` +\n\t\t\t\t'only takes updates for the runtime it was built with. Build one: ' +\n\t\t\t\t`gkm publish --stage ${stage} --platform ${platform} --build.`,\n\t\t);\n\t\tthis.name = 'NoStoreBuildForUpdate';\n\t}\n}\n\n/** `--build` and `--update` together. */\nexport class PublishModeConflict extends GkmError {\n\tconstructor() {\n\t\tsuper('Pass --build or --update, not both: one release per platform.');\n\t\tthis.name = 'PublishModeConflict';\n\t}\n}\n\nexport interface PublishOptions extends EasSyncOptions {\n\t/** `ios`, `android`, or both (the default). */\n\tplatform?: EasPlatform | 'all';\n\t/** Build, or update, whatever the fingerprint says. */\n\tmode?: 'build' | 'update';\n\t/** Wait for a build to finish (and submit), rather than leave it on EAS. */\n\twait?: boolean;\n\t/** The update's message: the commit's subject by default. */\n\tmessage?: string;\n}\n\n/** What one platform's release was — or, dry, would be. */\nexport interface PlatformRelease {\n\tplatform: EasPlatform;\n\tfingerprint: string;\n\t/** The store build that already has this native code, if one does. */\n\tstoreBuild?: string;\n\trelease: 'build' | 'update';\n\t/** Whether a build is submitted to its store. */\n\tsubmit: boolean;\n}\n\n/**\n * Ship a mobile app for a deployed stage.\n *\n * @throws {NoStoreBuildForUpdate} — and what `easSync` throws\n */\nexport async function publish(\n\toptions: PublishOptions,\n\teas?: EasCli,\n): Promise<PlatformRelease[]> {\n\tconst synced = await easSync(options, eas);\n\tconst cli = eas ?? easCli(synced.root, synced.values);\n\tconst { dir, stage } = synced;\n\tconst profile = stage.stage;\n\n\tconst easJson = existsSync(join(dir, 'eas.json'))\n\t\t? (JSON.parse(readFileSync(join(dir, 'eas.json'), 'utf8')) as {\n\t\t\t\tsubmit?: Record<string, { ios?: { ascAppId?: string } }>;\n\t\t\t})\n\t\t: {};\n\tconst iosSubmits = Boolean(easJson.submit?.[profile]?.ios?.ascAppId);\n\n\tconst platforms: EasPlatform[] =\n\t\t!options.platform || options.platform === 'all'\n\t\t\t? ['ios', 'android']\n\t\t\t: [options.platform];\n\n\tconst releases: PlatformRelease[] = [];\n\tfor (const platform of platforms) {\n\t\tconst fingerprint = await cli.fingerprint(dir, { platform, profile });\n\t\tconst storeBuild =\n\t\t\toptions.mode === 'build'\n\t\t\t\t? undefined\n\t\t\t\t: await cli.storeBuild(dir, { platform, profile, fingerprint });\n\t\tif (options.mode === 'update' && !storeBuild) {\n\t\t\tthrow new NoStoreBuildForUpdate(platform, profile, fingerprint);\n\t\t}\n\t\tconst release = options.mode ?? (storeBuild ? 'update' : 'build');\n\t\tconst submit = platform === 'android' || iosSubmits;\n\t\treleases.push({\n\t\t\tplatform,\n\t\t\tfingerprint,\n\t\t\t...(storeBuild ? { storeBuild } : {}),\n\t\t\trelease,\n\t\t\tsubmit: release === 'build' && submit,\n\t\t});\n\n\t\tconst why = storeBuild\n\t\t\t? `store build ${storeBuild} has this native code`\n\t\t\t: 'no store build has this native code';\n\t\tif (release === 'update') {\n\t\t\tlogger.log(\n\t\t\t\t`🔁 ${platform}: an update on '${stage.channel}' (${why})${options.dryRun ? ' (dry run)' : ''}`,\n\t\t\t);\n\t\t\tif (options.dryRun) continue;\n\t\t\tawait cli.update(dir, {\n\t\t\t\tplatform,\n\t\t\t\tchannel: stage.channel,\n\t\t\t\tenvironment: stage.environment,\n\t\t\t\tmessage: options.message ?? commitSubject(synced.root, profile),\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst where =\n\t\t\tplatform === 'android'\n\t\t\t\t? `submitted to Play's ${stage.android.track} track (${stage.android.releaseStatus})`\n\t\t\t\t: iosSubmits\n\t\t\t\t\t? 'submitted to App Store Connect'\n\t\t\t\t\t: `not submitted: submit.${profile}.ios.ascAppId is not set in eas.json`;\n\t\tlogger.log(\n\t\t\t`📦 ${platform}: a store build of '${profile}', ${where} (${why})${options.dryRun ? ' (dry run)' : ''}`,\n\t\t);\n\t\tif (options.dryRun) continue;\n\t\tawait cli.build(dir, {\n\t\t\tplatform,\n\t\t\tprofile,\n\t\t\tsubmit,\n\t\t\twait: options.wait ?? false,\n\t\t});\n\t}\n\treturn releases;\n}\n\n/** The current commit's subject, for an update's message. */\nfunction commitSubject(root: string, stage: string): string {\n\tconst result = spawnSync('git', ['log', '-1', '--format=%s'], {\n\t\tcwd: root,\n\t\tencoding: 'utf8',\n\t});\n\tconst subject = result.status === 0 ? result.stdout.trim() : '';\n\treturn subject || `gkm publish --stage ${stage}`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,MAAM,SAAS;;AAGf,IAAa,wBAAb,cAA2C,SAAS;CAEzC;CACA;CACA;CAHV,YACC,UACA,OACA,aACC;EACD,MACC,MAAM,SAAS,mBAAmB,MAAM,sCACvB,YAAY,mIAEL,MAAM,cAAc,SAAS,UACtD;EATS,KAAA,WAAA;EACA,KAAA,QAAA;EACA,KAAA,cAAA;EAQT,KAAK,OAAO;CACb;AACD;;AAGA,IAAa,sBAAb,cAAyC,SAAS;CACjD,cAAc;EACb,MAAM,+DAA+D;EACrE,KAAK,OAAO;CACb;AACD;;;;;;AA6BA,eAAsB,QACrB,SACA,KAC6B;CAC7B,MAAM,SAAS,MAAM,QAAQ,SAAS,GAAG;CACzC,MAAM,MAAM,OAAO,OAAO,OAAO,MAAM,OAAO,MAAM;CACpD,MAAM,EAAE,KAAK,UAAU;CACvB,MAAM,UAAU,MAAM;CAEtB,MAAM,UAAU,WAAW,KAAK,KAAK,UAAU,CAAC,IAC5C,KAAK,MAAM,aAAa,KAAK,KAAK,UAAU,GAAG,MAAM,CAAC,IAGvD,CAAC;CACJ,MA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