temporal-explorer 0.0.0-mvp

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.
@@ -0,0 +1,246 @@
1
+ {
2
+ "$id": "https://temporal-explorer.dev/schemas/temporal-overlay/v1",
3
+ "title": "temporal-overlay/v1",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "schemaVersion": { "type": "string", "const": "temporal-overlay/v1" },
8
+ "artifactId": { "type": "string", "minLength": 1 },
9
+ "staticAnalysisId": { "type": "string", "minLength": 1 },
10
+ "runtimeTraceId": { "type": "string", "minLength": 1 },
11
+ "workflow": { "type": "string", "minLength": 1 },
12
+ "staticNodes": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "object",
16
+ "properties": {
17
+ "id": { "type": "string", "minLength": 1 },
18
+ "kind": {
19
+ "anyOf": [
20
+ { "type": "string", "const": "workflow" },
21
+ { "type": "string", "const": "activity" },
22
+ { "type": "string", "const": "signal" },
23
+ { "type": "string", "const": "timer" },
24
+ { "type": "string", "const": "condition" },
25
+ { "type": "string", "const": "query" },
26
+ { "type": "string", "const": "update" },
27
+ { "type": "string", "const": "child-workflow" },
28
+ { "type": "string", "const": "external-workflow" },
29
+ { "type": "string", "const": "continue-as-new" },
30
+ { "type": "string", "const": "patch" },
31
+ { "type": "string", "const": "cancellation-scope" },
32
+ { "type": "string", "const": "dynamic" }
33
+ ]
34
+ },
35
+ "name": { "type": "string", "minLength": 1 },
36
+ "observed": { "type": "boolean" },
37
+ "source": { "$ref": "#/$defs/__schema0" }
38
+ },
39
+ "required": ["id", "kind", "name", "observed"],
40
+ "additionalProperties": false
41
+ }
42
+ },
43
+ "mappings": {
44
+ "type": "array",
45
+ "items": {
46
+ "type": "object",
47
+ "properties": {
48
+ "runtimeOperationId": { "type": "string", "minLength": 1 },
49
+ "staticNodeId": { "type": "string", "minLength": 1 },
50
+ "confidence": { "$ref": "#/$defs/__schema2" },
51
+ "reason": { "type": "string", "minLength": 1 },
52
+ "evidence": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "properties": {
57
+ "kind": {
58
+ "anyOf": [
59
+ { "type": "string", "const": "activity-type" },
60
+ { "type": "string", "const": "command-order" },
61
+ { "type": "string", "const": "workflow-type" },
62
+ { "type": "string", "const": "signal-name" },
63
+ { "type": "string", "const": "timer-order" },
64
+ { "type": "string", "const": "update-name" },
65
+ { "type": "string", "const": "child-workflow-type" },
66
+ { "type": "string", "const": "external-signal-name" },
67
+ { "type": "string", "const": "patch-id" },
68
+ { "type": "string", "const": "continue-as-new" },
69
+ { "type": "string", "const": "scope-containment" },
70
+ { "type": "string", "const": "dynamic-dispatch" },
71
+ { "type": "string", "const": "replay-command-sequence" },
72
+ { "type": "string", "const": "event-reference" },
73
+ { "type": "string", "const": "source-location" },
74
+ { "type": "string", "const": "unmapped" }
75
+ ]
76
+ },
77
+ "description": { "type": "string", "minLength": 1 },
78
+ "eventIds": {
79
+ "type": "array",
80
+ "items": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }
81
+ },
82
+ "staticNodeId": { "type": "string", "minLength": 1 }
83
+ },
84
+ "required": ["kind", "description"],
85
+ "additionalProperties": false
86
+ }
87
+ }
88
+ },
89
+ "required": ["runtimeOperationId", "confidence", "reason", "evidence"],
90
+ "additionalProperties": false
91
+ }
92
+ },
93
+ "branchOutcomes": { "type": "array", "items": {} },
94
+ "coverage": {
95
+ "type": "object",
96
+ "properties": {
97
+ "nodes": {
98
+ "type": "object",
99
+ "properties": {
100
+ "total": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
101
+ "observed": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
102
+ "skipped": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
103
+ "unmappedRuntimeOperations": {
104
+ "type": "integer",
105
+ "minimum": 0,
106
+ "maximum": 9007199254740991
107
+ }
108
+ },
109
+ "required": ["total", "observed", "skipped", "unmappedRuntimeOperations"],
110
+ "additionalProperties": false
111
+ },
112
+ "activities": {
113
+ "type": "object",
114
+ "properties": {
115
+ "staticTotal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
116
+ "observed": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
117
+ "retried": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
118
+ "failed": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
119
+ },
120
+ "required": ["staticTotal", "observed", "retried", "failed"],
121
+ "additionalProperties": false
122
+ },
123
+ "messages": {
124
+ "type": "object",
125
+ "properties": {
126
+ "staticSignals": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
127
+ "receivedSignals": { "type": "array", "items": { "type": "string" } },
128
+ "staticUpdates": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
129
+ "receivedUpdates": { "type": "array", "items": { "type": "string" } },
130
+ "staticQueries": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
131
+ },
132
+ "required": [
133
+ "staticSignals",
134
+ "receivedSignals",
135
+ "staticUpdates",
136
+ "receivedUpdates",
137
+ "staticQueries"
138
+ ],
139
+ "additionalProperties": false
140
+ },
141
+ "timers": {
142
+ "type": "object",
143
+ "properties": {
144
+ "staticTotal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
145
+ "fired": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
146
+ "canceled": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
147
+ "pending": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
148
+ },
149
+ "required": ["staticTotal", "fired", "canceled", "pending"],
150
+ "additionalProperties": false
151
+ }
152
+ },
153
+ "required": ["nodes", "activities", "messages", "timers"],
154
+ "additionalProperties": false
155
+ },
156
+ "diagnostics": {
157
+ "type": "array",
158
+ "items": {
159
+ "type": "object",
160
+ "properties": {
161
+ "code": { "type": "string", "minLength": 1 },
162
+ "category": {
163
+ "anyOf": [
164
+ { "type": "string", "const": "configuration" },
165
+ { "type": "string", "const": "discovery" },
166
+ { "type": "string", "const": "type-extraction" },
167
+ { "type": "string", "const": "control-flow" },
168
+ { "type": "string", "const": "determinism" },
169
+ { "type": "string", "const": "history" },
170
+ { "type": "string", "const": "mapping" },
171
+ { "type": "string", "const": "rendering" },
172
+ { "type": "string", "const": "privacy" },
173
+ { "type": "string", "const": "compatibility" }
174
+ ]
175
+ },
176
+ "severity": {
177
+ "anyOf": [
178
+ { "type": "string", "const": "error" },
179
+ { "type": "string", "const": "warning" },
180
+ { "type": "string", "const": "info" }
181
+ ]
182
+ },
183
+ "message": { "type": "string", "minLength": 1 },
184
+ "source": { "$ref": "#/$defs/__schema0" },
185
+ "relatedSources": { "type": "array", "items": { "$ref": "#/$defs/__schema0" } },
186
+ "confidence": { "$ref": "#/$defs/__schema2" },
187
+ "documentationUrl": { "type": "string", "format": "uri" }
188
+ },
189
+ "required": ["code", "category", "severity", "message", "confidence"],
190
+ "additionalProperties": false
191
+ }
192
+ }
193
+ },
194
+ "required": [
195
+ "schemaVersion",
196
+ "artifactId",
197
+ "staticAnalysisId",
198
+ "runtimeTraceId",
199
+ "workflow",
200
+ "staticNodes",
201
+ "mappings",
202
+ "branchOutcomes",
203
+ "coverage",
204
+ "diagnostics"
205
+ ],
206
+ "additionalProperties": false,
207
+ "$defs": {
208
+ "__schema0": {
209
+ "type": "object",
210
+ "properties": {
211
+ "path": { "type": "string", "minLength": 1 },
212
+ "pathKind": {
213
+ "anyOf": [
214
+ { "type": "string", "const": "project-relative" },
215
+ { "type": "string", "const": "absolute" }
216
+ ]
217
+ },
218
+ "start": { "$ref": "#/$defs/__schema1" },
219
+ "end": { "$ref": "#/$defs/__schema1" },
220
+ "symbolName": { "type": "string", "minLength": 1 }
221
+ },
222
+ "required": ["path", "pathKind", "start", "end"],
223
+ "additionalProperties": false
224
+ },
225
+ "__schema1": {
226
+ "type": "object",
227
+ "properties": {
228
+ "line": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
229
+ "column": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 },
230
+ "offset": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
231
+ },
232
+ "required": ["line", "column", "offset"],
233
+ "additionalProperties": false
234
+ },
235
+ "__schema2": {
236
+ "anyOf": [
237
+ { "type": "string", "const": "exact" },
238
+ { "type": "string", "const": "inferred" },
239
+ { "type": "string", "const": "partial" },
240
+ { "type": "string", "const": "ambiguous" },
241
+ { "type": "string", "const": "dynamic" },
242
+ { "type": "string", "const": "unknown" }
243
+ ]
244
+ }
245
+ }
246
+ }