agentic-ui-libs 0.1.9 → 0.2.0-beta.1
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/assets/style.css +1 -1
- package/dist/data/apiDashboardConfig.d.ts +1 -1
- package/dist/data/apiDashboardConfig.d.ts.map +1 -1
- package/dist/data/colorPalettes.d.ts +1 -1
- package/dist/data/colorPalettes.d.ts.map +1 -1
- package/dist/data/enhancedSampleData.d.ts +1 -1
- package/dist/data/enhancedSampleData.d.ts.map +1 -1
- package/dist/data/executionEventsSample.d.ts +632 -0
- package/dist/data/executionEventsSample.d.ts.map +1 -0
- package/dist/data/sampleData.d.ts +1 -1
- package/dist/data/sampleData.d.ts.map +1 -1
- package/dist/{components → features/dashboard}/AgentListView.d.ts +1 -1
- package/dist/features/dashboard/AgentListView.d.ts.map +1 -0
- package/dist/{components → features/dashboard}/AnalyticsChart.d.ts +1 -1
- package/dist/features/dashboard/AnalyticsChart.d.ts.map +1 -0
- package/dist/{components → features/dashboard}/AnalyticsTable.d.ts +1 -1
- package/dist/features/dashboard/AnalyticsTable.d.ts.map +1 -0
- package/dist/{components → features/dashboard}/Dashboard.d.ts +1 -1
- package/dist/features/dashboard/Dashboard.d.ts.map +1 -0
- package/dist/{components → features/dashboard}/DashboardSection.d.ts +1 -1
- package/dist/features/dashboard/DashboardSection.d.ts.map +1 -0
- package/dist/{components → features/dashboard}/MetricCard.d.ts +1 -1
- package/dist/features/dashboard/MetricCard.d.ts.map +1 -0
- package/dist/{components → features/dashboard}/ModelListView.d.ts +1 -1
- package/dist/features/dashboard/ModelListView.d.ts.map +1 -0
- package/dist/features/dashboard/RunsSlider.d.ts.map +1 -0
- package/dist/{components → features/dashboard}/SectionControls.d.ts +1 -1
- package/dist/features/dashboard/SectionControls.d.ts.map +1 -0
- package/dist/{components → features/dashboard}/ToolListView.d.ts +1 -1
- package/dist/features/dashboard/ToolListView.d.ts.map +1 -0
- package/dist/{components → features/dashboard}/ViewRenderer.d.ts +1 -1
- package/dist/features/dashboard/ViewRenderer.d.ts.map +1 -0
- package/dist/features/dashboard/index.d.ts +13 -0
- package/dist/features/dashboard/index.d.ts.map +1 -0
- package/dist/features/debug-logs/DebugPanel.d.ts +4 -0
- package/dist/features/debug-logs/DebugPanel.d.ts.map +1 -0
- package/dist/features/debug-logs/components/DebugCard.d.ts +11 -0
- package/dist/features/debug-logs/components/DebugCard.d.ts.map +1 -0
- package/dist/features/debug-logs/index.d.ts +4 -0
- package/dist/features/debug-logs/index.d.ts.map +1 -0
- package/dist/features/debug-logs/services/TreeBuilder.d.ts +63 -0
- package/dist/features/debug-logs/services/TreeBuilder.d.ts.map +1 -0
- package/dist/features/debug-logs/types.d.ts +96 -0
- package/dist/features/debug-logs/types.d.ts.map +1 -0
- package/dist/index.d.ts +18 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8886 -7962
- package/dist/lib/api-invoker.service.d.ts +1 -1
- package/dist/lib/api-invoker.service.d.ts.map +1 -1
- package/dist/lib/dashboard-api.service.d.ts +1 -1
- package/dist/lib/dashboard-api.service.d.ts.map +1 -1
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/types/index.d.ts.map +1 -0
- package/dist/shared/ui/Avatar.d.ts +13 -0
- package/dist/shared/ui/Avatar.d.ts.map +1 -0
- package/dist/{components → shared}/ui/Button.d.ts +1 -1
- package/dist/shared/ui/Button.d.ts.map +1 -0
- package/dist/shared/ui/Card.d.ts.map +1 -0
- package/dist/shared/ui/CodeEditor.d.ts +25 -0
- package/dist/shared/ui/CodeEditor.d.ts.map +1 -0
- package/dist/{components → shared}/ui/IconPreview.d.ts +1 -1
- package/dist/shared/ui/IconPreview.d.ts.map +1 -0
- package/dist/{components → shared}/ui/MultiSelect.d.ts +1 -1
- package/dist/shared/ui/MultiSelect.d.ts.map +1 -0
- package/dist/shared/ui/Portal.d.ts.map +1 -0
- package/dist/{components → shared}/ui/Select.d.ts +1 -1
- package/dist/shared/ui/Select.d.ts.map +1 -0
- package/dist/shared/ui/Skeleton.d.ts.map +1 -0
- package/dist/shared/ui/daterangepicker.d.ts.map +1 -0
- package/dist/shared/ui/index.d.ts +11 -0
- package/dist/shared/ui/index.d.ts.map +1 -0
- package/dist/ui-libs.umd.js +142 -81
- package/package.json +24 -6
- package/dist/components/AgentListView.d.ts.map +0 -1
- package/dist/components/AnalyticsChart.d.ts.map +0 -1
- package/dist/components/AnalyticsTable.d.ts.map +0 -1
- package/dist/components/Dashboard.d.ts.map +0 -1
- package/dist/components/DashboardSection.d.ts.map +0 -1
- package/dist/components/MetricCard.d.ts.map +0 -1
- package/dist/components/ModelListView.d.ts.map +0 -1
- package/dist/components/RunsSlider.d.ts.map +0 -1
- package/dist/components/SectionControls.d.ts.map +0 -1
- package/dist/components/ToolListView.d.ts.map +0 -1
- package/dist/components/ViewRenderer.d.ts.map +0 -1
- package/dist/components/ui/Button.d.ts.map +0 -1
- package/dist/components/ui/Card.d.ts.map +0 -1
- package/dist/components/ui/IconPreview.d.ts.map +0 -1
- package/dist/components/ui/MultiSelect.d.ts.map +0 -1
- package/dist/components/ui/Portal.d.ts.map +0 -1
- package/dist/components/ui/Select.d.ts.map +0 -1
- package/dist/components/ui/Skeleton.d.ts.map +0 -1
- package/dist/components/ui/daterangepicker.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- /package/dist/{components → features/dashboard}/RunsSlider.d.ts +0 -0
- /package/dist/{types → shared/types}/index.d.ts +0 -0
- /package/dist/{components → shared}/ui/Card.d.ts +0 -0
- /package/dist/{components → shared}/ui/Portal.d.ts +0 -0
- /package/dist/{components → shared}/ui/Skeleton.d.ts +0 -0
- /package/dist/{components → shared}/ui/daterangepicker.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricCard.d.ts","sourceRoot":"","sources":["../../../src/features/dashboard/MetricCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,UAAU,eAAe;IACvB,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmHhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelListView.d.ts","sourceRoot":"","sources":["../../../src/features/dashboard/ModelListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,UAAU,SAAS;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoKD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoFtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunsSlider.d.ts","sourceRoot":"","sources":["../../../src/features/dashboard/RunsSlider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,OAAO;IACf,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,eAAe;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;IACnD,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoCD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsQhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionControls.d.ts","sourceRoot":"","sources":["../../../src/features/dashboard/SectionControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMpD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoH1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolListView.d.ts","sourceRoot":"","sources":["../../../src/features/dashboard/ToolListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,UAAU,iBAAiB;IACzB,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0CD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwFpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewRenderer.d.ts","sourceRoot":"","sources":["../../../src/features/dashboard/ViewRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAShD,UAAU,iBAAiB;IACzB,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8KpD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { Dashboard } from './Dashboard';
|
|
2
|
+
export { DashboardSection } from './DashboardSection';
|
|
3
|
+
export { ViewRenderer } from './ViewRenderer';
|
|
4
|
+
export { MetricCard } from './MetricCard';
|
|
5
|
+
export { AnalyticsChart } from './AnalyticsChart';
|
|
6
|
+
export { AnalyticsTable } from './AnalyticsTable';
|
|
7
|
+
export { SectionControls } from './SectionControls';
|
|
8
|
+
export { AgentListView } from './AgentListView';
|
|
9
|
+
export { ToolListView } from './ToolListView';
|
|
10
|
+
export { ModelListView } from './ModelListView';
|
|
11
|
+
export { RunsSlider } from './RunsSlider';
|
|
12
|
+
export type { DataPoint, MetricData, DateRange, ChartConfig, ColorPalette, ChartLineConfig, TooltipConfig, TableConfig, TableColumnConfig, ViewConfig, ViewType, ControlsConfig, DropdownOption, DashboardSection as DashboardSectionType, DashboardConfig, GlobalControlsConfig, DashboardEventHandlers, ComponentProps, ComponentSize, ComponentVariant, DataProvider, AnalyticsPlugin, AppConfig, ApiHeaders, ApiRequestParams, ApiResponse, UsageAnalyticsCards, RunsCards, TimeSeriesResponse, TimeSeriesDataPoint } from '@/shared/types';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/dashboard/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,YAAY,EAEV,SAAS,EACT,UAAU,EACV,SAAS,EAGT,WAAW,EACX,YAAY,EACZ,eAAe,EACf,aAAa,EAGb,WAAW,EACX,iBAAiB,EAGjB,UAAU,EACV,QAAQ,EAGR,cAAc,EACd,cAAc,EAGd,gBAAgB,IAAI,oBAAoB,EAGxC,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EAGtB,cAAc,EACd,aAAa,EACb,gBAAgB,EAGhB,YAAY,EACZ,eAAe,EAGf,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebugPanel.d.ts","sourceRoot":"","sources":["../../../src/features/debug-logs/DebugPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,aAAa,EAA4B,MAAM,SAAS,CAAC;AAKnF,eAAO,MAAM,UAAU,2GAuTrB,CAAC;AAIH,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TreeNode } from '../types';
|
|
2
|
+
interface DebugCardProps {
|
|
3
|
+
node: TreeNode;
|
|
4
|
+
onToggle?: (nodeId: string) => void;
|
|
5
|
+
isExpanded?: boolean;
|
|
6
|
+
onNodeClick?: (node: TreeNode) => void;
|
|
7
|
+
selectedNodeIds?: Set<string>;
|
|
8
|
+
}
|
|
9
|
+
export declare function DebugCard({ node, onToggle, isExpanded, onNodeClick, selectedNodeIds }: DebugCardProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default DebugCard;
|
|
11
|
+
//# sourceMappingURL=DebugCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebugCard.d.ts","sourceRoot":"","sources":["../../../../src/features/debug-logs/components/DebugCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAcpC,UAAU,cAAc;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC/B;AAID,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,QAAQ,EACR,UAAkB,EAClB,WAAW,EACX,eAAe,EAChB,EAAE,cAAc,2CAgahB;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/debug-logs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ExecutionEvent, SessionTree } from '../types';
|
|
2
|
+
export declare class TreeBuilder {
|
|
3
|
+
/**
|
|
4
|
+
* Process execution events and build a hierarchical tree structure
|
|
5
|
+
* Session > Run > Invocation Tree
|
|
6
|
+
*/
|
|
7
|
+
static buildSessionTree(events: ExecutionEvent[], sessionId?: string): SessionTree;
|
|
8
|
+
/**
|
|
9
|
+
* Group events by runId
|
|
10
|
+
*/
|
|
11
|
+
private static groupEventsByRun;
|
|
12
|
+
/**
|
|
13
|
+
* Build tree for a single run
|
|
14
|
+
*/
|
|
15
|
+
private static buildRunTree;
|
|
16
|
+
/**
|
|
17
|
+
* Create TreeNode from ExecutionEvent
|
|
18
|
+
*/
|
|
19
|
+
private static createTreeNode;
|
|
20
|
+
/**
|
|
21
|
+
* Create TreeNode from ToolCall
|
|
22
|
+
*/
|
|
23
|
+
private static createToolTreeNode;
|
|
24
|
+
/**
|
|
25
|
+
* Map node type for UI display
|
|
26
|
+
*/
|
|
27
|
+
private static mapNodeType;
|
|
28
|
+
/**
|
|
29
|
+
* Build trees with supervisor rule
|
|
30
|
+
* - Supervisors always start new trees
|
|
31
|
+
* - Other nodes follow parent-child relationships
|
|
32
|
+
*/
|
|
33
|
+
private static buildTreesWithSupervisorRule;
|
|
34
|
+
/**
|
|
35
|
+
* Sort children recursively by start time
|
|
36
|
+
*/
|
|
37
|
+
private static sortChildren;
|
|
38
|
+
/**
|
|
39
|
+
* Calculate overall run status
|
|
40
|
+
*/
|
|
41
|
+
private static calculateRunStatus;
|
|
42
|
+
/**
|
|
43
|
+
* Extract initial user input
|
|
44
|
+
*/
|
|
45
|
+
private static extractUserInput;
|
|
46
|
+
/**
|
|
47
|
+
* Extract final agent output
|
|
48
|
+
*/
|
|
49
|
+
private static extractFinalOutput;
|
|
50
|
+
/**
|
|
51
|
+
* Update tree with new events (optimized for real-time updates)
|
|
52
|
+
*/
|
|
53
|
+
static updateTree(existingTree: SessionTree, _newEvents: ExecutionEvent[], allEvents: ExecutionEvent[]): SessionTree;
|
|
54
|
+
/**
|
|
55
|
+
* Merge new events into existing events efficiently
|
|
56
|
+
*/
|
|
57
|
+
static mergeEvents(existingEvents: ExecutionEvent[], newEvents: ExecutionEvent[]): ExecutionEvent[];
|
|
58
|
+
/**
|
|
59
|
+
* Extract unique attachments from all events in a run
|
|
60
|
+
*/
|
|
61
|
+
private static extractAttachments;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=TreeBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeBuilder.d.ts","sourceRoot":"","sources":["../../../../src/features/debug-logs/services/TreeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,WAAW,EAAwB,MAAM,UAAU,CAAC;AAEhG,qBAAa,WAAW;IACtB;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW;IAoBlF;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAc/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IA0E3B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;IA4B7B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IA+BjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAU1B;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAyC3C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IAU3B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IASjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAO/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAmBjC;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,WAAW;IAMpH;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,cAAc,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;IAgCnG;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAelC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export interface Attachment {
|
|
2
|
+
fileName: string;
|
|
3
|
+
fileType: string;
|
|
4
|
+
fileSize: number;
|
|
5
|
+
fileUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ExecutionEvent {
|
|
8
|
+
eventType: string;
|
|
9
|
+
type: string;
|
|
10
|
+
data: {
|
|
11
|
+
invocationId: string;
|
|
12
|
+
parentId: string | null;
|
|
13
|
+
attachments?: Attachment[];
|
|
14
|
+
agentName: string;
|
|
15
|
+
userInput: string;
|
|
16
|
+
agentInput: any;
|
|
17
|
+
agentOutput: any;
|
|
18
|
+
status: 'running' | 'completed' | 'failed';
|
|
19
|
+
startTime: string;
|
|
20
|
+
endTime?: string;
|
|
21
|
+
contextData?: any;
|
|
22
|
+
toolCalls?: ToolCall[];
|
|
23
|
+
llm?: string;
|
|
24
|
+
runId: string;
|
|
25
|
+
nodeType: 'supervisor' | 'worker' | 'tool';
|
|
26
|
+
responseMetadata?: {
|
|
27
|
+
inputTokens?: number;
|
|
28
|
+
outputTokens?: number;
|
|
29
|
+
totalTokens?: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
timestamp: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ToolCall {
|
|
35
|
+
invocationId: string;
|
|
36
|
+
toolCallId: string;
|
|
37
|
+
agentInvocationId: string;
|
|
38
|
+
toolName: string;
|
|
39
|
+
toolArguments: any;
|
|
40
|
+
toolOutput: string;
|
|
41
|
+
status: 'running' | 'completed' | 'failed';
|
|
42
|
+
startTime: string;
|
|
43
|
+
endTime?: string;
|
|
44
|
+
errorDetails?: any;
|
|
45
|
+
}
|
|
46
|
+
export interface TreeNode {
|
|
47
|
+
id: string;
|
|
48
|
+
parentId: string | null;
|
|
49
|
+
runId: string;
|
|
50
|
+
agentName: string;
|
|
51
|
+
nodeType: 'supervisor' | 'agent' | 'tool';
|
|
52
|
+
status: 'running' | 'completed' | 'failed';
|
|
53
|
+
startTime: string;
|
|
54
|
+
endTime?: string;
|
|
55
|
+
duration?: number;
|
|
56
|
+
llm?: string;
|
|
57
|
+
tokens?: number;
|
|
58
|
+
userInput?: string;
|
|
59
|
+
agentInput?: any;
|
|
60
|
+
agentOutput?: any;
|
|
61
|
+
toolCalls?: ToolCall[];
|
|
62
|
+
children: TreeNode[];
|
|
63
|
+
level: number;
|
|
64
|
+
isExpanded: boolean;
|
|
65
|
+
attachments?: Attachment[];
|
|
66
|
+
toolName?: string;
|
|
67
|
+
toolInput?: any;
|
|
68
|
+
toolOutput?: any;
|
|
69
|
+
}
|
|
70
|
+
export interface SessionTree {
|
|
71
|
+
sessionId: string;
|
|
72
|
+
runs: RunTree[];
|
|
73
|
+
}
|
|
74
|
+
export interface RunTree {
|
|
75
|
+
runId: string;
|
|
76
|
+
startTime: string;
|
|
77
|
+
endTime?: string;
|
|
78
|
+
status: 'running' | 'completed' | 'failed';
|
|
79
|
+
rootNodes: TreeNode[];
|
|
80
|
+
userInput?: string;
|
|
81
|
+
finalOutput?: string;
|
|
82
|
+
attachments?: Attachment[];
|
|
83
|
+
}
|
|
84
|
+
export interface DebugPanelProps {
|
|
85
|
+
executionEvents: ExecutionEvent[];
|
|
86
|
+
sessionId?: string;
|
|
87
|
+
onNodeExpand?: (nodeId: string) => void;
|
|
88
|
+
onNodeCollapse?: (nodeId: string) => void;
|
|
89
|
+
className?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface DebugPanelRef {
|
|
92
|
+
addEvent: (event: ExecutionEvent) => void;
|
|
93
|
+
addEvents: (events: ExecutionEvent[]) => void;
|
|
94
|
+
clearEvents: () => void;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/debug-logs/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QACxB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;QAC3B,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,C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IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,SAAS,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IAC9C,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import './styles/globals.css';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export
|
|
2
|
+
export * from './features/dashboard';
|
|
3
|
+
export * from './features/debug-logs';
|
|
4
|
+
export * from './shared/ui';
|
|
5
|
+
export { Dashboard } from './features/dashboard/Dashboard';
|
|
6
|
+
export { MetricCard } from './features/dashboard/MetricCard';
|
|
7
|
+
export { AnalyticsChart } from './features/dashboard/AnalyticsChart';
|
|
8
|
+
export { AnalyticsTable } from './features/dashboard/AnalyticsTable';
|
|
9
|
+
export { AgentListView } from './features/dashboard/AgentListView';
|
|
10
|
+
export { ToolListView } from './features/dashboard/ToolListView';
|
|
11
|
+
export { ModelListView } from './features/dashboard/ModelListView';
|
|
12
|
+
export { RunsSlider } from './features/dashboard/RunsSlider';
|
|
13
|
+
export { DashboardSection } from './features/dashboard/DashboardSection';
|
|
14
|
+
export { ViewRenderer } from './features/dashboard/ViewRenderer';
|
|
15
|
+
export { DebugPanel } from './features/debug-logs/DebugPanel';
|
|
16
|
+
export type { DebugPanelProps, DebugPanelRef, ExecutionEvent, TreeNode, Attachment } from './features/debug-logs/types';
|
|
17
|
+
export * from './shared/ui';
|
|
18
|
+
export { SectionControls } from './features/dashboard/SectionControls';
|
|
18
19
|
export { EndpointsConfigService } from './lib/endpoints.config';
|
|
19
20
|
export { ApiInvokerService } from './lib/api-invoker.service';
|
|
20
21
|
export { DashboardApiService } from './lib/dashboard-api.service';
|
|
21
|
-
export type { DataPoint, MetricData, DateRange, ChartConfig, ColorPalette, ChartLineConfig, TooltipConfig, TableConfig, TableColumnConfig, ViewConfig, ViewType, ControlsConfig, DropdownOption, DashboardSection as DashboardSectionType, DashboardConfig, GlobalControlsConfig, DashboardEventHandlers, ComponentProps, ComponentSize, ComponentVariant, DataProvider, AnalyticsPlugin, AppConfig, ApiHeaders, ApiRequestParams, ApiResponse, UsageAnalyticsCards, RunsCards, TimeSeriesResponse, TimeSeriesDataPoint } from './types';
|
|
22
|
+
export type { DataPoint, MetricData, DateRange, ChartConfig, ColorPalette, ChartLineConfig, TooltipConfig, TableConfig, TableColumnConfig, ViewConfig, ViewType, ControlsConfig, DropdownOption, DashboardSection as DashboardSectionType, DashboardConfig, GlobalControlsConfig, DashboardEventHandlers, ComponentProps, ComponentSize, ComponentVariant, DataProvider, AnalyticsPlugin, AppConfig, ApiHeaders, ApiRequestParams, ApiResponse, UsageAnalyticsCards, RunsCards, TimeSeriesResponse, TimeSeriesDataPoint } from './shared/types';
|
|
22
23
|
export type { EndpointConfig, EndpointsConfig } from './lib/endpoints.config';
|
|
23
24
|
export type { HttpRequestConfig, ApiInvokerConfig } from './lib/api-invoker.service';
|
|
24
25
|
export type { DashboardApiConfig } from './lib/dashboard-api.service';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAC;AAW9B,cAAc,sBAAsB,CAAC;AAKrC,cAAc,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