@geekmidas/cli 10.0.0-alpha.9 → 10.0.0-alpha.91
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 +315 -414
- 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-CVc6Oi1Y.mjs +1021 -0
- package/dist/EndpointGenerator-CVc6Oi1Y.mjs.map +1 -0
- package/dist/EndpointGenerator-CwLjBCFE.cjs +1080 -0
- package/dist/EndpointGenerator-CwLjBCFE.cjs.map +1 -0
- package/dist/GoDaddyProvider-DSStJVAv.mjs +387 -0
- package/dist/GoDaddyProvider-DSStJVAv.mjs.map +1 -0
- package/dist/GoDaddyProvider-DqZ1qD_F.cjs +387 -0
- package/dist/GoDaddyProvider-DqZ1qD_F.cjs.map +1 -0
- package/dist/{HostingerProvider-Cft7lEYr.mjs → HostingerProvider-BI6J7oJr.mjs} +22 -23
- package/dist/HostingerProvider-BI6J7oJr.mjs.map +1 -0
- package/dist/{HostingerProvider-h3EbEp-Z.cjs → HostingerProvider-CyTpG_jy.cjs} +22 -23
- package/dist/HostingerProvider-CyTpG_jy.cjs.map +1 -0
- package/dist/LegacyStateStore-DXmNA7hy.cjs +89 -0
- package/dist/LegacyStateStore-DXmNA7hy.cjs.map +1 -0
- package/dist/LegacyStateStore-ZkdmiUFZ.mjs +89 -0
- package/dist/LegacyStateStore-ZkdmiUFZ.mjs.map +1 -0
- package/dist/LocalStateStore-BBeTlRTH.cjs +178 -0
- package/dist/LocalStateStore-BBeTlRTH.cjs.map +1 -0
- package/dist/LocalStateStore-CU-O0SBp.mjs +167 -0
- package/dist/LocalStateStore-CU-O0SBp.mjs.map +1 -0
- package/dist/OpenApiTsGenerator-B--HV-sW.cjs +541 -0
- package/dist/OpenApiTsGenerator-B--HV-sW.cjs.map +1 -0
- package/dist/OpenApiTsGenerator-CkvsPdgg.mjs +536 -0
- package/dist/OpenApiTsGenerator-CkvsPdgg.mjs.map +1 -0
- package/dist/{Route53Provider-di2fMM5N.cjs → Route53Provider-Bllus2NR.cjs} +21 -22
- package/dist/Route53Provider-Bllus2NR.cjs.map +1 -0
- package/dist/{Route53Provider-RdpUDJQk.mjs → Route53Provider-QXxjkZO1.mjs} +13 -13
- package/dist/Route53Provider-QXxjkZO1.mjs.map +1 -0
- package/dist/S3StateStore-Br8VMY22.cjs +160 -0
- package/dist/S3StateStore-Br8VMY22.cjs.map +1 -0
- package/dist/S3StateStore-bwxcI_wQ.mjs +161 -0
- package/dist/S3StateStore-bwxcI_wQ.mjs.map +1 -0
- package/dist/SSMStateStore-CsOS0W1y.mjs +154 -0
- package/dist/SSMStateStore-CsOS0W1y.mjs.map +1 -0
- package/dist/SSMStateStore-DoZE1Wi1.cjs +153 -0
- package/dist/SSMStateStore-DoZE1Wi1.cjs.map +1 -0
- package/dist/SubscriberGenerator-BPqQf8fB.mjs +448 -0
- package/dist/SubscriberGenerator-BPqQf8fB.mjs.map +1 -0
- package/dist/SubscriberGenerator-BVn7cQ-2.cjs +489 -0
- package/dist/SubscriberGenerator-BVn7cQ-2.cjs.map +1 -0
- package/dist/add-BSHk5Ngn.mjs +747 -0
- package/dist/add-BSHk5Ngn.mjs.map +1 -0
- package/dist/add-DmmBDV2e.cjs +749 -0
- package/dist/add-DmmBDV2e.cjs.map +1 -0
- package/dist/appPorts-C9z9Pzn9.mjs +223 -0
- package/dist/appPorts-C9z9Pzn9.mjs.map +1 -0
- package/dist/appPorts-Cu79hJF6.cjs +264 -0
- package/dist/appPorts-Cu79hJF6.cjs.map +1 -0
- package/dist/aws-B-6uEhgP.mjs +71 -0
- package/dist/aws-B-6uEhgP.mjs.map +1 -0
- package/dist/aws-BTawF0F-.cjs +82 -0
- package/dist/aws-BTawF0F-.cjs.map +1 -0
- package/dist/awsStore-7VmS_cZR.cjs +54 -0
- package/dist/awsStore-7VmS_cZR.cjs.map +1 -0
- package/dist/awsStore-B529csle.mjs +43 -0
- package/dist/awsStore-B529csle.mjs.map +1 -0
- package/dist/{backup-provisioner-Bgj5Vi_L.mjs → backup-provisioner-C8DnCmxK.mjs} +11 -8
- package/dist/backup-provisioner-C8DnCmxK.mjs.map +1 -0
- package/dist/{backup-provisioner-BrsHwYG0.cjs → backup-provisioner-oDEsPj02.cjs} +22 -20
- package/dist/backup-provisioner-oDEsPj02.cjs.map +1 -0
- package/dist/{bundler-BY1OmV1e.cjs → bundler-BQJiB7Ub.cjs} +38 -35
- package/dist/bundler-BQJiB7Ub.cjs.map +1 -0
- package/dist/{bundler-Be8Zg4Wd.mjs → bundler-D6eBfVkl.mjs} +36 -32
- package/dist/bundler-D6eBfVkl.mjs.map +1 -0
- package/dist/cli-BE9mqeX8.cjs +69 -0
- package/dist/cli-BE9mqeX8.cjs.map +1 -0
- package/dist/cli-DD-Yk-I5.mjs +69 -0
- package/dist/cli-DD-Yk-I5.mjs.map +1 -0
- package/dist/compose-Bhmf0n4o.mjs +3140 -0
- package/dist/compose-Bhmf0n4o.mjs.map +1 -0
- package/dist/compose-CvpU6ooi.cjs +3265 -0
- package/dist/compose-CvpU6ooi.cjs.map +1 -0
- package/dist/config-CdEcTrjG.d.mts +269 -0
- package/dist/config-CdEcTrjG.d.mts.map +1 -0
- package/dist/config-pST7E0CS.d.cts +269 -0
- package/dist/config-pST7E0CS.d.cts.map +1 -0
- package/dist/config.cjs +420 -11
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +4 -120
- package/dist/config.d.mts +4 -120
- package/dist/config.mjs +404 -4
- package/dist/config.mjs.map +1 -0
- package/dist/credentialSchemas-BJqRJNK4.mjs +236 -0
- package/dist/credentialSchemas-BJqRJNK4.mjs.map +1 -0
- package/dist/credentialSchemas-DCR4Wd1W.cjs +271 -0
- package/dist/credentialSchemas-DCR4Wd1W.cjs.map +1 -0
- package/dist/credentials-BKfIugu2.cjs +513 -0
- package/dist/credentials-BKfIugu2.cjs.map +1 -0
- package/dist/credentials-CnVqoXMb.mjs +388 -0
- package/dist/credentials-CnVqoXMb.mjs.map +1 -0
- package/dist/databases-BY-pEImp.cjs +597 -0
- package/dist/databases-BY-pEImp.cjs.map +1 -0
- package/dist/databases-CzszQV0N.mjs +494 -0
- package/dist/databases-CzszQV0N.mjs.map +1 -0
- package/dist/define-DR8xGYfL.mjs +97 -0
- package/dist/define-DR8xGYfL.mjs.map +1 -0
- package/dist/define-DzRz8FgH.cjs +144 -0
- package/dist/define-DzRz8FgH.cjs.map +1 -0
- package/dist/deploy/public.cjs +208 -0
- package/dist/deploy/public.cjs.map +1 -0
- package/dist/deploy/public.d.cts +649 -0
- package/dist/deploy/public.d.cts.map +1 -0
- package/dist/deploy/public.d.mts +649 -0
- package/dist/deploy/public.d.mts.map +1 -0
- package/dist/deploy/public.mjs +142 -0
- package/dist/deploy/public.mjs.map +1 -0
- package/dist/deploy/sniffer-envkit-patch.cjs +18 -10
- package/dist/deploy/sniffer-envkit-patch.cjs.map +1 -1
- package/dist/deploy/sniffer-envkit-patch.d.cts +0 -2
- package/dist/deploy/sniffer-envkit-patch.d.cts.map +1 -1
- package/dist/deploy/sniffer-envkit-patch.d.mts +0 -2
- package/dist/deploy/sniffer-envkit-patch.d.mts.map +1 -1
- package/dist/deploy/sniffer-envkit-patch.mjs +10 -2
- package/dist/deploy/sniffer-envkit-patch.mjs.map +1 -1
- 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 +13 -7
- package/dist/deploy/sniffer-hooks.cjs.map +1 -1
- package/dist/deploy/sniffer-hooks.d.cts +1 -2
- package/dist/deploy/sniffer-hooks.d.cts.map +1 -1
- package/dist/deploy/sniffer-hooks.d.mts +1 -2
- package/dist/deploy/sniffer-hooks.d.mts.map +1 -1
- package/dist/deploy/sniffer-hooks.mjs +10 -3
- package/dist/deploy/sniffer-hooks.mjs.map +1 -1
- package/dist/deploy/sniffer-loader.cjs +16 -7
- package/dist/deploy/sniffer-loader.cjs.map +1 -1
- package/dist/deploy/sniffer-loader.d.cts +1 -1
- package/dist/deploy/sniffer-loader.d.mts +1 -1
- package/dist/deploy/sniffer-loader.mjs +14 -3
- package/dist/deploy/sniffer-loader.mjs.map +1 -1
- package/dist/deploy/sniffer-routes-worker.cjs +11 -11
- package/dist/deploy/sniffer-routes-worker.cjs.map +1 -1
- package/dist/deploy/sniffer-routes-worker.d.cts +1 -1
- package/dist/deploy/sniffer-routes-worker.d.mts +1 -1
- package/dist/deploy/sniffer-routes-worker.mjs +4 -4
- package/dist/deploy/sniffer-routes-worker.mjs.map +1 -1
- package/dist/deploy/sniffer-worker.cjs +15 -6
- package/dist/deploy/sniffer-worker.cjs.map +1 -1
- package/dist/deploy/sniffer-worker.d.cts +1 -3
- package/dist/deploy/sniffer-worker.d.cts.map +1 -1
- package/dist/deploy/sniffer-worker.d.mts +1 -3
- package/dist/deploy/sniffer-worker.d.mts.map +1 -1
- package/dist/deploy/sniffer-worker.mjs +15 -4
- package/dist/deploy/sniffer-worker.mjs.map +1 -1
- package/dist/deploy-CuHasEA4.cjs +554 -0
- package/dist/deploy-CuHasEA4.cjs.map +1 -0
- package/dist/deploy-QNtx_eWR.mjs +525 -0
- package/dist/deploy-QNtx_eWR.mjs.map +1 -0
- package/dist/derive-B4vDpzgP.mjs +150 -0
- package/dist/derive-B4vDpzgP.mjs.map +1 -0
- package/dist/derive-DAbo49sm.cjs +161 -0
- package/dist/derive-DAbo49sm.cjs.map +1 -0
- package/dist/discover-BPelzeGW.mjs +526 -0
- package/dist/discover-BPelzeGW.mjs.map +1 -0
- package/dist/discover-CU0paUyH.d.cts +108 -0
- package/dist/discover-CU0paUyH.d.cts.map +1 -0
- package/dist/discover-D1It5r_h.cjs +599 -0
- package/dist/discover-D1It5r_h.cjs.map +1 -0
- package/dist/discover-DFiJxwfv.d.mts +108 -0
- package/dist/discover-DFiJxwfv.d.mts.map +1 -0
- package/dist/dokploy-CYcMLh9-.mjs +38 -0
- package/dist/dokploy-CYcMLh9-.mjs.map +1 -0
- package/dist/dokploy-DIowwyIB.cjs +38 -0
- package/dist/dokploy-DIowwyIB.cjs.map +1 -0
- package/dist/drivers-DTZzxeIl.mjs +177 -0
- package/dist/drivers-DTZzxeIl.mjs.map +1 -0
- package/dist/drivers-LYSdQDmd.cjs +200 -0
- package/dist/drivers-LYSdQDmd.cjs.map +1 -0
- package/dist/{emit-CiZS_5Ub.mjs → emit-C1e8qD08.mjs} +13 -26
- package/dist/emit-C1e8qD08.mjs.map +1 -0
- package/dist/{emit-CbcRolsa.cjs → emit-Dmc1nvdS.cjs} +31 -57
- package/dist/emit-Dmc1nvdS.cjs.map +1 -0
- package/dist/encryption-BrEef7Jk.mjs +88 -0
- package/dist/encryption-BrEef7Jk.mjs.map +1 -0
- package/dist/encryption-CjYdUb2s.cjs +89 -0
- package/dist/encryption-CjYdUb2s.cjs.map +1 -0
- package/dist/engine-2h4k5ICq.mjs +3085 -0
- package/dist/engine-2h4k5ICq.mjs.map +1 -0
- package/dist/engine-BhJ7ZP9K.cjs +3198 -0
- package/dist/engine-BhJ7ZP9K.cjs.map +1 -0
- package/dist/github-B5Bw4HIu.cjs +669 -0
- package/dist/github-B5Bw4HIu.cjs.map +1 -0
- package/dist/github-BCDF6xVH.mjs +669 -0
- package/dist/github-BCDF6xVH.mjs.map +1 -0
- package/dist/{index-C6e-ULLx.d.mts → index-D-F_hTDz.d.cts} +39 -24
- package/dist/index-D-F_hTDz.d.cts.map +1 -0
- package/dist/{index-CR5urhWX.d.cts → index-YFNxR5Ns.d.mts} +39 -24
- package/dist/index-YFNxR5Ns.d.mts.map +1 -0
- package/dist/index.cjs +9487 -12080
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +9420 -12026
- package/dist/index.mjs.map +1 -1
- package/dist/local-BjxDfPvy.cjs +241 -0
- package/dist/local-BjxDfPvy.cjs.map +1 -0
- package/dist/local-IuoIF3CT.mjs +224 -0
- package/dist/local-IuoIF3CT.mjs.map +1 -0
- package/dist/migrate-CGaancHY.cjs +93 -0
- package/dist/migrate-CGaancHY.cjs.map +1 -0
- package/dist/migrate-DWZz9kah.mjs +93 -0
- package/dist/migrate-DWZz9kah.mjs.map +1 -0
- package/dist/migrate-DbtcuOr_.mjs +265 -0
- package/dist/migrate-DbtcuOr_.mjs.map +1 -0
- package/dist/migrate-q2YYLJLE.cjs +270 -0
- package/dist/migrate-q2YYLJLE.cjs.map +1 -0
- package/dist/openapi.cjs +214 -10
- package/dist/openapi.cjs.map +1 -0
- package/dist/openapi.d.cts +47 -17
- package/dist/openapi.d.cts.map +1 -1
- package/dist/openapi.d.mts +47 -17
- package/dist/openapi.d.mts.map +1 -1
- package/dist/openapi.mjs +208 -5
- package/dist/openapi.mjs.map +1 -0
- package/dist/provider-C9_-45d5.cjs +56 -0
- package/dist/provider-C9_-45d5.cjs.map +1 -0
- package/dist/provider-q4lsYzYG.mjs +45 -0
- package/dist/provider-q4lsYzYG.mjs.map +1 -0
- package/dist/ready-BpNbORRB.cjs +402 -0
- package/dist/ready-BpNbORRB.cjs.map +1 -0
- package/dist/ready-b6vm0-W-.mjs +373 -0
- package/dist/ready-b6vm0-W-.mjs.map +1 -0
- package/dist/reconcile/public.cjs +3 -5
- package/dist/reconcile/public.d.cts +11 -87
- package/dist/reconcile/public.d.cts.map +1 -1
- package/dist/reconcile/public.d.mts +11 -87
- package/dist/reconcile/public.d.mts.map +1 -1
- package/dist/reconcile/public.mjs +3 -4
- package/dist/{reconcile-D0pimNiy.cjs → reconcile-CuCQBa5-.cjs} +5 -8
- package/dist/reconcile-CuCQBa5-.cjs.map +1 -0
- package/dist/{reconcile-CFs8C_1a.mjs → reconcile-Dh1Jk7WE.mjs} +4 -7
- package/dist/reconcile-Dh1Jk7WE.mjs.map +1 -0
- package/dist/resolve-Cns0v6dN.cjs +315 -0
- package/dist/resolve-Cns0v6dN.cjs.map +1 -0
- package/dist/resolve-DNg0icnh.mjs +262 -0
- package/dist/resolve-DNg0icnh.mjs.map +1 -0
- package/dist/rollback-CFrNLmxs.mjs +132 -0
- package/dist/rollback-CFrNLmxs.mjs.map +1 -0
- package/dist/rollback-UIjS25F1.cjs +161 -0
- package/dist/rollback-UIjS25F1.cjs.map +1 -0
- package/dist/rolldown-runtime-BhDjJH2R.mjs +15 -0
- package/dist/{chunk-CUT6urMc.cjs → rolldown-runtime-C0BPl7ul.cjs} +23 -10
- package/dist/runtime-CN_kmqxo.d.cts +90 -0
- package/dist/runtime-CN_kmqxo.d.cts.map +1 -0
- package/dist/runtime-Cjvon3oj.d.mts +90 -0
- package/dist/runtime-Cjvon3oj.d.mts.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 +54 -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 +55 -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/sandbox-CL--ZDui.cjs +164 -0
- package/dist/sandbox-CL--ZDui.cjs.map +1 -0
- package/dist/sandbox-Dm247NGx.mjs +117 -0
- package/dist/sandbox-Dm247NGx.mjs.map +1 -0
- package/dist/sandbox-M8UnLhXE.d.cts +126 -0
- package/dist/sandbox-M8UnLhXE.d.cts.map +1 -0
- package/dist/sandbox-M8UnLhXE.d.mts +126 -0
- package/dist/sandbox-M8UnLhXE.d.mts.map +1 -0
- package/dist/{workspace-zoqRbihZ.mjs → schemas-BObwxB_t.cjs} +998 -1659
- package/dist/schemas-BObwxB_t.cjs.map +1 -0
- package/dist/{workspace-C6VJQVtG.cjs → schemas-D-xeKJDD.mjs} +913 -1842
- package/dist/schemas-D-xeKJDD.mjs.map +1 -0
- package/dist/secretsManager-Chs9VV2r.mjs +76 -0
- package/dist/secretsManager-Chs9VV2r.mjs.map +1 -0
- package/dist/secretsManager-DcMlHnRC.cjs +87 -0
- package/dist/secretsManager-DcMlHnRC.cjs.map +1 -0
- package/dist/seeds-CkIPFGNO.cjs +10560 -0
- package/dist/seeds-CkIPFGNO.cjs.map +1 -0
- package/dist/seeds-odfgSCmu.mjs +9538 -0
- package/dist/seeds-odfgSCmu.mjs.map +1 -0
- package/dist/sniffer-BTtX3NUM.mjs +1262 -0
- package/dist/sniffer-BTtX3NUM.mjs.map +1 -0
- package/dist/sniffer-IAQEpsQb.cjs +1333 -0
- package/dist/sniffer-IAQEpsQb.cjs.map +1 -0
- package/dist/sst-BgcOsaBi.cjs +453 -0
- package/dist/sst-BgcOsaBi.cjs.map +1 -0
- package/dist/sst-CJzvyrEz.mjs +430 -0
- package/dist/sst-CJzvyrEz.mjs.map +1 -0
- package/dist/stages-CUn6gvXL.cjs +174 -0
- package/dist/stages-CUn6gvXL.cjs.map +1 -0
- package/dist/stages-CnZRYmkI.mjs +174 -0
- package/dist/stages-CnZRYmkI.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-D8TPK7o9.mjs +84 -0
- package/dist/terminal-D8TPK7o9.mjs.map +1 -0
- package/dist/terminal-DuapRxh6.cjs +84 -0
- package/dist/terminal-DuapRxh6.cjs.map +1 -0
- package/dist/types-NqX1Hz4P.d.cts +7454 -0
- package/dist/types-NqX1Hz4P.d.cts.map +1 -0
- package/dist/types-ZHuZ89hv.d.mts +7453 -0
- package/dist/types-ZHuZ89hv.d.mts.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 +8 -4
- package/dist/workspace/index.d.cts +3 -3
- package/dist/workspace/index.d.mts +3 -3
- package/dist/workspace/index.mjs +2 -3
- package/dist/workspace-CJ0lKFq-.mjs +1979 -0
- package/dist/workspace-CJ0lKFq-.mjs.map +1 -0
- package/dist/workspace-CwW3Gkru.cjs +2355 -0
- package/dist/workspace-CwW3Gkru.cjs.map +1 -0
- package/package.json +53 -22
- package/dist/CachedStateProvider-BLo7zv7S.cjs +0 -3
- package/dist/CachedStateProvider-BxoAm-B2.mjs +0 -3
- package/dist/CachedStateProvider-CqPdW7CB.cjs +0 -60
- package/dist/CachedStateProvider-CqPdW7CB.cjs.map +0 -1
- package/dist/CachedStateProvider-DTniehMP.mjs +0 -54
- package/dist/CachedStateProvider-DTniehMP.mjs.map +0 -1
- package/dist/HostingerProvider-Cft7lEYr.mjs.map +0 -1
- package/dist/HostingerProvider-h3EbEp-Z.cjs.map +0 -1
- package/dist/LocalStateProvider-Bn6tS-oL.mjs +0 -42
- package/dist/LocalStateProvider-Bn6tS-oL.mjs.map +0 -1
- package/dist/LocalStateProvider-Db9SEjyH.cjs +0 -43
- package/dist/LocalStateProvider-Db9SEjyH.cjs.map +0 -1
- package/dist/Route53Provider-RdpUDJQk.mjs.map +0 -1
- package/dist/Route53Provider-di2fMM5N.cjs.map +0 -1
- package/dist/SSMStateProvider-BRt2py-A.mjs +0 -66
- package/dist/SSMStateProvider-BRt2py-A.mjs.map +0 -1
- package/dist/SSMStateProvider-DyX8s9HI.cjs +0 -66
- package/dist/SSMStateProvider-DyX8s9HI.cjs.map +0 -1
- package/dist/backup-provisioner-Bgj5Vi_L.mjs.map +0 -1
- package/dist/backup-provisioner-BrsHwYG0.cjs.map +0 -1
- package/dist/bundler-BY1OmV1e.cjs.map +0 -1
- package/dist/bundler-Be8Zg4Wd.mjs.map +0 -1
- package/dist/chunk-Duj1WY3L.mjs +0 -7
- package/dist/config-BZ1F0WuA.cjs +0 -462
- package/dist/config-BZ1F0WuA.cjs.map +0 -1
- package/dist/config-DVVph9yz.mjs +0 -402
- package/dist/config-DVVph9yz.mjs.map +0 -1
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.mts.map +0 -1
- package/dist/credentials-B5zRHdAl.mjs +0 -141
- package/dist/credentials-B5zRHdAl.mjs.map +0 -1
- package/dist/credentials-BapzjyV5.cjs +0 -195
- package/dist/credentials-BapzjyV5.cjs.map +0 -1
- package/dist/credentials-Xamqe_NJ.cjs +0 -2681
- package/dist/credentials-Xamqe_NJ.cjs.map +0 -1
- package/dist/credentials-dP8vRVRv.mjs +0 -2549
- package/dist/credentials-dP8vRVRv.mjs.map +0 -1
- package/dist/discover-CAlFgYec.mjs +0 -229
- package/dist/discover-CAlFgYec.mjs.map +0 -1
- package/dist/discover-DTmFeloL.cjs +0 -271
- package/dist/discover-DTmFeloL.cjs.map +0 -1
- package/dist/dokploy-api-BS2xnJLZ.mjs +0 -3
- package/dist/dokploy-api-BsVH0y_s.cjs +0 -718
- package/dist/dokploy-api-BsVH0y_s.cjs.map +0 -1
- package/dist/dokploy-api-BuxDRo3l.cjs +0 -3
- package/dist/dokploy-api-aTFPz7_4.mjs +0 -706
- package/dist/dokploy-api-aTFPz7_4.mjs.map +0 -1
- package/dist/emit-CbcRolsa.cjs.map +0 -1
- package/dist/emit-CiZS_5Ub.mjs.map +0 -1
- package/dist/encryption-C6jaU0hE.cjs +0 -54
- package/dist/encryption-C6jaU0hE.cjs.map +0 -1
- package/dist/encryption-CHzzeR8a.cjs +0 -4
- package/dist/encryption-CQUncu7v.mjs +0 -3
- package/dist/encryption-D-abyhZx.mjs +0 -42
- package/dist/encryption-D-abyhZx.mjs.map +0 -1
- package/dist/fullstack-secrets-C-GGohke.cjs +0 -111
- package/dist/fullstack-secrets-C-GGohke.cjs.map +0 -1
- package/dist/fullstack-secrets-D1o9-G5l.mjs +0 -87
- package/dist/fullstack-secrets-D1o9-G5l.mjs.map +0 -1
- package/dist/generator-CNzBw7g5.cjs +0 -289
- package/dist/generator-CNzBw7g5.cjs.map +0 -1
- package/dist/generator-VE2JrFlY.mjs +0 -253
- package/dist/generator-VE2JrFlY.mjs.map +0 -1
- package/dist/index-C6e-ULLx.d.mts.map +0 -1
- package/dist/index-CR5urhWX.d.cts.map +0 -1
- package/dist/openapi-SjsgARie.cjs +0 -2075
- package/dist/openapi-SjsgARie.cjs.map +0 -1
- package/dist/openapi-Xx0A7Wg0.mjs +0 -2021
- package/dist/openapi-Xx0A7Wg0.mjs.map +0 -1
- package/dist/openapi-react-query-Byltvm_7.mjs +0 -167
- package/dist/openapi-react-query-Byltvm_7.mjs.map +0 -1
- package/dist/openapi-react-query-CmJ1xDbn.cjs +0 -173
- package/dist/openapi-react-query-CmJ1xDbn.cjs.map +0 -1
- package/dist/openapi-react-query.cjs +0 -4
- package/dist/openapi-react-query.d.cts +0 -11
- package/dist/openapi-react-query.d.cts.map +0 -1
- package/dist/openapi-react-query.d.mts +0 -11
- package/dist/openapi-react-query.d.mts.map +0 -1
- package/dist/openapi-react-query.mjs +0 -4
- package/dist/reconcile-CFs8C_1a.mjs.map +0 -1
- package/dist/reconcile-D0pimNiy.cjs.map +0 -1
- package/dist/setup-BA8ciTPU.mjs +0 -11
- package/dist/setup-BsZvZP6f.cjs +0 -11
- package/dist/setup-C8KOx8_8.mjs +0 -443
- package/dist/setup-C8KOx8_8.mjs.map +0 -1
- package/dist/setup-hC6hI86f.cjs +0 -473
- package/dist/setup-hC6hI86f.cjs.map +0 -1
- package/dist/storage-BJmzYxt8.cjs +0 -363
- package/dist/storage-BJmzYxt8.cjs.map +0 -1
- package/dist/storage-BM9hGpgv.cjs +0 -7
- package/dist/storage-Bi24WfoW.mjs +0 -297
- package/dist/storage-Bi24WfoW.mjs.map +0 -1
- package/dist/storage-CYlGwWTj.mjs +0 -3
- package/dist/sync-CmEuNZsB.mjs +0 -76
- package/dist/sync-CmEuNZsB.mjs.map +0 -1
- package/dist/sync-D306yOWu.cjs +0 -4
- package/dist/sync-SizaChmC.cjs +0 -93
- package/dist/sync-SizaChmC.cjs.map +0 -1
- package/dist/sync-hOqAWHR6.mjs +0 -3
- package/dist/types-6pkp2RRj.d.mts +0 -2220
- package/dist/types-6pkp2RRj.d.mts.map +0 -1
- package/dist/types-Y3fKQSAK.d.cts +0 -2220
- package/dist/types-Y3fKQSAK.d.cts.map +0 -1
- package/dist/workspace-BzrG_2SI.mjs +0 -8
- package/dist/workspace-C6VJQVtG.cjs.map +0 -1
- package/dist/workspace-XXtNhqJl.cjs +0 -9
- package/dist/workspace-zoqRbihZ.mjs.map +0 -1
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { n as Sandbox } from "./sandbox-M8UnLhXE.mjs";
|
|
2
|
+
import { b as NormalizedAppConfig, r as GkmConfig, v as LoadedConfig, x as NormalizedWorkspace } from "./types-ZHuZ89hv.mjs";
|
|
3
|
+
import "./index-YFNxR5Ns.mjs";
|
|
4
|
+
import { ConstructManifest } from "@geekmidas/manifest";
|
|
5
|
+
//#region src/dev/discovery.d.ts
|
|
6
|
+
/** Where an app is in its life. `stopped` is a server that exited on its own. */
|
|
7
|
+
type AppStatus = 'starting' | 'ready' | 'reloading' | 'stopped';
|
|
8
|
+
/** A JSON API an app serves about itself. */
|
|
9
|
+
type DataApiKind = 'telescope' | 'database' | 'openapi';
|
|
10
|
+
/**
|
|
11
|
+
* The local OpenObserve `gkm dev` runs for a workspace that uses a
|
|
12
|
+
* `Telemetry` construct: where its UI is, and who signs in. Never the
|
|
13
|
+
* password — the endpoint is read by anything holding its token.
|
|
14
|
+
*/
|
|
15
|
+
interface DevTelemetryUi {
|
|
16
|
+
/** `http://localhost:<port>`. */
|
|
17
|
+
url: string;
|
|
18
|
+
/** The local root user's email. */
|
|
19
|
+
email: string;
|
|
20
|
+
}
|
|
21
|
+
interface DiscoveredDataApi {
|
|
22
|
+
kind: DataApiKind;
|
|
23
|
+
/** Where the app serves it. */
|
|
24
|
+
path: string;
|
|
25
|
+
/** The app's own address for it — `http://localhost:<port><path>`. */
|
|
26
|
+
url: string;
|
|
27
|
+
/** The same API through this endpoint, relative to its origin. */
|
|
28
|
+
proxy: string;
|
|
29
|
+
}
|
|
30
|
+
interface DiscoveredApp {
|
|
31
|
+
name: string;
|
|
32
|
+
type: 'backend' | 'web' | 'mobile';
|
|
33
|
+
port: number;
|
|
34
|
+
/** `http://localhost:<port>`. */
|
|
35
|
+
url: string;
|
|
36
|
+
publicUrl: string | null;
|
|
37
|
+
status: AppStatus;
|
|
38
|
+
reloads: number;
|
|
39
|
+
/** The `gkm dev` running it, when it runs in one of its own. */
|
|
40
|
+
pid: number | null;
|
|
41
|
+
dataApis: DiscoveredDataApi[];
|
|
42
|
+
}
|
|
43
|
+
interface DiscoveredWorkspace {
|
|
44
|
+
/** Stable for a workspace's root: its name, and a hash of where it is. */
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
root: string;
|
|
48
|
+
stage: string;
|
|
49
|
+
manifest: ConstructManifest | null;
|
|
50
|
+
/** The local telemetry UI — OpenObserve — when the workspace runs one. */
|
|
51
|
+
telemetry: DevTelemetryUi | null;
|
|
52
|
+
apps: DiscoveredApp[];
|
|
53
|
+
}
|
|
54
|
+
/** The body of `GET /__gkm`. */
|
|
55
|
+
interface DiscoveryResponse {
|
|
56
|
+
version: 1;
|
|
57
|
+
/** The `gkm dev` serving this endpoint, which may change while you watch. */
|
|
58
|
+
host: {
|
|
59
|
+
pid: number;
|
|
60
|
+
port: number;
|
|
61
|
+
};
|
|
62
|
+
/** Where the changes stream, as server-sent events. */
|
|
63
|
+
events: string;
|
|
64
|
+
workspaces: DiscoveredWorkspace[];
|
|
65
|
+
}
|
|
66
|
+
/** One message on `GET /__gkm/events`; its SSE `event:` is its `type`. */
|
|
67
|
+
type DiscoveryEvent = {
|
|
68
|
+
type: 'snapshot';
|
|
69
|
+
snapshot: DiscoveryResponse;
|
|
70
|
+
} | {
|
|
71
|
+
type: 'workspace.started' | 'workspace.stopped';
|
|
72
|
+
workspace: string;
|
|
73
|
+
} | {
|
|
74
|
+
type: 'app.started' | 'app.stopped' | 'app.reloaded' | 'app.status';
|
|
75
|
+
workspace: string;
|
|
76
|
+
app: DiscoveredApp;
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/config.d.ts
|
|
80
|
+
/**
|
|
81
|
+
* Define GKM configuration with full TypeScript support.
|
|
82
|
+
* This is an identity function that provides type safety and autocomplete.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* // gkm.config.ts
|
|
87
|
+
* import { defineConfig } from '@geekmidas/cli/config';
|
|
88
|
+
*
|
|
89
|
+
* export default defineConfig({
|
|
90
|
+
* routes: './src/endpoints/**\/*.ts',
|
|
91
|
+
* envParser: './src/config/env',
|
|
92
|
+
* logger: './src/config/logger',
|
|
93
|
+
* telescope: true,
|
|
94
|
+
* });
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
declare function defineConfig(config: GkmConfig): GkmConfig;
|
|
98
|
+
interface ParsedModuleConfig {
|
|
99
|
+
path: string;
|
|
100
|
+
importPattern: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Parse a module config string into path and import pattern.
|
|
104
|
+
*
|
|
105
|
+
* @param configString - Config string in format "./path/to/module" or "./path/to/module#exportName"
|
|
106
|
+
* @param defaultAlias - The default alias name to use if no export name specified
|
|
107
|
+
* @returns Object with path and import pattern
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* parseModuleConfig('./src/config/env', 'envParser')
|
|
111
|
+
* // { path: './src/config/env', importPattern: 'envParser' }
|
|
112
|
+
*
|
|
113
|
+
* parseModuleConfig('./src/config/env#envParser', 'envParser')
|
|
114
|
+
* // { path: './src/config/env', importPattern: '{ envParser }' }
|
|
115
|
+
*
|
|
116
|
+
* parseModuleConfig('./src/config/env#myEnv', 'envParser')
|
|
117
|
+
* // { path: './src/config/env', importPattern: '{ myEnv as envParser }' }
|
|
118
|
+
*/
|
|
119
|
+
declare function parseModuleConfig(configString: string, defaultAlias: string): ParsedModuleConfig;
|
|
120
|
+
interface ConfigDiscoveryResult {
|
|
121
|
+
configPath: string;
|
|
122
|
+
workspaceRoot: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The directory holding the gkm config that `cwd` belongs to — the project a
|
|
126
|
+
* sandbox for it is confined to.
|
|
127
|
+
*
|
|
128
|
+
* @throws {ConfigNotFound} when neither `cwd` nor any parent has one.
|
|
129
|
+
*/
|
|
130
|
+
declare function findWorkspaceRoot(cwd: string): string;
|
|
131
|
+
/** No gkm config in a directory or any of its parents. */
|
|
132
|
+
declare class ConfigNotFound extends Error {
|
|
133
|
+
readonly cwd: string;
|
|
134
|
+
constructor(cwd: string);
|
|
135
|
+
}
|
|
136
|
+
interface LoadConfigOptions {
|
|
137
|
+
/**
|
|
138
|
+
* Load the config — and discover the constructs it names — in this
|
|
139
|
+
* sandbox rather than in this process. The config then arrives as data;
|
|
140
|
+
* see {@link Sandbox.isolating} for what happens to one holding live
|
|
141
|
+
* objects. Defaults to the run's own (`withSandbox`); with neither, the
|
|
142
|
+
* config is imported here, as `gkm` always has.
|
|
143
|
+
*/
|
|
144
|
+
sandbox?: Sandbox;
|
|
145
|
+
/**
|
|
146
|
+
* How long the sandboxed config load may run. Defaults to
|
|
147
|
+
* {@link CONFIG_LOAD_TIMEOUT_MS}.
|
|
148
|
+
*/
|
|
149
|
+
timeoutMs?: number;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* How long loading a config, or discovering its constructs, may take in a
|
|
153
|
+
* sandbox: room for tsx to compile a large project cold, and not a deploy
|
|
154
|
+
* held open by a config that never finishes importing.
|
|
155
|
+
*/
|
|
156
|
+
declare const CONFIG_LOAD_TIMEOUT_MS = 60000;
|
|
157
|
+
/** The config failed to import, or threw while it ran. */
|
|
158
|
+
declare class ConfigLoadFailed extends Error {
|
|
159
|
+
readonly configPath: string;
|
|
160
|
+
readonly detail: string;
|
|
161
|
+
constructor(configPath: string, detail: string);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The config holds something that is not data — a custom state store, an
|
|
165
|
+
* inline deploy target, a function — and the sandbox it was loaded in hands
|
|
166
|
+
* the deploy nothing but data.
|
|
167
|
+
*/
|
|
168
|
+
declare class ConfigObjectNotSerializable extends Error {
|
|
169
|
+
readonly configPath: string;
|
|
170
|
+
readonly paths: readonly string[];
|
|
171
|
+
constructor(configPath: string, paths: readonly string[]);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Load configuration file (single-app format).
|
|
175
|
+
* For backwards compatibility with existing code.
|
|
176
|
+
*
|
|
177
|
+
* @deprecated Use loadWorkspaceConfig for new code
|
|
178
|
+
*/
|
|
179
|
+
declare function loadConfig(cwd?: string): Promise<GkmConfig>;
|
|
180
|
+
/**
|
|
181
|
+
* Load configuration file and process it as a workspace.
|
|
182
|
+
* Works with both single-app and workspace configurations.
|
|
183
|
+
*
|
|
184
|
+
* Single-app configs are automatically wrapped as a workspace with one app.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```ts
|
|
188
|
+
* const { type, workspace } = await loadWorkspaceConfig();
|
|
189
|
+
*
|
|
190
|
+
* if (type === 'workspace') {
|
|
191
|
+
* console.log('Multi-app workspace:', workspace.apps);
|
|
192
|
+
* } else {
|
|
193
|
+
* console.log('Single app wrapped as workspace');
|
|
194
|
+
* }
|
|
195
|
+
* ```
|
|
196
|
+
*/
|
|
197
|
+
/**
|
|
198
|
+
* The workspace a directory belongs to, as its config states it — without
|
|
199
|
+
* discovering its constructs.
|
|
200
|
+
*
|
|
201
|
+
* For callers that need a fact the config holds (where a stage's secrets are
|
|
202
|
+
* stored) and nothing the graph adds. `loadWorkspaceConfig` imports every
|
|
203
|
+
* construct module to derive the apps, which is a cost a secrets read should
|
|
204
|
+
* not pay.
|
|
205
|
+
*/
|
|
206
|
+
declare function loadWorkspaceSettings(cwd?: string, options?: LoadConfigOptions): Promise<LoadedConfig['workspace']>;
|
|
207
|
+
declare function loadWorkspaceConfig(cwd?: string, options?: LoadConfigOptions): Promise<LoadedConfig>;
|
|
208
|
+
/**
|
|
209
|
+
* A workspace with no `constructs` glob.
|
|
210
|
+
*
|
|
211
|
+
* In v10 every address, container and app comes from what the workspace
|
|
212
|
+
* declares — there is no second path that reads a hand-written compose file or
|
|
213
|
+
* an `apps` block's ports. A config that declares nothing has nothing to run.
|
|
214
|
+
*/
|
|
215
|
+
declare class WorkspaceDeclaresNoConstructs extends Error {
|
|
216
|
+
readonly root: string;
|
|
217
|
+
constructor(root: string);
|
|
218
|
+
}
|
|
219
|
+
interface AppConfigResult {
|
|
220
|
+
appName: string;
|
|
221
|
+
app: NormalizedAppConfig;
|
|
222
|
+
gkmConfig: GkmConfig;
|
|
223
|
+
workspace: NormalizedWorkspace;
|
|
224
|
+
workspaceRoot: string;
|
|
225
|
+
appRoot: string;
|
|
226
|
+
}
|
|
227
|
+
/** A directory that no app in the workspace lives in. */
|
|
228
|
+
declare class NotInAnApp extends Error {
|
|
229
|
+
readonly cwd: string;
|
|
230
|
+
readonly apps: Readonly<Record<string, string>>;
|
|
231
|
+
constructor(cwd: string, apps: Readonly<Record<string, string>>);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* The backend app a directory is part of, with its gkm config — found by the
|
|
235
|
+
* `path` its construct declares.
|
|
236
|
+
*
|
|
237
|
+
* @example
|
|
238
|
+
* ```ts
|
|
239
|
+
* // From apps/api, where a construct declares `path: 'apps/api'`
|
|
240
|
+
* const { app, workspace, workspaceRoot } = await loadAppConfig();
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* @throws {NotInAnApp} when no app's path contains the directory.
|
|
244
|
+
* @throws {NotABackendApp} when the app it is in has no gkm config to run.
|
|
245
|
+
*/
|
|
246
|
+
declare function loadAppConfig(cwd?: string): Promise<AppConfigResult>;
|
|
247
|
+
/** The app a directory is in has no gkm config — a site, or an entry app. */
|
|
248
|
+
declare class NotABackendApp extends Error {
|
|
249
|
+
readonly appName: string;
|
|
250
|
+
constructor(appName: string);
|
|
251
|
+
}
|
|
252
|
+
interface WorkspaceAppInfo {
|
|
253
|
+
/** The app's key in the workspace. */
|
|
254
|
+
appName: string;
|
|
255
|
+
app: NormalizedAppConfig;
|
|
256
|
+
workspace: NormalizedWorkspace;
|
|
257
|
+
workspaceRoot: string;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* The app a directory is part of, frontend or backend — found by the `path`
|
|
261
|
+
* its construct declares. Unlike `loadAppConfig`, the app need not have a
|
|
262
|
+
* gkm config, which is what `gkm exec` and `gkm test` from a site need.
|
|
263
|
+
*
|
|
264
|
+
* @throws {NotInAnApp} when no app's path contains the directory.
|
|
265
|
+
*/
|
|
266
|
+
declare function loadWorkspaceAppInfo(cwd?: string): Promise<WorkspaceAppInfo>;
|
|
267
|
+
//#endregion
|
|
268
|
+
export { DiscoveredApp as C, DiscoveryResponse as D, DiscoveryEvent as E, DataApiKind as S, DiscoveredWorkspace as T, loadWorkspaceAppInfo as _, ConfigNotFound as a, parseModuleConfig as b, NotABackendApp as c, WorkspaceAppInfo as d, WorkspaceDeclaresNoConstructs as f, loadConfig as g, loadAppConfig as h, ConfigLoadFailed as i, NotInAnApp as l, findWorkspaceRoot as m, CONFIG_LOAD_TIMEOUT_MS as n, ConfigObjectNotSerializable as o, defineConfig as p, ConfigDiscoveryResult as r, LoadConfigOptions as s, AppConfigResult as t, ParsedModuleConfig as u, loadWorkspaceConfig as v, DiscoveredDataApi as w, AppStatus as x, loadWorkspaceSettings as y };
|
|
269
|
+
//# sourceMappingURL=config-CdEcTrjG.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-CdEcTrjG.d.mts","names":[],"sources":["../src/dev/discovery.ts","../src/config.ts"],"mappings":";;;;;;KAoFY;;KAGA;;;;;;UAyBK;;EAEhB;;EAEA;;UA8BgB;EAChB,MAAM;;EAEN;;EAEA;;EAEA;;UAGgB;EAChB;EACA;EACA;;EAEA;EACA;EACA,QAAQ;EACR;;EAEA;EACA,UAAU;;UAGM;;EAEhB;EACA;EACA;EACA;EACA,UAAU;;EAEV,WAAW;EACX,MAAM;;;UAIU;EAChB;;EAEA;IAAQ;IAAa;;;EAErB;EACA,YAAY;;;KAID;EACP;EAAkB,UAAU;;EAC5B;EAAiD;;EAEnD;EACA;EACA,KAAK;;;;;;;;;;;;;;;;;;;;;iBCpJQ,aAAa,QAAQ,YAAY;UAIhC;EAChB;EACA;;;;;;;;;;;;;;;;;;;iBAoBe,kBACf,sBACA,uBACE;UAac;EAChB;EACA;;;;;;;;iBAgDe,kBAAkB;;cAKrB,uBAAuB;WACd;EAArB,YAAqB;;UAaL;;;;;;;;EAQhB,UAAU;;;;;EAKV;;;;;;;cAQY;;cAGA,yBAAyB;WAE3B;WACA;EAFV,YACU,oBACA;;;;;;;cAYE,oCAAoC;WAEtC;WACA;EAFV,YACU,oBACA;;;;;;;;iBA0GW,WACrB,eACE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCW,sBACrB,cACA,UAAS,oBACP,QAAQ;iBAKW,oBACrB,cACA,UAAS,oBACP,QAAQ;;;;;;;;cAmEE,sCAAsC;WAC7B;EAArB,YAAqB;;UAWL;EAChB;EACA,KAAK;EACL,WAAW;EACX,WAAW;EACX;EACA;;;cAqCY,mBAAmB;WAErB;WACA,MAAM,SAAS;EAFzB,YACU,aACA,MAAM,SAAS;;;;;;;;;;;;;;;iBAoCJ,cACrB,eACE,QAAQ;;cAkBE,uBAAuB;WACd;EAArB,YAAqB;;UAQL;;EAEhB;EACA,KAAK;EACL,WAAW;EACX;;;;;;;;;iBAUqB,qBACrB,eACE,QAAQ"}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { b as NormalizedAppConfig, r as GkmConfig, v as LoadedConfig, x as NormalizedWorkspace } from "./types-NqX1Hz4P.cjs";
|
|
2
|
+
import { n as Sandbox } from "./sandbox-M8UnLhXE.cjs";
|
|
3
|
+
import "./index-D-F_hTDz.cjs";
|
|
4
|
+
import { ConstructManifest } from "@geekmidas/manifest";
|
|
5
|
+
//#region src/dev/discovery.d.ts
|
|
6
|
+
/** Where an app is in its life. `stopped` is a server that exited on its own. */
|
|
7
|
+
type AppStatus = 'starting' | 'ready' | 'reloading' | 'stopped';
|
|
8
|
+
/** A JSON API an app serves about itself. */
|
|
9
|
+
type DataApiKind = 'telescope' | 'database' | 'openapi';
|
|
10
|
+
/**
|
|
11
|
+
* The local OpenObserve `gkm dev` runs for a workspace that uses a
|
|
12
|
+
* `Telemetry` construct: where its UI is, and who signs in. Never the
|
|
13
|
+
* password — the endpoint is read by anything holding its token.
|
|
14
|
+
*/
|
|
15
|
+
interface DevTelemetryUi {
|
|
16
|
+
/** `http://localhost:<port>`. */
|
|
17
|
+
url: string;
|
|
18
|
+
/** The local root user's email. */
|
|
19
|
+
email: string;
|
|
20
|
+
}
|
|
21
|
+
interface DiscoveredDataApi {
|
|
22
|
+
kind: DataApiKind;
|
|
23
|
+
/** Where the app serves it. */
|
|
24
|
+
path: string;
|
|
25
|
+
/** The app's own address for it — `http://localhost:<port><path>`. */
|
|
26
|
+
url: string;
|
|
27
|
+
/** The same API through this endpoint, relative to its origin. */
|
|
28
|
+
proxy: string;
|
|
29
|
+
}
|
|
30
|
+
interface DiscoveredApp {
|
|
31
|
+
name: string;
|
|
32
|
+
type: 'backend' | 'web' | 'mobile';
|
|
33
|
+
port: number;
|
|
34
|
+
/** `http://localhost:<port>`. */
|
|
35
|
+
url: string;
|
|
36
|
+
publicUrl: string | null;
|
|
37
|
+
status: AppStatus;
|
|
38
|
+
reloads: number;
|
|
39
|
+
/** The `gkm dev` running it, when it runs in one of its own. */
|
|
40
|
+
pid: number | null;
|
|
41
|
+
dataApis: DiscoveredDataApi[];
|
|
42
|
+
}
|
|
43
|
+
interface DiscoveredWorkspace {
|
|
44
|
+
/** Stable for a workspace's root: its name, and a hash of where it is. */
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
root: string;
|
|
48
|
+
stage: string;
|
|
49
|
+
manifest: ConstructManifest | null;
|
|
50
|
+
/** The local telemetry UI — OpenObserve — when the workspace runs one. */
|
|
51
|
+
telemetry: DevTelemetryUi | null;
|
|
52
|
+
apps: DiscoveredApp[];
|
|
53
|
+
}
|
|
54
|
+
/** The body of `GET /__gkm`. */
|
|
55
|
+
interface DiscoveryResponse {
|
|
56
|
+
version: 1;
|
|
57
|
+
/** The `gkm dev` serving this endpoint, which may change while you watch. */
|
|
58
|
+
host: {
|
|
59
|
+
pid: number;
|
|
60
|
+
port: number;
|
|
61
|
+
};
|
|
62
|
+
/** Where the changes stream, as server-sent events. */
|
|
63
|
+
events: string;
|
|
64
|
+
workspaces: DiscoveredWorkspace[];
|
|
65
|
+
}
|
|
66
|
+
/** One message on `GET /__gkm/events`; its SSE `event:` is its `type`. */
|
|
67
|
+
type DiscoveryEvent = {
|
|
68
|
+
type: 'snapshot';
|
|
69
|
+
snapshot: DiscoveryResponse;
|
|
70
|
+
} | {
|
|
71
|
+
type: 'workspace.started' | 'workspace.stopped';
|
|
72
|
+
workspace: string;
|
|
73
|
+
} | {
|
|
74
|
+
type: 'app.started' | 'app.stopped' | 'app.reloaded' | 'app.status';
|
|
75
|
+
workspace: string;
|
|
76
|
+
app: DiscoveredApp;
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/config.d.ts
|
|
80
|
+
/**
|
|
81
|
+
* Define GKM configuration with full TypeScript support.
|
|
82
|
+
* This is an identity function that provides type safety and autocomplete.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* // gkm.config.ts
|
|
87
|
+
* import { defineConfig } from '@geekmidas/cli/config';
|
|
88
|
+
*
|
|
89
|
+
* export default defineConfig({
|
|
90
|
+
* routes: './src/endpoints/**\/*.ts',
|
|
91
|
+
* envParser: './src/config/env',
|
|
92
|
+
* logger: './src/config/logger',
|
|
93
|
+
* telescope: true,
|
|
94
|
+
* });
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
declare function defineConfig(config: GkmConfig): GkmConfig;
|
|
98
|
+
interface ParsedModuleConfig {
|
|
99
|
+
path: string;
|
|
100
|
+
importPattern: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Parse a module config string into path and import pattern.
|
|
104
|
+
*
|
|
105
|
+
* @param configString - Config string in format "./path/to/module" or "./path/to/module#exportName"
|
|
106
|
+
* @param defaultAlias - The default alias name to use if no export name specified
|
|
107
|
+
* @returns Object with path and import pattern
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* parseModuleConfig('./src/config/env', 'envParser')
|
|
111
|
+
* // { path: './src/config/env', importPattern: 'envParser' }
|
|
112
|
+
*
|
|
113
|
+
* parseModuleConfig('./src/config/env#envParser', 'envParser')
|
|
114
|
+
* // { path: './src/config/env', importPattern: '{ envParser }' }
|
|
115
|
+
*
|
|
116
|
+
* parseModuleConfig('./src/config/env#myEnv', 'envParser')
|
|
117
|
+
* // { path: './src/config/env', importPattern: '{ myEnv as envParser }' }
|
|
118
|
+
*/
|
|
119
|
+
declare function parseModuleConfig(configString: string, defaultAlias: string): ParsedModuleConfig;
|
|
120
|
+
interface ConfigDiscoveryResult {
|
|
121
|
+
configPath: string;
|
|
122
|
+
workspaceRoot: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The directory holding the gkm config that `cwd` belongs to — the project a
|
|
126
|
+
* sandbox for it is confined to.
|
|
127
|
+
*
|
|
128
|
+
* @throws {ConfigNotFound} when neither `cwd` nor any parent has one.
|
|
129
|
+
*/
|
|
130
|
+
declare function findWorkspaceRoot(cwd: string): string;
|
|
131
|
+
/** No gkm config in a directory or any of its parents. */
|
|
132
|
+
declare class ConfigNotFound extends Error {
|
|
133
|
+
readonly cwd: string;
|
|
134
|
+
constructor(cwd: string);
|
|
135
|
+
}
|
|
136
|
+
interface LoadConfigOptions {
|
|
137
|
+
/**
|
|
138
|
+
* Load the config — and discover the constructs it names — in this
|
|
139
|
+
* sandbox rather than in this process. The config then arrives as data;
|
|
140
|
+
* see {@link Sandbox.isolating} for what happens to one holding live
|
|
141
|
+
* objects. Defaults to the run's own (`withSandbox`); with neither, the
|
|
142
|
+
* config is imported here, as `gkm` always has.
|
|
143
|
+
*/
|
|
144
|
+
sandbox?: Sandbox;
|
|
145
|
+
/**
|
|
146
|
+
* How long the sandboxed config load may run. Defaults to
|
|
147
|
+
* {@link CONFIG_LOAD_TIMEOUT_MS}.
|
|
148
|
+
*/
|
|
149
|
+
timeoutMs?: number;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* How long loading a config, or discovering its constructs, may take in a
|
|
153
|
+
* sandbox: room for tsx to compile a large project cold, and not a deploy
|
|
154
|
+
* held open by a config that never finishes importing.
|
|
155
|
+
*/
|
|
156
|
+
declare const CONFIG_LOAD_TIMEOUT_MS = 60000;
|
|
157
|
+
/** The config failed to import, or threw while it ran. */
|
|
158
|
+
declare class ConfigLoadFailed extends Error {
|
|
159
|
+
readonly configPath: string;
|
|
160
|
+
readonly detail: string;
|
|
161
|
+
constructor(configPath: string, detail: string);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The config holds something that is not data — a custom state store, an
|
|
165
|
+
* inline deploy target, a function — and the sandbox it was loaded in hands
|
|
166
|
+
* the deploy nothing but data.
|
|
167
|
+
*/
|
|
168
|
+
declare class ConfigObjectNotSerializable extends Error {
|
|
169
|
+
readonly configPath: string;
|
|
170
|
+
readonly paths: readonly string[];
|
|
171
|
+
constructor(configPath: string, paths: readonly string[]);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Load configuration file (single-app format).
|
|
175
|
+
* For backwards compatibility with existing code.
|
|
176
|
+
*
|
|
177
|
+
* @deprecated Use loadWorkspaceConfig for new code
|
|
178
|
+
*/
|
|
179
|
+
declare function loadConfig(cwd?: string): Promise<GkmConfig>;
|
|
180
|
+
/**
|
|
181
|
+
* Load configuration file and process it as a workspace.
|
|
182
|
+
* Works with both single-app and workspace configurations.
|
|
183
|
+
*
|
|
184
|
+
* Single-app configs are automatically wrapped as a workspace with one app.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```ts
|
|
188
|
+
* const { type, workspace } = await loadWorkspaceConfig();
|
|
189
|
+
*
|
|
190
|
+
* if (type === 'workspace') {
|
|
191
|
+
* console.log('Multi-app workspace:', workspace.apps);
|
|
192
|
+
* } else {
|
|
193
|
+
* console.log('Single app wrapped as workspace');
|
|
194
|
+
* }
|
|
195
|
+
* ```
|
|
196
|
+
*/
|
|
197
|
+
/**
|
|
198
|
+
* The workspace a directory belongs to, as its config states it — without
|
|
199
|
+
* discovering its constructs.
|
|
200
|
+
*
|
|
201
|
+
* For callers that need a fact the config holds (where a stage's secrets are
|
|
202
|
+
* stored) and nothing the graph adds. `loadWorkspaceConfig` imports every
|
|
203
|
+
* construct module to derive the apps, which is a cost a secrets read should
|
|
204
|
+
* not pay.
|
|
205
|
+
*/
|
|
206
|
+
declare function loadWorkspaceSettings(cwd?: string, options?: LoadConfigOptions): Promise<LoadedConfig['workspace']>;
|
|
207
|
+
declare function loadWorkspaceConfig(cwd?: string, options?: LoadConfigOptions): Promise<LoadedConfig>;
|
|
208
|
+
/**
|
|
209
|
+
* A workspace with no `constructs` glob.
|
|
210
|
+
*
|
|
211
|
+
* In v10 every address, container and app comes from what the workspace
|
|
212
|
+
* declares — there is no second path that reads a hand-written compose file or
|
|
213
|
+
* an `apps` block's ports. A config that declares nothing has nothing to run.
|
|
214
|
+
*/
|
|
215
|
+
declare class WorkspaceDeclaresNoConstructs extends Error {
|
|
216
|
+
readonly root: string;
|
|
217
|
+
constructor(root: string);
|
|
218
|
+
}
|
|
219
|
+
interface AppConfigResult {
|
|
220
|
+
appName: string;
|
|
221
|
+
app: NormalizedAppConfig;
|
|
222
|
+
gkmConfig: GkmConfig;
|
|
223
|
+
workspace: NormalizedWorkspace;
|
|
224
|
+
workspaceRoot: string;
|
|
225
|
+
appRoot: string;
|
|
226
|
+
}
|
|
227
|
+
/** A directory that no app in the workspace lives in. */
|
|
228
|
+
declare class NotInAnApp extends Error {
|
|
229
|
+
readonly cwd: string;
|
|
230
|
+
readonly apps: Readonly<Record<string, string>>;
|
|
231
|
+
constructor(cwd: string, apps: Readonly<Record<string, string>>);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* The backend app a directory is part of, with its gkm config — found by the
|
|
235
|
+
* `path` its construct declares.
|
|
236
|
+
*
|
|
237
|
+
* @example
|
|
238
|
+
* ```ts
|
|
239
|
+
* // From apps/api, where a construct declares `path: 'apps/api'`
|
|
240
|
+
* const { app, workspace, workspaceRoot } = await loadAppConfig();
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* @throws {NotInAnApp} when no app's path contains the directory.
|
|
244
|
+
* @throws {NotABackendApp} when the app it is in has no gkm config to run.
|
|
245
|
+
*/
|
|
246
|
+
declare function loadAppConfig(cwd?: string): Promise<AppConfigResult>;
|
|
247
|
+
/** The app a directory is in has no gkm config — a site, or an entry app. */
|
|
248
|
+
declare class NotABackendApp extends Error {
|
|
249
|
+
readonly appName: string;
|
|
250
|
+
constructor(appName: string);
|
|
251
|
+
}
|
|
252
|
+
interface WorkspaceAppInfo {
|
|
253
|
+
/** The app's key in the workspace. */
|
|
254
|
+
appName: string;
|
|
255
|
+
app: NormalizedAppConfig;
|
|
256
|
+
workspace: NormalizedWorkspace;
|
|
257
|
+
workspaceRoot: string;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* The app a directory is part of, frontend or backend — found by the `path`
|
|
261
|
+
* its construct declares. Unlike `loadAppConfig`, the app need not have a
|
|
262
|
+
* gkm config, which is what `gkm exec` and `gkm test` from a site need.
|
|
263
|
+
*
|
|
264
|
+
* @throws {NotInAnApp} when no app's path contains the directory.
|
|
265
|
+
*/
|
|
266
|
+
declare function loadWorkspaceAppInfo(cwd?: string): Promise<WorkspaceAppInfo>;
|
|
267
|
+
//#endregion
|
|
268
|
+
export { DiscoveredApp as C, DiscoveryResponse as D, DiscoveryEvent as E, DataApiKind as S, DiscoveredWorkspace as T, loadWorkspaceAppInfo as _, ConfigNotFound as a, parseModuleConfig as b, NotABackendApp as c, WorkspaceAppInfo as d, WorkspaceDeclaresNoConstructs as f, loadConfig as g, loadAppConfig as h, ConfigLoadFailed as i, NotInAnApp as l, findWorkspaceRoot as m, CONFIG_LOAD_TIMEOUT_MS as n, ConfigObjectNotSerializable as o, defineConfig as p, ConfigDiscoveryResult as r, LoadConfigOptions as s, AppConfigResult as t, ParsedModuleConfig as u, loadWorkspaceConfig as v, DiscoveredDataApi as w, AppStatus as x, loadWorkspaceSettings as y };
|
|
269
|
+
//# sourceMappingURL=config-pST7E0CS.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-pST7E0CS.d.cts","names":[],"sources":["../src/dev/discovery.ts","../src/config.ts"],"mappings":";;;;;;KAoFY;;KAGA;;;;;;UAyBK;;EAEhB;;EAEA;;UA8BgB;EAChB,MAAM;;EAEN;;EAEA;;EAEA;;UAGgB;EAChB;EACA;EACA;;EAEA;EACA;EACA,QAAQ;EACR;;EAEA;EACA,UAAU;;UAGM;;EAEhB;EACA;EACA;EACA;EACA,UAAU;;EAEV,WAAW;EACX,MAAM;;;UAIU;EAChB;;EAEA;IAAQ;IAAa;;;EAErB;EACA,YAAY;;;KAID;EACP;EAAkB,UAAU;;EAC5B;EAAiD;;EAEnD;EACA;EACA,KAAK;;;;;;;;;;;;;;;;;;;;;iBCpJQ,aAAa,QAAQ,YAAY;UAIhC;EAChB;EACA;;;;;;;;;;;;;;;;;;;iBAoBe,kBACf,sBACA,uBACE;UAac;EAChB;EACA;;;;;;;;iBAgDe,kBAAkB;;cAKrB,uBAAuB;WACd;EAArB,YAAqB;;UAaL;;;;;;;;EAQhB,UAAU;;;;;EAKV;;;;;;;cAQY;;cAGA,yBAAyB;WAE3B;WACA;EAFV,YACU,oBACA;;;;;;;cAYE,oCAAoC;WAEtC;WACA;EAFV,YACU,oBACA;;;;;;;;iBA0GW,WACrB,eACE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCW,sBACrB,cACA,UAAS,oBACP,QAAQ;iBAKW,oBACrB,cACA,UAAS,oBACP,QAAQ;;;;;;;;cAmEE,sCAAsC;WAC7B;EAArB,YAAqB;;UAWL;EAChB;EACA,KAAK;EACL,WAAW;EACX,WAAW;EACX;EACA;;;cAqCY,mBAAmB;WAErB;WACA,MAAM,SAAS;EAFzB,YACU,aACA,MAAM,SAAS;;;;;;;;;;;;;;;iBAoCJ,cACrB,eACE,QAAQ;;cAkBE,uBAAuB;WACd;EAArB,YAAqB;;UAQL;;EAEhB;EACA,KAAK;EACL,WAAW;EACX;;;;;;;;;iBAUqB,qBACrB,eACE,QAAQ"}
|