@jaypie/constructs 1.2.63 → 1.2.65

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/esm/index.js CHANGED
@@ -74,8 +74,8 @@ const CDK$2 = {
74
74
  SITE: "datadoghq.com",
75
75
  LAYER: {
76
76
  // https://docs.datadoghq.com/meta/latest-lambda-layer-version.json
77
- NODE: 131, // 127 on 9/12/2025
78
- EXTENSION: 86, // 86 on 9/12/2025
77
+ NODE: 139, // 139 on 6/17/2026
78
+ EXTENSION: 97, // 97 on 6/17/2026
79
79
  },
80
80
  },
81
81
  DEFAULT: {
@@ -758,6 +758,19 @@ function jaypieLambdaEnv(options = {}) {
758
758
  environment[envVar] = process.env[envVar];
759
759
  }
760
760
  });
761
+ // Datadog LLM Observability: pass through DD_LLMOBS_ENABLED if set, and
762
+ // DD_LLMOBS_ML_APP unless observability is explicitly disabled. Explicit
763
+ // initialEnvironment values win over process.env, including for the gate.
764
+ if (process.env.DD_LLMOBS_ENABLED && !environment.DD_LLMOBS_ENABLED) {
765
+ environment.DD_LLMOBS_ENABLED = process.env.DD_LLMOBS_ENABLED;
766
+ }
767
+ const llmObsDisabled = environment.DD_LLMOBS_ENABLED === "false" ||
768
+ environment.DD_LLMOBS_ENABLED === "0";
769
+ if (process.env.DD_LLMOBS_ML_APP &&
770
+ !llmObsDisabled &&
771
+ !environment.DD_LLMOBS_ML_APP) {
772
+ environment.DD_LLMOBS_ML_APP = process.env.DD_LLMOBS_ML_APP;
773
+ }
761
774
  return environment;
762
775
  }
763
776
 
@@ -1109,16 +1122,18 @@ class JaypieEnvSecret extends JaypieSecret {
1109
1122
  super(scope, idOrEnvKey, props);
1110
1123
  }
1111
1124
  buildSecret(context) {
1112
- const { envKey, id, treatAsEnvKey } = context;
1125
+ const { envKey, id } = context;
1113
1126
  const props = context.props;
1114
1127
  const { consumer = checkEnvIsConsumer$1(), export: exportParam, generateSecretString, provider = checkEnvIsProvider$1(), removalPolicy, roleTag, vendorTag, value, } = props;
1115
1128
  let exportName;
1116
1129
  if (!exportParam) {
1117
- // When shorthand detection is active, use the full construct id (which
1118
- // includes the "EnvSecret_" prefix) so the export name matches what was
1119
- // produced by earlier versions of this construct. Using the raw envKey
1120
- // here produces a shorter name that breaks existing cross-stack imports.
1121
- const exportSource = treatAsEnvKey ? id : envKey || id;
1130
+ // Always derive the export name from the construct id so the name is
1131
+ // stable across both call forms. For shorthand detection the id carries
1132
+ // the "EnvSecret_" prefix; for the explicit (id, { envKey }) form the id
1133
+ // is the caller's construct id. Deriving from envKey instead would change
1134
+ // the export name for an unchanged explicit-form call site across a
1135
+ // version bump and break existing cross-stack imports (issues #347, #365).
1136
+ const exportSource = id;
1122
1137
  exportName = exportEnvName$1(exportSource, process.env, consumer);
1123
1138
  }
1124
1139
  else {