@kortexya/reasoninglayer 7.1.0 → 7.2.0

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.d.cts CHANGED
@@ -233,7 +233,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
233
233
  * This is the single source of truth for the version constant.
234
234
  * The `scripts/release.sh` script updates this value alongside `package.json`.
235
235
  */
236
- declare const SDK_VERSION = "7.1.0";
236
+ declare const SDK_VERSION = "7.2.0";
237
237
  /**
238
238
  * Authentication mode for the SDK.
239
239
  *
@@ -1213,23 +1213,26 @@ interface AdmissibleDto$1 {
1213
1213
  /** Resume native exploration without applying an expert answer. */
1214
1214
  interface AdvanceExplorationRequestDto {
1215
1215
  /**
1216
- * Maximum new implication-closed candidates examined in this call.
1216
+ * Optional bound on new implication-closed candidates examined in this
1217
+ * call. Absent or null: unbounded.
1217
1218
  * @min 0
1218
1219
  */
1219
- max_candidates?: number;
1220
+ max_candidates?: number | null;
1220
1221
  /**
1221
- * Native work budget for this call, in primitive operations. It is
1222
- * checked between search steps, so a call may end past it by at most one
1223
- * step's cost. Zero suspends before work.
1222
+ * Optional native work budget for this call, in primitive operations.
1223
+ * It is checked between search steps, so a call may end past it by at
1224
+ * most one step's cost. Zero suspends before work. Absent or null:
1225
+ * unbounded, so the call advances to the next question or exhaustion.
1224
1226
  * @min 0
1225
1227
  */
1226
- max_work?: number;
1228
+ max_work?: number | null;
1227
1229
  /**
1228
- * Search deadline in milliseconds, checked between native primitives.
1230
+ * Optional search deadline in milliseconds, checked between native
1231
+ * primitives. Absent or null: no deadline.
1229
1232
  * @format int64
1230
1233
  * @min 0
1231
1234
  */
1232
- search_timeout_ms?: number;
1235
+ search_timeout_ms?: number | null;
1233
1236
  }
1234
1237
  /**
1235
1238
  * What a UI action's program would do, previewed without running it — the
@@ -9214,17 +9217,19 @@ interface ConfigSectionResponse {
9214
9217
  */
9215
9218
  interface ConfirmRequestDto {
9216
9219
  /**
9217
- * Maximum new implication-closed candidates examined in this call.
9220
+ * Optional bound on new implication-closed candidates examined in this
9221
+ * call. Absent or null: unbounded.
9218
9222
  * @min 0
9219
9223
  */
9220
- max_candidates?: number;
9224
+ max_candidates?: number | null;
9221
9225
  /**
9222
- * Native work budget for this call, in primitive operations. It is
9223
- * checked between search steps, so a call may end past it by at most one
9224
- * step's cost. Zero suspends before work.
9226
+ * Optional native work budget for this call, in primitive operations.
9227
+ * It is checked between search steps, so a call may end past it by at
9228
+ * most one step's cost. Zero suspends before work. Absent or null:
9229
+ * unbounded, so the call advances to the next question or exhaustion.
9225
9230
  * @min 0
9226
9231
  */
9227
- max_work?: number;
9232
+ max_work?: number | null;
9228
9233
  /**
9229
9234
  * The question being confirmed. It must be the session's pending
9230
9235
  * question, else `409` (`exploration_question_not_pending`) and nothing
@@ -9233,11 +9238,12 @@ interface ConfirmRequestDto {
9233
9238
  */
9234
9239
  question_id: ExplorationQuestionId;
9235
9240
  /**
9236
- * Search deadline in milliseconds, checked between native primitives.
9241
+ * Optional search deadline in milliseconds, checked between native
9242
+ * primitives. Absent or null: no deadline.
9237
9243
  * @format int64
9238
9244
  * @min 0
9239
9245
  */
9240
- search_timeout_ms?: number;
9246
+ search_timeout_ms?: number | null;
9241
9247
  }
9242
9248
  /**
9243
9249
  * Response after confirming an implication.
@@ -14215,6 +14221,13 @@ interface DocumentStatsDto$1 {
14215
14221
  * @min 0
14216
14222
  */
14217
14223
  total_tokens: number;
14224
+ /**
14225
+ * The model calls this document's ingestion made and reused through the
14226
+ * work cache, as a synchronous run reports them in `stats.work_cache`.
14227
+ * Absent when it made and reused none, and from snapshots written before
14228
+ * the field existed.
14229
+ */
14230
+ work_cache?: null | IngestionWorkCacheDto$1;
14218
14231
  }
