@lov3kaizen/agentsea-debugger 0.5.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/LICENSE +21 -0
- package/README.md +364 -0
- package/dist/Recorder-Dc9qR2V2.d.ts +138 -0
- package/dist/ReplayEngine-Dyyqy5bw.d.ts +54 -0
- package/dist/analysis/index.d.ts +4 -0
- package/dist/analysis/index.js +1840 -0
- package/dist/analysis/index.js.map +1 -0
- package/dist/diff-CLShBdWe.d.ts +24 -0
- package/dist/index-1W27DYJt.d.ts +366 -0
- package/dist/index-DRrKPSo9.d.ts +233 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +6232 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations/agentsea/index.d.ts +8 -0
- package/dist/integrations/agentsea/index.js +5826 -0
- package/dist/integrations/agentsea/index.js.map +1 -0
- package/dist/recording/index.d.ts +91 -0
- package/dist/recording/index.js +1207 -0
- package/dist/recording/index.js.map +1 -0
- package/dist/recording.types-Ck7pbikw.d.ts +281 -0
- package/dist/replay/index.d.ts +80 -0
- package/dist/replay/index.js +1112 -0
- package/dist/replay/index.js.map +1 -0
- package/dist/replay.types-C9hJizI-.d.ts +76 -0
- package/dist/storage/index.d.ts +135 -0
- package/dist/storage/index.js +588 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/visualization/index.d.ts +123 -0
- package/dist/visualization/index.js +789 -0
- package/dist/visualization/index.js.map +1 -0
- package/dist/visualization.types-dWjGE037.d.ts +98 -0
- package/package.json +99 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { m as Recording, e as Decision, S as StepType } from '../recording.types-Ck7pbikw.js';
|
|
2
|
+
import { a as DecisionTree, D as DecisionTreeNode, f as FlowGraph, F as FlowGraphNode, d as FlowGraphEdge } from '../visualization.types-dWjGE037.js';
|
|
3
|
+
|
|
4
|
+
interface NodeOptions {
|
|
5
|
+
label: string;
|
|
6
|
+
type: 'decision' | 'outcome' | 'action' | 'branch';
|
|
7
|
+
decision?: Decision;
|
|
8
|
+
stepIndex?: number;
|
|
9
|
+
parentId?: string;
|
|
10
|
+
metadata?: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
interface TreeBuildOptions {
|
|
13
|
+
includeToolCalls?: boolean;
|
|
14
|
+
allSteps?: boolean;
|
|
15
|
+
maxDepth?: number;
|
|
16
|
+
collapseSimilar?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface LayoutOptions {
|
|
19
|
+
direction?: 'horizontal' | 'vertical';
|
|
20
|
+
nodeSpacing?: number;
|
|
21
|
+
levelSpacing?: number;
|
|
22
|
+
nodeWidth?: number;
|
|
23
|
+
nodeHeight?: number;
|
|
24
|
+
}
|
|
25
|
+
declare class DecisionTreeBuilder {
|
|
26
|
+
private nodes;
|
|
27
|
+
private rootId?;
|
|
28
|
+
private buildOptions;
|
|
29
|
+
private layoutOptions;
|
|
30
|
+
constructor(buildOptions?: TreeBuildOptions, layoutOptions?: LayoutOptions);
|
|
31
|
+
build(recording: Recording): DecisionTree;
|
|
32
|
+
private processStep;
|
|
33
|
+
private addDecisionNode;
|
|
34
|
+
private getStepLabel;
|
|
35
|
+
addNode(options: NodeOptions): DecisionTreeNode;
|
|
36
|
+
getNode(id: string): DecisionTreeNode | undefined;
|
|
37
|
+
getRoot(): DecisionTreeNode | undefined;
|
|
38
|
+
getNodes(): DecisionTreeNode[];
|
|
39
|
+
getNodesAtDepth(depth: number): DecisionTreeNode[];
|
|
40
|
+
getDepth(): number;
|
|
41
|
+
findPath(nodeId: string): DecisionTreeNode[];
|
|
42
|
+
findByStepIndex(stepIndex: number): DecisionTreeNode[];
|
|
43
|
+
findDecisionNodes(): DecisionTreeNode[];
|
|
44
|
+
clear(): void;
|
|
45
|
+
export(): DecisionTree;
|
|
46
|
+
toMermaid(): string;
|
|
47
|
+
private getMermaidShape;
|
|
48
|
+
calculateLayout(): Map<string, {
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
}>;
|
|
52
|
+
}
|
|
53
|
+
declare function createDecisionTreeBuilder(buildOptions?: TreeBuildOptions, layoutOptions?: LayoutOptions): DecisionTreeBuilder;
|
|
54
|
+
|
|
55
|
+
interface NodeStyle {
|
|
56
|
+
fill?: string;
|
|
57
|
+
stroke?: string;
|
|
58
|
+
strokeWidth?: number;
|
|
59
|
+
shape?: 'rectangle' | 'ellipse' | 'diamond' | 'hexagon';
|
|
60
|
+
fontSize?: number;
|
|
61
|
+
textColor?: string;
|
|
62
|
+
}
|
|
63
|
+
interface EdgeStyle {
|
|
64
|
+
stroke?: string;
|
|
65
|
+
strokeWidth?: number;
|
|
66
|
+
lineType?: 'solid' | 'dashed' | 'dotted';
|
|
67
|
+
arrowType?: 'arrow' | 'none' | 'diamond';
|
|
68
|
+
curveType?: 'straight' | 'bezier' | 'step';
|
|
69
|
+
}
|
|
70
|
+
interface GraphBuildOptions {
|
|
71
|
+
groupSimilar?: boolean;
|
|
72
|
+
includeDurations?: boolean;
|
|
73
|
+
includeToolDetails?: boolean;
|
|
74
|
+
maxNodes?: number;
|
|
75
|
+
nodeStyles?: Partial<Record<StepType, NodeStyle>>;
|
|
76
|
+
}
|
|
77
|
+
declare class FlowGraphBuilder {
|
|
78
|
+
private nodes;
|
|
79
|
+
private edges;
|
|
80
|
+
private options;
|
|
81
|
+
private nodeStyles;
|
|
82
|
+
constructor(options?: GraphBuildOptions);
|
|
83
|
+
build(recording: Recording): FlowGraph;
|
|
84
|
+
private createNodeFromStep;
|
|
85
|
+
private getStepLabel;
|
|
86
|
+
private getStepMetadata;
|
|
87
|
+
private updateNodeForGroup;
|
|
88
|
+
addNode(options: {
|
|
89
|
+
label: string;
|
|
90
|
+
type: StepType;
|
|
91
|
+
stepIndex?: number;
|
|
92
|
+
style?: NodeStyle;
|
|
93
|
+
metadata?: Record<string, unknown>;
|
|
94
|
+
}): FlowGraphNode;
|
|
95
|
+
addEdge(sourceId: string, targetId: string, options?: {
|
|
96
|
+
label?: string;
|
|
97
|
+
style?: EdgeStyle;
|
|
98
|
+
durationMs?: number;
|
|
99
|
+
}): FlowGraphEdge;
|
|
100
|
+
getNode(id: string): FlowGraphNode | undefined;
|
|
101
|
+
getNodes(): FlowGraphNode[];
|
|
102
|
+
getNodesByType(type: StepType): FlowGraphNode[];
|
|
103
|
+
getEdge(id: string): FlowGraphEdge | undefined;
|
|
104
|
+
getEdges(): FlowGraphEdge[];
|
|
105
|
+
getEdgesFrom(nodeId: string): FlowGraphEdge[];
|
|
106
|
+
getEdgesTo(nodeId: string): FlowGraphEdge[];
|
|
107
|
+
findPath(startId: string, endId: string): FlowGraphNode[] | null;
|
|
108
|
+
getStats(): {
|
|
109
|
+
nodeCount: number;
|
|
110
|
+
edgeCount: number;
|
|
111
|
+
nodesByType: Record<string, number>;
|
|
112
|
+
avgDuration: number;
|
|
113
|
+
};
|
|
114
|
+
clear(): void;
|
|
115
|
+
export(): FlowGraph;
|
|
116
|
+
toMermaid(): string;
|
|
117
|
+
private getMermaidShape;
|
|
118
|
+
toDOT(): string;
|
|
119
|
+
private getDOTShape;
|
|
120
|
+
}
|
|
121
|
+
declare function createFlowGraphBuilder(options?: GraphBuildOptions): FlowGraphBuilder;
|
|
122
|
+
|
|
123
|
+
export { DecisionTreeBuilder, type EdgeStyle, FlowGraphBuilder, type GraphBuildOptions, type LayoutOptions, type NodeOptions, type NodeStyle, type TreeBuildOptions, createDecisionTreeBuilder, createFlowGraphBuilder };
|