@babav/knowledge-core-client 0.51.0 → 0.53.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.ts CHANGED
@@ -77,6 +77,7 @@ export interface VisualOverrides {
77
77
  max_revisions?: number;
78
78
  claims_check_model?: string;
79
79
  vision_judge_model?: string;
80
+ image_gen_model?: string;
80
81
  }
81
82
  /** Per-request visual control. Absent => mode resolves from the profile default. All visual
82
83
  * PROCESSING is server-side; the client only displays the result. */
@@ -537,10 +538,11 @@ export interface QueryProfile {
537
538
  visual_proposer_model: string | null;
538
539
  visual_claims_check_model: string | null;
539
540
  visual_vision_judge_model: string | null;
541
+ visual_image_gen_model: string | null;
540
542
  visual_max_revisions: number | null;
541
543
  visual_combine_generation_and_concept: boolean | null;
542
544
  concept_model_mode: string | null;
543
- scoring_status: "unscored" | "queued" | "running" | "scored" | "failed" | "stale" | null;
545
+ scoring_status: "no_score" | "queued" | "running" | "scored" | null;
544
546
  scoring_progress_done: number | null;
545
547
  scoring_progress_total: number | null;
546
548
  scoring_updated_at: string | null;
@@ -589,7 +591,7 @@ export interface BenchmarkScore {
589
591
  cache_hit: boolean;
590
592
  config_hash: string;
591
593
  eval_version: string | null;
592
- scoring_status: "unscored" | "queued" | "running" | "scored" | "failed" | "stale";
594
+ scoring_status: "no_score" | "queued" | "running" | "scored";
593
595
  composite_q: number | null;
594
596
  sub_scores: Record<string, unknown>;
595
597
  per_language: Record<string, number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babav/knowledge-core-client",
3
- "version": "0.51.0",
3
+ "version": "0.53.0",
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
@@ -99,6 +99,7 @@ export interface VisualOverrides {
99
99
  max_revisions?: number;
100
100
  claims_check_model?: string;
101
101
  vision_judge_model?: string;
102
+ image_gen_model?: string; // scenic image generator (profile field: visual_image_gen_model)
102
103
  }
103
104
 
104
105
  /** Per-request visual control. Absent => mode resolves from the profile default. All visual
@@ -504,13 +505,18 @@ export interface QueryProfile {
504
505
  visual_proposer_model: string | null; // authors the HTML figure + chart/structural/scene specs
505
506
  visual_claims_check_model: string | null;
506
507
  visual_vision_judge_model: string | null; // Vertex Gemini model
508
+ visual_image_gen_model: string | null; // Vertex Gemini image-gen model (scenic register)
507
509
  visual_max_revisions: number | null;
508
510
  visual_combine_generation_and_concept: boolean | null;
509
511
  concept_model_mode: string | null; // "reasoning" | "standard"; overrules gen mode when combining
510
512
  // --- score-my-profile status/progress (READ-only; not settable) ---------------------------------
511
513
  // Durable on the profile so a client can kick scoring, leave, and see the status/result on any later
512
514
  // read. score_composite_q/score_scored_at are the cached score for the CURRENT eval version.
513
- scoring_status: "unscored" | "queued" | "running" | "scored" | "failed" | "stale" | null;
515
+ // Authoritative, derived from reality on every read: "scored" (a score exists), "running"/"queued"
516
+ // (a run is actively in progress, see scoring_progress_*), or "no_score" (no score and nothing
517
+ // running — covers never-scored, a failed/interrupted attempt, or a config change). Never a lingering
518
+ // "failed". null only transiently before the first read enriches it — treat null as "no_score".
519
+ scoring_status: "no_score" | "queued" | "running" | "scored" | null;
514
520
  scoring_progress_done: number | null;
515
521
  scoring_progress_total: number | null;
516
522
  scoring_updated_at: string | null; // ISO timestamp; heartbeat while running
@@ -549,7 +555,7 @@ export interface BenchmarkScore {
549
555
  cache_hit: boolean;
550
556
  config_hash: string;
551
557
  eval_version: string | null;
552
- scoring_status: "unscored" | "queued" | "running" | "scored" | "failed" | "stale";
558
+ scoring_status: "no_score" | "queued" | "running" | "scored";
553
559
  composite_q: number | null;
554
560
  sub_scores: Record<string, unknown>;
555
561
  per_language: Record<string, number>;