@code-sentinel-cli/code-sentinel-cli 4.0.9 → 4.0.10
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/bin.js +6037 -523
- package/dist/builtin-rules/ai/spring-boot/ownership-scope-risk.rule.yaml +1 -0
- package/dist/builtin-rules/ai/spring-boot/security-authorization-risk.rule.yaml +1 -0
- package/dist/builtin-rules/ai/spring-boot/security-mass-assignment-risk.rule.yaml +1 -0
- package/dist/builtin-rules/ai/spring-boot/state-transition-guard-risk.rule.yaml +1 -0
- package/dist/builtin-rules/fortify/ai/angular/cross-feature-route-permission-drift.rule.yaml +2 -0
- package/dist/builtin-rules/fortify/ai/angular/route-permission-flow.rule.yaml +2 -0
- package/dist/builtin-rules/fortify/ai/spring-boot/io-boundary-risk.rule.yaml +1 -0
- package/dist/builtin-rules/fortify/ai/spring-boot/security-redirect-risk.rule.yaml +2 -0
- package/dist/builtin-rules/fortify/ai/spring-boot/security-sensitive-data-risk.rule.yaml +2 -0
- package/dist/builtin-rules/fortify/static/angular/sensitive-input-masking.rule.js +1 -0
- package/dist/builtin-rules/fortify/static/general/java-weak-randomness.rule.js +2 -0
- package/dist/builtin-rules/fortify/static/general/no-client-identity-header.rule.js +1 -0
- package/dist/builtin-rules/fortify/static/general/no-guessable-websql-database-name.rule.js +1 -0
- package/dist/builtin-rules/fortify/static/general/no-reflective-access-override.rule.js +1 -0
- package/dist/builtin-rules/fortify/static/general/no-sensitive-string-materialization.rule.js +1 -0
- package/dist/builtin-rules/fortify/static/spring-boot/no-command-injection.rule.js +2 -0
- package/dist/builtin-rules/fortify/static/spring-boot/no-path-traversal.rule.js +8 -1
- package/dist/builtin-rules/fortify/static/spring-boot/no-servlet-xss.rule.js +2 -0
- package/dist/builtin-rules/fortify/static/spring-boot/no-spel-injection.rule.js +2 -0
- package/dist/builtin-rules/fortify/static/spring-boot/no-sql-string-concat.rule.js +2 -0
- package/dist/builtin-rules/fortify/static/spring-boot/no-ssrf.rule.js +2 -0
- package/dist/builtin-rules/fortify/static/spring-boot/no-trust-boundary-violation.rule.js +43 -0
- package/dist/builtin-rules/fortify/static/spring-boot/no-weak-tls-protocol.rule.js +2 -0
- package/dist/builtin-rules/static/angular/no-dom-xss.rule.js +1 -0
- package/dist/builtin-rules/static/angular/template-dom-xss.rule.js +1 -0
- package/dist/builtin-rules/static/flutter/INVENTORY.md +44 -0
- package/dist/builtin-rules/static/flutter/NATIVE-INVENTORY.md +34 -0
- package/dist/builtin-rules/static/flutter/android-cleartext-traffic.rule.js +104 -0
- package/dist/builtin-rules/static/flutter/android-release-debuggable.rule.js +85 -0
- package/dist/builtin-rules/static/flutter/bad-certificate-callback.rule.js +80 -0
- package/dist/builtin-rules/static/flutter/biometric-without-crypto-object.rule.js +86 -0
- package/dist/builtin-rules/static/flutter/cleartext-http-endpoint.rule.js +76 -0
- package/dist/builtin-rules/static/flutter/device-fingerprint-collection.rule.js +73 -0
- package/dist/builtin-rules/static/flutter/exported-content-provider-leak.rule.js +118 -0
- package/dist/builtin-rules/static/flutter/hardcoded-crypto-key.rule.js +124 -0
- package/dist/builtin-rules/static/flutter/hardcoded-oauth-client-secret.rule.js +107 -0
- package/dist/builtin-rules/static/flutter/insecure-deep-link.rule.js +153 -0
- package/dist/builtin-rules/static/flutter/ios-ats-exception.rule.js +82 -0
- package/dist/builtin-rules/static/flutter/ios-pasteboard-leak.rule.js +95 -0
- package/dist/builtin-rules/static/flutter/missing-enforced-update.rule.js +80 -0
- package/dist/builtin-rules/static/flutter/oauth-missing-pkce.rule.js +74 -0
- package/dist/builtin-rules/static/flutter/token-insecure-storage.rule.js +120 -0
- package/dist/builtin-rules/static/flutter/tracking-sdk-init.rule.js +75 -0
- package/dist/builtin-rules/static/flutter/weak-mobile-crypto-algorithm.rule.js +113 -0
- package/dist/builtin-rules/static/flutter/weak-prng-mobile.rule.js +103 -0
- package/dist/builtin-rules/static/general/kubernetes-pod-security.rule.js +1 -0
- package/dist/builtin-rules/static/general/no-dynamic-code-eval.rule.js +1 -0
- package/dist/builtin-rules/static/general/no-hardcoded-secret.rule.js +61 -5
- package/dist/builtin-rules/static/general/no-unsafe-html-sink.rule.js +1 -0
- package/dist/builtin-rules/static/general/no-unused-export.rule.js +1 -0
- package/dist/builtin-rules/static/general/openapi-https-credentials.rule.js +1 -0
- package/dist/builtin-rules/static/spring-boot/no-unsafe-shared-formatter.rule.js +1 -0
- package/dist/builtin-rules/static/spring-boot/no-unzoned-datetime.rule.js +1 -0
- package/dist/builtin-rules/static/spring-boot/validate-input.rule.js +1 -0
- package/dist/index.d.ts +467 -0
- package/dist/index.js +6036 -522
- package/node_modules/@code-sentinel/parsers/index.js +53 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1376,6 +1376,258 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1376
1376
|
p99Ms?: string | number | undefined;
|
|
1377
1377
|
errorRate?: number | undefined;
|
|
1378
1378
|
}>>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Load-test bundle options (P1c, 2026-09-26). `bodySuccess` opts in to
|
|
1381
|
+
* a business-success check of every JSON 2xx body: `field` is a dot
|
|
1382
|
+
* path, `equals` is compared STRICTLY (`"200"` ≠ `200`). Only then
|
|
1383
|
+
* does k6 keep bodies (per request, `responseType: 'text'`); a body that
|
|
1384
|
+
* is not JSON or lacks the field is not checked, never a failure.
|
|
1385
|
+
* Business failures count toward the SLO error gate, never the abort
|
|
1386
|
+
* watchdog. There is NO default: the tool does not guess a house
|
|
1387
|
+
* response convention.
|
|
1388
|
+
*/
|
|
1389
|
+
loadTest: z.ZodDefault<z.ZodObject<{
|
|
1390
|
+
bodySuccess: z.ZodOptional<z.ZodObject<{
|
|
1391
|
+
field: z.ZodString;
|
|
1392
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
1393
|
+
}, "strip", z.ZodTypeAny, {
|
|
1394
|
+
field: string;
|
|
1395
|
+
equals: string | number | boolean;
|
|
1396
|
+
}, {
|
|
1397
|
+
field: string;
|
|
1398
|
+
equals: string | number | boolean;
|
|
1399
|
+
}>>;
|
|
1400
|
+
/**
|
|
1401
|
+
* [ADR-0100] D1 — CSV files feeding path/required-query params by
|
|
1402
|
+
* NAME (`{ id: document_id }` maps param `id` to column
|
|
1403
|
+
* `document_id`). Paths are relative to the project. Column and
|
|
1404
|
+
* duplicate-param errors surface at bundle generation, where the
|
|
1405
|
+
* files are read; the schema checks only the shape.
|
|
1406
|
+
*/
|
|
1407
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1408
|
+
file: z.ZodString;
|
|
1409
|
+
params: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
|
|
1410
|
+
}, "strip", z.ZodTypeAny, {
|
|
1411
|
+
params: Record<string, string>;
|
|
1412
|
+
file: string;
|
|
1413
|
+
}, {
|
|
1414
|
+
params: Record<string, string>;
|
|
1415
|
+
file: string;
|
|
1416
|
+
}>, "many">>;
|
|
1417
|
+
/**
|
|
1418
|
+
* [ADR-0100] D5 — relative endpoint weights, keyed `METHOD /path`
|
|
1419
|
+
* exactly as `cs perf` lists them (`ANY` endpoints fire as GET, so
|
|
1420
|
+
* key them GET). `source` is required: a weight with no provenance
|
|
1421
|
+
* is an assumption presented as data. Unlisted endpoints weigh 1.
|
|
1422
|
+
*/
|
|
1423
|
+
weights: z.ZodOptional<z.ZodObject<{
|
|
1424
|
+
source: z.ZodString;
|
|
1425
|
+
endpoints: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodNumber>, Record<string, number>, Record<string, number>>;
|
|
1426
|
+
}, "strip", z.ZodTypeAny, {
|
|
1427
|
+
endpoints: Record<string, number>;
|
|
1428
|
+
source: string;
|
|
1429
|
+
}, {
|
|
1430
|
+
endpoints: Record<string, number>;
|
|
1431
|
+
source: string;
|
|
1432
|
+
}>>;
|
|
1433
|
+
/**
|
|
1434
|
+
* [ADR-0101] D2 — soak profile (`cs perf --emit-load-test --profile
|
|
1435
|
+
* soak`). `rps` unset = `perf.capacity.expectedPeakRps` (Q1); with
|
|
1436
|
+
* neither, bundle generation refuses. Duration 30–240 min.
|
|
1437
|
+
*/
|
|
1438
|
+
soak: z.ZodOptional<z.ZodObject<{
|
|
1439
|
+
rps: z.ZodOptional<z.ZodNumber>;
|
|
1440
|
+
durationMinutes: z.ZodOptional<z.ZodNumber>;
|
|
1441
|
+
windowMinutes: z.ZodOptional<z.ZodNumber>;
|
|
1442
|
+
driftRatio: z.ZodOptional<z.ZodNumber>;
|
|
1443
|
+
}, "strip", z.ZodTypeAny, {
|
|
1444
|
+
rps?: number | undefined;
|
|
1445
|
+
durationMinutes?: number | undefined;
|
|
1446
|
+
windowMinutes?: number | undefined;
|
|
1447
|
+
driftRatio?: number | undefined;
|
|
1448
|
+
}, {
|
|
1449
|
+
rps?: number | undefined;
|
|
1450
|
+
durationMinutes?: number | undefined;
|
|
1451
|
+
windowMinutes?: number | undefined;
|
|
1452
|
+
driftRatio?: number | undefined;
|
|
1453
|
+
}>>;
|
|
1454
|
+
/**
|
|
1455
|
+
* [ADR-0101] D3 — spike profile (`--profile spike`). Both rates are
|
|
1456
|
+
* required: a surge has no meaningful default size. Both are
|
|
1457
|
+
* clamped to CS_PERF_MAX_RPS at generation.
|
|
1458
|
+
*/
|
|
1459
|
+
/**
|
|
1460
|
+
* [ADR-0102] D6 — OAuth2 token refresh in the bundle. Every `*Env`
|
|
1461
|
+
* field is the NAME of an environment variable read at run time,
|
|
1462
|
+
* never a value (ADR-0089 D9). `password` grant needs the user pair.
|
|
1463
|
+
*/
|
|
1464
|
+
auth: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1465
|
+
tokenUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
1466
|
+
grant: z.ZodEnum<["client_credentials", "password"]>;
|
|
1467
|
+
clientIdEnv: z.ZodString;
|
|
1468
|
+
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
1469
|
+
usernameEnv: z.ZodOptional<z.ZodString>;
|
|
1470
|
+
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
}, "strip", z.ZodTypeAny, {
|
|
1473
|
+
tokenUrl: string;
|
|
1474
|
+
grant: "password" | "client_credentials";
|
|
1475
|
+
clientIdEnv: string;
|
|
1476
|
+
scope?: string | undefined;
|
|
1477
|
+
clientSecretEnv?: string | undefined;
|
|
1478
|
+
usernameEnv?: string | undefined;
|
|
1479
|
+
passwordEnv?: string | undefined;
|
|
1480
|
+
}, {
|
|
1481
|
+
tokenUrl: string;
|
|
1482
|
+
grant: "password" | "client_credentials";
|
|
1483
|
+
clientIdEnv: string;
|
|
1484
|
+
scope?: string | undefined;
|
|
1485
|
+
clientSecretEnv?: string | undefined;
|
|
1486
|
+
usernameEnv?: string | undefined;
|
|
1487
|
+
passwordEnv?: string | undefined;
|
|
1488
|
+
}>, {
|
|
1489
|
+
tokenUrl: string;
|
|
1490
|
+
grant: "password" | "client_credentials";
|
|
1491
|
+
clientIdEnv: string;
|
|
1492
|
+
scope?: string | undefined;
|
|
1493
|
+
clientSecretEnv?: string | undefined;
|
|
1494
|
+
usernameEnv?: string | undefined;
|
|
1495
|
+
passwordEnv?: string | undefined;
|
|
1496
|
+
}, {
|
|
1497
|
+
tokenUrl: string;
|
|
1498
|
+
grant: "password" | "client_credentials";
|
|
1499
|
+
clientIdEnv: string;
|
|
1500
|
+
scope?: string | undefined;
|
|
1501
|
+
clientSecretEnv?: string | undefined;
|
|
1502
|
+
usernameEnv?: string | undefined;
|
|
1503
|
+
passwordEnv?: string | undefined;
|
|
1504
|
+
}>>;
|
|
1505
|
+
spike: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1506
|
+
baseRps: z.ZodNumber;
|
|
1507
|
+
peakRps: z.ZodNumber;
|
|
1508
|
+
peakSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1509
|
+
recoverySeconds: z.ZodOptional<z.ZodNumber>;
|
|
1510
|
+
}, "strip", z.ZodTypeAny, {
|
|
1511
|
+
baseRps: number;
|
|
1512
|
+
peakRps: number;
|
|
1513
|
+
peakSeconds?: number | undefined;
|
|
1514
|
+
recoverySeconds?: number | undefined;
|
|
1515
|
+
}, {
|
|
1516
|
+
baseRps: number;
|
|
1517
|
+
peakRps: number;
|
|
1518
|
+
peakSeconds?: number | undefined;
|
|
1519
|
+
recoverySeconds?: number | undefined;
|
|
1520
|
+
}>, {
|
|
1521
|
+
baseRps: number;
|
|
1522
|
+
peakRps: number;
|
|
1523
|
+
peakSeconds?: number | undefined;
|
|
1524
|
+
recoverySeconds?: number | undefined;
|
|
1525
|
+
}, {
|
|
1526
|
+
baseRps: number;
|
|
1527
|
+
peakRps: number;
|
|
1528
|
+
peakSeconds?: number | undefined;
|
|
1529
|
+
recoverySeconds?: number | undefined;
|
|
1530
|
+
}>>;
|
|
1531
|
+
}, "strip", z.ZodTypeAny, {
|
|
1532
|
+
bodySuccess?: {
|
|
1533
|
+
field: string;
|
|
1534
|
+
equals: string | number | boolean;
|
|
1535
|
+
} | undefined;
|
|
1536
|
+
data?: {
|
|
1537
|
+
params: Record<string, string>;
|
|
1538
|
+
file: string;
|
|
1539
|
+
}[] | undefined;
|
|
1540
|
+
weights?: {
|
|
1541
|
+
endpoints: Record<string, number>;
|
|
1542
|
+
source: string;
|
|
1543
|
+
} | undefined;
|
|
1544
|
+
soak?: {
|
|
1545
|
+
rps?: number | undefined;
|
|
1546
|
+
durationMinutes?: number | undefined;
|
|
1547
|
+
windowMinutes?: number | undefined;
|
|
1548
|
+
driftRatio?: number | undefined;
|
|
1549
|
+
} | undefined;
|
|
1550
|
+
auth?: {
|
|
1551
|
+
tokenUrl: string;
|
|
1552
|
+
grant: "password" | "client_credentials";
|
|
1553
|
+
clientIdEnv: string;
|
|
1554
|
+
scope?: string | undefined;
|
|
1555
|
+
clientSecretEnv?: string | undefined;
|
|
1556
|
+
usernameEnv?: string | undefined;
|
|
1557
|
+
passwordEnv?: string | undefined;
|
|
1558
|
+
} | undefined;
|
|
1559
|
+
spike?: {
|
|
1560
|
+
baseRps: number;
|
|
1561
|
+
peakRps: number;
|
|
1562
|
+
peakSeconds?: number | undefined;
|
|
1563
|
+
recoverySeconds?: number | undefined;
|
|
1564
|
+
} | undefined;
|
|
1565
|
+
}, {
|
|
1566
|
+
bodySuccess?: {
|
|
1567
|
+
field: string;
|
|
1568
|
+
equals: string | number | boolean;
|
|
1569
|
+
} | undefined;
|
|
1570
|
+
data?: {
|
|
1571
|
+
params: Record<string, string>;
|
|
1572
|
+
file: string;
|
|
1573
|
+
}[] | undefined;
|
|
1574
|
+
weights?: {
|
|
1575
|
+
endpoints: Record<string, number>;
|
|
1576
|
+
source: string;
|
|
1577
|
+
} | undefined;
|
|
1578
|
+
soak?: {
|
|
1579
|
+
rps?: number | undefined;
|
|
1580
|
+
durationMinutes?: number | undefined;
|
|
1581
|
+
windowMinutes?: number | undefined;
|
|
1582
|
+
driftRatio?: number | undefined;
|
|
1583
|
+
} | undefined;
|
|
1584
|
+
auth?: {
|
|
1585
|
+
tokenUrl: string;
|
|
1586
|
+
grant: "password" | "client_credentials";
|
|
1587
|
+
clientIdEnv: string;
|
|
1588
|
+
scope?: string | undefined;
|
|
1589
|
+
clientSecretEnv?: string | undefined;
|
|
1590
|
+
usernameEnv?: string | undefined;
|
|
1591
|
+
passwordEnv?: string | undefined;
|
|
1592
|
+
} | undefined;
|
|
1593
|
+
spike?: {
|
|
1594
|
+
baseRps: number;
|
|
1595
|
+
peakRps: number;
|
|
1596
|
+
peakSeconds?: number | undefined;
|
|
1597
|
+
recoverySeconds?: number | undefined;
|
|
1598
|
+
} | undefined;
|
|
1599
|
+
}>>;
|
|
1600
|
+
/**
|
|
1601
|
+
* [ADR-0102] D3 — override the "crossed" threshold of a server signal
|
|
1602
|
+
* by id (`hikari-pending`, `cpu`, …). Unknown ids are ignored.
|
|
1603
|
+
*/
|
|
1604
|
+
serverSignals: z.ZodOptional<z.ZodObject<{
|
|
1605
|
+
thresholds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1606
|
+
}, "strip", z.ZodTypeAny, {
|
|
1607
|
+
thresholds?: Record<string, number> | undefined;
|
|
1608
|
+
}, {
|
|
1609
|
+
thresholds?: Record<string, number> | undefined;
|
|
1610
|
+
}>>;
|
|
1611
|
+
/**
|
|
1612
|
+
* Expected production peak for the GO/NO-GO decision of `cs perf-ingest`
|
|
1613
|
+
* ([ADR-0099] D1). NO default for `expectedPeakRps`: without it the run
|
|
1614
|
+
* is INCONCLUSIVE (R2), never judged against a guessed number. `source`
|
|
1615
|
+
* is required — a number with no provenance cannot anchor a release
|
|
1616
|
+
* decision. RPS only (Q3). `headroom` unset = tool default 2 (Q2).
|
|
1617
|
+
*/
|
|
1618
|
+
capacity: z.ZodOptional<z.ZodObject<{
|
|
1619
|
+
expectedPeakRps: z.ZodNumber;
|
|
1620
|
+
source: z.ZodString;
|
|
1621
|
+
headroom: z.ZodOptional<z.ZodNumber>;
|
|
1622
|
+
}, "strip", z.ZodTypeAny, {
|
|
1623
|
+
source: string;
|
|
1624
|
+
expectedPeakRps: number;
|
|
1625
|
+
headroom?: number | undefined;
|
|
1626
|
+
}, {
|
|
1627
|
+
source: string;
|
|
1628
|
+
expectedPeakRps: number;
|
|
1629
|
+
headroom?: number | undefined;
|
|
1630
|
+
}>>;
|
|
1379
1631
|
}, "strip", z.ZodTypeAny, {
|
|
1380
1632
|
ai: {
|
|
1381
1633
|
sourceConsent?: {
|
|
@@ -1394,6 +1646,49 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1394
1646
|
p99Ms?: number | undefined;
|
|
1395
1647
|
errorRate?: number | undefined;
|
|
1396
1648
|
};
|
|
1649
|
+
loadTest: {
|
|
1650
|
+
bodySuccess?: {
|
|
1651
|
+
field: string;
|
|
1652
|
+
equals: string | number | boolean;
|
|
1653
|
+
} | undefined;
|
|
1654
|
+
data?: {
|
|
1655
|
+
params: Record<string, string>;
|
|
1656
|
+
file: string;
|
|
1657
|
+
}[] | undefined;
|
|
1658
|
+
weights?: {
|
|
1659
|
+
endpoints: Record<string, number>;
|
|
1660
|
+
source: string;
|
|
1661
|
+
} | undefined;
|
|
1662
|
+
soak?: {
|
|
1663
|
+
rps?: number | undefined;
|
|
1664
|
+
durationMinutes?: number | undefined;
|
|
1665
|
+
windowMinutes?: number | undefined;
|
|
1666
|
+
driftRatio?: number | undefined;
|
|
1667
|
+
} | undefined;
|
|
1668
|
+
auth?: {
|
|
1669
|
+
tokenUrl: string;
|
|
1670
|
+
grant: "password" | "client_credentials";
|
|
1671
|
+
clientIdEnv: string;
|
|
1672
|
+
scope?: string | undefined;
|
|
1673
|
+
clientSecretEnv?: string | undefined;
|
|
1674
|
+
usernameEnv?: string | undefined;
|
|
1675
|
+
passwordEnv?: string | undefined;
|
|
1676
|
+
} | undefined;
|
|
1677
|
+
spike?: {
|
|
1678
|
+
baseRps: number;
|
|
1679
|
+
peakRps: number;
|
|
1680
|
+
peakSeconds?: number | undefined;
|
|
1681
|
+
recoverySeconds?: number | undefined;
|
|
1682
|
+
} | undefined;
|
|
1683
|
+
};
|
|
1684
|
+
serverSignals?: {
|
|
1685
|
+
thresholds?: Record<string, number> | undefined;
|
|
1686
|
+
} | undefined;
|
|
1687
|
+
capacity?: {
|
|
1688
|
+
source: string;
|
|
1689
|
+
expectedPeakRps: number;
|
|
1690
|
+
headroom?: number | undefined;
|
|
1691
|
+
} | undefined;
|
|
1397
1692
|
}, {
|
|
1398
1693
|
ai?: {
|
|
1399
1694
|
sourceConsent?: {
|
|
@@ -1412,6 +1707,49 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1412
1707
|
p99Ms?: string | number | undefined;
|
|
1413
1708
|
errorRate?: number | undefined;
|
|
1414
1709
|
} | undefined;
|
|
1710
|
+
loadTest?: {
|
|
1711
|
+
bodySuccess?: {
|
|
1712
|
+
field: string;
|
|
1713
|
+
equals: string | number | boolean;
|
|
1714
|
+
} | undefined;
|
|
1715
|
+
data?: {
|
|
1716
|
+
params: Record<string, string>;
|
|
1717
|
+
file: string;
|
|
1718
|
+
}[] | undefined;
|
|
1719
|
+
weights?: {
|
|
1720
|
+
endpoints: Record<string, number>;
|
|
1721
|
+
source: string;
|
|
1722
|
+
} | undefined;
|
|
1723
|
+
soak?: {
|
|
1724
|
+
rps?: number | undefined;
|
|
1725
|
+
durationMinutes?: number | undefined;
|
|
1726
|
+
windowMinutes?: number | undefined;
|
|
1727
|
+
driftRatio?: number | undefined;
|
|
1728
|
+
} | undefined;
|
|
1729
|
+
auth?: {
|
|
1730
|
+
tokenUrl: string;
|
|
1731
|
+
grant: "password" | "client_credentials";
|
|
1732
|
+
clientIdEnv: string;
|
|
1733
|
+
scope?: string | undefined;
|
|
1734
|
+
clientSecretEnv?: string | undefined;
|
|
1735
|
+
usernameEnv?: string | undefined;
|
|
1736
|
+
passwordEnv?: string | undefined;
|
|
1737
|
+
} | undefined;
|
|
1738
|
+
spike?: {
|
|
1739
|
+
baseRps: number;
|
|
1740
|
+
peakRps: number;
|
|
1741
|
+
peakSeconds?: number | undefined;
|
|
1742
|
+
recoverySeconds?: number | undefined;
|
|
1743
|
+
} | undefined;
|
|
1744
|
+
} | undefined;
|
|
1745
|
+
serverSignals?: {
|
|
1746
|
+
thresholds?: Record<string, number> | undefined;
|
|
1747
|
+
} | undefined;
|
|
1748
|
+
capacity?: {
|
|
1749
|
+
source: string;
|
|
1750
|
+
expectedPeakRps: number;
|
|
1751
|
+
headroom?: number | undefined;
|
|
1752
|
+
} | undefined;
|
|
1415
1753
|
}>>;
|
|
1416
1754
|
}, "strip", z.ZodTypeAny, {
|
|
1417
1755
|
include: string[];
|
|
@@ -1632,6 +1970,49 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1632
1970
|
p99Ms?: number | undefined;
|
|
1633
1971
|
errorRate?: number | undefined;
|
|
1634
1972
|
};
|
|
1973
|
+
loadTest: {
|
|
1974
|
+
bodySuccess?: {
|
|
1975
|
+
field: string;
|
|
1976
|
+
equals: string | number | boolean;
|
|
1977
|
+
} | undefined;
|
|
1978
|
+
data?: {
|
|
1979
|
+
params: Record<string, string>;
|
|
1980
|
+
file: string;
|
|
1981
|
+
}[] | undefined;
|
|
1982
|
+
weights?: {
|
|
1983
|
+
endpoints: Record<string, number>;
|
|
1984
|
+
source: string;
|
|
1985
|
+
} | undefined;
|
|
1986
|
+
soak?: {
|
|
1987
|
+
rps?: number | undefined;
|
|
1988
|
+
durationMinutes?: number | undefined;
|
|
1989
|
+
windowMinutes?: number | undefined;
|
|
1990
|
+
driftRatio?: number | undefined;
|
|
1991
|
+
} | undefined;
|
|
1992
|
+
auth?: {
|
|
1993
|
+
tokenUrl: string;
|
|
1994
|
+
grant: "password" | "client_credentials";
|
|
1995
|
+
clientIdEnv: string;
|
|
1996
|
+
scope?: string | undefined;
|
|
1997
|
+
clientSecretEnv?: string | undefined;
|
|
1998
|
+
usernameEnv?: string | undefined;
|
|
1999
|
+
passwordEnv?: string | undefined;
|
|
2000
|
+
} | undefined;
|
|
2001
|
+
spike?: {
|
|
2002
|
+
baseRps: number;
|
|
2003
|
+
peakRps: number;
|
|
2004
|
+
peakSeconds?: number | undefined;
|
|
2005
|
+
recoverySeconds?: number | undefined;
|
|
2006
|
+
} | undefined;
|
|
2007
|
+
};
|
|
2008
|
+
serverSignals?: {
|
|
2009
|
+
thresholds?: Record<string, number> | undefined;
|
|
2010
|
+
} | undefined;
|
|
2011
|
+
capacity?: {
|
|
2012
|
+
source: string;
|
|
2013
|
+
expectedPeakRps: number;
|
|
2014
|
+
headroom?: number | undefined;
|
|
2015
|
+
} | undefined;
|
|
1635
2016
|
};
|
|
1636
2017
|
}, {
|
|
1637
2018
|
include?: string[] | undefined;
|
|
@@ -1852,6 +2233,49 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1852
2233
|
p99Ms?: string | number | undefined;
|
|
1853
2234
|
errorRate?: number | undefined;
|
|
1854
2235
|
} | undefined;
|
|
2236
|
+
loadTest?: {
|
|
2237
|
+
bodySuccess?: {
|
|
2238
|
+
field: string;
|
|
2239
|
+
equals: string | number | boolean;
|
|
2240
|
+
} | undefined;
|
|
2241
|
+
data?: {
|
|
2242
|
+
params: Record<string, string>;
|
|
2243
|
+
file: string;
|
|
2244
|
+
}[] | undefined;
|
|
2245
|
+
weights?: {
|
|
2246
|
+
endpoints: Record<string, number>;
|
|
2247
|
+
source: string;
|
|
2248
|
+
} | undefined;
|
|
2249
|
+
soak?: {
|
|
2250
|
+
rps?: number | undefined;
|
|
2251
|
+
durationMinutes?: number | undefined;
|
|
2252
|
+
windowMinutes?: number | undefined;
|
|
2253
|
+
driftRatio?: number | undefined;
|
|
2254
|
+
} | undefined;
|
|
2255
|
+
auth?: {
|
|
2256
|
+
tokenUrl: string;
|
|
2257
|
+
grant: "password" | "client_credentials";
|
|
2258
|
+
clientIdEnv: string;
|
|
2259
|
+
scope?: string | undefined;
|
|
2260
|
+
clientSecretEnv?: string | undefined;
|
|
2261
|
+
usernameEnv?: string | undefined;
|
|
2262
|
+
passwordEnv?: string | undefined;
|
|
2263
|
+
} | undefined;
|
|
2264
|
+
spike?: {
|
|
2265
|
+
baseRps: number;
|
|
2266
|
+
peakRps: number;
|
|
2267
|
+
peakSeconds?: number | undefined;
|
|
2268
|
+
recoverySeconds?: number | undefined;
|
|
2269
|
+
} | undefined;
|
|
2270
|
+
} | undefined;
|
|
2271
|
+
serverSignals?: {
|
|
2272
|
+
thresholds?: Record<string, number> | undefined;
|
|
2273
|
+
} | undefined;
|
|
2274
|
+
capacity?: {
|
|
2275
|
+
source: string;
|
|
2276
|
+
expectedPeakRps: number;
|
|
2277
|
+
headroom?: number | undefined;
|
|
2278
|
+
} | undefined;
|
|
1855
2279
|
} | undefined;
|
|
1856
2280
|
}>, {
|
|
1857
2281
|
include: string[];
|
|
@@ -2072,6 +2496,49 @@ declare const codeReviewConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2072
2496
|
p99Ms?: number | undefined;
|
|
2073
2497
|
errorRate?: number | undefined;
|
|
2074
2498
|
};
|
|
2499
|
+
loadTest: {
|
|
2500
|
+
bodySuccess?: {
|
|
2501
|
+
field: string;
|
|
2502
|
+
equals: string | number | boolean;
|
|
2503
|
+
} | undefined;
|
|
2504
|
+
data?: {
|
|
2505
|
+
params: Record<string, string>;
|
|
2506
|
+
file: string;
|
|
2507
|
+
}[] | undefined;
|
|
2508
|
+
weights?: {
|
|
2509
|
+
endpoints: Record<string, number>;
|
|
2510
|
+
source: string;
|
|
2511
|
+
} | undefined;
|
|
2512
|
+
soak?: {
|
|
2513
|
+
rps?: number | undefined;
|
|
2514
|
+
durationMinutes?: number | undefined;
|
|
2515
|
+
windowMinutes?: number | undefined;
|
|
2516
|
+
driftRatio?: number | undefined;
|
|
2517
|
+
} | undefined;
|
|
2518
|
+
auth?: {
|
|
2519
|
+
tokenUrl: string;
|
|
2520
|
+
grant: "password" | "client_credentials";
|
|
2521
|
+
clientIdEnv: string;
|
|
2522
|
+
scope?: string | undefined;
|
|
2523
|
+
clientSecretEnv?: string | undefined;
|
|
2524
|
+
usernameEnv?: string | undefined;
|
|
2525
|
+
passwordEnv?: string | undefined;
|
|
2526
|
+
} | undefined;
|
|
2527
|
+
spike?: {
|
|
2528
|
+
baseRps: number;
|
|
2529
|
+
peakRps: number;
|
|
2530
|
+
peakSeconds?: number | undefined;
|
|
2531
|
+
recoverySeconds?: number | undefined;
|
|
2532
|
+
} | undefined;
|
|
2533
|
+
};
|
|
2534
|
+
serverSignals?: {
|
|
2535
|
+
thresholds?: Record<string, number> | undefined;
|
|
2536
|
+
} | undefined;
|
|
2537
|
+
capacity?: {
|
|
2538
|
+
source: string;
|
|
2539
|
+
expectedPeakRps: number;
|
|
2540
|
+
headroom?: number | undefined;
|
|
2541
|
+
} | undefined;
|
|
2075
2542
|
};
|
|
2076
2543
|
}, unknown>;
|
|
2077
2544
|
type CodeReviewConfig = z.infer<typeof codeReviewConfigSchema>;
|