@babav/knowledge-core-client 0.12.0 → 0.12.1

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.ts CHANGED
@@ -88,8 +88,11 @@ export interface Citation {
88
88
  source_url: string | null;
89
89
  }
90
90
  export interface GroundednessSentence {
91
- /** Char span IN THE ANSWER of this sentence. */
91
+ /** Char span into the RAW answer (concatenated tokens / `final.answer`). */
92
92
  text_span: [number, number];
93
+ /** The exact sentence text — highlight by matching this in the rendered output
94
+ * (robust to markdown rendering + inserted citation markers) rather than offsets. */
95
+ text: string;
93
96
  score: number;
94
97
  passed: boolean | null;
95
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babav/knowledge-core-client",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "TypeScript client for the Babav Knowledge Core API (Deno + Node 18+, zero deps).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -103,8 +103,11 @@ export interface Citation {
103
103
  }
104
104
 
105
105
  export interface GroundednessSentence {
106
- /** Char span IN THE ANSWER of this sentence. */
106
+ /** Char span into the RAW answer (concatenated tokens / `final.answer`). */
107
107
  text_span: [number, number];
108
+ /** The exact sentence text — highlight by matching this in the rendered output
109
+ * (robust to markdown rendering + inserted citation markers) rather than offsets. */
110
+ text: string;
108
111
  score: number;
109
112
  passed: boolean | null;
110
113
  }