mobbdev 1.2.6 → 1.2.19
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/args/commands/upload_ai_blame.mjs +24 -45
- package/dist/index.mjs +862 -849
- package/package.json +1 -1
|
@@ -277,6 +277,7 @@ var init_client_generates = __esm({
|
|
|
277
277
|
IssueType_Enum2["MissingTemplateStringIndicator"] = "MISSING_TEMPLATE_STRING_INDICATOR";
|
|
278
278
|
IssueType_Enum2["MissingUser"] = "MISSING_USER";
|
|
279
279
|
IssueType_Enum2["MissingWhitespace"] = "MISSING_WHITESPACE";
|
|
280
|
+
IssueType_Enum2["MissingWorkflowPermissions"] = "MISSING_WORKFLOW_PERMISSIONS";
|
|
280
281
|
IssueType_Enum2["ModifiedDefaultParam"] = "MODIFIED_DEFAULT_PARAM";
|
|
281
282
|
IssueType_Enum2["NonFinalPublicStaticField"] = "NON_FINAL_PUBLIC_STATIC_FIELD";
|
|
282
283
|
IssueType_Enum2["NonReadonlyField"] = "NON_READONLY_FIELD";
|
|
@@ -846,13 +847,12 @@ var init_client_generates = __esm({
|
|
|
846
847
|
}
|
|
847
848
|
`;
|
|
848
849
|
AnalyzeCommitForExtensionAiBlameDocument = `
|
|
849
|
-
mutation AnalyzeCommitForExtensionAIBlame($repositoryURL: String!, $commitSha: String!, $organizationId: String!, $commitTimestamp: Timestamp
|
|
850
|
+
mutation AnalyzeCommitForExtensionAIBlame($repositoryURL: String!, $commitSha: String!, $organizationId: String!, $commitTimestamp: Timestamp) {
|
|
850
851
|
analyzeCommitForAIBlame(
|
|
851
852
|
repositoryURL: $repositoryURL
|
|
852
853
|
commitSha: $commitSha
|
|
853
854
|
organizationId: $organizationId
|
|
854
855
|
commitTimestamp: $commitTimestamp
|
|
855
|
-
parentCommits: $parentCommits
|
|
856
856
|
) {
|
|
857
857
|
__typename
|
|
858
858
|
... on ProcessAIBlameFinalResult {
|
|
@@ -1295,6 +1295,7 @@ var init_fix = __esm({
|
|
|
1295
1295
|
});
|
|
1296
1296
|
IssueSharedStateZ = z2.object({
|
|
1297
1297
|
id: z2.string(),
|
|
1298
|
+
createdAt: z2.string(),
|
|
1298
1299
|
isArchived: z2.boolean(),
|
|
1299
1300
|
ticketIntegrationId: z2.string().nullable(),
|
|
1300
1301
|
ticketIntegrations: z2.array(
|
|
@@ -1680,7 +1681,8 @@ var init_getIssueType = __esm({
|
|
|
1680
1681
|
["RETURN_IN_INIT" /* ReturnInInit */]: "Return in Init",
|
|
1681
1682
|
["ACTION_NOT_PINNED_TO_COMMIT_SHA" /* ActionNotPinnedToCommitSha */]: "Action Not Pinned to Commit Sha",
|
|
1682
1683
|
["DJANGO_BLANK_FIELD_NEEDS_NULL_OR_DEFAULT" /* DjangoBlankFieldNeedsNullOrDefault */]: "Django Blank Field Needs Null or Default",
|
|
1683
|
-
["REDUNDANT_NIL_ERROR_CHECK" /* RedundantNilErrorCheck */]: "Redundant Nil Error Check"
|
|
1684
|
+
["REDUNDANT_NIL_ERROR_CHECK" /* RedundantNilErrorCheck */]: "Redundant Nil Error Check",
|
|
1685
|
+
["MISSING_WORKFLOW_PERMISSIONS" /* MissingWorkflowPermissions */]: "Missing Workflow Permissions"
|
|
1684
1686
|
};
|
|
1685
1687
|
issueTypeZ = z5.nativeEnum(IssueType_Enum);
|
|
1686
1688
|
getIssueTypeFriendlyString = (issueType) => {
|
|
@@ -3748,34 +3750,6 @@ ${rootContent}`;
|
|
|
3748
3750
|
throw new Error(errorMessage);
|
|
3749
3751
|
}
|
|
3750
3752
|
}
|
|
3751
|
-
/**
|
|
3752
|
-
* Gets timestamps for parent commits in a single git call.
|
|
3753
|
-
* @param parentShas Array of parent commit SHAs
|
|
3754
|
-
* @returns Array of parent commits with timestamps, or undefined if unavailable
|
|
3755
|
-
*/
|
|
3756
|
-
async getParentCommitTimestamps(parentShas) {
|
|
3757
|
-
if (parentShas.length === 0) {
|
|
3758
|
-
return void 0;
|
|
3759
|
-
}
|
|
3760
|
-
try {
|
|
3761
|
-
const output = await this.git.raw([
|
|
3762
|
-
"log",
|
|
3763
|
-
"--format=%H %cI",
|
|
3764
|
-
"--no-walk",
|
|
3765
|
-
...parentShas
|
|
3766
|
-
]);
|
|
3767
|
-
const parentCommits = output.trim().split("\n").filter(Boolean).map((line) => {
|
|
3768
|
-
const [sha, ts] = line.split(" ");
|
|
3769
|
-
return { sha: sha ?? "", timestamp: new Date(ts ?? "") };
|
|
3770
|
-
}).filter((p) => p.sha !== "");
|
|
3771
|
-
return parentCommits.length > 0 ? parentCommits : void 0;
|
|
3772
|
-
} catch {
|
|
3773
|
-
this.log("[GitService] Could not get parent commit timestamps", "debug", {
|
|
3774
|
-
parentShas
|
|
3775
|
-
});
|
|
3776
|
-
return void 0;
|
|
3777
|
-
}
|
|
3778
|
-
}
|
|
3779
3753
|
/**
|
|
3780
3754
|
* Gets local commit data including diff, timestamp, and parent commits.
|
|
3781
3755
|
* Used by Tracy extension to send commit data directly without requiring SCM token.
|
|
@@ -3820,18 +3794,14 @@ ${rootContent}`;
|
|
|
3820
3794
|
}
|
|
3821
3795
|
const timestampStr = metadataLines[0];
|
|
3822
3796
|
const timestamp = new Date(timestampStr);
|
|
3823
|
-
const parentShas = (metadataLines[1] ?? "").trim().split(/\s+/).filter(Boolean);
|
|
3824
|
-
const parentCommits = await this.getParentCommitTimestamps(parentShas);
|
|
3825
3797
|
this.log("[GitService] Local commit data retrieved", "debug", {
|
|
3826
3798
|
commitSha,
|
|
3827
3799
|
diffSizeBytes,
|
|
3828
|
-
timestamp: timestamp.toISOString()
|
|
3829
|
-
parentCommitCount: parentCommits?.length ?? 0
|
|
3800
|
+
timestamp: timestamp.toISOString()
|
|
3830
3801
|
});
|
|
3831
3802
|
return {
|
|
3832
3803
|
diff,
|
|
3833
|
-
timestamp
|
|
3834
|
-
parentCommits
|
|
3804
|
+
timestamp
|
|
3835
3805
|
};
|
|
3836
3806
|
} catch (error) {
|
|
3837
3807
|
const errorMessage = `Failed to get local commit data: ${error.message}`;
|
|
@@ -4544,7 +4514,8 @@ var fixDetailsData = {
|
|
|
4544
4514
|
["RETURN_IN_INIT" /* ReturnInInit */]: void 0,
|
|
4545
4515
|
["ACTION_NOT_PINNED_TO_COMMIT_SHA" /* ActionNotPinnedToCommitSha */]: void 0,
|
|
4546
4516
|
["DJANGO_BLANK_FIELD_NEEDS_NULL_OR_DEFAULT" /* DjangoBlankFieldNeedsNullOrDefault */]: void 0,
|
|
4547
|
-
["REDUNDANT_NIL_ERROR_CHECK" /* RedundantNilErrorCheck */]: void 0
|
|
4517
|
+
["REDUNDANT_NIL_ERROR_CHECK" /* RedundantNilErrorCheck */]: void 0,
|
|
4518
|
+
["MISSING_WORKFLOW_PERMISSIONS" /* MissingWorkflowPermissions */]: void 0
|
|
4548
4519
|
};
|
|
4549
4520
|
|
|
4550
4521
|
// src/features/analysis/scm/shared/src/commitDescriptionMarkup.ts
|
|
@@ -6146,6 +6117,9 @@ var GetReferenceResultZ = z14.object({
|
|
|
6146
6117
|
type: z14.nativeEnum(ReferenceType)
|
|
6147
6118
|
});
|
|
6148
6119
|
|
|
6120
|
+
// src/features/analysis/scm/utils/diffUtils.ts
|
|
6121
|
+
import parseDiff from "parse-diff";
|
|
6122
|
+
|
|
6149
6123
|
// src/features/analysis/scm/ado/constants.ts
|
|
6150
6124
|
init_types2();
|
|
6151
6125
|
var DEFUALT_ADO_ORIGIN = scmCloudUrl.Ado;
|
|
@@ -6247,17 +6221,12 @@ init_env();
|
|
|
6247
6221
|
|
|
6248
6222
|
// src/features/analysis/scm/github/GithubSCMLib.ts
|
|
6249
6223
|
init_env();
|
|
6250
|
-
import
|
|
6224
|
+
import pLimit from "p-limit";
|
|
6251
6225
|
import { z as z22 } from "zod";
|
|
6252
6226
|
init_client_generates();
|
|
6253
6227
|
|
|
6254
6228
|
// src/features/analysis/scm/github/github.ts
|
|
6255
6229
|
import { RequestError } from "@octokit/request-error";
|
|
6256
|
-
import pLimit from "p-limit";
|
|
6257
|
-
|
|
6258
|
-
// src/utils/contextLogger.ts
|
|
6259
|
-
import debugModule from "debug";
|
|
6260
|
-
var debug4 = debugModule("mobb:shared");
|
|
6261
6230
|
|
|
6262
6231
|
// src/features/analysis/scm/github/utils/encrypt_secret.ts
|
|
6263
6232
|
import sodium from "libsodium-wrappers";
|
|
@@ -6276,11 +6245,18 @@ import {
|
|
|
6276
6245
|
Gitlab
|
|
6277
6246
|
} from "@gitbeaker/rest";
|
|
6278
6247
|
import Debug4 from "debug";
|
|
6248
|
+
import pLimit2 from "p-limit";
|
|
6279
6249
|
import {
|
|
6280
6250
|
Agent,
|
|
6281
6251
|
fetch as undiciFetch,
|
|
6282
6252
|
ProxyAgent as ProxyAgent2
|
|
6283
6253
|
} from "undici";
|
|
6254
|
+
|
|
6255
|
+
// src/utils/contextLogger.ts
|
|
6256
|
+
import debugModule from "debug";
|
|
6257
|
+
var debug4 = debugModule("mobb:shared");
|
|
6258
|
+
|
|
6259
|
+
// src/features/analysis/scm/gitlab/gitlab.ts
|
|
6284
6260
|
init_env();
|
|
6285
6261
|
|
|
6286
6262
|
// src/features/analysis/scm/gitlab/types.ts
|
|
@@ -6294,6 +6270,9 @@ var GitlabAuthResultZ = z23.object({
|
|
|
6294
6270
|
// src/features/analysis/scm/gitlab/gitlab.ts
|
|
6295
6271
|
var debug5 = Debug4("scm:gitlab");
|
|
6296
6272
|
|
|
6273
|
+
// src/features/analysis/scm/gitlab/GitlabSCMLib.ts
|
|
6274
|
+
init_client_generates();
|
|
6275
|
+
|
|
6297
6276
|
// src/features/analysis/scm/scmFactory.ts
|
|
6298
6277
|
import { z as z24 } from "zod";
|
|
6299
6278
|
|
|
@@ -7493,7 +7472,7 @@ async function getRepositoryUrl() {
|
|
|
7493
7472
|
}
|
|
7494
7473
|
const remoteUrl = await gitService.getRemoteUrl();
|
|
7495
7474
|
const parsed = parseScmURL(remoteUrl);
|
|
7496
|
-
return parsed?.scmType === "GitHub" /* GitHub */ ? remoteUrl : null;
|
|
7475
|
+
return parsed?.scmType === "GitHub" /* GitHub */ || parsed?.scmType === "GitLab" /* GitLab */ ? remoteUrl : null;
|
|
7497
7476
|
} catch {
|
|
7498
7477
|
return null;
|
|
7499
7478
|
}
|