@kortexya/reasoninglayer 0.2.4 → 0.2.6

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
@@ -1,5 +1,5 @@
1
1
  // src/config.ts
2
- var SDK_VERSION = "0.2.4";
2
+ var SDK_VERSION = "0.2.6";
3
3
  function resolveConfig(config) {
4
4
  if (!config.baseUrl) {
5
5
  throw new Error("ClientConfig.baseUrl is required");
@@ -8047,9 +8047,10 @@ var QueryClient = class {
8047
8047
  return response.data.results;
8048
8048
  }
8049
8049
  /**
8050
- * Find terms by sort.
8050
+ * Find terms by sort ID, sort name, or with optional filter.
8051
8051
  *
8052
- * @param request - Query by sort request.
8052
+ * @param request - Query by sort request. Accepts sort_id (UUID),
8053
+ * sort_name (human-readable), and optional filter for feature-based filtering.
8053
8054
  * @returns Array of matching terms (tagged ValueDto format).
8054
8055
  */
8055
8056
  async findBySort(request) {
@@ -8625,6 +8626,16 @@ var FuzzyClient = class {
8625
8626
  });
8626
8627
  return response.data;
8627
8628
  }
8629
+ /**
8630
+ * Find all terms similar to a query term.
8631
+ *
8632
+ * @param request - Similar search request with query term and min degree.
8633
+ * @returns All matching terms with similarity >= min_degree, sorted by degree (descending).
8634
+ */
8635
+ async findSimilar(request) {
8636
+ const response = await this.api.findSimilar(request);
8637
+ return response.data;
8638
+ }
8628
8639
  /**
8629
8640
  * Search for top-K most similar terms.
8630
8641
  *
@@ -10369,10 +10380,12 @@ var SpacesClient = class {
10369
10380
  *
10370
10381
  * @param spaceId - Space ID.
10371
10382
  * @param request - Search parameters (strategy, max solutions).
10383
+ * @param valueOrdering - Optional value ordering strategy (e.g., "min", "max", "median").
10372
10384
  * @returns Search results with solutions.
10373
10385
  */
10374
- async search(spaceId, request) {
10375
- const response = await this.api.searchSpace(spaceId, request);
10386
+ async search(spaceId, request, valueOrdering) {
10387
+ const query = valueOrdering ? { value_ordering: valueOrdering } : void 0;
10388
+ const response = await this.api.searchSpace(spaceId, request, query);
10376
10389
  return response.data;
10377
10390
  }
10378
10391
  };