@principal-ai/principal-view-react 0.14.21 → 0.14.23
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/components/GraphRenderer.d.ts.map +1 -1
- package/dist/components/GraphRenderer.js +23 -10
- package/dist/components/GraphRenderer.js.map +1 -1
- package/dist/components/state-view/PipelineView.d.ts +13 -0
- package/dist/components/state-view/PipelineView.d.ts.map +1 -0
- package/dist/components/state-view/PipelineView.js +195 -0
- package/dist/components/state-view/PipelineView.js.map +1 -0
- package/dist/components/state-view/index.d.ts +14 -0
- package/dist/components/state-view/index.d.ts.map +1 -0
- package/dist/components/state-view/index.js +12 -0
- package/dist/components/state-view/index.js.map +1 -0
- package/dist/components/state-view/types.d.ts +188 -0
- package/dist/components/state-view/types.d.ts.map +1 -0
- package/dist/components/state-view/types.js +10 -0
- package/dist/components/state-view/types.js.map +1 -0
- package/dist/components/state-view/useStateView.d.ts +32 -0
- package/dist/components/state-view/useStateView.d.ts.map +1 -0
- package/dist/components/state-view/useStateView.js +129 -0
- package/dist/components/state-view/useStateView.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/nodes/CustomNode.js +8 -8
- package/dist/nodes/CustomNode.js.map +1 -1
- package/dist/nodes/otel/OtelBoundaryNode.d.ts.map +1 -1
- package/dist/nodes/otel/OtelBoundaryNode.js +5 -3
- package/dist/nodes/otel/OtelBoundaryNode.js.map +1 -1
- package/dist/nodes/otel/OtelEventNode.d.ts.map +1 -1
- package/dist/nodes/otel/OtelEventNode.js +5 -3
- package/dist/nodes/otel/OtelEventNode.js.map +1 -1
- package/dist/nodes/otel/OtelResourceNode.d.ts.map +1 -1
- package/dist/nodes/otel/OtelResourceNode.js +5 -3
- package/dist/nodes/otel/OtelResourceNode.js.map +1 -1
- package/dist/nodes/otel/OtelScopeNode.d.ts.map +1 -1
- package/dist/nodes/otel/OtelScopeNode.js +5 -3
- package/dist/nodes/otel/OtelScopeNode.js.map +1 -1
- package/dist/nodes/otel/OtelSpanConventionNode.d.ts.map +1 -1
- package/dist/nodes/otel/OtelSpanConventionNode.js +5 -3
- package/dist/nodes/otel/OtelSpanConventionNode.js.map +1 -1
- package/package.json +2 -2
- package/src/components/GraphRenderer.tsx +24 -10
- package/src/components/state-view/PipelineView.tsx +347 -0
- package/src/components/state-view/index.ts +14 -0
- package/src/components/state-view/types.ts +261 -0
- package/src/components/state-view/useStateView.ts +205 -0
- package/src/index.ts +36 -0
- package/src/nodes/CustomNode.tsx +8 -8
- package/src/nodes/otel/OtelBoundaryNode.tsx +5 -3
- package/src/nodes/otel/OtelEventNode.tsx +5 -3
- package/src/nodes/otel/OtelResourceNode.tsx +5 -3
- package/src/nodes/otel/OtelScopeNode.tsx +5 -3
- package/src/nodes/otel/OtelSpanConventionNode.tsx +5 -4
- package/src/stories/CanvasEdgeTypes.stories.tsx +23 -27
- package/src/stories/GraphRenderer.stories.tsx +144 -200
- package/src/stories/StateView.stories.tsx +417 -0
- package/src/stories/__traces__/test-run.canvas.json +27 -30
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import '@xyflow/react/dist/style.css';
|
|
3
4
|
import { GraphRenderer } from '../components/GraphRenderer';
|
|
4
5
|
import type { GraphRendererHandle, PendingChanges } from '../components/GraphRenderer';
|
|
5
6
|
import type { ExtendedCanvas, PVEventSchema } from '@principal-ai/principal-view-core';
|
|
@@ -84,30 +85,27 @@ const sampleCanvas: ExtendedCanvas = {
|
|
|
84
85
|
id: 'edge-1',
|
|
85
86
|
fromNode: 'node-1',
|
|
86
87
|
toNode: 'node-2',
|
|
87
|
-
|
|
88
|
+
edgeType: 'dataflow',
|
|
88
89
|
},
|
|
89
90
|
{
|
|
90
91
|
id: 'edge-2',
|
|
91
92
|
fromNode: 'node-2',
|
|
92
93
|
toNode: 'node-3',
|
|
93
|
-
|
|
94
|
+
edgeType: 'dataflow',
|
|
94
95
|
},
|
|
95
96
|
],
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
color: '#F5A623',
|
|
109
|
-
directed: true,
|
|
110
|
-
},
|
|
97
|
+
name: 'Sample Validation Graph',
|
|
98
|
+
description: 'Example graph configuration',
|
|
99
|
+
edgeTypes: {
|
|
100
|
+
dataflow: {
|
|
101
|
+
style: 'solid',
|
|
102
|
+
color: '#50E3C2',
|
|
103
|
+
directed: true,
|
|
104
|
+
},
|
|
105
|
+
dependency: {
|
|
106
|
+
style: 'dashed',
|
|
107
|
+
color: '#F5A623',
|
|
108
|
+
directed: true,
|
|
111
109
|
},
|
|
112
110
|
},
|
|
113
111
|
};
|
|
@@ -118,11 +116,8 @@ const sampleCanvas: ExtendedCanvas = {
|
|
|
118
116
|
const emptyCanvas: ExtendedCanvas = {
|
|
119
117
|
nodes: [],
|
|
120
118
|
edges: [],
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
name: 'Empty Graph',
|
|
124
|
-
edgeTypes: {},
|
|
125
|
-
},
|
|
119
|
+
name: 'Empty Graph',
|
|
120
|
+
edgeTypes: {},
|
|
126
121
|
};
|
|
127
122
|
|
|
128
123
|
/**
|
|
@@ -147,11 +142,8 @@ const singleNodeCanvas: ExtendedCanvas = {
|
|
|
147
142
|
},
|
|
148
143
|
],
|
|
149
144
|
edges: [],
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
name: 'Single Node',
|
|
153
|
-
edgeTypes: {},
|
|
154
|
-
},
|
|
145
|
+
name: 'Single Node',
|
|
146
|
+
edgeTypes: {},
|
|
155
147
|
};
|
|
156
148
|
|
|
157
149
|
/**
|
|
@@ -240,36 +232,33 @@ const largeCanvas: ExtendedCanvas = {
|
|
|
240
232
|
id: 'edge-1',
|
|
241
233
|
fromNode: 'node-1',
|
|
242
234
|
toNode: 'node-2',
|
|
243
|
-
|
|
235
|
+
edgeType: 'dataflow',
|
|
244
236
|
},
|
|
245
237
|
{
|
|
246
238
|
id: 'edge-2',
|
|
247
239
|
fromNode: 'node-2',
|
|
248
240
|
toNode: 'node-3',
|
|
249
|
-
|
|
241
|
+
edgeType: 'dataflow',
|
|
250
242
|
},
|
|
251
243
|
{
|
|
252
244
|
id: 'edge-3',
|
|
253
245
|
fromNode: 'node-1',
|
|
254
246
|
toNode: 'node-4',
|
|
255
|
-
|
|
247
|
+
edgeType: 'dataflow',
|
|
256
248
|
},
|
|
257
249
|
{
|
|
258
250
|
id: 'edge-4',
|
|
259
251
|
fromNode: 'node-4',
|
|
260
252
|
toNode: 'node-5',
|
|
261
|
-
|
|
253
|
+
edgeType: 'dataflow',
|
|
262
254
|
},
|
|
263
255
|
],
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
color: '#50E3C2',
|
|
271
|
-
directed: true,
|
|
272
|
-
},
|
|
256
|
+
name: 'Large Graph',
|
|
257
|
+
edgeTypes: {
|
|
258
|
+
dataflow: {
|
|
259
|
+
style: 'solid',
|
|
260
|
+
color: '#50E3C2',
|
|
261
|
+
directed: true,
|
|
273
262
|
},
|
|
274
263
|
},
|
|
275
264
|
};
|
|
@@ -380,51 +369,46 @@ const serviceArchitectureCanvas: ExtendedCanvas = {
|
|
|
380
369
|
fromSide: 'bottom',
|
|
381
370
|
toSide: 'top',
|
|
382
371
|
label: 'GET/SET',
|
|
383
|
-
|
|
384
|
-
edgeType: 'cache-access',
|
|
385
|
-
},
|
|
372
|
+
edgeType: 'cache-access',
|
|
386
373
|
},
|
|
387
374
|
],
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
'
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
type: 'flow',
|
|
400
|
-
duration: 1500,
|
|
401
|
-
},
|
|
402
|
-
},
|
|
403
|
-
'db-query': {
|
|
404
|
-
style: 'dashed',
|
|
405
|
-
color: '#22c55e',
|
|
406
|
-
width: 2,
|
|
407
|
-
directed: true,
|
|
408
|
-
},
|
|
409
|
-
'cache-access': {
|
|
410
|
-
style: 'dotted',
|
|
411
|
-
color: '#f97316',
|
|
412
|
-
width: 2,
|
|
413
|
-
directed: true,
|
|
414
|
-
animation: {
|
|
415
|
-
type: 'pulse',
|
|
416
|
-
duration: 1000,
|
|
417
|
-
},
|
|
375
|
+
name: 'Simple Service Architecture',
|
|
376
|
+
description: 'A basic client-server architecture with caching',
|
|
377
|
+
edgeTypes: {
|
|
378
|
+
'http-request': {
|
|
379
|
+
style: 'solid',
|
|
380
|
+
color: '#3b82f6',
|
|
381
|
+
width: 3,
|
|
382
|
+
directed: true,
|
|
383
|
+
animation: {
|
|
384
|
+
type: 'flow',
|
|
385
|
+
duration: 1500,
|
|
418
386
|
},
|
|
419
387
|
},
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
388
|
+
'db-query': {
|
|
389
|
+
style: 'dashed',
|
|
390
|
+
color: '#22c55e',
|
|
391
|
+
width: 2,
|
|
392
|
+
directed: true,
|
|
393
|
+
},
|
|
394
|
+
'cache-access': {
|
|
395
|
+
style: 'dotted',
|
|
396
|
+
color: '#f97316',
|
|
397
|
+
width: 2,
|
|
398
|
+
directed: true,
|
|
399
|
+
animation: {
|
|
400
|
+
type: 'pulse',
|
|
401
|
+
duration: 1000,
|
|
425
402
|
},
|
|
426
403
|
},
|
|
427
404
|
},
|
|
405
|
+
display: {
|
|
406
|
+
layout: 'manual',
|
|
407
|
+
animations: {
|
|
408
|
+
enabled: true,
|
|
409
|
+
speed: 1.0,
|
|
410
|
+
},
|
|
411
|
+
},
|
|
428
412
|
};
|
|
429
413
|
|
|
430
414
|
// ============================================================================
|
|
@@ -917,7 +901,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
917
901
|
fromSide: 'right',
|
|
918
902
|
toSide: 'left',
|
|
919
903
|
label: 'route()',
|
|
920
|
-
|
|
904
|
+
edgeType: 'http-request',
|
|
921
905
|
},
|
|
922
906
|
{
|
|
923
907
|
id: 'router-checks-scope',
|
|
@@ -926,7 +910,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
926
910
|
fromSide: 'top',
|
|
927
911
|
toSide: 'bottom',
|
|
928
912
|
label: 'isInScope()',
|
|
929
|
-
|
|
913
|
+
edgeType: 'http-request',
|
|
930
914
|
},
|
|
931
915
|
{
|
|
932
916
|
id: 'router-uses-matcher',
|
|
@@ -935,7 +919,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
935
919
|
fromSide: 'bottom',
|
|
936
920
|
toSide: 'top',
|
|
937
921
|
label: 'match()',
|
|
938
|
-
|
|
922
|
+
edgeType: 'http-request',
|
|
939
923
|
},
|
|
940
924
|
{
|
|
941
925
|
id: 'matcher-uses-match',
|
|
@@ -944,7 +928,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
944
928
|
fromSide: 'right',
|
|
945
929
|
toSide: 'left',
|
|
946
930
|
label: 'criteria',
|
|
947
|
-
|
|
931
|
+
edgeType: 'db-query',
|
|
948
932
|
},
|
|
949
933
|
{
|
|
950
934
|
id: 'match-has-operator',
|
|
@@ -953,7 +937,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
953
937
|
fromSide: 'bottom',
|
|
954
938
|
toSide: 'top',
|
|
955
939
|
label: 'operators',
|
|
956
|
-
|
|
940
|
+
edgeType: 'db-query',
|
|
957
941
|
},
|
|
958
942
|
{
|
|
959
943
|
id: 'router-to-node',
|
|
@@ -962,7 +946,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
962
946
|
fromSide: 'right',
|
|
963
947
|
toSide: 'left',
|
|
964
948
|
label: 'routed',
|
|
965
|
-
|
|
949
|
+
edgeType: 'http-request',
|
|
966
950
|
},
|
|
967
951
|
{
|
|
968
952
|
id: 'router-returns-result',
|
|
@@ -971,7 +955,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
971
955
|
fromSide: 'right',
|
|
972
956
|
toSide: 'left',
|
|
973
957
|
label: 'returns',
|
|
974
|
-
|
|
958
|
+
edgeType: 'http-request',
|
|
975
959
|
},
|
|
976
960
|
{
|
|
977
961
|
id: 'result-to-audit',
|
|
@@ -980,7 +964,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
980
964
|
fromSide: 'right',
|
|
981
965
|
toSide: 'left',
|
|
982
966
|
label: 'track()',
|
|
983
|
-
|
|
967
|
+
edgeType: 'http-request',
|
|
984
968
|
},
|
|
985
969
|
{
|
|
986
970
|
id: 'audit-tracks-orphans',
|
|
@@ -989,7 +973,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
989
973
|
fromSide: 'right',
|
|
990
974
|
toSide: 'left',
|
|
991
975
|
label: 'unmatched',
|
|
992
|
-
|
|
976
|
+
edgeType: 'db-query',
|
|
993
977
|
},
|
|
994
978
|
{
|
|
995
979
|
id: 'audit-generates-report',
|
|
@@ -998,7 +982,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
998
982
|
fromSide: 'right',
|
|
999
983
|
toSide: 'left',
|
|
1000
984
|
label: 'generate()',
|
|
1001
|
-
|
|
985
|
+
edgeType: 'db-query',
|
|
1002
986
|
},
|
|
1003
987
|
{
|
|
1004
988
|
id: 'node-has-match',
|
|
@@ -1007,7 +991,7 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
1007
991
|
fromSide: 'bottom',
|
|
1008
992
|
toSide: 'top',
|
|
1009
993
|
label: 'resourceMatch',
|
|
1010
|
-
|
|
994
|
+
edgeType: 'db-query',
|
|
1011
995
|
},
|
|
1012
996
|
{
|
|
1013
997
|
id: 'log-has-resource',
|
|
@@ -1016,43 +1000,40 @@ const otelLogAssociationCanvas: ExtendedCanvas = {
|
|
|
1016
1000
|
fromSide: 'bottom',
|
|
1017
1001
|
toSide: 'top',
|
|
1018
1002
|
label: 'resource',
|
|
1019
|
-
|
|
1003
|
+
edgeType: 'db-query',
|
|
1020
1004
|
},
|
|
1021
1005
|
],
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
'
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
'
|
|
1038
|
-
|
|
1039
|
-
description: 'Runtime service component for OTEL processing',
|
|
1040
|
-
shape: 'hexagon',
|
|
1041
|
-
},
|
|
1006
|
+
name: 'OTEL Log Association Architecture',
|
|
1007
|
+
description: 'Shows how OtelLog flows through LogRouter to Canvas Nodes, with audit tracking',
|
|
1008
|
+
nodeTypes: {
|
|
1009
|
+
service: {
|
|
1010
|
+
label: 'Component',
|
|
1011
|
+
description: 'System component',
|
|
1012
|
+
shape: 'hexagon',
|
|
1013
|
+
},
|
|
1014
|
+
'otel-type': {
|
|
1015
|
+
label: 'Type',
|
|
1016
|
+
description: 'TypeScript type or interface representing OTEL concepts',
|
|
1017
|
+
shape: 'rectangle',
|
|
1018
|
+
},
|
|
1019
|
+
'otel-service': {
|
|
1020
|
+
label: 'Service',
|
|
1021
|
+
description: 'Runtime service component for OTEL processing',
|
|
1022
|
+
shape: 'hexagon',
|
|
1042
1023
|
},
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1024
|
+
},
|
|
1025
|
+
edgeTypes: {
|
|
1026
|
+
'http-request': {
|
|
1027
|
+
label: 'Flow',
|
|
1028
|
+
style: 'solid',
|
|
1029
|
+
color: '#4A90E2',
|
|
1030
|
+
directed: true,
|
|
1031
|
+
},
|
|
1032
|
+
'db-query': {
|
|
1033
|
+
label: 'Reference',
|
|
1034
|
+
style: 'dashed',
|
|
1035
|
+
color: '#999',
|
|
1036
|
+
directed: true,
|
|
1056
1037
|
},
|
|
1057
1038
|
},
|
|
1058
1039
|
};
|
|
@@ -1196,7 +1177,7 @@ const sourcesTooltipCanvas: ExtendedCanvas = {
|
|
|
1196
1177
|
fromSide: 'right',
|
|
1197
1178
|
toSide: 'left',
|
|
1198
1179
|
label: 'validates',
|
|
1199
|
-
|
|
1180
|
+
edgeType: 'dataflow',
|
|
1200
1181
|
},
|
|
1201
1182
|
{
|
|
1202
1183
|
id: 'user-to-db',
|
|
@@ -1205,7 +1186,7 @@ const sourcesTooltipCanvas: ExtendedCanvas = {
|
|
|
1205
1186
|
fromSide: 'right',
|
|
1206
1187
|
toSide: 'left',
|
|
1207
1188
|
label: 'queries',
|
|
1208
|
-
|
|
1189
|
+
edgeType: 'dataflow',
|
|
1209
1190
|
},
|
|
1210
1191
|
{
|
|
1211
1192
|
id: 'auth-to-cache',
|
|
@@ -1214,7 +1195,7 @@ const sourcesTooltipCanvas: ExtendedCanvas = {
|
|
|
1214
1195
|
fromSide: 'bottom',
|
|
1215
1196
|
toSide: 'top',
|
|
1216
1197
|
label: 'stores tokens',
|
|
1217
|
-
|
|
1198
|
+
edgeType: 'dataflow',
|
|
1218
1199
|
},
|
|
1219
1200
|
{
|
|
1220
1201
|
id: 'user-to-cache',
|
|
@@ -1223,7 +1204,7 @@ const sourcesTooltipCanvas: ExtendedCanvas = {
|
|
|
1223
1204
|
fromSide: 'bottom',
|
|
1224
1205
|
toSide: 'top',
|
|
1225
1206
|
label: 'caches',
|
|
1226
|
-
|
|
1207
|
+
edgeType: 'dataflow',
|
|
1227
1208
|
},
|
|
1228
1209
|
{
|
|
1229
1210
|
id: 'auth-to-logger',
|
|
@@ -1232,7 +1213,7 @@ const sourcesTooltipCanvas: ExtendedCanvas = {
|
|
|
1232
1213
|
fromSide: 'bottom',
|
|
1233
1214
|
toSide: 'top',
|
|
1234
1215
|
label: 'logs',
|
|
1235
|
-
|
|
1216
|
+
edgeType: 'logging',
|
|
1236
1217
|
},
|
|
1237
1218
|
{
|
|
1238
1219
|
id: 'user-to-logger',
|
|
@@ -1241,7 +1222,7 @@ const sourcesTooltipCanvas: ExtendedCanvas = {
|
|
|
1241
1222
|
fromSide: 'bottom',
|
|
1242
1223
|
toSide: 'top',
|
|
1243
1224
|
label: 'logs',
|
|
1244
|
-
|
|
1225
|
+
edgeType: 'logging',
|
|
1245
1226
|
},
|
|
1246
1227
|
],
|
|
1247
1228
|
pv: {
|
|
@@ -1496,19 +1477,19 @@ const selectionStylingCanvas: ExtendedCanvas = {
|
|
|
1496
1477
|
id: 'edge-1',
|
|
1497
1478
|
fromNode: 'node-1',
|
|
1498
1479
|
toNode: 'node-2',
|
|
1499
|
-
|
|
1480
|
+
edgeType: 'dataflow',
|
|
1500
1481
|
},
|
|
1501
1482
|
{
|
|
1502
1483
|
id: 'edge-2',
|
|
1503
1484
|
fromNode: 'node-2',
|
|
1504
1485
|
toNode: 'node-3',
|
|
1505
|
-
|
|
1486
|
+
edgeType: 'dataflow',
|
|
1506
1487
|
},
|
|
1507
1488
|
{
|
|
1508
1489
|
id: 'edge-3',
|
|
1509
1490
|
fromNode: 'node-1',
|
|
1510
1491
|
toNode: 'node-4',
|
|
1511
|
-
|
|
1492
|
+
edgeType: 'dataflow',
|
|
1512
1493
|
},
|
|
1513
1494
|
],
|
|
1514
1495
|
pv: {
|
|
@@ -1792,21 +1773,18 @@ All of these actions update \`highlightedNodeId\`, which now automatically shows
|
|
|
1792
1773
|
* Real production canvas showing version registration workflows
|
|
1793
1774
|
*/
|
|
1794
1775
|
const versionRegistryCanvas: ExtendedCanvas = {
|
|
1795
|
-
"
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
"
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
"cache": {
|
|
1808
|
-
"label": "Cache Path"
|
|
1809
|
-
}
|
|
1776
|
+
"name": "Version Registry",
|
|
1777
|
+
"description": "Maps customer version strings (semver, git SHA, build numbers) to git commit SHAs for contract-based observability",
|
|
1778
|
+
"markdown": ".principal-views/version-registry/version-registry.md",
|
|
1779
|
+
"edgeTypes": {
|
|
1780
|
+
"flow": {
|
|
1781
|
+
"label": "Flow"
|
|
1782
|
+
},
|
|
1783
|
+
"error": {
|
|
1784
|
+
"label": "Error Path"
|
|
1785
|
+
},
|
|
1786
|
+
"cache": {
|
|
1787
|
+
"label": "Cache Path"
|
|
1810
1788
|
}
|
|
1811
1789
|
},
|
|
1812
1790
|
"nodes": [
|
|
@@ -2500,9 +2478,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2500
2478
|
"fromSide": "bottom",
|
|
2501
2479
|
"toNode": "registration-validated",
|
|
2502
2480
|
"toSide": "top",
|
|
2503
|
-
"
|
|
2504
|
-
"edgeType": "flow"
|
|
2505
|
-
}
|
|
2481
|
+
"edgeType": "flow"
|
|
2506
2482
|
},
|
|
2507
2483
|
{
|
|
2508
2484
|
"id": "edge-reg-validate-to-s3",
|
|
@@ -2510,9 +2486,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2510
2486
|
"fromSide": "bottom",
|
|
2511
2487
|
"toNode": "registration-s3-stored",
|
|
2512
2488
|
"toSide": "top",
|
|
2513
|
-
"
|
|
2514
|
-
"edgeType": "flow"
|
|
2515
|
-
}
|
|
2489
|
+
"edgeType": "flow"
|
|
2516
2490
|
},
|
|
2517
2491
|
{
|
|
2518
2492
|
"id": "edge-reg-s3-to-schematic-fetching",
|
|
@@ -2520,9 +2494,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2520
2494
|
"fromSide": "bottom",
|
|
2521
2495
|
"toNode": "schematic-fetching",
|
|
2522
2496
|
"toSide": "top",
|
|
2523
|
-
"
|
|
2524
|
-
"edgeType": "flow"
|
|
2525
|
-
}
|
|
2497
|
+
"edgeType": "flow"
|
|
2526
2498
|
},
|
|
2527
2499
|
{
|
|
2528
2500
|
"id": "edge-schematic-fetching-to-fetched",
|
|
@@ -2530,9 +2502,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2530
2502
|
"fromSide": "bottom",
|
|
2531
2503
|
"toNode": "schematic-fetched",
|
|
2532
2504
|
"toSide": "top",
|
|
2533
|
-
"
|
|
2534
|
-
"edgeType": "flow"
|
|
2535
|
-
}
|
|
2505
|
+
"edgeType": "flow"
|
|
2536
2506
|
},
|
|
2537
2507
|
{
|
|
2538
2508
|
"id": "edge-schematic-fetched-to-stored",
|
|
@@ -2540,9 +2510,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2540
2510
|
"fromSide": "bottom",
|
|
2541
2511
|
"toNode": "schematic-stored",
|
|
2542
2512
|
"toSide": "top",
|
|
2543
|
-
"
|
|
2544
|
-
"edgeType": "flow"
|
|
2545
|
-
}
|
|
2513
|
+
"edgeType": "flow"
|
|
2546
2514
|
},
|
|
2547
2515
|
{
|
|
2548
2516
|
"id": "edge-schematic-stored-to-complete",
|
|
@@ -2550,9 +2518,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2550
2518
|
"fromSide": "bottom",
|
|
2551
2519
|
"toNode": "registration-complete",
|
|
2552
2520
|
"toSide": "top",
|
|
2553
|
-
"
|
|
2554
|
-
"edgeType": "flow"
|
|
2555
|
-
}
|
|
2521
|
+
"edgeType": "flow"
|
|
2556
2522
|
},
|
|
2557
2523
|
{
|
|
2558
2524
|
"id": "edge-schematic-fetching-to-error",
|
|
@@ -2561,9 +2527,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2561
2527
|
"toNode": "registration-error",
|
|
2562
2528
|
"toSide": "left",
|
|
2563
2529
|
"label": "schematic fetch failed",
|
|
2564
|
-
"
|
|
2565
|
-
"edgeType": "error"
|
|
2566
|
-
}
|
|
2530
|
+
"edgeType": "error"
|
|
2567
2531
|
},
|
|
2568
2532
|
{
|
|
2569
2533
|
"id": "edge-schematic-stored-to-error",
|
|
@@ -2572,9 +2536,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2572
2536
|
"toNode": "registration-error",
|
|
2573
2537
|
"toSide": "left",
|
|
2574
2538
|
"label": "storage failed",
|
|
2575
|
-
"
|
|
2576
|
-
"edgeType": "error"
|
|
2577
|
-
}
|
|
2539
|
+
"edgeType": "error"
|
|
2578
2540
|
},
|
|
2579
2541
|
{
|
|
2580
2542
|
"id": "edge-reg-start-to-error",
|
|
@@ -2583,9 +2545,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2583
2545
|
"toNode": "registration-error",
|
|
2584
2546
|
"toSide": "left",
|
|
2585
2547
|
"label": "validation error",
|
|
2586
|
-
"
|
|
2587
|
-
"edgeType": "error"
|
|
2588
|
-
}
|
|
2548
|
+
"edgeType": "error"
|
|
2589
2549
|
},
|
|
2590
2550
|
{
|
|
2591
2551
|
"id": "edge-reg-validate-to-error",
|
|
@@ -2594,9 +2554,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2594
2554
|
"toNode": "registration-error",
|
|
2595
2555
|
"toSide": "left",
|
|
2596
2556
|
"label": "storage error",
|
|
2597
|
-
"
|
|
2598
|
-
"edgeType": "error"
|
|
2599
|
-
}
|
|
2557
|
+
"edgeType": "error"
|
|
2600
2558
|
},
|
|
2601
2559
|
{
|
|
2602
2560
|
"id": "edge-lookup-start-to-s3",
|
|
@@ -2604,9 +2562,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2604
2562
|
"fromSide": "bottom",
|
|
2605
2563
|
"toNode": "lookup-s3-retrieved",
|
|
2606
2564
|
"toSide": "top",
|
|
2607
|
-
"
|
|
2608
|
-
"edgeType": "flow"
|
|
2609
|
-
}
|
|
2565
|
+
"edgeType": "flow"
|
|
2610
2566
|
},
|
|
2611
2567
|
{
|
|
2612
2568
|
"id": "edge-lookup-s3-to-complete",
|
|
@@ -2614,9 +2570,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2614
2570
|
"fromSide": "bottom",
|
|
2615
2571
|
"toNode": "lookup-complete",
|
|
2616
2572
|
"toSide": "top",
|
|
2617
|
-
"
|
|
2618
|
-
"edgeType": "flow"
|
|
2619
|
-
}
|
|
2573
|
+
"edgeType": "flow"
|
|
2620
2574
|
},
|
|
2621
2575
|
{
|
|
2622
2576
|
"id": "edge-lookup-start-to-not-found",
|
|
@@ -2625,9 +2579,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2625
2579
|
"toNode": "lookup-not-found",
|
|
2626
2580
|
"toSide": "left",
|
|
2627
2581
|
"label": "not registered",
|
|
2628
|
-
"
|
|
2629
|
-
"edgeType": "error"
|
|
2630
|
-
}
|
|
2582
|
+
"edgeType": "error"
|
|
2631
2583
|
},
|
|
2632
2584
|
{
|
|
2633
2585
|
"id": "edge-lookup-start-to-error",
|
|
@@ -2636,9 +2588,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2636
2588
|
"toNode": "lookup-error",
|
|
2637
2589
|
"toSide": "left",
|
|
2638
2590
|
"label": "storage error",
|
|
2639
|
-
"
|
|
2640
|
-
"edgeType": "error"
|
|
2641
|
-
}
|
|
2591
|
+
"edgeType": "error"
|
|
2642
2592
|
},
|
|
2643
2593
|
{
|
|
2644
2594
|
"id": "edge-list-start-to-s3",
|
|
@@ -2646,9 +2596,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2646
2596
|
"fromSide": "bottom",
|
|
2647
2597
|
"toNode": "list-s3-retrieved",
|
|
2648
2598
|
"toSide": "top",
|
|
2649
|
-
"
|
|
2650
|
-
"edgeType": "flow"
|
|
2651
|
-
}
|
|
2599
|
+
"edgeType": "flow"
|
|
2652
2600
|
},
|
|
2653
2601
|
{
|
|
2654
2602
|
"id": "edge-list-s3-to-complete",
|
|
@@ -2656,9 +2604,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2656
2604
|
"fromSide": "bottom",
|
|
2657
2605
|
"toNode": "list-complete",
|
|
2658
2606
|
"toSide": "top",
|
|
2659
|
-
"
|
|
2660
|
-
"edgeType": "flow"
|
|
2661
|
-
}
|
|
2607
|
+
"edgeType": "flow"
|
|
2662
2608
|
},
|
|
2663
2609
|
{
|
|
2664
2610
|
"id": "edge-list-start-to-error",
|
|
@@ -2667,9 +2613,7 @@ const versionRegistryCanvas: ExtendedCanvas = {
|
|
|
2667
2613
|
"toNode": "list-error",
|
|
2668
2614
|
"toSide": "left",
|
|
2669
2615
|
"label": "storage error",
|
|
2670
|
-
"
|
|
2671
|
-
"edgeType": "error"
|
|
2672
|
-
}
|
|
2616
|
+
"edgeType": "error"
|
|
2673
2617
|
}
|
|
2674
2618
|
]
|
|
2675
2619
|
};
|
|
@@ -3179,8 +3123,8 @@ const elkEditableCanvas: ExtendedCanvas = {
|
|
|
3179
3123
|
},
|
|
3180
3124
|
],
|
|
3181
3125
|
edges: [
|
|
3182
|
-
{ id: 'e1', fromNode: 'a', toNode: 'b', fromSide: 'right', toSide: 'left',
|
|
3183
|
-
{ id: 'e2', fromNode: 'a', toNode: 'c', fromSide: 'bottom', toSide: 'left',
|
|
3126
|
+
{ id: 'e1', fromNode: 'a', toNode: 'b', fromSide: 'right', toSide: 'left', edgeType: 'flow' },
|
|
3127
|
+
{ id: 'e2', fromNode: 'a', toNode: 'c', fromSide: 'bottom', toSide: 'left', edgeType: 'flow' },
|
|
3184
3128
|
],
|
|
3185
3129
|
pv: {
|
|
3186
3130
|
version: '1.0.0',
|