@rheonic/sdk 0.1.0-beta.14 → 0.1.0-beta.15

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.
@@ -3,6 +3,7 @@ export type ProtectFailMode = "open" | "closed";
3
3
  export interface ProtectContext {
4
4
  provider: string;
5
5
  requested_model?: string | null;
6
+ environment?: string;
6
7
  feature?: string;
7
8
  max_output_tokens?: number;
8
9
  input_tokens_estimate?: number;
@@ -242,6 +242,9 @@ function sanitizeProtectContext(context) {
242
242
  if (context.requested_model != null) {
243
243
  payload.requested_model = context.requested_model;
244
244
  }
245
+ if (context.environment != null) {
246
+ payload.environment = context.environment;
247
+ }
245
248
  if (context.feature != null) {
246
249
  payload.feature = context.feature;
247
250
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rheonic/sdk",
3
- "version": "0.1.0-beta.14",
3
+ "version": "0.1.0-beta.15",
4
4
  "description": "Node.js SDK for Rheonic observability and protect preflight enforcement.",
5
5
  "author": "Rheonic <founder@rheonic.dev>",
6
6
  "license": "MIT",