superposition-provider 0.91.1 → 0.91.2

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/index.js CHANGED
@@ -15518,7 +15518,7 @@ class NativeResolver {
15518
15518
  this.lib.core_free_string = this.lib.func("void core_free_string(char*)");
15519
15519
  this.lib.core_last_error_message = this.lib.func("char* core_last_error_message()");
15520
15520
  this.lib.core_last_error_length = this.lib.func("int core_last_error_length()");
15521
- this.lib.core_get_applicable_variants = this.lib.func("char* core_get_applicable_variants(const char*, const char*, const char*, const char*)");
15521
+ this.lib.core_get_applicable_variants = this.lib.func("char* core_get_applicable_variants(const char*, const char*, const char*, const char*, const char*)");
15522
15522
  this.lib.core_test_connection = this.lib.func("int core_test_connection()");
15523
15523
  this.isAvailable = true;
15524
15524
  }
@@ -15644,7 +15644,7 @@ class NativeResolver {
15644
15644
  throw new Error(`Failed to parse reasoning evaluation result: ${parseError}`);
15645
15645
  }
15646
15646
  }
15647
- getApplicableVariants(experiments, userContext, identifier, filterPrefixes = []) {
15647
+ getApplicableVariants(experiments, dimensions, userContext, identifier, filterPrefixes = []) {
15648
15648
  if (!this.isAvailable) {
15649
15649
  throw new Error("Native resolver is not available. Please ensure the native library is built and accessible.");
15650
15650
  }
@@ -15656,13 +15656,14 @@ class NativeResolver {
15656
15656
  }
15657
15657
  const experimentsJson = JSON.stringify(experiments);
15658
15658
  const userContextJson = JSON.stringify(userContext);
15659
+ const dimensionsJson = JSON.stringify(dimensions);
15659
15660
  const filterPrefixesJson = filterPrefixes.length > 0 ? JSON.stringify(filterPrefixes) : null;
15660
15661
  console.log("🔧 Calling FFI getApplicableVariants with parameters:");
15661
15662
  console.log(" experiments:", experiments);
15662
15663
  console.log(" userContext:", userContext);
15663
15664
  console.log(" identifier:", identifier);
15664
15665
  console.log(" filterPrefixes:", filterPrefixes);
15665
- const result = this.lib.core_get_applicable_variants(experimentsJson, userContextJson, identifier, filterPrefixesJson);
15666
+ const result = this.lib.core_get_applicable_variants(experimentsJson, dimensionsJson, userContextJson, identifier, filterPrefixesJson);
15666
15667
  console.log("FFI getApplicableVariants call completed, result:", result);
15667
15668
  if (!result) {
15668
15669
  this.throwLastError("Failed to get applicable variants");