@principal-ai/subsystems-react 0.17.0 → 0.19.0
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/README.md +11 -85
- package/dist/index.d.ts +7 -44
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -32
- package/dist/index.js.map +1 -1
- package/dist/subsystem/SubsystemCarousel.d.ts +36 -0
- package/dist/subsystem/SubsystemCarousel.d.ts.map +1 -0
- package/dist/subsystem/SubsystemCarousel.js +163 -0
- package/dist/subsystem/SubsystemCarousel.js.map +1 -0
- package/dist/subsystem/SubsystemComponentGraph.d.ts +25 -0
- package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
- package/dist/subsystem/SubsystemComponentGraph.js +329 -68
- package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +9 -199
- package/src/subsystem/SubsystemComponentGraph.tsx +396 -50
- package/src/components/ConfigurationSelector.tsx +0 -133
- package/src/components/GraphRenderer.tsx +0 -3195
- package/src/components/MultiCanvasRenderer.tsx +0 -295
- package/src/components/NodeTooltip.tsx +0 -279
- package/src/components/PendingChanges.test.tsx +0 -375
- package/src/components/SelectionSidebar.tsx +0 -352
- package/src/components/SequenceDiagramRenderer.tsx +0 -1156
- package/src/components/WorkflowSequenceDiagram.tsx +0 -270
- package/src/components/dashboard/DashboardRenderer.tsx +0 -317
- package/src/components/dashboard/MetricPanel.tsx +0 -254
- package/src/components/dashboard/MockDataProvider.ts +0 -330
- package/src/components/dashboard/components/BarChart.tsx +0 -299
- package/src/components/dashboard/components/LineChart.tsx +0 -279
- package/src/components/dashboard/components/MetricCard.tsx +0 -270
- package/src/components/dashboard/components/SourceLink.tsx +0 -63
- package/src/components/dashboard/components/TimeRangeSelector.tsx +0 -280
- package/src/components/dashboard/components/index.ts +0 -5
- package/src/components/dashboard/index.ts +0 -47
- package/src/components/dashboard/types.ts +0 -126
- package/src/components/state-view/PipelineView.tsx +0 -347
- package/src/components/state-view/index.ts +0 -14
- package/src/components/state-view/types.ts +0 -261
- package/src/components/state-view/useStateView.ts +0 -205
- package/src/contexts/GraphEditContext.tsx +0 -27
- package/src/contexts/TooltipPortalContext.ts +0 -8
- package/src/edges/CustomEdge.tsx +0 -402
- package/src/edges/GenericEdge.tsx +0 -36
- package/src/hooks/usePathBasedEvents.ts +0 -192
- package/src/hooks/useSequenceLayout.ts +0 -543
- package/src/hooks/useUndoRedo.ts +0 -144
- package/src/nodes/CustomNode.tsx +0 -1231
- package/src/nodes/GenericNode.tsx +0 -55
- package/src/nodes/otel/OtelBoundaryNode.tsx +0 -224
- package/src/nodes/otel/OtelEventNode.tsx +0 -225
- package/src/nodes/otel/OtelResourceNode.tsx +0 -251
- package/src/nodes/otel/OtelScopeNode.tsx +0 -221
- package/src/nodes/otel/OtelSpanConventionNode.tsx +0 -295
- package/src/nodes/otel/index.ts +0 -23
- package/src/nodes/otel/shared/NodeBadges.tsx +0 -295
- package/src/nodes/otel/shared/NodeContent.tsx +0 -204
- package/src/nodes/otel/shared/index.ts +0 -8
- package/src/nodes/otel/shared/types.ts +0 -138
- package/src/nodes/otel/shared/useNodeBehavior.ts +0 -114
- package/src/stories/Audit/BoundaryNodes.stories.tsx +0 -385
- package/src/stories/Audit/CanvasEdgeTypes.stories.tsx +0 -1448
- package/src/stories/Audit/CanvasNodeTypes.stories.tsx +0 -1049
- package/src/stories/Audit/ColorPriority.stories.tsx +0 -895
- package/src/stories/Audit/DiamondBadges.stories.tsx +0 -629
- package/src/stories/Audit/NodeDimensionsTesting.stories.tsx +0 -724
- package/src/stories/Audit/NodeFieldsAudit.stories.tsx +0 -996
- package/src/stories/Audit/NodeFontSizeTesting.stories.tsx +0 -715
- package/src/stories/Audit/NodeShapes.stories.tsx +0 -1208
- package/src/stories/Audit/WideNodesTesting.stories.tsx +0 -1045
- package/src/stories/Components/DashboardRenderer.stories.tsx +0 -263
- package/src/stories/Components/GraphRenderer.stories.tsx +0 -3236
- package/src/stories/Components/MultiCanvasRenderer.stories.tsx +0 -370
- package/src/stories/Components/SequenceDiagram.stories.tsx +0 -255
- package/src/stories/Components/StateView.stories.tsx +0 -417
- package/src/stories/Components/TraceViewer.stories.tsx +0 -442
- package/src/stories/Components/WorkflowSequenceDiagram.stories.tsx +0 -802
- package/src/stories/Features/AnimationWorkshop.stories.tsx +0 -727
- package/src/stories/Features/ChangeTypeVisual.stories.tsx +0 -67
- package/src/stories/Features/EventDrivenAnimations.stories.tsx +0 -513
- package/src/stories/Features/MultiConfig.stories.tsx +0 -539
- package/src/stories/Layout/ElkEdgeRouting.stories.tsx +0 -539
- package/src/stories/Layout/GraphOrientation.stories.tsx +0 -500
- package/src/stories/Layout/MultiDirectionalConnections.stories.tsx +0 -352
- package/src/stories/Nodes/NodeDefinitionComparison.stories.tsx +0 -560
- package/src/stories/Nodes/NodeNameFallbacks.stories.tsx +0 -491
- package/src/stories/Nodes/NumericColors.stories.tsx +0 -440
- package/src/stories/OTEL/EventNameDisplay.stories.tsx +0 -694
- package/src/stories/OTEL/EventNameFallback.stories.tsx +0 -578
- package/src/stories/OTEL/OtelComponents.stories.tsx +0 -422
- package/src/stories/OTEL/OtelNodeTypesPrototype.stories.tsx +0 -806
- package/src/stories/OTEL/RawEventCards.stories.tsx +0 -57
- package/src/stories/OTEL/SpanBadges.stories.tsx +0 -840
- package/src/stories/OTEL/ValidationEventsCanvas.stories.tsx +0 -209
- package/src/stories/RealWorld/BacklogMdCanvases.stories.tsx +0 -721
- package/src/stories/RealWorld/FileCitySequence.stories.tsx +0 -516
- package/src/stories/RealWorld/RealCanvasFiles.stories.tsx +0 -336
- package/src/stories/__traces__/test-run.canvas.json +0 -241
- package/src/stories/data/activity-feed-analytics.dashboard.json +0 -300
- package/src/stories/data/file-city-images-transformed.otel.canvas.json +0 -295
- package/src/stories/data/file-city-workflows.json +0 -269
- package/src/stories/data/graph-converter-test-execution.json +0 -443
- package/src/stories/data/graph-converter-test.workflow.json +0 -105
- package/src/stories/data/graph-converter-validated-execution.json +0 -58
- package/src/utils/animationMapping.ts +0 -166
- package/src/utils/canvasBounds.ts +0 -146
- package/src/utils/graphConverter.ts +0 -148
- package/src/utils/iconResolver.tsx +0 -53
- package/src/utils/orientationUtils.ts +0 -73
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": "span-1",
|
|
4
|
-
"name": "rules.lint.with.violations",
|
|
5
|
-
"startTime": 1776736593023,
|
|
6
|
-
"attributes": {
|
|
7
|
-
"span.kind": "test.case",
|
|
8
|
-
"test.name": "rules.lint.with.violations",
|
|
9
|
-
"test.framework": "bun",
|
|
10
|
-
"test.result": "pass"
|
|
11
|
-
},
|
|
12
|
-
"events": [
|
|
13
|
-
{
|
|
14
|
-
"time": 1776736593023,
|
|
15
|
-
"name": "test.started",
|
|
16
|
-
"attributes": {
|
|
17
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
18
|
-
"code.lineno": 93,
|
|
19
|
-
"test.type": "integration",
|
|
20
|
-
"test.subject": "rules-engine"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"time": 1776736593023,
|
|
25
|
-
"name": "engine.creating",
|
|
26
|
-
"attributes": {
|
|
27
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
28
|
-
"code.lineno": 99,
|
|
29
|
-
"engine.type": "default"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"time": 1776736593023,
|
|
34
|
-
"name": "engine.created",
|
|
35
|
-
"attributes": {
|
|
36
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
37
|
-
"code.lineno": 104,
|
|
38
|
-
"engine.rules.count": 13
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"time": 1776736593023,
|
|
43
|
-
"name": "lint.starting",
|
|
44
|
-
"attributes": {
|
|
45
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
46
|
-
"code.lineno": 109,
|
|
47
|
-
"config.node.types.count": 3,
|
|
48
|
-
"config.edge.types.count": 2,
|
|
49
|
-
"config.connections.count": 1
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"time": 1776736593026,
|
|
54
|
-
"name": "lint.completed",
|
|
55
|
-
"attributes": {
|
|
56
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
57
|
-
"code.lineno": 119,
|
|
58
|
-
"result.violations.total": 6,
|
|
59
|
-
"result.violations.errors": 6,
|
|
60
|
-
"result.violations.warnings": 0,
|
|
61
|
-
"result.violations.fixable": 1
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"time": 1776736593026,
|
|
66
|
-
"name": "violations.analyzed",
|
|
67
|
-
"attributes": {
|
|
68
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
69
|
-
"code.lineno": 135,
|
|
70
|
-
"violation.required-metadata.found": true,
|
|
71
|
-
"violation.valid-color-format.found": true,
|
|
72
|
-
"violation.minimum-node-sources.found": true
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"status": "OK",
|
|
77
|
-
"endTime": 1776736593026,
|
|
78
|
-
"duration": 3
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"id": "span-2",
|
|
82
|
-
"name": "rules.lint.valid.config",
|
|
83
|
-
"startTime": 1776736593026,
|
|
84
|
-
"attributes": {
|
|
85
|
-
"span.kind": "test.case",
|
|
86
|
-
"test.name": "rules.lint.valid.config",
|
|
87
|
-
"test.framework": "bun",
|
|
88
|
-
"test.result": "pass"
|
|
89
|
-
},
|
|
90
|
-
"events": [
|
|
91
|
-
{
|
|
92
|
-
"time": 1776736593026,
|
|
93
|
-
"name": "test.started",
|
|
94
|
-
"attributes": {
|
|
95
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
96
|
-
"code.lineno": 153,
|
|
97
|
-
"test.type": "integration",
|
|
98
|
-
"test.subject": "rules-engine",
|
|
99
|
-
"test.expectation": "no-violations"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"time": 1776736593026,
|
|
104
|
-
"name": "lint.starting",
|
|
105
|
-
"attributes": {
|
|
106
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
107
|
-
"code.lineno": 161,
|
|
108
|
-
"config.node.types.count": 1,
|
|
109
|
-
"config.edge.types.count": 1
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"time": 1776736593026,
|
|
114
|
-
"name": "lint.completed",
|
|
115
|
-
"attributes": {
|
|
116
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
117
|
-
"code.lineno": 170,
|
|
118
|
-
"result.violations.total": 0,
|
|
119
|
-
"result.violations.errors": 0,
|
|
120
|
-
"result.violations.warnings": 0
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"status": "OK",
|
|
125
|
-
"endTime": 1776736593026,
|
|
126
|
-
"duration": 0
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"id": "span-3",
|
|
130
|
-
"name": "rules.lint.severity.override",
|
|
131
|
-
"startTime": 1776736593026,
|
|
132
|
-
"attributes": {
|
|
133
|
-
"span.kind": "test.case",
|
|
134
|
-
"test.name": "rules.lint.severity.override",
|
|
135
|
-
"test.framework": "bun",
|
|
136
|
-
"test.result": "pass"
|
|
137
|
-
},
|
|
138
|
-
"events": [
|
|
139
|
-
{
|
|
140
|
-
"time": 1776736593026,
|
|
141
|
-
"name": "test.started",
|
|
142
|
-
"attributes": {
|
|
143
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
144
|
-
"code.lineno": 187,
|
|
145
|
-
"test.type": "integration",
|
|
146
|
-
"test.subject": "rules-engine-config"
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"time": 1776736593026,
|
|
151
|
-
"name": "lint.starting",
|
|
152
|
-
"attributes": {
|
|
153
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
154
|
-
"code.lineno": 194,
|
|
155
|
-
"config.has.violations": true,
|
|
156
|
-
"config.severity.override": "valid-color-format=warn"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"time": 1776736593027,
|
|
161
|
-
"name": "lint.completed",
|
|
162
|
-
"attributes": {
|
|
163
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
164
|
-
"code.lineno": 207,
|
|
165
|
-
"result.violations.total": 6,
|
|
166
|
-
"violation.color.severity": "warn"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"status": "OK",
|
|
171
|
-
"endTime": 1776736593027,
|
|
172
|
-
"duration": 1
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"id": "span-4",
|
|
176
|
-
"name": "rules.lint.disabled.rules",
|
|
177
|
-
"startTime": 1776736593027,
|
|
178
|
-
"attributes": {
|
|
179
|
-
"span.kind": "test.case",
|
|
180
|
-
"test.name": "rules.lint.disabled.rules",
|
|
181
|
-
"test.framework": "bun",
|
|
182
|
-
"test.result": "pass"
|
|
183
|
-
},
|
|
184
|
-
"events": [
|
|
185
|
-
{
|
|
186
|
-
"time": 1776736593027,
|
|
187
|
-
"name": "test.started",
|
|
188
|
-
"attributes": {
|
|
189
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
190
|
-
"code.lineno": 222,
|
|
191
|
-
"test.type": "integration",
|
|
192
|
-
"test.subject": "rules-engine-config"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"time": 1776736593027,
|
|
197
|
-
"name": "lint.starting",
|
|
198
|
-
"attributes": {
|
|
199
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
200
|
-
"code.lineno": 229,
|
|
201
|
-
"config.disabled.rules": "valid-color-format,minimum-node-sources"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"time": 1776736593027,
|
|
206
|
-
"name": "lint.completed",
|
|
207
|
-
"attributes": {
|
|
208
|
-
"code.filepath": "rules-engine-instrumented.test.ts",
|
|
209
|
-
"code.lineno": 241,
|
|
210
|
-
"result.violations.total": 4,
|
|
211
|
-
"violation.color.disabled": true,
|
|
212
|
-
"violation.sources.disabled": true
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
"status": "OK",
|
|
217
|
-
"endTime": 1776736593027,
|
|
218
|
-
"duration": 0
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"id": "span-5",
|
|
222
|
-
"name": "should convert simple config to nodes and edges",
|
|
223
|
-
"startTime": 1776736593311,
|
|
224
|
-
"attributes": {
|
|
225
|
-
"span.kind": "test.case",
|
|
226
|
-
"test.name": "should convert simple config to nodes and edges",
|
|
227
|
-
"test.framework": "bun",
|
|
228
|
-
"test.file": "GraphConverter.test.ts",
|
|
229
|
-
"test.suite": "GraphConverter",
|
|
230
|
-
"test.result": "pass"
|
|
231
|
-
},
|
|
232
|
-
"events": [
|
|
233
|
-
{
|
|
234
|
-
"time": 1776736593311,
|
|
235
|
-
"name": "setup.started",
|
|
236
|
-
"attributes": {
|
|
237
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
238
|
-
"code.lineno": 27,
|
|
239
|
-
"description": "Creating test configuration with 2 nodes and 1 edge"
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"time": 1776736593311,
|
|
244
|
-
"name": "setup.complete",
|
|
245
|
-
"attributes": {
|
|
246
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
247
|
-
"code.lineno": 67,
|
|
248
|
-
"config.nodes": 2,
|
|
249
|
-
"config.edges": 1
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"time": 1776736593311,
|
|
254
|
-
"name": "execution.started",
|
|
255
|
-
"attributes": {
|
|
256
|
-
"code.filepath": "GraphConverter.ts",
|
|
257
|
-
"code.lineno": 15,
|
|
258
|
-
"action": "GraphConverter.configToGraph()"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"time": 1776736593311,
|
|
263
|
-
"name": "execution.complete",
|
|
264
|
-
"attributes": {
|
|
265
|
-
"code.filepath": "GraphConverter.ts",
|
|
266
|
-
"code.lineno": 43,
|
|
267
|
-
"result.nodes.count": 2,
|
|
268
|
-
"result.edges.count": 1
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"time": 1776736593311,
|
|
273
|
-
"name": "assertion.started",
|
|
274
|
-
"attributes": {
|
|
275
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
276
|
-
"code.lineno": 90,
|
|
277
|
-
"assertions": "Verifying nodes and edges structure"
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"time": 1776736593311,
|
|
282
|
-
"name": "assertion.complete",
|
|
283
|
-
"attributes": {
|
|
284
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
285
|
-
"code.lineno": 113,
|
|
286
|
-
"assertions.passed": 11,
|
|
287
|
-
"assertions.failed": 0
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
],
|
|
291
|
-
"status": "OK",
|
|
292
|
-
"endTime": 1776736593311,
|
|
293
|
-
"duration": 0
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"id": "span-6",
|
|
297
|
-
"name": "should extract manual positions from node types",
|
|
298
|
-
"startTime": 1776736593311,
|
|
299
|
-
"attributes": {
|
|
300
|
-
"span.kind": "test.case",
|
|
301
|
-
"test.name": "should extract manual positions from node types",
|
|
302
|
-
"test.framework": "bun",
|
|
303
|
-
"test.file": "GraphConverter.test.ts",
|
|
304
|
-
"test.suite": "GraphConverter",
|
|
305
|
-
"test.result": "pass"
|
|
306
|
-
},
|
|
307
|
-
"events": [
|
|
308
|
-
{
|
|
309
|
-
"time": 1776736593311,
|
|
310
|
-
"name": "setup.started",
|
|
311
|
-
"attributes": {
|
|
312
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
313
|
-
"code.lineno": 137,
|
|
314
|
-
"description": "Creating config with manual node positions"
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"time": 1776736593311,
|
|
319
|
-
"name": "setup.complete",
|
|
320
|
-
"attributes": {
|
|
321
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
322
|
-
"code.lineno": 164,
|
|
323
|
-
"config.nodes": 2,
|
|
324
|
-
"positions.defined": true
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"time": 1776736593311,
|
|
329
|
-
"name": "execution.started",
|
|
330
|
-
"attributes": {
|
|
331
|
-
"code.filepath": "GraphConverter.ts",
|
|
332
|
-
"code.lineno": 15,
|
|
333
|
-
"action": "GraphConverter.configToGraph()"
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
"time": 1776736593311,
|
|
338
|
-
"name": "execution.complete",
|
|
339
|
-
"attributes": {
|
|
340
|
-
"code.filepath": "GraphConverter.ts",
|
|
341
|
-
"code.lineno": 43,
|
|
342
|
-
"result.nodes.count": 2
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"time": 1776736593311,
|
|
347
|
-
"name": "assertion.started",
|
|
348
|
-
"attributes": {
|
|
349
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
350
|
-
"code.lineno": 183,
|
|
351
|
-
"assertions": "Verifying positions preserved"
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"time": 1776736593311,
|
|
356
|
-
"name": "assertion.complete",
|
|
357
|
-
"attributes": {
|
|
358
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
359
|
-
"code.lineno": 190,
|
|
360
|
-
"assertions.passed": 2,
|
|
361
|
-
"assertions.failed": 0
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
],
|
|
365
|
-
"status": "OK",
|
|
366
|
-
"endTime": 1776736593311,
|
|
367
|
-
"duration": 0
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"id": "span-7",
|
|
371
|
-
"name": "should handle nodes without positions",
|
|
372
|
-
"startTime": 1776736593311,
|
|
373
|
-
"attributes": {
|
|
374
|
-
"span.kind": "test.case",
|
|
375
|
-
"test.name": "should handle nodes without positions",
|
|
376
|
-
"test.framework": "bun",
|
|
377
|
-
"test.file": "GraphConverter.test.ts",
|
|
378
|
-
"test.suite": "GraphConverter",
|
|
379
|
-
"test.result": "pass"
|
|
380
|
-
},
|
|
381
|
-
"events": [
|
|
382
|
-
{
|
|
383
|
-
"time": 1776736593311,
|
|
384
|
-
"name": "setup.started",
|
|
385
|
-
"attributes": {
|
|
386
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
387
|
-
"code.lineno": 214,
|
|
388
|
-
"description": "Creating config without positions"
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
"time": 1776736593311,
|
|
393
|
-
"name": "setup.complete",
|
|
394
|
-
"attributes": {
|
|
395
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
396
|
-
"code.lineno": 234,
|
|
397
|
-
"config.nodes": 1,
|
|
398
|
-
"positions.defined": false
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"time": 1776736593311,
|
|
403
|
-
"name": "execution.started",
|
|
404
|
-
"attributes": {
|
|
405
|
-
"code.filepath": "GraphConverter.ts",
|
|
406
|
-
"code.lineno": 15,
|
|
407
|
-
"action": "GraphConverter.configToGraph()"
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"time": 1776736593311,
|
|
412
|
-
"name": "execution.complete",
|
|
413
|
-
"attributes": {
|
|
414
|
-
"code.filepath": "GraphConverter.ts",
|
|
415
|
-
"code.lineno": 43,
|
|
416
|
-
"result.nodes.count": 1
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
"time": 1776736593311,
|
|
421
|
-
"name": "assertion.started",
|
|
422
|
-
"attributes": {
|
|
423
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
424
|
-
"code.lineno": 253,
|
|
425
|
-
"assertions": "Verifying position is undefined"
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"time": 1776736593311,
|
|
430
|
-
"name": "assertion.complete",
|
|
431
|
-
"attributes": {
|
|
432
|
-
"code.filepath": "GraphConverter.test.ts",
|
|
433
|
-
"code.lineno": 259,
|
|
434
|
-
"assertions.passed": 1,
|
|
435
|
-
"assertions.failed": 0
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
],
|
|
439
|
-
"status": "OK",
|
|
440
|
-
"endTime": 1776736593311,
|
|
441
|
-
"duration": 0
|
|
442
|
-
}
|
|
443
|
-
]
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.0.0",
|
|
3
|
-
"canvas": "graph-converter-test.otel.canvas",
|
|
4
|
-
"name": "Graph Converter Test Workflow",
|
|
5
|
-
"description": "Human-readable workflow for graph converter test execution",
|
|
6
|
-
"scenarioSelection": "first-match",
|
|
7
|
-
"showLogsPerSpan": true,
|
|
8
|
-
"scenarios": [
|
|
9
|
-
{
|
|
10
|
-
"id": "test-failed",
|
|
11
|
-
"priority": 1,
|
|
12
|
-
"description": "Test failed with assertion failures",
|
|
13
|
-
"condition": {
|
|
14
|
-
"requires": ["assertion.complete"],
|
|
15
|
-
"assertions": {
|
|
16
|
-
"assertions.failed": { "$gt": 0 }
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"template": {
|
|
20
|
-
"introduction": "❌ Graph Converter Test - FAILED\n{'━'.repeat(50)}",
|
|
21
|
-
"span": "→ {span.name}",
|
|
22
|
-
"children": "recurse",
|
|
23
|
-
"events": {
|
|
24
|
-
"setup.started": " 🔧 Setting up test: {description ? description : 'test configuration'}",
|
|
25
|
-
"setup.complete": " ✅ Setup complete\n • Nodes: {config.nodes ? config.nodes : 'N/A'}\n • Edges: {config.edges ? config.edges : 'N/A'}\n • Positions: {positions.defined === true ? 'defined' : 'not defined'}",
|
|
26
|
-
"execution.started": " 🔄 Executing: {action}",
|
|
27
|
-
"execution.complete": " ✅ Execution complete\n • Generated nodes: {result.nodes.count}\n • Generated edges: {result.edges.count ? result.edges.count : 'N/A'}",
|
|
28
|
-
"assertion.started": " 🔍 Verifying: {assertions}",
|
|
29
|
-
"assertion.complete": " ❌ Assertions: {assertions.passed} passed, {assertions.failed} failed"
|
|
30
|
-
},
|
|
31
|
-
"logs": {
|
|
32
|
-
"error": " ❌ {log.body}",
|
|
33
|
-
"warn": " ⚠️ {log.body}",
|
|
34
|
-
"info": " ℹ️ {log.body}",
|
|
35
|
-
"debug": " 🔍 {log.body}"
|
|
36
|
-
},
|
|
37
|
-
"summary": "{'━'.repeat(50)}\n\n❌ TEST FAILED\n\nAssertion Results:\n • Passed: {assertions.passed}\n • Failed: {assertions.failed}"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"id": "test-passed",
|
|
42
|
-
"priority": 2,
|
|
43
|
-
"description": "Test passed all assertions",
|
|
44
|
-
"condition": {
|
|
45
|
-
"requires": ["assertion.complete"],
|
|
46
|
-
"assertions": {
|
|
47
|
-
"assertions.failed": { "$eq": 0 }
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"template": {
|
|
51
|
-
"introduction": "✅ Graph Converter Test - PASSED\n{'━'.repeat(50)}",
|
|
52
|
-
"span": "→ {span.name}",
|
|
53
|
-
"children": "recurse",
|
|
54
|
-
"events": {
|
|
55
|
-
"setup.started": " 🔧 Setting up test: {description ? description : 'test configuration'}",
|
|
56
|
-
"setup.complete": " ✅ Setup complete\n • Nodes: {config.nodes ? config.nodes : 'N/A'}\n • Edges: {config.edges ? config.edges : 'N/A'}\n • Positions: {positions.defined === true ? 'defined' : 'not defined'}",
|
|
57
|
-
"execution.started": " 🔄 Executing: {action}",
|
|
58
|
-
"execution.complete": " ✅ Execution complete\n • Generated nodes: {result.nodes.count}\n • Generated edges: {result.edges.count ? result.edges.count : 'N/A'}",
|
|
59
|
-
"assertion.started": " 🔍 Verifying: {assertions}",
|
|
60
|
-
"assertion.complete": " ✅ All {assertions.passed} assertions passed!"
|
|
61
|
-
},
|
|
62
|
-
"logs": {
|
|
63
|
-
"error": " ❌ {log.body}",
|
|
64
|
-
"warn": " ⚠️ {log.body}",
|
|
65
|
-
"info": " ℹ️ {log.body}",
|
|
66
|
-
"debug": " 🔍 {log.body}"
|
|
67
|
-
},
|
|
68
|
-
"summary": "{'━'.repeat(50)}\n\n✅ TEST PASSED\n\nAll {assertions.passed} assertions passed successfully.\n\nResults:\n • Nodes generated: {result.nodes.count}\n • Edges generated: {result.edges.count ? result.edges.count : 'N/A'}"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"id": "default",
|
|
73
|
-
"priority": 99,
|
|
74
|
-
"description": "Default fallback scenario",
|
|
75
|
-
"condition": {
|
|
76
|
-
"default": true
|
|
77
|
-
},
|
|
78
|
-
"template": {
|
|
79
|
-
"introduction": "📋 Graph Converter Test\n{'━'.repeat(50)}",
|
|
80
|
-
"span": "→ {span.name}",
|
|
81
|
-
"children": "recurse",
|
|
82
|
-
"events": {
|
|
83
|
-
"setup.started": " 🔧 Setup started",
|
|
84
|
-
"setup.complete": " ✅ Setup complete",
|
|
85
|
-
"execution.started": " 🔄 Execution started: {action}",
|
|
86
|
-
"execution.complete": " ✅ Execution complete",
|
|
87
|
-
"assertion.started": " 🔍 Assertions started",
|
|
88
|
-
"assertion.complete": " ✅ Assertions complete"
|
|
89
|
-
},
|
|
90
|
-
"logs": {
|
|
91
|
-
"error": " ❌ {log.body}",
|
|
92
|
-
"warn": " ⚠️ {log.body}",
|
|
93
|
-
"info": " ℹ️ {log.body}",
|
|
94
|
-
"debug": " 🔍 {log.body}"
|
|
95
|
-
},
|
|
96
|
-
"summary": "{'━'.repeat(50)}\n\nTest execution completed."
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"formatting": {
|
|
101
|
-
"indentSize": 2,
|
|
102
|
-
"showTimestamps": false,
|
|
103
|
-
"emptyLinesBetweenSections": 1
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": "span-1",
|
|
4
|
-
"name": "graph conversion with validation",
|
|
5
|
-
"startTime": 1772390254917,
|
|
6
|
-
"attributes": {
|
|
7
|
-
"span.kind": "test.case",
|
|
8
|
-
"test.name": "graph conversion with validation",
|
|
9
|
-
"test.framework": "bun",
|
|
10
|
-
"test.file": "event-validation.test.ts",
|
|
11
|
-
"test.suite": "Event Schema Validation"
|
|
12
|
-
},
|
|
13
|
-
"events": [
|
|
14
|
-
{
|
|
15
|
-
"time": 1772390254917,
|
|
16
|
-
"name": "conversion.started",
|
|
17
|
-
"attributes": {
|
|
18
|
-
"code.filepath": "GraphConverter.ts",
|
|
19
|
-
"code.lineno": 15,
|
|
20
|
-
"config.nodeTypes": 2,
|
|
21
|
-
"config.edgeTypes": 1
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"time": 1772390254917,
|
|
26
|
-
"name": "conversion.processingNodes",
|
|
27
|
-
"attributes": {
|
|
28
|
-
"code.filepath": "GraphConverter.ts",
|
|
29
|
-
"code.lineno": 28,
|
|
30
|
-
"nodes.count": 2
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"time": 1772390254917,
|
|
35
|
-
"name": "conversion.processingEdges",
|
|
36
|
-
"attributes": {
|
|
37
|
-
"code.filepath": "GraphConverter.ts",
|
|
38
|
-
"code.lineno": 45,
|
|
39
|
-
"edges.count": 1
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"time": 1772390254917,
|
|
44
|
-
"name": "conversion.complete",
|
|
45
|
-
"attributes": {
|
|
46
|
-
"code.filepath": "GraphConverter.ts",
|
|
47
|
-
"code.lineno": 60,
|
|
48
|
-
"result.nodes.count": 2,
|
|
49
|
-
"result.edges.count": 1,
|
|
50
|
-
"duration.ms": 5
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"status": "OK",
|
|
55
|
-
"endTime": 1772390254917,
|
|
56
|
-
"duration": 0
|
|
57
|
-
}
|
|
58
|
-
]
|