@crvouga/atlas 0.8.0 → 0.10.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/core/src/lint.js +6 -2
  3. package/dist/core/src/spec/types.d.ts +4 -1
  4. package/dist/playwright-reporter/src/evidence.d.ts +122 -0
  5. package/dist/playwright-reporter/src/evidence.js +327 -0
  6. package/dist/playwright-reporter/src/index.d.ts +114 -0
  7. package/dist/playwright-reporter/src/index.js +312 -0
  8. package/dist/reports/src/compose.js +7 -14
  9. package/dist/reports/src/recorded-specs.d.ts +33 -0
  10. package/dist/reports/src/recorded-specs.js +42 -0
  11. package/dist/reports/src/report-index.d.ts +6 -0
  12. package/dist/reports/src/report-index.js +14 -2
  13. package/dist/reports/src/test-catalog.d.ts +386 -0
  14. package/dist/reports/src/test-catalog.js +655 -0
  15. package/dist/schema/src/api.d.ts +585 -0
  16. package/dist/schema/src/api.js +105 -0
  17. package/dist/schema/src/spec.d.ts +2 -1
  18. package/dist/schema/src/spec.js +5 -2
  19. package/dist/server/src/app.js +82 -4
  20. package/dist/server/src/llms.js +14 -0
  21. package/dist/server/src/openapi.d.ts +1 -1
  22. package/dist/server/src/openapi.js +60 -3
  23. package/docs/agents.md +1 -0
  24. package/docs/integrating.md +1 -0
  25. package/docs/reference/core.md +7 -2
  26. package/docs/reference/http-api.md +134 -2
  27. package/docs/reference/playwright-reporter.md +332 -0
  28. package/docs/reference/reports.md +632 -0
  29. package/docs/reference/schema.md +58 -1
  30. package/docs/rich-evidence.md +198 -0
  31. package/docs/server.md +41 -0
  32. package/docs/statecharts.md +2 -1
  33. package/llms-full.txt +380 -3
  34. package/llms.txt +2 -0
  35. package/package.json +6 -1
  36. package/packages/schema/schemas/report-run.schema.json +251 -0
  37. package/packages/schema/schemas/report-runs.schema.json +177 -0
  38. package/packages/schema/schemas/state-node.schema.json +7 -0
  39. package/packages/schema/schemas/test-catalog.schema.json +1177 -0
  40. package/packages/schema/schemas/test-history.schema.json +696 -0
  41. package/packages/server/openapi.json +8676 -5351
  42. package/packages/visualizer/src/app/AppShell.tsx +7 -3
  43. package/packages/visualizer/src/app/router.tsx +26 -3
  44. package/packages/visualizer/src/components/Header.tsx +2 -2
  45. package/packages/visualizer/src/evidence/evidence-context.tsx +10 -1
  46. package/packages/visualizer/src/explorer/Explorer.tsx +433 -0
  47. package/packages/visualizer/src/explorer/ExplorerIndex.tsx +120 -0
  48. package/packages/visualizer/src/explorer/RunsView.tsx +164 -0
  49. package/packages/visualizer/src/explorer/TestDetail.tsx +214 -0
  50. package/packages/visualizer/src/explorer/catalog.tsx +274 -0
  51. package/packages/visualizer/src/explorer/explorer.module.css +1238 -0
  52. package/packages/visualizer/src/explorer/groups.test.ts +87 -0
  53. package/packages/visualizer/src/explorer/groups.ts +126 -0
  54. package/packages/visualizer/src/explorer/navigate.ts +36 -0
  55. package/packages/visualizer/src/explorer/parts.tsx +59 -0
  56. package/packages/visualizer/src/explorer/search.ts +97 -0
  57. package/packages/visualizer/src/find/Finder.tsx +2 -0
  58. package/packages/visualizer/src/find/corpus.ts +13 -6
  59. package/packages/visualizer/src/find/rank.ts +2 -0
  60. package/packages/visualizer/src/evidence/project-home.tsx +0 -45
