@kortexya/reasoninglayer 1.6.0 → 1.7.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.cjs +14 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -7
- package/dist/index.d.ts +22 -7
- package/dist/index.js +14 -5
- 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 = "1.
|
|
112
|
+
declare const SDK_VERSION = "1.7.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -43606,15 +43606,28 @@ interface DerivationSummaryDto {
|
|
|
43606
43606
|
rootSourceIds: string[];
|
|
43607
43607
|
}
|
|
43608
43608
|
/**
|
|
43609
|
-
* A
|
|
43609
|
+
* A KB record excerpt grounding a claim.
|
|
43610
|
+
*
|
|
43611
|
+
* @remarks
|
|
43612
|
+
* This is the conversation-route excerpt (term/feature/value grounding from
|
|
43613
|
+
* `crates/api/src/dto/conversation.rs`), distinct from the context-assembly
|
|
43614
|
+
* excerpt (`concept`/`text`/`document`) that shares the same wire name.
|
|
43610
43615
|
*/
|
|
43611
43616
|
interface SourceExcerptDto$1 {
|
|
43612
|
-
/**
|
|
43613
|
-
|
|
43614
|
-
/**
|
|
43615
|
-
|
|
43617
|
+
/** ID of the KB term this excerpt comes from. */
|
|
43618
|
+
termId: string;
|
|
43619
|
+
/** Sort (type) of the term. */
|
|
43620
|
+
sortName: string;
|
|
43621
|
+
/** Feature (attribute) name. */
|
|
43622
|
+
featureName: string;
|
|
43623
|
+
/** Feature value. */
|
|
43624
|
+
value: string;
|
|
43625
|
+
/** Provenance of the grounding record (e.g. "document", "manual"). */
|
|
43626
|
+
provenanceType?: string | null;
|
|
43627
|
+
/** Quality score of the source record (0.0–1.0). */
|
|
43628
|
+
qualityScore?: number | null;
|
|
43616
43629
|
/** Source document, if applicable. */
|
|
43617
|
-
|
|
43630
|
+
sourceDocument?: string | null;
|
|
43618
43631
|
}
|
|
43619
43632
|
/**
|
|
43620
43633
|
* A claim annotation with provenance information.
|
|
@@ -43715,6 +43728,8 @@ interface TurnDto {
|
|
|
43715
43728
|
intent?: string | null;
|
|
43716
43729
|
/** OSFQL generated (assistant turns only). */
|
|
43717
43730
|
osfql?: string | null;
|
|
43731
|
+
/** Per-claim provenance annotations (assistant turns only). */
|
|
43732
|
+
claimAnnotations?: ClaimAnnotationDto[] | null;
|
|
43718
43733
|
}
|
|
43719
43734
|
/**
|
|
43720
43735
|
* A conversation summary.
|
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 = "1.
|
|
112
|
+
declare const SDK_VERSION = "1.7.0";
|
|
113
113
|
/**
|
|
114
114
|
* Authentication mode for the SDK.
|
|
115
115
|
*
|
|
@@ -43606,15 +43606,28 @@ interface DerivationSummaryDto {
|
|
|
43606
43606
|
rootSourceIds: string[];
|
|
43607
43607
|
}
|
|
43608
43608
|
/**
|
|
43609
|
-
* A
|
|
43609
|
+
* A KB record excerpt grounding a claim.
|
|
43610
|
+
*
|
|
43611
|
+
* @remarks
|
|
43612
|
+
* This is the conversation-route excerpt (term/feature/value grounding from
|
|
43613
|
+
* `crates/api/src/dto/conversation.rs`), distinct from the context-assembly
|
|
43614
|
+
* excerpt (`concept`/`text`/`document`) that shares the same wire name.
|
|
43610
43615
|
*/
|
|
43611
43616
|
interface SourceExcerptDto$1 {
|
|
43612
|
-
/**
|
|
43613
|
-
|
|
43614
|
-
/**
|
|
43615
|
-
|
|
43617
|
+
/** ID of the KB term this excerpt comes from. */
|
|
43618
|
+
termId: string;
|
|
43619
|
+
/** Sort (type) of the term. */
|
|
43620
|
+
sortName: string;
|
|
43621
|
+
/** Feature (attribute) name. */
|
|
43622
|
+
featureName: string;
|
|
43623
|
+
/** Feature value. */
|
|
43624
|
+
value: string;
|
|
43625
|
+
/** Provenance of the grounding record (e.g. "document", "manual"). */
|
|
43626
|
+
provenanceType?: string | null;
|
|
43627
|
+
/** Quality score of the source record (0.0–1.0). */
|
|
43628
|
+
qualityScore?: number | null;
|
|
43616
43629
|
/** Source document, if applicable. */
|
|
43617
|
-
|
|
43630
|
+
sourceDocument?: string | null;
|
|
43618
43631
|
}
|
|
43619
43632
|
/**
|
|
43620
43633
|
* A claim annotation with provenance information.
|
|
@@ -43715,6 +43728,8 @@ interface TurnDto {
|
|
|
43715
43728
|
intent?: string | null;
|
|
43716
43729
|
/** OSFQL generated (assistant turns only). */
|
|
43717
43730
|
osfql?: string | null;
|
|
43731
|
+
/** Per-claim provenance annotations (assistant turns only). */
|
|
43732
|
+
claimAnnotations?: ClaimAnnotationDto[] | null;
|
|
43718
43733
|
}
|
|
43719
43734
|
/**
|
|
43720
43735
|
* A conversation summary.
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/config.ts
|
|
8
|
-
var SDK_VERSION = "1.
|
|
8
|
+
var SDK_VERSION = "1.7.0";
|
|
9
9
|
function resolveConfig(config) {
|
|
10
10
|
if (!config.baseUrl) {
|
|
11
11
|
throw new Error("ClientConfig.baseUrl is required");
|
|
@@ -22323,10 +22323,15 @@ function DerivationSummaryDtoFromApiToFront(dto) {
|
|
|
22323
22323
|
};
|
|
22324
22324
|
}
|
|
22325
22325
|
function SourceExcerptDtoFromApiToFront(dto) {
|
|
22326
|
+
const wire = dto;
|
|
22326
22327
|
return {
|
|
22327
|
-
|
|
22328
|
-
|
|
22329
|
-
|
|
22328
|
+
termId: wire.term_id,
|
|
22329
|
+
sortName: wire.sort_name,
|
|
22330
|
+
featureName: wire.feature_name,
|
|
22331
|
+
value: wire.value,
|
|
22332
|
+
provenanceType: wire.provenance_type ?? void 0,
|
|
22333
|
+
qualityScore: wire.quality_score ?? void 0,
|
|
22334
|
+
sourceDocument: wire.source_document ?? void 0
|
|
22330
22335
|
};
|
|
22331
22336
|
}
|
|
22332
22337
|
function ClaimAnnotationDtoFromApiToFront(dto) {
|
|
@@ -22387,7 +22392,11 @@ function TurnDtoFromApiToFront(dto) {
|
|
|
22387
22392
|
content: dto.content,
|
|
22388
22393
|
timestamp: dto.timestamp,
|
|
22389
22394
|
intent: dto.intent ?? void 0,
|
|
22390
|
-
osfql: dto.osfql ?? void 0
|
|
22395
|
+
osfql: dto.osfql ?? void 0,
|
|
22396
|
+
// Generated contract types this as `any[]` — the wire shape is ClaimAnnotationDto.
|
|
22397
|
+
claimAnnotations: dto.claim_annotations?.map(
|
|
22398
|
+
ClaimAnnotationDtoFromApiToFront
|
|
22399
|
+
)
|
|
22391
22400
|
};
|
|
22392
22401
|
}
|
|
22393
22402
|
function ConversationSummaryDtoFromApiToFront(dto) {
|