@railtownai/railtracks-visualizer 0.0.70 → 0.0.72

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.
@@ -49,5 +49,13 @@ export interface EvaluationsTableProps {
49
49
  error: string;
50
50
  onRetry?: () => void;
51
51
  }) => React.ReactNode;
52
+ /** Pre-selected session IDs (e.g. from deeplink URL). */
53
+ initialSessionIds?: string[];
54
+ /** Called when session filter changes (e.g. to update URL). */
55
+ onSessionFilterChange?: (sessionIds: string[]) => void;
56
+ /** Pre-selected evaluation names (e.g. from deeplink URL). */
57
+ initialNameFilter?: string[];
58
+ /** Called when evaluation name filter changes (e.g. to update URL). */
59
+ onNameFilterChange?: (names: string[]) => void;
52
60
  }
53
61
  export declare const EvaluationsTable: React.FC<EvaluationsTableProps>;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ /** Error envelope produced by the Railtracks backend for a failed node/tool. */
3
+ export interface ToolErrorOutput {
4
+ /** Exception class name, e.g. "ValueError". */
5
+ type?: string;
6
+ /** Human-readable exception message. */
7
+ message?: string;
8
+ /** Full Python traceback string. */
9
+ traceback?: string;
10
+ }
11
+ /**
12
+ * Detect whether a tool/node output is an error envelope rather than a regular
13
+ * return value. Failed nodes serialize as `{ type, message, traceback }`; a
14
+ * traceback alone, or a `type` + `message` pair, is enough to treat it as an
15
+ * error. Returns the parsed error (with only string fields kept) or null.
16
+ */
17
+ export declare function parseErrorOutput(output: unknown): ToolErrorOutput | null;
18
+ export interface ErrorOutputProps {
19
+ error: ToolErrorOutput;
20
+ }
21
+ /**
22
+ * Renders a failed node/tool output distinctly from a regular returned object:
23
+ * a destructive-tinted surface with the exception type, message, and a
24
+ * collapsible traceback.
25
+ */
26
+ export declare const ErrorOutput: React.FC<ErrorOutputProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railtownai/railtracks-visualizer",
3
- "version": "0.0.70",
3
+ "version": "0.0.72",
4
4
  "license": "MIT",
5
5
  "author": "Railtown AI",
6
6
  "description": "A visualizer for Railtracks agentic flows",