@railtownai/railtracks-visualizer 0.0.26 → 0.0.28
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/cjs/index.js +26636 -712
- package/dist/esm/index.js +26572 -711
- package/dist/types/components/nodes/ToolNode.d.ts +5 -1
- package/dist/types/lib/utils.d.ts +5 -4
- package/package.json +22 -22
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
interface Edge {
|
|
3
|
+
source: string;
|
|
4
|
+
target: string;
|
|
5
|
+
}
|
|
2
6
|
interface NodeData {
|
|
3
7
|
label: string;
|
|
4
8
|
nodeType?: "Tool" | "Agent" | "Coordinator";
|
|
5
9
|
details?: any;
|
|
6
10
|
id?: string;
|
|
7
|
-
edges?:
|
|
11
|
+
edges?: Edge[];
|
|
8
12
|
edgeDetails?: {
|
|
9
13
|
input_args?: any[];
|
|
10
14
|
input_kwargs?: any;
|
|
@@ -8,11 +8,12 @@ export declare function cn(...inputs: ClassValue[]): string;
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function toTitleCase(str: string): string;
|
|
10
10
|
/**
|
|
11
|
-
* Formats a currency value
|
|
12
|
-
* @param value - The value to format
|
|
13
|
-
* @
|
|
11
|
+
* Formats a currency value (USD dollars)
|
|
12
|
+
* @param value - The dollar value to format
|
|
13
|
+
* @param precision - The number of decimal places to show. Defaults to 3.
|
|
14
|
+
* @returns The formatted dollar string (eg: $123.002)
|
|
14
15
|
*/
|
|
15
|
-
export declare function formatCurrency(value: number | null | undefined): string;
|
|
16
|
+
export declare function formatCurrency(value: number | null | undefined, precision?: number): string;
|
|
16
17
|
/**
|
|
17
18
|
* Formats latency in a human-readable format
|
|
18
19
|
* @param latency - Latency in seconds
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@railtownai/railtracks-visualizer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Railtown AI",
|
|
6
6
|
"description": "A visualizer for RailTracks agentic flows",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"react-dom": "^18.3.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ant-design/plots": "2.6.
|
|
40
|
+
"@ant-design/plots": "2.6.4",
|
|
41
41
|
"@emotion/react": "11.14.0",
|
|
42
42
|
"@emotion/styled": "11.14.1",
|
|
43
43
|
"@radix-ui/react-checkbox": "1.3.3",
|
|
44
44
|
"@radix-ui/react-dialog": "1.1.15",
|
|
45
45
|
"@radix-ui/react-select": "2.2.6",
|
|
46
|
-
"@railtownai/railtracks-timeline": "0.0.
|
|
46
|
+
"@railtownai/railtracks-timeline": "0.0.5",
|
|
47
47
|
"@xyflow/react": "12.8.4",
|
|
48
|
-
"lucide-react": "0.
|
|
48
|
+
"lucide-react": "0.542.0",
|
|
49
49
|
"moment": "2.30.1",
|
|
50
50
|
"react-countup": "6.5.3",
|
|
51
51
|
"react-textarea-autosize": "8.5.9",
|
|
@@ -71,39 +71,39 @@
|
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@chromatic-com/storybook": "4.1.1",
|
|
74
|
-
"@rollup/plugin-commonjs": "
|
|
75
|
-
"@rollup/plugin-json": "6.
|
|
76
|
-
"@rollup/plugin-node-resolve": "
|
|
74
|
+
"@rollup/plugin-commonjs": "28.0.6",
|
|
75
|
+
"@rollup/plugin-json": "6.1.0",
|
|
76
|
+
"@rollup/plugin-node-resolve": "16.0.1",
|
|
77
77
|
"@rollup/plugin-swc": "0.4.0",
|
|
78
|
-
"@rollup/plugin-terser": "0.4.
|
|
79
|
-
"@storybook/addon-a11y": "9.1.
|
|
80
|
-
"@storybook/addon-docs": "9.1.
|
|
81
|
-
"@storybook/addon-onboarding": "9.1.
|
|
82
|
-
"@storybook/addon-vitest": "9.1.
|
|
83
|
-
"@storybook/react-vite": "9.1.
|
|
84
|
-
"@testing-library/jest-dom": "6.
|
|
78
|
+
"@rollup/plugin-terser": "0.4.4",
|
|
79
|
+
"@storybook/addon-a11y": "9.1.5",
|
|
80
|
+
"@storybook/addon-docs": "9.1.5",
|
|
81
|
+
"@storybook/addon-onboarding": "9.1.5",
|
|
82
|
+
"@storybook/addon-vitest": "9.1.5",
|
|
83
|
+
"@storybook/react-vite": "9.1.5",
|
|
84
|
+
"@testing-library/jest-dom": "6.8.0",
|
|
85
85
|
"@testing-library/react": "16.3.0",
|
|
86
86
|
"@testing-library/user-event": "14.6.1",
|
|
87
|
-
"@types/node": "24.1
|
|
87
|
+
"@types/node": "24.3.1",
|
|
88
88
|
"@types/react": "18.2.79",
|
|
89
89
|
"@types/react-dom": "18.2.25",
|
|
90
|
-
"@vitejs/plugin-react-swc": "
|
|
90
|
+
"@vitejs/plugin-react-swc": "4.0.1",
|
|
91
91
|
"@vitest/browser": "3.2.4",
|
|
92
92
|
"@vitest/coverage-v8": "3.2.4",
|
|
93
93
|
"class-variance-authority": "0.7.1",
|
|
94
94
|
"clsx": "2.1.1",
|
|
95
|
-
"cross-env": "^
|
|
95
|
+
"cross-env": "^10.0.0",
|
|
96
96
|
"gh-pages": "6.3.0",
|
|
97
97
|
"jsdom": "26.1.0",
|
|
98
|
-
"npm-check-updates": "18.0
|
|
98
|
+
"npm-check-updates": "18.1.0",
|
|
99
99
|
"playwright": "^1.55.0",
|
|
100
100
|
"prettier": "3.6.2",
|
|
101
|
-
"rollup": "
|
|
101
|
+
"rollup": "4.50.1",
|
|
102
102
|
"rollup-plugin-postcss": "4.0.2",
|
|
103
|
-
"storybook": "9.1.
|
|
103
|
+
"storybook": "9.1.5",
|
|
104
104
|
"tslib": "2.8.1",
|
|
105
|
-
"typescript": "5.
|
|
106
|
-
"vite": "7.
|
|
105
|
+
"typescript": "5.9.2",
|
|
106
|
+
"vite": "7.1.5",
|
|
107
107
|
"vitest": "3.2.4"
|
|
108
108
|
},
|
|
109
109
|
"prettier": {
|