@@ -0,0 +1,251 @@
1
+ {
2
+ "$id": "https://github.com/crvouga/atlas/schemas/report-run.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "schemaVersion": {
7
+ "type": "number",
8
+ "const": 1
9
+ },
10
+ "version": {
11
+ "type": "string"
12
+ },
13
+ "run": {
14
+ "type": "object",
15
+ "properties": {
16
+ "key": {
17
+ "description": "The run URL, or `branch@sha`. Pass it to `/api/reports/runs/detail?key=` or `/api/reports/tests?run=`",
18
+ "type": "string"
19
+ },
20
+ "runUrl": {
21
+ "anyOf": [
22
+ {
23
+ "type": "string"
24
+ },
25
+ {
26
+ "type": "null"
27
+ }
28
+ ]
29
+ },
30
+ "branch": {
31
+ "anyOf": [
32
+ {
33
+ "type": "string"
34
+ },
35
+ {
36
+ "type": "null"
37
+ }
38
+ ]
39
+ },
40
+ "sha": {
41
+ "anyOf": [
42
+ {
43
+ "type": "string"
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ]
49
+ },
50
+ "startedAtMs": {
51
+ "type": "number"
52
+ },
53
+ "endedAtMs": {
54
+ "type": "number"
55
+ },
56
+ "spanMs": {
57
+ "type": "number"
58
+ },
59
+ "producers": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ "environments": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "string"
69
+ }
70
+ },
71
+ "layers": {
72
+ "type": "integer",
73
+ "minimum": 0,
74
+ "maximum": 9007199254740991
75
+ },
76
+ "tests": {
77
+ "type": "integer",
78
+ "minimum": 0,
79
+ "maximum": 9007199254740991
80
+ },
81
+ "counts": {
82
+ "type": "object",
83
+ "propertyNames": {
84
+ "type": "string",
85
+ "enum": [
86
+ "passed",
87
+ "failed",
88
+ "running",
89
+ "not-run"
90
+ ]
91
+ },
92
+ "additionalProperties": {
93
+ "type": "integer",
94
+ "minimum": 0,
95
+ "maximum": 9007199254740991
96
+ }
97
+ },
98
+ "totalDurationMs": {
99
+ "anyOf": [
100
+ {
101
+ "type": "number"
102
+ },
103
+ {
104
+ "type": "null"
105
+ }
106
+ ]
107
+ },
108
+ "failing": {
109
+ "type": "array",
110
+ "items": {
111
+ "type": "object",
112
+ "properties": {
113
+ "key": {
114
+ "type": "string"
115
+ },
116
+ "title": {
117
+ "type": "string"
118
+ },
119
+ "environment": {
120
+ "anyOf": [
121
+ {
122
+ "type": "string"
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ]
128
+ },
129
+ "detail": {
130
+ "type": "string"
131
+ }
132
+ },
133
+ "required": [
134
+ "key",
135
+ "title",
136
+ "environment",
137
+ "detail"
138
+ ],
139
+ "additionalProperties": {}
140
+ }
141
+ }
142
+ },
143
+ "required": [
144
+ "key",
145
+ "runUrl",
146
+ "branch",
147
+ "sha",
148
+ "startedAtMs",
149
+ "endedAtMs",
150
+ "spanMs",
151
+ "producers",
152
+ "environments",
153
+ "layers",
154
+ "tests",
155
+ "counts",
156
+ "totalDurationMs",
157
+ "failing"
158
+ ],
159
+ "additionalProperties": {}
160
+ },
161
+ "results": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "object",
165
+ "properties": {
166
+ "key": {
167
+ "type": "string"
168
+ },
169
+ "id": {
170
+ "type": "string"
171
+ },
172
+ "title": {
173
+ "type": "string"
174
+ },
175
+ "specPath": {
176
+ "anyOf": [
177
+ {
178
+ "type": "string"
179
+ },
180
+ {
181
+ "type": "null"
182
+ }
183
+ ]
184
+ },
185
+ "environment": {
186
+ "anyOf": [
187
+ {
188
+ "type": "string"
189
+ },
190
+ {
191
+ "type": "null"
192
+ }
193
+ ]
194
+ },
195
+ "producer": {
196
+ "type": "string"
197
+ },
198
+ "status": {
199
+ "type": "string",
200
+ "enum": [
201
+ "passed",
202
+ "failed",
203
+ "running",
204
+ "not-run"
205
+ ]
206
+ },
207
+ "durationMs": {
208
+ "anyOf": [
209
+ {
210
+ "type": "number"
211
+ },
212
+ {
213
+ "type": "null"
214
+ }
215
+ ]
216
+ },
217
+ "at": {
218
+ "type": "number"
219
+ },
220
+ "layer": {
221
+ "type": "string"
222
+ },
223
+ "detail": {
224
+ "type": "string"
225
+ }
226
+ },
227
+ "required": [
228
+ "key",
229
+ "id",
230
+ "title",
231
+ "specPath",
232
+ "environment",
233
+ "producer",
234
+ "status",
235
+ "durationMs",
236
+ "at",
237
+ "layer",
238
+ "detail"
239
+ ],
240
+ "additionalProperties": {}
241
+ }
242
+ }
243
+ },
244
+ "required": [
245
+ "schemaVersion",
246
+ "version",
247
+ "run",
248
+ "results"
249
+ ],
250
+ "additionalProperties": {}
251
+ }
@@ -0,0 +1,177 @@
1
+ {
2
+ "$id": "https://github.com/crvouga/atlas/schemas/report-runs.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "schemaVersion": {
7
+ "type": "number",
8
+ "const": 1
9
+ },
10
+ "version": {
11
+ "type": "string"
12
+ },
13
+ "total": {
14
+ "type": "integer",
15
+ "minimum": 0,
16
+ "maximum": 9007199254740991
17
+ },
18
+ "runs": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "object",
22
+ "properties": {
23
+ "key": {
24
+ "description": "The run URL, or `branch@sha`. Pass it to `/api/reports/runs/detail?key=` or `/api/reports/tests?run=`",
25
+ "type": "string"
26
+ },
27
+ "runUrl": {
28
+ "anyOf": [
29
+ {
30
+ "type": "string"
31
+ },
32
+ {
33
+ "type": "null"
34
+ }
35
+ ]
36
+ },
37
+ "branch": {
38
+ "anyOf": [
39
+ {
40
+ "type": "string"
41
+ },
42
+ {
43
+ "type": "null"
44
+ }
45
+ ]
46
+ },
47
+ "sha": {
48
+ "anyOf": [
49
+ {
50
+ "type": "string"
51
+ },
52
+ {
53
+ "type": "null"
54
+ }
55
+ ]
56
+ },
57
+ "startedAtMs": {
58
+ "type": "number"
59
+ },
60
+ "endedAtMs": {
61
+ "type": "number"
62
+ },
63
+ "spanMs": {
64
+ "type": "number"
65
+ },
66
+ "producers": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ "environments": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "string"
76
+ }
77
+ },
78
+ "layers": {
79
+ "type": "integer",
80
+ "minimum": 0,
81
+ "maximum": 9007199254740991
82
+ },
83
+ "tests": {
84
+ "type": "integer",
85
+ "minimum": 0,
86
+ "maximum": 9007199254740991
87
+ },
88
+ "counts": {
89
+ "type": "object",
90
+ "propertyNames": {
91
+ "type": "string",
92
+ "enum": [
93
+ "passed",
94
+ "failed",
95
+ "running",
96
+ "not-run"
97
+ ]
98
+ },
99
+ "additionalProperties": {
100
+ "type": "integer",
101
+ "minimum": 0,
102
+ "maximum": 9007199254740991
103
+ }
104
+ },
105
+ "totalDurationMs": {
106
+ "anyOf": [
107
+ {
108
+ "type": "number"
109
+ },
110
+ {
111
+ "type": "null"
112
+ }
113
+ ]
114
+ },
115
+ "failing": {
116
+ "type": "array",
117
+ "items": {
118
+ "type": "object",
119
+ "properties": {
120
+ "key": {
121
+ "type": "string"
122
+ },
123
+ "title": {
124
+ "type": "string"
125
+ },
126
+ "environment": {
127
+ "anyOf": [
128
+ {
129
+ "type": "string"
130
+ },
131
+ {
132
+ "type": "null"
133
+ }
134
+ ]
135
+ },
136
+ "detail": {
137
+ "type": "string"
138
+ }
139
+ },
140
+ "required": [
141
+ "key",
142
+ "title",
143
+ "environment",
144
+ "detail"
145
+ ],
146
+ "additionalProperties": {}
147
+ }
148
+ }
149
+ },
150
+ "required": [
151
+ "key",
152
+ "runUrl",
153
+ "branch",
154
+ "sha",
155
+ "startedAtMs",
156
+ "endedAtMs",
157
+ "spanMs",
158
+ "producers",
159
+ "environments",
160
+ "layers",
161
+ "tests",
162
+ "counts",
163
+ "totalDurationMs",
164
+ "failing"
165
+ ],
166
+ "additionalProperties": {}
167
+ }
168
+ }
169
+ },
170
+ "required": [
171
+ "schemaVersion",
172
+ "version",
173
+ "total",
174
+ "runs"
175
+ ],
176
+ "additionalProperties": {}
177
+ }
@@ -225,6 +225,13 @@
225
225
  "target": {
226
226
  "type": "string",
227
227
  "minLength": 1
228
+ },
229
+ "meta": {
230
+ "type": "object",
231
+ "propertyNames": {
232
+ "type": "string"
233
+ },
234
+ "additionalProperties": {}
228
235
  }
229
236
  },
230
237
  "required": [