@onlyflows/servicenow-mcp 2.2.0-dev.3 → 2.2.0-dev.5
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/setup.js +1 -1
- package/dist/setup.js.map +1 -1
- package/dist/tools/atf-author-module.d.ts +6 -71
- package/dist/tools/atf-author-module.d.ts.map +1 -1
- package/dist/tools/atf-author-module.js +18 -5
- package/dist/tools/atf-author-module.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-readiness-module.d.ts.map +1 -1
- package/dist/tools/atf-readiness-module.js +14 -3
- package/dist/tools/atf-readiness-module.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/atf.d.ts.map +1 -1
- package/dist/tools/atf.js +3 -0
- package/dist/tools/atf.js.map +1 -1
- package/dist/tools/result-envelope.d.ts +220 -5
- package/dist/tools/result-envelope.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/ATF-WORKFLOW.md +42 -4
- package/package.json +1 -1
|
@@ -141,7 +141,6 @@ export declare const resultMetadataSchema: z.ZodObject<{
|
|
|
141
141
|
max_records: number;
|
|
142
142
|
max_bytes: number;
|
|
143
143
|
};
|
|
144
|
-
record_count: number;
|
|
145
144
|
pagination: {
|
|
146
145
|
limit: number;
|
|
147
146
|
order_by: string[];
|
|
@@ -154,6 +153,7 @@ export declare const resultMetadataSchema: z.ZodObject<{
|
|
|
154
153
|
} | {
|
|
155
154
|
mode: "none";
|
|
156
155
|
};
|
|
156
|
+
record_count: number;
|
|
157
157
|
truncation: {
|
|
158
158
|
truncated: boolean;
|
|
159
159
|
reason?: "record_limit" | "byte_limit" | undefined;
|
|
@@ -165,7 +165,6 @@ export declare const resultMetadataSchema: z.ZodObject<{
|
|
|
165
165
|
max_records: number;
|
|
166
166
|
max_bytes: number;
|
|
167
167
|
};
|
|
168
|
-
record_count: number;
|
|
169
168
|
pagination: {
|
|
170
169
|
limit: number;
|
|
171
170
|
order_by: string[];
|
|
@@ -178,6 +177,7 @@ export declare const resultMetadataSchema: z.ZodObject<{
|
|
|
178
177
|
} | {
|
|
179
178
|
mode: "none";
|
|
180
179
|
};
|
|
180
|
+
record_count: number;
|
|
181
181
|
truncation: {
|
|
182
182
|
truncated: boolean;
|
|
183
183
|
reason?: "record_limit" | "byte_limit" | undefined;
|
|
@@ -518,17 +518,51 @@ declare const productionDataSchemas: Readonly<{
|
|
|
518
518
|
test_name: z.ZodString;
|
|
519
519
|
step: z.ZodString;
|
|
520
520
|
message: z.ZodString;
|
|
521
|
+
message_truncated: z.ZodBoolean;
|
|
522
|
+
test_result_id: z.ZodString;
|
|
523
|
+
step_result_id: z.ZodOptional<z.ZodString>;
|
|
524
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
521
525
|
}, "strict", z.ZodTypeAny, {
|
|
522
526
|
message: string;
|
|
523
527
|
step: string;
|
|
524
528
|
test_id: string;
|
|
525
529
|
test_name: string;
|
|
530
|
+
message_truncated: boolean;
|
|
531
|
+
test_result_id: string;
|
|
532
|
+
step_result_id?: string | undefined;
|
|
533
|
+
step_id?: string | undefined;
|
|
526
534
|
}, {
|
|
527
535
|
message: string;
|
|
528
536
|
step: string;
|
|
529
537
|
test_id: string;
|
|
530
538
|
test_name: string;
|
|
539
|
+
message_truncated: boolean;
|
|
540
|
+
test_result_id: string;
|
|
541
|
+
step_result_id?: string | undefined;
|
|
542
|
+
step_id?: string | undefined;
|
|
531
543
|
}>, "many">;
|
|
544
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
545
|
+
tests_total: z.ZodNumber;
|
|
546
|
+
tests_offset: z.ZodNumber;
|
|
547
|
+
tests_next_offset: z.ZodOptional<z.ZodNumber>;
|
|
548
|
+
failures_total: z.ZodNumber;
|
|
549
|
+
failures_offset: z.ZodNumber;
|
|
550
|
+
failures_next_offset: z.ZodOptional<z.ZodNumber>;
|
|
551
|
+
}, "strict", z.ZodTypeAny, {
|
|
552
|
+
tests_total: number;
|
|
553
|
+
tests_offset: number;
|
|
554
|
+
failures_total: number;
|
|
555
|
+
failures_offset: number;
|
|
556
|
+
tests_next_offset?: number | undefined;
|
|
557
|
+
failures_next_offset?: number | undefined;
|
|
558
|
+
}, {
|
|
559
|
+
tests_total: number;
|
|
560
|
+
tests_offset: number;
|
|
561
|
+
failures_total: number;
|
|
562
|
+
failures_offset: number;
|
|
563
|
+
tests_next_offset?: number | undefined;
|
|
564
|
+
failures_next_offset?: number | undefined;
|
|
565
|
+
}>>;
|
|
532
566
|
comparison: z.ZodOptional<z.ZodObject<{
|
|
533
567
|
previous_run: z.ZodString;
|
|
534
568
|
current_run: z.ZodString;
|
|
@@ -536,6 +570,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
536
570
|
fixed: z.ZodArray<z.ZodString, "many">;
|
|
537
571
|
still_failing: z.ZodArray<z.ZodString, "many">;
|
|
538
572
|
flaky: z.ZodArray<z.ZodString, "many">;
|
|
573
|
+
status_changed: z.ZodArray<z.ZodString, "many">;
|
|
539
574
|
duration_change_ms: z.ZodNumber;
|
|
540
575
|
duration_regression: z.ZodBoolean;
|
|
541
576
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -545,6 +580,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
545
580
|
new_failures: string[];
|
|
546
581
|
still_failing: string[];
|
|
547
582
|
flaky: string[];
|
|
583
|
+
status_changed: string[];
|
|
548
584
|
duration_change_ms: number;
|
|
549
585
|
duration_regression: boolean;
|
|
550
586
|
}, {
|
|
@@ -554,6 +590,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
554
590
|
new_failures: string[];
|
|
555
591
|
still_failing: string[];
|
|
556
592
|
flaky: string[];
|
|
593
|
+
status_changed: string[];
|
|
557
594
|
duration_change_ms: number;
|
|
558
595
|
duration_regression: boolean;
|
|
559
596
|
}>>;
|
|
@@ -565,6 +602,10 @@ declare const productionDataSchemas: Readonly<{
|
|
|
565
602
|
step: string;
|
|
566
603
|
test_id: string;
|
|
567
604
|
test_name: string;
|
|
605
|
+
message_truncated: boolean;
|
|
606
|
+
test_result_id: string;
|
|
607
|
+
step_result_id?: string | undefined;
|
|
608
|
+
step_id?: string | undefined;
|
|
568
609
|
}[];
|
|
569
610
|
warnings: string[];
|
|
570
611
|
run?: {
|
|
@@ -590,6 +631,14 @@ declare const productionDataSchemas: Readonly<{
|
|
|
590
631
|
progress_id?: string | undefined;
|
|
591
632
|
result_id?: string | undefined;
|
|
592
633
|
suite_id?: string | undefined;
|
|
634
|
+
pagination?: {
|
|
635
|
+
tests_total: number;
|
|
636
|
+
tests_offset: number;
|
|
637
|
+
failures_total: number;
|
|
638
|
+
failures_offset: number;
|
|
639
|
+
tests_next_offset?: number | undefined;
|
|
640
|
+
failures_next_offset?: number | undefined;
|
|
641
|
+
} | undefined;
|
|
593
642
|
comparison?: {
|
|
594
643
|
fixed: string[];
|
|
595
644
|
previous_run: string;
|
|
@@ -597,6 +646,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
597
646
|
new_failures: string[];
|
|
598
647
|
still_failing: string[];
|
|
599
648
|
flaky: string[];
|
|
649
|
+
status_changed: string[];
|
|
600
650
|
duration_change_ms: number;
|
|
601
651
|
duration_regression: boolean;
|
|
602
652
|
} | undefined;
|
|
@@ -607,6 +657,10 @@ declare const productionDataSchemas: Readonly<{
|
|
|
607
657
|
step: string;
|
|
608
658
|
test_id: string;
|
|
609
659
|
test_name: string;
|
|
660
|
+
message_truncated: boolean;
|
|
661
|
+
test_result_id: string;
|
|
662
|
+
step_result_id?: string | undefined;
|
|
663
|
+
step_id?: string | undefined;
|
|
610
664
|
}[];
|
|
611
665
|
warnings: string[];
|
|
612
666
|
run?: {
|
|
@@ -632,6 +686,14 @@ declare const productionDataSchemas: Readonly<{
|
|
|
632
686
|
progress_id?: string | undefined;
|
|
633
687
|
result_id?: string | undefined;
|
|
634
688
|
suite_id?: string | undefined;
|
|
689
|
+
pagination?: {
|
|
690
|
+
tests_total: number;
|
|
691
|
+
tests_offset: number;
|
|
692
|
+
failures_total: number;
|
|
693
|
+
failures_offset: number;
|
|
694
|
+
tests_next_offset?: number | undefined;
|
|
695
|
+
failures_next_offset?: number | undefined;
|
|
696
|
+
} | undefined;
|
|
635
697
|
comparison?: {
|
|
636
698
|
fixed: string[];
|
|
637
699
|
previous_run: string;
|
|
@@ -639,12 +701,47 @@ declare const productionDataSchemas: Readonly<{
|
|
|
639
701
|
new_failures: string[];
|
|
640
702
|
still_failing: string[];
|
|
641
703
|
flaky: string[];
|
|
704
|
+
status_changed: string[];
|
|
642
705
|
duration_change_ms: number;
|
|
643
706
|
duration_regression: boolean;
|
|
644
707
|
} | undefined;
|
|
645
708
|
}>;
|
|
646
709
|
sn_atf_results: z.ZodObject<{
|
|
647
|
-
action: z.ZodEnum<["get", "history", "compare"]>;
|
|
710
|
+
action: z.ZodEnum<["get", "step", "history", "compare"]>;
|
|
711
|
+
step_detail: z.ZodOptional<z.ZodObject<{
|
|
712
|
+
step_result_id: z.ZodString;
|
|
713
|
+
test_result_id: z.ZodString;
|
|
714
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
715
|
+
step: z.ZodString;
|
|
716
|
+
status: z.ZodString;
|
|
717
|
+
field: z.ZodEnum<["summary", "output"]>;
|
|
718
|
+
text: z.ZodString;
|
|
719
|
+
offset: z.ZodNumber;
|
|
720
|
+
total_characters: z.ZodNumber;
|
|
721
|
+
next_offset: z.ZodOptional<z.ZodNumber>;
|
|
722
|
+
}, "strict", z.ZodTypeAny, {
|
|
723
|
+
status: string;
|
|
724
|
+
text: string;
|
|
725
|
+
field: "output" | "summary";
|
|
726
|
+
step: string;
|
|
727
|
+
offset: number;
|
|
728
|
+
test_result_id: string;
|
|
729
|
+
step_result_id: string;
|
|
730
|
+
total_characters: number;
|
|
731
|
+
step_id?: string | undefined;
|
|
732
|
+
next_offset?: number | undefined;
|
|
733
|
+
}, {
|
|
734
|
+
status: string;
|
|
735
|
+
text: string;
|
|
736
|
+
field: "output" | "summary";
|
|
737
|
+
step: string;
|
|
738
|
+
offset: number;
|
|
739
|
+
test_result_id: string;
|
|
740
|
+
step_result_id: string;
|
|
741
|
+
total_characters: number;
|
|
742
|
+
step_id?: string | undefined;
|
|
743
|
+
next_offset?: number | undefined;
|
|
744
|
+
}>>;
|
|
648
745
|
execution: z.ZodOptional<z.ZodObject<{
|
|
649
746
|
outcome: z.ZodEnum<["running", "completed", "unavailable"]>;
|
|
650
747
|
progress_id: z.ZodOptional<z.ZodString>;
|
|
@@ -729,17 +826,51 @@ declare const productionDataSchemas: Readonly<{
|
|
|
729
826
|
test_name: z.ZodString;
|
|
730
827
|
step: z.ZodString;
|
|
731
828
|
message: z.ZodString;
|
|
829
|
+
message_truncated: z.ZodBoolean;
|
|
830
|
+
test_result_id: z.ZodString;
|
|
831
|
+
step_result_id: z.ZodOptional<z.ZodString>;
|
|
832
|
+
step_id: z.ZodOptional<z.ZodString>;
|
|
732
833
|
}, "strict", z.ZodTypeAny, {
|
|
733
834
|
message: string;
|
|
734
835
|
step: string;
|
|
735
836
|
test_id: string;
|
|
736
837
|
test_name: string;
|
|
838
|
+
message_truncated: boolean;
|
|
839
|
+
test_result_id: string;
|
|
840
|
+
step_result_id?: string | undefined;
|
|
841
|
+
step_id?: string | undefined;
|
|
737
842
|
}, {
|
|
738
843
|
message: string;
|
|
739
844
|
step: string;
|
|
740
845
|
test_id: string;
|
|
741
846
|
test_name: string;
|
|
847
|
+
message_truncated: boolean;
|
|
848
|
+
test_result_id: string;
|
|
849
|
+
step_result_id?: string | undefined;
|
|
850
|
+
step_id?: string | undefined;
|
|
742
851
|
}>, "many">;
|
|
852
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
853
|
+
tests_total: z.ZodNumber;
|
|
854
|
+
tests_offset: z.ZodNumber;
|
|
855
|
+
tests_next_offset: z.ZodOptional<z.ZodNumber>;
|
|
856
|
+
failures_total: z.ZodNumber;
|
|
857
|
+
failures_offset: z.ZodNumber;
|
|
858
|
+
failures_next_offset: z.ZodOptional<z.ZodNumber>;
|
|
859
|
+
}, "strict", z.ZodTypeAny, {
|
|
860
|
+
tests_total: number;
|
|
861
|
+
tests_offset: number;
|
|
862
|
+
failures_total: number;
|
|
863
|
+
failures_offset: number;
|
|
864
|
+
tests_next_offset?: number | undefined;
|
|
865
|
+
failures_next_offset?: number | undefined;
|
|
866
|
+
}, {
|
|
867
|
+
tests_total: number;
|
|
868
|
+
tests_offset: number;
|
|
869
|
+
failures_total: number;
|
|
870
|
+
failures_offset: number;
|
|
871
|
+
tests_next_offset?: number | undefined;
|
|
872
|
+
failures_next_offset?: number | undefined;
|
|
873
|
+
}>>;
|
|
743
874
|
comparison: z.ZodOptional<z.ZodObject<{
|
|
744
875
|
previous_run: z.ZodString;
|
|
745
876
|
current_run: z.ZodString;
|
|
@@ -747,6 +878,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
747
878
|
fixed: z.ZodArray<z.ZodString, "many">;
|
|
748
879
|
still_failing: z.ZodArray<z.ZodString, "many">;
|
|
749
880
|
flaky: z.ZodArray<z.ZodString, "many">;
|
|
881
|
+
status_changed: z.ZodArray<z.ZodString, "many">;
|
|
750
882
|
duration_change_ms: z.ZodNumber;
|
|
751
883
|
duration_regression: z.ZodBoolean;
|
|
752
884
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -756,6 +888,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
756
888
|
new_failures: string[];
|
|
757
889
|
still_failing: string[];
|
|
758
890
|
flaky: string[];
|
|
891
|
+
status_changed: string[];
|
|
759
892
|
duration_change_ms: number;
|
|
760
893
|
duration_regression: boolean;
|
|
761
894
|
}, {
|
|
@@ -765,6 +898,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
765
898
|
new_failures: string[];
|
|
766
899
|
still_failing: string[];
|
|
767
900
|
flaky: string[];
|
|
901
|
+
status_changed: string[];
|
|
768
902
|
duration_change_ms: number;
|
|
769
903
|
duration_regression: boolean;
|
|
770
904
|
}>>;
|
|
@@ -776,6 +910,10 @@ declare const productionDataSchemas: Readonly<{
|
|
|
776
910
|
step: string;
|
|
777
911
|
test_id: string;
|
|
778
912
|
test_name: string;
|
|
913
|
+
message_truncated: boolean;
|
|
914
|
+
test_result_id: string;
|
|
915
|
+
step_result_id?: string | undefined;
|
|
916
|
+
step_id?: string | undefined;
|
|
779
917
|
}[];
|
|
780
918
|
warnings: string[];
|
|
781
919
|
run?: {
|
|
@@ -801,6 +939,14 @@ declare const productionDataSchemas: Readonly<{
|
|
|
801
939
|
progress_id?: string | undefined;
|
|
802
940
|
result_id?: string | undefined;
|
|
803
941
|
suite_id?: string | undefined;
|
|
942
|
+
pagination?: {
|
|
943
|
+
tests_total: number;
|
|
944
|
+
tests_offset: number;
|
|
945
|
+
failures_total: number;
|
|
946
|
+
failures_offset: number;
|
|
947
|
+
tests_next_offset?: number | undefined;
|
|
948
|
+
failures_next_offset?: number | undefined;
|
|
949
|
+
} | undefined;
|
|
804
950
|
comparison?: {
|
|
805
951
|
fixed: string[];
|
|
806
952
|
previous_run: string;
|
|
@@ -808,6 +954,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
808
954
|
new_failures: string[];
|
|
809
955
|
still_failing: string[];
|
|
810
956
|
flaky: string[];
|
|
957
|
+
status_changed: string[];
|
|
811
958
|
duration_change_ms: number;
|
|
812
959
|
duration_regression: boolean;
|
|
813
960
|
} | undefined;
|
|
@@ -818,6 +965,10 @@ declare const productionDataSchemas: Readonly<{
|
|
|
818
965
|
step: string;
|
|
819
966
|
test_id: string;
|
|
820
967
|
test_name: string;
|
|
968
|
+
message_truncated: boolean;
|
|
969
|
+
test_result_id: string;
|
|
970
|
+
step_result_id?: string | undefined;
|
|
971
|
+
step_id?: string | undefined;
|
|
821
972
|
}[];
|
|
822
973
|
warnings: string[];
|
|
823
974
|
run?: {
|
|
@@ -843,6 +994,14 @@ declare const productionDataSchemas: Readonly<{
|
|
|
843
994
|
progress_id?: string | undefined;
|
|
844
995
|
result_id?: string | undefined;
|
|
845
996
|
suite_id?: string | undefined;
|
|
997
|
+
pagination?: {
|
|
998
|
+
tests_total: number;
|
|
999
|
+
tests_offset: number;
|
|
1000
|
+
failures_total: number;
|
|
1001
|
+
failures_offset: number;
|
|
1002
|
+
tests_next_offset?: number | undefined;
|
|
1003
|
+
failures_next_offset?: number | undefined;
|
|
1004
|
+
} | undefined;
|
|
846
1005
|
comparison?: {
|
|
847
1006
|
fixed: string[];
|
|
848
1007
|
previous_run: string;
|
|
@@ -850,6 +1009,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
850
1009
|
new_failures: string[];
|
|
851
1010
|
still_failing: string[];
|
|
852
1011
|
flaky: string[];
|
|
1012
|
+
status_changed: string[];
|
|
853
1013
|
duration_change_ms: number;
|
|
854
1014
|
duration_regression: boolean;
|
|
855
1015
|
} | undefined;
|
|
@@ -934,6 +1094,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
934
1094
|
fixed: z.ZodArray<z.ZodString, "many">;
|
|
935
1095
|
still_failing: z.ZodArray<z.ZodString, "many">;
|
|
936
1096
|
flaky: z.ZodArray<z.ZodString, "many">;
|
|
1097
|
+
status_changed: z.ZodArray<z.ZodString, "many">;
|
|
937
1098
|
duration_change_ms: z.ZodNumber;
|
|
938
1099
|
duration_regression: z.ZodBoolean;
|
|
939
1100
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -943,6 +1104,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
943
1104
|
new_failures: string[];
|
|
944
1105
|
still_failing: string[];
|
|
945
1106
|
flaky: string[];
|
|
1107
|
+
status_changed: string[];
|
|
946
1108
|
duration_change_ms: number;
|
|
947
1109
|
duration_regression: boolean;
|
|
948
1110
|
}, {
|
|
@@ -952,12 +1114,13 @@ declare const productionDataSchemas: Readonly<{
|
|
|
952
1114
|
new_failures: string[];
|
|
953
1115
|
still_failing: string[];
|
|
954
1116
|
flaky: string[];
|
|
1117
|
+
status_changed: string[];
|
|
955
1118
|
duration_change_ms: number;
|
|
956
1119
|
duration_regression: boolean;
|
|
957
1120
|
}>>;
|
|
958
1121
|
message: z.ZodOptional<z.ZodString>;
|
|
959
1122
|
}, "strict", z.ZodTypeAny, {
|
|
960
|
-
action: "get" | "history" | "compare";
|
|
1123
|
+
action: "get" | "step" | "history" | "compare";
|
|
961
1124
|
message?: string | undefined;
|
|
962
1125
|
execution?: {
|
|
963
1126
|
outcome: "running" | "completed" | "unavailable";
|
|
@@ -966,6 +1129,10 @@ declare const productionDataSchemas: Readonly<{
|
|
|
966
1129
|
step: string;
|
|
967
1130
|
test_id: string;
|
|
968
1131
|
test_name: string;
|
|
1132
|
+
message_truncated: boolean;
|
|
1133
|
+
test_result_id: string;
|
|
1134
|
+
step_result_id?: string | undefined;
|
|
1135
|
+
step_id?: string | undefined;
|
|
969
1136
|
}[];
|
|
970
1137
|
warnings: string[];
|
|
971
1138
|
run?: {
|
|
@@ -991,6 +1158,14 @@ declare const productionDataSchemas: Readonly<{
|
|
|
991
1158
|
progress_id?: string | undefined;
|
|
992
1159
|
result_id?: string | undefined;
|
|
993
1160
|
suite_id?: string | undefined;
|
|
1161
|
+
pagination?: {
|
|
1162
|
+
tests_total: number;
|
|
1163
|
+
tests_offset: number;
|
|
1164
|
+
failures_total: number;
|
|
1165
|
+
failures_offset: number;
|
|
1166
|
+
tests_next_offset?: number | undefined;
|
|
1167
|
+
failures_next_offset?: number | undefined;
|
|
1168
|
+
} | undefined;
|
|
994
1169
|
comparison?: {
|
|
995
1170
|
fixed: string[];
|
|
996
1171
|
previous_run: string;
|
|
@@ -998,6 +1173,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
998
1173
|
new_failures: string[];
|
|
999
1174
|
still_failing: string[];
|
|
1000
1175
|
flaky: string[];
|
|
1176
|
+
status_changed: string[];
|
|
1001
1177
|
duration_change_ms: number;
|
|
1002
1178
|
duration_regression: boolean;
|
|
1003
1179
|
} | undefined;
|
|
@@ -1028,11 +1204,24 @@ declare const productionDataSchemas: Readonly<{
|
|
|
1028
1204
|
new_failures: string[];
|
|
1029
1205
|
still_failing: string[];
|
|
1030
1206
|
flaky: string[];
|
|
1207
|
+
status_changed: string[];
|
|
1031
1208
|
duration_change_ms: number;
|
|
1032
1209
|
duration_regression: boolean;
|
|
1033
1210
|
} | undefined;
|
|
1211
|
+
step_detail?: {
|
|
1212
|
+
status: string;
|
|
1213
|
+
text: string;
|
|
1214
|
+
field: "output" | "summary";
|
|
1215
|
+
step: string;
|
|
1216
|
+
offset: number;
|
|
1217
|
+
test_result_id: string;
|
|
1218
|
+
step_result_id: string;
|
|
1219
|
+
total_characters: number;
|
|
1220
|
+
step_id?: string | undefined;
|
|
1221
|
+
next_offset?: number | undefined;
|
|
1222
|
+
} | undefined;
|
|
1034
1223
|
}, {
|
|
1035
|
-
action: "get" | "history" | "compare";
|
|
1224
|
+
action: "get" | "step" | "history" | "compare";
|
|
1036
1225
|
message?: string | undefined;
|
|
1037
1226
|
execution?: {
|
|
1038
1227
|
outcome: "running" | "completed" | "unavailable";
|
|
@@ -1041,6 +1230,10 @@ declare const productionDataSchemas: Readonly<{
|
|
|
1041
1230
|
step: string;
|
|
1042
1231
|
test_id: string;
|
|
1043
1232
|
test_name: string;
|
|
1233
|
+
message_truncated: boolean;
|
|
1234
|
+
test_result_id: string;
|
|
1235
|
+
step_result_id?: string | undefined;
|
|
1236
|
+
step_id?: string | undefined;
|
|
1044
1237
|
}[];
|
|
1045
1238
|
warnings: string[];
|
|
1046
1239
|
run?: {
|
|
@@ -1066,6 +1259,14 @@ declare const productionDataSchemas: Readonly<{
|
|
|
1066
1259
|
progress_id?: string | undefined;
|
|
1067
1260
|
result_id?: string | undefined;
|
|
1068
1261
|
suite_id?: string | undefined;
|
|
1262
|
+
pagination?: {
|
|
1263
|
+
tests_total: number;
|
|
1264
|
+
tests_offset: number;
|
|
1265
|
+
failures_total: number;
|
|
1266
|
+
failures_offset: number;
|
|
1267
|
+
tests_next_offset?: number | undefined;
|
|
1268
|
+
failures_next_offset?: number | undefined;
|
|
1269
|
+
} | undefined;
|
|
1069
1270
|
comparison?: {
|
|
1070
1271
|
fixed: string[];
|
|
1071
1272
|
previous_run: string;
|
|
@@ -1073,6 +1274,7 @@ declare const productionDataSchemas: Readonly<{
|
|
|
1073
1274
|
new_failures: string[];
|
|
1074
1275
|
still_failing: string[];
|
|
1075
1276
|
flaky: string[];
|
|
1277
|
+
status_changed: string[];
|
|
1076
1278
|
duration_change_ms: number;
|
|
1077
1279
|
duration_regression: boolean;
|
|
1078
1280
|
} | undefined;
|
|
@@ -1103,9 +1305,22 @@ declare const productionDataSchemas: Readonly<{
|
|
|
1103
1305
|
new_failures: string[];
|
|
1104
1306
|
still_failing: string[];
|
|
1105
1307
|
flaky: string[];
|
|
1308
|
+
status_changed: string[];
|
|
1106
1309
|
duration_change_ms: number;
|
|
1107
1310
|
duration_regression: boolean;
|
|
1108
1311
|
} | undefined;
|
|
1312
|
+
step_detail?: {
|
|
1313
|
+
status: string;
|
|
1314
|
+
text: string;
|
|
1315
|
+
field: "output" | "summary";
|
|
1316
|
+
step: string;
|
|
1317
|
+
offset: number;
|
|
1318
|
+
test_result_id: string;
|
|
1319
|
+
step_result_id: string;
|
|
1320
|
+
total_characters: number;
|
|
1321
|
+
step_id?: string | undefined;
|
|
1322
|
+
next_offset?: number | undefined;
|
|
1323
|
+
} | undefined;
|
|
1109
1324
|
}>;
|
|
1110
1325
|
sn_atf_readiness: z.ZodObject<{
|
|
1111
1326
|
verdict: z.ZodEnum<["ready", "blocked", "unverified"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result-envelope.d.ts","sourceRoot":"","sources":["../../src/tools/result-envelope.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AACjD,eAAO,MAAM,yBAAyB,SAA6B,CAAC;AACpE,eAAO,MAAM,4BAA4B,QAAmB,CAAC;AAuC7D,kFAAkF;AAClF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBtB,CAAC;AAEZ,wBAAgB,4BAA4B,CAAC,OAAO,SAAS,CAAC,CAAC,UAAU,EACvE,UAAU,EAAE,OAAO;;;;;;GAUpB;AAwBD;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,UAAU,CAAC;AAsHzC,QAAA,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"result-envelope.d.ts","sourceRoot":"","sources":["../../src/tools/result-envelope.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AACjD,eAAO,MAAM,yBAAyB,SAA6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AAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;CACnE;AAED,MAAM,WAAW,yBAAyB;IACxC,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,qFAAqF;AACrF,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,CACjC,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,yBAAyB,KAC/B,MAAM,CAAC;AAOZ,kFAAkF;AAClF,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAE,oBAAoB,GAC7B,IAAI,CAcN;AA8VD,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,kBAAkB,EACxB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACvC,MAAM,EAAE,cAAc,GACrB,cAAc,CA6EhB;AAwID;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,cAAc,EACtB,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,GAAE,yBAA8B,GACtC,cAAc,GAAG,SAAS,CA+B5B"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/docs/ATF-WORKFLOW.md
CHANGED
|
@@ -36,10 +36,18 @@ Step authoring reads `sys_atf_test`, `sys_atf_step`, `sys_atf_step_config`,
|
|
|
36
36
|
requires `sys_atf_step`, `sys_variable_value`, and `sys_element_mapping`.
|
|
37
37
|
ServiceNow ACLs and CI/CD roles still apply.
|
|
38
38
|
|
|
39
|
+
When adding tests to a suite, the profile needs read access to
|
|
40
|
+
`sys_atf_test_suite` and `sys_atf_test` in addition to membership write access.
|
|
41
|
+
The suite and all requested tests are verified before any memberships are
|
|
42
|
+
created. Duplicate IDs are rejected as invalid input.
|
|
43
|
+
|
|
39
44
|
## Check and run a suite
|
|
40
45
|
|
|
41
46
|
Call `sn_atf_readiness` with `{"profile":"pdi","suite_name":"Example suite"}`.
|
|
42
47
|
The verdict is `ready`, `blocked`, or `unverified`, with actionable checks.
|
|
48
|
+
Suite inspection includes active child suites and flags missing or unreadable test
|
|
49
|
+
references and active tests with no active steps. Inactive tests are excluded
|
|
50
|
+
from execution checks, but their references must still be readable.
|
|
43
51
|
Execution is cloud-only: every submission sends `run_in_cloud=true` to ServiceNow.
|
|
44
52
|
UI tests use ServiceNow Cloud Runner; no local browser tab is opened or required.
|
|
45
53
|
Configure the ServiceNow ATF Test Generator and Cloud Runner app (`sn_atf_tg`)
|
|
@@ -73,15 +81,45 @@ For history use `action:"history"`, `suite_sys_id` (or `test_sys_id`) and
|
|
|
73
81
|
optional `limit` (default 10, maximum 100). For comparison use `action:"compare"`
|
|
74
82
|
and `suite_sys_id`; optional `result_id` and `previous_result_id` choose the two
|
|
75
83
|
runs. Otherwise the newest two cached runs are used. Comparison identifies new,
|
|
76
|
-
fixed
|
|
84
|
+
fixed and continuing failures, observed status changes, and duration regressions (default
|
|
77
85
|
threshold 20%, configurable with `regression_percent`). Comparisons only cover
|
|
78
86
|
visible cached test records. History and comparison make no ServiceNow requests.
|
|
79
87
|
|
|
80
88
|
The cache retains compact summaries, up to 1000 tests per run and 500 characters
|
|
81
|
-
of the first failure per test.
|
|
82
|
-
|
|
89
|
+
of the first failure per test. Execution returns up to 200 test summaries and
|
|
90
|
+
10 failure excerpts by default. Use `tests_offset`/`tests_limit` and
|
|
91
|
+
`failures_offset`/`failures_limit` on `sn_atf_results get` to retrieve additional
|
|
92
|
+
pages; the `pagination` object includes totals and next offsets. History shows
|
|
93
|
+
run summaries. Private cache storage,
|
|
83
94
|
retention and memory fallback are described in [profile configuration](PROFILE-CREDENTIALS.md#atf-authoring-and-result-cache).
|
|
84
|
-
Failure text is untrusted instance content.
|
|
95
|
+
Failure text is untrusted instance content. Each failure includes its test-result
|
|
96
|
+
ID and, when available, step-result ID and step ID. Excerpts retain the beginning
|
|
97
|
+
and end of long logs and explicitly indicate truncation. Retrieve complete text:
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{"profile":"pdi","action":"step","step_result_id":"<32-hex step-result ID>","output_field":"summary","output_offset":0,"output_limit":4000}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Repeat with `output_offset` set to `step_detail.next_offset` until absent. Use
|
|
104
|
+
`output_field:"output"` to inspect the other native step-output field. The chunk
|
|
105
|
+
limit is 8000 characters; no complete step logs are added to the result cache.
|
|
106
|
+
Step names use the result description or the referenced step's display label.
|
|
107
|
+
|
|
108
|
+
`status_changed` reports differences between the compared runs. It does not
|
|
109
|
+
claim nondeterminism: code and instance changes can explain those differences.
|
|
110
|
+
The legacy `flaky` field is deprecated and always empty.
|
|
111
|
+
|
|
112
|
+
A profile with `readTables:["*"]` and `targets:[]` already allows these reads.
|
|
113
|
+
Do not add broader grants to resolve an unexplained denial. Check the exact
|
|
114
|
+
error category, active server version/profile, field restrictions, and instance
|
|
115
|
+
ACLs. Raw encoded queries have a separate policy; prefer structured filters.
|
|
116
|
+
For a deliberately restricted profile, diagnostic reads can be granted with:
|
|
117
|
+
|
|
118
|
+
```sh
|
|
119
|
+
servicenow-mcp-setup grant --profile pdi --read sys_atf_test_suite_result,sys_atf_test_result,sys_atf_test_result_step --tools sn_atf_results,sn_get,sn_query
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
This command does not enable execution or change ServiceNow ACLs.
|
|
85
123
|
|
|
86
124
|
## Author typed steps
|
|
87
125
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlyflows/servicenow-mcp",
|
|
3
|
-
"version": "2.2.0-dev.
|
|
3
|
+
"version": "2.2.0-dev.5",
|
|
4
4
|
"description": "stdio ServiceNow MCP server with 23 tools for CRUD, CMDB traversal, ATF testing, and explicit multi-instance profiles.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|