@railtownai/railtracks-visualizer 0.0.72 → 0.0.74

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>;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface AzureIconProps {
3
+ width?: string | number;
4
+ height?: string | number;
5
+ }
6
+ export declare const AzureIcon: React.FC<AzureIconProps>;
7
+ export {};
@@ -3,3 +3,4 @@ export { GoogleIcon } from "./GoogleIcon";
3
3
  export { AnthropicIcon } from "./AnthropicIcon";
4
4
  export { OllamaIcon } from "./OllamaIcon";
5
5
  export { AppleIcon } from "./AppleIcon";
6
+ export { AzureIcon } from "./AzureIcon";
@@ -17,6 +17,8 @@ export interface ToolErrorOutput {
17
17
  export declare function parseErrorOutput(output: unknown): ToolErrorOutput | null;
18
18
  export interface ErrorOutputProps {
19
19
  error: ToolErrorOutput;
20
+ /** When true, the traceback block starts expanded (useful in Storybook). */
21
+ defaultShowTraceback?: boolean;
20
22
  }
21
23
  /**
22
24
  * Renders a failed node/tool output distinctly from a regular returned object:
@@ -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 = {
@@ -28,7 +28,7 @@ export type { AgentRun } from "./dto/AgentRun";
28
28
  export type { SessionListItem } from "./agenthub/hooks/useSessions";
29
29
  export type { AgentRunNode } from "./dto/AgentRunNode";
30
30
  export type { AgentRunEdge } from "./dto/AgentRunEdge";
31
- export { OpenAIIcon, AnthropicIcon, GoogleIcon, AppleIcon, OllamaIcon } from "./components/icons";
31
+ export { OpenAIIcon, AnthropicIcon, GoogleIcon, AppleIcon, OllamaIcon, AzureIcon } from "./components/icons";
32
32
  export * from "./lib";
33
33
  export { SafeThemeProvider, useSafeTheme } from "./lib/SafeThemeProvider";
34
34
  export { createSafeTheme, getSafeColor, getSafeSpacing, getSafeThemeValue } from "./lib/utils";
@@ -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.72",
3
+ "version": "0.0.74",
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.15",
45
+ "@radix-ui/react-dialog": "1.1.18",
46
46
  "@railtownai/railtracks-timeline": "0.0.23",
47
- "@xyflow/react": "12.10.2",
48
- "antd": "6.3.6",
49
- "lucide-react": "1.8.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.14.1",
53
+ "react-router-dom": "7.18.1",
54
54
  "react-textarea-autosize": "8.5.9",
55
55
  "vaul": "1.1.2"
56
56
  },
@@ -62,9 +62,11 @@
62
62
  "build": "npm run build:types && npm run build:lib && npm run build:spa",
63
63
  "clean": "rm -rf dist build test-results .railtracks/ui/*",
64
64
  "dev": "rm -rf .railtracks/ui/* && vite build && cp -r build/* .railtracks/ui",
65
- "lint:fix": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
65
+ "format": "oxfmt .",
66
+ "format:check": "oxfmt --check .",
67
+ "lint:fix": "oxlint --fix && oxfmt .",
66
68
  "lint:license": "license-checker --summary --excludePrivatePackages --failOn 'AGPL-1.0;AGPL-3.0;EPL-1.0;EPL-2.0;GPL-1.0;GPL-2.0;GPL-3.0;LGPL-2.0;LGPL-2.1;LGPL-3.0;'",
67
- "lint": "prettier --check \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
69
+ "lint": "oxlint",
68
70
  "start": "storybook dev -p 6006",
69
71
  "storybook:build": "cross-env NODE_ENV=production storybook build",
70
72
  "storybook:deploy": "gh-pages -d storybook-static",
@@ -77,50 +79,40 @@
77
79
  "electron:start": "cross-env VITE_API_ORIGIN=http://localhost:3030 npm run build:spa && electron electron/main.js"
78
80
  },
79
81
  "devDependencies": {
80
- "@chromatic-com/storybook": "5.1.2",
81
- "@rollup/plugin-commonjs": "29.0.2",
82
+ "@chromatic-com/storybook": "5.2.1",
83
+ "@rollup/plugin-commonjs": "29.0.3",
82
84
  "@rollup/plugin-json": "6.1.0",
83
85
  "@rollup/plugin-node-resolve": "16.0.3",
84
- "@rollup/plugin-swc": "0.4.0",
86
+ "@rollup/plugin-swc": "0.4.1",
85
87
  "@rollup/plugin-terser": "1.0.0",
86
- "@storybook/addon-a11y": "10.3.5",
87
- "@storybook/addon-docs": "10.3.5",
88
- "@storybook/addon-onboarding": "10.3.5",
89
- "@storybook/react-vite": "10.3.5",
88
+ "@storybook/addon-a11y": "10.4.6",
89
+ "@storybook/addon-docs": "10.4.6",
90
+ "@storybook/addon-onboarding": "10.4.6",
91
+ "@storybook/react-vite": "10.4.6",
90
92
  "@testing-library/jest-dom": "6.9.1",
91
93
  "@testing-library/react": "16.3.2",
92
94
  "@testing-library/user-event": "14.6.1",
93
- "@types/node": "25.6.0",
95
+ "@types/node": "26.1.0",
94
96
  "@types/react": "18.3.27",
95
97
  "@types/react-dom": "18.3.7",
96
- "@vitejs/plugin-react-swc": "4.3.0",
98
+ "@vitejs/plugin-react-swc": "4.3.1",
97
99
  "clsx": "2.1.1",
98
- "concurrently": "9.2.1",
100
+ "concurrently": "10.0.3",
99
101
  "cross-env": "10.1.0",
100
- "electron": "34.5.8",
102
+ "electron": "43.0.0",
101
103
  "gh-pages": "6.3.0",
102
- "jsdom": "29.0.2",
104
+ "jsdom": "29.1.1",
103
105
  "license-checker": "25.0.1",
104
- "npm-check-updates": "21.0.2",
105
- "prettier": "3.8.3",
106
- "rollup": "4.60.1",
106
+ "npm-check-updates": "22.2.9",
107
+ "oxfmt": "0.57.0",
108
+ "oxlint": "1.72.0",
109
+ "rollup": "4.62.2",
107
110
  "rollup-plugin-postcss": "4.0.2",
108
- "storybook": "10.3.5",
111
+ "storybook": "10.4.6",
109
112
  "typescript": "6.0.3",
110
- "uuid": "13.0.0",
111
- "vite": "8.0.8",
112
- "vitest": "4.1.4",
113
- "wait-on": "8.0.5"
114
- },
115
- "prettier": {
116
- "singleQuote": false,
117
- "trailingComma": "none",
118
- "arrowParens": "always",
119
- "printWidth": 120,
120
- "tabWidth": 2,
121
- "useTabs": false,
122
- "semi": true,
123
- "endOfLine": "auto",
124
- "bracketSpacing": true
113
+ "uuid": "14.0.1",
114
+ "vite": "8.1.3",
115
+ "vitest": "4.1.10",
116
+ "wait-on": "9.0.10"
125
117
  }
126
118
  }