@railtownai/railtracks-visualizer 0.0.73 → 0.0.75

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.
@@ -24,10 +24,18 @@ export interface CategoricalNodeRef {
24
24
  /** Reasoning text for this node + metric, when available (Judge only). */
25
25
  reasoning?: string;
26
26
  }
27
+ /** How a metric's own definition classifies one of its categories. */
28
+ export type CategoryStatus = "pass" | "fail" | "partial" | "unclassified";
29
+ /**
30
+ * A metric's outcome. `notGated` means the metric declared no fail categories, so its zero
31
+ * failures are definitional rather than earned — it must not read as a clean pass.
32
+ */
33
+ export type MetricVerdict = "passed" | "failed" | "notGated";
27
34
  /** One category label within a metric, with the nodes that received it. */
28
35
  export interface CategoricalLabel {
29
36
  labelName: string;
30
37
  count: number;
38
+ status: CategoryStatus;
31
39
  nodes: CategoricalNodeRef[];
32
40
  }
33
41
  /** One categorical metric evaluated across all runs. */
@@ -38,6 +46,13 @@ export interface CategoricalMetric {
38
46
  mostCommon?: string;
39
47
  leastCommon?: string;
40
48
  total: number;
49
+ /** Runs that scored in any category. Equal to `total`; named apart so the verdict reads clearly. */
50
+ scoredCount: number;
51
+ /** Runs that scored in one of this metric's own fail categories. */
52
+ failureCount: number;
53
+ /** Whether the metric declared any non-blank fail category. */
54
+ declaresFailCategories: boolean;
55
+ verdict: MetricVerdict;
41
56
  labels: CategoricalLabel[];
42
57
  }
43
58
  type NodeMap = Record<string, unknown>;
@@ -17,6 +17,9 @@ export type EvaluationCategoricalMetricDefinition = {
17
17
  identifier: string;
18
18
  description: string | null;
19
19
  categories: string[];
20
+ pass_categories?: string[];
21
+ fail_categories?: string[];
22
+ partial_categories?: string[];
20
23
  };
21
24
  /** Metric definition in the evaluation's metrics_map */
22
25
  export type EvaluationMetricDefinition = EvaluationNumericMetricDefinition | EvaluationCategoricalMetricDefinition;
@@ -61,6 +64,9 @@ export type EvaluationMetricReference = {
61
64
  metric_type?: "LLMMetric" | "ToolMetric" | "Categorical" | "Numerical";
62
65
  description?: string | null;
63
66
  categories?: string[];
67
+ pass_categories?: string[];
68
+ fail_categories?: string[];
69
+ partial_categories?: string[];
64
70
  };
65
71
  /** LLM inference aggregate (mean/median/etc per llm_call_index) */
66
72
  export type EvaluationLLMInferenceAggregate = {
@@ -38,6 +38,22 @@ export interface Theme {
38
38
  border: string;
39
39
  color: string;
40
40
  };
41
+ /** Categorical verdict tags: pass=green, fail=red, partial=amber */
42
+ tagPass?: {
43
+ bg: string;
44
+ border: string;
45
+ color: string;
46
+ };
47
+ tagFail?: {
48
+ bg: string;
49
+ border: string;
50
+ color: string;
51
+ };
52
+ tagPartial?: {
53
+ bg: string;
54
+ border: string;
55
+ color: string;
56
+ };
41
57
  /** ToolUse table level tags: level1=green, level2=blue, level3=purple */
42
58
  tagToolLevel1?: {
43
59
  bg: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railtownai/railtracks-visualizer",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "license": "MIT",
5
5
  "author": "Railtown AI",
6
6
  "description": "A visualizer for Railtracks agentic flows",
@@ -42,15 +42,15 @@
42
42
  "dependencies": {
43
43
  "@emotion/react": "11.14.0",
44
44
  "@emotion/styled": "11.14.1",
45
- "@radix-ui/react-dialog": "1.1.17",
45
+ "@radix-ui/react-dialog": "1.1.18",
46
46
  "@railtownai/railtracks-timeline": "0.0.23",
47
- "@xyflow/react": "12.11.1",
48
- "antd": "6.4.5",
49
- "lucide-react": "1.21.0",
47
+ "@xyflow/react": "12.11.2",
48
+ "antd": "6.5.0",
49
+ "lucide-react": "1.23.0",
50
50
  "moment": "2.30.1",
51
51
  "react-countup": "6.5.3",
52
52
  "react-hotkeys-hook": "^4.6.2",
53
- "react-router-dom": "7.18.0",
53
+ "react-router-dom": "7.18.1",
54
54
  "react-textarea-autosize": "8.5.9",
55
55
  "vaul": "1.1.2"
56
56
  },
@@ -92,27 +92,27 @@
92
92
  "@testing-library/jest-dom": "6.9.1",
93
93
  "@testing-library/react": "16.3.2",
94
94
  "@testing-library/user-event": "14.6.1",
95
- "@types/node": "26.0.1",
95
+ "@types/node": "26.1.0",
96
96
  "@types/react": "18.3.27",
97
97
  "@types/react-dom": "18.3.7",
98
98
  "@vitejs/plugin-react-swc": "4.3.1",
99
99
  "clsx": "2.1.1",
100
100
  "concurrently": "10.0.3",
101
101
  "cross-env": "10.1.0",
102
- "electron": "42.5.0",
102
+ "electron": "43.0.0",
103
103
  "gh-pages": "6.3.0",
104
104
  "jsdom": "29.1.1",
105
105
  "license-checker": "25.0.1",
106
- "npm-check-updates": "22.2.7",
107
- "oxfmt": "0.56.0",
108
- "oxlint": "1.71.0",
106
+ "npm-check-updates": "22.2.9",
107
+ "oxfmt": "0.57.0",
108
+ "oxlint": "1.72.0",
109
109
  "rollup": "4.62.2",
110
110
  "rollup-plugin-postcss": "4.0.2",
111
111
  "storybook": "10.4.6",
112
112
  "typescript": "6.0.3",
113
113
  "uuid": "14.0.1",
114
- "vite": "8.1.0",
115
- "vitest": "4.1.9",
114
+ "vite": "8.1.3",
115
+ "vitest": "4.1.10",
116
116
  "wait-on": "9.0.10"
117
117
  }
118
118
  }