@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
|
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
-
import { t as GkmError } from "./errors-
|
|
3
|
-
import { Nt as s3SecretsLocation, Rt as isReservedStageKey, jt as UnknownSecretsStoreProvider } from "./workspace-
|
|
2
|
+
import { t as GkmError } from "./errors-C9uIyIDt.mjs";
|
|
3
|
+
import { Nt as s3SecretsLocation, Rt as isReservedStageKey, jt as UnknownSecretsStoreProvider } from "./workspace-DJjhfAGf.mjs";
|
|
4
4
|
import { d as DEFAULT_EVENTS, f as DEFAULT_STORAGE, u as DEFAULT_CACHE } from "./drivers-BQRb3KsL.mjs";
|
|
5
|
-
import { y as output } from "./discover-
|
|
6
|
-
import { c as runtimeOf } from "./resolve-
|
|
5
|
+
import { y as output } from "./discover-Dfmn6HQ7.mjs";
|
|
6
|
+
import { c as runtimeOf } from "./resolve-CJvM2bUx.mjs";
|
|
7
7
|
import { basename, dirname, join, resolve, sep } from "node:path";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
9
9
|
import { chmod, link, mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
@@ -12,6 +12,7 @@ import { spawn } from "node:child_process";
|
|
|
12
12
|
import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
|
|
13
13
|
import { kebabCase, scopedName } from "@geekmidas/manifest";
|
|
14
14
|
import { lookup } from "node:dns/promises";
|
|
15
|
+
import { isDnsProvider } from "@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 import("./s3-
|
|
1013
|
+
const { S3SecretsStore } = await import("./s3-BbtwHSod.mjs");
|
|
1013
1014
|
const { deployIdentity } = await Promise.resolve().then(() => identity_exports);
|
|
1014
1015
|
const location = 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 import("./aws-
|
|
1026
|
+
const { AwsSecretsStore } = await import("./aws-BjvSTTcE.mjs").then((n) => n.t);
|
|
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 import("./secretsManager-
|
|
1035
|
+
const { SecretsManagerSecretsStore } = await import("./secretsManager-CjTo6CRq.mjs").then((n) => n.n);
|
|
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 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 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
|
* Create a new empty state for a stage
|
|
@@ -1394,45 +1279,130 @@ function setPostgresBackupId(state, backupId) {
|
|
|
1394
1279
|
if (state.backups) state.backups.postgresBackupId = backupId;
|
|
1395
1280
|
}
|
|
1396
1281
|
//#endregion
|
|
1397
|
-
//#region src/
|
|
1398
|
-
/**
|
|
1399
|
-
*
|
|
1400
|
-
*
|
|
1401
|
-
*
|
|
1402
|
-
*
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1282
|
+
//#region src/deploy/credentials.ts
|
|
1283
|
+
/**
|
|
1284
|
+
* How a deploy gets the credentials it acts with.
|
|
1285
|
+
*
|
|
1286
|
+
* `deploy()` never prompts and never reads a terminal: it asks a
|
|
1287
|
+
* `CredentialProvider` and, when the provider has nothing, stops with
|
|
1288
|
+
* `MissingCredential` naming what it needed and how to supply it. Whether to
|
|
1289
|
+
* ask a person, read a vault or fail is the caller's decision — `gkm deploy`
|
|
1290
|
+
* prompts at a terminal and stores what was typed; a CI job sets the
|
|
1291
|
+
* environment; a host passes its own provider.
|
|
1292
|
+
*/
|
|
1293
|
+
/**
|
|
1294
|
+
* How to supply each kind the CLI knows, for the error that says it is
|
|
1295
|
+
* missing. A target's own kinds are its to explain.
|
|
1296
|
+
*/
|
|
1297
|
+
const HOW_TO_PROVIDE = {
|
|
1298
|
+
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.",
|
|
1299
|
+
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.",
|
|
1300
|
+
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`.",
|
|
1301
|
+
hostinger: "Set HOSTINGER_API_TOKEN to a token from hpanel.hostinger.com/profile/api, or run `gkm login --provider hostinger`.",
|
|
1302
|
+
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."
|
|
1303
|
+
};
|
|
1304
|
+
/** A deploy needed a credential, and its provider had none. */
|
|
1305
|
+
var MissingCredential = class extends GkmError {
|
|
1306
|
+
kind;
|
|
1307
|
+
target;
|
|
1308
|
+
howToProvide;
|
|
1309
|
+
constructor(kind, target, howToProvide = HOW_TO_PROVIDE[kind] ?? "Pass it through the deploy's CredentialProvider.") {
|
|
1310
|
+
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}` : ""}.`;
|
|
1311
|
+
super(`${what} ${howToProvide}`);
|
|
1312
|
+
this.kind = kind;
|
|
1313
|
+
this.target = target;
|
|
1314
|
+
this.howToProvide = howToProvide;
|
|
1315
|
+
this.name = "MissingCredential";
|
|
1414
1316
|
}
|
|
1415
1317
|
};
|
|
1318
|
+
/** Whatever was asked for, from the first provider that has it. */
|
|
1319
|
+
function chainCredentials(...providers) {
|
|
1320
|
+
return { async get(request, options) {
|
|
1321
|
+
for (const provider of providers) {
|
|
1322
|
+
const found = await provider.get(request, options);
|
|
1323
|
+
if (found) return found;
|
|
1324
|
+
}
|
|
1325
|
+
} };
|
|
1326
|
+
}
|
|
1416
1327
|
/**
|
|
1417
|
-
*
|
|
1328
|
+
* Credentials from the environment, then from what `gkm login` stored. What
|
|
1329
|
+
* `deploy()` uses when it is handed no provider.
|
|
1418
1330
|
*
|
|
1419
|
-
*
|
|
1331
|
+
* - Dokploy: `DOKPLOY_API_TOKEN` / `DOKPLOY_ENDPOINT`, each falling back to
|
|
1332
|
+
* the stored login, and the endpoint finally to `deploy.dokploy.endpoint`.
|
|
1333
|
+
* Each half is read on its own: a token is a secret and belongs in the
|
|
1334
|
+
* environment, an endpoint is configuration and belongs in the config.
|
|
1335
|
+
* - Registry: `DOCKER_REGISTRY_USERNAME` / `DOCKER_REGISTRY_PASSWORD`.
|
|
1336
|
+
* - AWS: `AWS_PROFILE` when it is set, and then nothing else; otherwise
|
|
1337
|
+
* `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN`. The
|
|
1338
|
+
* profile winning is `secretsStoreFor`'s rule: a profile is a choice of
|
|
1339
|
+
* account someone made, exported keys may be left over from another.
|
|
1340
|
+
* Read here, by name, and handed only to the command that deploys — the
|
|
1341
|
+
* sandbox every other step runs in passes no `AWS_*` on.
|
|
1420
1342
|
*/
|
|
1421
|
-
function
|
|
1422
|
-
const
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1343
|
+
function storedCredentials(options = {}) {
|
|
1344
|
+
const env = options.env ?? process.env;
|
|
1345
|
+
return { async get(asked) {
|
|
1346
|
+
const request = asked;
|
|
1347
|
+
switch (request.kind) {
|
|
1348
|
+
case "dokploy": {
|
|
1349
|
+
const stored = (await readCredentials(options.home ? { home: options.home } : void 0)).dokploy;
|
|
1350
|
+
const token = env.DOKPLOY_API_TOKEN ?? stored?.token;
|
|
1351
|
+
const endpoint = env.DOKPLOY_ENDPOINT ?? stored?.endpoint ?? request.endpoint;
|
|
1352
|
+
if (!token || !endpoint) return void 0;
|
|
1353
|
+
return {
|
|
1354
|
+
endpoint: endpoint.replace(/\/$/, ""),
|
|
1355
|
+
token
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
case "registry": {
|
|
1359
|
+
const username = env.DOCKER_REGISTRY_USERNAME;
|
|
1360
|
+
const password = env.DOCKER_REGISTRY_PASSWORD;
|
|
1361
|
+
if (!username || !password) return void 0;
|
|
1362
|
+
return {
|
|
1363
|
+
username,
|
|
1364
|
+
password
|
|
1365
|
+
};
|
|
1366
|
+
}
|
|
1367
|
+
case "godaddy": {
|
|
1368
|
+
const token = env.GODADDY_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).godaddy?.token;
|
|
1369
|
+
if (!token) return void 0;
|
|
1370
|
+
return { token };
|
|
1371
|
+
}
|
|
1372
|
+
case "hostinger": {
|
|
1373
|
+
const token = env.HOSTINGER_API_TOKEN || (await readCredentials(options.home ? { home: options.home } : void 0)).hostinger?.token;
|
|
1374
|
+
if (!token) return void 0;
|
|
1375
|
+
return { token };
|
|
1376
|
+
}
|
|
1377
|
+
case "aws": {
|
|
1378
|
+
const region = env.AWS_REGION ?? env.AWS_DEFAULT_REGION;
|
|
1379
|
+
const where = region ? { region } : {};
|
|
1380
|
+
if (env.AWS_PROFILE) return {
|
|
1381
|
+
profile: env.AWS_PROFILE,
|
|
1382
|
+
...where
|
|
1383
|
+
};
|
|
1384
|
+
const accessKeyId = env.AWS_ACCESS_KEY_ID;
|
|
1385
|
+
const secretAccessKey = env.AWS_SECRET_ACCESS_KEY;
|
|
1386
|
+
if (!accessKeyId || !secretAccessKey) return void 0;
|
|
1387
|
+
return {
|
|
1388
|
+
accessKeyId,
|
|
1389
|
+
secretAccessKey,
|
|
1390
|
+
...env.AWS_SESSION_TOKEN ? { sessionToken: env.AWS_SESSION_TOKEN } : {},
|
|
1391
|
+
...where
|
|
1392
|
+
};
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
} };
|
|
1429
1396
|
}
|
|
1397
|
+
//#endregion
|
|
1398
|
+
//#region src/dns/providers.ts
|
|
1430
1399
|
/**
|
|
1431
|
-
*
|
|
1400
|
+
* The DNS provider a `dns` domain names, built from the workspace's config.
|
|
1401
|
+
*
|
|
1402
|
+
* The providers themselves are `@geekmidas/edge`'s and take their credentials
|
|
1403
|
+
* as given. Where a credential comes from (a stored login, the environment)
|
|
1404
|
+
* and what to say when there is none are the CLI's, and are decided here.
|
|
1432
1405
|
*/
|
|
1433
|
-
function isDnsProvider(value) {
|
|
1434
|
-
return typeof value === "object" && value !== null && typeof value.name === "string" && typeof value.getRecords === "function" && typeof value.upsertRecords === "function" && typeof value.deleteRecords === "function";
|
|
1435
|
-
}
|
|
1436
1406
|
/**
|
|
1437
1407
|
* Create a DNS provider based on configuration.
|
|
1438
1408
|
*
|
|
@@ -1448,11 +1418,15 @@ async function createDnsProvider(options) {
|
|
|
1448
1418
|
if (isDnsProvider(config.provider)) return config.provider;
|
|
1449
1419
|
const provider = config.provider;
|
|
1450
1420
|
if (provider === "hostinger") {
|
|
1451
|
-
const { HostingerProvider } = await import("
|
|
1452
|
-
return new HostingerProvider(
|
|
1421
|
+
const { HostingerProvider } = await import("@geekmidas/edge/dns/hostinger");
|
|
1422
|
+
return new HostingerProvider(async () => {
|
|
1423
|
+
const token = options.hostinger?.token ?? await getHostingerToken();
|
|
1424
|
+
if (!token) throw new MissingCredential("hostinger", void 0);
|
|
1425
|
+
return { token };
|
|
1426
|
+
});
|
|
1453
1427
|
}
|
|
1454
1428
|
if (provider === "route53") {
|
|
1455
|
-
const { Route53Provider } = await import("
|
|
1429
|
+
const { Route53Provider } = await import("@geekmidas/edge/dns/route53");
|
|
1456
1430
|
const route53Config = config;
|
|
1457
1431
|
return new Route53Provider({
|
|
1458
1432
|
region: route53Config.region,
|
|
@@ -1461,29 +1435,23 @@ async function createDnsProvider(options) {
|
|
|
1461
1435
|
});
|
|
1462
1436
|
}
|
|
1463
1437
|
if (provider === "godaddy") {
|
|
1464
|
-
const { GoDaddyProvider } = await import("
|
|
1465
|
-
|
|
1438
|
+
const { GoDaddyProvider } = await import("@geekmidas/edge/dns/godaddy");
|
|
1439
|
+
const { credential, env, home, ...rest } = options.godaddy ?? {};
|
|
1440
|
+
return new GoDaddyProvider({
|
|
1441
|
+
...rest,
|
|
1442
|
+
credential: async () => {
|
|
1443
|
+
const found = credential ?? await storedCredentials({
|
|
1444
|
+
env: env ?? process.env,
|
|
1445
|
+
...home ? { home } : {}
|
|
1446
|
+
}).get({ kind: "godaddy" });
|
|
1447
|
+
if (!found) throw new MissingCredential("godaddy", void 0);
|
|
1448
|
+
return found;
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1466
1451
|
}
|
|
1467
1452
|
if (provider === "cloudflare") throw new DnsProviderNotImplemented("cloudflare");
|
|
1468
1453
|
throw new DnsProviderUnknown(config);
|
|
1469
1454
|
}
|
|
1470
|
-
/**
|
|
1471
|
-
* The provider's credentials can write records and not read them — a key
|
|
1472
|
-
* scoped to updates only. What reads them falls back to writing every record,
|
|
1473
|
-
* which is idempotent, without a diff.
|
|
1474
|
-
*/
|
|
1475
|
-
var DnsRecordsUnreadable = class extends GkmError {
|
|
1476
|
-
provider;
|
|
1477
|
-
domain;
|
|
1478
|
-
reason;
|
|
1479
|
-
constructor(provider, domain, reason) {
|
|
1480
|
-
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.`);
|
|
1481
|
-
this.provider = provider;
|
|
1482
|
-
this.domain = domain;
|
|
1483
|
-
this.reason = reason;
|
|
1484
|
-
this.name = "DnsRecordsUnreadable";
|
|
1485
|
-
}
|
|
1486
|
-
};
|
|
1487
1455
|
/** A DNS provider gkm names and does not have yet. */
|
|
1488
1456
|
var DnsProviderNotImplemented = class extends Error {
|
|
1489
1457
|
provider;
|
|
@@ -1503,7 +1471,7 @@ var DnsProviderUnknown = class extends GkmError {
|
|
|
1503
1471
|
}
|
|
1504
1472
|
};
|
|
1505
1473
|
//#endregion
|
|
1506
|
-
//#region src/
|
|
1474
|
+
//#region src/dns/index.ts
|
|
1507
1475
|
/**
|
|
1508
1476
|
* DNS orchestration for deployments
|
|
1509
1477
|
*
|
|
@@ -1847,6 +1815,6 @@ async function verifyDnsRecords(appHostnames, serverIp, state) {
|
|
|
1847
1815
|
return results;
|
|
1848
1816
|
}
|
|
1849
1817
|
//#endregion
|
|
1850
|
-
export {
|
|
1818
|
+
export { projectName as $, maskPassword as A, getKeyPath as B, providerOf as C, storeFromConfig as D, secretsStoreFor as E, externalsManifestName as F, readKey as G, getOrCreateKey as H, importedPackages as I, imageName as J, applicationName as K, FileSecretsStore as L, toEmbeddableSecrets as M, withCustomSecret as N, store_exports as O, bundleExternals as P, ownershipMarker as Q, decrypt as R, eventsBackendFor as S, isRemoteStore as T, keystoreProject as U, getKeystoreDir as V, projectKey as W, isOwnedBy as X, imageRef as Y, markerOf as Z, setApplicationId as _, gkmHome as _t, verifyDnsRecords as a, runOutput as at, setPostgresBackupId as b, chainCredentials as c, getDokployRegistryId as ct, createComposeState as d, removeDokployCredentials as dt, stageTag as et, createEmptyState as f, removeGoDaddyCredentials as ft, recordRollback as g, GKM_HOME_ENV as gt, recordRelease as h, storeHostingerToken as ht, orchestrateDns as i, run as it, storage_exports as j, initStageSecrets as k, storedCredentials as l, getDokployToken as lt, getGeneratedSecret as m, storeGoDaddyToken as mt, findRootDomain as n, CommandTimedOut as nt, createDnsProvider as o, getCredentialsPath as ot, getBackupState as p, storeDokployCredentials as pt, deployIdentity as q, normalizeDnsConfig as r, DEFAULT_TIMEOUT_MS as rt, MissingCredential as s, getDokployCredentials as st, extractSubdomain as t, CommandFailed as tt, asDokployState as u, readCredentials as ut, setBackupState as v, storageBackendFor as w, cacheBackendFor as x, setGeneratedSecret as y, encrypt as z };
|
|
1851
1819
|
|
|
1852
|
-
//# sourceMappingURL=dns-
|
|
1820
|
+
//# sourceMappingURL=dns-BAM8VH1v.mjs.map
|