mobbdev 1.0.194 → 1.0.196
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.
|
@@ -4614,8 +4614,8 @@ var Logger = class {
|
|
|
4614
4614
|
* Migrates logs from unknown path to known workspace path
|
|
4615
4615
|
*/
|
|
4616
4616
|
migrateLogs(fromPath, toPath) {
|
|
4617
|
-
const existingLogs = this.mobbConfigStore.get(fromPath)
|
|
4618
|
-
const targetLogs = this.mobbConfigStore.get(toPath)
|
|
4617
|
+
const existingLogs = this.mobbConfigStore.get(fromPath) ?? [];
|
|
4618
|
+
const targetLogs = this.mobbConfigStore.get(toPath) ?? [];
|
|
4619
4619
|
if (existingLogs.length > 0) {
|
|
4620
4620
|
const combinedLogs = [...targetLogs, ...existingLogs];
|
|
4621
4621
|
const finalLogs = combinedLogs.slice(-MAX_LOGS_SIZE);
|
|
@@ -4646,7 +4646,7 @@ var Logger = class {
|
|
|
4646
4646
|
message,
|
|
4647
4647
|
data
|
|
4648
4648
|
};
|
|
4649
|
-
const logs = this.mobbConfigStore.get(currentPath)
|
|
4649
|
+
const logs = this.mobbConfigStore.get(currentPath) ?? [];
|
|
4650
4650
|
if (logs.length >= MAX_LOGS_SIZE) {
|
|
4651
4651
|
logs.shift();
|
|
4652
4652
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -6069,6 +6069,14 @@ var accountsZ = z16.object({
|
|
|
6069
6069
|
|
|
6070
6070
|
// src/features/analysis/scm/ado/utils.ts
|
|
6071
6071
|
var debug = Debug("mobbdev:scm:ado");
|
|
6072
|
+
function transformVisualStudioUrl(url) {
|
|
6073
|
+
const match = url.match(/^https:\/\/([^.]+)\.visualstudio\.com/i);
|
|
6074
|
+
if (match) {
|
|
6075
|
+
const orgName = match[1];
|
|
6076
|
+
return `https://dev.azure.com/${orgName}`;
|
|
6077
|
+
}
|
|
6078
|
+
return url;
|
|
6079
|
+
}
|
|
6072
6080
|
function _getPublicAdoClient({
|
|
6073
6081
|
orgName,
|
|
6074
6082
|
origin: origin2
|
|
@@ -6177,7 +6185,7 @@ async function getAdoApiClient(params) {
|
|
|
6177
6185
|
);
|
|
6178
6186
|
}
|
|
6179
6187
|
const connection2 = new api.WebApi(
|
|
6180
|
-
orgUrl,
|
|
6188
|
+
transformVisualStudioUrl(orgUrl),
|
|
6181
6189
|
api.getBearerHandler(params.accessToken),
|
|
6182
6190
|
{}
|
|
6183
6191
|
);
|
|
@@ -6186,7 +6194,7 @@ async function getAdoApiClient(params) {
|
|
|
6186
6194
|
const authHandler = api.getPersonalAccessTokenHandler(params.accessToken);
|
|
6187
6195
|
const isBroker = isBrokerUrl(orgUrl);
|
|
6188
6196
|
const connection = new api.WebApi(
|
|
6189
|
-
orgUrl,
|
|
6197
|
+
transformVisualStudioUrl(orgUrl),
|
|
6190
6198
|
authHandler,
|
|
6191
6199
|
isBroker ? {
|
|
6192
6200
|
proxy: {
|
|
@@ -11926,7 +11934,7 @@ async function _scan(params, { skipPrompts = false } = {}) {
|
|
|
11926
11934
|
const { createSpinner: createSpinner5 } = Spinner2({ ci });
|
|
11927
11935
|
skipPrompts = skipPrompts || ci;
|
|
11928
11936
|
let gqlClient = new GQLClient({
|
|
11929
|
-
apiKey: apiKey
|
|
11937
|
+
apiKey: apiKey ?? config2.get("apiToken") ?? "",
|
|
11930
11938
|
type: "apiKey"
|
|
11931
11939
|
});
|
|
11932
11940
|
gqlClient = await handleMobbLogin({
|
|
@@ -12452,7 +12460,7 @@ var config3 = new Configstore2(packageJson.name, { apiToken: "" });
|
|
|
12452
12460
|
async function addScmToken(addScmTokenOptions) {
|
|
12453
12461
|
const { apiKey, token, organization, scmType, url, refreshToken, ci } = addScmTokenOptions;
|
|
12454
12462
|
let gqlClient = new GQLClient({
|
|
12455
|
-
apiKey: apiKey
|
|
12463
|
+
apiKey: apiKey ?? config3.get("apiToken") ?? "",
|
|
12456
12464
|
type: "apiKey"
|
|
12457
12465
|
});
|
|
12458
12466
|
gqlClient = await handleMobbLogin({
|
|
@@ -12846,8 +12854,8 @@ var Logger = class {
|
|
|
12846
12854
|
* Migrates logs from unknown path to known workspace path
|
|
12847
12855
|
*/
|
|
12848
12856
|
migrateLogs(fromPath, toPath) {
|
|
12849
|
-
const existingLogs = this.mobbConfigStore.get(fromPath)
|
|
12850
|
-
const targetLogs = this.mobbConfigStore.get(toPath)
|
|
12857
|
+
const existingLogs = this.mobbConfigStore.get(fromPath) ?? [];
|
|
12858
|
+
const targetLogs = this.mobbConfigStore.get(toPath) ?? [];
|
|
12851
12859
|
if (existingLogs.length > 0) {
|
|
12852
12860
|
const combinedLogs = [...targetLogs, ...existingLogs];
|
|
12853
12861
|
const finalLogs = combinedLogs.slice(-MAX_LOGS_SIZE);
|
|
@@ -12878,7 +12886,7 @@ var Logger = class {
|
|
|
12878
12886
|
message,
|
|
12879
12887
|
data
|
|
12880
12888
|
};
|
|
12881
|
-
const logs = this.mobbConfigStore.get(currentPath)
|
|
12889
|
+
const logs = this.mobbConfigStore.get(currentPath) ?? [];
|
|
12882
12890
|
if (logs.length >= MAX_LOGS_SIZE) {
|
|
12883
12891
|
logs.shift();
|
|
12884
12892
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobbdev",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.196",
|
|
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",
|
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@gitbeaker/requester-utils": "43.5.0",
|
|
55
55
|
"@gitbeaker/rest": "43.5.0",
|
|
56
|
-
"@modelcontextprotocol/sdk": "1.
|
|
56
|
+
"@modelcontextprotocol/sdk": "1.20.1",
|
|
57
57
|
"@octokit/core": "5.2.0",
|
|
58
58
|
"@octokit/request-error": "5.1.1",
|
|
59
59
|
"adm-zip": "0.5.16",
|
|
60
|
-
"axios": "1.
|
|
60
|
+
"axios": "1.12.2",
|
|
61
61
|
"azure-devops-node-api": "15.1.1",
|
|
62
62
|
"bitbucket": "2.11.0",
|
|
63
63
|
"chalk": "5.6.2",
|
|
64
64
|
"chalk-animation": "2.0.3",
|
|
65
|
-
"configstore": "7.
|
|
65
|
+
"configstore": "7.1.0",
|
|
66
66
|
"cross-fetch": "4.1.0",
|
|
67
|
-
"debug": "4.4.
|
|
67
|
+
"debug": "4.4.3",
|
|
68
68
|
"dotenv": "16.6.1",
|
|
69
69
|
"extract-zip": "2.0.1",
|
|
70
70
|
"globby": "14.1.0",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"open": "8.4.2",
|
|
87
87
|
"parse-diff": "0.11.1",
|
|
88
88
|
"sax": "1.4.1",
|
|
89
|
-
"semver": "7.7.
|
|
89
|
+
"semver": "7.7.3",
|
|
90
90
|
"simple-git": "3.28.0",
|
|
91
|
-
"snyk": "1.
|
|
91
|
+
"snyk": "1.1300.0",
|
|
92
92
|
"tar": "6.2.1",
|
|
93
93
|
"tmp": "0.2.5",
|
|
94
94
|
"undici": "6.21.3",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"nock": "14.0.10",
|
|
133
133
|
"prettier": "3.6.2",
|
|
134
134
|
"tsup": "8.5.0",
|
|
135
|
-
"typescript": "5.9.
|
|
135
|
+
"typescript": "5.9.3",
|
|
136
136
|
"vitest": "3.2.4"
|
|
137
137
|
},
|
|
138
138
|
"engines": {
|