@geekmidas/cli 10.0.0-alpha.179 → 10.0.0-alpha.180
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.
- package/dist/{EndpointGenerator-DMq6ameY.mjs → EndpointGenerator-CBKH87_b.mjs} +3 -3
- package/dist/{EndpointGenerator-DMq6ameY.mjs.map → EndpointGenerator-CBKH87_b.mjs.map} +1 -1
- package/dist/{EndpointGenerator-yx7_SoXT.cjs → EndpointGenerator-iyA3HkOH.cjs} +3 -3
- package/dist/{EndpointGenerator-yx7_SoXT.cjs.map → EndpointGenerator-iyA3HkOH.cjs.map} +1 -1
- package/dist/{LegacyStateStore-BzUlIHvz.mjs → LegacyStateStore-B7pQA25B.mjs} +2 -2
- package/dist/{LegacyStateStore-BzUlIHvz.mjs.map → LegacyStateStore-B7pQA25B.mjs.map} +1 -1
- package/dist/{LegacyStateStore-C7FFaVce.cjs → LegacyStateStore-l0hBdv-E.cjs} +2 -2
- package/dist/{LegacyStateStore-C7FFaVce.cjs.map → LegacyStateStore-l0hBdv-E.cjs.map} +1 -1
- package/dist/{LocalStateStore-BvI8RUtS.mjs → LocalStateStore-CP0UHL85.mjs} +2 -2
- package/dist/{LocalStateStore-BvI8RUtS.mjs.map → LocalStateStore-CP0UHL85.mjs.map} +1 -1
- package/dist/{LocalStateStore-BJQvLCrg.cjs → LocalStateStore-DEE0Kc_s.cjs} +2 -2
- package/dist/{LocalStateStore-BJQvLCrg.cjs.map → LocalStateStore-DEE0Kc_s.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-C_JqxkWt.mjs → OpenApiTsGenerator-CoVA3Ykv.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-C_JqxkWt.mjs.map → OpenApiTsGenerator-CoVA3Ykv.mjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-gM70-7qw.cjs → OpenApiTsGenerator-vy-fOJgs.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-gM70-7qw.cjs.map → OpenApiTsGenerator-vy-fOJgs.cjs.map} +1 -1
- package/dist/{S3StateStore-C1ZX1w5v.cjs → S3StateStore-DE0BNuXc.cjs} +4 -4
- package/dist/{S3StateStore-C1ZX1w5v.cjs.map → S3StateStore-DE0BNuXc.cjs.map} +1 -1
- package/dist/{S3StateStore-DYQSxiVw.mjs → S3StateStore-vmxZWMKh.mjs} +4 -4
- package/dist/{S3StateStore-DYQSxiVw.mjs.map → S3StateStore-vmxZWMKh.mjs.map} +1 -1
- package/dist/{SSMStateStore-DWQk17j8.mjs → SSMStateStore-DQyXnX2M.mjs} +2 -2
- package/dist/{SSMStateStore-DWQk17j8.mjs.map → SSMStateStore-DQyXnX2M.mjs.map} +1 -1
- package/dist/{SSMStateStore-tXnZSJxP.cjs → SSMStateStore-p4hBdTg3.cjs} +2 -2
- package/dist/{SSMStateStore-tXnZSJxP.cjs.map → SSMStateStore-p4hBdTg3.cjs.map} +1 -1
- package/dist/{SubscriberGenerator-NxcLNeDJ.mjs → SubscriberGenerator-B3jHf26s.mjs} +4 -4
- package/dist/{SubscriberGenerator-NxcLNeDJ.mjs.map → SubscriberGenerator-B3jHf26s.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-DXh1Touk.cjs → SubscriberGenerator-JhwVlWBS.cjs} +4 -4
- package/dist/{SubscriberGenerator-DXh1Touk.cjs.map → SubscriberGenerator-JhwVlWBS.cjs.map} +1 -1
- package/dist/{add-D6GloVNz.cjs → add-DEdpKya-.cjs} +8 -8
- package/dist/{add-D6GloVNz.cjs.map → add-DEdpKya-.cjs.map} +1 -1
- package/dist/{add-nJBUo4fT.mjs → add-QBvDmVA-.mjs} +8 -8
- package/dist/{add-nJBUo4fT.mjs.map → add-QBvDmVA-.mjs.map} +1 -1
- package/dist/{apps-GDmO_v7v.mjs → apps-D0LULFmU.mjs} +15 -361
- package/dist/apps-D0LULFmU.mjs.map +1 -0
- package/dist/{apps-DPw1i9E7.cjs → apps-qJ5FPJGQ.cjs} +12 -389
- package/dist/apps-qJ5FPJGQ.cjs.map +1 -0
- package/dist/{aws-DKC2m3sT.cjs → aws-BXfiWNbi.cjs} +2 -2
- package/dist/{aws-DKC2m3sT.cjs.map → aws-BXfiWNbi.cjs.map} +1 -1
- package/dist/{aws-C5LAU_Ii.mjs → aws-BjvSTTcE.mjs} +2 -2
- package/dist/{aws-C5LAU_Ii.mjs.map → aws-BjvSTTcE.mjs.map} +1 -1
- package/dist/{awsStore-Bx5nCFnS.mjs → awsStore-BYYCmXiq.mjs} +2 -2
- package/dist/{awsStore-Bx5nCFnS.mjs.map → awsStore-BYYCmXiq.mjs.map} +1 -1
- package/dist/{awsStore-u3ehhMoY.cjs → awsStore-DKQUElJL.cjs} +2 -2
- package/dist/{awsStore-u3ehhMoY.cjs.map → awsStore-DKQUElJL.cjs.map} +1 -1
- package/dist/{bundler-DzN34D-8.cjs → bundler-BuBCXA0t.cjs} +6 -6
- package/dist/{bundler-DzN34D-8.cjs.map → bundler-BuBCXA0t.cjs.map} +1 -1
- package/dist/{bundler-BFGjH_mQ.mjs → bundler-DZKdVVKZ.mjs} +6 -6
- package/dist/{bundler-BFGjH_mQ.mjs.map → bundler-DZKdVVKZ.mjs.map} +1 -1
- package/dist/{cli-CVlkduxS.cjs → cli-BCGkzaR1.cjs} +5 -5
- package/dist/{cli-CVlkduxS.cjs.map → cli-BCGkzaR1.cjs.map} +1 -1
- package/dist/{cli-Ik7ar-Ux.mjs → cli-CgEbT00Q.mjs} +5 -5
- package/dist/{cli-Ik7ar-Ux.mjs.map → cli-CgEbT00Q.mjs.map} +1 -1
- package/dist/clientTelemetry-BAwj6MOf.d.cts +10 -0
- package/dist/clientTelemetry-BAwj6MOf.d.cts.map +1 -0
- package/dist/clientTelemetry-CvamPJj_.d.mts +10 -0
- package/dist/clientTelemetry-CvamPJj_.d.mts.map +1 -0
- package/dist/{compose-CE0Vi7zq.cjs → compose-AO8u4mBI.cjs} +51 -49
- package/dist/compose-AO8u4mBI.cjs.map +1 -0
- package/dist/{compose-BKLJMnDI.cjs → compose-C-yjexqX.cjs} +9 -37
- package/dist/compose-C-yjexqX.cjs.map +1 -0
- package/dist/{compose-pFnSi3Zf.mjs → compose-C23RpAaF.mjs} +15 -13
- package/dist/compose-C23RpAaF.mjs.map +1 -0
- package/dist/{compose-DH1ToGh2.mjs → compose-DtfoUChm.mjs} +10 -32
- package/dist/compose-DtfoUChm.mjs.map +1 -0
- package/dist/{config-CsCYzlVO.d.mts → config-BODxZemw.d.mts} +3 -3
- package/dist/{config-CsCYzlVO.d.mts.map → config-BODxZemw.d.mts.map} +1 -1
- package/dist/{config-D-gHQXhi.d.cts → config-C3U5HulX.d.cts} +3 -3
- package/dist/{config-D-gHQXhi.d.cts.map → config-C3U5HulX.d.cts.map} +1 -1
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +3 -3
- package/dist/{credentialSchemas-BzJiK1nQ.mjs → credentialSchemas-D_85KW2k.mjs} +3 -3
- package/dist/{credentialSchemas-BzJiK1nQ.mjs.map → credentialSchemas-D_85KW2k.mjs.map} +1 -1
- package/dist/{credentialSchemas-OVXofU-r.cjs → credentialSchemas-DjK6xKMk.cjs} +3 -3
- package/dist/{credentialSchemas-OVXofU-r.cjs.map → credentialSchemas-DjK6xKMk.cjs.map} +1 -1
- package/dist/{databases-SFnPaOGM.mjs → databases-CV22HzrI.mjs} +2 -2
- package/dist/{databases-SFnPaOGM.mjs.map → databases-CV22HzrI.mjs.map} +1 -1
- package/dist/{databases-BOuB-zg4.cjs → databases-DwYYH2mX.cjs} +2 -2
- package/dist/{databases-BOuB-zg4.cjs.map → databases-DwYYH2mX.cjs.map} +1 -1
- package/dist/{dbTunnel-BnacLKDV.cjs → dbTunnel-Bve0zBqT.cjs} +7 -7
- package/dist/{dbTunnel-BnacLKDV.cjs.map → dbTunnel-Bve0zBqT.cjs.map} +1 -1
- package/dist/{dbTunnel-CqDaxQig.mjs → dbTunnel-CnubkLBa.mjs} +7 -7
- package/dist/{dbTunnel-CqDaxQig.mjs.map → dbTunnel-CnubkLBa.mjs.map} +1 -1
- package/dist/{define-6poNqm5O.mjs → define-BfrNaY82.mjs} +2 -2
- package/dist/{define-6poNqm5O.mjs.map → define-BfrNaY82.mjs.map} +1 -1
- package/dist/{define-crmMcXFS.cjs → define-zKgLY65H.cjs} +2 -2
- package/dist/{define-crmMcXFS.cjs.map → define-zKgLY65H.cjs.map} +1 -1
- package/dist/deploy/public.cjs +15 -15
- package/dist/deploy/public.d.cts +5 -4
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +5 -4
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +15 -15
- package/dist/{deploy-l0Vc846k.cjs → deploy-C2MKxzm9.cjs} +20 -19
- package/dist/deploy-C2MKxzm9.cjs.map +1 -0
- package/dist/{deploy-CpAkrZ25.mjs → deploy-Qq41vtpm.mjs} +19 -18
- package/dist/deploy-Qq41vtpm.mjs.map +1 -0
- package/dist/{destroy-eeB_PrmN.mjs → destroy-Bg4IUf_Z.mjs} +11 -10
- package/dist/destroy-Bg4IUf_Z.mjs.map +1 -0
- package/dist/{destroy-DtAqmjGz.cjs → destroy-CCpnHI2v.cjs} +13 -12
- package/dist/destroy-CCpnHI2v.cjs.map +1 -0
- package/dist/{discover-B_PDDaVj.mjs → discover-Dfmn6HQ7.mjs} +2 -2
- package/dist/{discover-B_PDDaVj.mjs.map → discover-Dfmn6HQ7.mjs.map} +1 -1
- package/dist/{discover-39VKSE2i.cjs → discover-OXczlq08.cjs} +2 -2
- package/dist/{discover-39VKSE2i.cjs.map → discover-OXczlq08.cjs.map} +1 -1
- package/dist/{dns-B2vsk2Rc.mjs → dns-BAM8VH1v.mjs} +147 -179
- package/dist/dns-BAM8VH1v.mjs.map +1 -0
- package/dist/{dns-WneRa4VJ.cjs → dns-D_0z9Tm1.cjs} +145 -201
- package/dist/dns-D_0z9Tm1.cjs.map +1 -0
- package/dist/{docker-Dk6p33pD.cjs → docker-6EUbKrEl.cjs} +9 -9
- package/dist/{docker-Dk6p33pD.cjs.map → docker-6EUbKrEl.cjs.map} +1 -1
- package/dist/{docker-DyUpcwqy.mjs → docker-DQoE3Fr7.mjs} +9 -9
- package/dist/{docker-DyUpcwqy.mjs.map → docker-DQoE3Fr7.mjs.map} +1 -1
- package/dist/{dokploy-Byg0zr1O.cjs → dokploy-BD8NXy8y.cjs} +3 -3
- package/dist/{dokploy-Byg0zr1O.cjs.map → dokploy-BD8NXy8y.cjs.map} +1 -1
- package/dist/{dokploy-De5b47YI.mjs → dokploy-CU9iuc35.mjs} +3 -3
- package/dist/{dokploy-De5b47YI.mjs.map → dokploy-CU9iuc35.mjs.map} +1 -1
- package/dist/{eas-DAH6D89J.cjs → eas-BhTOdQrE.cjs} +4 -4
- package/dist/{eas-DAH6D89J.cjs.map → eas-BhTOdQrE.cjs.map} +1 -1
- package/dist/{eas-BnLaz86I.mjs → eas-iYyg7Xjy.mjs} +4 -4
- package/dist/{eas-BnLaz86I.mjs.map → eas-iYyg7Xjy.mjs.map} +1 -1
- package/dist/{encryption-IiDQJs6j.mjs → encryption-hgmnMZw0.mjs} +4 -4
- package/dist/{encryption-IiDQJs6j.mjs.map → encryption-hgmnMZw0.mjs.map} +1 -1
- package/dist/{encryption-D7u_SKqz.cjs → encryption-yROMpM67.cjs} +4 -4
- package/dist/{encryption-D7u_SKqz.cjs.map → encryption-yROMpM67.cjs.map} +1 -1
- package/dist/{engine-BhS-wyH0.mjs → engine-B4whsrrE.mjs} +12 -12
- package/dist/engine-B4whsrrE.mjs.map +1 -0
- package/dist/{engine-CaWo9tZO.cjs → engine-D0XYdIiE.cjs} +12 -12
- package/dist/engine-D0XYdIiE.cjs.map +1 -0
- package/dist/{errors-D8Gwp5kU.mjs → errors-C9uIyIDt.mjs} +7 -3
- package/dist/{errors-D8Gwp5kU.mjs.map → errors-C9uIyIDt.mjs.map} +1 -1
- package/dist/{errors-DMC4Umsb.cjs → errors-D1x8duqI.cjs} +7 -3
- package/dist/errors-D1x8duqI.cjs.map +1 -0
- package/dist/{github-BQCqBMZ9.mjs → github-CBkZF4PS.mjs} +11 -11
- package/dist/{github-BQCqBMZ9.mjs.map → github-CBkZF4PS.mjs.map} +1 -1
- package/dist/{github-Cz_LTqBn.cjs → github-D1-_OnGL.cjs} +11 -11
- package/dist/{github-Cz_LTqBn.cjs.map → github-D1-_OnGL.cjs.map} +1 -1
- package/dist/{googlePlay-DowNo3wp.mjs → googlePlay-Bwv8TVi8.mjs} +5 -5
- package/dist/{googlePlay-DowNo3wp.mjs.map → googlePlay-Bwv8TVi8.mjs.map} +1 -1
- package/dist/{googlePlay-CuqPxtno.cjs → googlePlay-s9dGfrrb.cjs} +5 -5
- package/dist/{googlePlay-CuqPxtno.cjs.map → googlePlay-s9dGfrrb.cjs.map} +1 -1
- package/dist/{iam-Cs2Ph5f2.mjs → iam-BzFyFf7T.mjs} +2 -2
- package/dist/{iam-Cs2Ph5f2.mjs.map → iam-BzFyFf7T.mjs.map} +1 -1
- package/dist/{iam-CGd_oEyz.cjs → iam-WIoKnLBp.cjs} +2 -2
- package/dist/{iam-CGd_oEyz.cjs.map → iam-WIoKnLBp.cjs.map} +1 -1
- package/dist/{index-QxGYzGEN.d.mts → index-BKgOlfK2.d.mts} +2 -2
- package/dist/{index-QxGYzGEN.d.mts.map → index-BKgOlfK2.d.mts.map} +1 -1
- package/dist/{index-tFzoro1V.d.cts → index-zPzigXh-.d.cts} +2 -2
- package/dist/{index-tFzoro1V.d.cts.map → index-zPzigXh-.d.cts.map} +1 -1
- package/dist/index.cjs +75 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +73 -71
- package/dist/index.mjs.map +1 -1
- package/dist/{local-CWNFE8Sg.cjs → local-CFnHQgWC.cjs} +3 -3
- package/dist/{local-CWNFE8Sg.cjs.map → local-CFnHQgWC.cjs.map} +1 -1
- package/dist/{local-BQQHvZ4q.mjs → local-JOnTFJA5.mjs} +3 -3
- package/dist/{local-BQQHvZ4q.mjs.map → local-JOnTFJA5.mjs.map} +1 -1
- package/dist/{migrate-D_7oRThu.mjs → migrate-BtnpQocG.mjs} +6 -6
- package/dist/{migrate-D_7oRThu.mjs.map → migrate-BtnpQocG.mjs.map} +1 -1
- package/dist/{migrate-8QGCWIqm.cjs → migrate-CGXrmZyV.cjs} +8 -8
- package/dist/{migrate-8QGCWIqm.cjs.map → migrate-CGXrmZyV.cjs.map} +1 -1
- package/dist/{migrate-CNrPM5zg.cjs → migrate-CxWXW-Lw.cjs} +6 -6
- package/dist/{migrate-CNrPM5zg.cjs.map → migrate-CxWXW-Lw.cjs.map} +1 -1
- package/dist/{migrate-CqiOiRvz.mjs → migrate-fLIgSpPB.mjs} +8 -8
- package/dist/{migrate-CqiOiRvz.mjs.map → migrate-fLIgSpPB.mjs.map} +1 -1
- package/dist/{notes-dD3gRvZw.cjs → notes-ChYPaRLu.cjs} +4 -4
- package/dist/{notes-dD3gRvZw.cjs.map → notes-ChYPaRLu.cjs.map} +1 -1
- package/dist/{notes-D2KWnUSL.mjs → notes-LATU2vLI.mjs} +4 -4
- package/dist/{notes-D2KWnUSL.mjs.map → notes-LATU2vLI.mjs.map} +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.d.cts +3 -8
- package/dist/openapi.d.cts.map +1 -1
- package/dist/openapi.d.mts +3 -8
- package/dist/openapi.d.mts.map +1 -1
- package/dist/openapi.mjs +3 -3
- package/dist/{projectBucket-BcTodL8A.cjs → projectBucket-BIeh2HTj.cjs} +3 -3
- package/dist/{projectBucket-BcTodL8A.cjs.map → projectBucket-BIeh2HTj.cjs.map} +1 -1
- package/dist/{projectBucket-BDytiu7A.mjs → projectBucket-D_4zb_oh.mjs} +3 -3
- package/dist/{projectBucket-BDytiu7A.mjs.map → projectBucket-D_4zb_oh.mjs.map} +1 -1
- package/dist/{provider-CEOKk8NS.mjs → provider-BvjDbsTR.mjs} +3 -3
- package/dist/{provider-CEOKk8NS.mjs.map → provider-BvjDbsTR.mjs.map} +1 -1
- package/dist/{provider-BqpjG9QM.cjs → provider-DLhgo-mB.cjs} +3 -3
- package/dist/{provider-BqpjG9QM.cjs.map → provider-DLhgo-mB.cjs.map} +1 -1
- package/dist/{publish-Da9gxP5Q.cjs → publish-Dc-1GQp8.cjs} +3 -3
- package/dist/{publish-Da9gxP5Q.cjs.map → publish-Dc-1GQp8.cjs.map} +1 -1
- package/dist/{publish-Cr8wv7nO.mjs → publish-DhzRYhVZ.mjs} +3 -3
- package/dist/{publish-Cr8wv7nO.mjs.map → publish-DhzRYhVZ.mjs.map} +1 -1
- package/dist/{ready-D1gctv-5.mjs → ready-BcV28QoW.mjs} +6 -6
- package/dist/{ready-D1gctv-5.mjs.map → ready-BcV28QoW.mjs.map} +1 -1
- package/dist/{ready-Bgj2cf4j.cjs → ready-ByQvw4-W.cjs} +6 -6
- package/dist/{ready-Bgj2cf4j.cjs.map → ready-ByQvw4-W.cjs.map} +1 -1
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/{resolve-Dyki9ZJX.mjs → resolve-CJvM2bUx.mjs} +6 -6
- package/dist/{resolve-Dyki9ZJX.mjs.map → resolve-CJvM2bUx.mjs.map} +1 -1
- package/dist/{resolve-DRldmRYb.cjs → resolve-DyUXmA0z.cjs} +6 -6
- package/dist/{resolve-DRldmRYb.cjs.map → resolve-DyUXmA0z.cjs.map} +1 -1
- package/dist/{rollback-Do0i6x3b.mjs → rollback-BO1asWkd.mjs} +8 -8
- package/dist/{rollback-Do0i6x3b.mjs.map → rollback-BO1asWkd.mjs.map} +1 -1
- package/dist/{rollback-R_j7f9cY.cjs → rollback-Op8Tc5N-.cjs} +8 -8
- package/dist/{rollback-R_j7f9cY.cjs.map → rollback-Op8Tc5N-.cjs.map} +1 -1
- package/dist/{runtime-BpGIXfYr.d.mts → runtime-CaejlcZt.d.mts} +2 -2
- package/dist/{runtime-BpGIXfYr.d.mts.map → runtime-CaejlcZt.d.mts.map} +1 -1
- package/dist/{runtime-DLV0CNZ4.d.cts → runtime-D3jD4Dvn.d.cts} +2 -2
- package/dist/{runtime-DLV0CNZ4.d.cts.map → runtime-D3jD4Dvn.d.cts.map} +1 -1
- package/dist/{s3-CYEU7r1x.mjs → s3-BbtwHSod.mjs} +5 -5
- package/dist/{s3-CYEU7r1x.mjs.map → s3-BbtwHSod.mjs.map} +1 -1
- package/dist/{s3-D9aPMh9u.cjs → s3-CwacPd8J.cjs} +5 -5
- package/dist/{s3-D9aPMh9u.cjs.map → s3-CwacPd8J.cjs.map} +1 -1
- package/dist/sandbox/credentials-worker.cjs +2 -2
- package/dist/sandbox/credentials-worker.mjs +2 -2
- package/dist/sandbox/discover-worker.cjs +1 -1
- package/dist/sandbox/discover-worker.mjs +1 -1
- package/dist/sandbox/migrate-worker.cjs +2 -2
- package/dist/sandbox/migrate-worker.mjs +2 -2
- package/dist/{secretsManager-CJyxFcBH.mjs → secretsManager-CjTo6CRq.mjs} +2 -2
- package/dist/{secretsManager-CJyxFcBH.mjs.map → secretsManager-CjTo6CRq.mjs.map} +1 -1
- package/dist/{secretsManager-D8on44WI.cjs → secretsManager-CvmBGjdM.cjs} +2 -2
- package/dist/{secretsManager-D8on44WI.cjs.map → secretsManager-CvmBGjdM.cjs.map} +1 -1
- package/dist/{serverSetup-BmPwcMQN.cjs → serverSetup-BFdzPTIT.cjs} +7 -7
- package/dist/{serverSetup-BmPwcMQN.cjs.map → serverSetup-BFdzPTIT.cjs.map} +1 -1
- package/dist/{serverSetup-Bw5gc57O.mjs → serverSetup-CSxaZ7ha.mjs} +7 -7
- package/dist/{serverSetup-Bw5gc57O.mjs.map → serverSetup-CSxaZ7ha.mjs.map} +1 -1
- package/dist/{sniffer-XsTiFI3l.mjs → sniffer-CwxpsSez.mjs} +9 -9
- package/dist/{sniffer-XsTiFI3l.mjs.map → sniffer-CwxpsSez.mjs.map} +1 -1
- package/dist/{sniffer-BPLYWu70.cjs → sniffer-D3gH7aJT.cjs} +9 -9
- package/dist/{sniffer-BPLYWu70.cjs.map → sniffer-D3gH7aJT.cjs.map} +1 -1
- package/dist/{snsSubscriptions-CATtZwGv.cjs → snsSubscriptions-B8tGxND5.cjs} +10 -8
- package/dist/snsSubscriptions-B8tGxND5.cjs.map +1 -0
- package/dist/{snsSubscriptions-D9Rm_Eug.mjs → snsSubscriptions-n3sjbrRM.mjs} +7 -5
- package/dist/snsSubscriptions-n3sjbrRM.mjs.map +1 -0
- package/dist/{sst-C56i2cst.cjs → sst-Cjocp7gi.cjs} +8 -8
- package/dist/{sst-C56i2cst.cjs.map → sst-Cjocp7gi.cjs.map} +1 -1
- package/dist/{sst-BCvYZtVF.mjs → sst-DeF0BfDA.mjs} +8 -8
- package/dist/{sst-BCvYZtVF.mjs.map → sst-DeF0BfDA.mjs.map} +1 -1
- package/dist/{stack-TttsEL7X.mjs → stack-CyoRqyPt.mjs} +16 -609
- package/dist/stack-CyoRqyPt.mjs.map +1 -0
- package/dist/{stack-Dal2Oq2D.cjs → stack-Dr2FSxGm.cjs} +28 -687
- package/dist/stack-Dr2FSxGm.cjs.map +1 -0
- package/dist/{stage--ixwLSTc.mjs → stage-TAx0Gcq8.mjs} +8 -8
- package/dist/{stage--ixwLSTc.mjs.map → stage-TAx0Gcq8.mjs.map} +1 -1
- package/dist/{stage-BLsuXUP_.cjs → stage-aTBLKonw.cjs} +8 -8
- package/dist/{stage-BLsuXUP_.cjs.map → stage-aTBLKonw.cjs.map} +1 -1
- package/dist/{stages-8izznWib.cjs → stages-BeSQQQ4z.cjs} +3 -3
- package/dist/{stages-8izznWib.cjs.map → stages-BeSQQQ4z.cjs.map} +1 -1
- package/dist/{stages-QPWgbm9P.mjs → stages-DjFKQv08.mjs} +3 -3
- package/dist/{stages-QPWgbm9P.mjs.map → stages-DjFKQv08.mjs.map} +1 -1
- package/dist/target/public.cjs +3 -3
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +3 -3
- package/dist/{terminal-gOLDmpW-.mjs → terminal-Bk4PjXWY.mjs} +4 -4
- package/dist/{terminal-gOLDmpW-.mjs.map → terminal-Bk4PjXWY.mjs.map} +1 -1
- package/dist/{terminal-Dy4zzTCA.cjs → terminal-DPf137EJ.cjs} +4 -4
- package/dist/{terminal-Dy4zzTCA.cjs.map → terminal-DPf137EJ.cjs.map} +1 -1
- package/dist/{types-CV4AzwC_.d.cts → types-CLxsw-QY.d.cts} +3 -16
- package/dist/types-CLxsw-QY.d.cts.map +1 -0
- package/dist/{types-Bj1A1wkS.d.mts → types-wLlwkSib.d.mts} +3 -16
- package/dist/types-wLlwkSib.d.mts.map +1 -0
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-BBa1Ck5j.mjs → workspace-DJjhfAGf.mjs} +3 -3
- package/dist/{workspace-BBa1Ck5j.mjs.map → workspace-DJjhfAGf.mjs.map} +1 -1
- package/dist/{workspace-DirP2-ed.cjs → workspace-wTLnc1Ef.cjs} +3 -3
- package/dist/{workspace-DirP2-ed.cjs.map → workspace-wTLnc1Ef.cjs.map} +1 -1
- package/package.json +16 -15
- package/dist/GoDaddyProvider-B9AMLUHF.cjs +0 -412
- package/dist/GoDaddyProvider-B9AMLUHF.cjs.map +0 -1
- package/dist/GoDaddyProvider-DLVKx7er.mjs +0 -412
- package/dist/GoDaddyProvider-DLVKx7er.mjs.map +0 -1
- package/dist/HostingerProvider-DBPWhL_s.cjs +0 -257
- package/dist/HostingerProvider-DBPWhL_s.cjs.map +0 -1
- package/dist/HostingerProvider-kLQsBCjz.mjs +0 -257
- package/dist/HostingerProvider-kLQsBCjz.mjs.map +0 -1
- package/dist/Route53Provider-Di_SD9CF.mjs +0 -209
- package/dist/Route53Provider-Di_SD9CF.mjs.map +0 -1
- package/dist/Route53Provider-emLuQHVw.cjs +0 -209
- package/dist/Route53Provider-emLuQHVw.cjs.map +0 -1
- package/dist/apps-DPw1i9E7.cjs.map +0 -1
- package/dist/apps-GDmO_v7v.mjs.map +0 -1
- package/dist/compose-BKLJMnDI.cjs.map +0 -1
- package/dist/compose-CE0Vi7zq.cjs.map +0 -1
- package/dist/compose-DH1ToGh2.mjs.map +0 -1
- package/dist/compose-pFnSi3Zf.mjs.map +0 -1
- package/dist/deploy-CpAkrZ25.mjs.map +0 -1
- package/dist/deploy-l0Vc846k.cjs.map +0 -1
- package/dist/destroy-DtAqmjGz.cjs.map +0 -1
- package/dist/destroy-eeB_PrmN.mjs.map +0 -1
- package/dist/dns-B2vsk2Rc.mjs.map +0 -1
- package/dist/dns-WneRa4VJ.cjs.map +0 -1
- package/dist/engine-BhS-wyH0.mjs.map +0 -1
- package/dist/engine-CaWo9tZO.cjs.map +0 -1
- package/dist/errors-DMC4Umsb.cjs.map +0 -1
- package/dist/snsSubscriptions-CATtZwGv.cjs.map +0 -1
- package/dist/snsSubscriptions-D9Rm_Eug.mjs.map +0 -1
- package/dist/stack-Dal2Oq2D.cjs.map +0 -1
- package/dist/stack-TttsEL7X.mjs.map +0 -1
- package/dist/types-Bj1A1wkS.d.mts.map +0 -1
- package/dist/types-CV4AzwC_.d.cts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_workspace = require("./workspace-
|
|
2
|
+
const require_errors = require("./errors-D1x8duqI.cjs");
|
|
3
|
+
const require_workspace = require("./workspace-wTLnc1Ef.cjs");
|
|
4
4
|
const require_drivers = require("./drivers-DP7__dJX.cjs");
|
|
5
|
-
const require_discover = require("./discover-
|
|
6
|
-
const require_resolve = require("./resolve-
|
|
5
|
+
const require_discover = require("./discover-OXczlq08.cjs");
|
|
6
|
+
const require_resolve = require("./resolve-DyUXmA0z.cjs");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -12,6 +12,7 @@ let node_child_process = require("node:child_process");
|
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
13
13
|
let _geekmidas_manifest = require("@geekmidas/manifest");
|
|
14
14
|
let node_dns_promises = require("node:dns/promises");
|
|
15
|
+
let _geekmidas_edge_dns = require("@geekmidas/edge/dns");
|
|
15
16
|
//#region src/home.ts
|
|
16
17
|
/**
|
|
17
18
|
* Where the CLI keeps what belongs to a person rather than a project: stage
|
|
@@ -1009,7 +1010,7 @@ async function storeFromConfig(workspace, config, options = {}) {
|
|
|
1009
1010
|
const profile = options.profile ? { profile: options.profile } : {};
|
|
1010
1011
|
switch (config.provider) {
|
|
1011
1012
|
case "s3": {
|
|
1012
|
-
const { S3SecretsStore } = await Promise.resolve().then(() => require("./s3-
|
|
1013
|
+
const { S3SecretsStore } = await Promise.resolve().then(() => require("./s3-CwacPd8J.cjs"));
|
|
1013
1014
|
const { deployIdentity } = await Promise.resolve().then(() => identity_exports);
|
|
1014
1015
|
const location = require_workspace.s3SecretsLocation(config, workspace.state);
|
|
1015
1016
|
return new S3SecretsStore({
|
|
@@ -1022,7 +1023,7 @@ async function storeFromConfig(workspace, config, options = {}) {
|
|
|
1022
1023
|
});
|
|
1023
1024
|
}
|
|
1024
1025
|
case "ssm": {
|
|
1025
|
-
const { AwsSecretsStore } = await Promise.resolve().then(() => require("./aws-
|
|
1026
|
+
const { AwsSecretsStore } = await Promise.resolve().then(() => require("./aws-BXfiWNbi.cjs")).then((n) => n.aws_exports);
|
|
1026
1027
|
return new AwsSecretsStore({
|
|
1027
1028
|
project: workspace.name,
|
|
1028
1029
|
region: config.region,
|
|
@@ -1031,7 +1032,7 @@ async function storeFromConfig(workspace, config, options = {}) {
|
|
|
1031
1032
|
}
|
|
1032
1033
|
case "secrets-manager": {
|
|
1033
1034
|
const { kmsKeyId } = config;
|
|
1034
|
-
const { SecretsManagerSecretsStore } = await Promise.resolve().then(() => require("./secretsManager-
|
|
1035
|
+
const { SecretsManagerSecretsStore } = await Promise.resolve().then(() => require("./secretsManager-CvmBGjdM.cjs")).then((n) => n.secretsManager_exports);
|
|
1035
1036
|
return new SecretsManagerSecretsStore({
|
|
1036
1037
|
project: workspace.name,
|
|
1037
1038
|
region: config.region,
|
|
@@ -1109,122 +1110,6 @@ function eventsBackendFor(on) {
|
|
|
1109
1110
|
return require_drivers.DEFAULT_EVENTS[on];
|
|
1110
1111
|
}
|
|
1111
1112
|
//#endregion
|
|
1112
|
-
//#region src/deploy/credentials.ts
|
|
1113
|
-
/**
|
|
1114
|
-
* How a deploy gets the credentials it acts with.
|
|
1115
|
-
*
|
|
1116
|
-
* `deploy()` never prompts and never reads a terminal: it asks a
|
|
1117
|
-
* `CredentialProvider` and, when the provider has nothing, stops with
|
|
1118
|
-
* `MissingCredential` naming what it needed and how to supply it. Whether to
|
|
1119
|
-
* ask a person, read a vault or fail is the caller's decision — `gkm deploy`
|
|
1120
|
-
* prompts at a terminal and stores what was typed; a CI job sets the
|
|
1121
|
-
* environment; a host passes its own provider.
|
|
1122
|
-
*/
|
|
1123
|
-
/**
|
|
1124
|
-
* How to supply each kind the CLI knows, for the error that says it is
|
|
1125
|
-
* missing. A target's own kinds are its to explain.
|
|
1126
|
-
*/
|
|
1127
|
-
const HOW_TO_PROVIDE = {
|
|
1128
|
-
dokploy: "Set DOKPLOY_API_TOKEN (and DOKPLOY_ENDPOINT, or deploy.dokploy.endpoint in gkm.config.ts), run `gkm login --provider dokploy`, or pass them through the deploy's CredentialProvider.",
|
|
1129
|
-
registry: "Add the registry in Dokploy (Settings → Docker Registry) and set deploy.dokploy.registryId, set DOCKER_REGISTRY_USERNAME and DOCKER_REGISTRY_PASSWORD, or run `gkm deploy` at a terminal to be asked for them.",
|
|
1130
|
-
godaddy: "Set GODADDY_API_TOKEN to a Personal Access Token scoped to domains.dns:update (create one in the GoDaddy developer dashboard), or run `gkm login --provider godaddy`.",
|
|
1131
|
-
hostinger: "Set HOSTINGER_API_TOKEN to a token from hpanel.hostinger.com/profile/api, or run `gkm login --provider hostinger`.",
|
|
1132
|
-
aws: "Set AWS_PROFILE to the stage account's profile, or AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (and AWS_SESSION_TOKEN) — in CI, the keys aws-actions/configure-aws-credentials exports — or pass them through the deploy's CredentialProvider."
|
|
1133
|
-
};
|
|
1134
|
-
/** A deploy needed a credential, and its provider had none. */
|
|
1135
|
-
var MissingCredential = class extends require_errors.GkmError {
|
|
1136
|
-
kind;
|
|
1137
|
-
target;
|
|
1138
|
-
howToProvide;
|
|
1139
|
-
constructor(kind, target, howToProvide = HOW_TO_PROVIDE[kind] ?? "Pass it through the deploy's CredentialProvider.") {
|
|
1140
|
-
const what = kind === "dokploy" ? `No Dokploy credentials${target ? ` for ${target}` : ""}.` : kind === "registry" ? `Dokploy has no registry for ${target ?? "the configured registry"}, and there are no credentials to create one with.` : kind === "aws" ? `No AWS credentials${target ? ` for the "${target}" stage` : ""}.` : kind === "godaddy" ? `No GoDaddy API token${target ? ` for ${target}` : ""}.` : kind === "hostinger" ? `No Hostinger API token${target ? ` for ${target}` : ""}.` : `No "${String(kind)}" credentials${target ? ` for ${target}` : ""}.`;
|
|
1141
|
-
super(`${what} ${howToProvide}`);
|
|
1142
|
-
this.kind = kind;
|
|
1143
|
-
this.target = target;
|
|
1144
|
-
this.howToProvide = howToProvide;
|
|
1145
|
-
this.name = "MissingCredential";
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
|
-
/** Whatever was asked for, from the first provider that has it. */
|
|
1149
|
-
function chainCredentials(...providers) {
|
|
1150
|
-
return { async get(request, options) {
|
|
1151
|
-
for (const provider of providers) {
|
|
1152
|
-
const found = await provider.get(request, options);
|
|
1153
|
-
if (found) return found;
|
|
1154
|
-
}
|
|
1155
|
-
} };
|
|
1156
|
-
}
|
|
1157
|
-
/**
|
|
1158
|
-
* Credentials from the environment, then from what `gkm login` stored. What
|
|
1159
|
-
* `deploy()` uses when it is handed no provider.
|
|
1160
|
-
*
|
|
1161
|
-
* - Dokploy: `DOKPLOY_API_TOKEN` / `DOKPLOY_ENDPOINT`, each falling back to
|
|
1162
|
-
* the stored login, and the endpoint finally to `deploy.dokploy.endpoint`.
|
|
1163
|
-
* Each half is read on its own: a token is a secret and belongs in the
|
|
1164
|
-
* environment, an endpoint is configuration and belongs in the config.
|
|
1165
|
-
* - Registry: `DOCKER_REGISTRY_USERNAME` / `DOCKER_REGISTRY_PASSWORD`.
|
|
1166
|
-
* - AWS: `AWS_PROFILE` when it is set, and then nothing else; otherwise
|
|
1167
|
-
* `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN`. The
|
|
1168
|
-
* profile winning is `secretsStoreFor`'s rule: a profile is a choice of
|
|
1169
|
-
* account someone made, exported keys may be left over from another.
|
|
1170
|
-
* Read here, by name, and handed only to the command that deploys — the
|
|
1171
|
-
* sandbox every other step runs in passes no `AWS_*` on.
|
|
1172
|
-
*/
|
|
1173
|
-
function storedCredentials(options = {}) {
|
|
1174
|
-
const env = options.env ?? process.env;
|
|
1175
|
-
return { async get(asked) {
|
|
1176
|
-
const request = asked;
|
|
1177
|
-
switch (request.kind) {
|
|
1178
|
-
case "dokploy": {
|
|
1179
|
-
const stored = (await readCredentials(options.home ? { home: options.home } : void 0)).dokploy;
|
|
1180
|
-
const token = env.DOKPLOY_API_TOKEN ?? stored?.token;
|
|
1181
|
-
const endpoint = env.DOKPLOY_ENDPOINT ?? stored?.endpoint ?? request.endpoint;
|
|
1182
|
-
if (!token || !endpoint) return void 0;
|
|
1183
|
-
return {
|
|
1184
|
-
endpoint: endpoint.replace(/\/$/, ""),
|
|
1185
|
-
token
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
case "registry": {
|
|
1189
|
-
const username = env.DOCKER_REGISTRY_USERNAME;
|
|
1190
|
-
const password = env.DOCKER_REGISTRY_PASSWORD;
|
|
1191
|
-
if (!username || !password) return void 0;
|
|
1192
|
-
return {
|
|
1193
|
-
username,
|
|
1194
|
-
password
|
|
1195
|
-
};
|
|
1196
|
-
}
|
|
1197
|
-
case "godaddy": {
|
|
1198
|
-
const token = env.GODADDY_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).godaddy?.token;
|
|
1199
|
-
if (!token) return void 0;
|
|
1200
|
-
return { token };
|
|
1201
|
-
}
|
|
1202
|
-
case "hostinger": {
|
|
1203
|
-
const token = env.HOSTINGER_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).hostinger?.token;
|
|
1204
|
-
if (!token) return void 0;
|
|
1205
|
-
return { token };
|
|
1206
|
-
}
|
|
1207
|
-
case "aws": {
|
|
1208
|
-
const region = env.AWS_REGION ?? env.AWS_DEFAULT_REGION;
|
|
1209
|
-
const where = region ? { region } : {};
|
|
1210
|
-
if (env.AWS_PROFILE) return {
|
|
1211
|
-
profile: env.AWS_PROFILE,
|
|
1212
|
-
...where
|
|
1213
|
-
};
|
|
1214
|
-
const accessKeyId = env.AWS_ACCESS_KEY_ID;
|
|
1215
|
-
const secretAccessKey = env.AWS_SECRET_ACCESS_KEY;
|
|
1216
|
-
if (!accessKeyId || !secretAccessKey) return void 0;
|
|
1217
|
-
return {
|
|
1218
|
-
accessKeyId,
|
|
1219
|
-
secretAccessKey,
|
|
1220
|
-
...env.AWS_SESSION_TOKEN ? { sessionToken: env.AWS_SESSION_TOKEN } : {},
|
|
1221
|
-
...where
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
} };
|
|
1226
|
-
}
|
|
1227
|
-
//#endregion
|
|
1228
1113
|
//#region src/deploy/state.ts
|
|
1229
1114
|
/**
|
|
1230
1115
|
* A stage's deploy state.
|
|
@@ -1406,45 +1291,130 @@ function setPostgresBackupId(state, backupId) {
|
|
|
1406
1291
|
if (state.backups) state.backups.postgresBackupId = backupId;
|
|
1407
1292
|
}
|
|
1408
1293
|
//#endregion
|
|
1409
|
-
//#region src/
|
|
1294
|
+
//#region src/deploy/credentials.ts
|
|
1410
1295
|
/**
|
|
1411
|
-
*
|
|
1412
|
-
*
|
|
1413
|
-
*
|
|
1414
|
-
*
|
|
1296
|
+
* How a deploy gets the credentials it acts with.
|
|
1297
|
+
*
|
|
1298
|
+
* `deploy()` never prompts and never reads a terminal: it asks a
|
|
1299
|
+
* `CredentialProvider` and, when the provider has nothing, stops with
|
|
1300
|
+
* `MissingCredential` naming what it needed and how to supply it. Whether to
|
|
1301
|
+
* ask a person, read a vault or fail is the caller's decision — `gkm deploy`
|
|
1302
|
+
* prompts at a terminal and stores what was typed; a CI job sets the
|
|
1303
|
+
* environment; a host passes its own provider.
|
|
1415
1304
|
*/
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1305
|
+
/**
|
|
1306
|
+
* How to supply each kind the CLI knows, for the error that says it is
|
|
1307
|
+
* missing. A target's own kinds are its to explain.
|
|
1308
|
+
*/
|
|
1309
|
+
const HOW_TO_PROVIDE = {
|
|
1310
|
+
dokploy: "Set DOKPLOY_API_TOKEN (and DOKPLOY_ENDPOINT, or deploy.dokploy.endpoint in gkm.config.ts), run `gkm login --provider dokploy`, or pass them through the deploy's CredentialProvider.",
|
|
1311
|
+
registry: "Add the registry in Dokploy (Settings → Docker Registry) and set deploy.dokploy.registryId, set DOCKER_REGISTRY_USERNAME and DOCKER_REGISTRY_PASSWORD, or run `gkm deploy` at a terminal to be asked for them.",
|
|
1312
|
+
godaddy: "Set GODADDY_API_TOKEN to a Personal Access Token scoped to domains.dns:update (create one in the GoDaddy developer dashboard), or run `gkm login --provider godaddy`.",
|
|
1313
|
+
hostinger: "Set HOSTINGER_API_TOKEN to a token from hpanel.hostinger.com/profile/api, or run `gkm login --provider hostinger`.",
|
|
1314
|
+
aws: "Set AWS_PROFILE to the stage account's profile, or AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (and AWS_SESSION_TOKEN) — in CI, the keys aws-actions/configure-aws-credentials exports — or pass them through the deploy's CredentialProvider."
|
|
1315
|
+
};
|
|
1316
|
+
/** A deploy needed a credential, and its provider had none. */
|
|
1317
|
+
var MissingCredential = class extends require_errors.GkmError {
|
|
1318
|
+
kind;
|
|
1319
|
+
target;
|
|
1320
|
+
howToProvide;
|
|
1321
|
+
constructor(kind, target, howToProvide = HOW_TO_PROVIDE[kind] ?? "Pass it through the deploy's CredentialProvider.") {
|
|
1322
|
+
const what = kind === "dokploy" ? `No Dokploy credentials${target ? ` for ${target}` : ""}.` : kind === "registry" ? `Dokploy has no registry for ${target ?? "the configured registry"}, and there are no credentials to create one with.` : kind === "aws" ? `No AWS credentials${target ? ` for the "${target}" stage` : ""}.` : kind === "godaddy" ? `No GoDaddy API token${target ? ` for ${target}` : ""}.` : kind === "hostinger" ? `No Hostinger API token${target ? ` for ${target}` : ""}.` : `No "${String(kind)}" credentials${target ? ` for ${target}` : ""}.`;
|
|
1323
|
+
super(`${what} ${howToProvide}`);
|
|
1324
|
+
this.kind = kind;
|
|
1325
|
+
this.target = target;
|
|
1326
|
+
this.howToProvide = howToProvide;
|
|
1327
|
+
this.name = "MissingCredential";
|
|
1426
1328
|
}
|
|
1427
1329
|
};
|
|
1330
|
+
/** Whatever was asked for, from the first provider that has it. */
|
|
1331
|
+
function chainCredentials(...providers) {
|
|
1332
|
+
return { async get(request, options) {
|
|
1333
|
+
for (const provider of providers) {
|
|
1334
|
+
const found = await provider.get(request, options);
|
|
1335
|
+
if (found) return found;
|
|
1336
|
+
}
|
|
1337
|
+
} };
|
|
1338
|
+
}
|
|
1428
1339
|
/**
|
|
1429
|
-
*
|
|
1340
|
+
* Credentials from the environment, then from what `gkm login` stored. What
|
|
1341
|
+
* `deploy()` uses when it is handed no provider.
|
|
1430
1342
|
*
|
|
1431
|
-
*
|
|
1343
|
+
* - Dokploy: `DOKPLOY_API_TOKEN` / `DOKPLOY_ENDPOINT`, each falling back to
|
|
1344
|
+
* the stored login, and the endpoint finally to `deploy.dokploy.endpoint`.
|
|
1345
|
+
* Each half is read on its own: a token is a secret and belongs in the
|
|
1346
|
+
* environment, an endpoint is configuration and belongs in the config.
|
|
1347
|
+
* - Registry: `DOCKER_REGISTRY_USERNAME` / `DOCKER_REGISTRY_PASSWORD`.
|
|
1348
|
+
* - AWS: `AWS_PROFILE` when it is set, and then nothing else; otherwise
|
|
1349
|
+
* `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN`. The
|
|
1350
|
+
* profile winning is `secretsStoreFor`'s rule: a profile is a choice of
|
|
1351
|
+
* account someone made, exported keys may be left over from another.
|
|
1352
|
+
* Read here, by name, and handed only to the command that deploys — the
|
|
1353
|
+
* sandbox every other step runs in passes no `AWS_*` on.
|
|
1432
1354
|
*/
|
|
1433
|
-
function
|
|
1434
|
-
const
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1355
|
+
function storedCredentials(options = {}) {
|
|
1356
|
+
const env = options.env ?? process.env;
|
|
1357
|
+
return { async get(asked) {
|
|
1358
|
+
const request = asked;
|
|
1359
|
+
switch (request.kind) {
|
|
1360
|
+
case "dokploy": {
|
|
1361
|
+
const stored = (await readCredentials(options.home ? { home: options.home } : void 0)).dokploy;
|
|
1362
|
+
const token = env.DOKPLOY_API_TOKEN ?? stored?.token;
|
|
1363
|
+
const endpoint = env.DOKPLOY_ENDPOINT ?? stored?.endpoint ?? request.endpoint;
|
|
1364
|
+
if (!token || !endpoint) return void 0;
|
|
1365
|
+
return {
|
|
1366
|
+
endpoint: endpoint.replace(/\/$/, ""),
|
|
1367
|
+
token
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
case "registry": {
|
|
1371
|
+
const username = env.DOCKER_REGISTRY_USERNAME;
|
|
1372
|
+
const password = env.DOCKER_REGISTRY_PASSWORD;
|
|
1373
|
+
if (!username || !password) return void 0;
|
|
1374
|
+
return {
|
|
1375
|
+
username,
|
|
1376
|
+
password
|
|
1377
|
+
};
|
|
1378
|
+
}
|
|
1379
|
+
case "godaddy": {
|
|
1380
|
+
const token = env.GODADDY_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).godaddy?.token;
|
|
1381
|
+
if (!token) return void 0;
|
|
1382
|
+
return { token };
|
|
1383
|
+
}
|
|
1384
|
+
case "hostinger": {
|
|
1385
|
+
const token = env.HOSTINGER_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).hostinger?.token;
|
|
1386
|
+
if (!token) return void 0;
|
|
1387
|
+
return { token };
|
|
1388
|
+
}
|
|
1389
|
+
case "aws": {
|
|
1390
|
+
const region = env.AWS_REGION ?? env.AWS_DEFAULT_REGION;
|
|
1391
|
+
const where = region ? { region } : {};
|
|
1392
|
+
if (env.AWS_PROFILE) return {
|
|
1393
|
+
profile: env.AWS_PROFILE,
|
|
1394
|
+
...where
|
|
1395
|
+
};
|
|
1396
|
+
const accessKeyId = env.AWS_ACCESS_KEY_ID;
|
|
1397
|
+
const secretAccessKey = env.AWS_SECRET_ACCESS_KEY;
|
|
1398
|
+
if (!accessKeyId || !secretAccessKey) return void 0;
|
|
1399
|
+
return {
|
|
1400
|
+
accessKeyId,
|
|
1401
|
+
secretAccessKey,
|
|
1402
|
+
...env.AWS_SESSION_TOKEN ? { sessionToken: env.AWS_SESSION_TOKEN } : {},
|
|
1403
|
+
...where
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
} };
|
|
1441
1408
|
}
|
|
1409
|
+
//#endregion
|
|
1410
|
+
//#region src/dns/providers.ts
|
|
1442
1411
|
/**
|
|
1443
|
-
*
|
|
1412
|
+
* The DNS provider a `dns` domain names, built from the workspace's config.
|
|
1413
|
+
*
|
|
1414
|
+
* The providers themselves are `@geekmidas/edge`'s and take their credentials
|
|
1415
|
+
* as given. Where a credential comes from (a stored login, the environment)
|
|
1416
|
+
* and what to say when there is none are the CLI's, and are decided here.
|
|
1444
1417
|
*/
|
|
1445
|
-
function isDnsProvider(value) {
|
|
1446
|
-
return typeof value === "object" && value !== null && typeof value.name === "string" && typeof value.getRecords === "function" && typeof value.upsertRecords === "function" && typeof value.deleteRecords === "function";
|
|
1447
|
-
}
|
|
1448
1418
|
/**
|
|
1449
1419
|
* Create a DNS provider based on configuration.
|
|
1450
1420
|
*
|
|
@@ -1457,14 +1427,18 @@ function isDnsProvider(value) {
|
|
|
1457
1427
|
async function createDnsProvider(options) {
|
|
1458
1428
|
const { config } = options;
|
|
1459
1429
|
if (config.provider === "manual") return null;
|
|
1460
|
-
if (isDnsProvider(config.provider)) return config.provider;
|
|
1430
|
+
if ((0, _geekmidas_edge_dns.isDnsProvider)(config.provider)) return config.provider;
|
|
1461
1431
|
const provider = config.provider;
|
|
1462
1432
|
if (provider === "hostinger") {
|
|
1463
|
-
const { HostingerProvider } = await
|
|
1464
|
-
return new HostingerProvider(
|
|
1433
|
+
const { HostingerProvider } = await import("@geekmidas/edge/dns/hostinger");
|
|
1434
|
+
return new HostingerProvider(async () => {
|
|
1435
|
+
const token = options.hostinger?.token ?? await getHostingerToken();
|
|
1436
|
+
if (!token) throw new MissingCredential("hostinger", void 0);
|
|
1437
|
+
return { token };
|
|
1438
|
+
});
|
|
1465
1439
|
}
|
|
1466
1440
|
if (provider === "route53") {
|
|
1467
|
-
const { Route53Provider } = await
|
|
1441
|
+
const { Route53Provider } = await import("@geekmidas/edge/dns/route53");
|
|
1468
1442
|
const route53Config = config;
|
|
1469
1443
|
return new Route53Provider({
|
|
1470
1444
|
region: route53Config.region,
|
|
@@ -1473,29 +1447,23 @@ async function createDnsProvider(options) {
|
|
|
1473
1447
|
});
|
|
1474
1448
|
}
|
|
1475
1449
|
if (provider === "godaddy") {
|
|
1476
|
-
const { GoDaddyProvider } = await
|
|
1477
|
-
|
|
1450
|
+
const { GoDaddyProvider } = await import("@geekmidas/edge/dns/godaddy");
|
|
1451
|
+
const { credential, env, home, ...rest } = options.godaddy ?? {};
|
|
1452
|
+
return new GoDaddyProvider({
|
|
1453
|
+
...rest,
|
|
1454
|
+
credential: async () => {
|
|
1455
|
+
const found = credential ?? await storedCredentials({
|
|
1456
|
+
env: env ?? process.env,
|
|
1457
|
+
...home ? { home } : {}
|
|
1458
|
+
}).get({ kind: "godaddy" });
|
|
1459
|
+
if (!found) throw new MissingCredential("godaddy", void 0);
|
|
1460
|
+
return found;
|
|
1461
|
+
}
|
|
1462
|
+
});
|
|
1478
1463
|
}
|
|
1479
1464
|
if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
|
|
1480
1465
|
throw new DnsProviderUnknown(config);
|
|
1481
1466
|
}
|
|
1482
|
-
/**
|
|
1483
|
-
* The provider's credentials can write records and not read them — a key
|
|
1484
|
-
* scoped to updates only. What reads them falls back to writing every record,
|
|
1485
|
-
* which is idempotent, without a diff.
|
|
1486
|
-
*/
|
|
1487
|
-
var DnsRecordsUnreadable = class extends require_errors.GkmError {
|
|
1488
|
-
provider;
|
|
1489
|
-
domain;
|
|
1490
|
-
reason;
|
|
1491
|
-
constructor(provider, domain, reason) {
|
|
1492
|
-
super(`The ${provider} key cannot read ${domain}'s DNS records (${reason}), so changes cannot be compared with what is there: every record is written, which leaves one that already has its value as it was.`);
|
|
1493
|
-
this.provider = provider;
|
|
1494
|
-
this.domain = domain;
|
|
1495
|
-
this.reason = reason;
|
|
1496
|
-
this.name = "DnsRecordsUnreadable";
|
|
1497
|
-
}
|
|
1498
|
-
};
|
|
1499
1467
|
/** A DNS provider gkm names and does not have yet. */
|
|
1500
1468
|
var DnsProviderNotImplemented = class extends Error {
|
|
1501
1469
|
provider;
|
|
@@ -1515,7 +1483,7 @@ var DnsProviderUnknown = class extends require_errors.GkmError {
|
|
|
1515
1483
|
}
|
|
1516
1484
|
};
|
|
1517
1485
|
//#endregion
|
|
1518
|
-
//#region src/
|
|
1486
|
+
//#region src/dns/index.ts
|
|
1519
1487
|
/**
|
|
1520
1488
|
* DNS orchestration for deployments
|
|
1521
1489
|
*
|
|
@@ -1877,12 +1845,6 @@ Object.defineProperty(exports, "DEFAULT_TIMEOUT_MS", {
|
|
|
1877
1845
|
return DEFAULT_TIMEOUT_MS;
|
|
1878
1846
|
}
|
|
1879
1847
|
});
|
|
1880
|
-
Object.defineProperty(exports, "DnsRecordsUnreadable", {
|
|
1881
|
-
enumerable: true,
|
|
1882
|
-
get: function() {
|
|
1883
|
-
return DnsRecordsUnreadable;
|
|
1884
|
-
}
|
|
1885
|
-
});
|
|
1886
1848
|
Object.defineProperty(exports, "FileSecretsStore", {
|
|
1887
1849
|
enumerable: true,
|
|
1888
1850
|
get: function() {
|
|
@@ -2027,12 +1989,6 @@ Object.defineProperty(exports, "getGeneratedSecret", {
|
|
|
2027
1989
|
return getGeneratedSecret;
|
|
2028
1990
|
}
|
|
2029
1991
|
});
|
|
2030
|
-
Object.defineProperty(exports, "getHostingerToken", {
|
|
2031
|
-
enumerable: true,
|
|
2032
|
-
get: function() {
|
|
2033
|
-
return getHostingerToken;
|
|
2034
|
-
}
|
|
2035
|
-
});
|
|
2036
1992
|
Object.defineProperty(exports, "getKeyPath", {
|
|
2037
1993
|
enumerable: true,
|
|
2038
1994
|
get: function() {
|
|
@@ -2111,12 +2067,6 @@ Object.defineProperty(exports, "maskPassword", {
|
|
|
2111
2067
|
return maskPassword;
|
|
2112
2068
|
}
|
|
2113
2069
|
});
|
|
2114
|
-
Object.defineProperty(exports, "mxValue", {
|
|
2115
|
-
enumerable: true,
|
|
2116
|
-
get: function() {
|
|
2117
|
-
return mxValue;
|
|
2118
|
-
}
|
|
2119
|
-
});
|
|
2120
2070
|
Object.defineProperty(exports, "normalizeDnsConfig", {
|
|
2121
2071
|
enumerable: true,
|
|
2122
2072
|
get: function() {
|
|
@@ -2135,12 +2085,6 @@ Object.defineProperty(exports, "ownershipMarker", {
|
|
|
2135
2085
|
return ownershipMarker;
|
|
2136
2086
|
}
|
|
2137
2087
|
});
|
|
2138
|
-
Object.defineProperty(exports, "parseMxValue", {
|
|
2139
|
-
enumerable: true,
|
|
2140
|
-
get: function() {
|
|
2141
|
-
return parseMxValue;
|
|
2142
|
-
}
|
|
2143
|
-
});
|
|
2144
2088
|
Object.defineProperty(exports, "projectKey", {
|
|
2145
2089
|
enumerable: true,
|
|
2146
2090
|
get: function() {
|
|
@@ -2310,4 +2254,4 @@ Object.defineProperty(exports, "withCustomSecret", {
|
|
|
2310
2254
|
}
|
|
2311
2255
|
});
|
|
2312
2256
|
|
|
2313
|
-
//# sourceMappingURL=dns-
|
|
2257
|
+
//# sourceMappingURL=dns-D_0z9Tm1.cjs.map
|