mobbdev 1.4.42 → 1.4.43
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.d.mts +22 -150
- package/dist/args/commands/upload_ai_blame.mjs +109 -108
- package/dist/index.mjs +140 -137
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -1350,7 +1350,7 @@ var init_getIssueType = __esm({
|
|
|
1350
1350
|
["Unfixable" /* Unfixable */]: "Unfixable",
|
|
1351
1351
|
["Unsupported" /* Unsupported */]: "Unsupported"
|
|
1352
1352
|
};
|
|
1353
|
-
statusZ = z.
|
|
1353
|
+
statusZ = z.enum(Vulnerability_Report_Issue_State_Enum);
|
|
1354
1354
|
issueDescription = {
|
|
1355
1355
|
["AUTOGENERATED_CODE" /* AutogeneratedCode */]: "The flagged code is generated automatically by tools or frameworks as part of the build or runtime process. This categorization highlights that **the issue resides in non-manual code**, which often requires tool-specific solutions or exemptions.",
|
|
1356
1356
|
["AUXILIARY_CODE" /* AuxiliaryCode */]: "The flagged code is auxiliary or supporting code, such as configuration files, build scripts, or other non-application logic. This categorization indicates that the issue is not directly related to the application's core functionality.",
|
|
@@ -1371,7 +1371,7 @@ var init_shared = __esm({
|
|
|
1371
1371
|
"src/features/analysis/scm/shared/src/types/shared.ts"() {
|
|
1372
1372
|
"use strict";
|
|
1373
1373
|
init_client_generates();
|
|
1374
|
-
ParsedSeverityZ = z2.
|
|
1374
|
+
ParsedSeverityZ = z2.enum(Vulnerability_Severity_Enum).nullish().transform((i) => i ?? "low" /* Low */);
|
|
1375
1375
|
ScmSubmitFixRequestsZ = z2.array(
|
|
1376
1376
|
z2.object({
|
|
1377
1377
|
scmSubmitFixRequest: z2.object({
|
|
@@ -1382,7 +1382,7 @@ var init_shared = __esm({
|
|
|
1382
1382
|
targetBranchName: z2.string().default("")
|
|
1383
1383
|
}),
|
|
1384
1384
|
prUrl: z2.string().nullable(),
|
|
1385
|
-
prStatus: z2.
|
|
1385
|
+
prStatus: z2.enum(Pr_Status_Enum).nullable(),
|
|
1386
1386
|
commitUrl: z2.string().nullable(),
|
|
1387
1387
|
scmId: z2.string()
|
|
1388
1388
|
})
|
|
@@ -1405,8 +1405,8 @@ var init_fix = __esm({
|
|
|
1405
1405
|
envName: z3.string().nullable()
|
|
1406
1406
|
});
|
|
1407
1407
|
ManifestActionRequiredZ = z3.object({
|
|
1408
|
-
action: z3.
|
|
1409
|
-
language: z3.
|
|
1408
|
+
action: z3.enum(ManifestAction),
|
|
1409
|
+
language: z3.enum(Language),
|
|
1410
1410
|
lib: PackageInfoZ,
|
|
1411
1411
|
typesLib: PackageInfoZ.nullable()
|
|
1412
1412
|
});
|
|
@@ -1442,7 +1442,7 @@ var init_fix = __esm({
|
|
|
1442
1442
|
index: z3.number(),
|
|
1443
1443
|
defaultValue: z3.string(),
|
|
1444
1444
|
value: z3.string().nullable(),
|
|
1445
|
-
inputType: z3.
|
|
1445
|
+
inputType: z3.enum(FixQuestionInputType),
|
|
1446
1446
|
options: z3.array(z3.string()),
|
|
1447
1447
|
// E-2015: analyzer-served question text. default('') so a query that
|
|
1448
1448
|
// omits these still parses (-> ''), while the output type stays a required
|
|
@@ -1457,7 +1457,7 @@ var init_fix = __esm({
|
|
|
1457
1457
|
});
|
|
1458
1458
|
FixRatingZ = z3.object({
|
|
1459
1459
|
voteScore: z3.number(),
|
|
1460
|
-
fixRatingTag: z3.
|
|
1460
|
+
fixRatingTag: z3.enum(Fix_Rating_Tag_Enum).nullable().default(null),
|
|
1461
1461
|
comment: z3.string().nullable().default(null),
|
|
1462
1462
|
updatedDate: z3.string().nullable(),
|
|
1463
1463
|
user: z3.object({
|
|
@@ -1487,7 +1487,7 @@ var init_fix = __esm({
|
|
|
1487
1487
|
issueRatings: z3.array(IssueRatingZ).default([])
|
|
1488
1488
|
}).nullable();
|
|
1489
1489
|
FixSharedStateZ = z3.object({
|
|
1490
|
-
state: z3.
|
|
1490
|
+
state: z3.enum(Fix_State_Enum),
|
|
1491
1491
|
isArchived: z3.boolean(),
|
|
1492
1492
|
scmSubmitFixRequests: ScmSubmitFixRequestsZ,
|
|
1493
1493
|
fixRatings: z3.array(FixRatingZ).default([])
|
|
@@ -1501,14 +1501,14 @@ var init_fix = __esm({
|
|
|
1501
1501
|
);
|
|
1502
1502
|
FixQueryZ = z3.object({
|
|
1503
1503
|
__typename: z3.literal("fix").optional(),
|
|
1504
|
-
id: z3.
|
|
1504
|
+
id: z3.guid(),
|
|
1505
1505
|
sharedState: FixSharedStateZ,
|
|
1506
1506
|
modifiedBy: z3.string().nullable(),
|
|
1507
1507
|
gitBlameLogin: z3.string().nullable(),
|
|
1508
1508
|
safeIssueLanguage: z3.string(),
|
|
1509
1509
|
safeIssueType: z3.string(),
|
|
1510
1510
|
confidence: z3.number(),
|
|
1511
|
-
fixReportId: z3.
|
|
1511
|
+
fixReportId: z3.guid(),
|
|
1512
1512
|
isExpired: z3.boolean().default(false),
|
|
1513
1513
|
fixFiles: z3.array(
|
|
1514
1514
|
z3.object({
|
|
@@ -1516,23 +1516,23 @@ var init_fix = __esm({
|
|
|
1516
1516
|
})
|
|
1517
1517
|
),
|
|
1518
1518
|
numberOfVulnerabilityIssues: z3.number(),
|
|
1519
|
-
severityText: z3.
|
|
1519
|
+
severityText: z3.enum(Vulnerability_Severity_Enum),
|
|
1520
1520
|
vulnerabilityReportIssues: z3.array(
|
|
1521
1521
|
z3.object({
|
|
1522
1522
|
vendorIssueId: z3.string(),
|
|
1523
1523
|
issueLanguage: z3.string(),
|
|
1524
1524
|
parsedSeverity: ParsedSeverityZ,
|
|
1525
1525
|
sharedState: z3.object({
|
|
1526
|
-
id: z3.
|
|
1526
|
+
id: z3.guid(),
|
|
1527
1527
|
isArchived: z3.boolean(),
|
|
1528
|
-
ticketIntegrationId: z3.
|
|
1528
|
+
ticketIntegrationId: z3.guid().nullable()
|
|
1529
1529
|
}).nullable()
|
|
1530
1530
|
})
|
|
1531
1531
|
),
|
|
1532
1532
|
patchAndQuestions: PatchAndQuestionsZ,
|
|
1533
|
-
effortToApplyFix: z3.
|
|
1533
|
+
effortToApplyFix: z3.enum(Effort_To_Apply_Fix_Enum).nullable()
|
|
1534
1534
|
});
|
|
1535
|
-
FixPartsForFixScreenZ = FixQueryZ.
|
|
1535
|
+
FixPartsForFixScreenZ = FixQueryZ.extend(
|
|
1536
1536
|
z3.object({
|
|
1537
1537
|
vulnerabilityReportIssues: z3.array(
|
|
1538
1538
|
z3.object({
|
|
@@ -1542,7 +1542,7 @@ var init_fix = __esm({
|
|
|
1542
1542
|
sharedState: IssueSharedStateZ
|
|
1543
1543
|
})
|
|
1544
1544
|
)
|
|
1545
|
-
})
|
|
1545
|
+
}).shape
|
|
1546
1546
|
);
|
|
1547
1547
|
}
|
|
1548
1548
|
});
|
|
@@ -1556,10 +1556,10 @@ var init_analysis = __esm({
|
|
|
1556
1556
|
init_client_generates();
|
|
1557
1557
|
init_client_generates();
|
|
1558
1558
|
FixPageFixReportZ = z4.object({
|
|
1559
|
-
id: z4.
|
|
1559
|
+
id: z4.guid(),
|
|
1560
1560
|
analysisUrl: z4.string(),
|
|
1561
1561
|
createdOn: z4.string(),
|
|
1562
|
-
state: z4.
|
|
1562
|
+
state: z4.enum(Fix_Report_State_Enum),
|
|
1563
1563
|
repo: z4.object({
|
|
1564
1564
|
name: z4.string().nullable(),
|
|
1565
1565
|
originalUrl: z4.string(),
|
|
@@ -1576,12 +1576,12 @@ var init_analysis = __esm({
|
|
|
1576
1576
|
}
|
|
1577
1577
|
),
|
|
1578
1578
|
vulnerabilityReport: z4.object({
|
|
1579
|
-
id: z4.
|
|
1580
|
-
vendor: z4.
|
|
1581
|
-
computedVendor: z4.
|
|
1582
|
-
projectId: z4.
|
|
1579
|
+
id: z4.guid(),
|
|
1580
|
+
vendor: z4.enum(Vulnerability_Report_Vendor_Enum),
|
|
1581
|
+
computedVendor: z4.enum(Vulnerability_Report_Vendor_Enum),
|
|
1582
|
+
projectId: z4.guid(),
|
|
1583
1583
|
project: z4.object({
|
|
1584
|
-
organizationId: z4.
|
|
1584
|
+
organizationId: z4.guid()
|
|
1585
1585
|
})
|
|
1586
1586
|
})
|
|
1587
1587
|
});
|
|
@@ -1609,10 +1609,10 @@ var init_issue = __esm({
|
|
|
1609
1609
|
})
|
|
1610
1610
|
});
|
|
1611
1611
|
VulnerabilityReportIssueSharedStateZ = z5.object({
|
|
1612
|
-
id: z5.
|
|
1612
|
+
id: z5.guid(),
|
|
1613
1613
|
createdAt: z5.string(),
|
|
1614
1614
|
isArchived: z5.boolean(),
|
|
1615
|
-
ticketIntegrationId: z5.
|
|
1615
|
+
ticketIntegrationId: z5.guid().nullable(),
|
|
1616
1616
|
ticketIntegrations: z5.array(
|
|
1617
1617
|
z5.object({
|
|
1618
1618
|
url: z5.string()
|
|
@@ -1621,12 +1621,12 @@ var init_issue = __esm({
|
|
|
1621
1621
|
issueRatings: z5.array(VulnerabilityReportIssueRatingZ).default([])
|
|
1622
1622
|
}).nullish();
|
|
1623
1623
|
BaseIssuePartsZ = z5.object({
|
|
1624
|
-
id: z5.
|
|
1624
|
+
id: z5.guid(),
|
|
1625
1625
|
safeIssueType: z5.string(),
|
|
1626
1626
|
safeIssueLanguage: z5.string(),
|
|
1627
1627
|
createdAt: z5.string(),
|
|
1628
1628
|
parsedSeverity: ParsedSeverityZ,
|
|
1629
|
-
category: z5.
|
|
1629
|
+
category: z5.enum(Vulnerability_Report_Issue_Category_Enum),
|
|
1630
1630
|
extraData: z5.object({
|
|
1631
1631
|
missing_files: z5.string().array().nullish(),
|
|
1632
1632
|
error_files: z5.string().array().nullish(),
|
|
@@ -1634,7 +1634,7 @@ var init_issue = __esm({
|
|
|
1634
1634
|
}),
|
|
1635
1635
|
vulnerabilityReportIssueTags: z5.array(
|
|
1636
1636
|
z5.object({
|
|
1637
|
-
tag: z5.
|
|
1637
|
+
tag: z5.enum(Vulnerability_Report_Issue_Tag_Enum)
|
|
1638
1638
|
})
|
|
1639
1639
|
),
|
|
1640
1640
|
codeNodes: z5.array(
|
|
@@ -1674,7 +1674,7 @@ var init_issue = __esm({
|
|
|
1674
1674
|
})
|
|
1675
1675
|
}).nullish(),
|
|
1676
1676
|
sharedState: VulnerabilityReportIssueSharedStateZ,
|
|
1677
|
-
unfixableId: z5.
|
|
1677
|
+
unfixableId: z5.guid().nullish()
|
|
1678
1678
|
});
|
|
1679
1679
|
FalsePositivePartsZ = z5.object({
|
|
1680
1680
|
extraContext: z5.array(z5.object({ key: z5.string(), value: z5.string() })),
|
|
@@ -1684,20 +1684,20 @@ var init_issue = __esm({
|
|
|
1684
1684
|
extraContext: z5.array(z5.object({ key: z5.string(), value: z5.string() })),
|
|
1685
1685
|
fixDescription: z5.string()
|
|
1686
1686
|
});
|
|
1687
|
-
IssuePartsWithFixZ = BaseIssuePartsZ.
|
|
1687
|
+
IssuePartsWithFixZ = BaseIssuePartsZ.extend(
|
|
1688
1688
|
z5.object({
|
|
1689
1689
|
category: z5.literal("Irrelevant" /* Irrelevant */),
|
|
1690
1690
|
fix: FixPartsForFixScreenZ.nullish()
|
|
1691
|
-
})
|
|
1691
|
+
}).shape
|
|
1692
1692
|
);
|
|
1693
|
-
IssuePartsFpZ = BaseIssuePartsZ.
|
|
1693
|
+
IssuePartsFpZ = BaseIssuePartsZ.extend(
|
|
1694
1694
|
z5.object({
|
|
1695
1695
|
category: z5.literal("FalsePositive" /* FalsePositive */),
|
|
1696
|
-
fpId: z5.
|
|
1696
|
+
fpId: z5.guid(),
|
|
1697
1697
|
getFalsePositive: FalsePositivePartsZ
|
|
1698
|
-
})
|
|
1698
|
+
}).shape
|
|
1699
1699
|
);
|
|
1700
|
-
GeneralIssueZ = BaseIssuePartsZ.
|
|
1700
|
+
GeneralIssueZ = BaseIssuePartsZ.extend(
|
|
1701
1701
|
z5.object({
|
|
1702
1702
|
category: z5.union([
|
|
1703
1703
|
z5.literal("NoFix" /* NoFix */),
|
|
@@ -1707,7 +1707,7 @@ var init_issue = __esm({
|
|
|
1707
1707
|
z5.literal("Pending" /* Pending */)
|
|
1708
1708
|
]),
|
|
1709
1709
|
getUnfixable: UnfixablePartsZ.nullish()
|
|
1710
|
-
})
|
|
1710
|
+
}).shape
|
|
1711
1711
|
);
|
|
1712
1712
|
IssuePartsZ = z5.union([
|
|
1713
1713
|
IssuePartsFpZ,
|
|
@@ -1718,10 +1718,10 @@ var init_issue = __esm({
|
|
|
1718
1718
|
currentIndex: z5.number(),
|
|
1719
1719
|
totalIssues: z5.number(),
|
|
1720
1720
|
nextIssue: z5.object({
|
|
1721
|
-
id: z5.
|
|
1721
|
+
id: z5.guid()
|
|
1722
1722
|
}).nullish(),
|
|
1723
1723
|
prevIssue: z5.object({
|
|
1724
|
-
id: z5.
|
|
1724
|
+
id: z5.guid()
|
|
1725
1725
|
}).nullish()
|
|
1726
1726
|
});
|
|
1727
1727
|
GetIssueScreenDataZ = z5.object({
|
|
@@ -1805,29 +1805,29 @@ var init_types = __esm({
|
|
|
1805
1805
|
init_issue();
|
|
1806
1806
|
init_shared();
|
|
1807
1807
|
OrganizationScreenQueryParamsZ = z7.object({
|
|
1808
|
-
organizationId: z7.
|
|
1808
|
+
organizationId: z7.guid()
|
|
1809
1809
|
});
|
|
1810
1810
|
ProjectPageQueryParamsZ = z7.object({
|
|
1811
|
-
organizationId: z7.
|
|
1812
|
-
projectId: z7.
|
|
1811
|
+
organizationId: z7.guid(),
|
|
1812
|
+
projectId: z7.guid()
|
|
1813
1813
|
});
|
|
1814
1814
|
AnalysisPageQueryParamsZ = ProjectPageQueryParamsZ.extend({
|
|
1815
|
-
reportId: z7.
|
|
1815
|
+
reportId: z7.guid()
|
|
1816
1816
|
});
|
|
1817
1817
|
FixPageQueryParamsZ = AnalysisPageQueryParamsZ.extend({
|
|
1818
|
-
fixId: z7.
|
|
1818
|
+
fixId: z7.guid()
|
|
1819
1819
|
});
|
|
1820
1820
|
IssuePageQueryParamsZ = AnalysisPageQueryParamsZ.extend({
|
|
1821
|
-
issueId: z7.
|
|
1821
|
+
issueId: z7.guid()
|
|
1822
1822
|
});
|
|
1823
1823
|
CliLoginPageQueryParamsZ = z7.object({
|
|
1824
|
-
loginId: z7.
|
|
1824
|
+
loginId: z7.guid()
|
|
1825
1825
|
});
|
|
1826
1826
|
AnalysisReportDigestedZ = z7.object({
|
|
1827
|
-
id: z7.
|
|
1828
|
-
state: z7.
|
|
1827
|
+
id: z7.guid(),
|
|
1828
|
+
state: z7.enum(Fix_Report_State_Enum),
|
|
1829
1829
|
vulnerabilityReport: z7.object({
|
|
1830
|
-
reportSummaryUrl: z7.
|
|
1830
|
+
reportSummaryUrl: z7.url().nullish(),
|
|
1831
1831
|
scanDate: z7.string().nullable(),
|
|
1832
1832
|
supported: z7.object({
|
|
1833
1833
|
aggregate: z7.object({
|
|
@@ -1839,17 +1839,17 @@ var init_types = __esm({
|
|
|
1839
1839
|
count: z7.number()
|
|
1840
1840
|
})
|
|
1841
1841
|
}),
|
|
1842
|
-
vendor: z7.
|
|
1842
|
+
vendor: z7.enum(Vulnerability_Report_Vendor_Enum),
|
|
1843
1843
|
project: z7.object({
|
|
1844
|
-
organizationId: z7.
|
|
1844
|
+
organizationId: z7.guid()
|
|
1845
1845
|
})
|
|
1846
1846
|
})
|
|
1847
1847
|
});
|
|
1848
1848
|
IssueSharedStateZ2 = z7.object({
|
|
1849
|
-
id: z7.
|
|
1849
|
+
id: z7.guid(),
|
|
1850
1850
|
createdAt: z7.string(),
|
|
1851
1851
|
isArchived: z7.boolean(),
|
|
1852
|
-
ticketIntegrationId: z7.
|
|
1852
|
+
ticketIntegrationId: z7.guid().nullable(),
|
|
1853
1853
|
ticketIntegrations: z7.array(
|
|
1854
1854
|
z7.object({
|
|
1855
1855
|
url: z7.string()
|
|
@@ -1858,7 +1858,7 @@ var init_types = __esm({
|
|
|
1858
1858
|
}).nullable();
|
|
1859
1859
|
ReportQueryResultZ = z7.object({
|
|
1860
1860
|
fixReport_by_pk: z7.object({
|
|
1861
|
-
id: z7.
|
|
1861
|
+
id: z7.guid(),
|
|
1862
1862
|
analysisUrl: z7.string(),
|
|
1863
1863
|
fixesCommitted: z7.object({
|
|
1864
1864
|
aggregate: z7.object({ count: z7.number() })
|
|
@@ -1877,19 +1877,19 @@ var init_types = __esm({
|
|
|
1877
1877
|
vulnerabilitySeverities: z7.record(z7.string(), z7.number()).nullable(),
|
|
1878
1878
|
createdOn: z7.string(),
|
|
1879
1879
|
expirationOn: z7.string().nullable(),
|
|
1880
|
-
state: z7.
|
|
1880
|
+
state: z7.enum(Fix_Report_State_Enum),
|
|
1881
1881
|
failReason: z7.string().nullable(),
|
|
1882
1882
|
candidateToRerun: z7.boolean(),
|
|
1883
1883
|
fixes: z7.array(
|
|
1884
1884
|
z7.object({
|
|
1885
|
-
id: z7.
|
|
1885
|
+
id: z7.guid(),
|
|
1886
1886
|
safeIssueLanguage: z7.string(),
|
|
1887
1887
|
safeIssueType: z7.string(),
|
|
1888
1888
|
confidence: z7.number(),
|
|
1889
|
-
effortToApplyFix: z7.
|
|
1889
|
+
effortToApplyFix: z7.enum(Effort_To_Apply_Fix_Enum).nullable(),
|
|
1890
1890
|
modifiedBy: z7.string().nullable(),
|
|
1891
1891
|
gitBlameLogin: z7.string().nullable(),
|
|
1892
|
-
fixReportId: z7.
|
|
1892
|
+
fixReportId: z7.guid(),
|
|
1893
1893
|
filePaths: z7.array(
|
|
1894
1894
|
z7.object({
|
|
1895
1895
|
fileRepoRelativePath: z7.string()
|
|
@@ -1897,13 +1897,13 @@ var init_types = __esm({
|
|
|
1897
1897
|
),
|
|
1898
1898
|
sharedState: FixSharedStateZ,
|
|
1899
1899
|
numberOfVulnerabilityIssues: z7.number(),
|
|
1900
|
-
severityText: z7.
|
|
1900
|
+
severityText: z7.enum(Vulnerability_Severity_Enum),
|
|
1901
1901
|
vulnerabilityReportIssues: z7.array(
|
|
1902
1902
|
z7.object({
|
|
1903
|
-
id: z7.
|
|
1903
|
+
id: z7.guid(),
|
|
1904
1904
|
issueType: z7.string(),
|
|
1905
1905
|
issueLanguage: z7.string(),
|
|
1906
|
-
category: z7.
|
|
1906
|
+
category: z7.enum(Vulnerability_Report_Issue_Category_Enum),
|
|
1907
1907
|
sharedState: IssueSharedStateZ2
|
|
1908
1908
|
})
|
|
1909
1909
|
)
|
|
@@ -1930,19 +1930,19 @@ var init_types = __esm({
|
|
|
1930
1930
|
})
|
|
1931
1931
|
}),
|
|
1932
1932
|
vulnerabilityReport: z7.object({
|
|
1933
|
-
id: z7.
|
|
1934
|
-
reportSummaryUrl: z7.
|
|
1935
|
-
computedVendor: z7.
|
|
1936
|
-
vendor: z7.
|
|
1933
|
+
id: z7.guid(),
|
|
1934
|
+
reportSummaryUrl: z7.url().nullish(),
|
|
1935
|
+
computedVendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
|
|
1936
|
+
vendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
|
|
1937
1937
|
issuesWithKnownLanguage: z7.number().nullable(),
|
|
1938
1938
|
scanDate: z7.string().nullable(),
|
|
1939
|
-
vendorReportId: z7.
|
|
1940
|
-
projectId: z7.
|
|
1939
|
+
vendorReportId: z7.guid().nullable(),
|
|
1940
|
+
projectId: z7.guid(),
|
|
1941
1941
|
project: z7.object({
|
|
1942
|
-
organizationId: z7.
|
|
1942
|
+
organizationId: z7.guid()
|
|
1943
1943
|
}),
|
|
1944
1944
|
file: z7.object({
|
|
1945
|
-
id: z7.
|
|
1945
|
+
id: z7.guid(),
|
|
1946
1946
|
path: z7.string()
|
|
1947
1947
|
}).nullable(),
|
|
1948
1948
|
pending: z7.object({
|
|
@@ -1986,7 +1986,7 @@ var init_types = __esm({
|
|
|
1986
1986
|
})
|
|
1987
1987
|
}),
|
|
1988
1988
|
vulnerabilityReportIssues: z7.object({
|
|
1989
|
-
id: z7.
|
|
1989
|
+
id: z7.guid(),
|
|
1990
1990
|
extraData: z7.object({
|
|
1991
1991
|
missing_files: z7.string().array().nullish(),
|
|
1992
1992
|
large_files: z7.string().array().nullish(),
|
|
@@ -1998,21 +1998,21 @@ var init_types = __esm({
|
|
|
1998
1998
|
})
|
|
1999
1999
|
});
|
|
2000
2000
|
ReportFixesQueryFixZ = z7.object({
|
|
2001
|
-
id: z7.
|
|
2001
|
+
id: z7.guid(),
|
|
2002
2002
|
sharedState: FixSharedStateZ,
|
|
2003
2003
|
confidence: z7.number(),
|
|
2004
2004
|
gitBlameLogin: z7.string().nullable(),
|
|
2005
|
-
effortToApplyFix: z7.
|
|
2005
|
+
effortToApplyFix: z7.enum(Effort_To_Apply_Fix_Enum).nullable(),
|
|
2006
2006
|
safeIssueLanguage: z7.string(),
|
|
2007
2007
|
safeIssueType: z7.string(),
|
|
2008
|
-
fixReportId: z7.
|
|
2008
|
+
fixReportId: z7.guid(),
|
|
2009
2009
|
filePaths: z7.array(
|
|
2010
2010
|
z7.object({
|
|
2011
2011
|
fileRepoRelativePath: z7.string()
|
|
2012
2012
|
})
|
|
2013
2013
|
),
|
|
2014
2014
|
numberOfVulnerabilityIssues: z7.number(),
|
|
2015
|
-
severityText: z7.
|
|
2015
|
+
severityText: z7.enum(Vulnerability_Severity_Enum),
|
|
2016
2016
|
vulnerabilityReportIssues: z7.array(
|
|
2017
2017
|
z7.object({
|
|
2018
2018
|
issueType: z7.string(),
|
|
@@ -2022,9 +2022,9 @@ var init_types = __esm({
|
|
|
2022
2022
|
).min(1)
|
|
2023
2023
|
});
|
|
2024
2024
|
BaseVulnerabilityReportIssueZ = z7.object({
|
|
2025
|
-
id: z7.
|
|
2025
|
+
id: z7.guid(),
|
|
2026
2026
|
createdAt: z7.string(),
|
|
2027
|
-
state: z7.
|
|
2027
|
+
state: z7.enum(Vulnerability_Report_Issue_State_Enum),
|
|
2028
2028
|
safeIssueType: z7.string(),
|
|
2029
2029
|
safeIssueLanguage: z7.string(),
|
|
2030
2030
|
extraData: z7.object({
|
|
@@ -2035,7 +2035,7 @@ var init_types = __esm({
|
|
|
2035
2035
|
}),
|
|
2036
2036
|
fix: ReportFixesQueryFixZ.nullable(),
|
|
2037
2037
|
falsePositive: z7.object({
|
|
2038
|
-
id: z7.
|
|
2038
|
+
id: z7.guid()
|
|
2039
2039
|
}).nullable(),
|
|
2040
2040
|
parsedSeverity: ParsedSeverityZ,
|
|
2041
2041
|
severity: z7.string(),
|
|
@@ -2048,20 +2048,20 @@ var init_types = __esm({
|
|
|
2048
2048
|
),
|
|
2049
2049
|
sharedState: VulnerabilityReportIssueSharedStateZ
|
|
2050
2050
|
});
|
|
2051
|
-
VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.
|
|
2051
|
+
VulnerabilityReportIssueZ = BaseVulnerabilityReportIssueZ.extend(
|
|
2052
2052
|
z7.object({
|
|
2053
2053
|
codeNodes: z7.array(z7.object({ path: z7.string() }))
|
|
2054
|
-
})
|
|
2054
|
+
}).shape
|
|
2055
2055
|
);
|
|
2056
|
-
VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.
|
|
2056
|
+
VulnerabilityReportIssueWithCodeFilePathZ = BaseVulnerabilityReportIssueZ.extend(
|
|
2057
2057
|
z7.object({
|
|
2058
2058
|
codeFilePath: z7.string().nullable()
|
|
2059
|
-
})
|
|
2059
|
+
}).shape
|
|
2060
2060
|
);
|
|
2061
2061
|
GetReportIssuesQueryZ = z7.object({
|
|
2062
2062
|
fixReport: z7.object({
|
|
2063
2063
|
vulnerabilityReport: z7.object({
|
|
2064
|
-
id: z7.
|
|
2064
|
+
id: z7.guid(),
|
|
2065
2065
|
lastIssueUpdatedAt: z7.string(),
|
|
2066
2066
|
vulnerabilityReportIssues_aggregate: z7.object({
|
|
2067
2067
|
aggregate: z7.object({ count: z7.number() })
|
|
@@ -2076,7 +2076,7 @@ var init_types = __esm({
|
|
|
2076
2076
|
project_by_pk: z7.object({
|
|
2077
2077
|
vulnerabilityReports: z7.array(
|
|
2078
2078
|
z7.object({
|
|
2079
|
-
fixReport: z7.object({ id: z7.
|
|
2079
|
+
fixReport: z7.object({ id: z7.guid() }).nullable()
|
|
2080
2080
|
})
|
|
2081
2081
|
)
|
|
2082
2082
|
})
|
|
@@ -2086,8 +2086,8 @@ var init_types = __esm({
|
|
|
2086
2086
|
fix_by_pk: FixPartsForFixScreenZ,
|
|
2087
2087
|
fixesWithSameIssueType: z7.array(
|
|
2088
2088
|
z7.object({
|
|
2089
|
-
id: z7.
|
|
2090
|
-
sharedState: z7.object({ state: z7.
|
|
2089
|
+
id: z7.guid(),
|
|
2090
|
+
sharedState: z7.object({ state: z7.enum(Fix_State_Enum) }).nullable().default({ state: "Ready" /* Ready */ })
|
|
2091
2091
|
})
|
|
2092
2092
|
),
|
|
2093
2093
|
relevantIssue: IssuePartsZ.nullish()
|
|
@@ -2124,8 +2124,8 @@ var init_types = __esm({
|
|
|
2124
2124
|
}).nullish();
|
|
2125
2125
|
GetFixReportStatsQueryZ = z7.object({
|
|
2126
2126
|
fixReport_by_pk: z7.object({
|
|
2127
|
-
id: z7.
|
|
2128
|
-
vulnerabilitySeverities: z7.
|
|
2127
|
+
id: z7.guid(),
|
|
2128
|
+
vulnerabilitySeverities: z7.partialRecord(z7.enum(Vulnerability_Severity_Enum), z7.number()).nullable(),
|
|
2129
2129
|
vulnerabilityReportIrrelevantIssuesCount: z7.object({
|
|
2130
2130
|
vulnerabilityReportIssues_aggregate: z7.object({
|
|
2131
2131
|
aggregate: z7.object({ count: z7.number() })
|
|
@@ -2134,15 +2134,16 @@ var init_types = __esm({
|
|
|
2134
2134
|
}).nullable()
|
|
2135
2135
|
});
|
|
2136
2136
|
ProjectVulnerabilityReport = z7.object({
|
|
2137
|
-
id: z7.
|
|
2137
|
+
id: z7.guid(),
|
|
2138
2138
|
name: z7.string().nullable(),
|
|
2139
|
-
vendor: z7.
|
|
2140
|
-
computedVendor: z7.
|
|
2139
|
+
vendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
|
|
2140
|
+
computedVendor: z7.enum(Vulnerability_Report_Vendor_Enum).nullable(),
|
|
2141
2141
|
fixReport: z7.object({
|
|
2142
|
-
id: z7.
|
|
2142
|
+
id: z7.guid(),
|
|
2143
2143
|
createdOn: z7.string(),
|
|
2144
2144
|
issueTypes: z7.record(z7.string(), z7.number()).nullable(),
|
|
2145
|
-
|
|
2145
|
+
// reports only contain the languages actually found in the repo
|
|
2146
|
+
issueLanguages: z7.partialRecord(z7.enum(IssueLanguage_Enum), z7.number()).nullable(),
|
|
2146
2147
|
repo: z7.object({
|
|
2147
2148
|
originalUrl: z7.string(),
|
|
2148
2149
|
reference: z7.string(),
|
|
@@ -2157,7 +2158,7 @@ var init_types = __esm({
|
|
|
2157
2158
|
createdByUser: z7.object({
|
|
2158
2159
|
email: z7.string()
|
|
2159
2160
|
}).nullable(),
|
|
2160
|
-
state: z7.
|
|
2161
|
+
state: z7.enum(Fix_Report_State_Enum),
|
|
2161
2162
|
expirationOn: z7.string()
|
|
2162
2163
|
})
|
|
2163
2164
|
});
|
|
@@ -2166,7 +2167,7 @@ var init_types = __esm({
|
|
|
2166
2167
|
id: z7.string(),
|
|
2167
2168
|
projects: z7.array(
|
|
2168
2169
|
z7.object({
|
|
2169
|
-
id: z7.
|
|
2170
|
+
id: z7.guid(),
|
|
2170
2171
|
name: z7.string(),
|
|
2171
2172
|
numberOfUniqueRepos: z7.number()
|
|
2172
2173
|
})
|
|
@@ -2175,16 +2176,16 @@ var init_types = __esm({
|
|
|
2175
2176
|
});
|
|
2176
2177
|
ProjectPageQueryResultZ = z7.object({
|
|
2177
2178
|
name: z7.string(),
|
|
2178
|
-
id: z7.
|
|
2179
|
+
id: z7.guid(),
|
|
2179
2180
|
isDefault: z7.boolean().default(false),
|
|
2180
|
-
organizationId: z7.
|
|
2181
|
+
organizationId: z7.guid(),
|
|
2181
2182
|
vulnerabilityReports: z7.array(ProjectVulnerabilityReport),
|
|
2182
2183
|
autoPrIncludeAiFixes: z7.preprocess(
|
|
2183
2184
|
(val) => val === null || val === void 0 ? false : val,
|
|
2184
2185
|
z7.boolean()
|
|
2185
2186
|
),
|
|
2186
2187
|
projectIssueTypeSettings: z7.array(
|
|
2187
|
-
IssueTypeSettingZ.
|
|
2188
|
+
IssueTypeSettingZ.extend(z7.object({ id: z7.string() }).shape)
|
|
2188
2189
|
)
|
|
2189
2190
|
});
|
|
2190
2191
|
GetProjectMembersDataZ = z7.object({
|
|
@@ -2195,21 +2196,21 @@ var init_types = __esm({
|
|
|
2195
2196
|
z7.object({
|
|
2196
2197
|
projectToRole: z7.object({
|
|
2197
2198
|
projectRole: z7.object({
|
|
2198
|
-
type: z7.
|
|
2199
|
+
type: z7.enum(Project_Role_Type_Enum)
|
|
2199
2200
|
})
|
|
2200
2201
|
}),
|
|
2201
2202
|
user: z7.object({
|
|
2202
|
-
id: z7.
|
|
2203
|
+
id: z7.guid(),
|
|
2203
2204
|
picture: z7.string().nullable().optional(),
|
|
2204
2205
|
name: z7.string().nullish(),
|
|
2205
|
-
email: z7.
|
|
2206
|
+
email: z7.email()
|
|
2206
2207
|
})
|
|
2207
2208
|
})
|
|
2208
2209
|
)
|
|
2209
2210
|
})
|
|
2210
2211
|
});
|
|
2211
2212
|
RepoArgsZ = z7.object({
|
|
2212
|
-
originalUrl: z7.
|
|
2213
|
+
originalUrl: z7.url(),
|
|
2213
2214
|
branch: z7.string(),
|
|
2214
2215
|
commitSha: z7.string()
|
|
2215
2216
|
});
|
|
@@ -2914,8 +2915,8 @@ var init_gitBlameTypes = __esm({
|
|
|
2914
2915
|
userEmail: z14.string().optional()
|
|
2915
2916
|
});
|
|
2916
2917
|
VulnerabilityAttributionMessageZ = z14.object({
|
|
2917
|
-
fixReportId: z14.
|
|
2918
|
-
vulnerabilityAttributionRequestId: z14.
|
|
2918
|
+
fixReportId: z14.guid(),
|
|
2919
|
+
vulnerabilityAttributionRequestId: z14.guid(),
|
|
2919
2920
|
userEmail: z14.string()
|
|
2920
2921
|
});
|
|
2921
2922
|
}
|
|
@@ -4547,7 +4548,7 @@ var scmTypeToScmLibScmType = {
|
|
|
4547
4548
|
var GetReferenceResultZ = z9.object({
|
|
4548
4549
|
date: z9.date().optional(),
|
|
4549
4550
|
sha: z9.string(),
|
|
4550
|
-
type: z9.
|
|
4551
|
+
type: z9.enum(ReferenceType)
|
|
4551
4552
|
});
|
|
4552
4553
|
|
|
4553
4554
|
// src/features/analysis/scm/utils/scm.ts
|
|
@@ -4694,7 +4695,7 @@ function shouldValidateUrl(repoUrl) {
|
|
|
4694
4695
|
return repoUrl && isUrlHasPath(repoUrl);
|
|
4695
4696
|
}
|
|
4696
4697
|
function isBrokerUrl(url) {
|
|
4697
|
-
return z10.
|
|
4698
|
+
return z10.guid().safeParse(new URL(url).host).success;
|
|
4698
4699
|
}
|
|
4699
4700
|
function buildAuthorizedRepoUrl(args) {
|
|
4700
4701
|
const { url, username, password } = args;
|
|
@@ -4730,7 +4731,7 @@ function getCloudScmLibTypeFromUrl(url) {
|
|
|
4730
4731
|
return void 0;
|
|
4731
4732
|
}
|
|
4732
4733
|
function getScmLibTypeFromScmType(scmType) {
|
|
4733
|
-
const parsedScmType = z10.
|
|
4734
|
+
const parsedScmType = z10.enum(ScmType).parse(scmType);
|
|
4734
4735
|
return scmTypeToScmLibScmType[parsedScmType];
|
|
4735
4736
|
}
|
|
4736
4737
|
function getScmConfig({
|
|
@@ -6480,7 +6481,7 @@ function getBitbucketSdk(params) {
|
|
|
6480
6481
|
async getDownloadUrl({ url, sha }) {
|
|
6481
6482
|
this.getReferenceData({ ref: sha, url });
|
|
6482
6483
|
const repoRes = await this.getRepo({ repoUrl: url });
|
|
6483
|
-
const parsedRepoUrl = z16.
|
|
6484
|
+
const parsedRepoUrl = z16.url().parse(repoRes.links?.html?.href);
|
|
6484
6485
|
return `${parsedRepoUrl}/get/${sha}.zip`;
|
|
6485
6486
|
},
|
|
6486
6487
|
async getPullRequest(params2) {
|
|
@@ -10367,7 +10368,7 @@ async function createScmLib({ url, accessToken, scmType, scmOrg }, {
|
|
|
10367
10368
|
if (e instanceof InvalidRepoUrlError && url) {
|
|
10368
10369
|
throw new RepoNoTokenAccessError(
|
|
10369
10370
|
"no access to repo",
|
|
10370
|
-
scmLibScmTypeToScmType[z20.
|
|
10371
|
+
scmLibScmTypeToScmType[z20.enum(ScmLibScmType).parse(scmType)]
|
|
10371
10372
|
);
|
|
10372
10373
|
}
|
|
10373
10374
|
console.error(`error validating scm: ${scmType} `, e);
|
|
@@ -11573,11 +11574,11 @@ var VulnerabilityReportIssueCodeNodeZ = z22.object({
|
|
|
11573
11574
|
startLine: z22.number(),
|
|
11574
11575
|
vulnerabilityReportIssue: z22.object({
|
|
11575
11576
|
fixId: z22.string(),
|
|
11576
|
-
category: z22.
|
|
11577
|
+
category: z22.enum(Vulnerability_Report_Issue_Category_Enum),
|
|
11577
11578
|
safeIssueType: z22.string(),
|
|
11578
11579
|
vulnerabilityReportIssueTags: z22.array(
|
|
11579
11580
|
z22.object({
|
|
11580
|
-
tag: z22.
|
|
11581
|
+
tag: z22.enum(Vulnerability_Report_Issue_Tag_Enum)
|
|
11581
11582
|
})
|
|
11582
11583
|
)
|
|
11583
11584
|
})
|
|
@@ -11587,9 +11588,9 @@ var VulnerabilityReportIssueNoFixCodeNodeZ = z22.object({
|
|
|
11587
11588
|
z22.object({
|
|
11588
11589
|
id: z22.string(),
|
|
11589
11590
|
fixId: z22.string().nullable(),
|
|
11590
|
-
category: z22.
|
|
11591
|
+
category: z22.enum(Vulnerability_Report_Issue_Category_Enum),
|
|
11591
11592
|
safeIssueType: z22.string(),
|
|
11592
|
-
fpId: z22.
|
|
11593
|
+
fpId: z22.guid().nullable(),
|
|
11593
11594
|
codeNodes: z22.array(
|
|
11594
11595
|
z22.object({
|
|
11595
11596
|
path: z22.string(),
|
|
@@ -11598,7 +11599,7 @@ var VulnerabilityReportIssueNoFixCodeNodeZ = z22.object({
|
|
|
11598
11599
|
),
|
|
11599
11600
|
vulnerabilityReportIssueTags: z22.array(
|
|
11600
11601
|
z22.object({
|
|
11601
|
-
tag: z22.
|
|
11602
|
+
tag: z22.enum(Vulnerability_Report_Issue_Tag_Enum)
|
|
11602
11603
|
})
|
|
11603
11604
|
)
|
|
11604
11605
|
})
|
|
@@ -13792,8 +13793,8 @@ function buildFixCommentBody({
|
|
|
13792
13793
|
const title = `# ${MobbIconMarkdown} ${issueType} fix is ready`;
|
|
13793
13794
|
const validFixParseRes = z24.object({
|
|
13794
13795
|
patchAndQuestions: PatchAndQuestionsZ,
|
|
13795
|
-
safeIssueLanguage: z24.
|
|
13796
|
-
severityText: z24.
|
|
13796
|
+
safeIssueLanguage: z24.enum(IssueLanguage_Enum),
|
|
13797
|
+
severityText: z24.enum(Vulnerability_Severity_Enum),
|
|
13797
13798
|
safeIssueType: SafeIssueTypeStringZ
|
|
13798
13799
|
}).safeParse(fix);
|
|
13799
13800
|
if (!validFixParseRes.success) {
|
|
@@ -15473,7 +15474,7 @@ async function waitForAnaysisAndReviewPr({
|
|
|
15473
15474
|
polling
|
|
15474
15475
|
}) {
|
|
15475
15476
|
const params = z27.object({
|
|
15476
|
-
repo: z27.
|
|
15477
|
+
repo: z27.url(),
|
|
15477
15478
|
githubActionToken: z27.string()
|
|
15478
15479
|
}).parse({ repo, githubActionToken });
|
|
15479
15480
|
const scm = await createScmLib(
|
|
@@ -15492,7 +15493,7 @@ async function waitForAnaysisAndReviewPr({
|
|
|
15492
15493
|
analysisId: analysisId2,
|
|
15493
15494
|
gqlClient,
|
|
15494
15495
|
scm,
|
|
15495
|
-
scanner: z27.
|
|
15496
|
+
scanner: z27.enum(SCANNERS).parse(scanner)
|
|
15496
15497
|
});
|
|
15497
15498
|
};
|
|
15498
15499
|
if (polling) {
|
|
@@ -15826,10 +15827,10 @@ Example:
|
|
|
15826
15827
|
throw new CliError(formattedErrorMessage);
|
|
15827
15828
|
}
|
|
15828
15829
|
var UrlZ = z28.string({
|
|
15829
|
-
|
|
15830
|
+
error: (issue) => issue.code === "invalid_type" ? `is not a valid ${Object.values(ScmType).join("/ ")} URL` : void 0
|
|
15830
15831
|
});
|
|
15831
15832
|
function validateOrganizationId(organizationId) {
|
|
15832
|
-
const orgIdValidation = z28.
|
|
15833
|
+
const orgIdValidation = z28.guid().nullish().safeParse(organizationId);
|
|
15833
15834
|
if (!orgIdValidation.success) {
|
|
15834
15835
|
throw new CliError(`organizationId: ${organizationId} is not a valid UUID`);
|
|
15835
15836
|
}
|
|
@@ -17976,7 +17977,7 @@ function createLogger(config2) {
|
|
|
17976
17977
|
|
|
17977
17978
|
// src/features/claude_code/hook_logger.ts
|
|
17978
17979
|
var DD_RUM_TOKEN = true ? "pubf59c0182545bfb4c299175119f1abf9b" : "";
|
|
17979
|
-
var CLI_VERSION = true ? "1.4.
|
|
17980
|
+
var CLI_VERSION = true ? "1.4.43" : "unknown";
|
|
17980
17981
|
var NAMESPACE = "mobbdev-claude-code-hook-logs";
|
|
17981
17982
|
var claudeCodeVersion;
|
|
17982
17983
|
function buildDdTags() {
|
|
@@ -19512,26 +19513,26 @@ var ScanAndFixVulnerabilitiesToolSchema = z29.object({
|
|
|
19512
19513
|
path: z29.string()
|
|
19513
19514
|
});
|
|
19514
19515
|
var VulnerabilityReportIssueTagSchema = z29.object({
|
|
19515
|
-
vulnerability_report_issue_tag_value: z29.
|
|
19516
|
+
vulnerability_report_issue_tag_value: z29.enum(
|
|
19516
19517
|
Vulnerability_Report_Issue_Tag_Enum
|
|
19517
19518
|
)
|
|
19518
19519
|
});
|
|
19519
19520
|
var VulnerabilityReportIssueSchema = z29.object({
|
|
19520
19521
|
category: z29.any().optional().nullable(),
|
|
19521
19522
|
parsedIssueType: SafeIssueTypeStringZ.nullable().optional(),
|
|
19522
|
-
parsedSeverity: z29.
|
|
19523
|
+
parsedSeverity: z29.enum(Vulnerability_Severity_Enum).nullable().optional(),
|
|
19523
19524
|
vulnerabilityReportIssueTags: z29.array(VulnerabilityReportIssueTagSchema)
|
|
19524
19525
|
});
|
|
19525
19526
|
var SharedStateSchema = z29.object({
|
|
19526
19527
|
__typename: z29.literal("fix_shared_state").optional(),
|
|
19527
|
-
id: z29.any(),
|
|
19528
|
+
id: z29.any().optional(),
|
|
19528
19529
|
// GraphQL uses `any` type for UUID
|
|
19529
19530
|
downloadedBy: z29.array(z29.any().nullable()).optional().nullable()
|
|
19530
19531
|
});
|
|
19531
19532
|
var UnstructuredFixExtraContextSchema = z29.object({
|
|
19532
19533
|
__typename: z29.literal("UnstructuredFixExtraContext").optional(),
|
|
19533
19534
|
key: z29.string(),
|
|
19534
|
-
value: z29.any()
|
|
19535
|
+
value: z29.any().optional()
|
|
19535
19536
|
// GraphQL JSON type
|
|
19536
19537
|
});
|
|
19537
19538
|
var FixExtraContextResponseSchema = z29.object({
|
|
@@ -19545,7 +19546,7 @@ var FixQuestionSchema = z29.object({
|
|
|
19545
19546
|
name: z29.string(),
|
|
19546
19547
|
defaultValue: z29.string(),
|
|
19547
19548
|
value: z29.string().nullable().optional(),
|
|
19548
|
-
inputType: z29.
|
|
19549
|
+
inputType: z29.enum(FixQuestionInputType),
|
|
19549
19550
|
options: z29.array(z29.string()),
|
|
19550
19551
|
index: z29.number(),
|
|
19551
19552
|
// E-2015: analyzer-served question text. default('') so a query that omits it
|
|
@@ -19568,7 +19569,7 @@ var GetFixNoFixErrorSchema = z29.object({
|
|
|
19568
19569
|
var PatchAndQuestionsSchema = z29.union([FixDataSchema, GetFixNoFixErrorSchema]);
|
|
19569
19570
|
var McpFixSchema = z29.object({
|
|
19570
19571
|
__typename: z29.literal("fix").optional(),
|
|
19571
|
-
id: z29.any(),
|
|
19572
|
+
id: z29.any().optional(),
|
|
19572
19573
|
// GraphQL uses `any` type for UUID
|
|
19573
19574
|
confidence: z29.number(),
|
|
19574
19575
|
safeIssueType: z29.string().nullable(),
|
|
@@ -19603,13 +19604,13 @@ var RepoSchema = z29.object({
|
|
|
19603
19604
|
originalUrl: z29.string()
|
|
19604
19605
|
});
|
|
19605
19606
|
var ProjectSchema = z29.object({
|
|
19606
|
-
id: z29.any(),
|
|
19607
|
+
id: z29.any().optional(),
|
|
19607
19608
|
// GraphQL uses `any` type for UUID
|
|
19608
|
-
organizationId: z29.any()
|
|
19609
|
+
organizationId: z29.any().optional()
|
|
19609
19610
|
// GraphQL uses `any` type for UUID
|
|
19610
19611
|
});
|
|
19611
19612
|
var VulnerabilityReportSchema = z29.object({
|
|
19612
|
-
scanDate: z29.any().
|
|
19613
|
+
scanDate: z29.any().nullish(),
|
|
19613
19614
|
// GraphQL uses `any` type for timestamp
|
|
19614
19615
|
vendor: z29.string(),
|
|
19615
19616
|
// GraphQL generates as string, not enum
|
|
@@ -19621,12 +19622,12 @@ var VulnerabilityReportSchema = z29.object({
|
|
|
19621
19622
|
});
|
|
19622
19623
|
var FixReportSummarySchema = z29.object({
|
|
19623
19624
|
__typename: z29.literal("fixReport").optional(),
|
|
19624
|
-
id: z29.any(),
|
|
19625
|
+
id: z29.any().optional(),
|
|
19625
19626
|
// GraphQL uses `any` type for UUID
|
|
19626
|
-
createdOn: z29.any(),
|
|
19627
|
+
createdOn: z29.any().optional(),
|
|
19627
19628
|
// GraphQL uses `any` type for timestamp
|
|
19628
19629
|
repo: RepoSchema.nullable(),
|
|
19629
|
-
issueTypes: z29.any().
|
|
19630
|
+
issueTypes: z29.any().nullish(),
|
|
19630
19631
|
// GraphQL uses `any` type for JSON
|
|
19631
19632
|
CRITICAL: FixAggregateSchema,
|
|
19632
19633
|
HIGH: FixAggregateSchema,
|
|
@@ -19641,9 +19642,9 @@ var FixReportSummarySchema = z29.object({
|
|
|
19641
19642
|
});
|
|
19642
19643
|
var ExpiredReportSchema = z29.object({
|
|
19643
19644
|
__typename: z29.literal("fixReport").optional(),
|
|
19644
|
-
id: z29.any(),
|
|
19645
|
+
id: z29.any().optional(),
|
|
19645
19646
|
// GraphQL uses `any` type for UUID
|
|
19646
|
-
expirationOn: z29.any().
|
|
19647
|
+
expirationOn: z29.any().nullish()
|
|
19647
19648
|
// GraphQL uses `any` type for timestamp
|
|
19648
19649
|
});
|
|
19649
19650
|
var GetLatestReportByRepoUrlResponseSchema = z29.object({
|
|
@@ -21492,9 +21493,10 @@ var BasePrompt = class {
|
|
|
21492
21493
|
return this.argumentsValidationSchema.parse(argsToValidate);
|
|
21493
21494
|
} catch (error) {
|
|
21494
21495
|
if (error instanceof z30.ZodError) {
|
|
21495
|
-
const errorDetails = error.
|
|
21496
|
+
const errorDetails = error.issues.map((e) => {
|
|
21496
21497
|
const fieldPath = e.path.length > 0 ? e.path.join(".") : "root";
|
|
21497
|
-
const
|
|
21498
|
+
const isMissing = e.code === "invalid_type" && e.message.endsWith("received undefined");
|
|
21499
|
+
const message = isMissing ? `Missing required argument '${fieldPath}'` : `Invalid value for '${fieldPath}': ${e.message}`;
|
|
21498
21500
|
return message;
|
|
21499
21501
|
});
|
|
21500
21502
|
const errorMessage3 = `Invalid arguments: ${errorDetails.join(", ")}`;
|
|
@@ -23242,9 +23244,10 @@ var BaseTool = class {
|
|
|
23242
23244
|
return this.inputValidationSchema.parse(args);
|
|
23243
23245
|
} catch (error) {
|
|
23244
23246
|
if (error instanceof z36.ZodError) {
|
|
23245
|
-
const errorDetails = error.
|
|
23247
|
+
const errorDetails = error.issues.map((e) => {
|
|
23246
23248
|
const fieldPath = e.path.length > 0 ? e.path.join(".") : "root";
|
|
23247
|
-
const
|
|
23249
|
+
const isMissing = e.code === "invalid_type" && e.message.endsWith("received undefined");
|
|
23250
|
+
const message = isMissing ? `Missing required parameter '${fieldPath}'` : `Invalid value for '${fieldPath}': ${e.message}`;
|
|
23248
23251
|
return message;
|
|
23249
23252
|
});
|
|
23250
23253
|
const errorMessage3 = `Invalid arguments: ${errorDetails.join(", ")}`;
|