@granular-software/sdk 0.4.39 → 0.4.41
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/agent-evals.js +4 -1
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +4 -1
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/cli/index.js +4 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/agent-evals.js
CHANGED
|
@@ -11734,6 +11734,9 @@ var filterByMetamodelPackage = defineMetamodelPackage({
|
|
|
11734
11734
|
propertyFields: [`filter_by { scalar_type operators }`]
|
|
11735
11735
|
},
|
|
11736
11736
|
readPropertySummary(rawProperty) {
|
|
11737
|
+
if (rawProperty.filterBy === false || rawProperty.filter_by_disabled === true) {
|
|
11738
|
+
return { filterBy: false };
|
|
11739
|
+
}
|
|
11737
11740
|
const operators = Array.isArray(rawProperty.filter_by?.operators) ? rawProperty.filter_by.operators.filter(
|
|
11738
11741
|
(value) => typeof value === "string" && value.length > 0
|
|
11739
11742
|
) : [];
|
|
@@ -11746,7 +11749,7 @@ var filterByMetamodelPackage = defineMetamodelPackage({
|
|
|
11746
11749
|
},
|
|
11747
11750
|
domain: {
|
|
11748
11751
|
applyToPropertyIR(propertyIR, propertySummary) {
|
|
11749
|
-
const operators = propertySummary.filterBy
|
|
11752
|
+
const operators = propertySummary.filterBy && typeof propertySummary.filterBy === "object" ? propertySummary.filterBy.operators || [] : [];
|
|
11750
11753
|
if (operators.length === 0) return propertyIR;
|
|
11751
11754
|
return {
|
|
11752
11755
|
...propertyIR,
|