@geekmidas/cli 10.0.0-alpha.69 → 10.0.0-alpha.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{LegacyStateStore-LS_uTO8D.cjs → LegacyStateStore-Dd5IwiyC.cjs} +2 -2
- package/dist/{LegacyStateStore-LS_uTO8D.cjs.map → LegacyStateStore-Dd5IwiyC.cjs.map} +1 -1
- package/dist/{LegacyStateStore-BE1Et8RS.mjs → LegacyStateStore-NSHEinQi.mjs} +2 -2
- package/dist/{LegacyStateStore-BE1Et8RS.mjs.map → LegacyStateStore-NSHEinQi.mjs.map} +1 -1
- package/dist/{LocalStateStore-CV6phNMZ.cjs → LocalStateStore-DTylG4T4.cjs} +2 -2
- package/dist/{LocalStateStore-CV6phNMZ.cjs.map → LocalStateStore-DTylG4T4.cjs.map} +1 -1
- package/dist/{LocalStateStore-DAnFc708.mjs → LocalStateStore-DUoG2wA_.mjs} +2 -2
- package/dist/{LocalStateStore-DAnFc708.mjs.map → LocalStateStore-DUoG2wA_.mjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-CSaXs-dB.mjs → OpenApiTsGenerator-Bhr_XWWN.mjs} +57 -638
- package/dist/OpenApiTsGenerator-Bhr_XWWN.mjs.map +1 -0
- package/dist/{OpenApiTsGenerator-CxB8mqXz.cjs → OpenApiTsGenerator-DZZwHdDC.cjs} +57 -638
- package/dist/OpenApiTsGenerator-DZZwHdDC.cjs.map +1 -0
- package/dist/{S3StateStore-dA34LAYm.cjs → S3StateStore-D7hrU-sy.cjs} +2 -2
- package/dist/{S3StateStore-dA34LAYm.cjs.map → S3StateStore-D7hrU-sy.cjs.map} +1 -1
- package/dist/{S3StateStore-8kJEGnTh.mjs → S3StateStore-Dxob3PNA.mjs} +2 -2
- package/dist/{S3StateStore-8kJEGnTh.mjs.map → S3StateStore-Dxob3PNA.mjs.map} +1 -1
- package/dist/{SSMStateStore-DBzlfc-S.cjs → SSMStateStore-DGIKJ4NN.cjs} +2 -2
- package/dist/{SSMStateStore-DBzlfc-S.cjs.map → SSMStateStore-DGIKJ4NN.cjs.map} +1 -1
- package/dist/{SSMStateStore-Dkdw-fPL.mjs → SSMStateStore-Dvl4A8Up.mjs} +2 -2
- package/dist/{SSMStateStore-Dkdw-fPL.mjs.map → SSMStateStore-Dvl4A8Up.mjs.map} +1 -1
- package/dist/{add-CoIr2wgv.cjs → add-DeC2Kyyv.cjs} +3 -3
- package/dist/{add-CoIr2wgv.cjs.map → add-DeC2Kyyv.cjs.map} +1 -1
- package/dist/{add-Dzk23476.mjs → add-XTLU19_E.mjs} +3 -3
- package/dist/{add-Dzk23476.mjs.map → add-XTLU19_E.mjs.map} +1 -1
- package/dist/{bundler-CSR2nM4m.cjs → bundler-CEaR6Dpb.cjs} +6 -6
- package/dist/bundler-CEaR6Dpb.cjs.map +1 -0
- package/dist/{bundler-Cn0JF5G0.mjs → bundler-CNTVLCCA.mjs} +6 -6
- package/dist/bundler-CNTVLCCA.mjs.map +1 -0
- package/dist/{cli-ij8Lwlww.mjs → cli-D1arS0p1.mjs} +3 -3
- package/dist/{cli-ij8Lwlww.mjs.map → cli-D1arS0p1.mjs.map} +1 -1
- package/dist/{cli-IoM2-x48.cjs → cli-MMgBrHx7.cjs} +3 -3
- package/dist/{cli-IoM2-x48.cjs.map → cli-MMgBrHx7.cjs.map} +1 -1
- package/dist/{compose-DfIioFX0.cjs → compose-B-MME-4C.cjs} +358 -16
- package/dist/compose-B-MME-4C.cjs.map +1 -0
- package/dist/{compose-CZtinmtw.mjs → compose-T3hnnjKZ.mjs} +353 -17
- package/dist/compose-T3hnnjKZ.mjs.map +1 -0
- package/dist/{config-CxEp_g7j.d.mts → config-BN6iXvyR.d.mts} +3 -3
- package/dist/{config-BnA0kPTY.d.cts.map → config-BN6iXvyR.d.mts.map} +1 -1
- package/dist/{config-BnA0kPTY.d.cts → config-j9zBKaEG.d.cts} +3 -3
- package/dist/{config-CxEp_g7j.d.mts.map → config-j9zBKaEG.d.cts.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +1 -1
- package/dist/deploy/public.cjs +6 -6
- package/dist/deploy/public.d.cts +3 -3
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +3 -3
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +6 -6
- package/dist/{deploy-Dpz9raPM.cjs → deploy-CZE0m6jd.cjs} +5 -5
- package/dist/{deploy-Dpz9raPM.cjs.map → deploy-CZE0m6jd.cjs.map} +1 -1
- package/dist/{deploy-BzqbkJ3o.mjs → deploy-ClC53rc6.mjs} +5 -5
- package/dist/{deploy-BzqbkJ3o.mjs.map → deploy-ClC53rc6.mjs.map} +1 -1
- package/dist/{dokploy-DkwcORbv.mjs → dokploy-D1UwQKm3.mjs} +2 -2
- package/dist/{dokploy-DkwcORbv.mjs.map → dokploy-D1UwQKm3.mjs.map} +1 -1
- package/dist/{dokploy-B6O-J1fb.cjs → dokploy-lwmH05zr.cjs} +2 -2
- package/dist/{dokploy-B6O-J1fb.cjs.map → dokploy-lwmH05zr.cjs.map} +1 -1
- package/dist/{encryption-C8Ic5t0C.cjs → encryption-D05sNwED.cjs} +3 -3
- package/dist/{encryption-C8Ic5t0C.cjs.map → encryption-D05sNwED.cjs.map} +1 -1
- package/dist/{encryption-7m1mKcRy.mjs → encryption-DcrxWl1s.mjs} +3 -3
- package/dist/{encryption-7m1mKcRy.mjs.map → encryption-DcrxWl1s.mjs.map} +1 -1
- package/dist/{engine-BR9qlS7A.cjs → engine-Cry1vwMz.cjs} +6 -5
- package/dist/engine-Cry1vwMz.cjs.map +1 -0
- package/dist/{engine-62Kl70Pj.mjs → engine-DmQS3XHX.mjs} +6 -5
- package/dist/{engine-62Kl70Pj.mjs.map → engine-DmQS3XHX.mjs.map} +1 -1
- package/dist/{github-CmGIZjhu.cjs → github-BchWoiVx.cjs} +3 -3
- package/dist/{github-CmGIZjhu.cjs.map → github-BchWoiVx.cjs.map} +1 -1
- package/dist/{github-DtymyOcH.mjs → github-CqYOP8cI.mjs} +3 -3
- package/dist/{github-DtymyOcH.mjs.map → github-CqYOP8cI.mjs.map} +1 -1
- package/dist/{index-CkX89m6S.d.mts → index-Bk3NY6DN.d.cts} +2 -2
- package/dist/{index-CkX89m6S.d.mts.map → index-Bk3NY6DN.d.cts.map} +1 -1
- package/dist/{index-EvZBkycu.d.cts → index-DvoxuTqR.d.mts} +2 -2
- package/dist/{index-EvZBkycu.d.cts.map → index-DvoxuTqR.d.mts.map} +1 -1
- package/dist/index.cjs +53 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +53 -52
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-CEzq6DjL.mjs → migrate-guck0NJK.mjs} +3 -3
- package/dist/{migrate-CEzq6DjL.mjs.map → migrate-guck0NJK.mjs.map} +1 -1
- package/dist/{migrate-CYC-hBOU.cjs → migrate-qKeGYq21.cjs} +3 -3
- package/dist/{migrate-CYC-hBOU.cjs.map → migrate-qKeGYq21.cjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{ready-QGgjmcuN.cjs → ready-Dp6arkI4.cjs} +5 -5
- package/dist/ready-Dp6arkI4.cjs.map +1 -0
- package/dist/{ready-DeYaSoNN.mjs → ready-xpoX11uu.mjs} +5 -5
- package/dist/ready-xpoX11uu.mjs.map +1 -0
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-Dn5wGf1r.mjs → resolve-BsXEXAUz.mjs} +3 -3
- package/dist/{resolve-Dn5wGf1r.mjs.map → resolve-BsXEXAUz.mjs.map} +1 -1
- package/dist/{resolve-BDsMffvz.cjs → resolve-wEjEvbJ5.cjs} +3 -3
- package/dist/{resolve-BDsMffvz.cjs.map → resolve-wEjEvbJ5.cjs.map} +1 -1
- package/dist/{rollback-DDfaqv7P.mjs → rollback-Bk91csFg.mjs} +5 -5
- package/dist/{rollback-DDfaqv7P.mjs.map → rollback-Bk91csFg.mjs.map} +1 -1
- package/dist/{rollback-5XHaBDxW.cjs → rollback-DmcU-efZ.cjs} +5 -5
- package/dist/{rollback-5XHaBDxW.cjs.map → rollback-DmcU-efZ.cjs.map} +1 -1
- package/dist/{runtime-B3jNgeP-.d.mts → runtime-CYAO4iZG.d.cts} +2 -2
- package/dist/{runtime-B3jNgeP-.d.mts.map → runtime-CYAO4iZG.d.cts.map} +1 -1
- package/dist/{runtime-DWThEP-r.d.cts → runtime-DHJhe4QI.d.mts} +2 -2
- package/dist/{runtime-DWThEP-r.d.cts.map → runtime-DHJhe4QI.d.mts.map} +1 -1
- package/dist/{sniffer-Bc0nNBDF.cjs → sniffer-DpHpFZBD.cjs} +6 -6
- package/dist/sniffer-DpHpFZBD.cjs.map +1 -0
- package/dist/{sniffer-DMqi2b1q.mjs → sniffer-vAXsU_4G.mjs} +6 -6
- package/dist/sniffer-vAXsU_4G.mjs.map +1 -0
- package/dist/{state-DClnPZt5.mjs → state-BJFherj1.mjs} +60 -5
- package/dist/state-BJFherj1.mjs.map +1 -0
- package/dist/{state-8RgXeX5Y.cjs → state-CCuTJNRH.cjs} +71 -4
- package/dist/state-CCuTJNRH.cjs.map +1 -0
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +1 -1
- package/dist/{types-CZdCxUCK.d.cts → types-BD1jgA85.d.cts} +70 -2
- package/dist/types-BD1jgA85.d.cts.map +1 -0
- package/dist/{types-Da0E3Qv7.d.mts → types-DkG5WW8l.d.mts} +70 -2
- package/dist/types-DkG5WW8l.d.mts.map +1 -0
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +3 -3
- package/dist/workspace/index.d.mts +3 -3
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-B2UK_rVP.mjs → workspace-C7NqCsQF.mjs} +104 -2
- package/dist/workspace-C7NqCsQF.mjs.map +1 -0
- package/dist/{workspace-8NuAjaXJ.cjs → workspace-vdrcRI-m.cjs} +115 -1
- package/dist/workspace-vdrcRI-m.cjs.map +1 -0
- package/package.json +15 -15
- package/dist/OpenApiTsGenerator-CSaXs-dB.mjs.map +0 -1
- package/dist/OpenApiTsGenerator-CxB8mqXz.cjs.map +0 -1
- package/dist/bundler-CSR2nM4m.cjs.map +0 -1
- package/dist/bundler-Cn0JF5G0.mjs.map +0 -1
- package/dist/compose-CZtinmtw.mjs.map +0 -1
- package/dist/compose-DfIioFX0.cjs.map +0 -1
- package/dist/engine-BR9qlS7A.cjs.map +0 -1
- package/dist/ready-DeYaSoNN.mjs.map +0 -1
- package/dist/ready-QGgjmcuN.cjs.map +0 -1
- package/dist/sniffer-Bc0nNBDF.cjs.map +0 -1
- package/dist/sniffer-DMqi2b1q.mjs.map +0 -1
- package/dist/state-8RgXeX5Y.cjs.map +0 -1
- package/dist/state-DClnPZt5.mjs.map +0 -1
- package/dist/types-CZdCxUCK.d.cts.map +0 -1
- package/dist/types-Da0E3Qv7.d.mts.map +0 -1
- package/dist/workspace-8NuAjaXJ.cjs.map +0 -1
- package/dist/workspace-B2UK_rVP.mjs.map +0 -1
|
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
|
2
2
|
const require_run = require("./run-fVZ-rLnc.cjs");
|
|
3
3
|
const require_discover = require("./discover-B4VjaFJk.cjs");
|
|
4
4
|
const require_derive = require("./derive-DAbo49sm.cjs");
|
|
5
|
-
const require_workspace = require("./workspace-
|
|
5
|
+
const require_workspace = require("./workspace-vdrcRI-m.cjs");
|
|
6
6
|
const require_config = require("./config.cjs");
|
|
7
|
-
const require_resolve = require("./resolve-
|
|
7
|
+
const require_resolve = require("./resolve-wEjEvbJ5.cjs");
|
|
8
8
|
const require_fakes = require("./fakes-zW-jNAbQ.cjs");
|
|
9
9
|
let node_path = require("node:path");
|
|
10
10
|
let node_fs = require("node:fs");
|
|
@@ -12,8 +12,8 @@ let node_fs_promises = require("node:fs/promises");
|
|
|
12
12
|
let node_os = require("node:os");
|
|
13
13
|
let node_util = require("node:util");
|
|
14
14
|
let _geekmidas_manifest = require("@geekmidas/manifest");
|
|
15
|
-
let node_child_process = require("node:child_process");
|
|
16
15
|
let node_net = require("node:net");
|
|
16
|
+
let node_child_process = require("node:child_process");
|
|
17
17
|
let dotenv = require("dotenv");
|
|
18
18
|
let node_crypto = require("node:crypto");
|
|
19
19
|
let _geekmidas_constructs_encryption = require("@geekmidas/constructs/encryption");
|
|
@@ -2989,9 +2989,14 @@ function appEnvKeys(manifest, appName, runnables = {}) {
|
|
|
2989
2989
|
for (const id of edges) {
|
|
2990
2990
|
const target = manifest[id];
|
|
2991
2991
|
if (!target) continue;
|
|
2992
|
+
if (target.kind === "rest-api") {
|
|
2993
|
+
keys.add((0, _geekmidas_manifest.provideKey)(id, "url"));
|
|
2994
|
+
continue;
|
|
2995
|
+
}
|
|
2992
2996
|
for (const key of target.provides ?? []) keys.add(key);
|
|
2993
2997
|
if (target.kind === "queue" || target.kind === "topic") keys.add("EVENT_PUBLISHER_CONNECTION_STRING");
|
|
2994
2998
|
if (target.kind === "objects") {
|
|
2999
|
+
for (const other of Object.values(manifest)) if (other.kind === "file-server" && other.of === id) for (const key of other.provides ?? []) keys.add(key);
|
|
2995
3000
|
keys.add("AWS_ACCESS_KEY_ID");
|
|
2996
3001
|
keys.add("AWS_SECRET_ACCESS_KEY");
|
|
2997
3002
|
keys.add("AWS_REGION");
|
|
@@ -4860,6 +4865,56 @@ function reportDevServices(ctx, uses) {
|
|
|
4860
4865
|
}
|
|
4861
4866
|
}
|
|
4862
4867
|
//#endregion
|
|
4868
|
+
//#region src/deploy/otel.ts
|
|
4869
|
+
/**
|
|
4870
|
+
* The OpenTelemetry variables a stage's secrets pass to every backend.
|
|
4871
|
+
*
|
|
4872
|
+
* A production server starts OpenTelemetry when `OTEL_EXPORTER_OTLP_ENDPOINT`
|
|
4873
|
+
* is set (`generators/telemetry.ts`), and the SDK reads the rest of its
|
|
4874
|
+
* configuration from the standard `OTEL_*` variables. No construct declares
|
|
4875
|
+
* them — they say where the telemetry goes, not what the app is — so a target
|
|
4876
|
+
* that writes each backend only the keys it reads would never hand them over.
|
|
4877
|
+
* Every target that runs backends asks this module instead.
|
|
4878
|
+
*
|
|
4879
|
+
* Which keys pass is a pattern over the `OTEL_` prefix rather than the prefix
|
|
4880
|
+
* alone or a list:
|
|
4881
|
+
*
|
|
4882
|
+
* - The bare prefix would forward anything a stage happened to name `OTEL_*`
|
|
4883
|
+
* — `OTEL_LOG_LEVEL=debug`, `OTEL_SDK_DISABLED` — to every backend, without
|
|
4884
|
+
* anyone choosing to.
|
|
4885
|
+
* - A list would have to spell out the exporter's five settings once for all
|
|
4886
|
+
* signals and once per signal — twenty keys — and would miss the next one.
|
|
4887
|
+
*
|
|
4888
|
+
* The pattern names the families the server uses: the OTLP exporter's
|
|
4889
|
+
* endpoint, headers, protocol, timeout and compression, for every signal or
|
|
4890
|
+
* for one (`OTEL_EXPORTER_OTLP_LOGS_ENDPOINT`); sampling; and the resource's
|
|
4891
|
+
* identity.
|
|
4892
|
+
*
|
|
4893
|
+
* Sites get none of it: a site's environment is inlined into a bundle that
|
|
4894
|
+
* every browser downloads, and an exporter's headers are a credential.
|
|
4895
|
+
*/
|
|
4896
|
+
/** The `OTEL_*` variables a backend is handed from the stage's secrets. */
|
|
4897
|
+
const OTEL_PASSTHROUGH = /^OTEL_(?:EXPORTER_OTLP_(?:(?:TRACES|LOGS|METRICS)_)?(?:ENDPOINT|HEADERS|PROTOCOL|TIMEOUT|COMPRESSION)|TRACES_SAMPLER(?:_ARG)?|RESOURCE_ATTRIBUTES|SERVICE_NAME)$/;
|
|
4898
|
+
/** Whether a stage secret is one of the passed-through `OTEL_*` variables. */
|
|
4899
|
+
function isOtelVariable(key) {
|
|
4900
|
+
return OTEL_PASSTHROUGH.test(key);
|
|
4901
|
+
}
|
|
4902
|
+
/** Whether a variable says where an OTLP exporter sends, or how it signs. */
|
|
4903
|
+
function isOtlpDestination(key) {
|
|
4904
|
+
return /^OTEL_EXPORTER_OTLP_(?:(?:TRACES|LOGS|METRICS)_)?(?:ENDPOINT|HEADERS)$/.test(key);
|
|
4905
|
+
}
|
|
4906
|
+
/**
|
|
4907
|
+
* The `OTEL_*` variables one backend runs with: every one the stage's secrets
|
|
4908
|
+
* hold, and `OTEL_SERVICE_NAME` — the app's name — where the stage set
|
|
4909
|
+
* telemetry up without naming the service. Empty when the stage set none.
|
|
4910
|
+
*/
|
|
4911
|
+
function otelEnv(custom, app) {
|
|
4912
|
+
const env = {};
|
|
4913
|
+
for (const [key, value] of Object.entries(custom)) if (isOtelVariable(key) && value !== "") env[key] = value;
|
|
4914
|
+
if (Object.keys(env).length > 0 && !env.OTEL_SERVICE_NAME) env.OTEL_SERVICE_NAME = app;
|
|
4915
|
+
return env;
|
|
4916
|
+
}
|
|
4917
|
+
//#endregion
|
|
4863
4918
|
//#region src/target/dokploy/domain.ts
|
|
4864
4919
|
/** A stage was deployed that `deploy.domains` gives no domain. */
|
|
4865
4920
|
var NoDomainForStage = class extends Error {
|
|
@@ -6026,6 +6081,12 @@ Object.defineProperty(exports, "isMainFrontendApp", {
|
|
|
6026
6081
|
return isMainFrontendApp;
|
|
6027
6082
|
}
|
|
6028
6083
|
});
|
|
6084
|
+
Object.defineProperty(exports, "isOtlpDestination", {
|
|
6085
|
+
enumerable: true,
|
|
6086
|
+
get: function() {
|
|
6087
|
+
return isOtlpDestination;
|
|
6088
|
+
}
|
|
6089
|
+
});
|
|
6029
6090
|
Object.defineProperty(exports, "isOwnedBy", {
|
|
6030
6091
|
enumerable: true,
|
|
6031
6092
|
get: function() {
|
|
@@ -6098,6 +6159,12 @@ Object.defineProperty(exports, "networkEnv", {
|
|
|
6098
6159
|
return networkEnv;
|
|
6099
6160
|
}
|
|
6100
6161
|
});
|
|
6162
|
+
Object.defineProperty(exports, "otelEnv", {
|
|
6163
|
+
enumerable: true,
|
|
6164
|
+
get: function() {
|
|
6165
|
+
return otelEnv;
|
|
6166
|
+
}
|
|
6167
|
+
});
|
|
6101
6168
|
Object.defineProperty(exports, "ownershipMarker", {
|
|
6102
6169
|
enumerable: true,
|
|
6103
6170
|
get: function() {
|
|
@@ -6321,4 +6388,4 @@ Object.defineProperty(exports, "workspace_exports", {
|
|
|
6321
6388
|
}
|
|
6322
6389
|
});
|
|
6323
6390
|
|
|
6324
|
-
//# sourceMappingURL=state-
|
|
6391
|
+
//# sourceMappingURL=state-CCuTJNRH.cjs.map
|