@babav/knowledge-core-client 0.51.0 → 0.52.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
@@ -540,7 +540,7 @@ export interface QueryProfile {
540
540
  visual_max_revisions: number | null;
541
541
  visual_combine_generation_and_concept: boolean | null;
542
542
  concept_model_mode: string | null;
543
- scoring_status: "unscored" | "queued" | "running" | "scored" | "failed" | "stale" | null;
543
+ scoring_status: "no_score" | "queued" | "running" | "scored" | null;
544
544
  scoring_progress_done: number | null;
545
545
  scoring_progress_total: number | null;
546
546
  scoring_updated_at: string | null;
@@ -589,7 +589,7 @@ export interface BenchmarkScore {
589
589
  cache_hit: boolean;
590
590
  config_hash: string;
591
591
  eval_version: string | null;
592
- scoring_status: "unscored" | "queued" | "running" | "scored" | "failed" | "stale";
592
+ scoring_status: "no_score" | "queued" | "running" | "scored";
593
593
  composite_q: number | null;
594
594
  sub_scores: Record<string, unknown>;
595
595
  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.52.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
@@ -510,7 +510,11 @@ export interface QueryProfile {
510
510
  // --- score-my-profile status/progress (READ-only; not settable) ---------------------------------
511
511
  // Durable on the profile so a client can kick scoring, leave, and see the status/result on any later
512
512
  // 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;
513
+ // Authoritative, derived from reality on every read: "scored" (a score exists), "running"/"queued"
514
+ // (a run is actively in progress, see scoring_progress_*), or "no_score" (no score and nothing
515
+ // running — covers never-scored, a failed/interrupted attempt, or a config change). Never a lingering
516
+ // "failed". null only transiently before the first read enriches it — treat null as "no_score".
517
+ scoring_status: "no_score" | "queued" | "running" | "scored" | null;
514
518
  scoring_progress_done: number | null;
515
519
  scoring_progress_total: number | null;
516
520
  scoring_updated_at: string | null; // ISO timestamp; heartbeat while running
@@ -549,7 +553,7 @@ export interface BenchmarkScore {
549
553
  cache_hit: boolean;
550
554
  config_hash: string;
551
555
  eval_version: string | null;
552
- scoring_status: "unscored" | "queued" | "running" | "scored" | "failed" | "stale";
556
+ scoring_status: "no_score" | "queued" | "running" | "scored";
553
557
  composite_q: number | null;
554
558
  sub_scores: Record<string, unknown>;
555
559
  per_language: Record<string, number>;