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