@kortexya/reasoninglayer 0.15.1 → 0.15.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.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -4
- package/dist/index.d.ts +34 -4
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
|
|
|
109
109
|
* This is the single source of truth for the version constant.
|
|
110
110
|
* The `scripts/release.sh` script updates this value alongside `package.json`.
|
|
111
111
|
*/
|
|
112
|
-
declare const SDK_VERSION = "0.15.
|
|
112
|
+
declare const SDK_VERSION = "0.15.2";
|
|
113
113
|
/**
|
|
114
114
|
* Configuration for the Reasoning Layer client.
|
|
115
115
|
*
|
|
@@ -6086,6 +6086,8 @@ type FeatureConstraintDto = {
|
|
|
6086
6086
|
};
|
|
6087
6087
|
/** API representation of a feature descriptor */
|
|
6088
6088
|
interface FeatureDescriptorDto$1 {
|
|
6089
|
+
/** Custom OWL annotations for this feature (e.g., isIdentifier, unit, enumValues) */
|
|
6090
|
+
annotations?: Record<string, string>;
|
|
6089
6091
|
/** Optional constraint on the feature value */
|
|
6090
6092
|
constraint?: null | ConstraintDto$1;
|
|
6091
6093
|
/**
|
|
@@ -14199,6 +14201,8 @@ interface SortDiscoveryResponseDto {
|
|
|
14199
14201
|
}
|
|
14200
14202
|
/** API representation of a sort with full OSF schema */
|
|
14201
14203
|
interface SortDto$1 {
|
|
14204
|
+
/** Custom OWL annotations (e.g., icon, color) */
|
|
14205
|
+
annotations?: Record<string, string>;
|
|
14202
14206
|
/** Bound constraints on feature values */
|
|
14203
14207
|
bound_constraints?: BoundConstraintDto$1[];
|
|
14204
14208
|
/** Human-readable description for semantic search */
|
|
@@ -16178,6 +16182,15 @@ interface VariableFeasibilityDto$1 {
|
|
|
16178
16182
|
* is 1 (selected / true).
|
|
16179
16183
|
*/
|
|
16180
16184
|
can_be_true: boolean;
|
|
16185
|
+
/**
|
|
16186
|
+
* `true` if this variable's feasibility was fully determined by the solver.
|
|
16187
|
+
* `false` if the solver hit a conflict limit before resolving this variable
|
|
16188
|
+
* — in that case, `can_be_true` and `can_be_false` are conservative
|
|
16189
|
+
* approximations (both may be `true` even if the variable is actually
|
|
16190
|
+
* confirmed). The frontend can show unverified variables differently
|
|
16191
|
+
* (e.g. yellow/amber) so the user knows the result is approximate.
|
|
16192
|
+
*/
|
|
16193
|
+
verified?: boolean;
|
|
16181
16194
|
}
|
|
16182
16195
|
/** Result of verbalizing a single PsiTerm. */
|
|
16183
16196
|
interface VerbalizationResultDto$1 {
|
|
@@ -30876,14 +30889,31 @@ type SearchModeDto = 'solutions' | 'feasibility';
|
|
|
30876
30889
|
*
|
|
30877
30890
|
* @remarks
|
|
30878
30891
|
* Produced by `mode = "feasibility"` search.
|
|
30879
|
-
* - `canBeTrue = true` means
|
|
30892
|
+
* - `canBeTrue = true` means the solver actually observed a valid assignment
|
|
30893
|
+
* with this variable = 1 (a witnessed model).
|
|
30894
|
+
* - `canBeFalse = true` means the solver observed a valid assignment with
|
|
30895
|
+
* this variable = 0.
|
|
30880
30896
|
* - `canBeTrue = false && canBeFalse = false` means the problem is UNSAT.
|
|
30897
|
+
*
|
|
30898
|
+
* When the underlying solver hits a conflict/time budget before the opposite
|
|
30899
|
+
* polarity could be proven (im)feasible, `verified` is `false` and the
|
|
30900
|
+
* reachability fields reflect only the polarities that were actually
|
|
30901
|
+
* witnessed. For example, `(canBeTrue: true, canBeFalse: false,
|
|
30902
|
+
* verified: false)` means "observed in every model found so far, never
|
|
30903
|
+
* observed as 0 — likely required, but the solver did not complete the
|
|
30904
|
+
* UNSAT-for-0 probe to certify it."
|
|
30881
30905
|
*/
|
|
30882
30906
|
interface VariableFeasibilityDto {
|
|
30883
|
-
/** True if
|
|
30907
|
+
/** True if the solver witnessed a valid assignment where this variable is 1. */
|
|
30884
30908
|
canBeTrue: boolean;
|
|
30885
|
-
/** True if
|
|
30909
|
+
/** True if the solver witnessed a valid assignment where this variable is 0. */
|
|
30886
30910
|
canBeFalse: boolean;
|
|
30911
|
+
/**
|
|
30912
|
+
* True when the reachability result is fully determined by the solver
|
|
30913
|
+
* (both polarities resolved). False when a conflict/time limit was hit
|
|
30914
|
+
* and the result reflects only the polarities that were observed.
|
|
30915
|
+
*/
|
|
30916
|
+
verified: boolean;
|
|
30887
30917
|
}
|
|
30888
30918
|
/**
|
|
30889
30919
|
* Request to search for solutions.
|
package/dist/index.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
|
|
|
109
109
|
* This is the single source of truth for the version constant.
|
|
110
110
|
* The `scripts/release.sh` script updates this value alongside `package.json`.
|
|
111
111
|
*/
|
|
112
|
-
declare const SDK_VERSION = "0.15.
|
|
112
|
+
declare const SDK_VERSION = "0.15.2";
|
|
113
113
|
/**
|
|
114
114
|
* Configuration for the Reasoning Layer client.
|
|
115
115
|
*
|
|
@@ -6086,6 +6086,8 @@ type FeatureConstraintDto = {
|
|
|
6086
6086
|
};
|
|
6087
6087
|
/** API representation of a feature descriptor */
|
|
6088
6088
|
interface FeatureDescriptorDto$1 {
|
|
6089
|
+
/** Custom OWL annotations for this feature (e.g., isIdentifier, unit, enumValues) */
|
|
6090
|
+
annotations?: Record<string, string>;
|
|
6089
6091
|
/** Optional constraint on the feature value */
|
|
6090
6092
|
constraint?: null | ConstraintDto$1;
|
|
6091
6093
|
/**
|
|
@@ -14199,6 +14201,8 @@ interface SortDiscoveryResponseDto {
|
|
|
14199
14201
|
}
|
|
14200
14202
|
/** API representation of a sort with full OSF schema */
|
|
14201
14203
|
interface SortDto$1 {
|
|
14204
|
+
/** Custom OWL annotations (e.g., icon, color) */
|
|
14205
|
+
annotations?: Record<string, string>;
|
|
14202
14206
|
/** Bound constraints on feature values */
|
|
14203
14207
|
bound_constraints?: BoundConstraintDto$1[];
|
|
14204
14208
|
/** Human-readable description for semantic search */
|
|
@@ -16178,6 +16182,15 @@ interface VariableFeasibilityDto$1 {
|
|
|
16178
16182
|
* is 1 (selected / true).
|
|
16179
16183
|
*/
|
|
16180
16184
|
can_be_true: boolean;
|
|
16185
|
+
/**
|
|
16186
|
+
* `true` if this variable's feasibility was fully determined by the solver.
|
|
16187
|
+
* `false` if the solver hit a conflict limit before resolving this variable
|
|
16188
|
+
* — in that case, `can_be_true` and `can_be_false` are conservative
|
|
16189
|
+
* approximations (both may be `true` even if the variable is actually
|
|
16190
|
+
* confirmed). The frontend can show unverified variables differently
|
|
16191
|
+
* (e.g. yellow/amber) so the user knows the result is approximate.
|
|
16192
|
+
*/
|
|
16193
|
+
verified?: boolean;
|
|
16181
16194
|
}
|
|
16182
16195
|
/** Result of verbalizing a single PsiTerm. */
|
|
16183
16196
|
interface VerbalizationResultDto$1 {
|
|
@@ -30876,14 +30889,31 @@ type SearchModeDto = 'solutions' | 'feasibility';
|
|
|
30876
30889
|
*
|
|
30877
30890
|
* @remarks
|
|
30878
30891
|
* Produced by `mode = "feasibility"` search.
|
|
30879
|
-
* - `canBeTrue = true` means
|
|
30892
|
+
* - `canBeTrue = true` means the solver actually observed a valid assignment
|
|
30893
|
+
* with this variable = 1 (a witnessed model).
|
|
30894
|
+
* - `canBeFalse = true` means the solver observed a valid assignment with
|
|
30895
|
+
* this variable = 0.
|
|
30880
30896
|
* - `canBeTrue = false && canBeFalse = false` means the problem is UNSAT.
|
|
30897
|
+
*
|
|
30898
|
+
* When the underlying solver hits a conflict/time budget before the opposite
|
|
30899
|
+
* polarity could be proven (im)feasible, `verified` is `false` and the
|
|
30900
|
+
* reachability fields reflect only the polarities that were actually
|
|
30901
|
+
* witnessed. For example, `(canBeTrue: true, canBeFalse: false,
|
|
30902
|
+
* verified: false)` means "observed in every model found so far, never
|
|
30903
|
+
* observed as 0 — likely required, but the solver did not complete the
|
|
30904
|
+
* UNSAT-for-0 probe to certify it."
|
|
30881
30905
|
*/
|
|
30882
30906
|
interface VariableFeasibilityDto {
|
|
30883
|
-
/** True if
|
|
30907
|
+
/** True if the solver witnessed a valid assignment where this variable is 1. */
|
|
30884
30908
|
canBeTrue: boolean;
|
|
30885
|
-
/** True if
|
|
30909
|
+
/** True if the solver witnessed a valid assignment where this variable is 0. */
|
|
30886
30910
|
canBeFalse: boolean;
|
|
30911
|
+
/**
|
|
30912
|
+
* True when the reachability result is fully determined by the solver
|
|
30913
|
+
* (both polarities resolved). False when a conflict/time limit was hit
|
|
30914
|
+
* and the result reflects only the polarities that were observed.
|
|
30915
|
+
*/
|
|
30916
|
+
verified: boolean;
|
|
30887
30917
|
}
|
|
30888
30918
|
/**
|
|
30889
30919
|
* Request to search for solutions.
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/config.ts
|
|
2
|
-
var SDK_VERSION = "0.15.
|
|
2
|
+
var SDK_VERSION = "0.15.2";
|
|
3
3
|
function resolveConfig(config) {
|
|
4
4
|
if (!config.baseUrl) {
|
|
5
5
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -15490,7 +15490,8 @@ function SpaceSearchRequestFromFrontToApi(model) {
|
|
|
15490
15490
|
function VariableFeasibilityDtoFromApiToFront(dto) {
|
|
15491
15491
|
return {
|
|
15492
15492
|
canBeTrue: dto.can_be_true,
|
|
15493
|
-
canBeFalse: dto.can_be_false
|
|
15493
|
+
canBeFalse: dto.can_be_false,
|
|
15494
|
+
verified: dto.verified ?? true
|
|
15494
15495
|
};
|
|
15495
15496
|
}
|
|
15496
15497
|
function SpaceSearchResponseFromApiToFront(dto) {
|