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.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/native-lib/libsuperposition_core-aarch64-apple-darwin.dylib +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-apple-darwin.dylib +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-pc-windows-msvc.dll +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-unknown-linux-gnu.so +0 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -15515,7 +15515,7 @@ class NativeResolver {
|
|
|
15515
15515
|
this.lib.core_free_string = this.lib.func("void core_free_string(char*)");
|
|
15516
15516
|
this.lib.core_last_error_message = this.lib.func("char* core_last_error_message()");
|
|
15517
15517
|
this.lib.core_last_error_length = this.lib.func("int core_last_error_length()");
|
|
15518
|
-
this.lib.core_get_applicable_variants = this.lib.func("char* core_get_applicable_variants(const char*, const char*, const char*, const char*)");
|
|
15518
|
+
this.lib.core_get_applicable_variants = this.lib.func("char* core_get_applicable_variants(const char*, const char*, const char*, const char*, const char*)");
|
|
15519
15519
|
this.lib.core_test_connection = this.lib.func("int core_test_connection()");
|
|
15520
15520
|
this.isAvailable = true;
|
|
15521
15521
|
}
|
|
@@ -15641,7 +15641,7 @@ class NativeResolver {
|
|
|
15641
15641
|
throw new Error(`Failed to parse reasoning evaluation result: ${parseError}`);
|
|
15642
15642
|
}
|
|
15643
15643
|
}
|
|
15644
|
-
getApplicableVariants(experiments, userContext, identifier, filterPrefixes = []) {
|
|
15644
|
+
getApplicableVariants(experiments, dimensions, userContext, identifier, filterPrefixes = []) {
|
|
15645
15645
|
if (!this.isAvailable) {
|
|
15646
15646
|
throw new Error("Native resolver is not available. Please ensure the native library is built and accessible.");
|
|
15647
15647
|
}
|
|
@@ -15653,13 +15653,14 @@ class NativeResolver {
|
|
|
15653
15653
|
}
|
|
15654
15654
|
const experimentsJson = JSON.stringify(experiments);
|
|
15655
15655
|
const userContextJson = JSON.stringify(userContext);
|
|
15656
|
+
const dimensionsJson = JSON.stringify(dimensions);
|
|
15656
15657
|
const filterPrefixesJson = filterPrefixes.length > 0 ? JSON.stringify(filterPrefixes) : null;
|
|
15657
15658
|
console.log("🔧 Calling FFI getApplicableVariants with parameters:");
|
|
15658
15659
|
console.log(" experiments:", experiments);
|
|
15659
15660
|
console.log(" userContext:", userContext);
|
|
15660
15661
|
console.log(" identifier:", identifier);
|
|
15661
15662
|
console.log(" filterPrefixes:", filterPrefixes);
|
|
15662
|
-
const result = this.lib.core_get_applicable_variants(experimentsJson, userContextJson, identifier, filterPrefixesJson);
|
|
15663
|
+
const result = this.lib.core_get_applicable_variants(experimentsJson, dimensionsJson, userContextJson, identifier, filterPrefixesJson);
|
|
15663
15664
|
console.log("FFI getApplicableVariants call completed, result:", result);
|
|
15664
15665
|
if (!result) {
|
|
15665
15666
|
this.throwLastError("Failed to get applicable variants");
|