@geekmidas/cli 10.0.0-alpha.15 → 10.0.0-alpha.151
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/README.md +313 -380
- package/bin/adjacent-tsconfig.mjs +46 -8
- package/bin/gkm.mjs +11 -3
- package/bin/owning-tsconfig-jsx-register.mjs +18 -0
- package/bin/owning-tsconfig-jsx.mjs +108 -0
- package/dist/EndpointGenerator-CusLH-9S.mjs +1037 -0
- package/dist/EndpointGenerator-CusLH-9S.mjs.map +1 -0
- package/dist/EndpointGenerator-DyLMYClE.cjs +1096 -0
- package/dist/EndpointGenerator-DyLMYClE.cjs.map +1 -0
- package/dist/GoDaddyProvider-BZYq0-nV.cjs +412 -0
- package/dist/GoDaddyProvider-BZYq0-nV.cjs.map +1 -0
- package/dist/GoDaddyProvider-D-8GW8cP.mjs +412 -0
- package/dist/GoDaddyProvider-D-8GW8cP.mjs.map +1 -0
- package/dist/{HostingerProvider-BZFGYYVA.cjs → HostingerProvider-BxRR2ibx.cjs} +23 -9
- package/dist/HostingerProvider-BxRR2ibx.cjs.map +1 -0
- package/dist/{HostingerProvider-BY26bWwB.mjs → HostingerProvider-C-C4aiKF.mjs} +23 -9
- package/dist/HostingerProvider-C-C4aiKF.mjs.map +1 -0
- package/dist/LegacyStateStore-BFkNiBxC.mjs +124 -0
- package/dist/LegacyStateStore-BFkNiBxC.mjs.map +1 -0
- package/dist/LegacyStateStore-DYaamZqR.cjs +124 -0
- package/dist/LegacyStateStore-DYaamZqR.cjs.map +1 -0
- package/dist/LocalStateStore-7pP4naiB.mjs +167 -0
- package/dist/LocalStateStore-7pP4naiB.mjs.map +1 -0
- package/dist/LocalStateStore-C0JSjyCg.cjs +178 -0
- package/dist/LocalStateStore-C0JSjyCg.cjs.map +1 -0
- package/dist/OpenApiTsGenerator-BTMuu1WS.mjs +534 -0
- package/dist/OpenApiTsGenerator-BTMuu1WS.mjs.map +1 -0
- package/dist/OpenApiTsGenerator-CI-tceXV.cjs +539 -0
- package/dist/OpenApiTsGenerator-CI-tceXV.cjs.map +1 -0
- package/dist/{Route53Provider-Cvj40A8I.mjs → Route53Provider-Di_SD9CF.mjs} +3 -3
- package/dist/Route53Provider-Di_SD9CF.mjs.map +1 -0
- package/dist/{Route53Provider-DVILBsvV.cjs → Route53Provider-emLuQHVw.cjs} +3 -3
- package/dist/Route53Provider-emLuQHVw.cjs.map +1 -0
- package/dist/S3StateStore-BnmbFco-.cjs +222 -0
- package/dist/S3StateStore-BnmbFco-.cjs.map +1 -0
- package/dist/S3StateStore-Dzyuiy3V.mjs +223 -0
- package/dist/S3StateStore-Dzyuiy3V.mjs.map +1 -0
- package/dist/SSMStateStore-BLbjoEFc.cjs +204 -0
- package/dist/SSMStateStore-BLbjoEFc.cjs.map +1 -0
- package/dist/SSMStateStore-BcNH7efc.mjs +205 -0
- package/dist/SSMStateStore-BcNH7efc.mjs.map +1 -0
- package/dist/SubscriberGenerator-BNJyPmXJ.cjs +848 -0
- package/dist/SubscriberGenerator-BNJyPmXJ.cjs.map +1 -0
- package/dist/SubscriberGenerator-CzPrixYu.mjs +783 -0
- package/dist/SubscriberGenerator-CzPrixYu.mjs.map +1 -0
- package/dist/add-SHsas9Yu.mjs +711 -0
- package/dist/add-SHsas9Yu.mjs.map +1 -0
- package/dist/add-moAE6nV4.cjs +713 -0
- package/dist/add-moAE6nV4.cjs.map +1 -0
- package/dist/appPorts-BoXMwolc.mjs +249 -0
- package/dist/appPorts-BoXMwolc.mjs.map +1 -0
- package/dist/appPorts-IW-OZmRi.cjs +296 -0
- package/dist/appPorts-IW-OZmRi.cjs.map +1 -0
- package/dist/apps-BOgA6AcI.mjs +5534 -0
- package/dist/apps-BOgA6AcI.mjs.map +1 -0
- package/dist/apps-DkxHjd59.cjs +6148 -0
- package/dist/apps-DkxHjd59.cjs.map +1 -0
- package/dist/aws-8QQ8n-t6.mjs +89 -0
- package/dist/aws-8QQ8n-t6.mjs.map +1 -0
- package/dist/aws-DY9NqQIT.cjs +100 -0
- package/dist/aws-DY9NqQIT.cjs.map +1 -0
- package/dist/awsStore-Bx5nCFnS.mjs +121 -0
- package/dist/awsStore-Bx5nCFnS.mjs.map +1 -0
- package/dist/awsStore-u3ehhMoY.cjs +138 -0
- package/dist/awsStore-u3ehhMoY.cjs.map +1 -0
- package/dist/{backup-provisioner-DIVCbfee.mjs → backup-provisioner-C8DnCmxK.mjs} +2 -2
- package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
- package/dist/{backup-provisioner-BmhIO_Yr.cjs → backup-provisioner-oDEsPj02.cjs} +2 -2
- package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
- package/dist/backups/runner.cjs +519 -0
- package/dist/backups/runner.cjs.map +1 -0
- package/dist/backups/runner.d.cts +102 -0
- package/dist/backups/runner.d.cts.map +1 -0
- package/dist/backups/runner.d.mts +102 -0
- package/dist/backups/runner.d.mts.map +1 -0
- package/dist/backups/runner.mjs +506 -0
- package/dist/backups/runner.mjs.map +1 -0
- package/dist/{bundler-BeNDZdHQ.cjs → bundler-D0spRLb-.cjs} +59 -14
- package/dist/bundler-D0spRLb-.cjs.map +1 -0
- package/dist/{bundler-BodTL4kf.mjs → bundler-Dy-Dfchf.mjs} +59 -14
- package/dist/bundler-Dy-Dfchf.mjs.map +1 -0
- package/dist/cli-BmCyUTZf.cjs +71 -0
- package/dist/cli-BmCyUTZf.cjs.map +1 -0
- package/dist/cli-BpT_gg4n.mjs +71 -0
- package/dist/cli-BpT_gg4n.mjs.map +1 -0
- package/dist/compose-0HkjQywT.cjs +3046 -0
- package/dist/compose-0HkjQywT.cjs.map +1 -0
- package/dist/compose-B3OOowfE.mjs +1560 -0
- package/dist/compose-B3OOowfE.mjs.map +1 -0
- package/dist/compose-BIXEPrGA.mjs +2957 -0
- package/dist/compose-BIXEPrGA.mjs.map +1 -0
- package/dist/compose-BP8OeV7P.cjs +1919 -0
- package/dist/compose-BP8OeV7P.cjs.map +1 -0
- package/dist/config-BLrAd7Of.mjs +659 -0
- package/dist/config-BLrAd7Of.mjs.map +1 -0
- package/dist/config-CRk2vdSp.d.mts +268 -0
- package/dist/config-CRk2vdSp.d.mts.map +1 -0
- package/dist/config-juUyBlb1.cjs +772 -0
- package/dist/config-juUyBlb1.cjs.map +1 -0
- package/dist/config-oBgsbLip.d.cts +268 -0
- package/dist/config-oBgsbLip.d.cts.map +1 -0
- package/dist/config.cjs +11 -3
- package/dist/config.d.cts +4 -117
- package/dist/config.d.mts +4 -117
- package/dist/config.mjs +3 -3
- package/dist/credentialSchemas-BAklWDna.cjs +271 -0
- package/dist/credentialSchemas-BAklWDna.cjs.map +1 -0
- package/dist/credentialSchemas-mz9QZTYh.mjs +236 -0
- package/dist/credentialSchemas-mz9QZTYh.mjs.map +1 -0
- package/dist/credentials-B6ZwGsy-.cjs +2272 -0
- package/dist/credentials-B6ZwGsy-.cjs.map +1 -0
- package/dist/credentials-DRfP9aG7.mjs +1817 -0
- package/dist/credentials-DRfP9aG7.mjs.map +1 -0
- package/dist/databases-DawSdqBI.cjs +703 -0
- package/dist/databases-DawSdqBI.cjs.map +1 -0
- package/dist/databases-mzSUFBTw.mjs +588 -0
- package/dist/databases-mzSUFBTw.mjs.map +1 -0
- package/dist/define-6poNqm5O.mjs +106 -0
- package/dist/define-6poNqm5O.mjs.map +1 -0
- package/dist/define-crmMcXFS.cjs +153 -0
- package/dist/define-crmMcXFS.cjs.map +1 -0
- package/dist/deploy/public.cjs +211 -0
- package/dist/deploy/public.cjs.map +1 -0
- package/dist/deploy/public.d.cts +647 -0
- package/dist/deploy/public.d.cts.map +1 -0
- package/dist/deploy/public.d.mts +647 -0
- package/dist/deploy/public.d.mts.map +1 -0
- package/dist/deploy/public.mjs +144 -0
- package/dist/deploy/public.mjs.map +1 -0
- package/dist/deploy/sniffer-envparser-worker.cjs +54 -0
- package/dist/deploy/sniffer-envparser-worker.cjs.map +1 -0
- package/dist/deploy/sniffer-envparser-worker.d.cts +1 -0
- package/dist/deploy/sniffer-envparser-worker.d.mts +1 -0
- package/dist/deploy/sniffer-envparser-worker.mjs +55 -0
- package/dist/deploy/sniffer-envparser-worker.mjs.map +1 -0
- package/dist/deploy/sniffer-hooks.cjs +1 -1
- package/dist/deploy/sniffer-hooks.mjs +1 -1
- package/dist/deploy/sniffer-loader.cjs +2 -2
- package/dist/deploy/sniffer-loader.mjs +1 -1
- package/dist/deploy/sniffer-routes-worker.cjs +2 -2
- package/dist/deploy/sniffer-routes-worker.mjs +1 -1
- package/dist/deploy-BgOujGGL.mjs +3836 -0
- package/dist/deploy-BgOujGGL.mjs.map +1 -0
- package/dist/deploy-ciuNiVqo.cjs +3892 -0
- package/dist/deploy-ciuNiVqo.cjs.map +1 -0
- package/dist/discover-CRywE7yc.cjs +1085 -0
- package/dist/discover-CRywE7yc.cjs.map +1 -0
- package/dist/discover-DbDrCQ8h.mjs +940 -0
- package/dist/discover-DbDrCQ8h.mjs.map +1 -0
- package/dist/docker-74kvq2jQ.cjs +1514 -0
- package/dist/docker-74kvq2jQ.cjs.map +1 -0
- package/dist/docker-CXYz3W2U.mjs +1407 -0
- package/dist/docker-CXYz3W2U.mjs.map +1 -0
- package/dist/dokploy-CrxDMut1.cjs +38 -0
- package/dist/dokploy-CrxDMut1.cjs.map +1 -0
- package/dist/dokploy-tNy6ZU64.mjs +38 -0
- package/dist/dokploy-tNy6ZU64.mjs.map +1 -0
- package/dist/drivers-aM87NQJi.cjs +224 -0
- package/dist/drivers-aM87NQJi.cjs.map +1 -0
- package/dist/drivers-uxLBq3e3.mjs +195 -0
- package/dist/drivers-uxLBq3e3.mjs.map +1 -0
- package/dist/eas-B3yv_XVz.mjs +334 -0
- package/dist/eas-B3yv_XVz.mjs.map +1 -0
- package/dist/eas-CiORdzk0.cjs +337 -0
- package/dist/eas-CiORdzk0.cjs.map +1 -0
- package/dist/emit-Bj6XSivk.mjs +136 -0
- package/dist/emit-Bj6XSivk.mjs.map +1 -0
- package/dist/emit-CDC__ubE.cjs +147 -0
- package/dist/emit-CDC__ubE.cjs.map +1 -0
- package/dist/encryption-Birkm2_E.mjs +89 -0
- package/dist/encryption-Birkm2_E.mjs.map +1 -0
- package/dist/encryption-drgYmkGP.cjs +90 -0
- package/dist/encryption-drgYmkGP.cjs.map +1 -0
- package/dist/engine-CW78Wt8x.mjs +3217 -0
- package/dist/engine-CW78Wt8x.mjs.map +1 -0
- package/dist/engine-CfLaQ0bJ.cjs +3330 -0
- package/dist/engine-CfLaQ0bJ.cjs.map +1 -0
- package/dist/errors-D8Gwp5kU.mjs +23 -0
- package/dist/errors-D8Gwp5kU.mjs.map +1 -0
- package/dist/errors-DMC4Umsb.cjs +34 -0
- package/dist/errors-DMC4Umsb.cjs.map +1 -0
- package/dist/github-BfLlBWB5.cjs +901 -0
- package/dist/github-BfLlBWB5.cjs.map +1 -0
- package/dist/github-DphkHybE.mjs +900 -0
- package/dist/github-DphkHybE.mjs.map +1 -0
- package/dist/googlePlay-BWDhYvH_.cjs +931 -0
- package/dist/googlePlay-BWDhYvH_.cjs.map +1 -0
- package/dist/googlePlay-CjzqTF8t.mjs +931 -0
- package/dist/googlePlay-CjzqTF8t.mjs.map +1 -0
- package/dist/{index-D-iAVHx-.d.cts → index-B35vTdAW.d.cts} +39 -15
- package/dist/index-B35vTdAW.d.cts.map +1 -0
- package/dist/{index-Cd-qeOam.d.mts → index-Dv1Zj86i.d.mts} +39 -15
- package/dist/index-Dv1Zj86i.d.mts.map +1 -0
- package/dist/index.cjs +13594 -12347
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +13541 -12292
- package/dist/index.mjs.map +1 -1
- package/dist/local-Bt9jPziD.cjs +241 -0
- package/dist/local-Bt9jPziD.cjs.map +1 -0
- package/dist/local-DBtepRK5.mjs +224 -0
- package/dist/local-DBtepRK5.mjs.map +1 -0
- package/dist/migrate-2YESt4v9.mjs +267 -0
- package/dist/migrate-2YESt4v9.mjs.map +1 -0
- package/dist/migrate-B-_cASJt.cjs +272 -0
- package/dist/migrate-B-_cASJt.cjs.map +1 -0
- package/dist/migrate-BUhe0BuA.cjs +181 -0
- package/dist/migrate-BUhe0BuA.cjs.map +1 -0
- package/dist/migrate-Dp_Y2XGi.mjs +181 -0
- package/dist/migrate-Dp_Y2XGi.mjs.map +1 -0
- package/dist/notes-DHN4qThL.mjs +399 -0
- package/dist/notes-DHN4qThL.mjs.map +1 -0
- package/dist/notes-DUq6Bx1I.cjs +500 -0
- package/dist/notes-DUq6Bx1I.cjs.map +1 -0
- package/dist/openapi.cjs +213 -7
- package/dist/openapi.cjs.map +1 -0
- package/dist/openapi.d.cts +32 -8
- package/dist/openapi.d.cts.map +1 -1
- package/dist/openapi.d.mts +32 -8
- package/dist/openapi.d.mts.map +1 -1
- package/dist/openapi.mjs +208 -2
- package/dist/openapi.mjs.map +1 -0
- package/dist/projectBucket-CxsutB3D.cjs +263 -0
- package/dist/projectBucket-CxsutB3D.cjs.map +1 -0
- package/dist/projectBucket-DzLZlleB.mjs +222 -0
- package/dist/projectBucket-DzLZlleB.mjs.map +1 -0
- package/dist/provider-BqpjG9QM.cjs +57 -0
- package/dist/provider-BqpjG9QM.cjs.map +1 -0
- package/dist/provider-CEOKk8NS.mjs +46 -0
- package/dist/provider-CEOKk8NS.mjs.map +1 -0
- package/dist/publish-BVal0GFd.mjs +123 -0
- package/dist/publish-BVal0GFd.mjs.map +1 -0
- package/dist/publish-DmTJhVe8.cjs +124 -0
- package/dist/publish-DmTJhVe8.cjs.map +1 -0
- package/dist/ready-BNh3zsSn.cjs +404 -0
- package/dist/ready-BNh3zsSn.cjs.map +1 -0
- package/dist/ready-g25dcGzK.mjs +375 -0
- package/dist/ready-g25dcGzK.mjs.map +1 -0
- package/dist/reconcile/public.cjs +3 -5
- package/dist/reconcile/public.d.cts +31 -89
- package/dist/reconcile/public.d.cts.map +1 -1
- package/dist/reconcile/public.d.mts +31 -89
- package/dist/reconcile/public.d.mts.map +1 -1
- package/dist/reconcile/public.mjs +3 -3
- package/dist/{reconcile-DhQ00DpU.mjs → reconcile--I7V4Klj.mjs} +2 -2
- package/dist/{reconcile-DhQ00DpU.mjs.map → reconcile--I7V4Klj.mjs.map} +1 -1
- package/dist/{reconcile-Dd2iyILf.cjs → reconcile-CuCQBa5-.cjs} +3 -3
- package/dist/{reconcile-Dd2iyILf.cjs.map → reconcile-CuCQBa5-.cjs.map} +1 -1
- package/dist/resolve-BwTJI8K7.cjs +316 -0
- package/dist/resolve-BwTJI8K7.cjs.map +1 -0
- package/dist/resolve-UBq26cZc.mjs +263 -0
- package/dist/resolve-UBq26cZc.mjs.map +1 -0
- package/dist/rollback-BFKex9TO.cjs +165 -0
- package/dist/rollback-BFKex9TO.cjs.map +1 -0
- package/dist/rollback-DiOcLTRc.mjs +136 -0
- package/dist/rollback-DiOcLTRc.mjs.map +1 -0
- package/dist/runtime-CFvcLEJW.d.cts +82 -0
- package/dist/runtime-CFvcLEJW.d.cts.map +1 -0
- package/dist/runtime-dwsH6ddo.d.mts +82 -0
- package/dist/runtime-dwsH6ddo.d.mts.map +1 -0
- package/dist/s3-BgG_xW-D.cjs +215 -0
- package/dist/s3-BgG_xW-D.cjs.map +1 -0
- package/dist/s3-CkrerKdA.mjs +215 -0
- package/dist/s3-CkrerKdA.mjs.map +1 -0
- package/dist/sandbox/config-worker.cjs +43 -0
- package/dist/sandbox/config-worker.cjs.map +1 -0
- package/dist/sandbox/config-worker.d.cts +1 -0
- package/dist/sandbox/config-worker.d.mts +1 -0
- package/dist/sandbox/config-worker.mjs +44 -0
- package/dist/sandbox/config-worker.mjs.map +1 -0
- package/dist/sandbox/credentials-worker.cjs +53 -0
- package/dist/sandbox/credentials-worker.cjs.map +1 -0
- package/dist/sandbox/credentials-worker.d.cts +1 -0
- package/dist/sandbox/credentials-worker.d.mts +1 -0
- package/dist/sandbox/credentials-worker.mjs +54 -0
- package/dist/sandbox/credentials-worker.mjs.map +1 -0
- package/dist/sandbox/discover-worker.cjs +47 -0
- package/dist/sandbox/discover-worker.cjs.map +1 -0
- package/dist/sandbox/discover-worker.d.cts +1 -0
- package/dist/sandbox/discover-worker.d.mts +1 -0
- package/dist/sandbox/discover-worker.mjs +48 -0
- package/dist/sandbox/discover-worker.mjs.map +1 -0
- package/dist/sandbox/migrate-worker.cjs +75 -0
- package/dist/sandbox/migrate-worker.cjs.map +1 -0
- package/dist/sandbox/migrate-worker.d.cts +1 -0
- package/dist/sandbox/migrate-worker.d.mts +1 -0
- package/dist/sandbox/migrate-worker.mjs +76 -0
- package/dist/sandbox/migrate-worker.mjs.map +1 -0
- package/dist/{workspace-mFpI_ky_.cjs → schemas-BCwKKA42.mjs} +399 -1162
- package/dist/schemas-BCwKKA42.mjs.map +1 -0
- package/dist/{workspace-CgwmXEtc.mjs → schemas-BQ_v0lEX.cjs} +487 -971
- package/dist/schemas-BQ_v0lEX.cjs.map +1 -0
- package/dist/secretsManager-CQORubp9.mjs +97 -0
- package/dist/secretsManager-CQORubp9.mjs.map +1 -0
- package/dist/secretsManager-RAGcEDX1.cjs +108 -0
- package/dist/secretsManager-RAGcEDX1.cjs.map +1 -0
- package/dist/seeds-B3xvUAQf.cjs +363 -0
- package/dist/seeds-B3xvUAQf.cjs.map +1 -0
- package/dist/seeds-BCC8vAXR.mjs +298 -0
- package/dist/seeds-BCC8vAXR.mjs.map +1 -0
- package/dist/serverSetup-CUBu8_Mk.cjs +652 -0
- package/dist/serverSetup-CUBu8_Mk.cjs.map +1 -0
- package/dist/serverSetup-eh9MUdSN.mjs +652 -0
- package/dist/serverSetup-eh9MUdSN.mjs.map +1 -0
- package/dist/sniffer-CNTnUmhc.mjs +1824 -0
- package/dist/sniffer-CNTnUmhc.mjs.map +1 -0
- package/dist/sniffer-CaoQH_kk.cjs +1997 -0
- package/dist/sniffer-CaoQH_kk.cjs.map +1 -0
- package/dist/snsSubscriptions-DiqwM9Ms.cjs +1173 -0
- package/dist/snsSubscriptions-DiqwM9Ms.cjs.map +1 -0
- package/dist/snsSubscriptions-zOIIswN0.mjs +1048 -0
- package/dist/snsSubscriptions-zOIIswN0.mjs.map +1 -0
- package/dist/sst-D6Dvhr6H.mjs +462 -0
- package/dist/sst-D6Dvhr6H.mjs.map +1 -0
- package/dist/sst-DECRMgjv.cjs +485 -0
- package/dist/sst-DECRMgjv.cjs.map +1 -0
- package/dist/stack-BZG5HoVN.mjs +2206 -0
- package/dist/stack-BZG5HoVN.mjs.map +1 -0
- package/dist/stack-CLk9WojF.cjs +2381 -0
- package/dist/stack-CLk9WojF.cjs.map +1 -0
- package/dist/stage-Cl0DPJ7w.cjs +313 -0
- package/dist/stage-Cl0DPJ7w.cjs.map +1 -0
- package/dist/stage-DiLPb89O.mjs +302 -0
- package/dist/stage-DiLPb89O.mjs.map +1 -0
- package/dist/stages-Bs1THSy7.cjs +190 -0
- package/dist/stages-Bs1THSy7.cjs.map +1 -0
- package/dist/stages-_xCG4Ymu.mjs +190 -0
- package/dist/stages-_xCG4Ymu.mjs.map +1 -0
- package/dist/target/public.cjs +15 -0
- package/dist/target/public.d.cts +28 -0
- package/dist/target/public.d.cts.map +1 -0
- package/dist/target/public.d.mts +28 -0
- package/dist/target/public.d.mts.map +1 -0
- package/dist/target/public.mjs +4 -0
- package/dist/terminal-XQE106CG.cjs +85 -0
- package/dist/terminal-XQE106CG.cjs.map +1 -0
- package/dist/terminal-jGj9TtMQ.mjs +85 -0
- package/dist/terminal-jGj9TtMQ.mjs.map +1 -0
- package/dist/types-Bl_CwZC9.cjs +90 -0
- package/dist/types-Bl_CwZC9.cjs.map +1 -0
- package/dist/{types-BGo5TaNE.d.mts → types-Dk--xVOT.d.cts} +2234 -439
- package/dist/types-Dk--xVOT.d.cts.map +1 -0
- package/dist/{types-C5ZNpUad.d.cts → types-DwQYpd_0.d.mts} +2232 -439
- package/dist/types-DwQYpd_0.d.mts.map +1 -0
- package/dist/types-Y1NfWlyG.mjs +61 -0
- package/dist/types-Y1NfWlyG.mjs.map +1 -0
- package/dist/utils-D2Nk1Nv2.cjs +205 -0
- package/dist/utils-D2Nk1Nv2.cjs.map +1 -0
- package/dist/utils-D_fxUqvU.mjs +156 -0
- package/dist/utils-D_fxUqvU.mjs.map +1 -0
- package/dist/vitest.cjs +65 -0
- package/dist/vitest.cjs.map +1 -0
- package/dist/vitest.d.cts +29 -0
- package/dist/vitest.d.cts.map +1 -0
- package/dist/vitest.d.mts +29 -0
- package/dist/vitest.d.mts.map +1 -0
- package/dist/vitest.mjs +65 -0
- package/dist/vitest.mjs.map +1 -0
- package/dist/workerRuntime-BXfhbe13.cjs +108 -0
- package/dist/workerRuntime-BXfhbe13.cjs.map +1 -0
- package/dist/workerRuntime-CsOyBRx2.mjs +79 -0
- package/dist/workerRuntime-CsOyBRx2.mjs.map +1 -0
- package/dist/workspace/index.cjs +6 -2
- package/dist/workspace/index.d.cts +3 -3
- package/dist/workspace/index.d.mts +3 -3
- package/dist/workspace/index.mjs +2 -2
- package/dist/workspace-1szcahj9.cjs +2916 -0
- package/dist/workspace-1szcahj9.cjs.map +1 -0
- package/dist/workspace-DFGsrjGD.mjs +2480 -0
- package/dist/workspace-DFGsrjGD.mjs.map +1 -0
- package/package.json +66 -14
- package/dist/HostingerProvider-BY26bWwB.mjs.map +0 -1
- package/dist/HostingerProvider-BZFGYYVA.cjs.map +0 -1
- package/dist/LocalStateProvider-7HR6SS2t.cjs +0 -48
- package/dist/LocalStateProvider-7HR6SS2t.cjs.map +0 -1
- package/dist/LocalStateProvider-D7QyJoLM.mjs +0 -48
- package/dist/LocalStateProvider-D7QyJoLM.mjs.map +0 -1
- package/dist/Route53Provider-Cvj40A8I.mjs.map +0 -1
- package/dist/Route53Provider-DVILBsvV.cjs.map +0 -1
- package/dist/SSMStateProvider-B0Hu1MKZ.mjs +0 -75
- package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +0 -1
- package/dist/SSMStateProvider-VrQ-yeqd.cjs +0 -74
- package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +0 -1
- package/dist/backup-provisioner-BmhIO_Yr.cjs.map +0 -1
- package/dist/backup-provisioner-DIVCbfee.mjs.map +0 -1
- package/dist/bundler-BeNDZdHQ.cjs.map +0 -1
- package/dist/bundler-BodTL4kf.mjs.map +0 -1
- package/dist/config-Q1rvKHvw.cjs +0 -467
- package/dist/config-Q1rvKHvw.cjs.map +0 -1
- package/dist/config-pqGD3hF9.mjs +0 -414
- package/dist/config-pqGD3hF9.mjs.map +0 -1
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.mts.map +0 -1
- package/dist/credentials-BekkKtY_.mjs +0 -2780
- package/dist/credentials-BekkKtY_.mjs.map +0 -1
- package/dist/credentials-Q6F0uqJq.cjs +0 -2917
- package/dist/credentials-Q6F0uqJq.cjs.map +0 -1
- package/dist/discover-BERGFg8v.cjs +0 -288
- package/dist/discover-BERGFg8v.cjs.map +0 -1
- package/dist/discover-CK-n3w6b.mjs +0 -244
- package/dist/discover-CK-n3w6b.mjs.map +0 -1
- package/dist/emit-BdoPFjZf.cjs +0 -253
- package/dist/emit-BdoPFjZf.cjs.map +0 -1
- package/dist/emit-Bzq7JsMP.mjs +0 -224
- package/dist/emit-Bzq7JsMP.mjs.map +0 -1
- package/dist/fullstack-secrets-BET8gqwK.mjs +0 -81
- package/dist/fullstack-secrets-BET8gqwK.mjs.map +0 -1
- package/dist/fullstack-secrets-DXsWO-5m.cjs +0 -92
- package/dist/fullstack-secrets-DXsWO-5m.cjs.map +0 -1
- package/dist/generator-LfZU7NlU.mjs +0 -247
- package/dist/generator-LfZU7NlU.mjs.map +0 -1
- package/dist/generator-Wdfp0jCS.cjs +0 -282
- package/dist/generator-Wdfp0jCS.cjs.map +0 -1
- package/dist/github-BfflNPVe.cjs +0 -203
- package/dist/github-BfflNPVe.cjs.map +0 -1
- package/dist/github-CRwnxKmD.mjs +0 -203
- package/dist/github-CRwnxKmD.mjs.map +0 -1
- package/dist/index-Cd-qeOam.d.mts.map +0 -1
- package/dist/index-D-iAVHx-.d.cts.map +0 -1
- package/dist/keystore-B4PRlbgE.mjs +0 -81
- package/dist/keystore-B4PRlbgE.mjs.map +0 -1
- package/dist/keystore-DgGRj2Yy.cjs +0 -98
- package/dist/keystore-DgGRj2Yy.cjs.map +0 -1
- package/dist/openapi-Dcbme-Us.cjs +0 -2038
- package/dist/openapi-Dcbme-Us.cjs.map +0 -1
- package/dist/openapi-vy4JzhUv.mjs +0 -1991
- package/dist/openapi-vy4JzhUv.mjs.map +0 -1
- package/dist/storage-C-30BD1e.cjs +0 -272
- package/dist/storage-C-30BD1e.cjs.map +0 -1
- package/dist/storage-P_b3w7uj.mjs +0 -231
- package/dist/storage-P_b3w7uj.mjs.map +0 -1
- package/dist/sync-B3xxXtJT.mjs +0 -88
- package/dist/sync-B3xxXtJT.mjs.map +0 -1
- package/dist/sync-D7uTIIEi.cjs +0 -111
- package/dist/sync-D7uTIIEi.cjs.map +0 -1
- package/dist/types-BGo5TaNE.d.mts.map +0 -1
- package/dist/types-C5ZNpUad.d.cts.map +0 -1
- package/dist/workspace-CgwmXEtc.mjs.map +0 -1
- package/dist/workspace-mFpI_ky_.cjs.map +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const require_errors = require("./errors-DMC4Umsb.cjs");
|
|
2
|
+
const require_credentials = require("./credentials-B6ZwGsy-.cjs");
|
|
3
|
+
const require_discover = require("./discover-CRywE7yc.cjs");
|
|
4
|
+
const require_index = require("./index.cjs");
|
|
5
|
+
//#region src/deploy/terminal.ts
|
|
6
|
+
/**
|
|
7
|
+
* The credentials `gkm deploy` can ask a person for. CLI layer only.
|
|
8
|
+
*
|
|
9
|
+
* `deploy()` asks its `CredentialProvider` and stops with `MissingCredential`
|
|
10
|
+
* when the answer is nothing. At a terminal, `gkm deploy` would rather ask:
|
|
11
|
+
* this provider reads the environment and the stored login first, and only
|
|
12
|
+
* when both are empty prompts — and stores a Dokploy login it validated, so
|
|
13
|
+
* the next deploy does not ask again. With no terminal it answers nothing, and
|
|
14
|
+
* the deploy says what was missing instead of waiting on a prompt nobody sees.
|
|
15
|
+
*/
|
|
16
|
+
const logger = require_discover.output;
|
|
17
|
+
/** What answers a deploy prompt without a terminal. */
|
|
18
|
+
const INSTEAD = "Please configure manually.";
|
|
19
|
+
/** The Dokploy URL typed at the prompt is not a URL. */
|
|
20
|
+
var DokployEndpointInvalid = class extends require_errors.GkmError {
|
|
21
|
+
endpoint;
|
|
22
|
+
constructor(endpoint) {
|
|
23
|
+
super("Invalid URL format");
|
|
24
|
+
this.endpoint = endpoint;
|
|
25
|
+
this.name = "DokployEndpointInvalid";
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
/** Dokploy refused the token typed at the prompt; nothing was stored. */
|
|
29
|
+
var DokployTokenRejected = class extends require_errors.GkmError {
|
|
30
|
+
endpoint;
|
|
31
|
+
constructor(endpoint) {
|
|
32
|
+
super("Invalid credentials. Please check your token.");
|
|
33
|
+
this.endpoint = endpoint;
|
|
34
|
+
this.name = "DokployTokenRejected";
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
/** Asks the person at the terminal for what nothing else supplied. */
|
|
38
|
+
function asking() {
|
|
39
|
+
return { async get(asked) {
|
|
40
|
+
if (!require_index.canPrompt()) return void 0;
|
|
41
|
+
const request = asked;
|
|
42
|
+
if (request.kind === "dokploy") {
|
|
43
|
+
logger.log("\n📋 Dokploy credentials not found. Let's set them up.");
|
|
44
|
+
const endpoint = (await require_index.prompt("Dokploy URL (e.g., https://dokploy.example.com): ", { instead: INSTEAD })).replace(/\/$/, "");
|
|
45
|
+
try {
|
|
46
|
+
new URL(endpoint);
|
|
47
|
+
} catch {
|
|
48
|
+
throw new DokployEndpointInvalid(endpoint);
|
|
49
|
+
}
|
|
50
|
+
logger.log(`\nGenerate a token at: ${endpoint}/settings/profile\n`);
|
|
51
|
+
const token = await require_index.prompt("API Token: ", {
|
|
52
|
+
hidden: true,
|
|
53
|
+
instead: INSTEAD
|
|
54
|
+
});
|
|
55
|
+
logger.log("\nValidating credentials...");
|
|
56
|
+
if (!await require_index.validateDokployToken(endpoint, token)) throw new DokployTokenRejected(endpoint);
|
|
57
|
+
await require_credentials.storeDokployCredentials(token, endpoint);
|
|
58
|
+
logger.log("✓ Credentials saved");
|
|
59
|
+
return {
|
|
60
|
+
endpoint,
|
|
61
|
+
token
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
if (request.kind !== "registry") return void 0;
|
|
65
|
+
logger.log(` Dokploy has no registry for ${request.url}. Let's create one.`);
|
|
66
|
+
return {
|
|
67
|
+
username: await require_index.prompt("Registry username: ", { instead: INSTEAD }),
|
|
68
|
+
password: await require_index.prompt("Registry password/token: ", {
|
|
69
|
+
hidden: true,
|
|
70
|
+
instead: INSTEAD
|
|
71
|
+
})
|
|
72
|
+
};
|
|
73
|
+
} };
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The environment, then the stored login, then — at a terminal — the person
|
|
77
|
+
* running the command.
|
|
78
|
+
*/
|
|
79
|
+
function terminalCredentials(base = require_credentials.storedCredentials()) {
|
|
80
|
+
return require_credentials.chainCredentials(base, asking());
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
exports.terminalCredentials = terminalCredentials;
|
|
84
|
+
|
|
85
|
+
//# sourceMappingURL=terminal-XQE106CG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-XQE106CG.cjs","names":["output","GkmError","canPrompt","prompt","validateDokployToken","storeDokployCredentials","storedCredentials","chainCredentials"],"sources":["../src/deploy/terminal.ts"],"sourcesContent":["/**\n * The credentials `gkm deploy` can ask a person for. CLI layer only.\n *\n * `deploy()` asks its `CredentialProvider` and stops with `MissingCredential`\n * when the answer is nothing. At a terminal, `gkm deploy` would rather ask:\n * this provider reads the environment and the stored login first, and only\n * when both are empty prompts — and stores a Dokploy login it validated, so\n * the next deploy does not ask again. With no terminal it answers nothing, and\n * the deploy says what was missing instead of waiting on a prompt nobody sees.\n */\n\nimport { validateDokployToken } from '../auth';\nimport { storeDokployCredentials } from '../auth/credentials';\nimport { GkmError } from '../errors';\nimport { output } from '../output';\nimport { canPrompt, prompt } from '../prompt';\nimport {\n\ttype CredentialProvider,\n\ttype CredentialRequest,\n\tchainCredentials,\n\tstoredCredentials,\n} from './credentials';\n\nconst logger = output;\n\n/** What answers a deploy prompt without a terminal. */\nconst INSTEAD = 'Please configure manually.';\n\n/** The Dokploy URL typed at the prompt is not a URL. */\nexport class DokployEndpointInvalid extends GkmError {\n\tconstructor(readonly endpoint: string) {\n\t\tsuper('Invalid URL format');\n\t\tthis.name = 'DokployEndpointInvalid';\n\t}\n}\n\n/** Dokploy refused the token typed at the prompt; nothing was stored. */\nexport class DokployTokenRejected extends GkmError {\n\tconstructor(readonly endpoint: string) {\n\t\tsuper('Invalid credentials. Please check your token.');\n\t\tthis.name = 'DokployTokenRejected';\n\t}\n}\n\n/** Asks the person at the terminal for what nothing else supplied. */\nfunction asking(): CredentialProvider {\n\treturn {\n\t\tasync get(asked) {\n\t\t\tif (!canPrompt()) return undefined;\n\t\t\t// The union, so checking `kind` narrows it: `K` itself never is.\n\t\t\tconst request = asked as CredentialRequest;\n\n\t\t\tif (request.kind === 'dokploy') {\n\t\t\t\tlogger.log(\"\\n📋 Dokploy credentials not found. Let's set them up.\");\n\t\t\t\tconst endpoint = (\n\t\t\t\t\tawait prompt('Dokploy URL (e.g., https://dokploy.example.com): ', {\n\t\t\t\t\t\tinstead: INSTEAD,\n\t\t\t\t\t})\n\t\t\t\t).replace(/\\/$/, '');\n\n\t\t\t\ttry {\n\t\t\t\t\tnew URL(endpoint);\n\t\t\t\t} catch {\n\t\t\t\t\tthrow new DokployEndpointInvalid(endpoint);\n\t\t\t\t}\n\n\t\t\t\tlogger.log(`\\nGenerate a token at: ${endpoint}/settings/profile\\n`);\n\t\t\t\tconst token = await prompt('API Token: ', {\n\t\t\t\t\thidden: true,\n\t\t\t\t\tinstead: INSTEAD,\n\t\t\t\t});\n\n\t\t\t\tlogger.log('\\nValidating credentials...');\n\t\t\t\tif (!(await validateDokployToken(endpoint, token))) {\n\t\t\t\t\tthrow new DokployTokenRejected(endpoint);\n\t\t\t\t}\n\n\t\t\t\tawait storeDokployCredentials(token, endpoint);\n\t\t\t\tlogger.log('✓ Credentials saved');\n\t\t\t\treturn { endpoint, token } as never;\n\t\t\t}\n\n\t\t\t// AWS is a profile or a role, set up with the AWS CLI — not keys\n\t\t\t// typed into a deploy.\n\t\t\tif (request.kind !== 'registry') return undefined;\n\n\t\t\tlogger.log(\n\t\t\t\t` Dokploy has no registry for ${request.url}. Let's create one.`,\n\t\t\t);\n\t\t\tconst username = await prompt('Registry username: ', {\n\t\t\t\tinstead: INSTEAD,\n\t\t\t});\n\t\t\tconst password = await prompt('Registry password/token: ', {\n\t\t\t\thidden: true,\n\t\t\t\tinstead: INSTEAD,\n\t\t\t});\n\t\t\treturn { username, password } as never;\n\t\t},\n\t};\n}\n\n/**\n * The environment, then the stored login, then — at a terminal — the person\n * running the command.\n */\nexport function terminalCredentials(\n\tbase: CredentialProvider = storedCredentials(),\n): CredentialProvider {\n\treturn chainCredentials(base, asking());\n}\n"],"mappings":";;;;;;;;;;;;;;;AAuBA,MAAM,SAASA,iBAAAA;;AAGf,MAAM,UAAU;;AAGhB,IAAa,yBAAb,cAA4CC,eAAAA,SAAS;CAC/B;CAArB,YAAY,UAA2B;EACtC,MAAM,oBAAoB;EADN,KAAA,WAAA;EAEpB,KAAK,OAAO;CACb;AACD;;AAGA,IAAa,uBAAb,cAA0CA,eAAAA,SAAS;CAC7B;CAArB,YAAY,UAA2B;EACtC,MAAM,+CAA+C;EADjC,KAAA,WAAA;EAEpB,KAAK,OAAO;CACb;AACD;;AAGA,SAAS,SAA6B;CACrC,OAAO,EACN,MAAM,IAAI,OAAO;EAChB,IAAI,CAACC,cAAAA,UAAU,GAAG,OAAO,KAAA;EAEzB,MAAM,UAAU;EAEhB,IAAI,QAAQ,SAAS,WAAW;GAC/B,OAAO,IAAI,wDAAwD;GACnE,MAAM,YACL,MAAMC,cAAAA,OAAO,qDAAqD,EACjE,SAAS,QACV,CAAC,EAAA,CACA,QAAQ,OAAO,EAAE;GAEnB,IAAI;IACH,IAAI,IAAI,QAAQ;GACjB,QAAQ;IACP,MAAM,IAAI,uBAAuB,QAAQ;GAC1C;GAEA,OAAO,IAAI,0BAA0B,SAAS,oBAAoB;GAClE,MAAM,QAAQ,MAAMA,cAAAA,OAAO,eAAe;IACzC,QAAQ;IACR,SAAS;GACV,CAAC;GAED,OAAO,IAAI,6BAA6B;GACxC,IAAI,CAAE,MAAMC,cAAAA,qBAAqB,UAAU,KAAK,GAC/C,MAAM,IAAI,qBAAqB,QAAQ;GAGxC,MAAMC,oBAAAA,wBAAwB,OAAO,QAAQ;GAC7C,OAAO,IAAI,qBAAqB;GAChC,OAAO;IAAE;IAAU;GAAM;EAC1B;EAIA,IAAI,QAAQ,SAAS,YAAY,OAAO,KAAA;EAExC,OAAO,IACN,kCAAkC,QAAQ,IAAI,oBAC/C;EAQA,OAAO;GAAE,UAAA,MAPcF,cAAAA,OAAO,uBAAuB,EACpD,SAAS,QACV,CAAC;GAKkB,UAAA,MAJIA,cAAAA,OAAO,6BAA6B;IAC1D,QAAQ;IACR,SAAS;GACV,CAAC;EAC2B;CAC7B,EACD;AACD;;;;;AAMA,SAAgB,oBACf,OAA2BG,oBAAAA,kBAAkB,GACxB;CACrB,OAAOC,oBAAAA,iBAAiB,MAAM,OAAO,CAAC;AACvC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
2
|
+
import { gt as storeDokployCredentials, n as chainCredentials, r as storedCredentials } from "./credentials-DRfP9aG7.mjs";
|
|
3
|
+
import { y as output } from "./discover-DbDrCQ8h.mjs";
|
|
4
|
+
import { c as validateDokployToken, l as canPrompt, u as prompt } from "./index.mjs";
|
|
5
|
+
//#region src/deploy/terminal.ts
|
|
6
|
+
/**
|
|
7
|
+
* The credentials `gkm deploy` can ask a person for. CLI layer only.
|
|
8
|
+
*
|
|
9
|
+
* `deploy()` asks its `CredentialProvider` and stops with `MissingCredential`
|
|
10
|
+
* when the answer is nothing. At a terminal, `gkm deploy` would rather ask:
|
|
11
|
+
* this provider reads the environment and the stored login first, and only
|
|
12
|
+
* when both are empty prompts — and stores a Dokploy login it validated, so
|
|
13
|
+
* the next deploy does not ask again. With no terminal it answers nothing, and
|
|
14
|
+
* the deploy says what was missing instead of waiting on a prompt nobody sees.
|
|
15
|
+
*/
|
|
16
|
+
const logger = output;
|
|
17
|
+
/** What answers a deploy prompt without a terminal. */
|
|
18
|
+
const INSTEAD = "Please configure manually.";
|
|
19
|
+
/** The Dokploy URL typed at the prompt is not a URL. */
|
|
20
|
+
var DokployEndpointInvalid = class extends GkmError {
|
|
21
|
+
endpoint;
|
|
22
|
+
constructor(endpoint) {
|
|
23
|
+
super("Invalid URL format");
|
|
24
|
+
this.endpoint = endpoint;
|
|
25
|
+
this.name = "DokployEndpointInvalid";
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
/** Dokploy refused the token typed at the prompt; nothing was stored. */
|
|
29
|
+
var DokployTokenRejected = class extends GkmError {
|
|
30
|
+
endpoint;
|
|
31
|
+
constructor(endpoint) {
|
|
32
|
+
super("Invalid credentials. Please check your token.");
|
|
33
|
+
this.endpoint = endpoint;
|
|
34
|
+
this.name = "DokployTokenRejected";
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
/** Asks the person at the terminal for what nothing else supplied. */
|
|
38
|
+
function asking() {
|
|
39
|
+
return { async get(asked) {
|
|
40
|
+
if (!canPrompt()) return void 0;
|
|
41
|
+
const request = asked;
|
|
42
|
+
if (request.kind === "dokploy") {
|
|
43
|
+
logger.log("\n📋 Dokploy credentials not found. Let's set them up.");
|
|
44
|
+
const endpoint = (await prompt("Dokploy URL (e.g., https://dokploy.example.com): ", { instead: INSTEAD })).replace(/\/$/, "");
|
|
45
|
+
try {
|
|
46
|
+
new URL(endpoint);
|
|
47
|
+
} catch {
|
|
48
|
+
throw new DokployEndpointInvalid(endpoint);
|
|
49
|
+
}
|
|
50
|
+
logger.log(`\nGenerate a token at: ${endpoint}/settings/profile\n`);
|
|
51
|
+
const token = await prompt("API Token: ", {
|
|
52
|
+
hidden: true,
|
|
53
|
+
instead: INSTEAD
|
|
54
|
+
});
|
|
55
|
+
logger.log("\nValidating credentials...");
|
|
56
|
+
if (!await validateDokployToken(endpoint, token)) throw new DokployTokenRejected(endpoint);
|
|
57
|
+
await storeDokployCredentials(token, endpoint);
|
|
58
|
+
logger.log("✓ Credentials saved");
|
|
59
|
+
return {
|
|
60
|
+
endpoint,
|
|
61
|
+
token
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
if (request.kind !== "registry") return void 0;
|
|
65
|
+
logger.log(` Dokploy has no registry for ${request.url}. Let's create one.`);
|
|
66
|
+
return {
|
|
67
|
+
username: await prompt("Registry username: ", { instead: INSTEAD }),
|
|
68
|
+
password: await prompt("Registry password/token: ", {
|
|
69
|
+
hidden: true,
|
|
70
|
+
instead: INSTEAD
|
|
71
|
+
})
|
|
72
|
+
};
|
|
73
|
+
} };
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The environment, then the stored login, then — at a terminal — the person
|
|
77
|
+
* running the command.
|
|
78
|
+
*/
|
|
79
|
+
function terminalCredentials(base = storedCredentials()) {
|
|
80
|
+
return chainCredentials(base, asking());
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { terminalCredentials };
|
|
84
|
+
|
|
85
|
+
//# sourceMappingURL=terminal-jGj9TtMQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-jGj9TtMQ.mjs","names":[],"sources":["../src/deploy/terminal.ts"],"sourcesContent":["/**\n * The credentials `gkm deploy` can ask a person for. CLI layer only.\n *\n * `deploy()` asks its `CredentialProvider` and stops with `MissingCredential`\n * when the answer is nothing. At a terminal, `gkm deploy` would rather ask:\n * this provider reads the environment and the stored login first, and only\n * when both are empty prompts — and stores a Dokploy login it validated, so\n * the next deploy does not ask again. With no terminal it answers nothing, and\n * the deploy says what was missing instead of waiting on a prompt nobody sees.\n */\n\nimport { validateDokployToken } from '../auth';\nimport { storeDokployCredentials } from '../auth/credentials';\nimport { GkmError } from '../errors';\nimport { output } from '../output';\nimport { canPrompt, prompt } from '../prompt';\nimport {\n\ttype CredentialProvider,\n\ttype CredentialRequest,\n\tchainCredentials,\n\tstoredCredentials,\n} from './credentials';\n\nconst logger = output;\n\n/** What answers a deploy prompt without a terminal. */\nconst INSTEAD = 'Please configure manually.';\n\n/** The Dokploy URL typed at the prompt is not a URL. */\nexport class DokployEndpointInvalid extends GkmError {\n\tconstructor(readonly endpoint: string) {\n\t\tsuper('Invalid URL format');\n\t\tthis.name = 'DokployEndpointInvalid';\n\t}\n}\n\n/** Dokploy refused the token typed at the prompt; nothing was stored. */\nexport class DokployTokenRejected extends GkmError {\n\tconstructor(readonly endpoint: string) {\n\t\tsuper('Invalid credentials. Please check your token.');\n\t\tthis.name = 'DokployTokenRejected';\n\t}\n}\n\n/** Asks the person at the terminal for what nothing else supplied. */\nfunction asking(): CredentialProvider {\n\treturn {\n\t\tasync get(asked) {\n\t\t\tif (!canPrompt()) return undefined;\n\t\t\t// The union, so checking `kind` narrows it: `K` itself never is.\n\t\t\tconst request = asked as CredentialRequest;\n\n\t\t\tif (request.kind === 'dokploy') {\n\t\t\t\tlogger.log(\"\\n📋 Dokploy credentials not found. Let's set them up.\");\n\t\t\t\tconst endpoint = (\n\t\t\t\t\tawait prompt('Dokploy URL (e.g., https://dokploy.example.com): ', {\n\t\t\t\t\t\tinstead: INSTEAD,\n\t\t\t\t\t})\n\t\t\t\t).replace(/\\/$/, '');\n\n\t\t\t\ttry {\n\t\t\t\t\tnew URL(endpoint);\n\t\t\t\t} catch {\n\t\t\t\t\tthrow new DokployEndpointInvalid(endpoint);\n\t\t\t\t}\n\n\t\t\t\tlogger.log(`\\nGenerate a token at: ${endpoint}/settings/profile\\n`);\n\t\t\t\tconst token = await prompt('API Token: ', {\n\t\t\t\t\thidden: true,\n\t\t\t\t\tinstead: INSTEAD,\n\t\t\t\t});\n\n\t\t\t\tlogger.log('\\nValidating credentials...');\n\t\t\t\tif (!(await validateDokployToken(endpoint, token))) {\n\t\t\t\t\tthrow new DokployTokenRejected(endpoint);\n\t\t\t\t}\n\n\t\t\t\tawait storeDokployCredentials(token, endpoint);\n\t\t\t\tlogger.log('✓ Credentials saved');\n\t\t\t\treturn { endpoint, token } as never;\n\t\t\t}\n\n\t\t\t// AWS is a profile or a role, set up with the AWS CLI — not keys\n\t\t\t// typed into a deploy.\n\t\t\tif (request.kind !== 'registry') return undefined;\n\n\t\t\tlogger.log(\n\t\t\t\t` Dokploy has no registry for ${request.url}. Let's create one.`,\n\t\t\t);\n\t\t\tconst username = await prompt('Registry username: ', {\n\t\t\t\tinstead: INSTEAD,\n\t\t\t});\n\t\t\tconst password = await prompt('Registry password/token: ', {\n\t\t\t\thidden: true,\n\t\t\t\tinstead: INSTEAD,\n\t\t\t});\n\t\t\treturn { username, password } as never;\n\t\t},\n\t};\n}\n\n/**\n * The environment, then the stored login, then — at a terminal — the person\n * running the command.\n */\nexport function terminalCredentials(\n\tbase: CredentialProvider = storedCredentials(),\n): CredentialProvider {\n\treturn chainCredentials(base, asking());\n}\n"],"mappings":";;;;;;;;;;;;;;;AAuBA,MAAM,SAAS;;AAGf,MAAM,UAAU;;AAGhB,IAAa,yBAAb,cAA4C,SAAS;CAC/B;CAArB,YAAY,UAA2B;EACtC,MAAM,oBAAoB;EADN,KAAA,WAAA;EAEpB,KAAK,OAAO;CACb;AACD;;AAGA,IAAa,uBAAb,cAA0C,SAAS;CAC7B;CAArB,YAAY,UAA2B;EACtC,MAAM,+CAA+C;EADjC,KAAA,WAAA;EAEpB,KAAK,OAAO;CACb;AACD;;AAGA,SAAS,SAA6B;CACrC,OAAO,EACN,MAAM,IAAI,OAAO;EAChB,IAAI,CAAC,UAAU,GAAG,OAAO,KAAA;EAEzB,MAAM,UAAU;EAEhB,IAAI,QAAQ,SAAS,WAAW;GAC/B,OAAO,IAAI,wDAAwD;GACnE,MAAM,YACL,MAAM,OAAO,qDAAqD,EACjE,SAAS,QACV,CAAC,EAAA,CACA,QAAQ,OAAO,EAAE;GAEnB,IAAI;IACH,IAAI,IAAI,QAAQ;GACjB,QAAQ;IACP,MAAM,IAAI,uBAAuB,QAAQ;GAC1C;GAEA,OAAO,IAAI,0BAA0B,SAAS,oBAAoB;GAClE,MAAM,QAAQ,MAAM,OAAO,eAAe;IACzC,QAAQ;IACR,SAAS;GACV,CAAC;GAED,OAAO,IAAI,6BAA6B;GACxC,IAAI,CAAE,MAAM,qBAAqB,UAAU,KAAK,GAC/C,MAAM,IAAI,qBAAqB,QAAQ;GAGxC,MAAM,wBAAwB,OAAO,QAAQ;GAC7C,OAAO,IAAI,qBAAqB;GAChC,OAAO;IAAE;IAAU;GAAM;EAC1B;EAIA,IAAI,QAAQ,SAAS,YAAY,OAAO,KAAA;EAExC,OAAO,IACN,kCAAkC,QAAQ,IAAI,oBAC/C;EAQA,OAAO;GAAE,UAAA,MAPc,OAAO,uBAAuB,EACpD,SAAS,QACV,CAAC;GAKkB,UAAA,MAJI,OAAO,6BAA6B;IAC1D,QAAQ;IACR,SAAS;GACV,CAAC;EAC2B;CAC7B,EACD;AACD;;;;;AAMA,SAAgB,oBACf,OAA2B,kBAAkB,GACxB;CACrB,OAAO,iBAAiB,MAAM,OAAO,CAAC;AACvC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
//#region src/types.ts
|
|
2
|
+
/** Whether `value` names a cache backend. */
|
|
3
|
+
function isCacheBackend(value) {
|
|
4
|
+
return value === "upstash" || value === "elasticache" || value === "db" || value === "redis";
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Whether a backend holds every declared cache, a cache declared from a
|
|
8
|
+
* database (`database.cache('Sessions')`) included.
|
|
9
|
+
*
|
|
10
|
+
* Every other backend leaves such a cache where its declaration put it: the
|
|
11
|
+
* declaration is the stronger statement. The stack's own Redis is the
|
|
12
|
+
* exception, because a stack that runs one runs it *for* the cache — a table
|
|
13
|
+
* beside it would be a second cache nobody asked for.
|
|
14
|
+
*/
|
|
15
|
+
function holdsEveryCache(backend) {
|
|
16
|
+
return backend === "redis";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The backend a project gets when it says nothing, by where it deploys.
|
|
20
|
+
*
|
|
21
|
+
* Flat defaults could not be right for both: `upstash` on a single box means a
|
|
22
|
+
* SaaS round-trip for a cache the database could have held, and `minio` on AWS
|
|
23
|
+
* means running a bucket beside S3. So the default is a function of the target,
|
|
24
|
+
* and an app that says nothing gets the obvious answer in both places — which
|
|
25
|
+
* is the whole of what "zero config" can mean once there is more than one
|
|
26
|
+
* target.
|
|
27
|
+
*
|
|
28
|
+
* `server` covers Dokploy and a bare host alike: the question these answer is
|
|
29
|
+
* whether the app is next to a managed cloud or next to its own containers, and
|
|
30
|
+
* on that question the two are the same.
|
|
31
|
+
*
|
|
32
|
+
* A per-construct, per-stage override is the layer above this — see
|
|
33
|
+
* `constructs-outstanding.md` — so two buckets in one app can differ. This is
|
|
34
|
+
* only what happens when nobody has said anything at all.
|
|
35
|
+
*/
|
|
36
|
+
const DEFAULT_CACHE = {
|
|
37
|
+
aws: "upstash",
|
|
38
|
+
server: "db"
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Which broker carries a declared queue or topic, by target.
|
|
42
|
+
*
|
|
43
|
+
* Whether there are events at all is the manifest's answer — a declared
|
|
44
|
+
* `Topic` or `Queue` — so this only ever answers the second question. AWS
|
|
45
|
+
* deploys them to SNS and SQS, and locally the AWS emulator stands in, so the
|
|
46
|
+
* broker a developer runs is the one production has. A server has a Postgres
|
|
47
|
+
* already, and pg-boss keeps its queues there.
|
|
48
|
+
*/
|
|
49
|
+
const DEFAULT_EVENTS = {
|
|
50
|
+
aws: "sns",
|
|
51
|
+
server: "pgboss"
|
|
52
|
+
};
|
|
53
|
+
/** Where a bucket lives when nobody said — see {@link DEFAULT_CACHE}. */
|
|
54
|
+
const DEFAULT_STORAGE = {
|
|
55
|
+
aws: "s3",
|
|
56
|
+
server: "minio"
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
Object.defineProperty(exports, "DEFAULT_CACHE", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function() {
|
|
62
|
+
return DEFAULT_CACHE;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "DEFAULT_EVENTS", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function() {
|
|
68
|
+
return DEFAULT_EVENTS;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "DEFAULT_STORAGE", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function() {
|
|
74
|
+
return DEFAULT_STORAGE;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, "holdsEveryCache", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function() {
|
|
80
|
+
return holdsEveryCache;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "isCacheBackend", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function() {
|
|
86
|
+
return isCacheBackend;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=types-Bl_CwZC9.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-Bl_CwZC9.cjs","names":[],"sources":["../src/types.ts"],"sourcesContent":["import type {\n\tDevConfig,\n\tSecretsConfig,\n\tStagesConfig,\n\tTestConfig,\n} from './workspace/types.js';\n\nexport type MainProvider = 'aws' | 'server';\n\nexport type Routes = string | string[];\n\n/**\n * Supported event backend types.\n *\n * - `pgboss`: Reuses PostgreSQL with a dedicated user/schema. Auto-enables db service.\n * - `sns`: Adds the AWS emulator (floci) container; each topic and queue is\n * created on it and addressed by its own string.\n * - `rabbitmq`: Adds RabbitMQ container.\n *\n * Each topic and queue resolves its own `<ID>_PUBLISHER_CONNECTION_STRING`,\n * which its producers and its consumers both read. pg-boss and RabbitMQ also\n * resolve `EVENT_PUBLISHER_CONNECTION_STRING`, the one broker crons schedule\n * through.\n */\nexport type EventsBackend = 'pgboss' | 'sns' | 'rabbitmq';\n\n/**\n * Where a declared cache actually lives.\n *\n * A deployment choice, not an application one — the same code caches into any\n * of these — so it is config here beside `events` rather than a field on the\n * construct. Each backend is consistent between local and deployed, which is\n * the property worth having: a cache that behaves differently in the two places\n * is worse than a slower one.\n *\n * - `upstash` (default) — HTTP with a token. Reachable from a Lambda with no\n * VPC and no connection pool, which is why it is the default; locally the\n * `serverless-redis-http` proxy in front of Redis speaks the same protocol.\n * - `elasticache` — the Redis wire protocol, inside a VPC. Locally, plain Redis.\n * - `db` — a table in the database the app already declared. No infrastructure\n * at all, and the same relationship pg-boss has to Postgres: it creates its\n * own table on first use and needs a declared database to live in.\n * - `redis` — a Redis the stack runs beside the apps, on its network. It holds\n * *every* declared cache, one declared from a database included, so the\n * cache never competes with the database for its connections. Only the\n * compose target selects it today (`gkm compose`).\n */\nexport type CacheBackend = 'upstash' | 'elasticache' | 'db' | 'redis';\n\n/**\n * The backends a deploy target defaults to — every one but the compose\n * stack's own Redis, which only that target runs.\n */\nexport type TargetCacheBackend = Exclude<CacheBackend, 'redis'>;\n\n/** Whether `value` names a cache backend. */\nexport function isCacheBackend(value: string): value is CacheBackend {\n\treturn (\n\t\tvalue === 'upstash' ||\n\t\tvalue === 'elasticache' ||\n\t\tvalue === 'db' ||\n\t\tvalue === 'redis'\n\t);\n}\n\n/**\n * Whether a backend holds every declared cache, a cache declared from a\n * database (`database.cache('Sessions')`) included.\n *\n * Every other backend leaves such a cache where its declaration put it: the\n * declaration is the stronger statement. The stack's own Redis is the\n * exception, because a stack that runs one runs it *for* the cache — a table\n * beside it would be a second cache nobody asked for.\n */\nexport function holdsEveryCache(backend: CacheBackend): boolean {\n\treturn backend === 'redis';\n}\n\n/**\n * Where a declared bucket actually lives.\n *\n * The fourth of these selectors and the last to arrive, which is why\n * `UPLOADS_URL` had no answer on a container target: there was nothing to\n * choose with. Like the others it changes no application code — the `s3://`\n * scheme picks the driver, and every one of these speaks it.\n *\n * - `s3` — a real bucket. Nothing is created on the host; the URL is composed\n * against credentials you already hold, the same way `resend` is an API key\n * rather than infrastructure.\n * - `r2` — Cloudflare's, reached through the same S3 API and differing only in\n * its endpoint.\n * - `minio` — a container. Everything the app declares lives on the box, which\n * is what makes a single-host deploy self-contained, and what makes it a\n * single disk with no replication. Locally this is what every backend is.\n */\nexport type StorageBackend = 'minio' | 's3' | 'r2';\n\n/**\n * The backend a project gets when it says nothing, by where it deploys.\n *\n * Flat defaults could not be right for both: `upstash` on a single box means a\n * SaaS round-trip for a cache the database could have held, and `minio` on AWS\n * means running a bucket beside S3. So the default is a function of the target,\n * and an app that says nothing gets the obvious answer in both places — which\n * is the whole of what \"zero config\" can mean once there is more than one\n * target.\n *\n * `server` covers Dokploy and a bare host alike: the question these answer is\n * whether the app is next to a managed cloud or next to its own containers, and\n * on that question the two are the same.\n *\n * A per-construct, per-stage override is the layer above this — see\n * `constructs-outstanding.md` — so two buckets in one app can differ. This is\n * only what happens when nobody has said anything at all.\n */\nexport const DEFAULT_CACHE: Record<MainProvider, TargetCacheBackend> = {\n\t// Reachable from a Lambda with no VPC and no connection pool.\n\taws: 'upstash',\n\t// The database is already there and already has a connection pool open to\n\t// it. Anything else is a second service to run for a table.\n\tserver: 'db',\n};\n\n/**\n * Which broker carries a declared queue or topic, by target.\n *\n * Whether there are events at all is the manifest's answer — a declared\n * `Topic` or `Queue` — so this only ever answers the second question. AWS\n * deploys them to SNS and SQS, and locally the AWS emulator stands in, so the\n * broker a developer runs is the one production has. A server has a Postgres\n * already, and pg-boss keeps its queues there.\n */\nexport const DEFAULT_EVENTS: Record<MainProvider, EventsBackend> = {\n\taws: 'sns',\n\tserver: 'pgboss',\n};\n\n/** Where a bucket lives when nobody said — see {@link DEFAULT_CACHE}. */\nexport const DEFAULT_STORAGE: Record<MainProvider, StorageBackend> = {\n\taws: 's3',\n\tserver: 'minio',\n};\n\n/**\n * Who delivers a declared app's mail.\n *\n * Unlike a cache, this changes *nothing* about the client. Every backend speaks\n * SMTP, so the declaration's `smtp://` URL is true of all of them and only the\n * provisioner differs — which is the same reason the declaration has no\n * `provider` field and there is no `ses://` scheme.\n *\n * - `ses` (default) — the only backend that can be a *chain* of resources: an\n * identity, a user, an access key, and an SMTP password derived from it,\n * because SES issues IAM credentials rather than SMTP ones. Hand it a URL and\n * it uses that instead, which is what you want when the credentials already\n * exist — provisioning a second set of sending credentials for an identity\n * that already has them is not a thing to do by default.\n * - `resend` — an API key you hold, composed into an SMTP URL. Nothing to\n * provision: a SaaS account is not infrastructure.\n * - `smtp` — a URL supplied whole, for a relay somebody else runs.\n *\n * Locally every one of them is Mailpit, because locally none of it matters.\n */\nexport type EmailBackend = 'resend' | 'ses' | 'smtp';\n\n/**\n * Who delivers mail when nobody said.\n *\n * Flat, unlike the others, and deliberately: mail is a SaaS on every target.\n * There is no self-hosted preset to default a container deploy to — Mailpit is\n * a development inbox, not a sender — so `server` has no answer of its own to\n * give and would only be `ses` written twice.\n */\nexport const DEFAULT_EMAIL: EmailBackend = 'ses';\n\n/** Supported docker-compose service names */\nexport type ComposeServiceName =\n\t| 'postgres'\n\t| 'redis'\n\t| 'rabbitmq'\n\t| 'minio'\n\t| 'mailpit'\n\t| 'localstack';\n\nexport interface DockerConfig {\n\t/** Container registry URL (e.g., 'ghcr.io/myorg') */\n\tregistry?: string;\n\t/** Docker image name (default: derived from package.json name) */\n\timageName?: string;\n\t/** Base Docker image (default: 'node:22.23.4-alpine', a Node security release) */\n\tbaseImage?: string;\n\t/** Container port (default: 3000) */\n\tport?: number;\n}\n\nexport type Runtime = 'node' | 'bun';\n\nexport interface TelescopeConfig {\n\t/** Enable/disable telescope (default: true in development) */\n\tenabled?: boolean;\n\t/** Port for telescope to use (defaults to server port) */\n\tport?: number;\n\t/** Path prefix for telescope UI (default: /__telescope) */\n\tpath?: string;\n\t/** Ignore patterns for telescope (e.g., ['/health', '/metrics']) */\n\tignore?: string[];\n\t/** Record request/response bodies (default: true) */\n\trecordBody?: boolean;\n\t/** Maximum entries to keep in memory (default: 1000) */\n\tmaxEntries?: number;\n\t/** Enable WebSocket for real-time updates (default: true, requires @hono/node-ws for Node.js) */\n\twebsocket?: boolean;\n}\n\nexport interface OpenApiConfig {\n\t/** Enable OpenAPI generation (default: true) */\n\tenabled?: boolean;\n\t/** API title */\n\ttitle?: string;\n\t/** API version */\n\tversion?: string;\n\t/** API description */\n\tdescription?: string;\n}\n\nexport interface HooksConfig {\n\t/**\n\t * Path to a module exporting server lifecycle hooks.\n\t * The module should export `beforeSetup` and/or `afterSetup` functions.\n\t *\n\t * @example\n\t * ```typescript\n\t * // src/config/hooks.ts\n\t * import type { Hono } from 'hono';\n\t * import type { Logger } from '@geekmidas/logger';\n\t * import type { EnvironmentParser } from '@geekmidas/envkit';\n\t *\n\t * // Called BEFORE gkm endpoints are registered\n\t * export function beforeSetup(app: Hono, ctx: { envParser: EnvironmentParser; logger: Logger }) {\n\t * app.use('*', cors());\n\t * app.get('/custom/health', (c) => c.json({ status: 'ok' }));\n\t * }\n\t *\n\t * // Called AFTER gkm endpoints are registered\n\t * export function afterSetup(app: Hono, ctx: { envParser: EnvironmentParser; logger: Logger }) {\n\t * app.notFound((c) => c.json({ error: 'Not found' }, 404));\n\t * app.onError((err, c) => c.json({ error: err.message }, 500));\n\t * }\n\t * ```\n\t */\n\tserver?: string;\n}\n\nexport interface GkmConfig {\n\t/**\n\t * What this app is called, and therefore how everything it declares is named.\n\t *\n\t * The same field `sst.config.ts` carries, doing the same job: every physical\n\t * name is `{stage}-{name}-{construct}`, so `Database` in the `production`\n\t * stage of `kitchen-sink` is `production-kitchen-sink-database` on AWS and on\n\t * Dokploy alike. One statement, in the config, rather than a rule each\n\t * provider restates.\n\t *\n\t * `defineWorkspace` has always had this. A single-app config did not, so its\n\t * names fell back to whatever the directory happened to be called — the\n\t * monorepo's package name for the project and the app's for the application,\n\t * two accidents of layout standing in for a decision.\n\t *\n\t * Defaults to the package.json name with any scope stripped, then the\n\t * directory name.\n\t */\n\tname?: string;\n\t/** The project's stages: which one is local, which deploy */\n\tstages: StagesConfig;\n\t/** Encrypted secrets, and where deployed stages' secrets are stored */\n\tsecrets?: SecretsConfig;\n\t/** What `gkm test` hands a feature test: where the factories are. */\n\ttest?: TestConfig;\n\t/** How `gkm dev` is reached: the discovery endpoint's port and origins. */\n\tdev?: DevConfig;\n\t/**\n\t * Constructs glob pattern — one glob, every kind.\n\t *\n\t * What reconcile reads to derive the containers a stage needs: a database\n\t * implies Postgres, objects imply MinIO, mail implies Mailpit. A glob per\n\t * kind cannot find a resource, because a declared `ObjectStorage` has no\n\t * kind to be listed under.\n\t *\n\t * @example './src/**\\/*.ts'\n\t */\n\tconstructs: Routes;\n\t/**\n\t * Server lifecycle hooks for customizing the Hono app.\n\t * Allows adding custom routes, middleware, error handlers, etc.\n\t *\n\t * @example\n\t * hooks: {\n\t * server: './src/config/hooks'\n\t * }\n\t */\n\thooks?: HooksConfig;\n\t/**\n\t * Telescope configuration for debugging/monitoring.\n\t * Can be:\n\t * - A string path to a module that exports a Telescope instance (recommended)\n\t * - A boolean to enable/disable with defaults\n\t * - A TelescopeConfig object for inline configuration\n\t */\n\ttelescope?: string | boolean | TelescopeConfig;\n\t/**\n\t * OpenAPI generation configuration.\n\t * Can be:\n\t * - A boolean to enable/disable with defaults (output: ./src/api/openapi.ts)\n\t * - An OpenApiConfig object for customization\n\t *\n\t * When enabled, OpenAPI spec is generated on startup and regenerated on route changes.\n\t *\n\t * @example\n\t * openapi: true\n\t *\n\t * @example\n\t * openapi: {\n\t * output: './src/api/openapi.ts',\n\t * title: 'My API',\n\t * version: '1.0.0',\n\t * }\n\t */\n\topenapi?: boolean | OpenApiConfig;\n\t/** Runtime to use for dev server (default: 'node') */\n\truntime?: Runtime;\n\t/**\n\t * Environment file(s) to load for development.\n\t * Can be:\n\t * - A string path to a single env file (e.g., '.env.local')\n\t * - An array of paths to load in order (later files override earlier)\n\t * - Defaults to '.env' if not specified\n\t *\n\t * @example\n\t * env: '.env.local'\n\t *\n\t * @example\n\t * env: ['.env', '.env.local']\n\t */\n\tenv?: string | string[];\n\t/**\n\t * Docker deployment configuration.\n\t * Used by `gkm docker` and `gkm prepack` commands.\n\t *\n\t * @example\n\t * docker: {\n\t * registry: 'ghcr.io/myorg',\n\t * imageName: 'my-api',\n\t * compose: {\n\t * services: ['postgres', 'redis']\n\t * }\n\t * }\n\t */\n\tdocker?: DockerConfig;\n\t/**\n\t * Where this app deploys, and what the target needs to know.\n\t *\n\t * Absent until now, which meant a single-app project could not configure a\n\t * Dokploy deploy at all: the wrap that turns one into a workspace hardcoded\n\t * `{ default: 'dokploy' }` and dropped everything else, so there was no\n\t * endpoint, no registry and no domain — and `resolveHost` failed with \"no\n\t * domain configured for stage\" on a config that had nowhere to put one.\n\t *\n\t * The same shape a workspace config uses, so moving from one to the other is\n\t * a rename rather than a rewrite.\n\t */\n\tdeploy?: import('./workspace/types').DeployConfig;\n\t/** Each deployed stage's base domain — the same field a workspace has. */\n\tdomains?: import('./workspace/types').DomainsConfig;\n\t/** Each root domain's DNS provider — the same field a workspace has. */\n\tdns?: import('./workspace/types').WorkspaceDnsConfig;\n}\n\nexport interface BuildOptions {\n\t/** Overrides the deploy target's: a Dockerfile builds a server regardless. */\n\tprovider?: MainProvider;\n\t/**\n\t * Overrides the target's cache backend for the drivers the entry\n\t * registers — set by the Dockerfiles `gkm compose` writes, whose stack runs\n\t * its own Redis.\n\t */\n\tcache?: CacheBackend;\n\tenableOpenApi?: boolean;\n\t/** Build for production (no dev tools, bundled output) */\n\tproduction?: boolean;\n\t/** Skip bundling step in production build */\n\tskipBundle?: boolean;\n\t/** Stage for secrets injection (e.g., 'production', 'staging') */\n\tstage?: string;\n\t/**\n\t * When true, optional environment variables (those with `.optional()` or\n\t * `.default()` in the envParser) are suffixed with `?` within each\n\t * construct's `environment` array in the manifest (e.g. `PORT?`).\n\t * Defaults to false.\n\t */\n\tmarkOptional?: boolean;\n\t/**\n\t * Where the apps' own build scripts (turbo) run. Defaults to a\n\t * `LocalSandbox` on the workspace: this machine, with an allowlisted\n\t * environment.\n\t */\n\tsandbox?: import('./sandbox/sandbox').Sandbox;\n}\n\n/** Result from build command when secrets are injected */\nexport interface BuildResult {\n\t/** Ephemeral master key for deployment (only if stage was provided) */\n\tmasterKey?: string;\n}\n\n// The deployment manifest types are a shared, dependency-free data contract\n// in `@geekmidas/manifest`, re-exported here for back-compat with existing\n// `@geekmidas/cli` imports.\nexport type {\n\tCronInfo,\n\tFunctionInfo,\n\tProcessorInfo,\n\tQueueInfo,\n\tRouteInfo,\n\tSubscriberInfo,\n\tTopicInfo,\n} from '@geekmidas/manifest';\n"],"mappings":";;AAwDA,SAAgB,eAAe,OAAsC;CACpE,OACC,UAAU,aACV,UAAU,iBACV,UAAU,QACV,UAAU;AAEZ;;;;;;;;;;AAWA,SAAgB,gBAAgB,SAAgC;CAC/D,OAAO,YAAY;AACpB;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,gBAA0D;CAEtE,KAAK;CAGL,QAAQ;AACT;;;;;;;;;;AAWA,MAAa,iBAAsD;CAClE,KAAK;CACL,QAAQ;AACT;;AAGA,MAAa,kBAAwD;CACpE,KAAK;CACL,QAAQ;AACT"}
|