mobbdev 1.0.15 → 1.0.17
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/index.mjs +52 -46
- package/package.json +11 -12
package/dist/index.mjs
CHANGED
|
@@ -799,6 +799,45 @@ var IssueTypeSettingsZ = z2.array(IssueTypeSettingZ).transform((issueTypeSetting
|
|
|
799
799
|
});
|
|
800
800
|
|
|
801
801
|
// src/features/analysis/scm/shared/src/types.ts
|
|
802
|
+
var ScmSubmitFixRequestsZ = z3.array(
|
|
803
|
+
z3.object({
|
|
804
|
+
scmSubmitFixRequest: z3.object({
|
|
805
|
+
submitFixRequest: z3.object({
|
|
806
|
+
createdByUser: z3.object({
|
|
807
|
+
email: z3.string()
|
|
808
|
+
}),
|
|
809
|
+
targetBranchName: z3.string().default("")
|
|
810
|
+
}),
|
|
811
|
+
prUrl: z3.string().nullable(),
|
|
812
|
+
prStatus: z3.nativeEnum(Pr_Status_Enum).nullable(),
|
|
813
|
+
commitUrl: z3.string().nullable(),
|
|
814
|
+
scmId: z3.string()
|
|
815
|
+
})
|
|
816
|
+
})
|
|
817
|
+
);
|
|
818
|
+
var FixRatingZ = z3.object({
|
|
819
|
+
voteScore: z3.number(),
|
|
820
|
+
fixRatingTag: z3.nativeEnum(Fix_Rating_Tag_Enum).nullable().default(null),
|
|
821
|
+
comment: z3.string().nullable().default(null),
|
|
822
|
+
updatedDate: z3.string().nullable(),
|
|
823
|
+
user: z3.object({
|
|
824
|
+
email: z3.string(),
|
|
825
|
+
name: z3.string()
|
|
826
|
+
})
|
|
827
|
+
});
|
|
828
|
+
var FixSharedStateZ = z3.object({
|
|
829
|
+
state: z3.nativeEnum(Fix_State_Enum),
|
|
830
|
+
isArchived: z3.boolean(),
|
|
831
|
+
scmSubmitFixRequests: ScmSubmitFixRequestsZ,
|
|
832
|
+
fixRatings: z3.array(FixRatingZ).default([])
|
|
833
|
+
}).nullish().transform(
|
|
834
|
+
(data) => data ? data : {
|
|
835
|
+
state: "Ready" /* Ready */,
|
|
836
|
+
isArchived: false,
|
|
837
|
+
scmSubmitFixRequests: [],
|
|
838
|
+
fixRatings: []
|
|
839
|
+
}
|
|
840
|
+
);
|
|
802
841
|
var OrganizationScreenQueryParamsZ = z3.object({
|
|
803
842
|
organizationId: z3.string().uuid()
|
|
804
843
|
});
|
|
@@ -816,22 +855,6 @@ var FixPageQueryParamsZ = AnalysisPageQueryParamsZ.extend({
|
|
|
816
855
|
var CliLoginPageQueryParamsZ = z3.object({
|
|
817
856
|
loginId: z3.string().uuid()
|
|
818
857
|
});
|
|
819
|
-
var ScmSubmitFixRequestsZ = z3.array(
|
|
820
|
-
z3.object({
|
|
821
|
-
scmSubmitFixRequest: z3.object({
|
|
822
|
-
submitFixRequest: z3.object({
|
|
823
|
-
createdByUser: z3.object({
|
|
824
|
-
email: z3.string()
|
|
825
|
-
}),
|
|
826
|
-
targetBranchName: z3.string().default("")
|
|
827
|
-
}),
|
|
828
|
-
prUrl: z3.string().nullable(),
|
|
829
|
-
prStatus: z3.nativeEnum(Pr_Status_Enum).nullable(),
|
|
830
|
-
commitUrl: z3.string().nullable(),
|
|
831
|
-
scmId: z3.string()
|
|
832
|
-
})
|
|
833
|
-
})
|
|
834
|
-
);
|
|
835
858
|
var AnalysisReportDigestedZ = z3.object({
|
|
836
859
|
id: z3.string().uuid(),
|
|
837
860
|
state: z3.nativeEnum(Fix_Report_State_Enum),
|
|
@@ -854,16 +877,6 @@ var AnalysisReportDigestedZ = z3.object({
|
|
|
854
877
|
})
|
|
855
878
|
})
|
|
856
879
|
});
|
|
857
|
-
var FixRatingZ = z3.object({
|
|
858
|
-
voteScore: z3.number(),
|
|
859
|
-
fixRatingTag: z3.nativeEnum(Fix_Rating_Tag_Enum).nullable().default(null),
|
|
860
|
-
comment: z3.string().nullable().default(null),
|
|
861
|
-
updatedDate: z3.string().nullable(),
|
|
862
|
-
user: z3.object({
|
|
863
|
-
email: z3.string(),
|
|
864
|
-
name: z3.string()
|
|
865
|
-
})
|
|
866
|
-
});
|
|
867
880
|
var ReportQueryResultZ = z3.object({
|
|
868
881
|
fixReport_by_pk: z3.object({
|
|
869
882
|
id: z3.string().uuid(),
|
|
@@ -901,7 +914,7 @@ var ReportQueryResultZ = z3.object({
|
|
|
901
914
|
fileRepoRelativePath: z3.string()
|
|
902
915
|
})
|
|
903
916
|
),
|
|
904
|
-
|
|
917
|
+
sharedState: FixSharedStateZ,
|
|
905
918
|
numberOfVulnerabilityIssues: z3.number(),
|
|
906
919
|
vulnerabilityReportIssues: z3.array(
|
|
907
920
|
z3.object({
|
|
@@ -909,10 +922,8 @@ var ReportQueryResultZ = z3.object({
|
|
|
909
922
|
issueLanguage: z3.string(),
|
|
910
923
|
parsedSeverity: ParsedSeverityZ
|
|
911
924
|
})
|
|
912
|
-
)
|
|
913
|
-
scmSubmitFixRequests: ScmSubmitFixRequestsZ,
|
|
914
|
-
isArchived: z3.boolean().nullable(),
|
|
915
|
-
fixRatings: z3.array(FixRatingZ).default([])
|
|
925
|
+
)
|
|
926
|
+
// scmSubmitFixRequests: ScmSubmitFixRequestsZ,
|
|
916
927
|
})
|
|
917
928
|
),
|
|
918
929
|
repo: z3.object({
|
|
@@ -979,8 +990,7 @@ var ReportQueryResultZ = z3.object({
|
|
|
979
990
|
var ReportFixesQueryZ = z3.array(
|
|
980
991
|
z3.object({
|
|
981
992
|
id: z3.string().uuid(),
|
|
982
|
-
|
|
983
|
-
isArchived: z3.boolean().nullable(),
|
|
993
|
+
sharedState: FixSharedStateZ,
|
|
984
994
|
confidence: z3.number(),
|
|
985
995
|
gitBlameLogin: z3.string().nullable(),
|
|
986
996
|
effortToApplyFix: z3.nativeEnum(Effort_To_Apply_Fix_Enum).nullable(),
|
|
@@ -999,9 +1009,7 @@ var ReportFixesQueryZ = z3.array(
|
|
|
999
1009
|
issueLanguage: z3.string(),
|
|
1000
1010
|
parsedSeverity: ParsedSeverityZ
|
|
1001
1011
|
})
|
|
1002
|
-
).min(1)
|
|
1003
|
-
scmSubmitFixRequests: ScmSubmitFixRequestsZ,
|
|
1004
|
-
fixRatings: z3.array(FixRatingZ).default([])
|
|
1012
|
+
).min(1)
|
|
1005
1013
|
})
|
|
1006
1014
|
);
|
|
1007
1015
|
var ExtraContextInternalZ = z3.object({
|
|
@@ -1052,7 +1060,7 @@ var PatchAndQuestionsZ = z3.object({
|
|
|
1052
1060
|
var FixQueryZ = z3.object({
|
|
1053
1061
|
__typename: z3.literal("fix").optional(),
|
|
1054
1062
|
id: z3.string().uuid(),
|
|
1055
|
-
|
|
1063
|
+
sharedState: FixSharedStateZ,
|
|
1056
1064
|
modifiedBy: z3.string().nullable(),
|
|
1057
1065
|
gitBlameLogin: z3.string().nullable(),
|
|
1058
1066
|
safeIssueLanguage: z3.string(),
|
|
@@ -1060,7 +1068,6 @@ var FixQueryZ = z3.object({
|
|
|
1060
1068
|
confidence: z3.number(),
|
|
1061
1069
|
fixReportId: z3.string().uuid(),
|
|
1062
1070
|
isExpired: z3.boolean().default(false),
|
|
1063
|
-
isArchived: z3.boolean().nullable(),
|
|
1064
1071
|
fixFiles: z3.array(
|
|
1065
1072
|
z3.object({
|
|
1066
1073
|
fileRepoRelativePath: z3.string()
|
|
@@ -1075,9 +1082,7 @@ var FixQueryZ = z3.object({
|
|
|
1075
1082
|
})
|
|
1076
1083
|
),
|
|
1077
1084
|
patchAndQuestions: PatchAndQuestionsZ,
|
|
1078
|
-
|
|
1079
|
-
effortToApplyFix: z3.nativeEnum(Effort_To_Apply_Fix_Enum).nullable(),
|
|
1080
|
-
fixRatings: z3.array(FixRatingZ).default([])
|
|
1085
|
+
effortToApplyFix: z3.nativeEnum(Effort_To_Apply_Fix_Enum).nullable()
|
|
1081
1086
|
});
|
|
1082
1087
|
var FixScreenQueryResultZ = z3.object({
|
|
1083
1088
|
fixReport_by_pk: z3.object({
|
|
@@ -1153,11 +1158,12 @@ var FixScreenQueryResultZ = z3.object({
|
|
|
1153
1158
|
)
|
|
1154
1159
|
})
|
|
1155
1160
|
),
|
|
1156
|
-
fixesWithSameIssueType: z3.
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
+
fixesWithSameIssueType: z3.array(
|
|
1162
|
+
z3.object({
|
|
1163
|
+
id: z3.string().uuid(),
|
|
1164
|
+
sharedState: z3.object({ state: z3.nativeEnum(Fix_State_Enum) }).nullable().default({ state: "Ready" /* Ready */ })
|
|
1165
|
+
})
|
|
1166
|
+
)
|
|
1161
1167
|
});
|
|
1162
1168
|
var FixReportByProjectZ = z3.object({
|
|
1163
1169
|
project_by_pk: z3.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobbdev",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "Automated secure code remediation tool",
|
|
5
5
|
"repository": "git+https://github.com/mobb-dev/bugsy.git",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run",
|
|
15
15
|
"test:ado": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run ado.test",
|
|
16
16
|
"test:github": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run github.test",
|
|
17
|
-
"test:coverage": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run --coverage
|
|
17
|
+
"test:coverage": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run --coverage",
|
|
18
18
|
"test:watch": "TOKEN=$(../../scripts/login_auth0.sh) vitest",
|
|
19
19
|
"lint": "eslint --cache --max-warnings 0 --ignore-path .eslintignore --ext .ts,.tsx,.jsx .",
|
|
20
20
|
"lint:fix": "eslint --fix --cache --max-warnings 0 --ignore-path .eslintignore --ext .js,.ts,.tsx,.jsx .",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@octokit/core": "5.2.0",
|
|
36
36
|
"@octokit/graphql": "5.0.6",
|
|
37
37
|
"@octokit/plugin-rest-endpoint-methods": "7.2.3",
|
|
38
|
-
"@octokit/request-error": "
|
|
39
|
-
"@types/libsodium-wrappers": "0.7.
|
|
38
|
+
"@octokit/request-error": "5.1.0",
|
|
39
|
+
"@types/libsodium-wrappers": "0.7.14",
|
|
40
40
|
"adm-zip": "0.5.16",
|
|
41
41
|
"axios": "1.7.9",
|
|
42
42
|
"azure-devops-node-api": "12.1.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"inquirer": "9.2.23",
|
|
56
56
|
"isomorphic-ws": "5.0.0",
|
|
57
57
|
"istextorbinary": "6.0.0",
|
|
58
|
-
"libsodium-wrappers": "0.7.
|
|
58
|
+
"libsodium-wrappers": "0.7.15",
|
|
59
59
|
"nanospinner": "1.1.0",
|
|
60
60
|
"node-fetch": "3.3.2",
|
|
61
61
|
"octokit": "3.2.1",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"semver": "7.6.3",
|
|
65
65
|
"simple-git": "3.27.0",
|
|
66
66
|
"snyk": "1.1295.0",
|
|
67
|
-
"supports-color": "
|
|
67
|
+
"supports-color": "10.0.0",
|
|
68
68
|
"tar": "6.2.1",
|
|
69
69
|
"tmp": "0.2.3",
|
|
70
70
|
"undici": "6.20.1",
|
|
71
|
-
"uuid": "
|
|
71
|
+
"uuid": "11.0.5",
|
|
72
72
|
"ws": "8.18.0",
|
|
73
73
|
"yargs": "17.7.2",
|
|
74
74
|
"zod": "3.24.1"
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
"@graphql-codegen/typescript": "4.1.2",
|
|
79
79
|
"@graphql-codegen/typescript-graphql-request": "6.2.0",
|
|
80
80
|
"@graphql-codegen/typescript-operations": "4.4.0",
|
|
81
|
-
"@octokit/request-error": "3.0.3",
|
|
82
81
|
"@octokit/types": "13.7.0",
|
|
83
82
|
"@types/adm-zip": "0.5.7",
|
|
84
83
|
"@types/chalk-animation": "1.6.3",
|
|
@@ -93,16 +92,16 @@
|
|
|
93
92
|
"@types/yargs": "17.0.33",
|
|
94
93
|
"@typescript-eslint/eslint-plugin": "7.17.0",
|
|
95
94
|
"@typescript-eslint/parser": "7.17.0",
|
|
96
|
-
"@vitest/coverage-istanbul": "
|
|
97
|
-
"@vitest/ui": "
|
|
95
|
+
"@vitest/coverage-istanbul": "3.0.2",
|
|
96
|
+
"@vitest/ui": "3.0.2",
|
|
98
97
|
"eslint": "8.57.0",
|
|
99
98
|
"eslint-plugin-import": "2.31.0",
|
|
100
|
-
"eslint-plugin-prettier": "5.2.
|
|
99
|
+
"eslint-plugin-prettier": "5.2.3",
|
|
101
100
|
"eslint-plugin-simple-import-sort": "10.0.0",
|
|
102
101
|
"prettier": "3.4.2",
|
|
103
102
|
"tsup": "7.2.0",
|
|
104
103
|
"typescript": "4.9.5",
|
|
105
|
-
"vitest": "
|
|
104
|
+
"vitest": "3.0.2"
|
|
106
105
|
},
|
|
107
106
|
"engines": {
|
|
108
107
|
"node": ">=18.20.4"
|