@geekmidas/cli 10.0.0-alpha.69 → 10.0.0-alpha.70
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-BYD9EcJi.mjs} +43 -12
- package/dist/OpenApiTsGenerator-BYD9EcJi.mjs.map +1 -0
- package/dist/{OpenApiTsGenerator-CxB8mqXz.cjs → OpenApiTsGenerator-CpRWM0N6.cjs} +43 -12
- package/dist/OpenApiTsGenerator-CpRWM0N6.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-Dzk23476.mjs → add-BuviRszv.mjs} +3 -3
- package/dist/{add-Dzk23476.mjs.map → add-BuviRszv.mjs.map} +1 -1
- package/dist/{add-CoIr2wgv.cjs → add-DHIk61nK.cjs} +3 -3
- package/dist/{add-CoIr2wgv.cjs.map → add-DHIk61nK.cjs.map} +1 -1
- package/dist/{bundler-CSR2nM4m.cjs → bundler-D7dcJVgj.cjs} +5 -5
- package/dist/{bundler-CSR2nM4m.cjs.map → bundler-D7dcJVgj.cjs.map} +1 -1
- package/dist/{bundler-Cn0JF5G0.mjs → bundler-DJlsYzm7.mjs} +5 -5
- package/dist/{bundler-Cn0JF5G0.mjs.map → bundler-DJlsYzm7.mjs.map} +1 -1
- package/dist/{cli-IoM2-x48.cjs → cli-7zCum6uN.cjs} +3 -3
- package/dist/{cli-IoM2-x48.cjs.map → cli-7zCum6uN.cjs.map} +1 -1
- package/dist/{cli-ij8Lwlww.mjs → cli-BjnqVnE6.mjs} +3 -3
- package/dist/{cli-ij8Lwlww.mjs.map → cli-BjnqVnE6.mjs.map} +1 -1
- package/dist/{compose-DfIioFX0.cjs → compose-BJYHmuvx.cjs} +358 -16
- package/dist/compose-BJYHmuvx.cjs.map +1 -0
- package/dist/{compose-CZtinmtw.mjs → compose-CByVaaeR.mjs} +353 -17
- package/dist/compose-CByVaaeR.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--ZU9gOOa.cjs} +5 -5
- package/dist/{deploy-Dpz9raPM.cjs.map → deploy--ZU9gOOa.cjs.map} +1 -1
- package/dist/{deploy-BzqbkJ3o.mjs → deploy-CCSGr7be.mjs} +5 -5
- package/dist/{deploy-BzqbkJ3o.mjs.map → deploy-CCSGr7be.mjs.map} +1 -1
- package/dist/{dokploy-B6O-J1fb.cjs → dokploy-BOupc9PK.cjs} +2 -2
- package/dist/{dokploy-B6O-J1fb.cjs.map → dokploy-BOupc9PK.cjs.map} +1 -1
- package/dist/{dokploy-DkwcORbv.mjs → dokploy-Bskfn1g5.mjs} +2 -2
- package/dist/{dokploy-DkwcORbv.mjs.map → dokploy-Bskfn1g5.mjs.map} +1 -1
- package/dist/{encryption-C8Ic5t0C.cjs → encryption-D-VkoJG4.cjs} +3 -3
- package/dist/{encryption-C8Ic5t0C.cjs.map → encryption-D-VkoJG4.cjs.map} +1 -1
- package/dist/{encryption-7m1mKcRy.mjs → encryption-DR-py9GX.mjs} +3 -3
- package/dist/{encryption-7m1mKcRy.mjs.map → encryption-DR-py9GX.mjs.map} +1 -1
- package/dist/{engine-BR9qlS7A.cjs → engine-Da8dBxt5.cjs} +6 -5
- package/dist/engine-Da8dBxt5.cjs.map +1 -0
- package/dist/{engine-62Kl70Pj.mjs → engine-Xbv8NNdX.mjs} +6 -5
- package/dist/{engine-62Kl70Pj.mjs.map → engine-Xbv8NNdX.mjs.map} +1 -1
- package/dist/{github-DtymyOcH.mjs → github-D2pYzY7L.mjs} +3 -3
- package/dist/{github-DtymyOcH.mjs.map → github-D2pYzY7L.mjs.map} +1 -1
- package/dist/{github-CmGIZjhu.cjs → github-DeXzs11c.cjs} +3 -3
- package/dist/{github-CmGIZjhu.cjs.map → github-DeXzs11c.cjs.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 +48 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +48 -46
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-CYC-hBOU.cjs → migrate-BURDS8vy.cjs} +3 -3
- package/dist/{migrate-CYC-hBOU.cjs.map → migrate-BURDS8vy.cjs.map} +1 -1
- package/dist/{migrate-CEzq6DjL.mjs → migrate-DiJT84g9.mjs} +3 -3
- package/dist/{migrate-CEzq6DjL.mjs.map → migrate-DiJT84g9.mjs.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-C-qNcux-.cjs} +2 -2
- package/dist/{ready-QGgjmcuN.cjs.map → ready-C-qNcux-.cjs.map} +1 -1
- package/dist/{ready-DeYaSoNN.mjs → ready-CfIiMts4.mjs} +2 -2
- package/dist/{ready-DeYaSoNN.mjs.map → ready-CfIiMts4.mjs.map} +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-BDsMffvz.cjs → resolve-B7jJQmTo.cjs} +3 -3
- package/dist/{resolve-BDsMffvz.cjs.map → resolve-B7jJQmTo.cjs.map} +1 -1
- package/dist/{resolve-Dn5wGf1r.mjs → resolve-Dj5TQKoD.mjs} +3 -3
- package/dist/{resolve-Dn5wGf1r.mjs.map → resolve-Dj5TQKoD.mjs.map} +1 -1
- package/dist/{rollback-DDfaqv7P.mjs → rollback-Bw9kESjz.mjs} +5 -5
- package/dist/{rollback-DDfaqv7P.mjs.map → rollback-Bw9kESjz.mjs.map} +1 -1
- package/dist/{rollback-5XHaBDxW.cjs → rollback-DNK1HEHY.cjs} +5 -5
- package/dist/{rollback-5XHaBDxW.cjs.map → rollback-DNK1HEHY.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-527OmqvN.mjs} +55 -5
- package/dist/state-527OmqvN.mjs.map +1 -0
- package/dist/{state-8RgXeX5Y.cjs → state-nS6I6s4u.cjs} +66 -4
- package/dist/state-nS6I6s4u.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/compose-CZtinmtw.mjs.map +0 -1
- package/dist/compose-DfIioFX0.cjs.map +0 -1
- package/dist/engine-BR9qlS7A.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-B7jJQmTo.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");
|
|
@@ -4860,6 +4860,56 @@ function reportDevServices(ctx, uses) {
|
|
|
4860
4860
|
}
|
|
4861
4861
|
}
|
|
4862
4862
|
//#endregion
|
|
4863
|
+
//#region src/deploy/otel.ts
|
|
4864
|
+
/**
|
|
4865
|
+
* The OpenTelemetry variables a stage's secrets pass to every backend.
|
|
4866
|
+
*
|
|
4867
|
+
* A production server starts OpenTelemetry when `OTEL_EXPORTER_OTLP_ENDPOINT`
|
|
4868
|
+
* is set (`generators/telemetry.ts`), and the SDK reads the rest of its
|
|
4869
|
+
* configuration from the standard `OTEL_*` variables. No construct declares
|
|
4870
|
+
* them — they say where the telemetry goes, not what the app is — so a target
|
|
4871
|
+
* that writes each backend only the keys it reads would never hand them over.
|
|
4872
|
+
* Every target that runs backends asks this module instead.
|
|
4873
|
+
*
|
|
4874
|
+
* Which keys pass is a pattern over the `OTEL_` prefix rather than the prefix
|
|
4875
|
+
* alone or a list:
|
|
4876
|
+
*
|
|
4877
|
+
* - The bare prefix would forward anything a stage happened to name `OTEL_*`
|
|
4878
|
+
* — `OTEL_LOG_LEVEL=debug`, `OTEL_SDK_DISABLED` — to every backend, without
|
|
4879
|
+
* anyone choosing to.
|
|
4880
|
+
* - A list would have to spell out the exporter's five settings once for all
|
|
4881
|
+
* signals and once per signal — twenty keys — and would miss the next one.
|
|
4882
|
+
*
|
|
4883
|
+
* The pattern names the families the server uses: the OTLP exporter's
|
|
4884
|
+
* endpoint, headers, protocol, timeout and compression, for every signal or
|
|
4885
|
+
* for one (`OTEL_EXPORTER_OTLP_LOGS_ENDPOINT`); sampling; and the resource's
|
|
4886
|
+
* identity.
|
|
4887
|
+
*
|
|
4888
|
+
* Sites get none of it: a site's environment is inlined into a bundle that
|
|
4889
|
+
* every browser downloads, and an exporter's headers are a credential.
|
|
4890
|
+
*/
|
|
4891
|
+
/** The `OTEL_*` variables a backend is handed from the stage's secrets. */
|
|
4892
|
+
const OTEL_PASSTHROUGH = /^OTEL_(?:EXPORTER_OTLP_(?:(?:TRACES|LOGS|METRICS)_)?(?:ENDPOINT|HEADERS|PROTOCOL|TIMEOUT|COMPRESSION)|TRACES_SAMPLER(?:_ARG)?|RESOURCE_ATTRIBUTES|SERVICE_NAME)$/;
|
|
4893
|
+
/** Whether a stage secret is one of the passed-through `OTEL_*` variables. */
|
|
4894
|
+
function isOtelVariable(key) {
|
|
4895
|
+
return OTEL_PASSTHROUGH.test(key);
|
|
4896
|
+
}
|
|
4897
|
+
/** Whether a variable says where an OTLP exporter sends, or how it signs. */
|
|
4898
|
+
function isOtlpDestination(key) {
|
|
4899
|
+
return /^OTEL_EXPORTER_OTLP_(?:(?:TRACES|LOGS|METRICS)_)?(?:ENDPOINT|HEADERS)$/.test(key);
|
|
4900
|
+
}
|
|
4901
|
+
/**
|
|
4902
|
+
* The `OTEL_*` variables one backend runs with: every one the stage's secrets
|
|
4903
|
+
* hold, and `OTEL_SERVICE_NAME` — the app's name — where the stage set
|
|
4904
|
+
* telemetry up without naming the service. Empty when the stage set none.
|
|
4905
|
+
*/
|
|
4906
|
+
function otelEnv(custom, app) {
|
|
4907
|
+
const env = {};
|
|
4908
|
+
for (const [key, value] of Object.entries(custom)) if (isOtelVariable(key) && value !== "") env[key] = value;
|
|
4909
|
+
if (Object.keys(env).length > 0 && !env.OTEL_SERVICE_NAME) env.OTEL_SERVICE_NAME = app;
|
|
4910
|
+
return env;
|
|
4911
|
+
}
|
|
4912
|
+
//#endregion
|
|
4863
4913
|
//#region src/target/dokploy/domain.ts
|
|
4864
4914
|
/** A stage was deployed that `deploy.domains` gives no domain. */
|
|
4865
4915
|
var NoDomainForStage = class extends Error {
|
|
@@ -6026,6 +6076,12 @@ Object.defineProperty(exports, "isMainFrontendApp", {
|
|
|
6026
6076
|
return isMainFrontendApp;
|
|
6027
6077
|
}
|
|
6028
6078
|
});
|
|
6079
|
+
Object.defineProperty(exports, "isOtlpDestination", {
|
|
6080
|
+
enumerable: true,
|
|
6081
|
+
get: function() {
|
|
6082
|
+
return isOtlpDestination;
|
|
6083
|
+
}
|
|
6084
|
+
});
|
|
6029
6085
|
Object.defineProperty(exports, "isOwnedBy", {
|
|
6030
6086
|
enumerable: true,
|
|
6031
6087
|
get: function() {
|
|
@@ -6098,6 +6154,12 @@ Object.defineProperty(exports, "networkEnv", {
|
|
|
6098
6154
|
return networkEnv;
|
|
6099
6155
|
}
|
|
6100
6156
|
});
|
|
6157
|
+
Object.defineProperty(exports, "otelEnv", {
|
|
6158
|
+
enumerable: true,
|
|
6159
|
+
get: function() {
|
|
6160
|
+
return otelEnv;
|
|
6161
|
+
}
|
|
6162
|
+
});
|
|
6101
6163
|
Object.defineProperty(exports, "ownershipMarker", {
|
|
6102
6164
|
enumerable: true,
|
|
6103
6165
|
get: function() {
|
|
@@ -6321,4 +6383,4 @@ Object.defineProperty(exports, "workspace_exports", {
|
|
|
6321
6383
|
}
|
|
6322
6384
|
});
|
|
6323
6385
|
|
|
6324
|
-
//# sourceMappingURL=state-
|
|
6386
|
+
//# sourceMappingURL=state-nS6I6s4u.cjs.map
|