mobbdev 1.0.166 → 1.0.168
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 +25 -4
- package/package.json +11 -10
package/dist/index.mjs
CHANGED
|
@@ -968,6 +968,7 @@ var init_GitService = __esm({
|
|
|
968
968
|
);
|
|
969
969
|
const fileSet = /* @__PURE__ */ new Set();
|
|
970
970
|
let commitsProcessed = 0;
|
|
971
|
+
const consideredFiles = [];
|
|
971
972
|
for (const file of currentChanges.files) {
|
|
972
973
|
if (fileSet.size >= maxFiles) {
|
|
973
974
|
break;
|
|
@@ -1026,7 +1027,7 @@ var init_GitService = __esm({
|
|
|
1026
1027
|
path2.join(gitRoot, gitRelativePath)
|
|
1027
1028
|
);
|
|
1028
1029
|
}
|
|
1029
|
-
|
|
1030
|
+
consideredFiles.push(adjustedPath);
|
|
1030
1031
|
if (!fileSet.has(adjustedPath) && await FileUtils.shouldPackFile(
|
|
1031
1032
|
path2.join(gitRoot, gitRelativePath)
|
|
1032
1033
|
) && !adjustedPath.startsWith("..")) {
|
|
@@ -1044,6 +1045,13 @@ var init_GitService = __esm({
|
|
|
1044
1045
|
}
|
|
1045
1046
|
}
|
|
1046
1047
|
const files = Array.from(fileSet);
|
|
1048
|
+
if (consideredFiles.length > 0) {
|
|
1049
|
+
this.log(
|
|
1050
|
+
`[GitService] Considered ${consideredFiles.length} files during recent file search`,
|
|
1051
|
+
"debug",
|
|
1052
|
+
{ consideredFiles }
|
|
1053
|
+
);
|
|
1054
|
+
}
|
|
1047
1055
|
this.log("[GitService] Recently changed files retrieved", "info", {
|
|
1048
1056
|
fileCount: files.length,
|
|
1049
1057
|
commitsProcessed,
|
|
@@ -5201,7 +5209,7 @@ var ReportFixesQueryFixZ = z11.object({
|
|
|
5201
5209
|
})
|
|
5202
5210
|
).min(1)
|
|
5203
5211
|
});
|
|
5204
|
-
var
|
|
5212
|
+
var BaseVulnerabilityReportIssueZ = z11.object({
|
|
5205
5213
|
id: z11.string().uuid(),
|
|
5206
5214
|
createdAt: z11.string(),
|
|
5207
5215
|
state: z11.nativeEnum(Vulnerability_Report_Issue_State_Enum),
|
|
@@ -5220,7 +5228,6 @@ var VulnerabilityReportIssueZ = z11.object({
|
|
|
5220
5228
|
severity: z11.string(),
|
|
5221
5229
|
severityValue: z11.number(),
|
|
5222
5230
|
category: z11.string(),
|
|
5223
|
-
codeNodes: z11.array(z11.object({ path: z11.string() })),
|
|
5224
5231
|
vulnerabilityReportIssueTags: z11.array(
|
|
5225
5232
|
z11.object({
|
|
5226
5233
|
vulnerability_report_issue_tag_value: z11.string()
|
|
@@ -5228,6 +5235,18 @@ var VulnerabilityReportIssueZ = z11.object({
|
|
|
5228
5235
|
),
|
|
5229
5236
|
sharedState: VulnerabilityReportIssueSharedStateZ
|
|
5230
5237
|
});
|
|
5238
|
+
var VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.merge(
|
|
5239
|
+
z11.object({
|
|
5240
|
+
codeNodes: z11.array(z11.object({ path: z11.string() }))
|
|
5241
|
+
})
|
|
5242
|
+
);
|
|
5243
|
+
var VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.merge(
|
|
5244
|
+
z11.object({
|
|
5245
|
+
codeFilePath: z11.string().nullable(),
|
|
5246
|
+
//TODO: REMOVE THIS once we flush out all the reports that don't have codeFilePath
|
|
5247
|
+
codeNodes: z11.array(z11.object({ path: z11.string() }))
|
|
5248
|
+
})
|
|
5249
|
+
);
|
|
5231
5250
|
var GetReportIssuesQueryZ = z11.object({
|
|
5232
5251
|
fixReport: z11.object({
|
|
5233
5252
|
vulnerabilityReport: z11.object({
|
|
@@ -5236,7 +5255,9 @@ var GetReportIssuesQueryZ = z11.object({
|
|
|
5236
5255
|
vulnerabilityReportIssues_aggregate: z11.object({
|
|
5237
5256
|
aggregate: z11.object({ count: z11.number() })
|
|
5238
5257
|
}),
|
|
5239
|
-
vulnerabilityReportIssues: z11.array(
|
|
5258
|
+
vulnerabilityReportIssues: z11.array(
|
|
5259
|
+
VulnerabilityReportIssueWithCodeFilePathZ
|
|
5260
|
+
)
|
|
5240
5261
|
})
|
|
5241
5262
|
}).array()
|
|
5242
5263
|
}).nullish();
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobbdev",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.168",
|
|
4
4
|
"description": "Automated secure code remediation tool",
|
|
5
5
|
"repository": "git+https://github.com/mobb-dev/bugsy.git",
|
|
6
|
-
"main": "dist/index.
|
|
7
|
-
"module": "dist/index.
|
|
6
|
+
"main": "dist/index.mjs",
|
|
7
|
+
"module": "dist/index.mjs",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"clean": "rm -rf build",
|
|
10
10
|
"env": "dotenv -e ./.env",
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
"build": "tsc && tsup-node --env.NODE_ENV production",
|
|
13
13
|
"build:dev": "tsup-node --env.NODE_ENV development",
|
|
14
14
|
"increment-version": "./src/scripts/increment-version.sh",
|
|
15
|
-
"test:mcp": "
|
|
15
|
+
"test:unit:mcp": "vitest run __tests__/mcp/",
|
|
16
16
|
"test:mcp:watch": "vitest watch __tests__/mcp/",
|
|
17
17
|
"test:mcp:verbose": "pnpm run build && NODE_ENV=test VERBOSE=true vitest run __tests__/mcp/",
|
|
18
|
-
"test:mcp:
|
|
19
|
-
"test:
|
|
20
|
-
"test:unit": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run --exclude='**/__tests__/integration.test.ts' --exclude='**/__tests__/mcp/**'",
|
|
18
|
+
"test:mcp:all": "pnpm run test:unit:mcp && pnpm run test:integration:mcp && pnpm run test:e2e:mcp",
|
|
19
|
+
"test:unit": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run --exclude='**/__tests__/integration.test.ts' --exclude='**/__tests__/integration.mcp.test.ts' --exclude='**/__tests__/mcp/**'",
|
|
21
20
|
"test:integration": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run --sequence.concurrent=false false __tests__/integration.test.ts",
|
|
21
|
+
"test:integration:mcp": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run --sequence.concurrent=false false __tests__/integration.mcp.test.ts",
|
|
22
22
|
"test:integration:watch": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest watch run __tests__/integration.test.ts",
|
|
23
|
-
"test": "pnpm run test:unit && pnpm run test:
|
|
23
|
+
"test": "pnpm run test:unit && pnpm run test:integration",
|
|
24
24
|
"test:ado": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run ado.test",
|
|
25
25
|
"test:github": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run github.test",
|
|
26
26
|
"test:gitlab": "GIT_PROXY_HOST=http://tinyproxy:8888 TOKEN=$(../../scripts/login_auth0.sh) vitest run gitlab.test",
|
|
@@ -30,13 +30,14 @@
|
|
|
30
30
|
"test:watch": "TOKEN=$(../../scripts/login_auth0.sh) vitest",
|
|
31
31
|
"test:integration:proxy": "GIT_PROXY_HOST=http://tinyproxy:8888 HTTP_PROXY=http://localhost:8888 API_URL=http://app-api:8080/v1/graphql TOKEN=$(../../scripts/login_auth0.sh) vitest run --sequence.concurrent=false false integration.test.ts",
|
|
32
32
|
"lint": "eslint --cache --max-warnings 0 --ignore-path .eslintignore --ext .ts,.tsx,.jsx,.graphql .",
|
|
33
|
+
"lint:fix": "eslint --fix --cache --max-warnings 0 --ignore-path .eslintignore --ext .js,.ts,.tsx,.jsx,.graphql . && prettier --write \"src/**/*.graphql\"",
|
|
33
34
|
"lint:fix:files": "eslint --fix --cache --max-warnings 0 --ignore-path .eslintignore --ext .js,.ts,.tsx,.jsx,.graphql",
|
|
34
35
|
"prepack": "dotenv-vault pull production .env && pnpm build",
|
|
35
36
|
"dev:mcp": "pnpm run build && node dist/index.mjs mcp",
|
|
36
37
|
"debug:mcp": "pnpm run build && node dist/index.mjs mcp --debug",
|
|
37
38
|
"generate": "pnpm run env -- graphql-codegen -r dotenv/config --config client_codegen.ts",
|
|
38
|
-
"test:e2e": "cd ./__e2e__ && npm i && npm run test
|
|
39
|
-
"test:e2e:mcp": "cd ./__e2e__ && npm i && npm run test:mcp"
|
|
39
|
+
"test:e2e": "cd ./__e2e__ && npm i && npm run test",
|
|
40
|
+
"test:e2e:mcp": "pnpm run build && cd ./__e2e__ && npm i && npm run test:mcp"
|
|
40
41
|
},
|
|
41
42
|
"bin": {
|
|
42
43
|
"mobbdev": "bin/cli.mjs"
|