@babav/knowledge-core-client 0.21.0 → 0.22.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 +4 -4
- package/dist/visual/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -4
- package/src/visual/types.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -67,8 +67,8 @@ export interface QueryOverrides {
|
|
|
67
67
|
}
|
|
68
68
|
/** Per-request visual overrides (see VisualRequest). */
|
|
69
69
|
export interface VisualOverrides {
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
concept_model?: string;
|
|
71
|
+
concept_vet_model?: string;
|
|
72
72
|
max_revisions?: number;
|
|
73
73
|
claims_check_model?: string;
|
|
74
74
|
vision_judge_model?: string;
|
|
@@ -336,10 +336,10 @@ export interface StreamHandlers {
|
|
|
336
336
|
* (native path). Also present in `final`. May be `{}` if scoring was unavailable. */
|
|
337
337
|
onGroundedness?: (g: Groundedness | Record<string, never>) => void;
|
|
338
338
|
onFinal?: (d: QueryResponse) => void;
|
|
339
|
-
/** A visual, emitted (out of anchor order) during the trailing visual
|
|
339
|
+
/** A visual, emitted (out of anchor order) during the trailing visual stage when
|
|
340
340
|
* visual.mode="on". Place by `anchor`, not arrival order. */
|
|
341
341
|
onVisual?: (v: Visual) => void;
|
|
342
|
-
/** Always emitted exactly once to close the visual
|
|
342
|
+
/** Always emitted exactly once to close the visual stage (incl. count=0), before `done`. */
|
|
343
343
|
onVisualsComplete?: (m: VisualsMeta) => void;
|
|
344
344
|
onError?: (d: unknown) => void;
|
|
345
345
|
onDone?: () => void;
|
package/dist/visual/types.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export interface VisualPayload {
|
|
|
90
90
|
composition?: VisualComposition[];
|
|
91
91
|
layout?: LayoutIntent;
|
|
92
92
|
}
|
|
93
|
-
/** Per-element source provenance. Present from v1; populated
|
|
93
|
+
/** Per-element source provenance. Present from v1; populated later. */
|
|
94
94
|
export interface VisualProvenance {
|
|
95
95
|
[k: string]: unknown;
|
|
96
96
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babav/knowledge-core-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "TypeScript client for the Babav Knowledge Core API (Deno + Node 18+, zero deps). Includes the babav.visual grammar TYPES at the ./visual subpath (types only; all visual rendering is server-side).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/index.ts
CHANGED
|
@@ -89,8 +89,8 @@ export interface QueryOverrides {
|
|
|
89
89
|
|
|
90
90
|
/** Per-request visual overrides (see VisualRequest). */
|
|
91
91
|
export interface VisualOverrides {
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
concept_model?: string;
|
|
93
|
+
concept_vet_model?: string;
|
|
94
94
|
max_revisions?: number;
|
|
95
95
|
claims_check_model?: string;
|
|
96
96
|
vision_judge_model?: string;
|
|
@@ -455,10 +455,10 @@ export interface StreamHandlers {
|
|
|
455
455
|
* (native path). Also present in `final`. May be `{}` if scoring was unavailable. */
|
|
456
456
|
onGroundedness?: (g: Groundedness | Record<string, never>) => void;
|
|
457
457
|
onFinal?: (d: QueryResponse) => void;
|
|
458
|
-
/** A visual, emitted (out of anchor order) during the trailing visual
|
|
458
|
+
/** A visual, emitted (out of anchor order) during the trailing visual stage when
|
|
459
459
|
* visual.mode="on". Place by `anchor`, not arrival order. */
|
|
460
460
|
onVisual?: (v: Visual) => void;
|
|
461
|
-
/** Always emitted exactly once to close the visual
|
|
461
|
+
/** Always emitted exactly once to close the visual stage (incl. count=0), before `done`. */
|
|
462
462
|
onVisualsComplete?: (m: VisualsMeta) => void;
|
|
463
463
|
onError?: (d: unknown) => void;
|
|
464
464
|
onDone?: () => void;
|
package/src/visual/types.ts
CHANGED
|
@@ -116,7 +116,7 @@ export interface VisualPayload {
|
|
|
116
116
|
layout?: LayoutIntent;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
/** Per-element source provenance. Present from v1; populated
|
|
119
|
+
/** Per-element source provenance. Present from v1; populated later. */
|
|
120
120
|
export interface VisualProvenance {
|
|
121
121
|
[k: string]: unknown;
|
|
122
122
|
}
|