@onlyflows/servicenow-mcp 2.2.0-dev.4 → 2.2.0-dev.6
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/CHANGELOG.md +45 -0
- package/dist/command-resolution.d.ts +53 -0
- package/dist/command-resolution.d.ts.map +1 -0
- package/dist/command-resolution.js +154 -0
- package/dist/command-resolution.js.map +1 -0
- package/dist/profile-admin.d.ts.map +1 -1
- package/dist/profile-admin.js +3 -0
- package/dist/profile-admin.js.map +1 -1
- package/dist/profile-manager.d.ts +10 -0
- package/dist/profile-manager.d.ts.map +1 -1
- package/dist/profile-manager.js +32 -3
- package/dist/profile-manager.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +53 -0
- package/dist/server.js.map +1 -1
- package/dist/setup.d.ts +7 -0
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +193 -54
- package/dist/setup.js.map +1 -1
- package/dist/tools/atf-contracts.d.ts +221 -3
- package/dist/tools/atf-contracts.d.ts.map +1 -1
- package/dist/tools/atf-contracts.js +6 -3
- package/dist/tools/atf-contracts.js.map +1 -1
- package/dist/tools/atf-renderers.d.ts.map +1 -1
- package/dist/tools/atf-renderers.js +8 -2
- package/dist/tools/atf-renderers.js.map +1 -1
- package/dist/tools/atf-results-module.d.ts.map +1 -1
- package/dist/tools/atf-results-module.js +31 -2
- package/dist/tools/atf-results-module.js.map +1 -1
- package/dist/tools/atf-shared.d.ts +5 -2
- package/dist/tools/atf-shared.d.ts.map +1 -1
- package/dist/tools/atf-shared.js +32 -18
- package/dist/tools/atf-shared.js.map +1 -1
- package/dist/tools/result-envelope.d.ts +234 -19
- package/dist/tools/result-envelope.d.ts.map +1 -1
- package/dist/tools/syslog.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/ATF-WORKFLOW.md +34 -4
- package/package.json +2 -1
|
@@ -6,6 +6,7 @@ export declare const atfComparisonSchema: z.ZodObject<{
|
|
|
6
6
|
fixed: z.ZodArray<z.ZodString, "many">;
|
|
7
7
|
still_failing: z.ZodArray<z.ZodString, "many">;
|
|
8
8
|
flaky: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
status_changed: z.ZodArray<z.ZodString, "many">;
|
|
9
10
|
duration_change_ms: z.ZodNumber;
|
|
10
11
|
duration_regression: z.ZodBoolean;
|
|
11
12
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -15,6 +16,7 @@ export declare const atfComparisonSchema: z.ZodObject<{
|
|
|
15
16
|
new_failures: string[];
|
|
16
17
|
still_failing: string[];
|
|
17
18
|
flaky: string[];
|
|
19
|
+
status_changed: string[];
|
|
18
20
|
duration_change_ms: number;
|
|
19
21
|
duration_regression: boolean;
|
|
20
22
|
}, {
|
|
@@ -24,6 +26,7 @@ export declare const atfComparisonSchema: z.ZodObject<{
|
|
|
24
26
|
new_failures: string[];
|
|
25
27
|
still_failing: string[];
|
|
26
28
|
flaky: string[];
|
|
29
|
+
status_changed: string[];
|
|
27
30
|
duration_change_ms: number;
|
|
28
31
|
duration_regression: boolean;
|
|
29
32
|
}>;
|
|
@@ -111,17 +114,51 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
111
114
|
test_name: z.ZodString;
|
|
112
115
|
step: z.ZodString;
|
|
113
116
|
message: z.ZodString;
|
|
117
|
+
message_truncated: z.ZodBoolean;
|
|
118
|
+
test_result_id: z.ZodString;
|
|
119
|
+
step_result_id: z.ZodOptional<z.ZodString>;
|
|
120
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
114
121
|
}, "strict", z.ZodTypeAny, {
|
|
115
122
|
message: string;
|
|
116
123
|
step: string;
|
|
117
124
|
test_id: string;
|
|
118
125
|
test_name: string;
|
|
126
|
+
message_truncated: boolean;
|
|
127
|
+
test_result_id: string;
|
|
128
|
+
step_result_id?: string | undefined;
|
|
129
|
+
step_id?: string | undefined;
|
|
119
130
|
}, {
|
|
120
131
|
message: string;
|
|
121
132
|
step: string;
|
|
122
133
|
test_id: string;
|
|
123
134
|
test_name: string;
|
|
135
|
+
message_truncated: boolean;
|
|
136
|
+
test_result_id: string;
|
|
137
|
+
step_result_id?: string | undefined;
|
|
138
|
+
step_id?: string | undefined;
|
|
124
139
|
}>, "many">;
|
|
140
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
tests_total: z.ZodNumber;
|
|
142
|
+
tests_offset: z.ZodNumber;
|
|
143
|
+
tests_next_offset: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
failures_total: z.ZodNumber;
|
|
145
|
+
failures_offset: z.ZodNumber;
|
|
146
|
+
failures_next_offset: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
}, "strict", z.ZodTypeAny, {
|
|
148
|
+
tests_total: number;
|
|
149
|
+
tests_offset: number;
|
|
150
|
+
failures_total: number;
|
|
151
|
+
failures_offset: number;
|
|
152
|
+
tests_next_offset?: number | undefined;
|
|
153
|
+
failures_next_offset?: number | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
tests_total: number;
|
|
156
|
+
tests_offset: number;
|
|
157
|
+
failures_total: number;
|
|
158
|
+
failures_offset: number;
|
|
159
|
+
tests_next_offset?: number | undefined;
|
|
160
|
+
failures_next_offset?: number | undefined;
|
|
161
|
+
}>>;
|
|
125
162
|
comparison: z.ZodOptional<z.ZodObject<{
|
|
126
163
|
previous_run: z.ZodString;
|
|
127
164
|
current_run: z.ZodString;
|
|
@@ -129,6 +166,7 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
129
166
|
fixed: z.ZodArray<z.ZodString, "many">;
|
|
130
167
|
still_failing: z.ZodArray<z.ZodString, "many">;
|
|
131
168
|
flaky: z.ZodArray<z.ZodString, "many">;
|
|
169
|
+
status_changed: z.ZodArray<z.ZodString, "many">;
|
|
132
170
|
duration_change_ms: z.ZodNumber;
|
|
133
171
|
duration_regression: z.ZodBoolean;
|
|
134
172
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -138,6 +176,7 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
138
176
|
new_failures: string[];
|
|
139
177
|
still_failing: string[];
|
|
140
178
|
flaky: string[];
|
|
179
|
+
status_changed: string[];
|
|
141
180
|
duration_change_ms: number;
|
|
142
181
|
duration_regression: boolean;
|
|
143
182
|
}, {
|
|
@@ -147,6 +186,7 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
147
186
|
new_failures: string[];
|
|
148
187
|
still_failing: string[];
|
|
149
188
|
flaky: string[];
|
|
189
|
+
status_changed: string[];
|
|
150
190
|
duration_change_ms: number;
|
|
151
191
|
duration_regression: boolean;
|
|
152
192
|
}>>;
|
|
@@ -158,6 +198,10 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
158
198
|
step: string;
|
|
159
199
|
test_id: string;
|
|
160
200
|
test_name: string;
|
|
201
|
+
message_truncated: boolean;
|
|
202
|
+
test_result_id: string;
|
|
203
|
+
step_result_id?: string | undefined;
|
|
204
|
+
step_id?: string | undefined;
|
|
161
205
|
}[];
|
|
162
206
|
warnings: string[];
|
|
163
207
|
run?: {
|
|
@@ -183,6 +227,14 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
183
227
|
progress_id?: string | undefined;
|
|
184
228
|
result_id?: string | undefined;
|
|
185
229
|
suite_id?: string | undefined;
|
|
230
|
+
pagination?: {
|
|
231
|
+
tests_total: number;
|
|
232
|
+
tests_offset: number;
|
|
233
|
+
failures_total: number;
|
|
234
|
+
failures_offset: number;
|
|
235
|
+
tests_next_offset?: number | undefined;
|
|
236
|
+
failures_next_offset?: number | undefined;
|
|
237
|
+
} | undefined;
|
|
186
238
|
comparison?: {
|
|
187
239
|
fixed: string[];
|
|
188
240
|
previous_run: string;
|
|
@@ -190,6 +242,7 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
190
242
|
new_failures: string[];
|
|
191
243
|
still_failing: string[];
|
|
192
244
|
flaky: string[];
|
|
245
|
+
status_changed: string[];
|
|
193
246
|
duration_change_ms: number;
|
|
194
247
|
duration_regression: boolean;
|
|
195
248
|
} | undefined;
|
|
@@ -200,6 +253,10 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
200
253
|
step: string;
|
|
201
254
|
test_id: string;
|
|
202
255
|
test_name: string;
|
|
256
|
+
message_truncated: boolean;
|
|
257
|
+
test_result_id: string;
|
|
258
|
+
step_result_id?: string | undefined;
|
|
259
|
+
step_id?: string | undefined;
|
|
203
260
|
}[];
|
|
204
261
|
warnings: string[];
|
|
205
262
|
run?: {
|
|
@@ -225,6 +282,14 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
225
282
|
progress_id?: string | undefined;
|
|
226
283
|
result_id?: string | undefined;
|
|
227
284
|
suite_id?: string | undefined;
|
|
285
|
+
pagination?: {
|
|
286
|
+
tests_total: number;
|
|
287
|
+
tests_offset: number;
|
|
288
|
+
failures_total: number;
|
|
289
|
+
failures_offset: number;
|
|
290
|
+
tests_next_offset?: number | undefined;
|
|
291
|
+
failures_next_offset?: number | undefined;
|
|
292
|
+
} | undefined;
|
|
228
293
|
comparison?: {
|
|
229
294
|
fixed: string[];
|
|
230
295
|
previous_run: string;
|
|
@@ -232,12 +297,47 @@ export declare const atfExecutionResultSchema: z.ZodObject<{
|
|
|
232
297
|
new_failures: string[];
|
|
233
298
|
still_failing: string[];
|
|
234
299
|
flaky: string[];
|
|
300
|
+
status_changed: string[];
|
|
235
301
|
duration_change_ms: number;
|
|
236
302
|
duration_regression: boolean;
|
|
237
303
|
} | undefined;
|
|
238
304
|
}>;
|
|
239
305
|
export declare const atfResultsSchema: z.ZodObject<{
|
|
240
|
-
action: z.ZodEnum<["get", "history", "compare"]>;
|
|
306
|
+
action: z.ZodEnum<["get", "step", "history", "compare"]>;
|
|
307
|
+
step_detail: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
step_result_id: z.ZodString;
|
|
309
|
+
test_result_id: z.ZodString;
|
|
310
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
311
|
+
step: z.ZodString;
|
|
312
|
+
status: z.ZodString;
|
|
313
|
+
field: z.ZodEnum<["summary", "output"]>;
|
|
314
|
+
text: z.ZodString;
|
|
315
|
+
offset: z.ZodNumber;
|
|
316
|
+
total_characters: z.ZodNumber;
|
|
317
|
+
next_offset: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
}, "strict", z.ZodTypeAny, {
|
|
319
|
+
status: string;
|
|
320
|
+
text: string;
|
|
321
|
+
field: "output" | "summary";
|
|
322
|
+
step: string;
|
|
323
|
+
offset: number;
|
|
324
|
+
test_result_id: string;
|
|
325
|
+
step_result_id: string;
|
|
326
|
+
total_characters: number;
|
|
327
|
+
step_id?: string | undefined;
|
|
328
|
+
next_offset?: number | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
status: string;
|
|
331
|
+
text: string;
|
|
332
|
+
field: "output" | "summary";
|
|
333
|
+
step: string;
|
|
334
|
+
offset: number;
|
|
335
|
+
test_result_id: string;
|
|
336
|
+
step_result_id: string;
|
|
337
|
+
total_characters: number;
|
|
338
|
+
step_id?: string | undefined;
|
|
339
|
+
next_offset?: number | undefined;
|
|
340
|
+
}>>;
|
|
241
341
|
execution: z.ZodOptional<z.ZodObject<{
|
|
242
342
|
outcome: z.ZodEnum<["running", "completed", "unavailable"]>;
|
|
243
343
|
progress_id: z.ZodOptional<z.ZodString>;
|
|
@@ -322,17 +422,51 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
322
422
|
test_name: z.ZodString;
|
|
323
423
|
step: z.ZodString;
|
|
324
424
|
message: z.ZodString;
|
|
425
|
+
message_truncated: z.ZodBoolean;
|
|
426
|
+
test_result_id: z.ZodString;
|
|
427
|
+
step_result_id: z.ZodOptional<z.ZodString>;
|
|
428
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
325
429
|
}, "strict", z.ZodTypeAny, {
|
|
326
430
|
message: string;
|
|
327
431
|
step: string;
|
|
328
432
|
test_id: string;
|
|
329
433
|
test_name: string;
|
|
434
|
+
message_truncated: boolean;
|
|
435
|
+
test_result_id: string;
|
|
436
|
+
step_result_id?: string | undefined;
|
|
437
|
+
step_id?: string | undefined;
|
|
330
438
|
}, {
|
|
331
439
|
message: string;
|
|
332
440
|
step: string;
|
|
333
441
|
test_id: string;
|
|
334
442
|
test_name: string;
|
|
443
|
+
message_truncated: boolean;
|
|
444
|
+
test_result_id: string;
|
|
445
|
+
step_result_id?: string | undefined;
|
|
446
|
+
step_id?: string | undefined;
|
|
335
447
|
}>, "many">;
|
|
448
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
449
|
+
tests_total: z.ZodNumber;
|
|
450
|
+
tests_offset: z.ZodNumber;
|
|
451
|
+
tests_next_offset: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
failures_total: z.ZodNumber;
|
|
453
|
+
failures_offset: z.ZodNumber;
|
|
454
|
+
failures_next_offset: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
}, "strict", z.ZodTypeAny, {
|
|
456
|
+
tests_total: number;
|
|
457
|
+
tests_offset: number;
|
|
458
|
+
failures_total: number;
|
|
459
|
+
failures_offset: number;
|
|
460
|
+
tests_next_offset?: number | undefined;
|
|
461
|
+
failures_next_offset?: number | undefined;
|
|
462
|
+
}, {
|
|
463
|
+
tests_total: number;
|
|
464
|
+
tests_offset: number;
|
|
465
|
+
failures_total: number;
|
|
466
|
+
failures_offset: number;
|
|
467
|
+
tests_next_offset?: number | undefined;
|
|
468
|
+
failures_next_offset?: number | undefined;
|
|
469
|
+
}>>;
|
|
336
470
|
comparison: z.ZodOptional<z.ZodObject<{
|
|
337
471
|
previous_run: z.ZodString;
|
|
338
472
|
current_run: z.ZodString;
|
|
@@ -340,6 +474,7 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
340
474
|
fixed: z.ZodArray<z.ZodString, "many">;
|
|
341
475
|
still_failing: z.ZodArray<z.ZodString, "many">;
|
|
342
476
|
flaky: z.ZodArray<z.ZodString, "many">;
|
|
477
|
+
status_changed: z.ZodArray<z.ZodString, "many">;
|
|
343
478
|
duration_change_ms: z.ZodNumber;
|
|
344
479
|
duration_regression: z.ZodBoolean;
|
|
345
480
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -349,6 +484,7 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
349
484
|
new_failures: string[];
|
|
350
485
|
still_failing: string[];
|
|
351
486
|
flaky: string[];
|
|
487
|
+
status_changed: string[];
|
|
352
488
|
duration_change_ms: number;
|
|
353
489
|
duration_regression: boolean;
|
|
354
490
|
}, {
|
|
@@ -358,6 +494,7 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
358
494
|
new_failures: string[];
|
|
359
495
|
still_failing: string[];
|
|
360
496
|
flaky: string[];
|
|
497
|
+
status_changed: string[];
|
|
361
498
|
duration_change_ms: number;
|
|
362
499
|
duration_regression: boolean;
|
|
363
500
|
}>>;
|
|
@@ -369,6 +506,10 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
369
506
|
step: string;
|
|
370
507
|
test_id: string;
|
|
371
508
|
test_name: string;
|
|
509
|
+
message_truncated: boolean;
|
|
510
|
+
test_result_id: string;
|
|
511
|
+
step_result_id?: string | undefined;
|
|
512
|
+
step_id?: string | undefined;
|
|
372
513
|
}[];
|
|
373
514
|
warnings: string[];
|
|
374
515
|
run?: {
|
|
@@ -394,6 +535,14 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
394
535
|
progress_id?: string | undefined;
|
|
395
536
|
result_id?: string | undefined;
|
|
396
537
|
suite_id?: string | undefined;
|
|
538
|
+
pagination?: {
|
|
539
|
+
tests_total: number;
|
|
540
|
+
tests_offset: number;
|
|
541
|
+
failures_total: number;
|
|
542
|
+
failures_offset: number;
|
|
543
|
+
tests_next_offset?: number | undefined;
|
|
544
|
+
failures_next_offset?: number | undefined;
|
|
545
|
+
} | undefined;
|
|
397
546
|
comparison?: {
|
|
398
547
|
fixed: string[];
|
|
399
548
|
previous_run: string;
|
|
@@ -401,6 +550,7 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
401
550
|
new_failures: string[];
|
|
402
551
|
still_failing: string[];
|
|
403
552
|
flaky: string[];
|
|
553
|
+
status_changed: string[];
|
|
404
554
|
duration_change_ms: number;
|
|
405
555
|
duration_regression: boolean;
|
|
406
556
|
} | undefined;
|
|
@@ -411,6 +561,10 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
411
561
|
step: string;
|
|
412
562
|
test_id: string;
|
|
413
563
|
test_name: string;
|
|
564
|
+
message_truncated: boolean;
|
|
565
|
+
test_result_id: string;
|
|
566
|
+
step_result_id?: string | undefined;
|
|
567
|
+
step_id?: string | undefined;
|
|
414
568
|
}[];
|
|
415
569
|
warnings: string[];
|
|
416
570
|
run?: {
|
|
@@ -436,6 +590,14 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
436
590
|
progress_id?: string | undefined;
|
|
437
591
|
result_id?: string | undefined;
|
|
438
592
|
suite_id?: string | undefined;
|
|
593
|
+
pagination?: {
|
|
594
|
+
tests_total: number;
|
|
595
|
+
tests_offset: number;
|
|
596
|
+
failures_total: number;
|
|
597
|
+
failures_offset: number;
|
|
598
|
+
tests_next_offset?: number | undefined;
|
|
599
|
+
failures_next_offset?: number | undefined;
|
|
600
|
+
} | undefined;
|
|
439
601
|
comparison?: {
|
|
440
602
|
fixed: string[];
|
|
441
603
|
previous_run: string;
|
|
@@ -443,6 +605,7 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
443
605
|
new_failures: string[];
|
|
444
606
|
still_failing: string[];
|
|
445
607
|
flaky: string[];
|
|
608
|
+
status_changed: string[];
|
|
446
609
|
duration_change_ms: number;
|
|
447
610
|
duration_regression: boolean;
|
|
448
611
|
} | undefined;
|
|
@@ -527,6 +690,7 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
527
690
|
fixed: z.ZodArray<z.ZodString, "many">;
|
|
528
691
|
still_failing: z.ZodArray<z.ZodString, "many">;
|
|
529
692
|
flaky: z.ZodArray<z.ZodString, "many">;
|
|
693
|
+
status_changed: z.ZodArray<z.ZodString, "many">;
|
|
530
694
|
duration_change_ms: z.ZodNumber;
|
|
531
695
|
duration_regression: z.ZodBoolean;
|
|
532
696
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -536,6 +700,7 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
536
700
|
new_failures: string[];
|
|
537
701
|
still_failing: string[];
|
|
538
702
|
flaky: string[];
|
|
703
|
+
status_changed: string[];
|
|
539
704
|
duration_change_ms: number;
|
|
540
705
|
duration_regression: boolean;
|
|
541
706
|
}, {
|
|
@@ -545,12 +710,13 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
545
710
|
new_failures: string[];
|
|
546
711
|
still_failing: string[];
|
|
547
712
|
flaky: string[];
|
|
713
|
+
status_changed: string[];
|
|
548
714
|
duration_change_ms: number;
|
|
549
715
|
duration_regression: boolean;
|
|
550
716
|
}>>;
|
|
551
717
|
message: z.ZodOptional<z.ZodString>;
|
|
552
718
|
}, "strict", z.ZodTypeAny, {
|
|
553
|
-
action: "get" | "history" | "compare";
|
|
719
|
+
action: "get" | "step" | "history" | "compare";
|
|
554
720
|
message?: string | undefined;
|
|
555
721
|
execution?: {
|
|
556
722
|
outcome: "running" | "completed" | "unavailable";
|
|
@@ -559,6 +725,10 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
559
725
|
step: string;
|
|
560
726
|
test_id: string;
|
|
561
727
|
test_name: string;
|
|
728
|
+
message_truncated: boolean;
|
|
729
|
+
test_result_id: string;
|
|
730
|
+
step_result_id?: string | undefined;
|
|
731
|
+
step_id?: string | undefined;
|
|
562
732
|
}[];
|
|
563
733
|
warnings: string[];
|
|
564
734
|
run?: {
|
|
@@ -584,6 +754,14 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
584
754
|
progress_id?: string | undefined;
|
|
585
755
|
result_id?: string | undefined;
|
|
586
756
|
suite_id?: string | undefined;
|
|
757
|
+
pagination?: {
|
|
758
|
+
tests_total: number;
|
|
759
|
+
tests_offset: number;
|
|
760
|
+
failures_total: number;
|
|
761
|
+
failures_offset: number;
|
|
762
|
+
tests_next_offset?: number | undefined;
|
|
763
|
+
failures_next_offset?: number | undefined;
|
|
764
|
+
} | undefined;
|
|
587
765
|
comparison?: {
|
|
588
766
|
fixed: string[];
|
|
589
767
|
previous_run: string;
|
|
@@ -591,6 +769,7 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
591
769
|
new_failures: string[];
|
|
592
770
|
still_failing: string[];
|
|
593
771
|
flaky: string[];
|
|
772
|
+
status_changed: string[];
|
|
594
773
|
duration_change_ms: number;
|
|
595
774
|
duration_regression: boolean;
|
|
596
775
|
} | undefined;
|
|
@@ -621,11 +800,24 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
621
800
|
new_failures: string[];
|
|
622
801
|
still_failing: string[];
|
|
623
802
|
flaky: string[];
|
|
803
|
+
status_changed: string[];
|
|
624
804
|
duration_change_ms: number;
|
|
625
805
|
duration_regression: boolean;
|
|
626
806
|
} | undefined;
|
|
807
|
+
step_detail?: {
|
|
808
|
+
status: string;
|
|
809
|
+
text: string;
|
|
810
|
+
field: "output" | "summary";
|
|
811
|
+
step: string;
|
|
812
|
+
offset: number;
|
|
813
|
+
test_result_id: string;
|
|
814
|
+
step_result_id: string;
|
|
815
|
+
total_characters: number;
|
|
816
|
+
step_id?: string | undefined;
|
|
817
|
+
next_offset?: number | undefined;
|
|
818
|
+
} | undefined;
|
|
627
819
|
}, {
|
|
628
|
-
action: "get" | "history" | "compare";
|
|
820
|
+
action: "get" | "step" | "history" | "compare";
|
|
629
821
|
message?: string | undefined;
|
|
630
822
|
execution?: {
|
|
631
823
|
outcome: "running" | "completed" | "unavailable";
|
|
@@ -634,6 +826,10 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
634
826
|
step: string;
|
|
635
827
|
test_id: string;
|
|
636
828
|
test_name: string;
|
|
829
|
+
message_truncated: boolean;
|
|
830
|
+
test_result_id: string;
|
|
831
|
+
step_result_id?: string | undefined;
|
|
832
|
+
step_id?: string | undefined;
|
|
637
833
|
}[];
|
|
638
834
|
warnings: string[];
|
|
639
835
|
run?: {
|
|
@@ -659,6 +855,14 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
659
855
|
progress_id?: string | undefined;
|
|
660
856
|
result_id?: string | undefined;
|
|
661
857
|
suite_id?: string | undefined;
|
|
858
|
+
pagination?: {
|
|
859
|
+
tests_total: number;
|
|
860
|
+
tests_offset: number;
|
|
861
|
+
failures_total: number;
|
|
862
|
+
failures_offset: number;
|
|
863
|
+
tests_next_offset?: number | undefined;
|
|
864
|
+
failures_next_offset?: number | undefined;
|
|
865
|
+
} | undefined;
|
|
662
866
|
comparison?: {
|
|
663
867
|
fixed: string[];
|
|
664
868
|
previous_run: string;
|
|
@@ -666,6 +870,7 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
666
870
|
new_failures: string[];
|
|
667
871
|
still_failing: string[];
|
|
668
872
|
flaky: string[];
|
|
873
|
+
status_changed: string[];
|
|
669
874
|
duration_change_ms: number;
|
|
670
875
|
duration_regression: boolean;
|
|
671
876
|
} | undefined;
|
|
@@ -696,9 +901,22 @@ export declare const atfResultsSchema: z.ZodObject<{
|
|
|
696
901
|
new_failures: string[];
|
|
697
902
|
still_failing: string[];
|
|
698
903
|
flaky: string[];
|
|
904
|
+
status_changed: string[];
|
|
699
905
|
duration_change_ms: number;
|
|
700
906
|
duration_regression: boolean;
|
|
701
907
|
} | undefined;
|
|
908
|
+
step_detail?: {
|
|
909
|
+
status: string;
|
|
910
|
+
text: string;
|
|
911
|
+
field: "output" | "summary";
|
|
912
|
+
step: string;
|
|
913
|
+
offset: number;
|
|
914
|
+
test_result_id: string;
|
|
915
|
+
step_result_id: string;
|
|
916
|
+
total_characters: number;
|
|
917
|
+
step_id?: string | undefined;
|
|
918
|
+
next_offset?: number | undefined;
|
|
919
|
+
} | undefined;
|
|
702
920
|
}>;
|
|
703
921
|
export declare const atfReadinessSchema: z.ZodObject<{
|
|
704
922
|
verdict: z.ZodEnum<["ready", "blocked", "unverified"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atf-contracts.d.ts","sourceRoot":"","sources":["../../src/tools/atf-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"atf-contracts.d.ts","sourceRoot":"","sources":["../../src/tools/atf-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAC;AACZ,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAC;AACZ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlB,CAAC;AACZ,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpB,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -7,18 +7,21 @@ const atf_result_cache_js_1 = require("../atf-result-cache.js");
|
|
|
7
7
|
const name = zod_1.z.string().max(100);
|
|
8
8
|
exports.atfComparisonSchema = zod_1.z.object({
|
|
9
9
|
previous_run: servicenow_identifiers_js_1.serviceNowSysIdSchema, current_run: servicenow_identifiers_js_1.serviceNowSysIdSchema,
|
|
10
|
-
new_failures: zod_1.z.array(servicenow_identifiers_js_1.serviceNowSysIdSchema), fixed: zod_1.z.array(servicenow_identifiers_js_1.serviceNowSysIdSchema), still_failing: zod_1.z.array(servicenow_identifiers_js_1.serviceNowSysIdSchema), flaky: zod_1.z.array(servicenow_identifiers_js_1.serviceNowSysIdSchema),
|
|
10
|
+
new_failures: zod_1.z.array(servicenow_identifiers_js_1.serviceNowSysIdSchema), fixed: zod_1.z.array(servicenow_identifiers_js_1.serviceNowSysIdSchema), still_failing: zod_1.z.array(servicenow_identifiers_js_1.serviceNowSysIdSchema), flaky: zod_1.z.array(servicenow_identifiers_js_1.serviceNowSysIdSchema).describe("Deprecated; empty because status history alone cannot establish flakiness"),
|
|
11
|
+
status_changed: zod_1.z.array(servicenow_identifiers_js_1.serviceNowSysIdSchema),
|
|
11
12
|
duration_change_ms: zod_1.z.number(), duration_regression: zod_1.z.boolean(),
|
|
12
13
|
}).strict();
|
|
13
14
|
exports.atfExecutionResultSchema = zod_1.z.object({
|
|
14
15
|
outcome: zod_1.z.enum(["running", "completed", "unavailable"]),
|
|
15
16
|
progress_id: servicenow_identifiers_js_1.serviceNowSysIdSchema.optional(), result_id: servicenow_identifiers_js_1.serviceNowSysIdSchema.optional(), suite_id: servicenow_identifiers_js_1.serviceNowSysIdSchema.optional(), suite_name: name.optional(),
|
|
16
17
|
run: atf_result_cache_js_1.atfRunSummarySchema.optional(),
|
|
17
|
-
failures: zod_1.z.array(zod_1.z.object({ test_id: servicenow_identifiers_js_1.serviceNowSysIdSchema, test_name: name, step: zod_1.z.string().max(1000), message: zod_1.z.string().max(
|
|
18
|
+
failures: zod_1.z.array(zod_1.z.object({ test_id: servicenow_identifiers_js_1.serviceNowSysIdSchema, test_name: name, step: zod_1.z.string().max(1000), message: zod_1.z.string().max(1000), message_truncated: zod_1.z.boolean(), test_result_id: servicenow_identifiers_js_1.serviceNowSysIdSchema, step_result_id: servicenow_identifiers_js_1.serviceNowSysIdSchema.optional(), step_id: servicenow_identifiers_js_1.serviceNowSysIdSchema.optional() }).strict()),
|
|
19
|
+
pagination: zod_1.z.object({ tests_total: zod_1.z.number().int(), tests_offset: zod_1.z.number().int(), tests_next_offset: zod_1.z.number().int().optional(), failures_total: zod_1.z.number().int(), failures_offset: zod_1.z.number().int(), failures_next_offset: zod_1.z.number().int().optional() }).strict().optional(),
|
|
18
20
|
comparison: exports.atfComparisonSchema.optional(), warnings: zod_1.z.array(zod_1.z.string().max(1000)),
|
|
19
21
|
}).strict();
|
|
20
22
|
exports.atfResultsSchema = zod_1.z.object({
|
|
21
|
-
action: zod_1.z.enum(["get", "history", "compare"]),
|
|
23
|
+
action: zod_1.z.enum(["get", "step", "history", "compare"]),
|
|
24
|
+
step_detail: zod_1.z.object({ step_result_id: servicenow_identifiers_js_1.serviceNowSysIdSchema, test_result_id: servicenow_identifiers_js_1.serviceNowSysIdSchema, step_id: servicenow_identifiers_js_1.serviceNowSysIdSchema.optional(), step: zod_1.z.string().max(1000), status: zod_1.z.string().max(100), field: zod_1.z.enum(["summary", "output"]), text: zod_1.z.string().max(8000), offset: zod_1.z.number().int(), total_characters: zod_1.z.number().int(), next_offset: zod_1.z.number().int().optional() }).strict().optional(),
|
|
22
25
|
execution: exports.atfExecutionResultSchema.optional(),
|
|
23
26
|
runs: zod_1.z.array(atf_result_cache_js_1.atfRunSummarySchema).optional(), comparison: exports.atfComparisonSchema.optional(),
|
|
24
27
|
message: zod_1.z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atf-contracts.js","sourceRoot":"","sources":["../../src/tools/atf-contracts.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4EAA2E;AAC3E,gEAA6D;AAC7D,MAAM,IAAI,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACpB,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,YAAY,EAAE,iDAAE,EAAE,WAAW,EAAE,iDAAE;IACjC,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,iDAAE,CAAC,EAAE,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,iDAAE,CAAC,EAAE,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,iDAAE,CAAC,EAAE,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,iDAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"atf-contracts.js","sourceRoot":"","sources":["../../src/tools/atf-contracts.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4EAA2E;AAC3E,gEAA6D;AAC7D,MAAM,IAAI,GAAG,OAAC,CAAC,MAAM,EAAE,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","sourceRoot":"","sources":["../../src/tools/atf-renderers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"atf-renderers.d.ts","sourceRoot":"","sources":["../../src/tools/atf-renderers.ts"],"names":[],"mappings":"AAwBA,wBAAgB,oBAAoB,IAAI,IAAI,CA8B3C"}
|
|
@@ -6,7 +6,11 @@ const markdown_js_1 = require("./markdown.js");
|
|
|
6
6
|
let registered = false;
|
|
7
7
|
function execution(data, origin = "") {
|
|
8
8
|
const run = data.run;
|
|
9
|
-
return (0, markdown_js_1.renderMarkdown)((0, markdown_js_1.headline)(`Suite ${data.suite_name ?? data.suite_id ?? ""}: ${run?.status ?? data.outcome}`, { status: run?.status === "success" ? "pass" : data.outcome !== "completed" || run?.status === "success_with_warnings" ? "warn" : "fail" }), run ? (0, markdown_js_1.text)(`${run.counts.passed} passed, ${run.counts.failed} failed, ${run.counts.errors} errors, ${run.counts.skipped} skipped in ${(0, markdown_js_1.formatDuration)(run.durationMs)}`) : null, data.result_id ? (0, markdown_js_1.recordLink)(origin, "sys_atf_test_suite_result", data.result_id, "Open suite result") : null, data.progress_id ? (0, markdown_js_1.text)(`Progress ID: ${data.progress_id}`) : null, data.failures.
|
|
9
|
+
return (0, markdown_js_1.renderMarkdown)((0, markdown_js_1.headline)(`Suite ${data.suite_name ?? data.suite_id ?? ""}: ${run?.status ?? data.outcome}`, { status: run?.status === "success" ? "pass" : data.outcome !== "completed" || run?.status === "success_with_warnings" ? "warn" : "fail" }), run ? (0, markdown_js_1.text)(`${run.counts.passed} passed, ${run.counts.failed} failed, ${run.counts.errors} errors, ${run.counts.skipped} skipped in ${(0, markdown_js_1.formatDuration)(run.durationMs)}`) : null, data.result_id ? (0, markdown_js_1.recordLink)(origin, "sys_atf_test_suite_result", data.result_id, "Open suite result") : null, data.progress_id ? (0, markdown_js_1.text)(`Progress ID: ${data.progress_id}`) : null, ...data.failures.flatMap(row => [
|
|
10
|
+
(0, markdown_js_1.text)(`${row.test_name} — ${row.step}`, 1200),
|
|
11
|
+
(0, markdown_js_1.untrustedBlock)("Failure excerpt", row.message),
|
|
12
|
+
row.step_result_id ? (0, markdown_js_1.text)(`Full details: sn_atf_results action=step step_result_id=${row.step_result_id} (output_field=summary or output)`, 300) : null,
|
|
13
|
+
]), data.pagination ? (0, markdown_js_1.text)(`Test summaries: ${run?.tests.length ?? 0} of ${data.pagination.tests_total}; offset ${data.pagination.tests_offset}.`) : null, data.comparison ? (0, markdown_js_1.text)(`${data.comparison.new_failures.length} new failures; ${data.comparison.fixed.length} fixed; ${data.comparison.still_failing.length} still failing`) : null, ...data.warnings.map(warning => (0, markdown_js_1.text)(warning)));
|
|
10
14
|
}
|
|
11
15
|
function registerAtfRenderers() {
|
|
12
16
|
if (registered)
|
|
@@ -19,6 +23,8 @@ function registerAtfRenderers() {
|
|
|
19
23
|
(0, result_envelope_js_1.registerEnvelopeTextRenderer)("sn_atf_run", (envelope, context) => execution(envelope.data, context.instanceOrigin));
|
|
20
24
|
(0, result_envelope_js_1.registerEnvelopeTextRenderer)("sn_atf_results", (envelope, context) => {
|
|
21
25
|
const data = envelope.data;
|
|
26
|
+
if (data.step_detail)
|
|
27
|
+
return (0, markdown_js_1.renderMarkdown)((0, markdown_js_1.headline)("ATF step details"), (0, markdown_js_1.text)(data.step_detail.step, 1000), (0, markdown_js_1.text)(`Characters ${data.step_detail.offset}–${data.step_detail.offset + data.step_detail.text.length} of ${data.step_detail.total_characters}${data.step_detail.next_offset === undefined ? "" : `; next output_offset=${data.step_detail.next_offset}`}`), ...Array.from({ length: Math.ceil(data.step_detail.text.length / 1800) }, (_, index) => (0, markdown_js_1.untrustedBlock)("Step output", data.step_detail.text.slice(index * 1800, (index + 1) * 1800))));
|
|
22
28
|
if (data.execution)
|
|
23
29
|
return execution(data.execution, context.instanceOrigin);
|
|
24
30
|
if (data.runs)
|
|
@@ -28,7 +34,7 @@ function registerAtfRenderers() {
|
|
|
28
34
|
["New failures", comparison.new_failures.join(", ") || "None"],
|
|
29
35
|
["Fixed", comparison.fixed.join(", ") || "None"],
|
|
30
36
|
["Still failing", comparison.still_failing.join(", ") || "None"],
|
|
31
|
-
["
|
|
37
|
+
["Status changed (not evidence of flakiness)", comparison.status_changed.join(", ") || "None"],
|
|
32
38
|
]) : null, comparison ? (0, markdown_js_1.text)(`Duration change: ${comparison.duration_change_ms} ms${comparison.duration_regression ? " (regression)" : ""}`) : null);
|
|
33
39
|
});
|
|
34
40
|
(0, result_envelope_js_1.registerEnvelopeTextRenderer)("sn_atf_readiness", envelope => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atf-renderers.js","sourceRoot":"","sources":["../../src/tools/atf-renderers.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"atf-renderers.js","sourceRoot":"","sources":["../../src/tools/atf-renderers.ts"],"names":[],"mappings":";;AAwBA,oDA8BC;AAtDD,6DAAoE;AACpE,+CAAkH;AAKlH,IAAI,UAAU,GAAG,KAAK,CAAC;AACvB,SAAS,SAAS,CAAC,IAAwB,EAAE,MAAM,GAAG,EAAE;IACtD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;IACrB,OAAO,IAAA,4BAAc,EACnB,IAAA,sBAAQ,EAAC,SAAS,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,IAAI,EAAE,KAAK,GAAG,EAAE,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,KAAK,WAAW,IAAI,GAAG,EAAE,MAAM,KAAK,uBAAuB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EACvO,GAAG,CAAC,CAAC,CAAC,IAAA,kBAAI,EAAC,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAM,CAAC,MAAM,YAAY,GA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AAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAChL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atf-results-module.d.ts","sourceRoot":"","sources":["../../src/tools/atf-results-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"atf-results-module.d.ts","sourceRoot":"","sources":["../../src/tools/atf-results-module.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,oBAAoB,yDA+C/B,CAAC"}
|