@coderabbitai/config 1.1.6 → 1.2.1
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/README.md +71 -0
- package/dist/define-config.d.ts +19 -8
- package/dist/define-config.d.ts.map +1 -1
- package/dist/define-config.js +37 -85
- package/dist/define-config.js.map +1 -1
- package/dist/index.d.ts +583 -11
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -254,7 +254,7 @@ declare const SchemaV2DevStrict: z$1.ZodObject<{
|
|
|
254
254
|
instructions: z$1.ZodDefault<z$1.ZodString>;
|
|
255
255
|
}, z$1.core.$strip>>>>;
|
|
256
256
|
}, z$1.core.$strip>>;
|
|
257
|
-
pre_merge_checks: z$1.ZodPrefault<z$1.ZodObject<{
|
|
257
|
+
pre_merge_checks: z$1.ZodPreprocess<z$1.ZodPrefault<z$1.ZodObject<{
|
|
258
258
|
override_requested_reviewers_only: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
259
259
|
docstrings: z$1.ZodPrefault<z$1.ZodObject<{
|
|
260
260
|
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -295,7 +295,28 @@ declare const SchemaV2DevStrict: z$1.ZodObject<{
|
|
|
295
295
|
name: z$1.ZodDefault<z$1.ZodString>;
|
|
296
296
|
instructions: z$1.ZodDefault<z$1.ZodString>;
|
|
297
297
|
}, z$1.core.$strip>>>>;
|
|
298
|
-
}, z$1.core.$strip
|
|
298
|
+
}, z$1.core.$strip>>, {
|
|
299
|
+
override_requested_reviewers_only?: boolean | undefined;
|
|
300
|
+
docstrings?: {
|
|
301
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
302
|
+
threshold?: number | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
title?: {
|
|
305
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
306
|
+
requirements?: string | undefined;
|
|
307
|
+
} | undefined;
|
|
308
|
+
description?: {
|
|
309
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
issue_assessment?: {
|
|
312
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
313
|
+
} | undefined;
|
|
314
|
+
custom_checks?: {
|
|
315
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
316
|
+
name?: string | undefined;
|
|
317
|
+
instructions?: string | undefined;
|
|
318
|
+
}[] | undefined;
|
|
319
|
+
} | undefined>;
|
|
299
320
|
post_merge_actions: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
300
321
|
enabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
301
322
|
name: z$1.ZodDefault<z$1.ZodString>;
|
|
@@ -962,7 +983,7 @@ declare const SchemaV2Strict: z$1.ZodObject<{
|
|
|
962
983
|
instructions: z$1.ZodDefault<z$1.ZodString>;
|
|
963
984
|
}, z$1.core.$strip>>>>;
|
|
964
985
|
}, z$1.core.$strip>>;
|
|
965
|
-
pre_merge_checks: z$1.ZodPrefault<z$1.ZodObject<{
|
|
986
|
+
pre_merge_checks: z$1.ZodPreprocess<z$1.ZodPrefault<z$1.ZodObject<{
|
|
966
987
|
override_requested_reviewers_only: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
967
988
|
docstrings: z$1.ZodPrefault<z$1.ZodObject<{
|
|
968
989
|
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -1003,7 +1024,28 @@ declare const SchemaV2Strict: z$1.ZodObject<{
|
|
|
1003
1024
|
name: z$1.ZodDefault<z$1.ZodString>;
|
|
1004
1025
|
instructions: z$1.ZodDefault<z$1.ZodString>;
|
|
1005
1026
|
}, z$1.core.$strip>>>>;
|
|
1006
|
-
}, z$1.core.$strip
|
|
1027
|
+
}, z$1.core.$strip>>, {
|
|
1028
|
+
override_requested_reviewers_only?: boolean | undefined;
|
|
1029
|
+
docstrings?: {
|
|
1030
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
1031
|
+
threshold?: number | undefined;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
title?: {
|
|
1034
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
1035
|
+
requirements?: string | undefined;
|
|
1036
|
+
} | undefined;
|
|
1037
|
+
description?: {
|
|
1038
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
1039
|
+
} | undefined;
|
|
1040
|
+
issue_assessment?: {
|
|
1041
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
1042
|
+
} | undefined;
|
|
1043
|
+
custom_checks?: {
|
|
1044
|
+
mode?: "error" | "off" | "warning" | undefined;
|
|
1045
|
+
name?: string | undefined;
|
|
1046
|
+
instructions?: string | undefined;
|
|
1047
|
+
}[] | undefined;
|
|
1048
|
+
} | undefined>;
|
|
1007
1049
|
post_merge_actions: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1008
1050
|
enabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
1009
1051
|
name: z$1.ZodDefault<z$1.ZodString>;
|
|
@@ -1428,6 +1470,525 @@ declare const SchemaV2Strict: z$1.ZodObject<{
|
|
|
1428
1470
|
}, z$1.core.$strip>>;
|
|
1429
1471
|
}, z$1.core.$strict>;
|
|
1430
1472
|
declare function getSchemaForExport(isDev: boolean): typeof SchemaV2DevStrict | typeof SchemaV2Strict;
|
|
1473
|
+
declare const SchemaV3Strict: z$1.ZodObject<{
|
|
1474
|
+
version: z$1.ZodLiteral<3>;
|
|
1475
|
+
language: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1476
|
+
ar: "ar";
|
|
1477
|
+
ast: "ast";
|
|
1478
|
+
"ast-ES": "ast-ES";
|
|
1479
|
+
be: "be";
|
|
1480
|
+
"be-BY": "be-BY";
|
|
1481
|
+
bg: "bg";
|
|
1482
|
+
"bg-BG": "bg-BG";
|
|
1483
|
+
bn: "bn";
|
|
1484
|
+
"bn-BD": "bn-BD";
|
|
1485
|
+
br: "br";
|
|
1486
|
+
"br-FR": "br-FR";
|
|
1487
|
+
ca: "ca";
|
|
1488
|
+
"ca-ES": "ca-ES";
|
|
1489
|
+
"ca-ES-balear": "ca-ES-balear";
|
|
1490
|
+
"ca-ES-valencia": "ca-ES-valencia";
|
|
1491
|
+
crh: "crh";
|
|
1492
|
+
"crh-UA": "crh-UA";
|
|
1493
|
+
cs: "cs";
|
|
1494
|
+
"cs-CZ": "cs-CZ";
|
|
1495
|
+
da: "da";
|
|
1496
|
+
"da-DK": "da-DK";
|
|
1497
|
+
de: "de";
|
|
1498
|
+
"de-AT": "de-AT";
|
|
1499
|
+
"de-CH": "de-CH";
|
|
1500
|
+
"de-DE": "de-DE";
|
|
1501
|
+
"de-DE-x-simple-language": "de-DE-x-simple-language";
|
|
1502
|
+
"de-DE-x-simple-language-DE": "de-DE-x-simple-language-DE";
|
|
1503
|
+
"de-LU": "de-LU";
|
|
1504
|
+
el: "el";
|
|
1505
|
+
"el-GR": "el-GR";
|
|
1506
|
+
en: "en";
|
|
1507
|
+
"en-AU": "en-AU";
|
|
1508
|
+
"en-CA": "en-CA";
|
|
1509
|
+
"en-GB": "en-GB";
|
|
1510
|
+
"en-NZ": "en-NZ";
|
|
1511
|
+
"en-US": "en-US";
|
|
1512
|
+
"en-ZA": "en-ZA";
|
|
1513
|
+
eo: "eo";
|
|
1514
|
+
es: "es";
|
|
1515
|
+
"es-AR": "es-AR";
|
|
1516
|
+
"es-ES": "es-ES";
|
|
1517
|
+
fa: "fa";
|
|
1518
|
+
"fa-IR": "fa-IR";
|
|
1519
|
+
fr: "fr";
|
|
1520
|
+
"fr-BE": "fr-BE";
|
|
1521
|
+
"fr-CA": "fr-CA";
|
|
1522
|
+
"fr-CH": "fr-CH";
|
|
1523
|
+
"fr-FR": "fr-FR";
|
|
1524
|
+
ga: "ga";
|
|
1525
|
+
"ga-IE": "ga-IE";
|
|
1526
|
+
gl: "gl";
|
|
1527
|
+
"gl-ES": "gl-ES";
|
|
1528
|
+
he: "he";
|
|
1529
|
+
"he-IL": "he-IL";
|
|
1530
|
+
hi: "hi";
|
|
1531
|
+
"hi-IN": "hi-IN";
|
|
1532
|
+
it: "it";
|
|
1533
|
+
"it-IT": "it-IT";
|
|
1534
|
+
ja: "ja";
|
|
1535
|
+
"ja-JP": "ja-JP";
|
|
1536
|
+
km: "km";
|
|
1537
|
+
"km-KH": "km-KH";
|
|
1538
|
+
ko: "ko";
|
|
1539
|
+
"ko-KR": "ko-KR";
|
|
1540
|
+
nb: "nb";
|
|
1541
|
+
nl: "nl";
|
|
1542
|
+
"nl-BE": "nl-BE";
|
|
1543
|
+
"nl-NL": "nl-NL";
|
|
1544
|
+
no: "no";
|
|
1545
|
+
pl: "pl";
|
|
1546
|
+
"pl-PL": "pl-PL";
|
|
1547
|
+
pt: "pt";
|
|
1548
|
+
"pt-AO": "pt-AO";
|
|
1549
|
+
"pt-BR": "pt-BR";
|
|
1550
|
+
"pt-MZ": "pt-MZ";
|
|
1551
|
+
"pt-PT": "pt-PT";
|
|
1552
|
+
ro: "ro";
|
|
1553
|
+
"ro-RO": "ro-RO";
|
|
1554
|
+
ru: "ru";
|
|
1555
|
+
"ru-RU": "ru-RU";
|
|
1556
|
+
sk: "sk";
|
|
1557
|
+
"sk-SK": "sk-SK";
|
|
1558
|
+
sl: "sl";
|
|
1559
|
+
"sl-SI": "sl-SI";
|
|
1560
|
+
sv: "sv";
|
|
1561
|
+
"sv-SE": "sv-SE";
|
|
1562
|
+
ta: "ta";
|
|
1563
|
+
"ta-IN": "ta-IN";
|
|
1564
|
+
th: "th";
|
|
1565
|
+
"th-TH": "th-TH";
|
|
1566
|
+
tl: "tl";
|
|
1567
|
+
"tl-PH": "tl-PH";
|
|
1568
|
+
tr: "tr";
|
|
1569
|
+
uk: "uk";
|
|
1570
|
+
"uk-UA": "uk-UA";
|
|
1571
|
+
vi: "vi";
|
|
1572
|
+
"vi-VN": "vi-VN";
|
|
1573
|
+
zh: "zh";
|
|
1574
|
+
"zh-CN": "zh-CN";
|
|
1575
|
+
"zh-TW": "zh-TW";
|
|
1576
|
+
}>>>;
|
|
1577
|
+
inheritance: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1578
|
+
reviews: z$1.ZodDefault<z$1.ZodObject<{
|
|
1579
|
+
behavior: z$1.ZodDefault<z$1.ZodObject<{
|
|
1580
|
+
profile: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1581
|
+
assertive: "assertive";
|
|
1582
|
+
chill: "chill";
|
|
1583
|
+
quiet: "quiet";
|
|
1584
|
+
}>>>;
|
|
1585
|
+
path_filters: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1586
|
+
auto_approvals: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1587
|
+
enabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1588
|
+
max_merge_risk: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1589
|
+
critical: "critical";
|
|
1590
|
+
high: "high";
|
|
1591
|
+
low: "low";
|
|
1592
|
+
minimal: "minimal";
|
|
1593
|
+
moderate: "moderate";
|
|
1594
|
+
}>>;
|
|
1595
|
+
allow_author_approval: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1596
|
+
max_security_risk: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1597
|
+
critical: "critical";
|
|
1598
|
+
high: "high";
|
|
1599
|
+
low: "low";
|
|
1600
|
+
minimal: "minimal";
|
|
1601
|
+
moderate: "moderate";
|
|
1602
|
+
}>>;
|
|
1603
|
+
overrides: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1604
|
+
enabled: z$1.ZodOptional<z$1.ZodLiteral<false>>;
|
|
1605
|
+
teams: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1606
|
+
paths: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1607
|
+
max_merge_risk: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1608
|
+
critical: "critical";
|
|
1609
|
+
high: "high";
|
|
1610
|
+
low: "low";
|
|
1611
|
+
minimal: "minimal";
|
|
1612
|
+
moderate: "moderate";
|
|
1613
|
+
}>>;
|
|
1614
|
+
max_security_risk: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1615
|
+
critical: "critical";
|
|
1616
|
+
high: "high";
|
|
1617
|
+
low: "low";
|
|
1618
|
+
minimal: "minimal";
|
|
1619
|
+
moderate: "moderate";
|
|
1620
|
+
}>>;
|
|
1621
|
+
}, z$1.core.$strict>>>;
|
|
1622
|
+
override_requested_reviewers_only: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1623
|
+
}, z$1.core.$strict>> | z$1.ZodPrefault<z$1.ZodObject<{
|
|
1624
|
+
max_merge_risk: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1625
|
+
critical: "critical";
|
|
1626
|
+
high: "high";
|
|
1627
|
+
low: "low";
|
|
1628
|
+
minimal: "minimal";
|
|
1629
|
+
moderate: "moderate";
|
|
1630
|
+
}>>;
|
|
1631
|
+
allow_author_approval: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1632
|
+
max_security_risk: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1633
|
+
critical: "critical";
|
|
1634
|
+
high: "high";
|
|
1635
|
+
low: "low";
|
|
1636
|
+
minimal: "minimal";
|
|
1637
|
+
moderate: "moderate";
|
|
1638
|
+
}>>;
|
|
1639
|
+
overrides: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1640
|
+
enabled: z$1.ZodOptional<z$1.ZodLiteral<false>>;
|
|
1641
|
+
teams: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1642
|
+
paths: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1643
|
+
max_merge_risk: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1644
|
+
critical: "critical";
|
|
1645
|
+
high: "high";
|
|
1646
|
+
low: "low";
|
|
1647
|
+
minimal: "minimal";
|
|
1648
|
+
moderate: "moderate";
|
|
1649
|
+
}>>;
|
|
1650
|
+
max_security_risk: z$1.ZodOptional<z$1.ZodEnum<{
|
|
1651
|
+
critical: "critical";
|
|
1652
|
+
high: "high";
|
|
1653
|
+
low: "low";
|
|
1654
|
+
minimal: "minimal";
|
|
1655
|
+
moderate: "moderate";
|
|
1656
|
+
}>>;
|
|
1657
|
+
}, z$1.core.$strict>>>;
|
|
1658
|
+
override_requested_reviewers_only: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1659
|
+
enabled: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
1660
|
+
}, z$1.core.$strict>>;
|
|
1661
|
+
merge_risk_instructions: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string | undefined, string>>>;
|
|
1662
|
+
security_risk_instructions: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string | undefined, string>>>;
|
|
1663
|
+
request_changes_workflow: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1664
|
+
allow_author_approval: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1665
|
+
status: z$1.ZodDefault<z$1.ZodObject<{
|
|
1666
|
+
progress_updates: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1667
|
+
legacy_commit_status: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1668
|
+
fail_on_error: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1669
|
+
}, z$1.core.$strict>>;
|
|
1670
|
+
}, z$1.core.$strict>>;
|
|
1671
|
+
auto_review: z$1.ZodDefault<z$1.ZodObject<{
|
|
1672
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1673
|
+
description_keyword: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
|
|
1674
|
+
incremental_review: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1675
|
+
pause_after_reviewed_commits: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
1676
|
+
labels: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1677
|
+
drafts: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1678
|
+
base_branches: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1679
|
+
}, z$1.core.$strict>>;
|
|
1680
|
+
output: z$1.ZodDefault<z$1.ZodObject<{
|
|
1681
|
+
summary: z$1.ZodDefault<z$1.ZodObject<{
|
|
1682
|
+
placement: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1683
|
+
description: "description";
|
|
1684
|
+
off: "off";
|
|
1685
|
+
walkthrough: "walkthrough";
|
|
1686
|
+
}>>>;
|
|
1687
|
+
placeholder: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
|
|
1688
|
+
instructions: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
|
|
1689
|
+
}, z$1.core.$strict>>;
|
|
1690
|
+
walkthrough: z$1.ZodDefault<z$1.ZodObject<{
|
|
1691
|
+
collapse: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1692
|
+
review_status: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1693
|
+
review_info: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1694
|
+
review_details: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1695
|
+
changed_files_summary: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1696
|
+
related_issues: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1697
|
+
related_prs: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1698
|
+
}, z$1.core.$strict>>;
|
|
1699
|
+
chat: z$1.ZodDefault<z$1.ZodObject<{
|
|
1700
|
+
allow_non_org_members: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1701
|
+
}, z$1.core.$strict>>;
|
|
1702
|
+
metadata: z$1.ZodDefault<z$1.ZodObject<{
|
|
1703
|
+
labels: z$1.ZodDefault<z$1.ZodObject<{
|
|
1704
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1705
|
+
apply: "apply";
|
|
1706
|
+
off: "off";
|
|
1707
|
+
suggest: "suggest";
|
|
1708
|
+
}>>>;
|
|
1709
|
+
instructions: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1710
|
+
label: z$1.ZodString;
|
|
1711
|
+
instructions: z$1.ZodString;
|
|
1712
|
+
}, z$1.core.$strict>>>>;
|
|
1713
|
+
mutually_exclusive_groups: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString>>>>;
|
|
1714
|
+
}, z$1.core.$strict>>;
|
|
1715
|
+
reviewers: z$1.ZodDefault<z$1.ZodObject<{
|
|
1716
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1717
|
+
apply: "apply";
|
|
1718
|
+
off: "off";
|
|
1719
|
+
suggest: "suggest";
|
|
1720
|
+
}>>>;
|
|
1721
|
+
instructions: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1722
|
+
reviewers: z$1.ZodArray<z$1.ZodObject<{
|
|
1723
|
+
handle: z$1.ZodString;
|
|
1724
|
+
type: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1725
|
+
group: "group";
|
|
1726
|
+
user: "user";
|
|
1727
|
+
}>>>;
|
|
1728
|
+
}, z$1.core.$strict>>;
|
|
1729
|
+
instructions: z$1.ZodString;
|
|
1730
|
+
}, z$1.core.$strict>>>>;
|
|
1731
|
+
}, z$1.core.$strict>>;
|
|
1732
|
+
}, z$1.core.$strict>>;
|
|
1733
|
+
pre_merge_checks: z$1.ZodDefault<z$1.ZodObject<{
|
|
1734
|
+
docstrings: z$1.ZodDefault<z$1.ZodObject<{
|
|
1735
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1736
|
+
error: "error";
|
|
1737
|
+
off: "off";
|
|
1738
|
+
warning: "warning";
|
|
1739
|
+
}>>>;
|
|
1740
|
+
threshold: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
1741
|
+
}, z$1.core.$strict>>;
|
|
1742
|
+
title: z$1.ZodDefault<z$1.ZodObject<{
|
|
1743
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1744
|
+
error: "error";
|
|
1745
|
+
off: "off";
|
|
1746
|
+
warning: "warning";
|
|
1747
|
+
}>>>;
|
|
1748
|
+
requirements: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
|
|
1749
|
+
}, z$1.core.$strict>>;
|
|
1750
|
+
description: z$1.ZodDefault<z$1.ZodObject<{
|
|
1751
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1752
|
+
error: "error";
|
|
1753
|
+
off: "off";
|
|
1754
|
+
warning: "warning";
|
|
1755
|
+
}>>>;
|
|
1756
|
+
}, z$1.core.$strict>>;
|
|
1757
|
+
issue_assessment: z$1.ZodDefault<z$1.ZodObject<{
|
|
1758
|
+
mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1759
|
+
error: "error";
|
|
1760
|
+
off: "off";
|
|
1761
|
+
warning: "warning";
|
|
1762
|
+
}>>>;
|
|
1763
|
+
}, z$1.core.$strict>>;
|
|
1764
|
+
}, z$1.core.$strict>>;
|
|
1765
|
+
}, z$1.core.$strict>>;
|
|
1766
|
+
tools: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1767
|
+
"ast-grep": z$1.ZodPrefault<z$1.ZodObject<{
|
|
1768
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1769
|
+
rule_dirs: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1770
|
+
util_dirs: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1771
|
+
essential_rules: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1772
|
+
packages: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1773
|
+
}, z$1.core.$strip>>;
|
|
1774
|
+
shellcheck: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1775
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1776
|
+
}, z$1.core.$strip>>;
|
|
1777
|
+
ruff: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1778
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1779
|
+
config_file: z$1.ZodOptional<z$1.ZodString>;
|
|
1780
|
+
}, z$1.core.$strip>>;
|
|
1781
|
+
markdownlint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1782
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1783
|
+
}, z$1.core.$strip>>;
|
|
1784
|
+
"github-checks": z$1.ZodPrefault<z$1.ZodObject<{
|
|
1785
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1786
|
+
}, z$1.core.$strip>>;
|
|
1787
|
+
languagetool: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1788
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1789
|
+
enabled_rules: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1790
|
+
disabled_rules: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1791
|
+
enabled_categories: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1792
|
+
disabled_categories: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>>;
|
|
1793
|
+
enabled_only: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1794
|
+
level: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1795
|
+
default: "default";
|
|
1796
|
+
picky: "picky";
|
|
1797
|
+
}>>>;
|
|
1798
|
+
}, z$1.core.$strip>>;
|
|
1799
|
+
biome: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1800
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1801
|
+
}, z$1.core.$strip>>;
|
|
1802
|
+
hadolint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1803
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1804
|
+
}, z$1.core.$strip>>;
|
|
1805
|
+
swiftlint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1806
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1807
|
+
config_file: z$1.ZodOptional<z$1.ZodString>;
|
|
1808
|
+
}, z$1.core.$strip>>;
|
|
1809
|
+
phpstan: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1810
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1811
|
+
level: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
|
|
1812
|
+
0: "0";
|
|
1813
|
+
1: "1";
|
|
1814
|
+
2: "2";
|
|
1815
|
+
3: "3";
|
|
1816
|
+
4: "4";
|
|
1817
|
+
5: "5";
|
|
1818
|
+
6: "6";
|
|
1819
|
+
7: "7";
|
|
1820
|
+
8: "8";
|
|
1821
|
+
9: "9";
|
|
1822
|
+
default: "default";
|
|
1823
|
+
max: "max";
|
|
1824
|
+
}>>>;
|
|
1825
|
+
}, z$1.core.$strip>>;
|
|
1826
|
+
phpmd: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1827
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1828
|
+
}, z$1.core.$strip>>;
|
|
1829
|
+
phpcs: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1830
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1831
|
+
}, z$1.core.$strip>>;
|
|
1832
|
+
"golangci-lint": z$1.ZodPrefault<z$1.ZodObject<{
|
|
1833
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1834
|
+
config_file: z$1.ZodOptional<z$1.ZodString>;
|
|
1835
|
+
}, z$1.core.$strip>>;
|
|
1836
|
+
yamllint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1837
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1838
|
+
}, z$1.core.$strip>>;
|
|
1839
|
+
gitleaks: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1840
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1841
|
+
}, z$1.core.$strip>>;
|
|
1842
|
+
trufflehog: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1843
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1844
|
+
}, z$1.core.$strip>>;
|
|
1845
|
+
checkov: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1846
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1847
|
+
}, z$1.core.$strip>>;
|
|
1848
|
+
tflint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1849
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1850
|
+
}, z$1.core.$strip>>;
|
|
1851
|
+
detekt: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1852
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1853
|
+
config_file: z$1.ZodOptional<z$1.ZodString>;
|
|
1854
|
+
}, z$1.core.$strip>>;
|
|
1855
|
+
eslint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1856
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1857
|
+
config_file: z$1.ZodOptional<z$1.ZodString>;
|
|
1858
|
+
e18e: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1859
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1860
|
+
}, z$1.core.$strip>>;
|
|
1861
|
+
}, z$1.core.$strip>>;
|
|
1862
|
+
flake8: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1863
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1864
|
+
}, z$1.core.$strip>>;
|
|
1865
|
+
fbinfer: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1866
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1867
|
+
enable_java: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1868
|
+
}, z$1.core.$strip>>;
|
|
1869
|
+
fortitudeLint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1870
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1871
|
+
}, z$1.core.$strip>>;
|
|
1872
|
+
rubocop: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1873
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1874
|
+
}, z$1.core.$strip>>;
|
|
1875
|
+
buf: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1876
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1877
|
+
}, z$1.core.$strip>>;
|
|
1878
|
+
regal: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1879
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1880
|
+
}, z$1.core.$strip>>;
|
|
1881
|
+
actionlint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1882
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1883
|
+
}, z$1.core.$strip>>;
|
|
1884
|
+
zizmor: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1885
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1886
|
+
}, z$1.core.$strip>>;
|
|
1887
|
+
pmd: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1888
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1889
|
+
config_file: z$1.ZodOptional<z$1.ZodString>;
|
|
1890
|
+
}, z$1.core.$strip>>;
|
|
1891
|
+
clang: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1892
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1893
|
+
}, z$1.core.$strip>>;
|
|
1894
|
+
cppcheck: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1895
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1896
|
+
}, z$1.core.$strip>>;
|
|
1897
|
+
vale: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1898
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1899
|
+
}, z$1.core.$strip>>;
|
|
1900
|
+
verilator: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1901
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1902
|
+
}, z$1.core.$strip>>;
|
|
1903
|
+
opengrep: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1904
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1905
|
+
}, z$1.core.$strip>>;
|
|
1906
|
+
semgrep: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1907
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1908
|
+
config_file: z$1.ZodOptional<z$1.ZodString>;
|
|
1909
|
+
}, z$1.core.$strip>>;
|
|
1910
|
+
circleci: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1911
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1912
|
+
}, z$1.core.$strip>>;
|
|
1913
|
+
clippy: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1914
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1915
|
+
}, z$1.core.$strip>>;
|
|
1916
|
+
sqlfluff: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1917
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1918
|
+
config_file: z$1.ZodOptional<z$1.ZodString>;
|
|
1919
|
+
}, z$1.core.$strip>>;
|
|
1920
|
+
squawk: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1921
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1922
|
+
}, z$1.core.$strip>>;
|
|
1923
|
+
trivy: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1924
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1925
|
+
}, z$1.core.$strip>>;
|
|
1926
|
+
prismaLint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1927
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1928
|
+
}, z$1.core.$strip>>;
|
|
1929
|
+
pylint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1930
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1931
|
+
}, z$1.core.$strip>>;
|
|
1932
|
+
oxc: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1933
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1934
|
+
}, z$1.core.$strip>>;
|
|
1935
|
+
shopifyThemeCheck: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1936
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1937
|
+
}, z$1.core.$strip>>;
|
|
1938
|
+
luacheck: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1939
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1940
|
+
}, z$1.core.$strip>>;
|
|
1941
|
+
brakeman: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1942
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1943
|
+
}, z$1.core.$strip>>;
|
|
1944
|
+
dotenvLint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1945
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1946
|
+
}, z$1.core.$strip>>;
|
|
1947
|
+
htmlhint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1948
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1949
|
+
}, z$1.core.$strict>>;
|
|
1950
|
+
stylelint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1951
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1952
|
+
}, z$1.core.$strict>>;
|
|
1953
|
+
checkmake: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1954
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1955
|
+
}, z$1.core.$strip>>;
|
|
1956
|
+
osvScanner: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1957
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1958
|
+
}, z$1.core.$strip>>;
|
|
1959
|
+
oasdiff: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1960
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1961
|
+
}, z$1.core.$strip>>;
|
|
1962
|
+
reactDoctor: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1963
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1964
|
+
}, z$1.core.$strip>>;
|
|
1965
|
+
presidio: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1966
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1967
|
+
}, z$1.core.$strip>>;
|
|
1968
|
+
blinter: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1969
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1970
|
+
}, z$1.core.$strip>>;
|
|
1971
|
+
smartyLint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1972
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1973
|
+
}, z$1.core.$strip>>;
|
|
1974
|
+
emberTemplateLint: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1975
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1976
|
+
}, z$1.core.$strip>>;
|
|
1977
|
+
skillspector: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1978
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1979
|
+
}, z$1.core.$strip>>;
|
|
1980
|
+
psscriptanalyzer: z$1.ZodPrefault<z$1.ZodObject<{
|
|
1981
|
+
enabled: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1982
|
+
}, z$1.core.$strip>>;
|
|
1983
|
+
}, z$1.core.$strip>>;
|
|
1984
|
+
}, z$1.core.$strict>>;
|
|
1985
|
+
fun: z$1.ZodDefault<z$1.ZodObject<{
|
|
1986
|
+
tone_instructions: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
|
|
1987
|
+
in_progress_fortune: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1988
|
+
art: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1989
|
+
}, z$1.core.$strict>>;
|
|
1990
|
+
}, z$1.core.$strict>;
|
|
1991
|
+
type ConfigInputV3 = z$1.input<typeof SchemaV3Strict>;
|
|
1431
1992
|
/**
|
|
1432
1993
|
* The CodeRabbit configuration object, as authored in a `.coderabbit.config.ts`.
|
|
1433
1994
|
*
|
|
@@ -1444,14 +2005,15 @@ declare function getSchemaForExport(isDev: boolean): typeof SchemaV2DevStrict |
|
|
|
1444
2005
|
* change. `import type` keeps this purely author-time: nothing from the schema
|
|
1445
2006
|
* package is pulled into the SDK's runtime bundle.
|
|
1446
2007
|
*
|
|
1447
|
-
*
|
|
1448
|
-
*
|
|
1449
|
-
*
|
|
1450
|
-
* paired marker in `pr-reviewer-saas/src/settings/yaml.ts`
|
|
1451
|
-
* (`prepareSettingsFromTypeScriptConfig`), which pins runtime validation of the
|
|
1452
|
-
* `.ts` path to the new schema version.
|
|
2008
|
+
* This public type remains V2. Explicit V3 authoring uses
|
|
2009
|
+
* {@link CodeRabbitConfigV3}, whose runtime admission is currently limited to
|
|
2010
|
+
* the authenticated internal GitHub Cloud preview.
|
|
1453
2011
|
*/
|
|
1454
2012
|
export type CodeRabbitConfig = z.input<ReturnType<typeof getSchemaForExport>>;
|
|
2013
|
+
/** Internal preview configuration; requires an explicit `version: 3`. */
|
|
2014
|
+
export type CodeRabbitConfigV3 = ConfigInputV3;
|
|
2015
|
+
/** A V3 override keeps the base's version when omitted. */
|
|
2016
|
+
export type CodeRabbitConfigV3Fragment = Partial<CodeRabbitConfigV3>;
|
|
1455
2017
|
/** How CodeRabbit was invoked when evaluating a programmatic config. */
|
|
1456
2018
|
export type CodeRabbitInvocationSource = "cli" | "review";
|
|
1457
2019
|
/** Invocation metadata supplied when CodeRabbit evaluates a config factory. */
|
|
@@ -1640,6 +2202,8 @@ interface CodeRabbitConfigFactoryContext extends Omit<ResolvedCodeRabbitContext,
|
|
|
1640
2202
|
* pull request.
|
|
1641
2203
|
*/
|
|
1642
2204
|
export type CodeRabbitConfigFactory = (ctx: CodeRabbitConfigFactoryContext) => CodeRabbitConfig | Promise<CodeRabbitConfig>;
|
|
2205
|
+
/** An internal preview factory; ordinary customer factories retain V2. */
|
|
2206
|
+
export type CodeRabbitConfigV3Factory = (ctx: CodeRabbitConfigFactoryContext) => CodeRabbitConfigV3 | Promise<CodeRabbitConfigV3>;
|
|
1643
2207
|
/**
|
|
1644
2208
|
* Define a CodeRabbit configuration with full type-checking and autocomplete.
|
|
1645
2209
|
*
|
|
@@ -1675,8 +2239,12 @@ export type CodeRabbitConfigFactory = (ctx: CodeRabbitConfigFactoryContext) => C
|
|
|
1675
2239
|
* }))
|
|
1676
2240
|
* ```
|
|
1677
2241
|
*/
|
|
2242
|
+
export declare function defineConfig(config: CodeRabbitConfigV3): CodeRabbitConfigV3;
|
|
2243
|
+
export declare function defineConfig(config: CodeRabbitConfigV3Factory): CodeRabbitConfigV3Factory;
|
|
1678
2244
|
export declare function defineConfig(config: CodeRabbitConfig): CodeRabbitConfig;
|
|
1679
|
-
export declare function defineConfig(config:
|
|
2245
|
+
export declare function defineConfig<const T extends CodeRabbitConfig | Promise<CodeRabbitConfig>>(config: ((ctx: CodeRabbitConfigFactoryContext) => T) & (Awaited<NoInfer<T>> extends {
|
|
2246
|
+
version: 3;
|
|
2247
|
+
} ? never : unknown)): CodeRabbitConfigFactory;
|
|
1680
2248
|
/**
|
|
1681
2249
|
* Deep-merge CodeRabbit config objects left-to-right and return the combined
|
|
1682
2250
|
* config. Use it to layer overrides onto a base config — e.g. applying
|
|
@@ -1708,6 +2276,7 @@ export declare function defineConfig(config: CodeRabbitConfigFactory): CodeRabbi
|
|
|
1708
2276
|
* )
|
|
1709
2277
|
* ```
|
|
1710
2278
|
*/
|
|
2279
|
+
export declare function mergeConfig(base: CodeRabbitConfigV3, ...overrides: CodeRabbitConfigV3Fragment[]): CodeRabbitConfigV3;
|
|
1711
2280
|
export declare function mergeConfig(...configs: CodeRabbitConfig[]): CodeRabbitConfig;
|
|
1712
2281
|
/**
|
|
1713
2282
|
* Location of a shared config file, for {@link includeRemote}. When `repo` is
|
|
@@ -1755,7 +2324,10 @@ export interface RemoteInclude {
|
|
|
1755
2324
|
* literal with string values (it is resolved before your config runs, so it
|
|
1756
2325
|
* cannot take computed/runtime values). CodeRabbit resolves the call during
|
|
1757
2326
|
* bundling; the runtime body below only executes if resolution was bypassed.
|
|
2327
|
+
* Use `includeRemote<CodeRabbitConfigV3Fragment>(...)` for a V3 fragment in the
|
|
2328
|
+
* authenticated internal preview; ordinary calls retain the V2 return type.
|
|
1758
2329
|
*/
|
|
2330
|
+
export declare function includeRemote<Config extends CodeRabbitConfig | CodeRabbitConfigV3Fragment = CodeRabbitConfig>(spec: RemoteInclude): Config;
|
|
1759
2331
|
export declare function includeRemote(spec: RemoteInclude): CodeRabbitConfig;
|
|
1760
2332
|
|
|
1761
2333
|
export {};
|