mobbdev 1.2.32 → 1.2.33
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 +27 -1
- package/package.json +13 -13
package/dist/index.mjs
CHANGED
|
@@ -7575,6 +7575,9 @@ var AdoSCMLib = class extends SCMLib {
|
|
|
7575
7575
|
async getSubmitRequestMetadata(_submitRequestId) {
|
|
7576
7576
|
throw new Error("getSubmitRequestMetadata not implemented for ADO");
|
|
7577
7577
|
}
|
|
7578
|
+
async getPrFiles(_prNumber) {
|
|
7579
|
+
throw new Error("getPrFiles not implemented for ADO");
|
|
7580
|
+
}
|
|
7578
7581
|
async searchSubmitRequests(_params) {
|
|
7579
7582
|
throw new Error("searchSubmitRequests not implemented for ADO");
|
|
7580
7583
|
}
|
|
@@ -8154,6 +8157,9 @@ var BitbucketSCMLib = class extends SCMLib {
|
|
|
8154
8157
|
async getSubmitRequestMetadata(_submitRequestId) {
|
|
8155
8158
|
throw new Error("getSubmitRequestMetadata not implemented for Bitbucket");
|
|
8156
8159
|
}
|
|
8160
|
+
async getPrFiles(_prNumber) {
|
|
8161
|
+
throw new Error("getPrFiles not implemented for Bitbucket");
|
|
8162
|
+
}
|
|
8157
8163
|
async searchSubmitRequests(_params) {
|
|
8158
8164
|
throw new Error("searchSubmitRequests not implemented for Bitbucket");
|
|
8159
8165
|
}
|
|
@@ -9355,6 +9361,19 @@ var GithubSCMLib = class extends SCMLib {
|
|
|
9355
9361
|
headCommitSha: pr.head.sha
|
|
9356
9362
|
};
|
|
9357
9363
|
}
|
|
9364
|
+
async getPrFiles(prNumber) {
|
|
9365
|
+
this._validateAccessTokenAndUrl();
|
|
9366
|
+
const { owner, repo } = parseGithubOwnerAndRepo(this.url);
|
|
9367
|
+
const filesRes = await this.githubSdk.listPRFiles({
|
|
9368
|
+
owner,
|
|
9369
|
+
repo,
|
|
9370
|
+
pull_number: prNumber
|
|
9371
|
+
});
|
|
9372
|
+
return filesRes.data.filter((file) => {
|
|
9373
|
+
const status = file.status;
|
|
9374
|
+
return status === "added" || status === "modified" || status === "renamed" && file.changes > 0 || status === "copied" && file.changes > 0;
|
|
9375
|
+
}).map((file) => file.filename);
|
|
9376
|
+
}
|
|
9358
9377
|
/**
|
|
9359
9378
|
* Override searchSubmitRequests to use GitHub's Search API for efficient pagination.
|
|
9360
9379
|
* This is much faster than fetching all PRs and filtering in-memory.
|
|
@@ -10491,6 +10510,9 @@ var GitlabSCMLib = class extends SCMLib {
|
|
|
10491
10510
|
headCommitSha: mr.sha
|
|
10492
10511
|
};
|
|
10493
10512
|
}
|
|
10513
|
+
async getPrFiles(_prNumber) {
|
|
10514
|
+
throw new Error("getPrFiles not implemented for GitLab");
|
|
10515
|
+
}
|
|
10494
10516
|
async searchSubmitRequests(params) {
|
|
10495
10517
|
this._validateAccessTokenAndUrl();
|
|
10496
10518
|
const page = parseCursorSafe(params.cursor, 1);
|
|
@@ -10752,6 +10774,10 @@ var StubSCMLib = class extends SCMLib {
|
|
|
10752
10774
|
async getSubmitRequestMetadata(_submitRequestId) {
|
|
10753
10775
|
throw new Error("getSubmitRequestMetadata() not implemented");
|
|
10754
10776
|
}
|
|
10777
|
+
async getPrFiles(_prNumber) {
|
|
10778
|
+
console.warn("getPrFiles() returning empty array");
|
|
10779
|
+
return [];
|
|
10780
|
+
}
|
|
10755
10781
|
async getPullRequestMetrics(_prNumber) {
|
|
10756
10782
|
console.warn("getPullRequestMetrics() returning empty object");
|
|
10757
10783
|
throw new Error("getPullRequestMetrics() not implemented");
|
|
@@ -24636,7 +24662,7 @@ async function processChat(client, cascadeId) {
|
|
|
24636
24662
|
let repositoryUrl;
|
|
24637
24663
|
if (repoOrigin) {
|
|
24638
24664
|
const parsed = parseScmURL(repoOrigin);
|
|
24639
|
-
if (parsed?.scmType === "GitHub" /* GitHub */) {
|
|
24665
|
+
if (parsed?.scmType === "GitHub" /* GitHub */ || parsed?.scmType === "GitLab" /* GitLab */) {
|
|
24640
24666
|
repositoryUrl = parsed.canonicalUrl;
|
|
24641
24667
|
}
|
|
24642
24668
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobbdev",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.33",
|
|
4
4
|
"description": "Automated secure code remediation tool",
|
|
5
5
|
"repository": "git+https://github.com/mobb-dev/bugsy.git",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"@octokit/request-error": "5.1.1",
|
|
61
61
|
"@openredaction/openredaction": "1.0.4",
|
|
62
62
|
"adm-zip": "0.5.16",
|
|
63
|
-
"axios": "1.13.
|
|
64
|
-
"azure-devops-node-api": "15.1.
|
|
63
|
+
"axios": "1.13.5",
|
|
64
|
+
"azure-devops-node-api": "15.1.2",
|
|
65
65
|
"bitbucket": "2.12.0",
|
|
66
66
|
"chalk": "5.6.2",
|
|
67
67
|
"chalk-animation": "2.0.3",
|
|
@@ -90,16 +90,16 @@
|
|
|
90
90
|
"open": "8.4.2",
|
|
91
91
|
"p-limit": "3.1.0",
|
|
92
92
|
"parse-diff": "0.11.1",
|
|
93
|
-
"sax": "1.4.
|
|
94
|
-
"semver": "7.7.
|
|
95
|
-
"simple-git": "3.
|
|
96
|
-
"snyk": "1.
|
|
97
|
-
"tar": "7.5.
|
|
93
|
+
"sax": "1.4.4",
|
|
94
|
+
"semver": "7.7.4",
|
|
95
|
+
"simple-git": "3.32.2",
|
|
96
|
+
"snyk": "1.1302.1",
|
|
97
|
+
"tar": "7.5.9",
|
|
98
98
|
"tmp": "0.2.5",
|
|
99
99
|
"tmp-promise": "3.0.3",
|
|
100
100
|
"undici": "6.23.0",
|
|
101
101
|
"uuid": "11.1.0",
|
|
102
|
-
"ws": "8.
|
|
102
|
+
"ws": "8.19.0",
|
|
103
103
|
"xml2js": "0.6.2",
|
|
104
104
|
"yargs": "17.7.2",
|
|
105
105
|
"zod": "3.25.76"
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@graphql-codegen/cli": "5.0.7",
|
|
109
109
|
"@graphql-codegen/typescript": "4.1.6",
|
|
110
|
-
"@graphql-codegen/typescript-graphql-request": "6.
|
|
110
|
+
"@graphql-codegen/typescript-graphql-request": "6.4.0",
|
|
111
111
|
"@graphql-codegen/typescript-operations": "4.6.1",
|
|
112
112
|
"@graphql-eslint/eslint-plugin": "4.4.0",
|
|
113
113
|
"@octokit/types": "13.10.0",
|
|
@@ -132,11 +132,11 @@
|
|
|
132
132
|
"eslint": "8.57.0",
|
|
133
133
|
"eslint-plugin-graphql": "4.0.0",
|
|
134
134
|
"eslint-plugin-import": "2.32.0",
|
|
135
|
-
"eslint-plugin-prettier": "5.5.
|
|
135
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
136
136
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
137
137
|
"msw": "2.10.5",
|
|
138
|
-
"nock": "14.0.
|
|
139
|
-
"prettier": "3.
|
|
138
|
+
"nock": "14.0.11",
|
|
139
|
+
"prettier": "3.8.1",
|
|
140
140
|
"tsup": "8.5.1",
|
|
141
141
|
"typescript": "5.9.3",
|
|
142
142
|
"vitest": "3.2.4"
|