@railtownai/railtracks-visualizer 0.0.13 → 0.0.15

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.
Files changed (56) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +13 -3
  3. package/dist/cjs/index.js +54 -1
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/esm/index.js +54 -1
  6. package/dist/esm/index.js.map +1 -1
  7. package/dist/types/App.d.ts +5 -0
  8. package/dist/types/App.d.ts.map +1 -1
  9. package/dist/types/{AgenticFlowVisualizer.d.ts → components/AgenticFlowVisualizer.d.ts} +3 -2
  10. package/dist/types/components/AgenticFlowVisualizer.d.ts.map +1 -0
  11. package/dist/types/components/Edge.d.ts +0 -1
  12. package/dist/types/components/Edge.d.ts.map +1 -1
  13. package/dist/types/components/FileSelector.d.ts.map +1 -1
  14. package/dist/types/components/Node.d.ts +13 -7
  15. package/dist/types/components/Node.d.ts.map +1 -1
  16. package/dist/types/components/Timeline.d.ts +3 -4
  17. package/dist/types/components/Timeline.d.ts.map +1 -1
  18. package/dist/types/components/Visualizer.d.ts.map +1 -0
  19. package/dist/types/components/ui/badge.d.ts +10 -0
  20. package/dist/types/components/ui/badge.d.ts.map +1 -0
  21. package/dist/types/components/ui/checkbox.d.ts +5 -0
  22. package/dist/types/components/ui/checkbox.d.ts.map +1 -0
  23. package/dist/types/components/ui/drawer.d.ts +25 -0
  24. package/dist/types/components/ui/drawer.d.ts.map +1 -0
  25. package/dist/types/components/ui/json-tree.d.ts +12 -0
  26. package/dist/types/components/ui/json-tree.d.ts.map +1 -0
  27. package/dist/types/components/ui/select.d.ts +14 -0
  28. package/dist/types/components/ui/select.d.ts.map +1 -0
  29. package/dist/types/components/ui/sheet.d.ts +26 -0
  30. package/dist/types/components/ui/sheet.d.ts.map +1 -0
  31. package/dist/types/dto/AgentRun.d.ts +20 -0
  32. package/dist/types/dto/AgentRun.d.ts.map +1 -0
  33. package/dist/types/dto/AgentRunEdge.d.ts +19 -0
  34. package/dist/types/dto/AgentRunEdge.d.ts.map +1 -0
  35. package/dist/types/dto/AgentRunNode.d.ts +35 -0
  36. package/dist/types/dto/AgentRunNode.d.ts.map +1 -0
  37. package/dist/types/dto/AgentSession.d.ts +3 -0
  38. package/dist/types/dto/AgentSession.d.ts.map +1 -0
  39. package/dist/types/hooks/index.d.ts +4 -1
  40. package/dist/types/hooks/index.d.ts.map +1 -1
  41. package/dist/types/hooks/useFlowData.d.ts +3 -66
  42. package/dist/types/hooks/useFlowData.d.ts.map +1 -1
  43. package/dist/types/index.d.ts +14 -8
  44. package/dist/types/index.d.ts.map +1 -1
  45. package/dist/types/lib/index.d.ts +3 -0
  46. package/dist/types/lib/index.d.ts.map +1 -0
  47. package/dist/types/lib/layout.d.ts +15 -0
  48. package/dist/types/lib/layout.d.ts.map +1 -0
  49. package/dist/types/lib/utils.d.ts +28 -0
  50. package/dist/types/lib/utils.d.ts.map +1 -0
  51. package/package.json +42 -13
  52. package/dist/types/AgenticFlowVisualizer.d.ts.map +0 -1
  53. package/dist/types/Visualizer.d.ts.map +0 -1
  54. package/dist/types/components/VerticalTimeline.d.ts +0 -14
  55. package/dist/types/components/VerticalTimeline.d.ts.map +0 -1
  56. /package/dist/types/{Visualizer.d.ts → components/Visualizer.d.ts} +0 -0
@@ -1,4 +1,9 @@
1
1
  import React from "react";
