@lightdash-tools/common 0.2.1 → 0.2.5

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/safety.js CHANGED
@@ -52,7 +52,7 @@ function isAllowed(mode, annotations) {
52
52
  * Resolves safety mode from environment variable.
53
53
  */
54
54
  function getSafetyModeFromEnv() {
55
- const mode = process.env.LIGHTDASH_AI_MODE;
55
+ const mode = process.env.LIGHTDASH_TOOL_SAFETY_MODE;
56
56
  if (Object.values(SafetyMode).includes(mode)) {
57
57
  return mode;
58
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash-tools/common",
3
- "version": "0.2.1",
3
+ "version": "0.2.5",
4
4
  "description": "Shared utilities and types for Lightdash AI.",
5
5
  "keywords": [],
6
6
  "license": "Apache-2.0",
package/src/safety.ts CHANGED
@@ -63,7 +63,7 @@ export function isAllowed(mode: SafetyMode | string, annotations: ToolAnnotation
63
63
  * Resolves safety mode from environment variable.
64
64
  */
65
65
  export function getSafetyModeFromEnv(): SafetyMode {
66
- const mode = process.env.LIGHTDASH_AI_MODE;
66
+ const mode = process.env.LIGHTDASH_TOOL_SAFETY_MODE;
67
67
  if (Object.values(SafetyMode).includes(mode as SafetyMode)) {
68
68
  return mode as SafetyMode;
69
69
  }