@kortexya/reasoninglayer 0.2.8 → 0.2.9
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 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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.2.
|
|
112
|
+
declare const SDK_VERSION = "0.2.9";
|
|
113
113
|
/**
|
|
114
114
|
* Configuration for the Reasoning Layer client.
|
|
115
115
|
*
|
|
@@ -36168,7 +36168,7 @@ declare const FeatureInput: {
|
|
|
36168
36168
|
* @example
|
|
36169
36169
|
* ```typescript
|
|
36170
36170
|
* FeatureInput.constrainedVar("?Salary", guard("gt", 100))
|
|
36171
|
-
* // {name: "?Salary", constraint: {sort_name: "
|
|
36171
|
+
* // {name: "?Salary", constraint: {sort_name: "guard_constraint", features: {op: "gt", right: 100}}}
|
|
36172
36172
|
* ```
|
|
36173
36173
|
*/
|
|
36174
36174
|
readonly constrainedVar: (name: string, constraint: TermInputDto) => FeatureInputConstrainedVariable;
|
|
@@ -36319,12 +36319,13 @@ declare const TermInput: {
|
|
|
36319
36319
|
/**
|
|
36320
36320
|
* Create a guard constraint as a `TermInputDto`.
|
|
36321
36321
|
*
|
|
36322
|
-
* Produces a `TermInputDto` representing
|
|
36322
|
+
* Produces a `TermInputDto` representing the `guard_constraint` meta-sort
|
|
36323
|
+
* with `op` and `right` features.
|
|
36323
36324
|
* This is a shorthand for the most common constrained variable pattern.
|
|
36324
36325
|
*
|
|
36325
36326
|
* @param op - The guard comparison operator.
|
|
36326
36327
|
* @param right - The right-hand value to compare against.
|
|
36327
|
-
* @returns A `TermInputDto` for the
|
|
36328
|
+
* @returns A `TermInputDto` for the guard_constraint sort.
|
|
36328
36329
|
*
|
|
36329
36330
|
* @remarks
|
|
36330
36331
|
* Serialization format: Untagged (TermInputDto). Used as the `constraint` argument
|
|
@@ -36335,7 +36336,7 @@ declare const TermInput: {
|
|
|
36335
36336
|
*
|
|
36336
36337
|
* The produced JSON matches:
|
|
36337
36338
|
* ```json
|
|
36338
|
-
* {"sort_name": "
|
|
36339
|
+
* {"sort_name": "guard_constraint", "features": {"op": "gt", "right": 100}}
|
|
36339
36340
|
* ```
|
|
36340
36341
|
*
|
|
36341
36342
|
* @example
|
|
@@ -36347,7 +36348,7 @@ declare const TermInput: {
|
|
|
36347
36348
|
*
|
|
36348
36349
|
* // Equivalent to:
|
|
36349
36350
|
* const salaryExplicit = FeatureInput.constrainedVar("?Salary",
|
|
36350
|
-
* { sort_name: "
|
|
36351
|
+
* { sort_name: "guard_constraint", features: { op: "gt", right: 100 } }
|
|
36351
36352
|
* );
|
|
36352
36353
|
* ```
|
|
36353
36354
|
*/
|
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.2.
|
|
112
|
+
declare const SDK_VERSION = "0.2.9";
|
|
113
113
|
/**
|
|
114
114
|
* Configuration for the Reasoning Layer client.
|
|
115
115
|
*
|
|
@@ -36168,7 +36168,7 @@ declare const FeatureInput: {
|
|
|
36168
36168
|
* @example
|
|
36169
36169
|
* ```typescript
|
|
36170
36170
|
* FeatureInput.constrainedVar("?Salary", guard("gt", 100))
|
|
36171
|
-
* // {name: "?Salary", constraint: {sort_name: "
|
|
36171
|
+
* // {name: "?Salary", constraint: {sort_name: "guard_constraint", features: {op: "gt", right: 100}}}
|
|
36172
36172
|
* ```
|
|
36173
36173
|
*/
|
|
36174
36174
|
readonly constrainedVar: (name: string, constraint: TermInputDto) => FeatureInputConstrainedVariable;
|
|
@@ -36319,12 +36319,13 @@ declare const TermInput: {
|
|
|
36319
36319
|
/**
|
|
36320
36320
|
* Create a guard constraint as a `TermInputDto`.
|
|
36321
36321
|
*
|
|
36322
|
-
* Produces a `TermInputDto` representing
|
|
36322
|
+
* Produces a `TermInputDto` representing the `guard_constraint` meta-sort
|
|
36323
|
+
* with `op` and `right` features.
|
|
36323
36324
|
* This is a shorthand for the most common constrained variable pattern.
|
|
36324
36325
|
*
|
|
36325
36326
|
* @param op - The guard comparison operator.
|
|
36326
36327
|
* @param right - The right-hand value to compare against.
|
|
36327
|
-
* @returns A `TermInputDto` for the
|
|
36328
|
+
* @returns A `TermInputDto` for the guard_constraint sort.
|
|
36328
36329
|
*
|
|
36329
36330
|
* @remarks
|
|
36330
36331
|
* Serialization format: Untagged (TermInputDto). Used as the `constraint` argument
|
|
@@ -36335,7 +36336,7 @@ declare const TermInput: {
|
|
|
36335
36336
|
*
|
|
36336
36337
|
* The produced JSON matches:
|
|
36337
36338
|
* ```json
|
|
36338
|
-
* {"sort_name": "
|
|
36339
|
+
* {"sort_name": "guard_constraint", "features": {"op": "gt", "right": 100}}
|
|
36339
36340
|
* ```
|
|
36340
36341
|
*
|
|
36341
36342
|
* @example
|
|
@@ -36347,7 +36348,7 @@ declare const TermInput: {
|
|
|
36347
36348
|
*
|
|
36348
36349
|
* // Equivalent to:
|
|
36349
36350
|
* const salaryExplicit = FeatureInput.constrainedVar("?Salary",
|
|
36350
|
-
* { sort_name: "
|
|
36351
|
+
* { sort_name: "guard_constraint", features: { op: "gt", right: 100 } }
|
|
36351
36352
|
* );
|
|
36352
36353
|
* ```
|
|
36353
36354
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/config.ts
|
|
2
|
-
var SDK_VERSION = "0.2.
|
|
2
|
+
var SDK_VERSION = "0.2.9";
|
|
3
3
|
function resolveConfig(config) {
|
|
4
4
|
if (!config.baseUrl) {
|
|
5
5
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -13747,7 +13747,7 @@ var FeatureInput = {
|
|
|
13747
13747
|
* @example
|
|
13748
13748
|
* ```typescript
|
|
13749
13749
|
* FeatureInput.constrainedVar("?Salary", guard("gt", 100))
|
|
13750
|
-
* // {name: "?Salary", constraint: {sort_name: "
|
|
13750
|
+
* // {name: "?Salary", constraint: {sort_name: "guard_constraint", features: {op: "gt", right: 100}}}
|
|
13751
13751
|
* ```
|
|
13752
13752
|
*/
|
|
13753
13753
|
constrainedVar(name, constraint) {
|
|
@@ -13887,7 +13887,7 @@ var TermInput = {
|
|
|
13887
13887
|
// src/builders/guard.ts
|
|
13888
13888
|
function guard(op, right) {
|
|
13889
13889
|
return {
|
|
13890
|
-
sort_name: "
|
|
13890
|
+
sort_name: "guard_constraint",
|
|
13891
13891
|
features: { op, right }
|
|
13892
13892
|
};
|
|
13893
13893
|
}
|