2
+ /**
3
+ * This is used as an entrypoint for building the portable SPA version of the visualizer.
4
+ *
5
+ * It shows up in `.railtracks/ui/*` when you run `railtracks viz`
6
+ */
2
7
  declare const App: React.FC;
3
8
  export default App;
4
9
  //# sourceMappingURL=App.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EA+IhB,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD;;;;GAIG;AACH,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAkOhB,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import "reactflow/dist/style.css";
3
- import { DataJsonStructure } from "./hooks";
3
+ import { AgentRun } from "../dto/AgentRun";
4
4
  export interface AgenticFlowVisualizerProps {
5
- flowData?: DataJsonStructure | null;
5
+ flowData?: AgentRun | null;
6
6
  width?: string | number;
7
7
  height?: string | number;
8
8
  className?: string;
@@ -13,6 +13,7 @@ export interface AgenticFlowVisualizerProps {
13
13
  };
14
14
  disableAutoFit?: boolean;
15
15
  showTimeline?: boolean;
16
+ minNodeSpacing?: number;
16
17
  }
17
18
  declare const AgenticFlowVisualizer: React.FC<AgenticFlowVisualizerProps>;
18
19
  export default AgenticFlowVisualizer;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgenticFlowVisualizer.d.ts","sourceRoot":"","sources":["../../../src/components/AgenticFlowVisualizer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,0BAA0B,CAAC;AAOlC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAQ3C,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAQD,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqZ/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -23,7 +23,6 @@ interface EdgeProps {
23
23
  y: number;
24
24
  };
25
25
  svgRef?: React.RefObject<SVGSVGElement>;
26
- onInspect?: (edgeData: any) => void;
27
26
  }
28
27
  export declare const Edge: React.FC<EdgeProps>;