14219
14232
  /** Document status counts DTO */
14220
14233
  interface DocumentStatusCounts$1 {
@@ -18021,6 +18034,15 @@ interface FeatureDescriptorDto$1 {
18021
18034
  min_count?: number | null;
18022
18035
  /** Feature name */
18023
18036
  name: string;
18037
+ /**
18038
+ * Every inherited range commitment; all entries apply simultaneously.
18039
+ *
18040
+ * Read-only: the engine derives it from the order. A write body may echo
18041
+ * it (every relation reads back with one, and GET -> edit -> POST is the
18042
+ * documented amendment), and the echo is accepted and ignored — a client
18043
+ * cannot declare an inherited range.
18044
+ */
18045
+ range_conjunction?: string[];
18024
18046
  /**
18025
18047
  * Whether this feature is required.
18026
18048
  *
@@ -31348,14 +31370,29 @@ interface PatternDiscoveryRequest {
31348
31370
  * a validation target. Bound into the scope digest.
31349
31371
  */
31350
31372
  exclude_features?: string[];
31351
- /** @min 0 */
31352
- max_patterns?: number;
31353
- /** @min 0 */
31354
- max_proposals?: number;
31355
- /** @min 0 */
31356
- max_visited?: number;
31357
- /** @min 0 */
31358
- max_work?: number;
31373
+ /**
31374
+ * Optional page size: patterns returned before a complete-mode response
31375
+ * ends with a continuation (a budgeted response stops at an output
31376
+ * limit). Absent or null: every pattern in one response.
31377
+ * @min 0
31378
+ */
31379
+ max_patterns?: number | null;
31380
+ /**
31381
+ * Optional bound on the learned proposals checked in budgeted mode.
31382
+ * Absent or null: every proposal of the frozen artifact.
31383
+ * @min 0
31384
+ */
31385
+ max_proposals?: number | null;
31386
+ /**
31387
+ * Optional bound on closed sets visited. Absent or null: unbounded.
31388
+ * @min 0
31389
+ */
31390
+ max_visited?: number | null;
31391
+ /**
31392
+ * Optional bound on native work. Absent or null: unbounded.
31393
+ * @min 0
31394
+ */
31395
+ max_work?: number | null;
31359
31396
  /** @min 0 */
31360
31397
  min_intent_size?: number;
31361
31398
  /** @min 0 */
@@ -31370,8 +31407,8 @@ interface PatternDiscoveryRequest {
31370
31407
  semantics?: ConceptFeatureSemanticsDto;
31371
31408
  term_ids: string[];
31372
31409
  /**
31373
- * Witnesses and counterexamples returned per explanation (1..=2000); the
31374
- * replay route serves later pages.
31410
+ * Witnesses and counterexamples returned per explanation (default 256,
31411
+ * any positive size); the replay route serves later pages.
31375
31412
  * @min 0
31376
31413
  */
31377
31414
  witness_page_size?: number;
@@ -34166,17 +34203,19 @@ interface RefuteRequestDto {
34166
34203
  /** Label for the counterexample object (e.g., entity name) */
34167
34204
  label: string;
34168
34205
  /**
34169
- * Maximum new implication-closed candidates examined in this call.
34206
+ * Optional bound on new implication-closed candidates examined in this
34207
+ * call. Absent or null: unbounded.
34170
34208
  * @min 0
34171
34209
  */
34172
- max_candidates?: number;
34210
+ max_candidates?: number | null;
34173
34211
  /**
34174
- * Native work budget for this call, in primitive operations. It is
34175
- * checked between search steps, so a call may end past it by at most one
34176
- * step's cost. Zero suspends before work.
34212
+ * Optional native work budget for this call, in primitive operations.
34213
+ * It is checked between search steps, so a call may end past it by at
34214
+ * most one step's cost. Zero suspends before work. Absent or null:
34215
+ * unbounded, so the call advances to the next question or exhaustion.
34177
34216
  * @min 0
34178
34217
  */
34179
- max_work?: number;
34218
+ max_work?: number | null;
34180
34219
  /**
34181
34220
  * The question being refuted. It must be the session's pending
34182
34221
  * question, else `409` (`exploration_question_not_pending`) and nothing
@@ -34184,11 +34223,12 @@ interface RefuteRequestDto {
34184
34223
  */
34185
34224
  question_id: ExplorationQuestionId;
34186
34225
  /**
34187
- * Search deadline in milliseconds, checked between native primitives.
34226
+ * Optional search deadline in milliseconds, checked between native
34227
+ * primitives. Absent or null: no deadline.
34188
34228
  * @format int64
34189
34229
  * @min 0
34190
34230
  */
34191
- search_timeout_ms?: number;
34231
+ search_timeout_ms?: number | null;
34192
34232
  /**
34193
34233
  * A scaled session's counterexample: a record of feature values,
34194
34234
  * projected by the session's own scales into the attributes it holds.
@@ -41392,10 +41432,11 @@ interface StageTraceDto {
41392
41432
  */
41393
41433
  interface StartExplorationRequestDto {
41394
41434
  /**
41395
- * Maximum new implication-closed candidates examined in this call.
41435
+ * Optional bound on new implication-closed candidates examined in this
41436
+ * call. Absent or null: unbounded.
41396
41437
  * @min 0
41397
41438
  */
41398
- max_candidates?: number;
41439
+ max_candidates?: number | null;
41399
41440
  /**
41400
41441
  * Deprecated concept filter. Only the historical default 10_000 is accepted.
41401
41442
  * Use max_work and max_candidates for implication exploration.
@@ -41403,18 +41444,20 @@ interface StartExplorationRequestDto {
41403
41444
  */
41404
41445
  max_concepts?: number;
41405
41446
  /**
41406
- * Maximum number of records to include in the context (default and server
41407
- * maximum: 50_000; a larger value is `400 exploration_population_limit`)
41447
+ * Optional bound on the records included in the context; a larger scope
41448
+ * is sampled and says so (`population_sampled`). Absent or null: every
41449
+ * visible record. Zero explores nothing (`422`).
41408
41450
  * @min 0
41409
41451
  */
41410
- max_terms?: number;
41452
+ max_terms?: number | null;
41411
41453
  /**
41412
- * Native work budget for this call, in primitive operations. It is
41413
- * checked between search steps, so a call may end past it by at most one
41414
- * step's cost. Zero suspends before work.
41454
+ * Optional native work budget for this call, in primitive operations.
41455
+ * It is checked between search steps, so a call may end past it by at
41456
+ * most one step's cost. Zero suspends before work. Absent or null:
41457
+ * unbounded, so the call advances to the next question or exhaustion.
41415
41458
  * @min 0
41416
41459
  */
41417
- max_work?: number;
41460
+ max_work?: number | null;
41418
41461
  /**
41419
41462
  * Deprecated concept filter. Only the historical default 2 is accepted.
41420
41463
  * @min 0
@@ -41426,11 +41469,12 @@ interface StartExplorationRequestDto {
41426
41469
  */
41427
41470
  min_intent_size?: number;
41428
41471
  /**
41429
- * Search deadline in milliseconds, checked between native primitives.
41472
+ * Optional search deadline in milliseconds, checked between native
41473
+ * primitives. Absent or null: no deadline.
41430
41474
  * @format int64
41431
41475
  * @min 0
41432
41476
  */
41433
- search_timeout_ms?: number;
41477
+ search_timeout_ms?: number | null;
41434
41478
  /**
41435
41479
  * How records become attributes: `schema_presence` (default) or
41436
41480
  * `scaled` with per-feature conceptual scales, as in sort discovery.
@@ -53981,6 +54025,12 @@ interface FeatureDescriptorDto {
53981
54025
  * `key: true` is stored as the `unique` annotation, so this map echoes it.
53982
54026
  */
53983
54027
  annotations?: Record<string, string>;
54028
+ /**
54029
+ * Every inherited range commitment of this feature: all entries apply at
54030
+ * once. Read-only — the engine derives it from the sort order, so it is
54031
+ * never sent; a write that echoes it is accepted and the echo ignored.
54032
+ */
54033
+ rangeConjunction?: string[];
53984
54034
  /**
53985
54035
  * Human-readable prose about the feature, used for semantic embeddings and
53986
54036
  * documentation.
@@ -70383,6 +70433,13 @@ interface DocumentStatsDto {
70383
70433
  * so each reports its own analysis.
70384
70434
  */
70385
70435
  fcaDiscovery?: FcaIngestionReport;
70436
+ /**
70437
+ * The model calls this document's ingestion made and reused through the
70438
+ * work cache, as a synchronous run reports them in
70439
+ * {@link IngestionStatsDto.workCache}. Absent when it made and reused none,
70440
+ * and from an engine whose sessions do not keep them yet.
70441
+ */
70442
+ workCache?: IngestionWorkCacheDto;
70386
70443
  }
70387
70444
  /**
70388
70445
  * Response for session-level stats (all completed documents).
@@ -91050,12 +91107,23 @@ interface SortDiscoveryResponse {
91050
91107
  * and `search.stop` names the bound; resume with `advanceExploration`.
91051
91108
  */
91052
91109
  interface ExplorationSearchBounds {
91053
- /** Maximum new implication-closed candidates examined in this call. */
91054
- maxCandidates?: number;
91055
- /** Maximum native search steps in this call. `0` suspends before any work. */
91056
- maxWork?: number;
91057
- /** Search deadline in milliseconds, checked between native primitives. */
91058
- searchTimeoutMs?: number;
91110
+ /**
91111
+ * Maximum new implication-closed candidates examined in this call. Absent
91112
+ * or `null`: unbounded.
91113
+ */
91114
+ maxCandidates?: number | null;
91115
+ /**
91116
+ * Native work budget for this call, in primitive operations, checked
91117
+ * between search steps (a call may end past it by at most one step's cost).
91118
+ * `0` suspends before any work. Absent or `null`: unbounded, so the call
91119
+ * advances to the next question or exhaustion.
91120
+ */
91121
+ maxWork?: number | null;
91122
+ /**
91123
+ * Search deadline in milliseconds, checked between native primitives.
91124
+ * Absent or `null`: no deadline.
91125
+ */
91126
+ searchTimeoutMs?: number | null;
91059
91127
  }
91060
91128
  /**
91061
91129
  * Why an exploration search step stopped.
@@ -91106,8 +91174,12 @@ interface StartExplorationRequest extends ExplorationSearchBounds {
91106
91174
  minExtentSize?: number;
91107
91175
  /** Minimum intent size. */
91108
91176
  minIntentSize?: number;
91109
- /** Maximum number of terms. */
91110
- maxTerms?: number;
91177
+ /**
91178
+ * Bound on the records included in the context; a larger scope is sampled
91179
+ * and says so (`populationSampled`). Absent or `null`: every visible record.
91180
+ * `0` explores nothing (422).
91181
+ */
91182
+ maxTerms?: number | null;
91111
91183
  /**
91112
91184
  * Explore only terms of these sorts and their subsorts (by name, in the
91113
91185
  * tenant's lattice).
@@ -91319,7 +91391,8 @@ interface ExplorationStatusResponse {
91319
91391
  * - `exploration_actor_required` (`403`) — the route needs a gateway human
91320
91392
  * actor.
91321
91393
  * - `exploration_population_limit` (`400`) — start refused the declared
91322
- * population bound.
91394
+ * population bound. Engines from d327baf4ce on have no population cap and
91395
+ * no longer send it.
91323
91396
  * - `exploration_publication_unavailable` (`503`) — the authoritative snapshot
91324
91397
  * or the atomic commit was unavailable; nothing was installed.
91325
91398
  *
@@ -91607,8 +91680,7 @@ declare class AnalysisClient {
91607
91680
  * the first question, and the search report.
91608
91681
  * @throws {ForbiddenError} 403 with code `exploration_actor_required` when
91609
91682
  * the request carries no gateway human actor (`authenticatedUser`).
91610
- * @throws {BadRequestError} 400 for an unknown sort name, a refused
91611
- * population bound (`exploration_population_limit`), native-predicate
91683
+ * @throws {BadRequestError} 400 for an unknown sort name, native-predicate
91612
91684
  * semantics, or a scaled interpretation that is not complete.
91613
91685
  *
91614
91686
  * @remarks
@@ -91723,8 +91795,8 @@ declare class AnalysisClient {
91723
91795
  *
91724
91796
  * @param sessionId - Exploration session ID.
91725
91797
  * @param request - The bounds of this search step (`maxWork`,
91726
- * `maxCandidates`, `searchTimeoutMs`); each omitted bound takes the
91727
- * engine default.
91798
+ * `maxCandidates`, `searchTimeoutMs`); an omitted or `null` bound is
91799
+ * unbounded.
91728
91800
  * @param requestOptions - Per-call request options.
91729
91801
  * @returns The next question (absent when the search stopped again or was
91730
91802
  * exhausted), the progress, and the search report.