@thinkai/tai-api-contract 2.127.0 → 2.128.0
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.
|
@@ -1402,7 +1402,7 @@ export interface paths {
|
|
|
1402
1402
|
};
|
|
1403
1403
|
/**
|
|
1404
1404
|
* Test pyramid assessment — workspace summary
|
|
1405
|
-
* @description Org-level Test pyramid assessment for `/insights/test-pyramid`. Aggregates each active repo's **latest** readiness-scan test-pyramid snapshot. Layer **presence is count-based** (`fileCount > 0`); CI/dependency-only AF `present` flags are ignored. Shape uses fixed advisory targets (base ~70% unit, middle ~20% integration+contract+acceptance/BDD, top ~10% E2E) and returns `insufficient_data` when total classified test files < 10. Does not change Agentic Foundation `/readiness/test-pyramid*` responses.
|
|
1405
|
+
* @description Org-level Test pyramid assessment for `/insights/test-pyramid`. Aggregates each active repo's **latest** readiness-scan test-pyramid snapshot and the immediately previous succeeded/partial_failed/failed point when present (`limitPerRepo: 2`). Layer **presence is count-based** (`fileCount > 0`); CI/dependency-only AF `present` flags are ignored. Shape uses fixed advisory targets (base ~70% unit, middle ~20% integration+contract+acceptance/BDD, top ~10% E2E) and returns `insufficient_data` when total classified test files < 10. Also returns maturity trend, coverage overlay, confidence, applicability, E2E-cross/hotspot risk, and workspace-only `ciQuality` from the latest org dashboard snapshot. Does not change Agentic Foundation `/readiness/test-pyramid*` responses.
|
|
1406
1406
|
*/
|
|
1407
1407
|
get: operations["getInsightsTestPyramidSummary"];
|
|
1408
1408
|
put?: never;
|
|
@@ -1422,7 +1422,7 @@ export interface paths {
|
|
|
1422
1422
|
};
|
|
1423
1423
|
/**
|
|
1424
1424
|
* Test pyramid assessment — per-repo list (paginated)
|
|
1425
|
-
* @description Page of repos with latest classified test-file counts, count-based presence, presence maturity, and
|
|
1425
|
+
* @description Page of repos with latest classified test-file counts, count-based presence, presence maturity, shape, trend vs the previous pyramid point, coverage overlay, confidence/evidence, layer applicability, and risk signals (`e2eCrossRepoCandidate`, `hotspotCount`). Use `gapsByLayer` on the summary endpoint (or filter this list via layerPresent) to answer “who lacks layer X?”. No v1 repo-detail Insights route — link repo names to AF readiness inventory.
|
|
1426
1426
|
*/
|
|
1427
1427
|
get: operations["listInsightsTestPyramidRepos"];
|
|
1428
1428
|
put?: never;
|
|
@@ -9658,6 +9658,34 @@ export interface components {
|
|
|
9658
9658
|
contract: components["schemas"]["InsightsTestPyramidLayerPresenceDto"];
|
|
9659
9659
|
e2e: components["schemas"]["InsightsTestPyramidLayerPresenceDto"];
|
|
9660
9660
|
};
|
|
9661
|
+
/**
|
|
9662
|
+
* @description Insights maturity rank change vs the immediately previous pyramid point (missing 0, emerging 1, established 2, mature 3). `none` when the repo has no previous succeeded/partial_failed/failed point.
|
|
9663
|
+
* @enum {string}
|
|
9664
|
+
*/
|
|
9665
|
+
InsightsTestPyramidMaturityDeltaDto: "up" | "down" | "unchanged" | "none";
|
|
9666
|
+
/** @enum {string} */
|
|
9667
|
+
InsightsTestPyramidConfidenceDto: "high" | "medium" | "low";
|
|
9668
|
+
InsightsTestPyramidLayerConfidenceDto: {
|
|
9669
|
+
unit: components["schemas"]["InsightsTestPyramidConfidenceDto"];
|
|
9670
|
+
integration: components["schemas"]["InsightsTestPyramidConfidenceDto"];
|
|
9671
|
+
acceptance_bdd: components["schemas"]["InsightsTestPyramidConfidenceDto"];
|
|
9672
|
+
contract: components["schemas"]["InsightsTestPyramidConfidenceDto"];
|
|
9673
|
+
e2e: components["schemas"]["InsightsTestPyramidConfidenceDto"];
|
|
9674
|
+
};
|
|
9675
|
+
InsightsTestPyramidCoverageRollupDto: {
|
|
9676
|
+
/** @description Repos whose overlaid `lineCoverage` is non-null. */
|
|
9677
|
+
reposWithCoverage: number;
|
|
9678
|
+
/** @description Median of repo `linePercent` among repos that have coverage. Null when `reposWithCoverage` is 0. */
|
|
9679
|
+
medianLinePercent: number | null;
|
|
9680
|
+
};
|
|
9681
|
+
InsightsTestPyramidCiQualityDto: {
|
|
9682
|
+
/** @description Latest org dashboard `quality.ciFailureRatePercent`, falling back to `quality.ciBuildFailRatePercent`. */
|
|
9683
|
+
ciFailureRatePercent: number;
|
|
9684
|
+
/** @description Included only when `quality.ciFlakinessPercent` is a finite number. */
|
|
9685
|
+
ciFlakinessPercent?: number;
|
|
9686
|
+
/** @description Dashboard metrics bucket end for the org snapshot. */
|
|
9687
|
+
bucketEnd: string;
|
|
9688
|
+
} | null;
|
|
9661
9689
|
InsightsTestPyramidSummaryDto: {
|
|
9662
9690
|
/** Format: uuid */
|
|
9663
9691
|
workspaceId: string;
|
|
@@ -9672,6 +9700,22 @@ export interface components {
|
|
|
9672
9700
|
layerPresence: components["schemas"]["InsightsTestPyramidLayerPresenceMapDto"];
|
|
9673
9701
|
maturityCounts: components["schemas"]["InsightsTestPyramidMaturityCountsDto"];
|
|
9674
9702
|
gapsByLayer: components["schemas"]["InsightsTestPyramidGapsByLayerDto"];
|
|
9703
|
+
/**
|
|
9704
|
+
* Format: date-time
|
|
9705
|
+
* @description Latest per-repo `scannedAt`. Null when `reposWithPyramid` is 0.
|
|
9706
|
+
*/
|
|
9707
|
+
newestScannedAt: string | null;
|
|
9708
|
+
/** @description Repos whose Insights maturity rank increased vs the previous point. */
|
|
9709
|
+
maturedRepoCount: number;
|
|
9710
|
+
/** @description Repos whose Insights maturity rank decreased vs the previous point. */
|
|
9711
|
+
slippedRepoCount: number;
|
|
9712
|
+
/** @description Insights workspace shape from previous-point file totals for repos that have a previous point. Null when no repo has a previous point. */
|
|
9713
|
+
previousShape: components["schemas"]["InsightsTestPyramidShapeDto"] | null;
|
|
9714
|
+
coverage: components["schemas"]["InsightsTestPyramidCoverageRollupDto"];
|
|
9715
|
+
e2eCrossRepoCandidateCount: number;
|
|
9716
|
+
/** @description Repos whose latest Code Insights snapshot has `hotspotCount` > 0. */
|
|
9717
|
+
reposWithHotspots: number;
|
|
9718
|
+
ciQuality: components["schemas"]["InsightsTestPyramidCiQualityDto"];
|
|
9675
9719
|
};
|
|
9676
9720
|
InsightsTestPyramidRepoItemDto: {
|
|
9677
9721
|
/** Format: uuid */
|
|
@@ -9681,10 +9725,27 @@ export interface components {
|
|
|
9681
9725
|
scannedAt: string;
|
|
9682
9726
|
currentRunStatus: components["schemas"]["TestPyramidRunStatusDto"];
|
|
9683
9727
|
maturity: components["schemas"]["InsightsTestPyramidMaturityDto"];
|
|
9728
|
+
previousMaturity: components["schemas"]["InsightsTestPyramidMaturityDto"] | null;
|
|
9729
|
+
maturityDelta: components["schemas"]["InsightsTestPyramidMaturityDeltaDto"];
|
|
9730
|
+
previousShapeLabel: components["schemas"]["InsightsTestPyramidShapeLabelDto"] | null;
|
|
9684
9731
|
layerFileCounts: components["schemas"]["InsightsTestPyramidLayerCountsDto"];
|
|
9685
9732
|
layerPresent: components["schemas"]["InsightsTestPyramidLayerPresentDto"];
|
|
9733
|
+
/** @description Snapshot `layers.*.applicable` for each layer. */
|
|
9734
|
+
layerApplicable: components["schemas"]["InsightsTestPyramidLayerPresentDto"];
|
|
9686
9735
|
totalClassifiedFiles: number;
|
|
9687
9736
|
shape: components["schemas"]["InsightsTestPyramidShapeDto"];
|
|
9737
|
+
/** @description Same overlay as AF progress — latest Sonar row first, else snapshot `testPyramid.lineCoverage`. Null when both are missing. Not Code Insights `coveragePct`. */
|
|
9738
|
+
lineCoverage: components["schemas"]["TestPyramidLineCoverageDto"];
|
|
9739
|
+
/** @description Minimum confidence among layers with Insights presence (`fileCount > 0`); if none present, minimum of applicable layers. Order low < medium < high. */
|
|
9740
|
+
lowestConfidence: components["schemas"]["InsightsTestPyramidConfidenceDto"];
|
|
9741
|
+
layerConfidence: components["schemas"]["InsightsTestPyramidLayerConfidenceDto"];
|
|
9742
|
+
/** @description Sum of layer `evidence[]` lengths on the latest snapshot. */
|
|
9743
|
+
evidenceCount: number;
|
|
9744
|
+
/** @description Unique framework names across layers, capped at 8. */
|
|
9745
|
+
frameworks: string[];
|
|
9746
|
+
e2eCrossRepoCandidate: boolean;
|
|
9747
|
+
/** @description Row count in `tai_workspace_repo_code_hotspots` for the repo's latest Code Insights metrics snapshot. Null when the repo has no metrics snapshot. */
|
|
9748
|
+
hotspotCount: number | null;
|
|
9688
9749
|
};
|
|
9689
9750
|
InsightsTestPyramidRepoListDto: {
|
|
9690
9751
|
items: components["schemas"]["InsightsTestPyramidRepoItemDto"][];
|
|
@@ -10316,6 +10377,11 @@ export type InsightsTestPyramidGapRepoDto = components['schemas']['InsightsTestP
|
|
|
10316
10377
|
export type InsightsTestPyramidGapsByLayerDto = components['schemas']['InsightsTestPyramidGapsByLayerDto'];
|
|
10317
10378
|
export type InsightsTestPyramidMaturityCountsDto = components['schemas']['InsightsTestPyramidMaturityCountsDto'];
|
|
10318
10379
|
export type InsightsTestPyramidLayerPresenceMapDto = components['schemas']['InsightsTestPyramidLayerPresenceMapDto'];
|
|
10380
|
+
export type InsightsTestPyramidMaturityDeltaDto = components['schemas']['InsightsTestPyramidMaturityDeltaDto'];
|
|
10381
|
+
export type InsightsTestPyramidConfidenceDto = components['schemas']['InsightsTestPyramidConfidenceDto'];
|
|
10382
|
+
export type InsightsTestPyramidLayerConfidenceDto = components['schemas']['InsightsTestPyramidLayerConfidenceDto'];
|
|
10383
|
+
export type InsightsTestPyramidCoverageRollupDto = components['schemas']['InsightsTestPyramidCoverageRollupDto'];
|
|
10384
|
+
export type InsightsTestPyramidCiQualityDto = components['schemas']['InsightsTestPyramidCiQualityDto'];
|
|
10319
10385
|
export type InsightsTestPyramidSummaryDto = components['schemas']['InsightsTestPyramidSummaryDto'];
|
|
10320
10386
|
export type InsightsTestPyramidRepoItemDto = components['schemas']['InsightsTestPyramidRepoItemDto'];
|
|
10321
10387
|
export type InsightsTestPyramidRepoListDto = components['schemas']['InsightsTestPyramidRepoListDto'];
|