29
28
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Edge.d.ts","sourceRoot":"","sources":["../../../src/components/Edge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,UAAU,SAAS;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,GAAG,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,GAAG,CAAC;KACf,CAAC;IACF,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnF,MAA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- {"version":3,"file":"FileSelector.d.ts","sourceRoot":"","sources":["../../../src/components/FileSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,UAAU,iBAAiB;IACzB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAsDpD,CAAC"}
1
+ {"version":3,"file":"FileSelector.d.ts","sourceRoot":"","sources":["../../../src/components/FileSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIpC,UAAU,iBAAiB;IACzB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAkEpD,CAAC"}
@@ -1,14 +1,20 @@
1
1
  import React from "react";
2
+ import { AgentRunNode } from "../dto/AgentRunNode";
3
+ import { AgentRunEdge } from "../dto/AgentRunEdge";
4
+ type NodeType = "Tool" | "Agent" | "Coordinator";
2
5
  interface NodeData {
3
6
  label: string;
4
- description?: string;
5
- nodeType?: string;
6
- step?: number;
7
- time?: number;
8
- icon?: string;
9
- onInspect?: (nodeData: any) => void;
7
+ nodeType?: NodeType;
8
+ details?: AgentRunNode["details"];
10
9
  id?: string;
11
- edges?: any[];
10
+ edges?: AgentRunEdge[];
11
+ edgeDetails?: {
12
+ input_args?: any[];
13
+ input_kwargs?: any;
14
+ output?: any;
15
+ state?: string;
16
+ status?: string;
17
+ }[];
12
18
  }
13
19
  interface NodeProps {
14
20
  data: NodeData;
@@ -1 +1 @@
1
- {"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../../src/components/Node.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;CACf;AAED,UAAU,SAAS;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0H7B,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,YAAY,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../../src/components/Node.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKnD,KAAK,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,CAAC;AAEjD,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE;QACZ,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;QACnB,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,MAAM,CAAC,EAAE,GAAG,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;CACL;AAED,UAAU,SAAS;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;CACZ;AAsCD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA+K7B,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,YAAY,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,15 +1,14 @@
1
1
  import React from "react";
2
- interface TimelineProps {
2
+ interface IProps {
3
3
  stamps: Array<{
4
4
  step: number;
5
5
  time: number;
6
6
  identifier: string;
7
7
  }>;
8
8
  currentStep: number;
9
- isPlaying: boolean;
10
9
  onStepChange: (step: number) => void;
11
- onPlayPause: () => void;
10
+ onToggle?: () => void;
12
11
  }
13
- declare const Timeline: React.FC<TimelineProps>;
12
+ declare const Timeline: React.FC<IProps>;
14
13
  export { Timeline };
15
14
  //# sourceMappingURL=Timeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA4KrC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/components/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,MAAM;IACd,MAAM,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAiI9B,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Visualizer.d.ts","sourceRoot":"","sources":["../../../src/components/Visualizer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAA8B,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAG5F;;;GAGG;AACH,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAMpD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "gray" | "secondary" | "destructive" | "outline" | "cost" | "latency" | "latencyLow" | "latencyMedium" | "latencyHigh" | null | undefined;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ }
8
+ declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
9
+ export { Badge, badgeVariants };
10
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;mFAqBlB,CAAC;AAEF,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAE/G,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,qBAE1D;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
5
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAK9D,QAAA,MAAM,QAAQ,iKAgBZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,25 @@
1
+ import * as React from "react";
2
+ import { Drawer as DrawerPrimitive } from "vaul";
3
+ declare const Drawer: {
4
+ ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root> & {
5
+ shouldScaleBackground?: boolean;
6
+ }): React.JSX.Element;
7
+ displayName: string;
8
+ };
9
+ declare const DrawerTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const DrawerPortal: typeof import("vaul").Portal;
11
+ declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
12
+ declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const DrawerHeader: {
15
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
16
+ displayName: string;
17
+ };
18
+ declare const DrawerFooter: {
19
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
20
+ displayName: string;
21
+ };
22
+ declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
23
+ declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
24
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription };
25
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAIjD,QAAA,MAAM,MAAM;0CAGT,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG;QACrD,qBAAqB,CAAC,EAAE,OAAO,CAAC;KACjC;;CAAsF,CAAC;AAGxF,QAAA,MAAM,aAAa,+HAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,8BAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,6HAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,kOAKjB,CAAC;AAGH,QAAA,MAAM,aAAa,kOAkBjB,CAAC;AAGH,QAAA,MAAM,YAAY;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAElF,CAAC;AAGF,QAAA,MAAM,YAAY;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAElF,CAAC;AAGF,QAAA,MAAM,WAAW,qLASf,CAAC;AAGH,QAAA,MAAM,iBAAiB,+LAKrB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EAClB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ interface JsonTreeViewerProps {
3
+ data: any;
4
+ maxDepth?: number;
5
+ initialExpanded?: boolean;
6
+ className?: string;
7
+ priorityKeys?: string[];
8
+ }
9
+ declare const JsonTreeViewer: React.FC<JsonTreeViewerProps>;
10
+ export { JsonTreeViewer };
11
+ export type { JsonTreeViewerProps };
12
+ //# sourceMappingURL=json-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-tree.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/json-tree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,mBAAmB;IAC3B,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AA2HD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6CjD,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton };
14
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,WAAW,yGAAwB,CAAC;AAE1C,QAAA,MAAM,WAAW,0GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,oKAiBjB,CAAC;AAGH,QAAA,MAAM,oBAAoB,qKAWxB,CAAC;AAGH,QAAA,MAAM,sBAAsB,uKAW1B,CAAC;AAGH,QAAA,MAAM,aAAa,8JA6BjB,CAAC;AAGH,QAAA,MAAM,WAAW,4JAKf,CAAC;AAGH,QAAA,MAAM,UAAU,2JAoBd,CAAC;AAGH,QAAA,MAAM,eAAe,gKAKnB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACvB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
3
+ import { type VariantProps } from "class-variance-authority";
4
+ declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
5
+ declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
+ declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const sheetVariants: (props?: ({
10
+ side?: "top" | "right" | "bottom" | "left" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
+ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
+ }
14
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
15
+ declare const SheetHeader: {
16
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const SheetFooter: {
20
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
21
+ displayName: string;
22
+ };
23
+ declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
24
+ declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
25
+ export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription };
26
+ //# sourceMappingURL=sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,KAAK,sCAAsB,CAAC;AAElC,QAAA,MAAM,YAAY,6GAAyB,CAAC;AAE5C,QAAA,MAAM,UAAU,2GAAuB,CAAC;AAExC,QAAA,MAAM,WAAW,4CAAwB,CAAC;AAE1C,QAAA,MAAM,YAAY,6JAYhB,CAAC;AAGH,QAAA,MAAM,aAAa;;mFAiBlB,CAAC;AAEF,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EACnE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,YAAY,0FAejB,CAAC;AAGF,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEjF,CAAC;AAGF,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEjF,CAAC;AAGF,QAAA,MAAM,UAAU,mKAKd,CAAC;AAGH,QAAA,MAAM,gBAAgB,6KAKpB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EACjB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { AgentRunNode } from "./AgentRunNode";
2
+ import { AgentRunEdge } from "./AgentRunEdge";
3
+ export interface AgentRun {
4
+ session_id: string;
5
+ name: string;
6
+ run_id: string;
7
+ nodes: AgentRunNode[];
8
+ edges?: AgentRunEdge[];
9
+ stamps?: Array<{
10
+ step: number;
11
+ time: number;
12
+ identifier: string;
13
+ }>;
14
+ steps?: Array<{
15
+ step: number;
16
+ time: number;
17
+ identifier: string;
18
+ }>;
19
+ }
20
+ //# sourceMappingURL=AgentRun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentRun.d.ts","sourceRoot":"","sources":["../../../src/dto/AgentRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;CACJ"}
@@ -0,0 +1,19 @@
1
+ export interface AgentRunEdge {
2
+ identifier: string;
3
+ source: string | null;
4
+ target: string;
5
+ stamp: {
6
+ step: number;
7
+ time: number;
8
+ identifier: string;
9
+ };
10
+ details: {
11
+ state?: string;
12
+ status?: string;
13
+ input_args?: any[];
14
+ input_kwargs?: any;
15
+ output?: any;
16
+ };
17
+ parent: AgentRunEdge | null;
18
+ }
19
+ //# sourceMappingURL=AgentRunEdge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentRunEdge.d.ts","sourceRoot":"","sources":["../../../src/dto/AgentRunEdge.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,OAAO,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;QACnB,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,MAAM,CAAC,EAAE,GAAG,CAAC;KACd,CAAC;IACF,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;CAC7B"}
@@ -0,0 +1,35 @@
1
+ export interface AgentRunNode {
2
+ identifier: string;
3
+ node_type: string;
4
+ name?: string;
5
+ stamp: {
6
+ step: number;
7
+ time: number;
8
+ identifier: string;
9
+ };
10
+ details: {
11
+ internals?: {
12
+ llm_details?: Array<{
13
+ model_name: string;
14
+ model_provider: string;
15
+ input: Array<{
16
+ role: string;
17
+ content: any;
18
+ }>;
19
+ output: {
20
+ role: string;
21
+ content: any;
22
+ };
23
+ input_tokens: number | null;
24
+ output_tokens: number | null;
25
+ total_cost: number | null;
26
+ system_fingerprint: string | null;
27
+ }>;
28
+ latency?: {
29
+ total_time: number;
30
+ };
31
+ };
32
+ };
33
+ parent: AgentRunNode | null;
34
+ }
35
+ //# sourceMappingURL=AgentRunNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentRunNode.d.ts","sourceRoot":"","sources":["../../../src/dto/AgentRunNode.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,OAAO,EAAE;QACP,SAAS,CAAC,EAAE;YACV,WAAW,CAAC,EAAE,KAAK,CAAC;gBAClB,UAAU,EAAE,MAAM,CAAC;gBACnB,cAAc,EAAE,MAAM,CAAC;gBACvB,KAAK,EAAE,KAAK,CAAC;oBACX,IAAI,EAAE,MAAM,CAAC;oBACb,OAAO,EAAE,GAAG,CAAC;iBACd,CAAC,CAAC;gBACH,MAAM,EAAE;oBACN,IAAI,EAAE,MAAM,CAAC;oBACb,OAAO,EAAE,GAAG,CAAC;iBACd,CAAC;gBACF,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;gBAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;gBAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;gBAC1B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;aACnC,CAAC,CAAC;YACH,OAAO,CAAC,EAAE;gBACR,UAAU,EAAE,MAAM,CAAC;aACpB,CAAC;SACH,CAAC;KACH,CAAC;IACF,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;CAC7B"}
@@ -0,0 +1,3 @@
1
+ import { AgentRun } from "./AgentRun";
2
+ export type AgentSession = AgentRun[];
3
+ //# sourceMappingURL=AgentSession.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentSession.d.ts","sourceRoot":"","sources":["../../../src/dto/AgentSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,YAAY,GAAG,QAAQ,EAAE,CAAC"}
@@ -1,5 +1,8 @@
1
1
  export { useApi } from "./useApi";
2
2
  export { useFlowData } from "./useFlowData";
3
3
  export type { JsonFile, ApiError } from "./useApi";
4
- export type { FlowDataState, DataJsonNode, DataJsonEdge, DataJsonStructure } from "./useFlowData";
4
+ export type { FlowDataState } from "./useFlowData";
5
+ export type { AgentRunNode } from "../dto/AgentRunNode";
6
+ export type { AgentRunEdge } from "../dto/AgentRunEdge";
7
+ export type { AgentRun } from "../dto/AgentRun";
5
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACnD,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACnD,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,72 +1,9 @@
1
1
  import { JsonFile } from "./useApi";
2
- export interface DataJsonNode {
3
- identifier: string;
4
- node_type: string;
5
- stamp: {
6
- step: number;
7
- time: number;
8
- identifier: string;
9
- };
10
- details: {
11
- internals?: {
12
- llm_details?: Array<{
13
- model_name: string;
14
- model_provider: string;
15
- input: Array<{
16
- role: string;
17
- content: any;
18
- }>;
19
- output: {
20
- role: string;
21
- content: any;
22
- };
23
- input_tokens: number | null;
24
- output_tokens: number | null;
25
- total_cost: number | null;
26
- system_fingerprint: string | null;
27
- }>;
28
- latency?: {
29
- total_time: number;
30
- };
31
- };
32
- };
33
- parent: DataJsonNode | null;
34
- }
35
- export interface DataJsonEdge {
36
- identifier: string;
37
- source: string | null;
38
- target: string;
39
- stamp: {
40
- step: number;
41
- time: number;
42
- identifier: string;
43
- };
44
- details: {
45
- state?: string;
46
- input_args?: any[];
47
- input_kwargs?: any;
48
- output?: any;
49
- };
50
- parent: DataJsonEdge | null;
51
- }
52
- export interface DataJsonStructure {
53
- nodes: DataJsonNode[];
54
- edges?: DataJsonEdge[];
55
- stamps?: Array<{
56
- step: number;
57
- time: number;
58
- identifier: string;
59
- }>;
60
- steps?: Array<{
61
- step: number;
62
- time: number;
63
- identifier: string;
64
- }>;
65
- }
2
+ import { AgentRun } from "../dto/AgentRun";
66
3
  export interface FlowDataState {
67
4
  availableFiles: JsonFile[];
68
5
  currentFile: string | null;
69
- flowData: DataJsonStructure | null;
6
+ flowData: AgentRun | null;
70
7
  loading: boolean;
71
8
  error: string | null;
72
9
  }
@@ -77,6 +14,6 @@ export declare const useFlowData: () => {
77
14
  refreshFiles: () => Promise<void>;
78
15
  availableFiles: JsonFile[];
79
16
  currentFile: string | null;
80
- flowData: DataJsonStructure | null;
17
+ flowData: AgentRun | null;
81
18
  };
82
19
  //# sourceMappingURL=useFlowData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFlowData.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFlowData.ts"],"names":[],"mappings":"AACA,OAAO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C1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,WAAW;;;yBAyBH,MAAM;;oBAhCT,QAAQ,EAAE;iBACb,MAAM,GAAG,IAAI;cAChB,QAAQ,GAAG,IAAI;CA4E1B,CAAC"}
@@ -1,11 +1,17 @@
1
- export { default as AgenticFlowVisualizer } from "./AgenticFlowVisualizer";
2
- export type { AgenticFlowVisualizerProps } from "./AgenticFlowVisualizer";
3
- export { default as Visualizer } from "./Visualizer";
4
- export { default as App } from "./App";
5
- export { Edge } from "./components/Edge";
6
- export { FileSelector } from "./components/FileSelector";
1
+ export { default as AgenticFlowVisualizer } from "./components/AgenticFlowVisualizer";
2
+ export { default as Visualizer } from "./components/Visualizer";
7
3
  export { Node } from "./components/Node";
4
+ export { Edge } from "./components/Edge";
8
5
  export { Timeline } from "./components/Timeline";
9
- export { VerticalTimeline } from "./components/VerticalTimeline";
10
- export type { AgenticFlowVisualizerProps as VisualizerProps } from "./AgenticFlowVisualizer";
6
+ export { FileSelector } from "./components/FileSelector";
7
+ export { JsonTreeViewer } from "./components/ui/json-tree";
8
+ export { Badge } from "./components/ui/badge";
9
+ export { Checkbox } from "./components/ui/checkbox";
10
+ export { Drawer } from "./components/ui/drawer";
11
+ export { Select } from "./components/ui/select";
12
+ export { Sheet } from "./components/ui/sheet";
13
+ export type { AgentRun } from "./dto/AgentRun";
14
+ export type { AgentRunNode } from "./dto/AgentRunNode";
15
+ export type { AgentRunEdge } from "./dto/AgentRunEdge";
16
+ export * from "./lib";
11
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,OAA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AACvD,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,cAAc,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./utils";
2
+ export * from "./layout";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { AgentRunNode } from "../dto/AgentRunNode";
2
+ import { AgentRunEdge } from "../dto/AgentRunEdge";
3
+ export interface Position {
4
+ x: number;
5
+ y: number;
6
+ }
7
+ export interface LayoutOptions {
8
+ minNodeSpacing?: number;
9
+ containerWidth?: number;
10
+ }
11
+ /**
12
+ * Calculates a clean tree layout: parents centered above children, siblings spaced evenly, no overlap.
13
+ */
14
+ export declare const calculateAutoLayout: (nodes: AgentRunNode[], edges: AgentRunEdge[], options?: LayoutOptions) => Map<string, Position>;
15
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/lib/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,aAAa;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,YAAY,EAAE,EACrB,OAAO,YAAY,EAAE,EACrB,UAAS,aAAkB,KAC1B,GAAG,CAAC,MAAM,EAAE,QAAQ,CAiKtB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ /**
4
+ * Converts a string to title case
5
+ * @param str - The string to convert
6
+ * @returns The title case string
7
+ */
8
+ export declare function toTitleCase(str: string): string;
9
+ /**
10
+ * Truncates text to specified length with ellipsis
11
+ * @param text - The text to truncate
12
+ * @param maxLength - The maximum length of the text
13
+ * @returns The truncated text
14
+ */
15
+ export declare function truncateText(text: string, maxLength: number): string;
16
+ /**
17
+ * Formats a number as currency with $0.00 format
18
+ * @param amount - The amount to format
19
+ * @returns The formatted currency string
20
+ */
21
+ export declare function formatCurrency(amount: number | string | null | undefined): string;
22
+ /**
23
+ * Formats latency time in milliseconds
24
+ * @param time - The time in milliseconds
25
+ * @returns The formatted time string in milliseconds
26
+ */
27
+ export declare function formatLatency(time: number | string | null | undefined): string;
28
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,UAEtC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAajF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAQ9E"}